
/* WARNING: Unknown calling convention */

png_int_32 png_get_y_offset_microns(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)) {
    if (info_ptr->offset_unit_type != '\x01') {
      return 0;
    }
    return info_ptr->y_offset;
  }
  return 0;
}



undefined4 png_get_y_offset_microns(int param_1,int param_2)

{
  if (((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {
    if (*(char *)(param_2 + 0xbc) != '\x01') {
      return 0;
    }
    return *(undefined4 *)(param_2 + 0xb8);
  }
  return 0;
}


beq a0,zero,0x0001abc8
_nop
beq a1,zero,0x0001abc8
_nop
lw v0,0x8(a1)
andi v0,v0,0x100
beq v0,zero,0x0001abc8
_nop
lbu v1,0xbc(a1)
li v0,0x1
beq v1,v0,0x0001abd0
_nop
jr ra
_or v0,zero,zero
jr ra
_or v0,zero,zero
jr ra
_lw v0,0xb8(a1)
(translation_unit "undefined4 png_get_y_offset_microns(int param_1,int param_2)\n\n{\n  if (((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 png_get_y_offset_microns(int param_1,int param_2)\n\n{\n  if (((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_y_offset_microns(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)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }\n  return 0;\n}" { (if_statement "if (((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }" if (parenthesized_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 0))" ( (binary_expression "((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 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 "((*(uint *)(param_2 + 8) & 0x100) != 0)" ( (binary_expression "(*(uint *)(param_2 + 8) & 0x100) != 0" (parenthesized_expression "(*(uint *)(param_2 + 8) & 0x100)" ( (binary_expression "*(uint *)(param_2 + 8) & 0x100" (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }" { (if_statement "if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(param_2 + 0xbc) != '\x01')" ( (binary_expression "*(char *)(param_2 + 0xbc) != '\x01'" (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 "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return *(undefined4 *)(param_2 + 0xb8);" return (pointer_expression "*(undefined4 *)(param_2 + 0xb8)" * (cast_expression "(undefined4 *)(param_2 + 0xb8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb8)" ( (binary_expression "param_2 + 0xb8" identifier + number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\npng_int_32 png_get_y_offset_microns(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)) {\n    if (info_ptr->offset_unit_type != '\x01') {\n      return 0;\n    }\n    return info_ptr->y_offset;\n  }\n  return 0;\n}\n\n" comment (function_definition "png_int_32 png_get_y_offset_microns(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)) {\n    if (info_ptr->offset_unit_type != '\x01') {\n      return 0;\n    }\n    return info_ptr->y_offset;\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_y_offset_microns(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)) {\n    if (info_ptr->offset_unit_type != '\x01') {\n      return 0;\n    }\n    return info_ptr->y_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)) {\n    if (info_ptr->offset_unit_type != '\x01') {\n      return 0;\n    }\n    return info_ptr->y_offset;\n  }" if (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) ))) )) (compound_statement "{\n    if (info_ptr->offset_unit_type != '\x01') {\n      return 0;\n    }\n    return info_ptr->y_offset;\n  }" { (if_statement "if (info_ptr->offset_unit_type != '\x01') {\n      return 0;\n    }" if (parenthesized_expression "(info_ptr->offset_unit_type != '\x01')" ( (binary_expression "info_ptr->offset_unit_type != '\x01'" (field_expression "info_ptr->offset_unit_type" identifier -> field_identifier) != (char_literal "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return info_ptr->y_offset;" return (field_expression "info_ptr->y_offset" identifier -> field_identifier) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 png_get_y_offset_microns(int param_1,int param_2)\n\n{\n  if (((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 png_get_y_offset_microns(int param_1,int param_2)\n\n{\n  if (((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_y_offset_microns(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)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }\n  return 0;\n}" { (if_statement "if (((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }" if (parenthesized_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 0))" ( (binary_expression "((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 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 "((*(uint *)(param_2 + 8) & 0x100) != 0)" ( (binary_expression "(*(uint *)(param_2 + 8) & 0x100) != 0" (parenthesized_expression "(*(uint *)(param_2 + 8) & 0x100)" ( (binary_expression "*(uint *)(param_2 + 8) & 0x100" (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }" { (if_statement "if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(param_2 + 0xbc) != '\x01')" ( (binary_expression "*(char *)(param_2 + 0xbc) != '\x01'" (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 "'\x01'" ' escape_sequence ')) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (return_statement "return *(undefined4 *)(param_2 + 0xb8);" return (pointer_expression "*(undefined4 *)(param_2 + 0xb8)" * (cast_expression "(undefined4 *)(param_2 + 0xb8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb8)" ( (binary_expression "param_2 + 0xb8" 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 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 (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 LIT ;) })) (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_y_offset_microns(int param_1,int param_2)\n\n{\n  if (((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "png_get_y_offset_microns(int param_1,int param_2)" (identifier "png_get_y_offset_microns") (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)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }\n  return 0;\n}" ({ "{") (if_statement "if (((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }" (if "if") (parenthesized_expression "(((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 0))" (( "(") (binary_expression "((param_1 != 0) && (param_2 != 0)) && ((*(uint *)(param_2 + 8) & 0x100) != 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 "((*(uint *)(param_2 + 8) & 0x100) != 0)" (( "(") (binary_expression "(*(uint *)(param_2 + 8) & 0x100) != 0" (parenthesized_expression "(*(uint *)(param_2 + 8) & 0x100)" (( "(") (binary_expression "*(uint *)(param_2 + 8) & 0x100" (pointer_expression "*(uint *)(param_2 + 8)" (* "*") (cast_expression "(uint *)(param_2 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x100")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }\n    return *(undefined4 *)(param_2 + 0xb8);\n  }" ({ "{") (if_statement "if (*(char *)(param_2 + 0xbc) != '\x01') {\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_2 + 0xbc) != '\x01')" (( "(") (binary_expression "*(char *)(param_2 + 0xbc) != '\x01'" (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 "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return *(undefined4 *)(param_2 + 0xb8);" (return "return") (pointer_expression "*(undefined4 *)(param_2 + 0xb8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xb8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xb8)" (( "(") (binary_expression "param_2 + 0xb8" (identifier "param_2") (+ "+") (number_literal "0xb8")) () ")")))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "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: (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: (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 (number_literal)))) (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)) && ((*(uint *)(param_2 + 8) & 0x100) != 0)) {
    if (*(char *)(param_2 + 0xbc) != '\x01') {
      return 0;
    }
    return *(undefined4 *)(param_2 + 0xb8);
  }
  return 0;
}

