void RT305x_ChipSwitchChannel(int param_1,uint param_2,uint param_3)
{
int iVar1;
undefined1 uVar2;
char cVar3;
byte *pbVar4;
int iVar5;
byte *pbVar6;
uint uVar7;
byte bVar8;
code cVar9;
uint uVar10;
char cVar11;
undefined4 uVar12;
byte bVar13;
byte bVar14;
byte local_38 [8];
uint local_30;
uint local_2c;
local_30 = param_2 & 0xff;
local_2c = param_3 & 0xff;
pbVar4 = (byte *)(param_1 + 0x4c22);
local_38[0] = 0;
iVar5 = 0;
cVar3 = '\0';
do {
bVar14 = *pbVar4;
cVar11 = cVar3 + '\x01';
pbVar4 = pbVar4 + 10;
if (bVar14 == local_30) {
iVar5 = iVar5 * 10 + param_1;
bVar14 = *(byte *)(iVar5 + 0x4c25);
bVar13 = *(byte *)(iVar5 + 0x4c24);
if (cVar3 == '6') goto LAB_000b35d4;
goto LAB_000b35fc;
}
iVar5 = iVar5 + 1;
cVar3 = cVar11;
} while (cVar11 != '6');
bVar13 = 0;
bVar14 = 5;
LAB_000b35d4:
if (RTDebugLevel != 0) {
printk("AsicSwitchChannel: Can\'t find the Channel#%d \n",local_30);
}
LAB_000b35fc:
if ((*(int *)(param_1 + 0x4a94) == 0x28720200) &&
((((cVar3 = *(char *)(param_1 + 0x4bd4), (byte)(cVar3 - 0xbU) < 2 || (cVar3 == '\x05')) || //possible issue identified - semgrep
(cVar3 == '\a')) || (cVar3 == '\b')))) {
pbVar4 = FreqItems3020;
iVar5 = 0;
bVar8 = 0;
do {
iVar1 = iVar5;
pbVar6 = pbVar4;
if (NUM_OF_3020_CHNL <= bVar8) goto LAB_000b3b00;
pbVar4 = pbVar6 + 4;
iVar5 = iVar1 + 4;
bVar8 = bVar8 + 1;
} while (local_30 != *pbVar6);
RT30xxWriteRFRegister(param_1,2,pbVar6[1]);
if ((*(int *)(param_1 + 0x4a94) == 0x28720200) && (*(char *)(param_1 + 0x4bd4) == '\v')) {
RT30xxReadRFRegister(param_1,3,local_38);
local_38[0] = FreqItems3020[iVar1 + 3] & 0xf | local_38[0] & 0xf0;
RT30xxWriteRFRegister(param_1,3,local_38[0]);
}
else {
RT30xxWriteRFRegister(param_1,3,FreqItems3020[iVar1 + 3]);
}
RT30xxReadRFRegister(param_1,6,local_38);
local_38[0] = local_38[0] & 0xfc | FreqItems3020[iVar1 + 2];
RT30xxWriteRFRegister(param_1,6,local_38[0]);
RT30xxReadRFRegister(param_1,0xc,local_38);
local_38[0] = bVar13 | local_38[0] & 0xe0;
RT30xxWriteRFRegister(param_1,0xc,local_38[0]);
RT30xxReadRFRegister(param_1,0xd,local_38);
local_38[0] = bVar14 | local_38[0] & 0xe0;
RT30xxWriteRFRegister(param_1,0xd,local_38[0]);
RT30xxReadRFRegister(param_1,0x17,local_38);
local_38[0] = local_38[0] & 0x80 | *(byte *)(param_1 + 0x4bd8);
RT30xxWriteRFRegister(param_1,0x17,local_38[0]);
RT30xxReadRFRegister(param_1,0x18,local_38);
if ((*(int *)(param_1 + 0x4a94) == 0x28720200) && (*(char *)(param_1 + 0x4bd4) == '\v')) {
if (*(char *)(param_1 + 0x16982) == '\x01') {
local_38[0] = 0x1f;
}
else {
local_38[0] = 0x18;
}
}
else {
local_38[0] = local_38[0] & 0xdf;
}
if ((local_2c == 0) && (AsicRxAntEvalTimeout[param_1 + 5] == (code)0x1)) {
if ((*(int *)(param_1 + 0x4a94) == 0x28720200) && (*(char *)(param_1 + 0x4bd4) == '\v')) {
if (*(char *)(param_1 + 0x16982) == '\x01') {
local_38[0] = 0x3f;
}
else {
local_38[0] = 0x28;
}
}
else {
local_38[0] = local_38[0] | 0x20;
}
}
RT30xxWriteRFRegister(param_1,0x18,local_38[0]);
if ((local_2c == 0) && (AsicRxAntEvalTimeout[param_1 + 5] == (code)0x1)) {
if ((*(int *)(param_1 + 0x4a94) != 0x28720200) || (*(char *)(param_1 + 0x4bd4) != '\v')) {
uVar12 = 0x2f;
goto LAB_000b3980;
}
RT30xxWriteRFRegister(param_1,0x1f,0x68);
}
else {
if ((*(int *)(param_1 + 0x4a94) == 0x28720200) && (*(char *)(param_1 + 0x4bd4) == '\v')) {
uVar12 = 0x48;
}
else {
uVar12 = 0xf;
}
LAB_000b3980:
RT30xxWriteRFRegister(param_1,0x1f,uVar12);
}
RT30xxReadRFRegister(param_1,7,local_38);
local_38[0] = local_38[0] | 1;
RT30xxWriteRFRegister(param_1,7,local_38[0]);
RT30xxReadRFRegister(param_1,1,local_38);
local_38[0] = local_38[0] & 0xab;
uVar10 = *(uint *)(param_1 + 0x4bf4) & 0xf;
if (uVar10 == 2) {
LAB_000b3a28:
RT30xxWriteRFRegister(param_1,1,local_38[0]);
}
else if (uVar10 == 1) {
local_38[0] = local_38[0] | 0x10;
goto LAB_000b3a28;
}
RT30xxReadRFRegister(param_1,1,local_38);
local_38[0] = local_38[0] & 0x57;
uVar10 = *(uint *)(param_1 + 0x4bf4) & 0xf0;
if (uVar10 == 0x20) {
LAB_000b3a90:
RT30xxWriteRFRegister(param_1,1,local_38[0]);
uVar2 = (undefined1)local_30;
}
else {
if (uVar10 == 0x10) {
local_38[0] = local_38[0] | 0x20;
goto LAB_000b3a90;
}
uVar2 = (undefined1)local_30;
}
*(undefined1 *)(param_1 + 0x4be0) = uVar2;
}
else if (2 < RTDebugLevel) {
printk("SwitchChannel#%d : unknown RFIC=%d\n",local_30,*(undefined1 *)(param_1 + 0x4bd4));
}
LAB_000b3b00:
uVar10 = Status;
if (0xe < local_30) {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b52d0;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e4);
}
else if (bVar14 < 0x41) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e5);
}
else if (bVar14 < 0x81) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e6);
}
else {
uVar10 = (uint)*(byte *)(param_1 + 0x50e7);
}
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0x37 - uVar10 & 0xff | 0xa3e00;
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
cVar3 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
}
else if (bVar14 < 0x41) {
cVar3 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar14 < 0x81) {
cVar3 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
*(char *)(param_1 + 0x4b07) = '7' - cVar3;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b52f4;
}
LAB_000b52d0:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x3e);
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b52f4:
if (cVar3 == '\x01') {
LAB_000b5530:
Status = Status & 0xfffffffe;
if (uVar7 != 0) {
Status = Status | 1;
}
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) break;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b54d4;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e4);
}
else if (bVar14 < 0x41) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e5);
}
else if (bVar14 < 0x81) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e6);
}
else {
uVar10 = (uint)*(byte *)(param_1 + 0x50e7);
}
uVar10 = 0x37 - uVar10 & 0xff;
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 | 0xa3e00;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if (iVar1 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 | 0x83e00;
}
bVar14 = *(byte *)(param_1 + 0x4be0);
}
else {
bVar14 = *(byte *)(param_1 + 0x4be0);
}
if (bVar14 < 0xf) {
cVar3 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
}
else if (bVar14 < 0x41) {
cVar3 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar14 < 0x81) {
cVar3 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
*(char *)(param_1 + 0x4b07) = '7' - cVar3;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b5520;
}
LAB_000b54d4:
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;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000b5520:
if (cVar3 == '\x01') goto LAB_000b5530;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar10 = Status;
if (cVar3 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b5690;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e4);
}
else if (bVar14 < 0x41) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e5);
}
else if (bVar14 < 0x81) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e6);
}
else {
uVar10 = (uint)*(byte *)(param_1 + 0x50e7);
}
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0x37 - uVar10 & 0xff | 0xa3f00;
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
cVar3 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
}
else if (bVar14 < 0x41) {
cVar3 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar14 < 0x81) {
cVar3 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
*(char *)(param_1 + 0x4b08) = '7' - cVar3;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b56b4;
}
LAB_000b5690:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x3f);
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b56b4:
if (cVar3 == '\x01') {
LAB_000b58f0:
Status = Status & 0xfffffffe;
if (uVar7 != 0) {
Status = Status | 1;
}
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) break;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b5894;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e4);
}
else if (bVar14 < 0x41) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e5);
}
else if (bVar14 < 0x81) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e6);
}
else {
uVar10 = (uint)*(byte *)(param_1 + 0x50e7);
}
uVar10 = 0x37 - uVar10 & 0xff;
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 | 0xa3f00;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if (iVar1 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 | 0x83f00;
}
bVar14 = *(byte *)(param_1 + 0x4be0);
}
else {
bVar14 = *(byte *)(param_1 + 0x4be0);
}
if (bVar14 < 0xf) {
cVar3 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
}
else if (bVar14 < 0x41) {
cVar3 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar14 < 0x81) {
cVar3 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
*(char *)(param_1 + 0x4b08) = '7' - cVar3;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b58e0;
}
LAB_000b5894:
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;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000b58e0:
if (cVar3 == '\x01') goto LAB_000b58f0;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar10 = Status;
if (cVar3 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b5a50;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e4);
}
else if (bVar14 < 0x41) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e5);
}
else if (bVar14 < 0x81) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e6);
}
else {
uVar10 = (uint)*(byte *)(param_1 + 0x50e7);
}
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0x37 - uVar10 & 0xff | 0xa4000;
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
cVar3 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
}
else if (bVar14 < 0x41) {
cVar3 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar14 < 0x81) {
cVar3 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
*(char *)(param_1 + 0x4b09) = '7' - cVar3;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b5a74;
}
LAB_000b5a50:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x40);
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b5a74:
if (cVar3 == '\x01') {
LAB_000b5cb0:
Status = Status & 0xfffffffe;
if (uVar7 != 0) {
Status = Status | 1;
}
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) break;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b5c54;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e4);
}
else if (bVar14 < 0x41) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e5);
}
else if (bVar14 < 0x81) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e6);
}
else {
uVar10 = (uint)*(byte *)(param_1 + 0x50e7);
}
uVar10 = 0x37 - uVar10 & 0xff;
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 | 0xa4000;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if (iVar1 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 | 0x84000;
}
bVar14 = *(byte *)(param_1 + 0x4be0);
}
else {
bVar14 = *(byte *)(param_1 + 0x4be0);
}
if (bVar14 < 0xf) {
cVar3 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
}
else if (bVar14 < 0x41) {
cVar3 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar14 < 0x81) {
cVar3 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
*(char *)(param_1 + 0x4b09) = '7' - cVar3;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b5ca0;
}
LAB_000b5c54:
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;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000b5ca0:
if (cVar3 == '\x01') goto LAB_000b5cb0;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar10 = Status;
if (cVar3 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b5da0;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa52f2;
}
*(undefined1 *)(param_1 + 0x4b1b) = 0xf2;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b5dc4;
}
LAB_000b5da0:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x52);
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b5dc4:
if (cVar3 == '\x01') {
LAB_000b5f88:
Status = Status & 0xfffffffe;
if (uVar7 != 0) {
Status = Status | 1;
}
iVar5 = *(int *)(param_1 + 0x4bf4);
}
else {
iVar5 = *(int *)(param_1 + 0x4bf4);
}
}
else {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) break;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b5f2c;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa52f2;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar1 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x852f2;
}
*(undefined1 *)(param_1 + 0x4b1b) = 0xf2;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b5f78;
}
LAB_000b5f2c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x52);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000b5f78:
if (cVar3 == '\x01') goto LAB_000b5f88;
iVar5 = *(int *)(param_1 + 0x4bf4);
}
}
else {
iVar5 = *(int *)(param_1 + 0x4bf4);
}
uVar10 = Status;
if (iVar5 << 0xc < 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) != 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_000b60b0:
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) {
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4b46;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar2 = 0x46;
if (iVar1 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84b46;
}
uVar2 = 0x46;
}
LAB_000b640c:
*(undefined1 *)(param_1 + 0x4b14) = uVar2;
if (iVar5 == 100) goto LAB_000b6420;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b646c;
}
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 != 100) goto code_r0x000b610c;
goto LAB_000b6420;
}
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
do {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) {
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4b46;
uVar2 = 0x46;
}
else {
uVar2 = 0x46;
}
LAB_000b6280:
*(undefined1 *)(param_1 + 0x4b14) = uVar2;
if (iVar5 == 100) goto LAB_000b6294;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b62b8;
}
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b6294;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
} while( true );
}
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) {
uVar2 = 0x50;
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4b50;
uVar2 = 0x50;
}
goto LAB_000b6280;
}
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_000b6294:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x4b);
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b62b8:
if (cVar3 == '\x01') {
LAB_000b647c:
Status = Status & 0xfffffffe;
if (uVar7 != 0) {
Status = Status | 1;
}
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) {
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4b50;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar2 = 0x50;
if (iVar1 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84b50;
}
uVar2 = 0x50;
}
goto LAB_000b640c;
}
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_000b6420:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x4b);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000b646c:
if (cVar3 == '\x01') goto LAB_000b647c;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x132c) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x132c) & 0xfffffff9 | 2;
uVar10 = *(uint *)(param_1 + 0x4bf4);
}
else {
uVar10 = *(uint *)(param_1 + 0x4bf4);
}
if ((uVar10 & 0xf0) == 0x10) {
uVar7 = 0x50f01;
}
else {
uVar7 = 0x50f05;
}
if ((uVar10 & 0xf) == 1) {
uVar7 = uVar7 & 0xfffff3ff;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x1328) = uVar7;
}
goto LAB_000b650c;
}
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b3c58;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e4);
}
else if (bVar14 < 0x41) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e5);
}
else if (bVar14 < 0x81) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e6);
}
else {
uVar10 = (uint)*(byte *)(param_1 + 0x50e7);
}
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0x37 - uVar10 & 0xff | 0xa3e00;
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
cVar3 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
}
else if (bVar14 < 0x41) {
cVar3 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar14 < 0x81) {
cVar3 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
*(char *)(param_1 + 0x4b07) = '7' - cVar3;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b3c7c;
}
LAB_000b3c58:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x3e);
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b3c7c:
if (cVar3 == '\x01') {
LAB_000b3eb8:
Status = Status & 0xfffffffe;
if (uVar7 != 0) {
Status = Status | 1;
}
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) break;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b3e5c;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e4);
}
else if (bVar14 < 0x41) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e5);
}
else if (bVar14 < 0x81) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e6);
}
else {
uVar10 = (uint)*(byte *)(param_1 + 0x50e7);
}
uVar10 = 0x37 - uVar10 & 0xff;
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 | 0xa3e00;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if (iVar1 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 | 0x83e00;
}
bVar14 = *(byte *)(param_1 + 0x4be0);
}
else {
bVar14 = *(byte *)(param_1 + 0x4be0);
}
if (bVar14 < 0xf) {
cVar3 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
}
else if (bVar14 < 0x41) {
cVar3 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar14 < 0x81) {
cVar3 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
*(char *)(param_1 + 0x4b07) = '7' - cVar3;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b3ea8;
}
LAB_000b3e5c:
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;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000b3ea8:
if (cVar3 == '\x01') goto LAB_000b3eb8;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar10 = Status;
if (cVar3 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b4018;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e4);
}
else if (bVar14 < 0x41) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e5);
}
else if (bVar14 < 0x81) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e6);
}
else {
uVar10 = (uint)*(byte *)(param_1 + 0x50e7);
}
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0x37 - uVar10 & 0xff | 0xa3f00;
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
cVar3 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
}
else if (bVar14 < 0x41) {
cVar3 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar14 < 0x81) {
cVar3 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
*(char *)(param_1 + 0x4b08) = '7' - cVar3;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b403c;
}
LAB_000b4018:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x3f);
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b403c:
if (cVar3 == '\x01') {
LAB_000b4278:
Status = Status & 0xfffffffe;
if (uVar7 != 0) {
Status = Status | 1;
}
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) break;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b421c;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e4);
}
else if (bVar14 < 0x41) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e5);
}
else if (bVar14 < 0x81) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e6);
}
else {
uVar10 = (uint)*(byte *)(param_1 + 0x50e7);
}
uVar10 = 0x37 - uVar10 & 0xff;
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 | 0xa3f00;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if (iVar1 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 | 0x83f00;
}
bVar14 = *(byte *)(param_1 + 0x4be0);
}
else {
bVar14 = *(byte *)(param_1 + 0x4be0);
}
if (bVar14 < 0xf) {
cVar3 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
}
else if (bVar14 < 0x41) {
cVar3 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar14 < 0x81) {
cVar3 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
*(char *)(param_1 + 0x4b08) = '7' - cVar3;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b4268;
}
LAB_000b421c:
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;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000b4268:
if (cVar3 == '\x01') goto LAB_000b4278;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar10 = Status;
if (cVar3 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b43d8;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e4);
}
else if (bVar14 < 0x41) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e5);
}
else if (bVar14 < 0x81) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e6);
}
else {
uVar10 = (uint)*(byte *)(param_1 + 0x50e7);
}
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0x37 - uVar10 & 0xff | 0xa4000;
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
cVar3 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
}
else if (bVar14 < 0x41) {
cVar3 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar14 < 0x81) {
cVar3 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
*(char *)(param_1 + 0x4b09) = '7' - cVar3;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b43fc;
}
LAB_000b43d8:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x40);
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b43fc:
if (cVar3 == '\x01') {
LAB_000b4638:
Status = Status & 0xfffffffe;
if (uVar7 != 0) {
Status = Status | 1;
}
iVar5 = *(int *)(param_1 + 0x4bf4);
}
else {
iVar5 = *(int *)(param_1 + 0x4bf4);
}
}
else {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) break;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b45dc;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
bVar14 = *(byte *)(param_1 + 0x4be0);
if (bVar14 < 0xf) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e4);
}
else if (bVar14 < 0x41) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e5);
}
else if (bVar14 < 0x81) {
uVar10 = (uint)*(byte *)(param_1 + 0x50e6);
}
else {
uVar10 = (uint)*(byte *)(param_1 + 0x50e7);
}
uVar10 = 0x37 - uVar10 & 0xff;
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 | 0xa4000;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if (iVar1 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 | 0x84000;
}
bVar14 = *(byte *)(param_1 + 0x4be0);
}
else {
bVar14 = *(byte *)(param_1 + 0x4be0);
}
if (bVar14 < 0xf) {
cVar3 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
}
else if (bVar14 < 0x41) {
cVar3 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar14 < 0x81) {
cVar3 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
*(char *)(param_1 + 0x4b09) = '7' - cVar3;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b4628;
}
LAB_000b45dc:
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;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000b4628:
if (cVar3 == '\x01') goto LAB_000b4638;
iVar5 = *(int *)(param_1 + 0x4bf4);
}
}
else {
iVar5 = *(int *)(param_1 + 0x4bf4);
}
uVar10 = Status;
if (iVar5 << 0xd < 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b4734;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa5262;
}
*(undefined1 *)(param_1 + 0x4b1b) = 0x62;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b4758;
}
LAB_000b4734:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x52);
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b4758:
if (cVar3 == '\x01') {
LAB_000b491c:
Status = Status & 0xfffffffe;
if (uVar7 != 0) {
Status = Status | 1;
}
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) break;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b48c0;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa5262;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar1 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x85262;
}
*(undefined1 *)(param_1 + 0x4b1b) = 0x62;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b490c;
}
LAB_000b48c0:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x52);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000b490c:
if (cVar3 == '\x01') goto LAB_000b491c;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar10 = Status;
if (cVar3 == '\0') {
if (*(int *)(param_1 + 0x29f8) != 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
LAB_000b4a38:
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) {
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4b46;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar2 = 0x46;
if (iVar1 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84b46;
}
uVar2 = 0x46;
}
LAB_000b506c:
*(undefined1 *)(param_1 + 0x4b14) = uVar2;
if (iVar5 == 100) goto LAB_000b5080;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b50cc;
}
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 != 100) goto code_r0x000b4a94;
goto LAB_000b5080;
}
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
do {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) {
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4b46;
uVar2 = 0x46;
}
else {
uVar2 = 0x46;
}
LAB_000b4ee0:
*(undefined1 *)(param_1 + 0x4b14) = uVar2;
if (iVar5 == 100) goto LAB_000b4ef4;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b4f18;
}
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b4ef4;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
} while( true );
}
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
if (*(char *)(param_1 + 0xec) == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) break;
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b4c1c;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa5284;
}
*(undefined1 *)(param_1 + 0x4b1b) = 0x84;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b4c40;
}
LAB_000b4c1c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x52);
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b4c40:
if (cVar3 == '\x01') {
LAB_000b4e04:
Status = Status & 0xfffffffe;
if (uVar7 != 0) {
Status = Status | 1;
}
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) break;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b4da8;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa5284;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar1 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x85284;
}
*(undefined1 *)(param_1 + 0x4b1b) = 0x84;
if (iVar5 != 100) {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b4df4;
}
LAB_000b4da8:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x52);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000b4df4:
if (cVar3 == '\x01') goto LAB_000b4e04;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar10 = Status;
if (cVar3 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar10 & 0x20000) == 0) {
uVar2 = 0x50;
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa4b50;
uVar2 = 0x50;
}
goto LAB_000b4ee0;
}
iVar5 = iVar5 + 1;
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_000b4ef4:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x4b);
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b4f18:
if (cVar3 == '\x01') {
LAB_000b50dc:
Status = Status & 0xfffffffe;
if (uVar7 != 0) {
Status = Status | 1;
}
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar10 & 1;
}
iVar5 = 1;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar10 = 0;
if (cVar3 == '\0') {
uVar10 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar10 & 0x20000) == 0) {
if (cVar3 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa4b50;
}
iVar1 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
uVar2 = 0x50;
if (iVar1 == 0) {
if (*(char *)(param_1 + 0xec) == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x84b50;
}
uVar2 = 0x50;
}
goto LAB_000b506c;
}
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar3 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar10 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) break;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_000b5080:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x4b);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_000b50cc:
if (cVar3 == '\x01') goto LAB_000b50dc;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x132c) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x132c) & 0xfffffff9 | 4;
uVar10 = *(uint *)(param_1 + 0x4bf4);
}
else {
uVar10 = *(uint *)(param_1 + 0x4bf4);
}
if ((uVar10 & 0xf0) == 0x10) {
uVar7 = 0x50f02;
}
else {
uVar7 = 0x50f0a;
}
if ((uVar10 & 0xf) == 1) {
uVar7 = uVar7 & 0xfffff3ff;
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar3 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x1328) = uVar7;
}
RtmpUpdateFilterCoefficientControl(param_1,local_30);
LAB_000b650c:
if (local_2c == 0) {
cVar9 = AsicRxAntEvalTimeout[param_1 + 5];
}
else {
cVar9 = (code)0x0;
}
RTMPSetAGCInitValue(param_1,cVar9);
RTMPusecDelay(1000);
return;
code_r0x000b610c:
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_000b60b0;
code_r0x000b4a94:
cVar3 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_000b4a38;
}