
/* WARNING: Switch with 1 destination removed at 0x00011870 */

int inflateResetKeep(z_streamp strm)

{
  ct_data_s *pcVar1;
  internal_state *piVar2;
  uint uVar3;
  
  if (((strm == (z_streamp)0x0) || (strm->zalloc == (alloc_func)0x0)) ||
     (strm->zfree == (free_func)0x0)) {
    return -2;
  }
  piVar2 = strm->state;
  if (((piVar2 != (internal_state *)0x0) && (strm == piVar2->strm)) &&
     (piVar2->status - 0x3f34U < 0x20)) {
    uVar3 = piVar2->pending_buf_size;
    piVar2->gzindex = 0;
    strm->total_out = 0;
    strm->total_in = 0;
    strm->msg = (char *)0x0;
    if (uVar3 != 0) {
      strm->adler = uVar3 & 1;
    }
    pcVar1 = piVar2->dyn_ltree + 0x128;
    piVar2->status = 0x3f34;
    piVar2->pending_buf = (Bytef *)0x0;
    piVar2->pending_out = (Bytef *)0x0;
    piVar2->wrap = 0x8000;
    piVar2->match_start = (uInt)pcVar1;
    piVar2->hash_mask = (uInt)pcVar1;
    piVar2->hash_bits = (uInt)pcVar1;
    *(undefined4 *)&piVar2->method = 0;
    piVar2->window_size = 0;
    piVar2->prev = (Posf *)0x0;
    piVar2[1].dyn_ltree[0x11b].fc = (anon_union_2_2_314cc5cc_for_fc)0x1;
    piVar2[1].dyn_ltree[0x11b].dl = (anon_union_2_2_43a7fb4f_for_dl)0x0;
    piVar2[1].dyn_ltree[0x11c].fc = (anon_union_2_2_314cc5cc_for_fc)0xffff;
    piVar2[1].dyn_ltree[0x11c].dl = (anon_union_2_2_43a7fb4f_for_dl)0xffff;
    return 0;
  }
  return -2;
}



/* WARNING: Switch with 1 destination removed at 0x00011870 */

undefined4 inflateResetKeep(int param_1)

{
  int *piVar1;
  int *piVar2;
  uint uVar3;
  
  if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {
    return 0xfffffffe;
  }
  piVar2 = *(int **)(param_1 + 0x1c);
  if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {
    uVar3 = piVar2[3];
    piVar2[8] = 0;
    *(undefined4 *)(param_1 + 0x14) = 0;
    *(undefined4 *)(param_1 + 8) = 0;
    *(undefined4 *)(param_1 + 0x18) = 0;
    if (uVar3 != 0) {
      *(uint *)(param_1 + 0x30) = uVar3 & 1;
    }
    piVar1 = piVar2 + 0x14d;
    piVar2[1] = 0x3f34;
    piVar2[2] = 0;
    piVar2[4] = 0;
    piVar2[6] = 0x8000;
    piVar2[0x1c] = (int)piVar1;
    piVar2[0x15] = (int)piVar1;
    piVar2[0x14] = (int)piVar1;
    piVar2[9] = 0;
    piVar2[0xf] = 0;
    piVar2[0x10] = 0;
    piVar2[0x6f1] = 1;
    piVar2[0x6f2] = -1;
    return 0;
  }
  return 0xfffffffe;
}


JMP dword ptr [EBX + 0x38]
(translation_unit "/* WARNING: Switch with 1 destination removed at 0x00011870 */\n\nundefined4 inflateResetKeep(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {\n    return 0xfffffffe;\n  }\n  piVar2 = *(int **)(param_1 + 0x1c);\n  if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }\n  return 0xfffffffe;\n}\n\n" comment (function_definition "undefined4 inflateResetKeep(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {\n    return 0xfffffffe;\n  }\n  piVar2 = *(int **)(param_1 + 0x1c);\n  if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }\n  return 0xfffffffe;\n}" type_identifier (function_declarator "inflateResetKeep(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {\n    return 0xfffffffe;\n  }\n  piVar2 = *(int **)(param_1 + 0x1c);\n  if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }\n  return 0xfffffffe;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {\n    return 0xfffffffe;\n  }" if (parenthesized_expression "(((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0))" ( (binary_expression "((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)" (parenthesized_expression "((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0))" ( (binary_expression "(param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x20) == 0)" ( (binary_expression "*(int *)(param_1 + 0x20) == 0" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) == number_literal) ))) )) || (parenthesized_expression "(*(int *)(param_1 + 0x24) == 0)" ( (binary_expression "*(int *)(param_1 + 0x24) == 0" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    return 0xfffffffe;\n  }" { (return_statement "return 0xfffffffe;" return number_literal ;) })) (expression_statement "piVar2 = *(int **)(param_1 + 0x1c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x1c)" identifier = (pointer_expression "*(int **)(param_1 + 0x1c)" * (cast_expression "(int **)(param_1 + 0x1c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }" if (parenthesized_expression "(((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20))" ( (binary_expression "((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)" (parenthesized_expression "((piVar2 != (int *)0x0) && (param_1 == *piVar2))" ( (binary_expression "(piVar2 != (int *)0x0) && (param_1 == *piVar2)" (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_1 == *piVar2)" ( (binary_expression "param_1 == *piVar2" identifier == (pointer_expression "*piVar2" * identifier)) ))) )) && (parenthesized_expression "(piVar2[1] - 0x3f34U < 0x20)" ( (binary_expression "piVar2[1] - 0x3f34U < 0x20" (binary_expression "piVar2[1] - 0x3f34U" (subscript_expression "piVar2[1]" identifier [ number_literal ]) - number_literal) < number_literal) ))) )) (compound_statement "{\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }" { (expression_statement "uVar3 = piVar2[3];" (assignment_expression "uVar3 = piVar2[3]" identifier = (subscript_expression "piVar2[3]" identifier [ number_literal ])) ;) (expression_statement "piVar2[8] = 0;" (assignment_expression "piVar2[8] = 0" (subscript_expression "piVar2[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (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) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }" { (expression_statement "*(uint *)(param_1 + 0x30) = uVar3 & 1;" (assignment_expression "*(uint *)(param_1 + 0x30) = uVar3 & 1" (pointer_expression "*(uint *)(param_1 + 0x30)" * (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = (binary_expression "uVar3 & 1" identifier & number_literal)) ;) })) (expression_statement "piVar1 = piVar2 + 0x14d;" (assignment_expression "piVar1 = piVar2 + 0x14d" identifier = (binary_expression "piVar2 + 0x14d" identifier + number_literal)) ;) (expression_statement "piVar2[1] = 0x3f34;" (assignment_expression "piVar2[1] = 0x3f34" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[2] = 0;" (assignment_expression "piVar2[2] = 0" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[4] = 0;" (assignment_expression "piVar2[4] = 0" (subscript_expression "piVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[6] = 0x8000;" (assignment_expression "piVar2[6] = 0x8000" (subscript_expression "piVar2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[0x1c] = (int)piVar1;" (assignment_expression "piVar2[0x1c] = (int)piVar1" (subscript_expression "piVar2[0x1c]" identifier [ number_literal ]) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar2[0x15] = (int)piVar1;" (assignment_expression "piVar2[0x15] = (int)piVar1" (subscript_expression "piVar2[0x15]" identifier [ number_literal ]) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar2[0x14] = (int)piVar1;" (assignment_expression "piVar2[0x14] = (int)piVar1" (subscript_expression "piVar2[0x14]" identifier [ number_literal ]) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar2[9] = 0;" (assignment_expression "piVar2[9] = 0" (subscript_expression "piVar2[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[0xf] = 0;" (assignment_expression "piVar2[0xf] = 0" (subscript_expression "piVar2[0xf]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[0x10] = 0;" (assignment_expression "piVar2[0x10] = 0" (subscript_expression "piVar2[0x10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[0x6f1] = 1;" (assignment_expression "piVar2[0x6f1] = 1" (subscript_expression "piVar2[0x6f1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[0x6f2] = -1;" (assignment_expression "piVar2[0x6f2] = -1" (subscript_expression "piVar2[0x6f2]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 0xfffffffe;" return number_literal ;) })))
(translation_unit "/* WARNING: Switch with 1 destination removed at 0x00011870 */\n\nint inflateResetKeep(z_streamp strm)\n\n{\n  ct_data_s *pcVar1;\n  internal_state *piVar2;\n  uint uVar3;\n  \n  if (((strm == (z_streamp)0x0) || (strm->zalloc == (alloc_func)0x0)) ||\n     (strm->zfree == (free_func)0x0)) {\n    return -2;\n  }\n  piVar2 = strm->state;\n  if (((piVar2 != (internal_state *)0x0) && (strm == piVar2->strm)) &&\n     (piVar2->status - 0x3f34U < 0x20)) {\n    uVar3 = piVar2->pending_buf_size;\n    piVar2->gzindex = 0;\n    strm->total_out = 0;\n    strm->total_in = 0;\n    strm->msg = (char *)0x0;\n    if (uVar3 != 0) {\n      strm->adler = uVar3 & 1;\n    }\n    pcVar1 = piVar2->dyn_ltree + 0x128;\n    piVar2->status = 0x3f34;\n    piVar2->pending_buf = (Bytef *)0x0;\n    piVar2->pending_out = (Bytef *)0x0;\n    piVar2->wrap = 0x8000;\n    piVar2->match_start = (uInt)pcVar1;\n    piVar2->hash_mask = (uInt)pcVar1;\n    piVar2->hash_bits = (uInt)pcVar1;\n    *(undefined4 *)&piVar2->method = 0;\n    piVar2->window_size = 0;\n    piVar2->prev = (Posf *)0x0;\n    piVar2[1].dyn_ltree[0x11b].fc = (anon_union_2_2_314cc5cc_for_fc)0x1;\n    piVar2[1].dyn_ltree[0x11b].dl = (anon_union_2_2_43a7fb4f_for_dl)0x0;\n    piVar2[1].dyn_ltree[0x11c].fc = (anon_union_2_2_314cc5cc_for_fc)0xffff;\n    piVar2[1].dyn_ltree[0x11c].dl = (anon_union_2_2_43a7fb4f_for_dl)0xffff;\n    return 0;\n  }\n  return -2;\n}\n\n" comment (function_definition "int inflateResetKeep(z_streamp strm)\n\n{\n  ct_data_s *pcVar1;\n  internal_state *piVar2;\n  uint uVar3;\n  \n  if (((strm == (z_streamp)0x0) || (strm->zalloc == (alloc_func)0x0)) ||\n     (strm->zfree == (free_func)0x0)) {\n    return -2;\n  }\n  piVar2 = strm->state;\n  if (((piVar2 != (internal_state *)0x0) && (strm == piVar2->strm)) &&\n     (piVar2->status - 0x3f34U < 0x20)) {\n    uVar3 = piVar2->pending_buf_size;\n    piVar2->gzindex = 0;\n    strm->total_out = 0;\n    strm->total_in = 0;\n    strm->msg = (char *)0x0;\n    if (uVar3 != 0) {\n      strm->adler = uVar3 & 1;\n    }\n    pcVar1 = piVar2->dyn_ltree + 0x128;\n    piVar2->status = 0x3f34;\n    piVar2->pending_buf = (Bytef *)0x0;\n    piVar2->pending_out = (Bytef *)0x0;\n    piVar2->wrap = 0x8000;\n    piVar2->match_start = (uInt)pcVar1;\n    piVar2->hash_mask = (uInt)pcVar1;\n    piVar2->hash_bits = (uInt)pcVar1;\n    *(undefined4 *)&piVar2->method = 0;\n    piVar2->window_size = 0;\n    piVar2->prev = (Posf *)0x0;\n    piVar2[1].dyn_ltree[0x11b].fc = (anon_union_2_2_314cc5cc_for_fc)0x1;\n    piVar2[1].dyn_ltree[0x11b].dl = (anon_union_2_2_43a7fb4f_for_dl)0x0;\n    piVar2[1].dyn_ltree[0x11c].fc = (anon_union_2_2_314cc5cc_for_fc)0xffff;\n    piVar2[1].dyn_ltree[0x11c].dl = (anon_union_2_2_43a7fb4f_for_dl)0xffff;\n    return 0;\n  }\n  return -2;\n}" primitive_type (function_declarator "inflateResetKeep(z_streamp strm)" identifier (parameter_list "(z_streamp strm)" ( (parameter_declaration "z_streamp strm" type_identifier identifier) ))) (compound_statement "{\n  ct_data_s *pcVar1;\n  internal_state *piVar2;\n  uint uVar3;\n  \n  if (((strm == (z_streamp)0x0) || (strm->zalloc == (alloc_func)0x0)) ||\n     (strm->zfree == (free_func)0x0)) {\n    return -2;\n  }\n  piVar2 = strm->state;\n  if (((piVar2 != (internal_state *)0x0) && (strm == piVar2->strm)) &&\n     (piVar2->status - 0x3f34U < 0x20)) {\n    uVar3 = piVar2->pending_buf_size;\n    piVar2->gzindex = 0;\n    strm->total_out = 0;\n    strm->total_in = 0;\n    strm->msg = (char *)0x0;\n    if (uVar3 != 0) {\n      strm->adler = uVar3 & 1;\n    }\n    pcVar1 = piVar2->dyn_ltree + 0x128;\n    piVar2->status = 0x3f34;\n    piVar2->pending_buf = (Bytef *)0x0;\n    piVar2->pending_out = (Bytef *)0x0;\n    piVar2->wrap = 0x8000;\n    piVar2->match_start = (uInt)pcVar1;\n    piVar2->hash_mask = (uInt)pcVar1;\n    piVar2->hash_bits = (uInt)pcVar1;\n    *(undefined4 *)&piVar2->method = 0;\n    piVar2->window_size = 0;\n    piVar2->prev = (Posf *)0x0;\n    piVar2[1].dyn_ltree[0x11b].fc = (anon_union_2_2_314cc5cc_for_fc)0x1;\n    piVar2[1].dyn_ltree[0x11b].dl = (anon_union_2_2_43a7fb4f_for_dl)0x0;\n    piVar2[1].dyn_ltree[0x11c].fc = (anon_union_2_2_314cc5cc_for_fc)0xffff;\n    piVar2[1].dyn_ltree[0x11c].dl = (anon_union_2_2_43a7fb4f_for_dl)0xffff;\n    return 0;\n  }\n  return -2;\n}" { (declaration "ct_data_s *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "internal_state *piVar2;" type_identifier (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (((strm == (z_streamp)0x0) || (strm->zalloc == (alloc_func)0x0)) ||\n     (strm->zfree == (free_func)0x0)) {\n    return -2;\n  }" if (parenthesized_expression "(((strm == (z_streamp)0x0) || (strm->zalloc == (alloc_func)0x0)) ||\n     (strm->zfree == (free_func)0x0))" ( (binary_expression "((strm == (z_streamp)0x0) || (strm->zalloc == (alloc_func)0x0)) ||\n     (strm->zfree == (free_func)0x0)" (parenthesized_expression "((strm == (z_streamp)0x0) || (strm->zalloc == (alloc_func)0x0))" ( (binary_expression "(strm == (z_streamp)0x0) || (strm->zalloc == (alloc_func)0x0)" (parenthesized_expression "(strm == (z_streamp)0x0)" ( (binary_expression "strm == (z_streamp)0x0" identifier == (cast_expression "(z_streamp)0x0" ( (type_descriptor "z_streamp" type_identifier) ) number_literal)) )) || (parenthesized_expression "(strm->zalloc == (alloc_func)0x0)" ( (binary_expression "strm->zalloc == (alloc_func)0x0" (field_expression "strm->zalloc" identifier -> field_identifier) == (cast_expression "(alloc_func)0x0" ( (type_descriptor "alloc_func" type_identifier) ) number_literal)) ))) )) || (parenthesized_expression "(strm->zfree == (free_func)0x0)" ( (binary_expression "strm->zfree == (free_func)0x0" (field_expression "strm->zfree" identifier -> field_identifier) == (cast_expression "(free_func)0x0" ( (type_descriptor "free_func" type_identifier) ) number_literal)) ))) )) (compound_statement "{\n    return -2;\n  }" { (return_statement "return -2;" return number_literal ;) })) (expression_statement "piVar2 = strm->state;" (assignment_expression "piVar2 = strm->state" identifier = (field_expression "strm->state" identifier -> field_identifier)) ;) (if_statement "if (((piVar2 != (internal_state *)0x0) && (strm == piVar2->strm)) &&\n     (piVar2->status - 0x3f34U < 0x20)) {\n    uVar3 = piVar2->pending_buf_size;\n    piVar2->gzindex = 0;\n    strm->total_out = 0;\n    strm->total_in = 0;\n    strm->msg = (char *)0x0;\n    if (uVar3 != 0) {\n      strm->adler = uVar3 & 1;\n    }\n    pcVar1 = piVar2->dyn_ltree + 0x128;\n    piVar2->status = 0x3f34;\n    piVar2->pending_buf = (Bytef *)0x0;\n    piVar2->pending_out = (Bytef *)0x0;\n    piVar2->wrap = 0x8000;\n    piVar2->match_start = (uInt)pcVar1;\n    piVar2->hash_mask = (uInt)pcVar1;\n    piVar2->hash_bits = (uInt)pcVar1;\n    *(undefined4 *)&piVar2->method = 0;\n    piVar2->window_size = 0;\n    piVar2->prev = (Posf *)0x0;\n    piVar2[1].dyn_ltree[0x11b].fc = (anon_union_2_2_314cc5cc_for_fc)0x1;\n    piVar2[1].dyn_ltree[0x11b].dl = (anon_union_2_2_43a7fb4f_for_dl)0x0;\n    piVar2[1].dyn_ltree[0x11c].fc = (anon_union_2_2_314cc5cc_for_fc)0xffff;\n    piVar2[1].dyn_ltree[0x11c].dl = (anon_union_2_2_43a7fb4f_for_dl)0xffff;\n    return 0;\n  }" if (parenthesized_expression "(((piVar2 != (internal_state *)0x0) && (strm == piVar2->strm)) &&\n     (piVar2->status - 0x3f34U < 0x20))" ( (binary_expression "((piVar2 != (internal_state *)0x0) && (strm == piVar2->strm)) &&\n     (piVar2->status - 0x3f34U < 0x20)" (parenthesized_expression "((piVar2 != (internal_state *)0x0) && (strm == piVar2->strm))" ( (binary_expression "(piVar2 != (internal_state *)0x0) && (strm == piVar2->strm)" (parenthesized_expression "(piVar2 != (internal_state *)0x0)" ( (binary_expression "piVar2 != (internal_state *)0x0" identifier != (cast_expression "(internal_state *)0x0" ( (type_descriptor "internal_state *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(strm == piVar2->strm)" ( (binary_expression "strm == piVar2->strm" identifier == (field_expression "piVar2->strm" identifier -> field_identifier)) ))) )) && (parenthesized_expression "(piVar2->status - 0x3f34U < 0x20)" ( (binary_expression "piVar2->status - 0x3f34U < 0x20" (binary_expression "piVar2->status - 0x3f34U" (field_expression "piVar2->status" identifier -> field_identifier) - number_literal) < number_literal) ))) )) (compound_statement "{\n    uVar3 = piVar2->pending_buf_size;\n    piVar2->gzindex = 0;\n    strm->total_out = 0;\n    strm->total_in = 0;\n    strm->msg = (char *)0x0;\n    if (uVar3 != 0) {\n      strm->adler = uVar3 & 1;\n    }\n    pcVar1 = piVar2->dyn_ltree + 0x128;\n    piVar2->status = 0x3f34;\n    piVar2->pending_buf = (Bytef *)0x0;\n    piVar2->pending_out = (Bytef *)0x0;\n    piVar2->wrap = 0x8000;\n    piVar2->match_start = (uInt)pcVar1;\n    piVar2->hash_mask = (uInt)pcVar1;\n    piVar2->hash_bits = (uInt)pcVar1;\n    *(undefined4 *)&piVar2->method = 0;\n    piVar2->window_size = 0;\n    piVar2->prev = (Posf *)0x0;\n    piVar2[1].dyn_ltree[0x11b].fc = (anon_union_2_2_314cc5cc_for_fc)0x1;\n    piVar2[1].dyn_ltree[0x11b].dl = (anon_union_2_2_43a7fb4f_for_dl)0x0;\n    piVar2[1].dyn_ltree[0x11c].fc = (anon_union_2_2_314cc5cc_for_fc)0xffff;\n    piVar2[1].dyn_ltree[0x11c].dl = (anon_union_2_2_43a7fb4f_for_dl)0xffff;\n    return 0;\n  }" { (expression_statement "uVar3 = piVar2->pending_buf_size;" (assignment_expression "uVar3 = piVar2->pending_buf_size" identifier = (field_expression "piVar2->pending_buf_size" identifier -> field_identifier)) ;) (expression_statement "piVar2->gzindex = 0;" (assignment_expression "piVar2->gzindex = 0" (field_expression "piVar2->gzindex" identifier -> field_identifier) = number_literal) ;) (expression_statement "strm->total_out = 0;" (assignment_expression "strm->total_out = 0" (field_expression "strm->total_out" identifier -> field_identifier) = number_literal) ;) (expression_statement "strm->total_in = 0;" (assignment_expression "strm->total_in = 0" (field_expression "strm->total_in" identifier -> field_identifier) = number_literal) ;) (expression_statement "strm->msg = (char *)0x0;" (assignment_expression "strm->msg = (char *)0x0" (field_expression "strm->msg" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (uVar3 != 0) {\n      strm->adler = uVar3 & 1;\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      strm->adler = uVar3 & 1;\n    }" { (expression_statement "strm->adler = uVar3 & 1;" (assignment_expression "strm->adler = uVar3 & 1" (field_expression "strm->adler" identifier -> field_identifier) = (binary_expression "uVar3 & 1" identifier & number_literal)) ;) })) (expression_statement "pcVar1 = piVar2->dyn_ltree + 0x128;" (assignment_expression "pcVar1 = piVar2->dyn_ltree + 0x128" identifier = (binary_expression "piVar2->dyn_ltree + 0x128" (field_expression "piVar2->dyn_ltree" identifier -> field_identifier) + number_literal)) ;) (expression_statement "piVar2->status = 0x3f34;" (assignment_expression "piVar2->status = 0x3f34" (field_expression "piVar2->status" identifier -> field_identifier) = number_literal) ;) (expression_statement "piVar2->pending_buf = (Bytef *)0x0;" (assignment_expression "piVar2->pending_buf = (Bytef *)0x0" (field_expression "piVar2->pending_buf" identifier -> field_identifier) = (cast_expression "(Bytef *)0x0" ( (type_descriptor "Bytef *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar2->pending_out = (Bytef *)0x0;" (assignment_expression "piVar2->pending_out = (Bytef *)0x0" (field_expression "piVar2->pending_out" identifier -> field_identifier) = (cast_expression "(Bytef *)0x0" ( (type_descriptor "Bytef *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar2->wrap = 0x8000;" (assignment_expression "piVar2->wrap = 0x8000" (field_expression "piVar2->wrap" identifier -> field_identifier) = number_literal) ;) (expression_statement "piVar2->match_start = (uInt)pcVar1;" (assignment_expression "piVar2->match_start = (uInt)pcVar1" (field_expression "piVar2->match_start" identifier -> field_identifier) = (cast_expression "(uInt)pcVar1" ( (type_descriptor "uInt" type_identifier) ) identifier)) ;) (expression_statement "piVar2->hash_mask = (uInt)pcVar1;" (assignment_expression "piVar2->hash_mask = (uInt)pcVar1" (field_expression "piVar2->hash_mask" identifier -> field_identifier) = (cast_expression "(uInt)pcVar1" ( (type_descriptor "uInt" type_identifier) ) identifier)) ;) (expression_statement "piVar2->hash_bits = (uInt)pcVar1;" (assignment_expression "piVar2->hash_bits = (uInt)pcVar1" (field_expression "piVar2->hash_bits" identifier -> field_identifier) = (cast_expression "(uInt)pcVar1" ( (type_descriptor "uInt" type_identifier) ) identifier)) ;) (expression_statement "*(undefined4 *)&piVar2->method = 0;" (assignment_expression "*(undefined4 *)&piVar2->method = 0" (pointer_expression "*(undefined4 *)&piVar2->method" * (cast_expression "(undefined4 *)&piVar2->method" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&piVar2->method" & (field_expression "piVar2->method" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "piVar2->window_size = 0;" (assignment_expression "piVar2->window_size = 0" (field_expression "piVar2->window_size" identifier -> field_identifier) = number_literal) ;) (expression_statement "piVar2->prev = (Posf *)0x0;" (assignment_expression "piVar2->prev = (Posf *)0x0" (field_expression "piVar2->prev" identifier -> field_identifier) = (cast_expression "(Posf *)0x0" ( (type_descriptor "Posf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar2[1].dyn_ltree[0x11b].fc = (anon_union_2_2_314cc5cc_for_fc)0x1;" (assignment_expression "piVar2[1].dyn_ltree[0x11b].fc = (anon_union_2_2_314cc5cc_for_fc)0x1" (field_expression "piVar2[1].dyn_ltree[0x11b].fc" (subscript_expression "piVar2[1].dyn_ltree[0x11b]" (field_expression "piVar2[1].dyn_ltree" (subscript_expression "piVar2[1]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier) = (cast_expression "(anon_union_2_2_314cc5cc_for_fc)0x1" ( (type_descriptor "anon_union_2_2_314cc5cc_for_fc" type_identifier) ) number_literal)) ;) (expression_statement "piVar2[1].dyn_ltree[0x11b].dl = (anon_union_2_2_43a7fb4f_for_dl)0x0;" (assignment_expression "piVar2[1].dyn_ltree[0x11b].dl = (anon_union_2_2_43a7fb4f_for_dl)0x0" (field_expression "piVar2[1].dyn_ltree[0x11b].dl" (subscript_expression "piVar2[1].dyn_ltree[0x11b]" (field_expression "piVar2[1].dyn_ltree" (subscript_expression "piVar2[1]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier) = (cast_expression "(anon_union_2_2_43a7fb4f_for_dl)0x0" ( (type_descriptor "anon_union_2_2_43a7fb4f_for_dl" type_identifier) ) number_literal)) ;) (expression_statement "piVar2[1].dyn_ltree[0x11c].fc = (anon_union_2_2_314cc5cc_for_fc)0xffff;" (assignment_expression "piVar2[1].dyn_ltree[0x11c].fc = (anon_union_2_2_314cc5cc_for_fc)0xffff" (field_expression "piVar2[1].dyn_ltree[0x11c].fc" (subscript_expression "piVar2[1].dyn_ltree[0x11c]" (field_expression "piVar2[1].dyn_ltree" (subscript_expression "piVar2[1]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier) = (cast_expression "(anon_union_2_2_314cc5cc_for_fc)0xffff" ( (type_descriptor "anon_union_2_2_314cc5cc_for_fc" type_identifier) ) number_literal)) ;) (expression_statement "piVar2[1].dyn_ltree[0x11c].dl = (anon_union_2_2_43a7fb4f_for_dl)0xffff;" (assignment_expression "piVar2[1].dyn_ltree[0x11c].dl = (anon_union_2_2_43a7fb4f_for_dl)0xffff" (field_expression "piVar2[1].dyn_ltree[0x11c].dl" (subscript_expression "piVar2[1].dyn_ltree[0x11c]" (field_expression "piVar2[1].dyn_ltree" (subscript_expression "piVar2[1]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier) = (cast_expression "(anon_union_2_2_43a7fb4f_for_dl)0xffff" ( (type_descriptor "anon_union_2_2_43a7fb4f_for_dl" type_identifier) ) number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return -2;" return number_literal ;) })))
(translation_unit "undefined4 inflateResetKeep(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {\n    return 0xfffffffe;\n  }\n  piVar2 = *(int **)(param_1 + 0x1c);\n  if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }\n  return 0xfffffffe;\n}\n\n" (function_definition "undefined4 inflateResetKeep(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {\n    return 0xfffffffe;\n  }\n  piVar2 = *(int **)(param_1 + 0x1c);\n  if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }\n  return 0xfffffffe;\n}" type_identifier (function_declarator "inflateResetKeep(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {\n    return 0xfffffffe;\n  }\n  piVar2 = *(int **)(param_1 + 0x1c);\n  if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }\n  return 0xfffffffe;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {\n    return 0xfffffffe;\n  }" if (parenthesized_expression "(((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0))" ( (binary_expression "((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)" (parenthesized_expression "((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0))" ( (binary_expression "(param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 0x20) == 0)" ( (binary_expression "*(int *)(param_1 + 0x20) == 0" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) == number_literal) ))) )) || (parenthesized_expression "(*(int *)(param_1 + 0x24) == 0)" ( (binary_expression "*(int *)(param_1 + 0x24) == 0" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    return 0xfffffffe;\n  }" { (return_statement "return 0xfffffffe;" return number_literal ;) })) (expression_statement "piVar2 = *(int **)(param_1 + 0x1c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x1c)" identifier = (pointer_expression "*(int **)(param_1 + 0x1c)" * (cast_expression "(int **)(param_1 + 0x1c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }" if (parenthesized_expression "(((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20))" ( (binary_expression "((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)" (parenthesized_expression "((piVar2 != (int *)0x0) && (param_1 == *piVar2))" ( (binary_expression "(piVar2 != (int *)0x0) && (param_1 == *piVar2)" (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(param_1 == *piVar2)" ( (binary_expression "param_1 == *piVar2" identifier == (pointer_expression "*piVar2" * identifier)) ))) )) && (parenthesized_expression "(piVar2[1] - 0x3f34U < 0x20)" ( (binary_expression "piVar2[1] - 0x3f34U < 0x20" (binary_expression "piVar2[1] - 0x3f34U" (subscript_expression "piVar2[1]" identifier [ number_literal ]) - number_literal) < number_literal) ))) )) (compound_statement "{\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }" { (expression_statement "uVar3 = piVar2[3];" (assignment_expression "uVar3 = piVar2[3]" identifier = (subscript_expression "piVar2[3]" identifier [ number_literal ])) ;) (expression_statement "piVar2[8] = 0;" (assignment_expression "piVar2[8] = 0" (subscript_expression "piVar2[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (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) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }" { (expression_statement "*(uint *)(param_1 + 0x30) = uVar3 & 1;" (assignment_expression "*(uint *)(param_1 + 0x30) = uVar3 & 1" (pointer_expression "*(uint *)(param_1 + 0x30)" * (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = (binary_expression "uVar3 & 1" identifier & number_literal)) ;) })) (expression_statement "piVar1 = piVar2 + 0x14d;" (assignment_expression "piVar1 = piVar2 + 0x14d" identifier = (binary_expression "piVar2 + 0x14d" identifier + number_literal)) ;) (expression_statement "piVar2[1] = 0x3f34;" (assignment_expression "piVar2[1] = 0x3f34" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[2] = 0;" (assignment_expression "piVar2[2] = 0" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[4] = 0;" (assignment_expression "piVar2[4] = 0" (subscript_expression "piVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[6] = 0x8000;" (assignment_expression "piVar2[6] = 0x8000" (subscript_expression "piVar2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[0x1c] = (int)piVar1;" (assignment_expression "piVar2[0x1c] = (int)piVar1" (subscript_expression "piVar2[0x1c]" identifier [ number_literal ]) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar2[0x15] = (int)piVar1;" (assignment_expression "piVar2[0x15] = (int)piVar1" (subscript_expression "piVar2[0x15]" identifier [ number_literal ]) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar2[0x14] = (int)piVar1;" (assignment_expression "piVar2[0x14] = (int)piVar1" (subscript_expression "piVar2[0x14]" identifier [ number_literal ]) = (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar2[9] = 0;" (assignment_expression "piVar2[9] = 0" (subscript_expression "piVar2[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[0xf] = 0;" (assignment_expression "piVar2[0xf] = 0" (subscript_expression "piVar2[0xf]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[0x10] = 0;" (assignment_expression "piVar2[0x10] = 0" (subscript_expression "piVar2[0x10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[0x6f1] = 1;" (assignment_expression "piVar2[0x6f1] = 1" (subscript_expression "piVar2[0x6f1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar2[0x6f2] = -1;" (assignment_expression "piVar2[0x6f2] = -1" (subscript_expression "piVar2[0x6f2]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 0xfffffffe;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * IDENT)) ))) )) && (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - LIT) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT & LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 inflateResetKeep(int param_1)\n\n{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {\n    return 0xfffffffe;\n  }\n  piVar2 = *(int **)(param_1 + 0x1c);\n  if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }\n  return 0xfffffffe;\n}" (type_identifier "undefined4") (function_declarator "inflateResetKeep(int param_1)" (identifier "inflateResetKeep") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int *piVar2;\n  uint uVar3;\n  \n  if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {\n    return 0xfffffffe;\n  }\n  piVar2 = *(int **)(param_1 + 0x1c);\n  if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }\n  return 0xfffffffe;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (if_statement "if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {\n    return 0xfffffffe;\n  }" (if "if") (parenthesized_expression "(((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0))" (( "(") (binary_expression "((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)" (parenthesized_expression "((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0))" (( "(") (binary_expression "(param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)" (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x20) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x20) == 0" (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 0x24) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x24) == 0" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    return 0xfffffffe;\n  }" ({ "{") (return_statement "return 0xfffffffe;" (return "return") (number_literal "0xfffffffe") (; ";")) (} "}"))) (expression_statement "piVar2 = *(int **)(param_1 + 0x1c);" (assignment_expression "piVar2 = *(int **)(param_1 + 0x1c)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(param_1 + 0x1c)" (* "*") (cast_expression "(int **)(param_1 + 0x1c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }" (if "if") (parenthesized_expression "(((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20))" (( "(") (binary_expression "((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)" (parenthesized_expression "((piVar2 != (int *)0x0) && (param_1 == *piVar2))" (( "(") (binary_expression "(piVar2 != (int *)0x0) && (param_1 == *piVar2)" (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(param_1 == *piVar2)" (( "(") (binary_expression "param_1 == *piVar2" (identifier "param_1") (== "==") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(piVar2[1] - 0x3f34U < 0x20)" (( "(") (binary_expression "piVar2[1] - 0x3f34U < 0x20" (binary_expression "piVar2[1] - 0x3f34U" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (- "-") (number_literal "0x3f34U")) (< "<") (number_literal "0x20")) () ")"))) () ")")) (compound_statement "{\n    uVar3 = piVar2[3];\n    piVar2[8] = 0;\n    *(undefined4 *)(param_1 + 0x14) = 0;\n    *(undefined4 *)(param_1 + 8) = 0;\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }\n    piVar1 = piVar2 + 0x14d;\n    piVar2[1] = 0x3f34;\n    piVar2[2] = 0;\n    piVar2[4] = 0;\n    piVar2[6] = 0x8000;\n    piVar2[0x1c] = (int)piVar1;\n    piVar2[0x15] = (int)piVar1;\n    piVar2[0x14] = (int)piVar1;\n    piVar2[9] = 0;\n    piVar2[0xf] = 0;\n    piVar2[0x10] = 0;\n    piVar2[0x6f1] = 1;\n    piVar2[0x6f2] = -1;\n    return 0;\n  }" ({ "{") (expression_statement "uVar3 = piVar2[3];" (assignment_expression "uVar3 = piVar2[3]" (identifier "uVar3") (= "=") (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "piVar2[8] = 0;" (assignment_expression "piVar2[8] = 0" (subscript_expression "piVar2[8]" (identifier "piVar2") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x14) = 0" (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")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (uVar3 != 0) {\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }" (if "if") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(uint *)(param_1 + 0x30) = uVar3 & 1;\n    }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x30) = uVar3 & 1;" (assignment_expression "*(uint *)(param_1 + 0x30) = uVar3 & 1" (pointer_expression "*(uint *)(param_1 + 0x30)" (* "*") (cast_expression "(uint *)(param_1 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (binary_expression "uVar3 & 1" (identifier "uVar3") (& "&") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "piVar1 = piVar2 + 0x14d;" (assignment_expression "piVar1 = piVar2 + 0x14d" (identifier "piVar1") (= "=") (binary_expression "piVar2 + 0x14d" (identifier "piVar2") (+ "+") (number_literal "0x14d"))) (; ";")) (expression_statement "piVar2[1] = 0x3f34;" (assignment_expression "piVar2[1] = 0x3f34" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x3f34")) (; ";")) (expression_statement "piVar2[2] = 0;" (assignment_expression "piVar2[2] = 0" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2[4] = 0;" (assignment_expression "piVar2[4] = 0" (subscript_expression "piVar2[4]" (identifier "piVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2[6] = 0x8000;" (assignment_expression "piVar2[6] = 0x8000" (subscript_expression "piVar2[6]" (identifier "piVar2") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0x8000")) (; ";")) (expression_statement "piVar2[0x1c] = (int)piVar1;" (assignment_expression "piVar2[0x1c] = (int)piVar1" (subscript_expression "piVar2[0x1c]" (identifier "piVar2") ([ "[") (number_literal "0x1c") (] "]")) (= "=") (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1"))) (; ";")) (expression_statement "piVar2[0x15] = (int)piVar1;" (assignment_expression "piVar2[0x15] = (int)piVar1" (subscript_expression "piVar2[0x15]" (identifier "piVar2") ([ "[") (number_literal "0x15") (] "]")) (= "=") (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1"))) (; ";")) (expression_statement "piVar2[0x14] = (int)piVar1;" (assignment_expression "piVar2[0x14] = (int)piVar1" (subscript_expression "piVar2[0x14]" (identifier "piVar2") ([ "[") (number_literal "0x14") (] "]")) (= "=") (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1"))) (; ";")) (expression_statement "piVar2[9] = 0;" (assignment_expression "piVar2[9] = 0" (subscript_expression "piVar2[9]" (identifier "piVar2") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2[0xf] = 0;" (assignment_expression "piVar2[0xf] = 0" (subscript_expression "piVar2[0xf]" (identifier "piVar2") ([ "[") (number_literal "0xf") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2[0x10] = 0;" (assignment_expression "piVar2[0x10] = 0" (subscript_expression "piVar2[0x10]" (identifier "piVar2") ([ "[") (number_literal "0x10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar2[0x6f1] = 1;" (assignment_expression "piVar2[0x6f1] = 1" (subscript_expression "piVar2[0x6f1]" (identifier "piVar2") ([ "[") (number_literal "0x6f1") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar2[0x6f2] = -1;" (assignment_expression "piVar2[0x6f2] = -1" (subscript_expression "piVar2[0x6f2]" (identifier "piVar2") ([ "[") (number_literal "0x6f2") (] "]")) (= "=") (number_literal "-1")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return 0xfffffffe;" (return "return") (number_literal "0xfffffffe") (; ";")) (} "}")))

/* WARNING: Switch with 1 destination removed at 0x00011870 */

int function_1(type_1 var_1)

{
  type_2 *pcVar1;
  type_3 *var_2;
  type_4 var_3;
  
  if (((var_1 == (type_1)0x0) || (var_1->zalloc == (type_5)0x0)) ||
     (var_1->zfree == (type_6)0x0)) {
    return -2;
  }
  var_2 = var_1->state;
  if (((var_2 != (type_3 *)0x0) && (var_1 == var_2->var_1)) &&
     (var_2->status - 0x3f34U < 0x20)) {
    var_3 = var_2->pending_buf_size;
    var_2->gzindex = 0;
    var_1->total_out = 0;
    var_1->total_in = 0;
    var_1->msg = (char *)0x0;
    if (var_3 != 0) {
      var_1->adler = var_3 & 1;
    }
    pcVar1 = var_2->dyn_ltree + 0x128;
    var_2->status = 0x3f34;
    var_2->pending_buf = (type_7 *)0x0;
    var_2->pending_out = (type_7 *)0x0;
    var_2->wrap = 0x8000;
    var_2->match_start = (type_8)pcVar1;
    var_2->hash_mask = (type_8)pcVar1;
    var_2->hash_bits = (type_8)pcVar1;
    *(type_9 *)&var_2->method = 0;
    var_2->window_size = 0;
    var_2->prev = (type_10 *)0x0;
    var_2[1].dyn_ltree[0x11b].fc = (type_11)0x1;
    var_2[1].dyn_ltree[0x11b].dl = (type_12)0x0;
    var_2[1].dyn_ltree[0x11c].fc = (type_11)0xffff;
    var_2[1].dyn_ltree[0x11c].dl = (type_12)0xffff;
    return 0;
  }
  return -2;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (number_literal))))) consequence: (compound_statement (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (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))) (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))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (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))) (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))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (return_statement (number_literal)))) (return_statement (number_literal)))))

/* WARNING: Switch with 1 destination removed at 0x00011870 */

undefined4 MASKED(int param_1)

{
  int *piVar1;
  int *piVar2;
  uint uVar3;
  
  if (((param_1 == 0) || (*(int *)(param_1 + 0x20) == 0)) || (*(int *)(param_1 + 0x24) == 0)) {
    return 0xfffffffe;
  }
  piVar2 = *(int **)(param_1 + 0x1c);
  if (((piVar2 != (int *)0x0) && (param_1 == *piVar2)) && (piVar2[1] - 0x3f34U < 0x20)) {
    uVar3 = piVar2[3];
    piVar2[8] = 0;
    *(undefined4 *)(param_1 + 0x14) = 0;
    *(undefined4 *)(param_1 + 8) = 0;
    *(undefined4 *)(param_1 + 0x18) = 0;
    if (uVar3 != 0) {
      *(uint *)(param_1 + 0x30) = uVar3 & 1;
    }
    piVar1 = piVar2 + 0x14d;
    piVar2[1] = 0x3f34;
    piVar2[2] = 0;
    piVar2[4] = 0;
    piVar2[6] = 0x8000;
    piVar2[0x1c] = (int)piVar1;
    piVar2[0x15] = (int)piVar1;
    piVar2[0x14] = (int)piVar1;
    piVar2[9] = 0;
    piVar2[0xf] = 0;
    piVar2[0x10] = 0;
    piVar2[0x6f1] = 1;
    piVar2[0x6f2] = -1;
    return 0;
  }
  return 0xfffffffe;
}

