
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: bool keep_input_section(Layout * this, Relobj * relobj, char * name) */

bool __thiscall gold::Layout::keep_input_section(Layout *this,Relobj *relobj,char *name)

{
  char *pcVar1;
  bool keep;
  Output_section **output_section_slot;
  Section_type script_section_type;
  undefined4 uStack_8;
  
  uStack_8 = 0x96fc6;
  if ((this->script_options_->script_sections_).saw_sections_clause_ != false) {
    if (relobj != (Relobj *)0x0) {
      relobj = (Relobj *)(relobj->super_Object).name_._M_dataplus._M_p;
    }
    pcVar1 = Script_sections::output_section_name
                       (&this->script_options_->script_sections_,(char *)relobj,name,
                        &output_section_slot,&script_section_type,&keep,true);
    if ((pcVar1 != (char *)0x0) && (keep != false)) {
      return keep;
    }
  }
  return false;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char FUN_00096fc0(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  char local_15;
  undefined1 local_14 [4];
  undefined1 local_10 [8];
  undefined4 uStack_8;
  
  uStack_8 = 0x96fc6;
  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {
    if (param_2 != 0) {
      param_2 = *(int *)(param_2 + 4);
    }
    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)
    ;
    if ((iVar1 != 0) && (local_15 != '\0')) {
      return local_15;
    }
  }
  return '\0';
}


PUSH EBX
CALL 0x00035840
ADD EBX,0x2f803a
SUB ESP,0x18
MOV EAX,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [EAX + 0x4]
CMP byte ptr [EAX + 0xac],0x0
JZ 0x0009701e
ADD EAX,0xac
TEST EDX,EDX
JZ 0x00096fef
MOV EDX,dword ptr [EDX + 0x4]
SUB ESP,0x4
PUSH 0x1
LEA ECX,[ESP + 0xf]
PUSH ECX
LEA ECX,[ESP + 0x18]
PUSH ECX
LEA ECX,[ESP + 0x18]
PUSH ECX
PUSH dword ptr [ESP + 0x3c]
PUSH EDX
PUSH EAX
CALL 0x0015c650
ADD ESP,0x20
TEST EAX,EAX
JZ 0x0009701e
MOVZX EAX,byte ptr [ESP + 0x7]
TEST AL,AL
JNZ 0x00097020
XOR EAX,EAX
ADD ESP,0x18
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar FUN_00096fc0(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char local_15;\n  undefined1 local_14 [4];\n  undefined1 local_10 [8];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x96fc6;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }\n  return '\0';\n}\n\n" comment (function_definition "char FUN_00096fc0(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char local_15;\n  undefined1 local_14 [4];\n  undefined1 local_10 [8];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x96fc6;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }\n  return '\0';\n}" primitive_type (function_declarator "FUN_00096fc0(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char local_15;\n  undefined1 local_14 [4];\n  undefined1 local_10 [8];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x96fc6;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }\n  return '\0';\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char local_15;" primitive_type identifier ;) (declaration "undefined1 local_14 [4];" type_identifier (array_declarator "local_14 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_10 [8];" type_identifier (array_declarator "local_10 [8]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x96fc6;" (assignment_expression "uStack_8 = 0x96fc6" identifier = number_literal) ;) (if_statement "if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }" if (parenthesized_expression "(*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0')" ( (binary_expression "*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 4) + 0xac)" * (cast_expression "(char *)(*(int *)(param_1 + 4) + 0xac)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0xac)" ( (binary_expression "*(int *)(param_1 + 4) + 0xac" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }" { (if_statement "if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      param_2 = *(int *)(param_2 + 4);\n    }" { (expression_statement "param_2 = *(int *)(param_2 + 4);" (assignment_expression "param_2 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) })) (expression_statement "iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;" (assignment_expression "iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)" identifier = (call_expression "FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)" identifier (argument_list "(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)" ( (binary_expression "*(int *)(param_1 + 4) + 0xac" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) , identifier , identifier , identifier , identifier , (pointer_expression "&local_15" & identifier) , number_literal )))) ;) (if_statement "if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }" if (parenthesized_expression "((iVar1 != 0) && (local_15 != '\0'))" ( (binary_expression "(iVar1 != 0) && (local_15 != '\0')" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(local_15 != '\0')" ( (binary_expression "local_15 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      return local_15;\n    }" { (return_statement "return local_15;" return identifier ;) })) })) (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: bool keep_input_section(Layout * this, Relobj * relobj, char * name) */\n\nbool __thiscall gold::Layout::keep_input_section(Layout *this,Relobj *relobj,char *name)\n\n{\n  char *pcVar1;\n  bool keep;\n  Output_section **output_section_slot;\n  Section_type script_section_type;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x96fc6;\n  if ((this->script_options_->script_sections_).saw_sections_clause_ != false) {\n    if (relobj != (Relobj *)0x0) {\n      relobj = (Relobj *)(relobj->super_Object).name_._M_dataplus._M_p;\n    }\n    pcVar1 = Script_sections::output_section_name\n                       (&this->script_options_->script_sections_,(char *)relobj,name,\n                        &output_section_slot,&script_section_type,&keep,true);\n    if ((pcVar1 != (char *)0x0) && (keep != false)) {\n      return keep;\n    }\n  }\n  return false;\n}\n\n" comment comment comment (function_definition "bool __thiscall gold::Layout::keep_input_section(Layout *this,Relobj *relobj,char *name)\n\n{\n  char *pcVar1;\n  bool keep;\n  Output_section **output_section_slot;\n  Section_type script_section_type;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x96fc6;\n  if ((this->script_options_->script_sections_).saw_sections_clause_ != false) {\n    if (relobj != (Relobj *)0x0) {\n      relobj = (Relobj *)(relobj->super_Object).name_._M_dataplus._M_p;\n    }\n    pcVar1 = Script_sections::output_section_name\n                       (&this->script_options_->script_sections_,(char *)relobj,name,\n                        &output_section_slot,&script_section_type,&keep,true);\n    if ((pcVar1 != (char *)0x0) && (keep != false)) {\n      return keep;\n    }\n  }\n  return false;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Layout::" identifier : : identifier : :) (function_declarator "keep_input_section(Layout *this,Relobj *relobj,char *name)" identifier (parameter_list "(Layout *this,Relobj *relobj,char *name)" ( (parameter_declaration "Layout *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Relobj *relobj" type_identifier (pointer_declarator "*relobj" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) ))) (compound_statement "{\n  char *pcVar1;\n  bool keep;\n  Output_section **output_section_slot;\n  Section_type script_section_type;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x96fc6;\n  if ((this->script_options_->script_sections_).saw_sections_clause_ != false) {\n    if (relobj != (Relobj *)0x0) {\n      relobj = (Relobj *)(relobj->super_Object).name_._M_dataplus._M_p;\n    }\n    pcVar1 = Script_sections::output_section_name\n                       (&this->script_options_->script_sections_,(char *)relobj,name,\n                        &output_section_slot,&script_section_type,&keep,true);\n    if ((pcVar1 != (char *)0x0) && (keep != false)) {\n      return keep;\n    }\n  }\n  return false;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "bool keep;" primitive_type identifier ;) (declaration "Output_section **output_section_slot;" type_identifier (pointer_declarator "**output_section_slot" * (pointer_declarator "*output_section_slot" * identifier)) ;) (declaration "Section_type script_section_type;" type_identifier identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x96fc6;" (assignment_expression "uStack_8 = 0x96fc6" identifier = number_literal) ;) (if_statement "if ((this->script_options_->script_sections_).saw_sections_clause_ != false) {\n    if (relobj != (Relobj *)0x0) {\n      relobj = (Relobj *)(relobj->super_Object).name_._M_dataplus._M_p;\n    }\n    pcVar1 = Script_sections::output_section_name\n                       (&this->script_options_->script_sections_,(char *)relobj,name,\n                        &output_section_slot,&script_section_type,&keep,true);\n    if ((pcVar1 != (char *)0x0) && (keep != false)) {\n      return keep;\n    }\n  }" if (parenthesized_expression "((this->script_options_->script_sections_).saw_sections_clause_ != false)" ( (binary_expression "(this->script_options_->script_sections_).saw_sections_clause_ != false" (field_expression "(this->script_options_->script_sections_).saw_sections_clause_" (parenthesized_expression "(this->script_options_->script_sections_)" ( (field_expression "this->script_options_->script_sections_" (field_expression "this->script_options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) != false) )) (compound_statement "{\n    if (relobj != (Relobj *)0x0) {\n      relobj = (Relobj *)(relobj->super_Object).name_._M_dataplus._M_p;\n    }\n    pcVar1 = Script_sections::output_section_name\n                       (&this->script_options_->script_sections_,(char *)relobj,name,\n                        &output_section_slot,&script_section_type,&keep,true);\n    if ((pcVar1 != (char *)0x0) && (keep != false)) {\n      return keep;\n    }\n  }" { (if_statement "if (relobj != (Relobj *)0x0) {\n      relobj = (Relobj *)(relobj->super_Object).name_._M_dataplus._M_p;\n    }" if (parenthesized_expression "(relobj != (Relobj *)0x0)" ( (binary_expression "relobj != (Relobj *)0x0" identifier != (cast_expression "(Relobj *)0x0" ( (type_descriptor "Relobj *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      relobj = (Relobj *)(relobj->super_Object).name_._M_dataplus._M_p;\n    }" { (expression_statement "relobj = (Relobj *)(relobj->super_Object).name_._M_dataplus._M_p;" (assignment_expression "relobj = (Relobj *)(relobj->super_Object).name_._M_dataplus._M_p" identifier = (cast_expression "(Relobj *)(relobj->super_Object).name_._M_dataplus._M_p" ( (type_descriptor "Relobj *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(relobj->super_Object).name_._M_dataplus._M_p" (field_expression "(relobj->super_Object).name_._M_dataplus" (field_expression "(relobj->super_Object).name_" (parenthesized_expression "(relobj->super_Object)" ( (field_expression "relobj->super_Object" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier))) ;) })) (ERROR "pcVar1 = Script_sections::" (assignment_expression "pcVar1 = Script_sections" identifier = identifier) : :) (expression_statement "output_section_name\n                       (&this->script_options_->script_sections_,(char *)relobj,name,\n                        &output_section_slot,&script_section_type,&keep,true);" (call_expression "output_section_name\n                       (&this->script_options_->script_sections_,(char *)relobj,name,\n                        &output_section_slot,&script_section_type,&keep,true)" identifier (argument_list "(&this->script_options_->script_sections_,(char *)relobj,name,\n                        &output_section_slot,&script_section_type,&keep,true)" ( (pointer_expression "&this->script_options_->script_sections_" & (field_expression "this->script_options_->script_sections_" (field_expression "this->script_options_" identifier -> field_identifier) -> field_identifier)) , (cast_expression "(char *)relobj" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (pointer_expression "&output_section_slot" & identifier) , (pointer_expression "&script_section_type" & identifier) , (pointer_expression "&keep" & identifier) , true ))) ;) (if_statement "if ((pcVar1 != (char *)0x0) && (keep != false)) {\n      return keep;\n    }" if (parenthesized_expression "((pcVar1 != (char *)0x0) && (keep != false))" ( (binary_expression "(pcVar1 != (char *)0x0) && (keep != false)" (parenthesized_expression "(pcVar1 != (char *)0x0)" ( (binary_expression "pcVar1 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(keep != false)" ( (binary_expression "keep != false" identifier != false) ))) )) (compound_statement "{\n      return keep;\n    }" { (return_statement "return keep;" return identifier ;) })) })) (return_statement "return false;" return false ;) })))
(translation_unit "char FUN_00096fc0(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char local_15;\n  undefined1 local_14 [4];\n  undefined1 local_10 [8];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x96fc6;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }\n  return '\0';\n}\n\n" (function_definition "char FUN_00096fc0(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char local_15;\n  undefined1 local_14 [4];\n  undefined1 local_10 [8];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x96fc6;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }\n  return '\0';\n}" primitive_type (function_declarator "FUN_00096fc0(int param_1,int param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  char local_15;\n  undefined1 local_14 [4];\n  undefined1 local_10 [8];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x96fc6;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }\n  return '\0';\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char local_15;" primitive_type identifier ;) (declaration "undefined1 local_14 [4];" type_identifier (array_declarator "local_14 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_10 [8];" type_identifier (array_declarator "local_10 [8]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x96fc6;" (assignment_expression "uStack_8 = 0x96fc6" identifier = number_literal) ;) (if_statement "if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }" if (parenthesized_expression "(*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0')" ( (binary_expression "*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 4) + 0xac)" * (cast_expression "(char *)(*(int *)(param_1 + 4) + 0xac)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 0xac)" ( (binary_expression "*(int *)(param_1 + 4) + 0xac" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }" { (if_statement "if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      param_2 = *(int *)(param_2 + 4);\n    }" { (expression_statement "param_2 = *(int *)(param_2 + 4);" (assignment_expression "param_2 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) })) (expression_statement "iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;" (assignment_expression "iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)" identifier = (call_expression "FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)" identifier (argument_list "(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)" ( (binary_expression "*(int *)(param_1 + 4) + 0xac" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) , identifier , identifier , identifier , identifier , (pointer_expression "&local_15" & identifier) , number_literal )))) ;) (if_statement "if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }" if (parenthesized_expression "((iVar1 != 0) && (local_15 != '\0'))" ( (binary_expression "(iVar1 != 0) && (local_15 != '\0')" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(local_15 != '\0')" ( (binary_expression "local_15 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      return local_15;\n    }" { (return_statement "return local_15;" return identifier ;) })) })) (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , IDENT , IDENT , IDENT , IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (return_statement return IDENT ;) })) })) (return_statement return (char_literal ' escape_sequence ') ;) })))
(function_definition "char FUN_00096fc0(int param_1,int param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  char local_15;\n  undefined1 local_14 [4];\n  undefined1 local_10 [8];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x96fc6;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }\n  return '\0';\n}" (primitive_type "char") (function_declarator "FUN_00096fc0(int param_1,int param_2,undefined4 param_3)" (identifier "FUN_00096fc0") (parameter_list "(int param_1,int param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  char local_15;\n  undefined1 local_14 [4];\n  undefined1 local_10 [8];\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x96fc6;\n  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }\n  return '\0';\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char local_15;" (primitive_type "char") (identifier "local_15") (; ";")) (declaration "undefined1 local_14 [4];" (type_identifier "undefined1") (array_declarator "local_14 [4]" (identifier "local_14") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined1 local_10 [8];" (type_identifier "undefined1") (array_declarator "local_10 [8]" (identifier "local_10") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "undefined4 uStack_8;" (type_identifier "undefined4") (identifier "uStack_8") (; ";")) (expression_statement "uStack_8 = 0x96fc6;" (assignment_expression "uStack_8 = 0x96fc6" (identifier "uStack_8") (= "=") (number_literal "0x96fc6")) (; ";")) (if_statement "if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0')" (( "(") (binary_expression "*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0'" (pointer_expression "*(char *)(*(int *)(param_1 + 4) + 0xac)" (* "*") (cast_expression "(char *)(*(int *)(param_1 + 4) + 0xac)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 0xac)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0xac" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0xac")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }\n    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;\n    if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }\n  }" ({ "{") (if_statement "if (param_2 != 0) {\n      param_2 = *(int *)(param_2 + 4);\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      param_2 = *(int *)(param_2 + 4);\n    }" ({ "{") (expression_statement "param_2 = *(int *)(param_2 + 4);" (assignment_expression "param_2 = *(int *)(param_2 + 4)" (identifier "param_2") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)\n    ;" (assignment_expression "iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)" (identifier "iVar1") (= "=") (call_expression "FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)" (identifier "FUN_0015c650") (argument_list "(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 0xac" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0xac")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "local_14") (, ",") (identifier "local_10") (, ",") (pointer_expression "&local_15" (& "&") (identifier "local_15")) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if ((iVar1 != 0) && (local_15 != '\0')) {\n      return local_15;\n    }" (if "if") (parenthesized_expression "((iVar1 != 0) && (local_15 != '\0'))" (( "(") (binary_expression "(iVar1 != 0) && (local_15 != '\0')" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(local_15 != '\0')" (( "(") (binary_expression "local_15 != '\0'" (identifier "local_15") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      return local_15;\n    }" ({ "{") (return_statement "return local_15;" (return "return") (identifier "local_15") (; ";")) (} "}"))) (} "}"))) (return_statement "return '\0';" (return "return") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: bool keep_input_section(Layout * this, Relobj * relobj, char * name) */

bool __thiscall gold::type_1::function_1(type_1 *this,type_2 *var_1,char *name)

{
  char *var_3;
  bool var_4;
  type_3 **output_section_slot;
  type_4 script_section_type;
  type_5 uStack_8;
  
  uStack_8 = 0x96fc6;
  if ((this->script_options_->script_sections_).saw_sections_clause_ != false) {
    if (var_1 != (type_2 *)0x0) {
      var_1 = (type_2 *)(var_1->super_Object).name_._M_dataplus._M_p;
    }
    var_3 = Script_sections::var_2
                       (&this->script_options_->script_sections_,(char *)var_1,name,
                        &output_section_slot,&script_section_type,&var_4,true);
    if ((var_3 != (char *)0x0) && (var_4 != false)) {
      return var_4;
    }
  }
  return false;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_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: (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))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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)) (identifier) (identifier) (identifier) (identifier) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (return_statement (identifier)))))) (return_statement (char_literal (escape_sequence))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char MASKED(int param_1,int param_2,undefined4 param_3)

{
  int iVar1;
  char local_15;
  undefined1 local_14 [4];
  undefined1 local_10 [8];
  undefined4 uStack_8;
  
  uStack_8 = 0x96fc6;
  if (*(char *)(*(int *)(param_1 + 4) + 0xac) != '\0') {
    if (param_2 != 0) {
      param_2 = *(int *)(param_2 + 4);
    }
    iVar1 = FUN_0015c650(*(int *)(param_1 + 4) + 0xac,param_2,param_3,local_14,local_10,&local_15,1)
    ;
    if ((iVar1 != 0) && (local_15 != '\0')) {
      return local_15;
    }
  }
  return '\0';
}

