void RT305x_VdrTuning1(int param_1)
{
int iVar1;
char cVar2;
uint uVar3;
uint uVar4;
int iVar5;
uint uVar6;
byte bVar7;
uVar3 = Status;
if (*(short *)(param_1 + 0x16e26) != 0x3333) {
return;
}
uVar4 = 0;
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 = 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) = 0xb6800;
}
iVar1 = 1;
while( true ) {
uVar3 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x101c);
}
if (((uVar3 & 0x20000) == 0) || (iVar1 == 100)) break;
iVar1 = iVar1 + 1;
}
if ((uVar3 & 0x2ff00) == 0x6800) {
uVar4 = uVar3 & 0xff;
goto LAB_000b19b4;
}
}
iVar5 = iVar5 + 1;
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar4 = 0;
LAB_000b19b4:
if ((int)(uVar3 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",0,0x68);
uVar4 = (uint)*(byte *)(param_1 + 0x4b31);
LAB_000b1b4c:
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
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) = 0xb6800;
}
AsicSendCommandToMcuBBP(param_1,0x80,0xff,0,0,0);
RTMPusecDelay(1000);
iVar1 = 1;
while( true ) {
uVar3 = 0;
if (*(char *)(param_1 + 0xec) == '\0') {
uVar3 = *(uint *)(*(int *)(param_1 + 0xdc) + 0x7028);
}
if (((uVar3 & 0x20000) == 0) || (iVar1 == 100)) break;
iVar1 = iVar1 + 1;
}
if ((uVar3 & 0x2ff00) == 0x6800) {
uVar4 = uVar3 & 0xff;
goto LAB_000b1af4;
}
}
iVar5 = iVar5 + 1;
if (iVar5 == 100) break;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar4 = 0;
LAB_000b1af4:
if ((int)(uVar3 << 0xe) < 0) {
printk("ERROR!!! ");
printk("BBP(viaMCU=%d) read R%d fail\n",1,0x68);
uVar4 = (uint)*(byte *)(param_1 + 0x4b31);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
}
goto LAB_000b1b4c;
}
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
if (cVar2 == '\x01') {
Status = Status & 0xfffffffe;
if (uVar6 != 0) {
Status = Status | 1;
}
goto LAB_000b1b70;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
LAB_000b1b70:
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
uVar3 = Status;
if (cVar2 == '\0') {
bVar7 = (byte)uVar4 | 0x80;
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(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b1c48;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x101c) = uVar4 | 0xa6880;
}
*(byte *)(param_1 + 0x4b31) = bVar7;
if (iVar5 != 100) goto LAB_000b1c68;
LAB_000b1c48:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x68);
LAB_000b1c68:
if (*(char *)(param_1 + 0xad) == '\x01') {
LAB_000b1e20:
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;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b1dc4;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar4 | 0xa6880;
}
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')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar4 | 0x86880;
}
*(byte *)(param_1 + 0x4b31) = bVar7;
if (iVar5 != 100) goto LAB_000b1e0c;
LAB_000b1dc4:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x68);
if (*(char *)(param_1 + 0xec) == '\0') {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) =
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) & 0xfffdffff;
LAB_000b1e0c:
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
if (cVar2 == '\x01') goto LAB_000b1e20;
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) {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b1f10;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa6931;
}
*(undefined1 *)(param_1 + 0x4b32) = 0x31;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b1f34;
}
LAB_000b1f10:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x69);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b1f34:
if (cVar2 == '\x01') {
LAB_000b20f8:
Status = Status & 0xfffffffe;
if (uVar4 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b209c;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa6931;
}
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) = 0x86931;
}
*(undefined1 *)(param_1 + 0x4b32) = 0x31;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b20e8;
}
LAB_000b209c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x69);
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_000b20e8:
if (cVar2 == '\x01') goto LAB_000b20f8;
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) {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b21e8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa6a46;
}
*(undefined1 *)(param_1 + 0x4b33) = 0x46;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b220c;
}
LAB_000b21e8:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x6a);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b220c:
if (cVar2 == '\x01') {
LAB_000b23d0:
Status = Status & 0xfffffffe;
if (uVar4 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b2374;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa6a46;
}
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) = 0x86a46;
}
*(undefined1 *)(param_1 + 0x4b33) = 0x46;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b23c0;
}
LAB_000b2374:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x6a);
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_000b23c0:
if (cVar2 == '\x01') goto LAB_000b23d0;
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) {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b24c0;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa710d;
}
*(undefined1 *)(param_1 + 0x4b3a) = 0xd;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b24e4;
}
LAB_000b24c0:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x71);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b24e4:
if (cVar2 == '\x01') {
LAB_000b26a8:
Status = Status & 0xfffffffe;
if (uVar4 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b264c;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa710d;
}
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) = 0x8710d;
}
*(undefined1 *)(param_1 + 0x4b3a) = 0xd;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b2698;
}
LAB_000b264c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x71);
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_000b2698:
if (cVar2 == '\x01') goto LAB_000b26a8;
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) {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b2798;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa7264;
}
*(undefined1 *)(param_1 + 0x4b3b) = 100;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b27bc;
}
LAB_000b2798:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x72);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b27bc:
if (cVar2 == '\x01') {
LAB_000b2980:
Status = Status & 0xfffffffe;
if (uVar4 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b2924;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa7264;
}
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) = 0x87264;
}
*(undefined1 *)(param_1 + 0x4b3b) = 100;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b2970;
}
LAB_000b2924:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x72);
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_000b2970:
if (cVar2 == '\x01') goto LAB_000b2980;
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) {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b2a70;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa7334;
}
*(undefined1 *)(param_1 + 0x4b3c) = 0x34;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b2a94;
}
LAB_000b2a70:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x73);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b2a94:
if (cVar2 == '\x01') {
LAB_000b2c58:
Status = Status & 0xfffffffe;
if (uVar4 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
}
else {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b2bfc;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa7334;
}
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) = 0x87334;
}
*(undefined1 *)(param_1 + 0x4b3c) = 0x34;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b2c48;
}
LAB_000b2bfc:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x73);
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_000b2c48:
if (cVar2 == '\x01') goto LAB_000b2c58;
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) {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b2d48;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa7467;
}
*(undefined1 *)(param_1 + 0x4b3d) = 0x67;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b2d6c;
}
LAB_000b2d48:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x74);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
LAB_000b2d6c:
if (cVar2 != '\x01') {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_000b2f44;
}
}
else {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b2ed4;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa7467;
}
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) = 0x87467;
}
*(undefined1 *)(param_1 + 0x4b3d) = 0x67;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto LAB_000b2f20;
}
LAB_000b2ed4:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x74);
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_000b2f20:
if (cVar2 != '\x01') {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
goto LAB_000b2f44;
}
}
Status = Status & 0xfffffffe;
if (uVar4 != 0) {
Status = Status | 1;
}
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
else {
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
LAB_000b2f44:
uVar3 = Status;
if (cVar2 == '\0') {
if (*(int *)(param_1 + 0x29f8) == 4) {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b301c;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x101c) = 0xa7537;
}
*(undefined1 *)(param_1 + 0x4b3e) = 0x37;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x000b31f8;
}
LAB_000b301c:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x75);
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
}
else {
uVar4 = 0;
if (*(char *)(param_1 + 0xad) == '\x01') {
Status = Status & 0xfffffffe;
uVar4 = 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;
iVar1 = iVar5 % 0x14;
iVar5 = iVar5 + 1;
if ((iVar1 == 0) && (cVar2 == '\0')) {
*(uint *)(*(int *)(param_1 + 0xdc) + 0x7028) = uVar3 & 0xfffdffff;
}
printk(&_LC0) //possible issue identified - semgrep
if (iVar5 == 100) goto LAB_000b31a8;
cVar2 = *(char *)(param_1 + 0xec) //possible issue identified - semgrep
}
if (cVar2 == '\0') {
*(undefined4 *)(*(int *)(param_1 + 0xdc) + 0x7028) = 0xa7537;
}
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) = 0x87537;
}
*(undefined1 *)(param_1 + 0x4b3e) = 0x37;
if (iVar5 != 100) {
cVar2 = *(char *)(param_1 + 0xad) //possible issue identified - semgrep
goto joined_r0x000b31f8;
}
LAB_000b31a8:
printk("ERROR!!! ");
printk("BBP write R%d fail\n",0x75);
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_r0x000b31f8:
if ((cVar2 == '\x01') && (Status = Status & 0xfffffffe, uVar4 != 0)) {
Status = Status | 1;
}
}
return;
}