
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original prototype: bool find_eh_frame(Sized_relobj_file<64,_true> * this, uchar * pshdrs,
   char * names, section_size_type names_size) */

bool __thiscall
gold::Sized_relobj_file<64,_true>::find_eh_frame
          (Sized_relobj_file<64,_true> *this,uchar *pshdrs,char *names,section_size_type names_size)

{
  bool bVar1;
  Shdr_data<64> *hdr;
  Shdr shdr;
  
  hdr = (Shdr_data<64> *)0x0;
  do {
    hdr = (Shdr_data<64> *)
          Object::find_shdr<64,_true>
                    ((Object *)this,pshdrs,".eh_frame",names,names_size,(uchar *)hdr);
    if (hdr == (Shdr_data<64> *)0x0) {
      return false;
    }
    shdr.p_ = hdr;
    bVar1 = check_eh_frame_flags(this,&shdr);
  } while (!bVar1);
  return bVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

undefined4 FUN_000b9fa0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 uVar1;
  int iVar2;
  int local_20 [4];
  
  iVar2 = 0;
  do {
    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);
    if (iVar2 == 0) {
      return 0;
    }
    local_20[0] = iVar2;
    uVar1 = FUN_000b9f30(param_1,local_20);
  } while ((char)uVar1 == '\0');
  return uVar1;
}


CALL 0x000559e6
ADD EAX,0x2d505b
PUSH EBP
PUSH EDI
XOR EDI,EDI
PUSH ESI
PUSH EBX
LEA ESI,[EAX + 0xffefb679]
SUB ESP,0x1c
MOV EAX,ESI
MOV EBX,dword ptr [ESP + 0x30]
MOV ESI,EDI
LEA EBP,[ESP + 0xc]
MOV EDI,EAX
JMP 0x000b9fe5
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0x8
PUSH EBP
PUSH EBX
CALL 0x000b9f30
ADD ESP,0x10
TEST AL,AL
JNZ 0x000ba007
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [ESP + 0x48]
PUSH dword ptr [ESP + 0x48]
PUSH EDI
PUSH dword ptr [ESP + 0x4c]
PUSH EBX
CALL 0x000b61e0
ADD ESP,0x20
MOV ESI,EAX
TEST EAX,EAX
JNZ 0x000b9fd0
XOR EAX,EAX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nundefined4 FUN_000b9fa0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int local_20 [4];\n  \n  iVar2 = 0;\n  do {\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  } while ((char)uVar1 == '\0');\n  return uVar1;\n}\n\n" comment (function_definition "undefined4 FUN_000b9fa0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int local_20 [4];\n  \n  iVar2 = 0;\n  do {\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  } while ((char)uVar1 == '\0');\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000b9fa0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int local_20 [4];\n  \n  iVar2 = 0;\n  do {\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  } while ((char)uVar1 == '\0');\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int local_20 [4];" primitive_type (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  } while ((char)uVar1 == '\0');" do (compound_statement "{\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  }" { (expression_statement "iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);" (assignment_expression "iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2)" identifier = (call_expression "FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2)" identifier (argument_list "(param_1,param_2,".eh_frame",param_3,param_4,iVar2)" ( identifier , identifier , (string_literal "".eh_frame"" " string_content ") , identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_20[0] = iVar2;" (assignment_expression "local_20[0] = iVar2" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = FUN_000b9f30(param_1,local_20);" (assignment_expression "uVar1 = FUN_000b9f30(param_1,local_20)" identifier = (call_expression "FUN_000b9f30(param_1,local_20)" identifier (argument_list "(param_1,local_20)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "((char)uVar1 == '\0')" ( (binary_expression "(char)uVar1 == '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* DWARF original prototype: bool find_eh_frame(Sized_relobj_file<64,_true> * this, uchar * pshdrs,\n   char * names, section_size_type names_size) */\n\nbool __thiscall\ngold::Sized_relobj_file<64,_true>::find_eh_frame\n          (Sized_relobj_file<64,_true> *this,uchar *pshdrs,char *names,section_size_type names_size)\n\n{\n  bool bVar1;\n  Shdr_data<64> *hdr;\n  Shdr shdr;\n  \n  hdr = (Shdr_data<64> *)0x0;\n  do {\n    hdr = (Shdr_data<64> *)\n          Object::find_shdr<64,_true>\n                    ((Object *)this,pshdrs,".eh_frame",names,names_size,(uchar *)hdr);\n    if (hdr == (Shdr_data<64> *)0x0) {\n      return false;\n    }\n    shdr.p_ = hdr;\n    bVar1 = check_eh_frame_flags(this,&shdr);\n  } while (!bVar1);\n  return bVar1;\n}\n\n" comment comment (declaration "bool __thiscall\ngold::Sized_relobj_file<64,_true>::find_eh_frame\n          (Sized_relobj_file<64,_true> *this,uchar *pshdrs,char *names,section_size_type names_size)\n\n{\n  bool bVar1;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_true>::find_eh_frame\n          (Sized_relobj_file<64,_true> *this,uchar *pshdrs,char *names,section_size_type names_size)\n\n{\n  bool" identifier > : : (function_declarator "find_eh_frame\n          (Sized_relobj_file<64,_true> *this,uchar *pshdrs,char *names,section_size_type names_size)" identifier (parameter_list "(Sized_relobj_file<64,_true> *this,uchar *pshdrs,char *names,section_size_type names_size)" ( (parameter_declaration "Sized_relobj_file" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_true> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uchar *pshdrs" type_identifier (pointer_declarator "*pshdrs" * identifier)) , (parameter_declaration "char *names" primitive_type (pointer_declarator "*names" * identifier)) , (parameter_declaration "section_size_type names_size" type_identifier identifier) ))) { primitive_type) identifier ;) (expression_statement "Shdr_data<64> *hdr;" (update_expression "Shdr_data<64> *hdr" (binary_expression "Shdr_data<64> *hdr" (binary_expression "Shdr_data<64" identifier < number_literal) > (pointer_expression "*hdr" * identifier)) --) ;) (declaration "Shdr shdr;" type_identifier identifier ;) (expression_statement "hdr = (Shdr_data<64> *)0x0;" (assignment_expression "hdr = (Shdr_data<64> *)0x0" identifier = (parenthesized_expression "(Shdr_data<64> *)0x0" ( (binary_expression "Shdr_data<64> *)0x0" (binary_expression "Shdr_data<64" identifier < number_literal) > (pointer_expression "*)0x0" * (ERROR ")" )) number_literal)) ))) ;) (do_statement "do {\n    hdr = (Shdr_data<64> *)\n          Object::find_shdr<64,_true>\n                    ((Object *)this,pshdrs,".eh_frame",names,names_size,(uchar *)hdr);\n    if (hdr == (Shdr_data<64> *)0x0) {\n      return false;\n    }\n    shdr.p_ = hdr;\n    bVar1 = check_eh_frame_flags(this,&shdr);\n  } while (!bVar1);" do (compound_statement "{\n    hdr = (Shdr_data<64> *)\n          Object::find_shdr<64,_true>\n                    ((Object *)this,pshdrs,".eh_frame",names,names_size,(uchar *)hdr);\n    if (hdr == (Shdr_data<64> *)0x0) {\n      return false;\n    }\n    shdr.p_ = hdr;\n    bVar1 = check_eh_frame_flags(this,&shdr);\n  }" { (expression_statement "hdr = (Shdr_data<64> *)\n          Object::find_shdr<64,_true>\n                    ((Object *)this,pshdrs,".eh_frame",names,names_size,(uchar *)hdr);" (assignment_expression "hdr = (Shdr_data<64> *)\n          Object::find_shdr<64,_true>\n                    ((Object *)this,pshdrs,".eh_frame",names,names_size,(uchar *)hdr)" identifier = (parenthesized_expression "(Shdr_data<64> *)\n          Object::find_shdr<64,_true>\n                    ((Object *)this,pshdrs,".eh_frame",names,names_size,(uchar *)hdr)" ( (comma_expression "Shdr_data<64> *)\n          Object::find_shdr<64,_true>\n                    ((Object *)this,pshdrs,".eh_frame",names,names_size,(uchar *)hdr)" (binary_expression "Shdr_data<64> *)\n          Object::find_shdr<64" (binary_expression "Shdr_data<64> *)\n          Object" (binary_expression "Shdr_data<64" identifier < number_literal) > (pointer_expression "*)\n          Object" * (ERROR ")" )) identifier)) (ERROR "::find_shdr" : : identifier) < number_literal) , (binary_expression "_true>\n                    ((Object *)this,pshdrs,".eh_frame",names,names_size,(uchar *)hdr)" identifier > (parenthesized_expression "((Object *)this,pshdrs,".eh_frame",names,names_size,(uchar *)hdr)" ( (comma_expression "(Object *)this,pshdrs,".eh_frame",names,names_size,(uchar *)hdr" (cast_expression "(Object *)this" ( (type_descriptor "Object *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (comma_expression "pshdrs,".eh_frame",names,names_size,(uchar *)hdr" identifier , (comma_expression "".eh_frame",names,names_size,(uchar *)hdr" (string_literal "".eh_frame"" " string_content ") , (comma_expression "names,names_size,(uchar *)hdr" identifier , (comma_expression "names_size,(uchar *)hdr" identifier , (cast_expression "(uchar *)hdr" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)))))) )))) ))) ;) (if_statement "if (hdr == (Shdr_data<64> *)0x0) {\n      return false;\n    }" if (parenthesized_expression "(hdr == (Shdr_data<64> *)0x0)" ( (binary_expression "hdr == (Shdr_data<64> *)0x0)" identifier == (parenthesized_expression "(Shdr_data<64> *)0x0)" ( (binary_expression "Shdr_data<64> *)0x0" (binary_expression "Shdr_data<64" identifier < number_literal) > (pointer_expression "*)0x0" * (ERROR ")" )) number_literal)) ))) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (expression_statement "shdr.p_ = hdr;" (assignment_expression "shdr.p_ = hdr" (field_expression "shdr.p_" identifier . field_identifier) = identifier) ;) (expression_statement "bVar1 = check_eh_frame_flags(this,&shdr);" (assignment_expression "bVar1 = check_eh_frame_flags(this,&shdr)" identifier = (call_expression "check_eh_frame_flags(this,&shdr)" identifier (argument_list "(this,&shdr)" ( identifier , (pointer_expression "&shdr" & identifier) )))) ;) }) while (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) ;) (return_statement "return bVar1;" return identifier ;) (ERROR "}" }))
(translation_unit "undefined4 FUN_000b9fa0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int local_20 [4];\n  \n  iVar2 = 0;\n  do {\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  } while ((char)uVar1 == '\0');\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_000b9fa0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int local_20 [4];\n  \n  iVar2 = 0;\n  do {\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  } while ((char)uVar1 == '\0');\n  return uVar1;\n}" type_identifier (function_declarator "FUN_000b9fa0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int local_20 [4];\n  \n  iVar2 = 0;\n  do {\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  } while ((char)uVar1 == '\0');\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int local_20 [4];" primitive_type (array_declarator "local_20 [4]" identifier [ number_literal ]) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  } while ((char)uVar1 == '\0');" do (compound_statement "{\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  }" { (expression_statement "iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);" (assignment_expression "iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2)" identifier = (call_expression "FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2)" identifier (argument_list "(param_1,param_2,".eh_frame",param_3,param_4,iVar2)" ( identifier , identifier , (string_literal "".eh_frame"" " string_content ") , identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "local_20[0] = iVar2;" (assignment_expression "local_20[0] = iVar2" (subscript_expression "local_20[0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = FUN_000b9f30(param_1,local_20);" (assignment_expression "uVar1 = FUN_000b9f30(param_1,local_20)" identifier = (call_expression "FUN_000b9f30(param_1,local_20)" identifier (argument_list "(param_1,local_20)" ( identifier , identifier )))) ;) }) while (parenthesized_expression "((char)uVar1 == '\0')" ( (binary_expression "(char)uVar1 == '\0'" (cast_expression "(char)uVar1" ( (type_descriptor "char" primitive_type) ) identifier) == (char_literal "'\0'" ' escape_sequence ')) )) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (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 ]) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (string_literal " string_content ") , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) == (char_literal ' escape_sequence ')) )) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_000b9fa0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int local_20 [4];\n  \n  iVar2 = 0;\n  do {\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  } while ((char)uVar1 == '\0');\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_000b9fa0(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_000b9fa0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int local_20 [4];\n  \n  iVar2 = 0;\n  do {\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  } while ((char)uVar1 == '\0');\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int local_20 [4];" (primitive_type "int") (array_declarator "local_20 [4]" (identifier "local_20") ([ "[") (number_literal "4") (] "]")) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  } while ((char)uVar1 == '\0');" (do "do") (compound_statement "{\n    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);\n    if (iVar2 == 0) {\n      return 0;\n    }\n    local_20[0] = iVar2;\n    uVar1 = FUN_000b9f30(param_1,local_20);\n  }" ({ "{") (expression_statement "iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);" (assignment_expression "iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2)" (identifier "iVar2") (= "=") (call_expression "FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2)" (identifier "FUN_000b61e0") (argument_list "(param_1,param_2,".eh_frame",param_3,param_4,iVar2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (string_literal "".eh_frame"" (" """) (string_content ".eh_frame") (" """)) (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "iVar2") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "local_20[0] = iVar2;" (assignment_expression "local_20[0] = iVar2" (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "uVar1 = FUN_000b9f30(param_1,local_20);" (assignment_expression "uVar1 = FUN_000b9f30(param_1,local_20)" (identifier "uVar1") (= "=") (call_expression "FUN_000b9f30(param_1,local_20)" (identifier "FUN_000b9f30") (argument_list "(param_1,local_20)" (( "(") (identifier "param_1") (, ",") (identifier "local_20") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((char)uVar1 == '\0')" (( "(") (binary_expression "(char)uVar1 == '\0'" (cast_expression "(char)uVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* DWARF original prototype: bool find_eh_frame(Sized_relobj_file<64,_true> * this, uchar * pshdrs,
   char * names, section_size_type names_size) */

bool __thiscall
gold::Sized_relobj_file<64,var_2>::find_eh_frame
          (Sized_relobj_file<64,var_2> *this,type_3 *pshdrs,char *names,section_size_type names_size)

{
  bool bVar1;
  var_1<64> *var_3;
  type_1 shdr;
  
  var_3 = (var_1<64> *)0x0;
  do {
    var_3 = (var_1<64> *)
          type_2::find_shdr<64,var_2>
                    ((type_2 *)this,pshdrs,".eh_frame",names,names_size,(type_3 *)var_3);
    if (var_3 == (var_1<64> *)0x0) {
      return false;
    }
    shdr.p_ = var_3;
    bVar1 = var_4(this,&shdr);
  } while (!bVar1);
  return bVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (string_literal (string_content)) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

undefined4 MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined4 uVar1;
  int iVar2;
  int local_20 [4];
  
  iVar2 = 0;
  do {
    iVar2 = FUN_000b61e0(param_1,param_2,".eh_frame",param_3,param_4,iVar2);
    if (iVar2 == 0) {
      return 0;
    }
    local_20[0] = iVar2;
    uVar1 = FUN_000b9f30(param_1,local_20);
  } while ((char)uVar1 == '\0');
  return uVar1;
}

