
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int inflateBackInit_(z_streamp strm,int windowBits,uchar *window,char *version,int stream_size)

{
  code *pcVar1;
  free_func p_Var2;
  internal_state *piVar3;
  int iVar4;
  voidpf pvVar5;
  
  if (((version == (char *)0x0) || (*version != '1')) || (stream_size != 0x38)) {
    iVar4 = -6;
  }
  else if (((strm == (z_streamp)0x0) || (window == (uchar *)0x0)) || (7 < windowBits - 8U)) {
    iVar4 = -2;
  }
  else {
    pcVar1 = strm->zalloc;
    strm->msg = (char *)0x0;
    if (pcVar1 == (alloc_func)0x0) {
      pvVar5 = (voidpf)0x0;
      p_Var2 = strm->zfree;
      pcVar1 = zcalloc;
      strm->opaque = (voidpf)0x0;
      strm->zalloc = zcalloc;
    }
    else {
      p_Var2 = strm->zfree;
      pvVar5 = strm->opaque;
    }
    if (p_Var2 == (free_func)0x0) {
      strm->zfree = zcfree;
    }
    piVar3 = (internal_state *)(*pcVar1)(pvVar5,1,0x1bd0);
    if (piVar3 == (internal_state *)0x0) {
      iVar4 = -4;
    }
    else {
      strm->state = piVar3;
      piVar3->wrap = 0x8000;
      piVar3->last_flush = windowBits;
      piVar3->w_size = 1 << ((byte)windowBits & 0x1f);
      piVar3->window = window;
      piVar3->w_mask = 0;
      piVar3->w_bits = 0;
      iVar4 = 0;
    }
  }
  return iVar4;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

undefined4 inflateBackInit_(int param_1,int param_2,int param_3,char *param_4,int param_5)

{
  code *pcVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {
    uVar3 = 0xfffffffa;
  }
  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {
    uVar3 = 0xfffffffe;
  }
  else {
    pcVar1 = *(code **)(param_1 + 0x20);
    *(undefined4 *)(param_1 + 0x18) = 0;
    if (pcVar1 == (code *)0x0) {
      uVar3 = 0;
      iVar2 = *(int *)(param_1 + 0x24);
      pcVar1 = FUN_0001c4f0;
      *(undefined4 *)(param_1 + 0x28) = 0;
      *(code **)(param_1 + 0x20) = FUN_0001c4f0;
    }
    else {
      iVar2 = *(int *)(param_1 + 0x24);
      uVar3 = *(undefined4 *)(param_1 + 0x28);
    }
    if (iVar2 == 0) {
      *(code **)(param_1 + 0x24) = FUN_0001c520;
    }
    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);
    if (iVar2 == 0) {
      uVar3 = 0xfffffffc;
    }
    else {
      *(int *)(param_1 + 0x1c) = iVar2;
      *(undefined4 *)(iVar2 + 0x18) = 0x8000;
      *(int *)(iVar2 + 0x28) = param_2;
      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);
      *(int *)(iVar2 + 0x38) = param_3;
      *(undefined4 *)(iVar2 + 0x34) = 0;
      *(undefined4 *)(iVar2 + 0x30) = 0;
      uVar3 = 0;
    }
  }
  return uVar3;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EAX,dword ptr [ESP + 0x1c]
CALL 0x00011b99
ADD EDX,0x125a4
MOV EBX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
TEST EAX,EAX
MOV EDI,dword ptr [ESP + 0x18]
JZ 0x00015b30
CMP byte ptr [EAX],0x31
JNZ 0x00015b30
CMP dword ptr [ESP + 0x20],0x38
JNZ 0x00015b30
TEST EBX,EBX
JZ 0x00015b40
TEST EDI,EDI
JZ 0x00015b40
LEA EAX,[ESI + -0x8]
CMP EAX,0x7
JA 0x00015b40
MOV EAX,dword ptr [EBX + 0x20]
MOV dword ptr [EBX + 0x18],0x0
TEST EAX,EAX
JZ 0x00015b08
CMP dword ptr [EBX + 0x24],0x0
MOV ECX,dword ptr [EBX + 0x28]
JZ 0x00015b20
SUB ESP,0x4
PUSH 0x1bd0
PUSH 0x1
PUSH ECX
CALL EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00015b47
MOV EDX,0x1
MOV ECX,ESI
MOV dword ptr [EBX + 0x1c],EAX
SHL EDX,CL
MOV dword ptr [EAX + 0x18],0x8000
MOV dword ptr [EAX + 0x28],ESI
MOV dword ptr [EAX + 0x2c],EDX
MOV dword ptr [EAX + 0x38],EDI
MOV dword ptr [EAX + 0x34],0x0
MOV dword ptr [EAX + 0x30],0x0
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
RET
XOR ECX,ECX
CMP dword ptr [EBX + 0x24],0x0
LEA EAX,[EDX + 0xffff44f0]
MOV dword ptr [EBX + 0x28],0x0
MOV dword ptr [EBX + 0x20],EAX
JNZ 0x00015abd
LEA EDX,[EDX + 0xffff4520]
MOV dword ptr [EBX + 0x24],EDX
JMP 0x00015abd
MOV EAX,0xfffffffa
JMP 0x00015afd
MOV EAX,0xfffffffe
JMP 0x00015afd
MOV EAX,0xfffffffc
JMP 0x00015afd
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nundefined4 inflateBackInit_(int param_1,int param_2,int param_3,char *param_4,int param_5)\n\n{\n  code *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {\n    uVar3 = 0xfffffffa;\n  }\n  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}\n\n" comment (function_definition "undefined4 inflateBackInit_(int param_1,int param_2,int param_3,char *param_4,int param_5)\n\n{\n  code *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {\n    uVar3 = 0xfffffffa;\n  }\n  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" type_identifier (function_declarator "inflateBackInit_(int param_1,int param_2,int param_3,char *param_4,int param_5)" identifier (parameter_list "(int param_1,int param_2,int param_3,char *param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {\n    uVar3 = 0xfffffffa;\n  }\n  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {\n    uVar3 = 0xfffffffa;\n  }\n  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" if (parenthesized_expression "(((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38))" ( (binary_expression "((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)" (parenthesized_expression "((param_4 == (char *)0x0) || (*param_4 != '1'))" ( (binary_expression "(param_4 == (char *)0x0) || (*param_4 != '1')" (parenthesized_expression "(param_4 == (char *)0x0)" ( (binary_expression "param_4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_4 != '1')" ( (binary_expression "*param_4 != '1'" (pointer_expression "*param_4" * identifier) != (char_literal "'1'" ' character ')) ))) )) || (parenthesized_expression "(param_5 != 0x38)" ( (binary_expression "param_5 != 0x38" identifier != number_literal) ))) )) (compound_statement "{\n    uVar3 = 0xfffffffa;\n  }" { (expression_statement "uVar3 = 0xfffffffa;" (assignment_expression "uVar3 = 0xfffffffa" identifier = number_literal) ;) }) (else_clause "else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" else (if_statement "if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" if (parenthesized_expression "(((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U))" ( (binary_expression "((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)" (parenthesized_expression "((param_1 == 0) || (param_3 == 0))" ( (binary_expression "(param_1 == 0) || (param_3 == 0)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) ))) )) || (parenthesized_expression "(7 < param_2 - 8U)" ( (binary_expression "7 < param_2 - 8U" number_literal < (binary_expression "param_2 - 8U" identifier - number_literal)) ))) )) (compound_statement "{\n    uVar3 = 0xfffffffe;\n  }" { (expression_statement "uVar3 = 0xfffffffe;" (assignment_expression "uVar3 = 0xfffffffe" identifier = number_literal) ;) }) (else_clause "else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" else (compound_statement "{\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" { (expression_statement "pcVar1 = *(code **)(param_1 + 0x20);" (assignment_expression "pcVar1 = *(code **)(param_1 + 0x20)" identifier = (pointer_expression "*(code **)(param_1 + 0x20)" * (cast_expression "(code **)(param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + 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 (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }" if (parenthesized_expression "(pcVar1 == (code *)0x0)" ( (binary_expression "pcVar1 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" identifier = (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) ))))) ;) (expression_statement "pcVar1 = FUN_0001c4f0;" (assignment_expression "pcVar1 = FUN_0001c4f0" identifier = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x28) = 0" (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) )))) = number_literal) ;) (expression_statement "*(code **)(param_1 + 0x20) = FUN_0001c4f0;" (assignment_expression "*(code **)(param_1 + 0x20) = FUN_0001c4f0" (pointer_expression "*(code **)(param_1 + 0x20)" * (cast_expression "(code **)(param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }" else (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" identifier = (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) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar3 = *(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 (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }" { (expression_statement "*(code **)(param_1 + 0x24) = FUN_0001c520;" (assignment_expression "*(code **)(param_1 + 0x24) = FUN_0001c520" (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) )))) = identifier) ;) })) (expression_statement "iVar2 = (*pcVar1)(uVar3,1,0x1bd0);" (assignment_expression "iVar2 = (*pcVar1)(uVar3,1,0x1bd0)" identifier = (call_expression "(*pcVar1)(uVar3,1,0x1bd0)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(uVar3,1,0x1bd0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 0xfffffffc;\n    }" { (expression_statement "uVar3 = 0xfffffffc;" (assignment_expression "uVar3 = 0xfffffffc" identifier = number_literal) ;) }) (else_clause "else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }" else (compound_statement "{\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }" { (expression_statement "*(int *)(param_1 + 0x1c) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x1c) = iVar2" (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) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x18) = 0x8000;" (assignment_expression "*(undefined4 *)(iVar2 + 0x18) = 0x8000" (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" * (cast_expression "(undefined4 *)(iVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar2 + 0x28) = param_2;" (assignment_expression "*(int *)(iVar2 + 0x28) = param_2" (pointer_expression "*(int *)(iVar2 + 0x28)" * (cast_expression "(int *)(iVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x28)" ( (binary_expression "iVar2 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);" (assignment_expression "*(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f)" (pointer_expression "*(int *)(iVar2 + 0x2c)" * (cast_expression "(int *)(iVar2 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2c)" ( (binary_expression "iVar2 + 0x2c" identifier + number_literal) )))) = (binary_expression "1 << ((byte)param_2 & 0x1f)" number_literal << (parenthesized_expression "((byte)param_2 & 0x1f)" ( (binary_expression "(byte)param_2 & 0x1f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "*(int *)(iVar2 + 0x38) = param_3;" (assignment_expression "*(int *)(iVar2 + 0x38) = param_3" (pointer_expression "*(int *)(iVar2 + 0x38)" * (cast_expression "(int *)(iVar2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x34) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x34)" * (cast_expression "(undefined4 *)(iVar2 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x30) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x30)" * (cast_expression "(undefined4 *)(iVar2 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) }))))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nint inflateBackInit_(z_streamp strm,int windowBits,uchar *window,char *version,int stream_size)\n\n{\n  code *pcVar1;\n  free_func p_Var2;\n  internal_state *piVar3;\n  int iVar4;\n  voidpf pvVar5;\n  \n  if (((version == (char *)0x0) || (*version != '1')) || (stream_size != 0x38)) {\n    iVar4 = -6;\n  }\n  else if (((strm == (z_streamp)0x0) || (window == (uchar *)0x0)) || (7 < windowBits - 8U)) {\n    iVar4 = -2;\n  }\n  else {\n    pcVar1 = strm->zalloc;\n    strm->msg = (char *)0x0;\n    if (pcVar1 == (alloc_func)0x0) {\n      pvVar5 = (voidpf)0x0;\n      p_Var2 = strm->zfree;\n      pcVar1 = zcalloc;\n      strm->opaque = (voidpf)0x0;\n      strm->zalloc = zcalloc;\n    }\n    else {\n      p_Var2 = strm->zfree;\n      pvVar5 = strm->opaque;\n    }\n    if (p_Var2 == (free_func)0x0) {\n      strm->zfree = zcfree;\n    }\n    piVar3 = (internal_state *)(*pcVar1)(pvVar5,1,0x1bd0);\n    if (piVar3 == (internal_state *)0x0) {\n      iVar4 = -4;\n    }\n    else {\n      strm->state = piVar3;\n      piVar3->wrap = 0x8000;\n      piVar3->last_flush = windowBits;\n      piVar3->w_size = 1 << ((byte)windowBits & 0x1f);\n      piVar3->window = window;\n      piVar3->w_mask = 0;\n      piVar3->w_bits = 0;\n      iVar4 = 0;\n    }\n  }\n  return iVar4;\n}\n\n" comment (function_definition "int inflateBackInit_(z_streamp strm,int windowBits,uchar *window,char *version,int stream_size)\n\n{\n  code *pcVar1;\n  free_func p_Var2;\n  internal_state *piVar3;\n  int iVar4;\n  voidpf pvVar5;\n  \n  if (((version == (char *)0x0) || (*version != '1')) || (stream_size != 0x38)) {\n    iVar4 = -6;\n  }\n  else if (((strm == (z_streamp)0x0) || (window == (uchar *)0x0)) || (7 < windowBits - 8U)) {\n    iVar4 = -2;\n  }\n  else {\n    pcVar1 = strm->zalloc;\n    strm->msg = (char *)0x0;\n    if (pcVar1 == (alloc_func)0x0) {\n      pvVar5 = (voidpf)0x0;\n      p_Var2 = strm->zfree;\n      pcVar1 = zcalloc;\n      strm->opaque = (voidpf)0x0;\n      strm->zalloc = zcalloc;\n    }\n    else {\n      p_Var2 = strm->zfree;\n      pvVar5 = strm->opaque;\n    }\n    if (p_Var2 == (free_func)0x0) {\n      strm->zfree = zcfree;\n    }\n    piVar3 = (internal_state *)(*pcVar1)(pvVar5,1,0x1bd0);\n    if (piVar3 == (internal_state *)0x0) {\n      iVar4 = -4;\n    }\n    else {\n      strm->state = piVar3;\n      piVar3->wrap = 0x8000;\n      piVar3->last_flush = windowBits;\n      piVar3->w_size = 1 << ((byte)windowBits & 0x1f);\n      piVar3->window = window;\n      piVar3->w_mask = 0;\n      piVar3->w_bits = 0;\n      iVar4 = 0;\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "inflateBackInit_(z_streamp strm,int windowBits,uchar *window,char *version,int stream_size)" identifier (parameter_list "(z_streamp strm,int windowBits,uchar *window,char *version,int stream_size)" ( (parameter_declaration "z_streamp strm" type_identifier identifier) , (parameter_declaration "int windowBits" primitive_type identifier) , (parameter_declaration "uchar *window" type_identifier (pointer_declarator "*window" * identifier)) , (parameter_declaration "char *version" primitive_type (pointer_declarator "*version" * identifier)) , (parameter_declaration "int stream_size" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  free_func p_Var2;\n  internal_state *piVar3;\n  int iVar4;\n  voidpf pvVar5;\n  \n  if (((version == (char *)0x0) || (*version != '1')) || (stream_size != 0x38)) {\n    iVar4 = -6;\n  }\n  else if (((strm == (z_streamp)0x0) || (window == (uchar *)0x0)) || (7 < windowBits - 8U)) {\n    iVar4 = -2;\n  }\n  else {\n    pcVar1 = strm->zalloc;\n    strm->msg = (char *)0x0;\n    if (pcVar1 == (alloc_func)0x0) {\n      pvVar5 = (voidpf)0x0;\n      p_Var2 = strm->zfree;\n      pcVar1 = zcalloc;\n      strm->opaque = (voidpf)0x0;\n      strm->zalloc = zcalloc;\n    }\n    else {\n      p_Var2 = strm->zfree;\n      pvVar5 = strm->opaque;\n    }\n    if (p_Var2 == (free_func)0x0) {\n      strm->zfree = zcfree;\n    }\n    piVar3 = (internal_state *)(*pcVar1)(pvVar5,1,0x1bd0);\n    if (piVar3 == (internal_state *)0x0) {\n      iVar4 = -4;\n    }\n    else {\n      strm->state = piVar3;\n      piVar3->wrap = 0x8000;\n      piVar3->last_flush = windowBits;\n      piVar3->w_size = 1 << ((byte)windowBits & 0x1f);\n      piVar3->window = window;\n      piVar3->w_mask = 0;\n      piVar3->w_bits = 0;\n      iVar4 = 0;\n    }\n  }\n  return iVar4;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "free_func p_Var2;" type_identifier identifier ;) (declaration "internal_state *piVar3;" type_identifier (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "voidpf pvVar5;" type_identifier identifier ;) (if_statement "if (((version == (char *)0x0) || (*version != '1')) || (stream_size != 0x38)) {\n    iVar4 = -6;\n  }\n  else if (((strm == (z_streamp)0x0) || (window == (uchar *)0x0)) || (7 < windowBits - 8U)) {\n    iVar4 = -2;\n  }\n  else {\n    pcVar1 = strm->zalloc;\n    strm->msg = (char *)0x0;\n    if (pcVar1 == (alloc_func)0x0) {\n      pvVar5 = (voidpf)0x0;\n      p_Var2 = strm->zfree;\n      pcVar1 = zcalloc;\n      strm->opaque = (voidpf)0x0;\n      strm->zalloc = zcalloc;\n    }\n    else {\n      p_Var2 = strm->zfree;\n      pvVar5 = strm->opaque;\n    }\n    if (p_Var2 == (free_func)0x0) {\n      strm->zfree = zcfree;\n    }\n    piVar3 = (internal_state *)(*pcVar1)(pvVar5,1,0x1bd0);\n    if (piVar3 == (internal_state *)0x0) {\n      iVar4 = -4;\n    }\n    else {\n      strm->state = piVar3;\n      piVar3->wrap = 0x8000;\n      piVar3->last_flush = windowBits;\n      piVar3->w_size = 1 << ((byte)windowBits & 0x1f);\n      piVar3->window = window;\n      piVar3->w_mask = 0;\n      piVar3->w_bits = 0;\n      iVar4 = 0;\n    }\n  }" if (parenthesized_expression "(((version == (char *)0x0) || (*version != '1')) || (stream_size != 0x38))" ( (binary_expression "((version == (char *)0x0) || (*version != '1')) || (stream_size != 0x38)" (parenthesized_expression "((version == (char *)0x0) || (*version != '1'))" ( (binary_expression "(version == (char *)0x0) || (*version != '1')" (parenthesized_expression "(version == (char *)0x0)" ( (binary_expression "version == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*version != '1')" ( (binary_expression "*version != '1'" (pointer_expression "*version" * identifier) != (char_literal "'1'" ' character ')) ))) )) || (parenthesized_expression "(stream_size != 0x38)" ( (binary_expression "stream_size != 0x38" identifier != number_literal) ))) )) (compound_statement "{\n    iVar4 = -6;\n  }" { (expression_statement "iVar4 = -6;" (assignment_expression "iVar4 = -6" identifier = number_literal) ;) }) (else_clause "else if (((strm == (z_streamp)0x0) || (window == (uchar *)0x0)) || (7 < windowBits - 8U)) {\n    iVar4 = -2;\n  }\n  else {\n    pcVar1 = strm->zalloc;\n    strm->msg = (char *)0x0;\n    if (pcVar1 == (alloc_func)0x0) {\n      pvVar5 = (voidpf)0x0;\n      p_Var2 = strm->zfree;\n      pcVar1 = zcalloc;\n      strm->opaque = (voidpf)0x0;\n      strm->zalloc = zcalloc;\n    }\n    else {\n      p_Var2 = strm->zfree;\n      pvVar5 = strm->opaque;\n    }\n    if (p_Var2 == (free_func)0x0) {\n      strm->zfree = zcfree;\n    }\n    piVar3 = (internal_state *)(*pcVar1)(pvVar5,1,0x1bd0);\n    if (piVar3 == (internal_state *)0x0) {\n      iVar4 = -4;\n    }\n    else {\n      strm->state = piVar3;\n      piVar3->wrap = 0x8000;\n      piVar3->last_flush = windowBits;\n      piVar3->w_size = 1 << ((byte)windowBits & 0x1f);\n      piVar3->window = window;\n      piVar3->w_mask = 0;\n      piVar3->w_bits = 0;\n      iVar4 = 0;\n    }\n  }" else (if_statement "if (((strm == (z_streamp)0x0) || (window == (uchar *)0x0)) || (7 < windowBits - 8U)) {\n    iVar4 = -2;\n  }\n  else {\n    pcVar1 = strm->zalloc;\n    strm->msg = (char *)0x0;\n    if (pcVar1 == (alloc_func)0x0) {\n      pvVar5 = (voidpf)0x0;\n      p_Var2 = strm->zfree;\n      pcVar1 = zcalloc;\n      strm->opaque = (voidpf)0x0;\n      strm->zalloc = zcalloc;\n    }\n    else {\n      p_Var2 = strm->zfree;\n      pvVar5 = strm->opaque;\n    }\n    if (p_Var2 == (free_func)0x0) {\n      strm->zfree = zcfree;\n    }\n    piVar3 = (internal_state *)(*pcVar1)(pvVar5,1,0x1bd0);\n    if (piVar3 == (internal_state *)0x0) {\n      iVar4 = -4;\n    }\n    else {\n      strm->state = piVar3;\n      piVar3->wrap = 0x8000;\n      piVar3->last_flush = windowBits;\n      piVar3->w_size = 1 << ((byte)windowBits & 0x1f);\n      piVar3->window = window;\n      piVar3->w_mask = 0;\n      piVar3->w_bits = 0;\n      iVar4 = 0;\n    }\n  }" if (parenthesized_expression "(((strm == (z_streamp)0x0) || (window == (uchar *)0x0)) || (7 < windowBits - 8U))" ( (binary_expression "((strm == (z_streamp)0x0) || (window == (uchar *)0x0)) || (7 < windowBits - 8U)" (parenthesized_expression "((strm == (z_streamp)0x0) || (window == (uchar *)0x0))" ( (binary_expression "(strm == (z_streamp)0x0) || (window == (uchar *)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 "(window == (uchar *)0x0)" ( (binary_expression "window == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) || (parenthesized_expression "(7 < windowBits - 8U)" ( (binary_expression "7 < windowBits - 8U" number_literal < (binary_expression "windowBits - 8U" identifier - number_literal)) ))) )) (compound_statement "{\n    iVar4 = -2;\n  }" { (expression_statement "iVar4 = -2;" (assignment_expression "iVar4 = -2" identifier = number_literal) ;) }) (else_clause "else {\n    pcVar1 = strm->zalloc;\n    strm->msg = (char *)0x0;\n    if (pcVar1 == (alloc_func)0x0) {\n      pvVar5 = (voidpf)0x0;\n      p_Var2 = strm->zfree;\n      pcVar1 = zcalloc;\n      strm->opaque = (voidpf)0x0;\n      strm->zalloc = zcalloc;\n    }\n    else {\n      p_Var2 = strm->zfree;\n      pvVar5 = strm->opaque;\n    }\n    if (p_Var2 == (free_func)0x0) {\n      strm->zfree = zcfree;\n    }\n    piVar3 = (internal_state *)(*pcVar1)(pvVar5,1,0x1bd0);\n    if (piVar3 == (internal_state *)0x0) {\n      iVar4 = -4;\n    }\n    else {\n      strm->state = piVar3;\n      piVar3->wrap = 0x8000;\n      piVar3->last_flush = windowBits;\n      piVar3->w_size = 1 << ((byte)windowBits & 0x1f);\n      piVar3->window = window;\n      piVar3->w_mask = 0;\n      piVar3->w_bits = 0;\n      iVar4 = 0;\n    }\n  }" else (compound_statement "{\n    pcVar1 = strm->zalloc;\n    strm->msg = (char *)0x0;\n    if (pcVar1 == (alloc_func)0x0) {\n      pvVar5 = (voidpf)0x0;\n      p_Var2 = strm->zfree;\n      pcVar1 = zcalloc;\n      strm->opaque = (voidpf)0x0;\n      strm->zalloc = zcalloc;\n    }\n    else {\n      p_Var2 = strm->zfree;\n      pvVar5 = strm->opaque;\n    }\n    if (p_Var2 == (free_func)0x0) {\n      strm->zfree = zcfree;\n    }\n    piVar3 = (internal_state *)(*pcVar1)(pvVar5,1,0x1bd0);\n    if (piVar3 == (internal_state *)0x0) {\n      iVar4 = -4;\n    }\n    else {\n      strm->state = piVar3;\n      piVar3->wrap = 0x8000;\n      piVar3->last_flush = windowBits;\n      piVar3->w_size = 1 << ((byte)windowBits & 0x1f);\n      piVar3->window = window;\n      piVar3->w_mask = 0;\n      piVar3->w_bits = 0;\n      iVar4 = 0;\n    }\n  }" { (expression_statement "pcVar1 = strm->zalloc;" (assignment_expression "pcVar1 = strm->zalloc" identifier = (field_expression "strm->zalloc" identifier -> field_identifier)) ;) (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 (pcVar1 == (alloc_func)0x0) {\n      pvVar5 = (voidpf)0x0;\n      p_Var2 = strm->zfree;\n      pcVar1 = zcalloc;\n      strm->opaque = (voidpf)0x0;\n      strm->zalloc = zcalloc;\n    }\n    else {\n      p_Var2 = strm->zfree;\n      pvVar5 = strm->opaque;\n    }" if (parenthesized_expression "(pcVar1 == (alloc_func)0x0)" ( (binary_expression "pcVar1 == (alloc_func)0x0" identifier == (cast_expression "(alloc_func)0x0" ( (type_descriptor "alloc_func" type_identifier) ) number_literal)) )) (compound_statement "{\n      pvVar5 = (voidpf)0x0;\n      p_Var2 = strm->zfree;\n      pcVar1 = zcalloc;\n      strm->opaque = (voidpf)0x0;\n      strm->zalloc = zcalloc;\n    }" { (expression_statement "pvVar5 = (voidpf)0x0;" (assignment_expression "pvVar5 = (voidpf)0x0" identifier = (cast_expression "(voidpf)0x0" ( (type_descriptor "voidpf" type_identifier) ) number_literal)) ;) (expression_statement "p_Var2 = strm->zfree;" (assignment_expression "p_Var2 = strm->zfree" identifier = (field_expression "strm->zfree" identifier -> field_identifier)) ;) (expression_statement "pcVar1 = zcalloc;" (assignment_expression "pcVar1 = zcalloc" identifier = identifier) ;) (expression_statement "strm->opaque = (voidpf)0x0;" (assignment_expression "strm->opaque = (voidpf)0x0" (field_expression "strm->opaque" identifier -> field_identifier) = (cast_expression "(voidpf)0x0" ( (type_descriptor "voidpf" type_identifier) ) number_literal)) ;) (expression_statement "strm->zalloc = zcalloc;" (assignment_expression "strm->zalloc = zcalloc" (field_expression "strm->zalloc" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n      p_Var2 = strm->zfree;\n      pvVar5 = strm->opaque;\n    }" else (compound_statement "{\n      p_Var2 = strm->zfree;\n      pvVar5 = strm->opaque;\n    }" { (expression_statement "p_Var2 = strm->zfree;" (assignment_expression "p_Var2 = strm->zfree" identifier = (field_expression "strm->zfree" identifier -> field_identifier)) ;) (expression_statement "pvVar5 = strm->opaque;" (assignment_expression "pvVar5 = strm->opaque" identifier = (field_expression "strm->opaque" identifier -> field_identifier)) ;) }))) (if_statement "if (p_Var2 == (free_func)0x0) {\n      strm->zfree = zcfree;\n    }" if (parenthesized_expression "(p_Var2 == (free_func)0x0)" ( (binary_expression "p_Var2 == (free_func)0x0" identifier == (cast_expression "(free_func)0x0" ( (type_descriptor "free_func" type_identifier) ) number_literal)) )) (compound_statement "{\n      strm->zfree = zcfree;\n    }" { (expression_statement "strm->zfree = zcfree;" (assignment_expression "strm->zfree = zcfree" (field_expression "strm->zfree" identifier -> field_identifier) = identifier) ;) })) (expression_statement "piVar3 = (internal_state *)(*pcVar1)(pvVar5,1,0x1bd0);" (assignment_expression "piVar3 = (internal_state *)(*pcVar1)(pvVar5,1,0x1bd0)" identifier = (cast_expression "(internal_state *)(*pcVar1)(pvVar5,1,0x1bd0)" ( (type_descriptor "internal_state *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar1)(pvVar5,1,0x1bd0)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(pvVar5,1,0x1bd0)" ( identifier , number_literal , number_literal ))))) ;) (if_statement "if (piVar3 == (internal_state *)0x0) {\n      iVar4 = -4;\n    }\n    else {\n      strm->state = piVar3;\n      piVar3->wrap = 0x8000;\n      piVar3->last_flush = windowBits;\n      piVar3->w_size = 1 << ((byte)windowBits & 0x1f);\n      piVar3->window = window;\n      piVar3->w_mask = 0;\n      piVar3->w_bits = 0;\n      iVar4 = 0;\n    }" if (parenthesized_expression "(piVar3 == (internal_state *)0x0)" ( (binary_expression "piVar3 == (internal_state *)0x0" identifier == (cast_expression "(internal_state *)0x0" ( (type_descriptor "internal_state *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar4 = -4;\n    }" { (expression_statement "iVar4 = -4;" (assignment_expression "iVar4 = -4" identifier = number_literal) ;) }) (else_clause "else {\n      strm->state = piVar3;\n      piVar3->wrap = 0x8000;\n      piVar3->last_flush = windowBits;\n      piVar3->w_size = 1 << ((byte)windowBits & 0x1f);\n      piVar3->window = window;\n      piVar3->w_mask = 0;\n      piVar3->w_bits = 0;\n      iVar4 = 0;\n    }" else (compound_statement "{\n      strm->state = piVar3;\n      piVar3->wrap = 0x8000;\n      piVar3->last_flush = windowBits;\n      piVar3->w_size = 1 << ((byte)windowBits & 0x1f);\n      piVar3->window = window;\n      piVar3->w_mask = 0;\n      piVar3->w_bits = 0;\n      iVar4 = 0;\n    }" { (expression_statement "strm->state = piVar3;" (assignment_expression "strm->state = piVar3" (field_expression "strm->state" identifier -> field_identifier) = identifier) ;) (expression_statement "piVar3->wrap = 0x8000;" (assignment_expression "piVar3->wrap = 0x8000" (field_expression "piVar3->wrap" identifier -> field_identifier) = number_literal) ;) (expression_statement "piVar3->last_flush = windowBits;" (assignment_expression "piVar3->last_flush = windowBits" (field_expression "piVar3->last_flush" identifier -> field_identifier) = identifier) ;) (expression_statement "piVar3->w_size = 1 << ((byte)windowBits & 0x1f);" (assignment_expression "piVar3->w_size = 1 << ((byte)windowBits & 0x1f)" (field_expression "piVar3->w_size" identifier -> field_identifier) = (binary_expression "1 << ((byte)windowBits & 0x1f)" number_literal << (parenthesized_expression "((byte)windowBits & 0x1f)" ( (binary_expression "(byte)windowBits & 0x1f" (cast_expression "(byte)windowBits" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "piVar3->window = window;" (assignment_expression "piVar3->window = window" (field_expression "piVar3->window" identifier -> field_identifier) = identifier) ;) (expression_statement "piVar3->w_mask = 0;" (assignment_expression "piVar3->w_mask = 0" (field_expression "piVar3->w_mask" identifier -> field_identifier) = number_literal) ;) (expression_statement "piVar3->w_bits = 0;" (assignment_expression "piVar3->w_bits = 0" (field_expression "piVar3->w_bits" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))) }))))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "undefined4 inflateBackInit_(int param_1,int param_2,int param_3,char *param_4,int param_5)\n\n{\n  code *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {\n    uVar3 = 0xfffffffa;\n  }\n  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 inflateBackInit_(int param_1,int param_2,int param_3,char *param_4,int param_5)\n\n{\n  code *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {\n    uVar3 = 0xfffffffa;\n  }\n  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" type_identifier (function_declarator "inflateBackInit_(int param_1,int param_2,int param_3,char *param_4,int param_5)" identifier (parameter_list "(int param_1,int param_2,int param_3,char *param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {\n    uVar3 = 0xfffffffa;\n  }\n  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (if_statement "if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {\n    uVar3 = 0xfffffffa;\n  }\n  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" if (parenthesized_expression "(((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38))" ( (binary_expression "((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)" (parenthesized_expression "((param_4 == (char *)0x0) || (*param_4 != '1'))" ( (binary_expression "(param_4 == (char *)0x0) || (*param_4 != '1')" (parenthesized_expression "(param_4 == (char *)0x0)" ( (binary_expression "param_4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_4 != '1')" ( (binary_expression "*param_4 != '1'" (pointer_expression "*param_4" * identifier) != (char_literal "'1'" ' character ')) ))) )) || (parenthesized_expression "(param_5 != 0x38)" ( (binary_expression "param_5 != 0x38" identifier != number_literal) ))) )) (compound_statement "{\n    uVar3 = 0xfffffffa;\n  }" { (expression_statement "uVar3 = 0xfffffffa;" (assignment_expression "uVar3 = 0xfffffffa" identifier = number_literal) ;) }) (else_clause "else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" else (if_statement "if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" if (parenthesized_expression "(((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U))" ( (binary_expression "((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)" (parenthesized_expression "((param_1 == 0) || (param_3 == 0))" ( (binary_expression "(param_1 == 0) || (param_3 == 0)" (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) ))) )) || (parenthesized_expression "(7 < param_2 - 8U)" ( (binary_expression "7 < param_2 - 8U" number_literal < (binary_expression "param_2 - 8U" identifier - number_literal)) ))) )) (compound_statement "{\n    uVar3 = 0xfffffffe;\n  }" { (expression_statement "uVar3 = 0xfffffffe;" (assignment_expression "uVar3 = 0xfffffffe" identifier = number_literal) ;) }) (else_clause "else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" else (compound_statement "{\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" { (expression_statement "pcVar1 = *(code **)(param_1 + 0x20);" (assignment_expression "pcVar1 = *(code **)(param_1 + 0x20)" identifier = (pointer_expression "*(code **)(param_1 + 0x20)" * (cast_expression "(code **)(param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + 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 (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }" if (parenthesized_expression "(pcVar1 == (code *)0x0)" ( (binary_expression "pcVar1 == (code *)0x0" identifier == (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" identifier = (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) ))))) ;) (expression_statement "pcVar1 = FUN_0001c4f0;" (assignment_expression "pcVar1 = FUN_0001c4f0" identifier = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x28) = 0" (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) )))) = number_literal) ;) (expression_statement "*(code **)(param_1 + 0x20) = FUN_0001c4f0;" (assignment_expression "*(code **)(param_1 + 0x20) = FUN_0001c4f0" (pointer_expression "*(code **)(param_1 + 0x20)" * (cast_expression "(code **)(param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }" else (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }" { (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" identifier = (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) ))))) ;) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar3 = *(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 (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }" { (expression_statement "*(code **)(param_1 + 0x24) = FUN_0001c520;" (assignment_expression "*(code **)(param_1 + 0x24) = FUN_0001c520" (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) )))) = identifier) ;) })) (expression_statement "iVar2 = (*pcVar1)(uVar3,1,0x1bd0);" (assignment_expression "iVar2 = (*pcVar1)(uVar3,1,0x1bd0)" identifier = (call_expression "(*pcVar1)(uVar3,1,0x1bd0)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(uVar3,1,0x1bd0)" ( identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = 0xfffffffc;\n    }" { (expression_statement "uVar3 = 0xfffffffc;" (assignment_expression "uVar3 = 0xfffffffc" identifier = number_literal) ;) }) (else_clause "else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }" else (compound_statement "{\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }" { (expression_statement "*(int *)(param_1 + 0x1c) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x1c) = iVar2" (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) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x18) = 0x8000;" (assignment_expression "*(undefined4 *)(iVar2 + 0x18) = 0x8000" (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" * (cast_expression "(undefined4 *)(iVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar2 + 0x28) = param_2;" (assignment_expression "*(int *)(iVar2 + 0x28) = param_2" (pointer_expression "*(int *)(iVar2 + 0x28)" * (cast_expression "(int *)(iVar2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x28)" ( (binary_expression "iVar2 + 0x28" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);" (assignment_expression "*(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f)" (pointer_expression "*(int *)(iVar2 + 0x2c)" * (cast_expression "(int *)(iVar2 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2c)" ( (binary_expression "iVar2 + 0x2c" identifier + number_literal) )))) = (binary_expression "1 << ((byte)param_2 & 0x1f)" number_literal << (parenthesized_expression "((byte)param_2 & 0x1f)" ( (binary_expression "(byte)param_2 & 0x1f" (cast_expression "(byte)param_2" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "*(int *)(iVar2 + 0x38) = param_3;" (assignment_expression "*(int *)(iVar2 + 0x38) = param_3" (pointer_expression "*(int *)(iVar2 + 0x38)" * (cast_expression "(int *)(iVar2 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x34) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x34)" * (cast_expression "(undefined4 *)(iVar2 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x30) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x30)" * (cast_expression "(undefined4 *)(iVar2 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x30)" ( (binary_expression "iVar2 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) }))) }))))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 (pointer_expression * IDENT) != (char_literal ' character ')) ))) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) || (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_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 = IDENT) ;) (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = 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 IDENT = LIT) ;) }))) }))))) (return_statement return IDENT ;) })))
(function_definition "undefined4 inflateBackInit_(int param_1,int param_2,int param_3,char *param_4,int param_5)\n\n{\n  code *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {\n    uVar3 = 0xfffffffa;\n  }\n  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "inflateBackInit_(int param_1,int param_2,int param_3,char *param_4,int param_5)" (identifier "inflateBackInit_") (parameter_list "(int param_1,int param_2,int param_3,char *param_4,int param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "char *param_4" (primitive_type "char") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  code *pcVar1;\n  int iVar2;\n  undefined4 uVar3;\n  \n  if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {\n    uVar3 = 0xfffffffa;\n  }\n  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }\n  return uVar3;\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (if_statement "if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {\n    uVar3 = 0xfffffffa;\n  }\n  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" (if "if") (parenthesized_expression "(((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38))" (( "(") (binary_expression "((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)" (parenthesized_expression "((param_4 == (char *)0x0) || (*param_4 != '1'))" (( "(") (binary_expression "(param_4 == (char *)0x0) || (*param_4 != '1')" (parenthesized_expression "(param_4 == (char *)0x0)" (( "(") (binary_expression "param_4 == (char *)0x0" (identifier "param_4") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*param_4 != '1')" (( "(") (binary_expression "*param_4 != '1'" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (!= "!=") (char_literal "'1'" (' "'") (character "1") (' "'"))) () ")"))) () ")")) (|| "||") (parenthesized_expression "(param_5 != 0x38)" (( "(") (binary_expression "param_5 != 0x38" (identifier "param_5") (!= "!=") (number_literal "0x38")) () ")"))) () ")")) (compound_statement "{\n    uVar3 = 0xfffffffa;\n  }" ({ "{") (expression_statement "uVar3 = 0xfffffffa;" (assignment_expression "uVar3 = 0xfffffffa" (identifier "uVar3") (= "=") (number_literal "0xfffffffa")) (; ";")) (} "}")) (else_clause "else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" (else "else") (if_statement "if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {\n    uVar3 = 0xfffffffe;\n  }\n  else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" (if "if") (parenthesized_expression "(((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U))" (( "(") (binary_expression "((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)" (parenthesized_expression "((param_1 == 0) || (param_3 == 0))" (( "(") (binary_expression "(param_1 == 0) || (param_3 == 0)" (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(7 < param_2 - 8U)" (( "(") (binary_expression "7 < param_2 - 8U" (number_literal "7") (< "<") (binary_expression "param_2 - 8U" (identifier "param_2") (- "-") (number_literal "8U"))) () ")"))) () ")")) (compound_statement "{\n    uVar3 = 0xfffffffe;\n  }" ({ "{") (expression_statement "uVar3 = 0xfffffffe;" (assignment_expression "uVar3 = 0xfffffffe" (identifier "uVar3") (= "=") (number_literal "0xfffffffe")) (; ";")) (} "}")) (else_clause "else {\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" (else "else") (compound_statement "{\n    pcVar1 = *(code **)(param_1 + 0x20);\n    *(undefined4 *)(param_1 + 0x18) = 0;\n    if (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }\n    if (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }\n    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);\n    if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }\n  }" ({ "{") (expression_statement "pcVar1 = *(code **)(param_1 + 0x20);" (assignment_expression "pcVar1 = *(code **)(param_1 + 0x20)" (identifier "pcVar1") (= "=") (pointer_expression "*(code **)(param_1 + 0x20)" (* "*") (cast_expression "(code **)(param_1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (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 (pcVar1 == (code *)0x0) {\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }\n    else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }" (if "if") (parenthesized_expression "(pcVar1 == (code *)0x0)" (( "(") (binary_expression "pcVar1 == (code *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar3 = 0;\n      iVar2 = *(int *)(param_1 + 0x24);\n      pcVar1 = FUN_0001c4f0;\n      *(undefined4 *)(param_1 + 0x28) = 0;\n      *(code **)(param_1 + 0x20) = FUN_0001c4f0;\n    }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "pcVar1 = FUN_0001c4f0;" (assignment_expression "pcVar1 = FUN_0001c4f0" (identifier "pcVar1") (= "=") (identifier "FUN_0001c4f0")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x28) = 0" (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")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(code **)(param_1 + 0x20) = FUN_0001c4f0;" (assignment_expression "*(code **)(param_1 + 0x20) = FUN_0001c4f0" (pointer_expression "*(code **)(param_1 + 0x20)" (* "*") (cast_expression "(code **)(param_1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "FUN_0001c4f0")) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }" (else "else") (compound_statement "{\n      iVar2 = *(int *)(param_1 + 0x24);\n      uVar3 = *(undefined4 *)(param_1 + 0x28);\n    }" ({ "{") (expression_statement "iVar2 = *(int *)(param_1 + 0x24);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x24)" (identifier "iVar2") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "uVar3 = *(undefined4 *)(param_1 + 0x28);" (assignment_expression "uVar3 = *(undefined4 *)(param_1 + 0x28)" (identifier "uVar3") (= "=") (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 (iVar2 == 0) {\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *(code **)(param_1 + 0x24) = FUN_0001c520;\n    }" ({ "{") (expression_statement "*(code **)(param_1 + 0x24) = FUN_0001c520;" (assignment_expression "*(code **)(param_1 + 0x24) = FUN_0001c520" (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")) () ")")))) (= "=") (identifier "FUN_0001c520")) (; ";")) (} "}"))) (expression_statement "iVar2 = (*pcVar1)(uVar3,1,0x1bd0);" (assignment_expression "iVar2 = (*pcVar1)(uVar3,1,0x1bd0)" (identifier "iVar2") (= "=") (call_expression "(*pcVar1)(uVar3,1,0x1bd0)" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "(uVar3,1,0x1bd0)" (( "(") (identifier "uVar3") (, ",") (number_literal "1") (, ",") (number_literal "0x1bd0") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      uVar3 = 0xfffffffc;\n    }\n    else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = 0xfffffffc;\n    }" ({ "{") (expression_statement "uVar3 = 0xfffffffc;" (assignment_expression "uVar3 = 0xfffffffc" (identifier "uVar3") (= "=") (number_literal "0xfffffffc")) (; ";")) (} "}")) (else_clause "else {\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }" (else "else") (compound_statement "{\n      *(int *)(param_1 + 0x1c) = iVar2;\n      *(undefined4 *)(iVar2 + 0x18) = 0x8000;\n      *(int *)(iVar2 + 0x28) = param_2;\n      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);\n      *(int *)(iVar2 + 0x38) = param_3;\n      *(undefined4 *)(iVar2 + 0x34) = 0;\n      *(undefined4 *)(iVar2 + 0x30) = 0;\n      uVar3 = 0;\n    }" ({ "{") (expression_statement "*(int *)(param_1 + 0x1c) = iVar2;" (assignment_expression "*(int *)(param_1 + 0x1c) = iVar2" (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")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x18) = 0x8000;" (assignment_expression "*(undefined4 *)(iVar2 + 0x18) = 0x8000" (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0x8000")) (; ";")) (expression_statement "*(int *)(iVar2 + 0x28) = param_2;" (assignment_expression "*(int *)(iVar2 + 0x28) = param_2" (pointer_expression "*(int *)(iVar2 + 0x28)" (* "*") (cast_expression "(int *)(iVar2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x28)" (( "(") (binary_expression "iVar2 + 0x28" (identifier "iVar2") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);" (assignment_expression "*(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f)" (pointer_expression "*(int *)(iVar2 + 0x2c)" (* "*") (cast_expression "(int *)(iVar2 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2c)" (( "(") (binary_expression "iVar2 + 0x2c" (identifier "iVar2") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (binary_expression "1 << ((byte)param_2 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)param_2 & 0x1f)" (( "(") (binary_expression "(byte)param_2 & 0x1f" (cast_expression "(byte)param_2" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_2")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "*(int *)(iVar2 + 0x38) = param_3;" (assignment_expression "*(int *)(iVar2 + 0x38) = param_3" (pointer_expression "*(int *)(iVar2 + 0x38)" (* "*") (cast_expression "(int *)(iVar2 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x38)" (( "(") (binary_expression "iVar2 + 0x38" (identifier "iVar2") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x34) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x34) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x34)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x34)" (( "(") (binary_expression "iVar2 + 0x34" (identifier "iVar2") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(iVar2 + 0x30) = 0" (pointer_expression "*(undefined4 *)(iVar2 + 0x30)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x30)" (( "(") (binary_expression "iVar2 + 0x30" (identifier "iVar2") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

int function_1(type_1 var_3,int var_5,type_2 *var_4,char *var_1,int var_2)

{
  type_3 *var_6;
  type_4 var_7;
  type_5 *var_8;
  int iVar4;
  type_6 pvVar5;
  
  if (((var_1 == (char *)0x0) || (*var_1 != '1')) || (var_2 != 0x38)) {
    iVar4 = -6;
  }
  else if (((var_3 == (type_1)0x0) || (var_4 == (type_2 *)0x0)) || (7 < var_5 - 8U)) {
    iVar4 = -2;
  }
  else {
    var_6 = var_3->zalloc;
    var_3->msg = (char *)0x0;
    if (var_6 == (type_7)0x0) {
      pvVar5 = (type_6)0x0;
      var_7 = var_3->zfree;
      var_6 = zcalloc;
      var_3->opaque = (type_6)0x0;
      var_3->zalloc = zcalloc;
    }
    else {
      var_7 = var_3->zfree;
      pvVar5 = var_3->opaque;
    }
    if (var_7 == (type_4)0x0) {
      var_3->zfree = zcfree;
    }
    var_8 = (type_5 *)(*var_6)(pvVar5,1,0x1bd0);
    if (var_8 == (type_5 *)0x0) {
      iVar4 = -4;
    }
    else {
      var_3->state = var_8;
      var_8->wrap = 0x8000;
      var_8->last_flush = var_5;
      var_8->w_size = 1 << ((type_8)var_5 & 0x1f);
      var_8->var_4 = var_4;
      var_8->w_mask = 0;
      var_8->w_bits = 0;
      iVar4 = 0;
    }
  }
  return iVar4;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (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: (pointer_expression argument: (identifier)) right: (char_literal (character)))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_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: (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))) (expression_statement (assignment_expression left: (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: (identifier)))) alternative: (else_clause (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: (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))))) (return_statement (identifier)))))

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

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

{
  code *pcVar1;
  int iVar2;
  undefined4 uVar3;
  
  if (((param_4 == (char *)0x0) || (*param_4 != '1')) || (param_5 != 0x38)) {
    uVar3 = 0xfffffffa;
  }
  else if (((param_1 == 0) || (param_3 == 0)) || (7 < param_2 - 8U)) {
    uVar3 = 0xfffffffe;
  }
  else {
    pcVar1 = *(code **)(param_1 + 0x20);
    *(undefined4 *)(param_1 + 0x18) = 0;
    if (pcVar1 == (code *)0x0) {
      uVar3 = 0;
      iVar2 = *(int *)(param_1 + 0x24);
      pcVar1 = FUN_0001c4f0;
      *(undefined4 *)(param_1 + 0x28) = 0;
      *(code **)(param_1 + 0x20) = FUN_0001c4f0;
    }
    else {
      iVar2 = *(int *)(param_1 + 0x24);
      uVar3 = *(undefined4 *)(param_1 + 0x28);
    }
    if (iVar2 == 0) {
      *(code **)(param_1 + 0x24) = FUN_0001c520;
    }
    iVar2 = (*pcVar1)(uVar3,1,0x1bd0);
    if (iVar2 == 0) {
      uVar3 = 0xfffffffc;
    }
    else {
      *(int *)(param_1 + 0x1c) = iVar2;
      *(undefined4 *)(iVar2 + 0x18) = 0x8000;
      *(int *)(iVar2 + 0x28) = param_2;
      *(int *)(iVar2 + 0x2c) = 1 << ((byte)param_2 & 0x1f);
      *(int *)(iVar2 + 0x38) = param_3;
      *(undefined4 *)(iVar2 + 0x34) = 0;
      *(undefined4 *)(iVar2 + 0x30) = 0;
      uVar3 = 0;
    }
  }
  return uVar3;
}

