
/* 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 (pAVar1->val).stringval;
    }
    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;
}



int FUN_000583f0(undefined4 *param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = FUN_00058390(param_1,param_2);
  if (iVar1 != 0) {
    if (*(int *)(iVar1 + 4) == 8) {
      return *(int *)(iVar1 + 8);
    }
    if (*(int *)(iVar1 + 4) == 0xe) {
      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),
                           *(undefined4 *)(iVar1 + 0x10));
      return iVar1;
    }
    iVar1 = 0;
  }
  return iVar1;
}


PUSH EBX
SUB ESP,0x10
MOV EBX,dword ptr [ESP + 0x18]
PUSH dword ptr [ESP + 0x1c]
PUSH EBX
CALL 0x00058390
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00058418
MOV EDX,dword ptr [EAX + 0x4]
CMP EDX,0x8
JZ 0x00058440
CMP EDX,0xe
JZ 0x00058420
XOR EAX,EAX
ADD ESP,0x8
POP EBX
RET
PUSH dword ptr [EAX + 0x10]
PUSH dword ptr [EAX + 0xc]
PUSH dword ptr [EAX + 0x8]
PUSH dword ptr [EBX]
CALL 0x00056b90
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
MOV EAX,dword ptr [EAX + 0x8]
ADD ESP,0x8
POP EBX
RET
(translation_unit "int FUN_000583f0(undefined4 *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00058390(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_000583f0(undefined4 *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00058390(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_000583f0(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00058390(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00058390(param_1,param_2);" (assignment_expression "iVar1 = FUN_00058390(param_1,param_2)" identifier = (call_expression "FUN_00058390(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }" { (if_statement "if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 4) == 8)" ( (binary_expression "*(int *)(iVar1 + 4) == 8" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      return *(int *)(iVar1 + 8);\n    }" { (return_statement "return *(int *)(iVar1 + 8);" return (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ;) })) (if_statement "if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 4) == 0xe)" ( (binary_expression "*(int *)(iVar1 + 4) == 0xe" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }" { (expression_statement "iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));" (assignment_expression "iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10))" identifier = (call_expression "FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10))" identifier (argument_list "(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10))" ( (pointer_expression "*param_1" * identifier) , (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) (return_statement "return iVar1;" 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 (pAVar1->val).stringval;\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 (pAVar1->val).stringval;\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 (pAVar1->val).stringval;\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 (pAVar1->val).stringval;\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 (pAVar1->val).stringval;\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 (pAVar1->val).stringval;\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 (pAVar1->val).stringval;\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 (pAVar1->val).stringval;\n    }" { (return_statement "return (pAVar1->val).stringval;" return (field_expression "(pAVar1->val).stringval" (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 "int FUN_000583f0(undefined4 *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00058390(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_000583f0(undefined4 *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00058390(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_000583f0(undefined4 *param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00058390(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00058390(param_1,param_2);" (assignment_expression "iVar1 = FUN_00058390(param_1,param_2)" identifier = (call_expression "FUN_00058390(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }" { (if_statement "if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 4) == 8)" ( (binary_expression "*(int *)(iVar1 + 4) == 8" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      return *(int *)(iVar1 + 8);\n    }" { (return_statement "return *(int *)(iVar1 + 8);" return (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ;) })) (if_statement "if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 4) == 0xe)" ( (binary_expression "*(int *)(iVar1 + 4) == 0xe" (pointer_expression "*(int *)(iVar1 + 4)" * (cast_expression "(int *)(iVar1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }" { (expression_statement "iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));" (assignment_expression "iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10))" identifier = (call_expression "FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10))" identifier (argument_list "(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10))" ( (pointer_expression "*param_1" * identifier) , (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (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 TYPE (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) )))) , (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 "int FUN_000583f0(undefined4 *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00058390(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_000583f0(undefined4 *param_1,undefined4 param_2)" (identifier "FUN_000583f0") (parameter_list "(undefined4 *param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00058390(param_1,param_2);\n  if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00058390(param_1,param_2);" (assignment_expression "iVar1 = FUN_00058390(param_1,param_2)" (identifier "iVar1") (= "=") (call_expression "FUN_00058390(param_1,param_2)" (identifier "FUN_00058390") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }\n    if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }\n    iVar1 = 0;\n  }" ({ "{") (if_statement "if (*(int *)(iVar1 + 4) == 8) {\n      return *(int *)(iVar1 + 8);\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 4) == 8)" (( "(") (binary_expression "*(int *)(iVar1 + 4) == 8" (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "8")) () ")")) (compound_statement "{\n      return *(int *)(iVar1 + 8);\n    }" ({ "{") (return_statement "return *(int *)(iVar1 + 8);" (return "return") (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar1 + 4) == 0xe) {\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 4) == 0xe)" (( "(") (binary_expression "*(int *)(iVar1 + 4) == 0xe" (pointer_expression "*(int *)(iVar1 + 4)" (* "*") (cast_expression "(int *)(iVar1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0xe")) () ")")) (compound_statement "{\n      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));\n      return iVar1;\n    }" ({ "{") (expression_statement "iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10));" (assignment_expression "iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10))" (identifier "iVar1") (= "=") (call_expression "FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10))" (identifier "FUN_00056b90") (argument_list "(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),\n                           *(undefined4 *)(iVar1 + 0x10))" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

/* 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 (var_2->val).stringval;
    }
    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: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (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: (primitive_type) 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))))) (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)))))

int MASKED(undefined4 *param_1,undefined4 param_2)

{
  int iVar1;
  
  iVar1 = FUN_00058390(param_1,param_2);
  if (iVar1 != 0) {
    if (*(int *)(iVar1 + 4) == 8) {
      return *(int *)(iVar1 + 8);
    }
    if (*(int *)(iVar1 + 4) == 0xe) {
      iVar1 = FUN_00056b90(*param_1,*(undefined4 *)(iVar1 + 8),*(undefined4 *)(iVar1 + 0xc),
                           *(undefined4 *)(iVar1 + 0x10));
      return iVar1;
    }
    iVar1 = 0;
  }
  return iVar1;
}

