int ATEConvertToRssi(int param_1,char param_2,char param_3)
{
byte bVar1;
int iVar2;
char cVar3;
char cVar4;
iVar2 = -99;
if (param_2 != '\0') {
bVar1 = *(byte *)(param_1 + 0x4be0);
if (bVar1 < 0xf) {
cVar4 = *(char *)(param_1 + 0x50e4) //possible issue identified - semgrep
if (param_3 == '\0') {
cVar3 = *(char *)(param_1 + 0x50de) //possible issue identified - semgrep
}
else if (param_3 == '\x01') {
cVar3 = *(char *)(param_1 + 0x50df) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e0) //possible issue identified - semgrep
}
}
else {
if (bVar1 < 0x41) {
cVar4 = *(char *)(param_1 + 0x50e5) //possible issue identified - semgrep
}
else if (bVar1 < 0x81) {
cVar4 = *(char *)(param_1 + 0x50e6) //possible issue identified - semgrep
}
else {
cVar4 = *(char *)(param_1 + 0x50e7) //possible issue identified - semgrep
}
if (param_3 == '\0') {
cVar3 = *(char *)(param_1 + 0x50e1) //possible issue identified - semgrep
}
else if (param_3 == '\x01') {
cVar3 = *(char *)(param_1 + 0x50e2) //possible issue identified - semgrep
}
else {
cVar3 = *(char *)(param_1 + 0x50e3) //possible issue identified - semgrep
}
}
iVar2 = (int)(char)(((-0xc - param_2) - cVar4) - cVar3);
}
return iVar2;
}