
int gzclose_w(gzFile file)

{
  int iVar1;
  int iVar2;
  undefined1 *puVar3;
  undefined4 in_stack_ffffffec;
  
  puVar3 = &_gp;
  if ((file == (gzFile)0x0) || (file[1].have != 0x79b1)) {
    return -2;
  }
  if (*(int *)&file[5].pos != 0) {
    *(undefined4 *)&file[5].pos = 0;
    iVar2 = gz_zero((gz_statep)file,CONCAT44(&_gp,in_stack_ffffffec));
    if (iVar2 == -1) {
      iVar2 = (int)file[5].pos;
      goto LAB_00020b2c;
    }
  }
  iVar2 = 0;
LAB_00020b2c:
  iVar1 = gz_comp((gz_statep)file,4);
  if (iVar1 == -1) {
    iVar2 = (int)file[5].pos;
  }
  if ((int)file[1].pos != 0) {
    if ((int)file[2].pos == 0) {
      (**(code **)(puVar3 + -0x7f5c))(&file[6].next);
      (**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[2].pos);
    }
    (**(code **)(puVar3 + -0x7eec))(file[2].next);
  }
  gz_error((gz_statep)file,0,(char *)0x0);
  (**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[1].pos);
  iVar1 = (**(code **)(puVar3 + -0x7f8c))(file[1].next);
  if (iVar1 == -1) {
    iVar2 = -1;
  }
  (**(code **)(puVar3 + -0x7eec))(file);
  return iVar2;
}



undefined4 gzclose_w(int param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {
    return 0xfffffffe;
  }
  if (*(int *)(param_1 + 0x58) != 0) {
    *(undefined4 *)(param_1 + 0x58) = 0;
    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),
                         *(undefined4 *)(param_1 + 0x54));
    if (iVar1 == -1) {
      uVar2 = *(undefined4 *)(param_1 + 0x5c);
      goto LAB_00020b2c;
    }
  }
  uVar2 = 0;
LAB_00020b2c:
  iVar1 = FUN_0001fca0(param_1,4);
  if (iVar1 == -1) {
    uVar2 = *(undefined4 *)(param_1 + 0x5c);
  }
  if (*(int *)(param_1 + 0x1c) != 0) {
    if (*(int *)(param_1 + 0x2c) == 0) {
      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);
      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));
    }
    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));
  }
  FUN_0001e5ec(param_1,0,0);
  (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));
  iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));
  if (iVar1 == -1) {
    uVar2 = 0xffffffff;
  }
  (*(code *)PTR_free_00036104)(param_1);
  return uVar2;
}


lui gp,0x2
addiu gp,gp,-0x2af8
addu gp,gp,t9
addiu sp,sp,-0x28
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s1,0x20(sp)
beq a0,zero,0x00020c28
_sw s0,0x1c(sp)
lw v1,0x10(a0)
li v0,0x79b1
bne v1,v0,0x00020c28
_or s0,a0,zero
lw v0,0x58(a0)
bne v0,zero,0x00020be0
_lw t9,-0x7fd4(gp)
or s1,zero,zero
lw t9,-0x7fd4(gp)
li a1,0x4
addiu t9,t9,-0x360
bal 0x0001fca0
_or a0,s0,zero
li v1,-0x1
bne v0,v1,0x00020b50
_lw gp,0x10(sp)
lw s1,0x5c(s0)
lw v0,0x1c(s0)
beq v0,zero,0x00020b7c
_lw t9,-0x7f9c(gp)
lw v0,0x2c(s0)
beq v0,zero,0x00020c08
_lw t9,-0x7f5c(gp)
lw t9,-0x7eec(gp)
jalr t9
_lw a0,0x24(s0)
lw gp,0x10(sp)
lw t9,-0x7f9c(gp)
or a2,zero,zero
or a1,zero,zero
bal 0x0001e5ec
_or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7eec(gp)
jalr t9
_lw a0,0x18(s0)
lw gp,0x10(sp)
lw t9,-0x7f8c(gp)
jalr t9
_lw a0,0x14(s0)
li v1,-0x1
lw gp,0x10(sp)
nor v0,zero,v0
or a0,s0,zero
lw t9,-0x7eec(gp)
jalr t9
_movz s1,v1,v0
lw ra,0x24(sp)
or v0,s1,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw a3,0x54(a0)
lw a2,0x50(a0)
addiu t9,t9,-0xb4
bal 0x0001ff4c
_sw zero,0x58(a0)
li v1,-0x1
bne v0,v1,0x00020b28
_lw gp,0x10(sp)
b 0x00020b2c
_lw s1,0x5c(s0)
jalr t9
_addiu a0,s0,0x64
lw gp,0x10(sp)
lw t9,-0x7eec(gp)
jalr t9
_lw a0,0x28(s0)
b 0x00020b68
_lw gp,0x10(sp)
b 0x00020bc8
_li s1,-0x2
(translation_unit "undefined4 gzclose_w(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {\n    return 0xfffffffe;\n  }\n  if (*(int *)(param_1 + 0x58) != 0) {\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }\n  uVar2 = 0;\nLAB_00020b2c:\n  iVar1 = FUN_0001fca0(param_1,4);\n  if (iVar1 == -1) {\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }\n  if (*(int *)(param_1 + 0x1c) != 0) {\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }\n  FUN_0001e5ec(param_1,0,0);\n  (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));\n  iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));\n  if (iVar1 == -1) {\n    uVar2 = 0xffffffff;\n  }\n  (*(code *)PTR_free_00036104)(param_1);\n  return uVar2;\n}\n\n" (function_definition "undefined4 gzclose_w(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {\n    return 0xfffffffe;\n  }\n  if (*(int *)(param_1 + 0x58) != 0) {\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }\n  uVar2 = 0;\nLAB_00020b2c:\n  iVar1 = FUN_0001fca0(param_1,4);\n  if (iVar1 == -1) {\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }\n  if (*(int *)(param_1 + 0x1c) != 0) {\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }\n  FUN_0001e5ec(param_1,0,0);\n  (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));\n  iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));\n  if (iVar1 == -1) {\n    uVar2 = 0xffffffff;\n  }\n  (*(code *)PTR_free_00036104)(param_1);\n  return uVar2;\n}" type_identifier (function_declarator "gzclose_w(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {\n    return 0xfffffffe;\n  }\n  if (*(int *)(param_1 + 0x58) != 0) {\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }\n  uVar2 = 0;\nLAB_00020b2c:\n  iVar1 = FUN_0001fca0(param_1,4);\n  if (iVar1 == -1) {\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }\n  if (*(int *)(param_1 + 0x1c) != 0) {\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }\n  FUN_0001e5ec(param_1,0,0);\n  (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));\n  iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));\n  if (iVar1 == -1) {\n    uVar2 = 0xffffffff;\n  }\n  (*(code *)PTR_free_00036104)(param_1);\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {\n    return 0xfffffffe;\n  }" if (parenthesized_expression "((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1))" ( (binary_expression "(param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0x79b1)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0x79b1" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    return 0xfffffffe;\n  }" { (return_statement "return 0xfffffffe;" return number_literal ;) })) (if_statement "if (*(int *)(param_1 + 0x58) != 0) {\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x58) != 0)" ( (binary_expression "*(int *)(param_1 + 0x58) != 0" (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));" (assignment_expression "iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54))" identifier = (call_expression "FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54))" identifier (argument_list "(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }" { (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x5c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00020b2c;" goto statement_identifier ;) })) })) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00020b2c:\n  iVar1 = FUN_0001fca0(param_1,4);" statement_identifier : (expression_statement "iVar1 = FUN_0001fca0(param_1,4);" (assignment_expression "iVar1 = FUN_0001fca0(param_1,4)" identifier = (call_expression "FUN_0001fca0(param_1,4)" identifier (argument_list "(param_1,4)" ( identifier , number_literal )))) ;)) (if_statement "if (iVar1 == -1) {\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }" { (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x5c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) })) (if_statement "if (*(int *)(param_1 + 0x1c) != 0) {\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1c) != 0" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }" { (if_statement "if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x2c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x2c) == 0" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }" { (expression_statement "(*(code *)PTR_deflateEnd_00036094)(param_1 + 100);" (call_expression "(*(code *)PTR_deflateEnd_00036094)(param_1 + 100)" (parenthesized_expression "(*(code *)PTR_deflateEnd_00036094)" ( (pointer_expression "*(code *)PTR_deflateEnd_00036094" * (cast_expression "(code *)PTR_deflateEnd_00036094" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));" (call_expression "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28))" (parenthesized_expression "(*(code *)PTR_free_00036104)" ( (pointer_expression "*(code *)PTR_free_00036104" * (cast_expression "(code *)PTR_free_00036104" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x28))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))) ;) })) (expression_statement "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));" (call_expression "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24))" (parenthesized_expression "(*(code *)PTR_free_00036104)" ( (pointer_expression "*(code *)PTR_free_00036104" * (cast_expression "(code *)PTR_free_00036104" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x24))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) ))) ;) })) (expression_statement "FUN_0001e5ec(param_1,0,0);" (call_expression "FUN_0001e5ec(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));" (call_expression "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18))" (parenthesized_expression "(*(code *)PTR_free_00036104)" ( (pointer_expression "*(code *)PTR_free_00036104" * (cast_expression "(code *)PTR_free_00036104" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "(*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14))" (parenthesized_expression "(*(code *)PTR_close_00036064)" ( (pointer_expression "*(code *)PTR_close_00036064" * (cast_expression "(code *)PTR_close_00036064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 == -1) {\n    uVar2 = 0xffffffff;\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_free_00036104)(param_1);" (call_expression "(*(code *)PTR_free_00036104)(param_1)" (parenthesized_expression "(*(code *)PTR_free_00036104)" ( (pointer_expression "*(code *)PTR_free_00036104" * (cast_expression "(code *)PTR_free_00036104" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "int gzclose_w(gzFile file)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined4 in_stack_ffffffec;\n  \n  puVar3 = &_gp;\n  if ((file == (gzFile)0x0) || (file[1].have != 0x79b1)) {\n    return -2;\n  }\n  if (*(int *)&file[5].pos != 0) {\n    *(undefined4 *)&file[5].pos = 0;\n    iVar2 = gz_zero((gz_statep)file,CONCAT44(&_gp,in_stack_ffffffec));\n    if (iVar2 == -1) {\n      iVar2 = (int)file[5].pos;\n      goto LAB_00020b2c;\n    }\n  }\n  iVar2 = 0;\nLAB_00020b2c:\n  iVar1 = gz_comp((gz_statep)file,4);\n  if (iVar1 == -1) {\n    iVar2 = (int)file[5].pos;\n  }\n  if ((int)file[1].pos != 0) {\n    if ((int)file[2].pos == 0) {\n      (**(code **)(puVar3 + -0x7f5c))(&file[6].next);\n      (**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[2].pos);\n    }\n    (**(code **)(puVar3 + -0x7eec))(file[2].next);\n  }\n  gz_error((gz_statep)file,0,(char *)0x0);\n  (**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[1].pos);\n  iVar1 = (**(code **)(puVar3 + -0x7f8c))(file[1].next);\n  if (iVar1 == -1) {\n    iVar2 = -1;\n  }\n  (**(code **)(puVar3 + -0x7eec))(file);\n  return iVar2;\n}\n\n" (function_definition "int gzclose_w(gzFile file)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined4 in_stack_ffffffec;\n  \n  puVar3 = &_gp;\n  if ((file == (gzFile)0x0) || (file[1].have != 0x79b1)) {\n    return -2;\n  }\n  if (*(int *)&file[5].pos != 0) {\n    *(undefined4 *)&file[5].pos = 0;\n    iVar2 = gz_zero((gz_statep)file,CONCAT44(&_gp,in_stack_ffffffec));\n    if (iVar2 == -1) {\n      iVar2 = (int)file[5].pos;\n      goto LAB_00020b2c;\n    }\n  }\n  iVar2 = 0;\nLAB_00020b2c:\n  iVar1 = gz_comp((gz_statep)file,4);\n  if (iVar1 == -1) {\n    iVar2 = (int)file[5].pos;\n  }\n  if ((int)file[1].pos != 0) {\n    if ((int)file[2].pos == 0) {\n      (**(code **)(puVar3 + -0x7f5c))(&file[6].next);\n      (**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[2].pos);\n    }\n    (**(code **)(puVar3 + -0x7eec))(file[2].next);\n  }\n  gz_error((gz_statep)file,0,(char *)0x0);\n  (**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[1].pos);\n  iVar1 = (**(code **)(puVar3 + -0x7f8c))(file[1].next);\n  if (iVar1 == -1) {\n    iVar2 = -1;\n  }\n  (**(code **)(puVar3 + -0x7eec))(file);\n  return iVar2;\n}" primitive_type (function_declarator "gzclose_w(gzFile file)" identifier (parameter_list "(gzFile file)" ( (parameter_declaration "gzFile file" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined4 in_stack_ffffffec;\n  \n  puVar3 = &_gp;\n  if ((file == (gzFile)0x0) || (file[1].have != 0x79b1)) {\n    return -2;\n  }\n  if (*(int *)&file[5].pos != 0) {\n    *(undefined4 *)&file[5].pos = 0;\n    iVar2 = gz_zero((gz_statep)file,CONCAT44(&_gp,in_stack_ffffffec));\n    if (iVar2 == -1) {\n      iVar2 = (int)file[5].pos;\n      goto LAB_00020b2c;\n    }\n  }\n  iVar2 = 0;\nLAB_00020b2c:\n  iVar1 = gz_comp((gz_statep)file,4);\n  if (iVar1 == -1) {\n    iVar2 = (int)file[5].pos;\n  }\n  if ((int)file[1].pos != 0) {\n    if ((int)file[2].pos == 0) {\n      (**(code **)(puVar3 + -0x7f5c))(&file[6].next);\n      (**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[2].pos);\n    }\n    (**(code **)(puVar3 + -0x7eec))(file[2].next);\n  }\n  gz_error((gz_statep)file,0,(char *)0x0);\n  (**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[1].pos);\n  iVar1 = (**(code **)(puVar3 + -0x7f8c))(file[1].next);\n  if (iVar1 == -1) {\n    iVar2 = -1;\n  }\n  (**(code **)(puVar3 + -0x7eec))(file);\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 in_stack_ffffffec;" type_identifier identifier ;) (expression_statement "puVar3 = &_gp;" (assignment_expression "puVar3 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (if_statement "if ((file == (gzFile)0x0) || (file[1].have != 0x79b1)) {\n    return -2;\n  }" if (parenthesized_expression "((file == (gzFile)0x0) || (file[1].have != 0x79b1))" ( (binary_expression "(file == (gzFile)0x0) || (file[1].have != 0x79b1)" (parenthesized_expression "(file == (gzFile)0x0)" ( (binary_expression "file == (gzFile)0x0" identifier == (cast_expression "(gzFile)0x0" ( (type_descriptor "gzFile" type_identifier) ) number_literal)) )) || (parenthesized_expression "(file[1].have != 0x79b1)" ( (binary_expression "file[1].have != 0x79b1" (field_expression "file[1].have" (subscript_expression "file[1]" identifier [ number_literal ]) . field_identifier) != number_literal) ))) )) (compound_statement "{\n    return -2;\n  }" { (return_statement "return -2;" return number_literal ;) })) (if_statement "if (*(int *)&file[5].pos != 0) {\n    *(undefined4 *)&file[5].pos = 0;\n    iVar2 = gz_zero((gz_statep)file,CONCAT44(&_gp,in_stack_ffffffec));\n    if (iVar2 == -1) {\n      iVar2 = (int)file[5].pos;\n      goto LAB_00020b2c;\n    }\n  }" if (parenthesized_expression "(*(int *)&file[5].pos != 0)" ( (binary_expression "*(int *)&file[5].pos != 0" (pointer_expression "*(int *)&file[5].pos" * (cast_expression "(int *)&file[5].pos" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&file[5].pos" & (field_expression "file[5].pos" (subscript_expression "file[5]" identifier [ number_literal ]) . field_identifier)))) != number_literal) )) (compound_statement "{\n    *(undefined4 *)&file[5].pos = 0;\n    iVar2 = gz_zero((gz_statep)file,CONCAT44(&_gp,in_stack_ffffffec));\n    if (iVar2 == -1) {\n      iVar2 = (int)file[5].pos;\n      goto LAB_00020b2c;\n    }\n  }" { (expression_statement "*(undefined4 *)&file[5].pos = 0;" (assignment_expression "*(undefined4 *)&file[5].pos = 0" (pointer_expression "*(undefined4 *)&file[5].pos" * (cast_expression "(undefined4 *)&file[5].pos" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&file[5].pos" & (field_expression "file[5].pos" (subscript_expression "file[5]" identifier [ number_literal ]) . field_identifier)))) = number_literal) ;) (expression_statement "iVar2 = gz_zero((gz_statep)file,CONCAT44(&_gp,in_stack_ffffffec));" (assignment_expression "iVar2 = gz_zero((gz_statep)file,CONCAT44(&_gp,in_stack_ffffffec))" identifier = (call_expression "gz_zero((gz_statep)file,CONCAT44(&_gp,in_stack_ffffffec))" identifier (argument_list "((gz_statep)file,CONCAT44(&_gp,in_stack_ffffffec))" ( (cast_expression "(gz_statep)file" ( (type_descriptor "gz_statep" type_identifier) ) identifier) , (call_expression "CONCAT44(&_gp,in_stack_ffffffec)" identifier (argument_list "(&_gp,in_stack_ffffffec)" ( (pointer_expression "&_gp" & identifier) , identifier ))) )))) ;) (if_statement "if (iVar2 == -1) {\n      iVar2 = (int)file[5].pos;\n      goto LAB_00020b2c;\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = (int)file[5].pos;\n      goto LAB_00020b2c;\n    }" { (expression_statement "iVar2 = (int)file[5].pos;" (assignment_expression "iVar2 = (int)file[5].pos" identifier = (cast_expression "(int)file[5].pos" ( (type_descriptor "int" primitive_type) ) (field_expression "file[5].pos" (subscript_expression "file[5]" identifier [ number_literal ]) . field_identifier))) ;) (goto_statement "goto LAB_00020b2c;" goto statement_identifier ;) })) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00020b2c:\n  iVar1 = gz_comp((gz_statep)file,4);" statement_identifier : (expression_statement "iVar1 = gz_comp((gz_statep)file,4);" (assignment_expression "iVar1 = gz_comp((gz_statep)file,4)" identifier = (call_expression "gz_comp((gz_statep)file,4)" identifier (argument_list "((gz_statep)file,4)" ( (cast_expression "(gz_statep)file" ( (type_descriptor "gz_statep" type_identifier) ) identifier) , number_literal )))) ;)) (if_statement "if (iVar1 == -1) {\n    iVar2 = (int)file[5].pos;\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    iVar2 = (int)file[5].pos;\n  }" { (expression_statement "iVar2 = (int)file[5].pos;" (assignment_expression "iVar2 = (int)file[5].pos" identifier = (cast_expression "(int)file[5].pos" ( (type_descriptor "int" primitive_type) ) (field_expression "file[5].pos" (subscript_expression "file[5]" identifier [ number_literal ]) . field_identifier))) ;) })) (if_statement "if ((int)file[1].pos != 0) {\n    if ((int)file[2].pos == 0) {\n      (**(code **)(puVar3 + -0x7f5c))(&file[6].next);\n      (**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[2].pos);\n    }\n    (**(code **)(puVar3 + -0x7eec))(file[2].next);\n  }" if (parenthesized_expression "((int)file[1].pos != 0)" ( (binary_expression "(int)file[1].pos != 0" (cast_expression "(int)file[1].pos" ( (type_descriptor "int" primitive_type) ) (field_expression "file[1].pos" (subscript_expression "file[1]" identifier [ number_literal ]) . field_identifier)) != number_literal) )) (compound_statement "{\n    if ((int)file[2].pos == 0) {\n      (**(code **)(puVar3 + -0x7f5c))(&file[6].next);\n      (**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[2].pos);\n    }\n    (**(code **)(puVar3 + -0x7eec))(file[2].next);\n  }" { (if_statement "if ((int)file[2].pos == 0) {\n      (**(code **)(puVar3 + -0x7f5c))(&file[6].next);\n      (**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[2].pos);\n    }" if (parenthesized_expression "((int)file[2].pos == 0)" ( (binary_expression "(int)file[2].pos == 0" (cast_expression "(int)file[2].pos" ( (type_descriptor "int" primitive_type) ) (field_expression "file[2].pos" (subscript_expression "file[2]" identifier [ number_literal ]) . field_identifier)) == number_literal) )) (compound_statement "{\n      (**(code **)(puVar3 + -0x7f5c))(&file[6].next);\n      (**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[2].pos);\n    }" { (expression_statement "(**(code **)(puVar3 + -0x7f5c))(&file[6].next);" (call_expression "(**(code **)(puVar3 + -0x7f5c))(&file[6].next)" (parenthesized_expression "(**(code **)(puVar3 + -0x7f5c))" ( (pointer_expression "**(code **)(puVar3 + -0x7f5c)" * (pointer_expression "*(code **)(puVar3 + -0x7f5c)" * (cast_expression "(code **)(puVar3 + -0x7f5c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -0x7f5c)" ( (binary_expression "puVar3 + -0x7f5c" identifier + number_literal) ))))) )) (argument_list "(&file[6].next)" ( (pointer_expression "&file[6].next" & (field_expression "file[6].next" (subscript_expression "file[6]" identifier [ number_literal ]) . field_identifier)) ))) ;) (expression_statement "(**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[2].pos);" (call_expression "(**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[2].pos)" (parenthesized_expression "(**(code **)(puVar3 + -0x7eec))" ( (pointer_expression "**(code **)(puVar3 + -0x7eec)" * (pointer_expression "*(code **)(puVar3 + -0x7eec)" * (cast_expression "(code **)(puVar3 + -0x7eec)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -0x7eec)" ( (binary_expression "puVar3 + -0x7eec" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)&file[2].pos)" ( (pointer_expression "*(undefined4 *)&file[2].pos" * (cast_expression "(undefined4 *)&file[2].pos" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&file[2].pos" & (field_expression "file[2].pos" (subscript_expression "file[2]" identifier [ number_literal ]) . field_identifier)))) ))) ;) })) (expression_statement "(**(code **)(puVar3 + -0x7eec))(file[2].next);" (call_expression "(**(code **)(puVar3 + -0x7eec))(file[2].next)" (parenthesized_expression "(**(code **)(puVar3 + -0x7eec))" ( (pointer_expression "**(code **)(puVar3 + -0x7eec)" * (pointer_expression "*(code **)(puVar3 + -0x7eec)" * (cast_expression "(code **)(puVar3 + -0x7eec)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -0x7eec)" ( (binary_expression "puVar3 + -0x7eec" identifier + number_literal) ))))) )) (argument_list "(file[2].next)" ( (field_expression "file[2].next" (subscript_expression "file[2]" identifier [ number_literal ]) . field_identifier) ))) ;) })) (expression_statement "gz_error((gz_statep)file,0,(char *)0x0);" (call_expression "gz_error((gz_statep)file,0,(char *)0x0)" identifier (argument_list "((gz_statep)file,0,(char *)0x0)" ( (cast_expression "(gz_statep)file" ( (type_descriptor "gz_statep" type_identifier) ) identifier) , number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "(**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[1].pos);" (call_expression "(**(code **)(puVar3 + -0x7eec))(*(undefined4 *)&file[1].pos)" (parenthesized_expression "(**(code **)(puVar3 + -0x7eec))" ( (pointer_expression "**(code **)(puVar3 + -0x7eec)" * (pointer_expression "*(code **)(puVar3 + -0x7eec)" * (cast_expression "(code **)(puVar3 + -0x7eec)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -0x7eec)" ( (binary_expression "puVar3 + -0x7eec" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)&file[1].pos)" ( (pointer_expression "*(undefined4 *)&file[1].pos" * (cast_expression "(undefined4 *)&file[1].pos" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&file[1].pos" & (field_expression "file[1].pos" (subscript_expression "file[1]" identifier [ number_literal ]) . field_identifier)))) ))) ;) (expression_statement "iVar1 = (**(code **)(puVar3 + -0x7f8c))(file[1].next);" (assignment_expression "iVar1 = (**(code **)(puVar3 + -0x7f8c))(file[1].next)" identifier = (call_expression "(**(code **)(puVar3 + -0x7f8c))(file[1].next)" (parenthesized_expression "(**(code **)(puVar3 + -0x7f8c))" ( (pointer_expression "**(code **)(puVar3 + -0x7f8c)" * (pointer_expression "*(code **)(puVar3 + -0x7f8c)" * (cast_expression "(code **)(puVar3 + -0x7f8c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -0x7f8c)" ( (binary_expression "puVar3 + -0x7f8c" identifier + number_literal) ))))) )) (argument_list "(file[1].next)" ( (field_expression "file[1].next" (subscript_expression "file[1]" identifier [ number_literal ]) . field_identifier) )))) ;) (if_statement "if (iVar1 == -1) {\n    iVar2 = -1;\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    iVar2 = -1;\n  }" { (expression_statement "iVar2 = -1;" (assignment_expression "iVar2 = -1" identifier = number_literal) ;) })) (expression_statement "(**(code **)(puVar3 + -0x7eec))(file);" (call_expression "(**(code **)(puVar3 + -0x7eec))(file)" (parenthesized_expression "(**(code **)(puVar3 + -0x7eec))" ( (pointer_expression "**(code **)(puVar3 + -0x7eec)" * (pointer_expression "*(code **)(puVar3 + -0x7eec)" * (cast_expression "(code **)(puVar3 + -0x7eec)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + -0x7eec)" ( (binary_expression "puVar3 + -0x7eec" identifier + number_literal) ))))) )) (argument_list "(file)" ( identifier ))) ;) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 gzclose_w(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {\n    return 0xfffffffe;\n  }\n  if (*(int *)(param_1 + 0x58) != 0) {\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }\n  uVar2 = 0;\nLAB_00020b2c:\n  iVar1 = FUN_0001fca0(param_1,4);\n  if (iVar1 == -1) {\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }\n  if (*(int *)(param_1 + 0x1c) != 0) {\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }\n  FUN_0001e5ec(param_1,0,0);\n  (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));\n  iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));\n  if (iVar1 == -1) {\n    uVar2 = 0xffffffff;\n  }\n  (*(code *)PTR_free_00036104)(param_1);\n  return uVar2;\n}\n\n" (function_definition "undefined4 gzclose_w(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {\n    return 0xfffffffe;\n  }\n  if (*(int *)(param_1 + 0x58) != 0) {\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }\n  uVar2 = 0;\nLAB_00020b2c:\n  iVar1 = FUN_0001fca0(param_1,4);\n  if (iVar1 == -1) {\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }\n  if (*(int *)(param_1 + 0x1c) != 0) {\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }\n  FUN_0001e5ec(param_1,0,0);\n  (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));\n  iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));\n  if (iVar1 == -1) {\n    uVar2 = 0xffffffff;\n  }\n  (*(code *)PTR_free_00036104)(param_1);\n  return uVar2;\n}" type_identifier (function_declarator "gzclose_w(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {\n    return 0xfffffffe;\n  }\n  if (*(int *)(param_1 + 0x58) != 0) {\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }\n  uVar2 = 0;\nLAB_00020b2c:\n  iVar1 = FUN_0001fca0(param_1,4);\n  if (iVar1 == -1) {\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }\n  if (*(int *)(param_1 + 0x1c) != 0) {\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }\n  FUN_0001e5ec(param_1,0,0);\n  (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));\n  iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));\n  if (iVar1 == -1) {\n    uVar2 = 0xffffffff;\n  }\n  (*(code *)PTR_free_00036104)(param_1);\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {\n    return 0xfffffffe;\n  }" if (parenthesized_expression "((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1))" ( (binary_expression "(param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0x79b1)" ( (binary_expression "*(int *)(param_1 + 0x10) != 0x79b1" (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    return 0xfffffffe;\n  }" { (return_statement "return 0xfffffffe;" return number_literal ;) })) (if_statement "if (*(int *)(param_1 + 0x58) != 0) {\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x58) != 0)" ( (binary_expression "*(int *)(param_1 + 0x58) != 0" (pointer_expression "*(int *)(param_1 + 0x58)" * (cast_expression "(int *)(param_1 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));" (assignment_expression "iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54))" identifier = (call_expression "FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54))" identifier (argument_list "(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }" { (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x5c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00020b2c;" goto statement_identifier ;) })) })) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00020b2c:\n  iVar1 = FUN_0001fca0(param_1,4);" statement_identifier : (expression_statement "iVar1 = FUN_0001fca0(param_1,4);" (assignment_expression "iVar1 = FUN_0001fca0(param_1,4)" identifier = (call_expression "FUN_0001fca0(param_1,4)" identifier (argument_list "(param_1,4)" ( identifier , number_literal )))) ;)) (if_statement "if (iVar1 == -1) {\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }" { (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x5c)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" * (cast_expression "(undefined4 *)(param_1 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x5c)" ( (binary_expression "param_1 + 0x5c" identifier + number_literal) ))))) ;) })) (if_statement "if (*(int *)(param_1 + 0x1c) != 0) {\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x1c) != 0)" ( (binary_expression "*(int *)(param_1 + 0x1c) != 0" (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }" { (if_statement "if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x2c) == 0)" ( (binary_expression "*(int *)(param_1 + 0x2c) == 0" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }" { (expression_statement "(*(code *)PTR_deflateEnd_00036094)(param_1 + 100);" (call_expression "(*(code *)PTR_deflateEnd_00036094)(param_1 + 100)" (parenthesized_expression "(*(code *)PTR_deflateEnd_00036094)" ( (pointer_expression "*(code *)PTR_deflateEnd_00036094" * (cast_expression "(code *)PTR_deflateEnd_00036094" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))) ;) (expression_statement "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));" (call_expression "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28))" (parenthesized_expression "(*(code *)PTR_free_00036104)" ( (pointer_expression "*(code *)PTR_free_00036104" * (cast_expression "(code *)PTR_free_00036104" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x28))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))) ;) })) (expression_statement "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));" (call_expression "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24))" (parenthesized_expression "(*(code *)PTR_free_00036104)" ( (pointer_expression "*(code *)PTR_free_00036104" * (cast_expression "(code *)PTR_free_00036104" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x24))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) ))) ;) })) (expression_statement "FUN_0001e5ec(param_1,0,0);" (call_expression "FUN_0001e5ec(param_1,0,0)" identifier (argument_list "(param_1,0,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));" (call_expression "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18))" (parenthesized_expression "(*(code *)PTR_free_00036104)" ( (pointer_expression "*(code *)PTR_free_00036104" * (cast_expression "(code *)PTR_free_00036104" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) ))) ;) (expression_statement "iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14))" identifier = (call_expression "(*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14))" (parenthesized_expression "(*(code *)PTR_close_00036064)" ( (pointer_expression "*(code *)PTR_close_00036064" * (cast_expression "(code *)PTR_close_00036064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x14))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) )))) ;) (if_statement "if (iVar1 == -1) {\n    uVar2 = 0xffffffff;\n  }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) })) (expression_statement "(*(code *)PTR_free_00036104)(param_1);" (call_expression "(*(code *)PTR_free_00036104)(param_1)" (parenthesized_expression "(*(code *)PTR_free_00036104)" ( (pointer_expression "*(code *)PTR_free_00036104" * (cast_expression "(code *)PTR_free_00036104" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (return_statement return LIT ;) })) (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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (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 { (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 (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 gzclose_w(int param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {\n    return 0xfffffffe;\n  }\n  if (*(int *)(param_1 + 0x58) != 0) {\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }\n  uVar2 = 0;\nLAB_00020b2c:\n  iVar1 = FUN_0001fca0(param_1,4);\n  if (iVar1 == -1) {\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }\n  if (*(int *)(param_1 + 0x1c) != 0) {\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }\n  FUN_0001e5ec(param_1,0,0);\n  (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));\n  iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));\n  if (iVar1 == -1) {\n    uVar2 = 0xffffffff;\n  }\n  (*(code *)PTR_free_00036104)(param_1);\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "gzclose_w(int param_1,undefined4 param_2)" (identifier "gzclose_w") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {\n    return 0xfffffffe;\n  }\n  if (*(int *)(param_1 + 0x58) != 0) {\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }\n  uVar2 = 0;\nLAB_00020b2c:\n  iVar1 = FUN_0001fca0(param_1,4);\n  if (iVar1 == -1) {\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }\n  if (*(int *)(param_1 + 0x1c) != 0) {\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }\n  FUN_0001e5ec(param_1,0,0);\n  (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));\n  iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));\n  if (iVar1 == -1) {\n    uVar2 = 0xffffffff;\n  }\n  (*(code *)PTR_free_00036104)(param_1);\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (if_statement "if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {\n    return 0xfffffffe;\n  }" (if "if") (parenthesized_expression "((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1))" (( "(") (binary_expression "(param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)" (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x10) != 0x79b1)" (( "(") (binary_expression "*(int *)(param_1 + 0x10) != 0x79b1" (pointer_expression "*(int *)(param_1 + 0x10)" (* "*") (cast_expression "(int *)(param_1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0x79b1")) () ")"))) () ")")) (compound_statement "{\n    return 0xfffffffe;\n  }" ({ "{") (return_statement "return 0xfffffffe;" (return "return") (number_literal "0xfffffffe") (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x58) != 0) {\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x58) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x58) != 0" (pointer_expression "*(int *)(param_1 + 0x58)" (* "*") (cast_expression "(int *)(param_1 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x58) = 0;\n    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));\n    if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x58) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x58) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54));" (assignment_expression "iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54))" (identifier "iVar1") (= "=") (call_expression "FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54))" (identifier "FUN_0001ff4c") (argument_list "(param_1,param_2,*(undefined4 *)(param_1 + 0x50),\n                         *(undefined4 *)(param_1 + 0x54))" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar1 == -1) {\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      uVar2 = *(undefined4 *)(param_1 + 0x5c);\n      goto LAB_00020b2c;\n    }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x5c)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (goto_statement "goto LAB_00020b2c;" (goto "goto") (statement_identifier "LAB_00020b2c") (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00020b2c:\n  iVar1 = FUN_0001fca0(param_1,4);" (statement_identifier "LAB_00020b2c") (: ":") (expression_statement "iVar1 = FUN_0001fca0(param_1,4);" (assignment_expression "iVar1 = FUN_0001fca0(param_1,4)" (identifier "iVar1") (= "=") (call_expression "FUN_0001fca0(param_1,4)" (identifier "FUN_0001fca0") (argument_list "(param_1,4)" (( "(") (identifier "param_1") (, ",") (number_literal "4") () ")")))) (; ";"))) (if_statement "if (iVar1 == -1) {\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    uVar2 = *(undefined4 *)(param_1 + 0x5c);\n  }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x5c)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x5c)" (( "(") (binary_expression "param_1 + 0x5c" (identifier "param_1") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x1c) != 0) {\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x1c) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x1c) != 0" (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }\n    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x2c) == 0) {\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x2c) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x2c) == 0" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);\n      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));\n    }" ({ "{") (expression_statement "(*(code *)PTR_deflateEnd_00036094)(param_1 + 100);" (call_expression "(*(code *)PTR_deflateEnd_00036094)(param_1 + 100)" (parenthesized_expression "(*(code *)PTR_deflateEnd_00036094)" (( "(") (pointer_expression "*(code *)PTR_deflateEnd_00036094" (* "*") (cast_expression "(code *)PTR_deflateEnd_00036094" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_deflateEnd_00036094"))) () ")")) (argument_list "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));" (call_expression "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28))" (parenthesized_expression "(*(code *)PTR_free_00036104)" (( "(") (pointer_expression "*(code *)PTR_free_00036104" (* "*") (cast_expression "(code *)PTR_free_00036104" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00036104"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x28))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));" (call_expression "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24))" (parenthesized_expression "(*(code *)PTR_free_00036104)" (( "(") (pointer_expression "*(code *)PTR_free_00036104" (* "*") (cast_expression "(code *)PTR_free_00036104" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00036104"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x24))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0001e5ec(param_1,0,0);" (call_expression "FUN_0001e5ec(param_1,0,0)" (identifier "FUN_0001e5ec") (argument_list "(param_1,0,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));" (call_expression "(*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18))" (parenthesized_expression "(*(code *)PTR_free_00036104)" (( "(") (pointer_expression "*(code *)PTR_free_00036104" (* "*") (cast_expression "(code *)PTR_free_00036104" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00036104"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x18))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));" (assignment_expression "iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14))" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14))" (parenthesized_expression "(*(code *)PTR_close_00036064)" (( "(") (pointer_expression "*(code *)PTR_close_00036064" (* "*") (cast_expression "(code *)PTR_close_00036064" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_close_00036064"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x14))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar1 == -1) {\n    uVar2 = 0xffffffff;\n  }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    uVar2 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_00036104)(param_1);" (call_expression "(*(code *)PTR_free_00036104)(param_1)" (parenthesized_expression "(*(code *)PTR_free_00036104)" (( "(") (pointer_expression "*(code *)PTR_free_00036104" (* "*") (cast_expression "(code *)PTR_free_00036104" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00036104"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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 (return_statement (number_literal)))) (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 (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (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))))) (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))))))) (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 (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 (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 (binary_expression left: (identifier) 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 (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)))))))))) (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 (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)))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (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 (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)))))))) (expression_statement (assignment_expression left: (identifier) right: (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 (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))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) 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)))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  if ((param_1 == 0) || (*(int *)(param_1 + 0x10) != 0x79b1)) {
    return 0xfffffffe;
  }
  if (*(int *)(param_1 + 0x58) != 0) {
    *(undefined4 *)(param_1 + 0x58) = 0;
    iVar1 = FUN_0001ff4c(param_1,param_2,*(undefined4 *)(param_1 + 0x50),
                         *(undefined4 *)(param_1 + 0x54));
    if (iVar1 == -1) {
      uVar2 = *(undefined4 *)(param_1 + 0x5c);
      goto LAB_00020b2c;
    }
  }
  uVar2 = 0;
LAB_00020b2c:
  iVar1 = FUN_0001fca0(param_1,4);
  if (iVar1 == -1) {
    uVar2 = *(undefined4 *)(param_1 + 0x5c);
  }
  if (*(int *)(param_1 + 0x1c) != 0) {
    if (*(int *)(param_1 + 0x2c) == 0) {
      (*(code *)PTR_deflateEnd_00036094)(param_1 + 100);
      (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x28));
    }
    (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x24));
  }
  FUN_0001e5ec(param_1,0,0);
  (*(code *)PTR_free_00036104)(*(undefined4 *)(param_1 + 0x18));
  iVar1 = (*(code *)PTR_close_00036064)(*(undefined4 *)(param_1 + 0x14));
  if (iVar1 == -1) {
    uVar2 = 0xffffffff;
  }
  (*(code *)PTR_free_00036104)(param_1);
  return uVar2;
}

