
/* WARNING: Unknown calling convention */

void png_set_error_fn(png_structrp png_ptr,png_voidp error_ptr,png_error_ptr error_fn,
                     png_error_ptr warning_fn)

{
  if (png_ptr != (png_structrp)0x0) {
    png_ptr->error_ptr = error_ptr;
    png_ptr->error_fn = error_fn;
    png_ptr->warning_fn = warning_fn;
  }
  return;
}



void png_set_error_fn(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  if (param_1 != 0) {
    *(undefined4 *)(param_1 + 0xb0) = param_2;
    *(undefined4 *)(param_1 + 0xa8) = param_3;
    *(undefined4 *)(param_1 + 0xac) = param_4;
  }
  return;
}


MOV EAX,dword ptr [ESP + 0x4]
TEST EAX,EAX
JZ 0x0001a4d6
MOV EDX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX + 0xb0],EDX
MOV EDX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX + 0xa8],EDX
MOV EDX,dword ptr [ESP + 0x10]
MOV dword ptr [EAX + 0xac],EDX
RET
(translation_unit "void png_set_error_fn(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }\n  return;\n}\n\n" (function_definition "void png_set_error_fn(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_error_fn(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }\n  return;\n}" { (if_statement "if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0xb0) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0xb0) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0xb0)" * (cast_expression "(undefined4 *)(param_1 + 0xb0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0xa8) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0xa8) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0xa8)" * (cast_expression "(undefined4 *)(param_1 + 0xa8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa8)" ( (binary_expression "param_1 + 0xa8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0xac) = param_4;" (assignment_expression "*(undefined4 *)(param_1 + 0xac) = param_4" (pointer_expression "*(undefined4 *)(param_1 + 0xac)" * (cast_expression "(undefined4 *)(param_1 + 0xac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xac)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid png_set_error_fn(png_structrp png_ptr,png_voidp error_ptr,png_error_ptr error_fn,\n                     png_error_ptr warning_fn)\n\n{\n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->error_ptr = error_ptr;\n    png_ptr->error_fn = error_fn;\n    png_ptr->warning_fn = warning_fn;\n  }\n  return;\n}\n\n" comment (function_definition "void png_set_error_fn(png_structrp png_ptr,png_voidp error_ptr,png_error_ptr error_fn,\n                     png_error_ptr warning_fn)\n\n{\n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->error_ptr = error_ptr;\n    png_ptr->error_fn = error_fn;\n    png_ptr->warning_fn = warning_fn;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_error_fn(png_structrp png_ptr,png_voidp error_ptr,png_error_ptr error_fn,\n                     png_error_ptr warning_fn)" identifier (parameter_list "(png_structrp png_ptr,png_voidp error_ptr,png_error_ptr error_fn,\n                     png_error_ptr warning_fn)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_voidp error_ptr" type_identifier identifier) , (parameter_declaration "png_error_ptr error_fn" type_identifier identifier) , (parameter_declaration "png_error_ptr warning_fn" type_identifier identifier) ))) (compound_statement "{\n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->error_ptr = error_ptr;\n    png_ptr->error_fn = error_fn;\n    png_ptr->warning_fn = warning_fn;\n  }\n  return;\n}" { (if_statement "if (png_ptr != (png_structrp)0x0) {\n    png_ptr->error_ptr = error_ptr;\n    png_ptr->error_fn = error_fn;\n    png_ptr->warning_fn = warning_fn;\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->error_ptr = error_ptr;\n    png_ptr->error_fn = error_fn;\n    png_ptr->warning_fn = warning_fn;\n  }" { (expression_statement "png_ptr->error_ptr = error_ptr;" (assignment_expression "png_ptr->error_ptr = error_ptr" (field_expression "png_ptr->error_ptr" identifier -> field_identifier) = identifier) ;) (expression_statement "png_ptr->error_fn = error_fn;" (assignment_expression "png_ptr->error_fn = error_fn" (field_expression "png_ptr->error_fn" identifier -> field_identifier) = identifier) ;) (expression_statement "png_ptr->warning_fn = warning_fn;" (assignment_expression "png_ptr->warning_fn = warning_fn" (field_expression "png_ptr->warning_fn" identifier -> field_identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_error_fn(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }\n  return;\n}\n\n" (function_definition "void png_set_error_fn(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_error_fn(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }\n  return;\n}" { (if_statement "if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0xb0) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0xb0) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0xb0)" * (cast_expression "(undefined4 *)(param_1 + 0xb0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0xa8) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0xa8) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0xa8)" * (cast_expression "(undefined4 *)(param_1 + 0xa8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa8)" ( (binary_expression "param_1 + 0xa8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0xac) = param_4;" (assignment_expression "*(undefined4 *)(param_1 + 0xac) = param_4" (pointer_expression "*(undefined4 *)(param_1 + 0xac)" * (cast_expression "(undefined4 *)(param_1 + 0xac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xac)" ( (binary_expression "param_1 + 0xac" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (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) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void png_set_error_fn(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "png_set_error_fn(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "png_set_error_fn") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }\n  return;\n}" ({ "{") (if_statement "if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0xb0) = param_2;\n    *(undefined4 *)(param_1 + 0xa8) = param_3;\n    *(undefined4 *)(param_1 + 0xac) = param_4;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0xb0) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0xb0) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0xb0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xb0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb0)" (( "(") (binary_expression "param_1 + 0xb0" (identifier "param_1") (+ "+") (number_literal "0xb0")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xa8) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0xa8) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0xa8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xa8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa8)" (( "(") (binary_expression "param_1 + 0xa8" (identifier "param_1") (+ "+") (number_literal "0xa8")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xac) = param_4;" (assignment_expression "*(undefined4 *)(param_1 + 0xac) = param_4" (pointer_expression "*(undefined4 *)(param_1 + 0xac)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xac)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xac)" (( "(") (binary_expression "param_1 + 0xac" (identifier "param_1") (+ "+") (number_literal "0xac")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(type_1 var_1,type_2 error_ptr,type_3 error_fn,
                     type_3 warning_fn)

{
  if (var_1 != (type_1)0x0) {
    var_1->error_ptr = error_ptr;
    var_1->error_fn = error_fn;
    var_1->warning_fn = warning_fn;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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: (identifier))) (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: (identifier))) (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: (identifier))))) (return_statement))))

void MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  if (param_1 != 0) {
    *(undefined4 *)(param_1 + 0xb0) = param_2;
    *(undefined4 *)(param_1 + 0xa8) = param_3;
    *(undefined4 *)(param_1 + 0xac) = param_4;
  }
  return;
}

