
/* DWARF original prototype: void do_for_all_global_symbols(Sized_relobj_file<64,_false> * this,
   Read_symbols_data * sd, Symbol_visitor_base * v) */

void __thiscall
gold::Sized_relobj_file<64,_false>::do_for_all_global_symbols
          (Sized_relobj_file<64,_false> *this,Read_symbols_data *sd,Symbol_visitor_base *v)

{
  uchar *puVar1;
  int *piVar2;
  uint uVar3;
  uint uVar4;
  
  puVar1 = sd->symbol_names->data_;
  uVar3 = sd->symbols_size - sd->external_symbols_offset;
  piVar2 = (int *)(sd->symbols->data_ + sd->external_symbols_offset);
  if (0x17 < uVar3) {
    uVar4 = 0;
    do {
      if (*(short *)((int)piVar2 + 6) != 0) {
        (*v->_vptr_Symbol_visitor_base[2])(v,puVar1 + *piVar2);
      }
      uVar4 = uVar4 + 1;
      piVar2 = piVar2 + 6;
    } while (uVar4 < uVar3 / 0x18);
  }
  return;
}



int FUN_00123440(undefined4 param_1,int param_2,int *param_3)

{
  int iVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  uint uVar5;
  
  iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);
  uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);
  piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));
  iVar2 = uVar4 * -0x55555555;
  if (0x17 < uVar4) {
    uVar5 = 0;
    do {
      if (*(short *)((int)piVar3 + 6) != 0) {
        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);
      }
      uVar5 = uVar5 + 1;
      piVar3 = piVar3 + 6;
    } while (uVar5 < uVar4 / 0x18);
  }
  return iVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EAX,dword ptr [ESP + 0x34]
MOV EBP,dword ptr [ESP + 0x38]
MOV EDX,dword ptr [EAX + 0x18]
MOV EBX,dword ptr [EAX + 0xc]
MOV ESI,dword ptr [EAX + 0x10]
MOV ECX,dword ptr [EDX + 0x8]
MOV EDX,dword ptr [EAX + 0x14]
MOV dword ptr [ESP + 0xc],ECX
MOV ECX,dword ptr [EBX + 0x8]
SUB ESI,EDX
MOV EAX,ESI
ADD ECX,EDX
MOV EDX,0xaaaaaaab
MUL EDX
MOV EDI,EDX
SHR EDI,0x4
CMP ESI,0x17
JBE 0x001234a5
MOV EBX,ECX
XOR ESI,ESI
CMP word ptr [EBX + 0x6],0x0
JZ 0x0012349b
SUB ESP,0x8
MOV EAX,dword ptr [EBP]
MOV EDX,dword ptr [ESP + 0x14]
ADD EDX,dword ptr [EBX]
PUSH EDX
PUSH EBP
CALL dword ptr [EAX + 0x8]
ADD ESP,0x10
ADD ESI,0x1
ADD EBX,0x18
CMP EDI,ESI
JA 0x00123480
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "int FUN_00123440(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);\n  uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);\n  piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));\n  iVar2 = uVar4 * -0x55555555;\n  if (0x17 < uVar4) {\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_00123440(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);\n  uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);\n  piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));\n  iVar2 = uVar4 * -0x55555555;\n  if (0x17 < uVar4) {\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00123440(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);\n  uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);\n  piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));\n  iVar2 = uVar4 * -0x55555555;\n  if (0x17 < uVar4) {\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 0x18) + 8)" * (cast_expression "(int *)(*(int *)(param_2 + 0x18) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x18) + 8)" ( (binary_expression "*(int *)(param_2 + 0x18) + 8" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);" (assignment_expression "uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14)" identifier = (binary_expression "*(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14)" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))))) ;) (expression_statement "piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));" (assignment_expression "piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14))" identifier = (cast_expression "(int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14))" ( (binary_expression "*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14)" (pointer_expression "*(int *)(*(int *)(param_2 + 0xc) + 8)" * (cast_expression "(int *)(*(int *)(param_2 + 0xc) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0xc) + 8)" ( (binary_expression "*(int *)(param_2 + 0xc) + 8" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) + number_literal) )))) + (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar2 = uVar4 * -0x55555555;" (assignment_expression "iVar2 = uVar4 * -0x55555555" identifier = (binary_expression "uVar4 * -0x55555555" identifier * number_literal)) ;) (if_statement "if (0x17 < uVar4) {\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }" if (parenthesized_expression "(0x17 < uVar4)" ( (binary_expression "0x17 < uVar4" number_literal < identifier) )) (compound_statement "{\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);" do (compound_statement "{\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    }" { (if_statement "if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }" if (parenthesized_expression "(*(short *)((int)piVar3 + 6) != 0)" ( (binary_expression "*(short *)((int)piVar3 + 6) != 0" (pointer_expression "*(short *)((int)piVar3 + 6)" * (cast_expression "(short *)((int)piVar3 + 6)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar3 + 6)" ( (binary_expression "(int)piVar3 + 6" (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }" { (expression_statement "iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);" (assignment_expression "iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3)" identifier = (call_expression "(**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3)" (parenthesized_expression "(**(code **)(*param_3 + 8))" ( (pointer_expression "**(code **)(*param_3 + 8)" * (pointer_expression "*(code **)(*param_3 + 8)" * (cast_expression "(code **)(*param_3 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_3 + 8)" ( (binary_expression "*param_3 + 8" (pointer_expression "*param_3" * identifier) + number_literal) ))))) )) (argument_list "(param_3,iVar1 + *piVar3)" ( identifier , (binary_expression "iVar1 + *piVar3" identifier + (pointer_expression "*piVar3" * identifier)) )))) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (expression_statement "piVar3 = piVar3 + 6;" (assignment_expression "piVar3 = piVar3 + 6" identifier = (binary_expression "piVar3 + 6" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < uVar4 / 0x18)" ( (binary_expression "uVar5 < uVar4 / 0x18" identifier < (binary_expression "uVar4 / 0x18" identifier / number_literal)) )) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: void do_for_all_global_symbols(Sized_relobj_file<64,_false> * this,\n   Read_symbols_data * sd, Symbol_visitor_base * v) */\n\nvoid __thiscall\ngold::Sized_relobj_file<64,_false>::do_for_all_global_symbols\n          (Sized_relobj_file<64,_false> *this,Read_symbols_data *sd,Symbol_visitor_base *v)\n\n{\n  uchar *puVar1;\n  int *piVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  puVar1 = sd->symbol_names->data_;\n  uVar3 = sd->symbols_size - sd->external_symbols_offset;\n  piVar2 = (int *)(sd->symbols->data_ + sd->external_symbols_offset);\n  if (0x17 < uVar3) {\n    uVar4 = 0;\n    do {\n      if (*(short *)((int)piVar2 + 6) != 0) {\n        (*v->_vptr_Symbol_visitor_base[2])(v,puVar1 + *piVar2);\n      }\n      uVar4 = uVar4 + 1;\n      piVar2 = piVar2 + 6;\n    } while (uVar4 < uVar3 / 0x18);\n  }\n  return;\n}\n\n" comment (declaration "void __thiscall\ngold::Sized_relobj_file<64,_false>::do_for_all_global_symbols\n          (Sized_relobj_file<64,_false> *this,Read_symbols_data *sd,Symbol_visitor_base *v)\n\n{\n  uchar *puVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_false>::do_for_all_global_symbols\n          (Sized_relobj_file<64,_false> *this,Read_symbols_data *sd,Symbol_visitor_base *v)\n\n{\n  uchar" identifier > : : (function_declarator "do_for_all_global_symbols\n          (Sized_relobj_file<64,_false> *this,Read_symbols_data *sd,Symbol_visitor_base *v)" identifier (parameter_list "(Sized_relobj_file<64,_false> *this,Read_symbols_data *sd,Symbol_visitor_base *v)" ( (parameter_declaration "Sized_relobj_file" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Read_symbols_data *sd" type_identifier (pointer_declarator "*sd" * identifier)) , (parameter_declaration "Symbol_visitor_base *v" type_identifier (pointer_declarator "*v" * identifier)) ))) { identifier) (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = sd->symbol_names->data_;" (assignment_expression "puVar1 = sd->symbol_names->data_" identifier = (field_expression "sd->symbol_names->data_" (field_expression "sd->symbol_names" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "uVar3 = sd->symbols_size - sd->external_symbols_offset;" (assignment_expression "uVar3 = sd->symbols_size - sd->external_symbols_offset" identifier = (binary_expression "sd->symbols_size - sd->external_symbols_offset" (field_expression "sd->symbols_size" identifier -> field_identifier) - (field_expression "sd->external_symbols_offset" identifier -> field_identifier))) ;) (expression_statement "piVar2 = (int *)(sd->symbols->data_ + sd->external_symbols_offset);" (assignment_expression "piVar2 = (int *)(sd->symbols->data_ + sd->external_symbols_offset)" identifier = (cast_expression "(int *)(sd->symbols->data_ + sd->external_symbols_offset)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(sd->symbols->data_ + sd->external_symbols_offset)" ( (binary_expression "sd->symbols->data_ + sd->external_symbols_offset" (field_expression "sd->symbols->data_" (field_expression "sd->symbols" identifier -> field_identifier) -> field_identifier) + (field_expression "sd->external_symbols_offset" identifier -> field_identifier)) )))) ;) (if_statement "if (0x17 < uVar3) {\n    uVar4 = 0;\n    do {\n      if (*(short *)((int)piVar2 + 6) != 0) {\n        (*v->_vptr_Symbol_visitor_base[2])(v,puVar1 + *piVar2);\n      }\n      uVar4 = uVar4 + 1;\n      piVar2 = piVar2 + 6;\n    } while (uVar4 < uVar3 / 0x18);\n  }" if (parenthesized_expression "(0x17 < uVar3)" ( (binary_expression "0x17 < uVar3" number_literal < identifier) )) (compound_statement "{\n    uVar4 = 0;\n    do {\n      if (*(short *)((int)piVar2 + 6) != 0) {\n        (*v->_vptr_Symbol_visitor_base[2])(v,puVar1 + *piVar2);\n      }\n      uVar4 = uVar4 + 1;\n      piVar2 = piVar2 + 6;\n    } while (uVar4 < uVar3 / 0x18);\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*(short *)((int)piVar2 + 6) != 0) {\n        (*v->_vptr_Symbol_visitor_base[2])(v,puVar1 + *piVar2);\n      }\n      uVar4 = uVar4 + 1;\n      piVar2 = piVar2 + 6;\n    } while (uVar4 < uVar3 / 0x18);" do (compound_statement "{\n      if (*(short *)((int)piVar2 + 6) != 0) {\n        (*v->_vptr_Symbol_visitor_base[2])(v,puVar1 + *piVar2);\n      }\n      uVar4 = uVar4 + 1;\n      piVar2 = piVar2 + 6;\n    }" { (if_statement "if (*(short *)((int)piVar2 + 6) != 0) {\n        (*v->_vptr_Symbol_visitor_base[2])(v,puVar1 + *piVar2);\n      }" if (parenthesized_expression "(*(short *)((int)piVar2 + 6) != 0)" ( (binary_expression "*(short *)((int)piVar2 + 6) != 0" (pointer_expression "*(short *)((int)piVar2 + 6)" * (cast_expression "(short *)((int)piVar2 + 6)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar2 + 6)" ( (binary_expression "(int)piVar2 + 6" (cast_expression "(int)piVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n        (*v->_vptr_Symbol_visitor_base[2])(v,puVar1 + *piVar2);\n      }" { (expression_statement "(*v->_vptr_Symbol_visitor_base[2])(v,puVar1 + *piVar2);" (call_expression "(*v->_vptr_Symbol_visitor_base[2])(v,puVar1 + *piVar2)" (parenthesized_expression "(*v->_vptr_Symbol_visitor_base[2])" ( (pointer_expression "*v->_vptr_Symbol_visitor_base[2]" * (subscript_expression "v->_vptr_Symbol_visitor_base[2]" (field_expression "v->_vptr_Symbol_visitor_base" identifier -> field_identifier) [ number_literal ])) )) (argument_list "(v,puVar1 + *piVar2)" ( identifier , (binary_expression "puVar1 + *piVar2" identifier + (pointer_expression "*piVar2" * identifier)) ))) ;) })) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (expression_statement "piVar2 = piVar2 + 6;" (assignment_expression "piVar2 = piVar2 + 6" identifier = (binary_expression "piVar2 + 6" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < uVar3 / 0x18)" ( (binary_expression "uVar4 < uVar3 / 0x18" identifier < (binary_expression "uVar3 / 0x18" identifier / number_literal)) )) ;) })) (return_statement "return;" return ;) (ERROR "}" }))
(translation_unit "int FUN_00123440(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);\n  uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);\n  piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));\n  iVar2 = uVar4 * -0x55555555;\n  if (0x17 < uVar4) {\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_00123440(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);\n  uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);\n  piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));\n  iVar2 = uVar4 * -0x55555555;\n  if (0x17 < uVar4) {\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00123440(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);\n  uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);\n  piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));\n  iVar2 = uVar4 * -0x55555555;\n  if (0x17 < uVar4) {\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 0x18) + 8)" * (cast_expression "(int *)(*(int *)(param_2 + 0x18) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x18) + 8)" ( (binary_expression "*(int *)(param_2 + 0x18) + 8" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);" (assignment_expression "uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14)" identifier = (binary_expression "*(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14)" (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))))) ;) (expression_statement "piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));" (assignment_expression "piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14))" identifier = (cast_expression "(int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14))" ( (binary_expression "*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14)" (pointer_expression "*(int *)(*(int *)(param_2 + 0xc) + 8)" * (cast_expression "(int *)(*(int *)(param_2 + 0xc) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0xc) + 8)" ( (binary_expression "*(int *)(param_2 + 0xc) + 8" (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) + number_literal) )))) + (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar2 = uVar4 * -0x55555555;" (assignment_expression "iVar2 = uVar4 * -0x55555555" identifier = (binary_expression "uVar4 * -0x55555555" identifier * number_literal)) ;) (if_statement "if (0x17 < uVar4) {\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }" if (parenthesized_expression "(0x17 < uVar4)" ( (binary_expression "0x17 < uVar4" number_literal < identifier) )) (compound_statement "{\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);" do (compound_statement "{\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    }" { (if_statement "if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }" if (parenthesized_expression "(*(short *)((int)piVar3 + 6) != 0)" ( (binary_expression "*(short *)((int)piVar3 + 6) != 0" (pointer_expression "*(short *)((int)piVar3 + 6)" * (cast_expression "(short *)((int)piVar3 + 6)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar3 + 6)" ( (binary_expression "(int)piVar3 + 6" (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }" { (expression_statement "iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);" (assignment_expression "iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3)" identifier = (call_expression "(**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3)" (parenthesized_expression "(**(code **)(*param_3 + 8))" ( (pointer_expression "**(code **)(*param_3 + 8)" * (pointer_expression "*(code **)(*param_3 + 8)" * (cast_expression "(code **)(*param_3 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_3 + 8)" ( (binary_expression "*param_3 + 8" (pointer_expression "*param_3" * identifier) + number_literal) ))))) )) (argument_list "(param_3,iVar1 + *piVar3)" ( identifier , (binary_expression "iVar1 + *piVar3" identifier + (pointer_expression "*piVar3" * identifier)) )))) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (expression_statement "piVar3 = piVar3 + 6;" (assignment_expression "piVar3 = piVar3 + 6" identifier = (binary_expression "piVar3 + 6" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < uVar4 / 0x18)" ( (binary_expression "uVar5 < uVar4 / 0x18" identifier < (binary_expression "uVar4 / 0x18" identifier / number_literal)) )) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , (binary_expression IDENT + (pointer_expression * IDENT)) )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT / LIT)) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00123440(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);\n  uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);\n  piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));\n  iVar2 = uVar4 * -0x55555555;\n  if (0x17 < uVar4) {\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_00123440(undefined4 param_1,int param_2,int *param_3)" (identifier "FUN_00123440") (parameter_list "(undefined4 param_1,int param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  uint uVar5;\n  \n  iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);\n  uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);\n  piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));\n  iVar2 = uVar4 * -0x55555555;\n  if (0x17 < uVar4) {\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (expression_statement "iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(param_2 + 0x18) + 8)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 0x18) + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x18) + 8)" (( "(") (binary_expression "*(int *)(param_2 + 0x18) + 8" (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);" (assignment_expression "uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14)" (identifier "uVar4") (= "=") (binary_expression "*(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14)" (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (- "-") (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))))) (; ";")) (expression_statement "piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));" (assignment_expression "piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14))" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14))" (( "(") (binary_expression "*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14)" (pointer_expression "*(int *)(*(int *)(param_2 + 0xc) + 8)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 0xc) + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0xc) + 8)" (( "(") (binary_expression "*(int *)(param_2 + 0xc) + 8" (pointer_expression "*(int *)(param_2 + 0xc)" (* "*") (cast_expression "(int *)(param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "8")) () ")")))) (+ "+") (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")"))))) () ")")))) (; ";")) (expression_statement "iVar2 = uVar4 * -0x55555555;" (assignment_expression "iVar2 = uVar4 * -0x55555555" (identifier "iVar2") (= "=") (binary_expression "uVar4 * -0x55555555" (identifier "uVar4") (* "*") (number_literal "-0x55555555"))) (; ";")) (if_statement "if (0x17 < uVar4) {\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }" (if "if") (parenthesized_expression "(0x17 < uVar4)" (( "(") (binary_expression "0x17 < uVar4" (number_literal "0x17") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n    uVar5 = 0;\n    do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);\n  }" ({ "{") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    } while (uVar5 < uVar4 / 0x18);" (do "do") (compound_statement "{\n      if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }\n      uVar5 = uVar5 + 1;\n      piVar3 = piVar3 + 6;\n    }" ({ "{") (if_statement "if (*(short *)((int)piVar3 + 6) != 0) {\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }" (if "if") (parenthesized_expression "(*(short *)((int)piVar3 + 6) != 0)" (( "(") (binary_expression "*(short *)((int)piVar3 + 6) != 0" (pointer_expression "*(short *)((int)piVar3 + 6)" (* "*") (cast_expression "(short *)((int)piVar3 + 6)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar3 + 6)" (( "(") (binary_expression "(int)piVar3 + 6" (cast_expression "(int)piVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar3")) (+ "+") (number_literal "6")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);\n      }" ({ "{") (expression_statement "iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);" (assignment_expression "iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3)" (parenthesized_expression "(**(code **)(*param_3 + 8))" (( "(") (pointer_expression "**(code **)(*param_3 + 8)" (* "*") (pointer_expression "*(code **)(*param_3 + 8)" (* "*") (cast_expression "(code **)(*param_3 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_3 + 8)" (( "(") (binary_expression "*param_3 + 8" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(param_3,iVar1 + *piVar3)" (( "(") (identifier "param_3") (, ",") (binary_expression "iVar1 + *piVar3" (identifier "iVar1") (+ "+") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) () ")")))) (; ";")) (} "}"))) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar3 = piVar3 + 6;" (assignment_expression "piVar3 = piVar3 + 6" (identifier "piVar3") (= "=") (binary_expression "piVar3 + 6" (identifier "piVar3") (+ "+") (number_literal "6"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 < uVar4 / 0x18)" (( "(") (binary_expression "uVar5 < uVar4 / 0x18" (identifier "uVar5") (< "<") (binary_expression "uVar4 / 0x18" (identifier "uVar4") (/ "/") (number_literal "0x18"))) () ")")) (; ";")) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

/* DWARF original prototype: void do_for_all_global_symbols(Sized_relobj_file<64,_false> * this,
   Read_symbols_data * sd, Symbol_visitor_base * v) */

void __thiscall
gold::Sized_relobj_file<64,_false>::do_for_all_global_symbols
          (Sized_relobj_file<64,_false> *this,Read_symbols_data *sd,Symbol_visitor_base *v)

{
  uchar *var_2;
  int *var_4;
  type_1 var_1;
  type_1 var_3;
  
  var_2 = sd->symbol_names->data_;
  var_1 = sd->symbols_size - sd->external_symbols_offset;
  var_4 = (int *)(sd->symbols->data_ + sd->external_symbols_offset);
  if (0x17 < var_1) {
    var_3 = 0;
    do {
      if (*(short *)((int)var_4 + 6) != 0) {
        (*v->_vptr_Symbol_visitor_base[2])(v,var_2 + *var_4);
      }
      var_3 = var_3 + 1;
      var_4 = var_4 + 6;
    } while (var_3 < var_1 / 0x18);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))))

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

{
  int iVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  uint uVar5;
  
  iVar1 = *(int *)(*(int *)(param_2 + 0x18) + 8);
  uVar4 = *(int *)(param_2 + 0x10) - *(int *)(param_2 + 0x14);
  piVar3 = (int *)(*(int *)(*(int *)(param_2 + 0xc) + 8) + *(int *)(param_2 + 0x14));
  iVar2 = uVar4 * -0x55555555;
  if (0x17 < uVar4) {
    uVar5 = 0;
    do {
      if (*(short *)((int)piVar3 + 6) != 0) {
        iVar2 = (**(code **)(*param_3 + 8))(param_3,iVar1 + *piVar3);
      }
      uVar5 = uVar5 + 1;
      piVar3 = piVar3 + 6;
    } while (uVar5 < uVar4 / 0x18);
  }
  return iVar2;
}

