
/* DWARF original prototype: off_t child_offset(Dwarf_die * this) */

off_t __thiscall gold::Dwarf_die::child_offset(Dwarf_die *this)

{
  long lVar1;
  off_t oVar2;
  
  if (this->abbrev_code_ == (Abbrev_code *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/dwarf_reader.cc",0x49b,"child_offset");
  }
  lVar1 = 0;
  if (((this->abbrev_code_->field_0x4 & 1) != 0) && (lVar1 = this->child_offset_, lVar1 == 0)) {
    oVar2 = skip_attributes(this);
    this->child_offset_ = oVar2;
    return oVar2;
  }
  return lVar1;
}



long FUN_0016bb40(long param_1)

{
  long lVar1;
  
  if (*(long *)(param_1 + 0x30) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");
  }
  lVar1 = 0;
  if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&
     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {
    lVar1 = FUN_0016b720();
    *(long *)(param_1 + 0x20) = lVar1;
    return lVar1;
  }
  return lVar1;
}


PUSH RBX
MOV RDX,qword ptr [RDI + 0x30]
TEST RDX,RDX
JZ 0x0016bb6b
XOR EAX,EAX
TEST byte ptr [RDX + 0x4],0x1
JZ 0x0016bb5e
MOV RAX,qword ptr [RDI + 0x20]
MOV RBX,RDI
TEST RAX,RAX
JZ 0x0016bb60
POP RBX
RET
CALL 0x0016b720
MOV qword ptr [RBX + 0x20],RAX
POP RBX
RET
LEA RDX,[0x372358]
MOV ESI,0x49b
LEA RDI,[0x371ee5]
CALL 0x0017c650
(translation_unit "long FUN_0016bb40(long param_1)\n\n{\n  long lVar1;\n  \n  if (*(long *)(param_1 + 0x30) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }\n  lVar1 = 0;\n  if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }\n  return lVar1;\n}\n\n" (function_definition "long FUN_0016bb40(long param_1)\n\n{\n  long lVar1;\n  \n  if (*(long *)(param_1 + 0x30) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }\n  lVar1 = 0;\n  if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0016bb40(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  if (*(long *)(param_1 + 0x30) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }\n  lVar1 = 0;\n  if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*(long *)(param_1 + 0x30) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x30) == 0)" ( (binary_expression "*(long *)(param_1 + 0x30) == 0" (pointer_expression "*(long *)(param_1 + 0x30)" * (cast_expression "(long *)(param_1 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }" { comment (expression_statement "FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");" (call_expression "FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset")" identifier (argument_list "("../../gold/dwarf_reader.cc",0x49b,"child_offset")" ( (string_literal ""../../gold/dwarf_reader.cc"" " string_content ") , number_literal , (string_literal ""child_offset"" " string_content ") ))) ;) })) (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) (if_statement "if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }" if (parenthesized_expression "(((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0))" ( (binary_expression "((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)" (parenthesized_expression "((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0)" ( (binary_expression "(*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0" (parenthesized_expression "(*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1)" ( (binary_expression "*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1" (pointer_expression "*(byte *)(*(long *)(param_1 + 0x30) + 4)" * (cast_expression "(byte *)(*(long *)(param_1 + 0x30) + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x30) + 4)" ( (binary_expression "*(long *)(param_1 + 0x30) + 4" (pointer_expression "*(long *)(param_1 + 0x30)" * (cast_expression "(long *)(param_1 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)" ( (comma_expression "lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0" (assignment_expression "lVar1 = *(long *)(param_1 + 0x20)" identifier = (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) , (binary_expression "lVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }" { (expression_statement "lVar1 = FUN_0016b720();" (assignment_expression "lVar1 = FUN_0016b720()" identifier = (call_expression "FUN_0016b720()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(long *)(param_1 + 0x20) = lVar1;" (assignment_expression "*(long *)(param_1 + 0x20) = lVar1" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return lVar1;" return identifier ;) })) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: off_t child_offset(Dwarf_die * this) */\n\noff_t __thiscall gold::Dwarf_die::child_offset(Dwarf_die *this)\n\n{\n  long lVar1;\n  off_t oVar2;\n  \n  if (this->abbrev_code_ == (Abbrev_code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }\n  lVar1 = 0;\n  if (((this->abbrev_code_->field_0x4 & 1) != 0) && (lVar1 = this->child_offset_, lVar1 == 0)) {\n    oVar2 = skip_attributes(this);\n    this->child_offset_ = oVar2;\n    return oVar2;\n  }\n  return lVar1;\n}\n\n" comment (function_definition "off_t __thiscall gold::Dwarf_die::child_offset(Dwarf_die *this)\n\n{\n  long lVar1;\n  off_t oVar2;\n  \n  if (this->abbrev_code_ == (Abbrev_code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }\n  lVar1 = 0;\n  if (((this->abbrev_code_->field_0x4 & 1) != 0) && (lVar1 = this->child_offset_, lVar1 == 0)) {\n    oVar2 = skip_attributes(this);\n    this->child_offset_ = oVar2;\n    return oVar2;\n  }\n  return lVar1;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Dwarf_die::" identifier : : identifier : :) (function_declarator "child_offset(Dwarf_die *this)" identifier (parameter_list "(Dwarf_die *this)" ( (parameter_declaration "Dwarf_die *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  off_t oVar2;\n  \n  if (this->abbrev_code_ == (Abbrev_code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }\n  lVar1 = 0;\n  if (((this->abbrev_code_->field_0x4 & 1) != 0) && (lVar1 = this->child_offset_, lVar1 == 0)) {\n    oVar2 = skip_attributes(this);\n    this->child_offset_ = oVar2;\n    return oVar2;\n  }\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "off_t oVar2;" type_identifier identifier ;) (if_statement "if (this->abbrev_code_ == (Abbrev_code *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }" if (parenthesized_expression "(this->abbrev_code_ == (Abbrev_code *)0x0)" ( (binary_expression "this->abbrev_code_ == (Abbrev_code *)0x0" (field_expression "this->abbrev_code_" identifier -> field_identifier) == (cast_expression "(Abbrev_code *)0x0" ( (type_descriptor "Abbrev_code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/dwarf_reader.cc",0x49b,"child_offset");" (call_expression "do_gold_unreachable("../../gold/dwarf_reader.cc",0x49b,"child_offset")" identifier (argument_list "("../../gold/dwarf_reader.cc",0x49b,"child_offset")" ( (string_literal ""../../gold/dwarf_reader.cc"" " string_content ") , number_literal , (string_literal ""child_offset"" " string_content ") ))) ;) })) (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) (if_statement "if (((this->abbrev_code_->field_0x4 & 1) != 0) && (lVar1 = this->child_offset_, lVar1 == 0)) {\n    oVar2 = skip_attributes(this);\n    this->child_offset_ = oVar2;\n    return oVar2;\n  }" if (parenthesized_expression "(((this->abbrev_code_->field_0x4 & 1) != 0) && (lVar1 = this->child_offset_, lVar1 == 0))" ( (binary_expression "((this->abbrev_code_->field_0x4 & 1) != 0) && (lVar1 = this->child_offset_, lVar1 == 0)" (parenthesized_expression "((this->abbrev_code_->field_0x4 & 1) != 0)" ( (binary_expression "(this->abbrev_code_->field_0x4 & 1) != 0" (parenthesized_expression "(this->abbrev_code_->field_0x4 & 1)" ( (binary_expression "this->abbrev_code_->field_0x4 & 1" (field_expression "this->abbrev_code_->field_0x4" (field_expression "this->abbrev_code_" identifier -> field_identifier) -> field_identifier) & number_literal) )) != number_literal) )) && (parenthesized_expression "(lVar1 = this->child_offset_, lVar1 == 0)" ( (comma_expression "lVar1 = this->child_offset_, lVar1 == 0" (assignment_expression "lVar1 = this->child_offset_" identifier = (field_expression "this->child_offset_" identifier -> field_identifier)) , (binary_expression "lVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    oVar2 = skip_attributes(this);\n    this->child_offset_ = oVar2;\n    return oVar2;\n  }" { (expression_statement "oVar2 = skip_attributes(this);" (assignment_expression "oVar2 = skip_attributes(this)" identifier = (call_expression "skip_attributes(this)" identifier (argument_list "(this)" ( identifier )))) ;) (expression_statement "this->child_offset_ = oVar2;" (assignment_expression "this->child_offset_ = oVar2" (field_expression "this->child_offset_" identifier -> field_identifier) = identifier) ;) (return_statement "return oVar2;" return identifier ;) })) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit "long FUN_0016bb40(long param_1)\n\n{\n  long lVar1;\n  \n  if (*(long *)(param_1 + 0x30) == 0) {\n                    \n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }\n  lVar1 = 0;\n  if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }\n  return lVar1;\n}\n\n" (function_definition "long FUN_0016bb40(long param_1)\n\n{\n  long lVar1;\n  \n  if (*(long *)(param_1 + 0x30) == 0) {\n                    \n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }\n  lVar1 = 0;\n  if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0016bb40(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  if (*(long *)(param_1 + 0x30) == 0) {\n                    \n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }\n  lVar1 = 0;\n  if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (*(long *)(param_1 + 0x30) == 0) {\n                    \n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x30) == 0)" ( (binary_expression "*(long *)(param_1 + 0x30) == 0" (pointer_expression "*(long *)(param_1 + 0x30)" * (cast_expression "(long *)(param_1 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }" { (expression_statement "FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");" (call_expression "FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset")" identifier (argument_list "("../../gold/dwarf_reader.cc",0x49b,"child_offset")" ( (string_literal ""../../gold/dwarf_reader.cc"" " string_content ") , number_literal , (string_literal ""child_offset"" " string_content ") ))) ;) })) (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) (if_statement "if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }" if (parenthesized_expression "(((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0))" ( (binary_expression "((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)" (parenthesized_expression "((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0)" ( (binary_expression "(*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0" (parenthesized_expression "(*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1)" ( (binary_expression "*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1" (pointer_expression "*(byte *)(*(long *)(param_1 + 0x30) + 4)" * (cast_expression "(byte *)(*(long *)(param_1 + 0x30) + 4)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x30) + 4)" ( (binary_expression "*(long *)(param_1 + 0x30) + 4" (pointer_expression "*(long *)(param_1 + 0x30)" * (cast_expression "(long *)(param_1 + 0x30)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)" ( (comma_expression "lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0" (assignment_expression "lVar1 = *(long *)(param_1 + 0x20)" identifier = (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) , (binary_expression "lVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }" { (expression_statement "lVar1 = FUN_0016b720();" (assignment_expression "lVar1 = FUN_0016b720()" identifier = (call_expression "FUN_0016b720()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(long *)(param_1 + 0x20) = lVar1;" (assignment_expression "*(long *)(param_1 + 0x20) = lVar1" (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return lVar1;" return identifier ;) })) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (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) )))) & LIT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "long FUN_0016bb40(long param_1)\n\n{\n  long lVar1;\n  \n  if (*(long *)(param_1 + 0x30) == 0) {\n                    \n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }\n  lVar1 = 0;\n  if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }\n  return lVar1;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_0016bb40(long param_1)" (identifier "FUN_0016bb40") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  if (*(long *)(param_1 + 0x30) == 0) {\n                    \n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }\n  lVar1 = 0;\n  if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }\n  return lVar1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (if_statement "if (*(long *)(param_1 + 0x30) == 0) {\n                    \n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x30) == 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x30) == 0" (pointer_expression "*(long *)(param_1 + 0x30)" (* "*") (cast_expression "(long *)(param_1 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");\n  }" ({ "{") (expression_statement "FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");" (call_expression "FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset")" (identifier "FUN_0017c650") (argument_list "("../../gold/dwarf_reader.cc",0x49b,"child_offset")" (( "(") (string_literal ""../../gold/dwarf_reader.cc"" (" """) (string_content "../../gold/dwarf_reader.cc") (" """)) (, ",") (number_literal "0x49b") (, ",") (string_literal ""child_offset"" (" """) (string_content "child_offset") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" (identifier "lVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }" (if "if") (parenthesized_expression "(((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0))" (( "(") (binary_expression "((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&\n     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)" (parenthesized_expression "((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0" (parenthesized_expression "(*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1)" (( "(") (binary_expression "*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1" (pointer_expression "*(byte *)(*(long *)(param_1 + 0x30) + 4)" (* "*") (cast_expression "(byte *)(*(long *)(param_1 + 0x30) + 4)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x30) + 4)" (( "(") (binary_expression "*(long *)(param_1 + 0x30) + 4" (pointer_expression "*(long *)(param_1 + 0x30)" (* "*") (cast_expression "(long *)(param_1 + 0x30)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)" (( "(") (comma_expression "lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0" (assignment_expression "lVar1 = *(long *)(param_1 + 0x20)" (identifier "lVar1") (= "=") (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (, ",") (binary_expression "lVar1 == 0" (identifier "lVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    lVar1 = FUN_0016b720();\n    *(long *)(param_1 + 0x20) = lVar1;\n    return lVar1;\n  }" ({ "{") (expression_statement "lVar1 = FUN_0016b720();" (assignment_expression "lVar1 = FUN_0016b720()" (identifier "lVar1") (= "=") (call_expression "FUN_0016b720()" (identifier "FUN_0016b720") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(long *)(param_1 + 0x20) = lVar1;" (assignment_expression "*(long *)(param_1 + 0x20) = lVar1" (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "lVar1")) (; ";")) (return_statement "return lVar1;" (return "return") (identifier "lVar1") (; ";")) (} "}"))) (return_statement "return lVar1;" (return "return") (identifier "lVar1") (; ";")) (} "}")))

/* DWARF original prototype: off_t child_offset(Dwarf_die * this) */

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

{
  long var_2;
  type_1 oVar2;
  
  if (this->abbrev_code_ == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/dwarf_reader.cc",0x49b,"child_offset");
  }
  var_2 = 0;
  if (((this->abbrev_code_->field_0x4 & 1) != 0) && (var_2 = this->child_offset_, var_2 == 0)) {
    oVar2 = var_3(this);
    this->child_offset_ = oVar2;
    return oVar2;
  }
  return var_2;
}


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

long MASKED(long param_1)

{
  long lVar1;
  
  if (*(long *)(param_1 + 0x30) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0017c650("../../gold/dwarf_reader.cc",0x49b,"child_offset");
  }
  lVar1 = 0;
  if (((*(byte *)(*(long *)(param_1 + 0x30) + 4) & 1) != 0) &&
     (lVar1 = *(long *)(param_1 + 0x20), lVar1 == 0)) {
    lVar1 = FUN_0016b720();
    *(long *)(param_1 + 0x20) = lVar1;
    return lVar1;
  }
  return lVar1;
}

