
/* DWARF original prototype: uint shndx(Input_section * this) */

uint __thiscall gold::Output_section::Input_section::shndx(Input_section *this)

{
  uint uVar1;
  
  uVar1 = this->shndx_;
  if (uVar1 < 0xfffffffc) {
    return uVar1;
  }
  if (1 < uVar1 + 3) {
    if (uVar1 == 0xfffffffc) {
      return ((this->u2_).poris)->shndx_;
    }
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/output.cc",0x8bc,"shndx");
  }
  if (((this->u2_).pomb)->first_relobj_ != (Relobj *)0x0) {
    return ((this->u2_).pomb)->first_shndx_;
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/output.cc",0x8b6,"shndx");
}



uint FUN_001c0a60(uint *param_1)

{
  uint uVar1;
  
  uVar1 = *param_1;
  if (uVar1 < 0xfffffffc) {
    return uVar1;
  }
  if (1 < uVar1 + 3) {
    if (uVar1 == 0xfffffffc) {
      return *(uint *)(*(long *)(param_1 + 4) + 0x40);
    }
                    /* WARNING: Subroutine does not return */
    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");
  }
  if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {
    return *(uint *)(*(long *)(param_1 + 4) + 0x50);
  }
                    /* WARNING: Subroutine does not return */
  FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");
}


MOV EAX,dword ptr [RDI]
CMP EAX,-0x4
JC 0x001c0aa0
LEA EDX,[RAX + 0x3]
SUB RSP,0x8
CMP EDX,0x1
JBE 0x001c0a88
CMP EAX,-0x4
JNZ 0x001c0aa1
MOV RAX,qword ptr [RDI + 0x10]
MOV EAX,dword ptr [RAX + 0x40]
ADD RSP,0x8
RET
MOV RAX,qword ptr [RDI + 0x10]
CMP qword ptr [RAX + 0x48],0x0
JZ 0x001c0ab9
MOV EAX,dword ptr [RAX + 0x50]
ADD RSP,0x8
RET
RET
LEA RDX,[0x319c5c]
MOV ESI,0x8bc
LEA RDI,[0x31856f]
CALL 0x0016cdf0
LEA RDX,[0x319c5c]
MOV ESI,0x8b6
LEA RDI,[0x31856f]
CALL 0x0016cdf0
(translation_unit "uint FUN_001c0a60(uint *param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = *param_1;\n  if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }\n  if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }\n  if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");\n}\n\n" (function_definition "uint FUN_001c0a60(uint *param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = *param_1;\n  if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }\n  if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }\n  if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");\n}" type_identifier (function_declarator "FUN_001c0a60(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *param_1;\n  if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }\n  if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }\n  if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 < 0xfffffffc)" ( (binary_expression "uVar1 < 0xfffffffc" identifier < number_literal) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }" if (parenthesized_expression "(1 < uVar1 + 3)" ( (binary_expression "1 < uVar1 + 3" number_literal < (binary_expression "uVar1 + 3" identifier + number_literal)) )) (compound_statement "{\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }" { (if_statement "if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }" if (parenthesized_expression "(uVar1 == 0xfffffffc)" ( (binary_expression "uVar1 == 0xfffffffc" identifier == number_literal) )) (compound_statement "{\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }" { (return_statement "return *(uint *)(*(long *)(param_1 + 4) + 0x40);" return (pointer_expression "*(uint *)(*(long *)(param_1 + 4) + 0x40)" * (cast_expression "(uint *)(*(long *)(param_1 + 4) + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 4) + 0x40)" ( (binary_expression "*(long *)(param_1 + 4) + 0x40" (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) ;) })) comment (expression_statement "FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");" (call_expression "FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx")" identifier (argument_list "("../../gold/output.cc",0x8bc,"shndx")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""shndx"" " string_content ") ))) ;) })) (if_statement "if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }" if (parenthesized_expression "(*(long *)(*(long *)(param_1 + 4) + 0x48) != 0)" ( (binary_expression "*(long *)(*(long *)(param_1 + 4) + 0x48) != 0" (pointer_expression "*(long *)(*(long *)(param_1 + 4) + 0x48)" * (cast_expression "(long *)(*(long *)(param_1 + 4) + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 4) + 0x48)" ( (binary_expression "*(long *)(param_1 + 4) + 0x48" (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) (compound_statement "{\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }" { (return_statement "return *(uint *)(*(long *)(param_1 + 4) + 0x50);" return (pointer_expression "*(uint *)(*(long *)(param_1 + 4) + 0x50)" * (cast_expression "(uint *)(*(long *)(param_1 + 4) + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 4) + 0x50)" ( (binary_expression "*(long *)(param_1 + 4) + 0x50" (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) ;) })) comment (expression_statement "FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");" (call_expression "FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx")" identifier (argument_list "("../../gold/output.cc",0x8b6,"shndx")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""shndx"" " string_content ") ))) ;) })))
(translation_unit "/* DWARF original prototype: uint shndx(Input_section * this) */\n\nuint __thiscall gold::Output_section::Input_section::shndx(Input_section *this)\n\n{\n  uint uVar1;\n  \n  uVar1 = this->shndx_;\n  if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }\n  if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return ((this->u2_).poris)->shndx_;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x8bc,"shndx");\n  }\n  if (((this->u2_).pomb)->first_relobj_ != (Relobj *)0x0) {\n    return ((this->u2_).pomb)->first_shndx_;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/output.cc",0x8b6,"shndx");\n}\n\n" comment (function_definition "uint __thiscall gold::Output_section::Input_section::shndx(Input_section *this)\n\n{\n  uint uVar1;\n  \n  uVar1 = this->shndx_;\n  if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }\n  if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return ((this->u2_).poris)->shndx_;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x8bc,"shndx");\n  }\n  if (((this->u2_).pomb)->first_relobj_ != (Relobj *)0x0) {\n    return ((this->u2_).pomb)->first_shndx_;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/output.cc",0x8b6,"shndx");\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Output_section::Input_section::" identifier : : identifier : : identifier : :) (function_declarator "shndx(Input_section *this)" identifier (parameter_list "(Input_section *this)" ( (parameter_declaration "Input_section *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = this->shndx_;\n  if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }\n  if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return ((this->u2_).poris)->shndx_;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x8bc,"shndx");\n  }\n  if (((this->u2_).pomb)->first_relobj_ != (Relobj *)0x0) {\n    return ((this->u2_).pomb)->first_shndx_;\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/output.cc",0x8b6,"shndx");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = this->shndx_;" (assignment_expression "uVar1 = this->shndx_" identifier = (field_expression "this->shndx_" identifier -> field_identifier)) ;) (if_statement "if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 < 0xfffffffc)" ( (binary_expression "uVar1 < 0xfffffffc" identifier < number_literal) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return ((this->u2_).poris)->shndx_;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x8bc,"shndx");\n  }" if (parenthesized_expression "(1 < uVar1 + 3)" ( (binary_expression "1 < uVar1 + 3" number_literal < (binary_expression "uVar1 + 3" identifier + number_literal)) )) (compound_statement "{\n    if (uVar1 == 0xfffffffc) {\n      return ((this->u2_).poris)->shndx_;\n    }\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/output.cc",0x8bc,"shndx");\n  }" { (if_statement "if (uVar1 == 0xfffffffc) {\n      return ((this->u2_).poris)->shndx_;\n    }" if (parenthesized_expression "(uVar1 == 0xfffffffc)" ( (binary_expression "uVar1 == 0xfffffffc" identifier == number_literal) )) (compound_statement "{\n      return ((this->u2_).poris)->shndx_;\n    }" { (return_statement "return ((this->u2_).poris)->shndx_;" return (field_expression "((this->u2_).poris)->shndx_" (parenthesized_expression "((this->u2_).poris)" ( (field_expression "(this->u2_).poris" (parenthesized_expression "(this->u2_)" ( (field_expression "this->u2_" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0x8bc,"shndx");" (call_expression "do_gold_unreachable("../../gold/output.cc",0x8bc,"shndx")" identifier (argument_list "("../../gold/output.cc",0x8bc,"shndx")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""shndx"" " string_content ") ))) ;) })) (if_statement "if (((this->u2_).pomb)->first_relobj_ != (Relobj *)0x0) {\n    return ((this->u2_).pomb)->first_shndx_;\n  }" if (parenthesized_expression "(((this->u2_).pomb)->first_relobj_ != (Relobj *)0x0)" ( (binary_expression "((this->u2_).pomb)->first_relobj_ != (Relobj *)0x0" (field_expression "((this->u2_).pomb)->first_relobj_" (parenthesized_expression "((this->u2_).pomb)" ( (field_expression "(this->u2_).pomb" (parenthesized_expression "(this->u2_)" ( (field_expression "this->u2_" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier) != (cast_expression "(Relobj *)0x0" ( (type_descriptor "Relobj *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return ((this->u2_).pomb)->first_shndx_;\n  }" { (return_statement "return ((this->u2_).pomb)->first_shndx_;" return (field_expression "((this->u2_).pomb)->first_shndx_" (parenthesized_expression "((this->u2_).pomb)" ( (field_expression "(this->u2_).pomb" (parenthesized_expression "(this->u2_)" ( (field_expression "this->u2_" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0x8b6,"shndx");" (call_expression "do_gold_unreachable("../../gold/output.cc",0x8b6,"shndx")" identifier (argument_list "("../../gold/output.cc",0x8b6,"shndx")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""shndx"" " string_content ") ))) ;) })))
(translation_unit "uint FUN_001c0a60(uint *param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = *param_1;\n  if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }\n  if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    \n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }\n  if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }\n                    \n  FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");\n}\n\n" (function_definition "uint FUN_001c0a60(uint *param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = *param_1;\n  if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }\n  if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    \n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }\n  if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }\n                    \n  FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");\n}" type_identifier (function_declarator "FUN_001c0a60(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *param_1;\n  if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }\n  if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    \n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }\n  if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }\n                    \n  FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }" if (parenthesized_expression "(uVar1 < 0xfffffffc)" ( (binary_expression "uVar1 < 0xfffffffc" identifier < number_literal) )) (compound_statement "{\n    return uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (if_statement "if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    \n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }" if (parenthesized_expression "(1 < uVar1 + 3)" ( (binary_expression "1 < uVar1 + 3" number_literal < (binary_expression "uVar1 + 3" identifier + number_literal)) )) (compound_statement "{\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    \n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }" { (if_statement "if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }" if (parenthesized_expression "(uVar1 == 0xfffffffc)" ( (binary_expression "uVar1 == 0xfffffffc" identifier == number_literal) )) (compound_statement "{\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }" { (return_statement "return *(uint *)(*(long *)(param_1 + 4) + 0x40);" return (pointer_expression "*(uint *)(*(long *)(param_1 + 4) + 0x40)" * (cast_expression "(uint *)(*(long *)(param_1 + 4) + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 4) + 0x40)" ( (binary_expression "*(long *)(param_1 + 4) + 0x40" (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) ;) })) (expression_statement "FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");" (call_expression "FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx")" identifier (argument_list "("../../gold/output.cc",0x8bc,"shndx")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""shndx"" " string_content ") ))) ;) })) (if_statement "if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }" if (parenthesized_expression "(*(long *)(*(long *)(param_1 + 4) + 0x48) != 0)" ( (binary_expression "*(long *)(*(long *)(param_1 + 4) + 0x48) != 0" (pointer_expression "*(long *)(*(long *)(param_1 + 4) + 0x48)" * (cast_expression "(long *)(*(long *)(param_1 + 4) + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 4) + 0x48)" ( (binary_expression "*(long *)(param_1 + 4) + 0x48" (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) != number_literal) )) (compound_statement "{\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }" { (return_statement "return *(uint *)(*(long *)(param_1 + 4) + 0x50);" return (pointer_expression "*(uint *)(*(long *)(param_1 + 4) + 0x50)" * (cast_expression "(uint *)(*(long *)(param_1 + 4) + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 4) + 0x50)" ( (binary_expression "*(long *)(param_1 + 4) + 0x50" (pointer_expression "*(long *)(param_1 + 4)" * (cast_expression "(long *)(param_1 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) ;) })) (expression_statement "FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");" (call_expression "FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx")" identifier (argument_list "("../../gold/output.cc",0x8b6,"shndx")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""shndx"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "uint FUN_001c0a60(uint *param_1)\n\n{\n  uint uVar1;\n  \n  uVar1 = *param_1;\n  if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }\n  if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    \n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }\n  if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }\n                    \n  FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");\n}" (type_identifier "uint") (function_declarator "FUN_001c0a60(uint *param_1)" (identifier "FUN_001c0a60") (parameter_list "(uint *param_1)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *param_1;\n  if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }\n  if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    \n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }\n  if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }\n                    \n  FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (uVar1 < 0xfffffffc) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(uVar1 < 0xfffffffc)" (( "(") (binary_expression "uVar1 < 0xfffffffc" (identifier "uVar1") (< "<") (number_literal "0xfffffffc")) () ")")) (compound_statement "{\n    return uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (if_statement "if (1 < uVar1 + 3) {\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    \n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }" (if "if") (parenthesized_expression "(1 < uVar1 + 3)" (( "(") (binary_expression "1 < uVar1 + 3" (number_literal "1") (< "<") (binary_expression "uVar1 + 3" (identifier "uVar1") (+ "+") (number_literal "3"))) () ")")) (compound_statement "{\n    if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }\n                    \n    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");\n  }" ({ "{") (if_statement "if (uVar1 == 0xfffffffc) {\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }" (if "if") (parenthesized_expression "(uVar1 == 0xfffffffc)" (( "(") (binary_expression "uVar1 == 0xfffffffc" (identifier "uVar1") (== "==") (number_literal "0xfffffffc")) () ")")) (compound_statement "{\n      return *(uint *)(*(long *)(param_1 + 4) + 0x40);\n    }" ({ "{") (return_statement "return *(uint *)(*(long *)(param_1 + 4) + 0x40);" (return "return") (pointer_expression "*(uint *)(*(long *)(param_1 + 4) + 0x40)" (* "*") (cast_expression "(uint *)(*(long *)(param_1 + 4) + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 4) + 0x40)" (( "(") (binary_expression "*(long *)(param_1 + 4) + 0x40" (pointer_expression "*(long *)(param_1 + 4)" (* "*") (cast_expression "(long *)(param_1 + 4)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x40")) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");" (call_expression "FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx")" (identifier "FUN_0016cdf0") (argument_list "("../../gold/output.cc",0x8bc,"shndx")" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x8bc") (, ",") (string_literal ""shndx"" (" """) (string_content "shndx") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }" (if "if") (parenthesized_expression "(*(long *)(*(long *)(param_1 + 4) + 0x48) != 0)" (( "(") (binary_expression "*(long *)(*(long *)(param_1 + 4) + 0x48) != 0" (pointer_expression "*(long *)(*(long *)(param_1 + 4) + 0x48)" (* "*") (cast_expression "(long *)(*(long *)(param_1 + 4) + 0x48)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 4) + 0x48)" (( "(") (binary_expression "*(long *)(param_1 + 4) + 0x48" (pointer_expression "*(long *)(param_1 + 4)" (* "*") (cast_expression "(long *)(param_1 + 4)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x48")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return *(uint *)(*(long *)(param_1 + 4) + 0x50);\n  }" ({ "{") (return_statement "return *(uint *)(*(long *)(param_1 + 4) + 0x50);" (return "return") (pointer_expression "*(uint *)(*(long *)(param_1 + 4) + 0x50)" (* "*") (cast_expression "(uint *)(*(long *)(param_1 + 4) + 0x50)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 4) + 0x50)" (( "(") (binary_expression "*(long *)(param_1 + 4) + 0x50" (pointer_expression "*(long *)(param_1 + 4)" (* "*") (cast_expression "(long *)(param_1 + 4)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x50")) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");" (call_expression "FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx")" (identifier "FUN_0016cdf0") (argument_list "("../../gold/output.cc",0x8b6,"shndx")" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x8b6") (, ",") (string_literal ""shndx"" (" """) (string_content "shndx") (" """)) () ")"))) (; ";")) (} "}")))

/* DWARF original prototype: uint shndx(Input_section * this) */

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

{
  type_1 var_1;
  
  var_1 = this->shndx_;
  if (var_1 < 0xfffffffc) {
    return var_1;
  }
  if (1 < var_1 + 3) {
    if (var_1 == 0xfffffffc) {
      return ((this->u2_).poris)->shndx_;
    }
                    /* WARNING: Subroutine does not return */
    var_2("../../gold/output.cc",0x8bc,"shndx");
  }
  if (((this->u2_).pomb)->first_relobj_ != (type_3 *)0x0) {
    return ((this->u2_).pomb)->first_shndx_;
  }
                    /* WARNING: Subroutine does not return */
  var_2("../../gold/output.cc",0x8b6,"shndx");
}


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

uint MASKED(uint *param_1)

{
  uint uVar1;
  
  uVar1 = *param_1;
  if (uVar1 < 0xfffffffc) {
    return uVar1;
  }
  if (1 < uVar1 + 3) {
    if (uVar1 == 0xfffffffc) {
      return *(uint *)(*(long *)(param_1 + 4) + 0x40);
    }
                    /* WARNING: Subroutine does not return */
    FUN_0016cdf0("../../gold/output.cc",0x8bc,"shndx");
  }
  if (*(long *)(*(long *)(param_1 + 4) + 0x48) != 0) {
    return *(uint *)(*(long *)(param_1 + 4) + 0x50);
  }
                    /* WARNING: Subroutine does not return */
  FUN_0016cdf0("../../gold/output.cc",0x8b6,"shndx");
}

