
void png_set_progressive_read_fn
               (png_structrp png_ptr,png_voidp progressive_ptr,png_progressive_info_ptr info_fn,
               png_progressive_row_ptr row_fn,png_progressive_end_ptr end_fn)

{
  if (png_ptr != (png_structrp)0x0) {
    png_ptr->info_fn = info_fn;
    png_ptr->row_fn = row_fn;
    png_ptr->end_fn = end_fn;
    png_set_read_fn(png_ptr,progressive_ptr,png_push_fill_buffer);
    return;
  }
  return;
}



void png_set_progressive_read_fn
               (long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
               undefined8 param_5)

{
  if (param_1 != 0) {
    *(undefined8 *)(param_1 + 0x310) = param_3;
    *(undefined8 *)(param_1 + 0x318) = param_4;
    *(undefined8 *)(param_1 + 800) = param_5;
    png_set_read_fn(param_1,param_2,FUN_0010cd98);
    return;
  }
  return;
}


TEST RDI,RDI
JZ 0x0010e8cf
SUB RSP,0x8
MOV qword ptr [RDI + 0x310],RDX
MOV qword ptr [RDI + 0x318],RCX
MOV qword ptr [RDI + 0x320],R8
LEA RDX,[0x10cd98]
CALL 0x00106580
ADD RSP,0x8
RET
RET
(translation_unit "void png_set_progressive_read_fn\n               (long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n               undefined8 param_5)\n\n{\n  if (param_1 != 0) {\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void png_set_progressive_read_fn\n               (long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n               undefined8 param_5)\n\n{\n  if (param_1 != 0) {\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_progressive_read_fn\n               (long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n               undefined8 param_5)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n               undefined8 param_5)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }\n  return;\n}" { (if_statement "if (param_1 != 0) {\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }" { (expression_statement "*(undefined8 *)(param_1 + 0x310) = param_3;" (assignment_expression "*(undefined8 *)(param_1 + 0x310) = param_3" (pointer_expression "*(undefined8 *)(param_1 + 0x310)" * (cast_expression "(undefined8 *)(param_1 + 0x310)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x310)" ( (binary_expression "param_1 + 0x310" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x318) = param_4;" (assignment_expression "*(undefined8 *)(param_1 + 0x318) = param_4" (pointer_expression "*(undefined8 *)(param_1 + 0x318)" * (cast_expression "(undefined8 *)(param_1 + 0x318)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x318)" ( (binary_expression "param_1 + 0x318" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 800) = param_5;" (assignment_expression "*(undefined8 *)(param_1 + 800) = param_5" (pointer_expression "*(undefined8 *)(param_1 + 800)" * (cast_expression "(undefined8 *)(param_1 + 800)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 800)" ( (binary_expression "param_1 + 800" identifier + number_literal) )))) = identifier) ;) (expression_statement "png_set_read_fn(param_1,param_2,FUN_0010cd98);" (call_expression "png_set_read_fn(param_1,param_2,FUN_0010cd98)" identifier (argument_list "(param_1,param_2,FUN_0010cd98)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_progressive_read_fn\n               (png_structrp png_ptr,png_voidp progressive_ptr,png_progressive_info_ptr info_fn,\n               png_progressive_row_ptr row_fn,png_progressive_end_ptr end_fn)\n\n{\n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->info_fn = info_fn;\n    png_ptr->row_fn = row_fn;\n    png_ptr->end_fn = end_fn;\n    png_set_read_fn(png_ptr,progressive_ptr,png_push_fill_buffer);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void png_set_progressive_read_fn\n               (png_structrp png_ptr,png_voidp progressive_ptr,png_progressive_info_ptr info_fn,\n               png_progressive_row_ptr row_fn,png_progressive_end_ptr end_fn)\n\n{\n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->info_fn = info_fn;\n    png_ptr->row_fn = row_fn;\n    png_ptr->end_fn = end_fn;\n    png_set_read_fn(png_ptr,progressive_ptr,png_push_fill_buffer);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_progressive_read_fn\n               (png_structrp png_ptr,png_voidp progressive_ptr,png_progressive_info_ptr info_fn,\n               png_progressive_row_ptr row_fn,png_progressive_end_ptr end_fn)" identifier (parameter_list "(png_structrp png_ptr,png_voidp progressive_ptr,png_progressive_info_ptr info_fn,\n               png_progressive_row_ptr row_fn,png_progressive_end_ptr end_fn)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_voidp progressive_ptr" type_identifier identifier) , (parameter_declaration "png_progressive_info_ptr info_fn" type_identifier identifier) , (parameter_declaration "png_progressive_row_ptr row_fn" type_identifier identifier) , (parameter_declaration "png_progressive_end_ptr end_fn" type_identifier identifier) ))) (compound_statement "{\n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->info_fn = info_fn;\n    png_ptr->row_fn = row_fn;\n    png_ptr->end_fn = end_fn;\n    png_set_read_fn(png_ptr,progressive_ptr,png_push_fill_buffer);\n    return;\n  }\n  return;\n}" { (if_statement "if (png_ptr != (png_structrp)0x0) {\n    png_ptr->info_fn = info_fn;\n    png_ptr->row_fn = row_fn;\n    png_ptr->end_fn = end_fn;\n    png_set_read_fn(png_ptr,progressive_ptr,png_push_fill_buffer);\n    return;\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->info_fn = info_fn;\n    png_ptr->row_fn = row_fn;\n    png_ptr->end_fn = end_fn;\n    png_set_read_fn(png_ptr,progressive_ptr,png_push_fill_buffer);\n    return;\n  }" { (expression_statement "png_ptr->info_fn = info_fn;" (assignment_expression "png_ptr->info_fn = info_fn" (field_expression "png_ptr->info_fn" identifier -> field_identifier) = identifier) ;) (expression_statement "png_ptr->row_fn = row_fn;" (assignment_expression "png_ptr->row_fn = row_fn" (field_expression "png_ptr->row_fn" identifier -> field_identifier) = identifier) ;) (expression_statement "png_ptr->end_fn = end_fn;" (assignment_expression "png_ptr->end_fn = end_fn" (field_expression "png_ptr->end_fn" identifier -> field_identifier) = identifier) ;) (expression_statement "png_set_read_fn(png_ptr,progressive_ptr,png_push_fill_buffer);" (call_expression "png_set_read_fn(png_ptr,progressive_ptr,png_push_fill_buffer)" identifier (argument_list "(png_ptr,progressive_ptr,png_push_fill_buffer)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_progressive_read_fn\n               (long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n               undefined8 param_5)\n\n{\n  if (param_1 != 0) {\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void png_set_progressive_read_fn\n               (long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n               undefined8 param_5)\n\n{\n  if (param_1 != 0) {\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_progressive_read_fn\n               (long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n               undefined8 param_5)" identifier (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n               undefined8 param_5)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }\n  return;\n}" { (if_statement "if (param_1 != 0) {\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }" { (expression_statement "*(undefined8 *)(param_1 + 0x310) = param_3;" (assignment_expression "*(undefined8 *)(param_1 + 0x310) = param_3" (pointer_expression "*(undefined8 *)(param_1 + 0x310)" * (cast_expression "(undefined8 *)(param_1 + 0x310)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x310)" ( (binary_expression "param_1 + 0x310" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x318) = param_4;" (assignment_expression "*(undefined8 *)(param_1 + 0x318) = param_4" (pointer_expression "*(undefined8 *)(param_1 + 0x318)" * (cast_expression "(undefined8 *)(param_1 + 0x318)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x318)" ( (binary_expression "param_1 + 0x318" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 800) = param_5;" (assignment_expression "*(undefined8 *)(param_1 + 800) = param_5" (pointer_expression "*(undefined8 *)(param_1 + 800)" * (cast_expression "(undefined8 *)(param_1 + 800)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 800)" ( (binary_expression "param_1 + 800" identifier + number_literal) )))) = identifier) ;) (expression_statement "png_set_read_fn(param_1,param_2,FUN_0010cd98);" (call_expression "png_set_read_fn(param_1,param_2,FUN_0010cd98)" identifier (argument_list "(param_1,param_2,FUN_0010cd98)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (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) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void png_set_progressive_read_fn\n               (long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n               undefined8 param_5)\n\n{\n  if (param_1 != 0) {\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "png_set_progressive_read_fn\n               (long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n               undefined8 param_5)" (identifier "png_set_progressive_read_fn") (parameter_list "(long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,\n               undefined8 param_5)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) () ")"))) (compound_statement "{\n  if (param_1 != 0) {\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }\n  return;\n}" ({ "{") (if_statement "if (param_1 != 0) {\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined8 *)(param_1 + 0x310) = param_3;\n    *(undefined8 *)(param_1 + 0x318) = param_4;\n    *(undefined8 *)(param_1 + 800) = param_5;\n    png_set_read_fn(param_1,param_2,FUN_0010cd98);\n    return;\n  }" ({ "{") (expression_statement "*(undefined8 *)(param_1 + 0x310) = param_3;" (assignment_expression "*(undefined8 *)(param_1 + 0x310) = param_3" (pointer_expression "*(undefined8 *)(param_1 + 0x310)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x310)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x310)" (( "(") (binary_expression "param_1 + 0x310" (identifier "param_1") (+ "+") (number_literal "0x310")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x318) = param_4;" (assignment_expression "*(undefined8 *)(param_1 + 0x318) = param_4" (pointer_expression "*(undefined8 *)(param_1 + 0x318)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x318)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x318)" (( "(") (binary_expression "param_1 + 0x318" (identifier "param_1") (+ "+") (number_literal "0x318")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 800) = param_5;" (assignment_expression "*(undefined8 *)(param_1 + 800) = param_5" (pointer_expression "*(undefined8 *)(param_1 + 800)" (* "*") (cast_expression "(undefined8 *)(param_1 + 800)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 800)" (( "(") (binary_expression "param_1 + 800" (identifier "param_1") (+ "+") (number_literal "800")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (expression_statement "png_set_read_fn(param_1,param_2,FUN_0010cd98);" (call_expression "png_set_read_fn(param_1,param_2,FUN_0010cd98)" (identifier "png_set_read_fn") (argument_list "(param_1,param_2,FUN_0010cd98)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "FUN_0010cd98") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1
               (type_1 var_1,type_2 progressive_ptr,type_3 info_fn,
               type_4 row_fn,type_5 end_fn)

{
  if (var_1 != (type_1)0x0) {
    var_1->info_fn = info_fn;
    var_1->row_fn = row_fn;
    var_1->end_fn = end_fn;
    var_2(var_1,progressive_ptr,png_push_fill_buffer);
    return;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))) (return_statement))))

void MASKED
               (long param_1,undefined8 param_2,undefined8 param_3,undefined8 param_4,
               undefined8 param_5)

{
  if (param_1 != 0) {
    *(undefined8 *)(param_1 + 0x310) = param_3;
    *(undefined8 *)(param_1 + 0x318) = param_4;
    *(undefined8 *)(param_1 + 800) = param_5;
    png_set_read_fn(param_1,param_2,FUN_0010cd98);
    return;
  }
  return;
}

