
void zbc_num_divmod(void)

{
                    /* WARNING: Subroutine does not return */
  __x86_get_pc_thunk_di();
}



undefined4 FUN_00022de9(undefined4 param_1,int param_2)

{
  uint *puVar1;
  uint uVar2;
  undefined4 uVar3;
  uint *extraout_ECX;
  int iVar4;
  undefined4 extraout_ECX_00;
  int iVar5;
  uint uVar6;
  uint *puVar7;
  int unaff_EDI;
  uint *puVar8;
  int in_GS_OFFSET;
  byte bVar9;
  undefined8 uVar10;
  uint local_4c;
  uint local_34 [2];
  int local_2c;
  undefined4 local_20;
  
  bVar9 = 0;
  uVar10 = FUN_00027c55();
  iVar5 = (int)((ulonglong)uVar10 >> 0x20);
  puVar1 = (uint *)uVar10;
  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  uVar6 = puVar1[1];
  iVar4 = *(int *)(iVar5 + 4);
  local_4c = param_2 + iVar4;
  if ((uint)(param_2 + iVar4) < uVar6) {
    local_4c = uVar6;
  }
  uVar2 = local_4c;
  if (local_4c <= uVar6 + iVar4) {
    uVar2 = uVar6 + iVar4;
  }
  uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;
  if (uVar6 < 0x10) {
    uVar6 = 0x10;
  }
  if (puVar1 == extraout_ECX) {
    puVar7 = puVar1;
    puVar8 = local_34;
    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {
      *puVar8 = *puVar7;
      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;
      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;
    }
    uVar2 = FUN_0001a288();
    *puVar1 = uVar2;
    puVar1[3] = uVar6;
    puVar1[1] = 0;
    puVar1[2] = 0;
    *(undefined1 *)(puVar1 + 4) = 0;
    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);
    free((void *)(unaff_EDI + 0xb8c2b));
  }
  else {
    if (extraout_ECX[3] < uVar6) {
      uVar2 = FUN_0001a2be();
      *extraout_ECX = uVar2;
      extraout_ECX[3] = uVar6;
    }
    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);
  }
  if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00017e20();
  }
  return uVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x3c
CALL 0x00027c55
ADD EDI,0xb8c2b
MOV dword ptr [ESP + 0xc],EDI
MOV EBP,EAX
MOV dword ptr [ESP + 0x4],EDX
MOV EAX,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EBP + 0x4]
MOV EDX,dword ptr [EDX + 0x4]
MOV ESI,dword ptr [ESP + 0x54]
ADD ESI,EDX
MOV dword ptr [ESP],ESI
CMP ESI,EAX
JC 0x00022eba
MOV ESI,dword ptr [ESP + 0x4]
MOV EDI,dword ptr [ESI + 0x8]
MOV EBX,dword ptr [EBP + 0x8]
LEA EBX,[EDI + EBX*0x1 + 0x1]
SUB EBX,EDX
SUB EBX,EAX
ADD EAX,EDX
MOV EDI,dword ptr [ESP]
CMP EAX,EDI
JC 0x00022ec2
ADD EBX,EAX
CMP EBX,0x10
JC 0x00022ecb
CMP EBP,ECX
JNZ 0x00022ed4
LEA EDI,[ESP + 0x18]
MOV ECX,0x5
MOV ESI,EBP
MOVSD.REP ES:EDI,ESI
MOV EAX,EBX
CALL 0x0001a288
MOV dword ptr [EBP],EAX
MOV dword ptr [EBP + 0xc],EBX
MOV dword ptr [EBP + 0x4],0x0
MOV dword ptr [EBP + 0x8],0x0
MOV byte ptr [EBP + 0x10],0x0
LEA EAX,[ESP + 0x18]
PUSH ECX
PUSH dword ptr [ESP + 0x4]
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x14]
MOV ECX,EBP
MOV EDX,dword ptr [ESP + 0x14]
CALL 0x00022b5c
MOV dword ptr [ESP + 0x4],EAX
SUB ESP,0x8
PUSH dword ptr [ESP + 0x24]
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x000175a0
ADD ESP,0x10
MOV EAX,dword ptr [ESP]
JMP 0x00022ef2
MOV dword ptr [ESP],EAX
JMP 0x00022e30
MOV EAX,EDI
ADD EBX,EAX
CMP EBX,0x10
JNC 0x00022e52
MOV EBX,0x10
CMP EBP,ECX
JZ 0x00022e56
CMP dword ptr [ECX + 0xc],EBX
JC 0x00022f0c
PUSH EAX
PUSH dword ptr [ESP + 0x4]
PUSH dword ptr [ESP + 0x5c]
PUSH dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x14]
MOV EAX,EBP
CALL 0x00022b5c
POP EDX
MOV EDI,dword ptr [ESP + 0x2c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x00022f07
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00017e20
MOV EDX,EBX
MOV EAX,dword ptr [ECX]
MOV dword ptr [ESP + 0xc],ECX
CALL 0x0001a2be
MOV ECX,dword ptr [ESP + 0xc]
MOV dword ptr [ECX],EAX
MOV dword ptr [ECX + 0xc],EBX
JMP 0x00022ed9
(translation_unit "undefined4 FUN_00022de9(undefined4 param_1,int param_2)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint *extraout_ECX;\n  int iVar4;\n  undefined4 extraout_ECX_00;\n  int iVar5;\n  uint uVar6;\n  uint *puVar7;\n  int unaff_EDI;\n  uint *puVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined8 uVar10;\n  uint local_4c;\n  uint local_34 [2];\n  int local_2c;\n  undefined4 local_20;\n  \n  bVar9 = 0;\n  uVar10 = FUN_00027c55();\n  iVar5 = (int)((ulonglong)uVar10 >> 0x20);\n  puVar1 = (uint *)uVar10;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar6 = puVar1[1];\n  iVar4 = *(int *)(iVar5 + 4);\n  local_4c = param_2 + iVar4;\n  if ((uint)(param_2 + iVar4) < uVar6) {\n    local_4c = uVar6;\n  }\n  uVar2 = local_4c;\n  if (local_4c <= uVar6 + iVar4) {\n    uVar2 = uVar6 + iVar4;\n  }\n  uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;\n  if (uVar6 < 0x10) {\n    uVar6 = 0x10;\n  }\n  if (puVar1 == extraout_ECX) {\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }\n  else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }\n  if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00017e20();\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_00022de9(undefined4 param_1,int param_2)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint *extraout_ECX;\n  int iVar4;\n  undefined4 extraout_ECX_00;\n  int iVar5;\n  uint uVar6;\n  uint *puVar7;\n  int unaff_EDI;\n  uint *puVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined8 uVar10;\n  uint local_4c;\n  uint local_34 [2];\n  int local_2c;\n  undefined4 local_20;\n  \n  bVar9 = 0;\n  uVar10 = FUN_00027c55();\n  iVar5 = (int)((ulonglong)uVar10 >> 0x20);\n  puVar1 = (uint *)uVar10;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar6 = puVar1[1];\n  iVar4 = *(int *)(iVar5 + 4);\n  local_4c = param_2 + iVar4;\n  if ((uint)(param_2 + iVar4) < uVar6) {\n    local_4c = uVar6;\n  }\n  uVar2 = local_4c;\n  if (local_4c <= uVar6 + iVar4) {\n    uVar2 = uVar6 + iVar4;\n  }\n  uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;\n  if (uVar6 < 0x10) {\n    uVar6 = 0x10;\n  }\n  if (puVar1 == extraout_ECX) {\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }\n  else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }\n  if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00017e20();\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00022de9(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint *extraout_ECX;\n  int iVar4;\n  undefined4 extraout_ECX_00;\n  int iVar5;\n  uint uVar6;\n  uint *puVar7;\n  int unaff_EDI;\n  uint *puVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined8 uVar10;\n  uint local_4c;\n  uint local_34 [2];\n  int local_2c;\n  undefined4 local_20;\n  \n  bVar9 = 0;\n  uVar10 = FUN_00027c55();\n  iVar5 = (int)((ulonglong)uVar10 >> 0x20);\n  puVar1 = (uint *)uVar10;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar6 = puVar1[1];\n  iVar4 = *(int *)(iVar5 + 4);\n  local_4c = param_2 + iVar4;\n  if ((uint)(param_2 + iVar4) < uVar6) {\n    local_4c = uVar6;\n  }\n  uVar2 = local_4c;\n  if (local_4c <= uVar6 + iVar4) {\n    uVar2 = uVar6 + iVar4;\n  }\n  uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;\n  if (uVar6 < 0x10) {\n    uVar6 = 0x10;\n  }\n  if (puVar1 == extraout_ECX) {\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }\n  else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }\n  if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00017e20();\n  }\n  return uVar3;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint *extraout_ECX;" type_identifier (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 extraout_ECX_00;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (declaration "undefined8 uVar10;" type_identifier identifier ;) (declaration "uint local_4c;" type_identifier identifier ;) (declaration "uint local_34 [2];" type_identifier (array_declarator "local_34 [2]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar10 = FUN_00027c55();" (assignment_expression "uVar10 = FUN_00027c55()" identifier = (call_expression "FUN_00027c55()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = (int)((ulonglong)uVar10 >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)uVar10 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1 = (uint *)uVar10;" (assignment_expression "puVar1 = (uint *)uVar10" identifier = (cast_expression "(uint *)uVar10" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = puVar1[1];" (assignment_expression "uVar6 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = *(int *)(iVar5 + 4);" (assignment_expression "iVar4 = *(int *)(iVar5 + 4)" identifier = (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_4c = param_2 + iVar4;" (assignment_expression "local_4c = param_2 + iVar4" identifier = (binary_expression "param_2 + iVar4" identifier + identifier)) ;) (if_statement "if ((uint)(param_2 + iVar4) < uVar6) {\n    local_4c = uVar6;\n  }" if (parenthesized_expression "((uint)(param_2 + iVar4) < uVar6)" ( (binary_expression "(uint)(param_2 + iVar4) < uVar6" (call_expression "(uint)(param_2 + iVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 + iVar4)" ( (binary_expression "param_2 + iVar4" identifier + identifier) ))) < identifier) )) (compound_statement "{\n    local_4c = uVar6;\n  }" { (expression_statement "local_4c = uVar6;" (assignment_expression "local_4c = uVar6" identifier = identifier) ;) })) (expression_statement "uVar2 = local_4c;" (assignment_expression "uVar2 = local_4c" identifier = identifier) ;) (if_statement "if (local_4c <= uVar6 + iVar4) {\n    uVar2 = uVar6 + iVar4;\n  }" if (parenthesized_expression "(local_4c <= uVar6 + iVar4)" ( (binary_expression "local_4c <= uVar6 + iVar4" identifier <= (binary_expression "uVar6 + iVar4" identifier + identifier)) )) (compound_statement "{\n    uVar2 = uVar6 + iVar4;\n  }" { (expression_statement "uVar2 = uVar6 + iVar4;" (assignment_expression "uVar2 = uVar6 + iVar4" identifier = (binary_expression "uVar6 + iVar4" identifier + identifier)) ;) })) (expression_statement "uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;" (assignment_expression "uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2" identifier = (binary_expression "(((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2" (parenthesized_expression "(((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6)" ( (binary_expression "((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6" (parenthesized_expression "((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4)" ( (binary_expression "(*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4" (parenthesized_expression "(*(int *)(iVar5 + 8) + 1 + puVar1[2])" ( (binary_expression "*(int *)(iVar5 + 8) + 1 + puVar1[2]" (binary_expression "*(int *)(iVar5 + 8) + 1" (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) + number_literal) + (subscript_expression "puVar1[2]" identifier [ number_literal ])) )) - identifier) )) - identifier) )) + identifier)) ;) (if_statement "if (uVar6 < 0x10) {\n    uVar6 = 0x10;\n  }" if (parenthesized_expression "(uVar6 < 0x10)" ( (binary_expression "uVar6 < 0x10" identifier < number_literal) )) (compound_statement "{\n    uVar6 = 0x10;\n  }" { (expression_statement "uVar6 = 0x10;" (assignment_expression "uVar6 = 0x10" identifier = number_literal) ;) })) (if_statement "if (puVar1 == extraout_ECX) {\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }\n  else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }" if (parenthesized_expression "(puVar1 == extraout_ECX)" ( (binary_expression "puVar1 == extraout_ECX" identifier == identifier) )) (compound_statement "{\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }" { (expression_statement "puVar7 = puVar1;" (assignment_expression "puVar7 = puVar1" identifier = identifier) ;) (expression_statement "puVar8 = local_34;" (assignment_expression "puVar8 = local_34" identifier = identifier) ;) (for_statement "for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }" for ( (assignment_expression "iVar4 = 5" identifier = number_literal) ; (binary_expression "iVar4 != 0" identifier != number_literal) ; (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }" { (expression_statement "*puVar8 = *puVar7;" (assignment_expression "*puVar8 = *puVar7" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "puVar7 = puVar7 + (uint)bVar9 * -2 + 1;" (assignment_expression "puVar7 = puVar7 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "puVar7 + (uint)bVar9 * -2 + 1" (binary_expression "puVar7 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar8 = puVar8 + (uint)bVar9 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "puVar8 + (uint)bVar9 * -2 + 1" (binary_expression "puVar8 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "uVar2 = FUN_0001a288();" (assignment_expression "uVar2 = FUN_0001a288()" identifier = (call_expression "FUN_0001a288()" identifier (argument_list "()" ( )))) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[3] = uVar6;" (assignment_expression "puVar1[3] = uVar6" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(puVar1 + 4) = 0;" (assignment_expression "*(undefined1 *)(puVar1 + 4) = 0" (pointer_expression "*(undefined1 *)(puVar1 + 4)" * (cast_expression "(undefined1 *)(puVar1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);" (assignment_expression "uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00)" identifier = (call_expression "FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00)" identifier (argument_list "(param_1,param_2,local_4c,extraout_ECX_00)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "free((void *)(unaff_EDI + 0xb8c2b));" (call_expression "free((void *)(unaff_EDI + 0xb8c2b))" identifier (argument_list "((void *)(unaff_EDI + 0xb8c2b))" ( (cast_expression "(void *)(unaff_EDI + 0xb8c2b)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xb8c2b)" ( (binary_expression "unaff_EDI + 0xb8c2b" identifier + number_literal) ))) ))) ;) }) (else_clause "else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }" else (compound_statement "{\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }" { (if_statement "if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }" if (parenthesized_expression "(extraout_ECX[3] < uVar6)" ( (binary_expression "extraout_ECX[3] < uVar6" (subscript_expression "extraout_ECX[3]" identifier [ number_literal ]) < identifier) )) (compound_statement "{\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }" { (expression_statement "uVar2 = FUN_0001a2be();" (assignment_expression "uVar2 = FUN_0001a2be()" identifier = (call_expression "FUN_0001a2be()" identifier (argument_list "()" ( )))) ;) (expression_statement "*extraout_ECX = uVar2;" (assignment_expression "*extraout_ECX = uVar2" (pointer_expression "*extraout_ECX" * identifier) = identifier) ;) (expression_statement "extraout_ECX[3] = uVar6;" (assignment_expression "extraout_ECX[3] = uVar6" (subscript_expression "extraout_ECX[3]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);" (assignment_expression "uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2)" identifier = (call_expression "FUN_00022b5c(param_1,param_2,local_4c,uVar2)" identifier (argument_list "(param_1,param_2,local_4c,uVar2)" ( identifier , identifier , identifier , identifier )))) ;) }))) (if_statement "if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00017e20();\n  }" if (parenthesized_expression "(local_2c != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_2c != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00017e20();\n  }" { comment (expression_statement "FUN_00017e20();" (call_expression "FUN_00017e20()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "void zbc_num_divmod(void)\n\n{\n                    /* WARNING: Subroutine does not return */\n  __x86_get_pc_thunk_di();\n}\n\n" (function_definition "void zbc_num_divmod(void)\n\n{\n                    /* WARNING: Subroutine does not return */\n  __x86_get_pc_thunk_di();\n}" primitive_type (function_declarator "zbc_num_divmod(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n  __x86_get_pc_thunk_di();\n}" { comment (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_00022de9(undefined4 param_1,int param_2)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint *extraout_ECX;\n  int iVar4;\n  undefined4 extraout_ECX_00;\n  int iVar5;\n  uint uVar6;\n  uint *puVar7;\n  int unaff_EDI;\n  uint *puVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined8 uVar10;\n  uint local_4c;\n  uint local_34 [2];\n  int local_2c;\n  undefined4 local_20;\n  \n  bVar9 = 0;\n  uVar10 = FUN_00027c55();\n  iVar5 = (int)((ulonglong)uVar10 >> 0x20);\n  puVar1 = (uint *)uVar10;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar6 = puVar1[1];\n  iVar4 = *(int *)(iVar5 + 4);\n  local_4c = param_2 + iVar4;\n  if ((uint)(param_2 + iVar4) < uVar6) {\n    local_4c = uVar6;\n  }\n  uVar2 = local_4c;\n  if (local_4c <= uVar6 + iVar4) {\n    uVar2 = uVar6 + iVar4;\n  }\n  uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;\n  if (uVar6 < 0x10) {\n    uVar6 = 0x10;\n  }\n  if (puVar1 == extraout_ECX) {\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }\n  else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }\n  if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017e20();\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_00022de9(undefined4 param_1,int param_2)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint *extraout_ECX;\n  int iVar4;\n  undefined4 extraout_ECX_00;\n  int iVar5;\n  uint uVar6;\n  uint *puVar7;\n  int unaff_EDI;\n  uint *puVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined8 uVar10;\n  uint local_4c;\n  uint local_34 [2];\n  int local_2c;\n  undefined4 local_20;\n  \n  bVar9 = 0;\n  uVar10 = FUN_00027c55();\n  iVar5 = (int)((ulonglong)uVar10 >> 0x20);\n  puVar1 = (uint *)uVar10;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar6 = puVar1[1];\n  iVar4 = *(int *)(iVar5 + 4);\n  local_4c = param_2 + iVar4;\n  if ((uint)(param_2 + iVar4) < uVar6) {\n    local_4c = uVar6;\n  }\n  uVar2 = local_4c;\n  if (local_4c <= uVar6 + iVar4) {\n    uVar2 = uVar6 + iVar4;\n  }\n  uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;\n  if (uVar6 < 0x10) {\n    uVar6 = 0x10;\n  }\n  if (puVar1 == extraout_ECX) {\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }\n  else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }\n  if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017e20();\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00022de9(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint *extraout_ECX;\n  int iVar4;\n  undefined4 extraout_ECX_00;\n  int iVar5;\n  uint uVar6;\n  uint *puVar7;\n  int unaff_EDI;\n  uint *puVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined8 uVar10;\n  uint local_4c;\n  uint local_34 [2];\n  int local_2c;\n  undefined4 local_20;\n  \n  bVar9 = 0;\n  uVar10 = FUN_00027c55();\n  iVar5 = (int)((ulonglong)uVar10 >> 0x20);\n  puVar1 = (uint *)uVar10;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar6 = puVar1[1];\n  iVar4 = *(int *)(iVar5 + 4);\n  local_4c = param_2 + iVar4;\n  if ((uint)(param_2 + iVar4) < uVar6) {\n    local_4c = uVar6;\n  }\n  uVar2 = local_4c;\n  if (local_4c <= uVar6 + iVar4) {\n    uVar2 = uVar6 + iVar4;\n  }\n  uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;\n  if (uVar6 < 0x10) {\n    uVar6 = 0x10;\n  }\n  if (puVar1 == extraout_ECX) {\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }\n  else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }\n  if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017e20();\n  }\n  return uVar3;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint *extraout_ECX;" type_identifier (pointer_declarator "*extraout_ECX" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 extraout_ECX_00;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar9;" type_identifier identifier ;) (declaration "undefined8 uVar10;" type_identifier identifier ;) (declaration "uint local_4c;" type_identifier identifier ;) (declaration "uint local_34 [2];" type_identifier (array_declarator "local_34 [2]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar10 = FUN_00027c55();" (assignment_expression "uVar10 = FUN_00027c55()" identifier = (call_expression "FUN_00027c55()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar5 = (int)((ulonglong)uVar10 >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)uVar10 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" ( (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar1 = (uint *)uVar10;" (assignment_expression "puVar1 = (uint *)uVar10" identifier = (cast_expression "(uint *)uVar10" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = puVar1[1];" (assignment_expression "uVar6 = puVar1[1]" identifier = (subscript_expression "puVar1[1]" identifier [ number_literal ])) ;) (expression_statement "iVar4 = *(int *)(iVar5 + 4);" (assignment_expression "iVar4 = *(int *)(iVar5 + 4)" identifier = (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_4c = param_2 + iVar4;" (assignment_expression "local_4c = param_2 + iVar4" identifier = (binary_expression "param_2 + iVar4" identifier + identifier)) ;) (if_statement "if ((uint)(param_2 + iVar4) < uVar6) {\n    local_4c = uVar6;\n  }" if (parenthesized_expression "((uint)(param_2 + iVar4) < uVar6)" ( (binary_expression "(uint)(param_2 + iVar4) < uVar6" (call_expression "(uint)(param_2 + iVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 + iVar4)" ( (binary_expression "param_2 + iVar4" identifier + identifier) ))) < identifier) )) (compound_statement "{\n    local_4c = uVar6;\n  }" { (expression_statement "local_4c = uVar6;" (assignment_expression "local_4c = uVar6" identifier = identifier) ;) })) (expression_statement "uVar2 = local_4c;" (assignment_expression "uVar2 = local_4c" identifier = identifier) ;) (if_statement "if (local_4c <= uVar6 + iVar4) {\n    uVar2 = uVar6 + iVar4;\n  }" if (parenthesized_expression "(local_4c <= uVar6 + iVar4)" ( (binary_expression "local_4c <= uVar6 + iVar4" identifier <= (binary_expression "uVar6 + iVar4" identifier + identifier)) )) (compound_statement "{\n    uVar2 = uVar6 + iVar4;\n  }" { (expression_statement "uVar2 = uVar6 + iVar4;" (assignment_expression "uVar2 = uVar6 + iVar4" identifier = (binary_expression "uVar6 + iVar4" identifier + identifier)) ;) })) (expression_statement "uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;" (assignment_expression "uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2" identifier = (binary_expression "(((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2" (parenthesized_expression "(((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6)" ( (binary_expression "((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6" (parenthesized_expression "((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4)" ( (binary_expression "(*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4" (parenthesized_expression "(*(int *)(iVar5 + 8) + 1 + puVar1[2])" ( (binary_expression "*(int *)(iVar5 + 8) + 1 + puVar1[2]" (binary_expression "*(int *)(iVar5 + 8) + 1" (pointer_expression "*(int *)(iVar5 + 8)" * (cast_expression "(int *)(iVar5 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 8)" ( (binary_expression "iVar5 + 8" identifier + number_literal) )))) + number_literal) + (subscript_expression "puVar1[2]" identifier [ number_literal ])) )) - identifier) )) - identifier) )) + identifier)) ;) (if_statement "if (uVar6 < 0x10) {\n    uVar6 = 0x10;\n  }" if (parenthesized_expression "(uVar6 < 0x10)" ( (binary_expression "uVar6 < 0x10" identifier < number_literal) )) (compound_statement "{\n    uVar6 = 0x10;\n  }" { (expression_statement "uVar6 = 0x10;" (assignment_expression "uVar6 = 0x10" identifier = number_literal) ;) })) (if_statement "if (puVar1 == extraout_ECX) {\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }\n  else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }" if (parenthesized_expression "(puVar1 == extraout_ECX)" ( (binary_expression "puVar1 == extraout_ECX" identifier == identifier) )) (compound_statement "{\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }" { (expression_statement "puVar7 = puVar1;" (assignment_expression "puVar7 = puVar1" identifier = identifier) ;) (expression_statement "puVar8 = local_34;" (assignment_expression "puVar8 = local_34" identifier = identifier) ;) (for_statement "for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }" for ( (assignment_expression "iVar4 = 5" identifier = number_literal) ; (binary_expression "iVar4 != 0" identifier != number_literal) ; (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ) (compound_statement "{\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }" { (expression_statement "*puVar8 = *puVar7;" (assignment_expression "*puVar8 = *puVar7" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*puVar7" * identifier)) ;) (expression_statement "puVar7 = puVar7 + (uint)bVar9 * -2 + 1;" (assignment_expression "puVar7 = puVar7 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "puVar7 + (uint)bVar9 * -2 + 1" (binary_expression "puVar7 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar8 = puVar8 + (uint)bVar9 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (uint)bVar9 * -2 + 1" identifier = (binary_expression "puVar8 + (uint)bVar9 * -2 + 1" (binary_expression "puVar8 + (uint)bVar9 * -2" identifier + (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "uVar2 = FUN_0001a288();" (assignment_expression "uVar2 = FUN_0001a288()" identifier = (call_expression "FUN_0001a288()" identifier (argument_list "()" ( )))) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[3] = uVar6;" (assignment_expression "puVar1[3] = uVar6" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(puVar1 + 4) = 0;" (assignment_expression "*(undefined1 *)(puVar1 + 4) = 0" (pointer_expression "*(undefined1 *)(puVar1 + 4)" * (cast_expression "(undefined1 *)(puVar1 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);" (assignment_expression "uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00)" identifier = (call_expression "FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00)" identifier (argument_list "(param_1,param_2,local_4c,extraout_ECX_00)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "free((void *)(unaff_EDI + 0xb8c2b));" (call_expression "free((void *)(unaff_EDI + 0xb8c2b))" identifier (argument_list "((void *)(unaff_EDI + 0xb8c2b))" ( (cast_expression "(void *)(unaff_EDI + 0xb8c2b)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xb8c2b)" ( (binary_expression "unaff_EDI + 0xb8c2b" identifier + number_literal) ))) ))) ;) }) (else_clause "else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }" else (compound_statement "{\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }" { (if_statement "if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }" if (parenthesized_expression "(extraout_ECX[3] < uVar6)" ( (binary_expression "extraout_ECX[3] < uVar6" (subscript_expression "extraout_ECX[3]" identifier [ number_literal ]) < identifier) )) (compound_statement "{\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }" { (expression_statement "uVar2 = FUN_0001a2be();" (assignment_expression "uVar2 = FUN_0001a2be()" identifier = (call_expression "FUN_0001a2be()" identifier (argument_list "()" ( )))) ;) (expression_statement "*extraout_ECX = uVar2;" (assignment_expression "*extraout_ECX = uVar2" (pointer_expression "*extraout_ECX" * identifier) = identifier) ;) (expression_statement "extraout_ECX[3] = uVar6;" (assignment_expression "extraout_ECX[3] = uVar6" (subscript_expression "extraout_ECX[3]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);" (assignment_expression "uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2)" identifier = (call_expression "FUN_00022b5c(param_1,param_2,local_4c,uVar2)" identifier (argument_list "(param_1,param_2,local_4c,uVar2)" ( identifier , identifier , identifier , identifier )))) ;) }))) (if_statement "if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017e20();\n  }" if (parenthesized_expression "(local_2c != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_2c != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00017e20();\n  }" { (expression_statement "FUN_00017e20();" (call_expression "FUN_00017e20()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_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 IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + IDENT) ))) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (subscript_expression IDENT [ LIT ])) )) - IDENT) )) - IDENT) )) + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00022de9(undefined4 param_1,int param_2)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint *extraout_ECX;\n  int iVar4;\n  undefined4 extraout_ECX_00;\n  int iVar5;\n  uint uVar6;\n  uint *puVar7;\n  int unaff_EDI;\n  uint *puVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined8 uVar10;\n  uint local_4c;\n  uint local_34 [2];\n  int local_2c;\n  undefined4 local_20;\n  \n  bVar9 = 0;\n  uVar10 = FUN_00027c55();\n  iVar5 = (int)((ulonglong)uVar10 >> 0x20);\n  puVar1 = (uint *)uVar10;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar6 = puVar1[1];\n  iVar4 = *(int *)(iVar5 + 4);\n  local_4c = param_2 + iVar4;\n  if ((uint)(param_2 + iVar4) < uVar6) {\n    local_4c = uVar6;\n  }\n  uVar2 = local_4c;\n  if (local_4c <= uVar6 + iVar4) {\n    uVar2 = uVar6 + iVar4;\n  }\n  uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;\n  if (uVar6 < 0x10) {\n    uVar6 = 0x10;\n  }\n  if (puVar1 == extraout_ECX) {\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }\n  else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }\n  if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017e20();\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_00022de9(undefined4 param_1,int param_2)" (identifier "FUN_00022de9") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  undefined4 uVar3;\n  uint *extraout_ECX;\n  int iVar4;\n  undefined4 extraout_ECX_00;\n  int iVar5;\n  uint uVar6;\n  uint *puVar7;\n  int unaff_EDI;\n  uint *puVar8;\n  int in_GS_OFFSET;\n  byte bVar9;\n  undefined8 uVar10;\n  uint local_4c;\n  uint local_34 [2];\n  int local_2c;\n  undefined4 local_20;\n  \n  bVar9 = 0;\n  uVar10 = FUN_00027c55();\n  iVar5 = (int)((ulonglong)uVar10 >> 0x20);\n  puVar1 = (uint *)uVar10;\n  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar6 = puVar1[1];\n  iVar4 = *(int *)(iVar5 + 4);\n  local_4c = param_2 + iVar4;\n  if ((uint)(param_2 + iVar4) < uVar6) {\n    local_4c = uVar6;\n  }\n  uVar2 = local_4c;\n  if (local_4c <= uVar6 + iVar4) {\n    uVar2 = uVar6 + iVar4;\n  }\n  uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;\n  if (uVar6 < 0x10) {\n    uVar6 = 0x10;\n  }\n  if (puVar1 == extraout_ECX) {\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }\n  else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }\n  if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017e20();\n  }\n  return uVar3;\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint *extraout_ECX;" (type_identifier "uint") (pointer_declarator "*extraout_ECX" (* "*") (identifier "extraout_ECX")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 extraout_ECX_00;" (type_identifier "undefined4") (identifier "extraout_ECX_00") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint *puVar7;" (type_identifier "uint") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "uint *puVar8;" (type_identifier "uint") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar9;" (type_identifier "byte") (identifier "bVar9") (; ";")) (declaration "undefined8 uVar10;" (type_identifier "undefined8") (identifier "uVar10") (; ";")) (declaration "uint local_4c;" (type_identifier "uint") (identifier "local_4c") (; ";")) (declaration "uint local_34 [2];" (type_identifier "uint") (array_declarator "local_34 [2]" (identifier "local_34") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (expression_statement "bVar9 = 0;" (assignment_expression "bVar9 = 0" (identifier "bVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar10 = FUN_00027c55();" (assignment_expression "uVar10 = FUN_00027c55()" (identifier "uVar10") (= "=") (call_expression "FUN_00027c55()" (identifier "FUN_00027c55") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar5 = (int)((ulonglong)uVar10 >> 0x20);" (assignment_expression "iVar5 = (int)((ulonglong)uVar10 >> 0x20)" (identifier "iVar5") (= "=") (cast_expression "(int)((ulonglong)uVar10 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar10 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar10 >> 0x20" (cast_expression "(ulonglong)uVar10" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar10")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "puVar1 = (uint *)uVar10;" (assignment_expression "puVar1 = (uint *)uVar10" (identifier "puVar1") (= "=") (cast_expression "(uint *)uVar10" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar10"))) (; ";")) (expression_statement "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar6 = puVar1[1];" (assignment_expression "uVar6 = puVar1[1]" (identifier "uVar6") (= "=") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar4 = *(int *)(iVar5 + 4);" (assignment_expression "iVar4 = *(int *)(iVar5 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(iVar5 + 4)" (* "*") (cast_expression "(int *)(iVar5 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 4)" (( "(") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "local_4c = param_2 + iVar4;" (assignment_expression "local_4c = param_2 + iVar4" (identifier "local_4c") (= "=") (binary_expression "param_2 + iVar4" (identifier "param_2") (+ "+") (identifier "iVar4"))) (; ";")) (if_statement "if ((uint)(param_2 + iVar4) < uVar6) {\n    local_4c = uVar6;\n  }" (if "if") (parenthesized_expression "((uint)(param_2 + iVar4) < uVar6)" (( "(") (binary_expression "(uint)(param_2 + iVar4) < uVar6" (call_expression "(uint)(param_2 + iVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 + iVar4)" (( "(") (binary_expression "param_2 + iVar4" (identifier "param_2") (+ "+") (identifier "iVar4")) () ")"))) (< "<") (identifier "uVar6")) () ")")) (compound_statement "{\n    local_4c = uVar6;\n  }" ({ "{") (expression_statement "local_4c = uVar6;" (assignment_expression "local_4c = uVar6" (identifier "local_4c") (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (expression_statement "uVar2 = local_4c;" (assignment_expression "uVar2 = local_4c" (identifier "uVar2") (= "=") (identifier "local_4c")) (; ";")) (if_statement "if (local_4c <= uVar6 + iVar4) {\n    uVar2 = uVar6 + iVar4;\n  }" (if "if") (parenthesized_expression "(local_4c <= uVar6 + iVar4)" (( "(") (binary_expression "local_4c <= uVar6 + iVar4" (identifier "local_4c") (<= "<=") (binary_expression "uVar6 + iVar4" (identifier "uVar6") (+ "+") (identifier "iVar4"))) () ")")) (compound_statement "{\n    uVar2 = uVar6 + iVar4;\n  }" ({ "{") (expression_statement "uVar2 = uVar6 + iVar4;" (assignment_expression "uVar2 = uVar6 + iVar4" (identifier "uVar2") (= "=") (binary_expression "uVar6 + iVar4" (identifier "uVar6") (+ "+") (identifier "iVar4"))) (; ";")) (} "}"))) (expression_statement "uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;" (assignment_expression "uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2" (identifier "uVar6") (= "=") (binary_expression "(((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2" (parenthesized_expression "(((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6)" (( "(") (binary_expression "((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6" (parenthesized_expression "((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4)" (( "(") (binary_expression "(*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4" (parenthesized_expression "(*(int *)(iVar5 + 8) + 1 + puVar1[2])" (( "(") (binary_expression "*(int *)(iVar5 + 8) + 1 + puVar1[2]" (binary_expression "*(int *)(iVar5 + 8) + 1" (pointer_expression "*(int *)(iVar5 + 8)" (* "*") (cast_expression "(int *)(iVar5 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 8)" (( "(") (binary_expression "iVar5 + 8" (identifier "iVar5") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "1")) (+ "+") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]"))) () ")")) (- "-") (identifier "iVar4")) () ")")) (- "-") (identifier "uVar6")) () ")")) (+ "+") (identifier "uVar2"))) (; ";")) (if_statement "if (uVar6 < 0x10) {\n    uVar6 = 0x10;\n  }" (if "if") (parenthesized_expression "(uVar6 < 0x10)" (( "(") (binary_expression "uVar6 < 0x10" (identifier "uVar6") (< "<") (number_literal "0x10")) () ")")) (compound_statement "{\n    uVar6 = 0x10;\n  }" ({ "{") (expression_statement "uVar6 = 0x10;" (assignment_expression "uVar6 = 0x10" (identifier "uVar6") (= "=") (number_literal "0x10")) (; ";")) (} "}"))) (if_statement "if (puVar1 == extraout_ECX) {\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }\n  else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }" (if "if") (parenthesized_expression "(puVar1 == extraout_ECX)" (( "(") (binary_expression "puVar1 == extraout_ECX" (identifier "puVar1") (== "==") (identifier "extraout_ECX")) () ")")) (compound_statement "{\n    puVar7 = puVar1;\n    puVar8 = local_34;\n    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }\n    uVar2 = FUN_0001a288();\n    *puVar1 = uVar2;\n    puVar1[3] = uVar6;\n    puVar1[1] = 0;\n    puVar1[2] = 0;\n    *(undefined1 *)(puVar1 + 4) = 0;\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);\n    free((void *)(unaff_EDI + 0xb8c2b));\n  }" ({ "{") (expression_statement "puVar7 = puVar1;" (assignment_expression "puVar7 = puVar1" (identifier "puVar7") (= "=") (identifier "puVar1")) (; ";")) (expression_statement "puVar8 = local_34;" (assignment_expression "puVar8 = local_34" (identifier "puVar8") (= "=") (identifier "local_34")) (; ";")) (for_statement "for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }" (for "for") (( "(") (assignment_expression "iVar4 = 5" (identifier "iVar4") (= "=") (number_literal "5")) (; ";") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n      *puVar8 = *puVar7;\n      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;\n      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;\n    }" ({ "{") (expression_statement "*puVar8 = *puVar7;" (assignment_expression "*puVar8 = *puVar7" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (pointer_expression "*puVar7" (* "*") (identifier "puVar7"))) (; ";")) (expression_statement "puVar7 = puVar7 + (uint)bVar9 * -2 + 1;" (assignment_expression "puVar7 = puVar7 + (uint)bVar9 * -2 + 1" (identifier "puVar7") (= "=") (binary_expression "puVar7 + (uint)bVar9 * -2 + 1" (binary_expression "puVar7 + (uint)bVar9 * -2" (identifier "puVar7") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar8 = puVar8 + (uint)bVar9 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (uint)bVar9 * -2 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar8 + (uint)bVar9 * -2 + 1" (binary_expression "puVar8 + (uint)bVar9 * -2" (identifier "puVar8") (+ "+") (binary_expression "(uint)bVar9 * -2" (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar2 = FUN_0001a288();" (assignment_expression "uVar2 = FUN_0001a288()" (identifier "uVar2") (= "=") (call_expression "FUN_0001a288()" (identifier "FUN_0001a288") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar1[3] = uVar6;" (assignment_expression "puVar1[3] = uVar6" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1[2] = 0;" (assignment_expression "puVar1[2] = 0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(puVar1 + 4) = 0;" (assignment_expression "*(undefined1 *)(puVar1 + 4) = 0" (pointer_expression "*(undefined1 *)(puVar1 + 4)" (* "*") (cast_expression "(undefined1 *)(puVar1 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 4)" (( "(") (binary_expression "puVar1 + 4" (identifier "puVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);" (assignment_expression "uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00)" (identifier "uVar3") (= "=") (call_expression "FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00)" (identifier "FUN_00022b5c") (argument_list "(param_1,param_2,local_4c,extraout_ECX_00)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "local_4c") (, ",") (identifier "extraout_ECX_00") () ")")))) (; ";")) (expression_statement "free((void *)(unaff_EDI + 0xb8c2b));" (call_expression "free((void *)(unaff_EDI + 0xb8c2b))" (identifier "free") (argument_list "((void *)(unaff_EDI + 0xb8c2b))" (( "(") (cast_expression "(void *)(unaff_EDI + 0xb8c2b)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xb8c2b)" (( "(") (binary_expression "unaff_EDI + 0xb8c2b" (identifier "unaff_EDI") (+ "+") (number_literal "0xb8c2b")) () ")"))) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }" (else "else") (compound_statement "{\n    if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }\n    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);\n  }" ({ "{") (if_statement "if (extraout_ECX[3] < uVar6) {\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }" (if "if") (parenthesized_expression "(extraout_ECX[3] < uVar6)" (( "(") (binary_expression "extraout_ECX[3] < uVar6" (subscript_expression "extraout_ECX[3]" (identifier "extraout_ECX") ([ "[") (number_literal "3") (] "]")) (< "<") (identifier "uVar6")) () ")")) (compound_statement "{\n      uVar2 = FUN_0001a2be();\n      *extraout_ECX = uVar2;\n      extraout_ECX[3] = uVar6;\n    }" ({ "{") (expression_statement "uVar2 = FUN_0001a2be();" (assignment_expression "uVar2 = FUN_0001a2be()" (identifier "uVar2") (= "=") (call_expression "FUN_0001a2be()" (identifier "FUN_0001a2be") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*extraout_ECX = uVar2;" (assignment_expression "*extraout_ECX = uVar2" (pointer_expression "*extraout_ECX" (* "*") (identifier "extraout_ECX")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "extraout_ECX[3] = uVar6;" (assignment_expression "extraout_ECX[3] = uVar6" (subscript_expression "extraout_ECX[3]" (identifier "extraout_ECX") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar6")) (; ";")) (} "}"))) (expression_statement "uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);" (assignment_expression "uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2)" (identifier "uVar3") (= "=") (call_expression "FUN_00022b5c(param_1,param_2,local_4c,uVar2)" (identifier "FUN_00022b5c") (argument_list "(param_1,param_2,local_4c,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "local_4c") (, ",") (identifier "uVar2") () ")")))) (; ";")) (} "}")))) (if_statement "if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00017e20();\n  }" (if "if") (parenthesized_expression "(local_2c != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_2c != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_2c") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00017e20();\n  }" ({ "{") (expression_statement "FUN_00017e20();" (call_expression "FUN_00017e20()" (identifier "FUN_00017e20") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

void function_1(void)

{
                    /* WARNING: Subroutine does not return */
  var_1();
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) 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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (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: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) right: (identifier))) right: (identifier))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_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))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (identifier)))))

undefined4 MASKED(undefined4 param_1,int param_2)

{
  uint *puVar1;
  uint uVar2;
  undefined4 uVar3;
  uint *extraout_ECX;
  int iVar4;
  undefined4 extraout_ECX_00;
  int iVar5;
  uint uVar6;
  uint *puVar7;
  int unaff_EDI;
  uint *puVar8;
  int in_GS_OFFSET;
  byte bVar9;
  undefined8 uVar10;
  uint local_4c;
  uint local_34 [2];
  int local_2c;
  undefined4 local_20;
  
  bVar9 = 0;
  uVar10 = FUN_00027c55();
  iVar5 = (int)((ulonglong)uVar10 >> 0x20);
  puVar1 = (uint *)uVar10;
  local_20 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  uVar6 = puVar1[1];
  iVar4 = *(int *)(iVar5 + 4);
  local_4c = param_2 + iVar4;
  if ((uint)(param_2 + iVar4) < uVar6) {
    local_4c = uVar6;
  }
  uVar2 = local_4c;
  if (local_4c <= uVar6 + iVar4) {
    uVar2 = uVar6 + iVar4;
  }
  uVar6 = (((*(int *)(iVar5 + 8) + 1 + puVar1[2]) - iVar4) - uVar6) + uVar2;
  if (uVar6 < 0x10) {
    uVar6 = 0x10;
  }
  if (puVar1 == extraout_ECX) {
    puVar7 = puVar1;
    puVar8 = local_34;
    for (iVar4 = 5; iVar4 != 0; iVar4 = iVar4 + -1) {
      *puVar8 = *puVar7;
      puVar7 = puVar7 + (uint)bVar9 * -2 + 1;
      puVar8 = puVar8 + (uint)bVar9 * -2 + 1;
    }
    uVar2 = FUN_0001a288();
    *puVar1 = uVar2;
    puVar1[3] = uVar6;
    puVar1[1] = 0;
    puVar1[2] = 0;
    *(undefined1 *)(puVar1 + 4) = 0;
    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,extraout_ECX_00);
    free((void *)(unaff_EDI + 0xb8c2b));
  }
  else {
    if (extraout_ECX[3] < uVar6) {
      uVar2 = FUN_0001a2be();
      *extraout_ECX = uVar2;
      extraout_ECX[3] = uVar6;
    }
    uVar3 = FUN_00022b5c(param_1,param_2,local_4c,uVar2);
  }
  if (local_2c != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00017e20();
  }
  return uVar3;
}

