
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: uint symtab_section_shndx(Layout * this) */

uint __thiscall gold::Layout::symtab_section_shndx(Layout *this)

{
  Output_section *pOVar1;
  _func_int_varargs *UNRECOVERED_JUMPTABLE;
  uint uVar2;
  
  pOVar1 = this->symtab_section_;
  if (pOVar1 == (Output_section *)0x0) {
    return 0;
  }
  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 0x0007dcc8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar2 = (*UNRECOVERED_JUMPTABLE)();
  return uVar2;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int FUN_0007dc70(int param_1)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = *(int **)(param_1 + 0x174);
  if (piVar1 == (int *)0x0) {
    return 0;
  }
  if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {
    if (piVar1[0x18] != -1) {
      return piVar1[0x18];
    }
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);
  }
                    /* WARNING: Could not recover jumptable at 0x0007dcc8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar2 = (**(code **)(*piVar1 + 0x2c))();
  return iVar2;
}


CALL 0x00032865
ADD EDX,0x28438b
PUSH EBX
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EAX + 0x174]
TEST EAX,EAX
JZ 0x0007dcb0
MOV ECX,dword ptr [EAX]
LEA EBX,[EDX + 0xffd67430]
MOV ECX,dword ptr [ECX + 0x2c]
CMP ECX,EBX
JNZ 0x0007dcc0
MOV EAX,dword ptr [EAX + 0x60]
CMP EAX,-0x1
JZ 0x0007dcca
ADD ESP,0x8
POP EBX
RET
ADD ESP,0x8
XOR EAX,EAX
POP EBX
RET
MOV dword ptr [ESP + 0x10],EAX
ADD ESP,0x8
POP EBX
JMP ECX
PUSH EAX
LEA EAX,[EDX + 0xfff21f00]
MOV EBX,EDX
PUSH EAX
LEA EAX,[EDX + 0xfff1f60c]
PUSH 0x1043
PUSH EAX
CALL 0x0005f0b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nint FUN_0007dc70(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(param_1 + 0x174);\n  if (piVar1 == (int *)0x0) {\n    return 0;\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {\n    if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    /* WARNING: Could not recover jumptable at 0x0007dcc8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar2 = (**(code **)(*piVar1 + 0x2c))();\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_0007dc70(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(param_1 + 0x174);\n  if (piVar1 == (int *)0x0) {\n    return 0;\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {\n    if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    /* WARNING: Could not recover jumptable at 0x0007dcc8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar2 = (**(code **)(*piVar1 + 0x2c))();\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0007dc70(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(param_1 + 0x174);\n  if (piVar1 == (int *)0x0) {\n    return 0;\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {\n    if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    /* WARNING: Could not recover jumptable at 0x0007dcc8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar2 = (**(code **)(*piVar1 + 0x2c))();\n  return iVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x174);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x174)" identifier = (pointer_expression "*(int **)(param_1 + 0x174)" * (cast_expression "(int **)(param_1 + 0x174)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x174)" ( (binary_expression "param_1 + 0x174" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    return 0;\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    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {\n    if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }" if (parenthesized_expression "(*(code **)(*piVar1 + 0x2c) == FUN_00069430)" ( (binary_expression "*(code **)(*piVar1 + 0x2c) == FUN_00069430" (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 piVar1[0x18];\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }" { (if_statement "if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\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 piVar1[0x18];\n    }" { (return_statement "return piVar1[0x18];" return (subscript_expression "piVar1[0x18]" identifier [ number_literal ]) ;) })) comment (expression_statement "FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);" (call_expression "FUN_0005f0b0("../../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 "iVar2 = (**(code **)(*piVar1 + 0x2c))();" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x2c))()" identifier = (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 iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: uint symtab_section_shndx(Layout * this) */\n\nuint __thiscall gold::Layout::symtab_section_shndx(Layout *this)\n\n{\n  Output_section *pOVar1;\n  _func_int_varargs *UNRECOVERED_JUMPTABLE;\n  uint uVar2;\n  \n  pOVar1 = this->symtab_section_;\n  if (pOVar1 == (Output_section *)0x0) {\n    return 0;\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 0x0007dcc8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar2 = (*UNRECOVERED_JUMPTABLE)();\n  return uVar2;\n}\n\n" comment comment comment (function_definition "uint __thiscall gold::Layout::symtab_section_shndx(Layout *this)\n\n{\n  Output_section *pOVar1;\n  _func_int_varargs *UNRECOVERED_JUMPTABLE;\n  uint uVar2;\n  \n  pOVar1 = this->symtab_section_;\n  if (pOVar1 == (Output_section *)0x0) {\n    return 0;\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 0x0007dcc8. 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::Layout::" identifier : : identifier : :) (function_declarator "symtab_section_shndx(Layout *this)" identifier (parameter_list "(Layout *this)" ( (parameter_declaration "Layout *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->symtab_section_;\n  if (pOVar1 == (Output_section *)0x0) {\n    return 0;\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 0x0007dcc8. 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->symtab_section_;" (assignment_expression "pOVar1 = this->symtab_section_" identifier = (field_expression "this->symtab_section_" identifier -> field_identifier)) ;) (if_statement "if (pOVar1 == (Output_section *)0x0) {\n    return 0;\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    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (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 "int FUN_0007dc70(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(param_1 + 0x174);\n  if (piVar1 == (int *)0x0) {\n    return 0;\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {\n    if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\n    }\n                    \n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    \n                    \n  iVar2 = (**(code **)(*piVar1 + 0x2c))();\n  return iVar2;\n}\n\n" (function_definition "int FUN_0007dc70(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(param_1 + 0x174);\n  if (piVar1 == (int *)0x0) {\n    return 0;\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {\n    if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\n    }\n                    \n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    \n                    \n  iVar2 = (**(code **)(*piVar1 + 0x2c))();\n  return iVar2;\n}" primitive_type (function_declarator "FUN_0007dc70(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(param_1 + 0x174);\n  if (piVar1 == (int *)0x0) {\n    return 0;\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {\n    if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\n    }\n                    \n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    \n                    \n  iVar2 = (**(code **)(*piVar1 + 0x2c))();\n  return iVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 0x174);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x174)" identifier = (pointer_expression "*(int **)(param_1 + 0x174)" * (cast_expression "(int **)(param_1 + 0x174)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x174)" ( (binary_expression "param_1 + 0x174" identifier + number_literal) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n    return 0;\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    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {\n    if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\n    }\n                    \n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }" if (parenthesized_expression "(*(code **)(*piVar1 + 0x2c) == FUN_00069430)" ( (binary_expression "*(code **)(*piVar1 + 0x2c) == FUN_00069430" (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 piVar1[0x18];\n    }\n                    \n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }" { (if_statement "if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\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 piVar1[0x18];\n    }" { (return_statement "return piVar1[0x18];" return (subscript_expression "piVar1[0x18]" identifier [ number_literal ]) ;) })) (expression_statement "FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);" (call_expression "FUN_0005f0b0("../../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 "iVar2 = (**(code **)(*piVar1 + 0x2c))();" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x2c))()" identifier = (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 iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 { (return_statement return LIT ;) })) (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 (subscript_expression IDENT [ LIT ]) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , LIT ))) ;) })) (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 ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0007dc70(int param_1)\n\n{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(param_1 + 0x174);\n  if (piVar1 == (int *)0x0) {\n    return 0;\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {\n    if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\n    }\n                    \n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    \n                    \n  iVar2 = (**(code **)(*piVar1 + 0x2c))();\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_0007dc70(int param_1)" (identifier "FUN_0007dc70") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  \n  piVar1 = *(int **)(param_1 + 0x174);\n  if (piVar1 == (int *)0x0) {\n    return 0;\n  }\n  if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {\n    if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\n    }\n                    \n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }\n                    \n                    \n  iVar2 = (**(code **)(*piVar1 + 0x2c))();\n  return iVar2;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 0x174);" (assignment_expression "piVar1 = *(int **)(param_1 + 0x174)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 0x174)" (* "*") (cast_expression "(int **)(param_1 + 0x174)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x174)" (( "(") (binary_expression "param_1 + 0x174" (identifier "param_1") (+ "+") (number_literal "0x174")) () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n    return 0;\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    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {\n    if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\n    }\n                    \n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }" (if "if") (parenthesized_expression "(*(code **)(*piVar1 + 0x2c) == FUN_00069430)" (( "(") (binary_expression "*(code **)(*piVar1 + 0x2c) == FUN_00069430" (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_00069430")) () ")")) (compound_statement "{\n    if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\n    }\n                    \n    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);\n  }" ({ "{") (if_statement "if (piVar1[0x18] != -1) {\n      return piVar1[0x18];\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 piVar1[0x18];\n    }" ({ "{") (return_statement "return piVar1[0x18];" (return "return") (subscript_expression "piVar1[0x18]" (identifier "piVar1") ([ "[") (number_literal "0x18") (] "]")) (; ";")) (} "}"))) (expression_statement "FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);" (call_expression "FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff)" (identifier "FUN_0005f0b0") (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 "iVar2 = (**(code **)(*piVar1 + 0x2c))();" (assignment_expression "iVar2 = (**(code **)(*piVar1 + 0x2c))()" (identifier "iVar2") (= "=") (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 iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: uint symtab_section_shndx(Layout * this) */

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

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


(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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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 (return_statement (number_literal)))) (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 (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal) (string_literal (string_content)) (number_literal)))))) (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)))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int MASKED(int param_1)

{
  int *piVar1;
  int iVar2;
  
  piVar1 = *(int **)(param_1 + 0x174);
  if (piVar1 == (int *)0x0) {
    return 0;
  }
  if (*(code **)(*piVar1 + 0x2c) == FUN_00069430) {
    if (piVar1[0x18] != -1) {
      return piVar1[0x18];
    }
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/output.h",0x1043,"do_out_shndx",0xffffffff);
  }
                    /* WARNING: Could not recover jumptable at 0x0007dcc8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar2 = (**(code **)(*piVar1 + 0x2c))();
  return iVar2;
}

