void InitDesiredTSSITableDefault(int param_1)
{
char cVar1;
char cVar2;
code *pcVar3;
int iVar4;
uint uVar5;
char *pcVar6;
uint uVar7;
int iVar8;
ushort uVar9;
uint uVar10;
uint uVar11;
byte local_38 [2];
ushort local_36;
ushort local_34;
ushort local_32;
ushort local_30 [4];
local_36 = 0;
local_38[0] = 0;
local_34 = 0;
local_32 = 0;
local_30[0] = 0;
if (*(char *)(param_1 + 0x50ca) == '\0') {
return;
}
if (RTDebugLevel < 3) {
pcVar3 = *(code **)(param_1 + 0x10);
}
else {
printk("---> %s\n","InitDesiredTSSITableDefault");
pcVar3 = *(code **)(param_1 + 0x10);
}
(*pcVar3)(param_1,0x6e,local_30);
uVar9 = local_30[0] & 0xf;
(**(code **)(param_1 + 0x10))(param_1,0x76,&local_36);
local_36 = (ushort)(((uint)local_36 << 0x14) >> 0x1c);
(**(code **)(param_1 + 0x10))(param_1,0xe2,&local_32);
uVar5 = (uint)local_32;
local_32 = (ushort)((uVar5 << 0x14) >> 0x1c);
if (2 < RTDebugLevel) {
printk("%s: TSSIBase = %d, TSSIStepOver2dot4G = %d, TxPowerOFDM54 = %d\n",
"InitDesiredTSSITableDefault",uVar9,local_36,(uVar5 << 0x14) >> 0x1c);
}
(**(code **)(param_1 + 0x10))(param_1,0xde,&local_34);
local_34 = local_34 & 0xf;
if (2 < RTDebugLevel) {
printk("%s: 0xDE = 0x%X\n","InitDesiredTSSITableDefault");
}
cVar2 = (char)uVar9;
desiredTSSIOverCCK = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2 + '\x06';
DAT_000e4cd1 = desiredTSSIOverCCK;
(**(code **)(param_1 + 0x10))(param_1,0xde,&local_34);
local_34 = (ushort)(((uint)local_34 << 0x14) >> 0x1c);
if (2 < RTDebugLevel) {
printk("%s: 0xDF = 0x%X\n","InitDesiredTSSITableDefault");
}
DAT_000e4cd2 = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2 + '\x06';
pcVar6 = &desiredTSSIOverCCK;
cVar1 = desiredTSSIOverCCK;
DAT_000e4cd3 = DAT_000e4cd2;
while( true ) {
if (cVar1 < '\0') {
*pcVar6 = '\0';
}
else if ('\x1f' < cVar1) {
*pcVar6 = '\x1f';
}
pcVar6 = pcVar6 + 1;
if (pcVar6 == &desiredTSSIOverOFDM) break;
cVar1 = *pcVar6;
}
if (RTDebugLevel < 3) {
pcVar3 = *(code **)(param_1 + 0x10);
}
else {
printk("%s: desiredTSSIOverCCK[0] = %d, desiredTSSIOverCCK[1] = %d, desiredTSSIOverCCK[2] = %d, desiredTSSIOverCCK[3] = %d\n"
,"InitDesiredTSSITableDefault",(int)desiredTSSIOverCCK,(int)DAT_000e4cd1,
(int)DAT_000e4cd2,(int)DAT_000e4cd3);
pcVar3 = *(code **)(param_1 + 0x10);
}
(*pcVar3)(param_1,0xe0,&local_34);
local_34 = local_34 & 0xf;
if (2 < RTDebugLevel) {
printk("%s: 0xE0 = 0x%X\n","InitDesiredTSSITableDefault");
}
desiredTSSIOverOFDM = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4cd5 = desiredTSSIOverOFDM;
(**(code **)(param_1 + 0x10))(param_1,0xe0,&local_34);
local_34 = (ushort)(((uint)local_34 << 0x14) >> 0x1c);
if (2 < RTDebugLevel) {
printk("%s: 0xE1 = 0x%X\n","InitDesiredTSSITableDefault");
}
DAT_000e4cd6 = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4cd7 = DAT_000e4cd6;
(**(code **)(param_1 + 0x10))(param_1,0xe2,&local_34);
local_34 = local_34 & 0xf;
if (2 < RTDebugLevel) {
printk("%s: 0xE2 = 0x%X\n","InitDesiredTSSITableDefault");
}
DAT_000e4cd8 = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
pcVar6 = &desiredTSSIOverOFDM;
cVar1 = desiredTSSIOverOFDM;
DAT_000e4cd9 = DAT_000e4cd8;
DAT_000e4cda = cVar2;
DAT_000e4cdb = cVar2;
while( true ) {
if (cVar1 < '\0') {
*pcVar6 = '\0';
}
else if ('\x1f' < cVar1) {
*pcVar6 = '\x1f';
}
pcVar6 = pcVar6 + 1;
if (pcVar6 == &desiredTSSIOverHT) break;
cVar1 = *pcVar6;
}
if (2 < RTDebugLevel) {
printk("%s: desiredTSSIOverOFDM[0] = %d, desiredTSSIOverOFDM[1] = %d, desiredTSSIOverOFDM[2] = %d, desiredTSSIOverOFDM[3] = %d\n"
,"InitDesiredTSSITableDefault",(int)desiredTSSIOverOFDM,(int)DAT_000e4cd5,
(int)DAT_000e4cd6,(int)DAT_000e4cd7);
}
if (RTDebugLevel < 3) {
pcVar3 = *(code **)(param_1 + 0x10);
}
else {
printk("%s: desiredTSSIOverOFDM[4] = %d, desiredTSSIOverOFDM[5] = %d, desiredTSSIOverOFDM[6] = %d, desiredTSSIOverOFDM[7] = %d\n"
,"InitDesiredTSSITableDefault",(int)DAT_000e4cd8,(int)DAT_000e4cd9,(int)DAT_000e4cda,
(int)DAT_000e4cdb);
pcVar3 = *(code **)(param_1 + 0x10);
}
(*pcVar3)(param_1,0xe4,&local_34);
local_34 = local_34 & 0xf;
if (2 < RTDebugLevel) {
printk("%s: 0xE4 = 0x%X\n","InitDesiredTSSITableDefault");
}
desiredTSSIOverHT = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4cdd = desiredTSSIOverHT;
(**(code **)(param_1 + 0x10))(param_1,0xe4,&local_34);
local_34 = (ushort)(((uint)local_34 << 0x14) >> 0x1c);
if (2 < RTDebugLevel) {
printk("%s: 0xE5 = 0x%X\n","InitDesiredTSSITableDefault");
}
DAT_000e4cde = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4cdf = DAT_000e4cde;
(**(code **)(param_1 + 0x10))(param_1,0xe6,&local_34);
local_34 = local_34 & 0xf;
if (2 < RTDebugLevel) {
printk("%s: 0xE6 = 0x%X\n","InitDesiredTSSITableDefault");
}
DAT_000e4ce0 = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4ce1 = DAT_000e4ce0;
(**(code **)(param_1 + 0x10))(param_1,0xe6,&local_34);
local_34 = (ushort)(((uint)local_34 << 0x14) >> 0x1c);
if (2 < RTDebugLevel) {
printk("%s: 0xE7 = 0x%X\n","InitDesiredTSSITableDefault");
}
DAT_000e4ce2 = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4ce3 = DAT_000e4ce2 + -1;
uVar5 = 8;
if (8 < *(byte *)(param_1 + 0xd7)) {
(**(code **)(param_1 + 0x10))(param_1,0xe8,&local_34);
local_34 = local_34 & 0xf;
if (2 < RTDebugLevel) {
printk("EEPROM_HT_MCS9_MCS9(0xE8) = 0x%X\n");
}
DAT_000e4ce4 = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4ce5 = DAT_000e4ce4;
(**(code **)(param_1 + 0x10))(param_1,0xe8,&local_34);
local_34 = (ushort)(((uint)local_34 << 0x14) >> 0x1c);
if (2 < RTDebugLevel) {
printk("EEPROM_HT_MCS10_MCS11(0xE9) = 0x%X\n");
}
DAT_000e4ce6 = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4ce7 = DAT_000e4ce6;
(**(code **)(param_1 + 0x10))(param_1,0xea,&local_34);
local_34 = local_34 & 0xf;
if (2 < RTDebugLevel) {
printk("EEPROM_HT_MCS12_MCS13(0xEA) = 0x%X\n");
}
DAT_000e4ce8 = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4ce9 = DAT_000e4ce8;
(**(code **)(param_1 + 0x10))(param_1,0xea,&local_34);
local_34 = (ushort)(((uint)local_34 << 0x14) >> 0x1c);
if (2 < RTDebugLevel) {
printk("EEPROM_HT_MCS14_MCS15(0xEB) = 0x%X\n");
}
DAT_000e4cea = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4ceb = DAT_000e4cea + -1;
uVar5 = 0x10;
}
pcVar6 = &desiredTSSIOverHT;
uVar7 = 0;
do {
if (*pcVar6 < '\0') {
*pcVar6 = '\0';
}
else if ('\x1f' < *pcVar6) {
*pcVar6 = '\x1f';
}
uVar7 = uVar7 + 1;
pcVar6 = pcVar6 + 1;
} while (uVar7 < uVar5);
if (2 < RTDebugLevel) {
printk("%s: desiredTSSIOverHT[0] = %d, desiredTSSIOverHT[1] = %d, desiredTSSIOverHT[2] = %d, desiredTSSIOverHT[3] = %d\n"
,"InitDesiredTSSITableDefault",(int)desiredTSSIOverHT,(int)DAT_000e4cdd,(int)DAT_000e4cde
,(int)DAT_000e4cdf);
}
if (RTDebugLevel < 3) {
pcVar3 = *(code **)(param_1 + 0x10);
}
else {
printk("%s: desiredTSSIOverHT[4] = %d, desiredTSSIOverHT[5] = %d, desiredTSSIOverHT[6] = %d, desiredTSSIOverHT[7] = %d\n"
,"InitDesiredTSSITableDefault",(int)DAT_000e4ce0,(int)DAT_000e4ce1,(int)DAT_000e4ce2,
(int)DAT_000e4ce3);
pcVar3 = *(code **)(param_1 + 0x10);
}
(*pcVar3)(param_1,0xec,&local_34);
local_34 = local_34 & 0xf;
if (2 < RTDebugLevel) {
printk("%s: 0xEC = 0x%X\n","InitDesiredTSSITableDefault");
}
desiredTSSIOverHTUsingSTBC = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4ced = desiredTSSIOverHTUsingSTBC;
(**(code **)(param_1 + 0x10))(param_1,0xec,&local_34);
local_34 = (ushort)(((uint)local_34 << 0x14) >> 0x1c);
if (2 < RTDebugLevel) {
printk("%s: 0xED = 0x%X\n","InitDesiredTSSITableDefault");
}
DAT_000e4cee = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4cef = DAT_000e4cee;
(**(code **)(param_1 + 0x10))(param_1,0xee,&local_34);
local_34 = local_34 & 0xf;
if (2 < RTDebugLevel) {
printk("%s: 0xEE = 0x%X\n","InitDesiredTSSITableDefault");
}
DAT_000e4cf0 = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
DAT_000e4cf1 = DAT_000e4cf0;
(**(code **)(param_1 + 0x10))(param_1,0xee,&local_34);
local_34 = (ushort)(((uint)local_34 << 0x14) >> 0x1c);
if (2 < RTDebugLevel) {
printk("%s: 0xEF = 0x%X\n","InitDesiredTSSITableDefault");
}
DAT_000e4cf2 = (char)local_36 * '\x02' * ((char)local_34 - (char)local_32) + cVar2;
pcVar6 = &desiredTSSIOverHTUsingSTBC;
cVar2 = desiredTSSIOverHTUsingSTBC;
DAT_000e4cf3 = DAT_000e4cf2;
while( true ) {
if (cVar2 < '\0') {
*pcVar6 = '\0';
}
else if ('\x1f' < cVar2) {
*pcVar6 = '\x1f';
}
pcVar6 = pcVar6 + 1;
if (pcVar6 == (char *)0xe4cf4) break;
cVar2 = *pcVar6;
}
if (2 < RTDebugLevel) {
printk("%s: desiredTSSIOverHTUsingSTBC[0] = %d, desiredTSSIOverHTUsingSTBC[1] = %d, desiredTSSIOverHTUsingSTBC[2] = %d, desiredTSSIOverHTUsingSTBC[3] = %d\n"
,"InitDesiredTSSITableDefault",(int)desiredTSSIOverHTUsingSTBC,(int)DAT_000e4ced,
(int)DAT_000e4cee,(int)DAT_000e4cef);
}
if (2 < RTDebugLevel) {
printk("%s: desiredTSSIOverHTUsingSTBC[4] = %d, desiredTSSIOverHTUsingSTBC[5] = %d, desiredTSSIOverHTUsingSTBC[6] = %d, desiredTSSIOverHTUsingSTBC[7] = %d\n"
,"InitDesiredTSSITableDefault",(int)DAT_000e4cf0,(int)DAT_000e4cf1,(int)DAT_000e4cf2,
(int)DAT_000e4cf3);
}
RT30xxReadRFRegister(param_1,0x1b,local_38);
local_38[0] = local_38[0] & 0x77 | 0x88;
RT30xxWriteRFRegister(param_1,0x1b,local_38[0]);
RT30xxReadRFRegister(param_1,0x1c,local_38);
local_38[0] = local_38[0] & 0x9f;
RT30xxWriteRFRegister(param_1,0x1c,local_38[0]);
uVar5 = Status;
if (*(int *)(param_1 + 0x4a94) == 0x28720200) {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
if (*(char *)(param_1 + 0x4bd4) == '\v') {
if (cVar2 != '\0') {
uVar5 = 0;
goto LAB_00063df4;
}
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar5 & 1;
}
iVar8 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar5 = 0;
if (cVar2 == '\0') {
uVar5 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar5 & 0x20000) == 0) break;
iVar8 = iVar8 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar8 == 100) goto LAB_00063964;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xaff00;
}
*(undefined1 *)(param_1 + 0x4bc8) = 0;
if (iVar8 != 100) goto LAB_00063984;
LAB_00063964:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0xff);
LAB_00063984:
if (*(char *)(param_1 + 0xad) == '\x01') {
LAB_00063b40:
Status = Status & 0xfffffffe;
if (uVar7 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar7 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar7 = uVar5 & 1;
}
iVar8 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar5 = 0;
if (cVar2 == '\0') {
uVar5 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar5 & 0x20000) == 0) break;
iVar4 = iVar8 % 0x14;
iVar8 = iVar8 + 1;
if ((iVar4 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar5 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar8 == 100) goto LAB_00063ae4;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xaff00;
}
iVar4 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar4 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0x8ff00;
}
*(undefined1 *)(param_1 + 0x4bc8) = 0;
if (iVar8 != 100) goto LAB_00063b2c;
LAB_00063ae4:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0xff);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
LAB_00063b2c:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
if (cVar2 == '\x01') goto LAB_00063b40;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar7 = Status;
uVar11 = 0;
uVar5 = uVar11;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) != 4) {
uVar10 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar10 = uVar7 & 1;
}
iVar8 = 0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
do {
uVar7 = 0;
if (cVar2 == '\0') {
uVar7 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar7 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xb3100;
}
AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
RTMPusecDelay(1000);
iVar4 = 1;
while( true ) {
uVar7 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar7 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if (((uVar7 & 0x20000) == 0) || (iVar4 == 100)) break;
iVar4 = iVar4 + 1;
}
uVar5 = uVar7;
if ((uVar7 & 0x2ff00) == 0x3100) goto LAB_00063d74;
}
iVar8 = iVar8 + 1;
uVar5 = uVar11;
if (iVar8 == 100) goto LAB_00063d74;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
} while( true );
}
uVar10 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar10 = uVar7 & 1;
}
iVar8 = 0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
do {
uVar7 = 0;
if (cVar2 == '\0') {
uVar7 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar7 & 0x20000) == 0) {
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xb3100;
}
iVar4 = 1;
while( true ) {
uVar7 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar7 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if (((uVar7 & 0x20000) == 0) || (iVar4 == 100)) break;
iVar4 = iVar4 + 1;
}
uVar5 = uVar7;
if ((uVar7 & 0x2ff00) == 0x3100) goto LAB_00063c38;
}
iVar8 = iVar8 + 1;
uVar5 = uVar11;
if (iVar8 == 100) goto LAB_00063c38;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
} while( true );
}
goto LAB_00063df0;
LAB_00063d74:
if ((int)(uVar7 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",1,0x31);
uVar5 = (uint)*(byte *)(param_1 + 0x4afa);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
}
goto LAB_00063dcc;
}
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_00063dd0;
LAB_00063c38:
if ((int)(uVar7 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",0,0x31);
uVar5 = (uint)*(byte *)(param_1 + 0x4afa);
LAB_00063dcc:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
LAB_00063dd0:
if (cVar2 == '\x01') {
Status = Status & 0xfffffffe;
if (uVar10 != 0) {
Status = Status | 1;
}
LAB_00063df0:
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_00063df4:
uVar7 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar11 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar11 = uVar7 & 1;
}
iVar8 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar7 = 0;
if (cVar2 == '\0') {
uVar7 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if ((uVar7 & 0x20000) == 0) break;
iVar8 = iVar8 + 1;
printk(&_LC19) //possible issue identified - semgrep
if (iVar8 == 100) goto LAB_00063ec8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = uVar5 & 0x7f | 0xa3180;
}
*(byte *)(param_1 + 0x4afa) = (byte)(uVar5 & 0x7f) | 0x80;
if (iVar8 != 100) goto LAB_00063ee8;
LAB_00063ec8:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x31);
LAB_00063ee8:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
uVar11 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar11 = uVar7 & 1;
}
iVar8 = 1;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
while( true ) {
uVar7 = 0;
if (cVar2 == '\0') {
uVar7 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if ((uVar7 & 0x20000) == 0) break;
iVar4 = iVar8 % 0x14;
iVar8 = iVar8 + 1;
if ((iVar4 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar7 & 0xfffdffff;
}
printk(&_LC19) //possible issue identified - semgrep
if (iVar8 == 100) goto LAB_00064044;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar5 = uVar5 & 0x7f;
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar5 | 0xa3180;
}
iVar4 = AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
if (*(char *)(param_1 + 0x16964) == '\x01') {
RTMPusecDelay(1000);
}
if ((iVar4 == 0) && (*(char *)(param_1 + 0xec) == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar5 | 0x83180;
}
*(byte *)(param_1 + 0x4afa) = (byte)uVar5 | 0x80;
if (iVar8 != 100) goto LAB_0006408c;
LAB_00064044:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x31);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
LAB_0006408c:
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, uVar11 != 0)) {
Status = Status | 1;
}
}
if (2 < RTDebugLevel) {
printk("<--- %s\n","InitDesiredTSSITableDefault");
}
return;
}