
int inflatePrime(z_streamp strm,int bits,int value)

{
  int iVar1;
  Posf *pPVar2;
  internal_state *piVar3;
  Posf *pPVar4;
  
  if (((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&
     (strm->zfree != (free_func)0x0)) {
    iVar1 = inflateStateCheck(strm);
    if (iVar1 == 0) {
      piVar3 = strm->state;
      if (bits < 0) {
        piVar3->window_size = 0;
        piVar3->prev = (Posf *)0x0;
        return 0;
      }
      if (bits < 0x11) {
        pPVar4 = piVar3->prev;
        pPVar2 = (Posf *)(bits + (int)pPVar4);
        if (pPVar2 < (Posf *)0x21) {
          piVar3->prev = pPVar2;
          piVar3->window_size =
               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))
          ;
          return 0;
        }
      }
    }
    return -2;
  }
  return -2;
}



undefined4 inflatePrime(int param_1,uint param_2,uint param_3)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  
  if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {
    iVar1 = FUN_0001822c();
    if (iVar1 == 0) {
      iVar1 = *(int *)(param_1 + 0x1c);
      if ((int)param_2 < 0) {
        *(undefined4 *)(iVar1 + 0x3c) = 0;
        *(undefined4 *)(iVar1 + 0x40) = 0;
        return 0;
      }
      if ((int)param_2 < 0x11) {
        uVar3 = *(uint *)(iVar1 + 0x40);
        uVar2 = param_2 + uVar3;
        if (uVar2 < 0x21) {
          *(uint *)(iVar1 + 0x40) = uVar2;
          *(uint *)(iVar1 + 0x3c) =
               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))
          ;
          return 0;
        }
      }
    }
    return 0xfffffffe;
  }
  return 0xfffffffe;
}


lui gp,0x2
addiu gp,gp,0x59dc
addu gp,gp,t9
beq a0,zero,0x000186d4
_nop
lw v1,0x20(a0)
beq v1,zero,0x000186d4
_nop
lw v1,0x24(a0)
beq v1,zero,0x000186d4
_lw t9,-0x7fd4(gp)
addiu sp,sp,-0x20
addiu t9,t9,-0x7dd4
sw gp,0x10(sp)
sw ra,0x1c(sp)
bal 0x0001822c
_nop
bne v0,zero,0x000186cc
_nop
bltz a1,0x000186b8
_lw a0,0x1c(a0)
slti v1,a1,0x11
beq v1,zero,0x000186cc
_nop
lw t0,0x40(a0)
addu v1,a1,t0
sltiu a3,v1,0x21
beq a3,zero,0x000186cc
_nop
sw v1,0x40(a0)
li v1,0x1
lw a3,0x3c(a0)
sllv a1,v1,a1
addiu a1,a1,-0x1
and a2,a1,a2
sllv a2,a2,t0
addu a2,a3,a2
sw a2,0x3c(a0)
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw ra,0x1c(sp)
sw zero,0x3c(a0)
sw zero,0x40(a0)
jr ra
_addiu sp,sp,0x20
b 0x000186ac
_li v0,-0x2
jr ra
_li v0,-0x2
(translation_unit "undefined4 inflatePrime(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }\n  return 0xfffffffe;\n}\n\n" (function_definition "undefined4 inflatePrime(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }\n  return 0xfffffffe;\n}" type_identifier (function_declarator "inflatePrime(int param_1,uint param_2,uint param_3)" identifier (parameter_list "(int param_1,uint param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }\n  return 0xfffffffe;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }" if (parenthesized_expression "(((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0))" ( (binary_expression "((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)" (parenthesized_expression "((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0))" ( (binary_expression "(param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x20) != 0)" ( (binary_expression "*(int *)(param_1 + 0x20) != 0" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "(*(int *)(param_1 + 0x24) != 0)" ( (binary_expression "*(int *)(param_1 + 0x24) != 0" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }" { (expression_statement "iVar1 = FUN_0001822c();" (assignment_expression "iVar1 = FUN_0001822c()" identifier = (call_expression "FUN_0001822c()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1c)" identifier = (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }" if (parenthesized_expression "((int)param_2 < 0)" ( (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }" { (expression_statement "*(undefined4 *)(iVar1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x3c)" * (cast_expression "(undefined4 *)(iVar1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3c)" ( (binary_expression "iVar1 + 0x3c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x40)" * (cast_expression "(undefined4 *)(iVar1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }" if (parenthesized_expression "((int)param_2 < 0x11)" ( (binary_expression "(int)param_2 < 0x11" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }" { (expression_statement "uVar3 = *(uint *)(iVar1 + 0x40);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x40)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x40)" * (cast_expression "(uint *)(iVar1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = param_2 + uVar3;" (assignment_expression "uVar2 = param_2 + uVar3" identifier = (binary_expression "param_2 + uVar3" identifier + identifier)) ;) (if_statement "if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }" if (parenthesized_expression "(uVar2 < 0x21)" ( (binary_expression "uVar2 < 0x21" identifier < number_literal) )) (compound_statement "{\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }" { (expression_statement "*(uint *)(iVar1 + 0x40) = uVar2;" (assignment_expression "*(uint *)(iVar1 + 0x40) = uVar2" (pointer_expression "*(uint *)(iVar1 + 0x40)" * (cast_expression "(uint *)(iVar1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;" (assignment_expression "*(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))" (pointer_expression "*(uint *)(iVar1 + 0x3c)" * (cast_expression "(uint *)(iVar1 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3c)" ( (binary_expression "iVar1 + 0x3c" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))" (pointer_expression "*(int *)(iVar1 + 0x3c)" * (cast_expression "(int *)(iVar1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3c)" ( (binary_expression "iVar1 + 0x3c" identifier + number_literal) )))) + (parenthesized_expression "(((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))" ( (binary_expression "((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f)" (parenthesized_expression "((1 << (param_2 & 0x1f)) - 1U & param_3)" ( (binary_expression "(1 << (param_2 & 0x1f)) - 1U & param_3" (binary_expression "(1 << (param_2 & 0x1f)) - 1U" (parenthesized_expression "(1 << (param_2 & 0x1f))" ( (binary_expression "1 << (param_2 & 0x1f)" number_literal << (parenthesized_expression "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) )) - number_literal) & identifier) )) << (parenthesized_expression "(uVar3 & 0x1f)" ( (binary_expression "uVar3 & 0x1f" identifier & number_literal) ))) )))) ;) (return_statement "return 0;" return number_literal ;) })) })) })) (return_statement "return 0xfffffffe;" return number_literal ;) })) (return_statement "return 0xfffffffe;" return number_literal ;) })))
(translation_unit "int inflatePrime(z_streamp strm,int bits,int value)\n\n{\n  int iVar1;\n  Posf *pPVar2;\n  internal_state *piVar3;\n  Posf *pPVar4;\n  \n  if (((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n     (strm->zfree != (free_func)0x0)) {\n    iVar1 = inflateStateCheck(strm);\n    if (iVar1 == 0) {\n      piVar3 = strm->state;\n      if (bits < 0) {\n        piVar3->window_size = 0;\n        piVar3->prev = (Posf *)0x0;\n        return 0;\n      }\n      if (bits < 0x11) {\n        pPVar4 = piVar3->prev;\n        pPVar2 = (Posf *)(bits + (int)pPVar4);\n        if (pPVar2 < (Posf *)0x21) {\n          piVar3->prev = pPVar2;\n          piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return -2;\n  }\n  return -2;\n}\n\n" (function_definition "int inflatePrime(z_streamp strm,int bits,int value)\n\n{\n  int iVar1;\n  Posf *pPVar2;\n  internal_state *piVar3;\n  Posf *pPVar4;\n  \n  if (((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n     (strm->zfree != (free_func)0x0)) {\n    iVar1 = inflateStateCheck(strm);\n    if (iVar1 == 0) {\n      piVar3 = strm->state;\n      if (bits < 0) {\n        piVar3->window_size = 0;\n        piVar3->prev = (Posf *)0x0;\n        return 0;\n      }\n      if (bits < 0x11) {\n        pPVar4 = piVar3->prev;\n        pPVar2 = (Posf *)(bits + (int)pPVar4);\n        if (pPVar2 < (Posf *)0x21) {\n          piVar3->prev = pPVar2;\n          piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return -2;\n  }\n  return -2;\n}" primitive_type (function_declarator "inflatePrime(z_streamp strm,int bits,int value)" identifier (parameter_list "(z_streamp strm,int bits,int value)" ( (parameter_declaration "z_streamp strm" type_identifier identifier) , (parameter_declaration "int bits" primitive_type identifier) , (parameter_declaration "int value" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  Posf *pPVar2;\n  internal_state *piVar3;\n  Posf *pPVar4;\n  \n  if (((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n     (strm->zfree != (free_func)0x0)) {\n    iVar1 = inflateStateCheck(strm);\n    if (iVar1 == 0) {\n      piVar3 = strm->state;\n      if (bits < 0) {\n        piVar3->window_size = 0;\n        piVar3->prev = (Posf *)0x0;\n        return 0;\n      }\n      if (bits < 0x11) {\n        pPVar4 = piVar3->prev;\n        pPVar2 = (Posf *)(bits + (int)pPVar4);\n        if (pPVar2 < (Posf *)0x21) {\n          piVar3->prev = pPVar2;\n          piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return -2;\n  }\n  return -2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Posf *pPVar2;" type_identifier (pointer_declarator "*pPVar2" * identifier) ;) (declaration "internal_state *piVar3;" type_identifier (pointer_declarator "*piVar3" * identifier) ;) (declaration "Posf *pPVar4;" type_identifier (pointer_declarator "*pPVar4" * identifier) ;) (if_statement "if (((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n     (strm->zfree != (free_func)0x0)) {\n    iVar1 = inflateStateCheck(strm);\n    if (iVar1 == 0) {\n      piVar3 = strm->state;\n      if (bits < 0) {\n        piVar3->window_size = 0;\n        piVar3->prev = (Posf *)0x0;\n        return 0;\n      }\n      if (bits < 0x11) {\n        pPVar4 = piVar3->prev;\n        pPVar2 = (Posf *)(bits + (int)pPVar4);\n        if (pPVar2 < (Posf *)0x21) {\n          piVar3->prev = pPVar2;\n          piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return -2;\n  }" if (parenthesized_expression "(((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n     (strm->zfree != (free_func)0x0))" ( (binary_expression "((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)) &&\n     (strm->zfree != (free_func)0x0)" (parenthesized_expression "((strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0))" ( (binary_expression "(strm != (z_streamp)0x0) && (strm->zalloc != (alloc_func)0x0)" (parenthesized_expression "(strm != (z_streamp)0x0)" ( (binary_expression "strm != (z_streamp)0x0" identifier != (cast_expression "(z_streamp)0x0" ( (type_descriptor "z_streamp" type_identifier) ) number_literal)) )) && (parenthesized_expression "(strm->zalloc != (alloc_func)0x0)" ( (binary_expression "strm->zalloc != (alloc_func)0x0" (field_expression "strm->zalloc" identifier -> field_identifier) != (cast_expression "(alloc_func)0x0" ( (type_descriptor "alloc_func" type_identifier) ) number_literal)) ))) )) && (parenthesized_expression "(strm->zfree != (free_func)0x0)" ( (binary_expression "strm->zfree != (free_func)0x0" (field_expression "strm->zfree" identifier -> field_identifier) != (cast_expression "(free_func)0x0" ( (type_descriptor "free_func" type_identifier) ) number_literal)) ))) )) (compound_statement "{\n    iVar1 = inflateStateCheck(strm);\n    if (iVar1 == 0) {\n      piVar3 = strm->state;\n      if (bits < 0) {\n        piVar3->window_size = 0;\n        piVar3->prev = (Posf *)0x0;\n        return 0;\n      }\n      if (bits < 0x11) {\n        pPVar4 = piVar3->prev;\n        pPVar2 = (Posf *)(bits + (int)pPVar4);\n        if (pPVar2 < (Posf *)0x21) {\n          piVar3->prev = pPVar2;\n          piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return -2;\n  }" { (expression_statement "iVar1 = inflateStateCheck(strm);" (assignment_expression "iVar1 = inflateStateCheck(strm)" identifier = (call_expression "inflateStateCheck(strm)" identifier (argument_list "(strm)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      piVar3 = strm->state;\n      if (bits < 0) {\n        piVar3->window_size = 0;\n        piVar3->prev = (Posf *)0x0;\n        return 0;\n      }\n      if (bits < 0x11) {\n        pPVar4 = piVar3->prev;\n        pPVar2 = (Posf *)(bits + (int)pPVar4);\n        if (pPVar2 < (Posf *)0x21) {\n          piVar3->prev = pPVar2;\n          piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      piVar3 = strm->state;\n      if (bits < 0) {\n        piVar3->window_size = 0;\n        piVar3->prev = (Posf *)0x0;\n        return 0;\n      }\n      if (bits < 0x11) {\n        pPVar4 = piVar3->prev;\n        pPVar2 = (Posf *)(bits + (int)pPVar4);\n        if (pPVar2 < (Posf *)0x21) {\n          piVar3->prev = pPVar2;\n          piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }" { (expression_statement "piVar3 = strm->state;" (assignment_expression "piVar3 = strm->state" identifier = (field_expression "strm->state" identifier -> field_identifier)) ;) (if_statement "if (bits < 0) {\n        piVar3->window_size = 0;\n        piVar3->prev = (Posf *)0x0;\n        return 0;\n      }" if (parenthesized_expression "(bits < 0)" ( (binary_expression "bits < 0" identifier < number_literal) )) (compound_statement "{\n        piVar3->window_size = 0;\n        piVar3->prev = (Posf *)0x0;\n        return 0;\n      }" { (expression_statement "piVar3->window_size = 0;" (assignment_expression "piVar3->window_size = 0" (field_expression "piVar3->window_size" identifier -> field_identifier) = number_literal) ;) (expression_statement "piVar3->prev = (Posf *)0x0;" (assignment_expression "piVar3->prev = (Posf *)0x0" (field_expression "piVar3->prev" identifier -> field_identifier) = (cast_expression "(Posf *)0x0" ( (type_descriptor "Posf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (bits < 0x11) {\n        pPVar4 = piVar3->prev;\n        pPVar2 = (Posf *)(bits + (int)pPVar4);\n        if (pPVar2 < (Posf *)0x21) {\n          piVar3->prev = pPVar2;\n          piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))\n          ;\n          return 0;\n        }\n      }" if (parenthesized_expression "(bits < 0x11)" ( (binary_expression "bits < 0x11" identifier < number_literal) )) (compound_statement "{\n        pPVar4 = piVar3->prev;\n        pPVar2 = (Posf *)(bits + (int)pPVar4);\n        if (pPVar2 < (Posf *)0x21) {\n          piVar3->prev = pPVar2;\n          piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))\n          ;\n          return 0;\n        }\n      }" { (expression_statement "pPVar4 = piVar3->prev;" (assignment_expression "pPVar4 = piVar3->prev" identifier = (field_expression "piVar3->prev" identifier -> field_identifier)) ;) (expression_statement "pPVar2 = (Posf *)(bits + (int)pPVar4);" (assignment_expression "pPVar2 = (Posf *)(bits + (int)pPVar4)" identifier = (cast_expression "(Posf *)(bits + (int)pPVar4)" ( (type_descriptor "Posf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(bits + (int)pPVar4)" ( (binary_expression "bits + (int)pPVar4" identifier + (cast_expression "(int)pPVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (if_statement "if (pPVar2 < (Posf *)0x21) {\n          piVar3->prev = pPVar2;\n          piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))\n          ;\n          return 0;\n        }" if (parenthesized_expression "(pPVar2 < (Posf *)0x21)" ( (binary_expression "pPVar2 < (Posf *)0x21" identifier < (cast_expression "(Posf *)0x21" ( (type_descriptor "Posf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          piVar3->prev = pPVar2;\n          piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))\n          ;\n          return 0;\n        }" { (expression_statement "piVar3->prev = pPVar2;" (assignment_expression "piVar3->prev = pPVar2" (field_expression "piVar3->prev" identifier -> field_identifier) = identifier) ;) (expression_statement "piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))\n          ;" (assignment_expression "piVar3->window_size =\n               piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))" (field_expression "piVar3->window_size" identifier -> field_identifier) = (binary_expression "piVar3->window_size + (((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))" (field_expression "piVar3->window_size" identifier -> field_identifier) + (parenthesized_expression "(((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f))" ( (binary_expression "((1 << (bits & 0x1fU)) - 1U & value) << ((uint)pPVar4 & 0x1f)" (parenthesized_expression "((1 << (bits & 0x1fU)) - 1U & value)" ( (binary_expression "(1 << (bits & 0x1fU)) - 1U & value" (binary_expression "(1 << (bits & 0x1fU)) - 1U" (parenthesized_expression "(1 << (bits & 0x1fU))" ( (binary_expression "1 << (bits & 0x1fU)" number_literal << (parenthesized_expression "(bits & 0x1fU)" ( (binary_expression "bits & 0x1fU" identifier & number_literal) ))) )) - number_literal) & identifier) )) << (parenthesized_expression "((uint)pPVar4 & 0x1f)" ( (binary_expression "(uint)pPVar4 & 0x1f" (cast_expression "(uint)pPVar4" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) ))) )))) ;) (return_statement "return 0;" return number_literal ;) })) })) })) (return_statement "return -2;" return number_literal ;) })) (return_statement "return -2;" return number_literal ;) })))
(translation_unit "undefined4 inflatePrime(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }\n  return 0xfffffffe;\n}\n\n" (function_definition "undefined4 inflatePrime(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }\n  return 0xfffffffe;\n}" type_identifier (function_declarator "inflatePrime(int param_1,uint param_2,uint param_3)" identifier (parameter_list "(int param_1,uint param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }\n  return 0xfffffffe;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }" if (parenthesized_expression "(((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0))" ( (binary_expression "((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)" (parenthesized_expression "((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0))" ( (binary_expression "(param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x20) != 0)" ( (binary_expression "*(int *)(param_1 + 0x20) != 0" (pointer_expression "*(int *)(param_1 + 0x20)" * (cast_expression "(int *)(param_1 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "(*(int *)(param_1 + 0x24) != 0)" ( (binary_expression "*(int *)(param_1 + 0x24) != 0" (pointer_expression "*(int *)(param_1 + 0x24)" * (cast_expression "(int *)(param_1 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }" { (expression_statement "iVar1 = FUN_0001822c();" (assignment_expression "iVar1 = FUN_0001822c()" identifier = (call_expression "FUN_0001822c()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }" { (expression_statement "iVar1 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1c)" identifier = (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (if_statement "if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }" if (parenthesized_expression "((int)param_2 < 0)" ( (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }" { (expression_statement "*(undefined4 *)(iVar1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x3c)" * (cast_expression "(undefined4 *)(iVar1 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3c)" ( (binary_expression "iVar1 + 0x3c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x40)" * (cast_expression "(undefined4 *)(iVar1 + 0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }" if (parenthesized_expression "((int)param_2 < 0x11)" ( (binary_expression "(int)param_2 < 0x11" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }" { (expression_statement "uVar3 = *(uint *)(iVar1 + 0x40);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x40)" identifier = (pointer_expression "*(uint *)(iVar1 + 0x40)" * (cast_expression "(uint *)(iVar1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = param_2 + uVar3;" (assignment_expression "uVar2 = param_2 + uVar3" identifier = (binary_expression "param_2 + uVar3" identifier + identifier)) ;) (if_statement "if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }" if (parenthesized_expression "(uVar2 < 0x21)" ( (binary_expression "uVar2 < 0x21" identifier < number_literal) )) (compound_statement "{\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }" { (expression_statement "*(uint *)(iVar1 + 0x40) = uVar2;" (assignment_expression "*(uint *)(iVar1 + 0x40) = uVar2" (pointer_expression "*(uint *)(iVar1 + 0x40)" * (cast_expression "(uint *)(iVar1 + 0x40)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;" (assignment_expression "*(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))" (pointer_expression "*(uint *)(iVar1 + 0x3c)" * (cast_expression "(uint *)(iVar1 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3c)" ( (binary_expression "iVar1 + 0x3c" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))" (pointer_expression "*(int *)(iVar1 + 0x3c)" * (cast_expression "(int *)(iVar1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3c)" ( (binary_expression "iVar1 + 0x3c" identifier + number_literal) )))) + (parenthesized_expression "(((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))" ( (binary_expression "((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f)" (parenthesized_expression "((1 << (param_2 & 0x1f)) - 1U & param_3)" ( (binary_expression "(1 << (param_2 & 0x1f)) - 1U & param_3" (binary_expression "(1 << (param_2 & 0x1f)) - 1U" (parenthesized_expression "(1 << (param_2 & 0x1f))" ( (binary_expression "1 << (param_2 & 0x1f)" number_literal << (parenthesized_expression "(param_2 & 0x1f)" ( (binary_expression "param_2 & 0x1f" identifier & number_literal) ))) )) - number_literal) & identifier) )) << (parenthesized_expression "(uVar3 & 0x1f)" ( (binary_expression "uVar3 & 0x1f" identifier & number_literal) ))) )))) ;) (return_statement "return 0;" return number_literal ;) })) })) })) (return_statement "return 0xfffffffe;" return number_literal ;) })) (return_statement "return 0xfffffffe;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (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) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression LIT << (parenthesized_expression ( (binary_expression IDENT & LIT) ))) )) - LIT) & IDENT) )) << (parenthesized_expression ( (binary_expression IDENT & LIT) ))) )))) ;) (return_statement return LIT ;) })) })) })) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 inflatePrime(int param_1,uint param_2,uint param_3)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }\n  return 0xfffffffe;\n}" (type_identifier "undefined4") (function_declarator "inflatePrime(int param_1,uint param_2,uint param_3)" (identifier "inflatePrime") (parameter_list "(int param_1,uint param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }\n  return 0xfffffffe;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (if_statement "if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }" (if "if") (parenthesized_expression "(((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0))" (( "(") (binary_expression "((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)" (parenthesized_expression "((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0))" (( "(") (binary_expression "(param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x20) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x20) != 0" (pointer_expression "*(int *)(param_1 + 0x20)" (* "*") (cast_expression "(int *)(param_1 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x24) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x24) != 0" (pointer_expression "*(int *)(param_1 + 0x24)" (* "*") (cast_expression "(int *)(param_1 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar1 = FUN_0001822c();\n    if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }\n    return 0xfffffffe;\n  }" ({ "{") (expression_statement "iVar1 = FUN_0001822c();" (assignment_expression "iVar1 = FUN_0001822c()" (identifier "iVar1") (= "=") (call_expression "FUN_0001822c()" (identifier "FUN_0001822c") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = *(int *)(param_1 + 0x1c);\n      if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }\n      if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }\n    }" ({ "{") (expression_statement "iVar1 = *(int *)(param_1 + 0x1c);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x1c)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (if_statement "if ((int)param_2 < 0) {\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }" (if "if") (parenthesized_expression "((int)param_2 < 0)" (( "(") (binary_expression "(int)param_2 < 0" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined4 *)(iVar1 + 0x3c) = 0;\n        *(undefined4 *)(iVar1 + 0x40) = 0;\n        return 0;\n      }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x3c) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x3c) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x3c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x3c)" (( "(") (binary_expression "iVar1 + 0x3c" (identifier "iVar1") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x40) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x40) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x40)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x40)" (( "(") (binary_expression "iVar1 + 0x40" (identifier "iVar1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((int)param_2 < 0x11) {\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }" (if "if") (parenthesized_expression "((int)param_2 < 0x11)" (( "(") (binary_expression "(int)param_2 < 0x11" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (< "<") (number_literal "0x11")) () ")")) (compound_statement "{\n        uVar3 = *(uint *)(iVar1 + 0x40);\n        uVar2 = param_2 + uVar3;\n        if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }\n      }" ({ "{") (expression_statement "uVar3 = *(uint *)(iVar1 + 0x40);" (assignment_expression "uVar3 = *(uint *)(iVar1 + 0x40)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(iVar1 + 0x40)" (* "*") (cast_expression "(uint *)(iVar1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x40)" (( "(") (binary_expression "iVar1 + 0x40" (identifier "iVar1") (+ "+") (number_literal "0x40")) () ")"))))) (; ";")) (expression_statement "uVar2 = param_2 + uVar3;" (assignment_expression "uVar2 = param_2 + uVar3" (identifier "uVar2") (= "=") (binary_expression "param_2 + uVar3" (identifier "param_2") (+ "+") (identifier "uVar3"))) (; ";")) (if_statement "if (uVar2 < 0x21) {\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }" (if "if") (parenthesized_expression "(uVar2 < 0x21)" (( "(") (binary_expression "uVar2 < 0x21" (identifier "uVar2") (< "<") (number_literal "0x21")) () ")")) (compound_statement "{\n          *(uint *)(iVar1 + 0x40) = uVar2;\n          *(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;\n          return 0;\n        }" ({ "{") (expression_statement "*(uint *)(iVar1 + 0x40) = uVar2;" (assignment_expression "*(uint *)(iVar1 + 0x40) = uVar2" (pointer_expression "*(uint *)(iVar1 + 0x40)" (* "*") (cast_expression "(uint *)(iVar1 + 0x40)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x40)" (( "(") (binary_expression "iVar1 + 0x40" (identifier "iVar1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))\n          ;" (assignment_expression "*(uint *)(iVar1 + 0x3c) =\n               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))" (pointer_expression "*(uint *)(iVar1 + 0x3c)" (* "*") (cast_expression "(uint *)(iVar1 + 0x3c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x3c)" (( "(") (binary_expression "iVar1 + 0x3c" (identifier "iVar1") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (binary_expression "*(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))" (pointer_expression "*(int *)(iVar1 + 0x3c)" (* "*") (cast_expression "(int *)(iVar1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x3c)" (( "(") (binary_expression "iVar1 + 0x3c" (identifier "iVar1") (+ "+") (number_literal "0x3c")) () ")")))) (+ "+") (parenthesized_expression "(((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))" (( "(") (binary_expression "((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f)" (parenthesized_expression "((1 << (param_2 & 0x1f)) - 1U & param_3)" (( "(") (binary_expression "(1 << (param_2 & 0x1f)) - 1U & param_3" (binary_expression "(1 << (param_2 & 0x1f)) - 1U" (parenthesized_expression "(1 << (param_2 & 0x1f))" (( "(") (binary_expression "1 << (param_2 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(param_2 & 0x1f)" (( "(") (binary_expression "param_2 & 0x1f" (identifier "param_2") (& "&") (number_literal "0x1f")) () ")"))) () ")")) (- "-") (number_literal "1U")) (& "&") (identifier "param_3")) () ")")) (<< "<<") (parenthesized_expression "(uVar3 & 0x1f)" (( "(") (binary_expression "uVar3 & 0x1f" (identifier "uVar3") (& "&") (number_literal "0x1f")) () ")"))) () ")")))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return 0xfffffffe;" (return "return") (number_literal "0xfffffffe") (; ";")) (} "}"))) (return_statement "return 0xfffffffe;" (return "return") (number_literal "0xfffffffe") (; ";")) (} "}")))

int function_1(type_1 var_1,int var_4,int var_6)

{
  int var_3;
  type_2 *var_5;
  type_3 *piVar3;
  type_2 *pPVar4;
  
  if (((var_1 != (type_1)0x0) && (var_1->zalloc != (type_4)0x0)) &&
     (var_1->zfree != (type_5)0x0)) {
    var_3 = var_2(var_1);
    if (var_3 == 0) {
      piVar3 = var_1->state;
      if (var_4 < 0) {
        piVar3->window_size = 0;
        piVar3->prev = (type_2 *)0x0;
        return 0;
      }
      if (var_4 < 0x11) {
        pPVar4 = piVar3->prev;
        var_5 = (type_2 *)(var_4 + (int)pPVar4);
        if (var_5 < (type_2 *)0x21) {
          piVar3->prev = var_5;
          piVar3->window_size =
               piVar3->window_size + (((1 << (var_4 & 0x1fU)) - 1U & var_6) << ((type_6)pPVar4 & 0x1f))
          ;
          return 0;
        }
      }
    }
    return -2;
  }
  return -2;
}


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

undefined4 MASKED(int param_1,uint param_2,uint param_3)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  
  if (((param_1 != 0) && (*(int *)(param_1 + 0x20) != 0)) && (*(int *)(param_1 + 0x24) != 0)) {
    iVar1 = FUN_0001822c();
    if (iVar1 == 0) {
      iVar1 = *(int *)(param_1 + 0x1c);
      if ((int)param_2 < 0) {
        *(undefined4 *)(iVar1 + 0x3c) = 0;
        *(undefined4 *)(iVar1 + 0x40) = 0;
        return 0;
      }
      if ((int)param_2 < 0x11) {
        uVar3 = *(uint *)(iVar1 + 0x40);
        uVar2 = param_2 + uVar3;
        if (uVar2 < 0x21) {
          *(uint *)(iVar1 + 0x40) = uVar2;
          *(uint *)(iVar1 + 0x3c) =
               *(int *)(iVar1 + 0x3c) + (((1 << (param_2 & 0x1f)) - 1U & param_3) << (uVar3 & 0x1f))
          ;
          return 0;
        }
      }
    }
    return 0xfffffffe;
  }
  return 0xfffffffe;
}

