
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

png_uint_32 png_get_gAMA(png_const_structrp png_ptr,png_const_inforp info_ptr,double *file_gamma)

{
  if ((((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&
      (((info_ptr->colorspace).flags & 1) != 0)) && (file_gamma != (double *)0x0)) {
    *file_gamma = (double)(info_ptr->colorspace).gamma * DAT_0003c520;
    return 1;
  }
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

undefined4 png_get_gAMA(int param_1,int param_2,double *param_3)

{
  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&
     (param_3 != (double *)0x0)) {
    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;
    return 1;
  }
  return 0;
}


CALL 0x00014aa5
ADD EDX,0x32b6b
MOV ECX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP + 0x8]
TEST ECX,ECX
JZ 0x0001b239
TEST EAX,EAX
JZ 0x0001b239
TEST byte ptr [EAX + 0x72],0x1
JZ 0x0001b239
MOV ECX,dword ptr [ESP + 0xc]
TEST ECX,ECX
JNZ 0x0001b240
XOR EAX,EAX
RET
FILD dword ptr [EAX + 0x28]
FMUL qword ptr [EDX + 0xfffee7a0]
MOV EAX,dword ptr [ESP + 0xc]
FSTP qword ptr [EAX]
MOV EAX,0x1
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nundefined4 png_get_gAMA(int param_1,int param_2,double *param_3)\n\n{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)) {\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 png_get_gAMA(int param_1,int param_2,double *param_3)\n\n{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)) {\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_gAMA(int param_1,int param_2,double *param_3)" identifier (parameter_list "(int param_1,int param_2,double *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "double *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)) {\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }\n  return 0;\n}" { (if_statement "if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)) {\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }" if (parenthesized_expression "((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0))" ( (binary_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)" (parenthesized_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0))" ( (binary_expression "((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)" (parenthesized_expression "((param_1 != 0) && (param_2 != 0))" ( (binary_expression "(param_1 != 0) && (param_2 != 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) && (parenthesized_expression "((*(byte *)(param_2 + 0x72) & 1) != 0)" ( (binary_expression "(*(byte *)(param_2 + 0x72) & 1) != 0" (parenthesized_expression "(*(byte *)(param_2 + 0x72) & 1)" ( (binary_expression "*(byte *)(param_2 + 0x72) & 1" (pointer_expression "*(byte *)(param_2 + 0x72)" * (cast_expression "(byte *)(param_2 + 0x72)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x72)" ( (binary_expression "param_2 + 0x72" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(param_3 != (double *)0x0)" ( (binary_expression "param_3 != (double *)0x0" identifier != (cast_expression "(double *)0x0" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }" { (expression_statement "*param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;" (assignment_expression "*param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520" (pointer_expression "*param_3" * identifier) = (binary_expression "(double)*(int *)(param_2 + 0x28) * DAT_0003c520" (cast_expression "(double)*(int *)(param_2 + 0x28)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) * identifier)) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\npng_uint_32 png_get_gAMA(png_const_structrp png_ptr,png_const_inforp info_ptr,double *file_gamma)\n\n{\n  if ((((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      (((info_ptr->colorspace).flags & 1) != 0)) && (file_gamma != (double *)0x0)) {\n    *file_gamma = (double)(info_ptr->colorspace).gamma * DAT_0003c520;\n    return 1;\n  }\n  return 0;\n}\n\n" comment (function_definition "png_uint_32 png_get_gAMA(png_const_structrp png_ptr,png_const_inforp info_ptr,double *file_gamma)\n\n{\n  if ((((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      (((info_ptr->colorspace).flags & 1) != 0)) && (file_gamma != (double *)0x0)) {\n    *file_gamma = (double)(info_ptr->colorspace).gamma * DAT_0003c520;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_gAMA(png_const_structrp png_ptr,png_const_inforp info_ptr,double *file_gamma)" identifier (parameter_list "(png_const_structrp png_ptr,png_const_inforp info_ptr,double *file_gamma)" ( (parameter_declaration "png_const_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_const_inforp info_ptr" type_identifier identifier) , (parameter_declaration "double *file_gamma" primitive_type (pointer_declarator "*file_gamma" * identifier)) ))) (compound_statement "{\n  if ((((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      (((info_ptr->colorspace).flags & 1) != 0)) && (file_gamma != (double *)0x0)) {\n    *file_gamma = (double)(info_ptr->colorspace).gamma * DAT_0003c520;\n    return 1;\n  }\n  return 0;\n}" { (if_statement "if ((((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      (((info_ptr->colorspace).flags & 1) != 0)) && (file_gamma != (double *)0x0)) {\n    *file_gamma = (double)(info_ptr->colorspace).gamma * DAT_0003c520;\n    return 1;\n  }" if (parenthesized_expression "((((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      (((info_ptr->colorspace).flags & 1) != 0)) && (file_gamma != (double *)0x0))" ( (binary_expression "(((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      (((info_ptr->colorspace).flags & 1) != 0)) && (file_gamma != (double *)0x0)" (parenthesized_expression "(((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      (((info_ptr->colorspace).flags & 1) != 0))" ( (binary_expression "((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      (((info_ptr->colorspace).flags & 1) != 0)" (parenthesized_expression "((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0))" ( (binary_expression "(png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)" (parenthesized_expression "(png_ptr != (png_const_structrp)0x0)" ( (binary_expression "png_ptr != (png_const_structrp)0x0" identifier != (cast_expression "(png_const_structrp)0x0" ( (type_descriptor "png_const_structrp" type_identifier) ) number_literal)) )) && (parenthesized_expression "(info_ptr != (png_const_inforp)0x0)" ( (binary_expression "info_ptr != (png_const_inforp)0x0" identifier != (cast_expression "(png_const_inforp)0x0" ( (type_descriptor "png_const_inforp" type_identifier) ) number_literal)) ))) )) && (parenthesized_expression "(((info_ptr->colorspace).flags & 1) != 0)" ( (binary_expression "((info_ptr->colorspace).flags & 1) != 0" (parenthesized_expression "((info_ptr->colorspace).flags & 1)" ( (binary_expression "(info_ptr->colorspace).flags & 1" (field_expression "(info_ptr->colorspace).flags" (parenthesized_expression "(info_ptr->colorspace)" ( (field_expression "info_ptr->colorspace" identifier -> field_identifier) )) . field_identifier) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(file_gamma != (double *)0x0)" ( (binary_expression "file_gamma != (double *)0x0" identifier != (cast_expression "(double *)0x0" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    *file_gamma = (double)(info_ptr->colorspace).gamma * DAT_0003c520;\n    return 1;\n  }" { (expression_statement "*file_gamma = (double)(info_ptr->colorspace).gamma * DAT_0003c520;" (assignment_expression "*file_gamma = (double)(info_ptr->colorspace).gamma * DAT_0003c520" (pointer_expression "*file_gamma" * identifier) = (binary_expression "(double)(info_ptr->colorspace).gamma * DAT_0003c520" (cast_expression "(double)(info_ptr->colorspace).gamma" ( (type_descriptor "double" primitive_type) ) (field_expression "(info_ptr->colorspace).gamma" (parenthesized_expression "(info_ptr->colorspace)" ( (field_expression "info_ptr->colorspace" identifier -> field_identifier) )) . field_identifier)) * identifier)) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 png_get_gAMA(int param_1,int param_2,double *param_3)\n\n{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)) {\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 png_get_gAMA(int param_1,int param_2,double *param_3)\n\n{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)) {\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_gAMA(int param_1,int param_2,double *param_3)" identifier (parameter_list "(int param_1,int param_2,double *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "double *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)) {\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }\n  return 0;\n}" { (if_statement "if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)) {\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }" if (parenthesized_expression "((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0))" ( (binary_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)" (parenthesized_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0))" ( (binary_expression "((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)" (parenthesized_expression "((param_1 != 0) && (param_2 != 0))" ( (binary_expression "(param_1 != 0) && (param_2 != 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) && (parenthesized_expression "((*(byte *)(param_2 + 0x72) & 1) != 0)" ( (binary_expression "(*(byte *)(param_2 + 0x72) & 1) != 0" (parenthesized_expression "(*(byte *)(param_2 + 0x72) & 1)" ( (binary_expression "*(byte *)(param_2 + 0x72) & 1" (pointer_expression "*(byte *)(param_2 + 0x72)" * (cast_expression "(byte *)(param_2 + 0x72)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x72)" ( (binary_expression "param_2 + 0x72" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(param_3 != (double *)0x0)" ( (binary_expression "param_3 != (double *)0x0" identifier != (cast_expression "(double *)0x0" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }" { (expression_statement "*param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;" (assignment_expression "*param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520" (pointer_expression "*param_3" * identifier) = (binary_expression "(double)*(int *)(param_2 + 0x28) * DAT_0003c520" (cast_expression "(double)*(int *)(param_2 + 0x28)" ( (type_descriptor "double" primitive_type) ) (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) * identifier)) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) ))) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) * IDENT)) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 png_get_gAMA(int param_1,int param_2,double *param_3)\n\n{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)) {\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "png_get_gAMA(int param_1,int param_2,double *param_3)" (identifier "png_get_gAMA") (parameter_list "(int param_1,int param_2,double *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "double *param_3" (primitive_type "double") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)) {\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }\n  return 0;\n}" ({ "{") (if_statement "if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)) {\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }" (if "if") (parenthesized_expression "((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0))" (( "(") (binary_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&\n     (param_3 != (double *)0x0)" (parenthesized_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0))" (( "(") (binary_expression "((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)" (parenthesized_expression "((param_1 != 0) && (param_2 != 0))" (( "(") (binary_expression "(param_1 != 0) && (param_2 != 0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(param_2 + 0x72) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 0x72) & 1) != 0" (parenthesized_expression "(*(byte *)(param_2 + 0x72) & 1)" (( "(") (binary_expression "*(byte *)(param_2 + 0x72) & 1" (pointer_expression "*(byte *)(param_2 + 0x72)" (* "*") (cast_expression "(byte *)(param_2 + 0x72)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x72)" (( "(") (binary_expression "param_2 + 0x72" (identifier "param_2") (+ "+") (number_literal "0x72")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_3 != (double *)0x0)" (( "(") (binary_expression "param_3 != (double *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(double *)0x0" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;\n    return 1;\n  }" ({ "{") (expression_statement "*param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;" (assignment_expression "*param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "(double)*(int *)(param_2 + 0x28) * DAT_0003c520" (cast_expression "(double)*(int *)(param_2 + 0x28)" (( "(") (type_descriptor "double" (primitive_type "double")) () ")") (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")"))))) (* "*") (identifier "DAT_0003c520"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

type_1 function_1(type_2 var_1,type_3 var_2,double *var_3)

{
  if ((((var_1 != (type_2)0x0) && (var_2 != (type_3)0x0)) &&
      (((var_2->colorspace).flags & 1) != 0)) && (var_3 != (double *)0x0)) {
    *var_3 = (double)(var_2->colorspace).gamma * var_4;
    return 1;
  }
  return 0;
}


(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)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (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))) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier)))) (return_statement (number_literal)))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

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

{
  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 0x72) & 1) != 0)) &&
     (param_3 != (double *)0x0)) {
    *param_3 = (double)*(int *)(param_2 + 0x28) * DAT_0003c520;
    return 1;
  }
  return 0;
}

