
/* WARNING: Unknown calling convention */

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)) {
    if (file_gamma != (double *)0x0) {
      *file_gamma = (double)(info_ptr->colorspace).gamma * *(double *)(PTR_s_nt_0005301c + -0xd50);
      return 1;
    }
    return 0;
  }
  return 0;
}



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

{
  if (((param_1 != 0) && (param_2 != 0)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {
    if (param_3 != (double *)0x0) {
      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);
      return 1;
    }
    return 0;
  }
  return 0;
}


lui gp,0x4
addiu gp,gp,-0x550
addu gp,gp,t9
beq a0,zero,0x0001b598
_nop
beq a1,zero,0x0001b598
_nop
lhu v0,0x72(a1)
andi v0,v0,0x1
beq v0,zero,0x0001b598
_nop
beq a2,zero,0x0001b5a0
_nop
lw v1,0x28(a1)
li v0,0x1
mtc1 v1,f0
lw v1,-0x7fd4(gp)
ldc1 f2,-0xd50(v1)
cvt.d.W f0,f0
mul.D f0,f0,f2
jr ra
_sdc1 f0,0x0(a2)
jr ra
_or v0,zero,zero
jr ra
_or v0,zero,zero
(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)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\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)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\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)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\n  }\n  return 0;\n}" { (if_statement "if (((param_1 != 0) && (param_2 != 0)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\n  }" if (parenthesized_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0))" ( (binary_expression "((param_1 != 0) && (param_2 != 0)) && ((*(ushort *)(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 "((*(ushort *)(param_2 + 0x72) & 1) != 0)" ( (binary_expression "(*(ushort *)(param_2 + 0x72) & 1) != 0" (parenthesized_expression "(*(ushort *)(param_2 + 0x72) & 1)" ( (binary_expression "*(ushort *)(param_2 + 0x72) & 1" (pointer_expression "*(ushort *)(param_2 + 0x72)" * (cast_expression "(ushort *)(param_2 + 0x72)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x72)" ( (binary_expression "param_2 + 0x72" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\n  }" { (if_statement "if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }" if (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) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }" { (expression_statement "*param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);" (assignment_expression "*param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50)" (pointer_expression "*param_3" * identifier) = (binary_expression "(double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50)" (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) ))))) * (pointer_expression "*(double *)(PTR_s_nt_0005301c + -0xd50)" * (cast_expression "(double *)(PTR_s_nt_0005301c + -0xd50)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_nt_0005301c + -0xd50)" ( (binary_expression "PTR_s_nt_0005301c + -0xd50" identifier + number_literal) )))))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\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)) {\n    if (file_gamma != (double *)0x0) {\n      *file_gamma = (double)(info_ptr->colorspace).gamma * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\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)) {\n    if (file_gamma != (double *)0x0) {\n      *file_gamma = (double)(info_ptr->colorspace).gamma * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\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)) {\n    if (file_gamma != (double *)0x0) {\n      *file_gamma = (double)(info_ptr->colorspace).gamma * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\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)) {\n    if (file_gamma != (double *)0x0) {\n      *file_gamma = (double)(info_ptr->colorspace).gamma * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\n  }" if (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) ))) )) (compound_statement "{\n    if (file_gamma != (double *)0x0) {\n      *file_gamma = (double)(info_ptr->colorspace).gamma * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\n  }" { (if_statement "if (file_gamma != (double *)0x0) {\n      *file_gamma = (double)(info_ptr->colorspace).gamma * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }" if (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 * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }" { (expression_statement "*file_gamma = (double)(info_ptr->colorspace).gamma * *(double *)(PTR_s_nt_0005301c + -0xd50);" (assignment_expression "*file_gamma = (double)(info_ptr->colorspace).gamma * *(double *)(PTR_s_nt_0005301c + -0xd50)" (pointer_expression "*file_gamma" * identifier) = (binary_expression "(double)(info_ptr->colorspace).gamma * *(double *)(PTR_s_nt_0005301c + -0xd50)" (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)) * (pointer_expression "*(double *)(PTR_s_nt_0005301c + -0xd50)" * (cast_expression "(double *)(PTR_s_nt_0005301c + -0xd50)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_nt_0005301c + -0xd50)" ( (binary_expression "PTR_s_nt_0005301c + -0xd50" identifier + number_literal) )))))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" 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)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\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)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\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)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\n  }\n  return 0;\n}" { (if_statement "if (((param_1 != 0) && (param_2 != 0)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\n  }" if (parenthesized_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0))" ( (binary_expression "((param_1 != 0) && (param_2 != 0)) && ((*(ushort *)(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 "((*(ushort *)(param_2 + 0x72) & 1) != 0)" ( (binary_expression "(*(ushort *)(param_2 + 0x72) & 1) != 0" (parenthesized_expression "(*(ushort *)(param_2 + 0x72) & 1)" ( (binary_expression "*(ushort *)(param_2 + 0x72) & 1" (pointer_expression "*(ushort *)(param_2 + 0x72)" * (cast_expression "(ushort *)(param_2 + 0x72)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x72)" ( (binary_expression "param_2 + 0x72" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\n  }" { (if_statement "if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }" if (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) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }" { (expression_statement "*param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);" (assignment_expression "*param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50)" (pointer_expression "*param_3" * identifier) = (binary_expression "(double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50)" (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) ))))) * (pointer_expression "*(double *)(PTR_s_nt_0005301c + -0xd50)" * (cast_expression "(double *)(PTR_s_nt_0005301c + -0xd50)" ( (type_descriptor "double *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_nt_0005301c + -0xd50)" ( (binary_expression "PTR_s_nt_0005301c + -0xd50" identifier + number_literal) )))))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" 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 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) ))) )) (compound_statement { (if_statement if (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) ))))) * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (return_statement return LIT ;) })) (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)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\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)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\n  }\n  return 0;\n}" ({ "{") (if_statement "if (((param_1 != 0) && (param_2 != 0)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0))" (( "(") (binary_expression "((param_1 != 0) && (param_2 != 0)) && ((*(ushort *)(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 "((*(ushort *)(param_2 + 0x72) & 1) != 0)" (( "(") (binary_expression "(*(ushort *)(param_2 + 0x72) & 1) != 0" (parenthesized_expression "(*(ushort *)(param_2 + 0x72) & 1)" (( "(") (binary_expression "*(ushort *)(param_2 + 0x72) & 1" (pointer_expression "*(ushort *)(param_2 + 0x72)" (* "*") (cast_expression "(ushort *)(param_2 + 0x72)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (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")) () ")"))) () ")")) (compound_statement "{\n    if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }\n    return 0;\n  }" ({ "{") (if_statement "if (param_3 != (double *)0x0) {\n      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }" (if "if") (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) * *(double *)(PTR_s_nt_0005301c + -0xd50);\n      return 1;\n    }" ({ "{") (expression_statement "*param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);" (assignment_expression "*param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (binary_expression "(double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50)" (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")) () ")"))))) (* "*") (pointer_expression "*(double *)(PTR_s_nt_0005301c + -0xd50)" (* "*") (cast_expression "(double *)(PTR_s_nt_0005301c + -0xd50)" (( "(") (type_descriptor "double *" (primitive_type "double") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_nt_0005301c + -0xd50)" (( "(") (binary_expression "PTR_s_nt_0005301c + -0xd50" (identifier "PTR_s_nt_0005301c") (+ "+") (number_literal "-0xd50")) () ")")))))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

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)) {
    if (var_3 != (double *)0x0) {
      *var_3 = (double)(var_2->colorspace).gamma * *(double *)(var_4 + -0xd50);
      return 1;
    }
    return 0;
  }
  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: (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))))) consequence: (compound_statement (if_statement condition: (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: (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)))))))) (return_statement (number_literal)))) (return_statement (number_literal)))) (return_statement (number_literal)))))

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

{
  if (((param_1 != 0) && (param_2 != 0)) && ((*(ushort *)(param_2 + 0x72) & 1) != 0)) {
    if (param_3 != (double *)0x0) {
      *param_3 = (double)*(int *)(param_2 + 0x28) * *(double *)(PTR_s_nt_0005301c + -0xd50);
      return 1;
    }
    return 0;
  }
  return 0;
}

