
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

Sym * sym_lookup(Sym_Table *sym_tab,bfd_vma address)

{
  Sym *pSVar1;
  uint *puVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  Sym *pSVar8;
  int local_2c;
  
  if (sym_tab->len != 0) {
    iVar4 = sym_tab->len - 1;
    pSVar8 = sym_tab->base;
    if (iVar4 == 0) {
      local_2c = 0;
    }
    else {
      iVar7 = 0;
      local_2c = 0;
      iVar6 = iVar4;
      do {
        while( true ) {
          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);
          iVar5 = (iVar7 + iVar6) / 2;
          pSVar1 = pSVar8 + iVar5;
          puVar2 = (uint *)((int)&pSVar1->addr + 4);
          if (*puVar2 <= address._4_4_ &&
              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;
          iVar6 = iVar5;
          if (iVar7 == iVar5) goto LAB_0001d53f;
        }
        puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4);
        if (address._4_4_ < *puVar2 ||
            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)) {
          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);
          if (uVar3 < address._4_4_ ||
              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {
            return (Sym *)0x0;
          }
          if ((debug_level & 0x200U) != 0) {
            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);
            return pSVar1;
          }
          return pSVar1;
        }
        iVar7 = iVar5 + 1;
      } while (iVar7 != iVar6);
LAB_0001d53f:
      pSVar8 = pSVar8 + iVar5 + 1;
    }
    puVar2 = (uint *)((int)&pSVar8->addr + 4);
    if ((*puVar2 <= address._4_4_ &&
         (uint)((uint)address < (uint)pSVar8->addr) <= address._4_4_ - *puVar2) &&
       (uVar3 = *(uint *)((int)&pSVar8->end_addr + 4),
       address._4_4_ <= uVar3 &&
       (uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_)) {
      if ((debug_level & 0x200U) != 0) {
        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4);
        return pSVar8;
      }
      return pSVar8;
    }
  }
  return (Sym *)0x0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint * FUN_0001d480(int *param_1,uint param_2,uint param_3)

{
  uint *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  uint *puVar6;
  int local_2c;
  
  if (*param_1 != 0) {
    iVar2 = *param_1 + -1;
    puVar6 = (uint *)param_1[1];
    if (iVar2 == 0) {
      local_2c = 0;
    }
    else {
      iVar5 = 0;
      local_2c = 0;
      iVar4 = iVar2;
      do {
        while( true ) {
          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);
          iVar3 = (iVar5 + iVar4) / 2;
          puVar1 = puVar6 + iVar3 * 0x3f;
          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;
          iVar4 = iVar3;
          if (iVar5 == iVar3) goto LAB_0001d53f;
        }
        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||
            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {
          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {
            return (uint *)0x0;
          }
          if ((DAT_0002e158 & 0x200) != 0) {
            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);
            return puVar1;
          }
          return puVar1;
        }
        iVar5 = iVar3 + 1;
      } while (iVar5 != iVar4);
LAB_0001d53f:
      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;
    }
    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&
       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {
      if ((DAT_0002e158 & 0x200) != 0) {
        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);
        return puVar6;
      }
      return puVar6;
    }
  }
  return (uint *)0x0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0xfb77
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x18],EBX
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EDX]
TEST EAX,EAX
JZ 0x0001d5b8
SUB EAX,0x1
MOV EDI,dword ptr [EDX + 0x4]
MOV dword ptr [ESP + 0x1c],EAX
MOV ECX,EAX
JZ 0x0001d5ed
LEA EAX,[EBX + 0x1158]
XOR EBP,EBP
XOR EBX,EBX
MOV dword ptr [ESP + 0x10],EBP
MOV EAX,dword ptr [EAX]
AND EAX,0x200
MOV dword ptr [ESP + 0x14],EAX
JMP 0x0001d50b
MOV EBP,dword ptr [ESP + 0x8]
CMP EBP,dword ptr [EDI + EDX*0x1 + 0xfc]
MOV EBP,dword ptr [ESP + 0xc]
SBB EBP,dword ptr [EDI + EDX*0x1 + 0x100]
JC 0x0001d5a0
LEA EBX,[EAX + 0x1]
CMP EBX,ECX
JZ 0x0001d53f
LEA EDX,[EBX + ECX*0x1]
CMP dword ptr [ESP + 0x14],0x1
SBB dword ptr [ESP + 0x10],-0x1
MOV EAX,EDX
MOV EBP,dword ptr [ESP + 0x8]
SHR EAX,0x1f
ADD EAX,EDX
SAR EAX,0x1
IMUL EDX,EAX,0xfc
LEA ESI,[EDI + EDX*0x1]
CMP EBP,dword ptr [ESI]
MOV EBP,dword ptr [ESP + 0xc]
SBB EBP,dword ptr [ESI + 0x4]
JNC 0x0001d4e8
MOV ECX,EAX
CMP EBX,ECX
JNZ 0x0001d50b
LEA ESI,[EAX + 0x1]
MOV EBP,dword ptr [ESP + 0x10]
IMUL ESI,ESI,0xfc
ADD ESI,EDI
MOV ECX,dword ptr [ESP + 0xc]
MOV EDI,dword ptr [ESP + 0x8]
CMP EDI,dword ptr [ESI]
MOV EAX,ECX
SBB EAX,dword ptr [ESI + 0x4]
JC 0x0001d5b8
MOV EAX,dword ptr [ESI + 0xc]
CMP dword ptr [ESI + 0x8],EDI
SBB EAX,ECX
JC 0x0001d5b8
MOV EAX,dword ptr [ESP + 0x18]
LEA EAX,[EAX + 0x1158]
MOV EAX,dword ptr [EAX]
TEST AH,0x2
JZ 0x0001d5ba
SUB ESP,0x4
PUSH dword ptr [ESP + 0x20]
PUSH EBP
MOV EBX,dword ptr [ESP + 0x24]
LEA EAX,[EBX + 0xffff7000]
PUSH EAX
CALL 0x00012070
ADD ESP,0x10
JMP 0x0001d5ba
MOV EAX,dword ptr [ESI + 0xc]
MOV EDI,dword ptr [ESP + 0x8]
CMP dword ptr [ESI + 0x8],EDI
SBB EAX,dword ptr [ESP + 0xc]
MOV EBP,dword ptr [ESP + 0x10]
JNC 0x0001d5c8
LEA ESI,[ESI]
XOR ESI,ESI
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JZ 0x0001d5ba
SUB ESP,0x4
PUSH dword ptr [ESP + 0x20]
PUSH EBP
MOV EBX,dword ptr [ESP + 0x24]
LEA EAX,[EBX + 0xffff6fd4]
PUSH EAX
CALL 0x00012070
ADD ESP,0x10
JMP 0x0001d5ba
MOV ESI,EDI
XOR EBP,EBP
JMP 0x0001d54e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint * FUN_0001d480(int *param_1,uint param_2,uint param_3)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  uint *puVar6;\n  int local_2c;\n  \n  if (*param_1 != 0) {\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }\n  return (uint *)0x0;\n}\n\n" comment (function_definition "uint * FUN_0001d480(int *param_1,uint param_2,uint param_3)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  uint *puVar6;\n  int local_2c;\n  \n  if (*param_1 != 0) {\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }\n  return (uint *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0001d480(int *param_1,uint param_2,uint param_3)" * (function_declarator "FUN_0001d480(int *param_1,uint param_2,uint param_3)" identifier (parameter_list "(int *param_1,uint param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  uint *puVar6;\n  int local_2c;\n  \n  if (*param_1 != 0) {\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }\n  return (uint *)0x0;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (*param_1 != 0) {\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }" { (expression_statement "iVar2 = *param_1 + -1;" (assignment_expression "iVar2 = *param_1 + -1" identifier = (binary_expression "*param_1 + -1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (expression_statement "puVar6 = (uint *)param_1[1];" (assignment_expression "puVar6 = (uint *)param_1[1]" identifier = (cast_expression "(uint *)param_1[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (if_statement "if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      local_2c = 0;\n    }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }" else (compound_statement "{\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (do_statement "do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);" do (compound_statement "{\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      }" { (while_statement "while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }" { (expression_statement "local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);" (assignment_expression "local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0)" identifier = (binary_expression "(local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0)" (parenthesized_expression "(local_2c + 1)" ( (binary_expression "local_2c + 1" identifier + number_literal) )) - (call_expression "(uint)((DAT_0002e158 & 0x200) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((DAT_0002e158 & 0x200) == 0)" ( (binary_expression "(DAT_0002e158 & 0x200) == 0" (parenthesized_expression "(DAT_0002e158 & 0x200)" ( (binary_expression "DAT_0002e158 & 0x200" identifier & number_literal) )) == number_literal) ))))) ;) (expression_statement "iVar3 = (iVar5 + iVar4) / 2;" (assignment_expression "iVar3 = (iVar5 + iVar4) / 2" identifier = (binary_expression "(iVar5 + iVar4) / 2" (parenthesized_expression "(iVar5 + iVar4)" ( (binary_expression "iVar5 + iVar4" identifier + identifier) )) / number_literal)) ;) (expression_statement "puVar1 = puVar6 + iVar3 * 0x3f;" (assignment_expression "puVar1 = puVar6 + iVar3 * 0x3f" identifier = (binary_expression "puVar6 + iVar3 * 0x3f" identifier + (binary_expression "iVar3 * 0x3f" identifier * number_literal))) ;) (if_statement "if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;" if (parenthesized_expression "(puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1])" ( (binary_expression "puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]" (binary_expression "puVar1[1] <= param_3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) <= identifier) && (binary_expression "(uint)(param_2 < *puVar1) <= param_3 - puVar1[1]" (call_expression "(uint)(param_2 < *puVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 < *puVar1)" ( (binary_expression "param_2 < *puVar1" identifier < (pointer_expression "*puVar1" * identifier)) ))) <= (binary_expression "param_3 - puVar1[1]" identifier - (subscript_expression "puVar1[1]" identifier [ number_literal ])))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) (if_statement "if (iVar5 == iVar3) goto LAB_0001d53f;" if (parenthesized_expression "(iVar5 == iVar3)" ( (binary_expression "iVar5 == iVar3" identifier == identifier) )) (goto_statement "goto LAB_0001d53f;" goto statement_identifier ;)) })) (if_statement "if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }" if (parenthesized_expression "(param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f]))" ( (binary_expression "param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])" (binary_expression "param_3 < puVar6[iVar3 * 0x3f + 0x40]" identifier < (subscript_expression "puVar6[iVar3 * 0x3f + 0x40]" identifier [ (binary_expression "iVar3 * 0x3f + 0x40" (binary_expression "iVar3 * 0x3f" identifier * number_literal) + number_literal) ])) || (binary_expression "param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])" (binary_expression "param_3 - puVar6[iVar3 * 0x3f + 0x40]" identifier - (subscript_expression "puVar6[iVar3 * 0x3f + 0x40]" identifier [ (binary_expression "iVar3 * 0x3f + 0x40" (binary_expression "iVar3 * 0x3f" identifier * number_literal) + number_literal) ])) < (call_expression "(uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 < puVar6[iVar3 * 0x3f + 0x3f])" ( (binary_expression "param_2 < puVar6[iVar3 * 0x3f + 0x3f]" identifier < (subscript_expression "puVar6[iVar3 * 0x3f + 0x3f]" identifier [ (binary_expression "iVar3 * 0x3f + 0x3f" (binary_expression "iVar3 * 0x3f" identifier * number_literal) + number_literal) ])) ))))) )) (compound_statement "{\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }" { (if_statement "if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }" if (parenthesized_expression "(puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2))" ( (binary_expression "puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)" (binary_expression "puVar1[3] < param_3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) < identifier) || (binary_expression "puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)" (binary_expression "puVar1[3] - param_3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) - identifier) < (call_expression "(uint)(puVar1[2] < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1[2] < param_2)" ( (binary_expression "puVar1[2] < param_2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) < identifier) ))))) )) (compound_statement "{\n            return (uint *)0x0;\n          }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }" if (parenthesized_expression "((DAT_0002e158 & 0x200) != 0)" ( (binary_expression "(DAT_0002e158 & 0x200) != 0" (parenthesized_expression "(DAT_0002e158 & 0x200)" ( (binary_expression "DAT_0002e158 & 0x200" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }" { (expression_statement "printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);" (call_expression "printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2)" identifier (argument_list "("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2)" ( (string_literal ""[sym_lookup] %d probes (symtab->len=%u)\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return puVar1;" return identifier ;) })) (return_statement "return puVar1;" return identifier ;) })) (expression_statement "iVar5 = iVar3 + 1;" (assignment_expression "iVar5 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != iVar4)" ( (binary_expression "iVar5 != iVar4" identifier != identifier) )) ;) (labeled_statement "LAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;" statement_identifier : (expression_statement "puVar6 = puVar6 + (iVar3 + 1) * 0x3f;" (assignment_expression "puVar6 = puVar6 + (iVar3 + 1) * 0x3f" identifier = (binary_expression "puVar6 + (iVar3 + 1) * 0x3f" identifier + (binary_expression "(iVar3 + 1) * 0x3f" (parenthesized_expression "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )) * number_literal))) ;)) }))) (if_statement "if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }" if (parenthesized_expression "((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3))" ( (binary_expression "(puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)" (parenthesized_expression "(puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1])" ( (binary_expression "puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]" (binary_expression "puVar6[1] <= param_3" (subscript_expression "puVar6[1]" identifier [ number_literal ]) <= identifier) && (binary_expression "(uint)(param_2 < *puVar6) <= param_3 - puVar6[1]" (call_expression "(uint)(param_2 < *puVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 < *puVar6)" ( (binary_expression "param_2 < *puVar6" identifier < (pointer_expression "*puVar6" * identifier)) ))) <= (binary_expression "param_3 - puVar6[1]" identifier - (subscript_expression "puVar6[1]" identifier [ number_literal ])))) )) && (parenthesized_expression "(param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)" ( (binary_expression "param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3" (binary_expression "param_3 <= puVar6[3]" identifier <= (subscript_expression "puVar6[3]" identifier [ number_literal ])) && (binary_expression "(uint)(puVar6[2] < param_2) <= puVar6[3] - param_3" (call_expression "(uint)(puVar6[2] < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar6[2] < param_2)" ( (binary_expression "puVar6[2] < param_2" (subscript_expression "puVar6[2]" identifier [ number_literal ]) < identifier) ))) <= (binary_expression "puVar6[3] - param_3" (subscript_expression "puVar6[3]" identifier [ number_literal ]) - identifier))) ))) )) (compound_statement "{\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }" { (if_statement "if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }" if (parenthesized_expression "((DAT_0002e158 & 0x200) != 0)" ( (binary_expression "(DAT_0002e158 & 0x200) != 0" (parenthesized_expression "(DAT_0002e158 & 0x200)" ( (binary_expression "DAT_0002e158 & 0x200" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }" { (expression_statement "printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);" (call_expression "printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2)" identifier (argument_list "("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2)" ( (string_literal ""[sym_lookup] %d (%u) probes, fall off\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return puVar6;" return identifier ;) })) (return_statement "return puVar6;" return identifier ;) })) })) (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nSym * sym_lookup(Sym_Table *sym_tab,bfd_vma address)\n\n{\n  Sym *pSVar1;\n  uint *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  Sym *pSVar8;\n  int local_2c;\n  \n  if (sym_tab->len != 0) {\n    iVar4 = sym_tab->len - 1;\n    pSVar8 = sym_tab->base;\n    if (iVar4 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar7 = 0;\n      local_2c = 0;\n      iVar6 = iVar4;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);\n          iVar5 = (iVar7 + iVar6) / 2;\n          pSVar1 = pSVar8 + iVar5;\n          puVar2 = (uint *)((int)&pSVar1->addr + 4);\n          if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;\n          iVar6 = iVar5;\n          if (iVar7 == iVar5) goto LAB_0001d53f;\n        }\n        puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4);\n        if (address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)) {\n          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);\n          if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }\n          if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }\n          return pSVar1;\n        }\n        iVar7 = iVar5 + 1;\n      } while (iVar7 != iVar6);\nLAB_0001d53f:\n      pSVar8 = pSVar8 + iVar5 + 1;\n    }\n    puVar2 = (uint *)((int)&pSVar8->addr + 4);\n    if ((*puVar2 <= address._4_4_ &&\n         (uint)((uint)address < (uint)pSVar8->addr) <= address._4_4_ - *puVar2) &&\n       (uVar3 = *(uint *)((int)&pSVar8->end_addr + 4),\n       address._4_4_ <= uVar3 &&\n       (uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_)) {\n      if ((debug_level & 0x200U) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4);\n        return pSVar8;\n      }\n      return pSVar8;\n    }\n  }\n  return (Sym *)0x0;\n}\n\n" comment comment (function_definition "Sym * sym_lookup(Sym_Table *sym_tab,bfd_vma address)\n\n{\n  Sym *pSVar1;\n  uint *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  Sym *pSVar8;\n  int local_2c;\n  \n  if (sym_tab->len != 0) {\n    iVar4 = sym_tab->len - 1;\n    pSVar8 = sym_tab->base;\n    if (iVar4 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar7 = 0;\n      local_2c = 0;\n      iVar6 = iVar4;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);\n          iVar5 = (iVar7 + iVar6) / 2;\n          pSVar1 = pSVar8 + iVar5;\n          puVar2 = (uint *)((int)&pSVar1->addr + 4);\n          if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;\n          iVar6 = iVar5;\n          if (iVar7 == iVar5) goto LAB_0001d53f;\n        }\n        puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4);\n        if (address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)) {\n          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);\n          if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }\n          if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }\n          return pSVar1;\n        }\n        iVar7 = iVar5 + 1;\n      } while (iVar7 != iVar6);\nLAB_0001d53f:\n      pSVar8 = pSVar8 + iVar5 + 1;\n    }\n    puVar2 = (uint *)((int)&pSVar8->addr + 4);\n    if ((*puVar2 <= address._4_4_ &&\n         (uint)((uint)address < (uint)pSVar8->addr) <= address._4_4_ - *puVar2) &&\n       (uVar3 = *(uint *)((int)&pSVar8->end_addr + 4),\n       address._4_4_ <= uVar3 &&\n       (uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_)) {\n      if ((debug_level & 0x200U) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4);\n        return pSVar8;\n      }\n      return pSVar8;\n    }\n  }\n  return (Sym *)0x0;\n}" type_identifier (pointer_declarator "* sym_lookup(Sym_Table *sym_tab,bfd_vma address)" * (function_declarator "sym_lookup(Sym_Table *sym_tab,bfd_vma address)" identifier (parameter_list "(Sym_Table *sym_tab,bfd_vma address)" ( (parameter_declaration "Sym_Table *sym_tab" type_identifier (pointer_declarator "*sym_tab" * identifier)) , (parameter_declaration "bfd_vma address" type_identifier identifier) )))) (compound_statement "{\n  Sym *pSVar1;\n  uint *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  Sym *pSVar8;\n  int local_2c;\n  \n  if (sym_tab->len != 0) {\n    iVar4 = sym_tab->len - 1;\n    pSVar8 = sym_tab->base;\n    if (iVar4 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar7 = 0;\n      local_2c = 0;\n      iVar6 = iVar4;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);\n          iVar5 = (iVar7 + iVar6) / 2;\n          pSVar1 = pSVar8 + iVar5;\n          puVar2 = (uint *)((int)&pSVar1->addr + 4);\n          if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;\n          iVar6 = iVar5;\n          if (iVar7 == iVar5) goto LAB_0001d53f;\n        }\n        puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4);\n        if (address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)) {\n          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);\n          if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }\n          if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }\n          return pSVar1;\n        }\n        iVar7 = iVar5 + 1;\n      } while (iVar7 != iVar6);\nLAB_0001d53f:\n      pSVar8 = pSVar8 + iVar5 + 1;\n    }\n    puVar2 = (uint *)((int)&pSVar8->addr + 4);\n    if ((*puVar2 <= address._4_4_ &&\n         (uint)((uint)address < (uint)pSVar8->addr) <= address._4_4_ - *puVar2) &&\n       (uVar3 = *(uint *)((int)&pSVar8->end_addr + 4),\n       address._4_4_ <= uVar3 &&\n       (uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_)) {\n      if ((debug_level & 0x200U) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4);\n        return pSVar8;\n      }\n      return pSVar8;\n    }\n  }\n  return (Sym *)0x0;\n}" { (declaration "Sym *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "Sym *pSVar8;" type_identifier (pointer_declarator "*pSVar8" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (sym_tab->len != 0) {\n    iVar4 = sym_tab->len - 1;\n    pSVar8 = sym_tab->base;\n    if (iVar4 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar7 = 0;\n      local_2c = 0;\n      iVar6 = iVar4;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);\n          iVar5 = (iVar7 + iVar6) / 2;\n          pSVar1 = pSVar8 + iVar5;\n          puVar2 = (uint *)((int)&pSVar1->addr + 4);\n          if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;\n          iVar6 = iVar5;\n          if (iVar7 == iVar5) goto LAB_0001d53f;\n        }\n        puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4);\n        if (address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)) {\n          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);\n          if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }\n          if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }\n          return pSVar1;\n        }\n        iVar7 = iVar5 + 1;\n      } while (iVar7 != iVar6);\nLAB_0001d53f:\n      pSVar8 = pSVar8 + iVar5 + 1;\n    }\n    puVar2 = (uint *)((int)&pSVar8->addr + 4);\n    if ((*puVar2 <= address._4_4_ &&\n         (uint)((uint)address < (uint)pSVar8->addr) <= address._4_4_ - *puVar2) &&\n       (uVar3 = *(uint *)((int)&pSVar8->end_addr + 4),\n       address._4_4_ <= uVar3 &&\n       (uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_)) {\n      if ((debug_level & 0x200U) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4);\n        return pSVar8;\n      }\n      return pSVar8;\n    }\n  }" if (parenthesized_expression "(sym_tab->len != 0)" ( (binary_expression "sym_tab->len != 0" (field_expression "sym_tab->len" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    iVar4 = sym_tab->len - 1;\n    pSVar8 = sym_tab->base;\n    if (iVar4 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar7 = 0;\n      local_2c = 0;\n      iVar6 = iVar4;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);\n          iVar5 = (iVar7 + iVar6) / 2;\n          pSVar1 = pSVar8 + iVar5;\n          puVar2 = (uint *)((int)&pSVar1->addr + 4);\n          if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;\n          iVar6 = iVar5;\n          if (iVar7 == iVar5) goto LAB_0001d53f;\n        }\n        puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4);\n        if (address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)) {\n          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);\n          if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }\n          if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }\n          return pSVar1;\n        }\n        iVar7 = iVar5 + 1;\n      } while (iVar7 != iVar6);\nLAB_0001d53f:\n      pSVar8 = pSVar8 + iVar5 + 1;\n    }\n    puVar2 = (uint *)((int)&pSVar8->addr + 4);\n    if ((*puVar2 <= address._4_4_ &&\n         (uint)((uint)address < (uint)pSVar8->addr) <= address._4_4_ - *puVar2) &&\n       (uVar3 = *(uint *)((int)&pSVar8->end_addr + 4),\n       address._4_4_ <= uVar3 &&\n       (uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_)) {\n      if ((debug_level & 0x200U) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4);\n        return pSVar8;\n      }\n      return pSVar8;\n    }\n  }" { (expression_statement "iVar4 = sym_tab->len - 1;" (assignment_expression "iVar4 = sym_tab->len - 1" identifier = (binary_expression "sym_tab->len - 1" (field_expression "sym_tab->len" identifier -> field_identifier) - number_literal)) ;) (expression_statement "pSVar8 = sym_tab->base;" (assignment_expression "pSVar8 = sym_tab->base" identifier = (field_expression "sym_tab->base" identifier -> field_identifier)) ;) (if_statement "if (iVar4 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar7 = 0;\n      local_2c = 0;\n      iVar6 = iVar4;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);\n          iVar5 = (iVar7 + iVar6) / 2;\n          pSVar1 = pSVar8 + iVar5;\n          puVar2 = (uint *)((int)&pSVar1->addr + 4);\n          if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;\n          iVar6 = iVar5;\n          if (iVar7 == iVar5) goto LAB_0001d53f;\n        }\n        puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4);\n        if (address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)) {\n          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);\n          if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }\n          if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }\n          return pSVar1;\n        }\n        iVar7 = iVar5 + 1;\n      } while (iVar7 != iVar6);\nLAB_0001d53f:\n      pSVar8 = pSVar8 + iVar5 + 1;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      local_2c = 0;\n    }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar7 = 0;\n      local_2c = 0;\n      iVar6 = iVar4;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);\n          iVar5 = (iVar7 + iVar6) / 2;\n          pSVar1 = pSVar8 + iVar5;\n          puVar2 = (uint *)((int)&pSVar1->addr + 4);\n          if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;\n          iVar6 = iVar5;\n          if (iVar7 == iVar5) goto LAB_0001d53f;\n        }\n        puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4);\n        if (address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)) {\n          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);\n          if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }\n          if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }\n          return pSVar1;\n        }\n        iVar7 = iVar5 + 1;\n      } while (iVar7 != iVar6);\nLAB_0001d53f:\n      pSVar8 = pSVar8 + iVar5 + 1;\n    }" else (compound_statement "{\n      iVar7 = 0;\n      local_2c = 0;\n      iVar6 = iVar4;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);\n          iVar5 = (iVar7 + iVar6) / 2;\n          pSVar1 = pSVar8 + iVar5;\n          puVar2 = (uint *)((int)&pSVar1->addr + 4);\n          if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;\n          iVar6 = iVar5;\n          if (iVar7 == iVar5) goto LAB_0001d53f;\n        }\n        puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4);\n        if (address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)) {\n          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);\n          if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }\n          if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }\n          return pSVar1;\n        }\n        iVar7 = iVar5 + 1;\n      } while (iVar7 != iVar6);\nLAB_0001d53f:\n      pSVar8 = pSVar8 + iVar5 + 1;\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "iVar6 = iVar4;" (assignment_expression "iVar6 = iVar4" identifier = identifier) ;) (do_statement "do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);\n          iVar5 = (iVar7 + iVar6) / 2;\n          pSVar1 = pSVar8 + iVar5;\n          puVar2 = (uint *)((int)&pSVar1->addr + 4);\n          if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;\n          iVar6 = iVar5;\n          if (iVar7 == iVar5) goto LAB_0001d53f;\n        }\n        puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4);\n        if (address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)) {\n          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);\n          if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }\n          if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }\n          return pSVar1;\n        }\n        iVar7 = iVar5 + 1;\n      } while (iVar7 != iVar6);" do (compound_statement "{\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);\n          iVar5 = (iVar7 + iVar6) / 2;\n          pSVar1 = pSVar8 + iVar5;\n          puVar2 = (uint *)((int)&pSVar1->addr + 4);\n          if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;\n          iVar6 = iVar5;\n          if (iVar7 == iVar5) goto LAB_0001d53f;\n        }\n        puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4);\n        if (address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)) {\n          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);\n          if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }\n          if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }\n          return pSVar1;\n        }\n        iVar7 = iVar5 + 1;\n      }" { (while_statement "while( true ) {\n          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);\n          iVar5 = (iVar7 + iVar6) / 2;\n          pSVar1 = pSVar8 + iVar5;\n          puVar2 = (uint *)((int)&pSVar1->addr + 4);\n          if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;\n          iVar6 = iVar5;\n          if (iVar7 == iVar5) goto LAB_0001d53f;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);\n          iVar5 = (iVar7 + iVar6) / 2;\n          pSVar1 = pSVar8 + iVar5;\n          puVar2 = (uint *)((int)&pSVar1->addr + 4);\n          if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;\n          iVar6 = iVar5;\n          if (iVar7 == iVar5) goto LAB_0001d53f;\n        }" { (expression_statement "local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0);" (assignment_expression "local_2c = (local_2c + 1) - (uint)((debug_level & 0x200U) == 0)" identifier = (binary_expression "(local_2c + 1) - (uint)((debug_level & 0x200U) == 0)" (parenthesized_expression "(local_2c + 1)" ( (binary_expression "local_2c + 1" identifier + number_literal) )) - (call_expression "(uint)((debug_level & 0x200U) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((debug_level & 0x200U) == 0)" ( (binary_expression "(debug_level & 0x200U) == 0" (parenthesized_expression "(debug_level & 0x200U)" ( (binary_expression "debug_level & 0x200U" identifier & number_literal) )) == number_literal) ))))) ;) (expression_statement "iVar5 = (iVar7 + iVar6) / 2;" (assignment_expression "iVar5 = (iVar7 + iVar6) / 2" identifier = (binary_expression "(iVar7 + iVar6) / 2" (parenthesized_expression "(iVar7 + iVar6)" ( (binary_expression "iVar7 + iVar6" identifier + identifier) )) / number_literal)) ;) (expression_statement "pSVar1 = pSVar8 + iVar5;" (assignment_expression "pSVar1 = pSVar8 + iVar5" identifier = (binary_expression "pSVar8 + iVar5" identifier + identifier)) ;) (expression_statement "puVar2 = (uint *)((int)&pSVar1->addr + 4);" (assignment_expression "puVar2 = (uint *)((int)&pSVar1->addr + 4)" identifier = (cast_expression "(uint *)((int)&pSVar1->addr + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pSVar1->addr + 4)" ( (binary_expression "(int)&pSVar1->addr + 4" (cast_expression "(int)&pSVar1->addr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pSVar1->addr" & (field_expression "pSVar1->addr" identifier -> field_identifier))) + number_literal) )))) ;) (if_statement "if (*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2) break;" if (parenthesized_expression "(*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2)" ( (binary_expression "*puVar2 <= address._4_4_ &&\n              (uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2" (binary_expression "*puVar2 <= address._4_4_" (pointer_expression "*puVar2" * identifier) <= (field_expression "address._4_4_" identifier . field_identifier)) && (binary_expression "(uint)((uint)address < (uint)pSVar1->addr) <= address._4_4_ - *puVar2" (call_expression "(uint)((uint)address < (uint)pSVar1->addr)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)address < (uint)pSVar1->addr)" ( (binary_expression "(uint)address < (uint)pSVar1->addr" (cast_expression "(uint)address" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)pSVar1->addr" ( (type_descriptor "uint" type_identifier) ) (field_expression "pSVar1->addr" identifier -> field_identifier))) ))) <= (binary_expression "address._4_4_ - *puVar2" (field_expression "address._4_4_" identifier . field_identifier) - (pointer_expression "*puVar2" * identifier)))) )) (break_statement "break;" break ;)) (expression_statement "iVar6 = iVar5;" (assignment_expression "iVar6 = iVar5" identifier = identifier) ;) (if_statement "if (iVar7 == iVar5) goto LAB_0001d53f;" if (parenthesized_expression "(iVar7 == iVar5)" ( (binary_expression "iVar7 == iVar5" identifier == identifier) )) (goto_statement "goto LAB_0001d53f;" goto statement_identifier ;)) })) (expression_statement "puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4);" (assignment_expression "puVar2 = (uint *)((int)&pSVar8[iVar5 + 1].addr + 4)" identifier = (cast_expression "(uint *)((int)&pSVar8[iVar5 + 1].addr + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pSVar8[iVar5 + 1].addr + 4)" ( (binary_expression "(int)&pSVar8[iVar5 + 1].addr + 4" (cast_expression "(int)&pSVar8[iVar5 + 1].addr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pSVar8[iVar5 + 1].addr" & (field_expression "pSVar8[iVar5 + 1].addr" (subscript_expression "pSVar8[iVar5 + 1]" identifier [ (binary_expression "iVar5 + 1" identifier + number_literal) ]) . field_identifier))) + number_literal) )))) ;) (if_statement "if (address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)) {\n          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);\n          if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }\n          if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }\n          return pSVar1;\n        }" if (parenthesized_expression "(address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr))" ( (binary_expression "address._4_4_ < *puVar2 ||\n            address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)" (binary_expression "address._4_4_ < *puVar2" (field_expression "address._4_4_" identifier . field_identifier) < (pointer_expression "*puVar2" * identifier)) || (binary_expression "address._4_4_ - *puVar2 < (uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)" (binary_expression "address._4_4_ - *puVar2" (field_expression "address._4_4_" identifier . field_identifier) - (pointer_expression "*puVar2" * identifier)) < (call_expression "(uint)((uint)address < (uint)pSVar8[iVar5 + 1].addr)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)address < (uint)pSVar8[iVar5 + 1].addr)" ( (binary_expression "(uint)address < (uint)pSVar8[iVar5 + 1].addr" (cast_expression "(uint)address" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)pSVar8[iVar5 + 1].addr" ( (type_descriptor "uint" type_identifier) ) (field_expression "pSVar8[iVar5 + 1].addr" (subscript_expression "pSVar8[iVar5 + 1]" identifier [ (binary_expression "iVar5 + 1" identifier + number_literal) ]) . field_identifier))) ))))) )) (compound_statement "{\n          uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);\n          if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }\n          if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }\n          return pSVar1;\n        }" { (expression_statement "uVar3 = *(uint *)((int)&pSVar1->end_addr + 4);" (assignment_expression "uVar3 = *(uint *)((int)&pSVar1->end_addr + 4)" identifier = (pointer_expression "*(uint *)((int)&pSVar1->end_addr + 4)" * (cast_expression "(uint *)((int)&pSVar1->end_addr + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pSVar1->end_addr + 4)" ( (binary_expression "(int)&pSVar1->end_addr + 4" (cast_expression "(int)&pSVar1->end_addr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pSVar1->end_addr" & (field_expression "pSVar1->end_addr" identifier -> field_identifier))) + number_literal) ))))) ;) (if_statement "if (uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)) {\n            return (Sym *)0x0;\n          }" if (parenthesized_expression "(uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address))" ( (binary_expression "uVar3 < address._4_4_ ||\n              uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)" (binary_expression "uVar3 < address._4_4_" identifier < (field_expression "address._4_4_" identifier . field_identifier)) || (binary_expression "uVar3 - address._4_4_ < (uint)((uint)pSVar1->end_addr < (uint)address)" (binary_expression "uVar3 - address._4_4_" identifier - (field_expression "address._4_4_" identifier . field_identifier)) < (call_expression "(uint)((uint)pSVar1->end_addr < (uint)address)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)pSVar1->end_addr < (uint)address)" ( (binary_expression "(uint)pSVar1->end_addr < (uint)address" (cast_expression "(uint)pSVar1->end_addr" ( (type_descriptor "uint" type_identifier) ) (field_expression "pSVar1->end_addr" identifier -> field_identifier)) < (cast_expression "(uint)address" ( (type_descriptor "uint" type_identifier) ) identifier)) ))))) )) (compound_statement "{\n            return (Sym *)0x0;\n          }" { (return_statement "return (Sym *)0x0;" return (cast_expression "(Sym *)0x0" ( (type_descriptor "Sym *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if ((debug_level & 0x200U) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }" if (parenthesized_expression "((debug_level & 0x200U) != 0)" ( (binary_expression "(debug_level & 0x200U) != 0" (parenthesized_expression "(debug_level & 0x200U)" ( (binary_expression "debug_level & 0x200U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);\n            return pSVar1;\n          }" { (expression_statement "printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4);" (call_expression "printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4)" identifier (argument_list "("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar4)" ( (string_literal ""[sym_lookup] %d probes (symtab->len=%u)\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return pSVar1;" return identifier ;) })) (return_statement "return pSVar1;" return identifier ;) })) (expression_statement "iVar7 = iVar5 + 1;" (assignment_expression "iVar7 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != iVar6)" ( (binary_expression "iVar7 != iVar6" identifier != identifier) )) ;) (labeled_statement "LAB_0001d53f:\n      pSVar8 = pSVar8 + iVar5 + 1;" statement_identifier : (expression_statement "pSVar8 = pSVar8 + iVar5 + 1;" (assignment_expression "pSVar8 = pSVar8 + iVar5 + 1" identifier = (binary_expression "pSVar8 + iVar5 + 1" (binary_expression "pSVar8 + iVar5" identifier + identifier) + number_literal)) ;)) }))) (expression_statement "puVar2 = (uint *)((int)&pSVar8->addr + 4);" (assignment_expression "puVar2 = (uint *)((int)&pSVar8->addr + 4)" identifier = (cast_expression "(uint *)((int)&pSVar8->addr + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pSVar8->addr + 4)" ( (binary_expression "(int)&pSVar8->addr + 4" (cast_expression "(int)&pSVar8->addr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pSVar8->addr" & (field_expression "pSVar8->addr" identifier -> field_identifier))) + number_literal) )))) ;) (if_statement "if ((*puVar2 <= address._4_4_ &&\n         (uint)((uint)address < (uint)pSVar8->addr) <= address._4_4_ - *puVar2) &&\n       (uVar3 = *(uint *)((int)&pSVar8->end_addr + 4),\n       address._4_4_ <= uVar3 &&\n       (uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_)) {\n      if ((debug_level & 0x200U) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4);\n        return pSVar8;\n      }\n      return pSVar8;\n    }" if (parenthesized_expression "((*puVar2 <= address._4_4_ &&\n         (uint)((uint)address < (uint)pSVar8->addr) <= address._4_4_ - *puVar2) &&\n       (uVar3 = *(uint *)((int)&pSVar8->end_addr + 4),\n       address._4_4_ <= uVar3 &&\n       (uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_))" ( (binary_expression "(*puVar2 <= address._4_4_ &&\n         (uint)((uint)address < (uint)pSVar8->addr) <= address._4_4_ - *puVar2) &&\n       (uVar3 = *(uint *)((int)&pSVar8->end_addr + 4),\n       address._4_4_ <= uVar3 &&\n       (uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_)" (parenthesized_expression "(*puVar2 <= address._4_4_ &&\n         (uint)((uint)address < (uint)pSVar8->addr) <= address._4_4_ - *puVar2)" ( (binary_expression "*puVar2 <= address._4_4_ &&\n         (uint)((uint)address < (uint)pSVar8->addr) <= address._4_4_ - *puVar2" (binary_expression "*puVar2 <= address._4_4_" (pointer_expression "*puVar2" * identifier) <= (field_expression "address._4_4_" identifier . field_identifier)) && (binary_expression "(uint)((uint)address < (uint)pSVar8->addr) <= address._4_4_ - *puVar2" (call_expression "(uint)((uint)address < (uint)pSVar8->addr)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)address < (uint)pSVar8->addr)" ( (binary_expression "(uint)address < (uint)pSVar8->addr" (cast_expression "(uint)address" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)pSVar8->addr" ( (type_descriptor "uint" type_identifier) ) (field_expression "pSVar8->addr" identifier -> field_identifier))) ))) <= (binary_expression "address._4_4_ - *puVar2" (field_expression "address._4_4_" identifier . field_identifier) - (pointer_expression "*puVar2" * identifier)))) )) && (parenthesized_expression "(uVar3 = *(uint *)((int)&pSVar8->end_addr + 4),\n       address._4_4_ <= uVar3 &&\n       (uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_)" ( (comma_expression "uVar3 = *(uint *)((int)&pSVar8->end_addr + 4),\n       address._4_4_ <= uVar3 &&\n       (uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_" (assignment_expression "uVar3 = *(uint *)((int)&pSVar8->end_addr + 4)" identifier = (pointer_expression "*(uint *)((int)&pSVar8->end_addr + 4)" * (cast_expression "(uint *)((int)&pSVar8->end_addr + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pSVar8->end_addr + 4)" ( (binary_expression "(int)&pSVar8->end_addr + 4" (cast_expression "(int)&pSVar8->end_addr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pSVar8->end_addr" & (field_expression "pSVar8->end_addr" identifier -> field_identifier))) + number_literal) ))))) , (binary_expression "address._4_4_ <= uVar3 &&\n       (uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_" (binary_expression "address._4_4_ <= uVar3" (field_expression "address._4_4_" identifier . field_identifier) <= identifier) && (binary_expression "(uint)((uint)pSVar8->end_addr < (uint)address) <= uVar3 - address._4_4_" (call_expression "(uint)((uint)pSVar8->end_addr < (uint)address)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)pSVar8->end_addr < (uint)address)" ( (binary_expression "(uint)pSVar8->end_addr < (uint)address" (cast_expression "(uint)pSVar8->end_addr" ( (type_descriptor "uint" type_identifier) ) (field_expression "pSVar8->end_addr" identifier -> field_identifier)) < (cast_expression "(uint)address" ( (type_descriptor "uint" type_identifier) ) identifier)) ))) <= (binary_expression "uVar3 - address._4_4_" identifier - (field_expression "address._4_4_" identifier . field_identifier))))) ))) )) (compound_statement "{\n      if ((debug_level & 0x200U) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4);\n        return pSVar8;\n      }\n      return pSVar8;\n    }" { (if_statement "if ((debug_level & 0x200U) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4);\n        return pSVar8;\n      }" if (parenthesized_expression "((debug_level & 0x200U) != 0)" ( (binary_expression "(debug_level & 0x200U) != 0" (parenthesized_expression "(debug_level & 0x200U)" ( (binary_expression "debug_level & 0x200U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4);\n        return pSVar8;\n      }" { (expression_statement "printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4);" (call_expression "printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4)" identifier (argument_list "("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar4)" ( (string_literal ""[sym_lookup] %d (%u) probes, fall off\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return pSVar8;" return identifier ;) })) (return_statement "return pSVar8;" return identifier ;) })) })) (return_statement "return (Sym *)0x0;" return (cast_expression "(Sym *)0x0" ( (type_descriptor "Sym *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "uint * FUN_0001d480(int *param_1,uint param_2,uint param_3)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  uint *puVar6;\n  int local_2c;\n  \n  if (*param_1 != 0) {\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }\n  return (uint *)0x0;\n}\n\n" (function_definition "uint * FUN_0001d480(int *param_1,uint param_2,uint param_3)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  uint *puVar6;\n  int local_2c;\n  \n  if (*param_1 != 0) {\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }\n  return (uint *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0001d480(int *param_1,uint param_2,uint param_3)" * (function_declarator "FUN_0001d480(int *param_1,uint param_2,uint param_3)" identifier (parameter_list "(int *param_1,uint param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  uint *puVar6;\n  int local_2c;\n  \n  if (*param_1 != 0) {\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }\n  return (uint *)0x0;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (*param_1 != 0) {\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }" { (expression_statement "iVar2 = *param_1 + -1;" (assignment_expression "iVar2 = *param_1 + -1" identifier = (binary_expression "*param_1 + -1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (expression_statement "puVar6 = (uint *)param_1[1];" (assignment_expression "puVar6 = (uint *)param_1[1]" identifier = (cast_expression "(uint *)param_1[1]" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[1]" identifier [ number_literal ]))) ;) (if_statement "if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      local_2c = 0;\n    }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }" else (compound_statement "{\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (do_statement "do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);" do (compound_statement "{\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      }" { (while_statement "while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }" { (expression_statement "local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);" (assignment_expression "local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0)" identifier = (binary_expression "(local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0)" (parenthesized_expression "(local_2c + 1)" ( (binary_expression "local_2c + 1" identifier + number_literal) )) - (call_expression "(uint)((DAT_0002e158 & 0x200) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((DAT_0002e158 & 0x200) == 0)" ( (binary_expression "(DAT_0002e158 & 0x200) == 0" (parenthesized_expression "(DAT_0002e158 & 0x200)" ( (binary_expression "DAT_0002e158 & 0x200" identifier & number_literal) )) == number_literal) ))))) ;) (expression_statement "iVar3 = (iVar5 + iVar4) / 2;" (assignment_expression "iVar3 = (iVar5 + iVar4) / 2" identifier = (binary_expression "(iVar5 + iVar4) / 2" (parenthesized_expression "(iVar5 + iVar4)" ( (binary_expression "iVar5 + iVar4" identifier + identifier) )) / number_literal)) ;) (expression_statement "puVar1 = puVar6 + iVar3 * 0x3f;" (assignment_expression "puVar1 = puVar6 + iVar3 * 0x3f" identifier = (binary_expression "puVar6 + iVar3 * 0x3f" identifier + (binary_expression "iVar3 * 0x3f" identifier * number_literal))) ;) (if_statement "if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;" if (parenthesized_expression "(puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1])" ( (binary_expression "puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]" (binary_expression "puVar1[1] <= param_3" (subscript_expression "puVar1[1]" identifier [ number_literal ]) <= identifier) && (binary_expression "(uint)(param_2 < *puVar1) <= param_3 - puVar1[1]" (call_expression "(uint)(param_2 < *puVar1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 < *puVar1)" ( (binary_expression "param_2 < *puVar1" identifier < (pointer_expression "*puVar1" * identifier)) ))) <= (binary_expression "param_3 - puVar1[1]" identifier - (subscript_expression "puVar1[1]" identifier [ number_literal ])))) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) (if_statement "if (iVar5 == iVar3) goto LAB_0001d53f;" if (parenthesized_expression "(iVar5 == iVar3)" ( (binary_expression "iVar5 == iVar3" identifier == identifier) )) (goto_statement "goto LAB_0001d53f;" goto statement_identifier ;)) })) (if_statement "if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }" if (parenthesized_expression "(param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f]))" ( (binary_expression "param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])" (binary_expression "param_3 < puVar6[iVar3 * 0x3f + 0x40]" identifier < (subscript_expression "puVar6[iVar3 * 0x3f + 0x40]" identifier [ (binary_expression "iVar3 * 0x3f + 0x40" (binary_expression "iVar3 * 0x3f" identifier * number_literal) + number_literal) ])) || (binary_expression "param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])" (binary_expression "param_3 - puVar6[iVar3 * 0x3f + 0x40]" identifier - (subscript_expression "puVar6[iVar3 * 0x3f + 0x40]" identifier [ (binary_expression "iVar3 * 0x3f + 0x40" (binary_expression "iVar3 * 0x3f" identifier * number_literal) + number_literal) ])) < (call_expression "(uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 < puVar6[iVar3 * 0x3f + 0x3f])" ( (binary_expression "param_2 < puVar6[iVar3 * 0x3f + 0x3f]" identifier < (subscript_expression "puVar6[iVar3 * 0x3f + 0x3f]" identifier [ (binary_expression "iVar3 * 0x3f + 0x3f" (binary_expression "iVar3 * 0x3f" identifier * number_literal) + number_literal) ])) ))))) )) (compound_statement "{\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }" { (if_statement "if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }" if (parenthesized_expression "(puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2))" ( (binary_expression "puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)" (binary_expression "puVar1[3] < param_3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) < identifier) || (binary_expression "puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)" (binary_expression "puVar1[3] - param_3" (subscript_expression "puVar1[3]" identifier [ number_literal ]) - identifier) < (call_expression "(uint)(puVar1[2] < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar1[2] < param_2)" ( (binary_expression "puVar1[2] < param_2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) < identifier) ))))) )) (compound_statement "{\n            return (uint *)0x0;\n          }" { (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }" if (parenthesized_expression "((DAT_0002e158 & 0x200) != 0)" ( (binary_expression "(DAT_0002e158 & 0x200) != 0" (parenthesized_expression "(DAT_0002e158 & 0x200)" ( (binary_expression "DAT_0002e158 & 0x200" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }" { (expression_statement "printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);" (call_expression "printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2)" identifier (argument_list "("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2)" ( (string_literal ""[sym_lookup] %d probes (symtab->len=%u)\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return puVar1;" return identifier ;) })) (return_statement "return puVar1;" return identifier ;) })) (expression_statement "iVar5 = iVar3 + 1;" (assignment_expression "iVar5 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != iVar4)" ( (binary_expression "iVar5 != iVar4" identifier != identifier) )) ;) (labeled_statement "LAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;" statement_identifier : (expression_statement "puVar6 = puVar6 + (iVar3 + 1) * 0x3f;" (assignment_expression "puVar6 = puVar6 + (iVar3 + 1) * 0x3f" identifier = (binary_expression "puVar6 + (iVar3 + 1) * 0x3f" identifier + (binary_expression "(iVar3 + 1) * 0x3f" (parenthesized_expression "(iVar3 + 1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) )) * number_literal))) ;)) }))) (if_statement "if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }" if (parenthesized_expression "((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3))" ( (binary_expression "(puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)" (parenthesized_expression "(puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1])" ( (binary_expression "puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]" (binary_expression "puVar6[1] <= param_3" (subscript_expression "puVar6[1]" identifier [ number_literal ]) <= identifier) && (binary_expression "(uint)(param_2 < *puVar6) <= param_3 - puVar6[1]" (call_expression "(uint)(param_2 < *puVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 < *puVar6)" ( (binary_expression "param_2 < *puVar6" identifier < (pointer_expression "*puVar6" * identifier)) ))) <= (binary_expression "param_3 - puVar6[1]" identifier - (subscript_expression "puVar6[1]" identifier [ number_literal ])))) )) && (parenthesized_expression "(param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)" ( (binary_expression "param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3" (binary_expression "param_3 <= puVar6[3]" identifier <= (subscript_expression "puVar6[3]" identifier [ number_literal ])) && (binary_expression "(uint)(puVar6[2] < param_2) <= puVar6[3] - param_3" (call_expression "(uint)(puVar6[2] < param_2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar6[2] < param_2)" ( (binary_expression "puVar6[2] < param_2" (subscript_expression "puVar6[2]" identifier [ number_literal ]) < identifier) ))) <= (binary_expression "puVar6[3] - param_3" (subscript_expression "puVar6[3]" identifier [ number_literal ]) - identifier))) ))) )) (compound_statement "{\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }" { (if_statement "if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }" if (parenthesized_expression "((DAT_0002e158 & 0x200) != 0)" ( (binary_expression "(DAT_0002e158 & 0x200) != 0" (parenthesized_expression "(DAT_0002e158 & 0x200)" ( (binary_expression "DAT_0002e158 & 0x200" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }" { (expression_statement "printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);" (call_expression "printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2)" identifier (argument_list "("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2)" ( (string_literal ""[sym_lookup] %d (%u) probes, fall off\n"" " string_content escape_sequence ") , identifier , identifier ))) ;) (return_statement "return puVar6;" return identifier ;) })) (return_statement "return puVar6;" return identifier ;) })) })) (return_statement "return (uint *)0x0;" return (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) / LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) <= IDENT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (pointer_expression * IDENT)) ))) <= (binary_expression IDENT - (subscript_expression IDENT [ LIT ])))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT < (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ])) || (binary_expression (binary_expression IDENT - (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ])) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ])) ))))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) < IDENT) || (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) < IDENT) ))))) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT))) ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) <= IDENT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (pointer_expression * IDENT)) ))) <= (binary_expression IDENT - (subscript_expression IDENT [ LIT ])))) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT <= (subscript_expression IDENT [ LIT ])) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) < IDENT) ))) <= (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT))) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , IDENT , IDENT ))) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "uint * FUN_0001d480(int *param_1,uint param_2,uint param_3)\n\n{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  uint *puVar6;\n  int local_2c;\n  \n  if (*param_1 != 0) {\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }\n  return (uint *)0x0;\n}" (type_identifier "uint") (pointer_declarator "* FUN_0001d480(int *param_1,uint param_2,uint param_3)" (* "*") (function_declarator "FUN_0001d480(int *param_1,uint param_2,uint param_3)" (identifier "FUN_0001d480") (parameter_list "(int *param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")")))) (compound_statement "{\n  uint *puVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  uint *puVar6;\n  int local_2c;\n  \n  if (*param_1 != 0) {\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }\n  return (uint *)0x0;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint *puVar6;" (type_identifier "uint") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (if_statement "if (*param_1 != 0) {\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = *param_1 + -1;\n    puVar6 = (uint *)param_1[1];\n    if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }\n    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }\n  }" ({ "{") (expression_statement "iVar2 = *param_1 + -1;" (assignment_expression "iVar2 = *param_1 + -1" (identifier "iVar2") (= "=") (binary_expression "*param_1 + -1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar6 = (uint *)param_1[1];" (assignment_expression "puVar6 = (uint *)param_1[1]" (identifier "puVar6") (= "=") (cast_expression "(uint *)param_1[1]" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      local_2c = 0;\n    }\n    else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_2c = 0;\n    }" ({ "{") (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }" (else "else") (compound_statement "{\n      iVar5 = 0;\n      local_2c = 0;\n      iVar4 = iVar2;\n      do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);\nLAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;\n    }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" (identifier "iVar4") (= "=") (identifier "iVar2")) (; ";")) (do_statement "do {\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      } while (iVar5 != iVar4);" (do "do") (compound_statement "{\n        while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }\n        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }\n        iVar5 = iVar3 + 1;\n      }" ({ "{") (while_statement "while( true ) {\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);\n          iVar3 = (iVar5 + iVar4) / 2;\n          puVar1 = puVar6 + iVar3 * 0x3f;\n          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;\n          iVar4 = iVar3;\n          if (iVar5 == iVar3) goto LAB_0001d53f;\n        }" ({ "{") (expression_statement "local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);" (assignment_expression "local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0)" (identifier "local_2c") (= "=") (binary_expression "(local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0)" (parenthesized_expression "(local_2c + 1)" (( "(") (binary_expression "local_2c + 1" (identifier "local_2c") (+ "+") (number_literal "1")) () ")")) (- "-") (call_expression "(uint)((DAT_0002e158 & 0x200) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((DAT_0002e158 & 0x200) == 0)" (( "(") (binary_expression "(DAT_0002e158 & 0x200) == 0" (parenthesized_expression "(DAT_0002e158 & 0x200)" (( "(") (binary_expression "DAT_0002e158 & 0x200" (identifier "DAT_0002e158") (& "&") (number_literal "0x200")) () ")")) (== "==") (number_literal "0")) () ")"))))) (; ";")) (expression_statement "iVar3 = (iVar5 + iVar4) / 2;" (assignment_expression "iVar3 = (iVar5 + iVar4) / 2" (identifier "iVar3") (= "=") (binary_expression "(iVar5 + iVar4) / 2" (parenthesized_expression "(iVar5 + iVar4)" (( "(") (binary_expression "iVar5 + iVar4" (identifier "iVar5") (+ "+") (identifier "iVar4")) () ")")) (/ "/") (number_literal "2"))) (; ";")) (expression_statement "puVar1 = puVar6 + iVar3 * 0x3f;" (assignment_expression "puVar1 = puVar6 + iVar3 * 0x3f" (identifier "puVar1") (= "=") (binary_expression "puVar6 + iVar3 * 0x3f" (identifier "puVar6") (+ "+") (binary_expression "iVar3 * 0x3f" (identifier "iVar3") (* "*") (number_literal "0x3f")))) (; ";")) (if_statement "if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;" (if "if") (parenthesized_expression "(puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1])" (( "(") (binary_expression "puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]" (binary_expression "puVar1[1] <= param_3" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (<= "<=") (identifier "param_3")) (&& "&&") (binary_expression "(uint)(param_2 < *puVar1) <= param_3 - puVar1[1]" (call_expression "(uint)(param_2 < *puVar1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 < *puVar1)" (( "(") (binary_expression "param_2 < *puVar1" (identifier "param_2") (< "<") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) () ")"))) (<= "<=") (binary_expression "param_3 - puVar1[1]" (identifier "param_3") (- "-") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" (identifier "iVar4") (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar5 == iVar3) goto LAB_0001d53f;" (if "if") (parenthesized_expression "(iVar5 == iVar3)" (( "(") (binary_expression "iVar5 == iVar3" (identifier "iVar5") (== "==") (identifier "iVar3")) () ")")) (goto_statement "goto LAB_0001d53f;" (goto "goto") (statement_identifier "LAB_0001d53f") (; ";"))) (} "}"))) (if_statement "if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }" (if "if") (parenthesized_expression "(param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f]))" (( "(") (binary_expression "param_3 < puVar6[iVar3 * 0x3f + 0x40] ||\n            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])" (binary_expression "param_3 < puVar6[iVar3 * 0x3f + 0x40]" (identifier "param_3") (< "<") (subscript_expression "puVar6[iVar3 * 0x3f + 0x40]" (identifier "puVar6") ([ "[") (binary_expression "iVar3 * 0x3f + 0x40" (binary_expression "iVar3 * 0x3f" (identifier "iVar3") (* "*") (number_literal "0x3f")) (+ "+") (number_literal "0x40")) (] "]"))) (|| "||") (binary_expression "param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])" (binary_expression "param_3 - puVar6[iVar3 * 0x3f + 0x40]" (identifier "param_3") (- "-") (subscript_expression "puVar6[iVar3 * 0x3f + 0x40]" (identifier "puVar6") ([ "[") (binary_expression "iVar3 * 0x3f + 0x40" (binary_expression "iVar3 * 0x3f" (identifier "iVar3") (* "*") (number_literal "0x3f")) (+ "+") (number_literal "0x40")) (] "]"))) (< "<") (call_expression "(uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 < puVar6[iVar3 * 0x3f + 0x3f])" (( "(") (binary_expression "param_2 < puVar6[iVar3 * 0x3f + 0x3f]" (identifier "param_2") (< "<") (subscript_expression "puVar6[iVar3 * 0x3f + 0x3f]" (identifier "puVar6") ([ "[") (binary_expression "iVar3 * 0x3f + 0x3f" (binary_expression "iVar3 * 0x3f" (identifier "iVar3") (* "*") (number_literal "0x3f")) (+ "+") (number_literal "0x3f")) (] "]"))) () ")"))))) () ")")) (compound_statement "{\n          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }\n          if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }\n          return puVar1;\n        }" ({ "{") (if_statement "if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {\n            return (uint *)0x0;\n          }" (if "if") (parenthesized_expression "(puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2))" (( "(") (binary_expression "puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)" (binary_expression "puVar1[3] < param_3" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (< "<") (identifier "param_3")) (|| "||") (binary_expression "puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)" (binary_expression "puVar1[3] - param_3" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (- "-") (identifier "param_3")) (< "<") (call_expression "(uint)(puVar1[2] < param_2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar1[2] < param_2)" (( "(") (binary_expression "puVar1[2] < param_2" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (< "<") (identifier "param_2")) () ")"))))) () ")")) (compound_statement "{\n            return (uint *)0x0;\n          }" ({ "{") (return_statement "return (uint *)0x0;" (return "return") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (if_statement "if ((DAT_0002e158 & 0x200) != 0) {\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }" (if "if") (parenthesized_expression "((DAT_0002e158 & 0x200) != 0)" (( "(") (binary_expression "(DAT_0002e158 & 0x200) != 0" (parenthesized_expression "(DAT_0002e158 & 0x200)" (( "(") (binary_expression "DAT_0002e158 & 0x200" (identifier "DAT_0002e158") (& "&") (number_literal "0x200")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);\n            return puVar1;\n          }" ({ "{") (expression_statement "printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);" (call_expression "printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2)" (identifier "printf") (argument_list "("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2)" (( "(") (string_literal ""[sym_lookup] %d probes (symtab->len=%u)\n"" (" """) (string_content "[sym_lookup] %d probes (symtab->len=%u)") (escape_sequence "\n") (" """)) (, ",") (identifier "local_2c") (, ",") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}"))) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}"))) (expression_statement "iVar5 = iVar3 + 1;" (assignment_expression "iVar5 = iVar3 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != iVar4)" (( "(") (binary_expression "iVar5 != iVar4" (identifier "iVar5") (!= "!=") (identifier "iVar4")) () ")")) (; ";")) (labeled_statement "LAB_0001d53f:\n      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;" (statement_identifier "LAB_0001d53f") (: ":") (expression_statement "puVar6 = puVar6 + (iVar3 + 1) * 0x3f;" (assignment_expression "puVar6 = puVar6 + (iVar3 + 1) * 0x3f" (identifier "puVar6") (= "=") (binary_expression "puVar6 + (iVar3 + 1) * 0x3f" (identifier "puVar6") (+ "+") (binary_expression "(iVar3 + 1) * 0x3f" (parenthesized_expression "(iVar3 + 1)" (( "(") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) () ")")) (* "*") (number_literal "0x3f")))) (; ";"))) (} "}")))) (if_statement "if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }" (if "if") (parenthesized_expression "((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3))" (( "(") (binary_expression "(puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&\n       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)" (parenthesized_expression "(puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1])" (( "(") (binary_expression "puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]" (binary_expression "puVar6[1] <= param_3" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (<= "<=") (identifier "param_3")) (&& "&&") (binary_expression "(uint)(param_2 < *puVar6) <= param_3 - puVar6[1]" (call_expression "(uint)(param_2 < *puVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 < *puVar6)" (( "(") (binary_expression "param_2 < *puVar6" (identifier "param_2") (< "<") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) () ")"))) (<= "<=") (binary_expression "param_3 - puVar6[1]" (identifier "param_3") (- "-") (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]"))))) () ")")) (&& "&&") (parenthesized_expression "(param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)" (( "(") (binary_expression "param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3" (binary_expression "param_3 <= puVar6[3]" (identifier "param_3") (<= "<=") (subscript_expression "puVar6[3]" (identifier "puVar6") ([ "[") (number_literal "3") (] "]"))) (&& "&&") (binary_expression "(uint)(puVar6[2] < param_2) <= puVar6[3] - param_3" (call_expression "(uint)(puVar6[2] < param_2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar6[2] < param_2)" (( "(") (binary_expression "puVar6[2] < param_2" (subscript_expression "puVar6[2]" (identifier "puVar6") ([ "[") (number_literal "2") (] "]")) (< "<") (identifier "param_2")) () ")"))) (<= "<=") (binary_expression "puVar6[3] - param_3" (subscript_expression "puVar6[3]" (identifier "puVar6") ([ "[") (number_literal "3") (] "]")) (- "-") (identifier "param_3")))) () ")"))) () ")")) (compound_statement "{\n      if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }\n      return puVar6;\n    }" ({ "{") (if_statement "if ((DAT_0002e158 & 0x200) != 0) {\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }" (if "if") (parenthesized_expression "((DAT_0002e158 & 0x200) != 0)" (( "(") (binary_expression "(DAT_0002e158 & 0x200) != 0" (parenthesized_expression "(DAT_0002e158 & 0x200)" (( "(") (binary_expression "DAT_0002e158 & 0x200" (identifier "DAT_0002e158") (& "&") (number_literal "0x200")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);\n        return puVar6;\n      }" ({ "{") (expression_statement "printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);" (call_expression "printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2)" (identifier "printf") (argument_list "("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2)" (( "(") (string_literal ""[sym_lookup] %d (%u) probes, fall off\n"" (" """) (string_content "[sym_lookup] %d (%u) probes, fall off") (escape_sequence "\n") (" """)) (, ",") (identifier "local_2c") (, ",") (identifier "iVar2") () ")"))) (; ";")) (return_statement "return puVar6;" (return "return") (identifier "puVar6") (; ";")) (} "}"))) (return_statement "return puVar6;" (return "return") (identifier "puVar6") (; ";")) (} "}"))) (} "}"))) (return_statement "return (uint *)0x0;" (return "return") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 * function_1(type_2 *sym_tab,type_3 address)

{
  type_1 *pSVar1;
  type_4 *puVar2;
  type_4 var_8;
  int var_1;
  int var_7;
  int var_5;
  int var_4;
  type_1 *var_6;
  int var_2;
  
  if (sym_tab->len != 0) {
    var_1 = sym_tab->len - 1;
    var_6 = sym_tab->base;
    if (var_1 == 0) {
      var_2 = 0;
    }
    else {
      var_4 = 0;
      var_2 = 0;
      var_5 = var_1;
      do {
        while( true ) {
          var_2 = (var_2 + 1) - (type_4)((var_3 & 0x200U) == 0);
          var_7 = (var_4 + var_5) / 2;
          pSVar1 = var_6 + var_7;
          puVar2 = (type_4 *)((int)&pSVar1->addr + 4);
          if (*puVar2 <= address._4_4_ &&
              (type_4)((type_4)address < (type_4)pSVar1->addr) <= address._4_4_ - *puVar2) break;
          var_5 = var_7;
          if (var_4 == var_7) goto LAB_0001d53f;
        }
        puVar2 = (type_4 *)((int)&var_6[var_7 + 1].addr + 4);
        if (address._4_4_ < *puVar2 ||
            address._4_4_ - *puVar2 < (type_4)((type_4)address < (type_4)var_6[var_7 + 1].addr)) {
          var_8 = *(type_4 *)((int)&pSVar1->end_addr + 4);
          if (var_8 < address._4_4_ ||
              var_8 - address._4_4_ < (type_4)((type_4)pSVar1->end_addr < (type_4)address)) {
            return (type_1 *)0x0;
          }
          if ((var_3 & 0x200U) != 0) {
            var_9("[sym_lookup] %d probes (symtab->len=%u)\n",var_2,var_1);
            return pSVar1;
          }
          return pSVar1;
        }
        var_4 = var_7 + 1;
      } while (var_4 != var_5);
LAB_0001d53f:
      var_6 = var_6 + var_7 + 1;
    }
    puVar2 = (type_4 *)((int)&var_6->addr + 4);
    if ((*puVar2 <= address._4_4_ &&
         (type_4)((type_4)address < (type_4)var_6->addr) <= address._4_4_ - *puVar2) &&
       (var_8 = *(type_4 *)((int)&var_6->end_addr + 4),
       address._4_4_ <= var_8 &&
       (type_4)((type_4)var_6->end_addr < (type_4)address) <= var_8 - address._4_4_)) {
      if ((var_3 & 0x200U) != 0) {
        var_9("[sym_lookup] %d (%u) probes, fall off\n",var_2,var_1);
        return var_6;
      }
      return var_6;
    }
  }
  return (type_1 *)0x0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))) right: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) right: (binary_expression left: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) right: (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))))) consequence: (compound_statement (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence)) (identifier) (identifier)))) (return_statement (identifier)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))) right: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence)) (identifier) (identifier)))) (return_statement (identifier)))) (return_statement (identifier)))))) (return_statement (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

uint * MASKED(int *param_1,uint param_2,uint param_3)

{
  uint *puVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  uint *puVar6;
  int local_2c;
  
  if (*param_1 != 0) {
    iVar2 = *param_1 + -1;
    puVar6 = (uint *)param_1[1];
    if (iVar2 == 0) {
      local_2c = 0;
    }
    else {
      iVar5 = 0;
      local_2c = 0;
      iVar4 = iVar2;
      do {
        while( true ) {
          local_2c = (local_2c + 1) - (uint)((DAT_0002e158 & 0x200) == 0);
          iVar3 = (iVar5 + iVar4) / 2;
          puVar1 = puVar6 + iVar3 * 0x3f;
          if (puVar1[1] <= param_3 && (uint)(param_2 < *puVar1) <= param_3 - puVar1[1]) break;
          iVar4 = iVar3;
          if (iVar5 == iVar3) goto LAB_0001d53f;
        }
        if (param_3 < puVar6[iVar3 * 0x3f + 0x40] ||
            param_3 - puVar6[iVar3 * 0x3f + 0x40] < (uint)(param_2 < puVar6[iVar3 * 0x3f + 0x3f])) {
          if (puVar1[3] < param_3 || puVar1[3] - param_3 < (uint)(puVar1[2] < param_2)) {
            return (uint *)0x0;
          }
          if ((DAT_0002e158 & 0x200) != 0) {
            printf("[sym_lookup] %d probes (symtab->len=%u)\n",local_2c,iVar2);
            return puVar1;
          }
          return puVar1;
        }
        iVar5 = iVar3 + 1;
      } while (iVar5 != iVar4);
LAB_0001d53f:
      puVar6 = puVar6 + (iVar3 + 1) * 0x3f;
    }
    if ((puVar6[1] <= param_3 && (uint)(param_2 < *puVar6) <= param_3 - puVar6[1]) &&
       (param_3 <= puVar6[3] && (uint)(puVar6[2] < param_2) <= puVar6[3] - param_3)) {
      if ((DAT_0002e158 & 0x200) != 0) {
        printf("[sym_lookup] %d (%u) probes, fall off\n",local_2c,iVar2);
        return puVar6;
      }
      return puVar6;
    }
  }
  return (uint *)0x0;
}

