
/* WARNING: Unknown calling convention */

png_int_32 png_get_x_offset_pixels(png_const_structrp png_ptr,png_const_inforp info_ptr)

{
  if ((((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&
      ((info_ptr->valid & 0x100) != 0)) && (info_ptr->offset_unit_type == '\0')) {
    return info_ptr->x_offset;
  }
  return 0;
}



undefined4 png_get_x_offset_pixels(int param_1,int param_2)

{
  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&
     (*(char *)(param_2 + 0xbc) == '\0')) {
    return *(undefined4 *)(param_2 + 0xb4);
  }
  return 0;
}


MOV ECX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [ESP + 0x8]
XOR EAX,EAX
TEST ECX,ECX
JZ 0x0001b9e1
TEST EDX,EDX
JZ 0x0001b9e1
TEST byte ptr [EDX + 0x9],0x1
JZ 0x0001b9e1
CMP byte ptr [EDX + 0xbc],0x0
JZ 0x0001b9e8
RET
MOV EAX,dword ptr [EDX + 0xb4]
RET
(translation_unit "undefined4 png_get_x_offset_pixels(int param_1,int param_2)\n\n{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')) {\n    return *(undefined4 *)(param_2 + 0xb4);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 png_get_x_offset_pixels(int param_1,int param_2)\n\n{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')) {\n    return *(undefined4 *)(param_2 + 0xb4);\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_x_offset_pixels(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  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')) {\n    return *(undefined4 *)(param_2 + 0xb4);\n  }\n  return 0;\n}" { (if_statement "if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')) {\n    return *(undefined4 *)(param_2 + 0xb4);\n  }" if (parenthesized_expression "((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0'))" ( (binary_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')" (parenthesized_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0))" ( (binary_expression "((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 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 + 9) & 1) != 0)" ( (binary_expression "(*(byte *)(param_2 + 9) & 1) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 1)" ( (binary_expression "*(byte *)(param_2 + 9) & 1" (pointer_expression "*(byte *)(param_2 + 9)" * (cast_expression "(byte *)(param_2 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 9)" ( (binary_expression "param_2 + 9" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(*(char *)(param_2 + 0xbc) == '\0')" ( (binary_expression "*(char *)(param_2 + 0xbc) == '\0'" (pointer_expression "*(char *)(param_2 + 0xbc)" * (cast_expression "(char *)(param_2 + 0xbc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xbc)" ( (binary_expression "param_2 + 0xbc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    return *(undefined4 *)(param_2 + 0xb4);\n  }" { (return_statement "return *(undefined4 *)(param_2 + 0xb4);" return (pointer_expression "*(undefined4 *)(param_2 + 0xb4)" * (cast_expression "(undefined4 *)(param_2 + 0xb4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb4)" ( (binary_expression "param_2 + 0xb4" identifier + number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\npng_int_32 png_get_x_offset_pixels(png_const_structrp png_ptr,png_const_inforp info_ptr)\n\n{\n  if ((((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      ((info_ptr->valid & 0x100) != 0)) && (info_ptr->offset_unit_type == '\0')) {\n    return info_ptr->x_offset;\n  }\n  return 0;\n}\n\n" comment (function_definition "png_int_32 png_get_x_offset_pixels(png_const_structrp png_ptr,png_const_inforp info_ptr)\n\n{\n  if ((((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      ((info_ptr->valid & 0x100) != 0)) && (info_ptr->offset_unit_type == '\0')) {\n    return info_ptr->x_offset;\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_x_offset_pixels(png_const_structrp png_ptr,png_const_inforp info_ptr)" identifier (parameter_list "(png_const_structrp png_ptr,png_const_inforp info_ptr)" ( (parameter_declaration "png_const_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_const_inforp info_ptr" type_identifier identifier) ))) (compound_statement "{\n  if ((((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      ((info_ptr->valid & 0x100) != 0)) && (info_ptr->offset_unit_type == '\0')) {\n    return info_ptr->x_offset;\n  }\n  return 0;\n}" { (if_statement "if ((((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      ((info_ptr->valid & 0x100) != 0)) && (info_ptr->offset_unit_type == '\0')) {\n    return info_ptr->x_offset;\n  }" if (parenthesized_expression "((((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      ((info_ptr->valid & 0x100) != 0)) && (info_ptr->offset_unit_type == '\0'))" ( (binary_expression "(((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      ((info_ptr->valid & 0x100) != 0)) && (info_ptr->offset_unit_type == '\0')" (parenthesized_expression "(((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      ((info_ptr->valid & 0x100) != 0))" ( (binary_expression "((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) &&\n      ((info_ptr->valid & 0x100) != 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->valid & 0x100) != 0)" ( (binary_expression "(info_ptr->valid & 0x100) != 0" (parenthesized_expression "(info_ptr->valid & 0x100)" ( (binary_expression "info_ptr->valid & 0x100" (field_expression "info_ptr->valid" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(info_ptr->offset_unit_type == '\0')" ( (binary_expression "info_ptr->offset_unit_type == '\0'" (field_expression "info_ptr->offset_unit_type" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    return info_ptr->x_offset;\n  }" { (return_statement "return info_ptr->x_offset;" return (field_expression "info_ptr->x_offset" identifier -> field_identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 png_get_x_offset_pixels(int param_1,int param_2)\n\n{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')) {\n    return *(undefined4 *)(param_2 + 0xb4);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 png_get_x_offset_pixels(int param_1,int param_2)\n\n{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')) {\n    return *(undefined4 *)(param_2 + 0xb4);\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_x_offset_pixels(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  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')) {\n    return *(undefined4 *)(param_2 + 0xb4);\n  }\n  return 0;\n}" { (if_statement "if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')) {\n    return *(undefined4 *)(param_2 + 0xb4);\n  }" if (parenthesized_expression "((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0'))" ( (binary_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')" (parenthesized_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0))" ( (binary_expression "((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 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 + 9) & 1) != 0)" ( (binary_expression "(*(byte *)(param_2 + 9) & 1) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 1)" ( (binary_expression "*(byte *)(param_2 + 9) & 1" (pointer_expression "*(byte *)(param_2 + 9)" * (cast_expression "(byte *)(param_2 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 9)" ( (binary_expression "param_2 + 9" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) && (parenthesized_expression "(*(char *)(param_2 + 0xbc) == '\0')" ( (binary_expression "*(char *)(param_2 + 0xbc) == '\0'" (pointer_expression "*(char *)(param_2 + 0xbc)" * (cast_expression "(char *)(param_2 + 0xbc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xbc)" ( (binary_expression "param_2 + 0xbc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    return *(undefined4 *)(param_2 + 0xb4);\n  }" { (return_statement "return *(undefined4 *)(param_2 + 0xb4);" return (pointer_expression "*(undefined4 *)(param_2 + 0xb4)" * (cast_expression "(undefined4 *)(param_2 + 0xb4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb4)" ( (binary_expression "param_2 + 0xb4" identifier + 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) ))) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 png_get_x_offset_pixels(int param_1,int param_2)\n\n{\n  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')) {\n    return *(undefined4 *)(param_2 + 0xb4);\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "png_get_x_offset_pixels(int param_1,int param_2)" (identifier "png_get_x_offset_pixels") (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  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')) {\n    return *(undefined4 *)(param_2 + 0xb4);\n  }\n  return 0;\n}" ({ "{") (if_statement "if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')) {\n    return *(undefined4 *)(param_2 + 0xb4);\n  }" (if "if") (parenthesized_expression "((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0'))" (( "(") (binary_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&\n     (*(char *)(param_2 + 0xbc) == '\0')" (parenthesized_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0))" (( "(") (binary_expression "((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 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 + 9) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 9) & 1) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 1)" (( "(") (binary_expression "*(byte *)(param_2 + 9) & 1" (pointer_expression "*(byte *)(param_2 + 9)" (* "*") (cast_expression "(byte *)(param_2 + 9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 9)" (( "(") (binary_expression "param_2 + 9" (identifier "param_2") (+ "+") (number_literal "9")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(param_2 + 0xbc) == '\0')" (( "(") (binary_expression "*(char *)(param_2 + 0xbc) == '\0'" (pointer_expression "*(char *)(param_2 + 0xbc)" (* "*") (cast_expression "(char *)(param_2 + 0xbc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xbc)" (( "(") (binary_expression "param_2 + 0xbc" (identifier "param_2") (+ "+") (number_literal "0xbc")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    return *(undefined4 *)(param_2 + 0xb4);\n  }" ({ "{") (return_statement "return *(undefined4 *)(param_2 + 0xb4);" (return "return") (pointer_expression "*(undefined4 *)(param_2 + 0xb4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xb4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xb4)" (( "(") (binary_expression "param_2 + 0xb4" (identifier "param_2") (+ "+") (number_literal "0xb4")) () ")")))) (; ";")) (} "}"))) (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)

{
  if ((((var_1 != (type_2)0x0) && (var_2 != (type_3)0x0)) &&
      ((var_2->valid & 0x100) != 0)) && (var_2->offset_unit_type == '\0')) {
    return var_2->x_offset;
  }
  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)))) 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: (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: (char_literal (escape_sequence)))))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (return_statement (number_literal)))))

undefined4 MASKED(int param_1,int param_2)

{
  if ((((param_1 != 0) && (param_2 != 0)) && ((*(byte *)(param_2 + 9) & 1) != 0)) &&
     (*(char *)(param_2 + 0xbc) == '\0')) {
    return *(undefined4 *)(param_2 + 0xb4);
  }
  return 0;
}

