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

void __regparm3
find_symbol_for_address
          (Filedata *filedata,Elf_Internal_Sym *symtab,ulong nsyms,char *strtab,ulong strtab_size,
          absaddr addr,char **symname,bfd_vma *offset)

{
  uint uVar1;
  Elf_Internal_Sym *pEVar2;
  char *pcVar3;
  uint uVar4;
  ulong uVar5;
  uint uVar6;
  uint local_44;
  Elf_Internal_Sym *local_3c;
  uint local_30;
  uint local_2c;
  Elf_Internal_Sym *local_24;
  
  local_44 = (uint)addr.offset;
  if ((short)filedata == 0x28) {
    local_44 = (uint)addr.offset & 0xfffffffe;
  }
  if (symtab < symtab + nsyms) {
    local_24 = (Elf_Internal_Sym *)0x0;
    local_30 = 0x100000;
    local_2c = 0;
    local_3c = symtab + nsyms;
    do {
      while( true ) {
        pEVar2 = symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2;
        uVar4 = (uint)pEVar2->st_value;
        uVar1 = *(uint *)((int)&pEVar2->st_value + 4);
        if ((short)filedata == 0x28) {
          uVar4 = uVar4 & 0xfffffffe;
        }
        uVar5 = pEVar2->st_name;
        if ((uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))))
        break;
        if (addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4))
        goto LAB_00023c2c;
LAB_00023bc8:
        symtab = pEVar2 + 1;
        if (local_3c <= symtab) goto LAB_00023c36;
      }
      if (uVar1 <= addr.offset._4_4_ && (uint)(local_44 < uVar4) <= addr.offset._4_4_ - uVar1) {
        uVar6 = local_44 - uVar4;
        uVar4 = (addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4);
        if ((local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||
           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0))
        goto LAB_00023bc8;
        goto LAB_00023c41;
      }
LAB_00023c2c:
      local_3c = pEVar2;
    } while (symtab < pEVar2);
LAB_00023c36:
    if (local_24 != (Elf_Internal_Sym *)0x0) {
      uVar5 = local_24->st_name;
LAB_00023c41:
      pcVar3 = strtab + uVar5;
      if (strtab_size <= uVar5) {
        pcVar3 = (char *)dcgettext(0,"<corrupt>",5);
      }
      *symname = pcVar3;
      *(uint *)offset = local_30;
      *(uint *)((int)offset + 4) = local_2c;
      return;
    }
  }
  *symname = (char *)0x0;
  *(uint *)((int)offset + 4) = addr.offset._4_4_;
  *(uint *)offset = local_44;
  return;
}



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

void __regparm3
FUN_00023b50(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,
            uint param_7,uint param_8,int *param_9,uint *param_10)

{
  uint uVar1;
  uint *puVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  uint local_44;
  uint *local_3c;
  uint local_30;
  uint local_2c;
  uint *local_24;
  
  local_44 = param_7;
  if (param_1 == 0x28) {
    local_44 = param_7 & 0xfffffffe;
  }
  if (param_2 < param_2 + param_3 * 7) {
    local_24 = (uint *)0x0;
    local_30 = 0x100000;
    local_2c = 0;
    local_3c = param_2 + param_3 * 7;
    do {
      while( true ) {
        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;
        uVar3 = *puVar2;
        uVar1 = puVar2[1];
        if (param_1 == 0x28) {
          uVar3 = uVar3 & 0xfffffffe;
        }
        uVar4 = puVar2[4];
        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;
        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;
LAB_00023bc8:
        param_2 = puVar2 + 7;
        if (local_3c <= param_2) goto LAB_00023c36;
      }
      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {
        uVar5 = local_44 - uVar3;
        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);
        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||
           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))
        goto LAB_00023bc8;
        goto LAB_00023c41;
      }
LAB_00023c2c:
      local_3c = puVar2;
    } while (param_2 < puVar2);
LAB_00023c36:
    if (local_24 != (uint *)0x0) {
      uVar4 = local_24[4];
LAB_00023c41:
      param_4 = param_4 + uVar4;
      if (param_5 <= uVar4) {
        param_4 = dcgettext(0,"<corrupt>",5);
      }
      *param_9 = param_4;
      *param_10 = local_30;
      param_10[1] = local_2c;
      return;
    }
  }
  *param_9 = 0;
  param_10[1] = param_8;
  *param_10 = local_44;
  return;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00013f70
ADD EBX,0x904a5
SUB ESP,0x3c
MOV ESI,dword ptr [ESP + 0x60]
MOV dword ptr [ESP + 0xc],ESI
MOV dword ptr [ESP + 0x2c],EBX
MOV EBX,dword ptr [ESP + 0x5c]
MOV dword ptr [ESP + 0x8],EBX
CMP AX,0x28
JNZ 0x00023b8b
MOV EDI,ESI
AND EBX,0xfffffffe
MOV dword ptr [ESP + 0x8],EBX
MOV dword ptr [ESP + 0xc],EDI
IMUL ECX,ECX,0x1c
LEA ESI,[EDX + ECX*0x1]
CMP EDX,ESI
JNC 0x00023cb0
MOVZX EAX,word ptr [ESP + 0x58]
MOV dword ptr [ESP + 0x28],0x0
MOV dword ptr [ESP + 0x1c],0x100000
MOV dword ptr [ESP + 0x20],0x0
MOV dword ptr [ESP + 0x24],EAX
MOV dword ptr [ESP + 0x10],ESI
MOV word ptr [ESP + 0x16],BP
JMP 0x00023bd1
LEA EDX,[EAX + 0x1c]
CMP EDX,dword ptr [ESP + 0x10]
JNC 0x00023c36
MOV ECX,dword ptr [ESP + 0x10]
SUB ECX,EDX
SAR ECX,0x2
IMUL ECX,ECX,-0x49249249
MOV EAX,ECX
SHR EAX,0x1f
ADD EAX,ECX
SAR EAX,0x1
IMUL EAX,EAX,0x1c
ADD EAX,EDX
CMP word ptr [ESP + 0x16],0x28
MOV ECX,dword ptr [EAX]
MOV EBX,dword ptr [EAX + 0x4]
JNZ 0x00023c02
MOV EBP,ECX
AND EBP,0xfffffffe
MOV ECX,EBP
MOV EDI,dword ptr [EAX + 0x10]
MOV dword ptr [ESP + 0x18],EDI
TEST EDI,EDI
JZ 0x00023c1e
CMP word ptr [ESP + 0x58],0x0
JZ 0x00023c70
MOV ESI,dword ptr [ESP + 0x24]
CMP ESI,dword ptr [EAX + 0x18]
JZ 0x00023c70
MOV ESI,dword ptr [ESP + 0x8]
MOV EDI,dword ptr [ESP + 0xc]
CMP ESI,ECX
SBB EDI,EBX
JNC 0x00023bc8
MOV dword ptr [ESP + 0x10],EAX
CMP EDX,dword ptr [ESP + 0x10]
JC 0x00023bd1
MOV EAX,dword ptr [ESP + 0x28]
TEST EAX,EAX
JZ 0x00023cb0
MOV EDI,dword ptr [EAX + 0x10]
MOV EAX,dword ptr [ESP + 0x50]
ADD EAX,EDI
CMP dword ptr [ESP + 0x54],EDI
JBE 0x00023cd8
MOV EBX,dword ptr [ESP + 0x64]
MOV dword ptr [EBX],EAX
MOV EAX,dword ptr [ESP + 0x68]
MOV EBX,dword ptr [ESP + 0x1c]
MOV dword ptr [EAX],EBX
MOV EBX,dword ptr [ESP + 0x20]
MOV dword ptr [EAX + 0x4],EBX
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDI,dword ptr [ESP + 0x8]
MOV EBP,dword ptr [ESP + 0xc]
CMP EDI,ECX
MOV ESI,EBP
SBB ESI,EBX
JC 0x00023c2c
SUB EDI,ECX
SBB EBP,EBX
CMP EDI,dword ptr [ESP + 0x1c]
MOV ECX,EDI
MOV ESI,EBP
SBB ESI,dword ptr [ESP + 0x20]
JNC 0x00023bc8
MOV EDX,EDI
OR EDX,EBP
JZ 0x00023cf7
MOV dword ptr [ESP + 0x28],EAX
MOV dword ptr [ESP + 0x1c],EDI
MOV dword ptr [ESP + 0x20],EBP
JMP 0x00023bc8
MOV EAX,dword ptr [ESP + 0x64]
MOV EBX,dword ptr [ESP + 0x68]
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX],0x0
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EBX + 0x4],EDX
MOV dword ptr [EBX],EAX
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH 0x5
MOV EBX,dword ptr [ESP + 0x34]
LEA EAX,[EBX + 0xfffc2aee]
PUSH EAX
PUSH 0x0
CALL 0x000130f0
ADD ESP,0x10
JMP 0x00023c51
MOV EDI,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0x1c],ECX
MOV dword ptr [ESP + 0x20],EBP
JMP 0x00023c41
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\nFUN_00023b50(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,\n            uint param_7,uint param_8,int *param_9,uint *param_10)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint local_44;\n  uint *local_3c;\n  uint local_30;\n  uint local_2c;\n  uint *local_24;\n  \n  local_44 = param_7;\n  if (param_1 == 0x28) {\n    local_44 = param_7 & 0xfffffffe;\n  }\n  if (param_2 < param_2 + param_3 * 7) {\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }\n  *param_9 = 0;\n  param_10[1] = param_8;\n  *param_10 = local_44;\n  return;\n}\n\n" comment (function_definition "void __regparm3\nFUN_00023b50(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,\n            uint param_7,uint param_8,int *param_9,uint *param_10)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint local_44;\n  uint *local_3c;\n  uint local_30;\n  uint local_2c;\n  uint *local_24;\n  \n  local_44 = param_7;\n  if (param_1 == 0x28) {\n    local_44 = param_7 & 0xfffffffe;\n  }\n  if (param_2 < param_2 + param_3 * 7) {\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }\n  *param_9 = 0;\n  param_10[1] = param_8;\n  *param_10 = local_44;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00023b50(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,\n            uint param_7,uint param_8,int *param_9,uint *param_10)" identifier (parameter_list "(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,\n            uint param_7,uint param_8,int *param_9,uint *param_10)" ( (parameter_declaration "short param_1" (sized_type_specifier "short" short) identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "ushort param_6" type_identifier identifier) , (parameter_declaration "uint param_7" type_identifier identifier) , (parameter_declaration "uint param_8" type_identifier identifier) , (parameter_declaration "int *param_9" primitive_type (pointer_declarator "*param_9" * identifier)) , (parameter_declaration "uint *param_10" type_identifier (pointer_declarator "*param_10" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint local_44;\n  uint *local_3c;\n  uint local_30;\n  uint local_2c;\n  uint *local_24;\n  \n  local_44 = param_7;\n  if (param_1 == 0x28) {\n    local_44 = param_7 & 0xfffffffe;\n  }\n  if (param_2 < param_2 + param_3 * 7) {\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }\n  *param_9 = 0;\n  param_10[1] = param_8;\n  *param_10 = local_44;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint local_44;" type_identifier identifier ;) (declaration "uint *local_3c;" type_identifier (pointer_declarator "*local_3c" * identifier) ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "local_44 = param_7;" (assignment_expression "local_44 = param_7" identifier = identifier) ;) (if_statement "if (param_1 == 0x28) {\n    local_44 = param_7 & 0xfffffffe;\n  }" if (parenthesized_expression "(param_1 == 0x28)" ( (binary_expression "param_1 == 0x28" identifier == number_literal) )) (compound_statement "{\n    local_44 = param_7 & 0xfffffffe;\n  }" { (expression_statement "local_44 = param_7 & 0xfffffffe;" (assignment_expression "local_44 = param_7 & 0xfffffffe" identifier = (binary_expression "param_7 & 0xfffffffe" identifier & number_literal)) ;) })) (if_statement "if (param_2 < param_2 + param_3 * 7) {\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }" if (parenthesized_expression "(param_2 < param_2 + param_3 * 7)" ( (binary_expression "param_2 < param_2 + param_3 * 7" identifier < (binary_expression "param_2 + param_3 * 7" identifier + (binary_expression "param_3 * 7" identifier * number_literal))) )) (compound_statement "{\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }" { (expression_statement "local_24 = (uint *)0x0;" (assignment_expression "local_24 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_30 = 0x100000;" (assignment_expression "local_30 = 0x100000" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_3c = param_2 + param_3 * 7;" (assignment_expression "local_3c = param_2 + param_3 * 7" identifier = (binary_expression "param_2 + param_3 * 7" identifier + (binary_expression "param_3 * 7" identifier * number_literal))) ;) (do_statement "do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);" do (compound_statement "{\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    }" { (while_statement "while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }" { (expression_statement "puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;" (assignment_expression "puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7" identifier = (binary_expression "param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7" identifier + (binary_expression "((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7" (parenthesized_expression "((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2)" ( (binary_expression "(((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2" (parenthesized_expression "(((int)local_3c - (int)param_2 >> 2) * -0x49249249)" ( (binary_expression "((int)local_3c - (int)param_2 >> 2) * -0x49249249" (parenthesized_expression "((int)local_3c - (int)param_2 >> 2)" ( (binary_expression "(int)local_3c - (int)param_2 >> 2" (binary_expression "(int)local_3c - (int)param_2" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) * number_literal) )) / number_literal) )) * number_literal))) ;) (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "uVar1 = puVar2[1];" (assignment_expression "uVar1 = puVar2[1]" identifier = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (if_statement "if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }" if (parenthesized_expression "(param_1 == 0x28)" ( (binary_expression "param_1 == 0x28" identifier == number_literal) )) (compound_statement "{\n          uVar3 = uVar3 & 0xfffffffe;\n        }" { (expression_statement "uVar3 = uVar3 & 0xfffffffe;" (assignment_expression "uVar3 = uVar3 & 0xfffffffe" identifier = (binary_expression "uVar3 & 0xfffffffe" identifier & number_literal)) ;) })) (expression_statement "uVar4 = puVar2[4];" (assignment_expression "uVar4 = puVar2[4]" identifier = (subscript_expression "puVar2[4]" identifier [ number_literal ])) ;) (if_statement "if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;" if (parenthesized_expression "((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6]))))" ( (binary_expression "(uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))" (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "((param_6 == 0 || ((uint)param_6 == puVar2[6])))" ( (parenthesized_expression "(param_6 == 0 || ((uint)param_6 == puVar2[6]))" ( (binary_expression "param_6 == 0 || ((uint)param_6 == puVar2[6])" (binary_expression "param_6 == 0" identifier == number_literal) || (parenthesized_expression "((uint)param_6 == puVar2[6])" ( (binary_expression "(uint)param_6 == puVar2[6]" (cast_expression "(uint)param_6" ( (type_descriptor "uint" type_identifier) ) identifier) == (subscript_expression "puVar2[6]" identifier [ number_literal ])) ))) )) ))) )) (break_statement "break;" break ;)) (if_statement "if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;" if (parenthesized_expression "(param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3))" ( (binary_expression "param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)" (binary_expression "param_8 < uVar1" identifier < identifier) || (binary_expression "param_8 - uVar1 < (uint)(local_44 < uVar3)" (binary_expression "param_8 - uVar1" identifier - identifier) < (call_expression "(uint)(local_44 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_44 < uVar3)" ( (binary_expression "local_44 < uVar3" identifier < identifier) ))))) )) (goto_statement "goto LAB_00023c2c;" goto statement_identifier ;)) (labeled_statement "LAB_00023bc8:\n        param_2 = puVar2 + 7;" statement_identifier : (expression_statement "param_2 = puVar2 + 7;" (assignment_expression "param_2 = puVar2 + 7" identifier = (binary_expression "puVar2 + 7" identifier + number_literal)) ;)) (if_statement "if (local_3c <= param_2) goto LAB_00023c36;" if (parenthesized_expression "(local_3c <= param_2)" ( (binary_expression "local_3c <= param_2" identifier <= identifier) )) (goto_statement "goto LAB_00023c36;" goto statement_identifier ;)) })) (if_statement "if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }" if (parenthesized_expression "(uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1)" ( (binary_expression "uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1" (binary_expression "uVar1 <= param_8" identifier <= identifier) && (binary_expression "(uint)(local_44 < uVar3) <= param_8 - uVar1" (call_expression "(uint)(local_44 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_44 < uVar3)" ( (binary_expression "local_44 < uVar3" identifier < identifier) ))) <= (binary_expression "param_8 - uVar1" identifier - identifier))) )) (compound_statement "{\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }" { (expression_statement "uVar5 = local_44 - uVar3;" (assignment_expression "uVar5 = local_44 - uVar3" identifier = (binary_expression "local_44 - uVar3" identifier - identifier)) ;) (expression_statement "uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);" (assignment_expression "uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3)" identifier = (binary_expression "(param_8 - uVar1) - (uint)(local_44 < uVar3)" (parenthesized_expression "(param_8 - uVar1)" ( (binary_expression "param_8 - uVar1" identifier - identifier) )) - (call_expression "(uint)(local_44 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_44 < uVar3)" ( (binary_expression "local_44 < uVar3" identifier < identifier) ))))) ;) (if_statement "if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;" if (parenthesized_expression "((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))" ( (binary_expression "(local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0)" (parenthesized_expression "(local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c)" ( (binary_expression "local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c" (binary_expression "local_2c <= uVar3" identifier <= identifier) && (binary_expression "(uint)(uVar5 < local_30) <= uVar3 - local_2c" (call_expression "(uint)(uVar5 < local_30)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < local_30)" ( (binary_expression "uVar5 < local_30" identifier < identifier) ))) <= (binary_expression "uVar3 - local_2c" identifier - identifier))) )) || (parenthesized_expression "(local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0)" ( (comma_expression "local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0" (assignment_expression "local_30 = uVar5" identifier = identifier) , (comma_expression "local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0" (assignment_expression "local_2c = uVar3" identifier = identifier) , (comma_expression "local_24 = puVar2, uVar5 != 0 || uVar3 != 0" (assignment_expression "local_24 = puVar2" identifier = identifier) , (binary_expression "uVar5 != 0 || uVar3 != 0" (binary_expression "uVar5 != 0" identifier != number_literal) || (binary_expression "uVar3 != 0" identifier != number_literal))))) ))) )) (goto_statement "goto LAB_00023bc8;" goto statement_identifier ;)) (goto_statement "goto LAB_00023c41;" goto statement_identifier ;) })) (labeled_statement "LAB_00023c2c:\n      local_3c = puVar2;" statement_identifier : (expression_statement "local_3c = puVar2;" (assignment_expression "local_3c = puVar2" identifier = identifier) ;)) }) while (parenthesized_expression "(param_2 < puVar2)" ( (binary_expression "param_2 < puVar2" identifier < identifier) )) ;) (labeled_statement "LAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }" statement_identifier : (if_statement "if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }" if (parenthesized_expression "(local_24 != (uint *)0x0)" ( (binary_expression "local_24 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }" { (expression_statement "uVar4 = local_24[4];" (assignment_expression "uVar4 = local_24[4]" identifier = (subscript_expression "local_24[4]" identifier [ number_literal ])) ;) (labeled_statement "LAB_00023c41:\n      param_4 = param_4 + uVar4;" statement_identifier : (expression_statement "param_4 = param_4 + uVar4;" (assignment_expression "param_4 = param_4 + uVar4" identifier = (binary_expression "param_4 + uVar4" identifier + identifier)) ;)) (if_statement "if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }" if (parenthesized_expression "(param_5 <= uVar4)" ( (binary_expression "param_5 <= uVar4" identifier <= identifier) )) (compound_statement "{\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }" { (expression_statement "param_4 = dcgettext(0,"<corrupt>",5);" (assignment_expression "param_4 = dcgettext(0,"<corrupt>",5)" identifier = (call_expression "dcgettext(0,"<corrupt>",5)" identifier (argument_list "(0,"<corrupt>",5)" ( number_literal , (string_literal ""<corrupt>"" " string_content ") , number_literal )))) ;) })) (expression_statement "*param_9 = param_4;" (assignment_expression "*param_9 = param_4" (pointer_expression "*param_9" * identifier) = identifier) ;) (expression_statement "*param_10 = local_30;" (assignment_expression "*param_10 = local_30" (pointer_expression "*param_10" * identifier) = identifier) ;) (expression_statement "param_10[1] = local_2c;" (assignment_expression "param_10[1] = local_2c" (subscript_expression "param_10[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) }))) })) (expression_statement "*param_9 = 0;" (assignment_expression "*param_9 = 0" (pointer_expression "*param_9" * identifier) = number_literal) ;) (expression_statement "param_10[1] = param_8;" (assignment_expression "param_10[1] = param_8" (subscript_expression "param_10[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_10 = local_44;" (assignment_expression "*param_10 = local_44" (pointer_expression "*param_10" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3\nfind_symbol_for_address\n          (Filedata *filedata,Elf_Internal_Sym *symtab,ulong nsyms,char *strtab,ulong strtab_size,\n          absaddr addr,char **symname,bfd_vma *offset)\n\n{\n  uint uVar1;\n  Elf_Internal_Sym *pEVar2;\n  char *pcVar3;\n  uint uVar4;\n  ulong uVar5;\n  uint uVar6;\n  uint local_44;\n  Elf_Internal_Sym *local_3c;\n  uint local_30;\n  uint local_2c;\n  Elf_Internal_Sym *local_24;\n  \n  local_44 = (uint)addr.offset;\n  if ((short)filedata == 0x28) {\n    local_44 = (uint)addr.offset & 0xfffffffe;\n  }\n  if (symtab < symtab + nsyms) {\n    local_24 = (Elf_Internal_Sym *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = symtab + nsyms;\n    do {\n      while( true ) {\n        pEVar2 = symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2;\n        uVar4 = (uint)pEVar2->st_value;\n        uVar1 = *(uint *)((int)&pEVar2->st_value + 4);\n        if ((short)filedata == 0x28) {\n          uVar4 = uVar4 & 0xfffffffe;\n        }\n        uVar5 = pEVar2->st_name;\n        if ((uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))))\n        break;\n        if (addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4))\n        goto LAB_00023c2c;\nLAB_00023bc8:\n        symtab = pEVar2 + 1;\n        if (local_3c <= symtab) goto LAB_00023c36;\n      }\n      if (uVar1 <= addr.offset._4_4_ && (uint)(local_44 < uVar4) <= addr.offset._4_4_ - uVar1) {\n        uVar6 = local_44 - uVar4;\n        uVar4 = (addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4);\n        if ((local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||\n           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = pEVar2;\n    } while (symtab < pEVar2);\nLAB_00023c36:\n    if (local_24 != (Elf_Internal_Sym *)0x0) {\n      uVar5 = local_24->st_name;\nLAB_00023c41:\n      pcVar3 = strtab + uVar5;\n      if (strtab_size <= uVar5) {\n        pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      }\n      *symname = pcVar3;\n      *(uint *)offset = local_30;\n      *(uint *)((int)offset + 4) = local_2c;\n      return;\n    }\n  }\n  *symname = (char *)0x0;\n  *(uint *)((int)offset + 4) = addr.offset._4_4_;\n  *(uint *)offset = local_44;\n  return;\n}\n\n" comment (function_definition "void __regparm3\nfind_symbol_for_address\n          (Filedata *filedata,Elf_Internal_Sym *symtab,ulong nsyms,char *strtab,ulong strtab_size,\n          absaddr addr,char **symname,bfd_vma *offset)\n\n{\n  uint uVar1;\n  Elf_Internal_Sym *pEVar2;\n  char *pcVar3;\n  uint uVar4;\n  ulong uVar5;\n  uint uVar6;\n  uint local_44;\n  Elf_Internal_Sym *local_3c;\n  uint local_30;\n  uint local_2c;\n  Elf_Internal_Sym *local_24;\n  \n  local_44 = (uint)addr.offset;\n  if ((short)filedata == 0x28) {\n    local_44 = (uint)addr.offset & 0xfffffffe;\n  }\n  if (symtab < symtab + nsyms) {\n    local_24 = (Elf_Internal_Sym *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = symtab + nsyms;\n    do {\n      while( true ) {\n        pEVar2 = symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2;\n        uVar4 = (uint)pEVar2->st_value;\n        uVar1 = *(uint *)((int)&pEVar2->st_value + 4);\n        if ((short)filedata == 0x28) {\n          uVar4 = uVar4 & 0xfffffffe;\n        }\n        uVar5 = pEVar2->st_name;\n        if ((uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))))\n        break;\n        if (addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4))\n        goto LAB_00023c2c;\nLAB_00023bc8:\n        symtab = pEVar2 + 1;\n        if (local_3c <= symtab) goto LAB_00023c36;\n      }\n      if (uVar1 <= addr.offset._4_4_ && (uint)(local_44 < uVar4) <= addr.offset._4_4_ - uVar1) {\n        uVar6 = local_44 - uVar4;\n        uVar4 = (addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4);\n        if ((local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||\n           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = pEVar2;\n    } while (symtab < pEVar2);\nLAB_00023c36:\n    if (local_24 != (Elf_Internal_Sym *)0x0) {\n      uVar5 = local_24->st_name;\nLAB_00023c41:\n      pcVar3 = strtab + uVar5;\n      if (strtab_size <= uVar5) {\n        pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      }\n      *symname = pcVar3;\n      *(uint *)offset = local_30;\n      *(uint *)((int)offset + 4) = local_2c;\n      return;\n    }\n  }\n  *symname = (char *)0x0;\n  *(uint *)((int)offset + 4) = addr.offset._4_4_;\n  *(uint *)offset = local_44;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "find_symbol_for_address\n          (Filedata *filedata,Elf_Internal_Sym *symtab,ulong nsyms,char *strtab,ulong strtab_size,\n          absaddr addr,char **symname,bfd_vma *offset)" identifier (parameter_list "(Filedata *filedata,Elf_Internal_Sym *symtab,ulong nsyms,char *strtab,ulong strtab_size,\n          absaddr addr,char **symname,bfd_vma *offset)" ( (parameter_declaration "Filedata *filedata" type_identifier (pointer_declarator "*filedata" * identifier)) , (parameter_declaration "Elf_Internal_Sym *symtab" type_identifier (pointer_declarator "*symtab" * identifier)) , (parameter_declaration "ulong nsyms" type_identifier identifier) , (parameter_declaration "char *strtab" primitive_type (pointer_declarator "*strtab" * identifier)) , (parameter_declaration "ulong strtab_size" type_identifier identifier) , (parameter_declaration "absaddr addr" type_identifier identifier) , (parameter_declaration "char **symname" primitive_type (pointer_declarator "**symname" * (pointer_declarator "*symname" * identifier))) , (parameter_declaration "bfd_vma *offset" type_identifier (pointer_declarator "*offset" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  Elf_Internal_Sym *pEVar2;\n  char *pcVar3;\n  uint uVar4;\n  ulong uVar5;\n  uint uVar6;\n  uint local_44;\n  Elf_Internal_Sym *local_3c;\n  uint local_30;\n  uint local_2c;\n  Elf_Internal_Sym *local_24;\n  \n  local_44 = (uint)addr.offset;\n  if ((short)filedata == 0x28) {\n    local_44 = (uint)addr.offset & 0xfffffffe;\n  }\n  if (symtab < symtab + nsyms) {\n    local_24 = (Elf_Internal_Sym *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = symtab + nsyms;\n    do {\n      while( true ) {\n        pEVar2 = symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2;\n        uVar4 = (uint)pEVar2->st_value;\n        uVar1 = *(uint *)((int)&pEVar2->st_value + 4);\n        if ((short)filedata == 0x28) {\n          uVar4 = uVar4 & 0xfffffffe;\n        }\n        uVar5 = pEVar2->st_name;\n        if ((uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))))\n        break;\n        if (addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4))\n        goto LAB_00023c2c;\nLAB_00023bc8:\n        symtab = pEVar2 + 1;\n        if (local_3c <= symtab) goto LAB_00023c36;\n      }\n      if (uVar1 <= addr.offset._4_4_ && (uint)(local_44 < uVar4) <= addr.offset._4_4_ - uVar1) {\n        uVar6 = local_44 - uVar4;\n        uVar4 = (addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4);\n        if ((local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||\n           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = pEVar2;\n    } while (symtab < pEVar2);\nLAB_00023c36:\n    if (local_24 != (Elf_Internal_Sym *)0x0) {\n      uVar5 = local_24->st_name;\nLAB_00023c41:\n      pcVar3 = strtab + uVar5;\n      if (strtab_size <= uVar5) {\n        pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      }\n      *symname = pcVar3;\n      *(uint *)offset = local_30;\n      *(uint *)((int)offset + 4) = local_2c;\n      return;\n    }\n  }\n  *symname = (char *)0x0;\n  *(uint *)((int)offset + 4) = addr.offset._4_4_;\n  *(uint *)offset = local_44;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "Elf_Internal_Sym *pEVar2;" type_identifier (pointer_declarator "*pEVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint local_44;" type_identifier identifier ;) (declaration "Elf_Internal_Sym *local_3c;" type_identifier (pointer_declarator "*local_3c" * identifier) ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "Elf_Internal_Sym *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "local_44 = (uint)addr.offset;" (assignment_expression "local_44 = (uint)addr.offset" identifier = (cast_expression "(uint)addr.offset" ( (type_descriptor "uint" type_identifier) ) (field_expression "addr.offset" identifier . field_identifier))) ;) (if_statement "if ((short)filedata == 0x28) {\n    local_44 = (uint)addr.offset & 0xfffffffe;\n  }" if (parenthesized_expression "((short)filedata == 0x28)" ( (binary_expression "(short)filedata == 0x28" (cast_expression "(short)filedata" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) == number_literal) )) (compound_statement "{\n    local_44 = (uint)addr.offset & 0xfffffffe;\n  }" { (expression_statement "local_44 = (uint)addr.offset & 0xfffffffe;" (assignment_expression "local_44 = (uint)addr.offset & 0xfffffffe" identifier = (binary_expression "(uint)addr.offset & 0xfffffffe" (cast_expression "(uint)addr.offset" ( (type_descriptor "uint" type_identifier) ) (field_expression "addr.offset" identifier . field_identifier)) & number_literal)) ;) })) (if_statement "if (symtab < symtab + nsyms) {\n    local_24 = (Elf_Internal_Sym *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = symtab + nsyms;\n    do {\n      while( true ) {\n        pEVar2 = symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2;\n        uVar4 = (uint)pEVar2->st_value;\n        uVar1 = *(uint *)((int)&pEVar2->st_value + 4);\n        if ((short)filedata == 0x28) {\n          uVar4 = uVar4 & 0xfffffffe;\n        }\n        uVar5 = pEVar2->st_name;\n        if ((uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))))\n        break;\n        if (addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4))\n        goto LAB_00023c2c;\nLAB_00023bc8:\n        symtab = pEVar2 + 1;\n        if (local_3c <= symtab) goto LAB_00023c36;\n      }\n      if (uVar1 <= addr.offset._4_4_ && (uint)(local_44 < uVar4) <= addr.offset._4_4_ - uVar1) {\n        uVar6 = local_44 - uVar4;\n        uVar4 = (addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4);\n        if ((local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||\n           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = pEVar2;\n    } while (symtab < pEVar2);\nLAB_00023c36:\n    if (local_24 != (Elf_Internal_Sym *)0x0) {\n      uVar5 = local_24->st_name;\nLAB_00023c41:\n      pcVar3 = strtab + uVar5;\n      if (strtab_size <= uVar5) {\n        pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      }\n      *symname = pcVar3;\n      *(uint *)offset = local_30;\n      *(uint *)((int)offset + 4) = local_2c;\n      return;\n    }\n  }" if (parenthesized_expression "(symtab < symtab + nsyms)" ( (binary_expression "symtab < symtab + nsyms" identifier < (binary_expression "symtab + nsyms" identifier + identifier)) )) (compound_statement "{\n    local_24 = (Elf_Internal_Sym *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = symtab + nsyms;\n    do {\n      while( true ) {\n        pEVar2 = symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2;\n        uVar4 = (uint)pEVar2->st_value;\n        uVar1 = *(uint *)((int)&pEVar2->st_value + 4);\n        if ((short)filedata == 0x28) {\n          uVar4 = uVar4 & 0xfffffffe;\n        }\n        uVar5 = pEVar2->st_name;\n        if ((uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))))\n        break;\n        if (addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4))\n        goto LAB_00023c2c;\nLAB_00023bc8:\n        symtab = pEVar2 + 1;\n        if (local_3c <= symtab) goto LAB_00023c36;\n      }\n      if (uVar1 <= addr.offset._4_4_ && (uint)(local_44 < uVar4) <= addr.offset._4_4_ - uVar1) {\n        uVar6 = local_44 - uVar4;\n        uVar4 = (addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4);\n        if ((local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||\n           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = pEVar2;\n    } while (symtab < pEVar2);\nLAB_00023c36:\n    if (local_24 != (Elf_Internal_Sym *)0x0) {\n      uVar5 = local_24->st_name;\nLAB_00023c41:\n      pcVar3 = strtab + uVar5;\n      if (strtab_size <= uVar5) {\n        pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      }\n      *symname = pcVar3;\n      *(uint *)offset = local_30;\n      *(uint *)((int)offset + 4) = local_2c;\n      return;\n    }\n  }" { (expression_statement "local_24 = (Elf_Internal_Sym *)0x0;" (assignment_expression "local_24 = (Elf_Internal_Sym *)0x0" identifier = (cast_expression "(Elf_Internal_Sym *)0x0" ( (type_descriptor "Elf_Internal_Sym *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_30 = 0x100000;" (assignment_expression "local_30 = 0x100000" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_3c = symtab + nsyms;" (assignment_expression "local_3c = symtab + nsyms" identifier = (binary_expression "symtab + nsyms" identifier + identifier)) ;) (do_statement "do {\n      while( true ) {\n        pEVar2 = symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2;\n        uVar4 = (uint)pEVar2->st_value;\n        uVar1 = *(uint *)((int)&pEVar2->st_value + 4);\n        if ((short)filedata == 0x28) {\n          uVar4 = uVar4 & 0xfffffffe;\n        }\n        uVar5 = pEVar2->st_name;\n        if ((uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))))\n        break;\n        if (addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4))\n        goto LAB_00023c2c;\nLAB_00023bc8:\n        symtab = pEVar2 + 1;\n        if (local_3c <= symtab) goto LAB_00023c36;\n      }\n      if (uVar1 <= addr.offset._4_4_ && (uint)(local_44 < uVar4) <= addr.offset._4_4_ - uVar1) {\n        uVar6 = local_44 - uVar4;\n        uVar4 = (addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4);\n        if ((local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||\n           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = pEVar2;\n    } while (symtab < pEVar2);" do (compound_statement "{\n      while( true ) {\n        pEVar2 = symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2;\n        uVar4 = (uint)pEVar2->st_value;\n        uVar1 = *(uint *)((int)&pEVar2->st_value + 4);\n        if ((short)filedata == 0x28) {\n          uVar4 = uVar4 & 0xfffffffe;\n        }\n        uVar5 = pEVar2->st_name;\n        if ((uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))))\n        break;\n        if (addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4))\n        goto LAB_00023c2c;\nLAB_00023bc8:\n        symtab = pEVar2 + 1;\n        if (local_3c <= symtab) goto LAB_00023c36;\n      }\n      if (uVar1 <= addr.offset._4_4_ && (uint)(local_44 < uVar4) <= addr.offset._4_4_ - uVar1) {\n        uVar6 = local_44 - uVar4;\n        uVar4 = (addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4);\n        if ((local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||\n           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = pEVar2;\n    }" { (while_statement "while( true ) {\n        pEVar2 = symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2;\n        uVar4 = (uint)pEVar2->st_value;\n        uVar1 = *(uint *)((int)&pEVar2->st_value + 4);\n        if ((short)filedata == 0x28) {\n          uVar4 = uVar4 & 0xfffffffe;\n        }\n        uVar5 = pEVar2->st_name;\n        if ((uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))))\n        break;\n        if (addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4))\n        goto LAB_00023c2c;\nLAB_00023bc8:\n        symtab = pEVar2 + 1;\n        if (local_3c <= symtab) goto LAB_00023c36;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        pEVar2 = symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2;\n        uVar4 = (uint)pEVar2->st_value;\n        uVar1 = *(uint *)((int)&pEVar2->st_value + 4);\n        if ((short)filedata == 0x28) {\n          uVar4 = uVar4 & 0xfffffffe;\n        }\n        uVar5 = pEVar2->st_name;\n        if ((uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))))\n        break;\n        if (addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4))\n        goto LAB_00023c2c;\nLAB_00023bc8:\n        symtab = pEVar2 + 1;\n        if (local_3c <= symtab) goto LAB_00023c36;\n      }" { (expression_statement "pEVar2 = symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2;" (assignment_expression "pEVar2 = symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2" identifier = (binary_expression "symtab + (((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2" identifier + (binary_expression "(((int)local_3c - (int)symtab >> 2) * -0x49249249) / 2" (parenthesized_expression "(((int)local_3c - (int)symtab >> 2) * -0x49249249)" ( (binary_expression "((int)local_3c - (int)symtab >> 2) * -0x49249249" (parenthesized_expression "((int)local_3c - (int)symtab >> 2)" ( (binary_expression "(int)local_3c - (int)symtab >> 2" (binary_expression "(int)local_3c - (int)symtab" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)symtab" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) * number_literal) )) / number_literal))) ;) (expression_statement "uVar4 = (uint)pEVar2->st_value;" (assignment_expression "uVar4 = (uint)pEVar2->st_value" identifier = (cast_expression "(uint)pEVar2->st_value" ( (type_descriptor "uint" type_identifier) ) (field_expression "pEVar2->st_value" identifier -> field_identifier))) ;) (expression_statement "uVar1 = *(uint *)((int)&pEVar2->st_value + 4);" (assignment_expression "uVar1 = *(uint *)((int)&pEVar2->st_value + 4)" identifier = (pointer_expression "*(uint *)((int)&pEVar2->st_value + 4)" * (cast_expression "(uint *)((int)&pEVar2->st_value + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pEVar2->st_value + 4)" ( (binary_expression "(int)&pEVar2->st_value + 4" (cast_expression "(int)&pEVar2->st_value" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pEVar2->st_value" & (field_expression "pEVar2->st_value" identifier -> field_identifier))) + number_literal) ))))) ;) (if_statement "if ((short)filedata == 0x28) {\n          uVar4 = uVar4 & 0xfffffffe;\n        }" if (parenthesized_expression "((short)filedata == 0x28)" ( (binary_expression "(short)filedata == 0x28" (cast_expression "(short)filedata" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) == number_literal) )) (compound_statement "{\n          uVar4 = uVar4 & 0xfffffffe;\n        }" { (expression_statement "uVar4 = uVar4 & 0xfffffffe;" (assignment_expression "uVar4 = uVar4 & 0xfffffffe" identifier = (binary_expression "uVar4 & 0xfffffffe" identifier & number_literal)) ;) })) (expression_statement "uVar5 = pEVar2->st_name;" (assignment_expression "uVar5 = pEVar2->st_name" identifier = (field_expression "pEVar2->st_name" identifier -> field_identifier)) ;) (if_statement "if ((uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))))\n        break;" if (parenthesized_expression "((uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))))" ( (binary_expression "(uVar5 != 0) && ((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx)))" (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "((addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx)))" ( (parenthesized_expression "(addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx))" ( (binary_expression "addr.section == 0 || ((uint)addr.section == pEVar2->st_shndx)" (binary_expression "addr.section == 0" (field_expression "addr.section" identifier . field_identifier) == number_literal) || (parenthesized_expression "((uint)addr.section == pEVar2->st_shndx)" ( (binary_expression "(uint)addr.section == pEVar2->st_shndx" (cast_expression "(uint)addr.section" ( (type_descriptor "uint" type_identifier) ) (field_expression "addr.section" identifier . field_identifier)) == (field_expression "pEVar2->st_shndx" identifier -> field_identifier)) ))) )) ))) )) (break_statement "break;" break ;)) (if_statement "if (addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4))\n        goto LAB_00023c2c;" if (parenthesized_expression "(addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4))" ( (binary_expression "addr.offset._4_4_ < uVar1 || addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4)" (binary_expression "addr.offset._4_4_ < uVar1" (field_expression "addr.offset._4_4_" (field_expression "addr.offset" identifier . field_identifier) . field_identifier) < identifier) || (binary_expression "addr.offset._4_4_ - uVar1 < (uint)(local_44 < uVar4)" (binary_expression "addr.offset._4_4_ - uVar1" (field_expression "addr.offset._4_4_" (field_expression "addr.offset" identifier . field_identifier) . field_identifier) - identifier) < (call_expression "(uint)(local_44 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_44 < uVar4)" ( (binary_expression "local_44 < uVar4" identifier < identifier) ))))) )) (goto_statement "goto LAB_00023c2c;" goto statement_identifier ;)) (labeled_statement "LAB_00023bc8:\n        symtab = pEVar2 + 1;" statement_identifier : (expression_statement "symtab = pEVar2 + 1;" (assignment_expression "symtab = pEVar2 + 1" identifier = (binary_expression "pEVar2 + 1" identifier + number_literal)) ;)) (if_statement "if (local_3c <= symtab) goto LAB_00023c36;" if (parenthesized_expression "(local_3c <= symtab)" ( (binary_expression "local_3c <= symtab" identifier <= identifier) )) (goto_statement "goto LAB_00023c36;" goto statement_identifier ;)) })) (if_statement "if (uVar1 <= addr.offset._4_4_ && (uint)(local_44 < uVar4) <= addr.offset._4_4_ - uVar1) {\n        uVar6 = local_44 - uVar4;\n        uVar4 = (addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4);\n        if ((local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||\n           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }" if (parenthesized_expression "(uVar1 <= addr.offset._4_4_ && (uint)(local_44 < uVar4) <= addr.offset._4_4_ - uVar1)" ( (binary_expression "uVar1 <= addr.offset._4_4_ && (uint)(local_44 < uVar4) <= addr.offset._4_4_ - uVar1" (binary_expression "uVar1 <= addr.offset._4_4_" identifier <= (field_expression "addr.offset._4_4_" (field_expression "addr.offset" identifier . field_identifier) . field_identifier)) && (binary_expression "(uint)(local_44 < uVar4) <= addr.offset._4_4_ - uVar1" (call_expression "(uint)(local_44 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_44 < uVar4)" ( (binary_expression "local_44 < uVar4" identifier < identifier) ))) <= (binary_expression "addr.offset._4_4_ - uVar1" (field_expression "addr.offset._4_4_" (field_expression "addr.offset" identifier . field_identifier) . field_identifier) - identifier))) )) (compound_statement "{\n        uVar6 = local_44 - uVar4;\n        uVar4 = (addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4);\n        if ((local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||\n           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }" { (expression_statement "uVar6 = local_44 - uVar4;" (assignment_expression "uVar6 = local_44 - uVar4" identifier = (binary_expression "local_44 - uVar4" identifier - identifier)) ;) (expression_statement "uVar4 = (addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4);" (assignment_expression "uVar4 = (addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4)" identifier = (binary_expression "(addr.offset._4_4_ - uVar1) - (uint)(local_44 < uVar4)" (parenthesized_expression "(addr.offset._4_4_ - uVar1)" ( (binary_expression "addr.offset._4_4_ - uVar1" (field_expression "addr.offset._4_4_" (field_expression "addr.offset" identifier . field_identifier) . field_identifier) - identifier) )) - (call_expression "(uint)(local_44 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_44 < uVar4)" ( (binary_expression "local_44 < uVar4" identifier < identifier) ))))) ;) (if_statement "if ((local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||\n           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0))\n        goto LAB_00023bc8;" if (parenthesized_expression "((local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||\n           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0))" ( (binary_expression "(local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c) ||\n           (local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0)" (parenthesized_expression "(local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c)" ( (binary_expression "local_2c <= uVar4 && (uint)(uVar6 < local_30) <= uVar4 - local_2c" (binary_expression "local_2c <= uVar4" identifier <= identifier) && (binary_expression "(uint)(uVar6 < local_30) <= uVar4 - local_2c" (call_expression "(uint)(uVar6 < local_30)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 < local_30)" ( (binary_expression "uVar6 < local_30" identifier < identifier) ))) <= (binary_expression "uVar4 - local_2c" identifier - identifier))) )) || (parenthesized_expression "(local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0)" ( (comma_expression "local_30 = uVar6, local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0" (assignment_expression "local_30 = uVar6" identifier = identifier) , (comma_expression "local_2c = uVar4, local_24 = pEVar2, uVar6 != 0 || uVar4 != 0" (assignment_expression "local_2c = uVar4" identifier = identifier) , (comma_expression "local_24 = pEVar2, uVar6 != 0 || uVar4 != 0" (assignment_expression "local_24 = pEVar2" identifier = identifier) , (binary_expression "uVar6 != 0 || uVar4 != 0" (binary_expression "uVar6 != 0" identifier != number_literal) || (binary_expression "uVar4 != 0" identifier != number_literal))))) ))) )) (goto_statement "goto LAB_00023bc8;" goto statement_identifier ;)) (goto_statement "goto LAB_00023c41;" goto statement_identifier ;) })) (labeled_statement "LAB_00023c2c:\n      local_3c = pEVar2;" statement_identifier : (expression_statement "local_3c = pEVar2;" (assignment_expression "local_3c = pEVar2" identifier = identifier) ;)) }) while (parenthesized_expression "(symtab < pEVar2)" ( (binary_expression "symtab < pEVar2" identifier < identifier) )) ;) (labeled_statement "LAB_00023c36:\n    if (local_24 != (Elf_Internal_Sym *)0x0) {\n      uVar5 = local_24->st_name;\nLAB_00023c41:\n      pcVar3 = strtab + uVar5;\n      if (strtab_size <= uVar5) {\n        pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      }\n      *symname = pcVar3;\n      *(uint *)offset = local_30;\n      *(uint *)((int)offset + 4) = local_2c;\n      return;\n    }" statement_identifier : (if_statement "if (local_24 != (Elf_Internal_Sym *)0x0) {\n      uVar5 = local_24->st_name;\nLAB_00023c41:\n      pcVar3 = strtab + uVar5;\n      if (strtab_size <= uVar5) {\n        pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      }\n      *symname = pcVar3;\n      *(uint *)offset = local_30;\n      *(uint *)((int)offset + 4) = local_2c;\n      return;\n    }" if (parenthesized_expression "(local_24 != (Elf_Internal_Sym *)0x0)" ( (binary_expression "local_24 != (Elf_Internal_Sym *)0x0" identifier != (cast_expression "(Elf_Internal_Sym *)0x0" ( (type_descriptor "Elf_Internal_Sym *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar5 = local_24->st_name;\nLAB_00023c41:\n      pcVar3 = strtab + uVar5;\n      if (strtab_size <= uVar5) {\n        pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      }\n      *symname = pcVar3;\n      *(uint *)offset = local_30;\n      *(uint *)((int)offset + 4) = local_2c;\n      return;\n    }" { (expression_statement "uVar5 = local_24->st_name;" (assignment_expression "uVar5 = local_24->st_name" identifier = (field_expression "local_24->st_name" identifier -> field_identifier)) ;) (labeled_statement "LAB_00023c41:\n      pcVar3 = strtab + uVar5;" statement_identifier : (expression_statement "pcVar3 = strtab + uVar5;" (assignment_expression "pcVar3 = strtab + uVar5" identifier = (binary_expression "strtab + uVar5" identifier + identifier)) ;)) (if_statement "if (strtab_size <= uVar5) {\n        pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      }" if (parenthesized_expression "(strtab_size <= uVar5)" ( (binary_expression "strtab_size <= uVar5" identifier <= identifier) )) (compound_statement "{\n        pcVar3 = (char *)dcgettext(0,"<corrupt>",5);\n      }" { (expression_statement "pcVar3 = (char *)dcgettext(0,"<corrupt>",5);" (assignment_expression "pcVar3 = (char *)dcgettext(0,"<corrupt>",5)" identifier = (cast_expression "(char *)dcgettext(0,"<corrupt>",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"<corrupt>",5)" identifier (argument_list "(0,"<corrupt>",5)" ( number_literal , (string_literal ""<corrupt>"" " string_content ") , number_literal ))))) ;) })) (expression_statement "*symname = pcVar3;" (assignment_expression "*symname = pcVar3" (pointer_expression "*symname" * identifier) = identifier) ;) (expression_statement "*(uint *)offset = local_30;" (assignment_expression "*(uint *)offset = local_30" (pointer_expression "*(uint *)offset" * (cast_expression "(uint *)offset" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(uint *)((int)offset + 4) = local_2c;" (assignment_expression "*(uint *)((int)offset + 4) = local_2c" (pointer_expression "*(uint *)((int)offset + 4)" * (cast_expression "(uint *)((int)offset + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)offset + 4)" ( (binary_expression "(int)offset + 4" (cast_expression "(int)offset" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) }))) })) (expression_statement "*symname = (char *)0x0;" (assignment_expression "*symname = (char *)0x0" (pointer_expression "*symname" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "*(uint *)((int)offset + 4) = addr.offset._4_4_;" (assignment_expression "*(uint *)((int)offset + 4) = addr.offset._4_4_" (pointer_expression "*(uint *)((int)offset + 4)" * (cast_expression "(uint *)((int)offset + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)offset + 4)" ( (binary_expression "(int)offset + 4" (cast_expression "(int)offset" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (field_expression "addr.offset._4_4_" (field_expression "addr.offset" identifier . field_identifier) . field_identifier)) ;) (expression_statement "*(uint *)offset = local_44;" (assignment_expression "*(uint *)offset = local_44" (pointer_expression "*(uint *)offset" * (cast_expression "(uint *)offset" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3\nFUN_00023b50(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,\n            uint param_7,uint param_8,int *param_9,uint *param_10)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint local_44;\n  uint *local_3c;\n  uint local_30;\n  uint local_2c;\n  uint *local_24;\n  \n  local_44 = param_7;\n  if (param_1 == 0x28) {\n    local_44 = param_7 & 0xfffffffe;\n  }\n  if (param_2 < param_2 + param_3 * 7) {\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }\n  *param_9 = 0;\n  param_10[1] = param_8;\n  *param_10 = local_44;\n  return;\n}\n\n" (function_definition "void __regparm3\nFUN_00023b50(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,\n            uint param_7,uint param_8,int *param_9,uint *param_10)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint local_44;\n  uint *local_3c;\n  uint local_30;\n  uint local_2c;\n  uint *local_24;\n  \n  local_44 = param_7;\n  if (param_1 == 0x28) {\n    local_44 = param_7 & 0xfffffffe;\n  }\n  if (param_2 < param_2 + param_3 * 7) {\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }\n  *param_9 = 0;\n  param_10[1] = param_8;\n  *param_10 = local_44;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00023b50(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,\n            uint param_7,uint param_8,int *param_9,uint *param_10)" identifier (parameter_list "(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,\n            uint param_7,uint param_8,int *param_9,uint *param_10)" ( (parameter_declaration "short param_1" (sized_type_specifier "short" short) identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "ushort param_6" type_identifier identifier) , (parameter_declaration "uint param_7" type_identifier identifier) , (parameter_declaration "uint param_8" type_identifier identifier) , (parameter_declaration "int *param_9" primitive_type (pointer_declarator "*param_9" * identifier)) , (parameter_declaration "uint *param_10" type_identifier (pointer_declarator "*param_10" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint local_44;\n  uint *local_3c;\n  uint local_30;\n  uint local_2c;\n  uint *local_24;\n  \n  local_44 = param_7;\n  if (param_1 == 0x28) {\n    local_44 = param_7 & 0xfffffffe;\n  }\n  if (param_2 < param_2 + param_3 * 7) {\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }\n  *param_9 = 0;\n  param_10[1] = param_8;\n  *param_10 = local_44;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint local_44;" type_identifier identifier ;) (declaration "uint *local_3c;" type_identifier (pointer_declarator "*local_3c" * identifier) ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "uint local_2c;" type_identifier identifier ;) (declaration "uint *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "local_44 = param_7;" (assignment_expression "local_44 = param_7" identifier = identifier) ;) (if_statement "if (param_1 == 0x28) {\n    local_44 = param_7 & 0xfffffffe;\n  }" if (parenthesized_expression "(param_1 == 0x28)" ( (binary_expression "param_1 == 0x28" identifier == number_literal) )) (compound_statement "{\n    local_44 = param_7 & 0xfffffffe;\n  }" { (expression_statement "local_44 = param_7 & 0xfffffffe;" (assignment_expression "local_44 = param_7 & 0xfffffffe" identifier = (binary_expression "param_7 & 0xfffffffe" identifier & number_literal)) ;) })) (if_statement "if (param_2 < param_2 + param_3 * 7) {\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }" if (parenthesized_expression "(param_2 < param_2 + param_3 * 7)" ( (binary_expression "param_2 < param_2 + param_3 * 7" identifier < (binary_expression "param_2 + param_3 * 7" identifier + (binary_expression "param_3 * 7" identifier * number_literal))) )) (compound_statement "{\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }" { (expression_statement "local_24 = (uint *)0x0;" (assignment_expression "local_24 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_30 = 0x100000;" (assignment_expression "local_30 = 0x100000" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "local_3c = param_2 + param_3 * 7;" (assignment_expression "local_3c = param_2 + param_3 * 7" identifier = (binary_expression "param_2 + param_3 * 7" identifier + (binary_expression "param_3 * 7" identifier * number_literal))) ;) (do_statement "do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);" do (compound_statement "{\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    }" { (while_statement "while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }" { (expression_statement "puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;" (assignment_expression "puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7" identifier = (binary_expression "param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7" identifier + (binary_expression "((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7" (parenthesized_expression "((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2)" ( (binary_expression "(((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2" (parenthesized_expression "(((int)local_3c - (int)param_2 >> 2) * -0x49249249)" ( (binary_expression "((int)local_3c - (int)param_2 >> 2) * -0x49249249" (parenthesized_expression "((int)local_3c - (int)param_2 >> 2)" ( (binary_expression "(int)local_3c - (int)param_2 >> 2" (binary_expression "(int)local_3c - (int)param_2" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal) )) * number_literal) )) / number_literal) )) * number_literal))) ;) (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "uVar1 = puVar2[1];" (assignment_expression "uVar1 = puVar2[1]" identifier = (subscript_expression "puVar2[1]" identifier [ number_literal ])) ;) (if_statement "if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }" if (parenthesized_expression "(param_1 == 0x28)" ( (binary_expression "param_1 == 0x28" identifier == number_literal) )) (compound_statement "{\n          uVar3 = uVar3 & 0xfffffffe;\n        }" { (expression_statement "uVar3 = uVar3 & 0xfffffffe;" (assignment_expression "uVar3 = uVar3 & 0xfffffffe" identifier = (binary_expression "uVar3 & 0xfffffffe" identifier & number_literal)) ;) })) (expression_statement "uVar4 = puVar2[4];" (assignment_expression "uVar4 = puVar2[4]" identifier = (subscript_expression "puVar2[4]" identifier [ number_literal ])) ;) (if_statement "if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;" if (parenthesized_expression "((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6]))))" ( (binary_expression "(uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))" (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "((param_6 == 0 || ((uint)param_6 == puVar2[6])))" ( (parenthesized_expression "(param_6 == 0 || ((uint)param_6 == puVar2[6]))" ( (binary_expression "param_6 == 0 || ((uint)param_6 == puVar2[6])" (binary_expression "param_6 == 0" identifier == number_literal) || (parenthesized_expression "((uint)param_6 == puVar2[6])" ( (binary_expression "(uint)param_6 == puVar2[6]" (cast_expression "(uint)param_6" ( (type_descriptor "uint" type_identifier) ) identifier) == (subscript_expression "puVar2[6]" identifier [ number_literal ])) ))) )) ))) )) (break_statement "break;" break ;)) (if_statement "if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;" if (parenthesized_expression "(param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3))" ( (binary_expression "param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)" (binary_expression "param_8 < uVar1" identifier < identifier) || (binary_expression "param_8 - uVar1 < (uint)(local_44 < uVar3)" (binary_expression "param_8 - uVar1" identifier - identifier) < (call_expression "(uint)(local_44 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_44 < uVar3)" ( (binary_expression "local_44 < uVar3" identifier < identifier) ))))) )) (goto_statement "goto LAB_00023c2c;" goto statement_identifier ;)) (labeled_statement "LAB_00023bc8:\n        param_2 = puVar2 + 7;" statement_identifier : (expression_statement "param_2 = puVar2 + 7;" (assignment_expression "param_2 = puVar2 + 7" identifier = (binary_expression "puVar2 + 7" identifier + number_literal)) ;)) (if_statement "if (local_3c <= param_2) goto LAB_00023c36;" if (parenthesized_expression "(local_3c <= param_2)" ( (binary_expression "local_3c <= param_2" identifier <= identifier) )) (goto_statement "goto LAB_00023c36;" goto statement_identifier ;)) })) (if_statement "if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }" if (parenthesized_expression "(uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1)" ( (binary_expression "uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1" (binary_expression "uVar1 <= param_8" identifier <= identifier) && (binary_expression "(uint)(local_44 < uVar3) <= param_8 - uVar1" (call_expression "(uint)(local_44 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_44 < uVar3)" ( (binary_expression "local_44 < uVar3" identifier < identifier) ))) <= (binary_expression "param_8 - uVar1" identifier - identifier))) )) (compound_statement "{\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }" { (expression_statement "uVar5 = local_44 - uVar3;" (assignment_expression "uVar5 = local_44 - uVar3" identifier = (binary_expression "local_44 - uVar3" identifier - identifier)) ;) (expression_statement "uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);" (assignment_expression "uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3)" identifier = (binary_expression "(param_8 - uVar1) - (uint)(local_44 < uVar3)" (parenthesized_expression "(param_8 - uVar1)" ( (binary_expression "param_8 - uVar1" identifier - identifier) )) - (call_expression "(uint)(local_44 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_44 < uVar3)" ( (binary_expression "local_44 < uVar3" identifier < identifier) ))))) ;) (if_statement "if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;" if (parenthesized_expression "((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))" ( (binary_expression "(local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0)" (parenthesized_expression "(local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c)" ( (binary_expression "local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c" (binary_expression "local_2c <= uVar3" identifier <= identifier) && (binary_expression "(uint)(uVar5 < local_30) <= uVar3 - local_2c" (call_expression "(uint)(uVar5 < local_30)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 < local_30)" ( (binary_expression "uVar5 < local_30" identifier < identifier) ))) <= (binary_expression "uVar3 - local_2c" identifier - identifier))) )) || (parenthesized_expression "(local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0)" ( (comma_expression "local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0" (assignment_expression "local_30 = uVar5" identifier = identifier) , (comma_expression "local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0" (assignment_expression "local_2c = uVar3" identifier = identifier) , (comma_expression "local_24 = puVar2, uVar5 != 0 || uVar3 != 0" (assignment_expression "local_24 = puVar2" identifier = identifier) , (binary_expression "uVar5 != 0 || uVar3 != 0" (binary_expression "uVar5 != 0" identifier != number_literal) || (binary_expression "uVar3 != 0" identifier != number_literal))))) ))) )) (goto_statement "goto LAB_00023bc8;" goto statement_identifier ;)) (goto_statement "goto LAB_00023c41;" goto statement_identifier ;) })) (labeled_statement "LAB_00023c2c:\n      local_3c = puVar2;" statement_identifier : (expression_statement "local_3c = puVar2;" (assignment_expression "local_3c = puVar2" identifier = identifier) ;)) }) while (parenthesized_expression "(param_2 < puVar2)" ( (binary_expression "param_2 < puVar2" identifier < identifier) )) ;) (labeled_statement "LAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }" statement_identifier : (if_statement "if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }" if (parenthesized_expression "(local_24 != (uint *)0x0)" ( (binary_expression "local_24 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }" { (expression_statement "uVar4 = local_24[4];" (assignment_expression "uVar4 = local_24[4]" identifier = (subscript_expression "local_24[4]" identifier [ number_literal ])) ;) (labeled_statement "LAB_00023c41:\n      param_4 = param_4 + uVar4;" statement_identifier : (expression_statement "param_4 = param_4 + uVar4;" (assignment_expression "param_4 = param_4 + uVar4" identifier = (binary_expression "param_4 + uVar4" identifier + identifier)) ;)) (if_statement "if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }" if (parenthesized_expression "(param_5 <= uVar4)" ( (binary_expression "param_5 <= uVar4" identifier <= identifier) )) (compound_statement "{\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }" { (expression_statement "param_4 = dcgettext(0,"<corrupt>",5);" (assignment_expression "param_4 = dcgettext(0,"<corrupt>",5)" identifier = (call_expression "dcgettext(0,"<corrupt>",5)" identifier (argument_list "(0,"<corrupt>",5)" ( number_literal , (string_literal ""<corrupt>"" " string_content ") , number_literal )))) ;) })) (expression_statement "*param_9 = param_4;" (assignment_expression "*param_9 = param_4" (pointer_expression "*param_9" * identifier) = identifier) ;) (expression_statement "*param_10 = local_30;" (assignment_expression "*param_10 = local_30" (pointer_expression "*param_10" * identifier) = identifier) ;) (expression_statement "param_10[1] = local_2c;" (assignment_expression "param_10[1] = local_2c" (subscript_expression "param_10[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) }))) })) (expression_statement "*param_9 = 0;" (assignment_expression "*param_9 = 0" (pointer_expression "*param_9" * identifier) = number_literal) ;) (expression_statement "param_10[1] = param_8;" (assignment_expression "param_10[1] = param_8" (subscript_expression "param_10[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_10 = local_44;" (assignment_expression "*param_10 = local_44" (pointer_expression "*param_10" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier short) IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + (binary_expression IDENT * LIT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) )) * LIT) )) / LIT) )) * LIT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) || (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == (subscript_expression IDENT [ LIT ])) ))) )) ))) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) || (binary_expression (binary_expression IDENT - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT <= IDENT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) <= (binary_expression IDENT - IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT <= IDENT) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) <= (binary_expression IDENT - IDENT))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT))))) ))) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) }))) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm3\nFUN_00023b50(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,\n            uint param_7,uint param_8,int *param_9,uint *param_10)\n\n{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint local_44;\n  uint *local_3c;\n  uint local_30;\n  uint local_2c;\n  uint *local_24;\n  \n  local_44 = param_7;\n  if (param_1 == 0x28) {\n    local_44 = param_7 & 0xfffffffe;\n  }\n  if (param_2 < param_2 + param_3 * 7) {\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }\n  *param_9 = 0;\n  param_10[1] = param_8;\n  *param_10 = local_44;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00023b50(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,\n            uint param_7,uint param_8,int *param_9,uint *param_10)" (identifier "FUN_00023b50") (parameter_list "(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,\n            uint param_7,uint param_8,int *param_9,uint *param_10)" (( "(") (parameter_declaration "short param_1" (sized_type_specifier "short" (short "short")) (identifier "param_1")) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) (, ",") (parameter_declaration "ushort param_6" (type_identifier "ushort") (identifier "param_6")) (, ",") (parameter_declaration "uint param_7" (type_identifier "uint") (identifier "param_7")) (, ",") (parameter_declaration "uint param_8" (type_identifier "uint") (identifier "param_8")) (, ",") (parameter_declaration "int *param_9" (primitive_type "int") (pointer_declarator "*param_9" (* "*") (identifier "param_9"))) (, ",") (parameter_declaration "uint *param_10" (type_identifier "uint") (pointer_declarator "*param_10" (* "*") (identifier "param_10"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint local_44;\n  uint *local_3c;\n  uint local_30;\n  uint local_2c;\n  uint *local_24;\n  \n  local_44 = param_7;\n  if (param_1 == 0x28) {\n    local_44 = param_7 & 0xfffffffe;\n  }\n  if (param_2 < param_2 + param_3 * 7) {\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }\n  *param_9 = 0;\n  param_10[1] = param_8;\n  *param_10 = local_44;\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint local_44;" (type_identifier "uint") (identifier "local_44") (; ";")) (declaration "uint *local_3c;" (type_identifier "uint") (pointer_declarator "*local_3c" (* "*") (identifier "local_3c")) (; ";")) (declaration "uint local_30;" (type_identifier "uint") (identifier "local_30") (; ";")) (declaration "uint local_2c;" (type_identifier "uint") (identifier "local_2c") (; ";")) (declaration "uint *local_24;" (type_identifier "uint") (pointer_declarator "*local_24" (* "*") (identifier "local_24")) (; ";")) (expression_statement "local_44 = param_7;" (assignment_expression "local_44 = param_7" (identifier "local_44") (= "=") (identifier "param_7")) (; ";")) (if_statement "if (param_1 == 0x28) {\n    local_44 = param_7 & 0xfffffffe;\n  }" (if "if") (parenthesized_expression "(param_1 == 0x28)" (( "(") (binary_expression "param_1 == 0x28" (identifier "param_1") (== "==") (number_literal "0x28")) () ")")) (compound_statement "{\n    local_44 = param_7 & 0xfffffffe;\n  }" ({ "{") (expression_statement "local_44 = param_7 & 0xfffffffe;" (assignment_expression "local_44 = param_7 & 0xfffffffe" (identifier "local_44") (= "=") (binary_expression "param_7 & 0xfffffffe" (identifier "param_7") (& "&") (number_literal "0xfffffffe"))) (; ";")) (} "}"))) (if_statement "if (param_2 < param_2 + param_3 * 7) {\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < param_2 + param_3 * 7)" (( "(") (binary_expression "param_2 < param_2 + param_3 * 7" (identifier "param_2") (< "<") (binary_expression "param_2 + param_3 * 7" (identifier "param_2") (+ "+") (binary_expression "param_3 * 7" (identifier "param_3") (* "*") (number_literal "7")))) () ")")) (compound_statement "{\n    local_24 = (uint *)0x0;\n    local_30 = 0x100000;\n    local_2c = 0;\n    local_3c = param_2 + param_3 * 7;\n    do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);\nLAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }\n  }" ({ "{") (expression_statement "local_24 = (uint *)0x0;" (assignment_expression "local_24 = (uint *)0x0" (identifier "local_24") (= "=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_30 = 0x100000;" (assignment_expression "local_30 = 0x100000" (identifier "local_30") (= "=") (number_literal "0x100000")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_3c = param_2 + param_3 * 7;" (assignment_expression "local_3c = param_2 + param_3 * 7" (identifier "local_3c") (= "=") (binary_expression "param_2 + param_3 * 7" (identifier "param_2") (+ "+") (binary_expression "param_3 * 7" (identifier "param_3") (* "*") (number_literal "7")))) (; ";")) (do_statement "do {\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    } while (param_2 < puVar2);" (do "do") (compound_statement "{\n      while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }\n      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }\nLAB_00023c2c:\n      local_3c = puVar2;\n    }" ({ "{") (while_statement "while( true ) {\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;\n        uVar3 = *puVar2;\n        uVar1 = puVar2[1];\n        if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }\n        uVar4 = puVar2[4];\n        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;\n        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;\nLAB_00023bc8:\n        param_2 = puVar2 + 7;\n        if (local_3c <= param_2) goto LAB_00023c36;\n      }" ({ "{") (expression_statement "puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;" (assignment_expression "puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7" (identifier "puVar2") (= "=") (binary_expression "param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7" (identifier "param_2") (+ "+") (binary_expression "((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7" (parenthesized_expression "((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2)" (( "(") (binary_expression "(((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2" (parenthesized_expression "(((int)local_3c - (int)param_2 >> 2) * -0x49249249)" (( "(") (binary_expression "((int)local_3c - (int)param_2 >> 2) * -0x49249249" (parenthesized_expression "((int)local_3c - (int)param_2 >> 2)" (( "(") (binary_expression "(int)local_3c - (int)param_2 >> 2" (binary_expression "(int)local_3c - (int)param_2" (cast_expression "(int)local_3c" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_3c")) (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (>> ">>") (number_literal "2")) () ")")) (* "*") (number_literal "-0x49249249")) () ")")) (/ "/") (number_literal "2")) () ")")) (* "*") (number_literal "7")))) (; ";")) (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" (identifier "uVar3") (= "=") (pointer_expression "*puVar2" (* "*") (identifier "puVar2"))) (; ";")) (expression_statement "uVar1 = puVar2[1];" (assignment_expression "uVar1 = puVar2[1]" (identifier "uVar1") (= "=") (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (param_1 == 0x28) {\n          uVar3 = uVar3 & 0xfffffffe;\n        }" (if "if") (parenthesized_expression "(param_1 == 0x28)" (( "(") (binary_expression "param_1 == 0x28" (identifier "param_1") (== "==") (number_literal "0x28")) () ")")) (compound_statement "{\n          uVar3 = uVar3 & 0xfffffffe;\n        }" ({ "{") (expression_statement "uVar3 = uVar3 & 0xfffffffe;" (assignment_expression "uVar3 = uVar3 & 0xfffffffe" (identifier "uVar3") (= "=") (binary_expression "uVar3 & 0xfffffffe" (identifier "uVar3") (& "&") (number_literal "0xfffffffe"))) (; ";")) (} "}"))) (expression_statement "uVar4 = puVar2[4];" (assignment_expression "uVar4 = puVar2[4]" (identifier "uVar4") (= "=") (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]"))) (; ";")) (if_statement "if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;" (if "if") (parenthesized_expression "((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6]))))" (( "(") (binary_expression "(uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))" (parenthesized_expression "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((param_6 == 0 || ((uint)param_6 == puVar2[6])))" (( "(") (parenthesized_expression "(param_6 == 0 || ((uint)param_6 == puVar2[6]))" (( "(") (binary_expression "param_6 == 0 || ((uint)param_6 == puVar2[6])" (binary_expression "param_6 == 0" (identifier "param_6") (== "==") (number_literal "0")) (|| "||") (parenthesized_expression "((uint)param_6 == puVar2[6])" (( "(") (binary_expression "(uint)param_6 == puVar2[6]" (cast_expression "(uint)param_6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_6")) (== "==") (subscript_expression "puVar2[6]" (identifier "puVar2") ([ "[") (number_literal "6") (] "]"))) () ")"))) () ")")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;" (if "if") (parenthesized_expression "(param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3))" (( "(") (binary_expression "param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)" (binary_expression "param_8 < uVar1" (identifier "param_8") (< "<") (identifier "uVar1")) (|| "||") (binary_expression "param_8 - uVar1 < (uint)(local_44 < uVar3)" (binary_expression "param_8 - uVar1" (identifier "param_8") (- "-") (identifier "uVar1")) (< "<") (call_expression "(uint)(local_44 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_44 < uVar3)" (( "(") (binary_expression "local_44 < uVar3" (identifier "local_44") (< "<") (identifier "uVar3")) () ")"))))) () ")")) (goto_statement "goto LAB_00023c2c;" (goto "goto") (statement_identifier "LAB_00023c2c") (; ";"))) (labeled_statement "LAB_00023bc8:\n        param_2 = puVar2 + 7;" (statement_identifier "LAB_00023bc8") (: ":") (expression_statement "param_2 = puVar2 + 7;" (assignment_expression "param_2 = puVar2 + 7" (identifier "param_2") (= "=") (binary_expression "puVar2 + 7" (identifier "puVar2") (+ "+") (number_literal "7"))) (; ";"))) (if_statement "if (local_3c <= param_2) goto LAB_00023c36;" (if "if") (parenthesized_expression "(local_3c <= param_2)" (( "(") (binary_expression "local_3c <= param_2" (identifier "local_3c") (<= "<=") (identifier "param_2")) () ")")) (goto_statement "goto LAB_00023c36;" (goto "goto") (statement_identifier "LAB_00023c36") (; ";"))) (} "}"))) (if_statement "if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }" (if "if") (parenthesized_expression "(uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1)" (( "(") (binary_expression "uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1" (binary_expression "uVar1 <= param_8" (identifier "uVar1") (<= "<=") (identifier "param_8")) (&& "&&") (binary_expression "(uint)(local_44 < uVar3) <= param_8 - uVar1" (call_expression "(uint)(local_44 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_44 < uVar3)" (( "(") (binary_expression "local_44 < uVar3" (identifier "local_44") (< "<") (identifier "uVar3")) () ")"))) (<= "<=") (binary_expression "param_8 - uVar1" (identifier "param_8") (- "-") (identifier "uVar1")))) () ")")) (compound_statement "{\n        uVar5 = local_44 - uVar3;\n        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);\n        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;\n        goto LAB_00023c41;\n      }" ({ "{") (expression_statement "uVar5 = local_44 - uVar3;" (assignment_expression "uVar5 = local_44 - uVar3" (identifier "uVar5") (= "=") (binary_expression "local_44 - uVar3" (identifier "local_44") (- "-") (identifier "uVar3"))) (; ";")) (expression_statement "uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);" (assignment_expression "uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3)" (identifier "uVar3") (= "=") (binary_expression "(param_8 - uVar1) - (uint)(local_44 < uVar3)" (parenthesized_expression "(param_8 - uVar1)" (( "(") (binary_expression "param_8 - uVar1" (identifier "param_8") (- "-") (identifier "uVar1")) () ")")) (- "-") (call_expression "(uint)(local_44 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_44 < uVar3)" (( "(") (binary_expression "local_44 < uVar3" (identifier "local_44") (< "<") (identifier "uVar3")) () ")"))))) (; ";")) (if_statement "if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))\n        goto LAB_00023bc8;" (if "if") (parenthesized_expression "((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))" (( "(") (binary_expression "(local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||\n           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0)" (parenthesized_expression "(local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c)" (( "(") (binary_expression "local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c" (binary_expression "local_2c <= uVar3" (identifier "local_2c") (<= "<=") (identifier "uVar3")) (&& "&&") (binary_expression "(uint)(uVar5 < local_30) <= uVar3 - local_2c" (call_expression "(uint)(uVar5 < local_30)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar5 < local_30)" (( "(") (binary_expression "uVar5 < local_30" (identifier "uVar5") (< "<") (identifier "local_30")) () ")"))) (<= "<=") (binary_expression "uVar3 - local_2c" (identifier "uVar3") (- "-") (identifier "local_2c")))) () ")")) (|| "||") (parenthesized_expression "(local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0)" (( "(") (comma_expression "local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0" (assignment_expression "local_30 = uVar5" (identifier "local_30") (= "=") (identifier "uVar5")) (, ",") (comma_expression "local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0" (assignment_expression "local_2c = uVar3" (identifier "local_2c") (= "=") (identifier "uVar3")) (, ",") (comma_expression "local_24 = puVar2, uVar5 != 0 || uVar3 != 0" (assignment_expression "local_24 = puVar2" (identifier "local_24") (= "=") (identifier "puVar2")) (, ",") (binary_expression "uVar5 != 0 || uVar3 != 0" (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")))))) () ")"))) () ")")) (goto_statement "goto LAB_00023bc8;" (goto "goto") (statement_identifier "LAB_00023bc8") (; ";"))) (goto_statement "goto LAB_00023c41;" (goto "goto") (statement_identifier "LAB_00023c41") (; ";")) (} "}"))) (labeled_statement "LAB_00023c2c:\n      local_3c = puVar2;" (statement_identifier "LAB_00023c2c") (: ":") (expression_statement "local_3c = puVar2;" (assignment_expression "local_3c = puVar2" (identifier "local_3c") (= "=") (identifier "puVar2")) (; ";"))) (} "}")) (while "while") (parenthesized_expression "(param_2 < puVar2)" (( "(") (binary_expression "param_2 < puVar2" (identifier "param_2") (< "<") (identifier "puVar2")) () ")")) (; ";")) (labeled_statement "LAB_00023c36:\n    if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }" (statement_identifier "LAB_00023c36") (: ":") (if_statement "if (local_24 != (uint *)0x0) {\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }" (if "if") (parenthesized_expression "(local_24 != (uint *)0x0)" (( "(") (binary_expression "local_24 != (uint *)0x0" (identifier "local_24") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar4 = local_24[4];\nLAB_00023c41:\n      param_4 = param_4 + uVar4;\n      if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }\n      *param_9 = param_4;\n      *param_10 = local_30;\n      param_10[1] = local_2c;\n      return;\n    }" ({ "{") (expression_statement "uVar4 = local_24[4];" (assignment_expression "uVar4 = local_24[4]" (identifier "uVar4") (= "=") (subscript_expression "local_24[4]" (identifier "local_24") ([ "[") (number_literal "4") (] "]"))) (; ";")) (labeled_statement "LAB_00023c41:\n      param_4 = param_4 + uVar4;" (statement_identifier "LAB_00023c41") (: ":") (expression_statement "param_4 = param_4 + uVar4;" (assignment_expression "param_4 = param_4 + uVar4" (identifier "param_4") (= "=") (binary_expression "param_4 + uVar4" (identifier "param_4") (+ "+") (identifier "uVar4"))) (; ";"))) (if_statement "if (param_5 <= uVar4) {\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }" (if "if") (parenthesized_expression "(param_5 <= uVar4)" (( "(") (binary_expression "param_5 <= uVar4" (identifier "param_5") (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n        param_4 = dcgettext(0,"<corrupt>",5);\n      }" ({ "{") (expression_statement "param_4 = dcgettext(0,"<corrupt>",5);" (assignment_expression "param_4 = dcgettext(0,"<corrupt>",5)" (identifier "param_4") (= "=") (call_expression "dcgettext(0,"<corrupt>",5)" (identifier "dcgettext") (argument_list "(0,"<corrupt>",5)" (( "(") (number_literal "0") (, ",") (string_literal ""<corrupt>"" (" """) (string_content "<corrupt>") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (} "}"))) (expression_statement "*param_9 = param_4;" (assignment_expression "*param_9 = param_4" (pointer_expression "*param_9" (* "*") (identifier "param_9")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*param_10 = local_30;" (assignment_expression "*param_10 = local_30" (pointer_expression "*param_10" (* "*") (identifier "param_10")) (= "=") (identifier "local_30")) (; ";")) (expression_statement "param_10[1] = local_2c;" (assignment_expression "param_10[1] = local_2c" (subscript_expression "param_10[1]" (identifier "param_10") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_2c")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))) (} "}"))) (expression_statement "*param_9 = 0;" (assignment_expression "*param_9 = 0" (pointer_expression "*param_9" (* "*") (identifier "param_9")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_10[1] = param_8;" (assignment_expression "param_10[1] = param_8" (subscript_expression "param_10[1]" (identifier "param_10") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_8")) (; ";")) (expression_statement "*param_10 = local_44;" (assignment_expression "*param_10 = local_44" (pointer_expression "*param_10" (* "*") (identifier "param_10")) (= "=") (identifier "local_44")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void __regparm3
function_1
          (type_1 *filedata,type_2 *var_1,type_3 var_2,char *var_13,type_3 var_14,
          type_4 addr,char **symname,type_5 *offset)

{
  type_6 var_5;
  type_2 *var_7;
  char *pcVar3;
  type_6 var_3;
  type_3 var_4;
  type_6 var_10;
  type_6 var_6;
  type_2 *var_8;
  type_6 var_11;
  type_6 var_9;
  type_2 *var_12;
  
  var_6 = (type_6)addr.offset;
  if ((short)filedata == 0x28) {
    var_6 = (type_6)addr.offset & 0xfffffffe;
  }
  if (var_1 < var_1 + var_2) {
    var_12 = (type_2 *)0x0;
    var_11 = 0x100000;
    var_9 = 0;
    var_8 = var_1 + var_2;
    do {
      while( true ) {
        var_7 = var_1 + (((int)var_8 - (int)var_1 >> 2) * -0x49249249) / 2;
        var_3 = (type_6)var_7->st_value;
        var_5 = *(type_6 *)((int)&var_7->st_value + 4);
        if ((short)filedata == 0x28) {
          var_3 = var_3 & 0xfffffffe;
        }
        var_4 = var_7->st_name;
        if ((var_4 != 0) && ((addr.section == 0 || ((type_6)addr.section == var_7->st_shndx))))
        break;
        if (addr.offset._4_4_ < var_5 || addr.offset._4_4_ - var_5 < (type_6)(var_6 < var_3))
        goto LAB_00023c2c;
LAB_00023bc8:
        var_1 = var_7 + 1;
        if (var_8 <= var_1) goto LAB_00023c36;
      }
      if (var_5 <= addr.offset._4_4_ && (type_6)(var_6 < var_3) <= addr.offset._4_4_ - var_5) {
        var_10 = var_6 - var_3;
        var_3 = (addr.offset._4_4_ - var_5) - (type_6)(var_6 < var_3);
        if ((var_9 <= var_3 && (type_6)(var_10 < var_11) <= var_3 - var_9) ||
           (var_11 = var_10, var_9 = var_3, var_12 = var_7, var_10 != 0 || var_3 != 0))
        goto LAB_00023bc8;
        goto LAB_00023c41;
      }
LAB_00023c2c:
      var_8 = var_7;
    } while (var_1 < var_7);
LAB_00023c36:
    if (var_12 != (type_2 *)0x0) {
      var_4 = var_12->st_name;
LAB_00023c41:
      pcVar3 = var_13 + var_4;
      if (var_14 <= var_4) {
        pcVar3 = (char *)var_15(0,"<corrupt>",5);
      }
      *symname = pcVar3;
      *(type_6 *)offset = var_11;
      *(type_6 *)((int)offset + 4) = var_9;
      return;
    }
  }
  *symname = (char *)0x0;
  *(type_6 *)((int)offset + 4) = addr.offset._4_4_;
  *(type_6 *)offset = var_6;
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator 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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_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: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (number_literal))) right: (number_literal))) right: (number_literal))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (subscript_expression argument: (identifier) index: (number_literal))))))))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (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: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (binary_expression left: (identifier) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (binary_expression left: (identifier) right: (identifier))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))

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

void __regparm3
MASKED(short param_1,uint *param_2,int param_3,int param_4,uint param_5,ushort param_6,
            uint param_7,uint param_8,int *param_9,uint *param_10)

{
  uint uVar1;
  uint *puVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  uint local_44;
  uint *local_3c;
  uint local_30;
  uint local_2c;
  uint *local_24;
  
  local_44 = param_7;
  if (param_1 == 0x28) {
    local_44 = param_7 & 0xfffffffe;
  }
  if (param_2 < param_2 + param_3 * 7) {
    local_24 = (uint *)0x0;
    local_30 = 0x100000;
    local_2c = 0;
    local_3c = param_2 + param_3 * 7;
    do {
      while( true ) {
        puVar2 = param_2 + ((((int)local_3c - (int)param_2 >> 2) * -0x49249249) / 2) * 7;
        uVar3 = *puVar2;
        uVar1 = puVar2[1];
        if (param_1 == 0x28) {
          uVar3 = uVar3 & 0xfffffffe;
        }
        uVar4 = puVar2[4];
        if ((uVar4 != 0) && ((param_6 == 0 || ((uint)param_6 == puVar2[6])))) break;
        if (param_8 < uVar1 || param_8 - uVar1 < (uint)(local_44 < uVar3)) goto LAB_00023c2c;
LAB_00023bc8:
        param_2 = puVar2 + 7;
        if (local_3c <= param_2) goto LAB_00023c36;
      }
      if (uVar1 <= param_8 && (uint)(local_44 < uVar3) <= param_8 - uVar1) {
        uVar5 = local_44 - uVar3;
        uVar3 = (param_8 - uVar1) - (uint)(local_44 < uVar3);
        if ((local_2c <= uVar3 && (uint)(uVar5 < local_30) <= uVar3 - local_2c) ||
           (local_30 = uVar5, local_2c = uVar3, local_24 = puVar2, uVar5 != 0 || uVar3 != 0))
        goto LAB_00023bc8;
        goto LAB_00023c41;
      }
LAB_00023c2c:
      local_3c = puVar2;
    } while (param_2 < puVar2);
LAB_00023c36:
    if (local_24 != (uint *)0x0) {
      uVar4 = local_24[4];
LAB_00023c41:
      param_4 = param_4 + uVar4;
      if (param_5 <= uVar4) {
        param_4 = dcgettext(0,"<corrupt>",5);
      }
      *param_9 = param_4;
      *param_10 = local_30;
      param_10[1] = local_2c;
      return;
    }
  }
  *param_9 = 0;
  param_10[1] = param_8;
  *param_10 = local_44;
  return;
}

