
/* DWARF original prototype: Relobj * relobj(Input_section * this) */

Relobj * __thiscall gold::Output_section::Input_section::relobj(Input_section *this)

{
  uint uVar1;
  Relobj *pRVar2;
  
  uVar1 = this->shndx_;
  if (3 < uVar1 + 4) {
    return (this->u2_).object;
  }
  if (uVar1 + 3 < 2) {
    pRVar2 = (Relobj *)(((this->u2_).object)->super_Object).compressed_sections_;
    if (pRVar2 == (Relobj *)0x0) {
                    /* WARNING: Subroutine does not return */
      do_gold_unreachable("../../gold/output.cc",0x8a4,"relobj");
    }
  }
  else {
    if (uVar1 != 0xfffffffc) {
                    /* WARNING: Subroutine does not return */
      do_gold_unreachable("../../gold/output.cc",0x8aa,"relobj");
    }
    pRVar2 = *(Relobj **)&(((this->u2_).object)->super_Object).shnum_;
  }
  return pRVar2;
}



long FUN_001f5820(int *param_1)

{
  int iVar1;
  long lVar2;
  
  iVar1 = *param_1;
  if (3 < iVar1 + 4U) {
    return *(long *)(param_1 + 4);
  }
  if (iVar1 + 3U < 2) {
    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);
    if (lVar2 == 0) {
                    /* WARNING: Subroutine does not return */
      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");
    }
  }
  else {
    if (iVar1 != -4) {
                    /* WARNING: Subroutine does not return */
      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");
    }
    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);
  }
  return lVar2;
}


MOV EAX,dword ptr [RDI]
LEA EDX,[RAX + 0x4]
CMP EDX,0x3
JA 0x001f5878
LEA EDX,[RAX + 0x3]
SUB RSP,0x8
CMP EDX,0x1
JBE 0x001f5850
CMP EAX,-0x4
JNZ 0x001f587d
MOV RAX,qword ptr [RDI + 0x10]
MOV RAX,qword ptr [RAX + 0x38]
ADD RSP,0x8
RET
MOV RAX,qword ptr [RDI + 0x10]
MOV RAX,qword ptr [RAX + 0x48]
TEST RAX,RAX
JNZ 0x001f5843
LEA RDX,[0x3809e2]
MOV ESI,0x8a4
LEA RDI,[0x37e8cf]
CALL 0x0017c650
MOV RAX,qword ptr [RDI + 0x10]
RET
LEA RDX,[0x3809e2]
MOV ESI,0x8aa
LEA RDI,[0x37e8cf]
CALL 0x0017c650
(translation_unit "long FUN_001f5820(int *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = *param_1;\n  if (3 < iVar1 + 4U) {\n    return *(long *)(param_1 + 4);\n  }\n  if (iVar1 + 3U < 2) {\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (iVar1 != -4) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }\n  return lVar2;\n}\n\n" (function_definition "long FUN_001f5820(int *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = *param_1;\n  if (3 < iVar1 + 4U) {\n    return *(long *)(param_1 + 4);\n  }\n  if (iVar1 + 3U < 2) {\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (iVar1 != -4) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }\n  return lVar2;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_001f5820(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = *param_1;\n  if (3 < iVar1 + 4U) {\n    return *(long *)(param_1 + 4);\n  }\n  if (iVar1 + 3U < 2) {\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (iVar1 != -4) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }\n  return lVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (3 < iVar1 + 4U) {\n    return *(long *)(param_1 + 4);\n  }" if (parenthesized_expression "(3 < iVar1 + 4U)" ( (binary_expression "3 < iVar1 + 4U" number_literal < (binary_expression "iVar1 + 4U" identifier + number_literal)) )) (compound_statement "{\n    return *(long *)(param_1 + 4);\n  }" { (return_statement "return *(long *)(param_1 + 4);" return (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) )))) ;) })) (if_statement "if (iVar1 + 3U < 2) {\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (iVar1 != -4) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }" if (parenthesized_expression "(iVar1 + 3U < 2)" ( (binary_expression "iVar1 + 3U < 2" (binary_expression "iVar1 + 3U" identifier + number_literal) < number_literal) )) (compound_statement "{\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }" { (expression_statement "lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48)" identifier = (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) ))))) ;) (if_statement "if (lVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }" { comment (expression_statement "FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");" (call_expression "FUN_0017c650("../../gold/output.cc",0x8a4,"relobj")" identifier (argument_list "("../../gold/output.cc",0x8a4,"relobj")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""relobj"" " string_content ") ))) ;) })) }) (else_clause "else {\n    if (iVar1 != -4) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }" else (compound_statement "{\n    if (iVar1 != -4) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }" { (if_statement "if (iVar1 != -4) {\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }" if (parenthesized_expression "(iVar1 != -4)" ( (binary_expression "iVar1 != -4" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }" { comment (expression_statement "FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");" (call_expression "FUN_0017c650("../../gold/output.cc",0x8aa,"relobj")" identifier (argument_list "("../../gold/output.cc",0x8aa,"relobj")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""relobj"" " string_content ") ))) ;) })) (expression_statement "lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38)" identifier = (pointer_expression "*(long *)(*(long *)(param_1 + 4) + 0x38)" * (cast_expression "(long *)(*(long *)(param_1 + 4) + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 4) + 0x38)" ( (binary_expression "*(long *)(param_1 + 4) + 0x38" (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) ))))) ;) }))) (return_statement "return lVar2;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: Relobj * relobj(Input_section * this) */\n\nRelobj * __thiscall gold::Output_section::Input_section::relobj(Input_section *this)\n\n{\n  uint uVar1;\n  Relobj *pRVar2;\n  \n  uVar1 = this->shndx_;\n  if (3 < uVar1 + 4) {\n    return (this->u2_).object;\n  }\n  if (uVar1 + 3 < 2) {\n    pRVar2 = (Relobj *)(((this->u2_).object)->super_Object).compressed_sections_;\n    if (pRVar2 == (Relobj *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (uVar1 != 0xfffffffc) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8aa,"relobj");\n    }\n    pRVar2 = *(Relobj **)&(((this->u2_).object)->super_Object).shnum_;\n  }\n  return pRVar2;\n}\n\n" comment (ERROR "Relobj * __thiscall gold::Output_section::Input_section::relobj(Input_section *this)" (binary_expression "Relobj * __thiscall gold::Output_section::Input_section::relobj(Input_section *this" (binary_expression "Relobj * __thiscall" identifier * identifier) (ERROR "gold::Output_section::Input_section::relobj(Input_section" identifier : : identifier : : identifier : : identifier ( identifier) * identifier) )) (compound_statement "{\n  uint uVar1;\n  Relobj *pRVar2;\n  \n  uVar1 = this->shndx_;\n  if (3 < uVar1 + 4) {\n    return (this->u2_).object;\n  }\n  if (uVar1 + 3 < 2) {\n    pRVar2 = (Relobj *)(((this->u2_).object)->super_Object).compressed_sections_;\n    if (pRVar2 == (Relobj *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (uVar1 != 0xfffffffc) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8aa,"relobj");\n    }\n    pRVar2 = *(Relobj **)&(((this->u2_).object)->super_Object).shnum_;\n  }\n  return pRVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "Relobj *pRVar2;" type_identifier (pointer_declarator "*pRVar2" * identifier) ;) (expression_statement "uVar1 = this->shndx_;" (assignment_expression "uVar1 = this->shndx_" identifier = (field_expression "this->shndx_" identifier -> field_identifier)) ;) (if_statement "if (3 < uVar1 + 4) {\n    return (this->u2_).object;\n  }" if (parenthesized_expression "(3 < uVar1 + 4)" ( (binary_expression "3 < uVar1 + 4" number_literal < (binary_expression "uVar1 + 4" identifier + number_literal)) )) (compound_statement "{\n    return (this->u2_).object;\n  }" { (return_statement "return (this->u2_).object;" return (field_expression "(this->u2_).object" (parenthesized_expression "(this->u2_)" ( (field_expression "this->u2_" identifier -> field_identifier) )) . field_identifier) ;) })) (if_statement "if (uVar1 + 3 < 2) {\n    pRVar2 = (Relobj *)(((this->u2_).object)->super_Object).compressed_sections_;\n    if (pRVar2 == (Relobj *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (uVar1 != 0xfffffffc) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8aa,"relobj");\n    }\n    pRVar2 = *(Relobj **)&(((this->u2_).object)->super_Object).shnum_;\n  }" if (parenthesized_expression "(uVar1 + 3 < 2)" ( (binary_expression "uVar1 + 3 < 2" (binary_expression "uVar1 + 3" identifier + number_literal) < number_literal) )) (compound_statement "{\n    pRVar2 = (Relobj *)(((this->u2_).object)->super_Object).compressed_sections_;\n    if (pRVar2 == (Relobj *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }" { (expression_statement "pRVar2 = (Relobj *)(((this->u2_).object)->super_Object).compressed_sections_;" (assignment_expression "pRVar2 = (Relobj *)(((this->u2_).object)->super_Object).compressed_sections_" identifier = (cast_expression "(Relobj *)(((this->u2_).object)->super_Object).compressed_sections_" ( (type_descriptor "Relobj *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(((this->u2_).object)->super_Object).compressed_sections_" (parenthesized_expression "(((this->u2_).object)->super_Object)" ( (field_expression "((this->u2_).object)->super_Object" (parenthesized_expression "((this->u2_).object)" ( (field_expression "(this->u2_).object" (parenthesized_expression "(this->u2_)" ( (field_expression "this->u2_" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier) )) . field_identifier))) ;) (if_statement "if (pRVar2 == (Relobj *)0x0) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8a4,"relobj");\n    }" if (parenthesized_expression "(pRVar2 == (Relobj *)0x0)" ( (binary_expression "pRVar2 == (Relobj *)0x0" identifier == (cast_expression "(Relobj *)0x0" ( (type_descriptor "Relobj *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8a4,"relobj");\n    }" { comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0x8a4,"relobj");" (call_expression "do_gold_unreachable("../../gold/output.cc",0x8a4,"relobj")" identifier (argument_list "("../../gold/output.cc",0x8a4,"relobj")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""relobj"" " string_content ") ))) ;) })) }) (else_clause "else {\n    if (uVar1 != 0xfffffffc) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8aa,"relobj");\n    }\n    pRVar2 = *(Relobj **)&(((this->u2_).object)->super_Object).shnum_;\n  }" else (compound_statement "{\n    if (uVar1 != 0xfffffffc) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8aa,"relobj");\n    }\n    pRVar2 = *(Relobj **)&(((this->u2_).object)->super_Object).shnum_;\n  }" { (if_statement "if (uVar1 != 0xfffffffc) {\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8aa,"relobj");\n    }" if (parenthesized_expression "(uVar1 != 0xfffffffc)" ( (binary_expression "uVar1 != 0xfffffffc" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      do_gold_unreachable("../../gold/output.cc",0x8aa,"relobj");\n    }" { comment (expression_statement "do_gold_unreachable("../../gold/output.cc",0x8aa,"relobj");" (call_expression "do_gold_unreachable("../../gold/output.cc",0x8aa,"relobj")" identifier (argument_list "("../../gold/output.cc",0x8aa,"relobj")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""relobj"" " string_content ") ))) ;) })) (expression_statement "pRVar2 = *(Relobj **)&(((this->u2_).object)->super_Object).shnum_;" (assignment_expression "pRVar2 = *(Relobj **)&(((this->u2_).object)->super_Object).shnum_" identifier = (pointer_expression "*(Relobj **)&(((this->u2_).object)->super_Object).shnum_" * (cast_expression "(Relobj **)&(((this->u2_).object)->super_Object).shnum_" ( (type_descriptor "Relobj **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&(((this->u2_).object)->super_Object).shnum_" & (field_expression "(((this->u2_).object)->super_Object).shnum_" (parenthesized_expression "(((this->u2_).object)->super_Object)" ( (field_expression "((this->u2_).object)->super_Object" (parenthesized_expression "((this->u2_).object)" ( (field_expression "(this->u2_).object" (parenthesized_expression "(this->u2_)" ( (field_expression "this->u2_" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier) )) . field_identifier))))) ;) }))) (return_statement "return pRVar2;" return identifier ;) }))
(translation_unit "long FUN_001f5820(int *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = *param_1;\n  if (3 < iVar1 + 4U) {\n    return *(long *)(param_1 + 4);\n  }\n  if (iVar1 + 3U < 2) {\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }\n  return lVar2;\n}\n\n" (function_definition "long FUN_001f5820(int *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = *param_1;\n  if (3 < iVar1 + 4U) {\n    return *(long *)(param_1 + 4);\n  }\n  if (iVar1 + 3U < 2) {\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }\n  return lVar2;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_001f5820(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = *param_1;\n  if (3 < iVar1 + 4U) {\n    return *(long *)(param_1 + 4);\n  }\n  if (iVar1 + 3U < 2) {\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }\n  return lVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (3 < iVar1 + 4U) {\n    return *(long *)(param_1 + 4);\n  }" if (parenthesized_expression "(3 < iVar1 + 4U)" ( (binary_expression "3 < iVar1 + 4U" number_literal < (binary_expression "iVar1 + 4U" identifier + number_literal)) )) (compound_statement "{\n    return *(long *)(param_1 + 4);\n  }" { (return_statement "return *(long *)(param_1 + 4);" return (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) )))) ;) })) (if_statement "if (iVar1 + 3U < 2) {\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }" if (parenthesized_expression "(iVar1 + 3U < 2)" ( (binary_expression "iVar1 + 3U < 2" (binary_expression "iVar1 + 3U" identifier + number_literal) < number_literal) )) (compound_statement "{\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }" { (expression_statement "lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48)" identifier = (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) ))))) ;) (if_statement "if (lVar2 == 0) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }" { (expression_statement "FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");" (call_expression "FUN_0017c650("../../gold/output.cc",0x8a4,"relobj")" identifier (argument_list "("../../gold/output.cc",0x8a4,"relobj")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""relobj"" " string_content ") ))) ;) })) }) (else_clause "else {\n    if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }" else (compound_statement "{\n    if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }" { (if_statement "if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }" if (parenthesized_expression "(iVar1 != -4)" ( (binary_expression "iVar1 != -4" identifier != number_literal) )) (compound_statement "{\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }" { (expression_statement "FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");" (call_expression "FUN_0017c650("../../gold/output.cc",0x8aa,"relobj")" identifier (argument_list "("../../gold/output.cc",0x8aa,"relobj")" ( (string_literal ""../../gold/output.cc"" " string_content ") , number_literal , (string_literal ""relobj"" " string_content ") ))) ;) })) (expression_statement "lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38)" identifier = (pointer_expression "*(long *)(*(long *)(param_1 + 4) + 0x38)" * (cast_expression "(long *)(*(long *)(param_1 + 4) + 0x38)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 4) + 0x38)" ( (binary_expression "*(long *)(param_1 + 4) + 0x38" (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) ))))) ;) }))) (return_statement "return lVar2;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT + LIT)) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (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) ))))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "long FUN_001f5820(int *param_1)\n\n{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = *param_1;\n  if (3 < iVar1 + 4U) {\n    return *(long *)(param_1 + 4);\n  }\n  if (iVar1 + 3U < 2) {\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }\n  return lVar2;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_001f5820(int *param_1)" (identifier "FUN_001f5820") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  long lVar2;\n  \n  iVar1 = *param_1;\n  if (3 < iVar1 + 4U) {\n    return *(long *)(param_1 + 4);\n  }\n  if (iVar1 + 3U < 2) {\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }\n  return lVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (3 < iVar1 + 4U) {\n    return *(long *)(param_1 + 4);\n  }" (if "if") (parenthesized_expression "(3 < iVar1 + 4U)" (( "(") (binary_expression "3 < iVar1 + 4U" (number_literal "3") (< "<") (binary_expression "iVar1 + 4U" (identifier "iVar1") (+ "+") (number_literal "4U"))) () ")")) (compound_statement "{\n    return *(long *)(param_1 + 4);\n  }" ({ "{") (return_statement "return *(long *)(param_1 + 4);" (return "return") (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")) () ")")))) (; ";")) (} "}"))) (if_statement "if (iVar1 + 3U < 2) {\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }\n  else {\n    if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }" (if "if") (parenthesized_expression "(iVar1 + 3U < 2)" (( "(") (binary_expression "iVar1 + 3U < 2" (binary_expression "iVar1 + 3U" (identifier "iVar1") (+ "+") (number_literal "3U")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);\n    if (lVar2 == 0) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }\n  }" ({ "{") (expression_statement "lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48)" (identifier "lVar2") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if (lVar2 == 0) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }" (if "if") (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");\n    }" ({ "{") (expression_statement "FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");" (call_expression "FUN_0017c650("../../gold/output.cc",0x8a4,"relobj")" (identifier "FUN_0017c650") (argument_list "("../../gold/output.cc",0x8a4,"relobj")" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x8a4") (, ",") (string_literal ""relobj"" (" """) (string_content "relobj") (" """)) () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }" (else "else") (compound_statement "{\n    if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }\n    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);\n  }" ({ "{") (if_statement "if (iVar1 != -4) {\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }" (if "if") (parenthesized_expression "(iVar1 != -4)" (( "(") (binary_expression "iVar1 != -4" (identifier "iVar1") (!= "!=") (number_literal "-4")) () ")")) (compound_statement "{\n                    \n      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");\n    }" ({ "{") (expression_statement "FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");" (call_expression "FUN_0017c650("../../gold/output.cc",0x8aa,"relobj")" (identifier "FUN_0017c650") (argument_list "("../../gold/output.cc",0x8aa,"relobj")" (( "(") (string_literal ""../../gold/output.cc"" (" """) (string_content "../../gold/output.cc") (" """)) (, ",") (number_literal "0x8aa") (, ",") (string_literal ""relobj"" (" """) (string_content "relobj") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);" (assignment_expression "lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38)" (identifier "lVar2") (= "=") (pointer_expression "*(long *)(*(long *)(param_1 + 4) + 0x38)" (* "*") (cast_expression "(long *)(*(long *)(param_1 + 4) + 0x38)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 4) + 0x38)" (( "(") (binary_expression "*(long *)(param_1 + 4) + 0x38" (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 "0x38")) () ")"))))) (; ";")) (} "}")))) (return_statement "return lVar2;" (return "return") (identifier "lVar2") (; ";")) (} "}")))

/* DWARF original prototype: Relobj * relobj(Input_section * this) */

type_2 * __thiscall gold::Output_section::Input_section::relobj(Input_section *this)

{
  type_1 var_1;
  type_2 *var_2;
  
  var_1 = this->shndx_;
  if (3 < var_1 + 4) {
    return (this->u2_).object;
  }
  if (var_1 + 3 < 2) {
    var_2 = (type_2 *)(((this->u2_).object)->super_Object).compressed_sections_;
    if (var_2 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
      var_3("../../gold/output.cc",0x8a4,"relobj");
    }
  }
  else {
    if (var_1 != 0xfffffffc) {
                    /* WARNING: Subroutine does not return */
      var_3("../../gold/output.cc",0x8aa,"relobj");
    }
    var_2 = *(type_2 **)&(((this->u2_).object)->super_Object).shnum_;
  }
  return var_2;
}


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

long MASKED(int *param_1)

{
  int iVar1;
  long lVar2;
  
  iVar1 = *param_1;
  if (3 < iVar1 + 4U) {
    return *(long *)(param_1 + 4);
  }
  if (iVar1 + 3U < 2) {
    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x48);
    if (lVar2 == 0) {
                    /* WARNING: Subroutine does not return */
      FUN_0017c650("../../gold/output.cc",0x8a4,"relobj");
    }
  }
  else {
    if (iVar1 != -4) {
                    /* WARNING: Subroutine does not return */
      FUN_0017c650("../../gold/output.cc",0x8aa,"relobj");
    }
    lVar2 = *(long *)(*(long *)(param_1 + 4) + 0x38);
  }
  return lVar2;
}

