
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: uint64_t do_section_flags(Sized_dynobj<64,_false> * this, uint shndx)
    */

uint64_t __thiscall
gold::Sized_dynobj<64,_false>::do_section_flags(Sized_dynobj<64,_false> *this,uint shndx)

{
}



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

undefined8 FUN_000b3010(int param_1,uint param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 uVar4;
  undefined8 uVar5;
  
  iVar3 = param_1 + 0x60;
  iVar1 = *(int *)(param_1 + 0x60);
  FUN_000b2880(iVar3);
  if (*(uint *)(param_1 + 0x6c) <= param_2) {
    FUN_000b2880(iVar3);
    uVar2 = *(undefined4 *)(param_1 + 0x6c);
    uVar4 = gettext("section_flags: bad shndx %u >= %u");
    FUN_00121be0(iVar1,uVar4,param_2,uVar2);
  }
  uVar5 = FUN_000b11a0(iVar3,param_2);
  if (*(int *)(iVar1 + 0x1c) != 0) {
    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),
                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);
    return *(undefined8 *)(iVar3 + 8);
  }
                    /* WARNING: Subroutine does not return */
  FUN_00052e30();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0003a210
ADD EBX,0x360fe7
SUB ESP,0x18
MOV EBP,dword ptr [ESP + 0x2c]
LEA EDI,[EBP + 0x60]
MOV ESI,dword ptr [EBP + 0x60]
PUSH EDI
CALL 0x000b2880
ADD ESP,0x10
MOV EAX,dword ptr [EBP + 0x6c]
CMP dword ptr [ESP + 0x24],EAX
JNC 0x000b3080
SUB ESP,0x8
PUSH dword ptr [ESP + 0x2c]
PUSH EDI
CALL 0x000b11a0
MOV ECX,dword ptr [ESI + 0x1c]
ADD ESP,0x10
TEST ECX,ECX
JZ 0x000b30ae
ADD ECX,0x1c
PUSH 0x1
PUSH 0x1
PUSH 0x40
PUSH EDX
PUSH EAX
PUSH dword ptr [ESI + 0x24]
PUSH dword ptr [ESI + 0x20]
PUSH ECX
CALL 0x000d4670
MOV EDX,dword ptr [EAX + 0xc]
MOV EAX,dword ptr [EAX + 0x8]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDI
CALL 0x000b2880
MOV EBP,dword ptr [EBP + 0x6c]
LEA EAX,[EBX + 0xffee3e38]
MOV dword ptr [ESP],EAX
CALL 0x0002c440
ADD ESP,0x10
PUSH EBP
PUSH dword ptr [ESP + 0x28]
PUSH EAX
PUSH ESI
CALL 0x00121be0
ADD ESP,0x10
JMP 0x000b303e
CALL 0x00052e30
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined8 FUN_000b3010(int param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000b2880(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000b11a0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00052e30();\n}\n\n" comment (function_definition "undefined8 FUN_000b3010(int param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000b2880(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000b11a0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00052e30();\n}" type_identifier (function_declarator "FUN_000b3010(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000b2880(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000b11a0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00052e30();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (expression_statement "iVar3 = param_1 + 0x60;" (assignment_expression "iVar3 = param_1 + 0x60" identifier = (binary_expression "param_1 + 0x60" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x60);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x60)" identifier = (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "FUN_000b2880(iVar3);" (call_expression "FUN_000b2880(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (if_statement "if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 0x6c) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 0x6c) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x6c)" * (cast_expression "(uint *)(param_1 + 0x6c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }" { (expression_statement "FUN_000b2880(iVar3);" (call_expression "FUN_000b2880(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x6c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x6c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = gettext("section_flags: bad shndx %u >= %u");" (assignment_expression "uVar4 = gettext("section_flags: bad shndx %u >= %u")" identifier = (call_expression "gettext("section_flags: bad shndx %u >= %u")" identifier (argument_list "("section_flags: bad shndx %u >= %u")" ( (string_literal ""section_flags: bad shndx %u >= %u"" " string_content ") )))) ;) (expression_statement "FUN_00121be0(iVar1,uVar4,param_2,uVar2);" (call_expression "FUN_00121be0(iVar1,uVar4,param_2,uVar2)" identifier (argument_list "(iVar1,uVar4,param_2,uVar2)" ( identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "uVar5 = FUN_000b11a0(iVar3,param_2);" (assignment_expression "uVar5 = FUN_000b11a0(iVar3,param_2)" identifier = (call_expression "FUN_000b11a0(iVar3,param_2)" identifier (argument_list "(iVar3,param_2)" ( identifier , identifier )))) ;) (if_statement "if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x1c) != 0" (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }" { (expression_statement "iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);" (assignment_expression "iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1)" identifier = (call_expression "FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1)" identifier (argument_list "(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1)" ( (binary_expression "*(int *)(iVar1 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) , identifier , number_literal , number_literal , number_literal )))) ;) (return_statement "return *(undefined8 *)(iVar3 + 8);" return (pointer_expression "*(undefined8 *)(iVar3 + 8)" * (cast_expression "(undefined8 *)(iVar3 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) ;) })) comment (expression_statement "FUN_00052e30();" (call_expression "FUN_00052e30()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: uint64_t do_section_flags(Sized_dynobj<64,_false> * this, uint shndx)\n    */\n\nuint64_t __thiscall\ngold::Sized_dynobj<64,_false>::do_section_flags(Sized_dynobj<64,_false> *this,uint shndx)\n\n{\n}\n\n" comment comment (ERROR "uint64_t __thiscall\ngold::Sized_dynobj<64,_false>::do_section_flags(Sized_dynobj<64,_false> *this,uint shndx)" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::" identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_false>::" identifier > : :) (function_declarator "do_section_flags(Sized_dynobj<64,_false> *this,uint shndx)" identifier (parameter_list "(Sized_dynobj<64,_false> *this,uint shndx)" ( (parameter_declaration "Sized_dynobj" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint shndx" type_identifier identifier) )))) (compound_statement "{\n}" { }))
(translation_unit "undefined8 FUN_000b3010(int param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000b2880(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000b11a0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }\n                    \n  FUN_00052e30();\n}\n\n" (function_definition "undefined8 FUN_000b3010(int param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000b2880(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000b11a0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }\n                    \n  FUN_00052e30();\n}" type_identifier (function_declarator "FUN_000b3010(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000b2880(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000b11a0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }\n                    \n  FUN_00052e30();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (expression_statement "iVar3 = param_1 + 0x60;" (assignment_expression "iVar3 = param_1 + 0x60" identifier = (binary_expression "param_1 + 0x60" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x60);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x60)" identifier = (pointer_expression "*(int *)(param_1 + 0x60)" * (cast_expression "(int *)(param_1 + 0x60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x60)" ( (binary_expression "param_1 + 0x60" identifier + number_literal) ))))) ;) (expression_statement "FUN_000b2880(iVar3);" (call_expression "FUN_000b2880(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (if_statement "if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 0x6c) <= param_2)" ( (binary_expression "*(uint *)(param_1 + 0x6c) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x6c)" * (cast_expression "(uint *)(param_1 + 0x6c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }" { (expression_statement "FUN_000b2880(iVar3);" (call_expression "FUN_000b2880(iVar3)" identifier (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x6c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x6c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))))) ;) (expression_statement "uVar4 = gettext("section_flags: bad shndx %u >= %u");" (assignment_expression "uVar4 = gettext("section_flags: bad shndx %u >= %u")" identifier = (call_expression "gettext("section_flags: bad shndx %u >= %u")" identifier (argument_list "("section_flags: bad shndx %u >= %u")" ( (string_literal ""section_flags: bad shndx %u >= %u"" " string_content ") )))) ;) (expression_statement "FUN_00121be0(iVar1,uVar4,param_2,uVar2);" (call_expression "FUN_00121be0(iVar1,uVar4,param_2,uVar2)" identifier (argument_list "(iVar1,uVar4,param_2,uVar2)" ( identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "uVar5 = FUN_000b11a0(iVar3,param_2);" (assignment_expression "uVar5 = FUN_000b11a0(iVar3,param_2)" identifier = (call_expression "FUN_000b11a0(iVar3,param_2)" identifier (argument_list "(iVar3,param_2)" ( identifier , identifier )))) ;) (if_statement "if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x1c) != 0" (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }" { (expression_statement "iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);" (assignment_expression "iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1)" identifier = (call_expression "FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1)" identifier (argument_list "(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1)" ( (binary_expression "*(int *)(iVar1 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) + number_literal) , (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) , identifier , number_literal , number_literal , number_literal )))) ;) (return_statement "return *(undefined8 *)(iVar3 + 8);" return (pointer_expression "*(undefined8 *)(iVar3 + 8)" * (cast_expression "(undefined8 *)(iVar3 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) ;) })) (expression_statement "FUN_00052e30();" (call_expression "FUN_00052e30()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (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 ( (string_literal " string_content ") )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (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 ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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) )))) , IDENT , LIT , LIT , LIT )))) ;) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined8 FUN_000b3010(int param_1,uint param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000b2880(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000b11a0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }\n                    \n  FUN_00052e30();\n}" (type_identifier "undefined8") (function_declarator "FUN_000b3010(int param_1,uint param_2)" (identifier "FUN_000b3010") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined8 uVar5;\n  \n  iVar3 = param_1 + 0x60;\n  iVar1 = *(int *)(param_1 + 0x60);\n  FUN_000b2880(iVar3);\n  if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }\n  uVar5 = FUN_000b11a0(iVar3,param_2);\n  if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }\n                    \n  FUN_00052e30();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (expression_statement "iVar3 = param_1 + 0x60;" (assignment_expression "iVar3 = param_1 + 0x60" (identifier "iVar3") (= "=") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x60);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x60)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x60)" (* "*") (cast_expression "(int *)(param_1 + 0x60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x60)" (( "(") (binary_expression "param_1 + 0x60" (identifier "param_1") (+ "+") (number_literal "0x60")) () ")"))))) (; ";")) (expression_statement "FUN_000b2880(iVar3);" (call_expression "FUN_000b2880(iVar3)" (identifier "FUN_000b2880") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (if_statement "if (*(uint *)(param_1 + 0x6c) <= param_2) {\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x6c) <= param_2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x6c) <= param_2" (pointer_expression "*(uint *)(param_1 + 0x6c)" (* "*") (cast_expression "(uint *)(param_1 + 0x6c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (<= "<=") (identifier "param_2")) () ")")) (compound_statement "{\n    FUN_000b2880(iVar3);\n    uVar2 = *(undefined4 *)(param_1 + 0x6c);\n    uVar4 = gettext("section_flags: bad shndx %u >= %u");\n    FUN_00121be0(iVar1,uVar4,param_2,uVar2);\n  }" ({ "{") (expression_statement "FUN_000b2880(iVar3);" (call_expression "FUN_000b2880(iVar3)" (identifier "FUN_000b2880") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x6c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x6c)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))))) (; ";")) (expression_statement "uVar4 = gettext("section_flags: bad shndx %u >= %u");" (assignment_expression "uVar4 = gettext("section_flags: bad shndx %u >= %u")" (identifier "uVar4") (= "=") (call_expression "gettext("section_flags: bad shndx %u >= %u")" (identifier "gettext") (argument_list "("section_flags: bad shndx %u >= %u")" (( "(") (string_literal ""section_flags: bad shndx %u >= %u"" (" """) (string_content "section_flags: bad shndx %u >= %u") (" """)) () ")")))) (; ";")) (expression_statement "FUN_00121be0(iVar1,uVar4,param_2,uVar2);" (call_expression "FUN_00121be0(iVar1,uVar4,param_2,uVar2)" (identifier "FUN_00121be0") (argument_list "(iVar1,uVar4,param_2,uVar2)" (( "(") (identifier "iVar1") (, ",") (identifier "uVar4") (, ",") (identifier "param_2") (, ",") (identifier "uVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar5 = FUN_000b11a0(iVar3,param_2);" (assignment_expression "uVar5 = FUN_000b11a0(iVar3,param_2)" (identifier "uVar5") (= "=") (call_expression "FUN_000b11a0(iVar3,param_2)" (identifier "FUN_000b11a0") (argument_list "(iVar3,param_2)" (( "(") (identifier "iVar3") (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x1c) != 0) {\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x1c) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x1c) != 0" (pointer_expression "*(int *)(iVar1 + 0x1c)" (* "*") (cast_expression "(int *)(iVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);\n    return *(undefined8 *)(iVar3 + 8);\n  }" ({ "{") (expression_statement "iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);" (assignment_expression "iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1)" (identifier "iVar3") (= "=") (call_expression "FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1)" (identifier "FUN_000d4670") (argument_list "(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),\n                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1)" (( "(") (binary_expression "*(int *)(iVar1 + 0x1c) + 0x1c" (pointer_expression "*(int *)(iVar1 + 0x1c)" (* "*") (cast_expression "(int *)(iVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (number_literal "0x1c")) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (, ",") (identifier "uVar5") (, ",") (number_literal "0x40") (, ",") (number_literal "1") (, ",") (number_literal "1") () ")")))) (; ";")) (return_statement "return *(undefined8 *)(iVar3 + 8);" (return "return") (pointer_expression "*(undefined8 *)(iVar3 + 8)" (* "*") (cast_expression "(undefined8 *)(iVar3 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_00052e30();" (call_expression "FUN_00052e30()" (identifier "FUN_00052e30") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: uint64_t do_section_flags(Sized_dynobj<64,_false> * this, uint shndx)
    */

uint64_t __thiscall
gold::Sized_dynobj<64,_false>::do_section_flags(Sized_dynobj<64,_false> *this,uint shndx)

{
}


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

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

undefined8 MASKED(int param_1,uint param_2)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  undefined4 uVar4;
  undefined8 uVar5;
  
  iVar3 = param_1 + 0x60;
  iVar1 = *(int *)(param_1 + 0x60);
  FUN_000b2880(iVar3);
  if (*(uint *)(param_1 + 0x6c) <= param_2) {
    FUN_000b2880(iVar3);
    uVar2 = *(undefined4 *)(param_1 + 0x6c);
    uVar4 = gettext("section_flags: bad shndx %u >= %u");
    FUN_00121be0(iVar1,uVar4,param_2,uVar2);
  }
  uVar5 = FUN_000b11a0(iVar3,param_2);
  if (*(int *)(iVar1 + 0x1c) != 0) {
    iVar3 = FUN_000d4670(*(int *)(iVar1 + 0x1c) + 0x1c,*(undefined4 *)(iVar1 + 0x20),
                         *(undefined4 *)(iVar1 + 0x24),uVar5,0x40,1,1);
    return *(undefined8 *)(iVar3 + 8);
  }
                    /* WARNING: Subroutine does not return */
  FUN_00052e30();
}

