
png_uint_32 png_get_image_width(png_const_structrp png_ptr,png_const_inforp info_ptr)

{
  if ((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) {
    return info_ptr->width;
  }
  return 0;
}



undefined4 png_get_image_width(int param_1,undefined4 *param_2)

{
  if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {
    return *param_2;
  }
  return 0;
}


MOV EDX,dword ptr [ESP + 0x4]
MOV EAX,dword ptr [ESP + 0x8]
TEST EDX,EDX
JZ 0x0001a7b8
TEST EAX,EAX
JZ 0x0001a7b8
MOV EAX,dword ptr [EAX]
RET
XOR EAX,EAX
RET
(translation_unit "undefined4 png_get_image_width(int param_1,undefined4 *param_2)\n\n{\n  if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {\n    return *param_2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 png_get_image_width(int param_1,undefined4 *param_2)\n\n{\n  if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {\n    return *param_2;\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_image_width(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {\n    return *param_2;\n  }\n  return 0;\n}" { (if_statement "if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {\n    return *param_2;\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 != (undefined4 *)0x0))" ( (binary_expression "(param_1 != 0) && (param_2 != (undefined4 *)0x0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    return *param_2;\n  }" { (return_statement "return *param_2;" return (pointer_expression "*param_2" * identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "png_uint_32 png_get_image_width(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    return info_ptr->width;\n  }\n  return 0;\n}\n\n" (function_definition "png_uint_32 png_get_image_width(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    return info_ptr->width;\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_image_width(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    return info_ptr->width;\n  }\n  return 0;\n}" { (if_statement "if ((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) {\n    return info_ptr->width;\n  }" if (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)) ))) )) (compound_statement "{\n    return info_ptr->width;\n  }" { (return_statement "return info_ptr->width;" return (field_expression "info_ptr->width" identifier -> field_identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 png_get_image_width(int param_1,undefined4 *param_2)\n\n{\n  if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {\n    return *param_2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 png_get_image_width(int param_1,undefined4 *param_2)\n\n{\n  if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {\n    return *param_2;\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_image_width(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {\n    return *param_2;\n  }\n  return 0;\n}" { (if_statement "if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {\n    return *param_2;\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 != (undefined4 *)0x0))" ( (binary_expression "(param_1 != 0) && (param_2 != (undefined4 *)0x0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != (undefined4 *)0x0)" ( (binary_expression "param_2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    return *param_2;\n  }" { (return_statement "return *param_2;" return (pointer_expression "*param_2" * identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (return_statement return (pointer_expression * IDENT) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 png_get_image_width(int param_1,undefined4 *param_2)\n\n{\n  if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {\n    return *param_2;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "png_get_image_width(int param_1,undefined4 *param_2)" (identifier "png_get_image_width") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {\n    return *param_2;\n  }\n  return 0;\n}" ({ "{") (if_statement "if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {\n    return *param_2;\n  }" (if "if") (parenthesized_expression "((param_1 != 0) && (param_2 != (undefined4 *)0x0))" (( "(") (binary_expression "(param_1 != 0) && (param_2 != (undefined4 *)0x0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 != (undefined4 *)0x0)" (( "(") (binary_expression "param_2 != (undefined4 *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    return *param_2;\n  }" ({ "{") (return_statement "return *param_2;" (return "return") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(type_2 var_1,type_3 var_2)

{
  if ((var_1 != (type_2)0x0) && (var_2 != (type_3)0x0)) {
    return var_2->width;
  }
  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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) consequence: (compound_statement (return_statement (pointer_expression argument: (identifier))))) (return_statement (number_literal)))))

undefined4 MASKED(int param_1,undefined4 *param_2)

{
  if ((param_1 != 0) && (param_2 != (undefined4 *)0x0)) {
    return *param_2;
  }
  return 0;
}

