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

void ntileValueFunc(sqlite3_context *pCtx)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  uint *puVar5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  int iVar9;
  int iVar10;
  uint uVar11;
  uint uVar12;
  int iVar13;
  longlong lVar14;
  
  puVar5 = (uint *)sqlite3_aggregate_context(pCtx,0x18);
  if (puVar5 != (uint *)0x0) {
    uVar8 = puVar5[2];
    uVar11 = puVar5[3];
    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {
      uVar2 = *puVar5;
      uVar3 = puVar5[1];
      uVar6 = __divdi3(uVar2,uVar3,uVar8,uVar11);
      uVar4 = puVar5[4];
      if (uVar6 == 0) {
        sqlite3_result_int64(pCtx,*(i64 *)(puVar5 + 4));
        return;
      }
      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);
      uVar12 = uVar2 - uVar7;
      uVar1 = uVar6 + 1;
      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +
                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);
      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);
      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +
              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;
      uVar11 = uVar4 - 1;
      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);
      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==
          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {
        lVar14 = __divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,
                          (int)uVar6 >> 0x1f);
        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);
      }
      else {
        lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);
        lVar14 = lVar14 + 1;
      }
      sqlite3_result_int64(pCtx,lVar14);
    }
  }
  return;
}



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

void FUN_000448b0(undefined4 param_1)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  uint *puVar5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  int iVar9;
  int iVar10;
  uint uVar11;
  uint uVar12;
  int iVar13;
  longlong lVar14;
  
  puVar5 = (uint *)FUN_00044840(param_1,0x18);
  if (puVar5 != (uint *)0x0) {
    uVar8 = puVar5[2];
    uVar11 = puVar5[3];
    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {
      uVar2 = *puVar5;
      uVar3 = puVar5[1];
      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);
      uVar4 = puVar5[4];
      if (uVar6 == 0) {
        FUN_00025040(param_1,uVar4,puVar5[5]);
        return;
      }
      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);
      uVar12 = uVar2 - uVar7;
      uVar1 = uVar6 + 1;
      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +
                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);
      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);
      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +
              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;
      uVar11 = uVar4 - 1;
      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);
      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==
          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {
        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,
                              (int)uVar6 >> 0x1f);
        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);
      }
      else {
        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);
        lVar14 = lVar14 + 1;
      }
      FUN_00025040(param_1,lVar14);
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0x10461b
SUB ESP,0x34
PUSH 0x18
PUSH dword ptr [ESP + 0x4c]
CALL 0x00044840
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000449c8
MOV ESI,dword ptr [EAX + 0x8]
MOV EDI,dword ptr [EAX + 0xc]
MOV EBP,EAX
XOR EAX,EAX
CMP EAX,ESI
MOV dword ptr [ESP],ESI
SBB EAX,EDI
MOV dword ptr [ESP + 0x4],EDI
JGE 0x000449c8
MOV EAX,dword ptr [EBP]
MOV EDX,dword ptr [EBP + 0x4]
MOV dword ptr [ESP + 0x10],EAX
MOV dword ptr [ESP + 0x14],EDX
PUSH EDI
PUSH ESI
PUSH EDX
PUSH EAX
CALL 0x000f41f0
MOV EDX,dword ptr [EBP + 0x14]
ADD ESP,0x10
MOV ECX,EAX
MOV EAX,dword ptr [EBP + 0x10]
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x8],EAX
TEST ECX,ECX
JZ 0x000449f0
MOV EAX,ECX
MOV EDI,dword ptr [ESP + 0x4]
MOV EBP,dword ptr [ESP + 0x14]
MOV dword ptr [ESP + 0x18],ECX
CDQ
MOV EAX,dword ptr [ESP]
IMUL EDI,ECX
MOV dword ptr [ESP + 0x1c],EDX
IMUL EAX,EDX
ADD EDI,EAX
MOV EAX,dword ptr [ESP]
MUL ECX
ADD EDX,EDI
MOV EDI,dword ptr [ESP + 0x10]
SUB EDI,EAX
LEA EAX,[ECX + 0x1]
MOV ECX,EAX
SBB EBP,EDX
MOV dword ptr [ESP],EAX
SAR ECX,0x1f
MOV dword ptr [ESP + 0x10],EDI
MOV ESI,ECX
MOV dword ptr [ESP + 0x4],ECX
MOV ECX,EBP
IMUL ECX,EAX
MOV dword ptr [ESP + 0x14],EBP
IMUL ESI,EDI
MUL EDI
MOV EDI,dword ptr [ESP + 0xc]
ADD ESI,ECX
ADD EDX,ESI
MOV ESI,dword ptr [ESP + 0x8]
ADD ESI,-0x1
ADC EDI,-0x1
CMP ESI,EAX
MOV ECX,EDI
SBB ECX,EDX
JL 0x000449d0
SUB ESP,0x10
SUB ESI,EAX
SBB EDI,EDX
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x2c]
PUSH EDI
PUSH ESI
CALL 0x000f41f0
ADD ESP,0x1c
MOV ESI,dword ptr [ESP + 0x14]
MOV EDI,dword ptr [ESP + 0x18]
ADD ESI,0x1
ADC EDI,0x0
ADD EAX,ESI
ADC EDX,EDI
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x4c]
CALL 0x00025040
ADD ESP,0x10
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x10
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x14]
PUSH EDI
PUSH ESI
CALL 0x000f41f0
ADD ESP,0x1c
ADD EAX,0x1
ADC EDX,0x0
JMP 0x000449ba
SUB ESP,0x4
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x4c]
CALL 0x00025040
ADD ESP,0x10
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_000448b0(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  longlong lVar14;\n  \n  puVar5 = (uint *)FUN_00044840(param_1,0x18);\n  if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_000448b0(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  longlong lVar14;\n  \n  puVar5 = (uint *)FUN_00044840(param_1,0x18);\n  if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000448b0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  longlong lVar14;\n  \n  puVar5 = (uint *)FUN_00044840(param_1,0x18);\n  if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "longlong lVar14;" type_identifier identifier ;) (expression_statement "puVar5 = (uint *)FUN_00044840(param_1,0x18);" (assignment_expression "puVar5 = (uint *)FUN_00044840(param_1,0x18)" identifier = (cast_expression "(uint *)FUN_00044840(param_1,0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00044840(param_1,0x18)" identifier (argument_list "(param_1,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }" if (parenthesized_expression "(puVar5 != (uint *)0x0)" ( (binary_expression "puVar5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }" { (expression_statement "uVar8 = puVar5[2];" (assignment_expression "uVar8 = puVar5[2]" identifier = (subscript_expression "puVar5[2]" identifier [ number_literal ])) ;) (expression_statement "uVar11 = puVar5[3];" (assignment_expression "uVar11 = puVar5[3]" identifier = (subscript_expression "puVar5[3]" identifier [ number_literal ])) ;) (if_statement "if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }" if (parenthesized_expression "((int)-uVar11 < (int)(uint)(uVar8 != 0))" ( (binary_expression "(int)-uVar11 < (int)(uint)(uVar8 != 0)" (cast_expression "(int)-uVar11" ( (type_descriptor "int" primitive_type) ) (unary_expression "-uVar11" - identifier)) < (cast_expression "(int)(uint)(uVar8 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(uVar8 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) ))))) )) (compound_statement "{\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }" { (expression_statement "uVar2 = *puVar5;" (assignment_expression "uVar2 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "uVar3 = puVar5[1];" (assignment_expression "uVar3 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);" (assignment_expression "uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11)" identifier = (call_expression "FUN_000f41f0(uVar2,uVar3,uVar8,uVar11)" identifier (argument_list "(uVar2,uVar3,uVar8,uVar11)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "uVar4 = puVar5[4];" (assignment_expression "uVar4 = puVar5[4]" identifier = (subscript_expression "puVar5[4]" identifier [ number_literal ])) ;) (if_statement "if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }" { (expression_statement "FUN_00025040(param_1,uVar4,puVar5[5]);" (call_expression "FUN_00025040(param_1,uVar4,puVar5[5])" identifier (argument_list "(param_1,uVar4,puVar5[5])" ( identifier , identifier , (subscript_expression "puVar5[5]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);" (assignment_expression "uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6)" identifier = (call_expression "(uint)((ulonglong)uVar8 * (ulonglong)uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar8 * (ulonglong)uVar6)" ( (binary_expression "(ulonglong)uVar8 * (ulonglong)uVar6" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) (expression_statement "uVar12 = uVar2 - uVar7;" (assignment_expression "uVar12 = uVar2 - uVar7" identifier = (binary_expression "uVar2 - uVar7" identifier - identifier)) ;) (expression_statement "uVar1 = uVar6 + 1;" (assignment_expression "uVar1 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);" (assignment_expression "iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7)" identifier = (binary_expression "(uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7)" (parenthesized_expression "(uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f)))" ( (binary_expression "uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))" identifier - (parenthesized_expression "((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))" ( (binary_expression "(int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f)" (binary_expression "(int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6" (cast_expression "(int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20" (binary_expression "(ulonglong)uVar8 * (ulonglong)uVar6" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) + (binary_expression "uVar11 * uVar6" identifier * identifier)) + (binary_expression "uVar8 * ((int)uVar6 >> 0x1f)" identifier * (parenthesized_expression "((int)uVar6 >> 0x1f)" ( (binary_expression "(int)uVar6 >> 0x1f" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ))) )) - (call_expression "(uint)(uVar2 < uVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < uVar7)" ( (binary_expression "uVar2 < uVar7" identifier < identifier) ))))) ;) (expression_statement "uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);" (assignment_expression "uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12)" identifier = (call_expression "(uint)((ulonglong)uVar1 * (ulonglong)uVar12)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar1 * (ulonglong)uVar12)" ( (binary_expression "(ulonglong)uVar1 * (ulonglong)uVar12" (cast_expression "(ulonglong)uVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar12" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) (expression_statement "iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;" (assignment_expression "iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1" identifier = (binary_expression "(int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1" (binary_expression "(int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12" (cast_expression "(int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20)" ( (binary_expression "(ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20" (binary_expression "(ulonglong)uVar1 * (ulonglong)uVar12" (cast_expression "(ulonglong)uVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar12" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) + (binary_expression "((int)uVar1 >> 0x1f) * uVar12" (parenthesized_expression "((int)uVar1 >> 0x1f)" ( (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) * identifier)) + (binary_expression "iVar10 * uVar1" identifier * identifier))) ;) (expression_statement "uVar11 = uVar4 - 1;" (assignment_expression "uVar11 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);" (assignment_expression "iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0)" identifier = (binary_expression "(puVar5[5] - 1) + (uint)(uVar4 != 0)" (parenthesized_expression "(puVar5[5] - 1)" ( (binary_expression "puVar5[5] - 1" (subscript_expression "puVar5[5]" identifier [ number_literal ]) - number_literal) )) + (call_expression "(uint)(uVar4 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) ))))) ;) (if_statement "if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }" if (parenthesized_expression "((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0)" ( (binary_expression "(SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0" (parenthesized_expression "(SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8)))" ( (binary_expression "SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))" (call_expression "SBORROW4(iVar13,iVar9)" identifier (argument_list "(iVar13,iVar9)" ( identifier , identifier ))) != (call_expression "SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))" identifier (argument_list "(iVar13 - iVar9,(uint)(uVar11 < uVar8))" ( (binary_expression "iVar13 - iVar9" identifier - identifier) , (call_expression "(uint)(uVar11 < uVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar11 < uVar8)" ( (binary_expression "uVar11 < uVar8" identifier < identifier) ))) )))) )) == (binary_expression "(int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0" (cast_expression "(int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((iVar13 - iVar9) - (uint)(uVar11 < uVar8))" ( (binary_expression "(iVar13 - iVar9) - (uint)(uVar11 < uVar8)" (parenthesized_expression "(iVar13 - iVar9)" ( (binary_expression "iVar13 - iVar9" identifier - identifier) )) - (call_expression "(uint)(uVar11 < uVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar11 < uVar8)" ( (binary_expression "uVar11 < uVar8" identifier < identifier) )))) ))) < number_literal)) )) (compound_statement "{\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }" { (expression_statement "lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);" (assignment_expression "lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f)" identifier = (call_expression "FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f)" identifier (argument_list "(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f)" ( (binary_expression "uVar11 - uVar8" identifier - identifier) , (binary_expression "(iVar13 - iVar9) - (uint)(uVar11 < uVar8)" (parenthesized_expression "(iVar13 - iVar9)" ( (binary_expression "iVar13 - iVar9" identifier - identifier) )) - (call_expression "(uint)(uVar11 < uVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar11 < uVar8)" ( (binary_expression "uVar11 < uVar8" identifier < identifier) )))) , identifier , (binary_expression "(int)uVar6 >> 0x1f" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);" (assignment_expression "lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" identifier = (binary_expression "lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" identifier + (call_expression "CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" identifier (argument_list "(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" ( (binary_expression "iVar10 + (uint)(0xfffffffe < uVar12)" identifier + (call_expression "(uint)(0xfffffffe < uVar12)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < uVar12)" ( (binary_expression "0xfffffffe < uVar12" number_literal < identifier) )))) , (binary_expression "uVar12 + 1" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }" else (compound_statement "{\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }" { (expression_statement "lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);" (assignment_expression "lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f)" identifier = (call_expression "FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f)" identifier (argument_list "(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f)" ( identifier , identifier , identifier , (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "lVar14 = lVar14 + 1;" (assignment_expression "lVar14 = lVar14 + 1" identifier = (binary_expression "lVar14 + 1" identifier + number_literal)) ;) }))) (expression_statement "FUN_00025040(param_1,lVar14);" (call_expression "FUN_00025040(param_1,lVar14)" identifier (argument_list "(param_1,lVar14)" ( identifier , identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid ntileValueFunc(sqlite3_context *pCtx)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  longlong lVar14;\n  \n  puVar5 = (uint *)sqlite3_aggregate_context(pCtx,0x18);\n  if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = __divdi3(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        sqlite3_result_int64(pCtx,*(i64 *)(puVar5 + 4));\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = __divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      sqlite3_result_int64(pCtx,lVar14);\n    }\n  }\n  return;\n}\n\n" comment comment (function_definition "void ntileValueFunc(sqlite3_context *pCtx)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  longlong lVar14;\n  \n  puVar5 = (uint *)sqlite3_aggregate_context(pCtx,0x18);\n  if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = __divdi3(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        sqlite3_result_int64(pCtx,*(i64 *)(puVar5 + 4));\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = __divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      sqlite3_result_int64(pCtx,lVar14);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "ntileValueFunc(sqlite3_context *pCtx)" identifier (parameter_list "(sqlite3_context *pCtx)" ( (parameter_declaration "sqlite3_context *pCtx" type_identifier (pointer_declarator "*pCtx" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  longlong lVar14;\n  \n  puVar5 = (uint *)sqlite3_aggregate_context(pCtx,0x18);\n  if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = __divdi3(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        sqlite3_result_int64(pCtx,*(i64 *)(puVar5 + 4));\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = __divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      sqlite3_result_int64(pCtx,lVar14);\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "longlong lVar14;" type_identifier identifier ;) (expression_statement "puVar5 = (uint *)sqlite3_aggregate_context(pCtx,0x18);" (assignment_expression "puVar5 = (uint *)sqlite3_aggregate_context(pCtx,0x18)" identifier = (cast_expression "(uint *)sqlite3_aggregate_context(pCtx,0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_aggregate_context(pCtx,0x18)" identifier (argument_list "(pCtx,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = __divdi3(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        sqlite3_result_int64(pCtx,*(i64 *)(puVar5 + 4));\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = __divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      sqlite3_result_int64(pCtx,lVar14);\n    }\n  }" if (parenthesized_expression "(puVar5 != (uint *)0x0)" ( (binary_expression "puVar5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = __divdi3(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        sqlite3_result_int64(pCtx,*(i64 *)(puVar5 + 4));\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = __divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      sqlite3_result_int64(pCtx,lVar14);\n    }\n  }" { (expression_statement "uVar8 = puVar5[2];" (assignment_expression "uVar8 = puVar5[2]" identifier = (subscript_expression "puVar5[2]" identifier [ number_literal ])) ;) (expression_statement "uVar11 = puVar5[3];" (assignment_expression "uVar11 = puVar5[3]" identifier = (subscript_expression "puVar5[3]" identifier [ number_literal ])) ;) (if_statement "if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = __divdi3(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        sqlite3_result_int64(pCtx,*(i64 *)(puVar5 + 4));\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = __divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      sqlite3_result_int64(pCtx,lVar14);\n    }" if (parenthesized_expression "((int)-uVar11 < (int)(uint)(uVar8 != 0))" ( (binary_expression "(int)-uVar11 < (int)(uint)(uVar8 != 0)" (cast_expression "(int)-uVar11" ( (type_descriptor "int" primitive_type) ) (unary_expression "-uVar11" - identifier)) < (cast_expression "(int)(uint)(uVar8 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(uVar8 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) ))))) )) (compound_statement "{\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = __divdi3(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        sqlite3_result_int64(pCtx,*(i64 *)(puVar5 + 4));\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = __divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      sqlite3_result_int64(pCtx,lVar14);\n    }" { (expression_statement "uVar2 = *puVar5;" (assignment_expression "uVar2 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "uVar3 = puVar5[1];" (assignment_expression "uVar3 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = __divdi3(uVar2,uVar3,uVar8,uVar11);" (assignment_expression "uVar6 = __divdi3(uVar2,uVar3,uVar8,uVar11)" identifier = (call_expression "__divdi3(uVar2,uVar3,uVar8,uVar11)" identifier (argument_list "(uVar2,uVar3,uVar8,uVar11)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "uVar4 = puVar5[4];" (assignment_expression "uVar4 = puVar5[4]" identifier = (subscript_expression "puVar5[4]" identifier [ number_literal ])) ;) (if_statement "if (uVar6 == 0) {\n        sqlite3_result_int64(pCtx,*(i64 *)(puVar5 + 4));\n        return;\n      }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        sqlite3_result_int64(pCtx,*(i64 *)(puVar5 + 4));\n        return;\n      }" { (expression_statement "sqlite3_result_int64(pCtx,*(i64 *)(puVar5 + 4));" (call_expression "sqlite3_result_int64(pCtx,*(i64 *)(puVar5 + 4))" identifier (argument_list "(pCtx,*(i64 *)(puVar5 + 4))" ( identifier , (pointer_expression "*(i64 *)(puVar5 + 4)" * (cast_expression "(i64 *)(puVar5 + 4)" ( (type_descriptor "i64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar5 + 4)" ( (binary_expression "puVar5 + 4" identifier + number_literal) )))) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);" (assignment_expression "uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6)" identifier = (call_expression "(uint)((ulonglong)uVar8 * (ulonglong)uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar8 * (ulonglong)uVar6)" ( (binary_expression "(ulonglong)uVar8 * (ulonglong)uVar6" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) (expression_statement "uVar12 = uVar2 - uVar7;" (assignment_expression "uVar12 = uVar2 - uVar7" identifier = (binary_expression "uVar2 - uVar7" identifier - identifier)) ;) (expression_statement "uVar1 = uVar6 + 1;" (assignment_expression "uVar1 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);" (assignment_expression "iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7)" identifier = (binary_expression "(uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7)" (parenthesized_expression "(uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f)))" ( (binary_expression "uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))" identifier - (parenthesized_expression "((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))" ( (binary_expression "(int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f)" (binary_expression "(int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6" (cast_expression "(int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20" (binary_expression "(ulonglong)uVar8 * (ulonglong)uVar6" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) + (binary_expression "uVar11 * uVar6" identifier * identifier)) + (binary_expression "uVar8 * ((int)uVar6 >> 0x1f)" identifier * (parenthesized_expression "((int)uVar6 >> 0x1f)" ( (binary_expression "(int)uVar6 >> 0x1f" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ))) )) - (call_expression "(uint)(uVar2 < uVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < uVar7)" ( (binary_expression "uVar2 < uVar7" identifier < identifier) ))))) ;) (expression_statement "uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);" (assignment_expression "uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12)" identifier = (call_expression "(uint)((ulonglong)uVar1 * (ulonglong)uVar12)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar1 * (ulonglong)uVar12)" ( (binary_expression "(ulonglong)uVar1 * (ulonglong)uVar12" (cast_expression "(ulonglong)uVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar12" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) (expression_statement "iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;" (assignment_expression "iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1" identifier = (binary_expression "(int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1" (binary_expression "(int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12" (cast_expression "(int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20)" ( (binary_expression "(ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20" (binary_expression "(ulonglong)uVar1 * (ulonglong)uVar12" (cast_expression "(ulonglong)uVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar12" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) + (binary_expression "((int)uVar1 >> 0x1f) * uVar12" (parenthesized_expression "((int)uVar1 >> 0x1f)" ( (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) * identifier)) + (binary_expression "iVar10 * uVar1" identifier * identifier))) ;) (expression_statement "uVar11 = uVar4 - 1;" (assignment_expression "uVar11 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);" (assignment_expression "iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0)" identifier = (binary_expression "(puVar5[5] - 1) + (uint)(uVar4 != 0)" (parenthesized_expression "(puVar5[5] - 1)" ( (binary_expression "puVar5[5] - 1" (subscript_expression "puVar5[5]" identifier [ number_literal ]) - number_literal) )) + (call_expression "(uint)(uVar4 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) ))))) ;) (if_statement "if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = __divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }" if (parenthesized_expression "((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0)" ( (binary_expression "(SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0" (parenthesized_expression "(SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8)))" ( (binary_expression "SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))" (call_expression "SBORROW4(iVar13,iVar9)" identifier (argument_list "(iVar13,iVar9)" ( identifier , identifier ))) != (call_expression "SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))" identifier (argument_list "(iVar13 - iVar9,(uint)(uVar11 < uVar8))" ( (binary_expression "iVar13 - iVar9" identifier - identifier) , (call_expression "(uint)(uVar11 < uVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar11 < uVar8)" ( (binary_expression "uVar11 < uVar8" identifier < identifier) ))) )))) )) == (binary_expression "(int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0" (cast_expression "(int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((iVar13 - iVar9) - (uint)(uVar11 < uVar8))" ( (binary_expression "(iVar13 - iVar9) - (uint)(uVar11 < uVar8)" (parenthesized_expression "(iVar13 - iVar9)" ( (binary_expression "iVar13 - iVar9" identifier - identifier) )) - (call_expression "(uint)(uVar11 < uVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar11 < uVar8)" ( (binary_expression "uVar11 < uVar8" identifier < identifier) )))) ))) < number_literal)) )) (compound_statement "{\n        lVar14 = __divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }" { (expression_statement "lVar14 = __divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f);" (assignment_expression "lVar14 = __divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f)" identifier = (call_expression "__divdi3(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f)" identifier (argument_list "(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                          (int)uVar6 >> 0x1f)" ( (binary_expression "uVar11 - uVar8" identifier - identifier) , (binary_expression "(iVar13 - iVar9) - (uint)(uVar11 < uVar8)" (parenthesized_expression "(iVar13 - iVar9)" ( (binary_expression "iVar13 - iVar9" identifier - identifier) )) - (call_expression "(uint)(uVar11 < uVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar11 < uVar8)" ( (binary_expression "uVar11 < uVar8" identifier < identifier) )))) , identifier , (binary_expression "(int)uVar6 >> 0x1f" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);" (assignment_expression "lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" identifier = (binary_expression "lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" identifier + (call_expression "CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" identifier (argument_list "(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" ( (binary_expression "iVar10 + (uint)(0xfffffffe < uVar12)" identifier + (call_expression "(uint)(0xfffffffe < uVar12)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < uVar12)" ( (binary_expression "0xfffffffe < uVar12" number_literal < identifier) )))) , (binary_expression "uVar12 + 1" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }" else (compound_statement "{\n        lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }" { (expression_statement "lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);" (assignment_expression "lVar14 = __divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f)" identifier = (call_expression "__divdi3(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f)" identifier (argument_list "(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f)" ( identifier , identifier , identifier , (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "lVar14 = lVar14 + 1;" (assignment_expression "lVar14 = lVar14 + 1" identifier = (binary_expression "lVar14 + 1" identifier + number_literal)) ;) }))) (expression_statement "sqlite3_result_int64(pCtx,lVar14);" (call_expression "sqlite3_result_int64(pCtx,lVar14)" identifier (argument_list "(pCtx,lVar14)" ( identifier , identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_000448b0(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  longlong lVar14;\n  \n  puVar5 = (uint *)FUN_00044840(param_1,0x18);\n  if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_000448b0(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  longlong lVar14;\n  \n  puVar5 = (uint *)FUN_00044840(param_1,0x18);\n  if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_000448b0(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  longlong lVar14;\n  \n  puVar5 = (uint *)FUN_00044840(param_1,0x18);\n  if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "longlong lVar14;" type_identifier identifier ;) (expression_statement "puVar5 = (uint *)FUN_00044840(param_1,0x18);" (assignment_expression "puVar5 = (uint *)FUN_00044840(param_1,0x18)" identifier = (cast_expression "(uint *)FUN_00044840(param_1,0x18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00044840(param_1,0x18)" identifier (argument_list "(param_1,0x18)" ( identifier , number_literal ))))) ;) (if_statement "if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }" if (parenthesized_expression "(puVar5 != (uint *)0x0)" ( (binary_expression "puVar5 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }" { (expression_statement "uVar8 = puVar5[2];" (assignment_expression "uVar8 = puVar5[2]" identifier = (subscript_expression "puVar5[2]" identifier [ number_literal ])) ;) (expression_statement "uVar11 = puVar5[3];" (assignment_expression "uVar11 = puVar5[3]" identifier = (subscript_expression "puVar5[3]" identifier [ number_literal ])) ;) (if_statement "if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }" if (parenthesized_expression "((int)-uVar11 < (int)(uint)(uVar8 != 0))" ( (binary_expression "(int)-uVar11 < (int)(uint)(uVar8 != 0)" (cast_expression "(int)-uVar11" ( (type_descriptor "int" primitive_type) ) (unary_expression "-uVar11" - identifier)) < (cast_expression "(int)(uint)(uVar8 != 0)" ( (type_descriptor "int" primitive_type) ) (call_expression "(uint)(uVar8 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) ))))) )) (compound_statement "{\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }" { (expression_statement "uVar2 = *puVar5;" (assignment_expression "uVar2 = *puVar5" identifier = (pointer_expression "*puVar5" * identifier)) ;) (expression_statement "uVar3 = puVar5[1];" (assignment_expression "uVar3 = puVar5[1]" identifier = (subscript_expression "puVar5[1]" identifier [ number_literal ])) ;) (expression_statement "uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);" (assignment_expression "uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11)" identifier = (call_expression "FUN_000f41f0(uVar2,uVar3,uVar8,uVar11)" identifier (argument_list "(uVar2,uVar3,uVar8,uVar11)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "uVar4 = puVar5[4];" (assignment_expression "uVar4 = puVar5[4]" identifier = (subscript_expression "puVar5[4]" identifier [ number_literal ])) ;) (if_statement "if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }" { (expression_statement "FUN_00025040(param_1,uVar4,puVar5[5]);" (call_expression "FUN_00025040(param_1,uVar4,puVar5[5])" identifier (argument_list "(param_1,uVar4,puVar5[5])" ( identifier , identifier , (subscript_expression "puVar5[5]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })) (expression_statement "uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);" (assignment_expression "uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6)" identifier = (call_expression "(uint)((ulonglong)uVar8 * (ulonglong)uVar6)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar8 * (ulonglong)uVar6)" ( (binary_expression "(ulonglong)uVar8 * (ulonglong)uVar6" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) (expression_statement "uVar12 = uVar2 - uVar7;" (assignment_expression "uVar12 = uVar2 - uVar7" identifier = (binary_expression "uVar2 - uVar7" identifier - identifier)) ;) (expression_statement "uVar1 = uVar6 + 1;" (assignment_expression "uVar1 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);" (assignment_expression "iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7)" identifier = (binary_expression "(uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7)" (parenthesized_expression "(uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f)))" ( (binary_expression "uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))" identifier - (parenthesized_expression "((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))" ( (binary_expression "(int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f)" (binary_expression "(int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6" (cast_expression "(int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20)" ( (binary_expression "(ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20" (binary_expression "(ulonglong)uVar8 * (ulonglong)uVar6" (cast_expression "(ulonglong)uVar8" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar6" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) + (binary_expression "uVar11 * uVar6" identifier * identifier)) + (binary_expression "uVar8 * ((int)uVar6 >> 0x1f)" identifier * (parenthesized_expression "((int)uVar6 >> 0x1f)" ( (binary_expression "(int)uVar6 >> 0x1f" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ))) )) - (call_expression "(uint)(uVar2 < uVar7)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar2 < uVar7)" ( (binary_expression "uVar2 < uVar7" identifier < identifier) ))))) ;) (expression_statement "uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);" (assignment_expression "uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12)" identifier = (call_expression "(uint)((ulonglong)uVar1 * (ulonglong)uVar12)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((ulonglong)uVar1 * (ulonglong)uVar12)" ( (binary_expression "(ulonglong)uVar1 * (ulonglong)uVar12" (cast_expression "(ulonglong)uVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar12" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) )))) ;) (expression_statement "iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;" (assignment_expression "iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1" identifier = (binary_expression "(int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1" (binary_expression "(int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12" (cast_expression "(int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20)" ( (binary_expression "(ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20" (binary_expression "(ulonglong)uVar1 * (ulonglong)uVar12" (cast_expression "(ulonglong)uVar1" ( (type_descriptor "ulonglong" type_identifier) ) identifier) * (cast_expression "(ulonglong)uVar12" ( (type_descriptor "ulonglong" type_identifier) ) identifier)) >> number_literal) ))) + (binary_expression "((int)uVar1 >> 0x1f) * uVar12" (parenthesized_expression "((int)uVar1 >> 0x1f)" ( (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )) * identifier)) + (binary_expression "iVar10 * uVar1" identifier * identifier))) ;) (expression_statement "uVar11 = uVar4 - 1;" (assignment_expression "uVar11 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);" (assignment_expression "iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0)" identifier = (binary_expression "(puVar5[5] - 1) + (uint)(uVar4 != 0)" (parenthesized_expression "(puVar5[5] - 1)" ( (binary_expression "puVar5[5] - 1" (subscript_expression "puVar5[5]" identifier [ number_literal ]) - number_literal) )) + (call_expression "(uint)(uVar4 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) ))))) ;) (if_statement "if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }" if (parenthesized_expression "((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0)" ( (binary_expression "(SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0" (parenthesized_expression "(SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8)))" ( (binary_expression "SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))" (call_expression "SBORROW4(iVar13,iVar9)" identifier (argument_list "(iVar13,iVar9)" ( identifier , identifier ))) != (call_expression "SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))" identifier (argument_list "(iVar13 - iVar9,(uint)(uVar11 < uVar8))" ( (binary_expression "iVar13 - iVar9" identifier - identifier) , (call_expression "(uint)(uVar11 < uVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar11 < uVar8)" ( (binary_expression "uVar11 < uVar8" identifier < identifier) ))) )))) )) == (binary_expression "(int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0" (cast_expression "(int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((iVar13 - iVar9) - (uint)(uVar11 < uVar8))" ( (binary_expression "(iVar13 - iVar9) - (uint)(uVar11 < uVar8)" (parenthesized_expression "(iVar13 - iVar9)" ( (binary_expression "iVar13 - iVar9" identifier - identifier) )) - (call_expression "(uint)(uVar11 < uVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar11 < uVar8)" ( (binary_expression "uVar11 < uVar8" identifier < identifier) )))) ))) < number_literal)) )) (compound_statement "{\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }" { (expression_statement "lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);" (assignment_expression "lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f)" identifier = (call_expression "FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f)" identifier (argument_list "(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f)" ( (binary_expression "uVar11 - uVar8" identifier - identifier) , (binary_expression "(iVar13 - iVar9) - (uint)(uVar11 < uVar8)" (parenthesized_expression "(iVar13 - iVar9)" ( (binary_expression "iVar13 - iVar9" identifier - identifier) )) - (call_expression "(uint)(uVar11 < uVar8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar11 < uVar8)" ( (binary_expression "uVar11 < uVar8" identifier < identifier) )))) , identifier , (binary_expression "(int)uVar6 >> 0x1f" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);" (assignment_expression "lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" identifier = (binary_expression "lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" identifier + (call_expression "CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" identifier (argument_list "(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" ( (binary_expression "iVar10 + (uint)(0xfffffffe < uVar12)" identifier + (call_expression "(uint)(0xfffffffe < uVar12)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0xfffffffe < uVar12)" ( (binary_expression "0xfffffffe < uVar12" number_literal < identifier) )))) , (binary_expression "uVar12 + 1" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }" else (compound_statement "{\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }" { (expression_statement "lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);" (assignment_expression "lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f)" identifier = (call_expression "FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f)" identifier (argument_list "(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f)" ( identifier , identifier , identifier , (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) )))) ;) (expression_statement "lVar14 = lVar14 + 1;" (assignment_expression "lVar14 = lVar14 + 1" identifier = (binary_expression "lVar14 + 1" identifier + number_literal)) ;) }))) (expression_statement "FUN_00025040(param_1,lVar14);" (call_expression "FUN_00025040(param_1,lVar14)" identifier (argument_list "(param_1,lVar14)" ( identifier , identifier ))) ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (unary_expression - IDENT)) < (cast_expression ( (type_descriptor TYPE) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) ))) + (binary_expression IDENT * IDENT)) + (binary_expression IDENT * (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ))) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT) ))) + (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )) * IDENT)) + (binary_expression IDENT * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) - LIT) )) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( IDENT , IDENT ))) != (call_expression IDENT (argument_list ( (binary_expression IDENT - IDENT) , (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) )))) )) == (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) ))) < LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT - IDENT) , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) )))) , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (call_expression IDENT (argument_list ( (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) )))) , (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_000448b0(undefined4 param_1)\n\n{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  longlong lVar14;\n  \n  puVar5 = (uint *)FUN_00044840(param_1,0x18);\n  if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_000448b0(undefined4 param_1)" (identifier "FUN_000448b0") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint *puVar5;\n  uint uVar6;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  longlong lVar14;\n  \n  puVar5 = (uint *)FUN_00044840(param_1,0x18);\n  if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint *puVar5;" (type_identifier "uint") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "longlong lVar14;" (type_identifier "longlong") (identifier "lVar14") (; ";")) (expression_statement "puVar5 = (uint *)FUN_00044840(param_1,0x18);" (assignment_expression "puVar5 = (uint *)FUN_00044840(param_1,0x18)" (identifier "puVar5") (= "=") (cast_expression "(uint *)FUN_00044840(param_1,0x18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00044840(param_1,0x18)" (identifier "FUN_00044840") (argument_list "(param_1,0x18)" (( "(") (identifier "param_1") (, ",") (number_literal "0x18") () ")"))))) (; ";")) (if_statement "if (puVar5 != (uint *)0x0) {\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }" (if "if") (parenthesized_expression "(puVar5 != (uint *)0x0)" (( "(") (binary_expression "puVar5 != (uint *)0x0" (identifier "puVar5") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar8 = puVar5[2];\n    uVar11 = puVar5[3];\n    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }\n  }" ({ "{") (expression_statement "uVar8 = puVar5[2];" (assignment_expression "uVar8 = puVar5[2]" (identifier "uVar8") (= "=") (subscript_expression "puVar5[2]" (identifier "puVar5") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "uVar11 = puVar5[3];" (assignment_expression "uVar11 = puVar5[3]" (identifier "uVar11") (= "=") (subscript_expression "puVar5[3]" (identifier "puVar5") ([ "[") (number_literal "3") (] "]"))) (; ";")) (if_statement "if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }" (if "if") (parenthesized_expression "((int)-uVar11 < (int)(uint)(uVar8 != 0))" (( "(") (binary_expression "(int)-uVar11 < (int)(uint)(uVar8 != 0)" (cast_expression "(int)-uVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (unary_expression "-uVar11" (- "-") (identifier "uVar11"))) (< "<") (cast_expression "(int)(uint)(uVar8 != 0)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (call_expression "(uint)(uVar8 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar8 != 0)" (( "(") (binary_expression "uVar8 != 0" (identifier "uVar8") (!= "!=") (number_literal "0")) () ")"))))) () ")")) (compound_statement "{\n      uVar2 = *puVar5;\n      uVar3 = puVar5[1];\n      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);\n      uVar4 = puVar5[4];\n      if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }\n      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);\n      uVar12 = uVar2 - uVar7;\n      uVar1 = uVar6 + 1;\n      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);\n      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);\n      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;\n      uVar11 = uVar4 - 1;\n      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);\n      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }\n      FUN_00025040(param_1,lVar14);\n    }" ({ "{") (expression_statement "uVar2 = *puVar5;" (assignment_expression "uVar2 = *puVar5" (identifier "uVar2") (= "=") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (; ";")) (expression_statement "uVar3 = puVar5[1];" (assignment_expression "uVar3 = puVar5[1]" (identifier "uVar3") (= "=") (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);" (assignment_expression "uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11)" (identifier "uVar6") (= "=") (call_expression "FUN_000f41f0(uVar2,uVar3,uVar8,uVar11)" (identifier "FUN_000f41f0") (argument_list "(uVar2,uVar3,uVar8,uVar11)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar3") (, ",") (identifier "uVar8") (, ",") (identifier "uVar11") () ")")))) (; ";")) (expression_statement "uVar4 = puVar5[4];" (assignment_expression "uVar4 = puVar5[4]" (identifier "uVar4") (= "=") (subscript_expression "puVar5[4]" (identifier "puVar5") ([ "[") (number_literal "4") (] "]"))) (; ";")) (if_statement "if (uVar6 == 0) {\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00025040(param_1,uVar4,puVar5[5]);\n        return;\n      }" ({ "{") (expression_statement "FUN_00025040(param_1,uVar4,puVar5[5]);" (call_expression "FUN_00025040(param_1,uVar4,puVar5[5])" (identifier "FUN_00025040") (argument_list "(param_1,uVar4,puVar5[5])" (( "(") (identifier "param_1") (, ",") (identifier "uVar4") (, ",") (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);" (assignment_expression "uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6)" (identifier "uVar7") (= "=") (call_expression "(uint)((ulonglong)uVar8 * (ulonglong)uVar6)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((ulonglong)uVar8 * (ulonglong)uVar6)" (( "(") (binary_expression "(ulonglong)uVar8 * (ulonglong)uVar6" (cast_expression "(ulonglong)uVar8" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar8")) (* "*") (cast_expression "(ulonglong)uVar6" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar6"))) () ")")))) (; ";")) (expression_statement "uVar12 = uVar2 - uVar7;" (assignment_expression "uVar12 = uVar2 - uVar7" (identifier "uVar12") (= "=") (binary_expression "uVar2 - uVar7" (identifier "uVar2") (- "-") (identifier "uVar7"))) (; ";")) (expression_statement "uVar1 = uVar6 + 1;" (assignment_expression "uVar1 = uVar6 + 1" (identifier "uVar1") (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);" (assignment_expression "iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7)" (identifier "iVar10") (= "=") (binary_expression "(uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7)" (parenthesized_expression "(uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f)))" (( "(") (binary_expression "uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))" (identifier "uVar3") (- "-") (parenthesized_expression "((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))" (( "(") (binary_expression "(int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f)" (binary_expression "(int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +\n                        uVar11 * uVar6" (cast_expression "(int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20" (binary_expression "(ulonglong)uVar8 * (ulonglong)uVar6" (cast_expression "(ulonglong)uVar8" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar8")) (* "*") (cast_expression "(ulonglong)uVar6" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar6"))) (>> ">>") (number_literal "0x20")) () ")"))) (+ "+") (binary_expression "uVar11 * uVar6" (identifier "uVar11") (* "*") (identifier "uVar6"))) (+ "+") (binary_expression "uVar8 * ((int)uVar6 >> 0x1f)" (identifier "uVar8") (* "*") (parenthesized_expression "((int)uVar6 >> 0x1f)" (( "(") (binary_expression "(int)uVar6 >> 0x1f" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (>> ">>") (number_literal "0x1f")) () ")")))) () ")"))) () ")")) (- "-") (call_expression "(uint)(uVar2 < uVar7)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar2 < uVar7)" (( "(") (binary_expression "uVar2 < uVar7" (identifier "uVar2") (< "<") (identifier "uVar7")) () ")"))))) (; ";")) (expression_statement "uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);" (assignment_expression "uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12)" (identifier "uVar8") (= "=") (call_expression "(uint)((ulonglong)uVar1 * (ulonglong)uVar12)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((ulonglong)uVar1 * (ulonglong)uVar12)" (( "(") (binary_expression "(ulonglong)uVar1 * (ulonglong)uVar12" (cast_expression "(ulonglong)uVar1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar1")) (* "*") (cast_expression "(ulonglong)uVar12" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar12"))) () ")")))) (; ";")) (expression_statement "iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;" (assignment_expression "iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1" (identifier "iVar9") (= "=") (binary_expression "(int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1" (binary_expression "(int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +\n              ((int)uVar1 >> 0x1f) * uVar12" (cast_expression "(int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20" (binary_expression "(ulonglong)uVar1 * (ulonglong)uVar12" (cast_expression "(ulonglong)uVar1" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar1")) (* "*") (cast_expression "(ulonglong)uVar12" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar12"))) (>> ">>") (number_literal "0x20")) () ")"))) (+ "+") (binary_expression "((int)uVar1 >> 0x1f) * uVar12" (parenthesized_expression "((int)uVar1 >> 0x1f)" (( "(") (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (>> ">>") (number_literal "0x1f")) () ")")) (* "*") (identifier "uVar12"))) (+ "+") (binary_expression "iVar10 * uVar1" (identifier "iVar10") (* "*") (identifier "uVar1")))) (; ";")) (expression_statement "uVar11 = uVar4 - 1;" (assignment_expression "uVar11 = uVar4 - 1" (identifier "uVar11") (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) (; ";")) (expression_statement "iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);" (assignment_expression "iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0)" (identifier "iVar13") (= "=") (binary_expression "(puVar5[5] - 1) + (uint)(uVar4 != 0)" (parenthesized_expression "(puVar5[5] - 1)" (( "(") (binary_expression "puVar5[5] - 1" (subscript_expression "puVar5[5]" (identifier "puVar5") ([ "[") (number_literal "5") (] "]")) (- "-") (number_literal "1")) () ")")) (+ "+") (call_expression "(uint)(uVar4 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar4 != 0)" (( "(") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) () ")"))))) (; ";")) (if_statement "if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }\n      else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }" (if "if") (parenthesized_expression "((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0)" (( "(") (binary_expression "(SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==\n          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0" (parenthesized_expression "(SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8)))" (( "(") (binary_expression "SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))" (call_expression "SBORROW4(iVar13,iVar9)" (identifier "SBORROW4") (argument_list "(iVar13,iVar9)" (( "(") (identifier "iVar13") (, ",") (identifier "iVar9") () ")"))) (!= "!=") (call_expression "SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))" (identifier "SBORROW4") (argument_list "(iVar13 - iVar9,(uint)(uVar11 < uVar8))" (( "(") (binary_expression "iVar13 - iVar9" (identifier "iVar13") (- "-") (identifier "iVar9")) (, ",") (call_expression "(uint)(uVar11 < uVar8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar11 < uVar8)" (( "(") (binary_expression "uVar11 < uVar8" (identifier "uVar11") (< "<") (identifier "uVar8")) () ")"))) () ")")))) () ")")) (== "==") (binary_expression "(int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0" (cast_expression "(int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((iVar13 - iVar9) - (uint)(uVar11 < uVar8))" (( "(") (binary_expression "(iVar13 - iVar9) - (uint)(uVar11 < uVar8)" (parenthesized_expression "(iVar13 - iVar9)" (( "(") (binary_expression "iVar13 - iVar9" (identifier "iVar13") (- "-") (identifier "iVar9")) () ")")) (- "-") (call_expression "(uint)(uVar11 < uVar8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar11 < uVar8)" (( "(") (binary_expression "uVar11 < uVar8" (identifier "uVar11") (< "<") (identifier "uVar8")) () ")")))) () ")"))) (< "<") (number_literal "0"))) () ")")) (compound_statement "{\n        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);\n        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);\n      }" ({ "{") (expression_statement "lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f);" (assignment_expression "lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f)" (identifier "lVar14") (= "=") (call_expression "FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f)" (identifier "FUN_000f41f0") (argument_list "(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,\n                              (int)uVar6 >> 0x1f)" (( "(") (binary_expression "uVar11 - uVar8" (identifier "uVar11") (- "-") (identifier "uVar8")) (, ",") (binary_expression "(iVar13 - iVar9) - (uint)(uVar11 < uVar8)" (parenthesized_expression "(iVar13 - iVar9)" (( "(") (binary_expression "iVar13 - iVar9" (identifier "iVar13") (- "-") (identifier "iVar9")) () ")")) (- "-") (call_expression "(uint)(uVar11 < uVar8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar11 < uVar8)" (( "(") (binary_expression "uVar11 < uVar8" (identifier "uVar11") (< "<") (identifier "uVar8")) () ")")))) (, ",") (identifier "uVar6") (, ",") (binary_expression "(int)uVar6 >> 0x1f" (cast_expression "(int)uVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar6")) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);" (assignment_expression "lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" (identifier "lVar14") (= "=") (binary_expression "lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" (identifier "lVar14") (+ "+") (call_expression "CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" (identifier "CONCAT44") (argument_list "(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1)" (( "(") (binary_expression "iVar10 + (uint)(0xfffffffe < uVar12)" (identifier "iVar10") (+ "+") (call_expression "(uint)(0xfffffffe < uVar12)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0xfffffffe < uVar12)" (( "(") (binary_expression "0xfffffffe < uVar12" (number_literal "0xfffffffe") (< "<") (identifier "uVar12")) () ")")))) (, ",") (binary_expression "uVar12 + 1" (identifier "uVar12") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }" (else "else") (compound_statement "{\n        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);\n        lVar14 = lVar14 + 1;\n      }" ({ "{") (expression_statement "lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);" (assignment_expression "lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f)" (identifier "lVar14") (= "=") (call_expression "FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f)" (identifier "FUN_000f41f0") (argument_list "(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f)" (( "(") (identifier "uVar11") (, ",") (identifier "iVar13") (, ",") (identifier "uVar1") (, ",") (binary_expression "(int)uVar1 >> 0x1f" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "lVar14 = lVar14 + 1;" (assignment_expression "lVar14 = lVar14 + 1" (identifier "lVar14") (= "=") (binary_expression "lVar14 + 1" (identifier "lVar14") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "FUN_00025040(param_1,lVar14);" (call_expression "FUN_00025040(param_1,lVar14)" (identifier "FUN_00025040") (argument_list "(param_1,lVar14)" (( "(") (identifier "param_1") (, ",") (identifier "lVar14") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 *pCtx)

{
  type_2 var_13;
  type_2 var_7;
  type_2 var_9;
  type_2 var_14;
  type_2 *var_2;
  type_2 var_5;
  type_2 var_8;
  type_2 var_3;
  int var_17;
  int var_12;
  type_2 var_10;
  type_2 var_11;
  int var_16;
  type_3 var_18;
  
  var_2 = (type_2 *)var_1(pCtx,0x18);
  if (var_2 != (type_2 *)0x0) {
    var_3 = var_2[2];
    var_10 = var_2[3];
    if ((int)-var_10 < (int)(type_2)(var_3 != 0)) {
      var_7 = *var_2;
      var_9 = var_2[1];
      var_5 = var_4(var_7,var_9,var_3,var_10);
      var_14 = var_2[4];
      if (var_5 == 0) {
        var_6(pCtx,*(type_4 *)(var_2 + 4));
        return;
      }
      var_8 = (type_2)((type_5)var_3 * (type_5)var_5);
      var_11 = var_7 - var_8;
      var_13 = var_5 + 1;
      var_12 = (var_9 - ((int)((type_5)var_3 * (type_5)var_5 >> 0x20) +
                        var_10 * var_5 + var_3 * ((int)var_5 >> 0x1f))) - (type_2)(var_7 < var_8);
      var_3 = (type_2)((type_5)var_13 * (type_5)var_11);
      var_17 = (int)((type_5)var_13 * (type_5)var_11 >> 0x20) +
              ((int)var_13 >> 0x1f) * var_11 + var_12 * var_13;
      var_10 = var_14 - 1;
      var_16 = (var_2[5] - 1) + (type_2)(var_14 != 0);
      if ((var_15(var_16,var_17) != var_15(var_16 - var_17,(type_2)(var_10 < var_3))) ==
          (int)((var_16 - var_17) - (type_2)(var_10 < var_3)) < 0) {
        var_18 = var_4(var_10 - var_3,(var_16 - var_17) - (type_2)(var_10 < var_3),var_5,
                          (int)var_5 >> 0x1f);
        var_18 = var_18 + var_19(var_12 + (type_2)(0xfffffffe < var_11),var_11 + 1);
      }
      else {
        var_18 = var_4(var_10,var_16,var_13,(int)var_13 >> 0x1f);
        var_18 = var_18 + 1;
      }
      var_6(pCtx,var_18);
    }
  }
  return;
}


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

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

void MASKED(undefined4 param_1)

{
  uint uVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  uint *puVar5;
  uint uVar6;
  uint uVar7;
  uint uVar8;
  int iVar9;
  int iVar10;
  uint uVar11;
  uint uVar12;
  int iVar13;
  longlong lVar14;
  
  puVar5 = (uint *)FUN_00044840(param_1,0x18);
  if (puVar5 != (uint *)0x0) {
    uVar8 = puVar5[2];
    uVar11 = puVar5[3];
    if ((int)-uVar11 < (int)(uint)(uVar8 != 0)) {
      uVar2 = *puVar5;
      uVar3 = puVar5[1];
      uVar6 = FUN_000f41f0(uVar2,uVar3,uVar8,uVar11);
      uVar4 = puVar5[4];
      if (uVar6 == 0) {
        FUN_00025040(param_1,uVar4,puVar5[5]);
        return;
      }
      uVar7 = (uint)((ulonglong)uVar8 * (ulonglong)uVar6);
      uVar12 = uVar2 - uVar7;
      uVar1 = uVar6 + 1;
      iVar10 = (uVar3 - ((int)((ulonglong)uVar8 * (ulonglong)uVar6 >> 0x20) +
                        uVar11 * uVar6 + uVar8 * ((int)uVar6 >> 0x1f))) - (uint)(uVar2 < uVar7);
      uVar8 = (uint)((ulonglong)uVar1 * (ulonglong)uVar12);
      iVar9 = (int)((ulonglong)uVar1 * (ulonglong)uVar12 >> 0x20) +
              ((int)uVar1 >> 0x1f) * uVar12 + iVar10 * uVar1;
      uVar11 = uVar4 - 1;
      iVar13 = (puVar5[5] - 1) + (uint)(uVar4 != 0);
      if ((SBORROW4(iVar13,iVar9) != SBORROW4(iVar13 - iVar9,(uint)(uVar11 < uVar8))) ==
          (int)((iVar13 - iVar9) - (uint)(uVar11 < uVar8)) < 0) {
        lVar14 = FUN_000f41f0(uVar11 - uVar8,(iVar13 - iVar9) - (uint)(uVar11 < uVar8),uVar6,
                              (int)uVar6 >> 0x1f);
        lVar14 = lVar14 + CONCAT44(iVar10 + (uint)(0xfffffffe < uVar12),uVar12 + 1);
      }
      else {
        lVar14 = FUN_000f41f0(uVar11,iVar13,uVar1,(int)uVar1 >> 0x1f);
        lVar14 = lVar14 + 1;
      }
      FUN_00025040(param_1,lVar14);
    }
  }
  return;
}

