
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x000147e0 */
/* WARNING: Unknown calling convention */

png_voidp png_calloc(png_const_structrp png_ptr,png_alloc_size_t size)

{
  png_voidp __s;
  
  __s = png_malloc(png_ptr,size);
  if (__s != (png_voidp)0x0) {
    memset(__s,0,size);
  }
  return __s;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x000147e0 */

void * png_calloc(undefined4 param_1,size_t param_2)

{
  void *__s;
  
  __s = (void *)png_malloc(param_1,param_2);
  if (__s != (void *)0x0) {
    memset(__s,0,param_2);
  }
  return __s;
}


JMP dword ptr [EBX + 0x1f4]
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Switch with 1 destination removed at 0x000147e0 */\n\nvoid * png_calloc(undefined4 param_1,size_t param_2)\n\n{\n  void *__s;\n  \n  __s = (void *)png_malloc(param_1,param_2);\n  if (__s != (void *)0x0) {\n    memset(__s,0,param_2);\n  }\n  return __s;\n}\n\n" comment comment (function_definition "void * png_calloc(undefined4 param_1,size_t param_2)\n\n{\n  void *__s;\n  \n  __s = (void *)png_malloc(param_1,param_2);\n  if (__s != (void *)0x0) {\n    memset(__s,0,param_2);\n  }\n  return __s;\n}" primitive_type (pointer_declarator "* png_calloc(undefined4 param_1,size_t param_2)" * (function_declarator "png_calloc(undefined4 param_1,size_t param_2)" identifier (parameter_list "(undefined4 param_1,size_t param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "size_t param_2" primitive_type identifier) )))) (compound_statement "{\n  void *__s;\n  \n  __s = (void *)png_malloc(param_1,param_2);\n  if (__s != (void *)0x0) {\n    memset(__s,0,param_2);\n  }\n  return __s;\n}" { (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "__s = (void *)png_malloc(param_1,param_2);" (assignment_expression "__s = (void *)png_malloc(param_1,param_2)" identifier = (cast_expression "(void *)png_malloc(param_1,param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "png_malloc(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))))) ;) (if_statement "if (__s != (void *)0x0) {\n    memset(__s,0,param_2);\n  }" if (parenthesized_expression "(__s != (void *)0x0)" ( (binary_expression "__s != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memset(__s,0,param_2);\n  }" { (expression_statement "memset(__s,0,param_2);" (call_expression "memset(__s,0,param_2)" identifier (argument_list "(__s,0,param_2)" ( identifier , number_literal , identifier ))) ;) })) (return_statement "return __s;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Switch with 1 destination removed at 0x000147e0 */\n/* WARNING: Unknown calling convention */\n\npng_voidp png_calloc(png_const_structrp png_ptr,png_alloc_size_t size)\n\n{\n  png_voidp __s;\n  \n  __s = png_malloc(png_ptr,size);\n  if (__s != (png_voidp)0x0) {\n    memset(__s,0,size);\n  }\n  return __s;\n}\n\n" comment comment comment (function_definition "png_voidp png_calloc(png_const_structrp png_ptr,png_alloc_size_t size)\n\n{\n  png_voidp __s;\n  \n  __s = png_malloc(png_ptr,size);\n  if (__s != (png_voidp)0x0) {\n    memset(__s,0,size);\n  }\n  return __s;\n}" type_identifier (function_declarator "png_calloc(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 __s;\n  \n  __s = png_malloc(png_ptr,size);\n  if (__s != (png_voidp)0x0) {\n    memset(__s,0,size);\n  }\n  return __s;\n}" { (declaration "png_voidp __s;" type_identifier identifier ;) (expression_statement "__s = png_malloc(png_ptr,size);" (assignment_expression "__s = png_malloc(png_ptr,size)" identifier = (call_expression "png_malloc(png_ptr,size)" identifier (argument_list "(png_ptr,size)" ( identifier , identifier )))) ;) (if_statement "if (__s != (png_voidp)0x0) {\n    memset(__s,0,size);\n  }" if (parenthesized_expression "(__s != (png_voidp)0x0)" ( (binary_expression "__s != (png_voidp)0x0" identifier != (cast_expression "(png_voidp)0x0" ( (type_descriptor "png_voidp" type_identifier) ) number_literal)) )) (compound_statement "{\n    memset(__s,0,size);\n  }" { (expression_statement "memset(__s,0,size);" (call_expression "memset(__s,0,size)" identifier (argument_list "(__s,0,size)" ( identifier , number_literal , identifier ))) ;) })) (return_statement "return __s;" return identifier ;) })))
(translation_unit "void * png_calloc(undefined4 param_1,size_t param_2)\n\n{\n  void *__s;\n  \n  __s = (void *)png_malloc(param_1,param_2);\n  if (__s != (void *)0x0) {\n    memset(__s,0,param_2);\n  }\n  return __s;\n}\n\n" (function_definition "void * png_calloc(undefined4 param_1,size_t param_2)\n\n{\n  void *__s;\n  \n  __s = (void *)png_malloc(param_1,param_2);\n  if (__s != (void *)0x0) {\n    memset(__s,0,param_2);\n  }\n  return __s;\n}" primitive_type (pointer_declarator "* png_calloc(undefined4 param_1,size_t param_2)" * (function_declarator "png_calloc(undefined4 param_1,size_t param_2)" identifier (parameter_list "(undefined4 param_1,size_t param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "size_t param_2" primitive_type identifier) )))) (compound_statement "{\n  void *__s;\n  \n  __s = (void *)png_malloc(param_1,param_2);\n  if (__s != (void *)0x0) {\n    memset(__s,0,param_2);\n  }\n  return __s;\n}" { (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (expression_statement "__s = (void *)png_malloc(param_1,param_2);" (assignment_expression "__s = (void *)png_malloc(param_1,param_2)" identifier = (cast_expression "(void *)png_malloc(param_1,param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "png_malloc(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))))) ;) (if_statement "if (__s != (void *)0x0) {\n    memset(__s,0,param_2);\n  }" if (parenthesized_expression "(__s != (void *)0x0)" ( (binary_expression "__s != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    memset(__s,0,param_2);\n  }" { (expression_statement "memset(__s,0,param_2);" (call_expression "memset(__s,0,param_2)" identifier (argument_list "(__s,0,param_2)" ( identifier , number_literal , identifier ))) ;) })) (return_statement "return __s;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "void * png_calloc(undefined4 param_1,size_t param_2)\n\n{\n  void *__s;\n  \n  __s = (void *)png_malloc(param_1,param_2);\n  if (__s != (void *)0x0) {\n    memset(__s,0,param_2);\n  }\n  return __s;\n}" (primitive_type "void") (pointer_declarator "* png_calloc(undefined4 param_1,size_t param_2)" (* "*") (function_declarator "png_calloc(undefined4 param_1,size_t param_2)" (identifier "png_calloc") (parameter_list "(undefined4 param_1,size_t param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "size_t param_2" (primitive_type "size_t") (identifier "param_2")) () ")")))) (compound_statement "{\n  void *__s;\n  \n  __s = (void *)png_malloc(param_1,param_2);\n  if (__s != (void *)0x0) {\n    memset(__s,0,param_2);\n  }\n  return __s;\n}" ({ "{") (declaration "void *__s;" (primitive_type "void") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (expression_statement "__s = (void *)png_malloc(param_1,param_2);" (assignment_expression "__s = (void *)png_malloc(param_1,param_2)" (identifier "__s") (= "=") (cast_expression "(void *)png_malloc(param_1,param_2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "png_malloc(param_1,param_2)" (identifier "png_malloc") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))))) (; ";")) (if_statement "if (__s != (void *)0x0) {\n    memset(__s,0,param_2);\n  }" (if "if") (parenthesized_expression "(__s != (void *)0x0)" (( "(") (binary_expression "__s != (void *)0x0" (identifier "__s") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    memset(__s,0,param_2);\n  }" ({ "{") (expression_statement "memset(__s,0,param_2);" (call_expression "memset(__s,0,param_2)" (identifier "memset") (argument_list "(__s,0,param_2)" (( "(") (identifier "__s") (, ",") (number_literal "0") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (return_statement "return __s;" (return "return") (identifier "__s") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x000147e0 */
/* WARNING: Unknown calling convention */

type_1 function_1(type_2 png_ptr,type_3 size)

{
  type_1 var_2;
  
  var_2 = var_1(png_ptr,size);
  if (var_2 != (type_1)0x0) {
    var_3(var_2,0,size);
  }
  return var_2;
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Switch with 1 destination removed at 0x000147e0 */

void * MASKED(undefined4 param_1,size_t param_2)

{
  void *__s;
  
  __s = (void *)png_malloc(param_1,param_2);
  if (__s != (void *)0x0) {
    memset(__s,0,param_2);
  }
  return __s;
}

