
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x00033050 */
/* WARNING: Unknown calling convention */
/* 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 */

MagickRealType GetPixelInfoIntensity(Image *image,PixelInfo *pixel)

{
  longdouble lVar1;
  MagickRealType pixel_00;
  MagickRealType pixel_01;
  MagickRealType pixel_02;
  
  pixel_00 = pixel->red;
  pixel_01 = pixel->green;
  pixel_02 = pixel->blue;
  if ((image != (Image *)0x0) &&
     (image->intensity < (Rec709LuminancePixelIntensityMethod|BrightnessPixelIntensityMethod))) {
                    /* WARNING: Could not emulate address calculation at 0x00037cfb */
                    /* WARNING: Treating indirect jump as call */
    lVar1 = (longdouble)
            (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ +
                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity]))();
    return (MagickRealType)lVar1;
  }
  if (pixel->colorspace == RGBColorspace) {
    pixel_00 = EncodePixelGamma(pixel_00);
    pixel_01 = EncodePixelGamma(pixel_01);
    pixel_02 = EncodePixelGamma(pixel_02);
  }
  return pixel_02 * DAT_002a9c58 + pixel_01 * DAT_002a9c50 + pixel_00 * DAT_002a9c48;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x00033050 */

longdouble GetPixelInfoIntensity(int param_1,int param_2)

{
  double dVar1;
  double dVar2;
  double dVar3;
  longdouble lVar4;
  
  dVar1 = *(double *)(param_2 + 0x20);
  dVar2 = *(double *)(param_2 + 0x28);
  dVar3 = *(double *)(param_2 + 0x30);
  lVar4 = (longdouble)dVar3;
  if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {
                    /* WARNING: Could not emulate address calculation at 0x00037cfb */
                    /* WARNING: Treating indirect jump as call */
    lVar4 = (longdouble)
            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))
                      ();
    return lVar4;
  }
  if (*(int *)(param_2 + 4) == 0x15) {
    lVar4 = (longdouble)EncodePixelGamma(dVar1);
    dVar1 = (double)lVar4;
    lVar4 = (longdouble)EncodePixelGamma(dVar2);
    dVar2 = (double)lVar4;
    lVar4 = (longdouble)EncodePixelGamma(dVar3);
  }
  return lVar4 * (longdouble)DAT_002a9c58 +
         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48
  ;
}


JMP dword ptr [EBX + 0xac4]
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Switch with 1 destination removed at 0x00033050 */\n\nlongdouble GetPixelInfoIntensity(int param_1,int param_2)\n\n{\n  double dVar1;\n  double dVar2;\n  double dVar3;\n  longdouble lVar4;\n  \n  dVar1 = *(double *)(param_2 + 0x20);\n  dVar2 = *(double *)(param_2 + 0x28);\n  dVar3 = *(double *)(param_2 + 0x30);\n  lVar4 = (longdouble)dVar3;\n  if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {\n                    /* WARNING: Could not emulate address calculation at 0x00037cfb */\n                    /* WARNING: Treating indirect jump as call */\n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }\n  if (*(int *)(param_2 + 4) == 0x15) {\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }\n  return lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48\n  ;\n}\n\n" comment comment (function_definition "longdouble GetPixelInfoIntensity(int param_1,int param_2)\n\n{\n  double dVar1;\n  double dVar2;\n  double dVar3;\n  longdouble lVar4;\n  \n  dVar1 = *(double *)(param_2 + 0x20);\n  dVar2 = *(double *)(param_2 + 0x28);\n  dVar3 = *(double *)(param_2 + 0x30);\n  lVar4 = (longdouble)dVar3;\n  if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {\n                    /* WARNING: Could not emulate address calculation at 0x00037cfb */\n                    /* WARNING: Treating indirect jump as call */\n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }\n  if (*(int *)(param_2 + 4) == 0x15) {\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }\n  return lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48\n  ;\n}" type_identifier (function_declarator "GetPixelInfoIntensity(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  double dVar1;\n  double dVar2;\n  double dVar3;\n  longdouble lVar4;\n  \n  dVar1 = *(double *)(param_2 + 0x20);\n  dVar2 = *(double *)(param_2 + 0x28);\n  dVar3 = *(double *)(param_2 + 0x30);\n  lVar4 = (longdouble)dVar3;\n  if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {\n                    /* WARNING: Could not emulate address calculation at 0x00037cfb */\n                    /* WARNING: Treating indirect jump as call */\n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }\n  if (*(int *)(param_2 + 4) == 0x15) {\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }\n  return lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48\n  ;\n}" { (declaration "double dVar1;" primitive_type identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "longdouble lVar4;" type_identifier identifier ;) (expression_statement "dVar1 = *(double *)(param_2 + 0x20);" (assignment_expression "dVar1 = *(double *)(param_2 + 0x20)" identifier = (pointer_expression "*(double *)(param_2 + 0x20)" * (cast_expression "(double *)(param_2 + 0x20)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "dVar2 = *(double *)(param_2 + 0x28);" (assignment_expression "dVar2 = *(double *)(param_2 + 0x28)" identifier = (pointer_expression "*(double *)(param_2 + 0x28)" * (cast_expression "(double *)(param_2 + 0x28)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "dVar3 = *(double *)(param_2 + 0x30);" (assignment_expression "dVar3 = *(double *)(param_2 + 0x30)" identifier = (pointer_expression "*(double *)(param_2 + 0x30)" * (cast_expression "(double *)(param_2 + 0x30)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = (longdouble)dVar3;" (assignment_expression "lVar4 = (longdouble)dVar3" identifier = (cast_expression "(longdouble)dVar3" ( (type_descriptor "longdouble" type_identifier) ) identifier)) ;) (if_statement "if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {\n                    /* WARNING: Could not emulate address calculation at 0x00037cfb */\n                    /* WARNING: Treating indirect jump as call */\n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }" if (parenthesized_expression "((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10))" ( (binary_expression "(param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(uint *)(param_1 + 0x22c) < 10)" ( (binary_expression "*(uint *)(param_1 + 0x22c) < 10" (pointer_expression "*(uint *)(param_1 + 0x22c)" * (cast_expression "(uint *)(param_1 + 0x22c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x22c)" ( (binary_expression "param_1 + 0x22c" identifier + number_literal) )))) < number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Could not emulate address calculation at 0x00037cfb */\n                    /* WARNING: Treating indirect jump as call */\n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }" { comment comment (expression_statement "lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();" (assignment_expression "lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ()" identifier = (call_expression "(longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ()" (call_expression "(longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))" (parenthesized_expression "(longdouble)" ( identifier )) (argument_list "(*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))" ( (pointer_expression "*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4))" * (cast_expression "(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4))" ( (binary_expression "(int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)" (cast_expression "(int)&__DT_PLTGOT" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__DT_PLTGOT" & identifier)) + (pointer_expression "*(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)" * (cast_expression "(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)" ( (binary_expression "&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4" (pointer_expression "&DAT_002bf12c" & identifier) + (binary_expression "*(int *)(param_1 + 0x22c) * 4" (pointer_expression "*(int *)(param_1 + 0x22c)" * (cast_expression "(int *)(param_1 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x22c)" ( (binary_expression "param_1 + 0x22c" identifier + number_literal) )))) * number_literal)) ))))) )))) ))) (argument_list "()" ( )))) ;) (return_statement "return lVar4;" return identifier ;) })) (if_statement "if (*(int *)(param_2 + 4) == 0x15) {\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }" if (parenthesized_expression "(*(int *)(param_2 + 4) == 0x15)" ( (binary_expression "*(int *)(param_2 + 4) == 0x15" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }" { (expression_statement "lVar4 = (longdouble)EncodePixelGamma(dVar1);" (assignment_expression "lVar4 = (longdouble)EncodePixelGamma(dVar1)" identifier = (cast_expression "(longdouble)EncodePixelGamma(dVar1)" ( (type_descriptor "longdouble" type_identifier) ) (call_expression "EncodePixelGamma(dVar1)" identifier (argument_list "(dVar1)" ( identifier ))))) ;) (expression_statement "dVar1 = (double)lVar4;" (assignment_expression "dVar1 = (double)lVar4" identifier = (cast_expression "(double)lVar4" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "lVar4 = (longdouble)EncodePixelGamma(dVar2);" (assignment_expression "lVar4 = (longdouble)EncodePixelGamma(dVar2)" identifier = (cast_expression "(longdouble)EncodePixelGamma(dVar2)" ( (type_descriptor "longdouble" type_identifier) ) (call_expression "EncodePixelGamma(dVar2)" identifier (argument_list "(dVar2)" ( identifier ))))) ;) (expression_statement "dVar2 = (double)lVar4;" (assignment_expression "dVar2 = (double)lVar4" identifier = (cast_expression "(double)lVar4" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "lVar4 = (longdouble)EncodePixelGamma(dVar3);" (assignment_expression "lVar4 = (longdouble)EncodePixelGamma(dVar3)" identifier = (cast_expression "(longdouble)EncodePixelGamma(dVar3)" ( (type_descriptor "longdouble" type_identifier) ) (call_expression "EncodePixelGamma(dVar3)" identifier (argument_list "(dVar3)" ( identifier ))))) ;) })) (return_statement "return lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48\n  ;" return (binary_expression "lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48" (binary_expression "lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50" (binary_expression "lVar4 * (longdouble)DAT_002a9c58" identifier * (cast_expression "(longdouble)DAT_002a9c58" ( (type_descriptor "longdouble" type_identifier) ) identifier)) + (binary_expression "(longdouble)dVar2 * (longdouble)DAT_002a9c50" (cast_expression "(longdouble)dVar2" ( (type_descriptor "longdouble" type_identifier) ) identifier) * (cast_expression "(longdouble)DAT_002a9c50" ( (type_descriptor "longdouble" type_identifier) ) identifier))) + (binary_expression "(longdouble)dVar1 * (longdouble)DAT_002a9c48" (cast_expression "(longdouble)dVar1" ( (type_descriptor "longdouble" type_identifier) ) identifier) * (cast_expression "(longdouble)DAT_002a9c48" ( (type_descriptor "longdouble" type_identifier) ) identifier))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Switch with 1 destination removed at 0x00033050 */\n/* WARNING: Unknown calling convention */\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 "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n\nMagickRealType GetPixelInfoIntensity(Image *image,PixelInfo *pixel)\n\n{\n  longdouble lVar1;\n  MagickRealType pixel_00;\n  MagickRealType pixel_01;\n  MagickRealType pixel_02;\n  \n  pixel_00 = pixel->red;\n  pixel_01 = pixel->green;\n  pixel_02 = pixel->blue;\n  if ((image != (Image *)0x0) &&\n     (image->intensity < (Rec709LuminancePixelIntensityMethod|BrightnessPixelIntensityMethod))) {\n                    /* WARNING: Could not emulate address calculation at 0x00037cfb */\n                    /* WARNING: Treating indirect jump as call */\n    lVar1 = (longdouble)\n            (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity]))();\n    return (MagickRealType)lVar1;\n  }\n  if (pixel->colorspace == RGBColorspace) {\n    pixel_00 = EncodePixelGamma(pixel_00);\n    pixel_01 = EncodePixelGamma(pixel_01);\n    pixel_02 = EncodePixelGamma(pixel_02);\n  }\n  return pixel_02 * DAT_002a9c58 + pixel_01 * DAT_002a9c50 + pixel_00 * DAT_002a9c48;\n}\n\n" comment comment comment comment comment comment comment (function_definition "MagickRealType GetPixelInfoIntensity(Image *image,PixelInfo *pixel)\n\n{\n  longdouble lVar1;\n  MagickRealType pixel_00;\n  MagickRealType pixel_01;\n  MagickRealType pixel_02;\n  \n  pixel_00 = pixel->red;\n  pixel_01 = pixel->green;\n  pixel_02 = pixel->blue;\n  if ((image != (Image *)0x0) &&\n     (image->intensity < (Rec709LuminancePixelIntensityMethod|BrightnessPixelIntensityMethod))) {\n                    /* WARNING: Could not emulate address calculation at 0x00037cfb */\n                    /* WARNING: Treating indirect jump as call */\n    lVar1 = (longdouble)\n            (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity]))();\n    return (MagickRealType)lVar1;\n  }\n  if (pixel->colorspace == RGBColorspace) {\n    pixel_00 = EncodePixelGamma(pixel_00);\n    pixel_01 = EncodePixelGamma(pixel_01);\n    pixel_02 = EncodePixelGamma(pixel_02);\n  }\n  return pixel_02 * DAT_002a9c58 + pixel_01 * DAT_002a9c50 + pixel_00 * DAT_002a9c48;\n}" type_identifier (function_declarator "GetPixelInfoIntensity(Image *image,PixelInfo *pixel)" identifier (parameter_list "(Image *image,PixelInfo *pixel)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "PixelInfo *pixel" type_identifier (pointer_declarator "*pixel" * identifier)) ))) (compound_statement "{\n  longdouble lVar1;\n  MagickRealType pixel_00;\n  MagickRealType pixel_01;\n  MagickRealType pixel_02;\n  \n  pixel_00 = pixel->red;\n  pixel_01 = pixel->green;\n  pixel_02 = pixel->blue;\n  if ((image != (Image *)0x0) &&\n     (image->intensity < (Rec709LuminancePixelIntensityMethod|BrightnessPixelIntensityMethod))) {\n                    /* WARNING: Could not emulate address calculation at 0x00037cfb */\n                    /* WARNING: Treating indirect jump as call */\n    lVar1 = (longdouble)\n            (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity]))();\n    return (MagickRealType)lVar1;\n  }\n  if (pixel->colorspace == RGBColorspace) {\n    pixel_00 = EncodePixelGamma(pixel_00);\n    pixel_01 = EncodePixelGamma(pixel_01);\n    pixel_02 = EncodePixelGamma(pixel_02);\n  }\n  return pixel_02 * DAT_002a9c58 + pixel_01 * DAT_002a9c50 + pixel_00 * DAT_002a9c48;\n}" { (declaration "longdouble lVar1;" type_identifier identifier ;) (declaration "MagickRealType pixel_00;" type_identifier identifier ;) (declaration "MagickRealType pixel_01;" type_identifier identifier ;) (declaration "MagickRealType pixel_02;" type_identifier identifier ;) (expression_statement "pixel_00 = pixel->red;" (assignment_expression "pixel_00 = pixel->red" identifier = (field_expression "pixel->red" identifier -> field_identifier)) ;) (expression_statement "pixel_01 = pixel->green;" (assignment_expression "pixel_01 = pixel->green" identifier = (field_expression "pixel->green" identifier -> field_identifier)) ;) (expression_statement "pixel_02 = pixel->blue;" (assignment_expression "pixel_02 = pixel->blue" identifier = (field_expression "pixel->blue" identifier -> field_identifier)) ;) (if_statement "if ((image != (Image *)0x0) &&\n     (image->intensity < (Rec709LuminancePixelIntensityMethod|BrightnessPixelIntensityMethod))) {\n                    /* WARNING: Could not emulate address calculation at 0x00037cfb */\n                    /* WARNING: Treating indirect jump as call */\n    lVar1 = (longdouble)\n            (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity]))();\n    return (MagickRealType)lVar1;\n  }" if (parenthesized_expression "((image != (Image *)0x0) &&\n     (image->intensity < (Rec709LuminancePixelIntensityMethod|BrightnessPixelIntensityMethod)))" ( (binary_expression "(image != (Image *)0x0) &&\n     (image->intensity < (Rec709LuminancePixelIntensityMethod|BrightnessPixelIntensityMethod))" (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)) )) && (parenthesized_expression "(image->intensity < (Rec709LuminancePixelIntensityMethod|BrightnessPixelIntensityMethod))" ( (binary_expression "image->intensity < (Rec709LuminancePixelIntensityMethod|BrightnessPixelIntensityMethod)" (field_expression "image->intensity" identifier -> field_identifier) < (parenthesized_expression "(Rec709LuminancePixelIntensityMethod|BrightnessPixelIntensityMethod)" ( (binary_expression "Rec709LuminancePixelIntensityMethod|BrightnessPixelIntensityMethod" identifier | identifier) ))) ))) )) (compound_statement "{\n                    /* WARNING: Could not emulate address calculation at 0x00037cfb */\n                    /* WARNING: Treating indirect jump as call */\n    lVar1 = (longdouble)\n            (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity]))();\n    return (MagickRealType)lVar1;\n  }" { comment comment (expression_statement "lVar1 = (longdouble)\n            (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity]))();" (assignment_expression "lVar1 = (longdouble)\n            (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity]))()" identifier = (call_expression "(longdouble)\n            (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity]))()" (call_expression "(longdouble)\n            (*(code *)((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity]))" (parenthesized_expression "(longdouble)" ( identifier )) (argument_list "(*(code *)((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity]))" ( (pointer_expression "*(code *)((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity])" * (cast_expression "(code *)((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity])" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity])" ( (binary_expression "(int)&_GLOBAL_OFFSET_TABLE_ +\n                      (&switchD_00037d04::switchdataD_002bf12c)[image->intensity]" (cast_expression "(int)&_GLOBAL_OFFSET_TABLE_" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&_GLOBAL_OFFSET_TABLE_" & identifier)) + (subscript_expression "(&switchD_00037d04::switchdataD_002bf12c)[image->intensity]" (parenthesized_expression "(&switchD_00037d04::switchdataD_002bf12c)" ( (ERROR "&switchD_00037d04::" (pointer_expression "&switchD_00037d04" & identifier) : :) identifier )) [ (field_expression "image->intensity" identifier -> field_identifier) ])) )))) ))) (argument_list "()" ( )))) ;) (return_statement "return (MagickRealType)lVar1;" return (cast_expression "(MagickRealType)lVar1" ( (type_descriptor "MagickRealType" type_identifier) ) identifier) ;) })) (if_statement "if (pixel->colorspace == RGBColorspace) {\n    pixel_00 = EncodePixelGamma(pixel_00);\n    pixel_01 = EncodePixelGamma(pixel_01);\n    pixel_02 = EncodePixelGamma(pixel_02);\n  }" if (parenthesized_expression "(pixel->colorspace == RGBColorspace)" ( (binary_expression "pixel->colorspace == RGBColorspace" (field_expression "pixel->colorspace" identifier -> field_identifier) == identifier) )) (compound_statement "{\n    pixel_00 = EncodePixelGamma(pixel_00);\n    pixel_01 = EncodePixelGamma(pixel_01);\n    pixel_02 = EncodePixelGamma(pixel_02);\n  }" { (expression_statement "pixel_00 = EncodePixelGamma(pixel_00);" (assignment_expression "pixel_00 = EncodePixelGamma(pixel_00)" identifier = (call_expression "EncodePixelGamma(pixel_00)" identifier (argument_list "(pixel_00)" ( identifier )))) ;) (expression_statement "pixel_01 = EncodePixelGamma(pixel_01);" (assignment_expression "pixel_01 = EncodePixelGamma(pixel_01)" identifier = (call_expression "EncodePixelGamma(pixel_01)" identifier (argument_list "(pixel_01)" ( identifier )))) ;) (expression_statement "pixel_02 = EncodePixelGamma(pixel_02);" (assignment_expression "pixel_02 = EncodePixelGamma(pixel_02)" identifier = (call_expression "EncodePixelGamma(pixel_02)" identifier (argument_list "(pixel_02)" ( identifier )))) ;) })) (return_statement "return pixel_02 * DAT_002a9c58 + pixel_01 * DAT_002a9c50 + pixel_00 * DAT_002a9c48;" return (binary_expression "pixel_02 * DAT_002a9c58 + pixel_01 * DAT_002a9c50 + pixel_00 * DAT_002a9c48" (binary_expression "pixel_02 * DAT_002a9c58 + pixel_01 * DAT_002a9c50" (binary_expression "pixel_02 * DAT_002a9c58" identifier * identifier) + (binary_expression "pixel_01 * DAT_002a9c50" identifier * identifier)) + (binary_expression "pixel_00 * DAT_002a9c48" identifier * identifier)) ;) })))
(translation_unit "longdouble GetPixelInfoIntensity(int param_1,int param_2)\n\n{\n  double dVar1;\n  double dVar2;\n  double dVar3;\n  longdouble lVar4;\n  \n  dVar1 = *(double *)(param_2 + 0x20);\n  dVar2 = *(double *)(param_2 + 0x28);\n  dVar3 = *(double *)(param_2 + 0x30);\n  lVar4 = (longdouble)dVar3;\n  if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {\n                    \n                    \n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }\n  if (*(int *)(param_2 + 4) == 0x15) {\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }\n  return lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48\n  ;\n}\n\n" (function_definition "longdouble GetPixelInfoIntensity(int param_1,int param_2)\n\n{\n  double dVar1;\n  double dVar2;\n  double dVar3;\n  longdouble lVar4;\n  \n  dVar1 = *(double *)(param_2 + 0x20);\n  dVar2 = *(double *)(param_2 + 0x28);\n  dVar3 = *(double *)(param_2 + 0x30);\n  lVar4 = (longdouble)dVar3;\n  if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {\n                    \n                    \n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }\n  if (*(int *)(param_2 + 4) == 0x15) {\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }\n  return lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48\n  ;\n}" type_identifier (function_declarator "GetPixelInfoIntensity(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  double dVar1;\n  double dVar2;\n  double dVar3;\n  longdouble lVar4;\n  \n  dVar1 = *(double *)(param_2 + 0x20);\n  dVar2 = *(double *)(param_2 + 0x28);\n  dVar3 = *(double *)(param_2 + 0x30);\n  lVar4 = (longdouble)dVar3;\n  if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {\n                    \n                    \n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }\n  if (*(int *)(param_2 + 4) == 0x15) {\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }\n  return lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48\n  ;\n}" { (declaration "double dVar1;" primitive_type identifier ;) (declaration "double dVar2;" primitive_type identifier ;) (declaration "double dVar3;" primitive_type identifier ;) (declaration "longdouble lVar4;" type_identifier identifier ;) (expression_statement "dVar1 = *(double *)(param_2 + 0x20);" (assignment_expression "dVar1 = *(double *)(param_2 + 0x20)" identifier = (pointer_expression "*(double *)(param_2 + 0x20)" * (cast_expression "(double *)(param_2 + 0x20)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "dVar2 = *(double *)(param_2 + 0x28);" (assignment_expression "dVar2 = *(double *)(param_2 + 0x28)" identifier = (pointer_expression "*(double *)(param_2 + 0x28)" * (cast_expression "(double *)(param_2 + 0x28)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "dVar3 = *(double *)(param_2 + 0x30);" (assignment_expression "dVar3 = *(double *)(param_2 + 0x30)" identifier = (pointer_expression "*(double *)(param_2 + 0x30)" * (cast_expression "(double *)(param_2 + 0x30)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = (longdouble)dVar3;" (assignment_expression "lVar4 = (longdouble)dVar3" identifier = (cast_expression "(longdouble)dVar3" ( (type_descriptor "longdouble" type_identifier) ) identifier)) ;) (if_statement "if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {\n                    \n                    \n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }" if (parenthesized_expression "((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10))" ( (binary_expression "(param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(uint *)(param_1 + 0x22c) < 10)" ( (binary_expression "*(uint *)(param_1 + 0x22c) < 10" (pointer_expression "*(uint *)(param_1 + 0x22c)" * (cast_expression "(uint *)(param_1 + 0x22c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x22c)" ( (binary_expression "param_1 + 0x22c" identifier + number_literal) )))) < number_literal) ))) )) (compound_statement "{\n                    \n                    \n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }" { (expression_statement "lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();" (assignment_expression "lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ()" identifier = (call_expression "(longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ()" (call_expression "(longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))" (parenthesized_expression "(longdouble)" ( identifier )) (argument_list "(*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))" ( (pointer_expression "*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4))" * (cast_expression "(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4))" ( (binary_expression "(int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)" (cast_expression "(int)&__DT_PLTGOT" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&__DT_PLTGOT" & identifier)) + (pointer_expression "*(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)" * (cast_expression "(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)" ( (binary_expression "&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4" (pointer_expression "&DAT_002bf12c" & identifier) + (binary_expression "*(int *)(param_1 + 0x22c) * 4" (pointer_expression "*(int *)(param_1 + 0x22c)" * (cast_expression "(int *)(param_1 + 0x22c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x22c)" ( (binary_expression "param_1 + 0x22c" identifier + number_literal) )))) * number_literal)) ))))) )))) ))) (argument_list "()" ( )))) ;) (return_statement "return lVar4;" return identifier ;) })) (if_statement "if (*(int *)(param_2 + 4) == 0x15) {\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }" if (parenthesized_expression "(*(int *)(param_2 + 4) == 0x15)" ( (binary_expression "*(int *)(param_2 + 4) == 0x15" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }" { (expression_statement "lVar4 = (longdouble)EncodePixelGamma(dVar1);" (assignment_expression "lVar4 = (longdouble)EncodePixelGamma(dVar1)" identifier = (cast_expression "(longdouble)EncodePixelGamma(dVar1)" ( (type_descriptor "longdouble" type_identifier) ) (call_expression "EncodePixelGamma(dVar1)" identifier (argument_list "(dVar1)" ( identifier ))))) ;) (expression_statement "dVar1 = (double)lVar4;" (assignment_expression "dVar1 = (double)lVar4" identifier = (cast_expression "(double)lVar4" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "lVar4 = (longdouble)EncodePixelGamma(dVar2);" (assignment_expression "lVar4 = (longdouble)EncodePixelGamma(dVar2)" identifier = (cast_expression "(longdouble)EncodePixelGamma(dVar2)" ( (type_descriptor "longdouble" type_identifier) ) (call_expression "EncodePixelGamma(dVar2)" identifier (argument_list "(dVar2)" ( identifier ))))) ;) (expression_statement "dVar2 = (double)lVar4;" (assignment_expression "dVar2 = (double)lVar4" identifier = (cast_expression "(double)lVar4" ( (type_descriptor "double" primitive_type) ) identifier)) ;) (expression_statement "lVar4 = (longdouble)EncodePixelGamma(dVar3);" (assignment_expression "lVar4 = (longdouble)EncodePixelGamma(dVar3)" identifier = (cast_expression "(longdouble)EncodePixelGamma(dVar3)" ( (type_descriptor "longdouble" type_identifier) ) (call_expression "EncodePixelGamma(dVar3)" identifier (argument_list "(dVar3)" ( identifier ))))) ;) })) (return_statement "return lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48\n  ;" return (binary_expression "lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48" (binary_expression "lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50" (binary_expression "lVar4 * (longdouble)DAT_002a9c58" identifier * (cast_expression "(longdouble)DAT_002a9c58" ( (type_descriptor "longdouble" type_identifier) ) identifier)) + (binary_expression "(longdouble)dVar2 * (longdouble)DAT_002a9c50" (cast_expression "(longdouble)dVar2" ( (type_descriptor "longdouble" type_identifier) ) identifier) * (cast_expression "(longdouble)DAT_002a9c50" ( (type_descriptor "longdouble" type_identifier) ) identifier))) + (binary_expression "(longdouble)dVar1 * (longdouble)DAT_002a9c48" (cast_expression "(longdouble)dVar1" ( (type_descriptor "longdouble" type_identifier) ) identifier) * (cast_expression "(longdouble)DAT_002a9c48" ( (type_descriptor "longdouble" type_identifier) ) identifier))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) ))))) )))) ))) (argument_list ( )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) })) (return_statement return (binary_expression (binary_expression (binary_expression IDENT * (cast_expression ( (type_descriptor TYPE) ) IDENT)) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) })))
(function_definition "longdouble GetPixelInfoIntensity(int param_1,int param_2)\n\n{\n  double dVar1;\n  double dVar2;\n  double dVar3;\n  longdouble lVar4;\n  \n  dVar1 = *(double *)(param_2 + 0x20);\n  dVar2 = *(double *)(param_2 + 0x28);\n  dVar3 = *(double *)(param_2 + 0x30);\n  lVar4 = (longdouble)dVar3;\n  if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {\n                    \n                    \n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }\n  if (*(int *)(param_2 + 4) == 0x15) {\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }\n  return lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48\n  ;\n}" (type_identifier "longdouble") (function_declarator "GetPixelInfoIntensity(int param_1,int param_2)" (identifier "GetPixelInfoIntensity") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  double dVar1;\n  double dVar2;\n  double dVar3;\n  longdouble lVar4;\n  \n  dVar1 = *(double *)(param_2 + 0x20);\n  dVar2 = *(double *)(param_2 + 0x28);\n  dVar3 = *(double *)(param_2 + 0x30);\n  lVar4 = (longdouble)dVar3;\n  if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {\n                    \n                    \n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }\n  if (*(int *)(param_2 + 4) == 0x15) {\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }\n  return lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48\n  ;\n}" ({ "{") (declaration "double dVar1;" (primitive_type "double") (identifier "dVar1") (; ";")) (declaration "double dVar2;" (primitive_type "double") (identifier "dVar2") (; ";")) (declaration "double dVar3;" (primitive_type "double") (identifier "dVar3") (; ";")) (declaration "longdouble lVar4;" (type_identifier "longdouble") (identifier "lVar4") (; ";")) (expression_statement "dVar1 = *(double *)(param_2 + 0x20);" (assignment_expression "dVar1 = *(double *)(param_2 + 0x20)" (identifier "dVar1") (= "=") (pointer_expression "*(double *)(param_2 + 0x20)" (* "*") (cast_expression "(double *)(param_2 + 0x20)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "dVar2 = *(double *)(param_2 + 0x28);" (assignment_expression "dVar2 = *(double *)(param_2 + 0x28)" (identifier "dVar2") (= "=") (pointer_expression "*(double *)(param_2 + 0x28)" (* "*") (cast_expression "(double *)(param_2 + 0x28)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "dVar3 = *(double *)(param_2 + 0x30);" (assignment_expression "dVar3 = *(double *)(param_2 + 0x30)" (identifier "dVar3") (= "=") (pointer_expression "*(double *)(param_2 + 0x30)" (* "*") (cast_expression "(double *)(param_2 + 0x30)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "lVar4 = (longdouble)dVar3;" (assignment_expression "lVar4 = (longdouble)dVar3" (identifier "lVar4") (= "=") (cast_expression "(longdouble)dVar3" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (identifier "dVar3"))) (; ";")) (if_statement "if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {\n                    \n                    \n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }" (if "if") (parenthesized_expression "((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10))" (( "(") (binary_expression "(param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(uint *)(param_1 + 0x22c) < 10)" (( "(") (binary_expression "*(uint *)(param_1 + 0x22c) < 10" (pointer_expression "*(uint *)(param_1 + 0x22c)" (* "*") (cast_expression "(uint *)(param_1 + 0x22c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x22c)" (( "(") (binary_expression "param_1 + 0x22c" (identifier "param_1") (+ "+") (number_literal "0x22c")) () ")")))) (< "<") (number_literal "10")) () ")"))) () ")")) (compound_statement "{\n                    \n                    \n    lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();\n    return lVar4;\n  }" ({ "{") (expression_statement "lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ();" (assignment_expression "lVar4 = (longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ()" (identifier "lVar4") (= "=") (call_expression "(longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))\n                      ()" (call_expression "(longdouble)\n            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))" (parenthesized_expression "(longdouble)" (( "(") (identifier "longdouble") () ")")) (argument_list "(*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))" (( "(") (pointer_expression "*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4))" (* "*") (cast_expression "(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4))" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4))" (( "(") (binary_expression "(int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)" (cast_expression "(int)&__DT_PLTGOT" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT"))) (+ "+") (pointer_expression "*(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)" (* "*") (cast_expression "(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)" (( "(") (binary_expression "&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4" (pointer_expression "&DAT_002bf12c" (& "&") (identifier "DAT_002bf12c")) (+ "+") (binary_expression "*(int *)(param_1 + 0x22c) * 4" (pointer_expression "*(int *)(param_1 + 0x22c)" (* "*") (cast_expression "(int *)(param_1 + 0x22c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x22c)" (( "(") (binary_expression "param_1 + 0x22c" (identifier "param_1") (+ "+") (number_literal "0x22c")) () ")")))) (* "*") (number_literal "4"))) () ")"))))) () ")")))) () ")"))) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return lVar4;" (return "return") (identifier "lVar4") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_2 + 4) == 0x15) {\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 4) == 0x15)" (( "(") (binary_expression "*(int *)(param_2 + 4) == 0x15" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0x15")) () ")")) (compound_statement "{\n    lVar4 = (longdouble)EncodePixelGamma(dVar1);\n    dVar1 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar2);\n    dVar2 = (double)lVar4;\n    lVar4 = (longdouble)EncodePixelGamma(dVar3);\n  }" ({ "{") (expression_statement "lVar4 = (longdouble)EncodePixelGamma(dVar1);" (assignment_expression "lVar4 = (longdouble)EncodePixelGamma(dVar1)" (identifier "lVar4") (= "=") (cast_expression "(longdouble)EncodePixelGamma(dVar1)" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (call_expression "EncodePixelGamma(dVar1)" (identifier "EncodePixelGamma") (argument_list "(dVar1)" (( "(") (identifier "dVar1") () ")"))))) (; ";")) (expression_statement "dVar1 = (double)lVar4;" (assignment_expression "dVar1 = (double)lVar4" (identifier "dVar1") (= "=") (cast_expression "(double)lVar4" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "lVar4"))) (; ";")) (expression_statement "lVar4 = (longdouble)EncodePixelGamma(dVar2);" (assignment_expression "lVar4 = (longdouble)EncodePixelGamma(dVar2)" (identifier "lVar4") (= "=") (cast_expression "(longdouble)EncodePixelGamma(dVar2)" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (call_expression "EncodePixelGamma(dVar2)" (identifier "EncodePixelGamma") (argument_list "(dVar2)" (( "(") (identifier "dVar2") () ")"))))) (; ";")) (expression_statement "dVar2 = (double)lVar4;" (assignment_expression "dVar2 = (double)lVar4" (identifier "dVar2") (= "=") (cast_expression "(double)lVar4" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (identifier "lVar4"))) (; ";")) (expression_statement "lVar4 = (longdouble)EncodePixelGamma(dVar3);" (assignment_expression "lVar4 = (longdouble)EncodePixelGamma(dVar3)" (identifier "lVar4") (= "=") (cast_expression "(longdouble)EncodePixelGamma(dVar3)" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (call_expression "EncodePixelGamma(dVar3)" (identifier "EncodePixelGamma") (argument_list "(dVar3)" (( "(") (identifier "dVar3") () ")"))))) (; ";")) (} "}"))) (return_statement "return lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48\n  ;" (return "return") (binary_expression "lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48" (binary_expression "lVar4 * (longdouble)DAT_002a9c58 +\n         (longdouble)dVar2 * (longdouble)DAT_002a9c50" (binary_expression "lVar4 * (longdouble)DAT_002a9c58" (identifier "lVar4") (* "*") (cast_expression "(longdouble)DAT_002a9c58" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (identifier "DAT_002a9c58"))) (+ "+") (binary_expression "(longdouble)dVar2 * (longdouble)DAT_002a9c50" (cast_expression "(longdouble)dVar2" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (identifier "dVar2")) (* "*") (cast_expression "(longdouble)DAT_002a9c50" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (identifier "DAT_002a9c50")))) (+ "+") (binary_expression "(longdouble)dVar1 * (longdouble)DAT_002a9c48" (cast_expression "(longdouble)dVar1" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (identifier "dVar1")) (* "*") (cast_expression "(longdouble)DAT_002a9c48" (( "(") (type_descriptor "longdouble" (type_identifier "longdouble")) () ")") (identifier "DAT_002a9c48")))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x00033050 */
/* WARNING: Unknown calling convention */
/* 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 */

type_1 function_1(type_2 *var_1,type_3 *pixel)

{
  type_4 lVar1;
  type_1 var_10;
  type_1 var_8;
  type_1 var_6;
  
  var_10 = pixel->red;
  var_8 = pixel->green;
  var_6 = pixel->blue;
  if ((var_1 != (type_2 *)0x0) &&
     (var_1->intensity < (var_2|var_3))) {
                    /* WARNING: Could not emulate address calculation at 0x00037cfb */
                    /* WARNING: Treating indirect jump as call */
    lVar1 = (type_4)
            (*(type_5 *)((int)&_GLOBAL_OFFSET_TABLE_ +
                      (&switchD_00037d04::switchdataD_002bf12c)[var_1->intensity]))();
    return (type_1)lVar1;
  }
  if (pixel->colorspace == var_4) {
    var_10 = var_5(var_10);
    var_8 = var_5(var_8);
    var_6 = var_5(var_6);
  }
  return var_6 * var_7 + var_8 * var_9 + var_10 * var_11;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x00033050 */

longdouble MASKED(int param_1,int param_2)

{
  double dVar1;
  double dVar2;
  double dVar3;
  longdouble lVar4;
  
  dVar1 = *(double *)(param_2 + 0x20);
  dVar2 = *(double *)(param_2 + 0x28);
  dVar3 = *(double *)(param_2 + 0x30);
  lVar4 = (longdouble)dVar3;
  if ((param_1 != 0) && (*(uint *)(param_1 + 0x22c) < 10)) {
                    /* WARNING: Could not emulate address calculation at 0x00037cfb */
                    /* WARNING: Treating indirect jump as call */
    lVar4 = (longdouble)
            (*(code *)((int)&__DT_PLTGOT + *(int *)(&DAT_002bf12c + *(int *)(param_1 + 0x22c) * 4)))
                      ();
    return lVar4;
  }
  if (*(int *)(param_2 + 4) == 0x15) {
    lVar4 = (longdouble)EncodePixelGamma(dVar1);
    dVar1 = (double)lVar4;
    lVar4 = (longdouble)EncodePixelGamma(dVar2);
    dVar2 = (double)lVar4;
    lVar4 = (longdouble)EncodePixelGamma(dVar3);
  }
  return lVar4 * (longdouble)DAT_002a9c58 +
         (longdouble)dVar2 * (longdouble)DAT_002a9c50 + (longdouble)dVar1 * (longdouble)DAT_002a9c48
  ;
}

