
/* WARNING: Enum "GravityType": Some values do not have unique names */
/* WARNING: Enum "DisposeType": Some values do not have unique names */
/* WARNING: Enum "ChannelType": Some values do not have unique names */
/* WARNING: Enum "PixelChannel": Some values do not have unique names */
/* WARNING: Enum "ComplianceType": Some values do not have unique names */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

MagickBooleanType
QueryColorname(Image *magick_unused_image,PixelInfo *color,ComplianceType compliance,char *name,
              ExceptionInfo *exception)

{
  undefined *puVar1;
  PixelInfo *pPVar2;
  PixelInfo *pPVar3;
  PixelInfo *pPVar4;
  MagickBooleanType MVar5;
  int iVar6;
  PixelInfo *pPVar7;
  int iVar8;
  undefined4 uVar9;
  PixelTrait PVar10;
  ColorspaceType CVar11;
  undefined *puVar12;
  double dVar13;
  double dVar14;
  PixelInfo pixel;
  
  puVar12 = PTR___stack_chk_guard_003a9230;
  iVar8 = *(int *)PTR___stack_chk_guard_003a9230;
  *name = '\0';
  pPVar4 = color;
  pPVar2 = &pixel;
  do {
    pPVar7 = pPVar2;
    pPVar3 = pPVar4;
    pPVar4 = (PixelInfo *)&pPVar3->fuzz;
    CVar11 = pPVar3->colorspace;
    PVar10 = pPVar3->alpha_trait;
    uVar9 = *(undefined4 *)&pPVar3->field_0xc;
    pPVar7->storage_class = pPVar3->storage_class;
    pPVar7->colorspace = CVar11;
    pPVar7->alpha_trait = PVar10;
    *(undefined4 *)&pPVar7->field_0xc = uVar9;
    pPVar2 = (PixelInfo *)&pPVar7->fuzz;
  } while (pPVar4 != (PixelInfo *)&color->index);
  uVar9 = *(undefined4 *)((int)&pPVar3->fuzz + 4);
  *(undefined4 *)&pPVar7->fuzz = *(undefined4 *)pPVar4;
  *(undefined4 *)((int)&pPVar7->fuzz + 4) = uVar9;
  if ((compliance == XPMCompliance) && (pixel.alpha_trait = UndefinedPixelTrait, 0x10 < pixel.depth)
     ) {
    pixel.depth = 0x10;
  }
  (*(code *)PTR_GetColorTuple_003a8fd4)(&pixel,compliance != CSSCompliance,name);
  puVar1 = PTR_DAT_003a88cc;
  if (pixel.colorspace - sRGBColorspace < 2) {
    if (color->alpha_trait == UndefinedPixelTrait) {
      dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);
    }
    else {
      dVar13 = color->alpha;
    }
    (*(code *)PTR_GetColorInfo_003a9580)
              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,exception);
    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));
    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));
    if (iVar6 != 0) {
      dVar14 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);
      do {
        if (((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&
             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&
            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&
           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&
            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))) {
          (*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);
          MVar5 = MagickTrue;
          goto LAB_00064ad8;
        }
        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));
      } while (iVar6 != 0);
    }
    MVar5 = MagickTrue;
  }
  else {
    MVar5 = MagickFalse;
  }
LAB_00064ad8:
  if (iVar8 != *(int *)puVar12) {
    puVar12 = PTR___stack_chk_fail_003a9064;
    (*(code *)PTR___stack_chk_fail_003a9064)();
    dVar13 = (double)(**(code **)(puVar12 + 0x344204))(0);
    dVar14 = (double)(**(code **)(puVar12 + 0x344204))(0,iVar8);
    return (int)dVar13 - (int)dVar14;
  }
  return MVar5;
}



int QueryColorname(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,
                  undefined4 param_5)

{
  undefined *puVar1;
  int *piVar2;
  int *piVar3;
  int *piVar4;
  int *piVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  undefined *puVar9;
  double dVar10;
  double dVar11;
  int local_98 [23];
  int local_3c;
  
  puVar9 = PTR___stack_chk_guard_003a9230;
  local_3c = *(int *)PTR___stack_chk_guard_003a9230;
  *param_4 = 0;
  piVar4 = param_2;
  piVar2 = local_98;
  do {
    piVar5 = piVar2;
    piVar3 = piVar4;
    piVar4 = piVar3 + 4;
    iVar8 = piVar3[1];
    iVar7 = piVar3[2];
    iVar6 = piVar3[3];
    *piVar5 = *piVar3;
    piVar5[1] = iVar8;
    piVar5[2] = iVar7;
    piVar5[3] = iVar6;
    piVar2 = piVar5 + 4;
  } while (piVar4 != param_2 + 0x14);
  iVar6 = piVar3[5];
  piVar5[4] = *piVar4;
  piVar5[5] = iVar6;
  if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {
    local_98[6] = 0x10;
  }
  (*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);
  puVar1 = PTR_DAT_003a88cc;
  if (local_98[1] - 0x17U < 2) {
    if (param_2[2] == 0) {
      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);
    }
    else {
      dVar10 = *(double *)(param_2 + 0x12);
    }
    (*(code *)PTR_GetColorInfo_003a9580)
              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);
    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));
    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));
    if (iVar6 != 0) {
      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);
      do {
        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&
             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&
            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&
           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&
            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {
          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);
          iVar6 = 1;
          goto LAB_00064ad8;
        }
        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));
      } while (iVar6 != 0);
    }
    iVar6 = 1;
  }
  else {
    iVar6 = 0;
  }
LAB_00064ad8:
  if (local_3c != *(int *)puVar9) {
    iVar6 = local_3c;
    puVar9 = PTR___stack_chk_fail_003a9064;
    (*(code *)PTR___stack_chk_fail_003a9064)();
    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);
    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);
    return (int)dVar10 - (int)dVar11;
  }
  return iVar6;
}


lui gp,0x35
addiu gp,gp,-0x4144
addu gp,gp,t9
addiu sp,sp,-0xc0
addiu a0,sp,0x28
sdc1 f22,0xb8(sp)
sw s7,0xa4(sp)
sw s8,0xa8(sp)
or s8,a1,zero
sw s6,0xa0(sp)
or s6,a3,zero
lw s7,-0x7680(gp)
addiu a3,a1,0x50
sw s3,0x94(sp)
or v0,s8,zero
sw gp,0x10(sp)
or v1,a0,zero
sw s2,0x90(sp)
or s2,a2,zero
sw ra,0xac(sp)
sw s5,0x9c(sp)
sw s4,0x98(sp)
sw s1,0x8c(sp)
sw s0,0x88(sp)
lw a1,0x0(s7)
lw s3,0xd0(sp)
sdc1 f20,0xb0(sp)
sw a1,0x84(sp)
sb zero,0x0(s6)
lw t1,0x0(v0)
addiu v0,v0,0x10
addiu v1,v1,0x10
lw t0,-0xc(v0)
lw a2,-0x8(v0)
lw a1,-0x4(v0)
sw t1,-0x10(v1)
sw t0,-0xc(v1)
sw a2,-0x8(v1)
bne v0,a3,0x00064a68
_sw a1,-0x4(v1)
lw a2,0x0(v0)
li a1,0x4
lw v0,0x4(v0)
sw a2,0x0(v1)
beq s2,a1,0x00064c50
_sw v0,0x4(v1)
lw t9,-0x78dc(gp)
xori a1,s2,0x1
or a2,s6,zero
jalr t9
_sltu a1,zero,a1
lw v0,0x2c(sp)
addiu v0,v0,-0x17
sltiu v0,v0,0x2
bne v0,zero,0x00064b1c
_lw gp,0x10(sp)
or v0,zero,zero
lw a0,0x84(sp)
lw v1,0x0(s7)
bne a0,v1,0x00064c90
_lw ra,0xac(sp)
lw s8,0xa8(sp)
lw s7,0xa4(sp)
lw s6,0xa0(sp)
lw s5,0x9c(sp)
lw s4,0x98(sp)
lw s3,0x94(sp)
lw s2,0x90(sp)
lw s1,0x8c(sp)
lw s0,0x88(sp)
ldc1 f22,0xb8(sp)
ldc1 f20,0xb0(sp)
jr ra
_addiu sp,sp,0xc0
lw v0,0x8(s8)
bne v0,zero,0x00064c6c
_lw v0,-0x7fd0(gp)
ldc1 f22,0x1a58(v0)
lw a0,-0x7fc8(gp)
or a1,s3,zero
lw t9,-0x7330(gp)
lw s3,-0x7fe4(gp)
jalr t9
_addiu a0,a0,0x6c9c
lw gp,0x10(sp)
lw t9,-0x7378(gp)
jalr t9
_lw a0,-0x50fc(s3)
lw gp,0x10(sp)
lw t9,-0x75a0(gp)
jalr t9
_lw a0,-0x50fc(s3)
beq v0,zero,0x00064c48
_lw gp,0x10(sp)
lw v1,-0x7fd0(gp)
ldc1 f20,0x13f8(v1)
lw v1,0x8(v0)
and v1,s2,v1
beq v1,zero,0x00064c38
_lw t9,-0x75a0(gp)
ldc1 f2,0x38(v0)
ldc1 f0,0x28(s8)
sub.D D f0,f2,f0
mfc1 a1,f0
mfhc1 a0,f0
mtc1 a1,f0
ext s0,a0,0x0,0x1f
mthc1 s0,f0
c.lt.D f0,f20
bc1f 0x00064c38
_nop
ldc1 f2,0x40(v0)
ldc1 f0,0x30(s8)
sub.D D f0,f2,f0
mfc1 a1,f0
mfhc1 a0,f0
mtc1 a1,f0
ext s4,a0,0x0,0x1f
mthc1 s4,f0
c.lt.D f0,f20
bc1f 0x1,0x00064c38
_nop
ldc1 f2,0x48(v0)
ldc1 f0,0x38(s8)
sub.D D f0,f2,f0
mfhc1 a0,f0
mfc1 a1,f0
ext v1,a0,0x0,0x1f
sw a1,0x1c(sp)
sw v1,0x18(sp)
ldc1 f0,0x18(sp)
c.lt.D f0,f20
bc1f 0x2,0x00064c38
_nop
ldc1 f0,0x58(v0)
sub.D D f0,f0,f22
mfhc1 a0,f0
mfc1 a1,f0
ext v1,a0,0x0,0x1f
sw a1,0x24(sp)
sw v1,0x20(sp)
ldc1 f0,0x20(sp)
c.lt.D f0,f20
bc1t 0x3,0x00064c74
_li a2,0x1000
jalr t9
_lw a0,-0x50fc(s3)
bne v0,zero,0x00064b74
_lw gp,0x10(sp)
b 0x00064ad8
_li v0,0x1
lw v0,0x40(sp)
sltiu v0,v0,0x11
bne v0,zero,0x00064aac
_sw zero,0x30(sp)
li v0,0x10
b 0x00064aac
_sw v0,0x40(sp)
b 0x00064b2c
_ldc1 f22,0x48(s8)
lw t9,-0x7074(gp)
lw a1,0x4(v0)
jalr t9
_or a0,s6,zero
li v0,0x1
b 0x00064ad8
_lw gp,0x10(sp)
lw t9,-0x784c(gp)
jalr t9
_nop
nop
(translation_unit "int QueryColorname(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,\n                  undefined4 param_5)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined *puVar9;\n  double dVar10;\n  double dVar11;\n  int local_98 [23];\n  int local_3c;\n  \n  puVar9 = PTR___stack_chk_guard_003a9230;\n  local_3c = *(int *)PTR___stack_chk_guard_003a9230;\n  *param_4 = 0;\n  piVar4 = param_2;\n  piVar2 = local_98;\n  do {\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  } while (piVar4 != param_2 + 0x14);\n  iVar6 = piVar3[5];\n  piVar5[4] = *piVar4;\n  piVar5[5] = iVar6;\n  if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {\n    local_98[6] = 0x10;\n  }\n  (*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);\n  puVar1 = PTR_DAT_003a88cc;\n  if (local_98[1] - 0x17U < 2) {\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }\n  else {\n    iVar6 = 0;\n  }\nLAB_00064ad8:\n  if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }\n  return iVar6;\n}\n\n" (function_definition "int QueryColorname(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,\n                  undefined4 param_5)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined *puVar9;\n  double dVar10;\n  double dVar11;\n  int local_98 [23];\n  int local_3c;\n  \n  puVar9 = PTR___stack_chk_guard_003a9230;\n  local_3c = *(int *)PTR___stack_chk_guard_003a9230;\n  *param_4 = 0;\n  piVar4 = param_2;\n  piVar2 = local_98;\n  do {\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  } while (piVar4 != param_2 + 0x14);\n  iVar6 = piVar3[5];\n  piVar5[4] = *piVar4;\n  piVar5[5] = iVar6;\n  if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {\n    local_98[6] = 0x10;\n  }\n  (*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);\n  puVar1 = PTR_DAT_003a88cc;\n  if (local_98[1] - 0x17U < 2) {\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }\n  else {\n    iVar6 = 0;\n  }\nLAB_00064ad8:\n  if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }\n  return iVar6;\n}" primitive_type (function_declarator "QueryColorname(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,\n                  undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,\n                  undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined1 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined *puVar9;\n  double dVar10;\n  double dVar11;\n  int local_98 [23];\n  int local_3c;\n  \n  puVar9 = PTR___stack_chk_guard_003a9230;\n  local_3c = *(int *)PTR___stack_chk_guard_003a9230;\n  *param_4 = 0;\n  piVar4 = param_2;\n  piVar2 = local_98;\n  do {\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  } while (piVar4 != param_2 + 0x14);\n  iVar6 = piVar3[5];\n  piVar5[4] = *piVar4;\n  piVar5[5] = iVar6;\n  if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {\n    local_98[6] = 0x10;\n  }\n  (*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);\n  puVar1 = PTR_DAT_003a88cc;\n  if (local_98[1] - 0x17U < 2) {\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }\n  else {\n    iVar6 = 0;\n  }\nLAB_00064ad8:\n  if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }\n  return iVar6;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "double dVar10;" primitive_type identifier ;) (declaration "double dVar11;" primitive_type identifier ;) (declaration "int local_98 [23];" primitive_type (array_declarator "local_98 [23]" identifier [ number_literal ]) ;) (declaration "int local_3c;" primitive_type identifier ;) (expression_statement "puVar9 = PTR___stack_chk_guard_003a9230;" (assignment_expression "puVar9 = PTR___stack_chk_guard_003a9230" identifier = identifier) ;) (expression_statement "local_3c = *(int *)PTR___stack_chk_guard_003a9230;" (assignment_expression "local_3c = *(int *)PTR___stack_chk_guard_003a9230" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_003a9230" * (cast_expression "(int *)PTR___stack_chk_guard_003a9230" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "piVar4 = param_2;" (assignment_expression "piVar4 = param_2" identifier = identifier) ;) (expression_statement "piVar2 = local_98;" (assignment_expression "piVar2 = local_98" identifier = identifier) ;) (do_statement "do {\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  } while (piVar4 != param_2 + 0x14);" do (compound_statement "{\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  }" { (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) (expression_statement "piVar3 = piVar4;" (assignment_expression "piVar3 = piVar4" identifier = identifier) ;) (expression_statement "piVar4 = piVar3 + 4;" (assignment_expression "piVar4 = piVar3 + 4" identifier = (binary_expression "piVar3 + 4" identifier + number_literal)) ;) (expression_statement "iVar8 = piVar3[1];" (assignment_expression "iVar8 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = piVar3[2];" (assignment_expression "iVar7 = piVar3[2]" identifier = (subscript_expression "piVar3[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = piVar3[3];" (assignment_expression "iVar6 = piVar3[3]" identifier = (subscript_expression "piVar3[3]" identifier [ number_literal ])) ;) (expression_statement "*piVar5 = *piVar3;" (assignment_expression "*piVar5 = *piVar3" (pointer_expression "*piVar5" * identifier) = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "piVar5[1] = iVar8;" (assignment_expression "piVar5[1] = iVar8" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[2] = iVar7;" (assignment_expression "piVar5[2] = iVar7" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[3] = iVar6;" (assignment_expression "piVar5[3] = iVar6" (subscript_expression "piVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2 = piVar5 + 4;" (assignment_expression "piVar2 = piVar5 + 4" identifier = (binary_expression "piVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar4 != param_2 + 0x14)" ( (binary_expression "piVar4 != param_2 + 0x14" identifier != (binary_expression "param_2 + 0x14" identifier + number_literal)) )) ;) (expression_statement "iVar6 = piVar3[5];" (assignment_expression "iVar6 = piVar3[5]" identifier = (subscript_expression "piVar3[5]" identifier [ number_literal ])) ;) (expression_statement "piVar5[4] = *piVar4;" (assignment_expression "piVar5[4] = *piVar4" (subscript_expression "piVar5[4]" identifier [ number_literal ]) = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar5[5] = iVar6;" (assignment_expression "piVar5[5] = iVar6" (subscript_expression "piVar5[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {\n    local_98[6] = 0x10;\n  }" if (parenthesized_expression "((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6]))" ( (binary_expression "(param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])" (parenthesized_expression "(param_3 == 4)" ( (binary_expression "param_3 == 4" identifier == number_literal) )) && (parenthesized_expression "(local_98[2] = 0, 0x10 < (uint)local_98[6])" ( (comma_expression "local_98[2] = 0, 0x10 < (uint)local_98[6]" (assignment_expression "local_98[2] = 0" (subscript_expression "local_98[2]" identifier [ number_literal ]) = number_literal) , (binary_expression "0x10 < (uint)local_98[6]" number_literal < (cast_expression "(uint)local_98[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_98[6]" identifier [ number_literal ])))) ))) )) (compound_statement "{\n    local_98[6] = 0x10;\n  }" { (expression_statement "local_98[6] = 0x10;" (assignment_expression "local_98[6] = 0x10" (subscript_expression "local_98[6]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "(*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);" (call_expression "(*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4)" (parenthesized_expression "(*(code *)PTR_GetColorTuple_003a8fd4)" ( (pointer_expression "*(code *)PTR_GetColorTuple_003a8fd4" * (cast_expression "(code *)PTR_GetColorTuple_003a8fd4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_98,param_3 != 1,param_4)" ( identifier , (binary_expression "param_3 != 1" identifier != number_literal) , identifier ))) ;) (expression_statement "puVar1 = PTR_DAT_003a88cc;" (assignment_expression "puVar1 = PTR_DAT_003a88cc" identifier = identifier) ;) (if_statement "if (local_98[1] - 0x17U < 2) {\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }\n  else {\n    iVar6 = 0;\n  }" if (parenthesized_expression "(local_98[1] - 0x17U < 2)" ( (binary_expression "local_98[1] - 0x17U < 2" (binary_expression "local_98[1] - 0x17U" (subscript_expression "local_98[1]" identifier [ number_literal ]) - number_literal) < number_literal) )) (compound_statement "{\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }" { (if_statement "if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }" if (parenthesized_expression "(param_2[2] == 0)" ( (binary_expression "param_2[2] == 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }" { (expression_statement "dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);" (assignment_expression "dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58)" identifier = (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x1a58)" * (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x1a58)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_003a88e0 + 0x1a58)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1a58" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }" else (compound_statement "{\n      dVar10 = *(double *)(param_2 + 0x12);\n    }" { (expression_statement "dVar10 = *(double *)(param_2 + 0x12);" (assignment_expression "dVar10 = *(double *)(param_2 + 0x12)" identifier = (pointer_expression "*(double *)(param_2 + 0x12)" * (cast_expression "(double *)(param_2 + 0x12)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x12)" ( (binary_expression "param_2 + 0x12" identifier + number_literal) ))))) ;) }))) (expression_statement "(*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);" (call_expression "(*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5)" (parenthesized_expression "(*(code *)PTR_GetColorInfo_003a9580)" ( (pointer_expression "*(code *)PTR_GetColorInfo_003a9580" * (cast_expression "(code *)PTR_GetColorInfo_003a9580" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5)" ( (binary_expression "PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c" identifier + number_literal) , identifier ))) ;) (expression_statement "(*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));" (call_expression "(*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc))" (parenthesized_expression "(*(code *)PTR_ResetLinkedListIterator_003a9538)" ( (pointer_expression "*(code *)PTR_ResetLinkedListIterator_003a9538" * (cast_expression "(code *)PTR_ResetLinkedListIterator_003a9538" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + -0x50fc))" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x50fc)" * (cast_expression "(undefined4 *)(puVar1 + -0x50fc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50fc)" ( (binary_expression "puVar1 + -0x50fc" identifier + number_literal) )))) ))) ;) (expression_statement "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));" (assignment_expression "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" identifier = (call_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" (parenthesized_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)" ( (pointer_expression "*(code *)PTR_GetNextValueInLinkedList_003a9310" * (cast_expression "(code *)PTR_GetNextValueInLinkedList_003a9310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + -0x50fc))" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x50fc)" * (cast_expression "(undefined4 *)(puVar1 + -0x50fc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50fc)" ( (binary_expression "puVar1 + -0x50fc" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }" { (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) ))))) ;) (do_statement "do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);" do (compound_statement "{\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      }" { (if_statement "if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }" if (parenthesized_expression "(((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11))))" ( (binary_expression "((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))" (parenthesized_expression "((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11))" ( (binary_expression "(((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)" (parenthesized_expression "(((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11))" ( (binary_expression "((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)" (parenthesized_expression "((param_3 & *(uint *)(iVar6 + 8)) != 0)" ( (binary_expression "(param_3 & *(uint *)(iVar6 + 8)) != 0" (parenthesized_expression "(param_3 & *(uint *)(iVar6 + 8))" ( (binary_expression "param_3 & *(uint *)(iVar6 + 8)" identifier & (pointer_expression "*(uint *)(iVar6 + 8)" * (cast_expression "(uint *)(iVar6 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) ))))) )) != number_literal) )) && (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)" ( (binary_expression "ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11" (call_expression "ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10))" identifier (argument_list "(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10))" ( (binary_expression "*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)" (pointer_expression "*(double *)(iVar6 + 0x38)" * (cast_expression "(double *)(iVar6 + 0x38)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x38)" ( (binary_expression "iVar6 + 0x38" identifier + number_literal) )))) - (pointer_expression "*(double *)(param_2 + 10)" * (cast_expression "(double *)(param_2 + 10)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 10)" ( (binary_expression "param_2 + 10" identifier + number_literal) ))))) ))) < identifier) ))) )) && (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)" ( (binary_expression "ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11" (call_expression "ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc))" identifier (argument_list "(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc))" ( (binary_expression "*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)" (pointer_expression "*(double *)(iVar6 + 0x40)" * (cast_expression "(double *)(iVar6 + 0x40)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x40)" ( (binary_expression "iVar6 + 0x40" identifier + number_literal) )))) - (pointer_expression "*(double *)(param_2 + 0xc)" * (cast_expression "(double *)(param_2 + 0xc)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ))) < identifier) ))) )) && (parenthesized_expression "((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))" ( (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11))" ( (binary_expression "ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)" (binary_expression "ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11" (call_expression "ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe))" identifier (argument_list "(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe))" ( (binary_expression "*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)" (pointer_expression "*(double *)(iVar6 + 0x48)" * (cast_expression "(double *)(iVar6 + 0x48)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x48)" ( (binary_expression "iVar6 + 0x48" identifier + number_literal) )))) - (pointer_expression "*(double *)(param_2 + 0xe)" * (cast_expression "(double *)(param_2 + 0xe)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xe)" ( (binary_expression "param_2 + 0xe" identifier + number_literal) ))))) ))) < identifier) && (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)" ( (binary_expression "ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11" (call_expression "ABS(*(double *)(iVar6 + 0x58) - dVar10)" identifier (argument_list "(*(double *)(iVar6 + 0x58) - dVar10)" ( (binary_expression "*(double *)(iVar6 + 0x58) - dVar10" (pointer_expression "*(double *)(iVar6 + 0x58)" * (cast_expression "(double *)(iVar6 + 0x58)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x58)" ( (binary_expression "iVar6 + 0x58" identifier + number_literal) )))) - identifier) ))) < identifier) ))) )) ))) )) (compound_statement "{\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }" { (expression_statement "(*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);" (call_expression "(*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000)" (parenthesized_expression "(*(code *)PTR_CopyMagickString_003a983c)" ( (pointer_expression "*(code *)PTR_CopyMagickString_003a983c" * (cast_expression "(code *)PTR_CopyMagickString_003a983c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,*(undefined4 *)(iVar6 + 4),0x1000)" ( identifier , (pointer_expression "*(undefined4 *)(iVar6 + 4)" * (cast_expression "(undefined4 *)(iVar6 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 4)" ( (binary_expression "iVar6 + 4" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00064ad8;" goto statement_identifier ;) })) (expression_statement "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));" (assignment_expression "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" identifier = (call_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" (parenthesized_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)" ( (pointer_expression "*(code *)PTR_GetNextValueInLinkedList_003a9310" * (cast_expression "(code *)PTR_GetNextValueInLinkedList_003a9310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + -0x50fc))" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x50fc)" * (cast_expression "(undefined4 *)(puVar1 + -0x50fc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50fc)" ( (binary_expression "puVar1 + -0x50fc" identifier + number_literal) )))) )))) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) })) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar6 = 0;\n  }" else (compound_statement "{\n    iVar6 = 0;\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_00064ad8:\n  if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }" statement_identifier : (if_statement "if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }" if (parenthesized_expression "(local_3c != *(int *)puVar9)" ( (binary_expression "local_3c != *(int *)puVar9" identifier != (pointer_expression "*(int *)puVar9" * (cast_expression "(int *)puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }" { (expression_statement "iVar6 = local_3c;" (assignment_expression "iVar6 = local_3c" identifier = identifier) ;) (expression_statement "puVar9 = PTR___stack_chk_fail_003a9064;" (assignment_expression "puVar9 = PTR___stack_chk_fail_003a9064" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_003a9064)();" (call_expression "(*(code *)PTR___stack_chk_fail_003a9064)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003a9064)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_003a9064" * (cast_expression "(code *)PTR___stack_chk_fail_003a9064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);" (assignment_expression "dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0)" identifier = (cast_expression "(double)(**(code **)(puVar9 + 0x344204))(0)" ( (type_descriptor "double" primitive_type) ) (call_expression "(**(code **)(puVar9 + 0x344204))(0)" (parenthesized_expression "(**(code **)(puVar9 + 0x344204))" ( (pointer_expression "**(code **)(puVar9 + 0x344204)" * (pointer_expression "*(code **)(puVar9 + 0x344204)" * (cast_expression "(code **)(puVar9 + 0x344204)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x344204)" ( (binary_expression "puVar9 + 0x344204" identifier + number_literal) ))))) )) (argument_list "(0)" ( number_literal ))))) ;) (expression_statement "dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);" (assignment_expression "dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6)" identifier = (cast_expression "(double)(**(code **)(puVar9 + 0x344204))(0,iVar6)" ( (type_descriptor "double" primitive_type) ) (call_expression "(**(code **)(puVar9 + 0x344204))(0,iVar6)" (parenthesized_expression "(**(code **)(puVar9 + 0x344204))" ( (pointer_expression "**(code **)(puVar9 + 0x344204)" * (pointer_expression "*(code **)(puVar9 + 0x344204)" * (cast_expression "(code **)(puVar9 + 0x344204)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x344204)" ( (binary_expression "puVar9 + 0x344204" identifier + number_literal) ))))) )) (argument_list "(0,iVar6)" ( number_literal , identifier ))))) ;) (return_statement "return (int)dVar10 - (int)dVar11;" return (binary_expression "(int)dVar10 - (int)dVar11" (cast_expression "(int)dVar10" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)dVar11" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n/* WARNING: Enum "ComplianceType": Some values do not have unique names */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nMagickBooleanType\nQueryColorname(Image *magick_unused_image,PixelInfo *color,ComplianceType compliance,char *name,\n              ExceptionInfo *exception)\n\n{\n  undefined *puVar1;\n  PixelInfo *pPVar2;\n  PixelInfo *pPVar3;\n  PixelInfo *pPVar4;\n  MagickBooleanType MVar5;\n  int iVar6;\n  PixelInfo *pPVar7;\n  int iVar8;\n  undefined4 uVar9;\n  PixelTrait PVar10;\n  ColorspaceType CVar11;\n  undefined *puVar12;\n  double dVar13;\n  double dVar14;\n  PixelInfo pixel;\n  \n  puVar12 = PTR___stack_chk_guard_003a9230;\n  iVar8 = *(int *)PTR___stack_chk_guard_003a9230;\n  *name = '\0';\n  pPVar4 = color;\n  pPVar2 = &pixel;\n  do {\n    pPVar7 = pPVar2;\n    pPVar3 = pPVar4;\n    pPVar4 = (PixelInfo *)&pPVar3->fuzz;\n    CVar11 = pPVar3->colorspace;\n    PVar10 = pPVar3->alpha_trait;\n    uVar9 = *(undefined4 *)&pPVar3->field_0xc;\n    pPVar7->storage_class = pPVar3->storage_class;\n    pPVar7->colorspace = CVar11;\n    pPVar7->alpha_trait = PVar10;\n    *(undefined4 *)&pPVar7->field_0xc = uVar9;\n    pPVar2 = (PixelInfo *)&pPVar7->fuzz;\n  } while (pPVar4 != (PixelInfo *)&color->index);\n  uVar9 = *(undefined4 *)((int)&pPVar3->fuzz + 4);\n  *(undefined4 *)&pPVar7->fuzz = *(undefined4 *)pPVar4;\n  *(undefined4 *)((int)&pPVar7->fuzz + 4) = uVar9;\n  if ((compliance == XPMCompliance) && (pixel.alpha_trait = UndefinedPixelTrait, 0x10 < pixel.depth)\n     ) {\n    pixel.depth = 0x10;\n  }\n  (*(code *)PTR_GetColorTuple_003a8fd4)(&pixel,compliance != CSSCompliance,name);\n  puVar1 = PTR_DAT_003a88cc;\n  if (pixel.colorspace - sRGBColorspace < 2) {\n    if (color->alpha_trait == UndefinedPixelTrait) {\n      dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar13 = color->alpha;\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,exception);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar14 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);\n          MVar5 = MagickTrue;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    MVar5 = MagickTrue;\n  }\n  else {\n    MVar5 = MagickFalse;\n  }\nLAB_00064ad8:\n  if (iVar8 != *(int *)puVar12) {\n    puVar12 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar13 = (double)(**(code **)(puVar12 + 0x344204))(0);\n    dVar14 = (double)(**(code **)(puVar12 + 0x344204))(0,iVar8);\n    return (int)dVar13 - (int)dVar14;\n  }\n  return MVar5;\n}\n\n" comment comment comment comment comment comment (function_definition "MagickBooleanType\nQueryColorname(Image *magick_unused_image,PixelInfo *color,ComplianceType compliance,char *name,\n              ExceptionInfo *exception)\n\n{\n  undefined *puVar1;\n  PixelInfo *pPVar2;\n  PixelInfo *pPVar3;\n  PixelInfo *pPVar4;\n  MagickBooleanType MVar5;\n  int iVar6;\n  PixelInfo *pPVar7;\n  int iVar8;\n  undefined4 uVar9;\n  PixelTrait PVar10;\n  ColorspaceType CVar11;\n  undefined *puVar12;\n  double dVar13;\n  double dVar14;\n  PixelInfo pixel;\n  \n  puVar12 = PTR___stack_chk_guard_003a9230;\n  iVar8 = *(int *)PTR___stack_chk_guard_003a9230;\n  *name = '\0';\n  pPVar4 = color;\n  pPVar2 = &pixel;\n  do {\n    pPVar7 = pPVar2;\n    pPVar3 = pPVar4;\n    pPVar4 = (PixelInfo *)&pPVar3->fuzz;\n    CVar11 = pPVar3->colorspace;\n    PVar10 = pPVar3->alpha_trait;\n    uVar9 = *(undefined4 *)&pPVar3->field_0xc;\n    pPVar7->storage_class = pPVar3->storage_class;\n    pPVar7->colorspace = CVar11;\n    pPVar7->alpha_trait = PVar10;\n    *(undefined4 *)&pPVar7->field_0xc = uVar9;\n    pPVar2 = (PixelInfo *)&pPVar7->fuzz;\n  } while (pPVar4 != (PixelInfo *)&color->index);\n  uVar9 = *(undefined4 *)((int)&pPVar3->fuzz + 4);\n  *(undefined4 *)&pPVar7->fuzz = *(undefined4 *)pPVar4;\n  *(undefined4 *)((int)&pPVar7->fuzz + 4) = uVar9;\n  if ((compliance == XPMCompliance) && (pixel.alpha_trait = UndefinedPixelTrait, 0x10 < pixel.depth)\n     ) {\n    pixel.depth = 0x10;\n  }\n  (*(code *)PTR_GetColorTuple_003a8fd4)(&pixel,compliance != CSSCompliance,name);\n  puVar1 = PTR_DAT_003a88cc;\n  if (pixel.colorspace - sRGBColorspace < 2) {\n    if (color->alpha_trait == UndefinedPixelTrait) {\n      dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar13 = color->alpha;\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,exception);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar14 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);\n          MVar5 = MagickTrue;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    MVar5 = MagickTrue;\n  }\n  else {\n    MVar5 = MagickFalse;\n  }\nLAB_00064ad8:\n  if (iVar8 != *(int *)puVar12) {\n    puVar12 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar13 = (double)(**(code **)(puVar12 + 0x344204))(0);\n    dVar14 = (double)(**(code **)(puVar12 + 0x344204))(0,iVar8);\n    return (int)dVar13 - (int)dVar14;\n  }\n  return MVar5;\n}" type_identifier (function_declarator "QueryColorname(Image *magick_unused_image,PixelInfo *color,ComplianceType compliance,char *name,\n              ExceptionInfo *exception)" identifier (parameter_list "(Image *magick_unused_image,PixelInfo *color,ComplianceType compliance,char *name,\n              ExceptionInfo *exception)" ( (parameter_declaration "Image *magick_unused_image" type_identifier (pointer_declarator "*magick_unused_image" * identifier)) , (parameter_declaration "PixelInfo *color" type_identifier (pointer_declarator "*color" * identifier)) , (parameter_declaration "ComplianceType compliance" type_identifier identifier) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  PixelInfo *pPVar2;\n  PixelInfo *pPVar3;\n  PixelInfo *pPVar4;\n  MagickBooleanType MVar5;\n  int iVar6;\n  PixelInfo *pPVar7;\n  int iVar8;\n  undefined4 uVar9;\n  PixelTrait PVar10;\n  ColorspaceType CVar11;\n  undefined *puVar12;\n  double dVar13;\n  double dVar14;\n  PixelInfo pixel;\n  \n  puVar12 = PTR___stack_chk_guard_003a9230;\n  iVar8 = *(int *)PTR___stack_chk_guard_003a9230;\n  *name = '\0';\n  pPVar4 = color;\n  pPVar2 = &pixel;\n  do {\n    pPVar7 = pPVar2;\n    pPVar3 = pPVar4;\n    pPVar4 = (PixelInfo *)&pPVar3->fuzz;\n    CVar11 = pPVar3->colorspace;\n    PVar10 = pPVar3->alpha_trait;\n    uVar9 = *(undefined4 *)&pPVar3->field_0xc;\n    pPVar7->storage_class = pPVar3->storage_class;\n    pPVar7->colorspace = CVar11;\n    pPVar7->alpha_trait = PVar10;\n    *(undefined4 *)&pPVar7->field_0xc = uVar9;\n    pPVar2 = (PixelInfo *)&pPVar7->fuzz;\n  } while (pPVar4 != (PixelInfo *)&color->index);\n  uVar9 = *(undefined4 *)((int)&pPVar3->fuzz + 4);\n  *(undefined4 *)&pPVar7->fuzz = *(undefined4 *)pPVar4;\n  *(undefined4 *)((int)&pPVar7->fuzz + 4) = uVar9;\n  if ((compliance == XPMCompliance) && (pixel.alpha_trait = UndefinedPixelTrait, 0x10 < pixel.depth)\n     ) {\n    pixel.depth = 0x10;\n  }\n  (*(code *)PTR_GetColorTuple_003a8fd4)(&pixel,compliance != CSSCompliance,name);\n  puVar1 = PTR_DAT_003a88cc;\n  if (pixel.colorspace - sRGBColorspace < 2) {\n    if (color->alpha_trait == UndefinedPixelTrait) {\n      dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar13 = color->alpha;\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,exception);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar14 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);\n          MVar5 = MagickTrue;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    MVar5 = MagickTrue;\n  }\n  else {\n    MVar5 = MagickFalse;\n  }\nLAB_00064ad8:\n  if (iVar8 != *(int *)puVar12) {\n    puVar12 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar13 = (double)(**(code **)(puVar12 + 0x344204))(0);\n    dVar14 = (double)(**(code **)(puVar12 + 0x344204))(0,iVar8);\n    return (int)dVar13 - (int)dVar14;\n  }\n  return MVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "PixelInfo *pPVar2;" type_identifier (pointer_declarator "*pPVar2" * identifier) ;) (declaration "PixelInfo *pPVar3;" type_identifier (pointer_declarator "*pPVar3" * identifier) ;) (declaration "PixelInfo *pPVar4;" type_identifier (pointer_declarator "*pPVar4" * identifier) ;) (declaration "MagickBooleanType MVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "PixelInfo *pPVar7;" type_identifier (pointer_declarator "*pPVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "PixelTrait PVar10;" type_identifier identifier ;) (declaration "ColorspaceType CVar11;" type_identifier identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "double dVar13;" primitive_type identifier ;) (declaration "double dVar14;" primitive_type identifier ;) (declaration "PixelInfo pixel;" type_identifier identifier ;) (expression_statement "puVar12 = PTR___stack_chk_guard_003a9230;" (assignment_expression "puVar12 = PTR___stack_chk_guard_003a9230" identifier = identifier) ;) (expression_statement "iVar8 = *(int *)PTR___stack_chk_guard_003a9230;" (assignment_expression "iVar8 = *(int *)PTR___stack_chk_guard_003a9230" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_003a9230" * (cast_expression "(int *)PTR___stack_chk_guard_003a9230" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*name = '\0';" (assignment_expression "*name = '\0'" (pointer_expression "*name" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pPVar4 = color;" (assignment_expression "pPVar4 = color" identifier = identifier) ;) (expression_statement "pPVar2 = &pixel;" (assignment_expression "pPVar2 = &pixel" identifier = (pointer_expression "&pixel" & identifier)) ;) (do_statement "do {\n    pPVar7 = pPVar2;\n    pPVar3 = pPVar4;\n    pPVar4 = (PixelInfo *)&pPVar3->fuzz;\n    CVar11 = pPVar3->colorspace;\n    PVar10 = pPVar3->alpha_trait;\n    uVar9 = *(undefined4 *)&pPVar3->field_0xc;\n    pPVar7->storage_class = pPVar3->storage_class;\n    pPVar7->colorspace = CVar11;\n    pPVar7->alpha_trait = PVar10;\n    *(undefined4 *)&pPVar7->field_0xc = uVar9;\n    pPVar2 = (PixelInfo *)&pPVar7->fuzz;\n  } while (pPVar4 != (PixelInfo *)&color->index);" do (compound_statement "{\n    pPVar7 = pPVar2;\n    pPVar3 = pPVar4;\n    pPVar4 = (PixelInfo *)&pPVar3->fuzz;\n    CVar11 = pPVar3->colorspace;\n    PVar10 = pPVar3->alpha_trait;\n    uVar9 = *(undefined4 *)&pPVar3->field_0xc;\n    pPVar7->storage_class = pPVar3->storage_class;\n    pPVar7->colorspace = CVar11;\n    pPVar7->alpha_trait = PVar10;\n    *(undefined4 *)&pPVar7->field_0xc = uVar9;\n    pPVar2 = (PixelInfo *)&pPVar7->fuzz;\n  }" { (expression_statement "pPVar7 = pPVar2;" (assignment_expression "pPVar7 = pPVar2" identifier = identifier) ;) (expression_statement "pPVar3 = pPVar4;" (assignment_expression "pPVar3 = pPVar4" identifier = identifier) ;) (expression_statement "pPVar4 = (PixelInfo *)&pPVar3->fuzz;" (assignment_expression "pPVar4 = (PixelInfo *)&pPVar3->fuzz" identifier = (cast_expression "(PixelInfo *)&pPVar3->fuzz" ( (type_descriptor "PixelInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pPVar3->fuzz" & (field_expression "pPVar3->fuzz" identifier -> field_identifier)))) ;) (expression_statement "CVar11 = pPVar3->colorspace;" (assignment_expression "CVar11 = pPVar3->colorspace" identifier = (field_expression "pPVar3->colorspace" identifier -> field_identifier)) ;) (expression_statement "PVar10 = pPVar3->alpha_trait;" (assignment_expression "PVar10 = pPVar3->alpha_trait" identifier = (field_expression "pPVar3->alpha_trait" identifier -> field_identifier)) ;) (expression_statement "uVar9 = *(undefined4 *)&pPVar3->field_0xc;" (assignment_expression "uVar9 = *(undefined4 *)&pPVar3->field_0xc" identifier = (pointer_expression "*(undefined4 *)&pPVar3->field_0xc" * (cast_expression "(undefined4 *)&pPVar3->field_0xc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pPVar3->field_0xc" & (field_expression "pPVar3->field_0xc" identifier -> field_identifier))))) ;) (expression_statement "pPVar7->storage_class = pPVar3->storage_class;" (assignment_expression "pPVar7->storage_class = pPVar3->storage_class" (field_expression "pPVar7->storage_class" identifier -> field_identifier) = (field_expression "pPVar3->storage_class" identifier -> field_identifier)) ;) (expression_statement "pPVar7->colorspace = CVar11;" (assignment_expression "pPVar7->colorspace = CVar11" (field_expression "pPVar7->colorspace" identifier -> field_identifier) = identifier) ;) (expression_statement "pPVar7->alpha_trait = PVar10;" (assignment_expression "pPVar7->alpha_trait = PVar10" (field_expression "pPVar7->alpha_trait" identifier -> field_identifier) = identifier) ;) (expression_statement "*(undefined4 *)&pPVar7->field_0xc = uVar9;" (assignment_expression "*(undefined4 *)&pPVar7->field_0xc = uVar9" (pointer_expression "*(undefined4 *)&pPVar7->field_0xc" * (cast_expression "(undefined4 *)&pPVar7->field_0xc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pPVar7->field_0xc" & (field_expression "pPVar7->field_0xc" identifier -> field_identifier)))) = identifier) ;) (expression_statement "pPVar2 = (PixelInfo *)&pPVar7->fuzz;" (assignment_expression "pPVar2 = (PixelInfo *)&pPVar7->fuzz" identifier = (cast_expression "(PixelInfo *)&pPVar7->fuzz" ( (type_descriptor "PixelInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pPVar7->fuzz" & (field_expression "pPVar7->fuzz" identifier -> field_identifier)))) ;) }) while (parenthesized_expression "(pPVar4 != (PixelInfo *)&color->index)" ( (binary_expression "pPVar4 != (PixelInfo *)&color->index" identifier != (cast_expression "(PixelInfo *)&color->index" ( (type_descriptor "PixelInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&color->index" & (field_expression "color->index" identifier -> field_identifier)))) )) ;) (expression_statement "uVar9 = *(undefined4 *)((int)&pPVar3->fuzz + 4);" (assignment_expression "uVar9 = *(undefined4 *)((int)&pPVar3->fuzz + 4)" identifier = (pointer_expression "*(undefined4 *)((int)&pPVar3->fuzz + 4)" * (cast_expression "(undefined4 *)((int)&pPVar3->fuzz + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pPVar3->fuzz + 4)" ( (binary_expression "(int)&pPVar3->fuzz + 4" (cast_expression "(int)&pPVar3->fuzz" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pPVar3->fuzz" & (field_expression "pPVar3->fuzz" identifier -> field_identifier))) + number_literal) ))))) ;) (expression_statement "*(undefined4 *)&pPVar7->fuzz = *(undefined4 *)pPVar4;" (assignment_expression "*(undefined4 *)&pPVar7->fuzz = *(undefined4 *)pPVar4" (pointer_expression "*(undefined4 *)&pPVar7->fuzz" * (cast_expression "(undefined4 *)&pPVar7->fuzz" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pPVar7->fuzz" & (field_expression "pPVar7->fuzz" identifier -> field_identifier)))) = (pointer_expression "*(undefined4 *)pPVar4" * (cast_expression "(undefined4 *)pPVar4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined4 *)((int)&pPVar7->fuzz + 4) = uVar9;" (assignment_expression "*(undefined4 *)((int)&pPVar7->fuzz + 4) = uVar9" (pointer_expression "*(undefined4 *)((int)&pPVar7->fuzz + 4)" * (cast_expression "(undefined4 *)((int)&pPVar7->fuzz + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pPVar7->fuzz + 4)" ( (binary_expression "(int)&pPVar7->fuzz + 4" (cast_expression "(int)&pPVar7->fuzz" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pPVar7->fuzz" & (field_expression "pPVar7->fuzz" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (if_statement "if ((compliance == XPMCompliance) && (pixel.alpha_trait = UndefinedPixelTrait, 0x10 < pixel.depth)\n     ) {\n    pixel.depth = 0x10;\n  }" if (parenthesized_expression "((compliance == XPMCompliance) && (pixel.alpha_trait = UndefinedPixelTrait, 0x10 < pixel.depth)\n     )" ( (binary_expression "(compliance == XPMCompliance) && (pixel.alpha_trait = UndefinedPixelTrait, 0x10 < pixel.depth)" (parenthesized_expression "(compliance == XPMCompliance)" ( (binary_expression "compliance == XPMCompliance" identifier == identifier) )) && (parenthesized_expression "(pixel.alpha_trait = UndefinedPixelTrait, 0x10 < pixel.depth)" ( (comma_expression "pixel.alpha_trait = UndefinedPixelTrait, 0x10 < pixel.depth" (assignment_expression "pixel.alpha_trait = UndefinedPixelTrait" (field_expression "pixel.alpha_trait" identifier . field_identifier) = identifier) , (binary_expression "0x10 < pixel.depth" number_literal < (field_expression "pixel.depth" identifier . field_identifier))) ))) )) (compound_statement "{\n    pixel.depth = 0x10;\n  }" { (expression_statement "pixel.depth = 0x10;" (assignment_expression "pixel.depth = 0x10" (field_expression "pixel.depth" identifier . field_identifier) = number_literal) ;) })) (expression_statement "(*(code *)PTR_GetColorTuple_003a8fd4)(&pixel,compliance != CSSCompliance,name);" (call_expression "(*(code *)PTR_GetColorTuple_003a8fd4)(&pixel,compliance != CSSCompliance,name)" (parenthesized_expression "(*(code *)PTR_GetColorTuple_003a8fd4)" ( (pointer_expression "*(code *)PTR_GetColorTuple_003a8fd4" * (cast_expression "(code *)PTR_GetColorTuple_003a8fd4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&pixel,compliance != CSSCompliance,name)" ( (pointer_expression "&pixel" & identifier) , (binary_expression "compliance != CSSCompliance" identifier != identifier) , identifier ))) ;) (expression_statement "puVar1 = PTR_DAT_003a88cc;" (assignment_expression "puVar1 = PTR_DAT_003a88cc" identifier = identifier) ;) (if_statement "if (pixel.colorspace - sRGBColorspace < 2) {\n    if (color->alpha_trait == UndefinedPixelTrait) {\n      dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar13 = color->alpha;\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,exception);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar14 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);\n          MVar5 = MagickTrue;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    MVar5 = MagickTrue;\n  }\n  else {\n    MVar5 = MagickFalse;\n  }" if (parenthesized_expression "(pixel.colorspace - sRGBColorspace < 2)" ( (binary_expression "pixel.colorspace - sRGBColorspace < 2" (binary_expression "pixel.colorspace - sRGBColorspace" (field_expression "pixel.colorspace" identifier . field_identifier) - identifier) < number_literal) )) (compound_statement "{\n    if (color->alpha_trait == UndefinedPixelTrait) {\n      dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar13 = color->alpha;\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,exception);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar14 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);\n          MVar5 = MagickTrue;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    MVar5 = MagickTrue;\n  }" { (if_statement "if (color->alpha_trait == UndefinedPixelTrait) {\n      dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar13 = color->alpha;\n    }" if (parenthesized_expression "(color->alpha_trait == UndefinedPixelTrait)" ( (binary_expression "color->alpha_trait == UndefinedPixelTrait" (field_expression "color->alpha_trait" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }" { (expression_statement "dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);" (assignment_expression "dVar13 = *(double *)(PTR_LAB_003a88e0 + 0x1a58)" identifier = (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x1a58)" * (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x1a58)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_003a88e0 + 0x1a58)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1a58" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      dVar13 = color->alpha;\n    }" else (compound_statement "{\n      dVar13 = color->alpha;\n    }" { (expression_statement "dVar13 = color->alpha;" (assignment_expression "dVar13 = color->alpha" identifier = (field_expression "color->alpha" identifier -> field_identifier)) ;) }))) (expression_statement "(*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,exception);" (call_expression "(*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,exception)" (parenthesized_expression "(*(code *)PTR_GetColorInfo_003a9580)" ( (pointer_expression "*(code *)PTR_GetColorInfo_003a9580" * (cast_expression "(code *)PTR_GetColorInfo_003a9580" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,exception)" ( (binary_expression "PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c" identifier + number_literal) , identifier ))) ;) (expression_statement "(*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));" (call_expression "(*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc))" (parenthesized_expression "(*(code *)PTR_ResetLinkedListIterator_003a9538)" ( (pointer_expression "*(code *)PTR_ResetLinkedListIterator_003a9538" * (cast_expression "(code *)PTR_ResetLinkedListIterator_003a9538" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + -0x50fc))" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x50fc)" * (cast_expression "(undefined4 *)(puVar1 + -0x50fc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50fc)" ( (binary_expression "puVar1 + -0x50fc" identifier + number_literal) )))) ))) ;) (expression_statement "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));" (assignment_expression "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" identifier = (call_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" (parenthesized_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)" ( (pointer_expression "*(code *)PTR_GetNextValueInLinkedList_003a9310" * (cast_expression "(code *)PTR_GetNextValueInLinkedList_003a9310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + -0x50fc))" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x50fc)" * (cast_expression "(undefined4 *)(puVar1 + -0x50fc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50fc)" ( (binary_expression "puVar1 + -0x50fc" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar6 != 0) {\n      dVar14 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);\n          MVar5 = MagickTrue;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      dVar14 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);\n          MVar5 = MagickTrue;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }" { (expression_statement "dVar14 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);" (assignment_expression "dVar14 = *(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) ))))) ;) (do_statement "do {\n        if (((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);\n          MVar5 = MagickTrue;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);" do (compound_statement "{\n        if (((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);\n          MVar5 = MagickTrue;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      }" { (if_statement "if (((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);\n          MVar5 = MagickTrue;\n          goto LAB_00064ad8;\n        }" if (parenthesized_expression "(((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14))))" ( (binary_expression "((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))" (parenthesized_expression "((((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14))" ( (binary_expression "(((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)" (parenthesized_expression "(((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14))" ( (binary_expression "((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance) &&\n             (ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)" (parenthesized_expression "((compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance)" ( (binary_expression "(compliance & *(ComplianceType *)(iVar6 + 8)) != NoCompliance" (parenthesized_expression "(compliance & *(ComplianceType *)(iVar6 + 8))" ( (binary_expression "compliance & *(ComplianceType *)(iVar6 + 8)" identifier & (pointer_expression "*(ComplianceType *)(iVar6 + 8)" * (cast_expression "(ComplianceType *)(iVar6 + 8)" ( (type_descriptor "ComplianceType *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) ))))) )) != identifier) )) && (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14)" ( (binary_expression "ABS(*(double *)(iVar6 + 0x38) - color->red) < dVar14" (call_expression "ABS(*(double *)(iVar6 + 0x38) - color->red)" identifier (argument_list "(*(double *)(iVar6 + 0x38) - color->red)" ( (binary_expression "*(double *)(iVar6 + 0x38) - color->red" (pointer_expression "*(double *)(iVar6 + 0x38)" * (cast_expression "(double *)(iVar6 + 0x38)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x38)" ( (binary_expression "iVar6 + 0x38" identifier + number_literal) )))) - (field_expression "color->red" identifier -> field_identifier)) ))) < identifier) ))) )) && (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14)" ( (binary_expression "ABS(*(double *)(iVar6 + 0x40) - color->green) < dVar14" (call_expression "ABS(*(double *)(iVar6 + 0x40) - color->green)" identifier (argument_list "(*(double *)(iVar6 + 0x40) - color->green)" ( (binary_expression "*(double *)(iVar6 + 0x40) - color->green" (pointer_expression "*(double *)(iVar6 + 0x40)" * (cast_expression "(double *)(iVar6 + 0x40)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x40)" ( (binary_expression "iVar6 + 0x40" identifier + number_literal) )))) - (field_expression "color->green" identifier -> field_identifier)) ))) < identifier) ))) )) && (parenthesized_expression "((ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)))" ( (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14))" ( (binary_expression "ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)" (binary_expression "ABS(*(double *)(iVar6 + 0x48) - color->blue) < dVar14" (call_expression "ABS(*(double *)(iVar6 + 0x48) - color->blue)" identifier (argument_list "(*(double *)(iVar6 + 0x48) - color->blue)" ( (binary_expression "*(double *)(iVar6 + 0x48) - color->blue" (pointer_expression "*(double *)(iVar6 + 0x48)" * (cast_expression "(double *)(iVar6 + 0x48)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x48)" ( (binary_expression "iVar6 + 0x48" identifier + number_literal) )))) - (field_expression "color->blue" identifier -> field_identifier)) ))) < identifier) && (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14)" ( (binary_expression "ABS(*(double *)(iVar6 + 0x58) - dVar13) < dVar14" (call_expression "ABS(*(double *)(iVar6 + 0x58) - dVar13)" identifier (argument_list "(*(double *)(iVar6 + 0x58) - dVar13)" ( (binary_expression "*(double *)(iVar6 + 0x58) - dVar13" (pointer_expression "*(double *)(iVar6 + 0x58)" * (cast_expression "(double *)(iVar6 + 0x58)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x58)" ( (binary_expression "iVar6 + 0x58" identifier + number_literal) )))) - identifier) ))) < identifier) ))) )) ))) )) (compound_statement "{\n          (*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);\n          MVar5 = MagickTrue;\n          goto LAB_00064ad8;\n        }" { (expression_statement "(*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000);" (call_expression "(*(code *)PTR_CopyMagickString_003a983c)(name,*(undefined4 *)(iVar6 + 4),0x1000)" (parenthesized_expression "(*(code *)PTR_CopyMagickString_003a983c)" ( (pointer_expression "*(code *)PTR_CopyMagickString_003a983c" * (cast_expression "(code *)PTR_CopyMagickString_003a983c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name,*(undefined4 *)(iVar6 + 4),0x1000)" ( identifier , (pointer_expression "*(undefined4 *)(iVar6 + 4)" * (cast_expression "(undefined4 *)(iVar6 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 4)" ( (binary_expression "iVar6 + 4" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "MVar5 = MagickTrue;" (assignment_expression "MVar5 = MagickTrue" identifier = identifier) ;) (goto_statement "goto LAB_00064ad8;" goto statement_identifier ;) })) (expression_statement "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));" (assignment_expression "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" identifier = (call_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" (parenthesized_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)" ( (pointer_expression "*(code *)PTR_GetNextValueInLinkedList_003a9310" * (cast_expression "(code *)PTR_GetNextValueInLinkedList_003a9310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + -0x50fc))" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x50fc)" * (cast_expression "(undefined4 *)(puVar1 + -0x50fc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50fc)" ( (binary_expression "puVar1 + -0x50fc" identifier + number_literal) )))) )))) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) })) (expression_statement "MVar5 = MagickTrue;" (assignment_expression "MVar5 = MagickTrue" identifier = identifier) ;) }) (else_clause "else {\n    MVar5 = MagickFalse;\n  }" else (compound_statement "{\n    MVar5 = MagickFalse;\n  }" { (expression_statement "MVar5 = MagickFalse;" (assignment_expression "MVar5 = MagickFalse" identifier = identifier) ;) }))) (labeled_statement "LAB_00064ad8:\n  if (iVar8 != *(int *)puVar12) {\n    puVar12 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar13 = (double)(**(code **)(puVar12 + 0x344204))(0);\n    dVar14 = (double)(**(code **)(puVar12 + 0x344204))(0,iVar8);\n    return (int)dVar13 - (int)dVar14;\n  }" statement_identifier : (if_statement "if (iVar8 != *(int *)puVar12) {\n    puVar12 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar13 = (double)(**(code **)(puVar12 + 0x344204))(0);\n    dVar14 = (double)(**(code **)(puVar12 + 0x344204))(0,iVar8);\n    return (int)dVar13 - (int)dVar14;\n  }" if (parenthesized_expression "(iVar8 != *(int *)puVar12)" ( (binary_expression "iVar8 != *(int *)puVar12" identifier != (pointer_expression "*(int *)puVar12" * (cast_expression "(int *)puVar12" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar12 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar13 = (double)(**(code **)(puVar12 + 0x344204))(0);\n    dVar14 = (double)(**(code **)(puVar12 + 0x344204))(0,iVar8);\n    return (int)dVar13 - (int)dVar14;\n  }" { (expression_statement "puVar12 = PTR___stack_chk_fail_003a9064;" (assignment_expression "puVar12 = PTR___stack_chk_fail_003a9064" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_003a9064)();" (call_expression "(*(code *)PTR___stack_chk_fail_003a9064)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003a9064)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_003a9064" * (cast_expression "(code *)PTR___stack_chk_fail_003a9064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "dVar13 = (double)(**(code **)(puVar12 + 0x344204))(0);" (assignment_expression "dVar13 = (double)(**(code **)(puVar12 + 0x344204))(0)" identifier = (cast_expression "(double)(**(code **)(puVar12 + 0x344204))(0)" ( (type_descriptor "double" primitive_type) ) (call_expression "(**(code **)(puVar12 + 0x344204))(0)" (parenthesized_expression "(**(code **)(puVar12 + 0x344204))" ( (pointer_expression "**(code **)(puVar12 + 0x344204)" * (pointer_expression "*(code **)(puVar12 + 0x344204)" * (cast_expression "(code **)(puVar12 + 0x344204)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x344204)" ( (binary_expression "puVar12 + 0x344204" identifier + number_literal) ))))) )) (argument_list "(0)" ( number_literal ))))) ;) (expression_statement "dVar14 = (double)(**(code **)(puVar12 + 0x344204))(0,iVar8);" (assignment_expression "dVar14 = (double)(**(code **)(puVar12 + 0x344204))(0,iVar8)" identifier = (cast_expression "(double)(**(code **)(puVar12 + 0x344204))(0,iVar8)" ( (type_descriptor "double" primitive_type) ) (call_expression "(**(code **)(puVar12 + 0x344204))(0,iVar8)" (parenthesized_expression "(**(code **)(puVar12 + 0x344204))" ( (pointer_expression "**(code **)(puVar12 + 0x344204)" * (pointer_expression "*(code **)(puVar12 + 0x344204)" * (cast_expression "(code **)(puVar12 + 0x344204)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x344204)" ( (binary_expression "puVar12 + 0x344204" identifier + number_literal) ))))) )) (argument_list "(0,iVar8)" ( number_literal , identifier ))))) ;) (return_statement "return (int)dVar13 - (int)dVar14;" return (binary_expression "(int)dVar13 - (int)dVar14" (cast_expression "(int)dVar13" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)dVar14" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (return_statement "return MVar5;" return identifier ;) })))
(translation_unit "int QueryColorname(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,\n                  undefined4 param_5)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined *puVar9;\n  double dVar10;\n  double dVar11;\n  int local_98 [23];\n  int local_3c;\n  \n  puVar9 = PTR___stack_chk_guard_003a9230;\n  local_3c = *(int *)PTR___stack_chk_guard_003a9230;\n  *param_4 = 0;\n  piVar4 = param_2;\n  piVar2 = local_98;\n  do {\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  } while (piVar4 != param_2 + 0x14);\n  iVar6 = piVar3[5];\n  piVar5[4] = *piVar4;\n  piVar5[5] = iVar6;\n  if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {\n    local_98[6] = 0x10;\n  }\n  (*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);\n  puVar1 = PTR_DAT_003a88cc;\n  if (local_98[1] - 0x17U < 2) {\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }\n  else {\n    iVar6 = 0;\n  }\nLAB_00064ad8:\n  if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }\n  return iVar6;\n}\n\n" (function_definition "int QueryColorname(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,\n                  undefined4 param_5)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined *puVar9;\n  double dVar10;\n  double dVar11;\n  int local_98 [23];\n  int local_3c;\n  \n  puVar9 = PTR___stack_chk_guard_003a9230;\n  local_3c = *(int *)PTR___stack_chk_guard_003a9230;\n  *param_4 = 0;\n  piVar4 = param_2;\n  piVar2 = local_98;\n  do {\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  } while (piVar4 != param_2 + 0x14);\n  iVar6 = piVar3[5];\n  piVar5[4] = *piVar4;\n  piVar5[5] = iVar6;\n  if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {\n    local_98[6] = 0x10;\n  }\n  (*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);\n  puVar1 = PTR_DAT_003a88cc;\n  if (local_98[1] - 0x17U < 2) {\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }\n  else {\n    iVar6 = 0;\n  }\nLAB_00064ad8:\n  if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }\n  return iVar6;\n}" primitive_type (function_declarator "QueryColorname(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,\n                  undefined4 param_5)" identifier (parameter_list "(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,\n                  undefined4 param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined1 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined *puVar9;\n  double dVar10;\n  double dVar11;\n  int local_98 [23];\n  int local_3c;\n  \n  puVar9 = PTR___stack_chk_guard_003a9230;\n  local_3c = *(int *)PTR___stack_chk_guard_003a9230;\n  *param_4 = 0;\n  piVar4 = param_2;\n  piVar2 = local_98;\n  do {\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  } while (piVar4 != param_2 + 0x14);\n  iVar6 = piVar3[5];\n  piVar5[4] = *piVar4;\n  piVar5[5] = iVar6;\n  if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {\n    local_98[6] = 0x10;\n  }\n  (*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);\n  puVar1 = PTR_DAT_003a88cc;\n  if (local_98[1] - 0x17U < 2) {\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }\n  else {\n    iVar6 = 0;\n  }\nLAB_00064ad8:\n  if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }\n  return iVar6;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "double dVar10;" primitive_type identifier ;) (declaration "double dVar11;" primitive_type identifier ;) (declaration "int local_98 [23];" primitive_type (array_declarator "local_98 [23]" identifier [ number_literal ]) ;) (declaration "int local_3c;" primitive_type identifier ;) (expression_statement "puVar9 = PTR___stack_chk_guard_003a9230;" (assignment_expression "puVar9 = PTR___stack_chk_guard_003a9230" identifier = identifier) ;) (expression_statement "local_3c = *(int *)PTR___stack_chk_guard_003a9230;" (assignment_expression "local_3c = *(int *)PTR___stack_chk_guard_003a9230" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_003a9230" * (cast_expression "(int *)PTR___stack_chk_guard_003a9230" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "piVar4 = param_2;" (assignment_expression "piVar4 = param_2" identifier = identifier) ;) (expression_statement "piVar2 = local_98;" (assignment_expression "piVar2 = local_98" identifier = identifier) ;) (do_statement "do {\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  } while (piVar4 != param_2 + 0x14);" do (compound_statement "{\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  }" { (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" identifier = identifier) ;) (expression_statement "piVar3 = piVar4;" (assignment_expression "piVar3 = piVar4" identifier = identifier) ;) (expression_statement "piVar4 = piVar3 + 4;" (assignment_expression "piVar4 = piVar3 + 4" identifier = (binary_expression "piVar3 + 4" identifier + number_literal)) ;) (expression_statement "iVar8 = piVar3[1];" (assignment_expression "iVar8 = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = piVar3[2];" (assignment_expression "iVar7 = piVar3[2]" identifier = (subscript_expression "piVar3[2]" identifier [ number_literal ])) ;) (expression_statement "iVar6 = piVar3[3];" (assignment_expression "iVar6 = piVar3[3]" identifier = (subscript_expression "piVar3[3]" identifier [ number_literal ])) ;) (expression_statement "*piVar5 = *piVar3;" (assignment_expression "*piVar5 = *piVar3" (pointer_expression "*piVar5" * identifier) = (pointer_expression "*piVar3" * identifier)) ;) (expression_statement "piVar5[1] = iVar8;" (assignment_expression "piVar5[1] = iVar8" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[2] = iVar7;" (assignment_expression "piVar5[2] = iVar7" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5[3] = iVar6;" (assignment_expression "piVar5[3] = iVar6" (subscript_expression "piVar5[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2 = piVar5 + 4;" (assignment_expression "piVar2 = piVar5 + 4" identifier = (binary_expression "piVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar4 != param_2 + 0x14)" ( (binary_expression "piVar4 != param_2 + 0x14" identifier != (binary_expression "param_2 + 0x14" identifier + number_literal)) )) ;) (expression_statement "iVar6 = piVar3[5];" (assignment_expression "iVar6 = piVar3[5]" identifier = (subscript_expression "piVar3[5]" identifier [ number_literal ])) ;) (expression_statement "piVar5[4] = *piVar4;" (assignment_expression "piVar5[4] = *piVar4" (subscript_expression "piVar5[4]" identifier [ number_literal ]) = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar5[5] = iVar6;" (assignment_expression "piVar5[5] = iVar6" (subscript_expression "piVar5[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {\n    local_98[6] = 0x10;\n  }" if (parenthesized_expression "((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6]))" ( (binary_expression "(param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])" (parenthesized_expression "(param_3 == 4)" ( (binary_expression "param_3 == 4" identifier == number_literal) )) && (parenthesized_expression "(local_98[2] = 0, 0x10 < (uint)local_98[6])" ( (comma_expression "local_98[2] = 0, 0x10 < (uint)local_98[6]" (assignment_expression "local_98[2] = 0" (subscript_expression "local_98[2]" identifier [ number_literal ]) = number_literal) , (binary_expression "0x10 < (uint)local_98[6]" number_literal < (cast_expression "(uint)local_98[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_98[6]" identifier [ number_literal ])))) ))) )) (compound_statement "{\n    local_98[6] = 0x10;\n  }" { (expression_statement "local_98[6] = 0x10;" (assignment_expression "local_98[6] = 0x10" (subscript_expression "local_98[6]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "(*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);" (call_expression "(*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4)" (parenthesized_expression "(*(code *)PTR_GetColorTuple_003a8fd4)" ( (pointer_expression "*(code *)PTR_GetColorTuple_003a8fd4" * (cast_expression "(code *)PTR_GetColorTuple_003a8fd4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_98,param_3 != 1,param_4)" ( identifier , (binary_expression "param_3 != 1" identifier != number_literal) , identifier ))) ;) (expression_statement "puVar1 = PTR_DAT_003a88cc;" (assignment_expression "puVar1 = PTR_DAT_003a88cc" identifier = identifier) ;) (if_statement "if (local_98[1] - 0x17U < 2) {\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }\n  else {\n    iVar6 = 0;\n  }" if (parenthesized_expression "(local_98[1] - 0x17U < 2)" ( (binary_expression "local_98[1] - 0x17U < 2" (binary_expression "local_98[1] - 0x17U" (subscript_expression "local_98[1]" identifier [ number_literal ]) - number_literal) < number_literal) )) (compound_statement "{\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }" { (if_statement "if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }" if (parenthesized_expression "(param_2[2] == 0)" ( (binary_expression "param_2[2] == 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }" { (expression_statement "dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);" (assignment_expression "dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58)" identifier = (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x1a58)" * (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x1a58)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_003a88e0 + 0x1a58)" ( (binary_expression "PTR_LAB_003a88e0 + 0x1a58" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }" else (compound_statement "{\n      dVar10 = *(double *)(param_2 + 0x12);\n    }" { (expression_statement "dVar10 = *(double *)(param_2 + 0x12);" (assignment_expression "dVar10 = *(double *)(param_2 + 0x12)" identifier = (pointer_expression "*(double *)(param_2 + 0x12)" * (cast_expression "(double *)(param_2 + 0x12)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x12)" ( (binary_expression "param_2 + 0x12" identifier + number_literal) ))))) ;) }))) (expression_statement "(*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);" (call_expression "(*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5)" (parenthesized_expression "(*(code *)PTR_GetColorInfo_003a9580)" ( (pointer_expression "*(code *)PTR_GetColorInfo_003a9580" * (cast_expression "(code *)PTR_GetColorInfo_003a9580" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5)" ( (binary_expression "PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c" identifier + number_literal) , identifier ))) ;) (expression_statement "(*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));" (call_expression "(*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc))" (parenthesized_expression "(*(code *)PTR_ResetLinkedListIterator_003a9538)" ( (pointer_expression "*(code *)PTR_ResetLinkedListIterator_003a9538" * (cast_expression "(code *)PTR_ResetLinkedListIterator_003a9538" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + -0x50fc))" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x50fc)" * (cast_expression "(undefined4 *)(puVar1 + -0x50fc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50fc)" ( (binary_expression "puVar1 + -0x50fc" identifier + number_literal) )))) ))) ;) (expression_statement "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));" (assignment_expression "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" identifier = (call_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" (parenthesized_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)" ( (pointer_expression "*(code *)PTR_GetNextValueInLinkedList_003a9310" * (cast_expression "(code *)PTR_GetNextValueInLinkedList_003a9310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + -0x50fc))" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x50fc)" * (cast_expression "(undefined4 *)(puVar1 + -0x50fc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50fc)" ( (binary_expression "puVar1 + -0x50fc" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }" { (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) ))))) ;) (do_statement "do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);" do (compound_statement "{\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      }" { (if_statement "if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }" if (parenthesized_expression "(((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11))))" ( (binary_expression "((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))" (parenthesized_expression "((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11))" ( (binary_expression "(((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)" (parenthesized_expression "(((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11))" ( (binary_expression "((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)" (parenthesized_expression "((param_3 & *(uint *)(iVar6 + 8)) != 0)" ( (binary_expression "(param_3 & *(uint *)(iVar6 + 8)) != 0" (parenthesized_expression "(param_3 & *(uint *)(iVar6 + 8))" ( (binary_expression "param_3 & *(uint *)(iVar6 + 8)" identifier & (pointer_expression "*(uint *)(iVar6 + 8)" * (cast_expression "(uint *)(iVar6 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 8)" ( (binary_expression "iVar6 + 8" identifier + number_literal) ))))) )) != number_literal) )) && (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)" ( (binary_expression "ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11" (call_expression "ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10))" identifier (argument_list "(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10))" ( (binary_expression "*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)" (pointer_expression "*(double *)(iVar6 + 0x38)" * (cast_expression "(double *)(iVar6 + 0x38)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x38)" ( (binary_expression "iVar6 + 0x38" identifier + number_literal) )))) - (pointer_expression "*(double *)(param_2 + 10)" * (cast_expression "(double *)(param_2 + 10)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 10)" ( (binary_expression "param_2 + 10" identifier + number_literal) ))))) ))) < identifier) ))) )) && (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)" ( (binary_expression "ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11" (call_expression "ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc))" identifier (argument_list "(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc))" ( (binary_expression "*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)" (pointer_expression "*(double *)(iVar6 + 0x40)" * (cast_expression "(double *)(iVar6 + 0x40)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x40)" ( (binary_expression "iVar6 + 0x40" identifier + number_literal) )))) - (pointer_expression "*(double *)(param_2 + 0xc)" * (cast_expression "(double *)(param_2 + 0xc)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ))) < identifier) ))) )) && (parenthesized_expression "((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))" ( (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11))" ( (binary_expression "ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)" (binary_expression "ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11" (call_expression "ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe))" identifier (argument_list "(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe))" ( (binary_expression "*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)" (pointer_expression "*(double *)(iVar6 + 0x48)" * (cast_expression "(double *)(iVar6 + 0x48)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x48)" ( (binary_expression "iVar6 + 0x48" identifier + number_literal) )))) - (pointer_expression "*(double *)(param_2 + 0xe)" * (cast_expression "(double *)(param_2 + 0xe)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xe)" ( (binary_expression "param_2 + 0xe" identifier + number_literal) ))))) ))) < identifier) && (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)" ( (binary_expression "ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11" (call_expression "ABS(*(double *)(iVar6 + 0x58) - dVar10)" identifier (argument_list "(*(double *)(iVar6 + 0x58) - dVar10)" ( (binary_expression "*(double *)(iVar6 + 0x58) - dVar10" (pointer_expression "*(double *)(iVar6 + 0x58)" * (cast_expression "(double *)(iVar6 + 0x58)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x58)" ( (binary_expression "iVar6 + 0x58" identifier + number_literal) )))) - identifier) ))) < identifier) ))) )) ))) )) (compound_statement "{\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }" { (expression_statement "(*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);" (call_expression "(*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000)" (parenthesized_expression "(*(code *)PTR_CopyMagickString_003a983c)" ( (pointer_expression "*(code *)PTR_CopyMagickString_003a983c" * (cast_expression "(code *)PTR_CopyMagickString_003a983c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,*(undefined4 *)(iVar6 + 4),0x1000)" ( identifier , (pointer_expression "*(undefined4 *)(iVar6 + 4)" * (cast_expression "(undefined4 *)(iVar6 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 4)" ( (binary_expression "iVar6 + 4" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00064ad8;" goto statement_identifier ;) })) (expression_statement "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));" (assignment_expression "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" identifier = (call_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" (parenthesized_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)" ( (pointer_expression "*(code *)PTR_GetNextValueInLinkedList_003a9310" * (cast_expression "(code *)PTR_GetNextValueInLinkedList_003a9310" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(puVar1 + -0x50fc))" ( (pointer_expression "*(undefined4 *)(puVar1 + -0x50fc)" * (cast_expression "(undefined4 *)(puVar1 + -0x50fc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50fc)" ( (binary_expression "puVar1 + -0x50fc" identifier + number_literal) )))) )))) ;) }) while (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) ;) })) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) }) (else_clause "else {\n    iVar6 = 0;\n  }" else (compound_statement "{\n    iVar6 = 0;\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }))) (labeled_statement "LAB_00064ad8:\n  if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }" statement_identifier : (if_statement "if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }" if (parenthesized_expression "(local_3c != *(int *)puVar9)" ( (binary_expression "local_3c != *(int *)puVar9" identifier != (pointer_expression "*(int *)puVar9" * (cast_expression "(int *)puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }" { (expression_statement "iVar6 = local_3c;" (assignment_expression "iVar6 = local_3c" identifier = identifier) ;) (expression_statement "puVar9 = PTR___stack_chk_fail_003a9064;" (assignment_expression "puVar9 = PTR___stack_chk_fail_003a9064" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_003a9064)();" (call_expression "(*(code *)PTR___stack_chk_fail_003a9064)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003a9064)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_003a9064" * (cast_expression "(code *)PTR___stack_chk_fail_003a9064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);" (assignment_expression "dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0)" identifier = (cast_expression "(double)(**(code **)(puVar9 + 0x344204))(0)" ( (type_descriptor "double" primitive_type) ) (call_expression "(**(code **)(puVar9 + 0x344204))(0)" (parenthesized_expression "(**(code **)(puVar9 + 0x344204))" ( (pointer_expression "**(code **)(puVar9 + 0x344204)" * (pointer_expression "*(code **)(puVar9 + 0x344204)" * (cast_expression "(code **)(puVar9 + 0x344204)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x344204)" ( (binary_expression "puVar9 + 0x344204" identifier + number_literal) ))))) )) (argument_list "(0)" ( number_literal ))))) ;) (expression_statement "dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);" (assignment_expression "dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6)" identifier = (cast_expression "(double)(**(code **)(puVar9 + 0x344204))(0,iVar6)" ( (type_descriptor "double" primitive_type) ) (call_expression "(**(code **)(puVar9 + 0x344204))(0,iVar6)" (parenthesized_expression "(**(code **)(puVar9 + 0x344204))" ( (pointer_expression "**(code **)(puVar9 + 0x344204)" * (pointer_expression "*(code **)(puVar9 + 0x344204)" * (cast_expression "(code **)(puVar9 + 0x344204)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x344204)" ( (binary_expression "puVar9 + 0x344204" identifier + number_literal) ))))) )) (argument_list "(0,iVar6)" ( number_literal , identifier ))))) ;) (return_statement "return (int)dVar10 - (int)dVar11;" return (binary_expression "(int)dVar10 - (int)dVar11" (cast_expression "(int)dVar10" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)dVar11" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }))) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) , (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT != LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - LIT) < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) != LIT) )) && (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) < IDENT) ))) )) && (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) < IDENT) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) < IDENT) && (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) ))) < IDENT) ))) )) ))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( LIT , IDENT ))))) ;) (return_statement return (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int QueryColorname(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,\n                  undefined4 param_5)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined *puVar9;\n  double dVar10;\n  double dVar11;\n  int local_98 [23];\n  int local_3c;\n  \n  puVar9 = PTR___stack_chk_guard_003a9230;\n  local_3c = *(int *)PTR___stack_chk_guard_003a9230;\n  *param_4 = 0;\n  piVar4 = param_2;\n  piVar2 = local_98;\n  do {\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  } while (piVar4 != param_2 + 0x14);\n  iVar6 = piVar3[5];\n  piVar5[4] = *piVar4;\n  piVar5[5] = iVar6;\n  if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {\n    local_98[6] = 0x10;\n  }\n  (*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);\n  puVar1 = PTR_DAT_003a88cc;\n  if (local_98[1] - 0x17U < 2) {\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }\n  else {\n    iVar6 = 0;\n  }\nLAB_00064ad8:\n  if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }\n  return iVar6;\n}" (primitive_type "int") (function_declarator "QueryColorname(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,\n                  undefined4 param_5)" (identifier "QueryColorname") (parameter_list "(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,\n                  undefined4 param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "undefined1 *param_4" (type_identifier "undefined1") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int *piVar3;\n  int *piVar4;\n  int *piVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  undefined *puVar9;\n  double dVar10;\n  double dVar11;\n  int local_98 [23];\n  int local_3c;\n  \n  puVar9 = PTR___stack_chk_guard_003a9230;\n  local_3c = *(int *)PTR___stack_chk_guard_003a9230;\n  *param_4 = 0;\n  piVar4 = param_2;\n  piVar2 = local_98;\n  do {\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  } while (piVar4 != param_2 + 0x14);\n  iVar6 = piVar3[5];\n  piVar5[4] = *piVar4;\n  piVar5[5] = iVar6;\n  if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {\n    local_98[6] = 0x10;\n  }\n  (*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);\n  puVar1 = PTR_DAT_003a88cc;\n  if (local_98[1] - 0x17U < 2) {\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }\n  else {\n    iVar6 = 0;\n  }\nLAB_00064ad8:\n  if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }\n  return iVar6;\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 *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "double dVar10;" (primitive_type "double") (identifier "dVar10") (; ";")) (declaration "double dVar11;" (primitive_type "double") (identifier "dVar11") (; ";")) (declaration "int local_98 [23];" (primitive_type "int") (array_declarator "local_98 [23]" (identifier "local_98") ([ "[") (number_literal "23") (] "]")) (; ";")) (declaration "int local_3c;" (primitive_type "int") (identifier "local_3c") (; ";")) (expression_statement "puVar9 = PTR___stack_chk_guard_003a9230;" (assignment_expression "puVar9 = PTR___stack_chk_guard_003a9230" (identifier "puVar9") (= "=") (identifier "PTR___stack_chk_guard_003a9230")) (; ";")) (expression_statement "local_3c = *(int *)PTR___stack_chk_guard_003a9230;" (assignment_expression "local_3c = *(int *)PTR___stack_chk_guard_003a9230" (identifier "local_3c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_003a9230" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_003a9230" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_003a9230")))) (; ";")) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar4 = param_2;" (assignment_expression "piVar4 = param_2" (identifier "piVar4") (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar2 = local_98;" (assignment_expression "piVar2 = local_98" (identifier "piVar2") (= "=") (identifier "local_98")) (; ";")) (do_statement "do {\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  } while (piVar4 != param_2 + 0x14);" (do "do") (compound_statement "{\n    piVar5 = piVar2;\n    piVar3 = piVar4;\n    piVar4 = piVar3 + 4;\n    iVar8 = piVar3[1];\n    iVar7 = piVar3[2];\n    iVar6 = piVar3[3];\n    *piVar5 = *piVar3;\n    piVar5[1] = iVar8;\n    piVar5[2] = iVar7;\n    piVar5[3] = iVar6;\n    piVar2 = piVar5 + 4;\n  }" ({ "{") (expression_statement "piVar5 = piVar2;" (assignment_expression "piVar5 = piVar2" (identifier "piVar5") (= "=") (identifier "piVar2")) (; ";")) (expression_statement "piVar3 = piVar4;" (assignment_expression "piVar3 = piVar4" (identifier "piVar3") (= "=") (identifier "piVar4")) (; ";")) (expression_statement "piVar4 = piVar3 + 4;" (assignment_expression "piVar4 = piVar3 + 4" (identifier "piVar4") (= "=") (binary_expression "piVar3 + 4" (identifier "piVar3") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "iVar8 = piVar3[1];" (assignment_expression "iVar8 = piVar3[1]" (identifier "iVar8") (= "=") (subscript_expression "piVar3[1]" (identifier "piVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "iVar7 = piVar3[2];" (assignment_expression "iVar7 = piVar3[2]" (identifier "iVar7") (= "=") (subscript_expression "piVar3[2]" (identifier "piVar3") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar6 = piVar3[3];" (assignment_expression "iVar6 = piVar3[3]" (identifier "iVar6") (= "=") (subscript_expression "piVar3[3]" (identifier "piVar3") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "*piVar5 = *piVar3;" (assignment_expression "*piVar5 = *piVar3" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (expression_statement "piVar5[1] = iVar8;" (assignment_expression "piVar5[1] = iVar8" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "piVar5[2] = iVar7;" (assignment_expression "piVar5[2] = iVar7" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar7")) (; ";")) (expression_statement "piVar5[3] = iVar6;" (assignment_expression "piVar5[3] = iVar6" (subscript_expression "piVar5[3]" (identifier "piVar5") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar6")) (; ";")) (expression_statement "piVar2 = piVar5 + 4;" (assignment_expression "piVar2 = piVar5 + 4" (identifier "piVar2") (= "=") (binary_expression "piVar5 + 4" (identifier "piVar5") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar4 != param_2 + 0x14)" (( "(") (binary_expression "piVar4 != param_2 + 0x14" (identifier "piVar4") (!= "!=") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14"))) () ")")) (; ";")) (expression_statement "iVar6 = piVar3[5];" (assignment_expression "iVar6 = piVar3[5]" (identifier "iVar6") (= "=") (subscript_expression "piVar3[5]" (identifier "piVar3") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "piVar5[4] = *piVar4;" (assignment_expression "piVar5[4] = *piVar4" (subscript_expression "piVar5[4]" (identifier "piVar5") ([ "[") (number_literal "4") (] "]")) (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "piVar5[5] = iVar6;" (assignment_expression "piVar5[5] = iVar6" (subscript_expression "piVar5[5]" (identifier "piVar5") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "iVar6")) (; ";")) (if_statement "if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {\n    local_98[6] = 0x10;\n  }" (if "if") (parenthesized_expression "((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6]))" (( "(") (binary_expression "(param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])" (parenthesized_expression "(param_3 == 4)" (( "(") (binary_expression "param_3 == 4" (identifier "param_3") (== "==") (number_literal "4")) () ")")) (&& "&&") (parenthesized_expression "(local_98[2] = 0, 0x10 < (uint)local_98[6])" (( "(") (comma_expression "local_98[2] = 0, 0x10 < (uint)local_98[6]" (assignment_expression "local_98[2] = 0" (subscript_expression "local_98[2]" (identifier "local_98") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (, ",") (binary_expression "0x10 < (uint)local_98[6]" (number_literal "0x10") (< "<") (cast_expression "(uint)local_98[6]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "local_98[6]" (identifier "local_98") ([ "[") (number_literal "6") (] "]"))))) () ")"))) () ")")) (compound_statement "{\n    local_98[6] = 0x10;\n  }" ({ "{") (expression_statement "local_98[6] = 0x10;" (assignment_expression "local_98[6] = 0x10" (subscript_expression "local_98[6]" (identifier "local_98") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0x10")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);" (call_expression "(*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4)" (parenthesized_expression "(*(code *)PTR_GetColorTuple_003a8fd4)" (( "(") (pointer_expression "*(code *)PTR_GetColorTuple_003a8fd4" (* "*") (cast_expression "(code *)PTR_GetColorTuple_003a8fd4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_GetColorTuple_003a8fd4"))) () ")")) (argument_list "(local_98,param_3 != 1,param_4)" (( "(") (identifier "local_98") (, ",") (binary_expression "param_3 != 1" (identifier "param_3") (!= "!=") (number_literal "1")) (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "puVar1 = PTR_DAT_003a88cc;" (assignment_expression "puVar1 = PTR_DAT_003a88cc" (identifier "puVar1") (= "=") (identifier "PTR_DAT_003a88cc")) (; ";")) (if_statement "if (local_98[1] - 0x17U < 2) {\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }\n  else {\n    iVar6 = 0;\n  }" (if "if") (parenthesized_expression "(local_98[1] - 0x17U < 2)" (( "(") (binary_expression "local_98[1] - 0x17U < 2" (binary_expression "local_98[1] - 0x17U" (subscript_expression "local_98[1]" (identifier "local_98") ([ "[") (number_literal "1") (] "]")) (- "-") (number_literal "0x17U")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }\n    (*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);\n    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));\n    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n    if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }\n    iVar6 = 1;\n  }" ({ "{") (if_statement "if (param_2[2] == 0) {\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }\n    else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }" (if "if") (parenthesized_expression "(param_2[2] == 0)" (( "(") (binary_expression "param_2[2] == 0" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);\n    }" ({ "{") (expression_statement "dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);" (assignment_expression "dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58)" (identifier "dVar10") (= "=") (pointer_expression "*(double *)(PTR_LAB_003a88e0 + 0x1a58)" (* "*") (cast_expression "(double *)(PTR_LAB_003a88e0 + 0x1a58)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_003a88e0 + 0x1a58)" (( "(") (binary_expression "PTR_LAB_003a88e0 + 0x1a58" (identifier "PTR_LAB_003a88e0") (+ "+") (number_literal "0x1a58")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      dVar10 = *(double *)(param_2 + 0x12);\n    }" (else "else") (compound_statement "{\n      dVar10 = *(double *)(param_2 + 0x12);\n    }" ({ "{") (expression_statement "dVar10 = *(double *)(param_2 + 0x12);" (assignment_expression "dVar10 = *(double *)(param_2 + 0x12)" (identifier "dVar10") (= "=") (pointer_expression "*(double *)(param_2 + 0x12)" (* "*") (cast_expression "(double *)(param_2 + 0x12)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x12)" (( "(") (binary_expression "param_2 + 0x12" (identifier "param_2") (+ "+") (number_literal "0x12")) () ")"))))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);" (call_expression "(*(code *)PTR_GetColorInfo_003a9580)\n              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5)" (parenthesized_expression "(*(code *)PTR_GetColorInfo_003a9580)" (( "(") (pointer_expression "*(code *)PTR_GetColorInfo_003a9580" (* "*") (cast_expression "(code *)PTR_GetColorInfo_003a9580" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_GetColorInfo_003a9580"))) () ")")) (argument_list "(PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5)" (( "(") (binary_expression "PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c" (identifier "PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8") (+ "+") (number_literal "0x6c9c")) (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));" (call_expression "(*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc))" (parenthesized_expression "(*(code *)PTR_ResetLinkedListIterator_003a9538)" (( "(") (pointer_expression "*(code *)PTR_ResetLinkedListIterator_003a9538" (* "*") (cast_expression "(code *)PTR_ResetLinkedListIterator_003a9538" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ResetLinkedListIterator_003a9538"))) () ")")) (argument_list "(*(undefined4 *)(puVar1 + -0x50fc))" (( "(") (pointer_expression "*(undefined4 *)(puVar1 + -0x50fc)" (* "*") (cast_expression "(undefined4 *)(puVar1 + -0x50fc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x50fc)" (( "(") (binary_expression "puVar1 + -0x50fc" (identifier "puVar1") (+ "+") (number_literal "-0x50fc")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));" (assignment_expression "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" (parenthesized_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)" (( "(") (pointer_expression "*(code *)PTR_GetNextValueInLinkedList_003a9310" (* "*") (cast_expression "(code *)PTR_GetNextValueInLinkedList_003a9310" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_GetNextValueInLinkedList_003a9310"))) () ")")) (argument_list "(*(undefined4 *)(puVar1 + -0x50fc))" (( "(") (pointer_expression "*(undefined4 *)(puVar1 + -0x50fc)" (* "*") (cast_expression "(undefined4 *)(puVar1 + -0x50fc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x50fc)" (( "(") (binary_expression "puVar1 + -0x50fc" (identifier "puVar1") (+ "+") (number_literal "-0x50fc")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar6 != 0) {\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);\n      do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);\n    }" ({ "{") (expression_statement "dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);" (assignment_expression "dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8)" (identifier "dVar11") (= "=") (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")) () ")"))))) (; ";")) (do_statement "do {\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      } while (iVar6 != 0);" (do "do") (compound_statement "{\n        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }\n        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));\n      }" ({ "{") (if_statement "if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }" (if "if") (parenthesized_expression "(((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11))))" (( "(") (binary_expression "((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&\n           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))" (parenthesized_expression "((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11))" (( "(") (binary_expression "(((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&\n            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)" (parenthesized_expression "(((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11))" (( "(") (binary_expression "((param_3 & *(uint *)(iVar6 + 8)) != 0) &&\n             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)" (parenthesized_expression "((param_3 & *(uint *)(iVar6 + 8)) != 0)" (( "(") (binary_expression "(param_3 & *(uint *)(iVar6 + 8)) != 0" (parenthesized_expression "(param_3 & *(uint *)(iVar6 + 8))" (( "(") (binary_expression "param_3 & *(uint *)(iVar6 + 8)" (identifier "param_3") (& "&") (pointer_expression "*(uint *)(iVar6 + 8)" (* "*") (cast_expression "(uint *)(iVar6 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 8)" (( "(") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8")) () ")"))))) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)" (( "(") (binary_expression "ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11" (call_expression "ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10))" (identifier "ABS") (argument_list "(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10))" (( "(") (binary_expression "*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)" (pointer_expression "*(double *)(iVar6 + 0x38)" (* "*") (cast_expression "(double *)(iVar6 + 0x38)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x38)" (( "(") (binary_expression "iVar6 + 0x38" (identifier "iVar6") (+ "+") (number_literal "0x38")) () ")")))) (- "-") (pointer_expression "*(double *)(param_2 + 10)" (* "*") (cast_expression "(double *)(param_2 + 10)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 10)" (( "(") (binary_expression "param_2 + 10" (identifier "param_2") (+ "+") (number_literal "10")) () ")"))))) () ")"))) (< "<") (identifier "dVar11")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)" (( "(") (binary_expression "ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11" (call_expression "ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc))" (identifier "ABS") (argument_list "(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc))" (( "(") (binary_expression "*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)" (pointer_expression "*(double *)(iVar6 + 0x40)" (* "*") (cast_expression "(double *)(iVar6 + 0x40)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x40)" (( "(") (binary_expression "iVar6 + 0x40" (identifier "iVar6") (+ "+") (number_literal "0x40")) () ")")))) (- "-") (pointer_expression "*(double *)(param_2 + 0xc)" (* "*") (cast_expression "(double *)(param_2 + 0xc)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) () ")"))) (< "<") (identifier "dVar11")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))" (( "(") (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11))" (( "(") (binary_expression "ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&\n            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)" (binary_expression "ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11" (call_expression "ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe))" (identifier "ABS") (argument_list "(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe))" (( "(") (binary_expression "*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)" (pointer_expression "*(double *)(iVar6 + 0x48)" (* "*") (cast_expression "(double *)(iVar6 + 0x48)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x48)" (( "(") (binary_expression "iVar6 + 0x48" (identifier "iVar6") (+ "+") (number_literal "0x48")) () ")")))) (- "-") (pointer_expression "*(double *)(param_2 + 0xe)" (* "*") (cast_expression "(double *)(param_2 + 0xe)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xe)" (( "(") (binary_expression "param_2 + 0xe" (identifier "param_2") (+ "+") (number_literal "0xe")) () ")"))))) () ")"))) (< "<") (identifier "dVar11")) (&& "&&") (parenthesized_expression "(ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)" (( "(") (binary_expression "ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11" (call_expression "ABS(*(double *)(iVar6 + 0x58) - dVar10)" (identifier "ABS") (argument_list "(*(double *)(iVar6 + 0x58) - dVar10)" (( "(") (binary_expression "*(double *)(iVar6 + 0x58) - dVar10" (pointer_expression "*(double *)(iVar6 + 0x58)" (* "*") (cast_expression "(double *)(iVar6 + 0x58)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x58)" (( "(") (binary_expression "iVar6 + 0x58" (identifier "iVar6") (+ "+") (number_literal "0x58")) () ")")))) (- "-") (identifier "dVar10")) () ")"))) (< "<") (identifier "dVar11")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);\n          iVar6 = 1;\n          goto LAB_00064ad8;\n        }" ({ "{") (expression_statement "(*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);" (call_expression "(*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000)" (parenthesized_expression "(*(code *)PTR_CopyMagickString_003a983c)" (( "(") (pointer_expression "*(code *)PTR_CopyMagickString_003a983c" (* "*") (cast_expression "(code *)PTR_CopyMagickString_003a983c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_CopyMagickString_003a983c"))) () ")")) (argument_list "(param_4,*(undefined4 *)(iVar6 + 4),0x1000)" (( "(") (identifier "param_4") (, ",") (pointer_expression "*(undefined4 *)(iVar6 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 4)" (( "(") (binary_expression "iVar6 + 4" (identifier "iVar6") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "0x1000") () ")"))) (; ";")) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" (identifier "iVar6") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_00064ad8;" (goto "goto") (statement_identifier "LAB_00064ad8") (; ";")) (} "}"))) (expression_statement "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));" (assignment_expression "iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc))" (parenthesized_expression "(*(code *)PTR_GetNextValueInLinkedList_003a9310)" (( "(") (pointer_expression "*(code *)PTR_GetNextValueInLinkedList_003a9310" (* "*") (cast_expression "(code *)PTR_GetNextValueInLinkedList_003a9310" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_GetNextValueInLinkedList_003a9310"))) () ")")) (argument_list "(*(undefined4 *)(puVar1 + -0x50fc))" (( "(") (pointer_expression "*(undefined4 *)(puVar1 + -0x50fc)" (* "*") (cast_expression "(undefined4 *)(puVar1 + -0x50fc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x50fc)" (( "(") (binary_expression "puVar1 + -0x50fc" (identifier "puVar1") (+ "+") (number_literal "-0x50fc")) () ")")))) () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" (identifier "iVar6") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n    iVar6 = 0;\n  }" (else "else") (compound_statement "{\n    iVar6 = 0;\n  }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (} "}")))) (labeled_statement "LAB_00064ad8:\n  if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }" (statement_identifier "LAB_00064ad8") (: ":") (if_statement "if (local_3c != *(int *)puVar9) {\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }" (if "if") (parenthesized_expression "(local_3c != *(int *)puVar9)" (( "(") (binary_expression "local_3c != *(int *)puVar9" (identifier "local_3c") (!= "!=") (pointer_expression "*(int *)puVar9" (* "*") (cast_expression "(int *)puVar9" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar9")))) () ")")) (compound_statement "{\n    iVar6 = local_3c;\n    puVar9 = PTR___stack_chk_fail_003a9064;\n    (*(code *)PTR___stack_chk_fail_003a9064)();\n    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);\n    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);\n    return (int)dVar10 - (int)dVar11;\n  }" ({ "{") (expression_statement "iVar6 = local_3c;" (assignment_expression "iVar6 = local_3c" (identifier "iVar6") (= "=") (identifier "local_3c")) (; ";")) (expression_statement "puVar9 = PTR___stack_chk_fail_003a9064;" (assignment_expression "puVar9 = PTR___stack_chk_fail_003a9064" (identifier "puVar9") (= "=") (identifier "PTR___stack_chk_fail_003a9064")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_003a9064)();" (call_expression "(*(code *)PTR___stack_chk_fail_003a9064)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_003a9064)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_003a9064" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_003a9064" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_003a9064"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);" (assignment_expression "dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0)" (identifier "dVar10") (= "=") (cast_expression "(double)(**(code **)(puVar9 + 0x344204))(0)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (call_expression "(**(code **)(puVar9 + 0x344204))(0)" (parenthesized_expression "(**(code **)(puVar9 + 0x344204))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x344204)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x344204)" (* "*") (cast_expression "(code **)(puVar9 + 0x344204)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x344204)" (( "(") (binary_expression "puVar9 + 0x344204" (identifier "puVar9") (+ "+") (number_literal "0x344204")) () ")"))))) () ")")) (argument_list "(0)" (( "(") (number_literal "0") () ")"))))) (; ";")) (expression_statement "dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);" (assignment_expression "dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6)" (identifier "dVar11") (= "=") (cast_expression "(double)(**(code **)(puVar9 + 0x344204))(0,iVar6)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (call_expression "(**(code **)(puVar9 + 0x344204))(0,iVar6)" (parenthesized_expression "(**(code **)(puVar9 + 0x344204))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x344204)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x344204)" (* "*") (cast_expression "(code **)(puVar9 + 0x344204)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x344204)" (( "(") (binary_expression "puVar9 + 0x344204" (identifier "puVar9") (+ "+") (number_literal "0x344204")) () ")"))))) () ")")) (argument_list "(0,iVar6)" (( "(") (number_literal "0") (, ",") (identifier "iVar6") () ")"))))) (; ";")) (return_statement "return (int)dVar10 - (int)dVar11;" (return "return") (binary_expression "(int)dVar10 - (int)dVar11" (cast_expression "(int)dVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "dVar10")) (- "-") (cast_expression "(int)dVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "dVar11"))) (; ";")) (} "}")))) (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) 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: (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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (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) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (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)))))))) alternative: (else_clause (compound_statement (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 (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 (binary_expression left: (identifier) right: (number_literal)) (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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))))))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (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: (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))))) right: (parenthesized_expression (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (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: (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))))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (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: (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)) right: (parenthesized_expression (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (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)))) right: (identifier)))))))) 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) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) 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))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (number_literal) (identifier)))))) (return_statement (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,int *param_2,uint param_3,undefined1 *param_4,
                  undefined4 param_5)

{
  undefined *puVar1;
  int *piVar2;
  int *piVar3;
  int *piVar4;
  int *piVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  undefined *puVar9;
  double dVar10;
  double dVar11;
  int local_98 [23];
  int local_3c;
  
  puVar9 = PTR___stack_chk_guard_003a9230;
  local_3c = *(int *)PTR___stack_chk_guard_003a9230;
  *param_4 = 0;
  piVar4 = param_2;
  piVar2 = local_98;
  do {
    piVar5 = piVar2;
    piVar3 = piVar4;
    piVar4 = piVar3 + 4;
    iVar8 = piVar3[1];
    iVar7 = piVar3[2];
    iVar6 = piVar3[3];
    *piVar5 = *piVar3;
    piVar5[1] = iVar8;
    piVar5[2] = iVar7;
    piVar5[3] = iVar6;
    piVar2 = piVar5 + 4;
  } while (piVar4 != param_2 + 0x14);
  iVar6 = piVar3[5];
  piVar5[4] = *piVar4;
  piVar5[5] = iVar6;
  if ((param_3 == 4) && (local_98[2] = 0, 0x10 < (uint)local_98[6])) {
    local_98[6] = 0x10;
  }
  (*(code *)PTR_GetColorTuple_003a8fd4)(local_98,param_3 != 1,param_4);
  puVar1 = PTR_DAT_003a88cc;
  if (local_98[1] - 0x17U < 2) {
    if (param_2[2] == 0) {
      dVar10 = *(double *)(PTR_LAB_003a88e0 + 0x1a58);
    }
    else {
      dVar10 = *(double *)(param_2 + 0x12);
    }
    (*(code *)PTR_GetColorInfo_003a9580)
              (PTR_s_ls_0__dGridFitTT_2__sPDFPassword_003a88e8 + 0x6c9c,param_5);
    (*(code *)PTR_ResetLinkedListIterator_003a9538)(*(undefined4 *)(puVar1 + -0x50fc));
    iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));
    if (iVar6 != 0) {
      dVar11 = *(double *)(PTR_LAB_003a88e0 + 0x13f8);
      do {
        if (((((param_3 & *(uint *)(iVar6 + 8)) != 0) &&
             (ABS(*(double *)(iVar6 + 0x38) - *(double *)(param_2 + 10)) < dVar11)) &&
            (ABS(*(double *)(iVar6 + 0x40) - *(double *)(param_2 + 0xc)) < dVar11)) &&
           ((ABS(*(double *)(iVar6 + 0x48) - *(double *)(param_2 + 0xe)) < dVar11 &&
            (ABS(*(double *)(iVar6 + 0x58) - dVar10) < dVar11)))) {
          (*(code *)PTR_CopyMagickString_003a983c)(param_4,*(undefined4 *)(iVar6 + 4),0x1000);
          iVar6 = 1;
          goto LAB_00064ad8;
        }
        iVar6 = (*(code *)PTR_GetNextValueInLinkedList_003a9310)(*(undefined4 *)(puVar1 + -0x50fc));
      } while (iVar6 != 0);
    }
    iVar6 = 1;
  }
  else {
    iVar6 = 0;
  }
LAB_00064ad8:
  if (local_3c != *(int *)puVar9) {
    iVar6 = local_3c;
    puVar9 = PTR___stack_chk_fail_003a9064;
    (*(code *)PTR___stack_chk_fail_003a9064)();
    dVar10 = (double)(**(code **)(puVar9 + 0x344204))(0);
    dVar11 = (double)(**(code **)(puVar9 + 0x344204))(0,iVar6);
    return (int)dVar10 - (int)dVar11;
  }
  return iVar6;
}

