
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void frag_align(int alignment,int fill_character,int max)

{
  char *pcVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  
  if (now_seg == (segT)(PTR__bfd_std_section_0006efb4 + 0x180)) {
    uVar2 = -1 << ((byte)alignment & 0x1f);
    uVar3 = uVar2;
    uVar4 = 0xffffffff;
    if ((alignment & 0x20U) != 0) {
      uVar3 = 0;
      uVar4 = uVar2;
    }
    uVar2 = ((uint)abs_section_offset - 1) - uVar3 & uVar3;
    uVar4 = ((abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)) - uVar4) -
            (uint)((uint)abs_section_offset - 1 < uVar3) & uVar4;
    if ((max == 0) ||
       (uVar3 = (uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset),
       uVar3 <= (uint)(max >> 0x1f) &&
       (uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3)) {
      abs_section_offset._0_4_ = uVar2;
      abs_section_offset._4_4_ = uVar4;
      return;
    }
  }
  else {
    pcVar1 = frag_var(rs_align,1,1,max,(symbolS *)0x0,(longlong)alignment,(char *)0x0);
    *pcVar1 = (char)fill_character;
  }
  return;
}



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

void FUN_00024c40(uint param_1,undefined1 param_2,uint param_3)

{
  undefined1 *puVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  
  if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {
    uVar2 = -1 << ((byte)param_1 & 0x1f);
    uVar3 = uVar2;
    uVar4 = 0xffffffff;
    if ((param_1 & 0x20) != 0) {
      uVar3 = 0;
      uVar4 = uVar2;
    }
    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;
    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -
            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;
    if ((param_3 == 0) ||
       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),
       uVar3 <= (uint)((int)param_3 >> 0x1f) &&
       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {
      DAT_00077ef0 = uVar2;
      DAT_00077ef4 = uVar4;
      return;
    }
  }
  else {
    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);
    *puVar1 = param_2;
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016090
ADD EBX,0x4a3b7
SUB ESP,0x1c
MOV EAX,dword ptr [EBX + 0xffffffb4]
LEA EDX,[EBX + 0x8cfc]
ADD EAX,0x180
CMP dword ptr [EDX],EAX
JZ 0x00024c98
PUSH 0x0
MOV EAX,dword ptr [ESP + 0x34]
CDQ
PUSH EDX
PUSH EAX
PUSH 0x0
PUSH dword ptr [ESP + 0x48]
PUSH 0x1
PUSH 0x1
PUSH 0x2
CALL 0x00024ad0
MOV EDX,dword ptr [ESP + 0x54]
ADD ESP,0x20
MOV byte ptr [EAX],DL
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOVZX ECX,byte ptr [ESP + 0x30]
LEA EDI,[EBX + 0x8ef0]
MOV EAX,0xffffffff
XOR ESI,ESI
MOV EDX,0xffffffff
SHL EAX,CL
TEST CL,0x20
MOV dword ptr [ESP + 0x4],EDI
CMOVNZ EDX,EAX
CMOVNZ EAX,ESI
MOV ESI,dword ptr [EDI]
MOV EDI,dword ptr [EDI + 0x4]
MOV ECX,ESI
MOV EBX,EDI
MOV dword ptr [ESP + 0x8],ESI
ADD ECX,-0x1
MOV dword ptr [ESP + 0xc],EDI
ADC EBX,-0x1
SUB ECX,EAX
MOV EBP,ECX
SBB EBX,EDX
AND EBP,EAX
AND EBX,EDX
MOV ESI,EBP
MOV EBP,dword ptr [ESP + 0x38]
MOV EDI,EBX
TEST EBP,EBP
JZ 0x00024d0a
MOV ECX,dword ptr [ESP + 0x38]
MOV EDX,EBX
MOV EAX,ESI
SUB EAX,dword ptr [ESP + 0x8]
SBB EDX,dword ptr [ESP + 0xc]
MOV EBX,ECX
SAR EBX,0x1f
CMP dword ptr [ESP + 0x38],EAX
MOV ECX,EBX
SBB ECX,EDX
JC 0x00024c8a
MOV EAX,dword ptr [ESP + 0x4]
MOV dword ptr [EAX],ESI
MOV dword ptr [EAX + 0x4],EDI
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00024c40(uint param_1,undefined1 param_2,uint param_3)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }\n  else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00024c40(uint param_1,undefined1 param_2,uint param_3)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }\n  else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00024c40(uint param_1,undefined1 param_2,uint param_3)" identifier (parameter_list "(uint param_1,undefined1 param_2,uint param_3)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }\n  else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }\n  else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }" if (parenthesized_expression "(DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180)" ( (binary_expression "DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180" identifier == (binary_expression "PTR__bfd_std_section_0006efb4 + 0x180" identifier + number_literal)) )) (compound_statement "{\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }" { (expression_statement "uVar2 = -1 << ((byte)param_1 & 0x1f);" (assignment_expression "uVar2 = -1 << ((byte)param_1 & 0x1f)" identifier = (binary_expression "-1 << ((byte)param_1 & 0x1f)" number_literal << (parenthesized_expression "((byte)param_1 & 0x1f)" ( (binary_expression "(byte)param_1 & 0x1f" (cast_expression "(byte)param_1" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }" if (parenthesized_expression "((param_1 & 0x20) != 0)" ( (binary_expression "(param_1 & 0x20) != 0" (parenthesized_expression "(param_1 & 0x20)" ( (binary_expression "param_1 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) })) (expression_statement "uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;" (assignment_expression "uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3" identifier = (binary_expression "(DAT_00077ef0 - 1) - uVar3 & uVar3" (binary_expression "(DAT_00077ef0 - 1) - uVar3" (parenthesized_expression "(DAT_00077ef0 - 1)" ( (binary_expression "DAT_00077ef0 - 1" identifier - number_literal) )) - identifier) & identifier)) ;) (expression_statement "uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;" (assignment_expression "uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4" identifier = (binary_expression "((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4" (binary_expression "((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3)" (parenthesized_expression "((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4)" ( (binary_expression "(DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4" (parenthesized_expression "(DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0))" ( (binary_expression "DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)" (binary_expression "DAT_00077ef4 + -1" identifier + number_literal) + (call_expression "(uint)(DAT_00077ef0 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00077ef0 != 0)" ( (binary_expression "DAT_00077ef0 != 0" identifier != number_literal) )))) )) - identifier) )) - (call_expression "(uint)(DAT_00077ef0 - 1 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00077ef0 - 1 < uVar3)" ( (binary_expression "DAT_00077ef0 - 1 < uVar3" (binary_expression "DAT_00077ef0 - 1" identifier - number_literal) < identifier) )))) & identifier)) ;) (if_statement "if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }" if (parenthesized_expression "((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3))" ( (binary_expression "(param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)" ( (comma_expression "uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3" (assignment_expression "uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0)" identifier = (binary_expression "(uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0)" (parenthesized_expression "(uVar4 - DAT_00077ef4)" ( (binary_expression "uVar4 - DAT_00077ef4" identifier - identifier) )) - (call_expression "(uint)(uVar2 < DAT_00077ef0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < DAT_00077ef0)" ( (binary_expression "uVar2 < DAT_00077ef0" identifier < identifier) ))))) , (binary_expression "uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3" (binary_expression "uVar3 <= (uint)((int)param_3 >> 0x1f)" identifier <= (call_expression "(uint)((int)param_3 >> 0x1f)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_3 >> 0x1f)" ( (binary_expression "(int)param_3 >> 0x1f" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) && (binary_expression "(uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3" (call_expression "(uint)(param_3 < uVar2 - DAT_00077ef0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 < uVar2 - DAT_00077ef0)" ( (binary_expression "param_3 < uVar2 - DAT_00077ef0" identifier < (binary_expression "uVar2 - DAT_00077ef0" identifier - identifier)) ))) <= (binary_expression "((int)param_3 >> 0x1f) - uVar3" (parenthesized_expression "((int)param_3 >> 0x1f)" ( (binary_expression "(int)param_3 >> 0x1f" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) - identifier)))) ))) )) (compound_statement "{\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }" { (expression_statement "DAT_00077ef0 = uVar2;" (assignment_expression "DAT_00077ef0 = uVar2" identifier = identifier) ;) (expression_statement "DAT_00077ef4 = uVar4;" (assignment_expression "DAT_00077ef4 = uVar4" identifier = identifier) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }" else (compound_statement "{\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }" { (expression_statement "puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);" (assignment_expression "puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0)" identifier = (cast_expression "(undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0)" identifier (argument_list "(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0)" ( number_literal , number_literal , number_literal , identifier , number_literal , identifier , (binary_expression "(int)param_1 >> 0x1f" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) , number_literal ))))) ;) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid frag_align(int alignment,int fill_character,int max)\n\n{\n  char *pcVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (now_seg == (segT)(PTR__bfd_std_section_0006efb4 + 0x180)) {\n    uVar2 = -1 << ((byte)alignment & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((alignment & 0x20U) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = ((uint)abs_section_offset - 1) - uVar3 & uVar3;\n    uVar4 = ((abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)) - uVar4) -\n            (uint)((uint)abs_section_offset - 1 < uVar3) & uVar4;\n    if ((max == 0) ||\n       (uVar3 = (uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset),\n       uVar3 <= (uint)(max >> 0x1f) &&\n       (uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3)) {\n      abs_section_offset._0_4_ = uVar2;\n      abs_section_offset._4_4_ = uVar4;\n      return;\n    }\n  }\n  else {\n    pcVar1 = frag_var(rs_align,1,1,max,(symbolS *)0x0,(longlong)alignment,(char *)0x0);\n    *pcVar1 = (char)fill_character;\n  }\n  return;\n}\n\n" comment comment (function_definition "void frag_align(int alignment,int fill_character,int max)\n\n{\n  char *pcVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (now_seg == (segT)(PTR__bfd_std_section_0006efb4 + 0x180)) {\n    uVar2 = -1 << ((byte)alignment & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((alignment & 0x20U) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = ((uint)abs_section_offset - 1) - uVar3 & uVar3;\n    uVar4 = ((abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)) - uVar4) -\n            (uint)((uint)abs_section_offset - 1 < uVar3) & uVar4;\n    if ((max == 0) ||\n       (uVar3 = (uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset),\n       uVar3 <= (uint)(max >> 0x1f) &&\n       (uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3)) {\n      abs_section_offset._0_4_ = uVar2;\n      abs_section_offset._4_4_ = uVar4;\n      return;\n    }\n  }\n  else {\n    pcVar1 = frag_var(rs_align,1,1,max,(symbolS *)0x0,(longlong)alignment,(char *)0x0);\n    *pcVar1 = (char)fill_character;\n  }\n  return;\n}" primitive_type (function_declarator "frag_align(int alignment,int fill_character,int max)" identifier (parameter_list "(int alignment,int fill_character,int max)" ( (parameter_declaration "int alignment" primitive_type identifier) , (parameter_declaration "int fill_character" primitive_type identifier) , (parameter_declaration "int max" primitive_type identifier) ))) (compound_statement "{\n  char *pcVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (now_seg == (segT)(PTR__bfd_std_section_0006efb4 + 0x180)) {\n    uVar2 = -1 << ((byte)alignment & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((alignment & 0x20U) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = ((uint)abs_section_offset - 1) - uVar3 & uVar3;\n    uVar4 = ((abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)) - uVar4) -\n            (uint)((uint)abs_section_offset - 1 < uVar3) & uVar4;\n    if ((max == 0) ||\n       (uVar3 = (uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset),\n       uVar3 <= (uint)(max >> 0x1f) &&\n       (uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3)) {\n      abs_section_offset._0_4_ = uVar2;\n      abs_section_offset._4_4_ = uVar4;\n      return;\n    }\n  }\n  else {\n    pcVar1 = frag_var(rs_align,1,1,max,(symbolS *)0x0,(longlong)alignment,(char *)0x0);\n    *pcVar1 = (char)fill_character;\n  }\n  return;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (now_seg == (segT)(PTR__bfd_std_section_0006efb4 + 0x180)) {\n    uVar2 = -1 << ((byte)alignment & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((alignment & 0x20U) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = ((uint)abs_section_offset - 1) - uVar3 & uVar3;\n    uVar4 = ((abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)) - uVar4) -\n            (uint)((uint)abs_section_offset - 1 < uVar3) & uVar4;\n    if ((max == 0) ||\n       (uVar3 = (uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset),\n       uVar3 <= (uint)(max >> 0x1f) &&\n       (uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3)) {\n      abs_section_offset._0_4_ = uVar2;\n      abs_section_offset._4_4_ = uVar4;\n      return;\n    }\n  }\n  else {\n    pcVar1 = frag_var(rs_align,1,1,max,(symbolS *)0x0,(longlong)alignment,(char *)0x0);\n    *pcVar1 = (char)fill_character;\n  }" if (parenthesized_expression "(now_seg == (segT)(PTR__bfd_std_section_0006efb4 + 0x180))" ( (binary_expression "now_seg == (segT)(PTR__bfd_std_section_0006efb4 + 0x180)" identifier == (call_expression "(segT)(PTR__bfd_std_section_0006efb4 + 0x180)" (parenthesized_expression "(segT)" ( identifier )) (argument_list "(PTR__bfd_std_section_0006efb4 + 0x180)" ( (binary_expression "PTR__bfd_std_section_0006efb4 + 0x180" identifier + number_literal) )))) )) (compound_statement "{\n    uVar2 = -1 << ((byte)alignment & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((alignment & 0x20U) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = ((uint)abs_section_offset - 1) - uVar3 & uVar3;\n    uVar4 = ((abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)) - uVar4) -\n            (uint)((uint)abs_section_offset - 1 < uVar3) & uVar4;\n    if ((max == 0) ||\n       (uVar3 = (uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset),\n       uVar3 <= (uint)(max >> 0x1f) &&\n       (uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3)) {\n      abs_section_offset._0_4_ = uVar2;\n      abs_section_offset._4_4_ = uVar4;\n      return;\n    }\n  }" { (expression_statement "uVar2 = -1 << ((byte)alignment & 0x1f);" (assignment_expression "uVar2 = -1 << ((byte)alignment & 0x1f)" identifier = (binary_expression "-1 << ((byte)alignment & 0x1f)" number_literal << (parenthesized_expression "((byte)alignment & 0x1f)" ( (binary_expression "(byte)alignment & 0x1f" (cast_expression "(byte)alignment" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if ((alignment & 0x20U) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }" if (parenthesized_expression "((alignment & 0x20U) != 0)" ( (binary_expression "(alignment & 0x20U) != 0" (parenthesized_expression "(alignment & 0x20U)" ( (binary_expression "alignment & 0x20U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) })) (expression_statement "uVar2 = ((uint)abs_section_offset - 1) - uVar3 & uVar3;" (assignment_expression "uVar2 = ((uint)abs_section_offset - 1) - uVar3 & uVar3" identifier = (binary_expression "((uint)abs_section_offset - 1) - uVar3 & uVar3" (binary_expression "((uint)abs_section_offset - 1) - uVar3" (parenthesized_expression "((uint)abs_section_offset - 1)" ( (binary_expression "(uint)abs_section_offset - 1" (cast_expression "(uint)abs_section_offset" ( (type_descriptor "uint" type_identifier) ) identifier) - number_literal) )) - identifier) & identifier)) ;) (expression_statement "uVar4 = ((abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)) - uVar4) -\n            (uint)((uint)abs_section_offset - 1 < uVar3) & uVar4;" (assignment_expression "uVar4 = ((abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)) - uVar4) -\n            (uint)((uint)abs_section_offset - 1 < uVar3) & uVar4" identifier = (binary_expression "((abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)) - uVar4) -\n            (uint)((uint)abs_section_offset - 1 < uVar3) & uVar4" (binary_expression "((abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)) - uVar4) -\n            (uint)((uint)abs_section_offset - 1 < uVar3)" (parenthesized_expression "((abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)) - uVar4)" ( (binary_expression "(abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)) - uVar4" (parenthesized_expression "(abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0))" ( (binary_expression "abs_section_offset._4_4_ + -1 + (uint)((uint)abs_section_offset != 0)" (binary_expression "abs_section_offset._4_4_ + -1" (field_expression "abs_section_offset._4_4_" identifier . field_identifier) + number_literal) + (call_expression "(uint)((uint)abs_section_offset != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)abs_section_offset != 0)" ( (binary_expression "(uint)abs_section_offset != 0" (cast_expression "(uint)abs_section_offset" ( (type_descriptor "uint" type_identifier) ) identifier) != number_literal) )))) )) - identifier) )) - (call_expression "(uint)((uint)abs_section_offset - 1 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)abs_section_offset - 1 < uVar3)" ( (binary_expression "(uint)abs_section_offset - 1 < uVar3" (binary_expression "(uint)abs_section_offset - 1" (cast_expression "(uint)abs_section_offset" ( (type_descriptor "uint" type_identifier) ) identifier) - number_literal) < identifier) )))) & identifier)) ;) (if_statement "if ((max == 0) ||\n       (uVar3 = (uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset),\n       uVar3 <= (uint)(max >> 0x1f) &&\n       (uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3)) {\n      abs_section_offset._0_4_ = uVar2;\n      abs_section_offset._4_4_ = uVar4;\n      return;\n    }" if (parenthesized_expression "((max == 0) ||\n       (uVar3 = (uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset),\n       uVar3 <= (uint)(max >> 0x1f) &&\n       (uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3))" ( (binary_expression "(max == 0) ||\n       (uVar3 = (uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset),\n       uVar3 <= (uint)(max >> 0x1f) &&\n       (uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3)" (parenthesized_expression "(max == 0)" ( (binary_expression "max == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar3 = (uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset),\n       uVar3 <= (uint)(max >> 0x1f) &&\n       (uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3)" ( (comma_expression "uVar3 = (uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset),\n       uVar3 <= (uint)(max >> 0x1f) &&\n       (uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3" (assignment_expression "uVar3 = (uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset)" identifier = (binary_expression "(uVar4 - abs_section_offset._4_4_) - (uint)(uVar2 < (uint)abs_section_offset)" (parenthesized_expression "(uVar4 - abs_section_offset._4_4_)" ( (binary_expression "uVar4 - abs_section_offset._4_4_" identifier - (field_expression "abs_section_offset._4_4_" identifier . field_identifier)) )) - (call_expression "(uint)(uVar2 < (uint)abs_section_offset)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < (uint)abs_section_offset)" ( (binary_expression "uVar2 < (uint)abs_section_offset" identifier < (cast_expression "(uint)abs_section_offset" ( (type_descriptor "uint" type_identifier) ) identifier)) ))))) , (binary_expression "uVar3 <= (uint)(max >> 0x1f) &&\n       (uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3" (binary_expression "uVar3 <= (uint)(max >> 0x1f)" identifier <= (call_expression "(uint)(max >> 0x1f)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(max >> 0x1f)" ( (binary_expression "max >> 0x1f" identifier >> number_literal) )))) && (binary_expression "(uint)((uint)max < uVar2 - (uint)abs_section_offset) <= (max >> 0x1f) - uVar3" (call_expression "(uint)((uint)max < uVar2 - (uint)abs_section_offset)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((uint)max < uVar2 - (uint)abs_section_offset)" ( (binary_expression "(uint)max < uVar2 - (uint)abs_section_offset" (cast_expression "(uint)max" ( (type_descriptor "uint" type_identifier) ) identifier) < (binary_expression "uVar2 - (uint)abs_section_offset" identifier - (cast_expression "(uint)abs_section_offset" ( (type_descriptor "uint" type_identifier) ) identifier))) ))) <= (binary_expression "(max >> 0x1f) - uVar3" (parenthesized_expression "(max >> 0x1f)" ( (binary_expression "max >> 0x1f" identifier >> number_literal) )) - identifier)))) ))) )) (compound_statement "{\n      abs_section_offset._0_4_ = uVar2;\n      abs_section_offset._4_4_ = uVar4;\n      return;\n    }" { (expression_statement "abs_section_offset._0_4_ = uVar2;" (assignment_expression "abs_section_offset._0_4_ = uVar2" (field_expression "abs_section_offset._0_4_" identifier . field_identifier) = identifier) ;) (expression_statement "abs_section_offset._4_4_ = uVar4;" (assignment_expression "abs_section_offset._4_4_ = uVar4" (field_expression "abs_section_offset._4_4_" identifier . field_identifier) = identifier) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    pcVar1 = frag_var(rs_align,1,1,max,(symbolS *)0x0,(longlong)alignment,(char *)0x0);\n    *pcVar1 = (char)fill_character;\n  }" else (compound_statement "{\n    pcVar1 = frag_var(rs_align,1,1,max,(symbolS *)0x0,(longlong)alignment,(char *)0x0);\n    *pcVar1 = (char)fill_character;\n  }" { (expression_statement "pcVar1 = frag_var(rs_align,1,1,max,(symbolS *)0x0,(longlong)alignment,(char *)0x0);" (assignment_expression "pcVar1 = frag_var(rs_align,1,1,max,(symbolS *)0x0,(longlong)alignment,(char *)0x0)" identifier = (call_expression "frag_var(rs_align,1,1,max,(symbolS *)0x0,(longlong)alignment,(char *)0x0)" identifier (argument_list "(rs_align,1,1,max,(symbolS *)0x0,(longlong)alignment,(char *)0x0)" ( identifier , number_literal , number_literal , identifier , (cast_expression "(symbolS *)0x0" ( (type_descriptor "symbolS *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(longlong)alignment" ( (type_descriptor "longlong" type_identifier) ) identifier) , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "*pcVar1 = (char)fill_character;" (assignment_expression "*pcVar1 = (char)fill_character" (pointer_expression "*pcVar1" * identifier) = (cast_expression "(char)fill_character" ( (type_descriptor "char" primitive_type) ) identifier)) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00024c40(uint param_1,undefined1 param_2,uint param_3)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }\n  else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }\n  return;\n}\n\n" (function_definition "void FUN_00024c40(uint param_1,undefined1 param_2,uint param_3)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }\n  else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00024c40(uint param_1,undefined1 param_2,uint param_3)" identifier (parameter_list "(uint param_1,undefined1 param_2,uint param_3)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }\n  else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }\n  else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }" if (parenthesized_expression "(DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180)" ( (binary_expression "DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180" identifier == (binary_expression "PTR__bfd_std_section_0006efb4 + 0x180" identifier + number_literal)) )) (compound_statement "{\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }" { (expression_statement "uVar2 = -1 << ((byte)param_1 & 0x1f);" (assignment_expression "uVar2 = -1 << ((byte)param_1 & 0x1f)" identifier = (binary_expression "-1 << ((byte)param_1 & 0x1f)" number_literal << (parenthesized_expression "((byte)param_1 & 0x1f)" ( (binary_expression "(byte)param_1 & 0x1f" (cast_expression "(byte)param_1" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) (if_statement "if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }" if (parenthesized_expression "((param_1 & 0x20) != 0)" ( (binary_expression "(param_1 & 0x20) != 0" (parenthesized_expression "(param_1 & 0x20)" ( (binary_expression "param_1 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" identifier = identifier) ;) })) (expression_statement "uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;" (assignment_expression "uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3" identifier = (binary_expression "(DAT_00077ef0 - 1) - uVar3 & uVar3" (binary_expression "(DAT_00077ef0 - 1) - uVar3" (parenthesized_expression "(DAT_00077ef0 - 1)" ( (binary_expression "DAT_00077ef0 - 1" identifier - number_literal) )) - identifier) & identifier)) ;) (expression_statement "uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;" (assignment_expression "uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4" identifier = (binary_expression "((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4" (binary_expression "((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3)" (parenthesized_expression "((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4)" ( (binary_expression "(DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4" (parenthesized_expression "(DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0))" ( (binary_expression "DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)" (binary_expression "DAT_00077ef4 + -1" identifier + number_literal) + (call_expression "(uint)(DAT_00077ef0 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00077ef0 != 0)" ( (binary_expression "DAT_00077ef0 != 0" identifier != number_literal) )))) )) - identifier) )) - (call_expression "(uint)(DAT_00077ef0 - 1 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_00077ef0 - 1 < uVar3)" ( (binary_expression "DAT_00077ef0 - 1 < uVar3" (binary_expression "DAT_00077ef0 - 1" identifier - number_literal) < identifier) )))) & identifier)) ;) (if_statement "if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }" if (parenthesized_expression "((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3))" ( (binary_expression "(param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)" (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)" ( (comma_expression "uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3" (assignment_expression "uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0)" identifier = (binary_expression "(uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0)" (parenthesized_expression "(uVar4 - DAT_00077ef4)" ( (binary_expression "uVar4 - DAT_00077ef4" identifier - identifier) )) - (call_expression "(uint)(uVar2 < DAT_00077ef0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < DAT_00077ef0)" ( (binary_expression "uVar2 < DAT_00077ef0" identifier < identifier) ))))) , (binary_expression "uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3" (binary_expression "uVar3 <= (uint)((int)param_3 >> 0x1f)" identifier <= (call_expression "(uint)((int)param_3 >> 0x1f)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)param_3 >> 0x1f)" ( (binary_expression "(int)param_3 >> 0x1f" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) && (binary_expression "(uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3" (call_expression "(uint)(param_3 < uVar2 - DAT_00077ef0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 < uVar2 - DAT_00077ef0)" ( (binary_expression "param_3 < uVar2 - DAT_00077ef0" identifier < (binary_expression "uVar2 - DAT_00077ef0" identifier - identifier)) ))) <= (binary_expression "((int)param_3 >> 0x1f) - uVar3" (parenthesized_expression "((int)param_3 >> 0x1f)" ( (binary_expression "(int)param_3 >> 0x1f" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) - identifier)))) ))) )) (compound_statement "{\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }" { (expression_statement "DAT_00077ef0 = uVar2;" (assignment_expression "DAT_00077ef0 = uVar2" identifier = identifier) ;) (expression_statement "DAT_00077ef4 = uVar4;" (assignment_expression "DAT_00077ef4 = uVar4" identifier = identifier) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }" else (compound_statement "{\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }" { (expression_statement "puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);" (assignment_expression "puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0)" identifier = (cast_expression "(undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0)" identifier (argument_list "(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0)" ( number_literal , number_literal , number_literal , identifier , number_literal , identifier , (binary_expression "(int)param_1 >> 0x1f" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) , number_literal ))))) ;) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - LIT) )) - IDENT) & IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) )) - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT - LIT) < IDENT) )))) & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) , (binary_expression (binary_expression IDENT <= (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) && (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < (binary_expression IDENT - IDENT)) ))) <= (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) - IDENT)))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT , LIT , IDENT , LIT , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_00024c40(uint param_1,undefined1 param_2,uint param_3)\n\n{\n  undefined1 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }\n  else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00024c40(uint param_1,undefined1 param_2,uint param_3)" (identifier "FUN_00024c40") (parameter_list "(uint param_1,undefined1 param_2,uint param_3)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }\n  else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }\n  return;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (if_statement "if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }\n  else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }" (if "if") (parenthesized_expression "(DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180)" (( "(") (binary_expression "DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180" (identifier "DAT_00077cfc") (== "==") (binary_expression "PTR__bfd_std_section_0006efb4 + 0x180" (identifier "PTR__bfd_std_section_0006efb4") (+ "+") (number_literal "0x180"))) () ")")) (compound_statement "{\n    uVar2 = -1 << ((byte)param_1 & 0x1f);\n    uVar3 = uVar2;\n    uVar4 = 0xffffffff;\n    if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }\n    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;\n    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;\n    if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }\n  }" ({ "{") (expression_statement "uVar2 = -1 << ((byte)param_1 & 0x1f);" (assignment_expression "uVar2 = -1 << ((byte)param_1 & 0x1f)" (identifier "uVar2") (= "=") (binary_expression "-1 << ((byte)param_1 & 0x1f)" (number_literal "-1") (<< "<<") (parenthesized_expression "((byte)param_1 & 0x1f)" (( "(") (binary_expression "(byte)param_1 & 0x1f" (cast_expression "(byte)param_1" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_1")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" (identifier "uVar3") (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" (identifier "uVar4") (= "=") (number_literal "0xffffffff")) (; ";")) (if_statement "if ((param_1 & 0x20) != 0) {\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }" (if "if") (parenthesized_expression "((param_1 & 0x20) != 0)" (( "(") (binary_expression "(param_1 & 0x20) != 0" (parenthesized_expression "(param_1 & 0x20)" (( "(") (binary_expression "param_1 & 0x20" (identifier "param_1") (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = 0;\n      uVar4 = uVar2;\n    }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = uVar2;" (assignment_expression "uVar4 = uVar2" (identifier "uVar4") (= "=") (identifier "uVar2")) (; ";")) (} "}"))) (expression_statement "uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;" (assignment_expression "uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3" (identifier "uVar2") (= "=") (binary_expression "(DAT_00077ef0 - 1) - uVar3 & uVar3" (binary_expression "(DAT_00077ef0 - 1) - uVar3" (parenthesized_expression "(DAT_00077ef0 - 1)" (( "(") (binary_expression "DAT_00077ef0 - 1" (identifier "DAT_00077ef0") (- "-") (number_literal "1")) () ")")) (- "-") (identifier "uVar3")) (& "&") (identifier "uVar3"))) (; ";")) (expression_statement "uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;" (assignment_expression "uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4" (identifier "uVar4") (= "=") (binary_expression "((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4" (binary_expression "((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -\n            (uint)(DAT_00077ef0 - 1 < uVar3)" (parenthesized_expression "((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4)" (( "(") (binary_expression "(DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4" (parenthesized_expression "(DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0))" (( "(") (binary_expression "DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)" (binary_expression "DAT_00077ef4 + -1" (identifier "DAT_00077ef4") (+ "+") (number_literal "-1")) (+ "+") (call_expression "(uint)(DAT_00077ef0 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(DAT_00077ef0 != 0)" (( "(") (binary_expression "DAT_00077ef0 != 0" (identifier "DAT_00077ef0") (!= "!=") (number_literal "0")) () ")")))) () ")")) (- "-") (identifier "uVar4")) () ")")) (- "-") (call_expression "(uint)(DAT_00077ef0 - 1 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(DAT_00077ef0 - 1 < uVar3)" (( "(") (binary_expression "DAT_00077ef0 - 1 < uVar3" (binary_expression "DAT_00077ef0 - 1" (identifier "DAT_00077ef0") (- "-") (number_literal "1")) (< "<") (identifier "uVar3")) () ")")))) (& "&") (identifier "uVar4"))) (; ";")) (if_statement "if ((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }" (if "if") (parenthesized_expression "((param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3))" (( "(") (binary_expression "(param_3 == 0) ||\n       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)" (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)" (( "(") (comma_expression "uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),\n       uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3" (assignment_expression "uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0)" (identifier "uVar3") (= "=") (binary_expression "(uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0)" (parenthesized_expression "(uVar4 - DAT_00077ef4)" (( "(") (binary_expression "uVar4 - DAT_00077ef4" (identifier "uVar4") (- "-") (identifier "DAT_00077ef4")) () ")")) (- "-") (call_expression "(uint)(uVar2 < DAT_00077ef0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar2 < DAT_00077ef0)" (( "(") (binary_expression "uVar2 < DAT_00077ef0" (identifier "uVar2") (< "<") (identifier "DAT_00077ef0")) () ")"))))) (, ",") (binary_expression "uVar3 <= (uint)((int)param_3 >> 0x1f) &&\n       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3" (binary_expression "uVar3 <= (uint)((int)param_3 >> 0x1f)" (identifier "uVar3") (<= "<=") (call_expression "(uint)((int)param_3 >> 0x1f)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)param_3 >> 0x1f)" (( "(") (binary_expression "(int)param_3 >> 0x1f" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (>> ">>") (number_literal "0x1f")) () ")")))) (&& "&&") (binary_expression "(uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3" (call_expression "(uint)(param_3 < uVar2 - DAT_00077ef0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 < uVar2 - DAT_00077ef0)" (( "(") (binary_expression "param_3 < uVar2 - DAT_00077ef0" (identifier "param_3") (< "<") (binary_expression "uVar2 - DAT_00077ef0" (identifier "uVar2") (- "-") (identifier "DAT_00077ef0"))) () ")"))) (<= "<=") (binary_expression "((int)param_3 >> 0x1f) - uVar3" (parenthesized_expression "((int)param_3 >> 0x1f)" (( "(") (binary_expression "(int)param_3 >> 0x1f" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (>> ">>") (number_literal "0x1f")) () ")")) (- "-") (identifier "uVar3"))))) () ")"))) () ")")) (compound_statement "{\n      DAT_00077ef0 = uVar2;\n      DAT_00077ef4 = uVar4;\n      return;\n    }" ({ "{") (expression_statement "DAT_00077ef0 = uVar2;" (assignment_expression "DAT_00077ef0 = uVar2" (identifier "DAT_00077ef0") (= "=") (identifier "uVar2")) (; ";")) (expression_statement "DAT_00077ef4 = uVar4;" (assignment_expression "DAT_00077ef4 = uVar4" (identifier "DAT_00077ef4") (= "=") (identifier "uVar4")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }" (else "else") (compound_statement "{\n    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);\n    *puVar1 = param_2;\n  }" ({ "{") (expression_statement "puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);" (assignment_expression "puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0)" (identifier "FUN_00024ad0") (argument_list "(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0)" (( "(") (number_literal "2") (, ",") (number_literal "1") (, ",") (number_literal "1") (, ",") (identifier "param_3") (, ",") (number_literal "0") (, ",") (identifier "param_1") (, ",") (binary_expression "(int)param_1 >> 0x1f" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (>> ">>") (number_literal "0x1f")) (, ",") (number_literal "0") () ")"))))) (; ";")) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_2")) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(int var_3,int fill_character,int var_6)

{
  char *pcVar1;
  type_1 var_7;
  type_1 var_4;
  type_1 var_5;
  
  if (var_1 == (segT)(var_2 + 0x180)) {
    var_7 = -1 << ((type_2)var_3 & 0x1f);
    var_4 = var_7;
    var_5 = 0xffffffff;
    if ((var_3 & 0x20U) != 0) {
      var_4 = 0;
      var_5 = var_7;
    }
    var_7 = ((type_1)abs_section_offset - 1) - var_4 & var_4;
    var_5 = ((abs_section_offset._4_4_ + -1 + (type_1)((type_1)abs_section_offset != 0)) - var_5) -
            (type_1)((type_1)abs_section_offset - 1 < var_4) & var_5;
    if ((var_6 == 0) ||
       (var_4 = (var_5 - abs_section_offset._4_4_) - (type_1)(var_7 < (type_1)abs_section_offset),
       var_4 <= (type_1)(var_6 >> 0x1f) &&
       (type_1)((type_1)var_6 < var_7 - (type_1)abs_section_offset) <= (var_6 >> 0x1f) - var_4)) {
      abs_section_offset._0_4_ = var_7;
      abs_section_offset._4_4_ = var_5;
      return;
    }
  }
  else {
    pcVar1 = var_8(rs_align,1,1,var_6,(type_3 *)0x0,(type_4)var_3,(char *)0x0);
    *pcVar1 = (char)fill_character;
  }
  return;
}


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

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

void MASKED(uint param_1,undefined1 param_2,uint param_3)

{
  undefined1 *puVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  
  if (DAT_00077cfc == PTR__bfd_std_section_0006efb4 + 0x180) {
    uVar2 = -1 << ((byte)param_1 & 0x1f);
    uVar3 = uVar2;
    uVar4 = 0xffffffff;
    if ((param_1 & 0x20) != 0) {
      uVar3 = 0;
      uVar4 = uVar2;
    }
    uVar2 = (DAT_00077ef0 - 1) - uVar3 & uVar3;
    uVar4 = ((DAT_00077ef4 + -1 + (uint)(DAT_00077ef0 != 0)) - uVar4) -
            (uint)(DAT_00077ef0 - 1 < uVar3) & uVar4;
    if ((param_3 == 0) ||
       (uVar3 = (uVar4 - DAT_00077ef4) - (uint)(uVar2 < DAT_00077ef0),
       uVar3 <= (uint)((int)param_3 >> 0x1f) &&
       (uint)(param_3 < uVar2 - DAT_00077ef0) <= ((int)param_3 >> 0x1f) - uVar3)) {
      DAT_00077ef0 = uVar2;
      DAT_00077ef4 = uVar4;
      return;
    }
  }
  else {
    puVar1 = (undefined1 *)FUN_00024ad0(2,1,1,param_3,0,param_1,(int)param_1 >> 0x1f,0);
    *puVar1 = param_2;
  }
  return;
}

