
int zlib_compress_block(void *handle,uchar *block,int len,uchar **outblock,int *outlen)

{
  ulong bits;
  int iVar1;
  Outbuf *out;
  
  out = *(Outbuf **)((int)handle + 4);
  out->outbuf = (uchar *)0x0;
  out->outsize = 0;
  out->outlen = 0;
  if (out->firstblock == 0) {
    if (out->comp_disabled != 0) {
      outbits(out,0,7);
LAB_0007d1a8:
      if (0 < len) {
        do {
          bits = 0xffff;
          if (len < 0x10000) {
            bits = len;
          }
          outbits(out,0,3);
          len = len - bits;
          if (out->noutbits != 0) {
            outbits(out,0,8 - out->noutbits);
          }
          outbits(out,bits,0x10);
          outbits(out,bits ^ 0xffff,0x10);
          lz77_compress((LZ77Context *)handle,block,bits,0);
          block = block + bits;
        } while (0 < len);
      }
      goto LAB_0007d11c;
    }
  }
  else {
    outbits(out,0x9c78,0x10);
    out->firstblock = 0;
    if (out->comp_disabled != 0) goto LAB_0007d1a8;
    outbits(out,2,3);
  }
  lz77_compress((LZ77Context *)handle,block,len,1);
  outbits(out,0,7);
  outbits(out,2,10);
LAB_0007d11c:
  outbits(out,2,3);
  iVar1 = out->outlen;
  out->comp_disabled = 0;
  *outblock = out->outbuf;
  *outlen = iVar1;
  return 1;
}



undefined4
zlib_compress_block(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)

{
  uint uVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  
  puVar3 = *(undefined4 **)(param_1 + 4);
  *puVar3 = 0;
  puVar3[2] = 0;
  puVar3[1] = 0;
  if (puVar3[5] == 0) {
    if (puVar3[6] != 0) {
      FUN_0007cc04(puVar3,0,7);
LAB_0007d1a8:
      if (0 < (int)param_3) {
        do {
          uVar1 = 0xffff;
          if ((int)param_3 < 0x10000) {
            uVar1 = param_3;
          }
          FUN_0007cc04(puVar3,0,3);
          param_3 = param_3 - uVar1;
          if (puVar3[4] != 0) {
            FUN_0007cc04(puVar3,0,8 - puVar3[4]);
          }
          FUN_0007cc04(puVar3,uVar1,0x10);
          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);
          FUN_0007b5d0(param_1,param_2,uVar1,0);
          param_2 = param_2 + uVar1;
        } while (0 < (int)param_3);
      }
      goto LAB_0007d11c;
    }
  }
  else {
    FUN_0007cc04(puVar3,0x9c78,0x10);
    puVar3[5] = 0;
    if (puVar3[6] != 0) goto LAB_0007d1a8;
    FUN_0007cc04(puVar3,2,3);
  }
  FUN_0007b5d0(param_1,param_2,param_3,1);
  FUN_0007cc04(puVar3,0,7);
  FUN_0007cc04(puVar3,2,10);
LAB_0007d11c:
  FUN_0007cc04(puVar3,2,3);
  uVar2 = puVar3[1];
  puVar3[6] = 0;
  *param_4 = *puVar3;
  *param_5 = uVar2;
  return 1;
}


lui gp,0x4
addiu gp,gp,-0x2cf0
addu gp,gp,t9
addiu sp,sp,-0x40
sw s1,0x1c(sp)
lw s1,0x4(a0)
sw gp,0x10(sp)
sw s8,0x38(sp)
or s8,a2,zero
sw s4,0x28(sp)
or s4,a0,zero
sw s3,0x24(sp)
sw ra,0x3c(sp)
sw s7,0x34(sp)
sw s6,0x30(sp)
sw s5,0x2c(sp)
sw s2,0x20(sp)
sw s0,0x18(sp)
sw a3,0x4c(sp)
sw zero,0x0(s1)
sw zero,0x8(s1)
sw zero,0x4(s1)
lw v1,0x14(s1)
bne v1,zero,0x0007d17c
_or s3,a1,zero
lw v1,0x18(s1)
bne v1,zero,0x0007d260
_lw s2,-0x7f58(gp)
addiu s2,s2,-0x33fc
lw t9,-0x7f58(gp)
li a3,0x1
or a2,s8,zero
or a1,s3,zero
addiu t9,t9,-0x4a30
bal 0x0007b5d0
_or a0,s4,zero
li a2,0x7
or a1,zero,zero
or t9,s2,zero
bal 0x0007cc04
_or a0,s1,zero
li a2,0xa
li a1,0x2
or t9,s2,zero
bal 0x0007cc04
_or a0,s1,zero
li a2,0x3
li a1,0x2
or t9,s2,zero
bal 0x0007cc04
_or a0,s1,zero
li v0,0x1
lw a1,0x4c(sp)
lw v1,0x0(s1)
lw a0,0x4(s1)
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 s0,0x18(sp)
sw zero,0x18(s1)
sw v1,0x0(a1)
lw v1,0x50(sp)
lw s1,0x1c(sp)
sw a0,0x0(v1)
jr ra
_addiu sp,sp,0x40
lw s2,-0x7f58(gp)
li a2,0x10
ori a1,zero,0x9c78
addiu s2,s2,-0x33fc
or t9,s2,zero
bal 0x0007cc04
_or a0,s1,zero
lw v1,0x18(s1)
lw gp,0x10(sp)
beq v1,zero,0x0007d280
_sw zero,0x14(s1)
blez s8,0x0007d258
_lw s5,-0x7f58(gp)
ori s7,zero,0xffff
lui s6,0x1
b 0x0007d208
_addiu s5,s5,-0x4a30
li a2,0x10
or a1,s0,zero
or t9,s2,zero
bal 0x0007cc04
_or a0,s1,zero
li a2,0x10
or a0,s1,zero
or t9,s2,zero
bal 0x0007cc04
_xori a1,s0,0xffff
or a3,zero,zero
or a1,s3,zero
or a2,s0,zero
or t9,s5,zero
bal 0x0007b5d0
_or a0,s4,zero
blez s8,0x0007d258
_addu s3,s3,s0
slt s0,s8,s6
or v0,s7,zero
movn v0,s8,s0
li a2,0x3
or a1,zero,zero
or a0,s1,zero
or t9,s2,zero
bal 0x0007cc04
_or s0,v0,zero
lw a2,0x10(s1)
beq a2,zero,0x0007d1c0
_subu s8,s8,s0
li v0,0x8
or a1,zero,zero
subu a2,v0,a2
or t9,s2,zero
bal 0x0007cc04
_or a0,s1,zero
b 0x0007d1c4
_li a2,0x10
b 0x0007d11c
_li a2,0x3
addiu s2,s2,-0x33fc
li a2,0x7
or a1,zero,zero
or t9,s2,zero
bal 0x0007cc04
_or a0,s1,zero
b 0x0007d1a8
_lw gp,0x10(sp)
li a2,0x3
li a1,0x2
or t9,s2,zero
bal 0x0007cc04
_or a0,s1,zero
b 0x0007d0d4
_lw gp,0x10(sp)
(translation_unit "undefined4\nzlib_compress_block(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = *(undefined4 **)(param_1 + 4);\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = 0;\n  if (puVar3[5] == 0) {\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }\n  FUN_0007b5d0(param_1,param_2,param_3,1);\n  FUN_0007cc04(puVar3,0,7);\n  FUN_0007cc04(puVar3,2,10);\nLAB_0007d11c:\n  FUN_0007cc04(puVar3,2,3);\n  uVar2 = puVar3[1];\n  puVar3[6] = 0;\n  *param_4 = *puVar3;\n  *param_5 = uVar2;\n  return 1;\n}\n\n" (function_definition "undefined4\nzlib_compress_block(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = *(undefined4 **)(param_1 + 4);\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = 0;\n  if (puVar3[5] == 0) {\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }\n  FUN_0007b5d0(param_1,param_2,param_3,1);\n  FUN_0007cc04(puVar3,0,7);\n  FUN_0007cc04(puVar3,2,10);\nLAB_0007d11c:\n  FUN_0007cc04(puVar3,2,3);\n  uVar2 = puVar3[1];\n  puVar3[6] = 0;\n  *param_4 = *puVar3;\n  *param_5 = uVar2;\n  return 1;\n}" type_identifier (function_declarator "zlib_compress_block(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)" identifier (parameter_list "(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = *(undefined4 **)(param_1 + 4);\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = 0;\n  if (puVar3[5] == 0) {\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }\n  FUN_0007b5d0(param_1,param_2,param_3,1);\n  FUN_0007cc04(puVar3,0,7);\n  FUN_0007cc04(puVar3,2,10);\nLAB_0007d11c:\n  FUN_0007cc04(puVar3,2,3);\n  uVar2 = puVar3[1];\n  puVar3[6] = 0;\n  *param_4 = *puVar3;\n  *param_5 = uVar2;\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = *(undefined4 **)(param_1 + 4);" (assignment_expression "puVar3 = *(undefined4 **)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 4)" * (cast_expression "(undefined4 **)(param_1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (puVar3[5] == 0) {\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }" if (parenthesized_expression "(puVar3[5] == 0)" ( (binary_expression "puVar3[5] == 0" (subscript_expression "puVar3[5]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }" { (if_statement "if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }" if (parenthesized_expression "(puVar3[6] != 0)" ( (binary_expression "puVar3[6] != 0" (subscript_expression "puVar3[6]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }" { (expression_statement "FUN_0007cc04(puVar3,0,7);" (call_expression "FUN_0007cc04(puVar3,0,7)" identifier (argument_list "(puVar3,0,7)" ( identifier , number_literal , number_literal ))) ;) (labeled_statement "LAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }" statement_identifier : (if_statement "if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }" if (parenthesized_expression "(0 < (int)param_3)" ( (binary_expression "0 < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }" { (do_statement "do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);" do (compound_statement "{\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        }" { (expression_statement "uVar1 = 0xffff;" (assignment_expression "uVar1 = 0xffff" identifier = number_literal) ;) (if_statement "if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }" if (parenthesized_expression "((int)param_3 < 0x10000)" ( (binary_expression "(int)param_3 < 0x10000" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n            uVar1 = param_3;\n          }" { (expression_statement "uVar1 = param_3;" (assignment_expression "uVar1 = param_3" identifier = identifier) ;) })) (expression_statement "FUN_0007cc04(puVar3,0,3);" (call_expression "FUN_0007cc04(puVar3,0,3)" identifier (argument_list "(puVar3,0,3)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "param_3 = param_3 - uVar1;" (assignment_expression "param_3 = param_3 - uVar1" identifier = (binary_expression "param_3 - uVar1" identifier - identifier)) ;) (if_statement "if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }" if (parenthesized_expression "(puVar3[4] != 0)" ( (binary_expression "puVar3[4] != 0" (subscript_expression "puVar3[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }" { (expression_statement "FUN_0007cc04(puVar3,0,8 - puVar3[4]);" (call_expression "FUN_0007cc04(puVar3,0,8 - puVar3[4])" identifier (argument_list "(puVar3,0,8 - puVar3[4])" ( identifier , number_literal , (binary_expression "8 - puVar3[4]" number_literal - (subscript_expression "puVar3[4]" identifier [ number_literal ])) ))) ;) })) (expression_statement "FUN_0007cc04(puVar3,uVar1,0x10);" (call_expression "FUN_0007cc04(puVar3,uVar1,0x10)" identifier (argument_list "(puVar3,uVar1,0x10)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);" (call_expression "FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10)" identifier (argument_list "(puVar3,uVar1 ^ 0xffff,0x10)" ( identifier , (binary_expression "uVar1 ^ 0xffff" identifier ^ number_literal) , number_literal ))) ;) (expression_statement "FUN_0007b5d0(param_1,param_2,uVar1,0);" (call_expression "FUN_0007b5d0(param_1,param_2,uVar1,0)" identifier (argument_list "(param_1,param_2,uVar1,0)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "param_2 = param_2 + uVar1;" (assignment_expression "param_2 = param_2 + uVar1" identifier = (binary_expression "param_2 + uVar1" identifier + identifier)) ;) }) while (parenthesized_expression "(0 < (int)param_3)" ( (binary_expression "0 < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) }))) (goto_statement "goto LAB_0007d11c;" goto statement_identifier ;) })) }) (else_clause "else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }" else (compound_statement "{\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }" { (expression_statement "FUN_0007cc04(puVar3,0x9c78,0x10);" (call_expression "FUN_0007cc04(puVar3,0x9c78,0x10)" identifier (argument_list "(puVar3,0x9c78,0x10)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "puVar3[5] = 0;" (assignment_expression "puVar3[5] = 0" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (puVar3[6] != 0) goto LAB_0007d1a8;" if (parenthesized_expression "(puVar3[6] != 0)" ( (binary_expression "puVar3[6] != 0" (subscript_expression "puVar3[6]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_0007d1a8;" goto statement_identifier ;)) (expression_statement "FUN_0007cc04(puVar3,2,3);" (call_expression "FUN_0007cc04(puVar3,2,3)" identifier (argument_list "(puVar3,2,3)" ( identifier , number_literal , number_literal ))) ;) }))) (expression_statement "FUN_0007b5d0(param_1,param_2,param_3,1);" (call_expression "FUN_0007b5d0(param_1,param_2,param_3,1)" identifier (argument_list "(param_1,param_2,param_3,1)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "FUN_0007cc04(puVar3,0,7);" (call_expression "FUN_0007cc04(puVar3,0,7)" identifier (argument_list "(puVar3,0,7)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "FUN_0007cc04(puVar3,2,10);" (call_expression "FUN_0007cc04(puVar3,2,10)" identifier (argument_list "(puVar3,2,10)" ( identifier , number_literal , number_literal ))) ;) (labeled_statement "LAB_0007d11c:\n  FUN_0007cc04(puVar3,2,3);" statement_identifier : (expression_statement "FUN_0007cc04(puVar3,2,3);" (call_expression "FUN_0007cc04(puVar3,2,3)" identifier (argument_list "(puVar3,2,3)" ( identifier , number_literal , number_literal ))) ;)) (expression_statement "uVar2 = puVar3[1];" (assignment_expression "uVar2 = puVar3[1]" identifier = (subscript_expression "puVar3[1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[6] = 0;" (assignment_expression "puVar3[6] = 0" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_4 = *puVar3;" (assignment_expression "*param_4 = *puVar3" (pointer_expression "*param_4" * identifier) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "*param_5 = uVar2;" (assignment_expression "*param_5 = uVar2" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "int zlib_compress_block(void *handle,uchar *block,int len,uchar **outblock,int *outlen)\n\n{\n  ulong bits;\n  int iVar1;\n  Outbuf *out;\n  \n  out = *(Outbuf **)((int)handle + 4);\n  out->outbuf = (uchar *)0x0;\n  out->outsize = 0;\n  out->outlen = 0;\n  if (out->firstblock == 0) {\n    if (out->comp_disabled != 0) {\n      outbits(out,0,7);\nLAB_0007d1a8:\n      if (0 < len) {\n        do {\n          bits = 0xffff;\n          if (len < 0x10000) {\n            bits = len;\n          }\n          outbits(out,0,3);\n          len = len - bits;\n          if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }\n          outbits(out,bits,0x10);\n          outbits(out,bits ^ 0xffff,0x10);\n          lz77_compress((LZ77Context *)handle,block,bits,0);\n          block = block + bits;\n        } while (0 < len);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    outbits(out,0x9c78,0x10);\n    out->firstblock = 0;\n    if (out->comp_disabled != 0) goto LAB_0007d1a8;\n    outbits(out,2,3);\n  }\n  lz77_compress((LZ77Context *)handle,block,len,1);\n  outbits(out,0,7);\n  outbits(out,2,10);\nLAB_0007d11c:\n  outbits(out,2,3);\n  iVar1 = out->outlen;\n  out->comp_disabled = 0;\n  *outblock = out->outbuf;\n  *outlen = iVar1;\n  return 1;\n}\n\n" (function_definition "int zlib_compress_block(void *handle,uchar *block,int len,uchar **outblock,int *outlen)\n\n{\n  ulong bits;\n  int iVar1;\n  Outbuf *out;\n  \n  out = *(Outbuf **)((int)handle + 4);\n  out->outbuf = (uchar *)0x0;\n  out->outsize = 0;\n  out->outlen = 0;\n  if (out->firstblock == 0) {\n    if (out->comp_disabled != 0) {\n      outbits(out,0,7);\nLAB_0007d1a8:\n      if (0 < len) {\n        do {\n          bits = 0xffff;\n          if (len < 0x10000) {\n            bits = len;\n          }\n          outbits(out,0,3);\n          len = len - bits;\n          if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }\n          outbits(out,bits,0x10);\n          outbits(out,bits ^ 0xffff,0x10);\n          lz77_compress((LZ77Context *)handle,block,bits,0);\n          block = block + bits;\n        } while (0 < len);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    outbits(out,0x9c78,0x10);\n    out->firstblock = 0;\n    if (out->comp_disabled != 0) goto LAB_0007d1a8;\n    outbits(out,2,3);\n  }\n  lz77_compress((LZ77Context *)handle,block,len,1);\n  outbits(out,0,7);\n  outbits(out,2,10);\nLAB_0007d11c:\n  outbits(out,2,3);\n  iVar1 = out->outlen;\n  out->comp_disabled = 0;\n  *outblock = out->outbuf;\n  *outlen = iVar1;\n  return 1;\n}" primitive_type (function_declarator "zlib_compress_block(void *handle,uchar *block,int len,uchar **outblock,int *outlen)" identifier (parameter_list "(void *handle,uchar *block,int len,uchar **outblock,int *outlen)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "uchar *block" type_identifier (pointer_declarator "*block" * identifier)) , (parameter_declaration "int len" primitive_type identifier) , (parameter_declaration "uchar **outblock" type_identifier (pointer_declarator "**outblock" * (pointer_declarator "*outblock" * identifier))) , (parameter_declaration "int *outlen" primitive_type (pointer_declarator "*outlen" * identifier)) ))) (compound_statement "{\n  ulong bits;\n  int iVar1;\n  Outbuf *out;\n  \n  out = *(Outbuf **)((int)handle + 4);\n  out->outbuf = (uchar *)0x0;\n  out->outsize = 0;\n  out->outlen = 0;\n  if (out->firstblock == 0) {\n    if (out->comp_disabled != 0) {\n      outbits(out,0,7);\nLAB_0007d1a8:\n      if (0 < len) {\n        do {\n          bits = 0xffff;\n          if (len < 0x10000) {\n            bits = len;\n          }\n          outbits(out,0,3);\n          len = len - bits;\n          if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }\n          outbits(out,bits,0x10);\n          outbits(out,bits ^ 0xffff,0x10);\n          lz77_compress((LZ77Context *)handle,block,bits,0);\n          block = block + bits;\n        } while (0 < len);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    outbits(out,0x9c78,0x10);\n    out->firstblock = 0;\n    if (out->comp_disabled != 0) goto LAB_0007d1a8;\n    outbits(out,2,3);\n  }\n  lz77_compress((LZ77Context *)handle,block,len,1);\n  outbits(out,0,7);\n  outbits(out,2,10);\nLAB_0007d11c:\n  outbits(out,2,3);\n  iVar1 = out->outlen;\n  out->comp_disabled = 0;\n  *outblock = out->outbuf;\n  *outlen = iVar1;\n  return 1;\n}" { (declaration "ulong bits;" type_identifier identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "Outbuf *out;" type_identifier (pointer_declarator "*out" * identifier) ;) (expression_statement "out = *(Outbuf **)((int)handle + 4);" (assignment_expression "out = *(Outbuf **)((int)handle + 4)" identifier = (pointer_expression "*(Outbuf **)((int)handle + 4)" * (cast_expression "(Outbuf **)((int)handle + 4)" ( (type_descriptor "Outbuf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "out->outbuf = (uchar *)0x0;" (assignment_expression "out->outbuf = (uchar *)0x0" (field_expression "out->outbuf" identifier -> field_identifier) = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "out->outsize = 0;" (assignment_expression "out->outsize = 0" (field_expression "out->outsize" identifier -> field_identifier) = number_literal) ;) (expression_statement "out->outlen = 0;" (assignment_expression "out->outlen = 0" (field_expression "out->outlen" identifier -> field_identifier) = number_literal) ;) (if_statement "if (out->firstblock == 0) {\n    if (out->comp_disabled != 0) {\n      outbits(out,0,7);\nLAB_0007d1a8:\n      if (0 < len) {\n        do {\n          bits = 0xffff;\n          if (len < 0x10000) {\n            bits = len;\n          }\n          outbits(out,0,3);\n          len = len - bits;\n          if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }\n          outbits(out,bits,0x10);\n          outbits(out,bits ^ 0xffff,0x10);\n          lz77_compress((LZ77Context *)handle,block,bits,0);\n          block = block + bits;\n        } while (0 < len);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    outbits(out,0x9c78,0x10);\n    out->firstblock = 0;\n    if (out->comp_disabled != 0) goto LAB_0007d1a8;\n    outbits(out,2,3);\n  }" if (parenthesized_expression "(out->firstblock == 0)" ( (binary_expression "out->firstblock == 0" (field_expression "out->firstblock" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if (out->comp_disabled != 0) {\n      outbits(out,0,7);\nLAB_0007d1a8:\n      if (0 < len) {\n        do {\n          bits = 0xffff;\n          if (len < 0x10000) {\n            bits = len;\n          }\n          outbits(out,0,3);\n          len = len - bits;\n          if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }\n          outbits(out,bits,0x10);\n          outbits(out,bits ^ 0xffff,0x10);\n          lz77_compress((LZ77Context *)handle,block,bits,0);\n          block = block + bits;\n        } while (0 < len);\n      }\n      goto LAB_0007d11c;\n    }\n  }" { (if_statement "if (out->comp_disabled != 0) {\n      outbits(out,0,7);\nLAB_0007d1a8:\n      if (0 < len) {\n        do {\n          bits = 0xffff;\n          if (len < 0x10000) {\n            bits = len;\n          }\n          outbits(out,0,3);\n          len = len - bits;\n          if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }\n          outbits(out,bits,0x10);\n          outbits(out,bits ^ 0xffff,0x10);\n          lz77_compress((LZ77Context *)handle,block,bits,0);\n          block = block + bits;\n        } while (0 < len);\n      }\n      goto LAB_0007d11c;\n    }" if (parenthesized_expression "(out->comp_disabled != 0)" ( (binary_expression "out->comp_disabled != 0" (field_expression "out->comp_disabled" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      outbits(out,0,7);\nLAB_0007d1a8:\n      if (0 < len) {\n        do {\n          bits = 0xffff;\n          if (len < 0x10000) {\n            bits = len;\n          }\n          outbits(out,0,3);\n          len = len - bits;\n          if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }\n          outbits(out,bits,0x10);\n          outbits(out,bits ^ 0xffff,0x10);\n          lz77_compress((LZ77Context *)handle,block,bits,0);\n          block = block + bits;\n        } while (0 < len);\n      }\n      goto LAB_0007d11c;\n    }" { (expression_statement "outbits(out,0,7);" (call_expression "outbits(out,0,7)" identifier (argument_list "(out,0,7)" ( identifier , number_literal , number_literal ))) ;) (labeled_statement "LAB_0007d1a8:\n      if (0 < len) {\n        do {\n          bits = 0xffff;\n          if (len < 0x10000) {\n            bits = len;\n          }\n          outbits(out,0,3);\n          len = len - bits;\n          if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }\n          outbits(out,bits,0x10);\n          outbits(out,bits ^ 0xffff,0x10);\n          lz77_compress((LZ77Context *)handle,block,bits,0);\n          block = block + bits;\n        } while (0 < len);\n      }" statement_identifier : (if_statement "if (0 < len) {\n        do {\n          bits = 0xffff;\n          if (len < 0x10000) {\n            bits = len;\n          }\n          outbits(out,0,3);\n          len = len - bits;\n          if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }\n          outbits(out,bits,0x10);\n          outbits(out,bits ^ 0xffff,0x10);\n          lz77_compress((LZ77Context *)handle,block,bits,0);\n          block = block + bits;\n        } while (0 < len);\n      }" if (parenthesized_expression "(0 < len)" ( (binary_expression "0 < len" number_literal < identifier) )) (compound_statement "{\n        do {\n          bits = 0xffff;\n          if (len < 0x10000) {\n            bits = len;\n          }\n          outbits(out,0,3);\n          len = len - bits;\n          if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }\n          outbits(out,bits,0x10);\n          outbits(out,bits ^ 0xffff,0x10);\n          lz77_compress((LZ77Context *)handle,block,bits,0);\n          block = block + bits;\n        } while (0 < len);\n      }" { (do_statement "do {\n          bits = 0xffff;\n          if (len < 0x10000) {\n            bits = len;\n          }\n          outbits(out,0,3);\n          len = len - bits;\n          if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }\n          outbits(out,bits,0x10);\n          outbits(out,bits ^ 0xffff,0x10);\n          lz77_compress((LZ77Context *)handle,block,bits,0);\n          block = block + bits;\n        } while (0 < len);" do (compound_statement "{\n          bits = 0xffff;\n          if (len < 0x10000) {\n            bits = len;\n          }\n          outbits(out,0,3);\n          len = len - bits;\n          if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }\n          outbits(out,bits,0x10);\n          outbits(out,bits ^ 0xffff,0x10);\n          lz77_compress((LZ77Context *)handle,block,bits,0);\n          block = block + bits;\n        }" { (expression_statement "bits = 0xffff;" (assignment_expression "bits = 0xffff" identifier = number_literal) ;) (if_statement "if (len < 0x10000) {\n            bits = len;\n          }" if (parenthesized_expression "(len < 0x10000)" ( (binary_expression "len < 0x10000" identifier < number_literal) )) (compound_statement "{\n            bits = len;\n          }" { (expression_statement "bits = len;" (assignment_expression "bits = len" identifier = identifier) ;) })) (expression_statement "outbits(out,0,3);" (call_expression "outbits(out,0,3)" identifier (argument_list "(out,0,3)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "len = len - bits;" (assignment_expression "len = len - bits" identifier = (binary_expression "len - bits" identifier - identifier)) ;) (if_statement "if (out->noutbits != 0) {\n            outbits(out,0,8 - out->noutbits);\n          }" if (parenthesized_expression "(out->noutbits != 0)" ( (binary_expression "out->noutbits != 0" (field_expression "out->noutbits" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n            outbits(out,0,8 - out->noutbits);\n          }" { (expression_statement "outbits(out,0,8 - out->noutbits);" (call_expression "outbits(out,0,8 - out->noutbits)" identifier (argument_list "(out,0,8 - out->noutbits)" ( identifier , number_literal , (binary_expression "8 - out->noutbits" number_literal - (field_expression "out->noutbits" identifier -> field_identifier)) ))) ;) })) (expression_statement "outbits(out,bits,0x10);" (call_expression "outbits(out,bits,0x10)" identifier (argument_list "(out,bits,0x10)" ( identifier , identifier , number_literal ))) ;) (expression_statement "outbits(out,bits ^ 0xffff,0x10);" (call_expression "outbits(out,bits ^ 0xffff,0x10)" identifier (argument_list "(out,bits ^ 0xffff,0x10)" ( identifier , (binary_expression "bits ^ 0xffff" identifier ^ number_literal) , number_literal ))) ;) (expression_statement "lz77_compress((LZ77Context *)handle,block,bits,0);" (call_expression "lz77_compress((LZ77Context *)handle,block,bits,0)" identifier (argument_list "((LZ77Context *)handle,block,bits,0)" ( (cast_expression "(LZ77Context *)handle" ( (type_descriptor "LZ77Context *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , number_literal ))) ;) (expression_statement "block = block + bits;" (assignment_expression "block = block + bits" identifier = (binary_expression "block + bits" identifier + identifier)) ;) }) while (parenthesized_expression "(0 < len)" ( (binary_expression "0 < len" number_literal < identifier) )) ;) }))) (goto_statement "goto LAB_0007d11c;" goto statement_identifier ;) })) }) (else_clause "else {\n    outbits(out,0x9c78,0x10);\n    out->firstblock = 0;\n    if (out->comp_disabled != 0) goto LAB_0007d1a8;\n    outbits(out,2,3);\n  }" else (compound_statement "{\n    outbits(out,0x9c78,0x10);\n    out->firstblock = 0;\n    if (out->comp_disabled != 0) goto LAB_0007d1a8;\n    outbits(out,2,3);\n  }" { (expression_statement "outbits(out,0x9c78,0x10);" (call_expression "outbits(out,0x9c78,0x10)" identifier (argument_list "(out,0x9c78,0x10)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "out->firstblock = 0;" (assignment_expression "out->firstblock = 0" (field_expression "out->firstblock" identifier -> field_identifier) = number_literal) ;) (if_statement "if (out->comp_disabled != 0) goto LAB_0007d1a8;" if (parenthesized_expression "(out->comp_disabled != 0)" ( (binary_expression "out->comp_disabled != 0" (field_expression "out->comp_disabled" identifier -> field_identifier) != number_literal) )) (goto_statement "goto LAB_0007d1a8;" goto statement_identifier ;)) (expression_statement "outbits(out,2,3);" (call_expression "outbits(out,2,3)" identifier (argument_list "(out,2,3)" ( identifier , number_literal , number_literal ))) ;) }))) (expression_statement "lz77_compress((LZ77Context *)handle,block,len,1);" (call_expression "lz77_compress((LZ77Context *)handle,block,len,1)" identifier (argument_list "((LZ77Context *)handle,block,len,1)" ( (cast_expression "(LZ77Context *)handle" ( (type_descriptor "LZ77Context *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , number_literal ))) ;) (expression_statement "outbits(out,0,7);" (call_expression "outbits(out,0,7)" identifier (argument_list "(out,0,7)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "outbits(out,2,10);" (call_expression "outbits(out,2,10)" identifier (argument_list "(out,2,10)" ( identifier , number_literal , number_literal ))) ;) (labeled_statement "LAB_0007d11c:\n  outbits(out,2,3);" statement_identifier : (expression_statement "outbits(out,2,3);" (call_expression "outbits(out,2,3)" identifier (argument_list "(out,2,3)" ( identifier , number_literal , number_literal ))) ;)) (expression_statement "iVar1 = out->outlen;" (assignment_expression "iVar1 = out->outlen" identifier = (field_expression "out->outlen" identifier -> field_identifier)) ;) (expression_statement "out->comp_disabled = 0;" (assignment_expression "out->comp_disabled = 0" (field_expression "out->comp_disabled" identifier -> field_identifier) = number_literal) ;) (expression_statement "*outblock = out->outbuf;" (assignment_expression "*outblock = out->outbuf" (pointer_expression "*outblock" * identifier) = (field_expression "out->outbuf" identifier -> field_identifier)) ;) (expression_statement "*outlen = iVar1;" (assignment_expression "*outlen = iVar1" (pointer_expression "*outlen" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4\nzlib_compress_block(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = *(undefined4 **)(param_1 + 4);\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = 0;\n  if (puVar3[5] == 0) {\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }\n  FUN_0007b5d0(param_1,param_2,param_3,1);\n  FUN_0007cc04(puVar3,0,7);\n  FUN_0007cc04(puVar3,2,10);\nLAB_0007d11c:\n  FUN_0007cc04(puVar3,2,3);\n  uVar2 = puVar3[1];\n  puVar3[6] = 0;\n  *param_4 = *puVar3;\n  *param_5 = uVar2;\n  return 1;\n}\n\n" (function_definition "undefined4\nzlib_compress_block(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = *(undefined4 **)(param_1 + 4);\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = 0;\n  if (puVar3[5] == 0) {\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }\n  FUN_0007b5d0(param_1,param_2,param_3,1);\n  FUN_0007cc04(puVar3,0,7);\n  FUN_0007cc04(puVar3,2,10);\nLAB_0007d11c:\n  FUN_0007cc04(puVar3,2,3);\n  uVar2 = puVar3[1];\n  puVar3[6] = 0;\n  *param_4 = *puVar3;\n  *param_5 = uVar2;\n  return 1;\n}" type_identifier (function_declarator "zlib_compress_block(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)" identifier (parameter_list "(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = *(undefined4 **)(param_1 + 4);\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = 0;\n  if (puVar3[5] == 0) {\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }\n  FUN_0007b5d0(param_1,param_2,param_3,1);\n  FUN_0007cc04(puVar3,0,7);\n  FUN_0007cc04(puVar3,2,10);\nLAB_0007d11c:\n  FUN_0007cc04(puVar3,2,3);\n  uVar2 = puVar3[1];\n  puVar3[6] = 0;\n  *param_4 = *puVar3;\n  *param_5 = uVar2;\n  return 1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = *(undefined4 **)(param_1 + 4);" (assignment_expression "puVar3 = *(undefined4 **)(param_1 + 4)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 4)" * (cast_expression "(undefined4 **)(param_1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (puVar3[5] == 0) {\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }" if (parenthesized_expression "(puVar3[5] == 0)" ( (binary_expression "puVar3[5] == 0" (subscript_expression "puVar3[5]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }" { (if_statement "if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }" if (parenthesized_expression "(puVar3[6] != 0)" ( (binary_expression "puVar3[6] != 0" (subscript_expression "puVar3[6]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }" { (expression_statement "FUN_0007cc04(puVar3,0,7);" (call_expression "FUN_0007cc04(puVar3,0,7)" identifier (argument_list "(puVar3,0,7)" ( identifier , number_literal , number_literal ))) ;) (labeled_statement "LAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }" statement_identifier : (if_statement "if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }" if (parenthesized_expression "(0 < (int)param_3)" ( (binary_expression "0 < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }" { (do_statement "do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);" do (compound_statement "{\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        }" { (expression_statement "uVar1 = 0xffff;" (assignment_expression "uVar1 = 0xffff" identifier = number_literal) ;) (if_statement "if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }" if (parenthesized_expression "((int)param_3 < 0x10000)" ( (binary_expression "(int)param_3 < 0x10000" (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n            uVar1 = param_3;\n          }" { (expression_statement "uVar1 = param_3;" (assignment_expression "uVar1 = param_3" identifier = identifier) ;) })) (expression_statement "FUN_0007cc04(puVar3,0,3);" (call_expression "FUN_0007cc04(puVar3,0,3)" identifier (argument_list "(puVar3,0,3)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "param_3 = param_3 - uVar1;" (assignment_expression "param_3 = param_3 - uVar1" identifier = (binary_expression "param_3 - uVar1" identifier - identifier)) ;) (if_statement "if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }" if (parenthesized_expression "(puVar3[4] != 0)" ( (binary_expression "puVar3[4] != 0" (subscript_expression "puVar3[4]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }" { (expression_statement "FUN_0007cc04(puVar3,0,8 - puVar3[4]);" (call_expression "FUN_0007cc04(puVar3,0,8 - puVar3[4])" identifier (argument_list "(puVar3,0,8 - puVar3[4])" ( identifier , number_literal , (binary_expression "8 - puVar3[4]" number_literal - (subscript_expression "puVar3[4]" identifier [ number_literal ])) ))) ;) })) (expression_statement "FUN_0007cc04(puVar3,uVar1,0x10);" (call_expression "FUN_0007cc04(puVar3,uVar1,0x10)" identifier (argument_list "(puVar3,uVar1,0x10)" ( identifier , identifier , number_literal ))) ;) (expression_statement "FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);" (call_expression "FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10)" identifier (argument_list "(puVar3,uVar1 ^ 0xffff,0x10)" ( identifier , (binary_expression "uVar1 ^ 0xffff" identifier ^ number_literal) , number_literal ))) ;) (expression_statement "FUN_0007b5d0(param_1,param_2,uVar1,0);" (call_expression "FUN_0007b5d0(param_1,param_2,uVar1,0)" identifier (argument_list "(param_1,param_2,uVar1,0)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "param_2 = param_2 + uVar1;" (assignment_expression "param_2 = param_2 + uVar1" identifier = (binary_expression "param_2 + uVar1" identifier + identifier)) ;) }) while (parenthesized_expression "(0 < (int)param_3)" ( (binary_expression "0 < (int)param_3" number_literal < (cast_expression "(int)param_3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) }))) (goto_statement "goto LAB_0007d11c;" goto statement_identifier ;) })) }) (else_clause "else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }" else (compound_statement "{\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }" { (expression_statement "FUN_0007cc04(puVar3,0x9c78,0x10);" (call_expression "FUN_0007cc04(puVar3,0x9c78,0x10)" identifier (argument_list "(puVar3,0x9c78,0x10)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "puVar3[5] = 0;" (assignment_expression "puVar3[5] = 0" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (puVar3[6] != 0) goto LAB_0007d1a8;" if (parenthesized_expression "(puVar3[6] != 0)" ( (binary_expression "puVar3[6] != 0" (subscript_expression "puVar3[6]" identifier [ number_literal ]) != number_literal) )) (goto_statement "goto LAB_0007d1a8;" goto statement_identifier ;)) (expression_statement "FUN_0007cc04(puVar3,2,3);" (call_expression "FUN_0007cc04(puVar3,2,3)" identifier (argument_list "(puVar3,2,3)" ( identifier , number_literal , number_literal ))) ;) }))) (expression_statement "FUN_0007b5d0(param_1,param_2,param_3,1);" (call_expression "FUN_0007b5d0(param_1,param_2,param_3,1)" identifier (argument_list "(param_1,param_2,param_3,1)" ( identifier , identifier , identifier , number_literal ))) ;) (expression_statement "FUN_0007cc04(puVar3,0,7);" (call_expression "FUN_0007cc04(puVar3,0,7)" identifier (argument_list "(puVar3,0,7)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "FUN_0007cc04(puVar3,2,10);" (call_expression "FUN_0007cc04(puVar3,2,10)" identifier (argument_list "(puVar3,2,10)" ( identifier , number_literal , number_literal ))) ;) (labeled_statement "LAB_0007d11c:\n  FUN_0007cc04(puVar3,2,3);" statement_identifier : (expression_statement "FUN_0007cc04(puVar3,2,3);" (call_expression "FUN_0007cc04(puVar3,2,3)" identifier (argument_list "(puVar3,2,3)" ( identifier , number_literal , number_literal ))) ;)) (expression_statement "uVar2 = puVar3[1];" (assignment_expression "uVar2 = puVar3[1]" identifier = (subscript_expression "puVar3[1]" identifier [ number_literal ])) ;) (expression_statement "puVar3[6] = 0;" (assignment_expression "puVar3[6] = 0" (subscript_expression "puVar3[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_4 = *puVar3;" (assignment_expression "*param_4 = *puVar3" (pointer_expression "*param_4" * identifier) = (pointer_expression "*puVar3" * identifier)) ;) (expression_statement "*param_5 = uVar2;" (assignment_expression "*param_5 = uVar2" (pointer_expression "*param_5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression LIT - (subscript_expression IDENT [ LIT ])) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT ^ LIT) , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) while (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) }))) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4\nzlib_compress_block(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = *(undefined4 **)(param_1 + 4);\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = 0;\n  if (puVar3[5] == 0) {\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }\n  FUN_0007b5d0(param_1,param_2,param_3,1);\n  FUN_0007cc04(puVar3,0,7);\n  FUN_0007cc04(puVar3,2,10);\nLAB_0007d11c:\n  FUN_0007cc04(puVar3,2,3);\n  uVar2 = puVar3[1];\n  puVar3[6] = 0;\n  *param_4 = *puVar3;\n  *param_5 = uVar2;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "zlib_compress_block(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)" (identifier "zlib_compress_block") (parameter_list "(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 *param_5" (type_identifier "undefined4") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  \n  puVar3 = *(undefined4 **)(param_1 + 4);\n  *puVar3 = 0;\n  puVar3[2] = 0;\n  puVar3[1] = 0;\n  if (puVar3[5] == 0) {\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }\n  FUN_0007b5d0(param_1,param_2,param_3,1);\n  FUN_0007cc04(puVar3,0,7);\n  FUN_0007cc04(puVar3,2,10);\nLAB_0007d11c:\n  FUN_0007cc04(puVar3,2,3);\n  uVar2 = puVar3[1];\n  puVar3[6] = 0;\n  *param_4 = *puVar3;\n  *param_5 = uVar2;\n  return 1;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "puVar3 = *(undefined4 **)(param_1 + 4);" (assignment_expression "puVar3 = *(undefined4 **)(param_1 + 4)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 4)" (* "*") (cast_expression "(undefined4 **)(param_1 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[2] = 0;" (assignment_expression "puVar3[2] = 0" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (puVar3[5] == 0) {\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }\n  else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }" (if "if") (parenthesized_expression "(puVar3[5] == 0)" (( "(") (binary_expression "puVar3[5] == 0" (subscript_expression "puVar3[5]" (identifier "puVar3") ([ "[") (number_literal "5") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }\n  }" ({ "{") (if_statement "if (puVar3[6] != 0) {\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }" (if "if") (parenthesized_expression "(puVar3[6] != 0)" (( "(") (binary_expression "puVar3[6] != 0" (subscript_expression "puVar3[6]" (identifier "puVar3") ([ "[") (number_literal "6") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0007cc04(puVar3,0,7);\nLAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }\n      goto LAB_0007d11c;\n    }" ({ "{") (expression_statement "FUN_0007cc04(puVar3,0,7);" (call_expression "FUN_0007cc04(puVar3,0,7)" (identifier "FUN_0007cc04") (argument_list "(puVar3,0,7)" (( "(") (identifier "puVar3") (, ",") (number_literal "0") (, ",") (number_literal "7") () ")"))) (; ";")) (labeled_statement "LAB_0007d1a8:\n      if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }" (statement_identifier "LAB_0007d1a8") (: ":") (if_statement "if (0 < (int)param_3) {\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }" (if "if") (parenthesized_expression "(0 < (int)param_3)" (( "(") (binary_expression "0 < (int)param_3" (number_literal "0") (< "<") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")")) (compound_statement "{\n        do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);\n      }" ({ "{") (do_statement "do {\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        } while (0 < (int)param_3);" (do "do") (compound_statement "{\n          uVar1 = 0xffff;\n          if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }\n          FUN_0007cc04(puVar3,0,3);\n          param_3 = param_3 - uVar1;\n          if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }\n          FUN_0007cc04(puVar3,uVar1,0x10);\n          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);\n          FUN_0007b5d0(param_1,param_2,uVar1,0);\n          param_2 = param_2 + uVar1;\n        }" ({ "{") (expression_statement "uVar1 = 0xffff;" (assignment_expression "uVar1 = 0xffff" (identifier "uVar1") (= "=") (number_literal "0xffff")) (; ";")) (if_statement "if ((int)param_3 < 0x10000) {\n            uVar1 = param_3;\n          }" (if "if") (parenthesized_expression "((int)param_3 < 0x10000)" (( "(") (binary_expression "(int)param_3 < 0x10000" (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3")) (< "<") (number_literal "0x10000")) () ")")) (compound_statement "{\n            uVar1 = param_3;\n          }" ({ "{") (expression_statement "uVar1 = param_3;" (assignment_expression "uVar1 = param_3" (identifier "uVar1") (= "=") (identifier "param_3")) (; ";")) (} "}"))) (expression_statement "FUN_0007cc04(puVar3,0,3);" (call_expression "FUN_0007cc04(puVar3,0,3)" (identifier "FUN_0007cc04") (argument_list "(puVar3,0,3)" (( "(") (identifier "puVar3") (, ",") (number_literal "0") (, ",") (number_literal "3") () ")"))) (; ";")) (expression_statement "param_3 = param_3 - uVar1;" (assignment_expression "param_3 = param_3 - uVar1" (identifier "param_3") (= "=") (binary_expression "param_3 - uVar1" (identifier "param_3") (- "-") (identifier "uVar1"))) (; ";")) (if_statement "if (puVar3[4] != 0) {\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }" (if "if") (parenthesized_expression "(puVar3[4] != 0)" (( "(") (binary_expression "puVar3[4] != 0" (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            FUN_0007cc04(puVar3,0,8 - puVar3[4]);\n          }" ({ "{") (expression_statement "FUN_0007cc04(puVar3,0,8 - puVar3[4]);" (call_expression "FUN_0007cc04(puVar3,0,8 - puVar3[4])" (identifier "FUN_0007cc04") (argument_list "(puVar3,0,8 - puVar3[4])" (( "(") (identifier "puVar3") (, ",") (number_literal "0") (, ",") (binary_expression "8 - puVar3[4]" (number_literal "8") (- "-") (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]"))) () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0007cc04(puVar3,uVar1,0x10);" (call_expression "FUN_0007cc04(puVar3,uVar1,0x10)" (identifier "FUN_0007cc04") (argument_list "(puVar3,uVar1,0x10)" (( "(") (identifier "puVar3") (, ",") (identifier "uVar1") (, ",") (number_literal "0x10") () ")"))) (; ";")) (expression_statement "FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);" (call_expression "FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10)" (identifier "FUN_0007cc04") (argument_list "(puVar3,uVar1 ^ 0xffff,0x10)" (( "(") (identifier "puVar3") (, ",") (binary_expression "uVar1 ^ 0xffff" (identifier "uVar1") (^ "^") (number_literal "0xffff")) (, ",") (number_literal "0x10") () ")"))) (; ";")) (expression_statement "FUN_0007b5d0(param_1,param_2,uVar1,0);" (call_expression "FUN_0007b5d0(param_1,param_2,uVar1,0)" (identifier "FUN_0007b5d0") (argument_list "(param_1,param_2,uVar1,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "uVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "param_2 = param_2 + uVar1;" (assignment_expression "param_2 = param_2 + uVar1" (identifier "param_2") (= "=") (binary_expression "param_2 + uVar1" (identifier "param_2") (+ "+") (identifier "uVar1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(0 < (int)param_3)" (( "(") (binary_expression "0 < (int)param_3" (number_literal "0") (< "<") (cast_expression "(int)param_3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_3"))) () ")")) (; ";")) (} "}")))) (goto_statement "goto LAB_0007d11c;" (goto "goto") (statement_identifier "LAB_0007d11c") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }" (else "else") (compound_statement "{\n    FUN_0007cc04(puVar3,0x9c78,0x10);\n    puVar3[5] = 0;\n    if (puVar3[6] != 0) goto LAB_0007d1a8;\n    FUN_0007cc04(puVar3,2,3);\n  }" ({ "{") (expression_statement "FUN_0007cc04(puVar3,0x9c78,0x10);" (call_expression "FUN_0007cc04(puVar3,0x9c78,0x10)" (identifier "FUN_0007cc04") (argument_list "(puVar3,0x9c78,0x10)" (( "(") (identifier "puVar3") (, ",") (number_literal "0x9c78") (, ",") (number_literal "0x10") () ")"))) (; ";")) (expression_statement "puVar3[5] = 0;" (assignment_expression "puVar3[5] = 0" (subscript_expression "puVar3[5]" (identifier "puVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (puVar3[6] != 0) goto LAB_0007d1a8;" (if "if") (parenthesized_expression "(puVar3[6] != 0)" (( "(") (binary_expression "puVar3[6] != 0" (subscript_expression "puVar3[6]" (identifier "puVar3") ([ "[") (number_literal "6") (] "]")) (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0007d1a8;" (goto "goto") (statement_identifier "LAB_0007d1a8") (; ";"))) (expression_statement "FUN_0007cc04(puVar3,2,3);" (call_expression "FUN_0007cc04(puVar3,2,3)" (identifier "FUN_0007cc04") (argument_list "(puVar3,2,3)" (( "(") (identifier "puVar3") (, ",") (number_literal "2") (, ",") (number_literal "3") () ")"))) (; ";")) (} "}")))) (expression_statement "FUN_0007b5d0(param_1,param_2,param_3,1);" (call_expression "FUN_0007b5d0(param_1,param_2,param_3,1)" (identifier "FUN_0007b5d0") (argument_list "(param_1,param_2,param_3,1)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "FUN_0007cc04(puVar3,0,7);" (call_expression "FUN_0007cc04(puVar3,0,7)" (identifier "FUN_0007cc04") (argument_list "(puVar3,0,7)" (( "(") (identifier "puVar3") (, ",") (number_literal "0") (, ",") (number_literal "7") () ")"))) (; ";")) (expression_statement "FUN_0007cc04(puVar3,2,10);" (call_expression "FUN_0007cc04(puVar3,2,10)" (identifier "FUN_0007cc04") (argument_list "(puVar3,2,10)" (( "(") (identifier "puVar3") (, ",") (number_literal "2") (, ",") (number_literal "10") () ")"))) (; ";")) (labeled_statement "LAB_0007d11c:\n  FUN_0007cc04(puVar3,2,3);" (statement_identifier "LAB_0007d11c") (: ":") (expression_statement "FUN_0007cc04(puVar3,2,3);" (call_expression "FUN_0007cc04(puVar3,2,3)" (identifier "FUN_0007cc04") (argument_list "(puVar3,2,3)" (( "(") (identifier "puVar3") (, ",") (number_literal "2") (, ",") (number_literal "3") () ")"))) (; ";"))) (expression_statement "uVar2 = puVar3[1];" (assignment_expression "uVar2 = puVar3[1]" (identifier "uVar2") (= "=") (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar3[6] = 0;" (assignment_expression "puVar3[6] = 0" (subscript_expression "puVar3[6]" (identifier "puVar3") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_4 = *puVar3;" (assignment_expression "*param_4 = *puVar3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (pointer_expression "*puVar3" (* "*") (identifier "puVar3"))) (; ";")) (expression_statement "*param_5 = uVar2;" (assignment_expression "*param_5 = uVar2" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

int function_1(void *handle,type_1 *var_5,int var_2,type_1 **outblock,int *outlen)

{
  type_2 var_3;
  int iVar1;
  type_3 *out;
  
  out = *(type_3 **)((int)handle + 4);
  out->outbuf = (type_1 *)0x0;
  out->outsize = 0;
  out->outlen = 0;
  if (out->firstblock == 0) {
    if (out->comp_disabled != 0) {
      var_1(out,0,7);
LAB_0007d1a8:
      if (0 < var_2) {
        do {
          var_3 = 0xffff;
          if (var_2 < 0x10000) {
            var_3 = var_2;
          }
          var_1(out,0,3);
          var_2 = var_2 - var_3;
          if (out->noutbits != 0) {
            var_1(out,0,8 - out->noutbits);
          }
          var_1(out,var_3,0x10);
          var_1(out,var_3 ^ 0xffff,0x10);
          var_4((type_4 *)handle,var_5,var_3,0);
          var_5 = var_5 + var_3;
        } while (0 < var_2);
      }
      goto LAB_0007d11c;
    }
  }
  else {
    var_1(out,0x9c78,0x10);
    out->firstblock = 0;
    if (out->comp_disabled != 0) goto LAB_0007d1a8;
    var_1(out,2,3);
  }
  var_4((type_4 *)handle,var_5,var_2,1);
  var_1(out,0,7);
  var_1(out,2,10);
LAB_0007d11c:
  var_1(out,2,3);
  iVar1 = out->outlen;
  out->comp_disabled = 0;
  *outblock = out->outbuf;
  *outlen = iVar1;
  return 1;
}


(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)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (number_literal) right: (subscript_expression argument: (identifier) index: (number_literal)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (number_literal)))))

undefined4
MASKED(int param_1,int param_2,uint param_3,undefined4 *param_4,undefined4 *param_5)

{
  uint uVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  
  puVar3 = *(undefined4 **)(param_1 + 4);
  *puVar3 = 0;
  puVar3[2] = 0;
  puVar3[1] = 0;
  if (puVar3[5] == 0) {
    if (puVar3[6] != 0) {
      FUN_0007cc04(puVar3,0,7);
LAB_0007d1a8:
      if (0 < (int)param_3) {
        do {
          uVar1 = 0xffff;
          if ((int)param_3 < 0x10000) {
            uVar1 = param_3;
          }
          FUN_0007cc04(puVar3,0,3);
          param_3 = param_3 - uVar1;
          if (puVar3[4] != 0) {
            FUN_0007cc04(puVar3,0,8 - puVar3[4]);
          }
          FUN_0007cc04(puVar3,uVar1,0x10);
          FUN_0007cc04(puVar3,uVar1 ^ 0xffff,0x10);
          FUN_0007b5d0(param_1,param_2,uVar1,0);
          param_2 = param_2 + uVar1;
        } while (0 < (int)param_3);
      }
      goto LAB_0007d11c;
    }
  }
  else {
    FUN_0007cc04(puVar3,0x9c78,0x10);
    puVar3[5] = 0;
    if (puVar3[6] != 0) goto LAB_0007d1a8;
    FUN_0007cc04(puVar3,2,3);
  }
  FUN_0007b5d0(param_1,param_2,param_3,1);
  FUN_0007cc04(puVar3,0,7);
  FUN_0007cc04(puVar3,2,10);
LAB_0007d11c:
  FUN_0007cc04(puVar3,2,3);
  uVar2 = puVar3[1];
  puVar3[6] = 0;
  *param_4 = *puVar3;
  *param_5 = uVar2;
  return 1;
}

