
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: size_t expected_segment_count(Layout * this) */

size_t __thiscall gold::Layout::expected_segment_count(Layout *this)

{
  size_t sVar1;
  size_t sVar2;
  
  sVar2 = (int)(this->segment_list_).
               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.
               _M_impl._M_finish -
          (int)(this->segment_list_).
               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.
               _M_impl._M_start >> 2;
  if ((this->script_options_->script_sections_).saw_sections_clause_ != false) {
    sVar1 = Script_sections::expected_segment_count(&this->script_options_->script_sections_,this);
    sVar2 = sVar2 + sVar1;
  }
  return sVar2;
}



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

int FUN_0007bae0(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;
  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {
    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);
    iVar2 = iVar2 + iVar1;
  }
  return iVar2;
}


PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x286519
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EAX + 0x4]
MOV ESI,dword ptr [EAX + 0x128]
SUB ESI,dword ptr [EAX + 0x124]
SAR ESI,0x2
CMP byte ptr [EDX + 0xac],0x0
JZ 0x0007bb24
SUB ESP,0x8
ADD EDX,0xac
PUSH EAX
PUSH EDX
CALL 0x00108a80
ADD ESP,0x10
ADD ESI,EAX
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_0007bae0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_0007bae0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0007bae0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;" (assignment_expression "iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2" identifier = (binary_expression "*(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2" (binary_expression "*(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124)" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 0x124)" * (cast_expression "(int *)(param_1 + 0x124)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x124)" ( (binary_expression "param_1 + 0x124" identifier + number_literal) ))))) >> number_literal)) ;) (if_statement "if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }" if (parenthesized_expression "(*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0')" ( (binary_expression "*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 4) + 0xac)" * (cast_expression "(char *)(*(int *)(param_1 + 4) + 0xac)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0xac)" ( (binary_expression "*(int *)(param_1 + 4) + 0xac" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }" { (expression_statement "iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);" (assignment_expression "iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1)" identifier = (call_expression "FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1)" identifier (argument_list "(*(int *)(param_1 + 4) + 0xac,param_1)" ( (binary_expression "*(int *)(param_1 + 4) + 0xac" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) , identifier )))) ;) (expression_statement "iVar2 = iVar2 + iVar1;" (assignment_expression "iVar2 = iVar2 + iVar1" identifier = (binary_expression "iVar2 + iVar1" identifier + identifier)) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: size_t expected_segment_count(Layout * this) */\n\nsize_t __thiscall gold::Layout::expected_segment_count(Layout *this)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  \n  sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish -\n          (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_start >> 2;\n  if ((this->script_options_->script_sections_).saw_sections_clause_ != false) {\n    sVar1 = Script_sections::expected_segment_count(&this->script_options_->script_sections_,this);\n    sVar2 = sVar2 + sVar1;\n  }\n  return sVar2;\n}\n\n" comment comment comment (function_definition "size_t __thiscall gold::Layout::expected_segment_count(Layout *this)\n\n{\n  size_t sVar1;\n  size_t sVar2;\n  \n  sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish -\n          (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_start >> 2;\n  if ((this->script_options_->script_sections_).saw_sections_clause_ != false) {\n    sVar1 = Script_sections::expected_segment_count(&this->script_options_->script_sections_,this);\n    sVar2 = sVar2 + sVar1;\n  }\n  return sVar2;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "expected_segment_count(Layout *this)" identifier (parameter_list "(Layout *this)" ( (parameter_declaration "Layout *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  size_t sVar1;\n  size_t sVar2;\n  \n  sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish -\n          (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_start >> 2;\n  if ((this->script_options_->script_sections_).saw_sections_clause_ != false) {\n    sVar1 = Script_sections::expected_segment_count(&this->script_options_->script_sections_,this);\n    sVar2 = sVar2 + sVar1;\n  }\n  return sVar2;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "size_t sVar2;" primitive_type identifier ;) (expression_statement "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish -\n          (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_start >> 2;" (binary_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish -\n          (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_start >> 2" (field_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish -\n          (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_start" (field_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish -\n          (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl" (binary_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish -\n          (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish -\n          (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold" (binary_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish -\n          (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std" (binary_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish -\n          (int)(this->segment_list_).\n               super__Vector_base<gold" (binary_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish -\n          (int)(this->segment_list_).\n               super__Vector_base" (field_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl._M_finish" (field_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_>.\n               _M_impl" (binary_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold::Output_segment*>_" (binary_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std::allocator<gold" (binary_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold::Output_segment*,_std" (assignment_expression "sVar2 = (int)(this->segment_list_).\n               super__Vector_base<gold" identifier = (binary_expression "(int)(this->segment_list_).\n               super__Vector_base<gold" (cast_expression "(int)(this->segment_list_).\n               super__Vector_base" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->segment_list_).\n               super__Vector_base" (parenthesized_expression "(this->segment_list_)" ( (field_expression "this->segment_list_" identifier -> field_identifier) )) . field_identifier)) < identifier)) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) - (cast_expression "(int)(this->segment_list_).\n               super__Vector_base" ( (type_descriptor "int" primitive_type) ) (field_expression "(this->segment_list_).\n               super__Vector_base" (parenthesized_expression "(this->segment_list_)" ( (field_expression "this->segment_list_" identifier -> field_identifier) )) . field_identifier))) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR "," ,) identifier) (ERROR "::allocator" : : identifier) < identifier) (ERROR "::Output_segment" : : identifier) * (ERROR ">" >) identifier) (ERROR ">" >) . field_identifier) . field_identifier) >> number_literal) ;) (if_statement "if ((this->script_options_->script_sections_).saw_sections_clause_ != false) {\n    sVar1 = Script_sections::expected_segment_count(&this->script_options_->script_sections_,this);\n    sVar2 = sVar2 + sVar1;\n  }" if (parenthesized_expression "((this->script_options_->script_sections_).saw_sections_clause_ != false)" ( (binary_expression "(this->script_options_->script_sections_).saw_sections_clause_ != false" (field_expression "(this->script_options_->script_sections_).saw_sections_clause_" (parenthesized_expression "(this->script_options_->script_sections_)" ( (field_expression "this->script_options_->script_sections_" (field_expression "this->script_options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) != false) )) (compound_statement "{\n    sVar1 = Script_sections::expected_segment_count(&this->script_options_->script_sections_,this);\n    sVar2 = sVar2 + sVar1;\n  }" { (ERROR "sVar1 = Script_sections::" (assignment_expression "sVar1 = Script_sections" identifier = identifier) : :) (expression_statement "expected_segment_count(&this->script_options_->script_sections_,this);" (call_expression "expected_segment_count(&this->script_options_->script_sections_,this)" identifier (argument_list "(&this->script_options_->script_sections_,this)" ( (pointer_expression "&this->script_options_->script_sections_" & (field_expression "this->script_options_->script_sections_" (field_expression "this->script_options_" identifier -> field_identifier) -> field_identifier)) , identifier ))) ;) (expression_statement "sVar2 = sVar2 + sVar1;" (assignment_expression "sVar2 = sVar2 + sVar1" identifier = (binary_expression "sVar2 + sVar1" identifier + identifier)) ;) })) (return_statement "return sVar2;" return identifier ;) })))
(translation_unit "int FUN_0007bae0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_0007bae0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0007bae0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;" (assignment_expression "iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2" identifier = (binary_expression "*(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2" (binary_expression "*(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124)" (pointer_expression "*(int *)(param_1 + 0x128)" * (cast_expression "(int *)(param_1 + 0x128)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) - (pointer_expression "*(int *)(param_1 + 0x124)" * (cast_expression "(int *)(param_1 + 0x124)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x124)" ( (binary_expression "param_1 + 0x124" identifier + number_literal) ))))) >> number_literal)) ;) (if_statement "if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }" if (parenthesized_expression "(*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0')" ( (binary_expression "*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 4) + 0xac)" * (cast_expression "(char *)(*(int *)(param_1 + 4) + 0xac)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0xac)" ( (binary_expression "*(int *)(param_1 + 4) + 0xac" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }" { (expression_statement "iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);" (assignment_expression "iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1)" identifier = (call_expression "FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1)" identifier (argument_list "(*(int *)(param_1 + 4) + 0xac,param_1)" ( (binary_expression "*(int *)(param_1 + 4) + 0xac" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) , identifier )))) ;) (expression_statement "iVar2 = iVar2 + iVar1;" (assignment_expression "iVar2 = iVar2 + iVar1" identifier = (binary_expression "iVar2 + iVar1" identifier + identifier)) ;) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (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) ))))) >> LIT)) ;) (if_statement if (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) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_0007bae0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_0007bae0(int param_1)" (identifier "FUN_0007bae0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;" (assignment_expression "iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2" (identifier "iVar2") (= "=") (binary_expression "*(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2" (binary_expression "*(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124)" (pointer_expression "*(int *)(param_1 + 0x128)" (* "*") (cast_expression "(int *)(param_1 + 0x128)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (- "-") (pointer_expression "*(int *)(param_1 + 0x124)" (* "*") (cast_expression "(int *)(param_1 + 0x124)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x124)" (( "(") (binary_expression "param_1 + 0x124" (identifier "param_1") (+ "+") (number_literal "0x124")) () ")"))))) (>> ">>") (number_literal "2"))) (; ";")) (if_statement "if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0')" (( "(") (binary_expression "*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 4) + 0xac)" (* "*") (cast_expression "(char *)(*(int *)(param_1 + 4) + 0xac)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 0xac)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0xac" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0xac")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);\n    iVar2 = iVar2 + iVar1;\n  }" ({ "{") (expression_statement "iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);" (assignment_expression "iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1)" (identifier "FUN_00108a80") (argument_list "(*(int *)(param_1 + 4) + 0xac,param_1)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0xac" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0xac")) (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar2 = iVar2 + iVar1;" (assignment_expression "iVar2 = iVar2 + iVar1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + iVar1" (identifier "iVar2") (+ "+") (identifier "iVar1"))) (; ";")) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: size_t expected_segment_count(Layout * this) */

size_t __thiscall var_1::type_1::function_1(type_1 *this)

{
  size_t var_5;
  size_t var_4;
  
  var_4 = (int)(this->segment_list_).
               super__Vector_base<var_1::Output_segment*,var_2::allocator<var_1::Output_segment*>var_3>.
               _M_impl._M_finish -
          (int)(this->segment_list_).
               super__Vector_base<var_1::Output_segment*,var_2::allocator<var_1::Output_segment*>var_3>.
               _M_impl._M_start >> 2;
  if ((this->script_options_->script_sections_).saw_sections_clause_ != false) {
    var_5 = Script_sections::function_1(&this->script_options_->script_sections_,this);
    var_4 = var_4 + var_5;
  }
  return var_4;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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)))))) right: (number_literal)))) (if_statement condition: (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: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (return_statement (identifier)))))

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

int MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 0x128) - *(int *)(param_1 + 0x124) >> 2;
  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {
    iVar1 = FUN_00108a80(*(int *)(param_1 + 4) + 0xac,param_1);
    iVar2 = iVar2 + iVar1;
  }
  return iVar2;
}

