
png_voidp png_malloc_default(png_const_structrp png_ptr,png_alloc_size_t size)

{
  png_voidp pvVar1;
  
  if (png_ptr == (png_const_structrp)0x0) {
    return (png_voidp)0x0;
  }
  pvVar1 = png_malloc_base((png_const_structrp)0x0,size);
  if (pvVar1 != (png_voidp)0x0) {
    return pvVar1;
  }
  pvVar1 = (png_voidp)(*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x24d4);
  return pvVar1;
}



int png_malloc_default(int param_1)

{
  int iVar1;
  
  if (param_1 != 0) {
    iVar1 = FUN_0001cba0(0);
    if (iVar1 != 0) {
      return iVar1;
    }
    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);
  }
  return param_1;
}


lui gp,0x4
addiu gp,gp,0x1170
addu gp,gp,t9
beq a0,zero,0x0001cee8
_nop
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
or a0,zero,zero
lw t9,-0x7fb8(gp)
bal 0x0001cba0
_nop
lw gp,0x10(sp)
beq v0,zero,0x0001ced4
_lw a1,-0x7fd4(gp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
addiu a1,a1,0x24d4
or a0,s0,zero
lw t9,-0x7be0(gp)
jalr t9
_nop
jr ra
_or v0,a0,zero
(translation_unit "int png_malloc_default(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }\n  return param_1;\n}\n\n" (function_definition "int png_malloc_default(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }\n  return param_1;\n}" primitive_type (function_declarator "png_malloc_default(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != 0) {\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }" { (expression_statement "iVar1 = FUN_0001cba0(0);" (assignment_expression "iVar1 = FUN_0001cba0(0)" identifier = (call_expression "FUN_0001cba0(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);" (call_expression "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4)" (parenthesized_expression "(*(code *)PTR_png_error_00056410)" ( (pointer_expression "*(code *)PTR_png_error_00056410" * (cast_expression "(code *)PTR_png_error_00056410" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_LAB_0005601c + 0x24d4)" ( identifier , (binary_expression "PTR_LAB_0005601c + 0x24d4" identifier + number_literal) ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "png_voidp png_malloc_default(png_const_structrp png_ptr,png_alloc_size_t size)\n\n{\n  png_voidp pvVar1;\n  \n  if (png_ptr == (png_const_structrp)0x0) {\n    return (png_voidp)0x0;\n  }\n  pvVar1 = png_malloc_base((png_const_structrp)0x0,size);\n  if (pvVar1 != (png_voidp)0x0) {\n    return pvVar1;\n  }\n  pvVar1 = (png_voidp)(*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x24d4);\n  return pvVar1;\n}\n\n" (function_definition "png_voidp png_malloc_default(png_const_structrp png_ptr,png_alloc_size_t size)\n\n{\n  png_voidp pvVar1;\n  \n  if (png_ptr == (png_const_structrp)0x0) {\n    return (png_voidp)0x0;\n  }\n  pvVar1 = png_malloc_base((png_const_structrp)0x0,size);\n  if (pvVar1 != (png_voidp)0x0) {\n    return pvVar1;\n  }\n  pvVar1 = (png_voidp)(*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x24d4);\n  return pvVar1;\n}" type_identifier (function_declarator "png_malloc_default(png_const_structrp png_ptr,png_alloc_size_t size)" identifier (parameter_list "(png_const_structrp png_ptr,png_alloc_size_t size)" ( (parameter_declaration "png_const_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_alloc_size_t size" type_identifier identifier) ))) (compound_statement "{\n  png_voidp pvVar1;\n  \n  if (png_ptr == (png_const_structrp)0x0) {\n    return (png_voidp)0x0;\n  }\n  pvVar1 = png_malloc_base((png_const_structrp)0x0,size);\n  if (pvVar1 != (png_voidp)0x0) {\n    return pvVar1;\n  }\n  pvVar1 = (png_voidp)(*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x24d4);\n  return pvVar1;\n}" { (declaration "png_voidp pvVar1;" type_identifier identifier ;) (if_statement "if (png_ptr == (png_const_structrp)0x0) {\n    return (png_voidp)0x0;\n  }" if (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)) )) (compound_statement "{\n    return (png_voidp)0x0;\n  }" { (return_statement "return (png_voidp)0x0;" return (cast_expression "(png_voidp)0x0" ( (type_descriptor "png_voidp" type_identifier) ) number_literal) ;) })) (expression_statement "pvVar1 = png_malloc_base((png_const_structrp)0x0,size);" (assignment_expression "pvVar1 = png_malloc_base((png_const_structrp)0x0,size)" identifier = (call_expression "png_malloc_base((png_const_structrp)0x0,size)" identifier (argument_list "((png_const_structrp)0x0,size)" ( (cast_expression "(png_const_structrp)0x0" ( (type_descriptor "png_const_structrp" type_identifier) ) number_literal) , identifier )))) ;) (if_statement "if (pvVar1 != (png_voidp)0x0) {\n    return pvVar1;\n  }" if (parenthesized_expression "(pvVar1 != (png_voidp)0x0)" ( (binary_expression "pvVar1 != (png_voidp)0x0" identifier != (cast_expression "(png_voidp)0x0" ( (type_descriptor "png_voidp" type_identifier) ) number_literal)) )) (compound_statement "{\n    return pvVar1;\n  }" { (return_statement "return pvVar1;" return identifier ;) })) (expression_statement "pvVar1 = (png_voidp)(*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x24d4);" (assignment_expression "pvVar1 = (png_voidp)(*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x24d4)" identifier = (call_expression "(png_voidp)(*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x24d4)" (call_expression "(png_voidp)(*(code *)PTR_png_error_00056410)" (parenthesized_expression "(png_voidp)" ( identifier )) (argument_list "(*(code *)PTR_png_error_00056410)" ( (pointer_expression "*(code *)PTR_png_error_00056410" * (cast_expression "(code *)PTR_png_error_00056410" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(png_ptr,PTR_LAB_0005601c + 0x24d4)" ( identifier , (binary_expression "PTR_LAB_0005601c + 0x24d4" identifier + number_literal) )))) ;) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "int png_malloc_default(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }\n  return param_1;\n}\n\n" (function_definition "int png_malloc_default(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }\n  return param_1;\n}" primitive_type (function_declarator "png_malloc_default(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 != 0) {\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }" { (expression_statement "iVar1 = FUN_0001cba0(0);" (assignment_expression "iVar1 = FUN_0001cba0(0)" identifier = (call_expression "FUN_0001cba0(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      return iVar1;\n    }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);" (call_expression "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4)" (parenthesized_expression "(*(code *)PTR_png_error_00056410)" ( (pointer_expression "*(code *)PTR_png_error_00056410" * (cast_expression "(code *)PTR_png_error_00056410" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_LAB_0005601c + 0x24d4)" ( identifier , (binary_expression "PTR_LAB_0005601c + 0x24d4" identifier + number_literal) ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int png_malloc_default(int param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }\n  return param_1;\n}" (primitive_type "int") (function_declarator "png_malloc_default(int param_1)" (identifier "png_malloc_default") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 != 0) {\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 != 0) {\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_0001cba0(0);\n    if (iVar1 != 0) {\n      return iVar1;\n    }\n    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);\n  }" ({ "{") (expression_statement "iVar1 = FUN_0001cba0(0);" (assignment_expression "iVar1 = FUN_0001cba0(0)" (identifier "iVar1") (= "=") (call_expression "FUN_0001cba0(0)" (identifier "FUN_0001cba0") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar1;\n    }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);" (call_expression "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4)" (parenthesized_expression "(*(code *)PTR_png_error_00056410)" (( "(") (pointer_expression "*(code *)PTR_png_error_00056410" (* "*") (cast_expression "(code *)PTR_png_error_00056410" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_png_error_00056410"))) () ")")) (argument_list "(param_1,PTR_LAB_0005601c + 0x24d4)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_LAB_0005601c + 0x24d4" (identifier "PTR_LAB_0005601c") (+ "+") (number_literal "0x24d4")) () ")"))) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))))) (return_statement (identifier)))))

int MASKED(int param_1)

{
  int iVar1;
  
  if (param_1 != 0) {
    iVar1 = FUN_0001cba0(0);
    if (iVar1 != 0) {
      return iVar1;
    }
    (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x24d4);
  }
  return param_1;
}

