
void png_set_read_fn(png_structrp png_ptr,png_voidp io_ptr,png_rw_ptr read_data_fn)

{
  int iVar1;
  undefined4 in_a3;
  int in_t9;
  code *pcVar2;
  
  if (png_ptr != (png_structrp)0x0) {
    png_ptr->io_ptr = io_ptr;
    if (read_data_fn == (png_rw_ptr)0x0) {
      read_data_fn = *(png_rw_ptr *)(in_t9 + 0x2ed18);
    }
    png_ptr->read_data_fn = read_data_fn;
    if (png_ptr->write_data_fn != (png_rw_ptr)0x0) {
      iVar1 = *(int *)(in_t9 + 0x2eb84);
      pcVar2 = *(code **)(in_t9 + 0x2efa8);
      png_ptr->write_data_fn = (png_rw_ptr)0x0;
      (*pcVar2)(png_ptr,iVar1 + 0x1c8,read_data_fn,in_a3,in_t9 + 0x36b58);
    }
    png_ptr->output_flush_fn = (png_flush_ptr)0x0;
    return;
  }
  return;
}



void png_set_read_fn(int param_1,undefined4 param_2,undefined *param_3)

{
  undefined *puVar1;
  undefined *puVar2;
  
  if (param_1 != 0) {
    *(undefined4 *)(param_1 + 0x110) = param_2;
    if (param_3 == (undefined *)0x0) {
      param_3 = PTR_LAB_000531b0;
    }
    *(undefined **)(param_1 + 0x10c) = param_3;
    puVar2 = PTR_png_warning_00053440;
    puVar1 = PTR_s_nt_0005301c;
    if (*(int *)(param_1 + 0x108) != 0) {
      *(undefined4 *)(param_1 + 0x108) = 0;
      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);
    }
    *(undefined4 *)(param_1 + 0x228) = 0;
    return;
  }
  return;
}


lui gp,0x3
addiu gp,gp,0x6b58
addu gp,gp,t9
beq a0,zero,0x00024508
_nop
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
sw ra,0x1c(sp)
beq a2,zero,0x00024500
_sw a1,0x110(a0)
lw v0,0x108(s0)
beq v0,zero,0x000244ec
_sw a2,0x10c(s0)
lw a1,-0x7fd4(gp)
or a0,s0,zero
lw t9,-0x7bb0(gp)
sw zero,0x108(s0)
jalr t9
_addiu a1,a1,0x1c8
lw ra,0x1c(sp)
sw zero,0x228(s0)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
b 0x000244c8
_lw a2,-0x7e40(gp)
jr ra
_nop
(translation_unit "void png_set_read_fn(int param_1,undefined4 param_2,undefined *param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\n  }\n  return;\n}\n\n" (function_definition "void png_set_read_fn(int param_1,undefined4 param_2,undefined *param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_read_fn(int param_1,undefined4 param_2,undefined *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined *param_3)" ( (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)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\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_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\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_LAB_000531b0;\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_LAB_000531b0;\n    }" { (expression_statement "param_3 = PTR_LAB_000531b0;" (assignment_expression "param_3 = PTR_LAB_000531b0" identifier = identifier) ;) })) (expression_statement "*(undefined **)(param_1 + 0x10c) = param_3;" (assignment_expression "*(undefined **)(param_1 + 0x10c) = param_3" (pointer_expression "*(undefined **)(param_1 + 0x10c)" * (cast_expression "(undefined **)(param_1 + 0x10c)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar2 = PTR_png_warning_00053440;" (assignment_expression "puVar2 = 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 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x108) != 0)" ( (binary_expression "*(int *)(param_1 + 0x108) != 0" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x108) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x108) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x108)" * (cast_expression "(undefined4 *)(param_1 + 0x108)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar2)(param_1,puVar1 + 0x1c8);" (call_expression "(*(code *)puVar2)(param_1,puVar1 + 0x1c8)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,puVar1 + 0x1c8)" ( identifier , (binary_expression "puVar1 + 0x1c8" identifier + number_literal) ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x228) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x228) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x228)" * (cast_expression "(undefined4 *)(param_1 + 0x228)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x228)" ( (binary_expression "param_1 + 0x228" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_read_fn(png_structrp png_ptr,png_voidp io_ptr,png_rw_ptr read_data_fn)\n\n{\n  int iVar1;\n  undefined4 in_a3;\n  int in_t9;\n  code *pcVar2;\n  \n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->io_ptr = io_ptr;\n    if (read_data_fn == (png_rw_ptr)0x0) {\n      read_data_fn = *(png_rw_ptr *)(in_t9 + 0x2ed18);\n    }\n    png_ptr->read_data_fn = read_data_fn;\n    if (png_ptr->write_data_fn != (png_rw_ptr)0x0) {\n      iVar1 = *(int *)(in_t9 + 0x2eb84);\n      pcVar2 = *(code **)(in_t9 + 0x2efa8);\n      png_ptr->write_data_fn = (png_rw_ptr)0x0;\n      (*pcVar2)(png_ptr,iVar1 + 0x1c8,read_data_fn,in_a3,in_t9 + 0x36b58);\n    }\n    png_ptr->output_flush_fn = (png_flush_ptr)0x0;\n    return;\n  }\n  return;\n}\n\n" (function_definition "void png_set_read_fn(png_structrp png_ptr,png_voidp io_ptr,png_rw_ptr read_data_fn)\n\n{\n  int iVar1;\n  undefined4 in_a3;\n  int in_t9;\n  code *pcVar2;\n  \n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->io_ptr = io_ptr;\n    if (read_data_fn == (png_rw_ptr)0x0) {\n      read_data_fn = *(png_rw_ptr *)(in_t9 + 0x2ed18);\n    }\n    png_ptr->read_data_fn = read_data_fn;\n    if (png_ptr->write_data_fn != (png_rw_ptr)0x0) {\n      iVar1 = *(int *)(in_t9 + 0x2eb84);\n      pcVar2 = *(code **)(in_t9 + 0x2efa8);\n      png_ptr->write_data_fn = (png_rw_ptr)0x0;\n      (*pcVar2)(png_ptr,iVar1 + 0x1c8,read_data_fn,in_a3,in_t9 + 0x36b58);\n    }\n    png_ptr->output_flush_fn = (png_flush_ptr)0x0;\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_read_fn(png_structrp png_ptr,png_voidp io_ptr,png_rw_ptr read_data_fn)" identifier (parameter_list "(png_structrp png_ptr,png_voidp io_ptr,png_rw_ptr read_data_fn)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_voidp io_ptr" type_identifier identifier) , (parameter_declaration "png_rw_ptr read_data_fn" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 in_a3;\n  int in_t9;\n  code *pcVar2;\n  \n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->io_ptr = io_ptr;\n    if (read_data_fn == (png_rw_ptr)0x0) {\n      read_data_fn = *(png_rw_ptr *)(in_t9 + 0x2ed18);\n    }\n    png_ptr->read_data_fn = read_data_fn;\n    if (png_ptr->write_data_fn != (png_rw_ptr)0x0) {\n      iVar1 = *(int *)(in_t9 + 0x2eb84);\n      pcVar2 = *(code **)(in_t9 + 0x2efa8);\n      png_ptr->write_data_fn = (png_rw_ptr)0x0;\n      (*pcVar2)(png_ptr,iVar1 + 0x1c8,read_data_fn,in_a3,in_t9 + 0x36b58);\n    }\n    png_ptr->output_flush_fn = (png_flush_ptr)0x0;\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "int in_t9;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (png_ptr != (png_structrp)0x0) {\n    png_ptr->io_ptr = io_ptr;\n    if (read_data_fn == (png_rw_ptr)0x0) {\n      read_data_fn = *(png_rw_ptr *)(in_t9 + 0x2ed18);\n    }\n    png_ptr->read_data_fn = read_data_fn;\n    if (png_ptr->write_data_fn != (png_rw_ptr)0x0) {\n      iVar1 = *(int *)(in_t9 + 0x2eb84);\n      pcVar2 = *(code **)(in_t9 + 0x2efa8);\n      png_ptr->write_data_fn = (png_rw_ptr)0x0;\n      (*pcVar2)(png_ptr,iVar1 + 0x1c8,read_data_fn,in_a3,in_t9 + 0x36b58);\n    }\n    png_ptr->output_flush_fn = (png_flush_ptr)0x0;\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->io_ptr = io_ptr;\n    if (read_data_fn == (png_rw_ptr)0x0) {\n      read_data_fn = *(png_rw_ptr *)(in_t9 + 0x2ed18);\n    }\n    png_ptr->read_data_fn = read_data_fn;\n    if (png_ptr->write_data_fn != (png_rw_ptr)0x0) {\n      iVar1 = *(int *)(in_t9 + 0x2eb84);\n      pcVar2 = *(code **)(in_t9 + 0x2efa8);\n      png_ptr->write_data_fn = (png_rw_ptr)0x0;\n      (*pcVar2)(png_ptr,iVar1 + 0x1c8,read_data_fn,in_a3,in_t9 + 0x36b58);\n    }\n    png_ptr->output_flush_fn = (png_flush_ptr)0x0;\n    return;\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 (read_data_fn == (png_rw_ptr)0x0) {\n      read_data_fn = *(png_rw_ptr *)(in_t9 + 0x2ed18);\n    }" if (parenthesized_expression "(read_data_fn == (png_rw_ptr)0x0)" ( (binary_expression "read_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      read_data_fn = *(png_rw_ptr *)(in_t9 + 0x2ed18);\n    }" { (expression_statement "read_data_fn = *(png_rw_ptr *)(in_t9 + 0x2ed18);" (assignment_expression "read_data_fn = *(png_rw_ptr *)(in_t9 + 0x2ed18)" identifier = (pointer_expression "*(png_rw_ptr *)(in_t9 + 0x2ed18)" * (cast_expression "(png_rw_ptr *)(in_t9 + 0x2ed18)" ( (type_descriptor "png_rw_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x2ed18)" ( (binary_expression "in_t9 + 0x2ed18" identifier + number_literal) ))))) ;) })) (expression_statement "png_ptr->read_data_fn = read_data_fn;" (assignment_expression "png_ptr->read_data_fn = read_data_fn" (field_expression "png_ptr->read_data_fn" identifier -> field_identifier) = identifier) ;) (if_statement "if (png_ptr->write_data_fn != (png_rw_ptr)0x0) {\n      iVar1 = *(int *)(in_t9 + 0x2eb84);\n      pcVar2 = *(code **)(in_t9 + 0x2efa8);\n      png_ptr->write_data_fn = (png_rw_ptr)0x0;\n      (*pcVar2)(png_ptr,iVar1 + 0x1c8,read_data_fn,in_a3,in_t9 + 0x36b58);\n    }" if (parenthesized_expression "(png_ptr->write_data_fn != (png_rw_ptr)0x0)" ( (binary_expression "png_ptr->write_data_fn != (png_rw_ptr)0x0" (field_expression "png_ptr->write_data_fn" identifier -> field_identifier) != (cast_expression "(png_rw_ptr)0x0" ( (type_descriptor "png_rw_ptr" type_identifier) ) number_literal)) )) (compound_statement "{\n      iVar1 = *(int *)(in_t9 + 0x2eb84);\n      pcVar2 = *(code **)(in_t9 + 0x2efa8);\n      png_ptr->write_data_fn = (png_rw_ptr)0x0;\n      (*pcVar2)(png_ptr,iVar1 + 0x1c8,read_data_fn,in_a3,in_t9 + 0x36b58);\n    }" { (expression_statement "iVar1 = *(int *)(in_t9 + 0x2eb84);" (assignment_expression "iVar1 = *(int *)(in_t9 + 0x2eb84)" identifier = (pointer_expression "*(int *)(in_t9 + 0x2eb84)" * (cast_expression "(int *)(in_t9 + 0x2eb84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x2eb84)" ( (binary_expression "in_t9 + 0x2eb84" identifier + number_literal) ))))) ;) (expression_statement "pcVar2 = *(code **)(in_t9 + 0x2efa8);" (assignment_expression "pcVar2 = *(code **)(in_t9 + 0x2efa8)" identifier = (pointer_expression "*(code **)(in_t9 + 0x2efa8)" * (cast_expression "(code **)(in_t9 + 0x2efa8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x2efa8)" ( (binary_expression "in_t9 + 0x2efa8" identifier + number_literal) ))))) ;) (expression_statement "png_ptr->write_data_fn = (png_rw_ptr)0x0;" (assignment_expression "png_ptr->write_data_fn = (png_rw_ptr)0x0" (field_expression "png_ptr->write_data_fn" identifier -> field_identifier) = (cast_expression "(png_rw_ptr)0x0" ( (type_descriptor "png_rw_ptr" type_identifier) ) number_literal)) ;) (expression_statement "(*pcVar2)(png_ptr,iVar1 + 0x1c8,read_data_fn,in_a3,in_t9 + 0x36b58);" (call_expression "(*pcVar2)(png_ptr,iVar1 + 0x1c8,read_data_fn,in_a3,in_t9 + 0x36b58)" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "(png_ptr,iVar1 + 0x1c8,read_data_fn,in_a3,in_t9 + 0x36b58)" ( identifier , (binary_expression "iVar1 + 0x1c8" identifier + number_literal) , identifier , identifier , (binary_expression "in_t9 + 0x36b58" identifier + number_literal) ))) ;) })) (expression_statement "png_ptr->output_flush_fn = (png_flush_ptr)0x0;" (assignment_expression "png_ptr->output_flush_fn = (png_flush_ptr)0x0" (field_expression "png_ptr->output_flush_fn" identifier -> field_identifier) = (cast_expression "(png_flush_ptr)0x0" ( (type_descriptor "png_flush_ptr" type_identifier) ) number_literal)) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_read_fn(int param_1,undefined4 param_2,undefined *param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\n  }\n  return;\n}\n\n" (function_definition "void png_set_read_fn(int param_1,undefined4 param_2,undefined *param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_read_fn(int param_1,undefined4 param_2,undefined *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined *param_3)" ( (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)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\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_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\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_LAB_000531b0;\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_LAB_000531b0;\n    }" { (expression_statement "param_3 = PTR_LAB_000531b0;" (assignment_expression "param_3 = PTR_LAB_000531b0" identifier = identifier) ;) })) (expression_statement "*(undefined **)(param_1 + 0x10c) = param_3;" (assignment_expression "*(undefined **)(param_1 + 0x10c) = param_3" (pointer_expression "*(undefined **)(param_1 + 0x10c)" * (cast_expression "(undefined **)(param_1 + 0x10c)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10c)" ( (binary_expression "param_1 + 0x10c" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar2 = PTR_png_warning_00053440;" (assignment_expression "puVar2 = 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 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x108) != 0)" ( (binary_expression "*(int *)(param_1 + 0x108) != 0" (pointer_expression "*(int *)(param_1 + 0x108)" * (cast_expression "(int *)(param_1 + 0x108)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x108) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x108) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x108)" * (cast_expression "(undefined4 *)(param_1 + 0x108)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x108)" ( (binary_expression "param_1 + 0x108" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar2)(param_1,puVar1 + 0x1c8);" (call_expression "(*(code *)puVar2)(param_1,puVar1 + 0x1c8)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,puVar1 + 0x1c8)" ( identifier , (binary_expression "puVar1 + 0x1c8" identifier + number_literal) ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x228) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x228) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x228)" * (cast_expression "(undefined4 *)(param_1 + 0x228)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x228)" ( (binary_expression "param_1 + 0x228" identifier + number_literal) )))) = 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)) ))) (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) ;) (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) ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void png_set_read_fn(int param_1,undefined4 param_2,undefined *param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "png_set_read_fn(int param_1,undefined4 param_2,undefined *param_3)" (identifier "png_set_read_fn") (parameter_list "(int param_1,undefined4 param_2,undefined *param_3)" (( "(") (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"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  \n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x110) = param_2;\n    if (param_3 == (undefined *)0x0) {\n      param_3 = PTR_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\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_LAB_000531b0;\n    }\n    *(undefined **)(param_1 + 0x10c) = param_3;\n    puVar2 = PTR_png_warning_00053440;\n    puVar1 = PTR_s_nt_0005301c;\n    if (*(int *)(param_1 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }\n    *(undefined4 *)(param_1 + 0x228) = 0;\n    return;\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_LAB_000531b0;\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_LAB_000531b0;\n    }" ({ "{") (expression_statement "param_3 = PTR_LAB_000531b0;" (assignment_expression "param_3 = PTR_LAB_000531b0" (identifier "param_3") (= "=") (identifier "PTR_LAB_000531b0")) (; ";")) (} "}"))) (expression_statement "*(undefined **)(param_1 + 0x10c) = param_3;" (assignment_expression "*(undefined **)(param_1 + 0x10c) = param_3" (pointer_expression "*(undefined **)(param_1 + 0x10c)" (* "*") (cast_expression "(undefined **)(param_1 + 0x10c)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10c)" (( "(") (binary_expression "param_1 + 0x10c" (identifier "param_1") (+ "+") (number_literal "0x10c")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar2 = PTR_png_warning_00053440;" (assignment_expression "puVar2 = PTR_png_warning_00053440" (identifier "puVar2") (= "=") (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 + 0x108) != 0) {\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x108) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x108) != 0" (pointer_expression "*(int *)(param_1 + 0x108)" (* "*") (cast_expression "(int *)(param_1 + 0x108)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x108) = 0;\n      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x108) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x108) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x108)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x108)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x108)" (( "(") (binary_expression "param_1 + 0x108" (identifier "param_1") (+ "+") (number_literal "0x108")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)puVar2)(param_1,puVar1 + 0x1c8);" (call_expression "(*(code *)puVar2)(param_1,puVar1 + 0x1c8)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(param_1,puVar1 + 0x1c8)" (( "(") (identifier "param_1") (, ",") (binary_expression "puVar1 + 0x1c8" (identifier "puVar1") (+ "+") (number_literal "0x1c8")) () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x228) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x228) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x228)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x228)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x228)" (( "(") (binary_expression "param_1 + 0x228" (identifier "param_1") (+ "+") (number_literal "0x228")) () ")")))) (= "=") (number_literal "0")) (; ";")) (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)

{
  int var_4;
  type_4 in_a3;
  int var_3;
  type_5 *pcVar2;
  
  if (var_1 != (type_1)0x0) {
    var_1->io_ptr = io_ptr;
    if (var_2 == (type_3)0x0) {
      var_2 = *(type_3 *)(var_3 + 0x2ed18);
    }
    var_1->var_2 = var_2;
    if (var_1->write_data_fn != (type_3)0x0) {
      var_4 = *(int *)(var_3 + 0x2eb84);
      pcVar2 = *(type_5 **)(var_3 + 0x2efa8);
      var_1->write_data_fn = (type_3)0x0;
      (*pcVar2)(var_1,var_4 + 0x1c8,var_2,in_a3,var_3 + 0x36b58);
    }
    var_1->output_flush_fn = (type_6)0x0;
    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))))) 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))) (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))))))) (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))) (return_statement))) (return_statement))))

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

{
  undefined *puVar1;
  undefined *puVar2;
  
  if (param_1 != 0) {
    *(undefined4 *)(param_1 + 0x110) = param_2;
    if (param_3 == (undefined *)0x0) {
      param_3 = PTR_LAB_000531b0;
    }
    *(undefined **)(param_1 + 0x10c) = param_3;
    puVar2 = PTR_png_warning_00053440;
    puVar1 = PTR_s_nt_0005301c;
    if (*(int *)(param_1 + 0x108) != 0) {
      *(undefined4 *)(param_1 + 0x108) = 0;
      (*(code *)puVar2)(param_1,puVar1 + 0x1c8);
    }
    *(undefined4 *)(param_1 + 0x228) = 0;
    return;
  }
  return;
}

