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

Sym * dbg_sym_lookup(Sym_Table *sym_tab,bfd_vma address)

{
  uint *puVar1;
  uint uVar2;
  Sym *pSVar3;
  Sym *pSVar4;
  Sym *pSVar5;
  undefined *puVar6;
  uint uVar7;
  uint uVar8;
  uint uVar9;
  
  puVar6 = PTR_stderr_0002cfcc;
  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",(uint)address);
  pSVar5 = sym_tab->base;
  uVar7 = sym_tab->len - 1;
  if (uVar7 != 0) {
    uVar8 = 0;
    do {
      while( true ) {
        uVar9 = uVar7 + uVar8 >> 1;
        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,
                uVar7);
        uVar2 = uVar9 + 1;
        pSVar3 = pSVar5 + uVar2;
        pSVar4 = pSVar5 + uVar9;
        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",
                (int)pSVar4->addr,(int)pSVar3->addr);
        puVar1 = (uint *)((int)&pSVar4->addr + 4);
        if (*puVar1 <= address._4_4_ &&
            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1) break;
        uVar7 = uVar9;
        if (uVar9 == uVar8) goto LAB_0001d44c;
      }
      puVar1 = (uint *)((int)&pSVar3->addr + 4);
      if (address._4_4_ < *puVar1 ||
          address._4_4_ - *puVar1 < (uint)((uint)address < (uint)pSVar3->addr)) {
        return pSVar4;
      }
      uVar8 = uVar2;
    } while (uVar7 != uVar2);
  }
LAB_0001d44c:
  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar6);
  return (Sym *)0x0;
}



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

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

{
  uint uVar1;
  uint *puVar2;
  uint *puVar3;
  int iVar4;
  undefined *puVar5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  
  puVar5 = PTR_stderr_0002cfcc;
  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);
  iVar4 = param_1[1];
  if (*param_1 - 1U != 0) {
    uVar6 = *param_1 - 1U;
    uVar7 = 0;
    do {
      while( true ) {
        uVar8 = uVar6 + uVar7 >> 1;
        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,
                uVar6);
        uVar1 = uVar8 + 1;
        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);
        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);
        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)
        ;
        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;
        uVar6 = uVar8;
        if (uVar8 == uVar7) goto LAB_0001d44c;
      }
      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {
        return puVar3;
      }
      uVar7 = uVar1;
    } while (uVar6 != uVar1);
  }
LAB_0001d44c:
  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);
  return (uint *)0x0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013030
ADD EBX,0xfca7
SUB ESP,0x40
MOV EAX,dword ptr [ESP + 0x58]
MOV ECX,dword ptr [ESP + 0x5c]
MOV ESI,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x24],EAX
MOV dword ptr [ESP + 0x28],ECX
PUSH EAX
LEA EAX,[EBX + 0xffff6f24]
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffcc]
MOV dword ptr [ESP + 0x18],EAX
PUSH dword ptr [EAX]
CALL 0x00012310
MOV EAX,dword ptr [ESI + 0x4]
MOV dword ptr [ESP + 0x2c],EAX
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
SUB EAX,0x1
JZ 0x0001d44c
MOV ECX,EAX
LEA EAX,[EBX + 0xffff6f44]
XOR EBP,EBP
MOV dword ptr [ESP + 0x28],EAX
LEA EAX,[EBX + 0xffff6f78]
MOV dword ptr [ESP + 0x2c],EAX
JMP 0x0001d3db
MOV EDX,dword ptr [ESP + 0x10]
CMP EAX,dword ptr [EDX]
SBB ECX,dword ptr [EDX + 0x4]
JC 0x0001d467
MOV EBP,dword ptr [ESP + 0x14]
MOV ECX,dword ptr [ESP + 0x18]
CMP ECX,EBP
JZ 0x0001d44c
SUB ESP,0xc
LEA ESI,[ECX + EBP*0x1]
PUSH ECX
SHR ESI,0x1
MOV dword ptr [ESP + 0x28],ECX
PUSH ESI
PUSH EBP
PUSH dword ptr [ESP + 0x40]
MOV EAX,dword ptr [ESP + 0x28]
PUSH dword ptr [EAX]
CALL 0x00012310
LEA EDX,[ESI + 0x1]
MOV EDI,dword ptr [ESP + 0x3c]
IMUL EAX,EDX,0xfc
MOV dword ptr [ESP + 0x34],EDX
ADD ESP,0x20
LEA EDX,[EDI + EAX*0x1]
LEA EDI,[EDI + EAX*0x1 + 0xffffff04]
PUSH dword ptr [EDX]
MOV dword ptr [ESP + 0x14],EDX
PUSH dword ptr [EDI]
PUSH dword ptr [ESP + 0x34]
MOV EAX,dword ptr [ESP + 0x18]
PUSH dword ptr [EAX]
CALL 0x00012310
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESP + 0x20]
CMP EAX,dword ptr [EDI]
MOV EDX,ECX
SBB EDX,dword ptr [EDI + 0x4]
JNC 0x0001d3c0
MOV ECX,ESI
CMP ECX,EBP
JNZ 0x0001d3db
MOV EAX,dword ptr [ESP + 0xc]
XOR EDI,EDI
PUSH dword ptr [EAX]
LEA EAX,[EBX + 0xffff6fa8]
PUSH 0x28
PUSH 0x1
PUSH EAX
CALL 0x000121c0
ADD ESP,0x10
ADD ESP,0x3c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint * FUN_0001d350(int *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint *puVar3;\n  int iVar4;\n  undefined *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  puVar5 = PTR_stderr_0002cfcc;\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);\n  iVar4 = param_1[1];\n  if (*param_1 - 1U != 0) {\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }\nLAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);\n  return (uint *)0x0;\n}\n\n" comment (function_definition "uint * FUN_0001d350(int *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint *puVar3;\n  int iVar4;\n  undefined *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  puVar5 = PTR_stderr_0002cfcc;\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);\n  iVar4 = param_1[1];\n  if (*param_1 - 1U != 0) {\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }\nLAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);\n  return (uint *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0001d350(int *param_1,uint param_2,uint param_3)" * (function_declarator "FUN_0001d350(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 uVar1;\n  uint *puVar2;\n  uint *puVar3;\n  int iVar4;\n  undefined *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  puVar5 = PTR_stderr_0002cfcc;\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);\n  iVar4 = param_1[1];\n  if (*param_1 - 1U != 0) {\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }\nLAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);\n  return (uint *)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "puVar5 = PTR_stderr_0002cfcc;" (assignment_expression "puVar5 = PTR_stderr_0002cfcc" identifier = identifier) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2)" identifier (argument_list "(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2)" ( (pointer_expression "*(FILE **)PTR_stderr_0002cfcc" * (cast_expression "(FILE **)PTR_stderr_0002cfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""[dbg_sym_lookup] address 0x%lx\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (*param_1 - 1U != 0) {\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }" if (parenthesized_expression "(*param_1 - 1U != 0)" ( (binary_expression "*param_1 - 1U != 0" (binary_expression "*param_1 - 1U" (pointer_expression "*param_1" * identifier) - number_literal) != number_literal) )) (compound_statement "{\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }" { (expression_statement "uVar6 = *param_1 - 1U;" (assignment_expression "uVar6 = *param_1 - 1U" identifier = (binary_expression "*param_1 - 1U" (pointer_expression "*param_1" * identifier) - number_literal)) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);" do (compound_statement "{\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    }" { (while_statement "while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }" { (expression_statement "uVar8 = uVar6 + uVar7 >> 1;" (assignment_expression "uVar8 = uVar6 + uVar7 >> 1" identifier = (binary_expression "uVar6 + uVar7 >> 1" (binary_expression "uVar6 + uVar7" identifier + identifier) >> number_literal)) ;) (expression_statement "fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);" (call_expression "fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6)" identifier (argument_list "(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6)" ( (pointer_expression "*(FILE **)puVar5" * (cast_expression "(FILE **)puVar5" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n"" " string_content escape_sequence ") , identifier , identifier , identifier ))) ;) (expression_statement "uVar1 = uVar8 + 1;" (assignment_expression "uVar1 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (expression_statement "puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);" (assignment_expression "puVar2 = (uint *)(iVar4 + uVar1 * 0xfc)" identifier = (cast_expression "(uint *)(iVar4 + uVar1 * 0xfc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar1 * 0xfc)" ( (binary_expression "iVar4 + uVar1 * 0xfc" identifier + (binary_expression "uVar1 * 0xfc" identifier * number_literal)) )))) ;) (expression_statement "puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);" (assignment_expression "puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc)" identifier = (cast_expression "(uint *)(iVar4 + -0xfc + uVar1 * 0xfc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0xfc + uVar1 * 0xfc)" ( (binary_expression "iVar4 + -0xfc + uVar1 * 0xfc" (binary_expression "iVar4 + -0xfc" identifier + number_literal) + (binary_expression "uVar1 * 0xfc" identifier * number_literal)) )))) ;) (expression_statement "fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;" (call_expression "fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)" identifier (argument_list "(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)" ( (pointer_expression "*(FILE **)puVar5" * (cast_expression "(FILE **)puVar5" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n"" " string_content escape_sequence ") , (pointer_expression "*puVar3" * identifier) , (pointer_expression "*puVar2" * identifier) ))) ;) (if_statement "if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;" if (parenthesized_expression "(puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1])" ( (binary_expression "puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]" (binary_expression "puVar3[1] <= param_3" (subscript_expression "puVar3[1]" identifier [ number_literal ]) <= identifier) && (binary_expression "(uint)(param_2 < *puVar3) <= param_3 - puVar3[1]" (call_expression "(uint)(param_2 < *puVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 < *puVar3)" ( (binary_expression "param_2 < *puVar3" identifier < (pointer_expression "*puVar3" * identifier)) ))) <= (binary_expression "param_3 - puVar3[1]" identifier - (subscript_expression "puVar3[1]" identifier [ number_literal ])))) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = uVar8;" (assignment_expression "uVar6 = uVar8" identifier = identifier) ;) (if_statement "if (uVar8 == uVar7) goto LAB_0001d44c;" if (parenthesized_expression "(uVar8 == uVar7)" ( (binary_expression "uVar8 == uVar7" identifier == identifier) )) (goto_statement "goto LAB_0001d44c;" goto statement_identifier ;)) })) (if_statement "if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }" if (parenthesized_expression "(param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2))" ( (binary_expression "param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)" (binary_expression "param_3 < puVar2[1]" identifier < (subscript_expression "puVar2[1]" identifier [ number_literal ])) || (binary_expression "param_3 - puVar2[1] < (uint)(param_2 < *puVar2)" (binary_expression "param_3 - puVar2[1]" identifier - (subscript_expression "puVar2[1]" identifier [ number_literal ])) < (call_expression "(uint)(param_2 < *puVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 < *puVar2)" ( (binary_expression "param_2 < *puVar2" identifier < (pointer_expression "*puVar2" * identifier)) ))))) )) (compound_statement "{\n        return puVar3;\n      }" { (return_statement "return puVar3;" return identifier ;) })) (expression_statement "uVar7 = uVar1;" (assignment_expression "uVar7 = uVar1" identifier = identifier) ;) }) while (parenthesized_expression "(uVar6 != uVar1)" ( (binary_expression "uVar6 != uVar1" identifier != identifier) )) ;) })) (labeled_statement "LAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);" statement_identifier : (expression_statement "fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);" (call_expression "fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5)" identifier (argument_list "("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5)" ( (string_literal ""[dbg_sym_lookup] binary search fails???\n"" " string_content escape_sequence ") , number_literal , number_literal , (pointer_expression "*(FILE **)puVar5" * (cast_expression "(FILE **)puVar5" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) 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 * dbg_sym_lookup(Sym_Table *sym_tab,bfd_vma address)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  Sym *pSVar3;\n  Sym *pSVar4;\n  Sym *pSVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  puVar6 = PTR_stderr_0002cfcc;\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",(uint)address);\n  pSVar5 = sym_tab->base;\n  uVar7 = sym_tab->len - 1;\n  if (uVar7 != 0) {\n    uVar8 = 0;\n    do {\n      while( true ) {\n        uVar9 = uVar7 + uVar8 >> 1;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,\n                uVar7);\n        uVar2 = uVar9 + 1;\n        pSVar3 = pSVar5 + uVar2;\n        pSVar4 = pSVar5 + uVar9;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",\n                (int)pSVar4->addr,(int)pSVar3->addr);\n        puVar1 = (uint *)((int)&pSVar4->addr + 4);\n        if (*puVar1 <= address._4_4_ &&\n            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1) break;\n        uVar7 = uVar9;\n        if (uVar9 == uVar8) goto LAB_0001d44c;\n      }\n      puVar1 = (uint *)((int)&pSVar3->addr + 4);\n      if (address._4_4_ < *puVar1 ||\n          address._4_4_ - *puVar1 < (uint)((uint)address < (uint)pSVar3->addr)) {\n        return pSVar4;\n      }\n      uVar8 = uVar2;\n    } while (uVar7 != uVar2);\n  }\nLAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar6);\n  return (Sym *)0x0;\n}\n\n" comment comment (function_definition "Sym * dbg_sym_lookup(Sym_Table *sym_tab,bfd_vma address)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  Sym *pSVar3;\n  Sym *pSVar4;\n  Sym *pSVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  puVar6 = PTR_stderr_0002cfcc;\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",(uint)address);\n  pSVar5 = sym_tab->base;\n  uVar7 = sym_tab->len - 1;\n  if (uVar7 != 0) {\n    uVar8 = 0;\n    do {\n      while( true ) {\n        uVar9 = uVar7 + uVar8 >> 1;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,\n                uVar7);\n        uVar2 = uVar9 + 1;\n        pSVar3 = pSVar5 + uVar2;\n        pSVar4 = pSVar5 + uVar9;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",\n                (int)pSVar4->addr,(int)pSVar3->addr);\n        puVar1 = (uint *)((int)&pSVar4->addr + 4);\n        if (*puVar1 <= address._4_4_ &&\n            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1) break;\n        uVar7 = uVar9;\n        if (uVar9 == uVar8) goto LAB_0001d44c;\n      }\n      puVar1 = (uint *)((int)&pSVar3->addr + 4);\n      if (address._4_4_ < *puVar1 ||\n          address._4_4_ - *puVar1 < (uint)((uint)address < (uint)pSVar3->addr)) {\n        return pSVar4;\n      }\n      uVar8 = uVar2;\n    } while (uVar7 != uVar2);\n  }\nLAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar6);\n  return (Sym *)0x0;\n}" type_identifier (pointer_declarator "* dbg_sym_lookup(Sym_Table *sym_tab,bfd_vma address)" * (function_declarator "dbg_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  uint *puVar1;\n  uint uVar2;\n  Sym *pSVar3;\n  Sym *pSVar4;\n  Sym *pSVar5;\n  undefined *puVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  \n  puVar6 = PTR_stderr_0002cfcc;\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",(uint)address);\n  pSVar5 = sym_tab->base;\n  uVar7 = sym_tab->len - 1;\n  if (uVar7 != 0) {\n    uVar8 = 0;\n    do {\n      while( true ) {\n        uVar9 = uVar7 + uVar8 >> 1;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,\n                uVar7);\n        uVar2 = uVar9 + 1;\n        pSVar3 = pSVar5 + uVar2;\n        pSVar4 = pSVar5 + uVar9;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",\n                (int)pSVar4->addr,(int)pSVar3->addr);\n        puVar1 = (uint *)((int)&pSVar4->addr + 4);\n        if (*puVar1 <= address._4_4_ &&\n            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1) break;\n        uVar7 = uVar9;\n        if (uVar9 == uVar8) goto LAB_0001d44c;\n      }\n      puVar1 = (uint *)((int)&pSVar3->addr + 4);\n      if (address._4_4_ < *puVar1 ||\n          address._4_4_ - *puVar1 < (uint)((uint)address < (uint)pSVar3->addr)) {\n        return pSVar4;\n      }\n      uVar8 = uVar2;\n    } while (uVar7 != uVar2);\n  }\nLAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar6);\n  return (Sym *)0x0;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "Sym *pSVar3;" type_identifier (pointer_declarator "*pSVar3" * identifier) ;) (declaration "Sym *pSVar4;" type_identifier (pointer_declarator "*pSVar4" * identifier) ;) (declaration "Sym *pSVar5;" type_identifier (pointer_declarator "*pSVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (expression_statement "puVar6 = PTR_stderr_0002cfcc;" (assignment_expression "puVar6 = PTR_stderr_0002cfcc" identifier = identifier) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",(uint)address);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",(uint)address)" identifier (argument_list "(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",(uint)address)" ( (pointer_expression "*(FILE **)PTR_stderr_0002cfcc" * (cast_expression "(FILE **)PTR_stderr_0002cfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""[dbg_sym_lookup] address 0x%lx\n"" " string_content escape_sequence ") , (cast_expression "(uint)address" ( (type_descriptor "uint" type_identifier) ) identifier) ))) ;) (expression_statement "pSVar5 = sym_tab->base;" (assignment_expression "pSVar5 = sym_tab->base" identifier = (field_expression "sym_tab->base" identifier -> field_identifier)) ;) (expression_statement "uVar7 = sym_tab->len - 1;" (assignment_expression "uVar7 = sym_tab->len - 1" identifier = (binary_expression "sym_tab->len - 1" (field_expression "sym_tab->len" identifier -> field_identifier) - number_literal)) ;) (if_statement "if (uVar7 != 0) {\n    uVar8 = 0;\n    do {\n      while( true ) {\n        uVar9 = uVar7 + uVar8 >> 1;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,\n                uVar7);\n        uVar2 = uVar9 + 1;\n        pSVar3 = pSVar5 + uVar2;\n        pSVar4 = pSVar5 + uVar9;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",\n                (int)pSVar4->addr,(int)pSVar3->addr);\n        puVar1 = (uint *)((int)&pSVar4->addr + 4);\n        if (*puVar1 <= address._4_4_ &&\n            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1) break;\n        uVar7 = uVar9;\n        if (uVar9 == uVar8) goto LAB_0001d44c;\n      }\n      puVar1 = (uint *)((int)&pSVar3->addr + 4);\n      if (address._4_4_ < *puVar1 ||\n          address._4_4_ - *puVar1 < (uint)((uint)address < (uint)pSVar3->addr)) {\n        return pSVar4;\n      }\n      uVar8 = uVar2;\n    } while (uVar7 != uVar2);\n  }" if (parenthesized_expression "(uVar7 != 0)" ( (binary_expression "uVar7 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar8 = 0;\n    do {\n      while( true ) {\n        uVar9 = uVar7 + uVar8 >> 1;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,\n                uVar7);\n        uVar2 = uVar9 + 1;\n        pSVar3 = pSVar5 + uVar2;\n        pSVar4 = pSVar5 + uVar9;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",\n                (int)pSVar4->addr,(int)pSVar3->addr);\n        puVar1 = (uint *)((int)&pSVar4->addr + 4);\n        if (*puVar1 <= address._4_4_ &&\n            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1) break;\n        uVar7 = uVar9;\n        if (uVar9 == uVar8) goto LAB_0001d44c;\n      }\n      puVar1 = (uint *)((int)&pSVar3->addr + 4);\n      if (address._4_4_ < *puVar1 ||\n          address._4_4_ - *puVar1 < (uint)((uint)address < (uint)pSVar3->addr)) {\n        return pSVar4;\n      }\n      uVar8 = uVar2;\n    } while (uVar7 != uVar2);\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        uVar9 = uVar7 + uVar8 >> 1;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,\n                uVar7);\n        uVar2 = uVar9 + 1;\n        pSVar3 = pSVar5 + uVar2;\n        pSVar4 = pSVar5 + uVar9;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",\n                (int)pSVar4->addr,(int)pSVar3->addr);\n        puVar1 = (uint *)((int)&pSVar4->addr + 4);\n        if (*puVar1 <= address._4_4_ &&\n            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1) break;\n        uVar7 = uVar9;\n        if (uVar9 == uVar8) goto LAB_0001d44c;\n      }\n      puVar1 = (uint *)((int)&pSVar3->addr + 4);\n      if (address._4_4_ < *puVar1 ||\n          address._4_4_ - *puVar1 < (uint)((uint)address < (uint)pSVar3->addr)) {\n        return pSVar4;\n      }\n      uVar8 = uVar2;\n    } while (uVar7 != uVar2);" do (compound_statement "{\n      while( true ) {\n        uVar9 = uVar7 + uVar8 >> 1;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,\n                uVar7);\n        uVar2 = uVar9 + 1;\n        pSVar3 = pSVar5 + uVar2;\n        pSVar4 = pSVar5 + uVar9;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",\n                (int)pSVar4->addr,(int)pSVar3->addr);\n        puVar1 = (uint *)((int)&pSVar4->addr + 4);\n        if (*puVar1 <= address._4_4_ &&\n            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1) break;\n        uVar7 = uVar9;\n        if (uVar9 == uVar8) goto LAB_0001d44c;\n      }\n      puVar1 = (uint *)((int)&pSVar3->addr + 4);\n      if (address._4_4_ < *puVar1 ||\n          address._4_4_ - *puVar1 < (uint)((uint)address < (uint)pSVar3->addr)) {\n        return pSVar4;\n      }\n      uVar8 = uVar2;\n    }" { (while_statement "while( true ) {\n        uVar9 = uVar7 + uVar8 >> 1;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,\n                uVar7);\n        uVar2 = uVar9 + 1;\n        pSVar3 = pSVar5 + uVar2;\n        pSVar4 = pSVar5 + uVar9;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",\n                (int)pSVar4->addr,(int)pSVar3->addr);\n        puVar1 = (uint *)((int)&pSVar4->addr + 4);\n        if (*puVar1 <= address._4_4_ &&\n            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1) break;\n        uVar7 = uVar9;\n        if (uVar9 == uVar8) goto LAB_0001d44c;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        uVar9 = uVar7 + uVar8 >> 1;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,\n                uVar7);\n        uVar2 = uVar9 + 1;\n        pSVar3 = pSVar5 + uVar2;\n        pSVar4 = pSVar5 + uVar9;\n        fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",\n                (int)pSVar4->addr,(int)pSVar3->addr);\n        puVar1 = (uint *)((int)&pSVar4->addr + 4);\n        if (*puVar1 <= address._4_4_ &&\n            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1) break;\n        uVar7 = uVar9;\n        if (uVar9 == uVar8) goto LAB_0001d44c;\n      }" { (expression_statement "uVar9 = uVar7 + uVar8 >> 1;" (assignment_expression "uVar9 = uVar7 + uVar8 >> 1" identifier = (binary_expression "uVar7 + uVar8 >> 1" (binary_expression "uVar7 + uVar8" identifier + identifier) >> number_literal)) ;) (expression_statement "fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,\n                uVar7);" (call_expression "fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,\n                uVar7)" identifier (argument_list "(*(FILE **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar8,uVar9,\n                uVar7)" ( (pointer_expression "*(FILE **)puVar6" * (cast_expression "(FILE **)puVar6" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n"" " string_content escape_sequence ") , identifier , identifier , identifier ))) ;) (expression_statement "uVar2 = uVar9 + 1;" (assignment_expression "uVar2 = uVar9 + 1" identifier = (binary_expression "uVar9 + 1" identifier + number_literal)) ;) (expression_statement "pSVar3 = pSVar5 + uVar2;" (assignment_expression "pSVar3 = pSVar5 + uVar2" identifier = (binary_expression "pSVar5 + uVar2" identifier + identifier)) ;) (expression_statement "pSVar4 = pSVar5 + uVar9;" (assignment_expression "pSVar4 = pSVar5 + uVar9" identifier = (binary_expression "pSVar5 + uVar9" identifier + identifier)) ;) (expression_statement "fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",\n                (int)pSVar4->addr,(int)pSVar3->addr);" (call_expression "fprintf(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",\n                (int)pSVar4->addr,(int)pSVar3->addr)" identifier (argument_list "(*(FILE **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",\n                (int)pSVar4->addr,(int)pSVar3->addr)" ( (pointer_expression "*(FILE **)puVar6" * (cast_expression "(FILE **)puVar6" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n"" " string_content escape_sequence ") , (cast_expression "(int)pSVar4->addr" ( (type_descriptor "int" primitive_type) ) (field_expression "pSVar4->addr" identifier -> field_identifier)) , (cast_expression "(int)pSVar3->addr" ( (type_descriptor "int" primitive_type) ) (field_expression "pSVar3->addr" identifier -> field_identifier)) ))) ;) (expression_statement "puVar1 = (uint *)((int)&pSVar4->addr + 4);" (assignment_expression "puVar1 = (uint *)((int)&pSVar4->addr + 4)" identifier = (cast_expression "(uint *)((int)&pSVar4->addr + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pSVar4->addr + 4)" ( (binary_expression "(int)&pSVar4->addr + 4" (cast_expression "(int)&pSVar4->addr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pSVar4->addr" & (field_expression "pSVar4->addr" identifier -> field_identifier))) + number_literal) )))) ;) (if_statement "if (*puVar1 <= address._4_4_ &&\n            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1) break;" if (parenthesized_expression "(*puVar1 <= address._4_4_ &&\n            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1)" ( (binary_expression "*puVar1 <= address._4_4_ &&\n            (uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1" (binary_expression "*puVar1 <= address._4_4_" (pointer_expression "*puVar1" * identifier) <= (field_expression "address._4_4_" identifier . field_identifier)) && (binary_expression "(uint)((uint)address < (uint)pSVar4->addr) <= address._4_4_ - *puVar1" (call_expression "(uint)((uint)address < (uint)pSVar4->addr)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)address < (uint)pSVar4->addr)" ( (binary_expression "(uint)address < (uint)pSVar4->addr" (cast_expression "(uint)address" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)pSVar4->addr" ( (type_descriptor "uint" type_identifier) ) (field_expression "pSVar4->addr" identifier -> field_identifier))) ))) <= (binary_expression "address._4_4_ - *puVar1" (field_expression "address._4_4_" identifier . field_identifier) - (pointer_expression "*puVar1" * identifier)))) )) (break_statement "break;" break ;)) (expression_statement "uVar7 = uVar9;" (assignment_expression "uVar7 = uVar9" identifier = identifier) ;) (if_statement "if (uVar9 == uVar8) goto LAB_0001d44c;" if (parenthesized_expression "(uVar9 == uVar8)" ( (binary_expression "uVar9 == uVar8" identifier == identifier) )) (goto_statement "goto LAB_0001d44c;" goto statement_identifier ;)) })) (expression_statement "puVar1 = (uint *)((int)&pSVar3->addr + 4);" (assignment_expression "puVar1 = (uint *)((int)&pSVar3->addr + 4)" identifier = (cast_expression "(uint *)((int)&pSVar3->addr + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pSVar3->addr + 4)" ( (binary_expression "(int)&pSVar3->addr + 4" (cast_expression "(int)&pSVar3->addr" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pSVar3->addr" & (field_expression "pSVar3->addr" identifier -> field_identifier))) + number_literal) )))) ;) (if_statement "if (address._4_4_ < *puVar1 ||\n          address._4_4_ - *puVar1 < (uint)((uint)address < (uint)pSVar3->addr)) {\n        return pSVar4;\n      }" if (parenthesized_expression "(address._4_4_ < *puVar1 ||\n          address._4_4_ - *puVar1 < (uint)((uint)address < (uint)pSVar3->addr))" ( (binary_expression "address._4_4_ < *puVar1 ||\n          address._4_4_ - *puVar1 < (uint)((uint)address < (uint)pSVar3->addr)" (binary_expression "address._4_4_ < *puVar1" (field_expression "address._4_4_" identifier . field_identifier) < (pointer_expression "*puVar1" * identifier)) || (binary_expression "address._4_4_ - *puVar1 < (uint)((uint)address < (uint)pSVar3->addr)" (binary_expression "address._4_4_ - *puVar1" (field_expression "address._4_4_" identifier . field_identifier) - (pointer_expression "*puVar1" * identifier)) < (call_expression "(uint)((uint)address < (uint)pSVar3->addr)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)address < (uint)pSVar3->addr)" ( (binary_expression "(uint)address < (uint)pSVar3->addr" (cast_expression "(uint)address" ( (type_descriptor "uint" type_identifier) ) identifier) < (cast_expression "(uint)pSVar3->addr" ( (type_descriptor "uint" type_identifier) ) (field_expression "pSVar3->addr" identifier -> field_identifier))) ))))) )) (compound_statement "{\n        return pSVar4;\n      }" { (return_statement "return pSVar4;" return identifier ;) })) (expression_statement "uVar8 = uVar2;" (assignment_expression "uVar8 = uVar2" identifier = identifier) ;) }) while (parenthesized_expression "(uVar7 != uVar2)" ( (binary_expression "uVar7 != uVar2" identifier != identifier) )) ;) })) (labeled_statement "LAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar6);" statement_identifier : (expression_statement "fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar6);" (call_expression "fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar6)" identifier (argument_list "("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar6)" ( (string_literal ""[dbg_sym_lookup] binary search fails???\n"" " string_content escape_sequence ") , number_literal , number_literal , (pointer_expression "*(FILE **)puVar6" * (cast_expression "(FILE **)puVar6" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) 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_0001d350(int *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint *puVar3;\n  int iVar4;\n  undefined *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  puVar5 = PTR_stderr_0002cfcc;\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);\n  iVar4 = param_1[1];\n  if (*param_1 - 1U != 0) {\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }\nLAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);\n  return (uint *)0x0;\n}\n\n" (function_definition "uint * FUN_0001d350(int *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint *puVar3;\n  int iVar4;\n  undefined *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  puVar5 = PTR_stderr_0002cfcc;\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);\n  iVar4 = param_1[1];\n  if (*param_1 - 1U != 0) {\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }\nLAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);\n  return (uint *)0x0;\n}" type_identifier (pointer_declarator "* FUN_0001d350(int *param_1,uint param_2,uint param_3)" * (function_declarator "FUN_0001d350(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 uVar1;\n  uint *puVar2;\n  uint *puVar3;\n  int iVar4;\n  undefined *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  puVar5 = PTR_stderr_0002cfcc;\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);\n  iVar4 = param_1[1];\n  if (*param_1 - 1U != 0) {\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }\nLAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);\n  return (uint *)0x0;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "puVar5 = PTR_stderr_0002cfcc;" (assignment_expression "puVar5 = PTR_stderr_0002cfcc" identifier = identifier) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2)" identifier (argument_list "(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2)" ( (pointer_expression "*(FILE **)PTR_stderr_0002cfcc" * (cast_expression "(FILE **)PTR_stderr_0002cfcc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""[dbg_sym_lookup] address 0x%lx\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (*param_1 - 1U != 0) {\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }" if (parenthesized_expression "(*param_1 - 1U != 0)" ( (binary_expression "*param_1 - 1U != 0" (binary_expression "*param_1 - 1U" (pointer_expression "*param_1" * identifier) - number_literal) != number_literal) )) (compound_statement "{\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }" { (expression_statement "uVar6 = *param_1 - 1U;" (assignment_expression "uVar6 = *param_1 - 1U" identifier = (binary_expression "*param_1 - 1U" (pointer_expression "*param_1" * identifier) - number_literal)) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);" do (compound_statement "{\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    }" { (while_statement "while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }" { (expression_statement "uVar8 = uVar6 + uVar7 >> 1;" (assignment_expression "uVar8 = uVar6 + uVar7 >> 1" identifier = (binary_expression "uVar6 + uVar7 >> 1" (binary_expression "uVar6 + uVar7" identifier + identifier) >> number_literal)) ;) (expression_statement "fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);" (call_expression "fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6)" identifier (argument_list "(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6)" ( (pointer_expression "*(FILE **)puVar5" * (cast_expression "(FILE **)puVar5" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n"" " string_content escape_sequence ") , identifier , identifier , identifier ))) ;) (expression_statement "uVar1 = uVar8 + 1;" (assignment_expression "uVar1 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (expression_statement "puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);" (assignment_expression "puVar2 = (uint *)(iVar4 + uVar1 * 0xfc)" identifier = (cast_expression "(uint *)(iVar4 + uVar1 * 0xfc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + uVar1 * 0xfc)" ( (binary_expression "iVar4 + uVar1 * 0xfc" identifier + (binary_expression "uVar1 * 0xfc" identifier * number_literal)) )))) ;) (expression_statement "puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);" (assignment_expression "puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc)" identifier = (cast_expression "(uint *)(iVar4 + -0xfc + uVar1 * 0xfc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + -0xfc + uVar1 * 0xfc)" ( (binary_expression "iVar4 + -0xfc + uVar1 * 0xfc" (binary_expression "iVar4 + -0xfc" identifier + number_literal) + (binary_expression "uVar1 * 0xfc" identifier * number_literal)) )))) ;) (expression_statement "fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;" (call_expression "fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)" identifier (argument_list "(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)" ( (pointer_expression "*(FILE **)puVar5" * (cast_expression "(FILE **)puVar5" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n"" " string_content escape_sequence ") , (pointer_expression "*puVar3" * identifier) , (pointer_expression "*puVar2" * identifier) ))) ;) (if_statement "if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;" if (parenthesized_expression "(puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1])" ( (binary_expression "puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]" (binary_expression "puVar3[1] <= param_3" (subscript_expression "puVar3[1]" identifier [ number_literal ]) <= identifier) && (binary_expression "(uint)(param_2 < *puVar3) <= param_3 - puVar3[1]" (call_expression "(uint)(param_2 < *puVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 < *puVar3)" ( (binary_expression "param_2 < *puVar3" identifier < (pointer_expression "*puVar3" * identifier)) ))) <= (binary_expression "param_3 - puVar3[1]" identifier - (subscript_expression "puVar3[1]" identifier [ number_literal ])))) )) (break_statement "break;" break ;)) (expression_statement "uVar6 = uVar8;" (assignment_expression "uVar6 = uVar8" identifier = identifier) ;) (if_statement "if (uVar8 == uVar7) goto LAB_0001d44c;" if (parenthesized_expression "(uVar8 == uVar7)" ( (binary_expression "uVar8 == uVar7" identifier == identifier) )) (goto_statement "goto LAB_0001d44c;" goto statement_identifier ;)) })) (if_statement "if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }" if (parenthesized_expression "(param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2))" ( (binary_expression "param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)" (binary_expression "param_3 < puVar2[1]" identifier < (subscript_expression "puVar2[1]" identifier [ number_literal ])) || (binary_expression "param_3 - puVar2[1] < (uint)(param_2 < *puVar2)" (binary_expression "param_3 - puVar2[1]" identifier - (subscript_expression "puVar2[1]" identifier [ number_literal ])) < (call_expression "(uint)(param_2 < *puVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 < *puVar2)" ( (binary_expression "param_2 < *puVar2" identifier < (pointer_expression "*puVar2" * identifier)) ))))) )) (compound_statement "{\n        return puVar3;\n      }" { (return_statement "return puVar3;" return identifier ;) })) (expression_statement "uVar7 = uVar1;" (assignment_expression "uVar7 = uVar1" identifier = identifier) ;) }) while (parenthesized_expression "(uVar6 != uVar1)" ( (binary_expression "uVar6 != uVar1" identifier != identifier) )) ;) })) (labeled_statement "LAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);" statement_identifier : (expression_statement "fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);" (call_expression "fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5)" identifier (argument_list "("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5)" ( (string_literal ""[dbg_sym_lookup] binary search fails???\n"" " string_content escape_sequence ") , number_literal , number_literal , (pointer_expression "*(FILE **)puVar5" * (cast_expression "(FILE **)puVar5" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) - LIT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) - LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) >> LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , (string_literal " string_content escape_sequence ") , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT * LIT)) )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , (string_literal " string_content escape_sequence ") , (pointer_expression * IDENT) , (pointer_expression * IDENT) ))) ;) (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 [ LIT ])) || (binary_expression (binary_expression IDENT - (subscript_expression IDENT [ LIT ])) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (pointer_expression * IDENT)) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , LIT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) ))) ;)) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "uint * FUN_0001d350(int *param_1,uint param_2,uint param_3)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint *puVar3;\n  int iVar4;\n  undefined *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  puVar5 = PTR_stderr_0002cfcc;\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);\n  iVar4 = param_1[1];\n  if (*param_1 - 1U != 0) {\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }\nLAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);\n  return (uint *)0x0;\n}" (type_identifier "uint") (pointer_declarator "* FUN_0001d350(int *param_1,uint param_2,uint param_3)" (* "*") (function_declarator "FUN_0001d350(int *param_1,uint param_2,uint param_3)" (identifier "FUN_0001d350") (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 uVar1;\n  uint *puVar2;\n  uint *puVar3;\n  int iVar4;\n  undefined *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  \n  puVar5 = PTR_stderr_0002cfcc;\n  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);\n  iVar4 = param_1[1];\n  if (*param_1 - 1U != 0) {\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }\nLAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);\n  return (uint *)0x0;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint *puVar3;" (type_identifier "uint") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (expression_statement "puVar5 = PTR_stderr_0002cfcc;" (assignment_expression "puVar5 = PTR_stderr_0002cfcc" (identifier "puVar5") (= "=") (identifier "PTR_stderr_0002cfcc")) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);" (call_expression "fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_0002cfcc" (* "*") (cast_expression "(FILE **)PTR_stderr_0002cfcc" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_0002cfcc"))) (, ",") (string_literal ""[dbg_sym_lookup] address 0x%lx\n"" (" """) (string_content "[dbg_sym_lookup] address 0x%lx") (escape_sequence "\n") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "iVar4 = param_1[1];" (assignment_expression "iVar4 = param_1[1]" (identifier "iVar4") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (*param_1 - 1U != 0) {\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }" (if "if") (parenthesized_expression "(*param_1 - 1U != 0)" (( "(") (binary_expression "*param_1 - 1U != 0" (binary_expression "*param_1 - 1U" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (- "-") (number_literal "1U")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar6 = *param_1 - 1U;\n    uVar7 = 0;\n    do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);\n  }" ({ "{") (expression_statement "uVar6 = *param_1 - 1U;" (assignment_expression "uVar6 = *param_1 - 1U" (identifier "uVar6") (= "=") (binary_expression "*param_1 - 1U" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (- "-") (number_literal "1U"))) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    } while (uVar6 != uVar1);" (do "do") (compound_statement "{\n      while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }\n      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }\n      uVar7 = uVar1;\n    }" ({ "{") (while_statement "while( true ) {\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        uVar8 = uVar6 + uVar7 >> 1;\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);\n        uVar1 = uVar8 + 1;\n        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);\n        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);\n        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;\n        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;\n        uVar6 = uVar8;\n        if (uVar8 == uVar7) goto LAB_0001d44c;\n      }" ({ "{") (expression_statement "uVar8 = uVar6 + uVar7 >> 1;" (assignment_expression "uVar8 = uVar6 + uVar7 >> 1" (identifier "uVar8") (= "=") (binary_expression "uVar6 + uVar7 >> 1" (binary_expression "uVar6 + uVar7" (identifier "uVar6") (+ "+") (identifier "uVar7")) (>> ">>") (number_literal "1"))) (; ";")) (expression_statement "fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6);" (call_expression "fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6)" (identifier "fprintf") (argument_list "(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,\n                uVar6)" (( "(") (pointer_expression "*(FILE **)puVar5" (* "*") (cast_expression "(FILE **)puVar5" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar5"))) (, ",") (string_literal ""[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n"" (" """) (string_content "[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar7") (, ",") (identifier "uVar8") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "uVar1 = uVar8 + 1;" (assignment_expression "uVar1 = uVar8 + 1" (identifier "uVar1") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);" (assignment_expression "puVar2 = (uint *)(iVar4 + uVar1 * 0xfc)" (identifier "puVar2") (= "=") (cast_expression "(uint *)(iVar4 + uVar1 * 0xfc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + uVar1 * 0xfc)" (( "(") (binary_expression "iVar4 + uVar1 * 0xfc" (identifier "iVar4") (+ "+") (binary_expression "uVar1 * 0xfc" (identifier "uVar1") (* "*") (number_literal "0xfc"))) () ")")))) (; ";")) (expression_statement "puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);" (assignment_expression "puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc)" (identifier "puVar3") (= "=") (cast_expression "(uint *)(iVar4 + -0xfc + uVar1 * 0xfc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + -0xfc + uVar1 * 0xfc)" (( "(") (binary_expression "iVar4 + -0xfc + uVar1 * 0xfc" (binary_expression "iVar4 + -0xfc" (identifier "iVar4") (+ "+") (number_literal "-0xfc")) (+ "+") (binary_expression "uVar1 * 0xfc" (identifier "uVar1") (* "*") (number_literal "0xfc"))) () ")")))) (; ";")) (expression_statement "fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)\n        ;" (call_expression "fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)" (identifier "fprintf") (argument_list "(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)" (( "(") (pointer_expression "*(FILE **)puVar5" (* "*") (cast_expression "(FILE **)puVar5" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar5"))) (, ",") (string_literal ""[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n"" (" """) (string_content "[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx") (escape_sequence "\n") (" """)) (, ",") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (, ",") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) () ")"))) (; ";")) (if_statement "if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;" (if "if") (parenthesized_expression "(puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1])" (( "(") (binary_expression "puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]" (binary_expression "puVar3[1] <= param_3" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (<= "<=") (identifier "param_3")) (&& "&&") (binary_expression "(uint)(param_2 < *puVar3) <= param_3 - puVar3[1]" (call_expression "(uint)(param_2 < *puVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 < *puVar3)" (( "(") (binary_expression "param_2 < *puVar3" (identifier "param_2") (< "<") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) () ")"))) (<= "<=") (binary_expression "param_3 - puVar3[1]" (identifier "param_3") (- "-") (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]"))))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar6 = uVar8;" (assignment_expression "uVar6 = uVar8" (identifier "uVar6") (= "=") (identifier "uVar8")) (; ";")) (if_statement "if (uVar8 == uVar7) goto LAB_0001d44c;" (if "if") (parenthesized_expression "(uVar8 == uVar7)" (( "(") (binary_expression "uVar8 == uVar7" (identifier "uVar8") (== "==") (identifier "uVar7")) () ")")) (goto_statement "goto LAB_0001d44c;" (goto "goto") (statement_identifier "LAB_0001d44c") (; ";"))) (} "}"))) (if_statement "if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {\n        return puVar3;\n      }" (if "if") (parenthesized_expression "(param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2))" (( "(") (binary_expression "param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)" (binary_expression "param_3 < puVar2[1]" (identifier "param_3") (< "<") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]"))) (|| "||") (binary_expression "param_3 - puVar2[1] < (uint)(param_2 < *puVar2)" (binary_expression "param_3 - puVar2[1]" (identifier "param_3") (- "-") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]"))) (< "<") (call_expression "(uint)(param_2 < *puVar2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 < *puVar2)" (( "(") (binary_expression "param_2 < *puVar2" (identifier "param_2") (< "<") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) () ")"))))) () ")")) (compound_statement "{\n        return puVar3;\n      }" ({ "{") (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (expression_statement "uVar7 = uVar1;" (assignment_expression "uVar7 = uVar1" (identifier "uVar7") (= "=") (identifier "uVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 != uVar1)" (( "(") (binary_expression "uVar6 != uVar1" (identifier "uVar6") (!= "!=") (identifier "uVar1")) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_0001d44c:\n  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);" (statement_identifier "LAB_0001d44c") (: ":") (expression_statement "fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);" (call_expression "fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5)" (identifier "fwrite") (argument_list "("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5)" (( "(") (string_literal ""[dbg_sym_lookup] binary search fails???\n"" (" """) (string_content "[dbg_sym_lookup] binary search fails???") (escape_sequence "\n") (" """)) (, ",") (number_literal "1") (, ",") (number_literal "0x28") (, ",") (pointer_expression "*(FILE **)puVar5" (* "*") (cast_expression "(FILE **)puVar5" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar5"))) () ")"))) (; ";"))) (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_4 *puVar1;
  type_4 var_6;
  type_1 *pSVar3;
  type_1 *pSVar4;
  type_1 *var_5;
  type_5 *puVar6;
  type_4 var_2;
  type_4 var_3;
  type_4 var_4;
  
  puVar6 = PTR_stderr_0002cfcc;
  var_1(*(type_6 **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",(type_4)address);
  var_5 = sym_tab->base;
  var_2 = sym_tab->len - 1;
  if (var_2 != 0) {
    var_3 = 0;
    do {
      while( true ) {
        var_4 = var_2 + var_3 >> 1;
        var_1(*(type_6 **)puVar6,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",var_3,var_4,
                var_2);
        var_6 = var_4 + 1;
        pSVar3 = var_5 + var_6;
        pSVar4 = var_5 + var_4;
        var_1(*(type_6 **)puVar6,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",
                (int)pSVar4->addr,(int)pSVar3->addr);
        puVar1 = (type_4 *)((int)&pSVar4->addr + 4);
        if (*puVar1 <= address._4_4_ &&
            (type_4)((type_4)address < (type_4)pSVar4->addr) <= address._4_4_ - *puVar1) break;
        var_2 = var_4;
        if (var_4 == var_3) goto LAB_0001d44c;
      }
      puVar1 = (type_4 *)((int)&pSVar3->addr + 4);
      if (address._4_4_ < *puVar1 ||
          address._4_4_ - *puVar1 < (type_4)((type_4)address < (type_4)pSVar3->addr)) {
        return pSVar4;
      }
      var_3 = var_6;
    } while (var_2 != var_6);
  }
LAB_0001d44c:
  var_7("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(type_6 **)puVar6);
  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: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) (string_literal (string_content) (escape_sequence)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) 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: (number_literal))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) (string_literal (string_content) (escape_sequence)) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) (string_literal (string_content) (escape_sequence)) (pointer_expression argument: (identifier)) (pointer_expression argument: (identifier))))) (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: (number_literal))) right: (binary_expression left: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence)) (number_literal) (number_literal) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (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 uVar1;
  uint *puVar2;
  uint *puVar3;
  int iVar4;
  undefined *puVar5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  
  puVar5 = PTR_stderr_0002cfcc;
  fprintf(*(FILE **)PTR_stderr_0002cfcc,"[dbg_sym_lookup] address 0x%lx\n",param_2);
  iVar4 = param_1[1];
  if (*param_1 - 1U != 0) {
    uVar6 = *param_1 - 1U;
    uVar7 = 0;
    do {
      while( true ) {
        uVar8 = uVar6 + uVar7 >> 1;
        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] low=0x%lx, mid=0x%lx, high=0x%lx\n",uVar7,uVar8,
                uVar6);
        uVar1 = uVar8 + 1;
        puVar2 = (uint *)(iVar4 + uVar1 * 0xfc);
        puVar3 = (uint *)(iVar4 + -0xfc + uVar1 * 0xfc);
        fprintf(*(FILE **)puVar5,"[dbg_sym_lookup] sym[m]=0x%lx sym[m + 1]=0x%lx\n",*puVar3,*puVar2)
        ;
        if (puVar3[1] <= param_3 && (uint)(param_2 < *puVar3) <= param_3 - puVar3[1]) break;
        uVar6 = uVar8;
        if (uVar8 == uVar7) goto LAB_0001d44c;
      }
      if (param_3 < puVar2[1] || param_3 - puVar2[1] < (uint)(param_2 < *puVar2)) {
        return puVar3;
      }
      uVar7 = uVar1;
    } while (uVar6 != uVar1);
  }
LAB_0001d44c:
  fwrite("[dbg_sym_lookup] binary search fails???\n",1,0x28,*(FILE **)puVar5);
  return (uint *)0x0;
}

