
void png_set_write_fn(png_structrp png_ptr,png_voidp io_ptr,png_rw_ptr write_data_fn,
                     png_flush_ptr output_flush_fn)

{
  undefined *puVar1;
  undefined *UNRECOVERED_JUMPTABLE;
  
  if (png_ptr != (png_structrp)0x0) {
    png_ptr->io_ptr = io_ptr;
    if (write_data_fn == (png_rw_ptr)0x0) {
      write_data_fn = (png_rw_ptr)PTR_png_default_write_data_00053230;
    }
    png_ptr->write_data_fn = write_data_fn;
    if (output_flush_fn == (png_flush_ptr)0x0) {
      output_flush_fn = (png_flush_ptr)PTR_png_default_flush_0005322c;
    }
    png_ptr->output_flush_fn = output_flush_fn;
    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;
    puVar1 = PTR_s_nt_0005301c;
    if (png_ptr->read_data_fn != (png_rw_ptr)0x0) {
      png_ptr->read_data_fn = (png_rw_ptr)0x0;
                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)UNRECOVERED_JUMPTABLE)(png_ptr,puVar1 + 0x1c8);
      return;
    }
  }
  return;
}



void png_set_write_fn(int param_1,undefined4 param_2,undefined *param_3,undefined *param_4)

{
  undefined *puVar1;
  undefined *UNRECOVERED_JUMPTABLE;
  
  if (param_1 != 0) {
    *(undefined4 *)(param_1 + 0x110) = param_2;
    if (param_3 == (undefined *)0x0) {
      param_3 = PTR_FUN_00053230;
    }
    *(undefined **)(param_1 + 0x108) = param_3;
    if (param_4 == (undefined *)0x0) {
      param_4 = PTR_FUN_0005322c;
    }
    *(undefined **)(param_1 + 0x228) = param_4;
    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;
    puVar1 = PTR_s_nt_0005301c;
    if (*(int *)(param_1 + 0x10c) != 0) {
      *(undefined4 *)(param_1 + 0x10c) = 0;
                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);
      return;
    }
  }
  return;
}


lui gp,0x2
addiu gp,gp,0x5e38
addu gp,gp,t9
beq a0,zero,0x00035200
_or v0,a0,zero
beq a2,zero,0x00035210
_sw a1,0x110(a0)
beq a3,zero,0x00035208
_sw a2,0x108(v0)
lw v1,0x10c(v0)
beq v1,zero,0x00035200
_sw a3,0x228(v0)
lw a1,-0x7fd4(gp)
or a0,v0,zero
lw t9,-0x7bb0(gp)
sw zero,0x10c(v0)
jr t9
_addiu a1,a1,0x1c8
jr ra
_nop
b 0x000351dc
_lw a3,-0x7dc4(gp)
b 0x000351d4
_lw a2,-0x7dc0(gp)
(translation_unit "void png_set_write_fn(int param_1,undefined4 param_2,undefined *param_3,undefined *param_4)\n\n{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void png_set_write_fn(int param_1,undefined4 param_2,undefined *param_3,undefined *param_4)\n\n{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "png_set_write_fn(int param_1,undefined4 param_2,undefined *param_3,undefined *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined *param_3,undefined *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *UNRECOVERED_JUMPTABLE;" type_identifier (pointer_declarator "*UNRECOVERED_JUMPTABLE" * identifier) ;) (if_statement "if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x110) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x110) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x110)" * (cast_expression "(undefined4 *)(param_1 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }" if (parenthesized_expression "(param_3 == (undefined *)0x0)" ( (binary_expression "param_3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_3 = PTR_FUN_00053230;\n    }" { (expression_statement "param_3 = PTR_FUN_00053230;" (assignment_expression "param_3 = PTR_FUN_00053230" identifier = identifier) ;) })) (expression_statement "*(undefined **)(param_1 + 0x108) = param_3;" (assignment_expression "*(undefined **)(param_1 + 0x108) = param_3" (pointer_expression "*(undefined **)(param_1 + 0x108)" * (cast_expression "(undefined **)(param_1 + 0x108)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }" if (parenthesized_expression "(param_4 == (undefined *)0x0)" ( (binary_expression "param_4 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_4 = PTR_FUN_0005322c;\n    }" { (expression_statement "param_4 = PTR_FUN_0005322c;" (assignment_expression "param_4 = PTR_FUN_0005322c" identifier = identifier) ;) })) (expression_statement "*(undefined **)(param_1 + 0x228) = param_4;" (assignment_expression "*(undefined **)(param_1 + 0x228) = param_4" (pointer_expression "*(undefined **)(param_1 + 0x228)" * (cast_expression "(undefined **)(param_1 + 0x228)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x228)" ( (binary_expression "param_1 + 0x228" identifier + number_literal) )))) = identifier) ;) (expression_statement "UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;" (assignment_expression "UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440" identifier = identifier) ;) (expression_statement "puVar1 = PTR_s_nt_0005301c;" (assignment_expression "puVar1 = PTR_s_nt_0005301c" identifier = identifier) ;) (if_statement "if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x10c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10c) != 0" (pointer_expression "*(int *)(param_1 + 0x10c)" * (cast_expression "(int *)(param_1 + 0x10c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x10c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10c)" * (cast_expression "(undefined4 *)(param_1 + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) = number_literal) ;) comment comment (expression_statement "(*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);" (call_expression "(*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8)" (parenthesized_expression "(*(code *)UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*(code *)UNRECOVERED_JUMPTABLE" * (cast_expression "(code *)UNRECOVERED_JUMPTABLE" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,puVar1 + 0x1c8)" ( identifier , (binary_expression "puVar1 + 0x1c8" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_write_fn(png_structrp png_ptr,png_voidp io_ptr,png_rw_ptr write_data_fn,\n                     png_flush_ptr output_flush_fn)\n\n{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  \n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->io_ptr = io_ptr;\n    if (write_data_fn == (png_rw_ptr)0x0) {\n      write_data_fn = (png_rw_ptr)PTR_png_default_write_data_00053230;\n    }\n    png_ptr->write_data_fn = write_data_fn;\n    if (output_flush_fn == (png_flush_ptr)0x0) {\n      output_flush_fn = (png_flush_ptr)PTR_png_default_flush_0005322c;\n    }\n    png_ptr->output_flush_fn = output_flush_fn;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (png_ptr->read_data_fn != (png_rw_ptr)0x0) {\n      png_ptr->read_data_fn = (png_rw_ptr)0x0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(png_ptr,puVar1 + 0x1c8);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void png_set_write_fn(png_structrp png_ptr,png_voidp io_ptr,png_rw_ptr write_data_fn,\n                     png_flush_ptr output_flush_fn)\n\n{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  \n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->io_ptr = io_ptr;\n    if (write_data_fn == (png_rw_ptr)0x0) {\n      write_data_fn = (png_rw_ptr)PTR_png_default_write_data_00053230;\n    }\n    png_ptr->write_data_fn = write_data_fn;\n    if (output_flush_fn == (png_flush_ptr)0x0) {\n      output_flush_fn = (png_flush_ptr)PTR_png_default_flush_0005322c;\n    }\n    png_ptr->output_flush_fn = output_flush_fn;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (png_ptr->read_data_fn != (png_rw_ptr)0x0) {\n      png_ptr->read_data_fn = (png_rw_ptr)0x0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(png_ptr,puVar1 + 0x1c8);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "png_set_write_fn(png_structrp png_ptr,png_voidp io_ptr,png_rw_ptr write_data_fn,\n                     png_flush_ptr output_flush_fn)" identifier (parameter_list "(png_structrp png_ptr,png_voidp io_ptr,png_rw_ptr write_data_fn,\n                     png_flush_ptr output_flush_fn)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_voidp io_ptr" type_identifier identifier) , (parameter_declaration "png_rw_ptr write_data_fn" type_identifier identifier) , (parameter_declaration "png_flush_ptr output_flush_fn" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  \n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->io_ptr = io_ptr;\n    if (write_data_fn == (png_rw_ptr)0x0) {\n      write_data_fn = (png_rw_ptr)PTR_png_default_write_data_00053230;\n    }\n    png_ptr->write_data_fn = write_data_fn;\n    if (output_flush_fn == (png_flush_ptr)0x0) {\n      output_flush_fn = (png_flush_ptr)PTR_png_default_flush_0005322c;\n    }\n    png_ptr->output_flush_fn = output_flush_fn;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (png_ptr->read_data_fn != (png_rw_ptr)0x0) {\n      png_ptr->read_data_fn = (png_rw_ptr)0x0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(png_ptr,puVar1 + 0x1c8);\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *UNRECOVERED_JUMPTABLE;" type_identifier (pointer_declarator "*UNRECOVERED_JUMPTABLE" * identifier) ;) (if_statement "if (png_ptr != (png_structrp)0x0) {\n    png_ptr->io_ptr = io_ptr;\n    if (write_data_fn == (png_rw_ptr)0x0) {\n      write_data_fn = (png_rw_ptr)PTR_png_default_write_data_00053230;\n    }\n    png_ptr->write_data_fn = write_data_fn;\n    if (output_flush_fn == (png_flush_ptr)0x0) {\n      output_flush_fn = (png_flush_ptr)PTR_png_default_flush_0005322c;\n    }\n    png_ptr->output_flush_fn = output_flush_fn;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (png_ptr->read_data_fn != (png_rw_ptr)0x0) {\n      png_ptr->read_data_fn = (png_rw_ptr)0x0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(png_ptr,puVar1 + 0x1c8);\n      return;\n    }\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->io_ptr = io_ptr;\n    if (write_data_fn == (png_rw_ptr)0x0) {\n      write_data_fn = (png_rw_ptr)PTR_png_default_write_data_00053230;\n    }\n    png_ptr->write_data_fn = write_data_fn;\n    if (output_flush_fn == (png_flush_ptr)0x0) {\n      output_flush_fn = (png_flush_ptr)PTR_png_default_flush_0005322c;\n    }\n    png_ptr->output_flush_fn = output_flush_fn;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (png_ptr->read_data_fn != (png_rw_ptr)0x0) {\n      png_ptr->read_data_fn = (png_rw_ptr)0x0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(png_ptr,puVar1 + 0x1c8);\n      return;\n    }\n  }" { (expression_statement "png_ptr->io_ptr = io_ptr;" (assignment_expression "png_ptr->io_ptr = io_ptr" (field_expression "png_ptr->io_ptr" identifier -> field_identifier) = identifier) ;) (if_statement "if (write_data_fn == (png_rw_ptr)0x0) {\n      write_data_fn = (png_rw_ptr)PTR_png_default_write_data_00053230;\n    }" if (parenthesized_expression "(write_data_fn == (png_rw_ptr)0x0)" ( (binary_expression "write_data_fn == (png_rw_ptr)0x0" identifier == (cast_expression "(png_rw_ptr)0x0" ( (type_descriptor "png_rw_ptr" type_identifier) ) number_literal)) )) (compound_statement "{\n      write_data_fn = (png_rw_ptr)PTR_png_default_write_data_00053230;\n    }" { (expression_statement "write_data_fn = (png_rw_ptr)PTR_png_default_write_data_00053230;" (assignment_expression "write_data_fn = (png_rw_ptr)PTR_png_default_write_data_00053230" identifier = (cast_expression "(png_rw_ptr)PTR_png_default_write_data_00053230" ( (type_descriptor "png_rw_ptr" type_identifier) ) identifier)) ;) })) (expression_statement "png_ptr->write_data_fn = write_data_fn;" (assignment_expression "png_ptr->write_data_fn = write_data_fn" (field_expression "png_ptr->write_data_fn" identifier -> field_identifier) = identifier) ;) (if_statement "if (output_flush_fn == (png_flush_ptr)0x0) {\n      output_flush_fn = (png_flush_ptr)PTR_png_default_flush_0005322c;\n    }" if (parenthesized_expression "(output_flush_fn == (png_flush_ptr)0x0)" ( (binary_expression "output_flush_fn == (png_flush_ptr)0x0" identifier == (cast_expression "(png_flush_ptr)0x0" ( (type_descriptor "png_flush_ptr" type_identifier) ) number_literal)) )) (compound_statement "{\n      output_flush_fn = (png_flush_ptr)PTR_png_default_flush_0005322c;\n    }" { (expression_statement "output_flush_fn = (png_flush_ptr)PTR_png_default_flush_0005322c;" (assignment_expression "output_flush_fn = (png_flush_ptr)PTR_png_default_flush_0005322c" identifier = (cast_expression "(png_flush_ptr)PTR_png_default_flush_0005322c" ( (type_descriptor "png_flush_ptr" type_identifier) ) identifier)) ;) })) (expression_statement "png_ptr->output_flush_fn = output_flush_fn;" (assignment_expression "png_ptr->output_flush_fn = output_flush_fn" (field_expression "png_ptr->output_flush_fn" identifier -> field_identifier) = identifier) ;) (expression_statement "UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;" (assignment_expression "UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440" identifier = identifier) ;) (expression_statement "puVar1 = PTR_s_nt_0005301c;" (assignment_expression "puVar1 = PTR_s_nt_0005301c" identifier = identifier) ;) (if_statement "if (png_ptr->read_data_fn != (png_rw_ptr)0x0) {\n      png_ptr->read_data_fn = (png_rw_ptr)0x0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(png_ptr,puVar1 + 0x1c8);\n      return;\n    }" if (parenthesized_expression "(png_ptr->read_data_fn != (png_rw_ptr)0x0)" ( (binary_expression "png_ptr->read_data_fn != (png_rw_ptr)0x0" (field_expression "png_ptr->read_data_fn" identifier -> field_identifier) != (cast_expression "(png_rw_ptr)0x0" ( (type_descriptor "png_rw_ptr" type_identifier) ) number_literal)) )) (compound_statement "{\n      png_ptr->read_data_fn = (png_rw_ptr)0x0;\n                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      (*(code *)UNRECOVERED_JUMPTABLE)(png_ptr,puVar1 + 0x1c8);\n      return;\n    }" { (expression_statement "png_ptr->read_data_fn = (png_rw_ptr)0x0;" (assignment_expression "png_ptr->read_data_fn = (png_rw_ptr)0x0" (field_expression "png_ptr->read_data_fn" identifier -> field_identifier) = (cast_expression "(png_rw_ptr)0x0" ( (type_descriptor "png_rw_ptr" type_identifier) ) number_literal)) ;) comment comment (expression_statement "(*(code *)UNRECOVERED_JUMPTABLE)(png_ptr,puVar1 + 0x1c8);" (call_expression "(*(code *)UNRECOVERED_JUMPTABLE)(png_ptr,puVar1 + 0x1c8)" (parenthesized_expression "(*(code *)UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*(code *)UNRECOVERED_JUMPTABLE" * (cast_expression "(code *)UNRECOVERED_JUMPTABLE" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(png_ptr,puVar1 + 0x1c8)" ( identifier , (binary_expression "puVar1 + 0x1c8" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_write_fn(int param_1,undefined4 param_2,undefined *param_3,undefined *param_4)\n\n{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void png_set_write_fn(int param_1,undefined4 param_2,undefined *param_3,undefined *param_4)\n\n{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "png_set_write_fn(int param_1,undefined4 param_2,undefined *param_3,undefined *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined *param_3,undefined *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *UNRECOVERED_JUMPTABLE;" type_identifier (pointer_declarator "*UNRECOVERED_JUMPTABLE" * identifier) ;) (if_statement "if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x110) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x110) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x110)" * (cast_expression "(undefined4 *)(param_1 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x110)" ( (binary_expression "param_1 + 0x110" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }" if (parenthesized_expression "(param_3 == (undefined *)0x0)" ( (binary_expression "param_3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_3 = PTR_FUN_00053230;\n    }" { (expression_statement "param_3 = PTR_FUN_00053230;" (assignment_expression "param_3 = PTR_FUN_00053230" identifier = identifier) ;) })) (expression_statement "*(undefined **)(param_1 + 0x108) = param_3;" (assignment_expression "*(undefined **)(param_1 + 0x108) = param_3" (pointer_expression "*(undefined **)(param_1 + 0x108)" * (cast_expression "(undefined **)(param_1 + 0x108)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }" if (parenthesized_expression "(param_4 == (undefined *)0x0)" ( (binary_expression "param_4 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      param_4 = PTR_FUN_0005322c;\n    }" { (expression_statement "param_4 = PTR_FUN_0005322c;" (assignment_expression "param_4 = PTR_FUN_0005322c" identifier = identifier) ;) })) (expression_statement "*(undefined **)(param_1 + 0x228) = param_4;" (assignment_expression "*(undefined **)(param_1 + 0x228) = param_4" (pointer_expression "*(undefined **)(param_1 + 0x228)" * (cast_expression "(undefined **)(param_1 + 0x228)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x228)" ( (binary_expression "param_1 + 0x228" identifier + number_literal) )))) = identifier) ;) (expression_statement "UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;" (assignment_expression "UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440" identifier = identifier) ;) (expression_statement "puVar1 = PTR_s_nt_0005301c;" (assignment_expression "puVar1 = PTR_s_nt_0005301c" identifier = identifier) ;) (if_statement "if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x10c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x10c) != 0" (pointer_expression "*(int *)(param_1 + 0x10c)" * (cast_expression "(int *)(param_1 + 0x10c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x10c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10c)" * (cast_expression "(undefined4 *)(param_1 + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);" (call_expression "(*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8)" (parenthesized_expression "(*(code *)UNRECOVERED_JUMPTABLE)" ( (pointer_expression "*(code *)UNRECOVERED_JUMPTABLE" * (cast_expression "(code *)UNRECOVERED_JUMPTABLE" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,puVar1 + 0x1c8)" ( identifier , (binary_expression "puVar1 + 0x1c8" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) })) (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 (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (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 ;) })) })) (return_statement return ;) })))
(function_definition "void png_set_write_fn(int param_1,undefined4 param_2,undefined *param_3,undefined *param_4)\n\n{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "png_set_write_fn(int param_1,undefined4 param_2,undefined *param_3,undefined *param_4)" (identifier "png_set_write_fn") (parameter_list "(int param_1,undefined4 param_2,undefined *param_3,undefined *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 "undefined *param_3" (type_identifier "undefined") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined *param_4" (type_identifier "undefined") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *UNRECOVERED_JUMPTABLE;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *UNRECOVERED_JUMPTABLE;" (type_identifier "undefined") (pointer_declarator "*UNRECOVERED_JUMPTABLE" (* "*") (identifier "UNRECOVERED_JUMPTABLE")) (; ";")) (if_statement "if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\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 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }\n    *(undefined **)(param_1 + 0x108) = param_3;\n    if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }\n    *(undefined **)(param_1 + 0x228) = param_4;\n    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x110) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x110) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x110)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x110)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x110)" (( "(") (binary_expression "param_1 + 0x110" (identifier "param_1") (+ "+") (number_literal "0x110")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_FUN_00053230;\n    }" (if "if") (parenthesized_expression "(param_3 == (undefined *)0x0)" (( "(") (binary_expression "param_3 == (undefined *)0x0" (identifier "param_3") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      param_3 = PTR_FUN_00053230;\n    }" ({ "{") (expression_statement "param_3 = PTR_FUN_00053230;" (assignment_expression "param_3 = PTR_FUN_00053230" (identifier "param_3") (= "=") (identifier "PTR_FUN_00053230")) (; ";")) (} "}"))) (expression_statement "*(undefined **)(param_1 + 0x108) = param_3;" (assignment_expression "*(undefined **)(param_1 + 0x108) = param_3" (pointer_expression "*(undefined **)(param_1 + 0x108)" (* "*") (cast_expression "(undefined **)(param_1 + 0x108)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_4 == (undefined *)0x0) {\n      param_4 = PTR_FUN_0005322c;\n    }" (if "if") (parenthesized_expression "(param_4 == (undefined *)0x0)" (( "(") (binary_expression "param_4 == (undefined *)0x0" (identifier "param_4") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      param_4 = PTR_FUN_0005322c;\n    }" ({ "{") (expression_statement "param_4 = PTR_FUN_0005322c;" (assignment_expression "param_4 = PTR_FUN_0005322c" (identifier "param_4") (= "=") (identifier "PTR_FUN_0005322c")) (; ";")) (} "}"))) (expression_statement "*(undefined **)(param_1 + 0x228) = param_4;" (assignment_expression "*(undefined **)(param_1 + 0x228) = param_4" (pointer_expression "*(undefined **)(param_1 + 0x228)" (* "*") (cast_expression "(undefined **)(param_1 + 0x228)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x228)" (( "(") (binary_expression "param_1 + 0x228" (identifier "param_1") (+ "+") (number_literal "0x228")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;" (assignment_expression "UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440" (identifier "UNRECOVERED_JUMPTABLE") (= "=") (identifier "PTR_png_warning_00053440")) (; ";")) (expression_statement "puVar1 = PTR_s_nt_0005301c;" (assignment_expression "puVar1 = PTR_s_nt_0005301c" (identifier "puVar1") (= "=") (identifier "PTR_s_nt_0005301c")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x10c) != 0) {\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x10c) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x10c) != 0" (pointer_expression "*(int *)(param_1 + 0x10c)" (* "*") (cast_expression "(int *)(param_1 + 0x10c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x10c) = 0;\n                    \n                    \n      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);\n      return;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x10c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x10c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x10c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);" (call_expression "(*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8)" (parenthesized_expression "(*(code *)UNRECOVERED_JUMPTABLE)" (( "(") (pointer_expression "*(code *)UNRECOVERED_JUMPTABLE" (* "*") (cast_expression "(code *)UNRECOVERED_JUMPTABLE" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "UNRECOVERED_JUMPTABLE"))) () ")")) (argument_list "(param_1,puVar1 + 0x1c8)" (( "(") (identifier "param_1") (, ",") (binary_expression "puVar1 + 0x1c8" (identifier "puVar1") (+ "+") (number_literal "0x1c8")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 var_1,type_2 io_ptr,type_3 var_2,
                     type_4 var_3)

{
  type_5 *var_4;
  type_5 *UNRECOVERED_JUMPTABLE;
  
  if (var_1 != (type_1)0x0) {
    var_1->io_ptr = io_ptr;
    if (var_2 == (type_3)0x0) {
      var_2 = (type_3)PTR_png_default_write_data_00053230;
    }
    var_1->var_2 = var_2;
    if (var_3 == (type_4)0x0) {
      var_3 = (type_4)PTR_png_default_flush_0005322c;
    }
    var_1->var_3 = var_3;
    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;
    var_4 = PTR_s_nt_0005301c;
    if (var_1->read_data_fn != (type_3)0x0) {
      var_1->read_data_fn = (type_3)0x0;
                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(type_6 *)UNRECOVERED_JUMPTABLE)(var_1,var_4 + 0x1c8);
      return;
    }
  }
  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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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: (number_literal))) (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))))) (return_statement))))

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

{
  undefined *puVar1;
  undefined *UNRECOVERED_JUMPTABLE;
  
  if (param_1 != 0) {
    *(undefined4 *)(param_1 + 0x110) = param_2;
    if (param_3 == (undefined *)0x0) {
      param_3 = PTR_FUN_00053230;
    }
    *(undefined **)(param_1 + 0x108) = param_3;
    if (param_4 == (undefined *)0x0) {
      param_4 = PTR_FUN_0005322c;
    }
    *(undefined **)(param_1 + 0x228) = param_4;
    UNRECOVERED_JUMPTABLE = PTR_png_warning_00053440;
    puVar1 = PTR_s_nt_0005301c;
    if (*(int *)(param_1 + 0x10c) != 0) {
      *(undefined4 *)(param_1 + 0x10c) = 0;
                    /* WARNING: Could not recover jumptable at 0x000351f8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      (*(code *)UNRECOVERED_JUMPTABLE)(param_1,puVar1 + 0x1c8);
      return;
    }
  }
  return;
}

