
/* DWARF original prototype: void zipfileMtimeToDos(ZipfileCDS * pCds, u32 mUnixTime, ZipfileCDS *
   pCds) */

void zipfileMtimeToDos(ZipfileCDS *pCds,u32 mUnixTime,ZipfileCDS *pCds_1)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  uint extraout_ECX;
  short *psVar5;
  int iVar6;
  int unaff_EDI;
  undefined8 uVar7;
  
  uVar7 = __x86_get_pc_thunk_di();
  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);
  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))
                     / *(float *)(unaff_EDI + 0xfc9a1));
  iVar4 = iVar2;
  if (iVar2 < 0) {
    iVar4 = iVar2 + 3;
  }
  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);
  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /
                      (double)*(float *)(unaff_EDI + 0xfc9a5));
  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;
  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));
  iVar4 = iVar2 + -1;
  if (0xd < iVar2) {
    iVar4 = iVar2 + -0xd;
  }
  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);
  if (0x7bb < iVar1) {
    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +
              (short)(iVar4 << 5) +
              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));
    *(short *)uVar7 =
         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +
         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);
    return;
  }
  *(short *)uVar7 = 0;
  *psVar5 = 0;
  return;
}



void FUN_00022c90(void)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  uint extraout_ECX;
  short *psVar5;
  int iVar6;
  int unaff_EDI;
  undefined8 uVar7;
  
  uVar7 = FUN_00036ac5();
  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);
  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))
                     / *(float *)(unaff_EDI + 0xfc9a1));
  iVar4 = iVar2;
  if (iVar2 < 0) {
    iVar4 = iVar2 + 3;
  }
  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);
  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /
                      (double)*(float *)(unaff_EDI + 0xfc9a5));
  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;
  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));
  iVar4 = iVar2 + -1;
  if (0xd < iVar2) {
    iVar4 = iVar2 + -0xd;
  }
  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);
  if (0x7bb < iVar1) {
    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +
              (short)(iVar4 << 5) +
              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));
    *(short *)uVar7 =
         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +
         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);
    return;
  }
  *(short *)uVar7 = 0;
  *psVar5 = 0;
  return;
}


PUSH EBP
PUSH EDI
CALL 0x00036ac5
ADD EDI,0x159191
PUSH ESI
PUSH EBX
SUB ESP,0x24
FNSTCW word ptr [ESP + 0x1e]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,ECX
MOV dword ptr [ESP + 0x14],EDX
MOV EDX,0xc22e4507
MUL EDX
MOV ESI,EDX
SHR ESI,0x10
LEA EAX,[ESI + 0x253d8c]
MOV dword ptr [ESP],EAX
FILD dword ptr [ESP]
FLD dword ptr [EDI + 0xfffa380c]
MOVZX EAX,word ptr [ESP + 0x1e]
OR AH,0xc
FSUBP
FLD dword ptr [EDI + 0xfffa3810]
MOV word ptr [ESP + 0x1c],AX
FDIVP
FLDCW word ptr [ESP + 0x1c]
FISTP dword ptr [ESP + 0x18]
FLDCW word ptr [ESP + 0x1e]
MOV EAX,dword ptr [ESP + 0x18]
TEST EAX,EAX
LEA EDX,[EAX + 0x3]
LEA EBP,[ESI + EAX*0x1 + 0x254381]
CMOVS EAX,EDX
MOV EDX,0x51eb851f
SAR EAX,0x2
SUB EBP,EAX
MOV dword ptr [ESP],EBP
FILD dword ptr [ESP]
FLD qword ptr [EDI + 0xfffa3820]
FST qword ptr [ESP]
FSUBP
FLD dword ptr [EDI + 0xfffa3814]
FDIVP
FLDCW word ptr [ESP + 0x1c]
FISTP dword ptr [ESP + 0x18]
FLDCW word ptr [ESP + 0x1e]
MOV EBX,dword ptr [ESP + 0x18]
MOV dword ptr [ESP + 0xc],EBX
AND EBX,0x7fff
IMUL EAX,EBX,0x8ead
MUL EDX
SHR EDX,0x5
SUB EBP,EDX
MOV dword ptr [ESP],EBP
FILD dword ptr [ESP]
FLD qword ptr [EDI + 0xfffa3828]
FST qword ptr [ESP]
FDIV ST1,ST0
FXCH
FLDCW word ptr [ESP + 0x1c]
FISTP dword ptr [ESP + 0x18]
FLDCW word ptr [ESP + 0x1e]
MOV EAX,dword ptr [ESP + 0x18]
CMP EAX,0xd
LEA EDI,[EAX + -0xd]
LEA EDX,[EAX + -0x1]
CMOVG EDX,EDI
XOR EBX,EBX
CMP EDX,0x3
SETL BL
MOV EDI,EBX
MOV EBX,dword ptr [ESP + 0xc]
LEA EDI,[EBX + EDI*0x1 + 0xffffed94]
CMP EDI,0x7bb
JLE 0x00022e30
MOV dword ptr [ESP + 0xc],EAX
FILD dword ptr [ESP + 0xc]
SHL EDX,0x5
SUB DI,0x7bc
SHL EDI,0x9
MOV EBX,dword ptr [ESP + 0x14]
IMUL ESI,ESI,0x15180
FMULP
FLDCW word ptr [ESP + 0x1c]
FISTP dword ptr [ESP + 0x18]
FLDCW word ptr [ESP + 0x1e]
MOV EAX,dword ptr [ESP + 0x18]
SUB EBP,EAX
MOV EAX,ECX
ADD EDX,EBP
MOV EBP,0x91a2b3c5
ADD EDI,EDX
MUL EBP
MOV word ptr [EBX],DI
MOV EBX,ECX
SHR EDX,0xb
IMUL EDX,EDX,0xe10
SUB EBX,EDX
MOV EDX,EBX
MOV EBX,0x88888889
MOV EAX,EDX
MUL EBX
MOV EAX,ECX
SHR EDX,0x5
MOV EDI,EDX
MUL EBX
SHL EDI,0x5
MOV EBX,EDX
MOV EDX,ECX
SUB ECX,ESI
SHR EBX,0x5
MOV EAX,ECX
IMUL EBX,EBX,0x3c
SUB EDX,EBX
SAR EDX,0x1
ADD EDI,EDX
MUL EBP
MOV EAX,dword ptr [ESP + 0x10]
SHR EDX,0xb
SHL EDX,0xb
ADD EDI,EDX
MOV word ptr [EAX],DI
ADD ESP,0x24
POP EBX
POP ESI
POP EDI
POP EBP
RET
FSTP ST0
MOV EAX,dword ptr [ESP + 0x10]
XOR EDX,EDX
XOR ECX,ECX
MOV word ptr [EAX],DX
MOV EAX,dword ptr [ESP + 0x14]
MOV word ptr [EAX],CX
ADD ESP,0x24
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void FUN_00022c90(void)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint extraout_ECX;\n  short *psVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_00036ac5();\n  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);\n  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));\n  iVar4 = iVar2;\n  if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }\n  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);\n  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));\n  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;\n  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));\n  iVar4 = iVar2 + -1;\n  if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }\n  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);\n  if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }\n  *(short *)uVar7 = 0;\n  *psVar5 = 0;\n  return;\n}\n\n" (function_definition "void FUN_00022c90(void)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint extraout_ECX;\n  short *psVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_00036ac5();\n  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);\n  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));\n  iVar4 = iVar2;\n  if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }\n  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);\n  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));\n  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;\n  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));\n  iVar4 = iVar2 + -1;\n  if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }\n  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);\n  if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }\n  *(short *)uVar7 = 0;\n  *psVar5 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00022c90(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint extraout_ECX;\n  short *psVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_00036ac5();\n  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);\n  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));\n  iVar4 = iVar2;\n  if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }\n  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);\n  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));\n  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;\n  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));\n  iVar4 = iVar2 + -1;\n  if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }\n  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);\n  if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }\n  *(short *)uVar7 = 0;\n  *psVar5 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "short *psVar5;" (sized_type_specifier "short" short) (pointer_declarator "*psVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (expression_statement "uVar7 = FUN_00036ac5();" (assignment_expression "uVar7 = FUN_00036ac5()" identifier = (call_expression "FUN_00036ac5()" identifier (argument_list "()" ( )))) ;) (expression_statement "psVar5 = (short *)((ulonglong)uVar7 >> 0x20);" (assignment_expression "psVar5 = (short *)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(short *)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));" (assignment_expression "iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" identifier = (cast_expression "(int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" identifier (argument_list "(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" ( (binary_expression "((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1)" (parenthesized_expression "((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))" ( (binary_expression "(float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d)" (cast_expression "(float)(extraout_ECX / 0x15180 + 0x253d8c)" ( (type_descriptor "float" primitive_type) ) (parenthesized_expression "(extraout_ECX / 0x15180 + 0x253d8c)" ( (binary_expression "extraout_ECX / 0x15180 + 0x253d8c" (binary_expression "extraout_ECX / 0x15180" identifier / number_literal) + number_literal) ))) - (pointer_expression "*(float *)(unaff_EDI + 0xfc99d)" * (cast_expression "(float *)(unaff_EDI + 0xfc99d)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc99d)" ( (binary_expression "unaff_EDI + 0xfc99d" identifier + number_literal) ))))) )) / (pointer_expression "*(float *)(unaff_EDI + 0xfc9a1)" * (cast_expression "(float *)(unaff_EDI + 0xfc9a1)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9a1)" ( (binary_expression "unaff_EDI + 0xfc9a1" identifier + number_literal) ))))) ))))) ;) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (if_statement "if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar4 = iVar2 + 3;\n  }" { (expression_statement "iVar4 = iVar2 + 3;" (assignment_expression "iVar4 = iVar2 + 3" identifier = (binary_expression "iVar2 + 3" identifier + number_literal)) ;) })) (expression_statement "iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);" (assignment_expression "iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2)" identifier = (binary_expression "(extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2)" (parenthesized_expression "(extraout_ECX / 0x15180 + 0x254381 + iVar2)" ( (binary_expression "extraout_ECX / 0x15180 + 0x254381 + iVar2" (binary_expression "extraout_ECX / 0x15180 + 0x254381" (binary_expression "extraout_ECX / 0x15180" identifier / number_literal) + number_literal) + identifier) )) - (parenthesized_expression "(iVar4 >> 2)" ( (binary_expression "iVar4 >> 2" identifier >> number_literal) )))) ;) (expression_statement "uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));" (assignment_expression "uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" identifier = (cast_expression "(uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" ( (type_descriptor "uint" type_identifier) ) (call_expression "ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" identifier (argument_list "(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" ( (binary_expression "((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5)" (parenthesized_expression "((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1))" ( (binary_expression "(double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)" (cast_expression "(double)iVar6" ( (type_descriptor "double" primitive_type) ) identifier) - (pointer_expression "*(double *)(unaff_EDI + 0xfc9b1)" * (cast_expression "(double *)(unaff_EDI + 0xfc9b1)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9b1)" ( (binary_expression "unaff_EDI + 0xfc9b1" identifier + number_literal) ))))) )) / (cast_expression "(double)*(float *)(unaff_EDI + 0xfc9a5)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EDI + 0xfc9a5)" * (cast_expression "(float *)(unaff_EDI + 0xfc9a5)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9a5)" ( (binary_expression "unaff_EDI + 0xfc9a5" identifier + number_literal) )))))) ))))) ;) (expression_statement "iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;" (assignment_expression "iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100" identifier = (binary_expression "iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100" identifier - (binary_expression "((uVar3 & 0x7fff) * 0x8ead) / 100" (parenthesized_expression "((uVar3 & 0x7fff) * 0x8ead)" ( (binary_expression "(uVar3 & 0x7fff) * 0x8ead" (parenthesized_expression "(uVar3 & 0x7fff)" ( (binary_expression "uVar3 & 0x7fff" identifier & number_literal) )) * number_literal) )) / number_literal))) ;) (expression_statement "iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));" (assignment_expression "iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" identifier = (cast_expression "(int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" identifier (argument_list "((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" ( (binary_expression "(double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9)" (cast_expression "(double)iVar6" ( (type_descriptor "double" primitive_type) ) identifier) / (pointer_expression "*(double *)(unaff_EDI + 0xfc9b9)" * (cast_expression "(double *)(unaff_EDI + 0xfc9b9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9b9)" ( (binary_expression "unaff_EDI + 0xfc9b9" identifier + number_literal) ))))) ))))) ;) (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }" if (parenthesized_expression "(0xd < iVar2)" ( (binary_expression "0xd < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar4 = iVar2 + -0xd;\n  }" { (expression_statement "iVar4 = iVar2 + -0xd;" (assignment_expression "iVar4 = iVar2 + -0xd" identifier = (binary_expression "iVar2 + -0xd" identifier + number_literal)) ;) })) (expression_statement "iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);" (assignment_expression "iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3)" identifier = (binary_expression "(uVar3 - 0x126c) + (uint)(iVar4 < 3)" (parenthesized_expression "(uVar3 - 0x126c)" ( (binary_expression "uVar3 - 0x126c" identifier - number_literal) )) + (call_expression "(uint)(iVar4 < 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar4 < 3)" ( (binary_expression "iVar4 < 3" identifier < number_literal) ))))) ;) (if_statement "if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }" if (parenthesized_expression "(0x7bb < iVar1)" ( (binary_expression "0x7bb < iVar1" number_literal < identifier) )) (compound_statement "{\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }" { (expression_statement "*psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));" (assignment_expression "*psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)))" (pointer_expression "*psVar5" * identifier) = (binary_expression "((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)))" (binary_expression "((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5)" (binary_expression "((short)iVar1 + -0x7bc) * 0x200" (parenthesized_expression "((short)iVar1 + -0x7bc)" ( (binary_expression "(short)iVar1 + -0x7bc" (cast_expression "(short)iVar1" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) + number_literal) )) * number_literal) + (cast_expression "(short)(iVar4 << 5)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "(iVar4 << 5)" ( (binary_expression "iVar4 << 5" identifier << number_literal) )))) + (parenthesized_expression "((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)))" ( (binary_expression "(short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" (cast_expression "(short)iVar6" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) - (cast_expression "(short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (cast_expression "(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" identifier (argument_list "((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" ( (binary_expression "(double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)" (cast_expression "(double)iVar2" ( (type_descriptor "double" primitive_type) ) identifier) * (pointer_expression "*(double *)(unaff_EDI + 0xfc9b9)" * (cast_expression "(double *)(unaff_EDI + 0xfc9b9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9b9)" ( (binary_expression "unaff_EDI + 0xfc9b9" identifier + number_literal) ))))) )))))) )))) ;) (expression_statement "*(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);" (assignment_expression "*(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb)" (pointer_expression "*(short *)uVar7" * (cast_expression "(short *)uVar7" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb)" (binary_expression "(short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1)" (cast_expression "(short)((extraout_ECX % 0xe10) / 0x3c << 5)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "((extraout_ECX % 0xe10) / 0x3c << 5)" ( (binary_expression "(extraout_ECX % 0xe10) / 0x3c << 5" (binary_expression "(extraout_ECX % 0xe10) / 0x3c" (parenthesized_expression "(extraout_ECX % 0xe10)" ( (binary_expression "extraout_ECX % 0xe10" identifier % number_literal) )) / number_literal) << number_literal) ))) + (cast_expression "(short)((int)(extraout_ECX % 0x3c) >> 1)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "((int)(extraout_ECX % 0x3c) >> 1)" ( (binary_expression "(int)(extraout_ECX % 0x3c) >> 1" (cast_expression "(int)(extraout_ECX % 0x3c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(extraout_ECX % 0x3c)" ( (binary_expression "extraout_ECX % 0x3c" identifier % number_literal) ))) >> number_literal) )))) + (cast_expression "(short)((extraout_ECX % 0x15180) / 0xe10 << 0xb)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "((extraout_ECX % 0x15180) / 0xe10 << 0xb)" ( (binary_expression "(extraout_ECX % 0x15180) / 0xe10 << 0xb" (binary_expression "(extraout_ECX % 0x15180) / 0xe10" (parenthesized_expression "(extraout_ECX % 0x15180)" ( (binary_expression "extraout_ECX % 0x15180" identifier % number_literal) )) / number_literal) << number_literal) ))))) ;) (return_statement "return;" return ;) })) (expression_statement "*(short *)uVar7 = 0;" (assignment_expression "*(short *)uVar7 = 0" (pointer_expression "*(short *)uVar7" * (cast_expression "(short *)uVar7" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*psVar5 = 0;" (assignment_expression "*psVar5 = 0" (pointer_expression "*psVar5" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void zipfileMtimeToDos(ZipfileCDS * pCds, u32 mUnixTime, ZipfileCDS *\n   pCds) */\n\nvoid zipfileMtimeToDos(ZipfileCDS *pCds,u32 mUnixTime,ZipfileCDS *pCds_1)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint extraout_ECX;\n  short *psVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);\n  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));\n  iVar4 = iVar2;\n  if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }\n  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);\n  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));\n  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;\n  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));\n  iVar4 = iVar2 + -1;\n  if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }\n  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);\n  if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }\n  *(short *)uVar7 = 0;\n  *psVar5 = 0;\n  return;\n}\n\n" comment (function_definition "void zipfileMtimeToDos(ZipfileCDS *pCds,u32 mUnixTime,ZipfileCDS *pCds_1)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint extraout_ECX;\n  short *psVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);\n  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));\n  iVar4 = iVar2;\n  if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }\n  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);\n  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));\n  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;\n  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));\n  iVar4 = iVar2 + -1;\n  if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }\n  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);\n  if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }\n  *(short *)uVar7 = 0;\n  *psVar5 = 0;\n  return;\n}" primitive_type (function_declarator "zipfileMtimeToDos(ZipfileCDS *pCds,u32 mUnixTime,ZipfileCDS *pCds_1)" identifier (parameter_list "(ZipfileCDS *pCds,u32 mUnixTime,ZipfileCDS *pCds_1)" ( (parameter_declaration "ZipfileCDS *pCds" type_identifier (pointer_declarator "*pCds" * identifier)) , (parameter_declaration "u32 mUnixTime" type_identifier identifier) , (parameter_declaration "ZipfileCDS *pCds_1" type_identifier (pointer_declarator "*pCds_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint extraout_ECX;\n  short *psVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = __x86_get_pc_thunk_di();\n  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);\n  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));\n  iVar4 = iVar2;\n  if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }\n  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);\n  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));\n  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;\n  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));\n  iVar4 = iVar2 + -1;\n  if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }\n  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);\n  if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }\n  *(short *)uVar7 = 0;\n  *psVar5 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "short *psVar5;" (sized_type_specifier "short" short) (pointer_declarator "*psVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (expression_statement "uVar7 = __x86_get_pc_thunk_di();" (assignment_expression "uVar7 = __x86_get_pc_thunk_di()" identifier = (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( )))) ;) (expression_statement "psVar5 = (short *)((ulonglong)uVar7 >> 0x20);" (assignment_expression "psVar5 = (short *)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(short *)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));" (assignment_expression "iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" identifier = (cast_expression "(int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" identifier (argument_list "(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" ( (binary_expression "((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1)" (parenthesized_expression "((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))" ( (binary_expression "(float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d)" (cast_expression "(float)(extraout_ECX / 0x15180 + 0x253d8c)" ( (type_descriptor "float" primitive_type) ) (parenthesized_expression "(extraout_ECX / 0x15180 + 0x253d8c)" ( (binary_expression "extraout_ECX / 0x15180 + 0x253d8c" (binary_expression "extraout_ECX / 0x15180" identifier / number_literal) + number_literal) ))) - (pointer_expression "*(float *)(unaff_EDI + 0xfc99d)" * (cast_expression "(float *)(unaff_EDI + 0xfc99d)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc99d)" ( (binary_expression "unaff_EDI + 0xfc99d" identifier + number_literal) ))))) )) / (pointer_expression "*(float *)(unaff_EDI + 0xfc9a1)" * (cast_expression "(float *)(unaff_EDI + 0xfc9a1)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9a1)" ( (binary_expression "unaff_EDI + 0xfc9a1" identifier + number_literal) ))))) ))))) ;) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (if_statement "if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar4 = iVar2 + 3;\n  }" { (expression_statement "iVar4 = iVar2 + 3;" (assignment_expression "iVar4 = iVar2 + 3" identifier = (binary_expression "iVar2 + 3" identifier + number_literal)) ;) })) (expression_statement "iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);" (assignment_expression "iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2)" identifier = (binary_expression "(extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2)" (parenthesized_expression "(extraout_ECX / 0x15180 + 0x254381 + iVar2)" ( (binary_expression "extraout_ECX / 0x15180 + 0x254381 + iVar2" (binary_expression "extraout_ECX / 0x15180 + 0x254381" (binary_expression "extraout_ECX / 0x15180" identifier / number_literal) + number_literal) + identifier) )) - (parenthesized_expression "(iVar4 >> 2)" ( (binary_expression "iVar4 >> 2" identifier >> number_literal) )))) ;) (expression_statement "uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));" (assignment_expression "uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" identifier = (cast_expression "(uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" ( (type_descriptor "uint" type_identifier) ) (call_expression "ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" identifier (argument_list "(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" ( (binary_expression "((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5)" (parenthesized_expression "((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1))" ( (binary_expression "(double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)" (cast_expression "(double)iVar6" ( (type_descriptor "double" primitive_type) ) identifier) - (pointer_expression "*(double *)(unaff_EDI + 0xfc9b1)" * (cast_expression "(double *)(unaff_EDI + 0xfc9b1)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9b1)" ( (binary_expression "unaff_EDI + 0xfc9b1" identifier + number_literal) ))))) )) / (cast_expression "(double)*(float *)(unaff_EDI + 0xfc9a5)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EDI + 0xfc9a5)" * (cast_expression "(float *)(unaff_EDI + 0xfc9a5)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9a5)" ( (binary_expression "unaff_EDI + 0xfc9a5" identifier + number_literal) )))))) ))))) ;) (expression_statement "iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;" (assignment_expression "iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100" identifier = (binary_expression "iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100" identifier - (binary_expression "((uVar3 & 0x7fff) * 0x8ead) / 100" (parenthesized_expression "((uVar3 & 0x7fff) * 0x8ead)" ( (binary_expression "(uVar3 & 0x7fff) * 0x8ead" (parenthesized_expression "(uVar3 & 0x7fff)" ( (binary_expression "uVar3 & 0x7fff" identifier & number_literal) )) * number_literal) )) / number_literal))) ;) (expression_statement "iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));" (assignment_expression "iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" identifier = (cast_expression "(int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" identifier (argument_list "((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" ( (binary_expression "(double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9)" (cast_expression "(double)iVar6" ( (type_descriptor "double" primitive_type) ) identifier) / (pointer_expression "*(double *)(unaff_EDI + 0xfc9b9)" * (cast_expression "(double *)(unaff_EDI + 0xfc9b9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9b9)" ( (binary_expression "unaff_EDI + 0xfc9b9" identifier + number_literal) ))))) ))))) ;) (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }" if (parenthesized_expression "(0xd < iVar2)" ( (binary_expression "0xd < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar4 = iVar2 + -0xd;\n  }" { (expression_statement "iVar4 = iVar2 + -0xd;" (assignment_expression "iVar4 = iVar2 + -0xd" identifier = (binary_expression "iVar2 + -0xd" identifier + number_literal)) ;) })) (expression_statement "iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);" (assignment_expression "iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3)" identifier = (binary_expression "(uVar3 - 0x126c) + (uint)(iVar4 < 3)" (parenthesized_expression "(uVar3 - 0x126c)" ( (binary_expression "uVar3 - 0x126c" identifier - number_literal) )) + (call_expression "(uint)(iVar4 < 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar4 < 3)" ( (binary_expression "iVar4 < 3" identifier < number_literal) ))))) ;) (if_statement "if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }" if (parenthesized_expression "(0x7bb < iVar1)" ( (binary_expression "0x7bb < iVar1" number_literal < identifier) )) (compound_statement "{\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }" { (expression_statement "*psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));" (assignment_expression "*psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)))" (pointer_expression "*psVar5" * identifier) = (binary_expression "((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)))" (binary_expression "((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5)" (binary_expression "((short)iVar1 + -0x7bc) * 0x200" (parenthesized_expression "((short)iVar1 + -0x7bc)" ( (binary_expression "(short)iVar1 + -0x7bc" (cast_expression "(short)iVar1" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) + number_literal) )) * number_literal) + (cast_expression "(short)(iVar4 << 5)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "(iVar4 << 5)" ( (binary_expression "iVar4 << 5" identifier << number_literal) )))) + (parenthesized_expression "((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)))" ( (binary_expression "(short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" (cast_expression "(short)iVar6" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) - (cast_expression "(short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (cast_expression "(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" identifier (argument_list "((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" ( (binary_expression "(double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)" (cast_expression "(double)iVar2" ( (type_descriptor "double" primitive_type) ) identifier) * (pointer_expression "*(double *)(unaff_EDI + 0xfc9b9)" * (cast_expression "(double *)(unaff_EDI + 0xfc9b9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9b9)" ( (binary_expression "unaff_EDI + 0xfc9b9" identifier + number_literal) ))))) )))))) )))) ;) (expression_statement "*(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);" (assignment_expression "*(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb)" (pointer_expression "*(short *)uVar7" * (cast_expression "(short *)uVar7" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb)" (binary_expression "(short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1)" (cast_expression "(short)((extraout_ECX % 0xe10) / 0x3c << 5)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "((extraout_ECX % 0xe10) / 0x3c << 5)" ( (binary_expression "(extraout_ECX % 0xe10) / 0x3c << 5" (binary_expression "(extraout_ECX % 0xe10) / 0x3c" (parenthesized_expression "(extraout_ECX % 0xe10)" ( (binary_expression "extraout_ECX % 0xe10" identifier % number_literal) )) / number_literal) << number_literal) ))) + (cast_expression "(short)((int)(extraout_ECX % 0x3c) >> 1)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "((int)(extraout_ECX % 0x3c) >> 1)" ( (binary_expression "(int)(extraout_ECX % 0x3c) >> 1" (cast_expression "(int)(extraout_ECX % 0x3c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(extraout_ECX % 0x3c)" ( (binary_expression "extraout_ECX % 0x3c" identifier % number_literal) ))) >> number_literal) )))) + (cast_expression "(short)((extraout_ECX % 0x15180) / 0xe10 << 0xb)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "((extraout_ECX % 0x15180) / 0xe10 << 0xb)" ( (binary_expression "(extraout_ECX % 0x15180) / 0xe10 << 0xb" (binary_expression "(extraout_ECX % 0x15180) / 0xe10" (parenthesized_expression "(extraout_ECX % 0x15180)" ( (binary_expression "extraout_ECX % 0x15180" identifier % number_literal) )) / number_literal) << number_literal) ))))) ;) (return_statement "return;" return ;) })) (expression_statement "*(short *)uVar7 = 0;" (assignment_expression "*(short *)uVar7 = 0" (pointer_expression "*(short *)uVar7" * (cast_expression "(short *)uVar7" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*psVar5 = 0;" (assignment_expression "*psVar5 = 0" (pointer_expression "*psVar5" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00022c90(void)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint extraout_ECX;\n  short *psVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_00036ac5();\n  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);\n  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));\n  iVar4 = iVar2;\n  if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }\n  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);\n  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));\n  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;\n  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));\n  iVar4 = iVar2 + -1;\n  if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }\n  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);\n  if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }\n  *(short *)uVar7 = 0;\n  *psVar5 = 0;\n  return;\n}\n\n" (function_definition "void FUN_00022c90(void)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint extraout_ECX;\n  short *psVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_00036ac5();\n  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);\n  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));\n  iVar4 = iVar2;\n  if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }\n  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);\n  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));\n  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;\n  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));\n  iVar4 = iVar2 + -1;\n  if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }\n  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);\n  if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }\n  *(short *)uVar7 = 0;\n  *psVar5 = 0;\n  return;\n}" primitive_type (function_declarator "FUN_00022c90(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint extraout_ECX;\n  short *psVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_00036ac5();\n  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);\n  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));\n  iVar4 = iVar2;\n  if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }\n  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);\n  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));\n  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;\n  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));\n  iVar4 = iVar2 + -1;\n  if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }\n  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);\n  if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }\n  *(short *)uVar7 = 0;\n  *psVar5 = 0;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint extraout_ECX;" type_identifier identifier ;) (declaration "short *psVar5;" (sized_type_specifier "short" short) (pointer_declarator "*psVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (declaration "undefined8 uVar7;" type_identifier identifier ;) (expression_statement "uVar7 = FUN_00036ac5();" (assignment_expression "uVar7 = FUN_00036ac5()" identifier = (call_expression "FUN_00036ac5()" identifier (argument_list "()" ( )))) ;) (expression_statement "psVar5 = (short *)((ulonglong)uVar7 >> 0x20);" (assignment_expression "psVar5 = (short *)((ulonglong)uVar7 >> 0x20)" identifier = (cast_expression "(short *)((ulonglong)uVar7 >> 0x20)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" ( (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));" (assignment_expression "iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" identifier = (cast_expression "(int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" identifier (argument_list "(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" ( (binary_expression "((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1)" (parenthesized_expression "((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))" ( (binary_expression "(float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d)" (cast_expression "(float)(extraout_ECX / 0x15180 + 0x253d8c)" ( (type_descriptor "float" primitive_type) ) (parenthesized_expression "(extraout_ECX / 0x15180 + 0x253d8c)" ( (binary_expression "extraout_ECX / 0x15180 + 0x253d8c" (binary_expression "extraout_ECX / 0x15180" identifier / number_literal) + number_literal) ))) - (pointer_expression "*(float *)(unaff_EDI + 0xfc99d)" * (cast_expression "(float *)(unaff_EDI + 0xfc99d)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc99d)" ( (binary_expression "unaff_EDI + 0xfc99d" identifier + number_literal) ))))) )) / (pointer_expression "*(float *)(unaff_EDI + 0xfc9a1)" * (cast_expression "(float *)(unaff_EDI + 0xfc9a1)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9a1)" ( (binary_expression "unaff_EDI + 0xfc9a1" identifier + number_literal) ))))) ))))) ;) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" identifier = identifier) ;) (if_statement "if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar4 = iVar2 + 3;\n  }" { (expression_statement "iVar4 = iVar2 + 3;" (assignment_expression "iVar4 = iVar2 + 3" identifier = (binary_expression "iVar2 + 3" identifier + number_literal)) ;) })) (expression_statement "iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);" (assignment_expression "iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2)" identifier = (binary_expression "(extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2)" (parenthesized_expression "(extraout_ECX / 0x15180 + 0x254381 + iVar2)" ( (binary_expression "extraout_ECX / 0x15180 + 0x254381 + iVar2" (binary_expression "extraout_ECX / 0x15180 + 0x254381" (binary_expression "extraout_ECX / 0x15180" identifier / number_literal) + number_literal) + identifier) )) - (parenthesized_expression "(iVar4 >> 2)" ( (binary_expression "iVar4 >> 2" identifier >> number_literal) )))) ;) (expression_statement "uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));" (assignment_expression "uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" identifier = (cast_expression "(uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" ( (type_descriptor "uint" type_identifier) ) (call_expression "ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" identifier (argument_list "(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" ( (binary_expression "((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5)" (parenthesized_expression "((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1))" ( (binary_expression "(double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)" (cast_expression "(double)iVar6" ( (type_descriptor "double" primitive_type) ) identifier) - (pointer_expression "*(double *)(unaff_EDI + 0xfc9b1)" * (cast_expression "(double *)(unaff_EDI + 0xfc9b1)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9b1)" ( (binary_expression "unaff_EDI + 0xfc9b1" identifier + number_literal) ))))) )) / (cast_expression "(double)*(float *)(unaff_EDI + 0xfc9a5)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(float *)(unaff_EDI + 0xfc9a5)" * (cast_expression "(float *)(unaff_EDI + 0xfc9a5)" ( (type_descriptor "float *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9a5)" ( (binary_expression "unaff_EDI + 0xfc9a5" identifier + number_literal) )))))) ))))) ;) (expression_statement "iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;" (assignment_expression "iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100" identifier = (binary_expression "iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100" identifier - (binary_expression "((uVar3 & 0x7fff) * 0x8ead) / 100" (parenthesized_expression "((uVar3 & 0x7fff) * 0x8ead)" ( (binary_expression "(uVar3 & 0x7fff) * 0x8ead" (parenthesized_expression "(uVar3 & 0x7fff)" ( (binary_expression "uVar3 & 0x7fff" identifier & number_literal) )) * number_literal) )) / number_literal))) ;) (expression_statement "iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));" (assignment_expression "iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" identifier = (cast_expression "(int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" identifier (argument_list "((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" ( (binary_expression "(double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9)" (cast_expression "(double)iVar6" ( (type_descriptor "double" primitive_type) ) identifier) / (pointer_expression "*(double *)(unaff_EDI + 0xfc9b9)" * (cast_expression "(double *)(unaff_EDI + 0xfc9b9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9b9)" ( (binary_expression "unaff_EDI + 0xfc9b9" identifier + number_literal) ))))) ))))) ;) (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (if_statement "if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }" if (parenthesized_expression "(0xd < iVar2)" ( (binary_expression "0xd < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar4 = iVar2 + -0xd;\n  }" { (expression_statement "iVar4 = iVar2 + -0xd;" (assignment_expression "iVar4 = iVar2 + -0xd" identifier = (binary_expression "iVar2 + -0xd" identifier + number_literal)) ;) })) (expression_statement "iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);" (assignment_expression "iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3)" identifier = (binary_expression "(uVar3 - 0x126c) + (uint)(iVar4 < 3)" (parenthesized_expression "(uVar3 - 0x126c)" ( (binary_expression "uVar3 - 0x126c" identifier - number_literal) )) + (call_expression "(uint)(iVar4 < 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar4 < 3)" ( (binary_expression "iVar4 < 3" identifier < number_literal) ))))) ;) (if_statement "if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }" if (parenthesized_expression "(0x7bb < iVar1)" ( (binary_expression "0x7bb < iVar1" number_literal < identifier) )) (compound_statement "{\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }" { (expression_statement "*psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));" (assignment_expression "*psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)))" (pointer_expression "*psVar5" * identifier) = (binary_expression "((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)))" (binary_expression "((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5)" (binary_expression "((short)iVar1 + -0x7bc) * 0x200" (parenthesized_expression "((short)iVar1 + -0x7bc)" ( (binary_expression "(short)iVar1 + -0x7bc" (cast_expression "(short)iVar1" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) + number_literal) )) * number_literal) + (cast_expression "(short)(iVar4 << 5)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "(iVar4 << 5)" ( (binary_expression "iVar4 << 5" identifier << number_literal) )))) + (parenthesized_expression "((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)))" ( (binary_expression "(short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" (cast_expression "(short)iVar6" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) - (cast_expression "(short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (cast_expression "(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" ( (type_descriptor "int" primitive_type) ) (call_expression "ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" identifier (argument_list "((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" ( (binary_expression "(double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)" (cast_expression "(double)iVar2" ( (type_descriptor "double" primitive_type) ) identifier) * (pointer_expression "*(double *)(unaff_EDI + 0xfc9b9)" * (cast_expression "(double *)(unaff_EDI + 0xfc9b9)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EDI + 0xfc9b9)" ( (binary_expression "unaff_EDI + 0xfc9b9" identifier + number_literal) ))))) )))))) )))) ;) (expression_statement "*(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);" (assignment_expression "*(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb)" (pointer_expression "*(short *)uVar7" * (cast_expression "(short *)uVar7" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb)" (binary_expression "(short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1)" (cast_expression "(short)((extraout_ECX % 0xe10) / 0x3c << 5)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "((extraout_ECX % 0xe10) / 0x3c << 5)" ( (binary_expression "(extraout_ECX % 0xe10) / 0x3c << 5" (binary_expression "(extraout_ECX % 0xe10) / 0x3c" (parenthesized_expression "(extraout_ECX % 0xe10)" ( (binary_expression "extraout_ECX % 0xe10" identifier % number_literal) )) / number_literal) << number_literal) ))) + (cast_expression "(short)((int)(extraout_ECX % 0x3c) >> 1)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "((int)(extraout_ECX % 0x3c) >> 1)" ( (binary_expression "(int)(extraout_ECX % 0x3c) >> 1" (cast_expression "(int)(extraout_ECX % 0x3c)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(extraout_ECX % 0x3c)" ( (binary_expression "extraout_ECX % 0x3c" identifier % number_literal) ))) >> number_literal) )))) + (cast_expression "(short)((extraout_ECX % 0x15180) / 0xe10 << 0xb)" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (parenthesized_expression "((extraout_ECX % 0x15180) / 0xe10 << 0xb)" ( (binary_expression "(extraout_ECX % 0x15180) / 0xe10 << 0xb" (binary_expression "(extraout_ECX % 0x15180) / 0xe10" (parenthesized_expression "(extraout_ECX % 0x15180)" ( (binary_expression "extraout_ECX % 0x15180" identifier % number_literal) )) / number_literal) << number_literal) ))))) ;) (return_statement "return;" return ;) })) (expression_statement "*(short *)uVar7 = 0;" (assignment_expression "*(short *)uVar7 = 0" (pointer_expression "*(short *)uVar7" * (cast_expression "(short *)uVar7" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*psVar5 = 0;" (assignment_expression "*psVar5 = 0" (pointer_expression "*psVar5" * identifier) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT / LIT) + LIT) ))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) / (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT / LIT) + LIT) + IDENT) )) - (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) / (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT) )) / LIT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) 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 + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - LIT) )) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT) + LIT) )) * LIT) + (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (parenthesized_expression ( (binary_expression IDENT << LIT) )))) + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT % LIT) )) / LIT) << LIT) ))) + (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT % LIT) ))) >> LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT % LIT) )) / LIT) << LIT) ))))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) IDENT)) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_00022c90(void)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint extraout_ECX;\n  short *psVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_00036ac5();\n  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);\n  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));\n  iVar4 = iVar2;\n  if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }\n  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);\n  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));\n  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;\n  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));\n  iVar4 = iVar2 + -1;\n  if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }\n  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);\n  if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }\n  *(short *)uVar7 = 0;\n  *psVar5 = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00022c90(void)" (identifier "FUN_00022c90") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  uint extraout_ECX;\n  short *psVar5;\n  int iVar6;\n  int unaff_EDI;\n  undefined8 uVar7;\n  \n  uVar7 = FUN_00036ac5();\n  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);\n  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));\n  iVar4 = iVar2;\n  if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }\n  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);\n  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));\n  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;\n  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));\n  iVar4 = iVar2 + -1;\n  if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }\n  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);\n  if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }\n  *(short *)uVar7 = 0;\n  *psVar5 = 0;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "uint extraout_ECX;" (type_identifier "uint") (identifier "extraout_ECX") (; ";")) (declaration "short *psVar5;" (sized_type_specifier "short" (short "short")) (pointer_declarator "*psVar5" (* "*") (identifier "psVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (declaration "undefined8 uVar7;" (type_identifier "undefined8") (identifier "uVar7") (; ";")) (expression_statement "uVar7 = FUN_00036ac5();" (assignment_expression "uVar7 = FUN_00036ac5()" (identifier "uVar7") (= "=") (call_expression "FUN_00036ac5()" (identifier "FUN_00036ac5") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "psVar5 = (short *)((ulonglong)uVar7 >> 0x20);" (assignment_expression "psVar5 = (short *)((ulonglong)uVar7 >> 0x20)" (identifier "psVar5") (= "=") (cast_expression "(short *)((ulonglong)uVar7 >> 0x20)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulonglong)uVar7 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar7 >> 0x20" (cast_expression "(ulonglong)uVar7" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar7")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1));" (assignment_expression "iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" (identifier "iVar2") (= "=") (cast_expression "(int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" (identifier "ROUND") (argument_list "(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1))" (( "(") (binary_expression "((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))\n                     / *(float *)(unaff_EDI + 0xfc9a1)" (parenthesized_expression "((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))" (( "(") (binary_expression "(float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d)" (cast_expression "(float)(extraout_ECX / 0x15180 + 0x253d8c)" (( "(") (type_descriptor "float" (primitive_type "float")) () ")") (parenthesized_expression "(extraout_ECX / 0x15180 + 0x253d8c)" (( "(") (binary_expression "extraout_ECX / 0x15180 + 0x253d8c" (binary_expression "extraout_ECX / 0x15180" (identifier "extraout_ECX") (/ "/") (number_literal "0x15180")) (+ "+") (number_literal "0x253d8c")) () ")"))) (- "-") (pointer_expression "*(float *)(unaff_EDI + 0xfc99d)" (* "*") (cast_expression "(float *)(unaff_EDI + 0xfc99d)" (( "(") (type_descriptor "float *" (primitive_type "float") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xfc99d)" (( "(") (binary_expression "unaff_EDI + 0xfc99d" (identifier "unaff_EDI") (+ "+") (number_literal "0xfc99d")) () ")"))))) () ")")) (/ "/") (pointer_expression "*(float *)(unaff_EDI + 0xfc9a1)" (* "*") (cast_expression "(float *)(unaff_EDI + 0xfc9a1)" (( "(") (type_descriptor "float *" (primitive_type "float") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xfc9a1)" (( "(") (binary_expression "unaff_EDI + 0xfc9a1" (identifier "unaff_EDI") (+ "+") (number_literal "0xfc9a1")) () ")"))))) () ")"))))) (; ";")) (expression_statement "iVar4 = iVar2;" (assignment_expression "iVar4 = iVar2" (identifier "iVar4") (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 < 0) {\n    iVar4 = iVar2 + 3;\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = iVar2 + 3;\n  }" ({ "{") (expression_statement "iVar4 = iVar2 + 3;" (assignment_expression "iVar4 = iVar2 + 3" (identifier "iVar4") (= "=") (binary_expression "iVar2 + 3" (identifier "iVar2") (+ "+") (number_literal "3"))) (; ";")) (} "}"))) (expression_statement "iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);" (assignment_expression "iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2)" (identifier "iVar6") (= "=") (binary_expression "(extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2)" (parenthesized_expression "(extraout_ECX / 0x15180 + 0x254381 + iVar2)" (( "(") (binary_expression "extraout_ECX / 0x15180 + 0x254381 + iVar2" (binary_expression "extraout_ECX / 0x15180 + 0x254381" (binary_expression "extraout_ECX / 0x15180" (identifier "extraout_ECX") (/ "/") (number_literal "0x15180")) (+ "+") (number_literal "0x254381")) (+ "+") (identifier "iVar2")) () ")")) (- "-") (parenthesized_expression "(iVar4 >> 2)" (( "(") (binary_expression "iVar4 >> 2" (identifier "iVar4") (>> ">>") (number_literal "2")) () ")")))) (; ";")) (expression_statement "uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5));" (assignment_expression "uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" (identifier "uVar3") (= "=") (cast_expression "(uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" (identifier "ROUND") (argument_list "(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5))" (( "(") (binary_expression "((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /\n                      (double)*(float *)(unaff_EDI + 0xfc9a5)" (parenthesized_expression "((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1))" (( "(") (binary_expression "(double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)" (cast_expression "(double)iVar6" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "iVar6")) (- "-") (pointer_expression "*(double *)(unaff_EDI + 0xfc9b1)" (* "*") (cast_expression "(double *)(unaff_EDI + 0xfc9b1)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xfc9b1)" (( "(") (binary_expression "unaff_EDI + 0xfc9b1" (identifier "unaff_EDI") (+ "+") (number_literal "0xfc9b1")) () ")"))))) () ")")) (/ "/") (cast_expression "(double)*(float *)(unaff_EDI + 0xfc9a5)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(float *)(unaff_EDI + 0xfc9a5)" (* "*") (cast_expression "(float *)(unaff_EDI + 0xfc9a5)" (( "(") (type_descriptor "float *" (primitive_type "float") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xfc9a5)" (( "(") (binary_expression "unaff_EDI + 0xfc9a5" (identifier "unaff_EDI") (+ "+") (number_literal "0xfc9a5")) () ")")))))) () ")"))))) (; ";")) (expression_statement "iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;" (assignment_expression "iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100" (identifier "iVar6") (= "=") (binary_expression "iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100" (identifier "iVar6") (- "-") (binary_expression "((uVar3 & 0x7fff) * 0x8ead) / 100" (parenthesized_expression "((uVar3 & 0x7fff) * 0x8ead)" (( "(") (binary_expression "(uVar3 & 0x7fff) * 0x8ead" (parenthesized_expression "(uVar3 & 0x7fff)" (( "(") (binary_expression "uVar3 & 0x7fff" (identifier "uVar3") (& "&") (number_literal "0x7fff")) () ")")) (* "*") (number_literal "0x8ead")) () ")")) (/ "/") (number_literal "100")))) (; ";")) (expression_statement "iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));" (assignment_expression "iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" (identifier "iVar2") (= "=") (cast_expression "(int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" (identifier "ROUND") (argument_list "((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9))" (( "(") (binary_expression "(double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9)" (cast_expression "(double)iVar6" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "iVar6")) (/ "/") (pointer_expression "*(double *)(unaff_EDI + 0xfc9b9)" (* "*") (cast_expression "(double *)(unaff_EDI + 0xfc9b9)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xfc9b9)" (( "(") (binary_expression "unaff_EDI + 0xfc9b9" (identifier "unaff_EDI") (+ "+") (number_literal "0xfc9b9")) () ")"))))) () ")"))))) (; ";")) (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (0xd < iVar2) {\n    iVar4 = iVar2 + -0xd;\n  }" (if "if") (parenthesized_expression "(0xd < iVar2)" (( "(") (binary_expression "0xd < iVar2" (number_literal "0xd") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    iVar4 = iVar2 + -0xd;\n  }" ({ "{") (expression_statement "iVar4 = iVar2 + -0xd;" (assignment_expression "iVar4 = iVar2 + -0xd" (identifier "iVar4") (= "=") (binary_expression "iVar2 + -0xd" (identifier "iVar2") (+ "+") (number_literal "-0xd"))) (; ";")) (} "}"))) (expression_statement "iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);" (assignment_expression "iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3)" (identifier "iVar1") (= "=") (binary_expression "(uVar3 - 0x126c) + (uint)(iVar4 < 3)" (parenthesized_expression "(uVar3 - 0x126c)" (( "(") (binary_expression "uVar3 - 0x126c" (identifier "uVar3") (- "-") (number_literal "0x126c")) () ")")) (+ "+") (call_expression "(uint)(iVar4 < 3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar4 < 3)" (( "(") (binary_expression "iVar4 < 3" (identifier "iVar4") (< "<") (number_literal "3")) () ")"))))) (; ";")) (if_statement "if (0x7bb < iVar1) {\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }" (if "if") (parenthesized_expression "(0x7bb < iVar1)" (( "(") (binary_expression "0x7bb < iVar1" (number_literal "0x7bb") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));\n    *(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);\n    return;\n  }" ({ "{") (expression_statement "*psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));" (assignment_expression "*psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)))" (pointer_expression "*psVar5" (* "*") (identifier "psVar5")) (= "=") (binary_expression "((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5) +\n              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)))" (binary_expression "((short)iVar1 + -0x7bc) * 0x200 +\n              (short)(iVar4 << 5)" (binary_expression "((short)iVar1 + -0x7bc) * 0x200" (parenthesized_expression "((short)iVar1 + -0x7bc)" (( "(") (binary_expression "(short)iVar1 + -0x7bc" (cast_expression "(short)iVar1" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "iVar1")) (+ "+") (number_literal "-0x7bc")) () ")")) (* "*") (number_literal "0x200")) (+ "+") (cast_expression "(short)(iVar4 << 5)" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (parenthesized_expression "(iVar4 << 5)" (( "(") (binary_expression "iVar4 << 5" (identifier "iVar4") (<< "<<") (number_literal "5")) () ")")))) (+ "+") (parenthesized_expression "((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)))" (( "(") (binary_expression "(short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" (cast_expression "(short)iVar6" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "iVar6")) (- "-") (cast_expression "(short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (cast_expression "(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" (identifier "ROUND") (argument_list "((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9))" (( "(") (binary_expression "(double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)" (cast_expression "(double)iVar2" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "iVar2")) (* "*") (pointer_expression "*(double *)(unaff_EDI + 0xfc9b9)" (* "*") (cast_expression "(double *)(unaff_EDI + 0xfc9b9)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EDI + 0xfc9b9)" (( "(") (binary_expression "unaff_EDI + 0xfc9b9" (identifier "unaff_EDI") (+ "+") (number_literal "0xfc9b9")) () ")"))))) () ")")))))) () ")")))) (; ";")) (expression_statement "*(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);" (assignment_expression "*(short *)uVar7 =\n         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb)" (pointer_expression "*(short *)uVar7" (* "*") (cast_expression "(short *)uVar7" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar7"))) (= "=") (binary_expression "(short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +\n         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb)" (binary_expression "(short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1)" (cast_expression "(short)((extraout_ECX % 0xe10) / 0x3c << 5)" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (parenthesized_expression "((extraout_ECX % 0xe10) / 0x3c << 5)" (( "(") (binary_expression "(extraout_ECX % 0xe10) / 0x3c << 5" (binary_expression "(extraout_ECX % 0xe10) / 0x3c" (parenthesized_expression "(extraout_ECX % 0xe10)" (( "(") (binary_expression "extraout_ECX % 0xe10" (identifier "extraout_ECX") (% "%") (number_literal "0xe10")) () ")")) (/ "/") (number_literal "0x3c")) (<< "<<") (number_literal "5")) () ")"))) (+ "+") (cast_expression "(short)((int)(extraout_ECX % 0x3c) >> 1)" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (parenthesized_expression "((int)(extraout_ECX % 0x3c) >> 1)" (( "(") (binary_expression "(int)(extraout_ECX % 0x3c) >> 1" (cast_expression "(int)(extraout_ECX % 0x3c)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(extraout_ECX % 0x3c)" (( "(") (binary_expression "extraout_ECX % 0x3c" (identifier "extraout_ECX") (% "%") (number_literal "0x3c")) () ")"))) (>> ">>") (number_literal "1")) () ")")))) (+ "+") (cast_expression "(short)((extraout_ECX % 0x15180) / 0xe10 << 0xb)" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (parenthesized_expression "((extraout_ECX % 0x15180) / 0xe10 << 0xb)" (( "(") (binary_expression "(extraout_ECX % 0x15180) / 0xe10 << 0xb" (binary_expression "(extraout_ECX % 0x15180) / 0xe10" (parenthesized_expression "(extraout_ECX % 0x15180)" (( "(") (binary_expression "extraout_ECX % 0x15180" (identifier "extraout_ECX") (% "%") (number_literal "0x15180")) () ")")) (/ "/") (number_literal "0xe10")) (<< "<<") (number_literal "0xb")) () ")"))))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(short *)uVar7 = 0;" (assignment_expression "*(short *)uVar7 = 0" (pointer_expression "*(short *)uVar7" (* "*") (cast_expression "(short *)uVar7" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar7"))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*psVar5 = 0;" (assignment_expression "*psVar5 = 0" (pointer_expression "*psVar5" (* "*") (identifier "psVar5")) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void zipfileMtimeToDos(ZipfileCDS * pCds, u32 mUnixTime, ZipfileCDS *
   pCds) */

void function_1(type_1 *pCds,type_2 mUnixTime,type_1 *pCds_1)

{
  int var_9;
  int var_5;
  type_3 var_8;
  int var_6;
  type_3 var_3;
  short *psVar5;
  int var_7;
  int var_4;
  type_4 uVar7;
  
  uVar7 = var_1();
  psVar5 = (short *)((type_5)uVar7 >> 0x20);
  var_5 = (int)var_2(((float)(var_3 / 0x15180 + 0x253d8c) - *(float *)(var_4 + 0xfc99d))
                     / *(float *)(var_4 + 0xfc9a1));
  var_6 = var_5;
  if (var_5 < 0) {
    var_6 = var_5 + 3;
  }
  var_7 = (var_3 / 0x15180 + 0x254381 + var_5) - (var_6 >> 2);
  var_8 = (type_3)var_2(((double)var_7 - *(double *)(var_4 + 0xfc9b1)) /
                      (double)*(float *)(var_4 + 0xfc9a5));
  var_7 = var_7 - ((var_8 & 0x7fff) * 0x8ead) / 100;
  var_5 = (int)var_2((double)var_7 / *(double *)(var_4 + 0xfc9b9));
  var_6 = var_5 + -1;
  if (0xd < var_5) {
    var_6 = var_5 + -0xd;
  }
  var_9 = (var_8 - 0x126c) + (type_3)(var_6 < 3);
  if (0x7bb < var_9) {
    *psVar5 = ((short)var_9 + -0x7bc) * 0x200 +
              (short)(var_6 << 5) +
              ((short)var_7 - (short)(int)var_2((double)var_5 * *(double *)(var_4 + 0xfc9b9)));
    *(short *)uVar7 =
         (short)((var_3 % 0xe10) / 0x3c << 5) + (short)((int)(var_3 % 0x3c) >> 1) +
         (short)((var_3 % 0x15180) / 0xe10 << 0xb);
    return;
  }
  *(short *)uVar7 = 0;
  *psVar5 = 0;
  return;
}


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

void MASKED(void)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  uint extraout_ECX;
  short *psVar5;
  int iVar6;
  int unaff_EDI;
  undefined8 uVar7;
  
  uVar7 = FUN_00036ac5();
  psVar5 = (short *)((ulonglong)uVar7 >> 0x20);
  iVar2 = (int)ROUND(((float)(extraout_ECX / 0x15180 + 0x253d8c) - *(float *)(unaff_EDI + 0xfc99d))
                     / *(float *)(unaff_EDI + 0xfc9a1));
  iVar4 = iVar2;
  if (iVar2 < 0) {
    iVar4 = iVar2 + 3;
  }
  iVar6 = (extraout_ECX / 0x15180 + 0x254381 + iVar2) - (iVar4 >> 2);
  uVar3 = (uint)ROUND(((double)iVar6 - *(double *)(unaff_EDI + 0xfc9b1)) /
                      (double)*(float *)(unaff_EDI + 0xfc9a5));
  iVar6 = iVar6 - ((uVar3 & 0x7fff) * 0x8ead) / 100;
  iVar2 = (int)ROUND((double)iVar6 / *(double *)(unaff_EDI + 0xfc9b9));
  iVar4 = iVar2 + -1;
  if (0xd < iVar2) {
    iVar4 = iVar2 + -0xd;
  }
  iVar1 = (uVar3 - 0x126c) + (uint)(iVar4 < 3);
  if (0x7bb < iVar1) {
    *psVar5 = ((short)iVar1 + -0x7bc) * 0x200 +
              (short)(iVar4 << 5) +
              ((short)iVar6 - (short)(int)ROUND((double)iVar2 * *(double *)(unaff_EDI + 0xfc9b9)));
    *(short *)uVar7 =
         (short)((extraout_ECX % 0xe10) / 0x3c << 5) + (short)((int)(extraout_ECX % 0x3c) >> 1) +
         (short)((extraout_ECX % 0x15180) / 0xe10 << 0xb);
    return;
  }
  *(short *)uVar7 = 0;
  *psVar5 = 0;
  return;
}

