
int gz_comp(gz_statep state,int flush)

{
  int iVar1;
  undefined4 *puVar2;
  char *pcVar3;
  uchar *puVar4;
  uint uVar5;
  Bytef *pBVar6;
  Bytef *pBVar7;
  uInt uVar8;
  
  if ((state->size == 0) && (iVar1 = gz_init(state), iVar1 == -1)) {
    iVar1 = -1;
  }
  else if (state->direct == 0) {
    iVar1 = 0;
    do {
      if ((state->strm).avail_out == 0) {
        pBVar7 = (state->strm).next_out;
        pBVar6 = (state->x).next;
        iVar1 = (int)pBVar7 - (int)pBVar6;
        if (pBVar6 < pBVar7) {
LAB_0002082c:
          do {
            if (0x40000000 < iVar1) {
              iVar1 = 0x40000000;
            }
            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);
            if (iVar1 < 0) {
              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();
              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);
              gz_error(state,-1,pcVar3);
              return -1;
            }
            pBVar6 = (state->x).next + iVar1;
            (state->x).next = pBVar6;
            pBVar7 = (state->strm).next_out;
            iVar1 = (int)pBVar7 - (int)pBVar6;
          } while (pBVar6 < pBVar7);
          if ((state->strm).avail_out != 0) goto LAB_0002088c;
        }
        (state->strm).avail_out = state->size;
        puVar4 = state->out;
        (state->strm).next_out = puVar4;
        (state->x).next = puVar4;
LAB_0002088c:
        uVar8 = (state->strm).avail_out;
      }
      else {
        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;
        pBVar7 = (state->strm).next_out;
        pBVar6 = (state->x).next;
        iVar1 = (int)pBVar7 - (int)pBVar6;
        if (pBVar6 < pBVar7) goto LAB_0002082c;
        uVar8 = (state->strm).avail_out;
      }
      iVar1 = (*(code *)PTR_deflate_000370e4)(&state->strm,flush);
      if (iVar1 == -2) {
        gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);
        return -1;
      }
    } while ((state->strm).avail_out != uVar8);
    iVar1 = 0;
    if (flush == 4) {
      (*(code *)PTR_deflateReset_000370e8)(&state->strm);
    }
  }
  else {
    uVar5 = (state->strm).avail_in;
    if (uVar5 == 0) {
      iVar1 = 0;
    }
    else {
      do {
        if (0x40000000 < uVar5) {
          uVar5 = 0x40000000;
        }
        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);
        if (iVar1 < 0) {
          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();
          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);
          gz_error(state,-1,pcVar3);
          return -1;
        }
        uVar5 = (state->strm).avail_in - iVar1;
        (state->strm).avail_in = uVar5;
        (state->strm).next_in = (state->strm).next_in + iVar1;
      } while (uVar5 != 0);
      iVar1 = 0;
    }
  }
  return iVar1;
}



undefined4 FUN_00020614(int param_1,int param_2)

{
  int iVar1;
  undefined4 *puVar2;
  uint uVar3;
  undefined4 uVar4;
  int iVar5;
  
  if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {
    uVar4 = 0xffffffff;
  }
  else if (*(int *)(param_1 + 0x2c) == 0) {
    iVar1 = 0;
    do {
      if (*(int *)(param_1 + 0x74) == 0) {
        uVar3 = *(uint *)(param_1 + 4);
        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;
        if (uVar3 < *(uint *)(param_1 + 0x70)) {
LAB_0002082c:
          do {
            if (0x40000000 < iVar1) {
              iVar1 = 0x40000000;
            }
            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);
            if (iVar1 < 0) {
              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();
              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);
              FUN_0001e430(param_1,0xffffffff,uVar4);
              return 0xffffffff;
            }
            uVar3 = *(int *)(param_1 + 4) + iVar1;
            *(uint *)(param_1 + 4) = uVar3;
            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;
          } while (uVar3 < *(uint *)(param_1 + 0x70));
          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;
        }
        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);
        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);
        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);
LAB_0002088c:
        iVar5 = *(int *)(param_1 + 0x74);
      }
      else {
        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;
        uVar3 = *(uint *)(param_1 + 4);
        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;
        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;
        iVar5 = *(int *)(param_1 + 0x74);
      }
      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);
      if (iVar1 == -2) {
        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);
        return 0xffffffff;
      }
    } while (*(int *)(param_1 + 0x74) != iVar5);
    uVar4 = 0;
    if (param_2 == 4) {
      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);
    }
  }
  else {
    uVar3 = *(uint *)(param_1 + 0x68);
    if (uVar3 == 0) {
      uVar4 = 0;
    }
    else {
      do {
        if (0x40000000 < uVar3) {
          uVar3 = 0x40000000;
        }
        iVar1 = (*(code *)PTR_write_000370b0)
                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);
        if (iVar1 < 0) {
          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();
          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);
          FUN_0001e430(param_1,0xffffffff,uVar4);
          return 0xffffffff;
        }
        uVar3 = *(int *)(param_1 + 0x68) - iVar1;
        *(uint *)(param_1 + 0x68) = uVar3;
        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;
      } while (uVar3 != 0);
      uVar4 = 0;
    }
  }
  return uVar4;
}


lui gp,0x2
addiu gp,gp,-0x1624
addu gp,gp,t9
addiu sp,sp,-0x40
sw ra,0x3c(sp)
sw s8,0x38(sp)
sw s7,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
lw v0,0x1c(a0)
beq v0,zero,0x000206cc
_or s4,a1,zero
lw s3,0x2c(s0)
beq s3,zero,0x0002073c
_addiu s6,s0,0x64
lw v1,0x68(s0)
beq v1,zero,0x00020810
_lui s1,0x4000
addiu s2,s1,0x1
sltu a2,v1,s2
movz v1,s1,a2
or a2,v1,zero
lw a1,0x64(s0)
lw a0,0x14(s0)
lw t9,-0x7f40(gp)
jalr t9
_nop
lw gp,0x10(sp)
bltz v0,0x000206f8
_lw t9,-0x7f50(gp)
lw v1,0x68(s0)
subu v1,v1,v0
sw v1,0x68(s0)
lw a0,0x64(s0)
addu v0,a0,v0
bne v1,zero,0x0002067c
_sw v0,0x64(s0)
b 0x00020794
_or s3,zero,zero
lw t9,-0x7fd4(gp)
addiu t9,t9,0x450
bal 0x00020450
_nop
lw gp,0x10(sp)
or s3,v0,zero
li v0,-0x1
bne s3,v0,0x00020660
_or v0,s3,zero
b 0x0002079c
_lw ra,0x3c(sp)
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0x0(v0)
lw t9,-0x7f28(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a2,v0,zero
li a1,-0x1
or a0,s0,zero
lw t9,-0x7f9c(gp)
bal 0x0001e430
_nop
lw gp,0x10(sp)
b 0x00020794
_li s3,-0x1
or v0,s3,zero
lui s1,0x4000
addiu s2,s1,0x1
li s8,0x4
b 0x000208bc
_li s7,-0x2
jalr t9
_nop
lw gp,0x10(sp)
lw a0,0x0(v0)
lw t9,-0x7f28(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a2,v0,zero
li a1,-0x1
or a0,s0,zero
lw t9,-0x7f9c(gp)
bal 0x0001e430
_nop
lw gp,0x10(sp)
li s3,-0x1
or v0,s3,zero
lw ra,0x3c(sp)
lw s8,0x38(sp)
lw s7,0x34(sp)
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x40
addiu a2,a2,0x5f4c
li a1,-0x2
or a0,s0,zero
lw t9,-0x7f9c(gp)
bal 0x0001e430
_nop
lw gp,0x10(sp)
b 0x00020794
_li s3,-0x1
li v0,0x4
bne s4,v0,0x00020794
_or a0,s6,zero
lw t9,-0x7f08(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00020798
_or v0,s3,zero
b 0x00020794
_or s3,zero,zero
lw a2,0x70(s0)
lw a1,0x4(s0)
sltu v0,a1,a2
beq v0,zero,0x00020878
_subu a2,a2,a1
slt v0,a2,s2
movz a2,s1,v0
lw a0,0x14(s0)
lw t9,-0x7f40(gp)
jalr t9
_nop
lw gp,0x10(sp)
bltz v0,0x00020754
_lw t9,-0x7f50(gp)
lw a1,0x4(s0)
addu a1,a1,v0
sw a1,0x4(s0)
lw a2,0x70(s0)
sltu v0,a1,a2
bne v0,zero,0x0002082c
_subu a2,a2,a1
lw v0,0x74(s0)
bne v0,zero,0x0002088c
_nop
lw v0,0x1c(s0)
sw v0,0x74(s0)
lw v0,0x28(s0)
sw v0,0x70(s0)
sw v0,0x4(s0)
lw s5,0x74(s0)
or a1,s4,zero
or a0,s6,zero
lw t9,-0x7f0c(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,s7,0x000207c8
_lw a2,-0x7fd4(gp)
lw v1,0x74(s0)
beq v1,s5,0x000207ec
_nop
lw v1,0x74(s0)
beq v1,zero,0x00020818
_nop
beq s4,zero,0x0002088c
_nop
bne s4,s8,0x000208e0
_li v1,0x1
bne v0,v1,0x0002088c
_nop
lw a2,0x70(s0)
lw a1,0x4(s0)
sltu v0,a1,a2
bne v0,zero,0x0002082c
_subu a2,a2,a1
b 0x00020890
_lw s5,0x74(s0)
(translation_unit "undefined4 FUN_00020614(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {\n    uVar4 = 0xffffffff;\n  }\n  else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined4 FUN_00020614(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {\n    uVar4 = 0xffffffff;\n  }\n  else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}" type_identifier (function_declarator "FUN_00020614(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {\n    uVar4 = 0xffffffff;\n  }\n  else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {\n    uVar4 = 0xffffffff;\n  }\n  else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1))" ( (binary_expression "(*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)" (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) )) && (parenthesized_expression "(iVar1 = FUN_00020450(), iVar1 == -1)" ( (comma_expression "iVar1 = FUN_00020450(), iVar1 == -1" (assignment_expression "iVar1 = FUN_00020450()" identifier = (call_expression "FUN_00020450()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 == -1" identifier == number_literal)) ))) )) (compound_statement "{\n    uVar4 = 0xffffffff;\n  }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }" else (if_statement "if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\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    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);" do (compound_statement "{\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    }" { (if_statement "if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x74) == 0)" ( (binary_expression "*(int *)(param_1 + 0x74) == 0" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }" { (expression_statement "uVar3 = *(uint *)(param_1 + 4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 4)" identifier = (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(uint *)(param_1 + 0x70) - uVar3;" (assignment_expression "iVar1 = *(uint *)(param_1 + 0x70) - uVar3" identifier = (binary_expression "*(uint *)(param_1 + 0x70) - uVar3" (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }" if (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 0x70))" ( (binary_expression "uVar3 < *(uint *)(param_1 + 0x70)" identifier < (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) )) (compound_statement "{\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }" { (labeled_statement "LAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));" statement_identifier : (do_statement "do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));" do (compound_statement "{\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          }" { (if_statement "if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }" if (parenthesized_expression "(0x40000000 < iVar1)" ( (binary_expression "0x40000000 < iVar1" number_literal < identifier) )) (compound_statement "{\n              iVar1 = 0x40000000;\n            }" { (expression_statement "iVar1 = 0x40000000;" (assignment_expression "iVar1 = 0x40000000" identifier = number_literal) ;) })) (expression_statement "iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);" (assignment_expression "iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1)" identifier = (call_expression "(*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1)" (parenthesized_expression "(*(code *)PTR_write_000370b0)" ( (pointer_expression "*(code *)PTR_write_000370b0" * (cast_expression "(code *)PTR_write_000370b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1)" ( (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) )))) , identifier , identifier )))) ;) (if_statement "if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000370a0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000370a0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000370a0)" ( (pointer_expression "*(code *)PTR___errno_location_000370a0" * (cast_expression "(code *)PTR___errno_location_000370a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);" (assignment_expression "uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2)" identifier = (call_expression "(*(code *)PTR_strerror_000370c8)(*puVar2)" (parenthesized_expression "(*(code *)PTR_strerror_000370c8)" ( (pointer_expression "*(code *)PTR_strerror_000370c8" * (cast_expression "(code *)PTR_strerror_000370c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) )))) ;) (expression_statement "FUN_0001e430(param_1,0xffffffff,uVar4);" (call_expression "FUN_0001e430(param_1,0xffffffff,uVar4)" identifier (argument_list "(param_1,0xffffffff,uVar4)" ( identifier , number_literal , identifier ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "uVar3 = *(int *)(param_1 + 4) + iVar1;" (assignment_expression "uVar3 = *(int *)(param_1 + 4) + iVar1" identifier = (binary_expression "*(int *)(param_1 + 4) + iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(uint *)(param_1 + 4) = uVar3;" (assignment_expression "*(uint *)(param_1 + 4) = uVar3" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(uint *)(param_1 + 0x70) - uVar3;" (assignment_expression "iVar1 = *(uint *)(param_1 + 0x70) - uVar3" identifier = (binary_expression "*(uint *)(param_1 + 0x70) - uVar3" (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) - identifier)) ;) }) while (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 0x70))" ( (binary_expression "uVar3 < *(uint *)(param_1 + 0x70)" identifier < (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) )) ;)) (if_statement "if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;" if (parenthesized_expression "(*(int *)(param_1 + 0x74) != 0)" ( (binary_expression "*(int *)(param_1 + 0x74) != 0" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0002088c;" goto statement_identifier ;)) })) (expression_statement "*(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c)" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28)" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = (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 "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28)" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (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) ))))) ;) (labeled_statement "LAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);" statement_identifier : (expression_statement "iVar5 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;)) }) (else_clause "else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }" else (compound_statement "{\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }" { (if_statement "if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;" if (parenthesized_expression "((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1))))" ( (binary_expression "(param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "((param_2 == 4 && (iVar1 != 1)))" ( (parenthesized_expression "(param_2 == 4 && (iVar1 != 1))" ( (binary_expression "param_2 == 4 && (iVar1 != 1)" (binary_expression "param_2 == 4" identifier == number_literal) && (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) ))) )) ))) )) (goto_statement "goto LAB_0002088c;" goto statement_identifier ;)) (expression_statement "uVar3 = *(uint *)(param_1 + 4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 4)" identifier = (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(uint *)(param_1 + 0x70) - uVar3;" (assignment_expression "iVar1 = *(uint *)(param_1 + 0x70) - uVar3" identifier = (binary_expression "*(uint *)(param_1 + 0x70) - uVar3" (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;" if (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 0x70))" ( (binary_expression "uVar3 < *(uint *)(param_1 + 0x70)" identifier < (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) )) (goto_statement "goto LAB_0002082c;" goto statement_identifier ;)) (expression_statement "iVar5 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) }))) (expression_statement "iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2)" identifier = (call_expression "(*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2)" (parenthesized_expression "(*(code *)PTR_deflate_000370e4)" ( (pointer_expression "*(code *)PTR_deflate_000370e4" * (cast_expression "(code *)PTR_deflate_000370e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 100,param_2)" ( (binary_expression "param_1 + 100" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }" if (parenthesized_expression "(iVar1 == -2)" ( (binary_expression "iVar1 == -2" identifier == number_literal) )) (compound_statement "{\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }" { (expression_statement "FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);" (call_expression "FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c)" identifier (argument_list "(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c)" ( identifier , number_literal , (binary_expression "PTR_LAB_0003701c + 0x5f4c" identifier + number_literal) ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })) }) while (parenthesized_expression "(*(int *)(param_1 + 0x74) != iVar5)" ( (binary_expression "*(int *)(param_1 + 0x74) != iVar5" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) != identifier) )) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }" if (parenthesized_expression "(param_2 == 4)" ( (binary_expression "param_2 == 4" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }" { (expression_statement "(*(code *)PTR_deflateReset_000370e8)(param_1 + 100);" (call_expression "(*(code *)PTR_deflateReset_000370e8)(param_1 + 100)" (parenthesized_expression "(*(code *)PTR_deflateReset_000370e8)" ( (pointer_expression "*(code *)PTR_deflateReset_000370e8" * (cast_expression "(code *)PTR_deflateReset_000370e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))) ;) })) }) (else_clause "else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }" else (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }" { (expression_statement "uVar3 = *(uint *)(param_1 + 0x68);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x68)" identifier = (pointer_expression "*(uint *)(param_1 + 0x68)" * (cast_expression "(uint *)(param_1 + 0x68)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }" else (compound_statement "{\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }" { (do_statement "do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);" do (compound_statement "{\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      }" { (if_statement "if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }" if (parenthesized_expression "(0x40000000 < uVar3)" ( (binary_expression "0x40000000 < uVar3" number_literal < identifier) )) (compound_statement "{\n          uVar3 = 0x40000000;\n        }" { (expression_statement "uVar3 = 0x40000000;" (assignment_expression "uVar3 = 0x40000000" identifier = number_literal) ;) })) (expression_statement "iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);" (assignment_expression "iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3)" identifier = (call_expression "(*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3)" (parenthesized_expression "(*(code *)PTR_write_000370b0)" ( (pointer_expression "*(code *)PTR_write_000370b0" * (cast_expression "(code *)PTR_write_000370b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3)" ( (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) )))) , (pointer_expression "*(undefined4 *)(param_1 + 100)" * (cast_expression "(undefined4 *)(param_1 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000370a0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000370a0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000370a0)" ( (pointer_expression "*(code *)PTR___errno_location_000370a0" * (cast_expression "(code *)PTR___errno_location_000370a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);" (assignment_expression "uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2)" identifier = (call_expression "(*(code *)PTR_strerror_000370c8)(*puVar2)" (parenthesized_expression "(*(code *)PTR_strerror_000370c8)" ( (pointer_expression "*(code *)PTR_strerror_000370c8" * (cast_expression "(code *)PTR_strerror_000370c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) )))) ;) (expression_statement "FUN_0001e430(param_1,0xffffffff,uVar4);" (call_expression "FUN_0001e430(param_1,0xffffffff,uVar4)" identifier (argument_list "(param_1,0xffffffff,uVar4)" ( identifier , number_literal , identifier ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "uVar3 = *(int *)(param_1 + 0x68) - iVar1;" (assignment_expression "uVar3 = *(int *)(param_1 + 0x68) - iVar1" identifier = (binary_expression "*(int *)(param_1 + 0x68) - iVar1" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(uint *)(param_1 + 0x68) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x68) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x68)" * (cast_expression "(uint *)(param_1 + 0x68)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;" (assignment_expression "*(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 100) + iVar1" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) + identifier)) ;) }) while (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) }))))) (return_statement "return uVar4;" return identifier ;) })))
(translation_unit "int gz_comp(gz_statep state,int flush)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  uchar *puVar4;\n  uint uVar5;\n  Bytef *pBVar6;\n  Bytef *pBVar7;\n  uInt uVar8;\n  \n  if ((state->size == 0) && (iVar1 = gz_init(state), iVar1 == -1)) {\n    iVar1 = -1;\n  }\n  else if (state->direct == 0) {\n    iVar1 = 0;\n    do {\n      if ((state->strm).avail_out == 0) {\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }\n        (state->strm).avail_out = state->size;\n        puVar4 = state->out;\n        (state->strm).next_out = puVar4;\n        (state->x).next = puVar4;\nLAB_0002088c:\n        uVar8 = (state->strm).avail_out;\n      }\n      else {\n        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) goto LAB_0002082c;\n        uVar8 = (state->strm).avail_out;\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(&state->strm,flush);\n      if (iVar1 == -2) {\n        gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);\n        return -1;\n      }\n    } while ((state->strm).avail_out != uVar8);\n    iVar1 = 0;\n    if (flush == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(&state->strm);\n    }\n  }\n  else {\n    uVar5 = (state->strm).avail_in;\n    if (uVar5 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      } while (uVar5 != 0);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}\n\n" (function_definition "int gz_comp(gz_statep state,int flush)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  uchar *puVar4;\n  uint uVar5;\n  Bytef *pBVar6;\n  Bytef *pBVar7;\n  uInt uVar8;\n  \n  if ((state->size == 0) && (iVar1 = gz_init(state), iVar1 == -1)) {\n    iVar1 = -1;\n  }\n  else if (state->direct == 0) {\n    iVar1 = 0;\n    do {\n      if ((state->strm).avail_out == 0) {\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }\n        (state->strm).avail_out = state->size;\n        puVar4 = state->out;\n        (state->strm).next_out = puVar4;\n        (state->x).next = puVar4;\nLAB_0002088c:\n        uVar8 = (state->strm).avail_out;\n      }\n      else {\n        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) goto LAB_0002082c;\n        uVar8 = (state->strm).avail_out;\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(&state->strm,flush);\n      if (iVar1 == -2) {\n        gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);\n        return -1;\n      }\n    } while ((state->strm).avail_out != uVar8);\n    iVar1 = 0;\n    if (flush == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(&state->strm);\n    }\n  }\n  else {\n    uVar5 = (state->strm).avail_in;\n    if (uVar5 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      } while (uVar5 != 0);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "gz_comp(gz_statep state,int flush)" identifier (parameter_list "(gz_statep state,int flush)" ( (parameter_declaration "gz_statep state" type_identifier identifier) , (parameter_declaration "int flush" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  char *pcVar3;\n  uchar *puVar4;\n  uint uVar5;\n  Bytef *pBVar6;\n  Bytef *pBVar7;\n  uInt uVar8;\n  \n  if ((state->size == 0) && (iVar1 = gz_init(state), iVar1 == -1)) {\n    iVar1 = -1;\n  }\n  else if (state->direct == 0) {\n    iVar1 = 0;\n    do {\n      if ((state->strm).avail_out == 0) {\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }\n        (state->strm).avail_out = state->size;\n        puVar4 = state->out;\n        (state->strm).next_out = puVar4;\n        (state->x).next = puVar4;\nLAB_0002088c:\n        uVar8 = (state->strm).avail_out;\n      }\n      else {\n        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) goto LAB_0002082c;\n        uVar8 = (state->strm).avail_out;\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(&state->strm,flush);\n      if (iVar1 == -2) {\n        gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);\n        return -1;\n      }\n    } while ((state->strm).avail_out != uVar8);\n    iVar1 = 0;\n    if (flush == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(&state->strm);\n    }\n  }\n  else {\n    uVar5 = (state->strm).avail_in;\n    if (uVar5 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      } while (uVar5 != 0);\n      iVar1 = 0;\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uchar *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "Bytef *pBVar6;" type_identifier (pointer_declarator "*pBVar6" * identifier) ;) (declaration "Bytef *pBVar7;" type_identifier (pointer_declarator "*pBVar7" * identifier) ;) (declaration "uInt uVar8;" type_identifier identifier ;) (if_statement "if ((state->size == 0) && (iVar1 = gz_init(state), iVar1 == -1)) {\n    iVar1 = -1;\n  }\n  else if (state->direct == 0) {\n    iVar1 = 0;\n    do {\n      if ((state->strm).avail_out == 0) {\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }\n        (state->strm).avail_out = state->size;\n        puVar4 = state->out;\n        (state->strm).next_out = puVar4;\n        (state->x).next = puVar4;\nLAB_0002088c:\n        uVar8 = (state->strm).avail_out;\n      }\n      else {\n        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) goto LAB_0002082c;\n        uVar8 = (state->strm).avail_out;\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(&state->strm,flush);\n      if (iVar1 == -2) {\n        gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);\n        return -1;\n      }\n    } while ((state->strm).avail_out != uVar8);\n    iVar1 = 0;\n    if (flush == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(&state->strm);\n    }\n  }\n  else {\n    uVar5 = (state->strm).avail_in;\n    if (uVar5 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      } while (uVar5 != 0);\n      iVar1 = 0;\n    }\n  }" if (parenthesized_expression "((state->size == 0) && (iVar1 = gz_init(state), iVar1 == -1))" ( (binary_expression "(state->size == 0) && (iVar1 = gz_init(state), iVar1 == -1)" (parenthesized_expression "(state->size == 0)" ( (binary_expression "state->size == 0" (field_expression "state->size" identifier -> field_identifier) == number_literal) )) && (parenthesized_expression "(iVar1 = gz_init(state), iVar1 == -1)" ( (comma_expression "iVar1 = gz_init(state), iVar1 == -1" (assignment_expression "iVar1 = gz_init(state)" identifier = (call_expression "gz_init(state)" identifier (argument_list "(state)" ( identifier )))) , (binary_expression "iVar1 == -1" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else if (state->direct == 0) {\n    iVar1 = 0;\n    do {\n      if ((state->strm).avail_out == 0) {\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }\n        (state->strm).avail_out = state->size;\n        puVar4 = state->out;\n        (state->strm).next_out = puVar4;\n        (state->x).next = puVar4;\nLAB_0002088c:\n        uVar8 = (state->strm).avail_out;\n      }\n      else {\n        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) goto LAB_0002082c;\n        uVar8 = (state->strm).avail_out;\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(&state->strm,flush);\n      if (iVar1 == -2) {\n        gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);\n        return -1;\n      }\n    } while ((state->strm).avail_out != uVar8);\n    iVar1 = 0;\n    if (flush == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(&state->strm);\n    }\n  }\n  else {\n    uVar5 = (state->strm).avail_in;\n    if (uVar5 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      } while (uVar5 != 0);\n      iVar1 = 0;\n    }\n  }" else (if_statement "if (state->direct == 0) {\n    iVar1 = 0;\n    do {\n      if ((state->strm).avail_out == 0) {\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }\n        (state->strm).avail_out = state->size;\n        puVar4 = state->out;\n        (state->strm).next_out = puVar4;\n        (state->x).next = puVar4;\nLAB_0002088c:\n        uVar8 = (state->strm).avail_out;\n      }\n      else {\n        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) goto LAB_0002082c;\n        uVar8 = (state->strm).avail_out;\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(&state->strm,flush);\n      if (iVar1 == -2) {\n        gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);\n        return -1;\n      }\n    } while ((state->strm).avail_out != uVar8);\n    iVar1 = 0;\n    if (flush == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(&state->strm);\n    }\n  }\n  else {\n    uVar5 = (state->strm).avail_in;\n    if (uVar5 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      } while (uVar5 != 0);\n      iVar1 = 0;\n    }\n  }" if (parenthesized_expression "(state->direct == 0)" ( (binary_expression "state->direct == 0" (field_expression "state->direct" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    iVar1 = 0;\n    do {\n      if ((state->strm).avail_out == 0) {\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }\n        (state->strm).avail_out = state->size;\n        puVar4 = state->out;\n        (state->strm).next_out = puVar4;\n        (state->x).next = puVar4;\nLAB_0002088c:\n        uVar8 = (state->strm).avail_out;\n      }\n      else {\n        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) goto LAB_0002082c;\n        uVar8 = (state->strm).avail_out;\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(&state->strm,flush);\n      if (iVar1 == -2) {\n        gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);\n        return -1;\n      }\n    } while ((state->strm).avail_out != uVar8);\n    iVar1 = 0;\n    if (flush == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(&state->strm);\n    }\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      if ((state->strm).avail_out == 0) {\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }\n        (state->strm).avail_out = state->size;\n        puVar4 = state->out;\n        (state->strm).next_out = puVar4;\n        (state->x).next = puVar4;\nLAB_0002088c:\n        uVar8 = (state->strm).avail_out;\n      }\n      else {\n        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) goto LAB_0002082c;\n        uVar8 = (state->strm).avail_out;\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(&state->strm,flush);\n      if (iVar1 == -2) {\n        gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);\n        return -1;\n      }\n    } while ((state->strm).avail_out != uVar8);" do (compound_statement "{\n      if ((state->strm).avail_out == 0) {\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }\n        (state->strm).avail_out = state->size;\n        puVar4 = state->out;\n        (state->strm).next_out = puVar4;\n        (state->x).next = puVar4;\nLAB_0002088c:\n        uVar8 = (state->strm).avail_out;\n      }\n      else {\n        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) goto LAB_0002082c;\n        uVar8 = (state->strm).avail_out;\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(&state->strm,flush);\n      if (iVar1 == -2) {\n        gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);\n        return -1;\n      }\n    }" { (if_statement "if ((state->strm).avail_out == 0) {\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }\n        (state->strm).avail_out = state->size;\n        puVar4 = state->out;\n        (state->strm).next_out = puVar4;\n        (state->x).next = puVar4;\nLAB_0002088c:\n        uVar8 = (state->strm).avail_out;\n      }\n      else {\n        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) goto LAB_0002082c;\n        uVar8 = (state->strm).avail_out;\n      }" if (parenthesized_expression "((state->strm).avail_out == 0)" ( (binary_expression "(state->strm).avail_out == 0" (field_expression "(state->strm).avail_out" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier) == number_literal) )) (compound_statement "{\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }\n        (state->strm).avail_out = state->size;\n        puVar4 = state->out;\n        (state->strm).next_out = puVar4;\n        (state->x).next = puVar4;\nLAB_0002088c:\n        uVar8 = (state->strm).avail_out;\n      }" { (expression_statement "pBVar7 = (state->strm).next_out;" (assignment_expression "pBVar7 = (state->strm).next_out" identifier = (field_expression "(state->strm).next_out" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pBVar6 = (state->x).next;" (assignment_expression "pBVar6 = (state->x).next" identifier = (field_expression "(state->x).next" (parenthesized_expression "(state->x)" ( (field_expression "state->x" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar1 = (int)pBVar7 - (int)pBVar6;" (assignment_expression "iVar1 = (int)pBVar7 - (int)pBVar6" identifier = (binary_expression "(int)pBVar7 - (int)pBVar6" (cast_expression "(int)pBVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pBVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (pBVar6 < pBVar7) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }" if (parenthesized_expression "(pBVar6 < pBVar7)" ( (binary_expression "pBVar6 < pBVar7" identifier < identifier) )) (compound_statement "{\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);\n          if ((state->strm).avail_out != 0) goto LAB_0002088c;\n        }" { (labeled_statement "LAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);" statement_identifier : (do_statement "do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          } while (pBVar6 < pBVar7);" do (compound_statement "{\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }\n            pBVar6 = (state->x).next + iVar1;\n            (state->x).next = pBVar6;\n            pBVar7 = (state->strm).next_out;\n            iVar1 = (int)pBVar7 - (int)pBVar6;\n          }" { (if_statement "if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }" if (parenthesized_expression "(0x40000000 < iVar1)" ( (binary_expression "0x40000000 < iVar1" number_literal < identifier) )) (compound_statement "{\n              iVar1 = 0x40000000;\n            }" { (expression_statement "iVar1 = 0x40000000;" (assignment_expression "iVar1 = 0x40000000" identifier = number_literal) ;) })) (expression_statement "iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1);" (assignment_expression "iVar1 = (*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1)" identifier = (call_expression "(*(code *)PTR_write_000370b0)(state->fd,pBVar6,iVar1)" (parenthesized_expression "(*(code *)PTR_write_000370b0)" ( (pointer_expression "*(code *)PTR_write_000370b0" * (cast_expression "(code *)PTR_write_000370b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(state->fd,pBVar6,iVar1)" ( (field_expression "state->fd" identifier -> field_identifier) , identifier , identifier )))) ;) (if_statement "if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n              gz_error(state,-1,pcVar3);\n              return -1;\n            }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000370a0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000370a0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000370a0)" ( (pointer_expression "*(code *)PTR___errno_location_000370a0" * (cast_expression "(code *)PTR___errno_location_000370a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2)" identifier = (cast_expression "(char *)(*(code *)PTR_strerror_000370c8)(*puVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strerror_000370c8)(*puVar2)" (parenthesized_expression "(*(code *)PTR_strerror_000370c8)" ( (pointer_expression "*(code *)PTR_strerror_000370c8" * (cast_expression "(code *)PTR_strerror_000370c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) ))))) ;) (expression_statement "gz_error(state,-1,pcVar3);" (call_expression "gz_error(state,-1,pcVar3)" identifier (argument_list "(state,-1,pcVar3)" ( identifier , number_literal , identifier ))) ;) (return_statement "return -1;" return number_literal ;) })) (expression_statement "pBVar6 = (state->x).next + iVar1;" (assignment_expression "pBVar6 = (state->x).next + iVar1" identifier = (binary_expression "(state->x).next + iVar1" (field_expression "(state->x).next" (parenthesized_expression "(state->x)" ( (field_expression "state->x" identifier -> field_identifier) )) . field_identifier) + identifier)) ;) (expression_statement "(state->x).next = pBVar6;" (assignment_expression "(state->x).next = pBVar6" (field_expression "(state->x).next" (parenthesized_expression "(state->x)" ( (field_expression "state->x" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "pBVar7 = (state->strm).next_out;" (assignment_expression "pBVar7 = (state->strm).next_out" identifier = (field_expression "(state->strm).next_out" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar1 = (int)pBVar7 - (int)pBVar6;" (assignment_expression "iVar1 = (int)pBVar7 - (int)pBVar6" identifier = (binary_expression "(int)pBVar7 - (int)pBVar6" (cast_expression "(int)pBVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pBVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) }) while (parenthesized_expression "(pBVar6 < pBVar7)" ( (binary_expression "pBVar6 < pBVar7" identifier < identifier) )) ;)) (if_statement "if ((state->strm).avail_out != 0) goto LAB_0002088c;" if (parenthesized_expression "((state->strm).avail_out != 0)" ( (binary_expression "(state->strm).avail_out != 0" (field_expression "(state->strm).avail_out" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier) != number_literal) )) (goto_statement "goto LAB_0002088c;" goto statement_identifier ;)) })) (expression_statement "(state->strm).avail_out = state->size;" (assignment_expression "(state->strm).avail_out = state->size" (field_expression "(state->strm).avail_out" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier) = (field_expression "state->size" identifier -> field_identifier)) ;) (expression_statement "puVar4 = state->out;" (assignment_expression "puVar4 = state->out" identifier = (field_expression "state->out" identifier -> field_identifier)) ;) (expression_statement "(state->strm).next_out = puVar4;" (assignment_expression "(state->strm).next_out = puVar4" (field_expression "(state->strm).next_out" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(state->x).next = puVar4;" (assignment_expression "(state->x).next = puVar4" (field_expression "(state->x).next" (parenthesized_expression "(state->x)" ( (field_expression "state->x" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (labeled_statement "LAB_0002088c:\n        uVar8 = (state->strm).avail_out;" statement_identifier : (expression_statement "uVar8 = (state->strm).avail_out;" (assignment_expression "uVar8 = (state->strm).avail_out" identifier = (field_expression "(state->strm).avail_out" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier)) ;)) }) (else_clause "else {\n        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) goto LAB_0002082c;\n        uVar8 = (state->strm).avail_out;\n      }" else (compound_statement "{\n        if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        pBVar7 = (state->strm).next_out;\n        pBVar6 = (state->x).next;\n        iVar1 = (int)pBVar7 - (int)pBVar6;\n        if (pBVar6 < pBVar7) goto LAB_0002082c;\n        uVar8 = (state->strm).avail_out;\n      }" { (if_statement "if ((flush == 0) || ((flush == 4 && (iVar1 != 1)))) goto LAB_0002088c;" if (parenthesized_expression "((flush == 0) || ((flush == 4 && (iVar1 != 1))))" ( (binary_expression "(flush == 0) || ((flush == 4 && (iVar1 != 1)))" (parenthesized_expression "(flush == 0)" ( (binary_expression "flush == 0" identifier == number_literal) )) || (parenthesized_expression "((flush == 4 && (iVar1 != 1)))" ( (parenthesized_expression "(flush == 4 && (iVar1 != 1))" ( (binary_expression "flush == 4 && (iVar1 != 1)" (binary_expression "flush == 4" identifier == number_literal) && (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) ))) )) ))) )) (goto_statement "goto LAB_0002088c;" goto statement_identifier ;)) (expression_statement "pBVar7 = (state->strm).next_out;" (assignment_expression "pBVar7 = (state->strm).next_out" identifier = (field_expression "(state->strm).next_out" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pBVar6 = (state->x).next;" (assignment_expression "pBVar6 = (state->x).next" identifier = (field_expression "(state->x).next" (parenthesized_expression "(state->x)" ( (field_expression "state->x" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar1 = (int)pBVar7 - (int)pBVar6;" (assignment_expression "iVar1 = (int)pBVar7 - (int)pBVar6" identifier = (binary_expression "(int)pBVar7 - (int)pBVar6" (cast_expression "(int)pBVar7" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pBVar6" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (pBVar6 < pBVar7) goto LAB_0002082c;" if (parenthesized_expression "(pBVar6 < pBVar7)" ( (binary_expression "pBVar6 < pBVar7" identifier < identifier) )) (goto_statement "goto LAB_0002082c;" goto statement_identifier ;)) (expression_statement "uVar8 = (state->strm).avail_out;" (assignment_expression "uVar8 = (state->strm).avail_out" identifier = (field_expression "(state->strm).avail_out" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier)) ;) }))) (expression_statement "iVar1 = (*(code *)PTR_deflate_000370e4)(&state->strm,flush);" (assignment_expression "iVar1 = (*(code *)PTR_deflate_000370e4)(&state->strm,flush)" identifier = (call_expression "(*(code *)PTR_deflate_000370e4)(&state->strm,flush)" (parenthesized_expression "(*(code *)PTR_deflate_000370e4)" ( (pointer_expression "*(code *)PTR_deflate_000370e4" * (cast_expression "(code *)PTR_deflate_000370e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&state->strm,flush)" ( (pointer_expression "&state->strm" & (field_expression "state->strm" identifier -> field_identifier)) , identifier )))) ;) (if_statement "if (iVar1 == -2) {\n        gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);\n        return -1;\n      }" if (parenthesized_expression "(iVar1 == -2)" ( (binary_expression "iVar1 == -2" identifier == number_literal) )) (compound_statement "{\n        gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);\n        return -1;\n      }" { (expression_statement "gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c);" (call_expression "gz_error(state,-2,PTR_LAB_0003701c + 0x5f4c)" identifier (argument_list "(state,-2,PTR_LAB_0003701c + 0x5f4c)" ( identifier , number_literal , (binary_expression "PTR_LAB_0003701c + 0x5f4c" identifier + number_literal) ))) ;) (return_statement "return -1;" return number_literal ;) })) }) while (parenthesized_expression "((state->strm).avail_out != uVar8)" ( (binary_expression "(state->strm).avail_out != uVar8" (field_expression "(state->strm).avail_out" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier) != identifier) )) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (flush == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(&state->strm);\n    }" if (parenthesized_expression "(flush == 4)" ( (binary_expression "flush == 4" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_deflateReset_000370e8)(&state->strm);\n    }" { (expression_statement "(*(code *)PTR_deflateReset_000370e8)(&state->strm);" (call_expression "(*(code *)PTR_deflateReset_000370e8)(&state->strm)" (parenthesized_expression "(*(code *)PTR_deflateReset_000370e8)" ( (pointer_expression "*(code *)PTR_deflateReset_000370e8" * (cast_expression "(code *)PTR_deflateReset_000370e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&state->strm)" ( (pointer_expression "&state->strm" & (field_expression "state->strm" identifier -> field_identifier)) ))) ;) })) }) (else_clause "else {\n    uVar5 = (state->strm).avail_in;\n    if (uVar5 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      } while (uVar5 != 0);\n      iVar1 = 0;\n    }\n  }" else (compound_statement "{\n    uVar5 = (state->strm).avail_in;\n    if (uVar5 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      } while (uVar5 != 0);\n      iVar1 = 0;\n    }\n  }" { (expression_statement "uVar5 = (state->strm).avail_in;" (assignment_expression "uVar5 = (state->strm).avail_in" identifier = (field_expression "(state->strm).avail_in" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (uVar5 == 0) {\n      iVar1 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      } while (uVar5 != 0);\n      iVar1 = 0;\n    }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = 0;\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      } while (uVar5 != 0);\n      iVar1 = 0;\n    }" else (compound_statement "{\n      do {\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      } while (uVar5 != 0);\n      iVar1 = 0;\n    }" { (do_statement "do {\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      } while (uVar5 != 0);" do (compound_statement "{\n        if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }\n        uVar5 = (state->strm).avail_in - iVar1;\n        (state->strm).avail_in = uVar5;\n        (state->strm).next_in = (state->strm).next_in + iVar1;\n      }" { (if_statement "if (0x40000000 < uVar5) {\n          uVar5 = 0x40000000;\n        }" if (parenthesized_expression "(0x40000000 < uVar5)" ( (binary_expression "0x40000000 < uVar5" number_literal < identifier) )) (compound_statement "{\n          uVar5 = 0x40000000;\n        }" { (expression_statement "uVar5 = 0x40000000;" (assignment_expression "uVar5 = 0x40000000" identifier = number_literal) ;) })) (expression_statement "iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5);" (assignment_expression "iVar1 = (*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5)" identifier = (call_expression "(*(code *)PTR_write_000370b0)(state->fd,(state->strm).next_in,uVar5)" (parenthesized_expression "(*(code *)PTR_write_000370b0)" ( (pointer_expression "*(code *)PTR_write_000370b0" * (cast_expression "(code *)PTR_write_000370b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(state->fd,(state->strm).next_in,uVar5)" ( (field_expression "state->fd" identifier -> field_identifier) , (field_expression "(state->strm).next_in" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier) , identifier )))) ;) (if_statement "if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);\n          gz_error(state,-1,pcVar3);\n          return -1;\n        }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000370a0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000370a0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000370a0)" ( (pointer_expression "*(code *)PTR___errno_location_000370a0" * (cast_expression "(code *)PTR___errno_location_000370a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_strerror_000370c8)(*puVar2)" identifier = (cast_expression "(char *)(*(code *)PTR_strerror_000370c8)(*puVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strerror_000370c8)(*puVar2)" (parenthesized_expression "(*(code *)PTR_strerror_000370c8)" ( (pointer_expression "*(code *)PTR_strerror_000370c8" * (cast_expression "(code *)PTR_strerror_000370c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) ))))) ;) (expression_statement "gz_error(state,-1,pcVar3);" (call_expression "gz_error(state,-1,pcVar3)" identifier (argument_list "(state,-1,pcVar3)" ( identifier , number_literal , identifier ))) ;) (return_statement "return -1;" return number_literal ;) })) (expression_statement "uVar5 = (state->strm).avail_in - iVar1;" (assignment_expression "uVar5 = (state->strm).avail_in - iVar1" identifier = (binary_expression "(state->strm).avail_in - iVar1" (field_expression "(state->strm).avail_in" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier) - identifier)) ;) (expression_statement "(state->strm).avail_in = uVar5;" (assignment_expression "(state->strm).avail_in = uVar5" (field_expression "(state->strm).avail_in" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(state->strm).next_in = (state->strm).next_in + iVar1;" (assignment_expression "(state->strm).next_in = (state->strm).next_in + iVar1" (field_expression "(state->strm).next_in" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(state->strm).next_in + iVar1" (field_expression "(state->strm).next_in" (parenthesized_expression "(state->strm)" ( (field_expression "state->strm" identifier -> field_identifier) )) . field_identifier) + identifier)) ;) }) while (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))) }))))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_00020614(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {\n    uVar4 = 0xffffffff;\n  }\n  else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}\n\n" (function_definition "undefined4 FUN_00020614(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {\n    uVar4 = 0xffffffff;\n  }\n  else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}" type_identifier (function_declarator "FUN_00020614(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {\n    uVar4 = 0xffffffff;\n  }\n  else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (if_statement "if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {\n    uVar4 = 0xffffffff;\n  }\n  else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }" if (parenthesized_expression "((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1))" ( (binary_expression "(*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)" (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) )) && (parenthesized_expression "(iVar1 = FUN_00020450(), iVar1 == -1)" ( (comma_expression "iVar1 = FUN_00020450(), iVar1 == -1" (assignment_expression "iVar1 = FUN_00020450()" identifier = (call_expression "FUN_00020450()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 == -1" identifier == number_literal)) ))) )) (compound_statement "{\n    uVar4 = 0xffffffff;\n  }" { (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }" else (if_statement "if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\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    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (do_statement "do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);" do (compound_statement "{\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    }" { (if_statement "if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }" if (parenthesized_expression "(*(int *)(param_1 + 0x74) == 0)" ( (binary_expression "*(int *)(param_1 + 0x74) == 0" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }" { (expression_statement "uVar3 = *(uint *)(param_1 + 4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 4)" identifier = (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(uint *)(param_1 + 0x70) - uVar3;" (assignment_expression "iVar1 = *(uint *)(param_1 + 0x70) - uVar3" identifier = (binary_expression "*(uint *)(param_1 + 0x70) - uVar3" (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }" if (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 0x70))" ( (binary_expression "uVar3 < *(uint *)(param_1 + 0x70)" identifier < (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) )) (compound_statement "{\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }" { (labeled_statement "LAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));" statement_identifier : (do_statement "do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));" do (compound_statement "{\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          }" { (if_statement "if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }" if (parenthesized_expression "(0x40000000 < iVar1)" ( (binary_expression "0x40000000 < iVar1" number_literal < identifier) )) (compound_statement "{\n              iVar1 = 0x40000000;\n            }" { (expression_statement "iVar1 = 0x40000000;" (assignment_expression "iVar1 = 0x40000000" identifier = number_literal) ;) })) (expression_statement "iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);" (assignment_expression "iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1)" identifier = (call_expression "(*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1)" (parenthesized_expression "(*(code *)PTR_write_000370b0)" ( (pointer_expression "*(code *)PTR_write_000370b0" * (cast_expression "(code *)PTR_write_000370b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1)" ( (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) )))) , identifier , identifier )))) ;) (if_statement "if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000370a0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000370a0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000370a0)" ( (pointer_expression "*(code *)PTR___errno_location_000370a0" * (cast_expression "(code *)PTR___errno_location_000370a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);" (assignment_expression "uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2)" identifier = (call_expression "(*(code *)PTR_strerror_000370c8)(*puVar2)" (parenthesized_expression "(*(code *)PTR_strerror_000370c8)" ( (pointer_expression "*(code *)PTR_strerror_000370c8" * (cast_expression "(code *)PTR_strerror_000370c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) )))) ;) (expression_statement "FUN_0001e430(param_1,0xffffffff,uVar4);" (call_expression "FUN_0001e430(param_1,0xffffffff,uVar4)" identifier (argument_list "(param_1,0xffffffff,uVar4)" ( identifier , number_literal , identifier ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "uVar3 = *(int *)(param_1 + 4) + iVar1;" (assignment_expression "uVar3 = *(int *)(param_1 + 4) + iVar1" identifier = (binary_expression "*(int *)(param_1 + 4) + iVar1" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + identifier)) ;) (expression_statement "*(uint *)(param_1 + 4) = uVar3;" (assignment_expression "*(uint *)(param_1 + 4) = uVar3" (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = *(uint *)(param_1 + 0x70) - uVar3;" (assignment_expression "iVar1 = *(uint *)(param_1 + 0x70) - uVar3" identifier = (binary_expression "*(uint *)(param_1 + 0x70) - uVar3" (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) - identifier)) ;) }) while (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 0x70))" ( (binary_expression "uVar3 < *(uint *)(param_1 + 0x70)" identifier < (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) )) ;)) (if_statement "if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;" if (parenthesized_expression "(*(int *)(param_1 + 0x74) != 0)" ( (binary_expression "*(int *)(param_1 + 0x74) != 0" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) != number_literal) )) (goto_statement "goto LAB_0002088c;" goto statement_identifier ;)) })) (expression_statement "*(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c)" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28)" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = (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 "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28)" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (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) ))))) ;) (labeled_statement "LAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);" statement_identifier : (expression_statement "iVar5 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;)) }) (else_clause "else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }" else (compound_statement "{\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }" { (if_statement "if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;" if (parenthesized_expression "((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1))))" ( (binary_expression "(param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "((param_2 == 4 && (iVar1 != 1)))" ( (parenthesized_expression "(param_2 == 4 && (iVar1 != 1))" ( (binary_expression "param_2 == 4 && (iVar1 != 1)" (binary_expression "param_2 == 4" identifier == number_literal) && (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) ))) )) ))) )) (goto_statement "goto LAB_0002088c;" goto statement_identifier ;)) (expression_statement "uVar3 = *(uint *)(param_1 + 4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 4)" identifier = (pointer_expression "*(uint *)(param_1 + 4)" * (cast_expression "(uint *)(param_1 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(uint *)(param_1 + 0x70) - uVar3;" (assignment_expression "iVar1 = *(uint *)(param_1 + 0x70) - uVar3" identifier = (binary_expression "*(uint *)(param_1 + 0x70) - uVar3" (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;" if (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 0x70))" ( (binary_expression "uVar3 < *(uint *)(param_1 + 0x70)" identifier < (pointer_expression "*(uint *)(param_1 + 0x70)" * (cast_expression "(uint *)(param_1 + 0x70)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) )) (goto_statement "goto LAB_0002082c;" goto statement_identifier ;)) (expression_statement "iVar5 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) }))) (expression_statement "iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2)" identifier = (call_expression "(*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2)" (parenthesized_expression "(*(code *)PTR_deflate_000370e4)" ( (pointer_expression "*(code *)PTR_deflate_000370e4" * (cast_expression "(code *)PTR_deflate_000370e4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 100,param_2)" ( (binary_expression "param_1 + 100" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }" if (parenthesized_expression "(iVar1 == -2)" ( (binary_expression "iVar1 == -2" identifier == number_literal) )) (compound_statement "{\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }" { (expression_statement "FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);" (call_expression "FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c)" identifier (argument_list "(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c)" ( identifier , number_literal , (binary_expression "PTR_LAB_0003701c + 0x5f4c" identifier + number_literal) ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })) }) while (parenthesized_expression "(*(int *)(param_1 + 0x74) != iVar5)" ( (binary_expression "*(int *)(param_1 + 0x74) != iVar5" (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) != identifier) )) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }" if (parenthesized_expression "(param_2 == 4)" ( (binary_expression "param_2 == 4" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }" { (expression_statement "(*(code *)PTR_deflateReset_000370e8)(param_1 + 100);" (call_expression "(*(code *)PTR_deflateReset_000370e8)(param_1 + 100)" (parenthesized_expression "(*(code *)PTR_deflateReset_000370e8)" ( (pointer_expression "*(code *)PTR_deflateReset_000370e8" * (cast_expression "(code *)PTR_deflateReset_000370e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))) ;) })) }) (else_clause "else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }" else (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }" { (expression_statement "uVar3 = *(uint *)(param_1 + 0x68);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x68)" identifier = (pointer_expression "*(uint *)(param_1 + 0x68)" * (cast_expression "(uint *)(param_1 + 0x68)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0;\n    }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }" else (compound_statement "{\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }" { (do_statement "do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);" do (compound_statement "{\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      }" { (if_statement "if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }" if (parenthesized_expression "(0x40000000 < uVar3)" ( (binary_expression "0x40000000 < uVar3" number_literal < identifier) )) (compound_statement "{\n          uVar3 = 0x40000000;\n        }" { (expression_statement "uVar3 = 0x40000000;" (assignment_expression "uVar3 = 0x40000000" identifier = number_literal) ;) })) (expression_statement "iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);" (assignment_expression "iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3)" identifier = (call_expression "(*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3)" (parenthesized_expression "(*(code *)PTR_write_000370b0)" ( (pointer_expression "*(code *)PTR_write_000370b0" * (cast_expression "(code *)PTR_write_000370b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3)" ( (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) )))) , (pointer_expression "*(undefined4 *)(param_1 + 100)" * (cast_expression "(undefined4 *)(param_1 + 100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (compound_statement "{\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }" { (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)()" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000370a0)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_000370a0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000370a0)" ( (pointer_expression "*(code *)PTR___errno_location_000370a0" * (cast_expression "(code *)PTR___errno_location_000370a0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);" (assignment_expression "uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2)" identifier = (call_expression "(*(code *)PTR_strerror_000370c8)(*puVar2)" (parenthesized_expression "(*(code *)PTR_strerror_000370c8)" ( (pointer_expression "*(code *)PTR_strerror_000370c8" * (cast_expression "(code *)PTR_strerror_000370c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar2)" ( (pointer_expression "*puVar2" * identifier) )))) ;) (expression_statement "FUN_0001e430(param_1,0xffffffff,uVar4);" (call_expression "FUN_0001e430(param_1,0xffffffff,uVar4)" identifier (argument_list "(param_1,0xffffffff,uVar4)" ( identifier , number_literal , identifier ))) ;) (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "uVar3 = *(int *)(param_1 + 0x68) - iVar1;" (assignment_expression "uVar3 = *(int *)(param_1 + 0x68) - iVar1" identifier = (binary_expression "*(int *)(param_1 + 0x68) - iVar1" (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) - identifier)) ;) (expression_statement "*(uint *)(param_1 + 0x68) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x68) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x68)" * (cast_expression "(uint *)(param_1 + 0x68)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;" (assignment_expression "*(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 100) + iVar1" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) + identifier)) ;) }) while (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) }))))) (return_statement "return uVar4;" 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (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 IDENT = LIT) ;) (do_statement do (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 (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_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 < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (labeled_statement statement_identifier : (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_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) )))) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) }) while (parenthesized_expression ( (binary_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) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression (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) ))))) ;) (expression_statement (assignment_expression (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) ))))) ;) (expression_statement (assignment_expression (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) ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_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 < (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 = (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 ( (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) ))) ;) (return_statement return LIT ;) })) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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) ))) ;) })) }) (else_clause else (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 IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_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) )))) , (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 < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00020614(int param_1,int param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {\n    uVar4 = 0xffffffff;\n  }\n  else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}" (type_identifier "undefined4") (function_declarator "FUN_00020614(int param_1,int param_2)" (identifier "FUN_00020614") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  uint uVar3;\n  undefined4 uVar4;\n  int iVar5;\n  \n  if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {\n    uVar4 = 0xffffffff;\n  }\n  else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }\n  return uVar4;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (if_statement "if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {\n    uVar4 = 0xffffffff;\n  }\n  else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1))" (( "(") (binary_expression "(*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)" (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")) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00020450(), iVar1 == -1)" (( "(") (comma_expression "iVar1 = FUN_00020450(), iVar1 == -1" (assignment_expression "iVar1 = FUN_00020450()" (identifier "iVar1") (= "=") (call_expression "FUN_00020450()" (identifier "FUN_00020450") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1"))) () ")"))) () ")")) (compound_statement "{\n    uVar4 = 0xffffffff;\n  }" ({ "{") (expression_statement "uVar4 = 0xffffffff;" (assignment_expression "uVar4 = 0xffffffff" (identifier "uVar4") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }" (else "else") (if_statement "if (*(int *)(param_1 + 0x2c) == 0) {\n    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }\n  else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\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    iVar1 = 0;\n    do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);\n    uVar4 = 0;\n    if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }\n  }" ({ "{") (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    } while (*(int *)(param_1 + 0x74) != iVar5);" (do "do") (compound_statement "{\n      if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);\n      if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }\n    }" ({ "{") (if_statement "if (*(int *)(param_1 + 0x74) == 0) {\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }\n      else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x74) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x74) == 0" (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }\n        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);\n        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);\n        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);\nLAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);\n      }" ({ "{") (expression_statement "uVar3 = *(uint *)(param_1 + 4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 4)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(uint *)(param_1 + 0x70) - uVar3;" (assignment_expression "iVar1 = *(uint *)(param_1 + 0x70) - uVar3" (identifier "iVar1") (= "=") (binary_expression "*(uint *)(param_1 + 0x70) - uVar3" (pointer_expression "*(uint *)(param_1 + 0x70)" (* "*") (cast_expression "(uint *)(param_1 + 0x70)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (- "-") (identifier "uVar3"))) (; ";")) (if_statement "if (uVar3 < *(uint *)(param_1 + 0x70)) {\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }" (if "if") (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 0x70))" (( "(") (binary_expression "uVar3 < *(uint *)(param_1 + 0x70)" (identifier "uVar3") (< "<") (pointer_expression "*(uint *)(param_1 + 0x70)" (* "*") (cast_expression "(uint *)(param_1 + 0x70)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) () ")")) (compound_statement "{\nLAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));\n          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;\n        }" ({ "{") (labeled_statement "LAB_0002082c:\n          do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));" (statement_identifier "LAB_0002082c") (: ":") (do_statement "do {\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          } while (uVar3 < *(uint *)(param_1 + 0x70));" (do "do") (compound_statement "{\n            if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }\n            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);\n            if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }\n            uVar3 = *(int *)(param_1 + 4) + iVar1;\n            *(uint *)(param_1 + 4) = uVar3;\n            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n          }" ({ "{") (if_statement "if (0x40000000 < iVar1) {\n              iVar1 = 0x40000000;\n            }" (if "if") (parenthesized_expression "(0x40000000 < iVar1)" (( "(") (binary_expression "0x40000000 < iVar1" (number_literal "0x40000000") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n              iVar1 = 0x40000000;\n            }" ({ "{") (expression_statement "iVar1 = 0x40000000;" (assignment_expression "iVar1 = 0x40000000" (identifier "iVar1") (= "=") (number_literal "0x40000000")) (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);" (assignment_expression "iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1)" (parenthesized_expression "(*(code *)PTR_write_000370b0)" (( "(") (pointer_expression "*(code *)PTR_write_000370b0" (* "*") (cast_expression "(code *)PTR_write_000370b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_write_000370b0"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1)" (( "(") (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")) () ")")))) (, ",") (identifier "uVar3") (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n              FUN_0001e430(param_1,0xffffffff,uVar4);\n              return 0xffffffff;\n            }" ({ "{") (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000370a0)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000370a0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000370a0)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000370a0" (* "*") (cast_expression "(code *)PTR___errno_location_000370a0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000370a0"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);" (assignment_expression "uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_strerror_000370c8)(*puVar2)" (parenthesized_expression "(*(code *)PTR_strerror_000370c8)" (( "(") (pointer_expression "*(code *)PTR_strerror_000370c8" (* "*") (cast_expression "(code *)PTR_strerror_000370c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_000370c8"))) () ")")) (argument_list "(*puVar2)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) () ")")))) (; ";")) (expression_statement "FUN_0001e430(param_1,0xffffffff,uVar4);" (call_expression "FUN_0001e430(param_1,0xffffffff,uVar4)" (identifier "FUN_0001e430") (argument_list "(param_1,0xffffffff,uVar4)" (( "(") (identifier "param_1") (, ",") (number_literal "0xffffffff") (, ",") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "uVar3 = *(int *)(param_1 + 4) + iVar1;" (assignment_expression "uVar3 = *(int *)(param_1 + 4) + iVar1" (identifier "uVar3") (= "=") (binary_expression "*(int *)(param_1 + 4) + iVar1" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 4) = uVar3;" (assignment_expression "*(uint *)(param_1 + 4) = uVar3" (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "iVar1 = *(uint *)(param_1 + 0x70) - uVar3;" (assignment_expression "iVar1 = *(uint *)(param_1 + 0x70) - uVar3" (identifier "iVar1") (= "=") (binary_expression "*(uint *)(param_1 + 0x70) - uVar3" (pointer_expression "*(uint *)(param_1 + 0x70)" (* "*") (cast_expression "(uint *)(param_1 + 0x70)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (- "-") (identifier "uVar3"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 0x70))" (( "(") (binary_expression "uVar3 < *(uint *)(param_1 + 0x70)" (identifier "uVar3") (< "<") (pointer_expression "*(uint *)(param_1 + 0x70)" (* "*") (cast_expression "(uint *)(param_1 + 0x70)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) () ")")) (; ";"))) (if_statement "if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x74) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x74) != 0" (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0002088c;" (goto "goto") (statement_identifier "LAB_0002088c") (; ";"))) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c)" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28)" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (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 "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28)" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (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")) () ")"))))) (; ";")) (labeled_statement "LAB_0002088c:\n        iVar5 = *(int *)(param_1 + 0x74);" (statement_identifier "LAB_0002088c") (: ":") (expression_statement "iVar5 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x74)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")"))))) (; ";"))) (} "}")) (else_clause "else {\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }" (else "else") (compound_statement "{\n        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;\n        uVar3 = *(uint *)(param_1 + 4);\n        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;\n        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;\n        iVar5 = *(int *)(param_1 + 0x74);\n      }" ({ "{") (if_statement "if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;" (if "if") (parenthesized_expression "((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1))))" (( "(") (binary_expression "(param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))" (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((param_2 == 4 && (iVar1 != 1)))" (( "(") (parenthesized_expression "(param_2 == 4 && (iVar1 != 1))" (( "(") (binary_expression "param_2 == 4 && (iVar1 != 1)" (binary_expression "param_2 == 4" (identifier "param_2") (== "==") (number_literal "4")) (&& "&&") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")"))) () ")")) () ")"))) () ")")) (goto_statement "goto LAB_0002088c;" (goto "goto") (statement_identifier "LAB_0002088c") (; ";"))) (expression_statement "uVar3 = *(uint *)(param_1 + 4);" (assignment_expression "uVar3 = *(uint *)(param_1 + 4)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 4)" (* "*") (cast_expression "(uint *)(param_1 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(uint *)(param_1 + 0x70) - uVar3;" (assignment_expression "iVar1 = *(uint *)(param_1 + 0x70) - uVar3" (identifier "iVar1") (= "=") (binary_expression "*(uint *)(param_1 + 0x70) - uVar3" (pointer_expression "*(uint *)(param_1 + 0x70)" (* "*") (cast_expression "(uint *)(param_1 + 0x70)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (- "-") (identifier "uVar3"))) (; ";")) (if_statement "if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;" (if "if") (parenthesized_expression "(uVar3 < *(uint *)(param_1 + 0x70))" (( "(") (binary_expression "uVar3 < *(uint *)(param_1 + 0x70)" (identifier "uVar3") (< "<") (pointer_expression "*(uint *)(param_1 + 0x70)" (* "*") (cast_expression "(uint *)(param_1 + 0x70)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")"))))) () ")")) (goto_statement "goto LAB_0002082c;" (goto "goto") (statement_identifier "LAB_0002082c") (; ";"))) (expression_statement "iVar5 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar5 = *(int *)(param_1 + 0x74)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (} "}")))) (expression_statement "iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);" (assignment_expression "iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2)" (parenthesized_expression "(*(code *)PTR_deflate_000370e4)" (( "(") (pointer_expression "*(code *)PTR_deflate_000370e4" (* "*") (cast_expression "(code *)PTR_deflate_000370e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_deflate_000370e4"))) () ")")) (argument_list "(param_1 + 100,param_2)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 == -2) {\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }" (if "if") (parenthesized_expression "(iVar1 == -2)" (( "(") (binary_expression "iVar1 == -2" (identifier "iVar1") (== "==") (number_literal "-2")) () ")")) (compound_statement "{\n        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);\n        return 0xffffffff;\n      }" ({ "{") (expression_statement "FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);" (call_expression "FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c)" (identifier "FUN_0001e430") (argument_list "(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c)" (( "(") (identifier "param_1") (, ",") (number_literal "0xfffffffe") (, ",") (binary_expression "PTR_LAB_0003701c + 0x5f4c" (identifier "PTR_LAB_0003701c") (+ "+") (number_literal "0x5f4c")) () ")"))) (; ";")) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(*(int *)(param_1 + 0x74) != iVar5)" (( "(") (binary_expression "*(int *)(param_1 + 0x74) != iVar5" (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (!= "!=") (identifier "iVar5")) () ")")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 == 4) {\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }" (if "if") (parenthesized_expression "(param_2 == 4)" (( "(") (binary_expression "param_2 == 4" (identifier "param_2") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);\n    }" ({ "{") (expression_statement "(*(code *)PTR_deflateReset_000370e8)(param_1 + 100);" (call_expression "(*(code *)PTR_deflateReset_000370e8)(param_1 + 100)" (parenthesized_expression "(*(code *)PTR_deflateReset_000370e8)" (( "(") (pointer_expression "*(code *)PTR_deflateReset_000370e8" (* "*") (cast_expression "(code *)PTR_deflateReset_000370e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_deflateReset_000370e8"))) () ")")) (argument_list "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }" (else "else") (compound_statement "{\n    uVar3 = *(uint *)(param_1 + 0x68);\n    if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }\n  }" ({ "{") (expression_statement "uVar3 = *(uint *)(param_1 + 0x68);" (assignment_expression "uVar3 = *(uint *)(param_1 + 0x68)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_1 + 0x68)" (* "*") (cast_expression "(uint *)(param_1 + 0x68)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (if_statement "if (uVar3 == 0) {\n      uVar4 = 0;\n    }\n    else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = 0;\n    }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }" (else "else") (compound_statement "{\n      do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);\n      uVar4 = 0;\n    }" ({ "{") (do_statement "do {\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      } while (uVar3 != 0);" (do "do") (compound_statement "{\n        if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }\n        iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);\n        if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }\n        uVar3 = *(int *)(param_1 + 0x68) - iVar1;\n        *(uint *)(param_1 + 0x68) = uVar3;\n        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;\n      }" ({ "{") (if_statement "if (0x40000000 < uVar3) {\n          uVar3 = 0x40000000;\n        }" (if "if") (parenthesized_expression "(0x40000000 < uVar3)" (( "(") (binary_expression "0x40000000 < uVar3" (number_literal "0x40000000") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n          uVar3 = 0x40000000;\n        }" ({ "{") (expression_statement "uVar3 = 0x40000000;" (assignment_expression "uVar3 = 0x40000000" (identifier "uVar3") (= "=") (number_literal "0x40000000")) (; ";")) (} "}"))) (expression_statement "iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);" (assignment_expression "iVar1 = (*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_write_000370b0)\n                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3)" (parenthesized_expression "(*(code *)PTR_write_000370b0)" (( "(") (pointer_expression "*(code *)PTR_write_000370b0" (* "*") (cast_expression "(code *)PTR_write_000370b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_write_000370b0"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3)" (( "(") (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")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 100)" (* "*") (cast_expression "(undefined4 *)(param_1 + 100)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (, ",") (identifier "uVar3") () ")")))) (; ";")) (if_statement "if (iVar1 < 0) {\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();\n          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);\n          FUN_0001e430(param_1,0xffffffff,uVar4);\n          return 0xffffffff;\n        }" ({ "{") (expression_statement "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___errno_location_000370a0)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_000370a0)()" (parenthesized_expression "(*(code *)PTR___errno_location_000370a0)" (( "(") (pointer_expression "*(code *)PTR___errno_location_000370a0" (* "*") (cast_expression "(code *)PTR___errno_location_000370a0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_000370a0"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);" (assignment_expression "uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_strerror_000370c8)(*puVar2)" (parenthesized_expression "(*(code *)PTR_strerror_000370c8)" (( "(") (pointer_expression "*(code *)PTR_strerror_000370c8" (* "*") (cast_expression "(code *)PTR_strerror_000370c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strerror_000370c8"))) () ")")) (argument_list "(*puVar2)" (( "(") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) () ")")))) (; ";")) (expression_statement "FUN_0001e430(param_1,0xffffffff,uVar4);" (call_expression "FUN_0001e430(param_1,0xffffffff,uVar4)" (identifier "FUN_0001e430") (argument_list "(param_1,0xffffffff,uVar4)" (( "(") (identifier "param_1") (, ",") (number_literal "0xffffffff") (, ",") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "uVar3 = *(int *)(param_1 + 0x68) - iVar1;" (assignment_expression "uVar3 = *(int *)(param_1 + 0x68) - iVar1" (identifier "uVar3") (= "=") (binary_expression "*(int *)(param_1 + 0x68) - iVar1" (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (- "-") (identifier "iVar1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x68) = uVar3;" (assignment_expression "*(uint *)(param_1 + 0x68) = uVar3" (pointer_expression "*(uint *)(param_1 + 0x68)" (* "*") (cast_expression "(uint *)(param_1 + 0x68)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;" (assignment_expression "*(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 100) + iVar1" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (+ "+") (identifier "iVar1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))))) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}")))
(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: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (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))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (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: (identifier) right: (number_literal))) (do_statement body: (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 (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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_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: (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))))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_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))))) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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))))) (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: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_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))))) condition: (parenthesized_expression (binary_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: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (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: (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: (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: (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))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (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))))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (goto_statement label: (statement_identifier))) (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))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_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: (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))))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (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)))))))))) (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 (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal))))) (return_statement (number_literal))))) 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: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) 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)))))))) alternative: (else_clause (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: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_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))))) (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))))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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))))) (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: (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,int param_2)

{
  int iVar1;
  undefined4 *puVar2;
  uint uVar3;
  undefined4 uVar4;
  int iVar5;
  
  if ((*(int *)(param_1 + 0x1c) == 0) && (iVar1 = FUN_00020450(), iVar1 == -1)) {
    uVar4 = 0xffffffff;
  }
  else if (*(int *)(param_1 + 0x2c) == 0) {
    iVar1 = 0;
    do {
      if (*(int *)(param_1 + 0x74) == 0) {
        uVar3 = *(uint *)(param_1 + 4);
        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;
        if (uVar3 < *(uint *)(param_1 + 0x70)) {
LAB_0002082c:
          do {
            if (0x40000000 < iVar1) {
              iVar1 = 0x40000000;
            }
            iVar1 = (*(code *)PTR_write_000370b0)(*(undefined4 *)(param_1 + 0x14),uVar3,iVar1);
            if (iVar1 < 0) {
              puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();
              uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);
              FUN_0001e430(param_1,0xffffffff,uVar4);
              return 0xffffffff;
            }
            uVar3 = *(int *)(param_1 + 4) + iVar1;
            *(uint *)(param_1 + 4) = uVar3;
            iVar1 = *(uint *)(param_1 + 0x70) - uVar3;
          } while (uVar3 < *(uint *)(param_1 + 0x70));
          if (*(int *)(param_1 + 0x74) != 0) goto LAB_0002088c;
        }
        *(undefined4 *)(param_1 + 0x74) = *(undefined4 *)(param_1 + 0x1c);
        *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_1 + 0x28);
        *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_1 + 0x28);
LAB_0002088c:
        iVar5 = *(int *)(param_1 + 0x74);
      }
      else {
        if ((param_2 == 0) || ((param_2 == 4 && (iVar1 != 1)))) goto LAB_0002088c;
        uVar3 = *(uint *)(param_1 + 4);
        iVar1 = *(uint *)(param_1 + 0x70) - uVar3;
        if (uVar3 < *(uint *)(param_1 + 0x70)) goto LAB_0002082c;
        iVar5 = *(int *)(param_1 + 0x74);
      }
      iVar1 = (*(code *)PTR_deflate_000370e4)(param_1 + 100,param_2);
      if (iVar1 == -2) {
        FUN_0001e430(param_1,0xfffffffe,PTR_LAB_0003701c + 0x5f4c);
        return 0xffffffff;
      }
    } while (*(int *)(param_1 + 0x74) != iVar5);
    uVar4 = 0;
    if (param_2 == 4) {
      (*(code *)PTR_deflateReset_000370e8)(param_1 + 100);
    }
  }
  else {
    uVar3 = *(uint *)(param_1 + 0x68);
    if (uVar3 == 0) {
      uVar4 = 0;
    }
    else {
      do {
        if (0x40000000 < uVar3) {
          uVar3 = 0x40000000;
        }
        iVar1 = (*(code *)PTR_write_000370b0)
                          (*(undefined4 *)(param_1 + 0x14),*(undefined4 *)(param_1 + 100),uVar3);
        if (iVar1 < 0) {
          puVar2 = (undefined4 *)(*(code *)PTR___errno_location_000370a0)();
          uVar4 = (*(code *)PTR_strerror_000370c8)(*puVar2);
          FUN_0001e430(param_1,0xffffffff,uVar4);
          return 0xffffffff;
        }
        uVar3 = *(int *)(param_1 + 0x68) - iVar1;
        *(uint *)(param_1 + 0x68) = uVar3;
        *(int *)(param_1 + 100) = *(int *)(param_1 + 100) + iVar1;
      } while (uVar3 != 0);
      uVar4 = 0;
    }
  }
  return uVar4;
}

