
CubeInfo_conflict * GetCubeInfo(QuantizeInfo *quantize_info,size_t depth,size_t maximum_colors)

{
  undefined *puVar1;
  CubeInfo_conflict *cube_info;
  NodeInfo_conflict *pNVar2;
  QuantizeInfo *pQVar3;
  MemoryInfo *pMVar4;
  ssize_t *psVar5;
  double *pdVar6;
  double *pdVar7;
  double *pdVar8;
  double dVar9;
  double dVar10;
  double dVar11;
  double dVar12;
  double dVar13;
  double local_28;
  double local_20;
  
  cube_info = (CubeInfo_conflict *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);
  if (cube_info != (CubeInfo_conflict *)0x0) {
    (*(code *)PTR_memset_003a96d4)(cube_info,0,0x318);
    if (depth < 9) {
      if (depth < 2) {
        cube_info->depth = 2;
      }
      else {
        cube_info->depth = depth;
      }
    }
    else {
      cube_info->depth = 8;
    }
    cube_info->maximum_colors = maximum_colors;
    pNVar2 = GetNodeInfo(cube_info,0,0,(NodeInfo_conflict *)0x0);
    cube_info->root = pNVar2;
    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;
    if (pNVar2 != (NodeInfo_conflict *)0x0) {
      pNVar2->parent = pNVar2;
      pQVar3 = (QuantizeInfo *)(*(code *)puVar1)(quantize_info);
      cube_info->quantize_info = pQVar3;
      if (pQVar3->dither_method == NoDitherMethod) {
        return cube_info;
      }
      pMVar4 = (MemoryInfo *)(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);
      cube_info->memory_info = pMVar4;
      if (pMVar4 != (MemoryInfo *)0x0) {
        psVar5 = (ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4);
        puVar1 = PTR_memset_003a96d4;
        cube_info->cache = psVar5;
        (*(code *)puVar1)(psVar5,0xffffffff,0x4000000);
        puVar1 = PTR_LAB_003a88e0;
        pdVar6 = cube_info->weights + 0xf;
        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x1438);
        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);
        dVar12 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);
        dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);
        dVar10 = dVar9;
        local_28 = dVar9;
        local_20 = dVar9;
LAB_001518f4:
        if (dVar11 <= local_20) goto LAB_00151904;
        do {
          *pdVar6 = dVar10 / dVar11;
          while( true ) {
            pdVar6 = pdVar6 + -1;
            if (&cube_info->error[0xf].alpha == pdVar6) {
              dVar10 = 0.0;
              pdVar6 = cube_info->weights;
              do {
                dVar9 = *pdVar6;
                pdVar6 = pdVar6 + 1;
                dVar10 = dVar10 + dVar9;
              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);
              dVar9 = 0.0;
              pdVar7 = cube_info->weights;
              do {
                dVar11 = *pdVar7;
                pdVar8 = pdVar7 + 1;
                *pdVar7 = dVar11 / dVar10;
                dVar9 = dVar9 + dVar11 / dVar10;
                pdVar7 = pdVar8;
              } while (pdVar8 != pdVar6);
              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)
              ;
              return cube_info;
            }
            local_28 = local_28 * dVar12;
            if (local_28 < 0.0) {
              local_20 = -local_28;
              dVar10 = dVar13;
              goto LAB_001518f4;
            }
            dVar10 = dVar9;
            if (local_28 < dVar11) break;
LAB_00151904:
            *pdVar6 = dVar9 / local_28;
          }
        } while( true );
      }
    }
  }
  return (CubeInfo_conflict *)0x0;
}



int * FUN_001517a0(undefined4 param_1,uint param_2,int param_3)

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  double *pdVar4;
  double *pdVar5;
  double *pdVar6;
  double dVar7;
  double dVar8;
  double dVar9;
  double dVar10;
  double dVar11;
  double local_28;
  double local_20;
  
  piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);
  if (piVar2 != (int *)0x0) {
    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);
    if (param_2 < 9) {
      if (param_2 < 2) {
        piVar2[0xc0] = 2;
      }
      else {
        piVar2[0xc0] = param_2;
      }
    }
    else {
      piVar2[0xc0] = 8;
    }
    piVar2[2] = param_3;
    iVar3 = FUN_00149830(piVar2,0,0,0);
    *piVar2 = iVar3;
    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;
    if (iVar3 != 0) {
      *(int *)iVar3 = iVar3;
      iVar3 = (*(code *)puVar1)(param_1);
      piVar2[0xbc] = iVar3;
      if (*(int *)(iVar3 + 0xc) == 1) {
        return piVar2;
      }
      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);
      piVar2[0x19] = iVar3;
      if (iVar3 != 0) {
        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);
        puVar1 = PTR_memset_003a96d4;
        piVar2[0x1a] = iVar3;
        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);
        puVar1 = PTR_LAB_003a88e0;
        pdVar4 = (double *)(piVar2 + 0xba);
        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);
        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);
        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);
        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);
        dVar8 = dVar7;
        local_28 = dVar7;
        local_20 = dVar7;
LAB_001518f4:
        if (dVar9 <= local_20) goto LAB_00151904;
        do {
          *pdVar4 = dVar8 / dVar9;
          while( true ) {
            pdVar4 = pdVar4 + -1;
            if ((double *)(piVar2 + 0x9a) == pdVar4) {
              dVar8 = 0.0;
              pdVar4 = (double *)(piVar2 + 0x9c);
              do {
                dVar7 = *pdVar4;
                pdVar4 = pdVar4 + 1;
                dVar8 = dVar8 + dVar7;
              } while (pdVar4 != (double *)(piVar2 + 0xbc));
              dVar7 = 0.0;
              pdVar5 = (double *)(piVar2 + 0x9c);
              do {
                dVar9 = *pdVar5;
                pdVar6 = pdVar5 + 1;
                *pdVar5 = dVar9 / dVar8;
                dVar7 = dVar7 + dVar9 / dVar8;
                pdVar5 = pdVar6;
              } while (pdVar6 != pdVar4);
              *(double *)(piVar2 + 0x9c) =
                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);
              return piVar2;
            }
            local_28 = local_28 * dVar10;
            if (local_28 < 0.0) {
              local_20 = -local_28;
              dVar8 = dVar11;
              goto LAB_001518f4;
            }
            dVar8 = dVar7;
            if (local_28 < dVar9) break;
LAB_00151904:
            *pdVar4 = dVar7 / local_28;
          }
        } while( true );
      }
    }
  }
  return (int *)0x0;
}


lui gp,0x26
addiu gp,gp,-0xef0
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x6fd4(gp)
sw s3,0x38(sp)
or s3,a0,zero
li a0,0x318
sw gp,0x10(sp)
sw s2,0x34(sp)
or s2,a2,zero
sw s1,0x30(sp)
or s1,a1,zero
sw ra,0x3c(sp)
jalr t9
_sw s0,0x2c(sp)
beq v0,zero,0x00151a0c
_lw gp,0x10(sp)
lw t9,-0x71dc(gp)
li a2,0x318
or a1,zero,zero
or a0,v0,zero
jalr t9
_or s0,v0,zero
sltiu v0,s1,0x9
bne v0,zero,0x001519e0
_lw gp,0x10(sp)
li v0,0x8
sw v0,0x300(s0)
lw t9,-0x7d54(gp)
or a3,zero,zero
or a2,zero,zero
sw s2,0x8(s0)
or a1,zero,zero
addiu t9,t9,-0x67d0
bal 0x00149830
_or a0,s0,zero
lw gp,0x10(sp)
beq v0,zero,0x00151a0c
_sw v0,0x0(s0)
lw t9,-0x7c14(gp)
or a0,s3,zero
jalr t9
_sw v0,0x0(v0)
li v1,0x1
lw gp,0x10(sp)
sw v0,0x2f0(s0)
lw v0,0xc(v0)
beq v0,v1,0x001519c0
_lw t9,-0x75e4(gp)
li a1,0x4
jalr t9
_lui a0,0x100
lw gp,0x10(sp)
beq v0,zero,0x00151a0c
_sw v0,0x64(s0)
lw t9,-0x7988(gp)
jalr t9
_or a0,v0,zero
lui a2,0x400
lw gp,0x10(sp)
li a1,-0x1
or a0,v0,zero
lw t9,-0x71dc(gp)
jalr t9
_sw v0,0x68(s0)
mtc1 zero,f10
addiu v0,s0,0x2e8
lw gp,0x10(sp)
addiu v1,s0,0x268
lui a0,0x8000
lw a1,-0x7fd0(gp)
lw a2,-0x7fd0(gp)
ldc1 f0,0x1438(a1)
mthc1 zero,f10
ldc1 f4,0x13f8(a2)
lw a2,-0x7fc4(gp)
ldc1 f8,-0x7ef8(a2)
lw a2,-0x7fd0(gp)
mov.D f2,f0
sdc1 f0,0x18(sp)
ldc1 f14,0x1a78(a2)
mov.D f12,f0
mov.D f6,f0
sdc1 f0,0x20(sp)
ldc1 f0,0x20(sp)
c.le.D f4,f0
bc1f 0x1,0x00151948
_ldc1 f0,0x18(sp)
addiu v0,v0,-0x8
mov.D f2,f6
ldc1 f16,0x18(sp)
div.D f0,f12,f0
mul.D f16,f16,f8
sdc1 f0,0x8(v0)
beq v1,v0,0x00151968
_sdc1 f16,0x18(sp)
ldc1 f0,0x18(sp)
c.lt.D f0,f10
bc1t 0x001519f4
_lw a2,0x18(sp)
sdc1 f0,0x20(sp)
ldc1 f0,0x20(sp)
c.le.D f4,f0
bc1t 0x1,0x00151904
_ldc1 f0,0x18(sp)
div.D f0,f2,f4
ldc1 f16,0x18(sp)
addiu v0,v0,-0x8
mul.D f16,f16,f8
mov.D f2,f6
sdc1 f0,0x8(v0)
bne v1,v0,0x00151924
_sdc1 f16,0x18(sp)
mtc1 zero,f2
addiu v0,s0,0x270
addiu a0,s0,0x2f0
or v1,v0,zero
mthc1 zero,f2
ldc1 f0,0x0(v1)
addiu v1,v1,0x8
bne v1,a0,0x0015197c
_add.D f2,f2,f0
mtc1 zero,f4
mthc1 zero,f4
ldc1 f0,0x0(v0)
addiu v0,v0,0x8
div.D f0,f0,f2
sdc1 f0,-0x8(v0)
bne v0,v1,0x00151994
_add.D f4,f4,f0
ldc1 f2,0x1438(a1)
ldc1 f0,0x270(s0)
sub.D D f4,f2,f4
add.D f0,f0,f4
sdc1 f0,0x270(s0)
lw ra,0x3c(sp)
or v0,s0,zero
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
sltiu v0,s1,0x2
beq v0,zero,0x00151a30
_li v0,0x2
b 0x00151814
_sw v0,0x300(s0)
mov.D f2,f14
xor a2,a2,a0
sw a2,0x20(sp)
lw a2,0x1c(sp)
b 0x001518f4
_sw a2,0x24(sp)
lw ra,0x3c(sp)
or s0,zero,zero
lw s3,0x38(sp)
or v0,s0,zero
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
b 0x00151814
_sw s1,0x300(s0)
(translation_unit "int * FUN_001517a0(undefined4 param_1,uint param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  double *pdVar4;\n  double *pdVar5;\n  double *pdVar6;\n  double dVar7;\n  double dVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  double local_28;\n  double local_20;\n  \n  piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);\n  if (piVar2 != (int *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_001517a0(undefined4 param_1,uint param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  double *pdVar4;\n  double *pdVar5;\n  double *pdVar6;\n  double dVar7;\n  double dVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  double local_28;\n  double local_20;\n  \n  piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);\n  if (piVar2 != (int *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_001517a0(undefined4 param_1,uint param_2,int param_3)" * (function_declarator "FUN_001517a0(undefined4 param_1,uint param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,uint param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  double *pdVar4;\n  double *pdVar5;\n  double *pdVar6;\n  double dVar7;\n  double dVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  double local_28;\n  double local_20;\n  \n  piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);\n  if (piVar2 != (int *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "double *pdVar4;" primitive_type (pointer_declarator "*pdVar4" * identifier) ;) (declaration "double *pdVar5;" primitive_type (pointer_declarator "*pdVar5" * identifier) ;) (declaration "double *pdVar6;" primitive_type (pointer_declarator "*pdVar6" * identifier) ;) (declaration "double dVar7;" primitive_type identifier ;) (declaration "double dVar8;" primitive_type identifier ;) (declaration "double dVar9;" primitive_type identifier ;) (declaration "double dVar10;" primitive_type identifier ;) (declaration "double dVar11;" primitive_type identifier ;) (declaration "double local_28;" primitive_type identifier ;) (declaration "double local_20;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318)" identifier = (cast_expression "(int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318)" (parenthesized_expression "(*(code *)PTR_AcquireMagickMemory_003a98dc)" ( (pointer_expression "*(code *)PTR_AcquireMagickMemory_003a98dc" * (cast_expression "(code *)PTR_AcquireMagickMemory_003a98dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x318)" ( number_literal ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }" { (expression_statement "(*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);" (call_expression "(*(code *)PTR_memset_003a96d4)(piVar2,0,0x318)" (parenthesized_expression "(*(code *)PTR_memset_003a96d4)" ( (pointer_expression "*(code *)PTR_memset_003a96d4" * (cast_expression "(code *)PTR_memset_003a96d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2,0,0x318)" ( identifier , number_literal , number_literal ))) ;) (if_statement "if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }" if (parenthesized_expression "(param_2 < 9)" ( (binary_expression "param_2 < 9" identifier < number_literal) )) (compound_statement "{\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }" { (if_statement "if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }" if (parenthesized_expression "(param_2 < 2)" ( (binary_expression "param_2 < 2" identifier < number_literal) )) (compound_statement "{\n        piVar2[0xc0] = 2;\n      }" { (expression_statement "piVar2[0xc0] = 2;" (assignment_expression "piVar2[0xc0] = 2" (subscript_expression "piVar2[0xc0]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n        piVar2[0xc0] = param_2;\n      }" else (compound_statement "{\n        piVar2[0xc0] = param_2;\n      }" { (expression_statement "piVar2[0xc0] = param_2;" (assignment_expression "piVar2[0xc0] = param_2" (subscript_expression "piVar2[0xc0]" identifier [ number_literal ]) = identifier) ;) }))) }) (else_clause "else {\n      piVar2[0xc0] = 8;\n    }" else (compound_statement "{\n      piVar2[0xc0] = 8;\n    }" { (expression_statement "piVar2[0xc0] = 8;" (assignment_expression "piVar2[0xc0] = 8" (subscript_expression "piVar2[0xc0]" identifier [ number_literal ]) = number_literal) ;) }))) (expression_statement "piVar2[2] = param_3;" (assignment_expression "piVar2[2] = param_3" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = FUN_00149830(piVar2,0,0,0);" (assignment_expression "iVar3 = FUN_00149830(piVar2,0,0,0)" identifier = (call_expression "FUN_00149830(piVar2,0,0,0)" identifier (argument_list "(piVar2,0,0,0)" ( identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "puVar1 = PTR_CloneQuantizeInfo_003a8c9c;" (assignment_expression "puVar1 = PTR_CloneQuantizeInfo_003a8c9c" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }" { (expression_statement "*(int *)iVar3 = iVar3;" (assignment_expression "*(int *)iVar3 = iVar3" (pointer_expression "*(int *)iVar3" * (cast_expression "(int *)iVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "iVar3 = (*(code *)puVar1)(param_1);" (assignment_expression "iVar3 = (*(code *)puVar1)(param_1)" identifier = (call_expression "(*(code *)puVar1)(param_1)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "piVar2[0xbc] = iVar3;" (assignment_expression "piVar2[0xbc] = iVar3" (subscript_expression "piVar2[0xbc]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }" if (parenthesized_expression "(*(int *)(iVar3 + 0xc) == 1)" ( (binary_expression "*(int *)(iVar3 + 0xc) == 1" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        return piVar2;\n      }" { (return_statement "return piVar2;" return identifier ;) })) (expression_statement "iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);" (assignment_expression "iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4)" identifier = (call_expression "(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4)" (parenthesized_expression "(*(code *)PTR_AcquireVirtualMemory_003a92cc)" ( (pointer_expression "*(code *)PTR_AcquireVirtualMemory_003a92cc" * (cast_expression "(code *)PTR_AcquireVirtualMemory_003a92cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x1000000,4)" ( number_literal , number_literal )))) ;) (expression_statement "piVar2[0x19] = iVar3;" (assignment_expression "piVar2[0x19] = iVar3" (subscript_expression "piVar2[0x19]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }" { (expression_statement "iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3)" identifier = (call_expression "(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3)" (parenthesized_expression "(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)" ( (pointer_expression "*(code *)PTR_GetVirtualMemoryBlob_003a8f28" * (cast_expression "(code *)PTR_GetVirtualMemoryBlob_003a8f28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_memset_003a96d4;" (assignment_expression "puVar1 = PTR_memset_003a96d4" identifier = identifier) ;) (expression_statement "piVar2[0x1a] = iVar3;" (assignment_expression "piVar2[0x1a] = iVar3" (subscript_expression "piVar2[0x1a]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar3,0xffffffff,0x4000000);" (call_expression "(*(code *)puVar1)(iVar3,0xffffffff,0x4000000)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0xffffffff,0x4000000)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "puVar1 = PTR_LAB_003a88e0;" (assignment_expression "puVar1 = PTR_LAB_003a88e0" identifier = identifier) ;) (expression_statement "pdVar4 = (double *)(piVar2 + 0xba);" (assignment_expression "pdVar4 = (double *)(piVar2 + 0xba)" identifier = (cast_expression "(double *)(piVar2 + 0xba)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0xba)" ( (binary_expression "piVar2 + 0xba" identifier + number_literal) )))) ;) (expression_statement "dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);" (assignment_expression "dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438)" identifier = (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x1438)" * (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x1438)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_003a88e0 + 0x1438)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1438" identifier + number_literal) ))))) ;) (expression_statement "dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);" (assignment_expression "dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8)" identifier = (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x13f8)" * (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x13f8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_003a88e0 + 0x13f8)" ( (binary_expression "PTR_LAB_003a88e0 + 0x13f8" identifier + number_literal) ))))) ;) (expression_statement "dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);" (assignment_expression "dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8)" identifier = (pointer_expression "*(double *)(PTR_s_courses_003a88ec + -0x7ef8)" * (cast_expression "(double *)(PTR_s_courses_003a88ec + -0x7ef8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_courses_003a88ec + -0x7ef8)" ( (binary_expression "PTR_s_courses_003a88ec + -0x7ef8" identifier + number_literal) ))))) ;) (expression_statement "dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);" (assignment_expression "dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78)" identifier = (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x1a78)" * (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x1a78)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_003a88e0 + 0x1a78)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1a78" identifier + number_literal) ))))) ;) (expression_statement "dVar8 = dVar7;" (assignment_expression "dVar8 = dVar7" identifier = identifier) ;) (expression_statement "local_28 = dVar7;" (assignment_expression "local_28 = dVar7" identifier = identifier) ;) (expression_statement "local_20 = dVar7;" (assignment_expression "local_20 = dVar7" identifier = identifier) ;) (labeled_statement "LAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;" statement_identifier : (if_statement "if (dVar9 <= local_20) goto LAB_00151904;" if (parenthesized_expression "(dVar9 <= local_20)" ( (binary_expression "dVar9 <= local_20" identifier <= identifier) )) (goto_statement "goto LAB_00151904;" goto statement_identifier ;))) (do_statement "do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );" do (compound_statement "{\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        }" { (expression_statement "*pdVar4 = dVar8 / dVar9;" (assignment_expression "*pdVar4 = dVar8 / dVar9" (pointer_expression "*pdVar4" * identifier) = (binary_expression "dVar8 / dVar9" identifier / identifier)) ;) (while_statement "while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }" { (expression_statement "pdVar4 = pdVar4 + -1;" (assignment_expression "pdVar4 = pdVar4 + -1" identifier = (binary_expression "pdVar4 + -1" identifier + number_literal)) ;) (if_statement "if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }" if (parenthesized_expression "((double *)(piVar2 + 0x9a) == pdVar4)" ( (binary_expression "(double *)(piVar2 + 0x9a) == pdVar4" (cast_expression "(double *)(piVar2 + 0x9a)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0x9a)" ( (binary_expression "piVar2 + 0x9a" identifier + number_literal) ))) == identifier) )) (compound_statement "{\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }" { (expression_statement "dVar8 = 0.0;" (assignment_expression "dVar8 = 0.0" identifier = number_literal) ;) (expression_statement "pdVar4 = (double *)(piVar2 + 0x9c);" (assignment_expression "pdVar4 = (double *)(piVar2 + 0x9c)" identifier = (cast_expression "(double *)(piVar2 + 0x9c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0x9c)" ( (binary_expression "piVar2 + 0x9c" identifier + number_literal) )))) ;) (do_statement "do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));" do (compound_statement "{\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              }" { (expression_statement "dVar7 = *pdVar4;" (assignment_expression "dVar7 = *pdVar4" identifier = (pointer_expression "*pdVar4" * identifier)) ;) (expression_statement "pdVar4 = pdVar4 + 1;" (assignment_expression "pdVar4 = pdVar4 + 1" identifier = (binary_expression "pdVar4 + 1" identifier + number_literal)) ;) (expression_statement "dVar8 = dVar8 + dVar7;" (assignment_expression "dVar8 = dVar8 + dVar7" identifier = (binary_expression "dVar8 + dVar7" identifier + identifier)) ;) }) while (parenthesized_expression "(pdVar4 != (double *)(piVar2 + 0xbc))" ( (binary_expression "pdVar4 != (double *)(piVar2 + 0xbc)" identifier != (cast_expression "(double *)(piVar2 + 0xbc)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0xbc)" ( (binary_expression "piVar2 + 0xbc" identifier + number_literal) )))) )) ;) (expression_statement "dVar7 = 0.0;" (assignment_expression "dVar7 = 0.0" identifier = number_literal) ;) (expression_statement "pdVar5 = (double *)(piVar2 + 0x9c);" (assignment_expression "pdVar5 = (double *)(piVar2 + 0x9c)" identifier = (cast_expression "(double *)(piVar2 + 0x9c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0x9c)" ( (binary_expression "piVar2 + 0x9c" identifier + number_literal) )))) ;) (do_statement "do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);" do (compound_statement "{\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              }" { (expression_statement "dVar9 = *pdVar5;" (assignment_expression "dVar9 = *pdVar5" identifier = (pointer_expression "*pdVar5" * identifier)) ;) (expression_statement "pdVar6 = pdVar5 + 1;" (assignment_expression "pdVar6 = pdVar5 + 1" identifier = (binary_expression "pdVar5 + 1" identifier + number_literal)) ;) (expression_statement "*pdVar5 = dVar9 / dVar8;" (assignment_expression "*pdVar5 = dVar9 / dVar8" (pointer_expression "*pdVar5" * identifier) = (binary_expression "dVar9 / dVar8" identifier / identifier)) ;) (expression_statement "dVar7 = dVar7 + dVar9 / dVar8;" (assignment_expression "dVar7 = dVar7 + dVar9 / dVar8" identifier = (binary_expression "dVar7 + dVar9 / dVar8" identifier + (binary_expression "dVar9 / dVar8" identifier / identifier))) ;) (expression_statement "pdVar5 = pdVar6;" (assignment_expression "pdVar5 = pdVar6" identifier = identifier) ;) }) while (parenthesized_expression "(pdVar6 != pdVar4)" ( (binary_expression "pdVar6 != pdVar4" identifier != identifier) )) ;) (expression_statement "*(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);" (assignment_expression "*(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7)" (pointer_expression "*(double *)(piVar2 + 0x9c)" * (cast_expression "(double *)(piVar2 + 0x9c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0x9c)" ( (binary_expression "piVar2 + 0x9c" identifier + number_literal) )))) = (binary_expression "*(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7)" (pointer_expression "*(double *)(piVar2 + 0x9c)" * (cast_expression "(double *)(piVar2 + 0x9c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0x9c)" ( (binary_expression "piVar2 + 0x9c" identifier + number_literal) )))) + (parenthesized_expression "(*(double *)(puVar1 + 0x1438) - dVar7)" ( (binary_expression "*(double *)(puVar1 + 0x1438) - dVar7" (pointer_expression "*(double *)(puVar1 + 0x1438)" * (cast_expression "(double *)(puVar1 + 0x1438)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x1438)" ( (binary_expression "puVar1 + 0x1438" identifier + number_literal) )))) - identifier) )))) ;) (return_statement "return piVar2;" return identifier ;) })) (expression_statement "local_28 = local_28 * dVar10;" (assignment_expression "local_28 = local_28 * dVar10" identifier = (binary_expression "local_28 * dVar10" identifier * identifier)) ;) (if_statement "if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }" if (parenthesized_expression "(local_28 < 0.0)" ( (binary_expression "local_28 < 0.0" identifier < number_literal) )) (compound_statement "{\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }" { (expression_statement "local_20 = -local_28;" (assignment_expression "local_20 = -local_28" identifier = (unary_expression "-local_28" - identifier)) ;) (expression_statement "dVar8 = dVar11;" (assignment_expression "dVar8 = dVar11" identifier = identifier) ;) (goto_statement "goto LAB_001518f4;" goto statement_identifier ;) })) (expression_statement "dVar8 = dVar7;" (assignment_expression "dVar8 = dVar7" identifier = identifier) ;) (if_statement "if (local_28 < dVar9) break;" if (parenthesized_expression "(local_28 < dVar9)" ( (binary_expression "local_28 < dVar9" identifier < identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00151904:\n            *pdVar4 = dVar7 / local_28;" statement_identifier : (expression_statement "*pdVar4 = dVar7 / local_28;" (assignment_expression "*pdVar4 = dVar7 / local_28" (pointer_expression "*pdVar4" * identifier) = (binary_expression "dVar7 / local_28" identifier / identifier)) ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "CubeInfo_conflict * GetCubeInfo(QuantizeInfo *quantize_info,size_t depth,size_t maximum_colors)\n\n{\n  undefined *puVar1;\n  CubeInfo_conflict *cube_info;\n  NodeInfo_conflict *pNVar2;\n  QuantizeInfo *pQVar3;\n  MemoryInfo *pMVar4;\n  ssize_t *psVar5;\n  double *pdVar6;\n  double *pdVar7;\n  double *pdVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  double dVar12;\n  double dVar13;\n  double local_28;\n  double local_20;\n  \n  cube_info = (CubeInfo_conflict *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);\n  if (cube_info != (CubeInfo_conflict *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(cube_info,0,0x318);\n    if (depth < 9) {\n      if (depth < 2) {\n        cube_info->depth = 2;\n      }\n      else {\n        cube_info->depth = depth;\n      }\n    }\n    else {\n      cube_info->depth = 8;\n    }\n    cube_info->maximum_colors = maximum_colors;\n    pNVar2 = GetNodeInfo(cube_info,0,0,(NodeInfo_conflict *)0x0);\n    cube_info->root = pNVar2;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (pNVar2 != (NodeInfo_conflict *)0x0) {\n      pNVar2->parent = pNVar2;\n      pQVar3 = (QuantizeInfo *)(*(code *)puVar1)(quantize_info);\n      cube_info->quantize_info = pQVar3;\n      if (pQVar3->dither_method == NoDitherMethod) {\n        return cube_info;\n      }\n      pMVar4 = (MemoryInfo *)(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      cube_info->memory_info = pMVar4;\n      if (pMVar4 != (MemoryInfo *)0x0) {\n        psVar5 = (ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4);\n        puVar1 = PTR_memset_003a96d4;\n        cube_info->cache = psVar5;\n        (*(code *)puVar1)(psVar5,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar6 = cube_info->weights + 0xf;\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar12 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar10 = dVar9;\n        local_28 = dVar9;\n        local_20 = dVar9;\nLAB_001518f4:\n        if (dVar11 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar6 = dVar10 / dVar11;\n          while( true ) {\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }\n  return (CubeInfo_conflict *)0x0;\n}\n\n" (function_definition "CubeInfo_conflict * GetCubeInfo(QuantizeInfo *quantize_info,size_t depth,size_t maximum_colors)\n\n{\n  undefined *puVar1;\n  CubeInfo_conflict *cube_info;\n  NodeInfo_conflict *pNVar2;\n  QuantizeInfo *pQVar3;\n  MemoryInfo *pMVar4;\n  ssize_t *psVar5;\n  double *pdVar6;\n  double *pdVar7;\n  double *pdVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  double dVar12;\n  double dVar13;\n  double local_28;\n  double local_20;\n  \n  cube_info = (CubeInfo_conflict *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);\n  if (cube_info != (CubeInfo_conflict *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(cube_info,0,0x318);\n    if (depth < 9) {\n      if (depth < 2) {\n        cube_info->depth = 2;\n      }\n      else {\n        cube_info->depth = depth;\n      }\n    }\n    else {\n      cube_info->depth = 8;\n    }\n    cube_info->maximum_colors = maximum_colors;\n    pNVar2 = GetNodeInfo(cube_info,0,0,(NodeInfo_conflict *)0x0);\n    cube_info->root = pNVar2;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (pNVar2 != (NodeInfo_conflict *)0x0) {\n      pNVar2->parent = pNVar2;\n      pQVar3 = (QuantizeInfo *)(*(code *)puVar1)(quantize_info);\n      cube_info->quantize_info = pQVar3;\n      if (pQVar3->dither_method == NoDitherMethod) {\n        return cube_info;\n      }\n      pMVar4 = (MemoryInfo *)(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      cube_info->memory_info = pMVar4;\n      if (pMVar4 != (MemoryInfo *)0x0) {\n        psVar5 = (ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4);\n        puVar1 = PTR_memset_003a96d4;\n        cube_info->cache = psVar5;\n        (*(code *)puVar1)(psVar5,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar6 = cube_info->weights + 0xf;\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar12 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar10 = dVar9;\n        local_28 = dVar9;\n        local_20 = dVar9;\nLAB_001518f4:\n        if (dVar11 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar6 = dVar10 / dVar11;\n          while( true ) {\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }\n  return (CubeInfo_conflict *)0x0;\n}" type_identifier (pointer_declarator "* GetCubeInfo(QuantizeInfo *quantize_info,size_t depth,size_t maximum_colors)" * (function_declarator "GetCubeInfo(QuantizeInfo *quantize_info,size_t depth,size_t maximum_colors)" identifier (parameter_list "(QuantizeInfo *quantize_info,size_t depth,size_t maximum_colors)" ( (parameter_declaration "QuantizeInfo *quantize_info" type_identifier (pointer_declarator "*quantize_info" * identifier)) , (parameter_declaration "size_t depth" primitive_type identifier) , (parameter_declaration "size_t maximum_colors" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  CubeInfo_conflict *cube_info;\n  NodeInfo_conflict *pNVar2;\n  QuantizeInfo *pQVar3;\n  MemoryInfo *pMVar4;\n  ssize_t *psVar5;\n  double *pdVar6;\n  double *pdVar7;\n  double *pdVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  double dVar12;\n  double dVar13;\n  double local_28;\n  double local_20;\n  \n  cube_info = (CubeInfo_conflict *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);\n  if (cube_info != (CubeInfo_conflict *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(cube_info,0,0x318);\n    if (depth < 9) {\n      if (depth < 2) {\n        cube_info->depth = 2;\n      }\n      else {\n        cube_info->depth = depth;\n      }\n    }\n    else {\n      cube_info->depth = 8;\n    }\n    cube_info->maximum_colors = maximum_colors;\n    pNVar2 = GetNodeInfo(cube_info,0,0,(NodeInfo_conflict *)0x0);\n    cube_info->root = pNVar2;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (pNVar2 != (NodeInfo_conflict *)0x0) {\n      pNVar2->parent = pNVar2;\n      pQVar3 = (QuantizeInfo *)(*(code *)puVar1)(quantize_info);\n      cube_info->quantize_info = pQVar3;\n      if (pQVar3->dither_method == NoDitherMethod) {\n        return cube_info;\n      }\n      pMVar4 = (MemoryInfo *)(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      cube_info->memory_info = pMVar4;\n      if (pMVar4 != (MemoryInfo *)0x0) {\n        psVar5 = (ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4);\n        puVar1 = PTR_memset_003a96d4;\n        cube_info->cache = psVar5;\n        (*(code *)puVar1)(psVar5,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar6 = cube_info->weights + 0xf;\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar12 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar10 = dVar9;\n        local_28 = dVar9;\n        local_20 = dVar9;\nLAB_001518f4:\n        if (dVar11 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar6 = dVar10 / dVar11;\n          while( true ) {\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }\n  return (CubeInfo_conflict *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "CubeInfo_conflict *cube_info;" type_identifier (pointer_declarator "*cube_info" * identifier) ;) (declaration "NodeInfo_conflict *pNVar2;" type_identifier (pointer_declarator "*pNVar2" * identifier) ;) (declaration "QuantizeInfo *pQVar3;" type_identifier (pointer_declarator "*pQVar3" * identifier) ;) (declaration "MemoryInfo *pMVar4;" type_identifier (pointer_declarator "*pMVar4" * identifier) ;) (declaration "ssize_t *psVar5;" primitive_type (pointer_declarator "*psVar5" * identifier) ;) (declaration "double *pdVar6;" primitive_type (pointer_declarator "*pdVar6" * identifier) ;) (declaration "double *pdVar7;" primitive_type (pointer_declarator "*pdVar7" * identifier) ;) (declaration "double *pdVar8;" primitive_type (pointer_declarator "*pdVar8" * identifier) ;) (declaration "double dVar9;" primitive_type identifier ;) (declaration "double dVar10;" primitive_type identifier ;) (declaration "double dVar11;" primitive_type identifier ;) (declaration "double dVar12;" primitive_type identifier ;) (declaration "double dVar13;" primitive_type identifier ;) (declaration "double local_28;" primitive_type identifier ;) (declaration "double local_20;" primitive_type identifier ;) (expression_statement "cube_info = (CubeInfo_conflict *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);" (assignment_expression "cube_info = (CubeInfo_conflict *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318)" identifier = (cast_expression "(CubeInfo_conflict *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318)" ( (type_descriptor "CubeInfo_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318)" (parenthesized_expression "(*(code *)PTR_AcquireMagickMemory_003a98dc)" ( (pointer_expression "*(code *)PTR_AcquireMagickMemory_003a98dc" * (cast_expression "(code *)PTR_AcquireMagickMemory_003a98dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x318)" ( number_literal ))))) ;) (if_statement "if (cube_info != (CubeInfo_conflict *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(cube_info,0,0x318);\n    if (depth < 9) {\n      if (depth < 2) {\n        cube_info->depth = 2;\n      }\n      else {\n        cube_info->depth = depth;\n      }\n    }\n    else {\n      cube_info->depth = 8;\n    }\n    cube_info->maximum_colors = maximum_colors;\n    pNVar2 = GetNodeInfo(cube_info,0,0,(NodeInfo_conflict *)0x0);\n    cube_info->root = pNVar2;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (pNVar2 != (NodeInfo_conflict *)0x0) {\n      pNVar2->parent = pNVar2;\n      pQVar3 = (QuantizeInfo *)(*(code *)puVar1)(quantize_info);\n      cube_info->quantize_info = pQVar3;\n      if (pQVar3->dither_method == NoDitherMethod) {\n        return cube_info;\n      }\n      pMVar4 = (MemoryInfo *)(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      cube_info->memory_info = pMVar4;\n      if (pMVar4 != (MemoryInfo *)0x0) {\n        psVar5 = (ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4);\n        puVar1 = PTR_memset_003a96d4;\n        cube_info->cache = psVar5;\n        (*(code *)puVar1)(psVar5,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar6 = cube_info->weights + 0xf;\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar12 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar10 = dVar9;\n        local_28 = dVar9;\n        local_20 = dVar9;\nLAB_001518f4:\n        if (dVar11 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar6 = dVar10 / dVar11;\n          while( true ) {\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }" if (parenthesized_expression "(cube_info != (CubeInfo_conflict *)0x0)" ( (binary_expression "cube_info != (CubeInfo_conflict *)0x0" identifier != (cast_expression "(CubeInfo_conflict *)0x0" ( (type_descriptor "CubeInfo_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_memset_003a96d4)(cube_info,0,0x318);\n    if (depth < 9) {\n      if (depth < 2) {\n        cube_info->depth = 2;\n      }\n      else {\n        cube_info->depth = depth;\n      }\n    }\n    else {\n      cube_info->depth = 8;\n    }\n    cube_info->maximum_colors = maximum_colors;\n    pNVar2 = GetNodeInfo(cube_info,0,0,(NodeInfo_conflict *)0x0);\n    cube_info->root = pNVar2;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (pNVar2 != (NodeInfo_conflict *)0x0) {\n      pNVar2->parent = pNVar2;\n      pQVar3 = (QuantizeInfo *)(*(code *)puVar1)(quantize_info);\n      cube_info->quantize_info = pQVar3;\n      if (pQVar3->dither_method == NoDitherMethod) {\n        return cube_info;\n      }\n      pMVar4 = (MemoryInfo *)(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      cube_info->memory_info = pMVar4;\n      if (pMVar4 != (MemoryInfo *)0x0) {\n        psVar5 = (ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4);\n        puVar1 = PTR_memset_003a96d4;\n        cube_info->cache = psVar5;\n        (*(code *)puVar1)(psVar5,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar6 = cube_info->weights + 0xf;\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar12 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar10 = dVar9;\n        local_28 = dVar9;\n        local_20 = dVar9;\nLAB_001518f4:\n        if (dVar11 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar6 = dVar10 / dVar11;\n          while( true ) {\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }" { (expression_statement "(*(code *)PTR_memset_003a96d4)(cube_info,0,0x318);" (call_expression "(*(code *)PTR_memset_003a96d4)(cube_info,0,0x318)" (parenthesized_expression "(*(code *)PTR_memset_003a96d4)" ( (pointer_expression "*(code *)PTR_memset_003a96d4" * (cast_expression "(code *)PTR_memset_003a96d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(cube_info,0,0x318)" ( identifier , number_literal , number_literal ))) ;) (if_statement "if (depth < 9) {\n      if (depth < 2) {\n        cube_info->depth = 2;\n      }\n      else {\n        cube_info->depth = depth;\n      }\n    }\n    else {\n      cube_info->depth = 8;\n    }" if (parenthesized_expression "(depth < 9)" ( (binary_expression "depth < 9" identifier < number_literal) )) (compound_statement "{\n      if (depth < 2) {\n        cube_info->depth = 2;\n      }\n      else {\n        cube_info->depth = depth;\n      }\n    }" { (if_statement "if (depth < 2) {\n        cube_info->depth = 2;\n      }\n      else {\n        cube_info->depth = depth;\n      }" if (parenthesized_expression "(depth < 2)" ( (binary_expression "depth < 2" identifier < number_literal) )) (compound_statement "{\n        cube_info->depth = 2;\n      }" { (expression_statement "cube_info->depth = 2;" (assignment_expression "cube_info->depth = 2" (field_expression "cube_info->depth" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n        cube_info->depth = depth;\n      }" else (compound_statement "{\n        cube_info->depth = depth;\n      }" { (expression_statement "cube_info->depth = depth;" (assignment_expression "cube_info->depth = depth" (field_expression "cube_info->depth" identifier -> field_identifier) = identifier) ;) }))) }) (else_clause "else {\n      cube_info->depth = 8;\n    }" else (compound_statement "{\n      cube_info->depth = 8;\n    }" { (expression_statement "cube_info->depth = 8;" (assignment_expression "cube_info->depth = 8" (field_expression "cube_info->depth" identifier -> field_identifier) = number_literal) ;) }))) (expression_statement "cube_info->maximum_colors = maximum_colors;" (assignment_expression "cube_info->maximum_colors = maximum_colors" (field_expression "cube_info->maximum_colors" identifier -> field_identifier) = identifier) ;) (expression_statement "pNVar2 = GetNodeInfo(cube_info,0,0,(NodeInfo_conflict *)0x0);" (assignment_expression "pNVar2 = GetNodeInfo(cube_info,0,0,(NodeInfo_conflict *)0x0)" identifier = (call_expression "GetNodeInfo(cube_info,0,0,(NodeInfo_conflict *)0x0)" identifier (argument_list "(cube_info,0,0,(NodeInfo_conflict *)0x0)" ( identifier , number_literal , number_literal , (cast_expression "(NodeInfo_conflict *)0x0" ( (type_descriptor "NodeInfo_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "cube_info->root = pNVar2;" (assignment_expression "cube_info->root = pNVar2" (field_expression "cube_info->root" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar1 = PTR_CloneQuantizeInfo_003a8c9c;" (assignment_expression "puVar1 = PTR_CloneQuantizeInfo_003a8c9c" identifier = identifier) ;) (if_statement "if (pNVar2 != (NodeInfo_conflict *)0x0) {\n      pNVar2->parent = pNVar2;\n      pQVar3 = (QuantizeInfo *)(*(code *)puVar1)(quantize_info);\n      cube_info->quantize_info = pQVar3;\n      if (pQVar3->dither_method == NoDitherMethod) {\n        return cube_info;\n      }\n      pMVar4 = (MemoryInfo *)(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      cube_info->memory_info = pMVar4;\n      if (pMVar4 != (MemoryInfo *)0x0) {\n        psVar5 = (ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4);\n        puVar1 = PTR_memset_003a96d4;\n        cube_info->cache = psVar5;\n        (*(code *)puVar1)(psVar5,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar6 = cube_info->weights + 0xf;\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar12 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar10 = dVar9;\n        local_28 = dVar9;\n        local_20 = dVar9;\nLAB_001518f4:\n        if (dVar11 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar6 = dVar10 / dVar11;\n          while( true ) {\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }\n        } while( true );\n      }\n    }" if (parenthesized_expression "(pNVar2 != (NodeInfo_conflict *)0x0)" ( (binary_expression "pNVar2 != (NodeInfo_conflict *)0x0" identifier != (cast_expression "(NodeInfo_conflict *)0x0" ( (type_descriptor "NodeInfo_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pNVar2->parent = pNVar2;\n      pQVar3 = (QuantizeInfo *)(*(code *)puVar1)(quantize_info);\n      cube_info->quantize_info = pQVar3;\n      if (pQVar3->dither_method == NoDitherMethod) {\n        return cube_info;\n      }\n      pMVar4 = (MemoryInfo *)(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      cube_info->memory_info = pMVar4;\n      if (pMVar4 != (MemoryInfo *)0x0) {\n        psVar5 = (ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4);\n        puVar1 = PTR_memset_003a96d4;\n        cube_info->cache = psVar5;\n        (*(code *)puVar1)(psVar5,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar6 = cube_info->weights + 0xf;\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar12 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar10 = dVar9;\n        local_28 = dVar9;\n        local_20 = dVar9;\nLAB_001518f4:\n        if (dVar11 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar6 = dVar10 / dVar11;\n          while( true ) {\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }\n        } while( true );\n      }\n    }" { (expression_statement "pNVar2->parent = pNVar2;" (assignment_expression "pNVar2->parent = pNVar2" (field_expression "pNVar2->parent" identifier -> field_identifier) = identifier) ;) (expression_statement "pQVar3 = (QuantizeInfo *)(*(code *)puVar1)(quantize_info);" (assignment_expression "pQVar3 = (QuantizeInfo *)(*(code *)puVar1)(quantize_info)" identifier = (cast_expression "(QuantizeInfo *)(*(code *)puVar1)(quantize_info)" ( (type_descriptor "QuantizeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)(quantize_info)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(quantize_info)" ( identifier ))))) ;) (expression_statement "cube_info->quantize_info = pQVar3;" (assignment_expression "cube_info->quantize_info = pQVar3" (field_expression "cube_info->quantize_info" identifier -> field_identifier) = identifier) ;) (if_statement "if (pQVar3->dither_method == NoDitherMethod) {\n        return cube_info;\n      }" if (parenthesized_expression "(pQVar3->dither_method == NoDitherMethod)" ( (binary_expression "pQVar3->dither_method == NoDitherMethod" (field_expression "pQVar3->dither_method" identifier -> field_identifier) == identifier) )) (compound_statement "{\n        return cube_info;\n      }" { (return_statement "return cube_info;" return identifier ;) })) (expression_statement "pMVar4 = (MemoryInfo *)(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);" (assignment_expression "pMVar4 = (MemoryInfo *)(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4)" identifier = (cast_expression "(MemoryInfo *)(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4)" ( (type_descriptor "MemoryInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4)" (parenthesized_expression "(*(code *)PTR_AcquireVirtualMemory_003a92cc)" ( (pointer_expression "*(code *)PTR_AcquireVirtualMemory_003a92cc" * (cast_expression "(code *)PTR_AcquireVirtualMemory_003a92cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x1000000,4)" ( number_literal , number_literal ))))) ;) (expression_statement "cube_info->memory_info = pMVar4;" (assignment_expression "cube_info->memory_info = pMVar4" (field_expression "cube_info->memory_info" identifier -> field_identifier) = identifier) ;) (if_statement "if (pMVar4 != (MemoryInfo *)0x0) {\n        psVar5 = (ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4);\n        puVar1 = PTR_memset_003a96d4;\n        cube_info->cache = psVar5;\n        (*(code *)puVar1)(psVar5,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar6 = cube_info->weights + 0xf;\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar12 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar10 = dVar9;\n        local_28 = dVar9;\n        local_20 = dVar9;\nLAB_001518f4:\n        if (dVar11 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar6 = dVar10 / dVar11;\n          while( true ) {\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }\n        } while( true );\n      }" if (parenthesized_expression "(pMVar4 != (MemoryInfo *)0x0)" ( (binary_expression "pMVar4 != (MemoryInfo *)0x0" identifier != (cast_expression "(MemoryInfo *)0x0" ( (type_descriptor "MemoryInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        psVar5 = (ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4);\n        puVar1 = PTR_memset_003a96d4;\n        cube_info->cache = psVar5;\n        (*(code *)puVar1)(psVar5,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar6 = cube_info->weights + 0xf;\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar12 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar10 = dVar9;\n        local_28 = dVar9;\n        local_20 = dVar9;\nLAB_001518f4:\n        if (dVar11 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar6 = dVar10 / dVar11;\n          while( true ) {\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }\n        } while( true );\n      }" { (expression_statement "psVar5 = (ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4);" (assignment_expression "psVar5 = (ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4)" identifier = (cast_expression "(ssize_t *)(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4)" ( (type_descriptor "ssize_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(pMVar4)" (parenthesized_expression "(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)" ( (pointer_expression "*(code *)PTR_GetVirtualMemoryBlob_003a8f28" * (cast_expression "(code *)PTR_GetVirtualMemoryBlob_003a8f28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pMVar4)" ( identifier ))))) ;) (expression_statement "puVar1 = PTR_memset_003a96d4;" (assignment_expression "puVar1 = PTR_memset_003a96d4" identifier = identifier) ;) (expression_statement "cube_info->cache = psVar5;" (assignment_expression "cube_info->cache = psVar5" (field_expression "cube_info->cache" identifier -> field_identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(psVar5,0xffffffff,0x4000000);" (call_expression "(*(code *)puVar1)(psVar5,0xffffffff,0x4000000)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(psVar5,0xffffffff,0x4000000)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "puVar1 = PTR_LAB_003a88e0;" (assignment_expression "puVar1 = PTR_LAB_003a88e0" identifier = identifier) ;) (expression_statement "pdVar6 = cube_info->weights + 0xf;" (assignment_expression "pdVar6 = cube_info->weights + 0xf" identifier = (binary_expression "cube_info->weights + 0xf" (field_expression "cube_info->weights" identifier -> field_identifier) + number_literal)) ;) (expression_statement "dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x1438);" (assignment_expression "dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x1438)" identifier = (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x1438)" * (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x1438)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_003a88e0 + 0x1438)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1438" identifier + number_literal) ))))) ;) (expression_statement "dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);" (assignment_expression "dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8)" identifier = (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x13f8)" * (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x13f8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_003a88e0 + 0x13f8)" ( (binary_expression "PTR_LAB_003a88e0 + 0x13f8" identifier + number_literal) ))))) ;) (expression_statement "dVar12 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);" (assignment_expression "dVar12 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8)" identifier = (pointer_expression "*(double *)(PTR_s_courses_003a88ec + -0x7ef8)" * (cast_expression "(double *)(PTR_s_courses_003a88ec + -0x7ef8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_courses_003a88ec + -0x7ef8)" ( (binary_expression "PTR_s_courses_003a88ec + -0x7ef8" identifier + number_literal) ))))) ;) (expression_statement "dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);" (assignment_expression "dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a78)" identifier = (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x1a78)" * (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x1a78)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_003a88e0 + 0x1a78)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1a78" identifier + number_literal) ))))) ;) (expression_statement "dVar10 = dVar9;" (assignment_expression "dVar10 = dVar9" identifier = identifier) ;) (expression_statement "local_28 = dVar9;" (assignment_expression "local_28 = dVar9" identifier = identifier) ;) (expression_statement "local_20 = dVar9;" (assignment_expression "local_20 = dVar9" identifier = identifier) ;) (labeled_statement "LAB_001518f4:\n        if (dVar11 <= local_20) goto LAB_00151904;" statement_identifier : (if_statement "if (dVar11 <= local_20) goto LAB_00151904;" if (parenthesized_expression "(dVar11 <= local_20)" ( (binary_expression "dVar11 <= local_20" identifier <= identifier) )) (goto_statement "goto LAB_00151904;" goto statement_identifier ;))) (do_statement "do {\n          *pdVar6 = dVar10 / dVar11;\n          while( true ) {\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }\n        } while( true );" do (compound_statement "{\n          *pdVar6 = dVar10 / dVar11;\n          while( true ) {\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }\n        }" { (expression_statement "*pdVar6 = dVar10 / dVar11;" (assignment_expression "*pdVar6 = dVar10 / dVar11" (pointer_expression "*pdVar6" * identifier) = (binary_expression "dVar10 / dVar11" identifier / identifier)) ;) (while_statement "while( true ) {\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            pdVar6 = pdVar6 + -1;\n            if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }\n            local_28 = local_28 * dVar12;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }\n            dVar10 = dVar9;\n            if (local_28 < dVar11) break;\nLAB_00151904:\n            *pdVar6 = dVar9 / local_28;\n          }" { (expression_statement "pdVar6 = pdVar6 + -1;" (assignment_expression "pdVar6 = pdVar6 + -1" identifier = (binary_expression "pdVar6 + -1" identifier + number_literal)) ;) (if_statement "if (&cube_info->error[0xf].alpha == pdVar6) {\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }" if (parenthesized_expression "(&cube_info->error[0xf].alpha == pdVar6)" ( (binary_expression "&cube_info->error[0xf].alpha == pdVar6" (pointer_expression "&cube_info->error[0xf].alpha" & (field_expression "cube_info->error[0xf].alpha" (subscript_expression "cube_info->error[0xf]" (field_expression "cube_info->error" identifier -> field_identifier) [ number_literal ]) . field_identifier)) == identifier) )) (compound_statement "{\n              dVar10 = 0.0;\n              pdVar6 = cube_info->weights;\n              do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);\n              dVar9 = 0.0;\n              pdVar7 = cube_info->weights;\n              do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);\n              cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;\n              return cube_info;\n            }" { (expression_statement "dVar10 = 0.0;" (assignment_expression "dVar10 = 0.0" identifier = number_literal) ;) (expression_statement "pdVar6 = cube_info->weights;" (assignment_expression "pdVar6 = cube_info->weights" identifier = (field_expression "cube_info->weights" identifier -> field_identifier)) ;) (do_statement "do {\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              } while ((QuantizeInfo **)pdVar6 != &cube_info->quantize_info);" do (compound_statement "{\n                dVar9 = *pdVar6;\n                pdVar6 = pdVar6 + 1;\n                dVar10 = dVar10 + dVar9;\n              }" { (expression_statement "dVar9 = *pdVar6;" (assignment_expression "dVar9 = *pdVar6" identifier = (pointer_expression "*pdVar6" * identifier)) ;) (expression_statement "pdVar6 = pdVar6 + 1;" (assignment_expression "pdVar6 = pdVar6 + 1" identifier = (binary_expression "pdVar6 + 1" identifier + number_literal)) ;) (expression_statement "dVar10 = dVar10 + dVar9;" (assignment_expression "dVar10 = dVar10 + dVar9" identifier = (binary_expression "dVar10 + dVar9" identifier + identifier)) ;) }) while (parenthesized_expression "((QuantizeInfo **)pdVar6 != &cube_info->quantize_info)" ( (binary_expression "(QuantizeInfo **)pdVar6 != &cube_info->quantize_info" (cast_expression "(QuantizeInfo **)pdVar6" ( (type_descriptor "QuantizeInfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) != (pointer_expression "&cube_info->quantize_info" & (field_expression "cube_info->quantize_info" identifier -> field_identifier))) )) ;) (expression_statement "dVar9 = 0.0;" (assignment_expression "dVar9 = 0.0" identifier = number_literal) ;) (expression_statement "pdVar7 = cube_info->weights;" (assignment_expression "pdVar7 = cube_info->weights" identifier = (field_expression "cube_info->weights" identifier -> field_identifier)) ;) (do_statement "do {\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              } while (pdVar8 != pdVar6);" do (compound_statement "{\n                dVar11 = *pdVar7;\n                pdVar8 = pdVar7 + 1;\n                *pdVar7 = dVar11 / dVar10;\n                dVar9 = dVar9 + dVar11 / dVar10;\n                pdVar7 = pdVar8;\n              }" { (expression_statement "dVar11 = *pdVar7;" (assignment_expression "dVar11 = *pdVar7" identifier = (pointer_expression "*pdVar7" * identifier)) ;) (expression_statement "pdVar8 = pdVar7 + 1;" (assignment_expression "pdVar8 = pdVar7 + 1" identifier = (binary_expression "pdVar7 + 1" identifier + number_literal)) ;) (expression_statement "*pdVar7 = dVar11 / dVar10;" (assignment_expression "*pdVar7 = dVar11 / dVar10" (pointer_expression "*pdVar7" * identifier) = (binary_expression "dVar11 / dVar10" identifier / identifier)) ;) (expression_statement "dVar9 = dVar9 + dVar11 / dVar10;" (assignment_expression "dVar9 = dVar9 + dVar11 / dVar10" identifier = (binary_expression "dVar9 + dVar11 / dVar10" identifier + (binary_expression "dVar11 / dVar10" identifier / identifier))) ;) (expression_statement "pdVar7 = pdVar8;" (assignment_expression "pdVar7 = pdVar8" identifier = identifier) ;) }) while (parenthesized_expression "(pdVar8 != pdVar6)" ( (binary_expression "pdVar8 != pdVar6" identifier != identifier) )) ;) (expression_statement "cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)\n              ;" (assignment_expression "cube_info->weights[0] = cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)" (subscript_expression "cube_info->weights[0]" (field_expression "cube_info->weights" identifier -> field_identifier) [ number_literal ]) = (binary_expression "cube_info->weights[0] + (*(double *)(puVar1 + 0x1438) - dVar9)" (subscript_expression "cube_info->weights[0]" (field_expression "cube_info->weights" identifier -> field_identifier) [ number_literal ]) + (parenthesized_expression "(*(double *)(puVar1 + 0x1438) - dVar9)" ( (binary_expression "*(double *)(puVar1 + 0x1438) - dVar9" (pointer_expression "*(double *)(puVar1 + 0x1438)" * (cast_expression "(double *)(puVar1 + 0x1438)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x1438)" ( (binary_expression "puVar1 + 0x1438" identifier + number_literal) )))) - identifier) )))) ;) (return_statement "return cube_info;" return identifier ;) })) (expression_statement "local_28 = local_28 * dVar12;" (assignment_expression "local_28 = local_28 * dVar12" identifier = (binary_expression "local_28 * dVar12" identifier * identifier)) ;) (if_statement "if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }" if (parenthesized_expression "(local_28 < 0.0)" ( (binary_expression "local_28 < 0.0" identifier < number_literal) )) (compound_statement "{\n              local_20 = -local_28;\n              dVar10 = dVar13;\n              goto LAB_001518f4;\n            }" { (expression_statement "local_20 = -local_28;" (assignment_expression "local_20 = -local_28" identifier = (unary_expression "-local_28" - identifier)) ;) (expression_statement "dVar10 = dVar13;" (assignment_expression "dVar10 = dVar13" identifier = identifier) ;) (goto_statement "goto LAB_001518f4;" goto statement_identifier ;) })) (expression_statement "dVar10 = dVar9;" (assignment_expression "dVar10 = dVar9" identifier = identifier) ;) (if_statement "if (local_28 < dVar11) break;" if (parenthesized_expression "(local_28 < dVar11)" ( (binary_expression "local_28 < dVar11" identifier < identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00151904:\n            *pdVar6 = dVar9 / local_28;" statement_identifier : (expression_statement "*pdVar6 = dVar9 / local_28;" (assignment_expression "*pdVar6 = dVar9 / local_28" (pointer_expression "*pdVar6" * identifier) = (binary_expression "dVar9 / local_28" identifier / identifier)) ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) })) })) (return_statement "return (CubeInfo_conflict *)0x0;" return (cast_expression "(CubeInfo_conflict *)0x0" ( (type_descriptor "CubeInfo_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int * FUN_001517a0(undefined4 param_1,uint param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  double *pdVar4;\n  double *pdVar5;\n  double *pdVar6;\n  double dVar7;\n  double dVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  double local_28;\n  double local_20;\n  \n  piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);\n  if (piVar2 != (int *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_001517a0(undefined4 param_1,uint param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  double *pdVar4;\n  double *pdVar5;\n  double *pdVar6;\n  double dVar7;\n  double dVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  double local_28;\n  double local_20;\n  \n  piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);\n  if (piVar2 != (int *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_001517a0(undefined4 param_1,uint param_2,int param_3)" * (function_declarator "FUN_001517a0(undefined4 param_1,uint param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,uint param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  double *pdVar4;\n  double *pdVar5;\n  double *pdVar6;\n  double dVar7;\n  double dVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  double local_28;\n  double local_20;\n  \n  piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);\n  if (piVar2 != (int *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "double *pdVar4;" primitive_type (pointer_declarator "*pdVar4" * identifier) ;) (declaration "double *pdVar5;" primitive_type (pointer_declarator "*pdVar5" * identifier) ;) (declaration "double *pdVar6;" primitive_type (pointer_declarator "*pdVar6" * identifier) ;) (declaration "double dVar7;" primitive_type identifier ;) (declaration "double dVar8;" primitive_type identifier ;) (declaration "double dVar9;" primitive_type identifier ;) (declaration "double dVar10;" primitive_type identifier ;) (declaration "double dVar11;" primitive_type identifier ;) (declaration "double local_28;" primitive_type identifier ;) (declaration "double local_20;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318)" identifier = (cast_expression "(int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318)" (parenthesized_expression "(*(code *)PTR_AcquireMagickMemory_003a98dc)" ( (pointer_expression "*(code *)PTR_AcquireMagickMemory_003a98dc" * (cast_expression "(code *)PTR_AcquireMagickMemory_003a98dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x318)" ( number_literal ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }" { (expression_statement "(*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);" (call_expression "(*(code *)PTR_memset_003a96d4)(piVar2,0,0x318)" (parenthesized_expression "(*(code *)PTR_memset_003a96d4)" ( (pointer_expression "*(code *)PTR_memset_003a96d4" * (cast_expression "(code *)PTR_memset_003a96d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2,0,0x318)" ( identifier , number_literal , number_literal ))) ;) (if_statement "if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }" if (parenthesized_expression "(param_2 < 9)" ( (binary_expression "param_2 < 9" identifier < number_literal) )) (compound_statement "{\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }" { (if_statement "if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }" if (parenthesized_expression "(param_2 < 2)" ( (binary_expression "param_2 < 2" identifier < number_literal) )) (compound_statement "{\n        piVar2[0xc0] = 2;\n      }" { (expression_statement "piVar2[0xc0] = 2;" (assignment_expression "piVar2[0xc0] = 2" (subscript_expression "piVar2[0xc0]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n        piVar2[0xc0] = param_2;\n      }" else (compound_statement "{\n        piVar2[0xc0] = param_2;\n      }" { (expression_statement "piVar2[0xc0] = param_2;" (assignment_expression "piVar2[0xc0] = param_2" (subscript_expression "piVar2[0xc0]" identifier [ number_literal ]) = identifier) ;) }))) }) (else_clause "else {\n      piVar2[0xc0] = 8;\n    }" else (compound_statement "{\n      piVar2[0xc0] = 8;\n    }" { (expression_statement "piVar2[0xc0] = 8;" (assignment_expression "piVar2[0xc0] = 8" (subscript_expression "piVar2[0xc0]" identifier [ number_literal ]) = number_literal) ;) }))) (expression_statement "piVar2[2] = param_3;" (assignment_expression "piVar2[2] = param_3" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar3 = FUN_00149830(piVar2,0,0,0);" (assignment_expression "iVar3 = FUN_00149830(piVar2,0,0,0)" identifier = (call_expression "FUN_00149830(piVar2,0,0,0)" identifier (argument_list "(piVar2,0,0,0)" ( identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "puVar1 = PTR_CloneQuantizeInfo_003a8c9c;" (assignment_expression "puVar1 = PTR_CloneQuantizeInfo_003a8c9c" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }" { (expression_statement "*(int *)iVar3 = iVar3;" (assignment_expression "*(int *)iVar3 = iVar3" (pointer_expression "*(int *)iVar3" * (cast_expression "(int *)iVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "iVar3 = (*(code *)puVar1)(param_1);" (assignment_expression "iVar3 = (*(code *)puVar1)(param_1)" identifier = (call_expression "(*(code *)puVar1)(param_1)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "piVar2[0xbc] = iVar3;" (assignment_expression "piVar2[0xbc] = iVar3" (subscript_expression "piVar2[0xbc]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }" if (parenthesized_expression "(*(int *)(iVar3 + 0xc) == 1)" ( (binary_expression "*(int *)(iVar3 + 0xc) == 1" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        return piVar2;\n      }" { (return_statement "return piVar2;" return identifier ;) })) (expression_statement "iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);" (assignment_expression "iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4)" identifier = (call_expression "(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4)" (parenthesized_expression "(*(code *)PTR_AcquireVirtualMemory_003a92cc)" ( (pointer_expression "*(code *)PTR_AcquireVirtualMemory_003a92cc" * (cast_expression "(code *)PTR_AcquireVirtualMemory_003a92cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x1000000,4)" ( number_literal , number_literal )))) ;) (expression_statement "piVar2[0x19] = iVar3;" (assignment_expression "piVar2[0x19] = iVar3" (subscript_expression "piVar2[0x19]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }" { (expression_statement "iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3)" identifier = (call_expression "(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3)" (parenthesized_expression "(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)" ( (pointer_expression "*(code *)PTR_GetVirtualMemoryBlob_003a8f28" * (cast_expression "(code *)PTR_GetVirtualMemoryBlob_003a8f28" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_memset_003a96d4;" (assignment_expression "puVar1 = PTR_memset_003a96d4" identifier = identifier) ;) (expression_statement "piVar2[0x1a] = iVar3;" (assignment_expression "piVar2[0x1a] = iVar3" (subscript_expression "piVar2[0x1a]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)puVar1)(iVar3,0xffffffff,0x4000000);" (call_expression "(*(code *)puVar1)(iVar3,0xffffffff,0x4000000)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0xffffffff,0x4000000)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "puVar1 = PTR_LAB_003a88e0;" (assignment_expression "puVar1 = PTR_LAB_003a88e0" identifier = identifier) ;) (expression_statement "pdVar4 = (double *)(piVar2 + 0xba);" (assignment_expression "pdVar4 = (double *)(piVar2 + 0xba)" identifier = (cast_expression "(double *)(piVar2 + 0xba)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0xba)" ( (binary_expression "piVar2 + 0xba" identifier + number_literal) )))) ;) (expression_statement "dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);" (assignment_expression "dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438)" identifier = (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x1438)" * (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x1438)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_003a88e0 + 0x1438)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1438" identifier + number_literal) ))))) ;) (expression_statement "dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);" (assignment_expression "dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8)" identifier = (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x13f8)" * (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x13f8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_003a88e0 + 0x13f8)" ( (binary_expression "PTR_LAB_003a88e0 + 0x13f8" identifier + number_literal) ))))) ;) (expression_statement "dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);" (assignment_expression "dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8)" identifier = (pointer_expression "*(double *)(PTR_s_courses_003a88ec + -0x7ef8)" * (cast_expression "(double *)(PTR_s_courses_003a88ec + -0x7ef8)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_courses_003a88ec + -0x7ef8)" ( (binary_expression "PTR_s_courses_003a88ec + -0x7ef8" identifier + number_literal) ))))) ;) (expression_statement "dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);" (assignment_expression "dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78)" identifier = (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x1a78)" * (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x1a78)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_003a88e0 + 0x1a78)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1a78" identifier + number_literal) ))))) ;) (expression_statement "dVar8 = dVar7;" (assignment_expression "dVar8 = dVar7" identifier = identifier) ;) (expression_statement "local_28 = dVar7;" (assignment_expression "local_28 = dVar7" identifier = identifier) ;) (expression_statement "local_20 = dVar7;" (assignment_expression "local_20 = dVar7" identifier = identifier) ;) (labeled_statement "LAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;" statement_identifier : (if_statement "if (dVar9 <= local_20) goto LAB_00151904;" if (parenthesized_expression "(dVar9 <= local_20)" ( (binary_expression "dVar9 <= local_20" identifier <= identifier) )) (goto_statement "goto LAB_00151904;" goto statement_identifier ;))) (do_statement "do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );" do (compound_statement "{\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        }" { (expression_statement "*pdVar4 = dVar8 / dVar9;" (assignment_expression "*pdVar4 = dVar8 / dVar9" (pointer_expression "*pdVar4" * identifier) = (binary_expression "dVar8 / dVar9" identifier / identifier)) ;) (while_statement "while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }" { (expression_statement "pdVar4 = pdVar4 + -1;" (assignment_expression "pdVar4 = pdVar4 + -1" identifier = (binary_expression "pdVar4 + -1" identifier + number_literal)) ;) (if_statement "if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }" if (parenthesized_expression "((double *)(piVar2 + 0x9a) == pdVar4)" ( (binary_expression "(double *)(piVar2 + 0x9a) == pdVar4" (cast_expression "(double *)(piVar2 + 0x9a)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0x9a)" ( (binary_expression "piVar2 + 0x9a" identifier + number_literal) ))) == identifier) )) (compound_statement "{\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }" { (expression_statement "dVar8 = 0.0;" (assignment_expression "dVar8 = 0.0" identifier = number_literal) ;) (expression_statement "pdVar4 = (double *)(piVar2 + 0x9c);" (assignment_expression "pdVar4 = (double *)(piVar2 + 0x9c)" identifier = (cast_expression "(double *)(piVar2 + 0x9c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0x9c)" ( (binary_expression "piVar2 + 0x9c" identifier + number_literal) )))) ;) (do_statement "do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));" do (compound_statement "{\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              }" { (expression_statement "dVar7 = *pdVar4;" (assignment_expression "dVar7 = *pdVar4" identifier = (pointer_expression "*pdVar4" * identifier)) ;) (expression_statement "pdVar4 = pdVar4 + 1;" (assignment_expression "pdVar4 = pdVar4 + 1" identifier = (binary_expression "pdVar4 + 1" identifier + number_literal)) ;) (expression_statement "dVar8 = dVar8 + dVar7;" (assignment_expression "dVar8 = dVar8 + dVar7" identifier = (binary_expression "dVar8 + dVar7" identifier + identifier)) ;) }) while (parenthesized_expression "(pdVar4 != (double *)(piVar2 + 0xbc))" ( (binary_expression "pdVar4 != (double *)(piVar2 + 0xbc)" identifier != (cast_expression "(double *)(piVar2 + 0xbc)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0xbc)" ( (binary_expression "piVar2 + 0xbc" identifier + number_literal) )))) )) ;) (expression_statement "dVar7 = 0.0;" (assignment_expression "dVar7 = 0.0" identifier = number_literal) ;) (expression_statement "pdVar5 = (double *)(piVar2 + 0x9c);" (assignment_expression "pdVar5 = (double *)(piVar2 + 0x9c)" identifier = (cast_expression "(double *)(piVar2 + 0x9c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0x9c)" ( (binary_expression "piVar2 + 0x9c" identifier + number_literal) )))) ;) (do_statement "do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);" do (compound_statement "{\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              }" { (expression_statement "dVar9 = *pdVar5;" (assignment_expression "dVar9 = *pdVar5" identifier = (pointer_expression "*pdVar5" * identifier)) ;) (expression_statement "pdVar6 = pdVar5 + 1;" (assignment_expression "pdVar6 = pdVar5 + 1" identifier = (binary_expression "pdVar5 + 1" identifier + number_literal)) ;) (expression_statement "*pdVar5 = dVar9 / dVar8;" (assignment_expression "*pdVar5 = dVar9 / dVar8" (pointer_expression "*pdVar5" * identifier) = (binary_expression "dVar9 / dVar8" identifier / identifier)) ;) (expression_statement "dVar7 = dVar7 + dVar9 / dVar8;" (assignment_expression "dVar7 = dVar7 + dVar9 / dVar8" identifier = (binary_expression "dVar7 + dVar9 / dVar8" identifier + (binary_expression "dVar9 / dVar8" identifier / identifier))) ;) (expression_statement "pdVar5 = pdVar6;" (assignment_expression "pdVar5 = pdVar6" identifier = identifier) ;) }) while (parenthesized_expression "(pdVar6 != pdVar4)" ( (binary_expression "pdVar6 != pdVar4" identifier != identifier) )) ;) (expression_statement "*(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);" (assignment_expression "*(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7)" (pointer_expression "*(double *)(piVar2 + 0x9c)" * (cast_expression "(double *)(piVar2 + 0x9c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0x9c)" ( (binary_expression "piVar2 + 0x9c" identifier + number_literal) )))) = (binary_expression "*(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7)" (pointer_expression "*(double *)(piVar2 + 0x9c)" * (cast_expression "(double *)(piVar2 + 0x9c)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0x9c)" ( (binary_expression "piVar2 + 0x9c" identifier + number_literal) )))) + (parenthesized_expression "(*(double *)(puVar1 + 0x1438) - dVar7)" ( (binary_expression "*(double *)(puVar1 + 0x1438) - dVar7" (pointer_expression "*(double *)(puVar1 + 0x1438)" * (cast_expression "(double *)(puVar1 + 0x1438)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x1438)" ( (binary_expression "puVar1 + 0x1438" identifier + number_literal) )))) - identifier) )))) ;) (return_statement "return piVar2;" return identifier ;) })) (expression_statement "local_28 = local_28 * dVar10;" (assignment_expression "local_28 = local_28 * dVar10" identifier = (binary_expression "local_28 * dVar10" identifier * identifier)) ;) (if_statement "if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }" if (parenthesized_expression "(local_28 < 0.0)" ( (binary_expression "local_28 < 0.0" identifier < number_literal) )) (compound_statement "{\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }" { (expression_statement "local_20 = -local_28;" (assignment_expression "local_20 = -local_28" identifier = (unary_expression "-local_28" - identifier)) ;) (expression_statement "dVar8 = dVar11;" (assignment_expression "dVar8 = dVar11" identifier = identifier) ;) (goto_statement "goto LAB_001518f4;" goto statement_identifier ;) })) (expression_statement "dVar8 = dVar7;" (assignment_expression "dVar8 = dVar7" identifier = identifier) ;) (if_statement "if (local_28 < dVar9) break;" if (parenthesized_expression "(local_28 < dVar9)" ( (binary_expression "local_28 < dVar9" identifier < identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_00151904:\n            *pdVar4 = dVar7 / local_28;" statement_identifier : (expression_statement "*pdVar4 = dVar7 / local_28;" (assignment_expression "*pdVar4 = dVar7 / local_28" (pointer_expression "*pdVar4" * identifier) = (binary_expression "dVar7 / local_28" identifier / identifier)) ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (goto_statement goto statement_identifier ;))) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT / IDENT)) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT / IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT / IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) )))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (unary_expression - IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (break_statement break ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT / IDENT)) ;)) })) }) while (parenthesized_expression ( BOOL )) ;) })) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * FUN_001517a0(undefined4 param_1,uint param_2,int param_3)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  double *pdVar4;\n  double *pdVar5;\n  double *pdVar6;\n  double dVar7;\n  double dVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  double local_28;\n  double local_20;\n  \n  piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);\n  if (piVar2 != (int *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* FUN_001517a0(undefined4 param_1,uint param_2,int param_3)" (* "*") (function_declarator "FUN_001517a0(undefined4 param_1,uint param_2,int param_3)" (identifier "FUN_001517a0") (parameter_list "(undefined4 param_1,uint param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  double *pdVar4;\n  double *pdVar5;\n  double *pdVar6;\n  double dVar7;\n  double dVar8;\n  double dVar9;\n  double dVar10;\n  double dVar11;\n  double local_28;\n  double local_20;\n  \n  piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);\n  if (piVar2 != (int *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }\n  return (int *)0x0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "double *pdVar4;" (primitive_type "double") (pointer_declarator "*pdVar4" (* "*") (identifier "pdVar4")) (; ";")) (declaration "double *pdVar5;" (primitive_type "double") (pointer_declarator "*pdVar5" (* "*") (identifier "pdVar5")) (; ";")) (declaration "double *pdVar6;" (primitive_type "double") (pointer_declarator "*pdVar6" (* "*") (identifier "pdVar6")) (; ";")) (declaration "double dVar7;" (primitive_type "double") (identifier "dVar7") (; ";")) (declaration "double dVar8;" (primitive_type "double") (identifier "dVar8") (; ";")) (declaration "double dVar9;" (primitive_type "double") (identifier "dVar9") (; ";")) (declaration "double dVar10;" (primitive_type "double") (identifier "dVar10") (; ";")) (declaration "double dVar11;" (primitive_type "double") (identifier "dVar11") (; ";")) (declaration "double local_28;" (primitive_type "double") (identifier "local_28") (; ";")) (declaration "double local_20;" (primitive_type "double") (identifier "local_20") (; ";")) (expression_statement "piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);" (assignment_expression "piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318)" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318)" (parenthesized_expression "(*(code *)PTR_AcquireMagickMemory_003a98dc)" (( "(") (pointer_expression "*(code *)PTR_AcquireMagickMemory_003a98dc" (* "*") (cast_expression "(code *)PTR_AcquireMagickMemory_003a98dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_AcquireMagickMemory_003a98dc"))) () ")")) (argument_list "(0x318)" (( "(") (number_literal "0x318") () ")"))))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);\n    if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }\n    piVar2[2] = param_3;\n    iVar3 = FUN_00149830(piVar2,0,0,0);\n    *piVar2 = iVar3;\n    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;\n    if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }\n  }" ({ "{") (expression_statement "(*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);" (call_expression "(*(code *)PTR_memset_003a96d4)(piVar2,0,0x318)" (parenthesized_expression "(*(code *)PTR_memset_003a96d4)" (( "(") (pointer_expression "*(code *)PTR_memset_003a96d4" (* "*") (cast_expression "(code *)PTR_memset_003a96d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_003a96d4"))) () ")")) (argument_list "(piVar2,0,0x318)" (( "(") (identifier "piVar2") (, ",") (number_literal "0") (, ",") (number_literal "0x318") () ")"))) (; ";")) (if_statement "if (param_2 < 9) {\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }\n    else {\n      piVar2[0xc0] = 8;\n    }" (if "if") (parenthesized_expression "(param_2 < 9)" (( "(") (binary_expression "param_2 < 9" (identifier "param_2") (< "<") (number_literal "9")) () ")")) (compound_statement "{\n      if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }\n    }" ({ "{") (if_statement "if (param_2 < 2) {\n        piVar2[0xc0] = 2;\n      }\n      else {\n        piVar2[0xc0] = param_2;\n      }" (if "if") (parenthesized_expression "(param_2 < 2)" (( "(") (binary_expression "param_2 < 2" (identifier "param_2") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        piVar2[0xc0] = 2;\n      }" ({ "{") (expression_statement "piVar2[0xc0] = 2;" (assignment_expression "piVar2[0xc0] = 2" (subscript_expression "piVar2[0xc0]" (identifier "piVar2") ([ "[") (number_literal "0xc0") (] "]")) (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n        piVar2[0xc0] = param_2;\n      }" (else "else") (compound_statement "{\n        piVar2[0xc0] = param_2;\n      }" ({ "{") (expression_statement "piVar2[0xc0] = param_2;" (assignment_expression "piVar2[0xc0] = param_2" (subscript_expression "piVar2[0xc0]" (identifier "piVar2") ([ "[") (number_literal "0xc0") (] "]")) (= "=") (identifier "param_2")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      piVar2[0xc0] = 8;\n    }" (else "else") (compound_statement "{\n      piVar2[0xc0] = 8;\n    }" ({ "{") (expression_statement "piVar2[0xc0] = 8;" (assignment_expression "piVar2[0xc0] = 8" (subscript_expression "piVar2[0xc0]" (identifier "piVar2") ([ "[") (number_literal "0xc0") (] "]")) (= "=") (number_literal "8")) (; ";")) (} "}")))) (expression_statement "piVar2[2] = param_3;" (assignment_expression "piVar2[2] = param_3" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "iVar3 = FUN_00149830(piVar2,0,0,0);" (assignment_expression "iVar3 = FUN_00149830(piVar2,0,0,0)" (identifier "iVar3") (= "=") (call_expression "FUN_00149830(piVar2,0,0,0)" (identifier "FUN_00149830") (argument_list "(piVar2,0,0,0)" (( "(") (identifier "piVar2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*piVar2 = iVar3;" (assignment_expression "*piVar2 = iVar3" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "puVar1 = PTR_CloneQuantizeInfo_003a8c9c;" (assignment_expression "puVar1 = PTR_CloneQuantizeInfo_003a8c9c" (identifier "puVar1") (= "=") (identifier "PTR_CloneQuantizeInfo_003a8c9c")) (; ";")) (if_statement "if (iVar3 != 0) {\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(int *)iVar3 = iVar3;\n      iVar3 = (*(code *)puVar1)(param_1);\n      piVar2[0xbc] = iVar3;\n      if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }\n      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);\n      piVar2[0x19] = iVar3;\n      if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }\n    }" ({ "{") (expression_statement "*(int *)iVar3 = iVar3;" (assignment_expression "*(int *)iVar3 = iVar3" (pointer_expression "*(int *)iVar3" (* "*") (cast_expression "(int *)iVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "iVar3"))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar3 = (*(code *)puVar1)(param_1);" (assignment_expression "iVar3 = (*(code *)puVar1)(param_1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)puVar1)(param_1)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "piVar2[0xbc] = iVar3;" (assignment_expression "piVar2[0xbc] = iVar3" (subscript_expression "piVar2[0xbc]" (identifier "piVar2") ([ "[") (number_literal "0xbc") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (*(int *)(iVar3 + 0xc) == 1) {\n        return piVar2;\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 0xc) == 1)" (( "(") (binary_expression "*(int *)(iVar3 + 0xc) == 1" (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        return piVar2;\n      }" ({ "{") (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (expression_statement "iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);" (assignment_expression "iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4)" (parenthesized_expression "(*(code *)PTR_AcquireVirtualMemory_003a92cc)" (( "(") (pointer_expression "*(code *)PTR_AcquireVirtualMemory_003a92cc" (* "*") (cast_expression "(code *)PTR_AcquireVirtualMemory_003a92cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_AcquireVirtualMemory_003a92cc"))) () ")")) (argument_list "(0x1000000,4)" (( "(") (number_literal "0x1000000") (, ",") (number_literal "4") () ")")))) (; ";")) (expression_statement "piVar2[0x19] = iVar3;" (assignment_expression "piVar2[0x19] = iVar3" (subscript_expression "piVar2[0x19]" (identifier "piVar2") ([ "[") (number_literal "0x19") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 != 0) {\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);\n        puVar1 = PTR_memset_003a96d4;\n        piVar2[0x1a] = iVar3;\n        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);\n        puVar1 = PTR_LAB_003a88e0;\n        pdVar4 = (double *)(piVar2 + 0xba);\n        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);\n        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);\n        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);\n        dVar8 = dVar7;\n        local_28 = dVar7;\n        local_20 = dVar7;\nLAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;\n        do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );\n      }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);" (assignment_expression "iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3)" (parenthesized_expression "(*(code *)PTR_GetVirtualMemoryBlob_003a8f28)" (( "(") (pointer_expression "*(code *)PTR_GetVirtualMemoryBlob_003a8f28" (* "*") (cast_expression "(code *)PTR_GetVirtualMemoryBlob_003a8f28" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_GetVirtualMemoryBlob_003a8f28"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_memset_003a96d4;" (assignment_expression "puVar1 = PTR_memset_003a96d4" (identifier "puVar1") (= "=") (identifier "PTR_memset_003a96d4")) (; ";")) (expression_statement "piVar2[0x1a] = iVar3;" (assignment_expression "piVar2[0x1a] = iVar3" (subscript_expression "piVar2[0x1a]" (identifier "piVar2") ([ "[") (number_literal "0x1a") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "(*(code *)puVar1)(iVar3,0xffffffff,0x4000000);" (call_expression "(*(code *)puVar1)(iVar3,0xffffffff,0x4000000)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar3,0xffffffff,0x4000000)" (( "(") (identifier "iVar3") (, ",") (number_literal "0xffffffff") (, ",") (number_literal "0x4000000") () ")"))) (; ";")) (expression_statement "puVar1 = PTR_LAB_003a88e0;" (assignment_expression "puVar1 = PTR_LAB_003a88e0" (identifier "puVar1") (= "=") (identifier "PTR_LAB_003a88e0")) (; ";")) (expression_statement "pdVar4 = (double *)(piVar2 + 0xba);" (assignment_expression "pdVar4 = (double *)(piVar2 + 0xba)" (identifier "pdVar4") (= "=") (cast_expression "(double *)(piVar2 + 0xba)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 0xba)" (( "(") (binary_expression "piVar2 + 0xba" (identifier "piVar2") (+ "+") (number_literal "0xba")) () ")")))) (; ";")) (expression_statement "dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);" (assignment_expression "dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438)" (identifier "dVar7") (= "=") (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x1438)" (* "*") (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x1438)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_003a88e0 + 0x1438)" (( "(") (binary_expression "PTR_LAB_003a88e0 + 0x1438" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x1438")) () ")"))))) (; ";")) (expression_statement "dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);" (assignment_expression "dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8)" (identifier "dVar9") (= "=") (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x13f8)" (* "*") (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x13f8)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_003a88e0 + 0x13f8)" (( "(") (binary_expression "PTR_LAB_003a88e0 + 0x13f8" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x13f8")) () ")"))))) (; ";")) (expression_statement "dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);" (assignment_expression "dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8)" (identifier "dVar10") (= "=") (pointer_expression "*(double *)(PTR_s_courses_003a88ec + -0x7ef8)" (* "*") (cast_expression "(double *)(PTR_s_courses_003a88ec + -0x7ef8)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_courses_003a88ec + -0x7ef8)" (( "(") (binary_expression "PTR_s_courses_003a88ec + -0x7ef8" (identifier "PTR_s_courses_003a88ec") (+ "+") (number_literal "-0x7ef8")) () ")"))))) (; ";")) (expression_statement "dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);" (assignment_expression "dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78)" (identifier "dVar11") (= "=") (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x1a78)" (* "*") (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x1a78)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_003a88e0 + 0x1a78)" (( "(") (binary_expression "PTR_LAB_003a88e0 + 0x1a78" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x1a78")) () ")"))))) (; ";")) (expression_statement "dVar8 = dVar7;" (assignment_expression "dVar8 = dVar7" (identifier "dVar8") (= "=") (identifier "dVar7")) (; ";")) (expression_statement "local_28 = dVar7;" (assignment_expression "local_28 = dVar7" (identifier "local_28") (= "=") (identifier "dVar7")) (; ";")) (expression_statement "local_20 = dVar7;" (assignment_expression "local_20 = dVar7" (identifier "local_20") (= "=") (identifier "dVar7")) (; ";")) (labeled_statement "LAB_001518f4:\n        if (dVar9 <= local_20) goto LAB_00151904;" (statement_identifier "LAB_001518f4") (: ":") (if_statement "if (dVar9 <= local_20) goto LAB_00151904;" (if "if") (parenthesized_expression "(dVar9 <= local_20)" (( "(") (binary_expression "dVar9 <= local_20" (identifier "dVar9") (<= "<=") (identifier "local_20")) () ")")) (goto_statement "goto LAB_00151904;" (goto "goto") (statement_identifier "LAB_00151904") (; ";")))) (do_statement "do {\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        } while( true );" (do "do") (compound_statement "{\n          *pdVar4 = dVar8 / dVar9;\n          while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }\n        }" ({ "{") (expression_statement "*pdVar4 = dVar8 / dVar9;" (assignment_expression "*pdVar4 = dVar8 / dVar9" (pointer_expression "*pdVar4" (* "*") (identifier "pdVar4")) (= "=") (binary_expression "dVar8 / dVar9" (identifier "dVar8") (/ "/") (identifier "dVar9"))) (; ";")) (while_statement "while( true ) {\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n            pdVar4 = pdVar4 + -1;\n            if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }\n            local_28 = local_28 * dVar10;\n            if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }\n            dVar8 = dVar7;\n            if (local_28 < dVar9) break;\nLAB_00151904:\n            *pdVar4 = dVar7 / local_28;\n          }" ({ "{") (expression_statement "pdVar4 = pdVar4 + -1;" (assignment_expression "pdVar4 = pdVar4 + -1" (identifier "pdVar4") (= "=") (binary_expression "pdVar4 + -1" (identifier "pdVar4") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if ((double *)(piVar2 + 0x9a) == pdVar4) {\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }" (if "if") (parenthesized_expression "((double *)(piVar2 + 0x9a) == pdVar4)" (( "(") (binary_expression "(double *)(piVar2 + 0x9a) == pdVar4" (cast_expression "(double *)(piVar2 + 0x9a)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 0x9a)" (( "(") (binary_expression "piVar2 + 0x9a" (identifier "piVar2") (+ "+") (number_literal "0x9a")) () ")"))) (== "==") (identifier "pdVar4")) () ")")) (compound_statement "{\n              dVar8 = 0.0;\n              pdVar4 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));\n              dVar7 = 0.0;\n              pdVar5 = (double *)(piVar2 + 0x9c);\n              do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);\n              *(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);\n              return piVar2;\n            }" ({ "{") (expression_statement "dVar8 = 0.0;" (assignment_expression "dVar8 = 0.0" (identifier "dVar8") (= "=") (number_literal "0.0")) (; ";")) (expression_statement "pdVar4 = (double *)(piVar2 + 0x9c);" (assignment_expression "pdVar4 = (double *)(piVar2 + 0x9c)" (identifier "pdVar4") (= "=") (cast_expression "(double *)(piVar2 + 0x9c)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 0x9c)" (( "(") (binary_expression "piVar2 + 0x9c" (identifier "piVar2") (+ "+") (number_literal "0x9c")) () ")")))) (; ";")) (do_statement "do {\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              } while (pdVar4 != (double *)(piVar2 + 0xbc));" (do "do") (compound_statement "{\n                dVar7 = *pdVar4;\n                pdVar4 = pdVar4 + 1;\n                dVar8 = dVar8 + dVar7;\n              }" ({ "{") (expression_statement "dVar7 = *pdVar4;" (assignment_expression "dVar7 = *pdVar4" (identifier "dVar7") (= "=") (pointer_expression "*pdVar4" (* "*") (identifier "pdVar4"))) (; ";")) (expression_statement "pdVar4 = pdVar4 + 1;" (assignment_expression "pdVar4 = pdVar4 + 1" (identifier "pdVar4") (= "=") (binary_expression "pdVar4 + 1" (identifier "pdVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "dVar8 = dVar8 + dVar7;" (assignment_expression "dVar8 = dVar8 + dVar7" (identifier "dVar8") (= "=") (binary_expression "dVar8 + dVar7" (identifier "dVar8") (+ "+") (identifier "dVar7"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pdVar4 != (double *)(piVar2 + 0xbc))" (( "(") (binary_expression "pdVar4 != (double *)(piVar2 + 0xbc)" (identifier "pdVar4") (!= "!=") (cast_expression "(double *)(piVar2 + 0xbc)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 0xbc)" (( "(") (binary_expression "piVar2 + 0xbc" (identifier "piVar2") (+ "+") (number_literal "0xbc")) () ")")))) () ")")) (; ";")) (expression_statement "dVar7 = 0.0;" (assignment_expression "dVar7 = 0.0" (identifier "dVar7") (= "=") (number_literal "0.0")) (; ";")) (expression_statement "pdVar5 = (double *)(piVar2 + 0x9c);" (assignment_expression "pdVar5 = (double *)(piVar2 + 0x9c)" (identifier "pdVar5") (= "=") (cast_expression "(double *)(piVar2 + 0x9c)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 0x9c)" (( "(") (binary_expression "piVar2 + 0x9c" (identifier "piVar2") (+ "+") (number_literal "0x9c")) () ")")))) (; ";")) (do_statement "do {\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              } while (pdVar6 != pdVar4);" (do "do") (compound_statement "{\n                dVar9 = *pdVar5;\n                pdVar6 = pdVar5 + 1;\n                *pdVar5 = dVar9 / dVar8;\n                dVar7 = dVar7 + dVar9 / dVar8;\n                pdVar5 = pdVar6;\n              }" ({ "{") (expression_statement "dVar9 = *pdVar5;" (assignment_expression "dVar9 = *pdVar5" (identifier "dVar9") (= "=") (pointer_expression "*pdVar5" (* "*") (identifier "pdVar5"))) (; ";")) (expression_statement "pdVar6 = pdVar5 + 1;" (assignment_expression "pdVar6 = pdVar5 + 1" (identifier "pdVar6") (= "=") (binary_expression "pdVar5 + 1" (identifier "pdVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*pdVar5 = dVar9 / dVar8;" (assignment_expression "*pdVar5 = dVar9 / dVar8" (pointer_expression "*pdVar5" (* "*") (identifier "pdVar5")) (= "=") (binary_expression "dVar9 / dVar8" (identifier "dVar9") (/ "/") (identifier "dVar8"))) (; ";")) (expression_statement "dVar7 = dVar7 + dVar9 / dVar8;" (assignment_expression "dVar7 = dVar7 + dVar9 / dVar8" (identifier "dVar7") (= "=") (binary_expression "dVar7 + dVar9 / dVar8" (identifier "dVar7") (+ "+") (binary_expression "dVar9 / dVar8" (identifier "dVar9") (/ "/") (identifier "dVar8")))) (; ";")) (expression_statement "pdVar5 = pdVar6;" (assignment_expression "pdVar5 = pdVar6" (identifier "pdVar5") (= "=") (identifier "pdVar6")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pdVar6 != pdVar4)" (( "(") (binary_expression "pdVar6 != pdVar4" (identifier "pdVar6") (!= "!=") (identifier "pdVar4")) () ")")) (; ";")) (expression_statement "*(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);" (assignment_expression "*(double *)(piVar2 + 0x9c) =\n                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7)" (pointer_expression "*(double *)(piVar2 + 0x9c)" (* "*") (cast_expression "(double *)(piVar2 + 0x9c)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 0x9c)" (( "(") (binary_expression "piVar2 + 0x9c" (identifier "piVar2") (+ "+") (number_literal "0x9c")) () ")")))) (= "=") (binary_expression "*(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7)" (pointer_expression "*(double *)(piVar2 + 0x9c)" (* "*") (cast_expression "(double *)(piVar2 + 0x9c)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 0x9c)" (( "(") (binary_expression "piVar2 + 0x9c" (identifier "piVar2") (+ "+") (number_literal "0x9c")) () ")")))) (+ "+") (parenthesized_expression "(*(double *)(puVar1 + 0x1438) - dVar7)" (( "(") (binary_expression "*(double *)(puVar1 + 0x1438) - dVar7" (pointer_expression "*(double *)(puVar1 + 0x1438)" (* "*") (cast_expression "(double *)(puVar1 + 0x1438)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x1438)" (( "(") (binary_expression "puVar1 + 0x1438" (identifier "puVar1") (+ "+") (number_literal "0x1438")) () ")")))) (- "-") (identifier "dVar7")) () ")")))) (; ";")) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (expression_statement "local_28 = local_28 * dVar10;" (assignment_expression "local_28 = local_28 * dVar10" (identifier "local_28") (= "=") (binary_expression "local_28 * dVar10" (identifier "local_28") (* "*") (identifier "dVar10"))) (; ";")) (if_statement "if (local_28 < 0.0) {\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }" (if "if") (parenthesized_expression "(local_28 < 0.0)" (( "(") (binary_expression "local_28 < 0.0" (identifier "local_28") (< "<") (number_literal "0.0")) () ")")) (compound_statement "{\n              local_20 = -local_28;\n              dVar8 = dVar11;\n              goto LAB_001518f4;\n            }" ({ "{") (expression_statement "local_20 = -local_28;" (assignment_expression "local_20 = -local_28" (identifier "local_20") (= "=") (unary_expression "-local_28" (- "-") (identifier "local_28"))) (; ";")) (expression_statement "dVar8 = dVar11;" (assignment_expression "dVar8 = dVar11" (identifier "dVar8") (= "=") (identifier "dVar11")) (; ";")) (goto_statement "goto LAB_001518f4;" (goto "goto") (statement_identifier "LAB_001518f4") (; ";")) (} "}"))) (expression_statement "dVar8 = dVar7;" (assignment_expression "dVar8 = dVar7" (identifier "dVar8") (= "=") (identifier "dVar7")) (; ";")) (if_statement "if (local_28 < dVar9) break;" (if "if") (parenthesized_expression "(local_28 < dVar9)" (( "(") (binary_expression "local_28 < dVar9" (identifier "local_28") (< "<") (identifier "dVar9")) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_00151904:\n            *pdVar4 = dVar7 / local_28;" (statement_identifier "LAB_00151904") (: ":") (expression_statement "*pdVar4 = dVar7 / local_28;" (assignment_expression "*pdVar4 = dVar7 / local_28" (pointer_expression "*pdVar4" (* "*") (identifier "pdVar4")) (= "=") (binary_expression "dVar7 / local_28" (identifier "dVar7") (/ "/") (identifier "local_28"))) (; ";"))) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

type_1 * function_1(type_2 *quantize_info,size_t var_2,size_t maximum_colors)

{
  type_3 *var_16;
  type_1 *var_1;
  type_4 *var_4;
  type_2 *pQVar3;
  type_5 *var_6;
  ssize_t *psVar5;
  double *var_12;
  double *var_14;
  double *var_15;
  double var_13;
  double var_11;
  double var_9;
  double var_18;
  double dVar13;
  double var_17;
  double var_10;
  
  var_1 = (type_1 *)(*(type_6 *)PTR_AcquireMagickMemory_003a98dc)(0x318);
  if (var_1 != (type_1 *)0x0) {
    (*(type_6 *)PTR_memset_003a96d4)(var_1,0,0x318);
    if (var_2 < 9) {
      if (var_2 < 2) {
        var_1->var_2 = 2;
      }
      else {
        var_1->var_2 = var_2;
      }
    }
    else {
      var_1->var_2 = 8;
    }
    var_1->maximum_colors = maximum_colors;
    var_4 = var_3(var_1,0,0,(type_4 *)0x0);
    var_1->root = var_4;
    var_16 = PTR_CloneQuantizeInfo_003a8c9c;
    if (var_4 != (type_4 *)0x0) {
      var_4->parent = var_4;
      pQVar3 = (type_2 *)(*(type_6 *)var_16)(quantize_info);
      var_1->quantize_info = pQVar3;
      if (pQVar3->dither_method == var_5) {
        return var_1;
      }
      var_6 = (type_5 *)(*(type_6 *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);
      var_1->memory_info = var_6;
      if (var_6 != (type_5 *)0x0) {
        psVar5 = (ssize_t *)(*(type_6 *)PTR_GetVirtualMemoryBlob_003a8f28)(var_6);
        var_16 = PTR_memset_003a96d4;
        var_1->cache = psVar5;
        (*(type_6 *)var_16)(psVar5,0xffffffff,0x4000000);
        var_16 = var_7;
        var_12 = var_1->weights + 0xf;
        var_13 = *(double *)(var_7 + 0x1438);
        var_9 = *(double *)(var_7 + 0x13f8);
        var_18 = *(double *)(var_8 + -0x7ef8);
        dVar13 = *(double *)(var_7 + 0x1a78);
        var_11 = var_13;
        var_17 = var_13;
        var_10 = var_13;
LAB_001518f4:
        if (var_9 <= var_10) goto LAB_00151904;
        do {
          *var_12 = var_11 / var_9;
          while( true ) {
            var_12 = var_12 + -1;
            if (&var_1->error[0xf].alpha == var_12) {
              var_11 = 0.0;
              var_12 = var_1->weights;
              do {
                var_13 = *var_12;
                var_12 = var_12 + 1;
                var_11 = var_11 + var_13;
              } while ((type_2 **)var_12 != &var_1->quantize_info);
              var_13 = 0.0;
              var_14 = var_1->weights;
              do {
                var_9 = *var_14;
                var_15 = var_14 + 1;
                *var_14 = var_9 / var_11;
                var_13 = var_13 + var_9 / var_11;
                var_14 = var_15;
              } while (var_15 != var_12);
              var_1->weights[0] = var_1->weights[0] + (*(double *)(var_16 + 0x1438) - var_13)
              ;
              return var_1;
            }
            var_17 = var_17 * var_18;
            if (var_17 < 0.0) {
              var_10 = -var_17;
              var_11 = dVar13;
              goto LAB_001518f4;
            }
            var_11 = var_13;
            if (var_17 < var_9) break;
LAB_00151904:
            *var_12 = var_13 / var_17;
          }
        } while( true );
      }
    }
  }
  return (type_1 *)0x0;
}


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

int * MASKED(undefined4 param_1,uint param_2,int param_3)

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  double *pdVar4;
  double *pdVar5;
  double *pdVar6;
  double dVar7;
  double dVar8;
  double dVar9;
  double dVar10;
  double dVar11;
  double local_28;
  double local_20;
  
  piVar2 = (int *)(*(code *)PTR_AcquireMagickMemory_003a98dc)(0x318);
  if (piVar2 != (int *)0x0) {
    (*(code *)PTR_memset_003a96d4)(piVar2,0,0x318);
    if (param_2 < 9) {
      if (param_2 < 2) {
        piVar2[0xc0] = 2;
      }
      else {
        piVar2[0xc0] = param_2;
      }
    }
    else {
      piVar2[0xc0] = 8;
    }
    piVar2[2] = param_3;
    iVar3 = FUN_00149830(piVar2,0,0,0);
    *piVar2 = iVar3;
    puVar1 = PTR_CloneQuantizeInfo_003a8c9c;
    if (iVar3 != 0) {
      *(int *)iVar3 = iVar3;
      iVar3 = (*(code *)puVar1)(param_1);
      piVar2[0xbc] = iVar3;
      if (*(int *)(iVar3 + 0xc) == 1) {
        return piVar2;
      }
      iVar3 = (*(code *)PTR_AcquireVirtualMemory_003a92cc)(0x1000000,4);
      piVar2[0x19] = iVar3;
      if (iVar3 != 0) {
        iVar3 = (*(code *)PTR_GetVirtualMemoryBlob_003a8f28)(iVar3);
        puVar1 = PTR_memset_003a96d4;
        piVar2[0x1a] = iVar3;
        (*(code *)puVar1)(iVar3,0xffffffff,0x4000000);
        puVar1 = PTR_LAB_003a88e0;
        pdVar4 = (double *)(piVar2 + 0xba);
        dVar7 = *(double *)(PTR_LAB_003a88e0 + 0x1438);
        dVar9 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);
        dVar10 = *(double *)(PTR_s_courses_003a88ec + -0x7ef8);
        dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x1a78);
        dVar8 = dVar7;
        local_28 = dVar7;
        local_20 = dVar7;
LAB_001518f4:
        if (dVar9 <= local_20) goto LAB_00151904;
        do {
          *pdVar4 = dVar8 / dVar9;
          while( true ) {
            pdVar4 = pdVar4 + -1;
            if ((double *)(piVar2 + 0x9a) == pdVar4) {
              dVar8 = 0.0;
              pdVar4 = (double *)(piVar2 + 0x9c);
              do {
                dVar7 = *pdVar4;
                pdVar4 = pdVar4 + 1;
                dVar8 = dVar8 + dVar7;
              } while (pdVar4 != (double *)(piVar2 + 0xbc));
              dVar7 = 0.0;
              pdVar5 = (double *)(piVar2 + 0x9c);
              do {
                dVar9 = *pdVar5;
                pdVar6 = pdVar5 + 1;
                *pdVar5 = dVar9 / dVar8;
                dVar7 = dVar7 + dVar9 / dVar8;
                pdVar5 = pdVar6;
              } while (pdVar6 != pdVar4);
              *(double *)(piVar2 + 0x9c) =
                   *(double *)(piVar2 + 0x9c) + (*(double *)(puVar1 + 0x1438) - dVar7);
              return piVar2;
            }
            local_28 = local_28 * dVar10;
            if (local_28 < 0.0) {
              local_20 = -local_28;
              dVar8 = dVar11;
              goto LAB_001518f4;
            }
            dVar8 = dVar7;
            if (local_28 < dVar9) break;
LAB_00151904:
            *pdVar4 = dVar7 / local_28;
          }
        } while( true );
      }
    }
  }
  return (int *)0x0;
}

