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

QuantizeInfo * AcquireQuantizeInfo(ImageInfo *image_info)

{
  undefined *puVar1;
  undefined *puVar2;
  QuantizeInfo *pQVar3;
  int iVar4;
  DitherMethod DVar5;
  
  pQVar3 = (QuantizeInfo *)(*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);
  (*(code *)PTR_GetQuantizeInfo_003a9574)(pQVar3);
  puVar2 = PTR_GetImageOption_003a9168;
  puVar1 = PTR_s_courses_003a88ec;
  if (image_info != (ImageInfo *)0x0) {
    DVar5 = RiemersmaDitherMethod;
    if (image_info->dither == MagickFalse) {
      DVar5 = NoDitherMethod;
    }
    pQVar3->dither_method = DVar5;
    iVar4 = (*(code *)puVar2)(image_info,puVar1 + -0x2130);
    if (iVar4 != 0) {
      DVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);
      pQVar3->dither_method = DVar5;
    }
    pQVar3->measure_error = image_info->verbose;
  }
  return pQVar3;
}



int AcquireQuantizeInfo(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  
  iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);
  (*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);
  puVar2 = PTR_GetImageOption_003a9168;
  puVar1 = PTR_s_courses_003a88ec;
  if (param_1 != 0) {
    uVar5 = 2;
    if (*(int *)(param_1 + 0x1c8) == 0) {
      uVar5 = 1;
    }
    *(undefined4 *)(iVar3 + 0xc) = uVar5;
    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);
    if (iVar4 != 0) {
      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);
      *(undefined4 *)(iVar3 + 0xc) = uVar5;
    }
    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);
  }
  return iVar3;
}


lui gp,0x26
addiu gp,gp,-0xdbc
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x755c(gp)
sw s1,0x20(sp)
or s1,a0,zero
li a0,0x18
sw gp,0x10(sp)
sw ra,0x24(sp)
jalr t9
_sw s0,0x1c(sp)
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x733c(gp)
jalr t9
_or s0,v0,zero
beq s1,zero,0x00151708
_lw gp,0x10(sp)
lw v0,0x1c8(s1)
li a1,0x1
li v1,0x2
lw t9,-0x7748(gp)
or a0,s1,zero
movz v1,a1,v0
lw a1,-0x7fc4(gp)
sw v1,0xc(s0)
jalr t9
_addiu a1,a1,-0x2130
beq v0,zero,0x00151700
_lw gp,0x10(sp)
lw t9,-0x721c(gp)
or a1,zero,zero
li a0,0x17
jalr t9
_or a2,v0,zero
sw v0,0xc(s0)
lw v0,0x1e0(s1)
sw v0,0x10(s0)
lw ra,0x24(sp)
or v0,s0,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int AcquireQuantizeInfo(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);\n  (*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);\n  puVar2 = PTR_GetImageOption_003a9168;\n  puVar1 = PTR_s_courses_003a88ec;\n  if (param_1 != 0) {\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }\n  return iVar3;\n}\n\n" (function_definition "int AcquireQuantizeInfo(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);\n  (*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);\n  puVar2 = PTR_GetImageOption_003a9168;\n  puVar1 = PTR_s_courses_003a88ec;\n  if (param_1 != 0) {\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }\n  return iVar3;\n}" primitive_type (function_declarator "AcquireQuantizeInfo(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);\n  (*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);\n  puVar2 = PTR_GetImageOption_003a9168;\n  puVar1 = PTR_s_courses_003a88ec;\n  if (param_1 != 0) {\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }\n  return iVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);" (assignment_expression "iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18)" identifier = (call_expression "(*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18)" (parenthesized_expression "(*(code *)PTR_AcquireCriticalMemory_003a9354)" ( (pointer_expression "*(code *)PTR_AcquireCriticalMemory_003a9354" * (cast_expression "(code *)PTR_AcquireCriticalMemory_003a9354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "(*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);" (call_expression "(*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3)" (parenthesized_expression "(*(code *)PTR_GetQuantizeInfo_003a9574)" ( (pointer_expression "*(code *)PTR_GetQuantizeInfo_003a9574" * (cast_expression "(code *)PTR_GetQuantizeInfo_003a9574" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "puVar2 = PTR_GetImageOption_003a9168;" (assignment_expression "puVar2 = PTR_GetImageOption_003a9168" identifier = identifier) ;) (expression_statement "puVar1 = PTR_s_courses_003a88ec;" (assignment_expression "puVar1 = PTR_s_courses_003a88ec" identifier = identifier) ;) (if_statement "if (param_1 != 0) {\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }" { (expression_statement "uVar5 = 2;" (assignment_expression "uVar5 = 2" identifier = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c8) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1c8) == 0" (pointer_expression "*(int *)(param_1 + 0x1c8)" * (cast_expression "(int *)(param_1 + 0x1c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c8)" ( (binary_expression "param_1 + 0x1c8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar5 = 1;\n    }" { (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);" (assignment_expression "iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130)" identifier = (call_expression "(*(code *)puVar2)(param_1,puVar1 + -0x2130)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,puVar1 + -0x2130)" ( identifier , (binary_expression "puVar1 + -0x2130" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }" { (expression_statement "uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);" (assignment_expression "uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4)" identifier = (call_expression "(*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4)" (parenthesized_expression "(*(code *)PTR_ParseCommandOption_003a9694)" ( (pointer_expression "*(code *)PTR_ParseCommandOption_003a9694" * (cast_expression "(code *)PTR_ParseCommandOption_003a9694" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x17,0,iVar4)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0)" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x1e0)" * (cast_expression "(undefined4 *)(param_1 + 0x1e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1e0)" ( (binary_expression "param_1 + 0x1e0" identifier + number_literal) ))))) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n\nQuantizeInfo * AcquireQuantizeInfo(ImageInfo *image_info)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  QuantizeInfo *pQVar3;\n  int iVar4;\n  DitherMethod DVar5;\n  \n  pQVar3 = (QuantizeInfo *)(*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);\n  (*(code *)PTR_GetQuantizeInfo_003a9574)(pQVar3);\n  puVar2 = PTR_GetImageOption_003a9168;\n  puVar1 = PTR_s_courses_003a88ec;\n  if (image_info != (ImageInfo *)0x0) {\n    DVar5 = RiemersmaDitherMethod;\n    if (image_info->dither == MagickFalse) {\n      DVar5 = NoDitherMethod;\n    }\n    pQVar3->dither_method = DVar5;\n    iVar4 = (*(code *)puVar2)(image_info,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      DVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      pQVar3->dither_method = DVar5;\n    }\n    pQVar3->measure_error = image_info->verbose;\n  }\n  return pQVar3;\n}\n\n" comment comment comment comment (function_definition "QuantizeInfo * AcquireQuantizeInfo(ImageInfo *image_info)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  QuantizeInfo *pQVar3;\n  int iVar4;\n  DitherMethod DVar5;\n  \n  pQVar3 = (QuantizeInfo *)(*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);\n  (*(code *)PTR_GetQuantizeInfo_003a9574)(pQVar3);\n  puVar2 = PTR_GetImageOption_003a9168;\n  puVar1 = PTR_s_courses_003a88ec;\n  if (image_info != (ImageInfo *)0x0) {\n    DVar5 = RiemersmaDitherMethod;\n    if (image_info->dither == MagickFalse) {\n      DVar5 = NoDitherMethod;\n    }\n    pQVar3->dither_method = DVar5;\n    iVar4 = (*(code *)puVar2)(image_info,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      DVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      pQVar3->dither_method = DVar5;\n    }\n    pQVar3->measure_error = image_info->verbose;\n  }\n  return pQVar3;\n}" type_identifier (pointer_declarator "* AcquireQuantizeInfo(ImageInfo *image_info)" * (function_declarator "AcquireQuantizeInfo(ImageInfo *image_info)" identifier (parameter_list "(ImageInfo *image_info)" ( (parameter_declaration "ImageInfo *image_info" type_identifier (pointer_declarator "*image_info" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  QuantizeInfo *pQVar3;\n  int iVar4;\n  DitherMethod DVar5;\n  \n  pQVar3 = (QuantizeInfo *)(*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);\n  (*(code *)PTR_GetQuantizeInfo_003a9574)(pQVar3);\n  puVar2 = PTR_GetImageOption_003a9168;\n  puVar1 = PTR_s_courses_003a88ec;\n  if (image_info != (ImageInfo *)0x0) {\n    DVar5 = RiemersmaDitherMethod;\n    if (image_info->dither == MagickFalse) {\n      DVar5 = NoDitherMethod;\n    }\n    pQVar3->dither_method = DVar5;\n    iVar4 = (*(code *)puVar2)(image_info,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      DVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      pQVar3->dither_method = DVar5;\n    }\n    pQVar3->measure_error = image_info->verbose;\n  }\n  return pQVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "QuantizeInfo *pQVar3;" type_identifier (pointer_declarator "*pQVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "DitherMethod DVar5;" type_identifier identifier ;) (expression_statement "pQVar3 = (QuantizeInfo *)(*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);" (assignment_expression "pQVar3 = (QuantizeInfo *)(*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18)" identifier = (cast_expression "(QuantizeInfo *)(*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18)" ( (type_descriptor "QuantizeInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18)" (parenthesized_expression "(*(code *)PTR_AcquireCriticalMemory_003a9354)" ( (pointer_expression "*(code *)PTR_AcquireCriticalMemory_003a9354" * (cast_expression "(code *)PTR_AcquireCriticalMemory_003a9354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "(*(code *)PTR_GetQuantizeInfo_003a9574)(pQVar3);" (call_expression "(*(code *)PTR_GetQuantizeInfo_003a9574)(pQVar3)" (parenthesized_expression "(*(code *)PTR_GetQuantizeInfo_003a9574)" ( (pointer_expression "*(code *)PTR_GetQuantizeInfo_003a9574" * (cast_expression "(code *)PTR_GetQuantizeInfo_003a9574" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pQVar3)" ( identifier ))) ;) (expression_statement "puVar2 = PTR_GetImageOption_003a9168;" (assignment_expression "puVar2 = PTR_GetImageOption_003a9168" identifier = identifier) ;) (expression_statement "puVar1 = PTR_s_courses_003a88ec;" (assignment_expression "puVar1 = PTR_s_courses_003a88ec" identifier = identifier) ;) (if_statement "if (image_info != (ImageInfo *)0x0) {\n    DVar5 = RiemersmaDitherMethod;\n    if (image_info->dither == MagickFalse) {\n      DVar5 = NoDitherMethod;\n    }\n    pQVar3->dither_method = DVar5;\n    iVar4 = (*(code *)puVar2)(image_info,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      DVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      pQVar3->dither_method = DVar5;\n    }\n    pQVar3->measure_error = image_info->verbose;\n  }" if (parenthesized_expression "(image_info != (ImageInfo *)0x0)" ( (binary_expression "image_info != (ImageInfo *)0x0" identifier != (cast_expression "(ImageInfo *)0x0" ( (type_descriptor "ImageInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    DVar5 = RiemersmaDitherMethod;\n    if (image_info->dither == MagickFalse) {\n      DVar5 = NoDitherMethod;\n    }\n    pQVar3->dither_method = DVar5;\n    iVar4 = (*(code *)puVar2)(image_info,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      DVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      pQVar3->dither_method = DVar5;\n    }\n    pQVar3->measure_error = image_info->verbose;\n  }" { (expression_statement "DVar5 = RiemersmaDitherMethod;" (assignment_expression "DVar5 = RiemersmaDitherMethod" identifier = identifier) ;) (if_statement "if (image_info->dither == MagickFalse) {\n      DVar5 = NoDitherMethod;\n    }" if (parenthesized_expression "(image_info->dither == MagickFalse)" ( (binary_expression "image_info->dither == MagickFalse" (field_expression "image_info->dither" identifier -> field_identifier) == identifier) )) (compound_statement "{\n      DVar5 = NoDitherMethod;\n    }" { (expression_statement "DVar5 = NoDitherMethod;" (assignment_expression "DVar5 = NoDitherMethod" identifier = identifier) ;) })) (expression_statement "pQVar3->dither_method = DVar5;" (assignment_expression "pQVar3->dither_method = DVar5" (field_expression "pQVar3->dither_method" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar4 = (*(code *)puVar2)(image_info,puVar1 + -0x2130);" (assignment_expression "iVar4 = (*(code *)puVar2)(image_info,puVar1 + -0x2130)" identifier = (call_expression "(*(code *)puVar2)(image_info,puVar1 + -0x2130)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(image_info,puVar1 + -0x2130)" ( identifier , (binary_expression "puVar1 + -0x2130" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) {\n      DVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      pQVar3->dither_method = DVar5;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      DVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      pQVar3->dither_method = DVar5;\n    }" { (expression_statement "DVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);" (assignment_expression "DVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4)" identifier = (call_expression "(*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4)" (parenthesized_expression "(*(code *)PTR_ParseCommandOption_003a9694)" ( (pointer_expression "*(code *)PTR_ParseCommandOption_003a9694" * (cast_expression "(code *)PTR_ParseCommandOption_003a9694" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x17,0,iVar4)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "pQVar3->dither_method = DVar5;" (assignment_expression "pQVar3->dither_method = DVar5" (field_expression "pQVar3->dither_method" identifier -> field_identifier) = identifier) ;) })) (expression_statement "pQVar3->measure_error = image_info->verbose;" (assignment_expression "pQVar3->measure_error = image_info->verbose" (field_expression "pQVar3->measure_error" identifier -> field_identifier) = (field_expression "image_info->verbose" identifier -> field_identifier)) ;) })) (return_statement "return pQVar3;" return identifier ;) })))
(translation_unit "int AcquireQuantizeInfo(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);\n  (*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);\n  puVar2 = PTR_GetImageOption_003a9168;\n  puVar1 = PTR_s_courses_003a88ec;\n  if (param_1 != 0) {\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }\n  return iVar3;\n}\n\n" (function_definition "int AcquireQuantizeInfo(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);\n  (*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);\n  puVar2 = PTR_GetImageOption_003a9168;\n  puVar1 = PTR_s_courses_003a88ec;\n  if (param_1 != 0) {\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }\n  return iVar3;\n}" primitive_type (function_declarator "AcquireQuantizeInfo(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);\n  (*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);\n  puVar2 = PTR_GetImageOption_003a9168;\n  puVar1 = PTR_s_courses_003a88ec;\n  if (param_1 != 0) {\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }\n  return iVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);" (assignment_expression "iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18)" identifier = (call_expression "(*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18)" (parenthesized_expression "(*(code *)PTR_AcquireCriticalMemory_003a9354)" ( (pointer_expression "*(code *)PTR_AcquireCriticalMemory_003a9354" * (cast_expression "(code *)PTR_AcquireCriticalMemory_003a9354" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x18)" ( number_literal )))) ;) (expression_statement "(*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);" (call_expression "(*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3)" (parenthesized_expression "(*(code *)PTR_GetQuantizeInfo_003a9574)" ( (pointer_expression "*(code *)PTR_GetQuantizeInfo_003a9574" * (cast_expression "(code *)PTR_GetQuantizeInfo_003a9574" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "puVar2 = PTR_GetImageOption_003a9168;" (assignment_expression "puVar2 = PTR_GetImageOption_003a9168" identifier = identifier) ;) (expression_statement "puVar1 = PTR_s_courses_003a88ec;" (assignment_expression "puVar1 = PTR_s_courses_003a88ec" identifier = identifier) ;) (if_statement "if (param_1 != 0) {\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }" { (expression_statement "uVar5 = 2;" (assignment_expression "uVar5 = 2" identifier = number_literal) ;) (if_statement "if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c8) == 0)" ( (binary_expression "*(int *)(param_1 + 0x1c8) == 0" (pointer_expression "*(int *)(param_1 + 0x1c8)" * (cast_expression "(int *)(param_1 + 0x1c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c8)" ( (binary_expression "param_1 + 0x1c8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      uVar5 = 1;\n    }" { (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);" (assignment_expression "iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130)" identifier = (call_expression "(*(code *)puVar2)(param_1,puVar1 + -0x2130)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,puVar1 + -0x2130)" ( identifier , (binary_expression "puVar1 + -0x2130" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }" { (expression_statement "uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);" (assignment_expression "uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4)" identifier = (call_expression "(*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4)" (parenthesized_expression "(*(code *)PTR_ParseCommandOption_003a9694)" ( (pointer_expression "*(code *)PTR_ParseCommandOption_003a9694" * (cast_expression "(code *)PTR_ParseCommandOption_003a9694" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x17,0,iVar4)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" * (cast_expression "(undefined4 *)(iVar3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "*(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0)" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x1e0)" * (cast_expression "(undefined4 *)(param_1 + 0x1e0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1e0)" ( (binary_expression "param_1 + 0x1e0" identifier + number_literal) ))))) ;) })) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_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) ))))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int AcquireQuantizeInfo(int param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);\n  (*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);\n  puVar2 = PTR_GetImageOption_003a9168;\n  puVar1 = PTR_s_courses_003a88ec;\n  if (param_1 != 0) {\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }\n  return iVar3;\n}" (primitive_type "int") (function_declarator "AcquireQuantizeInfo(int param_1)" (identifier "AcquireQuantizeInfo") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  undefined4 uVar5;\n  \n  iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);\n  (*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);\n  puVar2 = PTR_GetImageOption_003a9168;\n  puVar1 = PTR_s_courses_003a88ec;\n  if (param_1 != 0) {\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }\n  return iVar3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (expression_statement "iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);" (assignment_expression "iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18)" (parenthesized_expression "(*(code *)PTR_AcquireCriticalMemory_003a9354)" (( "(") (pointer_expression "*(code *)PTR_AcquireCriticalMemory_003a9354" (* "*") (cast_expression "(code *)PTR_AcquireCriticalMemory_003a9354" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_AcquireCriticalMemory_003a9354"))) () ")")) (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);" (call_expression "(*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3)" (parenthesized_expression "(*(code *)PTR_GetQuantizeInfo_003a9574)" (( "(") (pointer_expression "*(code *)PTR_GetQuantizeInfo_003a9574" (* "*") (cast_expression "(code *)PTR_GetQuantizeInfo_003a9574" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_GetQuantizeInfo_003a9574"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "puVar2 = PTR_GetImageOption_003a9168;" (assignment_expression "puVar2 = PTR_GetImageOption_003a9168" (identifier "puVar2") (= "=") (identifier "PTR_GetImageOption_003a9168")) (; ";")) (expression_statement "puVar1 = PTR_s_courses_003a88ec;" (assignment_expression "puVar1 = PTR_s_courses_003a88ec" (identifier "puVar1") (= "=") (identifier "PTR_s_courses_003a88ec")) (; ";")) (if_statement "if (param_1 != 0) {\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = 2;\n    if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }\n    *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);\n    if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }\n    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);\n  }" ({ "{") (expression_statement "uVar5 = 2;" (assignment_expression "uVar5 = 2" (identifier "uVar5") (= "=") (number_literal "2")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x1c8) == 0) {\n      uVar5 = 1;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1c8) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1c8) == 0" (pointer_expression "*(int *)(param_1 + 0x1c8)" (* "*") (cast_expression "(int *)(param_1 + 0x1c8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c8)" (( "(") (binary_expression "param_1 + 0x1c8" (identifier "param_1") (+ "+") (number_literal "0x1c8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = 1;\n    }" ({ "{") (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" (identifier "uVar5") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);" (assignment_expression "iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130)" (identifier "iVar4") (= "=") (call_expression "(*(code *)puVar2)(param_1,puVar1 + -0x2130)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(param_1,puVar1 + -0x2130)" (( "(") (identifier "param_1") (, ",") (binary_expression "puVar1 + -0x2130" (identifier "puVar1") (+ "+") (number_literal "-0x2130")) () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);\n      *(undefined4 *)(iVar3 + 0xc) = uVar5;\n    }" ({ "{") (expression_statement "uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);" (assignment_expression "uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4)" (identifier "uVar5") (= "=") (call_expression "(*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4)" (parenthesized_expression "(*(code *)PTR_ParseCommandOption_003a9694)" (( "(") (pointer_expression "*(code *)PTR_ParseCommandOption_003a9694" (* "*") (cast_expression "(code *)PTR_ParseCommandOption_003a9694" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ParseCommandOption_003a9694"))) () ")")) (argument_list "(0x17,0,iVar4)" (( "(") (number_literal "0x17") (, ",") (number_literal "0") (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + 0xc) = uVar5;" (assignment_expression "*(undefined4 *)(iVar3 + 0xc) = uVar5" (pointer_expression "*(undefined4 *)(iVar3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0)" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x1e0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1e0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1e0)" (( "(") (binary_expression "param_1 + 0x1e0" (identifier "param_1") (+ "+") (number_literal "0x1e0")) () ")"))))) (; ";")) (} "}"))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

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

type_1 * function_1(type_2 *var_1)

{
  type_3 *var_3;
  type_3 *puVar2;
  type_1 *pQVar3;
  int var_4;
  type_4 DVar5;
  
  pQVar3 = (type_1 *)(*(type_5 *)PTR_AcquireCriticalMemory_003a9354)(0x18);
  (*(type_5 *)PTR_GetQuantizeInfo_003a9574)(pQVar3);
  puVar2 = PTR_GetImageOption_003a9168;
  var_3 = PTR_s_courses_003a88ec;
  if (var_1 != (type_2 *)0x0) {
    DVar5 = RiemersmaDitherMethod;
    if (var_1->dither == var_2) {
      DVar5 = NoDitherMethod;
    }
    pQVar3->dither_method = DVar5;
    var_4 = (*(type_5 *)puVar2)(var_1,var_3 + -0x2130);
    if (var_4 != 0) {
      DVar5 = (*(type_5 *)PTR_ParseCommandOption_003a9694)(0x17,0,var_4);
      pQVar3->dither_method = DVar5;
    }
    pQVar3->measure_error = var_1->verbose;
  }
  return pQVar3;
}


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

int MASKED(int param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  undefined4 uVar5;
  
  iVar3 = (*(code *)PTR_AcquireCriticalMemory_003a9354)(0x18);
  (*(code *)PTR_GetQuantizeInfo_003a9574)(iVar3);
  puVar2 = PTR_GetImageOption_003a9168;
  puVar1 = PTR_s_courses_003a88ec;
  if (param_1 != 0) {
    uVar5 = 2;
    if (*(int *)(param_1 + 0x1c8) == 0) {
      uVar5 = 1;
    }
    *(undefined4 *)(iVar3 + 0xc) = uVar5;
    iVar4 = (*(code *)puVar2)(param_1,puVar1 + -0x2130);
    if (iVar4 != 0) {
      uVar5 = (*(code *)PTR_ParseCommandOption_003a9694)(0x17,0,iVar4);
      *(undefined4 *)(iVar3 + 0xc) = uVar5;
    }
    *(undefined4 *)(iVar3 + 0x10) = *(undefined4 *)(param_1 + 0x1e0);
  }
  return iVar3;
}

