
/* WARNING: Unknown calling convention */

int inflateEnd(z_streamp strm)

{
  int iVar1;
  voidpf pvVar2;
  internal_state *piVar3;
  free_func p_Var4;
  
  if ((((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&
      (p_Var4 = strm->zfree, p_Var4 != (free_func)0x0)) &&
     (iVar1 = inflateStateCheck(strm), iVar1 == 0)) {
    piVar3 = strm->state;
    pvVar2 = strm->opaque;
    if (piVar3->window != (Bytef *)0x0) {
      (*p_Var4)(pvVar2,piVar3->window);
      p_Var4 = strm->zfree;
      piVar3 = strm->state;
      pvVar2 = strm->opaque;
    }
    (*p_Var4)(pvVar2,piVar3);
    strm->state = (internal_state *)0x0;
    return 0;
  }
  return -2;
}



undefined4 inflateEnd(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  code *pcVar3;
  
  if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&
      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&
     (iVar1 = FUN_00017420(), iVar1 == 0)) {
    iVar1 = *(int *)(param_1 + 0x1c);
    uVar2 = *(undefined4 *)(param_1 + 0x28);
    if (*(int *)(iVar1 + 0x38) != 0) {
      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));
      pcVar3 = *(code **)(param_1 + 0x24);
      iVar1 = *(int *)(param_1 + 0x1c);
      uVar2 = *(undefined4 *)(param_1 + 0x28);
    }
    (*pcVar3)(uVar2,iVar1);
    *(undefined4 *)(param_1 + 0x1c) = 0;
    return 0;
  }
  return 0xfffffffe;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,dword ptr [ESP + 0x10]
TEST EBX,EBX
JZ 0x00019ac0
MOV EAX,dword ptr [EBX + 0x20]
TEST EAX,EAX
JZ 0x00019ac0
MOV ESI,dword ptr [EBX + 0x24]
TEST ESI,ESI
JZ 0x00019ac0
MOV EAX,EBX
CALL 0x00017420
TEST EAX,EAX
MOV EDI,EAX
JNZ 0x00019ac0
MOV EDX,dword ptr [EBX + 0x1c]
MOV ECX,dword ptr [EBX + 0x28]
MOV EAX,dword ptr [EDX + 0x38]
TEST EAX,EAX
JZ 0x00019aa6
SUB ESP,0x8
PUSH EAX
PUSH ECX
CALL ESI
MOV ESI,dword ptr [EBX + 0x24]
MOV EDX,dword ptr [EBX + 0x1c]
ADD ESP,0x10
MOV ECX,dword ptr [EBX + 0x28]
SUB ESP,0x8
PUSH EDX
PUSH ECX
CALL ESI
MOV dword ptr [EBX + 0x1c],0x0
ADD ESP,0x10
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET
MOV EDI,0xfffffffe
JMP 0x00019ab7
(translation_unit "undefined4 inflateEnd(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  code *pcVar3;\n  \n  if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)) {\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }\n  return 0xfffffffe;\n}\n\n" (function_definition "undefined4 inflateEnd(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  code *pcVar3;\n  \n  if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)) {\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }\n  return 0xfffffffe;\n}" type_identifier (function_declarator "inflateEnd(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  code *pcVar3;\n  \n  if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)) {\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }\n  return 0xfffffffe;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)) {\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }" if (parenthesized_expression "((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0))" ( (binary_expression "(((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)" (parenthesized_expression "(((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0))" ( (binary_expression "((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)" (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 "(pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)" ( (comma_expression "pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0" (assignment_expression "pcVar3 = *(code **)(param_1 + 0x24)" identifier = (pointer_expression "*(code **)(param_1 + 0x24)" * (cast_expression "(code **)(param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) , (binary_expression "pcVar3 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(iVar1 = FUN_00017420(), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_00017420(), iVar1 == 0" (assignment_expression "iVar1 = FUN_00017420()" identifier = (call_expression "FUN_00017420()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar1 = *(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 "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x28)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x38) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x38) != 0" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }" { (expression_statement "(*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));" (call_expression "(*pcVar3)(uVar2,*(int *)(iVar1 + 0x38))" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(uVar2,*(int *)(iVar1 + 0x38))" ( identifier , (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) ))) ;) (expression_statement "pcVar3 = *(code **)(param_1 + 0x24);" (assignment_expression "pcVar3 = *(code **)(param_1 + 0x24)" identifier = (pointer_expression "*(code **)(param_1 + 0x24)" * (cast_expression "(code **)(param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar1 = *(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 "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x28)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) })) (expression_statement "(*pcVar3)(uVar2,iVar1);" (call_expression "(*pcVar3)(uVar2,iVar1)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(uVar2,iVar1)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return 0xfffffffe;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint inflateEnd(z_streamp strm)\n\n{\n  int iVar1;\n  voidpf pvVar2;\n  internal_state *piVar3;\n  free_func p_Var4;\n  \n  if ((((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n      (p_Var4 = strm->zfree, p_Var4 != (free_func)0x0)) &&\n     (iVar1 = inflateStateCheck(strm), iVar1 == 0)) {\n    piVar3 = strm->state;\n    pvVar2 = strm->opaque;\n    if (piVar3->window != (Bytef *)0x0) {\n      (*p_Var4)(pvVar2,piVar3->window);\n      p_Var4 = strm->zfree;\n      piVar3 = strm->state;\n      pvVar2 = strm->opaque;\n    }\n    (*p_Var4)(pvVar2,piVar3);\n    strm->state = (internal_state *)0x0;\n    return 0;\n  }\n  return -2;\n}\n\n" comment (function_definition "int inflateEnd(z_streamp strm)\n\n{\n  int iVar1;\n  voidpf pvVar2;\n  internal_state *piVar3;\n  free_func p_Var4;\n  \n  if ((((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n      (p_Var4 = strm->zfree, p_Var4 != (free_func)0x0)) &&\n     (iVar1 = inflateStateCheck(strm), iVar1 == 0)) {\n    piVar3 = strm->state;\n    pvVar2 = strm->opaque;\n    if (piVar3->window != (Bytef *)0x0) {\n      (*p_Var4)(pvVar2,piVar3->window);\n      p_Var4 = strm->zfree;\n      piVar3 = strm->state;\n      pvVar2 = strm->opaque;\n    }\n    (*p_Var4)(pvVar2,piVar3);\n    strm->state = (internal_state *)0x0;\n    return 0;\n  }\n  return -2;\n}" primitive_type (function_declarator "inflateEnd(z_streamp strm)" identifier (parameter_list "(z_streamp strm)" ( (parameter_declaration "z_streamp strm" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  voidpf pvVar2;\n  internal_state *piVar3;\n  free_func p_Var4;\n  \n  if ((((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n      (p_Var4 = strm->zfree, p_Var4 != (free_func)0x0)) &&\n     (iVar1 = inflateStateCheck(strm), iVar1 == 0)) {\n    piVar3 = strm->state;\n    pvVar2 = strm->opaque;\n    if (piVar3->window != (Bytef *)0x0) {\n      (*p_Var4)(pvVar2,piVar3->window);\n      p_Var4 = strm->zfree;\n      piVar3 = strm->state;\n      pvVar2 = strm->opaque;\n    }\n    (*p_Var4)(pvVar2,piVar3);\n    strm->state = (internal_state *)0x0;\n    return 0;\n  }\n  return -2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "voidpf pvVar2;" type_identifier identifier ;) (declaration "internal_state *piVar3;" type_identifier (pointer_declarator "*piVar3" * identifier) ;) (declaration "free_func p_Var4;" type_identifier identifier ;) (if_statement "if ((((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n      (p_Var4 = strm->zfree, p_Var4 != (free_func)0x0)) &&\n     (iVar1 = inflateStateCheck(strm), iVar1 == 0)) {\n    piVar3 = strm->state;\n    pvVar2 = strm->opaque;\n    if (piVar3->window != (Bytef *)0x0) {\n      (*p_Var4)(pvVar2,piVar3->window);\n      p_Var4 = strm->zfree;\n      piVar3 = strm->state;\n      pvVar2 = strm->opaque;\n    }\n    (*p_Var4)(pvVar2,piVar3);\n    strm->state = (internal_state *)0x0;\n    return 0;\n  }" if (parenthesized_expression "((((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n      (p_Var4 = strm->zfree, p_Var4 != (free_func)0x0)) &&\n     (iVar1 = inflateStateCheck(strm), iVar1 == 0))" ( (binary_expression "(((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n      (p_Var4 = strm->zfree, p_Var4 != (free_func)0x0)) &&\n     (iVar1 = inflateStateCheck(strm), iVar1 == 0)" (parenthesized_expression "(((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n      (p_Var4 = strm->zfree, p_Var4 != (free_func)0x0))" ( (binary_expression "((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n      (p_Var4 = strm->zfree, p_Var4 != (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 "(p_Var4 = strm->zfree, p_Var4 != (free_func)0x0)" ( (comma_expression "p_Var4 = strm->zfree, p_Var4 != (free_func)0x0" (assignment_expression "p_Var4 = strm->zfree" identifier = (field_expression "strm->zfree" identifier -> field_identifier)) , (binary_expression "p_Var4 != (free_func)0x0" identifier != (cast_expression "(free_func)0x0" ( (type_descriptor "free_func" type_identifier) ) number_literal))) ))) )) && (parenthesized_expression "(iVar1 = inflateStateCheck(strm), iVar1 == 0)" ( (comma_expression "iVar1 = inflateStateCheck(strm), iVar1 == 0" (assignment_expression "iVar1 = inflateStateCheck(strm)" identifier = (call_expression "inflateStateCheck(strm)" identifier (argument_list "(strm)" ( identifier )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    piVar3 = strm->state;\n    pvVar2 = strm->opaque;\n    if (piVar3->window != (Bytef *)0x0) {\n      (*p_Var4)(pvVar2,piVar3->window);\n      p_Var4 = strm->zfree;\n      piVar3 = strm->state;\n      pvVar2 = strm->opaque;\n    }\n    (*p_Var4)(pvVar2,piVar3);\n    strm->state = (internal_state *)0x0;\n    return 0;\n  }" { (expression_statement "piVar3 = strm->state;" (assignment_expression "piVar3 = strm->state" identifier = (field_expression "strm->state" identifier -> field_identifier)) ;) (expression_statement "pvVar2 = strm->opaque;" (assignment_expression "pvVar2 = strm->opaque" identifier = (field_expression "strm->opaque" identifier -> field_identifier)) ;) (if_statement "if (piVar3->window != (Bytef *)0x0) {\n      (*p_Var4)(pvVar2,piVar3->window);\n      p_Var4 = strm->zfree;\n      piVar3 = strm->state;\n      pvVar2 = strm->opaque;\n    }" if (parenthesized_expression "(piVar3->window != (Bytef *)0x0)" ( (binary_expression "piVar3->window != (Bytef *)0x0" (field_expression "piVar3->window" identifier -> field_identifier) != (cast_expression "(Bytef *)0x0" ( (type_descriptor "Bytef *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*p_Var4)(pvVar2,piVar3->window);\n      p_Var4 = strm->zfree;\n      piVar3 = strm->state;\n      pvVar2 = strm->opaque;\n    }" { (expression_statement "(*p_Var4)(pvVar2,piVar3->window);" (call_expression "(*p_Var4)(pvVar2,piVar3->window)" (parenthesized_expression "(*p_Var4)" ( (pointer_expression "*p_Var4" * identifier) )) (argument_list "(pvVar2,piVar3->window)" ( identifier , (field_expression "piVar3->window" identifier -> field_identifier) ))) ;) (expression_statement "p_Var4 = strm->zfree;" (assignment_expression "p_Var4 = strm->zfree" identifier = (field_expression "strm->zfree" identifier -> field_identifier)) ;) (expression_statement "piVar3 = strm->state;" (assignment_expression "piVar3 = strm->state" identifier = (field_expression "strm->state" identifier -> field_identifier)) ;) (expression_statement "pvVar2 = strm->opaque;" (assignment_expression "pvVar2 = strm->opaque" identifier = (field_expression "strm->opaque" identifier -> field_identifier)) ;) })) (expression_statement "(*p_Var4)(pvVar2,piVar3);" (call_expression "(*p_Var4)(pvVar2,piVar3)" (parenthesized_expression "(*p_Var4)" ( (pointer_expression "*p_Var4" * identifier) )) (argument_list "(pvVar2,piVar3)" ( identifier , identifier ))) ;) (expression_statement "strm->state = (internal_state *)0x0;" (assignment_expression "strm->state = (internal_state *)0x0" (field_expression "strm->state" identifier -> field_identifier) = (cast_expression "(internal_state *)0x0" ( (type_descriptor "internal_state *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (return_statement "return -2;" return number_literal ;) })))
(translation_unit "undefined4 inflateEnd(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  code *pcVar3;\n  \n  if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)) {\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }\n  return 0xfffffffe;\n}\n\n" (function_definition "undefined4 inflateEnd(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  code *pcVar3;\n  \n  if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)) {\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }\n  return 0xfffffffe;\n}" type_identifier (function_declarator "inflateEnd(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  code *pcVar3;\n  \n  if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)) {\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }\n  return 0xfffffffe;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)) {\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }" if (parenthesized_expression "((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0))" ( (binary_expression "(((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)" (parenthesized_expression "(((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0))" ( (binary_expression "((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)" (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 "(pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)" ( (comma_expression "pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0" (assignment_expression "pcVar3 = *(code **)(param_1 + 0x24)" identifier = (pointer_expression "*(code **)(param_1 + 0x24)" * (cast_expression "(code **)(param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) , (binary_expression "pcVar3 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(iVar1 = FUN_00017420(), iVar1 == 0)" ( (comma_expression "iVar1 = FUN_00017420(), iVar1 == 0" (assignment_expression "iVar1 = FUN_00017420()" identifier = (call_expression "FUN_00017420()" identifier (argument_list "()" ( )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar1 = *(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 "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x28)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }" if (parenthesized_expression "(*(int *)(iVar1 + 0x38) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x38) != 0" (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }" { (expression_statement "(*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));" (call_expression "(*pcVar3)(uVar2,*(int *)(iVar1 + 0x38))" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(uVar2,*(int *)(iVar1 + 0x38))" ( identifier , (pointer_expression "*(int *)(iVar1 + 0x38)" * (cast_expression "(int *)(iVar1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x38)" ( (binary_expression "iVar1 + 0x38" identifier + number_literal) )))) ))) ;) (expression_statement "pcVar3 = *(code **)(param_1 + 0x24);" (assignment_expression "pcVar3 = *(code **)(param_1 + 0x24)" identifier = (pointer_expression "*(code **)(param_1 + 0x24)" * (cast_expression "(code **)(param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar1 = *(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 "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x28)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) })) (expression_statement "(*pcVar3)(uVar2,iVar1);" (call_expression "(*pcVar3)(uVar2,iVar1)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(uVar2,iVar1)" ( identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (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 ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + 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) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 inflateEnd(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  code *pcVar3;\n  \n  if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)) {\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }\n  return 0xfffffffe;\n}" (type_identifier "undefined4") (function_declarator "inflateEnd(int param_1)" (identifier "inflateEnd") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  code *pcVar3;\n  \n  if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)) {\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }\n  return 0xfffffffe;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (if_statement "if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)) {\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }" (if "if") (parenthesized_expression "((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0))" (( "(") (binary_expression "(((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&\n     (iVar1 = FUN_00017420(), iVar1 == 0)" (parenthesized_expression "(((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0))" (( "(") (binary_expression "((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&\n      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)" (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 "(pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)" (( "(") (comma_expression "pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0" (assignment_expression "pcVar3 = *(code **)(param_1 + 0x24)" (identifier "pcVar3") (= "=") (pointer_expression "*(code **)(param_1 + 0x24)" (* "*") (cast_expression "(code **)(param_1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (, ",") (binary_expression "pcVar3 != (code *)0x0" (identifier "pcVar3") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = FUN_00017420(), iVar1 == 0)" (( "(") (comma_expression "iVar1 = FUN_00017420(), iVar1 == 0" (assignment_expression "iVar1 = FUN_00017420()" (identifier "iVar1") (= "=") (call_expression "FUN_00017420()" (identifier "FUN_00017420") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_1 + 0x1c);\n    uVar2 = *(undefined4 *)(param_1 + 0x28);\n    if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }\n    (*pcVar3)(uVar2,iVar1);\n    *(undefined4 *)(param_1 + 0x1c) = 0;\n    return 0;\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x28)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x38) != 0) {\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x38) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x38) != 0" (pointer_expression "*(int *)(iVar1 + 0x38)" (* "*") (cast_expression "(int *)(iVar1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x38)" (( "(") (binary_expression "iVar1 + 0x38" (identifier "iVar1") (+ "+") (number_literal "0x38")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));\n      pcVar3 = *(code **)(param_1 + 0x24);\n      iVar1 = *(int *)(param_1 + 0x1c);\n      uVar2 = *(undefined4 *)(param_1 + 0x28);\n    }" ({ "{") (expression_statement "(*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));" (call_expression "(*pcVar3)(uVar2,*(int *)(iVar1 + 0x38))" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(uVar2,*(int *)(iVar1 + 0x38))" (( "(") (identifier "uVar2") (, ",") (pointer_expression "*(int *)(iVar1 + 0x38)" (* "*") (cast_expression "(int *)(iVar1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x38)" (( "(") (binary_expression "iVar1 + 0x38" (identifier "iVar1") (+ "+") (number_literal "0x38")) () ")")))) () ")"))) (; ";")) (expression_statement "pcVar3 = *(code **)(param_1 + 0x24);" (assignment_expression "pcVar3 = *(code **)(param_1 + 0x24)" (identifier "pcVar3") (= "=") (pointer_expression "*(code **)(param_1 + 0x24)" (* "*") (cast_expression "(code **)(param_1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x28)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (} "}"))) (expression_statement "(*pcVar3)(uVar2,iVar1);" (call_expression "(*pcVar3)(uVar2,iVar1)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(uVar2,iVar1)" (( "(") (identifier "uVar2") (, ",") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (return_statement "return 0xfffffffe;" (return "return") (number_literal "0xfffffffe") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 var_1)

{
  int var_4;
  type_2 pvVar2;
  type_3 *piVar3;
  type_4 var_2;
  
  if ((((var_1 != (type_1)0x0) && (var_1->zalloc != (type_5)0x0)) &&
      (var_2 = var_1->zfree, var_2 != (type_4)0x0)) &&
     (var_4 = var_3(var_1), var_4 == 0)) {
    piVar3 = var_1->state;
    pvVar2 = var_1->opaque;
    if (piVar3->window != (type_6 *)0x0) {
      (*var_2)(pvVar2,piVar3->window);
      var_2 = var_1->zfree;
      piVar3 = var_1->state;
      pvVar2 = var_1->opaque;
    }
    (*var_2)(pvVar2,piVar3);
    var_1->state = (type_3 *)0x0;
    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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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 (comma_expression left: (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)))))) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (number_literal)))) (return_statement (number_literal)))))

undefined4 MASKED(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  code *pcVar3;
  
  if ((((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) &&
      (pcVar3 = *(code **)(param_1 + 0x24), pcVar3 != (code *)0x0)) &&
     (iVar1 = FUN_00017420(), iVar1 == 0)) {
    iVar1 = *(int *)(param_1 + 0x1c);
    uVar2 = *(undefined4 *)(param_1 + 0x28);
    if (*(int *)(iVar1 + 0x38) != 0) {
      (*pcVar3)(uVar2,*(int *)(iVar1 + 0x38));
      pcVar3 = *(code **)(param_1 + 0x24);
      iVar1 = *(int *)(param_1 + 0x1c);
      uVar2 = *(undefined4 *)(param_1 + 0x28);
    }
    (*pcVar3)(uVar2,iVar1);
    *(undefined4 *)(param_1 + 0x1c) = 0;
    return 0;
  }
  return 0xfffffffe;
}

