
png_voidp png_malloc(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_ptr,size);
  if (pvVar1 != (png_voidp)0x0) {
    return pvVar1;
  }
                    /* WARNING: Subroutine does not return */
  png_error(png_ptr,"Out of memory");
}



long png_malloc(long param_1)

{
  long lVar1;
  
  if (param_1 == 0) {
    return 0;
  }
  lVar1 = FUN_0010cab3();
  if (lVar1 != 0) {
    return lVar1;
  }
                    /* WARNING: Subroutine does not return */
  png_error(param_1,"Out of memory");
}


TEST RDI,RDI
JZ 0x0010cbf1
PUSH RBX
MOV RBX,RDI
CALL 0x0010cab3
TEST RAX,RAX
JZ 0x0010cbe2
POP RBX
RET
LEA RSI,[0x1296a2]
MOV RDI,RBX
CALL 0x00106490
MOV RAX,RDI
RET
(translation_unit "long png_malloc(long param_1)\n\n{\n  long lVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010cab3();\n  if (lVar1 != 0) {\n    return lVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  png_error(param_1,"Out of memory");\n}\n\n" (function_definition "long png_malloc(long param_1)\n\n{\n  long lVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010cab3();\n  if (lVar1 != 0) {\n    return lVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  png_error(param_1,"Out of memory");\n}" (sized_type_specifier "long" long) (function_declarator "png_malloc(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010cab3();\n  if (lVar1 != 0) {\n    return lVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  png_error(param_1,"Out of memory");\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "lVar1 = FUN_0010cab3();" (assignment_expression "lVar1 = FUN_0010cab3()" identifier = (call_expression "FUN_0010cab3()" identifier (argument_list "()" ( )))) ;) (if_statement "if (lVar1 != 0) {\n    return lVar1;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return lVar1;\n  }" { (return_statement "return lVar1;" return identifier ;) })) comment (expression_statement "png_error(param_1,"Out of memory");" (call_expression "png_error(param_1,"Out of memory")" identifier (argument_list "(param_1,"Out of memory")" ( identifier , (string_literal ""Out of memory"" " string_content ") ))) ;) })))
(translation_unit "png_voidp png_malloc(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_ptr,size);\n  if (pvVar1 != (png_voidp)0x0) {\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  png_error(png_ptr,"Out of memory");\n}\n\n" (function_definition "png_voidp png_malloc(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_ptr,size);\n  if (pvVar1 != (png_voidp)0x0) {\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  png_error(png_ptr,"Out of memory");\n}" type_identifier (function_declarator "png_malloc(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_ptr,size);\n  if (pvVar1 != (png_voidp)0x0) {\n    return pvVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  png_error(png_ptr,"Out of memory");\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_ptr,size);" (assignment_expression "pvVar1 = png_malloc_base(png_ptr,size)" identifier = (call_expression "png_malloc_base(png_ptr,size)" identifier (argument_list "(png_ptr,size)" ( identifier , 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 ;) })) comment (expression_statement "png_error(png_ptr,"Out of memory");" (call_expression "png_error(png_ptr,"Out of memory")" identifier (argument_list "(png_ptr,"Out of memory")" ( identifier , (string_literal ""Out of memory"" " string_content ") ))) ;) })))
(translation_unit "long png_malloc(long param_1)\n\n{\n  long lVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010cab3();\n  if (lVar1 != 0) {\n    return lVar1;\n  }\n                    \n  png_error(param_1,"Out of memory");\n}\n\n" (function_definition "long png_malloc(long param_1)\n\n{\n  long lVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010cab3();\n  if (lVar1 != 0) {\n    return lVar1;\n  }\n                    \n  png_error(param_1,"Out of memory");\n}" (sized_type_specifier "long" long) (function_declarator "png_malloc(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010cab3();\n  if (lVar1 != 0) {\n    return lVar1;\n  }\n                    \n  png_error(param_1,"Out of memory");\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "lVar1 = FUN_0010cab3();" (assignment_expression "lVar1 = FUN_0010cab3()" identifier = (call_expression "FUN_0010cab3()" identifier (argument_list "()" ( )))) ;) (if_statement "if (lVar1 != 0) {\n    return lVar1;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    return lVar1;\n  }" { (return_statement "return lVar1;" return identifier ;) })) (expression_statement "png_error(param_1,"Out of memory");" (call_expression "png_error(param_1,"Out of memory")" identifier (argument_list "(param_1,"Out of memory")" ( identifier , (string_literal ""Out of memory"" " string_content ") ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) })))
(function_definition "long png_malloc(long param_1)\n\n{\n  long lVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010cab3();\n  if (lVar1 != 0) {\n    return lVar1;\n  }\n                    \n  png_error(param_1,"Out of memory");\n}" (sized_type_specifier "long" (long "long")) (function_declarator "png_malloc(long param_1)" (identifier "png_malloc") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  if (param_1 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010cab3();\n  if (lVar1 != 0) {\n    return lVar1;\n  }\n                    \n  png_error(param_1,"Out of memory");\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (if_statement "if (param_1 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "lVar1 = FUN_0010cab3();" (assignment_expression "lVar1 = FUN_0010cab3()" (identifier "lVar1") (= "=") (call_expression "FUN_0010cab3()" (identifier "FUN_0010cab3") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n    return lVar1;\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return lVar1;\n  }" ({ "{") (return_statement "return lVar1;" (return "return") (identifier "lVar1") (; ";")) (} "}"))) (expression_statement "png_error(param_1,"Out of memory");" (call_expression "png_error(param_1,"Out of memory")" (identifier "png_error") (argument_list "(param_1,"Out of memory")" (( "(") (identifier "param_1") (, ",") (string_literal ""Out of memory"" (" """) (string_content "Out of memory") (" """)) () ")"))) (; ";")) (} "}")))

type_1 function_1(type_2 var_1,type_3 size)

{
  type_1 var_3;
  
  if (var_1 == (type_2)0x0) {
    return (type_1)0x0;
  }
  var_3 = var_2(var_1,size);
  if (var_3 != (type_1)0x0) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_4(var_1,"Out of memory");
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))))))

long MASKED(long param_1)

{
  long lVar1;
  
  if (param_1 == 0) {
    return 0;
  }
  lVar1 = FUN_0010cab3();
  if (lVar1 != 0) {
    return lVar1;
  }
                    /* WARNING: Subroutine does not return */
  png_error(param_1,"Out of memory");
}

