
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* DWARF original prototype: uint do_out_shndx(Output_section_data * this) */

uint __thiscall gold::Output_section_data::do_out_shndx(Output_section_data *this)

{
  Output_section *pOVar1;
  _func_int_varargs *UNRECOVERED_JUMPTABLE;
  uint uVar2;
  
  pOVar1 = this->output_section_;
  if (pOVar1 == (Output_section *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/output.cc",0x2a9,"do_out_shndx");
  }
  UNRECOVERED_JUMPTABLE = (pOVar1->super_Output_data)._vptr_Output_data[0xb];
  if (UNRECOVERED_JUMPTABLE == Output_section::do_out_shndx) {
    if (pOVar1->out_shndx_ != 0xffffffff) {
      return pOVar1->out_shndx_;
    }
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/output.h",0x1043,"do_out_shndx");
  }
                    /* WARNING: Could not recover jumptable at 0x00103458. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar2 = (*UNRECOVERED_JUMPTABLE)();
  return uVar2;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void __regparm2 FUN_00103410(undefined4 param_1,undefined4 param_2,int param_3)

{
  int *piVar1;
  
  piVar1 = *(int **)(param_3 + 0x20);
  if (piVar1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);
  }
  if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {
    if (piVar1[0x18] != -1) {
      return;
    }
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);
  }
                    /* WARNING: Could not recover jumptable at 0x00103458. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*piVar1 + 0x2c))();
  return;
}


CALL 0x000644ba
ADD ECX,0x2abbeb
PUSH EBX
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EAX + 0x20]
TEST EAX,EAX
JZ 0x0010345a
MOV EDX,dword ptr [EAX]
LEA EBX,[ECX + 0xffcd97b0]
MOV EDX,dword ptr [EDX + 0x2c]
CMP EDX,EBX
JNZ 0x00103450
MOV EAX,dword ptr [EAX + 0x60]
CMP EAX,-0x1
JZ 0x00103475
ADD ESP,0x8
POP EBX
RET
MOV dword ptr [ESP + 0x10],EAX
ADD ESP,0x8
POP EBX
JMP EDX
LEA EAX,[ECX + 0xfff00dc4]
PUSH EDX
MOV EBX,ECX
PUSH EAX
LEA EAX,[ECX + 0xffeff0cb]
PUSH 0x2a9
PUSH EAX
CALL 0x0007d010
PUSH EAX
LEA EAX,[ECX + 0xfff01014]
MOV EBX,ECX
PUSH EAX
LEA EAX,[ECX + 0xffeee371]
PUSH 0x1043
PUSH EAX
CALL 0x0007d010
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nvoid __regparm2 FUN_00103410(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_3 + 0x20);\n  if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    /* WARNING: Could not recover jumptable at 0x00103458. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*piVar1 + 0x2c))();\n  return;\n}\n\n" comment (function_definition "void __regparm2 FUN_00103410(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_3 + 0x20);\n  if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    /* WARNING: Could not recover jumptable at 0x00103458. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*piVar1 + 0x2c))();\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00103410(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_3 + 0x20);\n  if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    /* WARNING: Could not recover jumptable at 0x00103458. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  (**(code **)(*piVar1 + 0x2c))();\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = *(int **)(param_3 + 0x20);" (assignment_expression "piVar1 = *(int **)(param_3 + 0x20)" identifier = (pointer_expression "*(int **)(param_3 + 0x20)" * (cast_expression "(int **)(param_3 + 0x20)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }" { comment (expression_statement "FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);" (call_expression "FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2)" identifier (argument_list "("../../gold/output.cc",0x2a9,"do_out_shndx",param_2)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""do_out_shndx"" " string_content ") , identifier ))) ;) })) (if_statement "if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }" if (parenthesized_expression "(*(code **)(*piVar1 + 0x2c) == FUN_000887b0)" ( (binary_expression "*(code **)(*piVar1 + 0x2c) == FUN_000887b0" (pointer_expression "*(code **)(*piVar1 + 0x2c)" * (cast_expression "(code **)(*piVar1 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x2c)" ( (binary_expression "*piVar1 + 0x2c" (pointer_expression "*piVar1" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }" { (if_statement "if (piVar1[0x18] != -1) {\n      return;\n    }" if (parenthesized_expression "(piVar1[0x18] != -1)" ( (binary_expression "piVar1[0x18] != -1" (subscript_expression "piVar1[0x18]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);" (call_expression "FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff)" identifier (argument_list "("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff)" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""do_out_shndx"" " string_content ") , number_literal ))) ;) })) comment comment (expression_statement "(**(code **)(*piVar1 + 0x2c))();" (call_expression "(**(code **)(*piVar1 + 0x2c))()" (parenthesized_expression "(**(code **)(*piVar1 + 0x2c))" ( (pointer_expression "**(code **)(*piVar1 + 0x2c)" * (pointer_expression "*(code **)(*piVar1 + 0x2c)" * (cast_expression "(code **)(*piVar1 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x2c)" ( (binary_expression "*piVar1 + 0x2c" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n/* DWARF original prototype: uint do_out_shndx(Output_section_data * this) */\n\nuint __thiscall gold::Output_section_data::do_out_shndx(Output_section_data *this)\n\n{\n  Output_section *pOVar1;\n  _func_int_varargs *UNRECOVERED_JUMPTABLE;\n  uint uVar2;\n  \n  pOVar1 = this->output_section_;\n  if (pOVar1 == (Output_section *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x2a9,"do_out_shndx");\n  }\n  UNRECOVERED_JUMPTABLE = (pOVar1->super_Output_data)._vptr_Output_data[0xb];\n  if (UNRECOVERED_JUMPTABLE == Output_section::do_out_shndx) {\n    if (pOVar1->out_shndx_ != 0xffffffff) {\n      return pOVar1->out_shndx_;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.h",0x1043,"do_out_shndx");\n  }\n                    /* WARNING: Could not recover jumptable at 0x00103458. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar2 = (*UNRECOVERED_JUMPTABLE)();\n  return uVar2;\n}\n\n" comment comment (function_definition "uint __thiscall gold::Output_section_data::do_out_shndx(Output_section_data *this)\n\n{\n  Output_section *pOVar1;\n  _func_int_varargs *UNRECOVERED_JUMPTABLE;\n  uint uVar2;\n  \n  pOVar1 = this->output_section_;\n  if (pOVar1 == (Output_section *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x2a9,"do_out_shndx");\n  }\n  UNRECOVERED_JUMPTABLE = (pOVar1->super_Output_data)._vptr_Output_data[0xb];\n  if (UNRECOVERED_JUMPTABLE == Output_section::do_out_shndx) {\n    if (pOVar1->out_shndx_ != 0xffffffff) {\n      return pOVar1->out_shndx_;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.h",0x1043,"do_out_shndx");\n  }\n                    /* WARNING: Could not recover jumptable at 0x00103458. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar2 = (*UNRECOVERED_JUMPTABLE)();\n  return uVar2;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_section_data::" identifier : : identifier : :) (function_declarator "do_out_shndx(Output_section_data *this)" identifier (parameter_list "(Output_section_data *this)" ( (parameter_declaration "Output_section_data *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  Output_section *pOVar1;\n  _func_int_varargs *UNRECOVERED_JUMPTABLE;\n  uint uVar2;\n  \n  pOVar1 = this->output_section_;\n  if (pOVar1 == (Output_section *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x2a9,"do_out_shndx");\n  }\n  UNRECOVERED_JUMPTABLE = (pOVar1->super_Output_data)._vptr_Output_data[0xb];\n  if (UNRECOVERED_JUMPTABLE == Output_section::do_out_shndx) {\n    if (pOVar1->out_shndx_ != 0xffffffff) {\n      return pOVar1->out_shndx_;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.h",0x1043,"do_out_shndx");\n  }\n                    /* WARNING: Could not recover jumptable at 0x00103458. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar2 = (*UNRECOVERED_JUMPTABLE)();\n  return uVar2;\n}" { (declaration "Output_section *pOVar1;" type_identifier (pointer_declarator "*pOVar1" * identifier) ;) (declaration "_func_int_varargs *UNRECOVERED_JUMPTABLE;" type_identifier (pointer_declarator "*UNRECOVERED_JUMPTABLE" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "pOVar1 = this->output_section_;" (assignment_expression "pOVar1 = this->output_section_" identifier = (field_expression "this->output_section_" identifier -> field_identifier)) ;) (if_statement "if (pOVar1 == (Output_section *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x2a9,"do_out_shndx");\n  }" if (parenthesized_expression "(pOVar1 == (Output_section *)0x0)" ( (binary_expression "pOVar1 == (Output_section *)0x0" identifier == (cast_expression "(Output_section *)0x0" ( (type_descriptor "Output_section *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x2a9,"do_out_shndx");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0x2a9,"do_out_shndx");" (call_expression "do_gold_unreachable("../../gold/output.cc",0x2a9,"do_out_shndx")" identifier (argument_list "("../../gold/output.cc",0x2a9,"do_out_shndx")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""do_out_shndx"" " string_content ") ))) ;) })) (expression_statement "UNRECOVERED_JUMPTABLE = (pOVar1->super_Output_data)._vptr_Output_data[0xb];" (assignment_expression "UNRECOVERED_JUMPTABLE = (pOVar1->super_Output_data)._vptr_Output_data[0xb]" identifier = (subscript_expression "(pOVar1->super_Output_data)._vptr_Output_data[0xb]" (field_expression "(pOVar1->super_Output_data)._vptr_Output_data" (parenthesized_expression "(pOVar1->super_Output_data)" ( (field_expression "pOVar1->super_Output_data" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) (if_statement "if (UNRECOVERED_JUMPTABLE == Output_section::do_out_shndx) {\n    if (pOVar1->out_shndx_ != 0xffffffff) {\n      return pOVar1->out_shndx_;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.h",0x1043,"do_out_shndx");\n  }" if (parenthesized_expression "(UNRECOVERED_JUMPTABLE == Output_section::do_out_shndx)" ( (binary_expression "UNRECOVERED_JUMPTABLE == Output_section" identifier == identifier) (ERROR "::do_out_shndx" : : identifier) )) (compound_statement "{\n    if (pOVar1->out_shndx_ != 0xffffffff) {\n      return pOVar1->out_shndx_;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.h",0x1043,"do_out_shndx");\n  }" { (if_statement "if (pOVar1->out_shndx_ != 0xffffffff) {\n      return pOVar1->out_shndx_;\n    }" if (parenthesized_expression "(pOVar1->out_shndx_ != 0xffffffff)" ( (binary_expression "pOVar1->out_shndx_ != 0xffffffff" (field_expression "pOVar1->out_shndx_" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      return pOVar1->out_shndx_;\n    }" { (return_statement "return pOVar1->out_shndx_;" return (field_expression "pOVar1->out_shndx_" identifier -> field_identifier) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/output.h",0x1043,"do_out_shndx");" (call_expression "do_gold_unreachable("../../gold/output.h",0x1043,"do_out_shndx")" identifier (argument_list "("../../gold/output.h",0x1043,"do_out_shndx")" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""do_out_shndx"" " string_content ") ))) ;) })) comment comment (expression_statement "uVar2 = (*UNRECOVERED_JUMPTABLE)();" (assignment_expression "uVar2 = (*UNRECOVERED_JUMPTABLE)()" identifier = (call_expression "(*UNRECOVERED_JUMPTABLE)()" (parenthesized_expression "(*UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*UNRECOVERED_JUMPTABLE" * identifier) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "void __regparm2 FUN_00103410(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_3 + 0x20);\n  if (piVar1 == (int *)0x0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    \n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    \n                    \n  (**(code **)(*piVar1 + 0x2c))();\n  return;\n}\n\n" (function_definition "void __regparm2 FUN_00103410(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_3 + 0x20);\n  if (piVar1 == (int *)0x0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    \n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    \n                    \n  (**(code **)(*piVar1 + 0x2c))();\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_00103410(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_3 + 0x20);\n  if (piVar1 == (int *)0x0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    \n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    \n                    \n  (**(code **)(*piVar1 + 0x2c))();\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = *(int **)(param_3 + 0x20);" (assignment_expression "piVar1 = *(int **)(param_3 + 0x20)" identifier = (pointer_expression "*(int **)(param_3 + 0x20)" * (cast_expression "(int **)(param_3 + 0x20)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_3 + 0x20)" ( (binary_expression "param_3 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }" { (expression_statement "FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);" (call_expression "FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2)" identifier (argument_list "("../../gold/output.cc",0x2a9,"do_out_shndx",param_2)" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""do_out_shndx"" " string_content ") , identifier ))) ;) })) (if_statement "if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    \n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }" if (parenthesized_expression "(*(code **)(*piVar1 + 0x2c) == FUN_000887b0)" ( (binary_expression "*(code **)(*piVar1 + 0x2c) == FUN_000887b0" (pointer_expression "*(code **)(*piVar1 + 0x2c)" * (cast_expression "(code **)(*piVar1 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x2c)" ( (binary_expression "*piVar1 + 0x2c" (pointer_expression "*piVar1" * identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    \n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }" { (if_statement "if (piVar1[0x18] != -1) {\n      return;\n    }" if (parenthesized_expression "(piVar1[0x18] != -1)" ( (binary_expression "piVar1[0x18] != -1" (subscript_expression "piVar1[0x18]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);" (call_expression "FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff)" identifier (argument_list "("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff)" ( (string_literal ""../../gold/output.h"" " string_content ") , number_literal , (string_literal ""do_out_shndx"" " string_content ") , number_literal ))) ;) })) (expression_statement "(**(code **)(*piVar1 + 0x2c))();" (call_expression "(**(code **)(*piVar1 + 0x2c))()" (parenthesized_expression "(**(code **)(*piVar1 + 0x2c))" ( (pointer_expression "**(code **)(*piVar1 + 0x2c)" * (pointer_expression "*(code **)(*piVar1 + 0x2c)" * (cast_expression "(code **)(*piVar1 + 0x2c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x2c)" ( (binary_expression "*piVar1 + 0x2c" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , LIT ))) ;) })) (expression_statement (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 ( ))) ;) (return_statement return ;) })))
(function_definition "void __regparm2 FUN_00103410(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_3 + 0x20);\n  if (piVar1 == (int *)0x0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    \n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    \n                    \n  (**(code **)(*piVar1 + 0x2c))();\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00103410(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "FUN_00103410") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int *piVar1;\n  \n  piVar1 = *(int **)(param_3 + 0x20);\n  if (piVar1 == (int *)0x0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    \n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    \n                    \n  (**(code **)(*piVar1 + 0x2c))();\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (expression_statement "piVar1 = *(int **)(param_3 + 0x20);" (assignment_expression "piVar1 = *(int **)(param_3 + 0x20)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_3 + 0x20)" (* "*") (cast_expression "(int **)(param_3 + 0x20)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_3 + 0x20)" (( "(") (binary_expression "param_3 + 0x20" (identifier "param_3") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n                    \n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);\n  }" ({ "{") (expression_statement "FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);" (call_expression "FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2)" (identifier "FUN_0007d010") (argument_list "("../../gold/output.cc",0x2a9,"do_out_shndx",param_2)" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x2a9") (, ",") (string_literal ""do_out_shndx"" (" """) (string_content "do_out_shndx") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    \n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }" (if "if") (parenthesized_expression "(*(code **)(*piVar1 + 0x2c) == FUN_000887b0)" (( "(") (binary_expression "*(code **)(*piVar1 + 0x2c) == FUN_000887b0" (pointer_expression "*(code **)(*piVar1 + 0x2c)" (* "*") (cast_expression "(code **)(*piVar1 + 0x2c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x2c)" (( "(") (binary_expression "*piVar1 + 0x2c" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x2c")) () ")")))) (== "==") (identifier "FUN_000887b0")) () ")")) (compound_statement "{\n    if (piVar1[0x18] != -1) {\n      return;\n    }\n                    \n    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }" ({ "{") (if_statement "if (piVar1[0x18] != -1) {\n      return;\n    }" (if "if") (parenthesized_expression "(piVar1[0x18] != -1)" (( "(") (binary_expression "piVar1[0x18] != -1" (subscript_expression "piVar1[0x18]" (identifier "piVar1") ([ "[") (number_literal "0x18") (] "]")) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);" (call_expression "FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff)" (identifier "FUN_0007d010") (argument_list "("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff)" (( "(") (string_literal ""../../gold/output.h"" (" """) (string_content "../../gold/output.h") (" """)) (, ",") (number_literal "0x1043") (, ",") (string_literal ""do_out_shndx"" (" """) (string_content "do_out_shndx") (" """)) (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (} "}"))) (expression_statement "(**(code **)(*piVar1 + 0x2c))();" (call_expression "(**(code **)(*piVar1 + 0x2c))()" (parenthesized_expression "(**(code **)(*piVar1 + 0x2c))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x2c)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x2c)" (* "*") (cast_expression "(code **)(*piVar1 + 0x2c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x2c)" (( "(") (binary_expression "*piVar1 + 0x2c" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x2c")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */
/* DWARF original prototype: uint do_out_shndx(Output_section_data * this) */

type_1 __thiscall gold::type_2::function_1(type_2 *this)

{
  type_3 *var_1;
  type_4 *var_3;
  type_1 uVar2;
  
  var_1 = this->output_section_;
  if (var_1 == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("../../gold/output.cc",0x2a9,"do_out_shndx");
  }
  var_3 = (var_1->super_Output_data)._vptr_Output_data[0xb];
  if (var_3 == type_3::function_1) {
    if (var_1->out_shndx_ != 0xffffffff) {
      return var_1->out_shndx_;
    }
                    /* WARNING: Subroutine does not return */
    var_2("../../gold/output.h",0x1043,"do_out_shndx");
  }
                    /* WARNING: Could not recover jumptable at 0x00103458. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar2 = (*var_3)();
  return uVar2;
}


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

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

void __regparm2 MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  int *piVar1;
  
  piVar1 = *(int **)(param_3 + 0x20);
  if (piVar1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/output.cc",0x2a9,"do_out_shndx",param_2);
  }
  if (*(code **)(*piVar1 + 0x2c) == FUN_000887b0) {
    if (piVar1[0x18] != -1) {
      return;
    }
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);
  }
                    /* WARNING: Could not recover jumptable at 0x00103458. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  (**(code **)(*piVar1 + 0x2c))();
  return;
}

