void ChipBBPAdjust(int param_1)
{
undefined1 uVar1;
char cVar2;
uint uVar3;
char *pcVar4;
int iVar5;
uint uVar6;
int iVar7;
uint uVar8;
uint uVar9;
byte bVar10;
uVar3 = Status;
uVar6 = *(uint *)(param_1 + 0x16afc) & 0x20000;
if ((uVar6 == 0) || ((*(uint *)(param_1 + 0x16a44) & 0x60000) != 0x20000)) {
bVar10 = *(byte *)(param_1 + 0x169ec);
if ((bVar10 < 3) || ((uVar6 == 0 || ((*(uint *)(param_1 + 0x16a44) & 0x60000) != 0x60000)))) {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
*(undefined1 *)(param_1 + 0x169ed) = *(undefined1 *)(param_1 + 0x169ec);
AsicRxAntEvalTimeout[param_1 + 5] = (code)0x0;
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x132c) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x132c) & 0xfffffffe;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
uVar6 = 0;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xb0400;
}
iVar7 = 1;
while( true ) {
uVar3 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if (((uVar3 & 0x20000) == 0) || (iVar7 == 100)) break;
iVar7 = iVar7 + 1;
}
if ((uVar3 & 0x2ff00) == 0x400) {
uVar6 = uVar3 & 0xff;
goto LAB_0005f1c0;
}
}
iVar5 = iVar5 + 1;
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar6 = 0;
LAB_0005f1c0:
if ((int)(uVar3 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",0,4);
uVar6 = (uint)*(byte *)(param_1 + 0x4acd);
LAB_0005f358:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
else {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xb0400;
}
AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
RTMPusecDelay(1000);
iVar7 = 1;
while( true ) {
uVar3 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if (((uVar3 & 0x20000) == 0) || (iVar7 == 100)) break;
iVar7 = iVar7 + 1;
}
if ((uVar3 & 0x2ff00) == 0x400) {
uVar6 = uVar3 & 0xff;
goto LAB_0005f300;
}
}
iVar5 = iVar5 + 1;
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar6 = 0;
LAB_0005f300:
if ((int)(uVar3 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",1,4);
uVar6 = (uint)*(byte *)(param_1 + 0x4acd);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
}
goto LAB_0005f358;
}
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
if (cVar2 == '\x01') {
Status = Status & 0xfffffffe;
if (uVar8 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
uVar3 = Status;
if (cVar2 == '\0') {
uVar6 = uVar6 & 0xe7;
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005f454;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = uVar6 | 0xa0400;
}
*(char *)(param_1 + 0x4acd) = (char)uVar6;
if (iVar5 != 100) goto LAB_0005f474;
LAB_0005f454:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",4);
LAB_0005f474:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005f5d0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar6 | 0xa0400;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar6 | 0x80400;
}
*(char *)(param_1 + 0x4acd) = (char)uVar6;
if (iVar5 != 100) goto LAB_0005f618;
LAB_0005f5d0:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",4);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
LAB_0005f618:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
if ((cVar2 == '\x01') && (Status = Status & 0xfffffffe, uVar8 != 0)) {
Status = Status | 1;
}
}
uVar3 = Status;
if (*(byte *)(param_1 + 0x169ec) < 0xf) {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
uVar1 = 0x38;
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4238;
uVar1 = 0x38;
}
goto LAB_0005f92c;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_0005f940:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x42);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4238;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x38;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84238;
}
uVar1 = 0x38;
}
goto LAB_0005fab8;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_0005facc:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x42);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
joined_r0x0005fb1c:
if ((cVar2 == '\x01') && (Status = Status & 0xfffffffe, uVar6 != 0)) {
Status = Status | 1;
}
}
}
else if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) != 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_0005f75c:
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4240;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x40;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84240;
}
uVar1 = 0x40;
}
LAB_0005fab8:
*(undefined1 *)(param_1 + 0x4b0b) = uVar1;
if (iVar5 == 100) goto LAB_0005facc;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x0005fb1c;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 != 100) goto code_r0x0005f7b8;
goto LAB_0005facc;
}
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
do {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4240;
uVar1 = 0x40;
}
else {
uVar1 = 0x40;
}
LAB_0005f92c:
*(undefined1 *)(param_1 + 0x4b0b) = uVar1;
if (iVar5 == 100) goto LAB_0005f940;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x0005fb1c;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005f940;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
} while( true );
}
uVar3 = Status;
if (*(int *)(param_1 + 0x4a94) == 0x28600100) {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005fc28;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4516;
}
*(undefined1 *)(param_1 + 0x4b0e) = 0x16;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005fc4c;
}
LAB_0005fc28:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x45);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_0005fc4c:
if (cVar2 == '\x01') {
LAB_0005fe10:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005fdb4;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4516;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84516;
}
*(undefined1 *)(param_1 + 0x4b0e) = 0x16;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005fe00;
}
LAB_0005fdb4:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x45);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_0005fe00:
if (cVar2 == '\x01') goto LAB_0005fe10;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005ff00;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4608;
}
*(undefined1 *)(param_1 + 0x4b0f) = 8;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005ff24;
}
LAB_0005ff00:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x46);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_0005ff24:
if (cVar2 == '\x01') {
LAB_000600e8:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0006008c;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4608;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84608;
}
*(undefined1 *)(param_1 + 0x4b0f) = 8;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000600d8;
}
LAB_0006008c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x46);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000600d8:
if (cVar2 == '\x01') goto LAB_000600e8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) != 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_00060204:
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4911;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x11;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84911;
}
uVar1 = 0x11;
}
LAB_00060b10:
*(undefined1 *)(param_1 + 0x4b12) = uVar1;
if (iVar5 == 100) goto LAB_00060b24;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x00060b74;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 != 100) goto code_r0x00060260;
goto LAB_00060b24;
}
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
do {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4911;
uVar1 = 0x11;
}
else {
uVar1 = 0x11;
}
LAB_00060984:
*(undefined1 *)(param_1 + 0x4b12) = uVar1;
if (iVar5 == 100) goto LAB_00060998;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x00060b74;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_00060998;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
} while( true );
}
}
else {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000603e8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4512;
}
*(undefined1 *)(param_1 + 0x4b0e) = 0x12;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0006040c;
}
LAB_000603e8:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x45);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_0006040c:
if (cVar2 == '\x01') {
LAB_000605d0:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_00060574;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4512;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84512;
}
*(undefined1 *)(param_1 + 0x4b0e) = 0x12;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000605c0;
}
LAB_00060574:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x45);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000605c0:
if (cVar2 == '\x01') goto LAB_000605d0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000606c0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa460a;
}
*(undefined1 *)(param_1 + 0x4b0f) = 10;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000606e4;
}
LAB_000606c0:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x46);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000606e4:
if (cVar2 == '\x01') {
LAB_000608a8:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0006084c;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa460a;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x8460a;
}
*(undefined1 *)(param_1 + 0x4b0f) = 10;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_00060898;
}
LAB_0006084c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x46);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_00060898:
if (cVar2 == '\x01') goto LAB_000608a8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
uVar1 = 0x10;
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4910;
uVar1 = 0x10;
}
goto LAB_00060984;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_00060998:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x49);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4910;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x10;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84910;
}
uVar1 = 0x10;
}
goto LAB_00060b10;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_00060b24:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x49);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
joined_r0x00060b74:
if ((cVar2 == '\x01') && (Status = Status & 0xfffffffe, uVar6 != 0)) {
Status = Status | 1;
}
}
}
if (2 < RTDebugLevel) {
iVar5 = *(int *)(param_1 + 0x16afc);
uVar1 = *(undefined1 *)(param_1 + 0x169ec);
iVar7 = *(int *)(param_1 + 0x16a44);
uVar3 = (uint)(*(int *)(param_1 + 0x16b18) << 0x16) >> 0x1e;
pcVar4 = "ApStartUp : 20MHz, ChannelWidth=%d, Channel=%d, ExtChanOffset=%d(%d) \n";
goto LAB_00060bc4;
}
}
else {
AsicRxAntEvalTimeout[param_1 + 5] = (code)0x1;
if (bVar10 == 0xe) {
cVar2 = '\r';
}
else {
cVar2 = bVar10 - 2 //possible issue identified - semgrep
}
*(char *)(param_1 + 0x169ed) = cVar2;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x132c) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x132c) | 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
uVar6 = 0;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xb0300;
}
iVar7 = 1;
while( true ) {
uVar3 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if (((uVar3 & 0x20000) == 0) || (iVar7 == 100)) break;
iVar7 = iVar7 + 1;
}
if ((uVar3 & 0x2ff00) == 0x300) {
uVar6 = uVar3 & 0xff;
goto LAB_0005d138;
}
}
iVar5 = iVar5 + 1;
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar6 = 0;
LAB_0005d138:
if ((int)(uVar3 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",0,3);
uVar6 = (uint)*(byte *)(param_1 + 0x4acc);
LAB_0005d2d0:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
else {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xb0300;
}
AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
RTMPusecDelay(1000);
iVar7 = 1;
while( true ) {
uVar3 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if (((uVar3 & 0x20000) == 0) || (iVar7 == 100)) break;
iVar7 = iVar7 + 1;
}
if ((uVar3 & 0x2ff00) == 0x300) {
uVar6 = uVar3 & 0xff;
goto LAB_0005d278;
}
}
iVar5 = iVar5 + 1;
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar6 = 0;
LAB_0005d278:
if ((int)(uVar3 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",1,3);
uVar6 = (uint)*(byte *)(param_1 + 0x4acc);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
}
goto LAB_0005d2d0;
}
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
if (cVar2 == '\x01') {
Status = Status & 0xfffffffe;
if (uVar8 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
}
else {
uVar6 = 0;
}
uVar3 = Status;
uVar8 = uVar6 | 0x20;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar9 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar9 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005d3c8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = uVar6 | 0xa0320;
}
*(char *)(param_1 + 0x4acc) = (char)uVar8;
if (iVar5 != 100) goto LAB_0005d3e8;
LAB_0005d3c8:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",3);
LAB_0005d3e8:
if (*(char *)(param_1 + 0xad) == '\x01') {
LAB_0005d5a0:
Status = Status & 0xfffffffe;
if (uVar9 != 0) {
Status = Status | 1;
}
goto LAB_0005d5b0;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
uVar9 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar9 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005d544;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar6 | 0xa0320;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar6 | 0x80320;
}
*(char *)(param_1 + 0x4acc) = (char)uVar8;
if (iVar5 != 100) goto LAB_0005d58c;
LAB_0005d544:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",3);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
LAB_0005d58c:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
if (cVar2 == '\x01') goto LAB_0005d5a0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
LAB_0005d5b0:
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_0005d604:
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) != 0) {
LAB_0005d690:
iVar5 = iVar5 + 1;
if (iVar5 == 100) goto LAB_0005d698;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_0005d604;
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xb0400;
}
iVar7 = 1;
while( true ) {
uVar3 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if (((uVar3 & 0x20000) == 0) || (iVar7 == 100)) break;
iVar7 = iVar7 + 1;
}
if ((uVar3 & 0x2ff00) != 0x400) goto LAB_0005d690;
uVar8 = uVar3 & 0xff;
LAB_0005d698:
if ((int)(uVar3 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",0,4);
uVar8 = (uint)*(byte *)(param_1 + 0x4acd);
LAB_0005d82c:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_0005d708:
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) != 0) {
LAB_0005d7cc:
iVar5 = iVar5 + 1;
if (iVar5 == 100) goto LAB_0005d7d4;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_0005d708;
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xb0400;
}
AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
RTMPusecDelay(1000);
iVar7 = 1;
while( true ) {
uVar3 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if (((uVar3 & 0x20000) == 0) || (iVar7 == 100)) break;
iVar7 = iVar7 + 1;
}
if ((uVar3 & 0x2ff00) != 0x400) goto LAB_0005d7cc;
uVar8 = uVar3 & 0xff;
LAB_0005d7d4:
if ((int)(uVar3 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",1,4);
uVar8 = (uint)*(byte *)(param_1 + 0x4acd);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
}
goto LAB_0005d82c;
}
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
if (cVar2 == '\x01') {
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
uVar8 = uVar8 & 0xe7;
bVar10 = (byte)uVar8 | 0x10;
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005d92c;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = uVar8 | 0xa0410;
}
*(byte *)(param_1 + 0x4acd) = bVar10;
if (iVar5 != 100) goto LAB_0005d94c;
LAB_0005d92c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",4);
LAB_0005d94c:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005daa8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar8 | 0xa0410;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar8 | 0x80410;
}
*(byte *)(param_1 + 0x4acd) = bVar10;
if (iVar5 != 100) goto LAB_0005daf0;
LAB_0005daa8:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",4);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
LAB_0005daf0:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
if ((cVar2 == '\x01') && (Status = Status & 0xfffffffe, uVar6 != 0)) {
Status = Status | 1;
}
}
uVar3 = Status;
if (*(byte *)(param_1 + 0x169ec) < 0xf) {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
uVar1 = 0x38;
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4238;
uVar1 = 0x38;
}
goto LAB_0005de04;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_0005de18:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x42);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4238;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x38;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84238;
}
uVar1 = 0x38;
}
goto LAB_0005df90;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_0005dfa4:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x42);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
joined_r0x0005de40:
if ((cVar2 == '\x01') && (Status = Status & 0xfffffffe, uVar6 != 0)) {
Status = Status | 1;
}
}
}
else if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_0005db7c:
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4248;
uVar1 = 0x48;
}
else {
uVar1 = 0x48;
}
LAB_0005de04:
*(undefined1 *)(param_1 + 0x4b0b) = uVar1;
if (iVar5 == 100) goto LAB_0005de18;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x0005de40;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 != 100) goto code_r0x0005dbb0;
goto LAB_0005de18;
}
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_0005dc34:
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4248;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x48;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84248;
}
uVar1 = 0x48;
}
LAB_0005df90:
*(undefined1 *)(param_1 + 0x4b0b) = uVar1;
if (iVar5 == 100) goto LAB_0005dfa4;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x0005de40;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 != 100) goto code_r0x0005dc88;
goto LAB_0005dfa4;
}
uVar3 = Status;
if (*(int *)(param_1 + 0x4a94) == 0x28600100) {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005e100;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa451a;
}
*(undefined1 *)(param_1 + 0x4b0e) = 0x1a;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005e124;
}
LAB_0005e100:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x45);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_0005e124:
if (cVar2 == '\x01') {
LAB_0005e2e8:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005e28c;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa451a;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x8451a;
}
*(undefined1 *)(param_1 + 0x4b0e) = 0x1a;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005e2d8;
}
LAB_0005e28c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x45);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_0005e2d8:
if (cVar2 == '\x01') goto LAB_0005e2e8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005e3d8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa460a;
}
*(undefined1 *)(param_1 + 0x4b0f) = 10;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005e3fc;
}
LAB_0005e3d8:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x46);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_0005e3fc:
if (cVar2 == '\x01') {
LAB_0005e5c0:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005e564;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa460a;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x8460a;
}
*(undefined1 *)(param_1 + 0x4b0f) = 10;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005e5b0;
}
LAB_0005e564:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x46);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_0005e5b0:
if (cVar2 == '\x01') goto LAB_0005e5c0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) != 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_0005e6dc:
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4916;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x16;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84916;
}
uVar1 = 0x16;
}
LAB_0005efe8:
*(undefined1 *)(param_1 + 0x4b12) = uVar1;
if (iVar5 == 100) goto LAB_0005effc;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x0005f04c;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 != 100) goto code_r0x0005e738;
goto LAB_0005effc;
}
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
do {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4916;
uVar1 = 0x16;
}
else {
uVar1 = 0x16;
}
LAB_0005ee5c:
*(undefined1 *)(param_1 + 0x4b12) = uVar1;
if (iVar5 == 100) goto LAB_0005ee70;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x0005f04c;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005ee70;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
} while( true );
}
}
else {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005e8c0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4512;
}
*(undefined1 *)(param_1 + 0x4b0e) = 0x12;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005e8e4;
}
LAB_0005e8c0:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x45);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_0005e8e4:
if (cVar2 == '\x01') {
LAB_0005eaa8:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005ea4c;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4512;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84512;
}
*(undefined1 *)(param_1 + 0x4b0e) = 0x12;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005ea98;
}
LAB_0005ea4c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x45);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_0005ea98:
if (cVar2 == '\x01') goto LAB_0005eaa8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005eb98;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa460a;
}
*(undefined1 *)(param_1 + 0x4b0f) = 10;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005ebbc;
}
LAB_0005eb98:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x46);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_0005ebbc:
if (cVar2 == '\x01') {
LAB_0005ed80:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005ed24;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa460a;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x8460a;
}
*(undefined1 *)(param_1 + 0x4b0f) = 10;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005ed70;
}
LAB_0005ed24:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x46);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_0005ed70:
if (cVar2 == '\x01') goto LAB_0005ed80;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
uVar1 = 0x10;
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4910;
uVar1 = 0x10;
}
goto LAB_0005ee5c;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_0005ee70:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x49);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4910;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x10;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84910;
}
uVar1 = 0x10;
}
goto LAB_0005efe8;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_0005effc:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x49);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
joined_r0x0005f04c:
if ((cVar2 == '\x01') && (Status = Status & 0xfffffffe, uVar6 != 0)) {
Status = Status | 1;
}
}
}
if (2 < RTDebugLevel) {
iVar5 = *(int *)(param_1 + 0x16afc);
uVar1 = *(undefined1 *)(param_1 + 0x169ec);
iVar7 = *(int *)(param_1 + 0x16a44);
uVar3 = (uint)(*(int *)(param_1 + 0x16b18) << 0x16) >> 0x1e;
pcVar4 = "ApStartUp : ExtBlow, ChannelWidth=%d, Channel=%d, ExtChanOffset=%d(%d) \n";
LAB_00060bc4:
printk(pcVar4,(uint)(iVar5 << 0xe) >> 0x1f,uVar1,(uint)(iVar7 << 0xd) >> 0x1e,uVar3);
}
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
*(char *)(param_1 + 0x169ed) = *(char *)(param_1 + 0x169ec) + '\x02';
AsicRxAntEvalTimeout[param_1 + 5] = (code)0x1;
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x132c) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x132c) & 0xfffffffe;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
uVar6 = 0;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xb0300;
}
iVar7 = 1;
while( true ) {
uVar3 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if (((uVar3 & 0x20000) == 0) || (iVar7 == 100)) break;
iVar7 = iVar7 + 1;
}
if ((uVar3 & 0x2ff00) == 0x300) {
uVar6 = uVar3 & 0xff;
goto LAB_0005b074;
}
}
iVar5 = iVar5 + 1;
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar6 = 0;
LAB_0005b074:
if ((int)(uVar3 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",0,3);
uVar6 = (uint)*(byte *)(param_1 + 0x4acc);
LAB_0005b20c:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
else {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xb0300;
}
AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
RTMPusecDelay(1000);
iVar7 = 1;
while( true ) {
uVar3 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if (((uVar3 & 0x20000) == 0) || (iVar7 == 100)) break;
iVar7 = iVar7 + 1;
}
if ((uVar3 & 0x2ff00) == 0x300) {
uVar6 = uVar3 & 0xff;
goto LAB_0005b1b4;
}
}
iVar5 = iVar5 + 1;
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar6 = 0;
LAB_0005b1b4:
if ((int)(uVar3 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",1,3);
uVar6 = (uint)*(byte *)(param_1 + 0x4acc);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
}
goto LAB_0005b20c;
}
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
if (cVar2 == '\x01') {
Status = Status & 0xfffffffe;
if (uVar8 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
uVar3 = Status;
uVar6 = uVar6 & 0xdf;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005b304;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = uVar6 | 0xa0300;
}
*(char *)(param_1 + 0x4acc) = (char)uVar6;
if (iVar5 != 100) goto LAB_0005b324;
LAB_0005b304:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",3);
LAB_0005b324:
if (*(char *)(param_1 + 0xad) == '\x01') {
LAB_0005b4dc:
Status = Status & 0xfffffffe;
if (uVar8 != 0) {
Status = Status | 1;
}
goto LAB_0005b4ec;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005b480;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar6 | 0xa0300;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar6 | 0x80300;
}
*(char *)(param_1 + 0x4acc) = (char)uVar6;
if (iVar5 != 100) goto LAB_0005b4c8;
LAB_0005b480:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",3);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
LAB_0005b4c8:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
if (cVar2 == '\x01') goto LAB_0005b4dc;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
LAB_0005b4ec:
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_0005b540:
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) != 0) {
LAB_0005b5cc:
iVar5 = iVar5 + 1;
if (iVar5 == 100) goto LAB_0005b5d4;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_0005b540;
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xb0400;
}
iVar7 = 1;
while( true ) {
uVar3 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if (((uVar3 & 0x20000) == 0) || (iVar7 == 100)) break;
iVar7 = iVar7 + 1;
}
if ((uVar3 & 0x2ff00) != 0x400) goto LAB_0005b5cc;
uVar6 = uVar3 & 0xff;
LAB_0005b5d4:
if ((int)(uVar3 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",0,4);
uVar6 = (uint)*(byte *)(param_1 + 0x4acd);
LAB_0005b768:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
else {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_0005b644:
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) != 0) {
LAB_0005b708:
iVar5 = iVar5 + 1;
if (iVar5 == 100) goto LAB_0005b710;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_0005b644;
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xb0400;
}
AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
RTMPusecDelay(1000);
iVar7 = 1;
while( true ) {
uVar3 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if (((uVar3 & 0x20000) == 0) || (iVar7 == 100)) break;
iVar7 = iVar7 + 1;
}
if ((uVar3 & 0x2ff00) != 0x400) goto LAB_0005b708;
uVar6 = uVar3 & 0xff;
LAB_0005b710:
if ((int)(uVar3 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",1,4);
uVar6 = (uint)*(byte *)(param_1 + 0x4acd);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
}
goto LAB_0005b768;
}
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
if (cVar2 == '\x01') {
Status = Status & 0xfffffffe;
if (uVar8 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
uVar6 = uVar6 & 0xe7;
bVar10 = (byte)uVar6 | 0x10;
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005b868;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = uVar6 | 0xa0410;
}
*(byte *)(param_1 + 0x4acd) = bVar10;
if (iVar5 != 100) goto LAB_0005b888;
LAB_0005b868:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",4);
LAB_0005b888:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
uVar8 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar8 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005b9e4;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar6 | 0xa0410;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar6 | 0x80410;
}
*(byte *)(param_1 + 0x4acd) = bVar10;
if (iVar5 != 100) goto LAB_0005ba2c;
LAB_0005b9e4:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",4);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
LAB_0005ba2c:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
if ((cVar2 == '\x01') && (Status = Status & 0xfffffffe, uVar8 != 0)) {
Status = Status | 1;
}
}
uVar3 = Status;
if (*(byte *)(param_1 + 0x169ec) < 0xf) {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
uVar1 = 0x38;
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4238;
uVar1 = 0x38;
}
goto LAB_0005bd40;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_0005bd54:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x42);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4238;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x38;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84238;
}
uVar1 = 0x38;
}
goto LAB_0005becc;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_0005bee0:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x42);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
joined_r0x0005bf30:
if ((cVar2 == '\x01') && (Status = Status & 0xfffffffe, uVar6 != 0)) {
Status = Status | 1;
}
}
}
else if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) != 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_0005bb70:
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4248;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x48;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84248;
}
uVar1 = 0x48;
}
LAB_0005becc:
*(undefined1 *)(param_1 + 0x4b0b) = uVar1;
if (iVar5 == 100) goto LAB_0005bee0;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x0005bf30;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 != 100) goto code_r0x0005bbcc;
goto LAB_0005bee0;
}
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
do {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4248;
uVar1 = 0x48;
}
else {
uVar1 = 0x48;
}
LAB_0005bd40:
*(undefined1 *)(param_1 + 0x4b0b) = uVar1;
if (iVar5 == 100) goto LAB_0005bd54;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x0005bf30;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005bd54;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
} while( true );
}
uVar3 = Status;
if (*(int *)(param_1 + 0x4a94) == 0x28600100) {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005c03c;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa451a;
}
*(undefined1 *)(param_1 + 0x4b0e) = 0x1a;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005c060;
}
LAB_0005c03c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x45);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_0005c060:
if (cVar2 == '\x01') {
LAB_0005c224:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005c1c8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa451a;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x8451a;
}
*(undefined1 *)(param_1 + 0x4b0e) = 0x1a;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005c214;
}
LAB_0005c1c8:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x45);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_0005c214:
if (cVar2 == '\x01') goto LAB_0005c224;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005c314;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa460a;
}
*(undefined1 *)(param_1 + 0x4b0f) = 10;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005c338;
}
LAB_0005c314:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x46);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_0005c338:
if (cVar2 == '\x01') {
LAB_0005c4fc:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005c4a0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa460a;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x8460a;
}
*(undefined1 *)(param_1 + 0x4b0f) = 10;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005c4ec;
}
LAB_0005c4a0:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x46);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_0005c4ec:
if (cVar2 == '\x01') goto LAB_0005c4fc;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) != 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_0005c618:
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4916;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x16;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84916;
}
uVar1 = 0x16;
}
LAB_0005cf24:
*(undefined1 *)(param_1 + 0x4b12) = uVar1;
if (iVar5 == 100) goto LAB_0005cf38;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x0005cf88;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 != 100) goto code_r0x0005c674;
goto LAB_0005cf38;
}
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
do {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4916;
uVar1 = 0x16;
}
else {
uVar1 = 0x16;
}
LAB_0005cd98:
*(undefined1 *)(param_1 + 0x4b12) = uVar1;
if (iVar5 == 100) goto LAB_0005cdac;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x0005cf88;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005cdac;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
} while( true );
}
}
else {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005c7fc;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4512;
}
*(undefined1 *)(param_1 + 0x4b0e) = 0x12;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005c820;
}
LAB_0005c7fc:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x45);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_0005c820:
if (cVar2 == '\x01') {
LAB_0005c9e4:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005c988;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4512;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84512;
}
*(undefined1 *)(param_1 + 0x4b0e) = 0x12;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005c9d4;
}
LAB_0005c988:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x45);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_0005c9d4:
if (cVar2 == '\x01') goto LAB_0005c9e4;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005cad4;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa460a;
}
*(undefined1 *)(param_1 + 0x4b0f) = 10;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005caf8;
}
LAB_0005cad4:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x46);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_0005caf8:
if (cVar2 == '\x01') {
LAB_0005ccbc:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0005cc60;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa460a;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x8460a;
}
*(undefined1 *)(param_1 + 0x4b0f) = 10;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0005ccac;
}
LAB_0005cc60:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x46);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_0005ccac:
if (cVar2 == '\x01') goto LAB_0005ccbc;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
uVar1 = 0x10;
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4910;
uVar1 = 0x10;
}
goto LAB_0005cd98;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_0005cdac:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x49);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4910;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x10;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84910;
}
uVar1 = 0x10;
}
goto LAB_0005cf24;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_0005cf38:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x49);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
joined_r0x0005cf88:
if ((cVar2 == '\x01') && (Status = Status & 0xfffffffe, uVar6 != 0)) {
Status = Status | 1;
}
}
}
if (2 < RTDebugLevel) {
iVar5 = *(int *)(param_1 + 0x16afc);
uVar1 = *(undefined1 *)(param_1 + 0x169ec);
iVar7 = *(int *)(param_1 + 0x16a44);
uVar3 = (uint)(*(int *)(param_1 + 0x16b18) << 0x16) >> 0x1e;
pcVar4 = "ApStartUp : ExtAbove, ChannelWidth=%d, Channel=%d, ExtChanOffset=%d(%d) \n";
goto LAB_00060bc4;
}
}
uVar3 = Status;
if (*(byte *)(param_1 + 0x169ec) < 0xf) {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_0006148c;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa3e2d;
}
*(undefined1 *)(param_1 + 0x4b07) = 0x2d;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000614b0;
}
LAB_0006148c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x3e);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000614b0:
if (cVar2 == '\x01') {
LAB_00061674:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_00061618;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa3e2d;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x83e2d;
}
*(undefined1 *)(param_1 + 0x4b07) = 0x2d;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_00061664;
}
LAB_00061618:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x3e);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_00061664:
if (cVar2 == '\x01') goto LAB_00061674;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_00061764;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa3f2d;
}
*(undefined1 *)(param_1 + 0x4b08) = 0x2d;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_00061788;
}
LAB_00061764:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x3f);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_00061788:
if (cVar2 != '\x01') {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_00061960;
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000618f0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa3f2d;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x83f2d;
}
*(undefined1 *)(param_1 + 0x4b08) = 0x2d;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_0006193c;
}
LAB_000618f0:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x3f);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_0006193c:
if (cVar2 != '\x01') {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_00061960;
}
}
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_00061960:
uVar3 = Status;
if (cVar2 != '\0') {
return;
}
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
uVar1 = 0x2d;
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa402d;
uVar1 = 0x2d;
}
goto LAB_00061a24;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_00061a38:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x40);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa402d;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x2d;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x8402d;
}
uVar1 = 0x2d;
}
goto LAB_00061bb0;
}
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_00061bc4:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x40);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
}
joined_r0x00061c14:
if (cVar2 != '\x01') {
return;
}
Status = Status & 0xfffffffe;
if (uVar6 == 0) {
return;
}
Status = Status | 1;
return;
}
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_00060cd0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa3e1d;
}
*(undefined1 *)(param_1 + 0x4b07) = 0x1d;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_00060cf4;
}
LAB_00060cd0:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x3e);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_00060cf4:
if (cVar2 == '\x01') {
LAB_00060eb8:
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_00060e5c;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa3e1d;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x83e1d;
}
*(undefined1 *)(param_1 + 0x4b07) = 0x1d;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_00060ea8;
}
LAB_00060e5c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x3e);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_00060ea8:
if (cVar2 == '\x01') goto LAB_00060eb8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_00060fa8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa3f1d;
}
*(undefined1 *)(param_1 + 0x4b08) = 0x1d;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_00060fcc;
}
LAB_00060fa8:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x3f);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_00060fcc:
if (cVar2 != '\x01') {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_000611a4;
}
}
else {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) break;
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_00061134;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa3f1d;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar7 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x83f1d;
}
*(undefined1 *)(param_1 + 0x4b08) = 0x1d;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_00061180;
}
LAB_00061134:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x3f);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_00061180:
if (cVar2 != '\x01') {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_000611a4;
}
}
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_000611a4:
uVar3 = Status;
if (cVar2 != '\0') {
return;
}
if (*(int *)(param_1 + 0x29f8) != 4) {
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_000612a8:
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa401d;
}
iVar7 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar1 = 0x1d;
if (iVar7 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x8401d;
}
uVar1 = 0x1d;
}
LAB_00061bb0:
*(undefined1 *)(param_1 + 0x4b09) = uVar1;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x00061c14;
}
}
else {
iVar7 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar7 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 != 100) goto code_r0x00061304;
}
goto LAB_00061bc4;
}
uVar6 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar6 = uVar3 & 1;
}
iVar5 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
do {
uVar3 = 0;
if (cVar2 == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar3 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa401d;
uVar1 = 0x1d;
}
else {
uVar1 = 0x1d;
}
LAB_00061a24:
*(undefined1 *)(param_1 + 0x4b09) = uVar1;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x00061c14;
}
goto LAB_00061a38;
}
iVar5 = iVar5 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_00061a38;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
} while( true );
code_r0x0005f7b8:
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_0005f75c;
code_r0x00060260:
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_00060204;
code_r0x0005dbb0:
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_0005db7c;
code_r0x0005dc88:
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_0005dc34;
code_r0x0005e738:
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_0005e6dc;
code_r0x0005bbcc:
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_0005bb70;
code_r0x0005c674:
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_0005c618;
code_r0x00061304:
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_000612a8;
}