
/* 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 "ExceptionType": Some values do not have unique names */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

MagickBooleanType CompressImageColormap(Image *image,ExceptionInfo *exception)

{
  long lVar1;
  MagickBooleanType MVar2;
  long in_FS_OFFSET;
  QuantizeInfo quantize_info;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");
  }
  if (image->signature == 0xabacadab) {
    if (image->debug != MagickFalse) {
      LogMagickEvent(TraceEvent,"MagickCore/quantize.c","CompressImageColormap",0x4b2,"%s",
                     image->filename);
    }
    MVar2 = IsPaletteImage(image);
    if (MVar2 != MagickFalse) {
      GetQuantizeInfo(&quantize_info);
      quantize_info.number_colors = image->colors;
      quantize_info.tree_depth = 8;
      MVar2 = QuantizeImage(&quantize_info,image,exception);
    }
    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
      return MVar2;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,
                "CompressImageColormap");
}



void CompressImageColormap(long param_1,undefined8 param_2)

{
  int iVar1;
  long in_FS_OFFSET;
  undefined8 local_48;
  undefined8 local_40;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");
  }
  if (*(long *)(param_1 + 0x3450) == 0xabacadab) {
    if (*(int *)(param_1 + 0x3418) != 0) {
      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,
                     param_1 + 0x3f8);
    }
    iVar1 = IsPaletteImage(param_1);
    if (iVar1 != 0) {
      GetQuantizeInfo(&local_48);
      local_48 = *(undefined8 *)(param_1 + 0x38);
      local_40 = 8;
      QuantizeImage(&local_48,param_1,param_2);
    }
    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
      return;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,
                "CompressImageColormap");
}


PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x30
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x28],RAX
XOR EAX,EAX
TEST RDI,RDI
JZ 0x0027085a
MOV RBX,RDI
MOV RBP,RSI
MOV EAX,0xabacadab
CMP qword ptr [RDI + 0x3450],RAX
JNZ 0x00270879
CMP dword ptr [RDI + 0x3418],0x0
JNZ 0x00270898
MOV RDI,RBX
CALL 0x0014b220
TEST EAX,EAX
JNZ 0x002708cd
MOV RCX,qword ptr [RSP + 0x28]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x002708fc
ADD RSP,0x30
POP RBX
POP RBP
POP R12
RET
LEA RCX,[0x42e700]
MOV EDX,0x4af
LEA RSI,[0x42e2e0]
LEA RDI,[0x420571]
CALL 0x0014a360
LEA RCX,[0x42e700]
MOV EDX,0x4b0
LEA RSI,[0x42e2e0]
LEA RDI,[0x3f98f0]
CALL 0x0014a360
LEA R9,[RDI + 0x3f8]
LEA R8,[0x41fe36]
MOV ECX,0x4b2
LEA RDX,[0x42e6e0]
LEA RSI,[0x42e2e0]
MOV EDI,0x8000
MOV EAX,0x0
CALL 0x0014be20
JMP 0x0027082d
MOV R12,RSP
MOV RDI,R12
CALL 0x0014ad80
MOV RAX,qword ptr [RBX + 0x38]
MOV qword ptr [RSP],RAX
MOV qword ptr [RSP + 0x8],0x8
MOV RDX,RBP
MOV RSI,RBX
MOV RDI,R12
CALL 0x0014cc00
JMP 0x0027083d
CALL 0x0014c5c0
(translation_unit "void CompressImageColormap(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }\n  if (*(long *)(param_1 + 0x3450) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");\n}\n\n" (function_definition "void CompressImageColormap(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }\n  if (*(long *)(param_1 + 0x3450) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");\n}" primitive_type (function_declarator "CompressImageColormap(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }\n  if (*(long *)(param_1 + 0x3450) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 local_40;" type_identifier identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap")" identifier (argument_list "("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""CompressImageColormap"" " string_content ") ))) ;) })) (if_statement "if (*(long *)(param_1 + 0x3450) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x3450) == 0xabacadab)" ( (binary_expression "*(long *)(param_1 + 0x3450) == 0xabacadab" (pointer_expression "*(long *)(param_1 + 0x3450)" * (cast_expression "(long *)(param_1 + 0x3450)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3450)" ( (binary_expression "param_1 + 0x3450" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { (if_statement "if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x3418) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3418) != 0" (pointer_expression "*(int *)(param_1 + 0x3418)" * (cast_expression "(int *)(param_1 + 0x3418)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3418)" ( (binary_expression "param_1 + 0x3418" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);" (call_expression "LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8)" identifier (argument_list "(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8)" ( number_literal , (string_literal ""MagickCore/quantize.c"" " string_content ") , (string_literal ""CompressImageColormap"" " string_content ") , number_literal , (pointer_expression "&DAT_0041fe36" & identifier) , (binary_expression "param_1 + 0x3f8" identifier + number_literal) ))) ;) })) (expression_statement "iVar1 = IsPaletteImage(param_1);" (assignment_expression "iVar1 = IsPaletteImage(param_1)" identifier = (call_expression "IsPaletteImage(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }" { (expression_statement "GetQuantizeInfo(&local_48);" (call_expression "GetQuantizeInfo(&local_48)" identifier (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) (expression_statement "local_48 = *(undefined8 *)(param_1 + 0x38);" (assignment_expression "local_48 = *(undefined8 *)(param_1 + 0x38)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "local_40 = 8;" (assignment_expression "local_40 = 8" identifier = number_literal) ;) (expression_statement "QuantizeImage(&local_48,param_1,param_2);" (call_expression "QuantizeImage(&local_48,param_1,param_2)" identifier (argument_list "(&local_48,param_1,param_2)" ( (pointer_expression "&local_48" & identifier) , identifier , identifier ))) ;) })) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""CompressImageColormap"" " string_content ") ))) ;) })))
(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 "ExceptionType": Some values do not have unique names */\n/* WARNING: Enum "LogEventType": Some values do not have unique names */\n\nMagickBooleanType CompressImageColormap(Image *image,ExceptionInfo *exception)\n\n{\n  long lVar1;\n  MagickBooleanType MVar2;\n  long in_FS_OFFSET;\n  QuantizeInfo quantize_info;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/quantize.c","CompressImageColormap",0x4b2,"%s",\n                     image->filename);\n    }\n    MVar2 = IsPaletteImage(image);\n    if (MVar2 != MagickFalse) {\n      GetQuantizeInfo(&quantize_info);\n      quantize_info.number_colors = image->colors;\n      quantize_info.tree_depth = 8;\n      MVar2 = QuantizeImage(&quantize_info,image,exception);\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return MVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");\n}\n\n" comment comment comment comment comment comment (function_definition "MagickBooleanType CompressImageColormap(Image *image,ExceptionInfo *exception)\n\n{\n  long lVar1;\n  MagickBooleanType MVar2;\n  long in_FS_OFFSET;\n  QuantizeInfo quantize_info;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/quantize.c","CompressImageColormap",0x4b2,"%s",\n                     image->filename);\n    }\n    MVar2 = IsPaletteImage(image);\n    if (MVar2 != MagickFalse) {\n      GetQuantizeInfo(&quantize_info);\n      quantize_info.number_colors = image->colors;\n      quantize_info.tree_depth = 8;\n      MVar2 = QuantizeImage(&quantize_info,image,exception);\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return MVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");\n}" type_identifier (function_declarator "CompressImageColormap(Image *image,ExceptionInfo *exception)" identifier (parameter_list "(Image *image,ExceptionInfo *exception)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  long lVar1;\n  MagickBooleanType MVar2;\n  long in_FS_OFFSET;\n  QuantizeInfo quantize_info;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }\n  if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/quantize.c","CompressImageColormap",0x4b2,"%s",\n                     image->filename);\n    }\n    MVar2 = IsPaletteImage(image);\n    if (MVar2 != MagickFalse) {\n      GetQuantizeInfo(&quantize_info);\n      quantize_info.number_colors = image->colors;\n      quantize_info.tree_depth = 8;\n      MVar2 = QuantizeImage(&quantize_info,image,exception);\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return MVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "MagickBooleanType MVar2;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "QuantizeInfo quantize_info;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }" if (parenthesized_expression "(image == (Image *)0x0)" ( (binary_expression "image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap")" identifier (argument_list "("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""CompressImageColormap"" " string_content ") ))) ;) })) (if_statement "if (image->signature == 0xabacadab) {\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/quantize.c","CompressImageColormap",0x4b2,"%s",\n                     image->filename);\n    }\n    MVar2 = IsPaletteImage(image);\n    if (MVar2 != MagickFalse) {\n      GetQuantizeInfo(&quantize_info);\n      quantize_info.number_colors = image->colors;\n      quantize_info.tree_depth = 8;\n      MVar2 = QuantizeImage(&quantize_info,image,exception);\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return MVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(image->signature == 0xabacadab)" ( (binary_expression "image->signature == 0xabacadab" (field_expression "image->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/quantize.c","CompressImageColormap",0x4b2,"%s",\n                     image->filename);\n    }\n    MVar2 = IsPaletteImage(image);\n    if (MVar2 != MagickFalse) {\n      GetQuantizeInfo(&quantize_info);\n      quantize_info.number_colors = image->colors;\n      quantize_info.tree_depth = 8;\n      MVar2 = QuantizeImage(&quantize_info,image,exception);\n    }\n    if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return MVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { (if_statement "if (image->debug != MagickFalse) {\n      LogMagickEvent(TraceEvent,"MagickCore/quantize.c","CompressImageColormap",0x4b2,"%s",\n                     image->filename);\n    }" if (parenthesized_expression "(image->debug != MagickFalse)" ( (binary_expression "image->debug != MagickFalse" (field_expression "image->debug" identifier -> field_identifier) != identifier) )) (compound_statement "{\n      LogMagickEvent(TraceEvent,"MagickCore/quantize.c","CompressImageColormap",0x4b2,"%s",\n                     image->filename);\n    }" { (expression_statement "LogMagickEvent(TraceEvent,"MagickCore/quantize.c","CompressImageColormap",0x4b2,"%s",\n                     image->filename);" (call_expression "LogMagickEvent(TraceEvent,"MagickCore/quantize.c","CompressImageColormap",0x4b2,"%s",\n                     image->filename)" identifier (argument_list "(TraceEvent,"MagickCore/quantize.c","CompressImageColormap",0x4b2,"%s",\n                     image->filename)" ( identifier , (string_literal ""MagickCore/quantize.c"" " string_content ") , (string_literal ""CompressImageColormap"" " string_content ") , number_literal , (string_literal ""%s"" " string_content ") , (field_expression "image->filename" identifier -> field_identifier) ))) ;) })) (expression_statement "MVar2 = IsPaletteImage(image);" (assignment_expression "MVar2 = IsPaletteImage(image)" identifier = (call_expression "IsPaletteImage(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (MVar2 != MagickFalse) {\n      GetQuantizeInfo(&quantize_info);\n      quantize_info.number_colors = image->colors;\n      quantize_info.tree_depth = 8;\n      MVar2 = QuantizeImage(&quantize_info,image,exception);\n    }" if (parenthesized_expression "(MVar2 != MagickFalse)" ( (binary_expression "MVar2 != MagickFalse" identifier != identifier) )) (compound_statement "{\n      GetQuantizeInfo(&quantize_info);\n      quantize_info.number_colors = image->colors;\n      quantize_info.tree_depth = 8;\n      MVar2 = QuantizeImage(&quantize_info,image,exception);\n    }" { (expression_statement "GetQuantizeInfo(&quantize_info);" (call_expression "GetQuantizeInfo(&quantize_info)" identifier (argument_list "(&quantize_info)" ( (pointer_expression "&quantize_info" & identifier) ))) ;) (expression_statement "quantize_info.number_colors = image->colors;" (assignment_expression "quantize_info.number_colors = image->colors" (field_expression "quantize_info.number_colors" identifier . field_identifier) = (field_expression "image->colors" identifier -> field_identifier)) ;) (expression_statement "quantize_info.tree_depth = 8;" (assignment_expression "quantize_info.tree_depth = 8" (field_expression "quantize_info.tree_depth" identifier . field_identifier) = number_literal) ;) (expression_statement "MVar2 = QuantizeImage(&quantize_info,image,exception);" (assignment_expression "MVar2 = QuantizeImage(&quantize_info,image,exception)" identifier = (call_expression "QuantizeImage(&quantize_info,image,exception)" identifier (argument_list "(&quantize_info,image,exception)" ( (pointer_expression "&quantize_info" & identifier) , identifier , identifier )))) ;) })) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return MVar2;\n    }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n      return MVar2;\n    }" { (return_statement "return MVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""CompressImageColormap"" " string_content ") ))) ;) })))
(translation_unit "void CompressImageColormap(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }\n  if (*(long *)(param_1 + 0x3450) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");\n}\n\n" (function_definition "void CompressImageColormap(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }\n  if (*(long *)(param_1 + 0x3450) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");\n}" primitive_type (function_declarator "CompressImageColormap(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }\n  if (*(long *)(param_1 + 0x3450) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_48;" type_identifier identifier ;) (declaration "undefined8 local_40;" type_identifier identifier ;) (declaration "long local_20;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }" { (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap")" identifier (argument_list "("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""CompressImageColormap"" " string_content ") ))) ;) })) (if_statement "if (*(long *)(param_1 + 0x3450) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x3450) == 0xabacadab)" ( (binary_expression "*(long *)(param_1 + 0x3450) == 0xabacadab" (pointer_expression "*(long *)(param_1 + 0x3450)" * (cast_expression "(long *)(param_1 + 0x3450)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3450)" ( (binary_expression "param_1 + 0x3450" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }" { (if_statement "if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x3418) != 0)" ( (binary_expression "*(int *)(param_1 + 0x3418) != 0" (pointer_expression "*(int *)(param_1 + 0x3418)" * (cast_expression "(int *)(param_1 + 0x3418)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3418)" ( (binary_expression "param_1 + 0x3418" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }" { (expression_statement "LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);" (call_expression "LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8)" identifier (argument_list "(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8)" ( number_literal , (string_literal ""MagickCore/quantize.c"" " string_content ") , (string_literal ""CompressImageColormap"" " string_content ") , number_literal , (pointer_expression "&DAT_0041fe36" & identifier) , (binary_expression "param_1 + 0x3f8" identifier + number_literal) ))) ;) })) (expression_statement "iVar1 = IsPaletteImage(param_1);" (assignment_expression "iVar1 = IsPaletteImage(param_1)" identifier = (call_expression "IsPaletteImage(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }" { (expression_statement "GetQuantizeInfo(&local_48);" (call_expression "GetQuantizeInfo(&local_48)" identifier (argument_list "(&local_48)" ( (pointer_expression "&local_48" & identifier) ))) ;) (expression_statement "local_48 = *(undefined8 *)(param_1 + 0x38);" (assignment_expression "local_48 = *(undefined8 *)(param_1 + 0x38)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x38)" * (cast_expression "(undefined8 *)(param_1 + 0x38)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "local_40 = 8;" (assignment_expression "local_40 = 8" identifier = number_literal) ;) (expression_statement "QuantizeImage(&local_48,param_1,param_2);" (call_expression "QuantizeImage(&local_48,param_1,param_2)" identifier (argument_list "(&local_48,param_1,param_2)" ( (pointer_expression "&local_48" & identifier) , identifier , identifier ))) ;) })) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }" if (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/quantize.c"" " string_content ") , number_literal , (string_literal ""CompressImageColormap"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , (pointer_expression & IDENT) , (binary_expression IDENT + LIT) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "void CompressImageColormap(long param_1,undefined8 param_2)\n\n{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }\n  if (*(long *)(param_1 + 0x3450) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");\n}" (primitive_type "void") (function_declarator "CompressImageColormap(long param_1,undefined8 param_2)" (identifier "CompressImageColormap") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  long in_FS_OFFSET;\n  undefined8 local_48;\n  undefined8 local_40;\n  long local_20;\n  \n  local_20 = *(long *)(in_FS_OFFSET + 0x28);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }\n  if (*(long *)(param_1 + 0x3450) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined8 local_48;" (type_identifier "undefined8") (identifier "local_48") (; ";")) (declaration "undefined8 local_40;" (type_identifier "undefined8") (identifier "local_40") (; ";")) (declaration "long local_20;" (sized_type_specifier "long" (long "long")) (identifier "local_20") (; ";")) (expression_statement "local_20 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_20 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");\n  }" ({ "{") (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap")" (identifier "__assert_fail") (argument_list "("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap")" (( "(") (string_literal ""image != (Image *) NULL"" (" """) (string_content "image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/quantize.c"" (" """) (string_content "MagickCore/quantize.c") (" """)) (, ",") (number_literal "0x4af") (, ",") (string_literal ""CompressImageColormap"" (" """) (string_content "CompressImageColormap") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(long *)(param_1 + 0x3450) == 0xabacadab) {\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x3450) == 0xabacadab)" (( "(") (binary_expression "*(long *)(param_1 + 0x3450) == 0xabacadab" (pointer_expression "*(long *)(param_1 + 0x3450)" (* "*") (cast_expression "(long *)(param_1 + 0x3450)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3450)" (( "(") (binary_expression "param_1 + 0x3450" (identifier "param_1") (+ "+") (number_literal "0x3450")) () ")")))) (== "==") (number_literal "0xabacadab")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }\n    iVar1 = IsPaletteImage(param_1);\n    if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }\n    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }\n                    \n    __stack_chk_fail();\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x3418) != 0) {\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3418) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x3418) != 0" (pointer_expression "*(int *)(param_1 + 0x3418)" (* "*") (cast_expression "(int *)(param_1 + 0x3418)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3418)" (( "(") (binary_expression "param_1 + 0x3418" (identifier "param_1") (+ "+") (number_literal "0x3418")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);\n    }" ({ "{") (expression_statement "LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8);" (call_expression "LogMagickEvent(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8)" (identifier "LogMagickEvent") (argument_list "(0x8000,"MagickCore/quantize.c","CompressImageColormap",0x4b2,&DAT_0041fe36,\n                     param_1 + 0x3f8)" (( "(") (number_literal "0x8000") (, ",") (string_literal ""MagickCore/quantize.c"" (" """) (string_content "MagickCore/quantize.c") (" """)) (, ",") (string_literal ""CompressImageColormap"" (" """) (string_content "CompressImageColormap") (" """)) (, ",") (number_literal "0x4b2") (, ",") (pointer_expression "&DAT_0041fe36" (& "&") (identifier "DAT_0041fe36")) (, ",") (binary_expression "param_1 + 0x3f8" (identifier "param_1") (+ "+") (number_literal "0x3f8")) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = IsPaletteImage(param_1);" (assignment_expression "iVar1 = IsPaletteImage(param_1)" (identifier "iVar1") (= "=") (call_expression "IsPaletteImage(param_1)" (identifier "IsPaletteImage") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      GetQuantizeInfo(&local_48);\n      local_48 = *(undefined8 *)(param_1 + 0x38);\n      local_40 = 8;\n      QuantizeImage(&local_48,param_1,param_2);\n    }" ({ "{") (expression_statement "GetQuantizeInfo(&local_48);" (call_expression "GetQuantizeInfo(&local_48)" (identifier "GetQuantizeInfo") (argument_list "(&local_48)" (( "(") (pointer_expression "&local_48" (& "&") (identifier "local_48")) () ")"))) (; ";")) (expression_statement "local_48 = *(undefined8 *)(param_1 + 0x38);" (assignment_expression "local_48 = *(undefined8 *)(param_1 + 0x38)" (identifier "local_48") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x38)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x38)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "local_40 = 8;" (assignment_expression "local_40 = 8" (identifier "local_40") (= "=") (number_literal "8")) (; ";")) (expression_statement "QuantizeImage(&local_48,param_1,param_2);" (call_expression "QuantizeImage(&local_48,param_1,param_2)" (identifier "QuantizeImage") (argument_list "(&local_48,param_1,param_2)" (( "(") (pointer_expression "&local_48" (& "&") (identifier "local_48")) (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {\n      return;\n    }" (if "if") (parenthesized_expression "(local_20 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_20 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_20") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap")" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,\n                "CompressImageColormap")" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/quantize.c"" (" """) (string_content "MagickCore/quantize.c") (" """)) (, ",") (number_literal "0x4b0") (, ",") (string_literal ""CompressImageColormap"" (" """) (string_content "CompressImageColormap") (" """)) () ")"))) (; ";")) (} "}")))

/* 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 "ExceptionType": Some values do not have unique names */
/* WARNING: Enum "LogEventType": Some values do not have unique names */

type_1 function_1(type_2 *var_2,type_3 *exception)

{
  long var_10;
  type_1 var_7;
  long var_1;
  type_4 quantize_info;
  
  var_10 = *(long *)(var_1 + 0x28);
  if (var_2 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"CompressImageColormap");
  }
  if (var_2->signature == 0xabacadab) {
    if (var_2->debug != var_4) {
      var_5(TraceEvent,"MagickCore/quantize.c","CompressImageColormap",0x4b2,"%s",
                     var_2->filename);
    }
    var_7 = var_6(var_2);
    if (var_7 != var_4) {
      var_8(&quantize_info);
      quantize_info.number_colors = var_2->colors;
      quantize_info.tree_depth = 8;
      var_7 = var_9(&quantize_info,var_2,exception);
    }
    if (var_10 == *(long *)(var_1 + 0x28)) {
      return var_7;
    }
                    /* WARNING: Subroutine does not return */
    var_11();
  }
                    /* WARNING: Subroutine does not return */
  var_3("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,
                "CompressImageColormap");
}


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

void MASKED(long param_1,undefined8 param_2)

{
  int iVar1;
  long in_FS_OFFSET;
  undefined8 local_48;
  undefined8 local_40;
  long local_20;
  
  local_20 = *(long *)(in_FS_OFFSET + 0x28);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/quantize.c",0x4af,"MASKED");
  }
  if (*(long *)(param_1 + 0x3450) == 0xabacadab) {
    if (*(int *)(param_1 + 0x3418) != 0) {
      LogMagickEvent(0x8000,"MagickCore/quantize.c","MASKED",0x4b2,&DAT_0041fe36,
                     param_1 + 0x3f8);
    }
    iVar1 = IsPaletteImage(param_1);
    if (iVar1 != 0) {
      GetQuantizeInfo(&local_48);
      local_48 = *(undefined8 *)(param_1 + 0x38);
      local_40 = 8;
      QuantizeImage(&local_48,param_1,param_2);
    }
    if (local_20 == *(long *)(in_FS_OFFSET + 0x28)) {
      return;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/quantize.c",0x4b0,
                "MASKED");
}

