
/* DWARF original prototype: char * string_attribute(Dwarf_die * this, uint attr) */

char * __thiscall gold::Dwarf_die::string_attribute(Dwarf_die *this,uint attr)

{
  Attribute_value *pAVar1;
  char *pcVar2;
  
  pAVar1 = attribute(this,attr);
  if (pAVar1 != (Attribute_value *)0x0) {
    if (pAVar1->form == 8) {
      return (char *)(pAVar1->val).intval;
    }
    if (pAVar1->form == 0xe) {
      pcVar2 = Dwarf_info_reader::get_string(this->dwinfo_,(pAVar1->val).refval,(pAVar1->aux).shndx)
      ;
      return pcVar2;
    }
    pAVar1 = (Attribute_value *)0x0;
  }
  return (char *)pAVar1;
}



long FUN_00161640(undefined8 *param_1)

{
  long lVar1;
  
  lVar1 = FUN_001615d0();
  if (lVar1 != 0) {
    if (*(int *)(lVar1 + 4) == 8) {
      return *(long *)(lVar1 + 8);
    }
    if (*(int *)(lVar1 + 4) == 0xe) {
      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));
      return lVar1;
    }
    lVar1 = 0;
  }
  return lVar1;
}


PUSH RBX
MOV RBX,RDI
CALL 0x001615d0
TEST RAX,RAX
JZ 0x0016165d
MOV EDX,dword ptr [RAX + 0x4]
CMP EDX,0x8
JZ 0x00161670
CMP EDX,0xe
JZ 0x00161660
XOR EAX,EAX
POP RBX
RET
MOV RDI,qword ptr [RBX]
MOV EDX,dword ptr [RAX + 0x10]
MOV RSI,qword ptr [RAX + 0x8]
POP RBX
JMP 0x0015ffa0
MOV RAX,qword ptr [RAX + 0x8]
POP RBX
RET
(translation_unit "long FUN_00161640(undefined8 *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001615d0();\n  if (lVar1 != 0) {\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }\n  return lVar1;\n}\n\n" (function_definition "long FUN_00161640(undefined8 *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001615d0();\n  if (lVar1 != 0) {\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00161640(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_001615d0();\n  if (lVar1 != 0) {\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_001615d0();" (assignment_expression "lVar1 = FUN_001615d0()" identifier = (call_expression "FUN_001615d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (lVar1 != 0) {\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }" { (if_statement "if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }" if (parenthesized_expression "(*(int *)(lVar1 + 4) == 8)" ( (binary_expression "*(int *)(lVar1 + 4) == 8" (pointer_expression "*(int *)(lVar1 + 4)" * (cast_expression "(int *)(lVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 4)" ( (binary_expression "lVar1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      return *(long *)(lVar1 + 8);\n    }" { (return_statement "return *(long *)(lVar1 + 8);" return (pointer_expression "*(long *)(lVar1 + 8)" * (cast_expression "(long *)(lVar1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) ;) })) (if_statement "if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }" if (parenthesized_expression "(*(int *)(lVar1 + 4) == 0xe)" ( (binary_expression "*(int *)(lVar1 + 4) == 0xe" (pointer_expression "*(int *)(lVar1 + 4)" * (cast_expression "(int *)(lVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 4)" ( (binary_expression "lVar1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }" { (expression_statement "lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));" (assignment_expression "lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10))" identifier = (call_expression "FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10))" identifier (argument_list "(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10))" ( (pointer_expression "*param_1" * identifier) , (pointer_expression "*(undefined8 *)(lVar1 + 8)" * (cast_expression "(undefined8 *)(lVar1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(lVar1 + 0x10)" * (cast_expression "(undefined4 *)(lVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) )))) ;) (return_statement "return lVar1;" return identifier ;) })) (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) })) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit "/* DWARF original prototype: char * string_attribute(Dwarf_die * this, uint attr) */\n\nchar * __thiscall gold::Dwarf_die::string_attribute(Dwarf_die *this,uint attr)\n\n{\n  Attribute_value *pAVar1;\n  char *pcVar2;\n  \n  pAVar1 = attribute(this,attr);\n  if (pAVar1 != (Attribute_value *)0x0) {\n    if (pAVar1->form == 8) {\n      return (char *)(pAVar1->val).intval;\n    }\n    if (pAVar1->form == 0xe) {\n      pcVar2 = Dwarf_info_reader::get_string(this->dwinfo_,(pAVar1->val).refval,(pAVar1->aux).shndx)\n      ;\n      return pcVar2;\n    }\n    pAVar1 = (Attribute_value *)0x0;\n  }\n  return (char *)pAVar1;\n}\n\n" comment (declaration "char * __thiscall" primitive_type (pointer_declarator "* __thiscall" * identifier) ;) (labeled_statement "gold::Dwarf_die::string_attribute(Dwarf_die *this,uint attr)\n\n{\n  Attribute_value *pAVar1;\n  char *pcVar2;\n  \n  pAVar1 = attribute(this,attr);\n  if (pAVar1 != (Attribute_value *)0x0) {\n    if (pAVar1->form == 8) {\n      return (char *)(pAVar1->val).intval;\n    }\n    if (pAVar1->form == 0xe) {\n      pcVar2 = Dwarf_info_reader::get_string(this->dwinfo_,(pAVar1->val).refval,(pAVar1->aux).shndx)\n      ;\n      return pcVar2;\n    }\n    pAVar1 = (Attribute_value *)0x0;\n  }\n  return (char *)pAVar1;\n}" statement_identifier : (ERROR ":" :) (labeled_statement "Dwarf_die::string_attribute(Dwarf_die *this,uint attr)\n\n{\n  Attribute_value *pAVar1;\n  char *pcVar2;\n  \n  pAVar1 = attribute(this,attr);\n  if (pAVar1 != (Attribute_value *)0x0) {\n    if (pAVar1->form == 8) {\n      return (char *)(pAVar1->val).intval;\n    }\n    if (pAVar1->form == 0xe) {\n      pcVar2 = Dwarf_info_reader::get_string(this->dwinfo_,(pAVar1->val).refval,(pAVar1->aux).shndx)\n      ;\n      return pcVar2;\n    }\n    pAVar1 = (Attribute_value *)0x0;\n  }\n  return (char *)pAVar1;\n}" statement_identifier : (ERROR ":string_attribute(Dwarf_die *this,uint attr)" : (call_expression "string_attribute(Dwarf_die *this,uint attr)" identifier (argument_list "(Dwarf_die *this,uint attr)" ( (binary_expression "Dwarf_die *this" identifier * identifier) , identifier (ERROR "attr" identifier) )))) (compound_statement "{\n  Attribute_value *pAVar1;\n  char *pcVar2;\n  \n  pAVar1 = attribute(this,attr);\n  if (pAVar1 != (Attribute_value *)0x0) {\n    if (pAVar1->form == 8) {\n      return (char *)(pAVar1->val).intval;\n    }\n    if (pAVar1->form == 0xe) {\n      pcVar2 = Dwarf_info_reader::get_string(this->dwinfo_,(pAVar1->val).refval,(pAVar1->aux).shndx)\n      ;\n      return pcVar2;\n    }\n    pAVar1 = (Attribute_value *)0x0;\n  }\n  return (char *)pAVar1;\n}" { (declaration "Attribute_value *pAVar1;" type_identifier (pointer_declarator "*pAVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pAVar1 = attribute(this,attr);" (assignment_expression "pAVar1 = attribute(this,attr)" identifier = (call_expression "attribute(this,attr)" identifier (argument_list "(this,attr)" ( identifier , identifier )))) ;) (if_statement "if (pAVar1 != (Attribute_value *)0x0) {\n    if (pAVar1->form == 8) {\n      return (char *)(pAVar1->val).intval;\n    }\n    if (pAVar1->form == 0xe) {\n      pcVar2 = Dwarf_info_reader::get_string(this->dwinfo_,(pAVar1->val).refval,(pAVar1->aux).shndx)\n      ;\n      return pcVar2;\n    }\n    pAVar1 = (Attribute_value *)0x0;\n  }" if (parenthesized_expression "(pAVar1 != (Attribute_value *)0x0)" ( (binary_expression "pAVar1 != (Attribute_value *)0x0" identifier != (cast_expression "(Attribute_value *)0x0" ( (type_descriptor "Attribute_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (pAVar1->form == 8) {\n      return (char *)(pAVar1->val).intval;\n    }\n    if (pAVar1->form == 0xe) {\n      pcVar2 = Dwarf_info_reader::get_string(this->dwinfo_,(pAVar1->val).refval,(pAVar1->aux).shndx)\n      ;\n      return pcVar2;\n    }\n    pAVar1 = (Attribute_value *)0x0;\n  }" { (if_statement "if (pAVar1->form == 8) {\n      return (char *)(pAVar1->val).intval;\n    }" if (parenthesized_expression "(pAVar1->form == 8)" ( (binary_expression "pAVar1->form == 8" (field_expression "pAVar1->form" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      return (char *)(pAVar1->val).intval;\n    }" { (return_statement "return (char *)(pAVar1->val).intval;" return (cast_expression "(char *)(pAVar1->val).intval" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "(pAVar1->val).intval" (parenthesized_expression "(pAVar1->val)" ( (field_expression "pAVar1->val" identifier -> field_identifier) )) . field_identifier)) ;) })) (if_statement "if (pAVar1->form == 0xe) {\n      pcVar2 = Dwarf_info_reader::get_string(this->dwinfo_,(pAVar1->val).refval,(pAVar1->aux).shndx)\n      ;\n      return pcVar2;\n    }" if (parenthesized_expression "(pAVar1->form == 0xe)" ( (binary_expression "pAVar1->form == 0xe" (field_expression "pAVar1->form" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n      pcVar2 = Dwarf_info_reader::get_string(this->dwinfo_,(pAVar1->val).refval,(pAVar1->aux).shndx)\n      ;\n      return pcVar2;\n    }" { (ERROR "pcVar2 = Dwarf_info_reader::" (assignment_expression "pcVar2 = Dwarf_info_reader" identifier = identifier) : :) (expression_statement "get_string(this->dwinfo_,(pAVar1->val).refval,(pAVar1->aux).shndx)\n      ;" (call_expression "get_string(this->dwinfo_,(pAVar1->val).refval,(pAVar1->aux).shndx)" identifier (argument_list "(this->dwinfo_,(pAVar1->val).refval,(pAVar1->aux).shndx)" ( (field_expression "this->dwinfo_" identifier -> field_identifier) , (field_expression "(pAVar1->val).refval" (parenthesized_expression "(pAVar1->val)" ( (field_expression "pAVar1->val" identifier -> field_identifier) )) . field_identifier) , (field_expression "(pAVar1->aux).shndx" (parenthesized_expression "(pAVar1->aux)" ( (field_expression "pAVar1->aux" identifier -> field_identifier) )) . field_identifier) ))) ;) (return_statement "return pcVar2;" return identifier ;) })) (expression_statement "pAVar1 = (Attribute_value *)0x0;" (assignment_expression "pAVar1 = (Attribute_value *)0x0" identifier = (cast_expression "(Attribute_value *)0x0" ( (type_descriptor "Attribute_value *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return (char *)pAVar1;" return (cast_expression "(char *)pAVar1" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) ;) }))))
(translation_unit "long FUN_00161640(undefined8 *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001615d0();\n  if (lVar1 != 0) {\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }\n  return lVar1;\n}\n\n" (function_definition "long FUN_00161640(undefined8 *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001615d0();\n  if (lVar1 != 0) {\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_00161640(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_001615d0();\n  if (lVar1 != 0) {\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = FUN_001615d0();" (assignment_expression "lVar1 = FUN_001615d0()" identifier = (call_expression "FUN_001615d0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (lVar1 != 0) {\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }" { (if_statement "if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }" if (parenthesized_expression "(*(int *)(lVar1 + 4) == 8)" ( (binary_expression "*(int *)(lVar1 + 4) == 8" (pointer_expression "*(int *)(lVar1 + 4)" * (cast_expression "(int *)(lVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 4)" ( (binary_expression "lVar1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      return *(long *)(lVar1 + 8);\n    }" { (return_statement "return *(long *)(lVar1 + 8);" return (pointer_expression "*(long *)(lVar1 + 8)" * (cast_expression "(long *)(lVar1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) ;) })) (if_statement "if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }" if (parenthesized_expression "(*(int *)(lVar1 + 4) == 0xe)" ( (binary_expression "*(int *)(lVar1 + 4) == 0xe" (pointer_expression "*(int *)(lVar1 + 4)" * (cast_expression "(int *)(lVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 4)" ( (binary_expression "lVar1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }" { (expression_statement "lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));" (assignment_expression "lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10))" identifier = (call_expression "FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10))" identifier (argument_list "(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10))" ( (pointer_expression "*param_1" * identifier) , (pointer_expression "*(undefined8 *)(lVar1 + 8)" * (cast_expression "(undefined8 *)(lVar1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 8)" ( (binary_expression "lVar1 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(lVar1 + 0x10)" * (cast_expression "(undefined4 *)(lVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) )))) ;) (return_statement "return lVar1;" return identifier ;) })) (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" identifier = number_literal) ;) })) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "long FUN_00161640(undefined8 *param_1)\n\n{\n  long lVar1;\n  \n  lVar1 = FUN_001615d0();\n  if (lVar1 != 0) {\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }\n  return lVar1;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_00161640(undefined8 *param_1)" (identifier "FUN_00161640") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  lVar1 = FUN_001615d0();\n  if (lVar1 != 0) {\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }\n  return lVar1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (expression_statement "lVar1 = FUN_001615d0();" (assignment_expression "lVar1 = FUN_001615d0()" (identifier "lVar1") (= "=") (call_expression "FUN_001615d0()" (identifier "FUN_001615d0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }\n    if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }\n    lVar1 = 0;\n  }" ({ "{") (if_statement "if (*(int *)(lVar1 + 4) == 8) {\n      return *(long *)(lVar1 + 8);\n    }" (if "if") (parenthesized_expression "(*(int *)(lVar1 + 4) == 8)" (( "(") (binary_expression "*(int *)(lVar1 + 4) == 8" (pointer_expression "*(int *)(lVar1 + 4)" (* "*") (cast_expression "(int *)(lVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 4)" (( "(") (binary_expression "lVar1 + 4" (identifier "lVar1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "8")) () ")")) (compound_statement "{\n      return *(long *)(lVar1 + 8);\n    }" ({ "{") (return_statement "return *(long *)(lVar1 + 8);" (return "return") (pointer_expression "*(long *)(lVar1 + 8)" (* "*") (cast_expression "(long *)(lVar1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 8)" (( "(") (binary_expression "lVar1 + 8" (identifier "lVar1") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}"))) (if_statement "if (*(int *)(lVar1 + 4) == 0xe) {\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }" (if "if") (parenthesized_expression "(*(int *)(lVar1 + 4) == 0xe)" (( "(") (binary_expression "*(int *)(lVar1 + 4) == 0xe" (pointer_expression "*(int *)(lVar1 + 4)" (* "*") (cast_expression "(int *)(lVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 4)" (( "(") (binary_expression "lVar1 + 4" (identifier "lVar1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0xe")) () ")")) (compound_statement "{\n      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));\n      return lVar1;\n    }" ({ "{") (expression_statement "lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));" (assignment_expression "lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10))" (identifier "lVar1") (= "=") (call_expression "FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10))" (identifier "FUN_0015ffa0") (argument_list "(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10))" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (pointer_expression "*(undefined8 *)(lVar1 + 8)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 8)" (( "(") (binary_expression "lVar1 + 8" (identifier "lVar1") (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(lVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(lVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (; ";")) (return_statement "return lVar1;" (return "return") (identifier "lVar1") (; ";")) (} "}"))) (expression_statement "lVar1 = 0;" (assignment_expression "lVar1 = 0" (identifier "lVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return lVar1;" (return "return") (identifier "lVar1") (; ";")) (} "}")))

/* DWARF original prototype: char * string_attribute(Dwarf_die * this, uint attr) */

char * __thiscall gold::Dwarf_die::string_attribute(Dwarf_die *this,uint attr)

{
  type_1 *var_2;
  char *pcVar2;
  
  var_2 = var_1(this,attr);
  if (var_2 != (type_1 *)0x0) {
    if (var_2->form == 8) {
      return (char *)(var_2->val).intval;
    }
    if (var_2->form == 0xe) {
      pcVar2 = Dwarf_info_reader::var_3(this->dwinfo_,(var_2->val).refval,(var_2->aux).shndx)
      ;
      return pcVar2;
    }
    var_2 = (type_1 *)0x0;
  }
  return (char *)var_2;
}


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

long MASKED(undefined8 *param_1)

{
  long lVar1;
  
  lVar1 = FUN_001615d0();
  if (lVar1 != 0) {
    if (*(int *)(lVar1 + 4) == 8) {
      return *(long *)(lVar1 + 8);
    }
    if (*(int *)(lVar1 + 4) == 0xe) {
      lVar1 = FUN_0015ffa0(*param_1,*(undefined8 *)(lVar1 + 8),*(undefined4 *)(lVar1 + 0x10));
      return lVar1;
    }
    lVar1 = 0;
  }
  return lVar1;
}

