
/* 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: uint64_t header_size_adjustment(Script_sections * this, uint64_t lma,
   size_t sizeof_headers) */

uint64_t __thiscall
gold::Script_sections::header_size_adjustment
          (Script_sections *this,uint64_t lma,size_t sizeof_headers)

{
  General_options *pGVar1;
  int iVar2;
  int local_24;
  int local_20;
  
  if (parameters->target_ == (Target *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x69,"target");
  }
  pGVar1 = parameters->options_;
  if (pGVar1 != (General_options *)0x0) {
    local_20 = *(int *)((int)&(pGVar1->max_page_size_).value + 4);
    local_24 = (int)(pGVar1->max_page_size_).value;
    if (local_20 == 0 && local_24 == 0) {
      iVar2 = *(int *)(parameters->target_ + 4);
      local_20 = *(int *)(iVar2 + 0x24);
      local_24 = *(int *)(iVar2 + 0x20);
    }
    return lma - CONCAT44(-(local_20 + (uint)(local_24 != 0)) &
                          lma._4_4_ - (uint)((uint)lma < sizeof_headers),
                          -local_24 & (uint)lma - sizeof_headers);
  }
                    /* WARNING: Subroutine does not return */
  do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
}



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

undefined8 __regparm2
FUN_00108650(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,
            uint param_6)

{
  int iVar1;
  uint uVar2;
  int local_24;
  int local_20;
  
  if (*(int *)(DAT_00302378 + 0xc) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);
  }
  iVar1 = *(int *)(DAT_00302378 + 8);
  if (iVar1 != 0) {
    local_20 = *(int *)(iVar1 + 0x521c);
    local_24 = *(int *)(iVar1 + 0x5218);
    if (local_20 == 0 && local_24 == 0) {
      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);
      local_20 = *(int *)(iVar1 + 0x24);
      local_24 = *(int *)(iVar1 + 0x20);
    }
    uVar2 = -local_24 & param_4 - param_6;
    return CONCAT44((param_5 -
                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -
                    (uint)(param_4 < uVar2),param_4 - uVar2);
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x1f99a7
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x34]
MOV EDI,dword ptr [ESP + 0x38]
LEA EAX,[EBX + 0x378]
MOV EAX,dword ptr [EAX]
MOV ECX,dword ptr [EAX + 0xc]
TEST ECX,ECX
JZ 0x0010870c
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x001086f6
MOV EDX,dword ptr [EAX + 0x521c]
MOV EAX,dword ptr [EAX + 0x5218]
MOV EBP,EDX
MOV dword ptr [ESP + 0x8],EAX
OR EBP,EAX
MOV dword ptr [ESP + 0xc],EDX
JNZ 0x001086af
MOV EAX,dword ptr [ECX + 0x4]
MOV EDX,dword ptr [EAX + 0x24]
MOV EAX,dword ptr [EAX + 0x20]
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x8],EAX
MOV ECX,dword ptr [ESP + 0x3c]
MOV EAX,ESI
XOR EBX,EBX
MOV EDX,EDI
SUB EAX,ECX
MOV ECX,EAX
MOV EAX,dword ptr [ESP + 0x8]
SBB EDX,EBX
MOV EBX,EDX
MOV EDX,dword ptr [ESP + 0xc]
NEG EAX
MOV dword ptr [ESP + 0x8],EAX
MOV EBP,dword ptr [ESP + 0x8]
ADC EDX,0x0
NEG EDX
AND EBP,ECX
MOV dword ptr [ESP + 0xc],EDX
MOV EAX,EBP
MOV EBP,dword ptr [ESP + 0xc]
AND EBP,EBX
SUB ESI,EAX
SBB EDI,EBP
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
MOV EDX,EDI
POP ESI
POP EDI
POP EBP
RET
PUSH EAX
LEA EAX,[EBX + 0xfff2c9a0]
PUSH EAX
LEA EAX,[EBX + 0xfff1e970]
PUSH 0x5c
PUSH EAX
CALL 0x0005f0b0
LEA EAX,[EBX + 0xfff2ca5c]
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xfff1e970]
PUSH 0x69
PUSH EAX
CALL 0x0005f0b0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined8 __regparm2\nFUN_00108650(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,\n            uint param_6)\n\n{\n  int iVar1;\n  uint uVar2;\n  int local_24;\n  int local_20;\n  \n  if (*(int *)(DAT_00302378 + 0xc) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }\n  iVar1 = *(int *)(DAT_00302378 + 8);\n  if (iVar1 != 0) {\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n}\n\n" comment (function_definition "undefined8 __regparm2\nFUN_00108650(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,\n            uint param_6)\n\n{\n  int iVar1;\n  uint uVar2;\n  int local_24;\n  int local_20;\n  \n  if (*(int *)(DAT_00302378 + 0xc) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }\n  iVar1 = *(int *)(DAT_00302378 + 8);\n  if (iVar1 != 0) {\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_00108650(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,\n            uint param_6)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,\n            uint param_6)" ( (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 "uint param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "uint param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int local_24;\n  int local_20;\n  \n  if (*(int *)(DAT_00302378 + 0xc) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }\n  iVar1 = *(int *)(DAT_00302378 + 8);\n  if (iVar1 != 0) {\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if (*(int *)(DAT_00302378 + 0xc) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }" if (parenthesized_expression "(*(int *)(DAT_00302378 + 0xc) == 0)" ( (binary_expression "*(int *)(DAT_00302378 + 0xc) == 0" (pointer_expression "*(int *)(DAT_00302378 + 0xc)" * (cast_expression "(int *)(DAT_00302378 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 0xc)" ( (binary_expression "DAT_00302378 + 0xc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }" { comment (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2)" identifier (argument_list "("../../gold/parameters.h",0x69,"target",param_2)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar1 = *(int *)(DAT_00302378 + 8);" (assignment_expression "iVar1 = *(int *)(DAT_00302378 + 8)" identifier = (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }" { (expression_statement "local_20 = *(int *)(iVar1 + 0x521c);" (assignment_expression "local_20 = *(int *)(iVar1 + 0x521c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x521c)" * (cast_expression "(int *)(iVar1 + 0x521c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x521c)" ( (binary_expression "iVar1 + 0x521c" identifier + number_literal) ))))) ;) (expression_statement "local_24 = *(int *)(iVar1 + 0x5218);" (assignment_expression "local_24 = *(int *)(iVar1 + 0x5218)" identifier = (pointer_expression "*(int *)(iVar1 + 0x5218)" * (cast_expression "(int *)(iVar1 + 0x5218)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x5218)" ( (binary_expression "iVar1 + 0x5218" identifier + number_literal) ))))) ;) (if_statement "if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }" if (parenthesized_expression "(local_20 == 0 && local_24 == 0)" ( (binary_expression "local_20 == 0 && local_24 == 0" (binary_expression "local_20 == 0" identifier == number_literal) && (binary_expression "local_24 == 0" identifier == number_literal)) )) (compound_statement "{\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }" { (expression_statement "iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_00302378 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(DAT_00302378 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_00302378 + 0xc) + 4" (pointer_expression "*(int *)(DAT_00302378 + 0xc)" * (cast_expression "(int *)(DAT_00302378 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 0xc)" ( (binary_expression "DAT_00302378 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "local_20 = *(int *)(iVar1 + 0x24);" (assignment_expression "local_20 = *(int *)(iVar1 + 0x24)" identifier = (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "local_24 = *(int *)(iVar1 + 0x20);" (assignment_expression "local_24 = *(int *)(iVar1 + 0x20)" identifier = (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) })) (expression_statement "uVar2 = -local_24 & param_4 - param_6;" (assignment_expression "uVar2 = -local_24 & param_4 - param_6" identifier = (binary_expression "-local_24 & param_4 - param_6" (unary_expression "-local_24" - identifier) & (binary_expression "param_4 - param_6" identifier - identifier))) ;) (return_statement "return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);" return (call_expression "CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2)" identifier (argument_list "((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2)" ( (binary_expression "(param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2)" (parenthesized_expression "(param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6)))" ( (binary_expression "param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))" identifier - (parenthesized_expression "(-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))" ( (binary_expression "-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6)" (unary_expression "-(local_20 + (uint)(local_24 != 0))" - (parenthesized_expression "(local_20 + (uint)(local_24 != 0))" ( (binary_expression "local_20 + (uint)(local_24 != 0)" identifier + (call_expression "(uint)(local_24 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )))) ))) & (binary_expression "param_5 - (uint)(param_4 < param_6)" identifier - (call_expression "(uint)(param_4 < param_6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 < param_6)" ( (binary_expression "param_4 < param_6" identifier < identifier) ))))) ))) )) - (call_expression "(uint)(param_4 < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 < uVar2)" ( (binary_expression "param_4 < uVar2" identifier < identifier) )))) , (binary_expression "param_4 - uVar2" identifier - identifier) ))) ;) })) comment (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , number_literal ))) ;) })))
(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: uint64_t header_size_adjustment(Script_sections * this, uint64_t lma,\n   size_t sizeof_headers) */\n\nuint64_t __thiscall\ngold::Script_sections::header_size_adjustment\n          (Script_sections *this,uint64_t lma,size_t sizeof_headers)\n\n{\n  General_options *pGVar1;\n  int iVar2;\n  int local_24;\n  int local_20;\n  \n  if (parameters->target_ == (Target *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n  }\n  pGVar1 = parameters->options_;\n  if (pGVar1 != (General_options *)0x0) {\n    local_20 = *(int *)((int)&(pGVar1->max_page_size_).value + 4);\n    local_24 = (int)(pGVar1->max_page_size_).value;\n    if (local_20 == 0 && local_24 == 0) {\n      iVar2 = *(int *)(parameters->target_ + 4);\n      local_20 = *(int *)(iVar2 + 0x24);\n      local_24 = *(int *)(iVar2 + 0x20);\n    }\n    return lma - CONCAT44(-(local_20 + (uint)(local_24 != 0)) &\n                          lma._4_4_ - (uint)((uint)lma < sizeof_headers),\n                          -local_24 & (uint)lma - sizeof_headers);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n}\n\n" comment comment comment (function_definition "uint64_t __thiscall\ngold::Script_sections::header_size_adjustment\n          (Script_sections *this,uint64_t lma,size_t sizeof_headers)\n\n{\n  General_options *pGVar1;\n  int iVar2;\n  int local_24;\n  int local_20;\n  \n  if (parameters->target_ == (Target *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n  }\n  pGVar1 = parameters->options_;\n  if (pGVar1 != (General_options *)0x0) {\n    local_20 = *(int *)((int)&(pGVar1->max_page_size_).value + 4);\n    local_24 = (int)(pGVar1->max_page_size_).value;\n    if (local_20 == 0 && local_24 == 0) {\n      iVar2 = *(int *)(parameters->target_ + 4);\n      local_20 = *(int *)(iVar2 + 0x24);\n      local_24 = *(int *)(iVar2 + 0x20);\n    }\n    return lma - CONCAT44(-(local_20 + (uint)(local_24 != 0)) &\n                          lma._4_4_ - (uint)((uint)lma < sizeof_headers),\n                          -local_24 & (uint)lma - sizeof_headers);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Script_sections::" identifier : : identifier : :) (function_declarator "header_size_adjustment\n          (Script_sections *this,uint64_t lma,size_t sizeof_headers)" identifier (parameter_list "(Script_sections *this,uint64_t lma,size_t sizeof_headers)" ( (parameter_declaration "Script_sections *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "uint64_t lma" primitive_type identifier) , (parameter_declaration "size_t sizeof_headers" primitive_type identifier) ))) (compound_statement "{\n  General_options *pGVar1;\n  int iVar2;\n  int local_24;\n  int local_20;\n  \n  if (parameters->target_ == (Target *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n  }\n  pGVar1 = parameters->options_;\n  if (pGVar1 != (General_options *)0x0) {\n    local_20 = *(int *)((int)&(pGVar1->max_page_size_).value + 4);\n    local_24 = (int)(pGVar1->max_page_size_).value;\n    if (local_20 == 0 && local_24 == 0) {\n      iVar2 = *(int *)(parameters->target_ + 4);\n      local_20 = *(int *)(iVar2 + 0x24);\n      local_24 = *(int *)(iVar2 + 0x20);\n    }\n    return lma - CONCAT44(-(local_20 + (uint)(local_24 != 0)) &\n                          lma._4_4_ - (uint)((uint)lma < sizeof_headers),\n                          -local_24 & (uint)lma - sizeof_headers);\n  }\n                    /* WARNING: Subroutine does not return */\n  do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n}" { (declaration "General_options *pGVar1;" type_identifier (pointer_declarator "*pGVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if (parameters->target_ == (Target *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n  }" if (parenthesized_expression "(parameters->target_ == (Target *)0x0)" ( (binary_expression "parameters->target_ == (Target *)0x0" (field_expression "parameters->target_" identifier -> field_identifier) == (cast_expression "(Target *)0x0" ( (type_descriptor "Target *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x69,"target");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x69,"target");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x69,"target")" identifier (argument_list "("../../gold/parameters.h",0x69,"target")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") ))) ;) })) (expression_statement "pGVar1 = parameters->options_;" (assignment_expression "pGVar1 = parameters->options_" identifier = (field_expression "parameters->options_" identifier -> field_identifier)) ;) (if_statement "if (pGVar1 != (General_options *)0x0) {\n    local_20 = *(int *)((int)&(pGVar1->max_page_size_).value + 4);\n    local_24 = (int)(pGVar1->max_page_size_).value;\n    if (local_20 == 0 && local_24 == 0) {\n      iVar2 = *(int *)(parameters->target_ + 4);\n      local_20 = *(int *)(iVar2 + 0x24);\n      local_24 = *(int *)(iVar2 + 0x20);\n    }\n    return lma - CONCAT44(-(local_20 + (uint)(local_24 != 0)) &\n                          lma._4_4_ - (uint)((uint)lma < sizeof_headers),\n                          -local_24 & (uint)lma - sizeof_headers);\n  }" if (parenthesized_expression "(pGVar1 != (General_options *)0x0)" ( (binary_expression "pGVar1 != (General_options *)0x0" identifier != (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_20 = *(int *)((int)&(pGVar1->max_page_size_).value + 4);\n    local_24 = (int)(pGVar1->max_page_size_).value;\n    if (local_20 == 0 && local_24 == 0) {\n      iVar2 = *(int *)(parameters->target_ + 4);\n      local_20 = *(int *)(iVar2 + 0x24);\n      local_24 = *(int *)(iVar2 + 0x20);\n    }\n    return lma - CONCAT44(-(local_20 + (uint)(local_24 != 0)) &\n                          lma._4_4_ - (uint)((uint)lma < sizeof_headers),\n                          -local_24 & (uint)lma - sizeof_headers);\n  }" { (expression_statement "local_20 = *(int *)((int)&(pGVar1->max_page_size_).value + 4);" (assignment_expression "local_20 = *(int *)((int)&(pGVar1->max_page_size_).value + 4)" identifier = (pointer_expression "*(int *)((int)&(pGVar1->max_page_size_).value + 4)" * (cast_expression "(int *)((int)&(pGVar1->max_page_size_).value + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&(pGVar1->max_page_size_).value + 4)" ( (binary_expression "(int)&(pGVar1->max_page_size_).value + 4" (cast_expression "(int)&(pGVar1->max_page_size_).value" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&(pGVar1->max_page_size_).value" & (field_expression "(pGVar1->max_page_size_).value" (parenthesized_expression "(pGVar1->max_page_size_)" ( (field_expression "pGVar1->max_page_size_" identifier -> field_identifier) )) . field_identifier))) + number_literal) ))))) ;) (expression_statement "local_24 = (int)(pGVar1->max_page_size_).value;" (assignment_expression "local_24 = (int)(pGVar1->max_page_size_).value" identifier = (cast_expression "(int)(pGVar1->max_page_size_).value" ( (type_descriptor "int" primitive_type) ) (field_expression "(pGVar1->max_page_size_).value" (parenthesized_expression "(pGVar1->max_page_size_)" ( (field_expression "pGVar1->max_page_size_" identifier -> field_identifier) )) . field_identifier))) ;) (if_statement "if (local_20 == 0 && local_24 == 0) {\n      iVar2 = *(int *)(parameters->target_ + 4);\n      local_20 = *(int *)(iVar2 + 0x24);\n      local_24 = *(int *)(iVar2 + 0x20);\n    }" if (parenthesized_expression "(local_20 == 0 && local_24 == 0)" ( (binary_expression "local_20 == 0 && local_24 == 0" (binary_expression "local_20 == 0" identifier == number_literal) && (binary_expression "local_24 == 0" identifier == number_literal)) )) (compound_statement "{\n      iVar2 = *(int *)(parameters->target_ + 4);\n      local_20 = *(int *)(iVar2 + 0x24);\n      local_24 = *(int *)(iVar2 + 0x20);\n    }" { (expression_statement "iVar2 = *(int *)(parameters->target_ + 4);" (assignment_expression "iVar2 = *(int *)(parameters->target_ + 4)" identifier = (pointer_expression "*(int *)(parameters->target_ + 4)" * (cast_expression "(int *)(parameters->target_ + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(parameters->target_ + 4)" ( (binary_expression "parameters->target_ + 4" (field_expression "parameters->target_" identifier -> field_identifier) + number_literal) ))))) ;) (expression_statement "local_20 = *(int *)(iVar2 + 0x24);" (assignment_expression "local_20 = *(int *)(iVar2 + 0x24)" identifier = (pointer_expression "*(int *)(iVar2 + 0x24)" * (cast_expression "(int *)(iVar2 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x24)" ( (binary_expression "iVar2 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "local_24 = *(int *)(iVar2 + 0x20);" (assignment_expression "local_24 = *(int *)(iVar2 + 0x20)" identifier = (pointer_expression "*(int *)(iVar2 + 0x20)" * (cast_expression "(int *)(iVar2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) ))))) ;) })) (return_statement "return lma - CONCAT44(-(local_20 + (uint)(local_24 != 0)) &\n                          lma._4_4_ - (uint)((uint)lma < sizeof_headers),\n                          -local_24 & (uint)lma - sizeof_headers);" return (binary_expression "lma - CONCAT44(-(local_20 + (uint)(local_24 != 0)) &\n                          lma._4_4_ - (uint)((uint)lma < sizeof_headers),\n                          -local_24 & (uint)lma - sizeof_headers)" identifier - (call_expression "CONCAT44(-(local_20 + (uint)(local_24 != 0)) &\n                          lma._4_4_ - (uint)((uint)lma < sizeof_headers),\n                          -local_24 & (uint)lma - sizeof_headers)" identifier (argument_list "(-(local_20 + (uint)(local_24 != 0)) &\n                          lma._4_4_ - (uint)((uint)lma < sizeof_headers),\n                          -local_24 & (uint)lma - sizeof_headers)" ( (binary_expression "-(local_20 + (uint)(local_24 != 0)) &\n                          lma._4_4_ - (uint)((uint)lma < sizeof_headers)" (unary_expression "-(local_20 + (uint)(local_24 != 0))" - (parenthesized_expression "(local_20 + (uint)(local_24 != 0))" ( (binary_expression "local_20 + (uint)(local_24 != 0)" identifier + (call_expression "(uint)(local_24 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )))) ))) & (binary_expression "lma._4_4_ - (uint)((uint)lma < sizeof_headers)" (field_expression "lma._4_4_" identifier . field_identifier) - (call_expression "(uint)((uint)lma < sizeof_headers)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)lma < sizeof_headers)" ( (binary_expression "(uint)lma < sizeof_headers" (cast_expression "(uint)lma" ( (type_descriptor "uint" type_identifier) ) identifier) < identifier) ))))) , (binary_expression "-local_24 & (uint)lma - sizeof_headers" (unary_expression "-local_24" - identifier) & (binary_expression "(uint)lma - sizeof_headers" (cast_expression "(uint)lma" ( (type_descriptor "uint" type_identifier) ) identifier) - identifier)) )))) ;) })) comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x5c,"options");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x5c,"options")" identifier (argument_list "("../../gold/parameters.h",0x5c,"options")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") ))) ;) })))
(translation_unit "undefined8 __regparm2\nFUN_00108650(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,\n            uint param_6)\n\n{\n  int iVar1;\n  uint uVar2;\n  int local_24;\n  int local_20;\n  \n  if (*(int *)(DAT_00302378 + 0xc) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }\n  iVar1 = *(int *)(DAT_00302378 + 8);\n  if (iVar1 != 0) {\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }\n                    \n  FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n}\n\n" (function_definition "undefined8 __regparm2\nFUN_00108650(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,\n            uint param_6)\n\n{\n  int iVar1;\n  uint uVar2;\n  int local_24;\n  int local_20;\n  \n  if (*(int *)(DAT_00302378 + 0xc) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }\n  iVar1 = *(int *)(DAT_00302378 + 8);\n  if (iVar1 != 0) {\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }\n                    \n  FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_00108650(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,\n            uint param_6)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,\n            uint param_6)" ( (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 "uint param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "uint param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int local_24;\n  int local_20;\n  \n  if (*(int *)(DAT_00302378 + 0xc) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }\n  iVar1 = *(int *)(DAT_00302378 + 8);\n  if (iVar1 != 0) {\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }\n                    \n  FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (if_statement "if (*(int *)(DAT_00302378 + 0xc) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }" if (parenthesized_expression "(*(int *)(DAT_00302378 + 0xc) == 0)" ( (binary_expression "*(int *)(DAT_00302378 + 0xc) == 0" (pointer_expression "*(int *)(DAT_00302378 + 0xc)" * (cast_expression "(int *)(DAT_00302378 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 0xc)" ( (binary_expression "DAT_00302378 + 0xc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }" { (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2)" identifier (argument_list "("../../gold/parameters.h",0x69,"target",param_2)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""target"" " string_content ") , identifier ))) ;) })) (expression_statement "iVar1 = *(int *)(DAT_00302378 + 8);" (assignment_expression "iVar1 = *(int *)(DAT_00302378 + 8)" identifier = (pointer_expression "*(int *)(DAT_00302378 + 8)" * (cast_expression "(int *)(DAT_00302378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 8)" ( (binary_expression "DAT_00302378 + 8" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 != 0) {\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }" { (expression_statement "local_20 = *(int *)(iVar1 + 0x521c);" (assignment_expression "local_20 = *(int *)(iVar1 + 0x521c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x521c)" * (cast_expression "(int *)(iVar1 + 0x521c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x521c)" ( (binary_expression "iVar1 + 0x521c" identifier + number_literal) ))))) ;) (expression_statement "local_24 = *(int *)(iVar1 + 0x5218);" (assignment_expression "local_24 = *(int *)(iVar1 + 0x5218)" identifier = (pointer_expression "*(int *)(iVar1 + 0x5218)" * (cast_expression "(int *)(iVar1 + 0x5218)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x5218)" ( (binary_expression "iVar1 + 0x5218" identifier + number_literal) ))))) ;) (if_statement "if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }" if (parenthesized_expression "(local_20 == 0 && local_24 == 0)" ( (binary_expression "local_20 == 0 && local_24 == 0" (binary_expression "local_20 == 0" identifier == number_literal) && (binary_expression "local_24 == 0" identifier == number_literal)) )) (compound_statement "{\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }" { (expression_statement "iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(DAT_00302378 + 0xc) + 4)" * (cast_expression "(int *)(*(int *)(DAT_00302378 + 0xc) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_00302378 + 0xc) + 4)" ( (binary_expression "*(int *)(DAT_00302378 + 0xc) + 4" (pointer_expression "*(int *)(DAT_00302378 + 0xc)" * (cast_expression "(int *)(DAT_00302378 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_00302378 + 0xc)" ( (binary_expression "DAT_00302378 + 0xc" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "local_20 = *(int *)(iVar1 + 0x24);" (assignment_expression "local_20 = *(int *)(iVar1 + 0x24)" identifier = (pointer_expression "*(int *)(iVar1 + 0x24)" * (cast_expression "(int *)(iVar1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "local_24 = *(int *)(iVar1 + 0x20);" (assignment_expression "local_24 = *(int *)(iVar1 + 0x20)" identifier = (pointer_expression "*(int *)(iVar1 + 0x20)" * (cast_expression "(int *)(iVar1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) ;) })) (expression_statement "uVar2 = -local_24 & param_4 - param_6;" (assignment_expression "uVar2 = -local_24 & param_4 - param_6" identifier = (binary_expression "-local_24 & param_4 - param_6" (unary_expression "-local_24" - identifier) & (binary_expression "param_4 - param_6" identifier - identifier))) ;) (return_statement "return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);" return (call_expression "CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2)" identifier (argument_list "((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2)" ( (binary_expression "(param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2)" (parenthesized_expression "(param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6)))" ( (binary_expression "param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))" identifier - (parenthesized_expression "(-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))" ( (binary_expression "-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6)" (unary_expression "-(local_20 + (uint)(local_24 != 0))" - (parenthesized_expression "(local_20 + (uint)(local_24 != 0))" ( (binary_expression "local_20 + (uint)(local_24 != 0)" identifier + (call_expression "(uint)(local_24 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_24 != 0)" ( (binary_expression "local_24 != 0" identifier != number_literal) )))) ))) & (binary_expression "param_5 - (uint)(param_4 < param_6)" identifier - (call_expression "(uint)(param_4 < param_6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 < param_6)" ( (binary_expression "param_4 < param_6" identifier < identifier) ))))) ))) )) - (call_expression "(uint)(param_4 < uVar2)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_4 < uVar2)" ( (binary_expression "param_4 < uVar2" identifier < identifier) )))) , (binary_expression "param_4 - uVar2" identifier - identifier) ))) ;) })) (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",0)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , number_literal ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (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 IDENT ;) (declaration TYPE 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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression - IDENT) & (binary_expression IDENT - IDENT))) ;) (return_statement return (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - (parenthesized_expression ( (binary_expression (unary_expression - (parenthesized_expression ( (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) ))) & (binary_expression IDENT - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) ))) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) , (binary_expression IDENT - IDENT) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , LIT ))) ;) })))
(function_definition "undefined8 __regparm2\nFUN_00108650(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,\n            uint param_6)\n\n{\n  int iVar1;\n  uint uVar2;\n  int local_24;\n  int local_20;\n  \n  if (*(int *)(DAT_00302378 + 0xc) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }\n  iVar1 = *(int *)(DAT_00302378 + 8);\n  if (iVar1 != 0) {\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }\n                    \n  FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n}" (type_identifier "undefined8") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00108650(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,\n            uint param_6)" (identifier "FUN_00108650") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,\n            uint param_6)" (( "(") (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 "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "uint param_6" (type_identifier "uint") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int local_24;\n  int local_20;\n  \n  if (*(int *)(DAT_00302378 + 0xc) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }\n  iVar1 = *(int *)(DAT_00302378 + 8);\n  if (iVar1 != 0) {\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }\n                    \n  FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (if_statement "if (*(int *)(DAT_00302378 + 0xc) == 0) {\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_00302378 + 0xc) == 0)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 0xc) == 0" (pointer_expression "*(int *)(DAT_00302378 + 0xc)" (* "*") (cast_expression "(int *)(DAT_00302378 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 0xc)" (( "(") (binary_expression "DAT_00302378 + 0xc" (identifier "DAT_00302378") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);\n  }" ({ "{") (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2)" (identifier "FUN_0005f0b0") (argument_list "("../../gold/parameters.h",0x69,"target",param_2)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x69") (, ",") (string_literal ""target"" (" """) (string_content "target") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(DAT_00302378 + 8);" (assignment_expression "iVar1 = *(int *)(DAT_00302378 + 8)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(DAT_00302378 + 8)" (* "*") (cast_expression "(int *)(DAT_00302378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 8)" (( "(") (binary_expression "DAT_00302378 + 8" (identifier "DAT_00302378") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (iVar1 != 0) {\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    local_20 = *(int *)(iVar1 + 0x521c);\n    local_24 = *(int *)(iVar1 + 0x5218);\n    if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }\n    uVar2 = -local_24 & param_4 - param_6;\n    return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);\n  }" ({ "{") (expression_statement "local_20 = *(int *)(iVar1 + 0x521c);" (assignment_expression "local_20 = *(int *)(iVar1 + 0x521c)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(iVar1 + 0x521c)" (* "*") (cast_expression "(int *)(iVar1 + 0x521c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x521c)" (( "(") (binary_expression "iVar1 + 0x521c" (identifier "iVar1") (+ "+") (number_literal "0x521c")) () ")"))))) (; ";")) (expression_statement "local_24 = *(int *)(iVar1 + 0x5218);" (assignment_expression "local_24 = *(int *)(iVar1 + 0x5218)" (identifier "local_24") (= "=") (pointer_expression "*(int *)(iVar1 + 0x5218)" (* "*") (cast_expression "(int *)(iVar1 + 0x5218)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x5218)" (( "(") (binary_expression "iVar1 + 0x5218" (identifier "iVar1") (+ "+") (number_literal "0x5218")) () ")"))))) (; ";")) (if_statement "if (local_20 == 0 && local_24 == 0) {\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }" (if "if") (parenthesized_expression "(local_20 == 0 && local_24 == 0)" (( "(") (binary_expression "local_20 == 0 && local_24 == 0" (binary_expression "local_20 == 0" (identifier "local_20") (== "==") (number_literal "0")) (&& "&&") (binary_expression "local_24 == 0" (identifier "local_24") (== "==") (number_literal "0"))) () ")")) (compound_statement "{\n      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);\n      local_20 = *(int *)(iVar1 + 0x24);\n      local_24 = *(int *)(iVar1 + 0x20);\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);" (assignment_expression "iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(DAT_00302378 + 0xc) + 4)" (* "*") (cast_expression "(int *)(*(int *)(DAT_00302378 + 0xc) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_00302378 + 0xc) + 4)" (( "(") (binary_expression "*(int *)(DAT_00302378 + 0xc) + 4" (pointer_expression "*(int *)(DAT_00302378 + 0xc)" (* "*") (cast_expression "(int *)(DAT_00302378 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_00302378 + 0xc)" (( "(") (binary_expression "DAT_00302378 + 0xc" (identifier "DAT_00302378") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "local_20 = *(int *)(iVar1 + 0x24);" (assignment_expression "local_20 = *(int *)(iVar1 + 0x24)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(iVar1 + 0x24)" (* "*") (cast_expression "(int *)(iVar1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "local_24 = *(int *)(iVar1 + 0x20);" (assignment_expression "local_24 = *(int *)(iVar1 + 0x20)" (identifier "local_24") (= "=") (pointer_expression "*(int *)(iVar1 + 0x20)" (* "*") (cast_expression "(int *)(iVar1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar2 = -local_24 & param_4 - param_6;" (assignment_expression "uVar2 = -local_24 & param_4 - param_6" (identifier "uVar2") (= "=") (binary_expression "-local_24 & param_4 - param_6" (unary_expression "-local_24" (- "-") (identifier "local_24")) (& "&") (binary_expression "param_4 - param_6" (identifier "param_4") (- "-") (identifier "param_6")))) (; ";")) (return_statement "return CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2);" (return "return") (call_expression "CONCAT44((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2)" (identifier "CONCAT44") (argument_list "((param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2),param_4 - uVar2)" (( "(") (binary_expression "(param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -\n                    (uint)(param_4 < uVar2)" (parenthesized_expression "(param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6)))" (( "(") (binary_expression "param_5 -\n                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))" (identifier "param_5") (- "-") (parenthesized_expression "(-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))" (( "(") (binary_expression "-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6)" (unary_expression "-(local_20 + (uint)(local_24 != 0))" (- "-") (parenthesized_expression "(local_20 + (uint)(local_24 != 0))" (( "(") (binary_expression "local_20 + (uint)(local_24 != 0)" (identifier "local_20") (+ "+") (call_expression "(uint)(local_24 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_24 != 0)" (( "(") (binary_expression "local_24 != 0" (identifier "local_24") (!= "!=") (number_literal "0")) () ")")))) () ")"))) (& "&") (binary_expression "param_5 - (uint)(param_4 < param_6)" (identifier "param_5") (- "-") (call_expression "(uint)(param_4 < param_6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_4 < param_6)" (( "(") (binary_expression "param_4 < param_6" (identifier "param_4") (< "<") (identifier "param_6")) () ")"))))) () ")"))) () ")")) (- "-") (call_expression "(uint)(param_4 < uVar2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_4 < uVar2)" (( "(") (binary_expression "param_4 < uVar2" (identifier "param_4") (< "<") (identifier "uVar2")) () ")")))) (, ",") (binary_expression "param_4 - uVar2" (identifier "param_4") (- "-") (identifier "uVar2")) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);" (call_expression "FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0)" (identifier "FUN_0005f0b0") (argument_list "("../../gold/parameters.h",0x5c,"options",0)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) (, ",") (number_literal "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: uint64_t header_size_adjustment(Script_sections * this, uint64_t lma,
   size_t sizeof_headers) */

uint64_t __thiscall
gold::type_1::function_1
          (type_1 *this,uint64_t var_6,size_t var_8)

{
  type_2 *var_2;
  int var_5;
  int var_4;
  int var_3;
  
  if (parameters->target_ == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/parameters.h",0x69,"target");
  }
  var_2 = parameters->options_;
  if (var_2 != (type_2 *)0x0) {
    var_3 = *(int *)((int)&(var_2->max_page_size_).value + 4);
    var_4 = (int)(var_2->max_page_size_).value;
    if (var_3 == 0 && var_4 == 0) {
      var_5 = *(int *)(parameters->target_ + 4);
      var_3 = *(int *)(var_5 + 0x24);
      var_4 = *(int *)(var_5 + 0x20);
    }
    return var_6 - var_7(-(var_3 + (type_4)(var_4 != 0)) &
                          var_6._4_4_ - (type_4)((type_4)var_6 < var_8),
                          -var_4 & (type_4)var_6 - var_8);
  }
                    /* WARNING: Subroutine does not return */
  var_1("../../gold/parameters.h",0x5c,"options");
}


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

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

undefined8 __regparm2
MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,uint param_4,int param_5,
            uint param_6)

{
  int iVar1;
  uint uVar2;
  int local_24;
  int local_20;
  
  if (*(int *)(DAT_00302378 + 0xc) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0005f0b0("../../gold/parameters.h",0x69,"target",param_2);
  }
  iVar1 = *(int *)(DAT_00302378 + 8);
  if (iVar1 != 0) {
    local_20 = *(int *)(iVar1 + 0x521c);
    local_24 = *(int *)(iVar1 + 0x5218);
    if (local_20 == 0 && local_24 == 0) {
      iVar1 = *(int *)(*(int *)(DAT_00302378 + 0xc) + 4);
      local_20 = *(int *)(iVar1 + 0x24);
      local_24 = *(int *)(iVar1 + 0x20);
    }
    uVar2 = -local_24 & param_4 - param_6;
    return CONCAT44((param_5 -
                    (-(local_20 + (uint)(local_24 != 0)) & param_5 - (uint)(param_4 < param_6))) -
                    (uint)(param_4 < uVar2),param_4 - uVar2);
  }
                    /* WARNING: Subroutine does not return */
  FUN_0005f0b0("../../gold/parameters.h",0x5c,"options",0);
}

