
/* WARNING: Unknown calling convention */

png_uint_32 png_permit_mng_features(png_structrp png_ptr,png_uint_32 mng_features)

{
  if (png_ptr != (png_structrp)0x0) {
    png_ptr->mng_features_permitted = mng_features & 5;
    return mng_features & 5;
  }
  return 0;
}



uint png_permit_mng_features(int param_1,uint param_2)

{
  if (param_1 != 0) {
    *(uint *)(param_1 + 0x300) = param_2 & 5;
    return param_2 & 5;
  }
  return 0;
}


beq a0,zero,0x00036a4c
_nop
andi v0,a1,0x5
jr ra
_sw v0,0x300(a0)
jr ra
_or v0,zero,zero
(translation_unit "uint png_permit_mng_features(int param_1,uint param_2)\n\n{\n  if (param_1 != 0) {\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }\n  return 0;\n}\n\n" (function_definition "uint png_permit_mng_features(int param_1,uint param_2)\n\n{\n  if (param_1 != 0) {\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }\n  return 0;\n}" type_identifier (function_declarator "png_permit_mng_features(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }\n  return 0;\n}" { (if_statement "if (param_1 != 0) {\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }" { (expression_statement "*(uint *)(param_1 + 0x300) = param_2 & 5;" (assignment_expression "*(uint *)(param_1 + 0x300) = param_2 & 5" (pointer_expression "*(uint *)(param_1 + 0x300)" * (cast_expression "(uint *)(param_1 + 0x300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x300)" ( (binary_expression "param_1 + 0x300" identifier + number_literal) )))) = (binary_expression "param_2 & 5" identifier & number_literal)) ;) (return_statement "return param_2 & 5;" return (binary_expression "param_2 & 5" identifier & number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\npng_uint_32 png_permit_mng_features(png_structrp png_ptr,png_uint_32 mng_features)\n\n{\n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->mng_features_permitted = mng_features & 5;\n    return mng_features & 5;\n  }\n  return 0;\n}\n\n" comment (function_definition "png_uint_32 png_permit_mng_features(png_structrp png_ptr,png_uint_32 mng_features)\n\n{\n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->mng_features_permitted = mng_features & 5;\n    return mng_features & 5;\n  }\n  return 0;\n}" type_identifier (function_declarator "png_permit_mng_features(png_structrp png_ptr,png_uint_32 mng_features)" identifier (parameter_list "(png_structrp png_ptr,png_uint_32 mng_features)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_uint_32 mng_features" type_identifier identifier) ))) (compound_statement "{\n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->mng_features_permitted = mng_features & 5;\n    return mng_features & 5;\n  }\n  return 0;\n}" { (if_statement "if (png_ptr != (png_structrp)0x0) {\n    png_ptr->mng_features_permitted = mng_features & 5;\n    return mng_features & 5;\n  }" if (parenthesized_expression "(png_ptr != (png_structrp)0x0)" ( (binary_expression "png_ptr != (png_structrp)0x0" identifier != (cast_expression "(png_structrp)0x0" ( (type_descriptor "png_structrp" type_identifier) ) number_literal)) )) (compound_statement "{\n    png_ptr->mng_features_permitted = mng_features & 5;\n    return mng_features & 5;\n  }" { (expression_statement "png_ptr->mng_features_permitted = mng_features & 5;" (assignment_expression "png_ptr->mng_features_permitted = mng_features & 5" (field_expression "png_ptr->mng_features_permitted" identifier -> field_identifier) = (binary_expression "mng_features & 5" identifier & number_literal)) ;) (return_statement "return mng_features & 5;" return (binary_expression "mng_features & 5" identifier & number_literal) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "uint png_permit_mng_features(int param_1,uint param_2)\n\n{\n  if (param_1 != 0) {\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }\n  return 0;\n}\n\n" (function_definition "uint png_permit_mng_features(int param_1,uint param_2)\n\n{\n  if (param_1 != 0) {\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }\n  return 0;\n}" type_identifier (function_declarator "png_permit_mng_features(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }\n  return 0;\n}" { (if_statement "if (param_1 != 0) {\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }" { (expression_statement "*(uint *)(param_1 + 0x300) = param_2 & 5;" (assignment_expression "*(uint *)(param_1 + 0x300) = param_2 & 5" (pointer_expression "*(uint *)(param_1 + 0x300)" * (cast_expression "(uint *)(param_1 + 0x300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x300)" ( (binary_expression "param_1 + 0x300" identifier + number_literal) )))) = (binary_expression "param_2 & 5" identifier & number_literal)) ;) (return_statement "return param_2 & 5;" return (binary_expression "param_2 & 5" 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 IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT & LIT)) ;) (return_statement return (binary_expression IDENT & LIT) ;) })) (return_statement return LIT ;) })))
(function_definition "uint png_permit_mng_features(int param_1,uint param_2)\n\n{\n  if (param_1 != 0) {\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }\n  return 0;\n}" (type_identifier "uint") (function_declarator "png_permit_mng_features(int param_1,uint param_2)" (identifier "png_permit_mng_features") (parameter_list "(int param_1,uint param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_1 != 0) {\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }\n  return 0;\n}" ({ "{") (if_statement "if (param_1 != 0) {\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(uint *)(param_1 + 0x300) = param_2 & 5;\n    return param_2 & 5;\n  }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x300) = param_2 & 5;" (assignment_expression "*(uint *)(param_1 + 0x300) = param_2 & 5" (pointer_expression "*(uint *)(param_1 + 0x300)" (* "*") (cast_expression "(uint *)(param_1 + 0x300)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x300)" (( "(") (binary_expression "param_1 + 0x300" (identifier "param_1") (+ "+") (number_literal "0x300")) () ")")))) (= "=") (binary_expression "param_2 & 5" (identifier "param_2") (& "&") (number_literal "5"))) (; ";")) (return_statement "return param_2 & 5;" (return "return") (binary_expression "param_2 & 5" (identifier "param_2") (& "&") (number_literal "5")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(type_2 var_1,type_1 var_2)

{
  if (var_1 != (type_2)0x0) {
    var_1->mng_features_permitted = var_2 & 5;
    return var_2 & 5;
  }
  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: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_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: (binary_expression left: (identifier) right: (number_literal)))) (return_statement (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal)))))

uint MASKED(int param_1,uint param_2)

{
  if (param_1 != 0) {
    *(uint *)(param_1 + 0x300) = param_2 & 5;
    return param_2 & 5;
  }
  return 0;
}

