
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 outbits(Outbuf *out,ulong bits,int nbits)

{
  int iVar1;
  int iVar2;
  uchar *puVar3;
  uint uVar4;
  
  iVar1 = out->noutbits;
  iVar2 = iVar1 + nbits;
  if (0x20 < iVar2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");
  }
  out->noutbits = iVar2;
  uVar4 = bits << ((byte)iVar1 & 0x1f) | out->outbits;
  out->outbits = uVar4;
  do {
    if (iVar2 < 8) {
      return;
    }
    while( true ) {
      iVar2 = out->outlen;
      if (iVar2 < out->outsize) break;
      out->outsize = iVar2 + 0x40U;
      puVar3 = (uchar *)saferealloc(out->outbuf,iVar2 + 0x40U,1);
      iVar2 = out->outlen;
      out->outbuf = puVar3;
      out->outlen = iVar2 + 1;
      puVar3[iVar2] = (uchar)out->outbits;
      uVar4 = out->outbits >> 8;
      iVar2 = out->noutbits + -8;
      out->outbits = uVar4;
      out->noutbits = iVar2;
      if (iVar2 < 8) {
        return;
      }
    }
    out->outlen = iVar2 + 1;
    out->outbuf[iVar2] = (uchar)uVar4;
    uVar4 = out->outbits >> 8;
    iVar2 = out->noutbits + -8;
    out->outbits = uVar4;
    out->noutbits = iVar2;
  } while( true );
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 FUN_0007b450(int *param_1,int param_2,int param_3)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  
  iVar1 = param_1[4];
  param_3 = iVar1 + param_3;
  if (0x20 < param_3) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");
  }
  param_1[4] = param_3;
  uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];
  param_1[3] = uVar3;
  do {
    if (param_3 < 8) {
      return;
    }
    while( true ) {
      iVar1 = param_1[1];
      if (iVar1 < param_1[2]) break;
      param_1[2] = iVar1 + 0x40;
      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);
      iVar1 = param_1[1];
      *param_1 = iVar2;
      param_1[1] = iVar1 + 1;
      *(char *)(iVar2 + iVar1) = (char)param_1[3];
      iVar1 = param_1[4];
      uVar3 = (uint)param_1[3] >> 8;
      param_1[3] = uVar3;
      param_1[4] = iVar1 + -8;
      if (iVar1 + -8 < 8) {
        return;
      }
    }
    param_1[1] = iVar1 + 1;
    *(char *)(*param_1 + iVar1) = (char)uVar3;
    uVar3 = (uint)param_1[3] >> 8;
    param_3 = param_1[4] + -8;
    param_1[3] = uVar3;
    param_1[4] = param_3;
  } while( true );
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
MOV EDI,dword ptr [EAX + 0x10]
CALL 0x000149a0
ADD EBX,0x54933
LEA EAX,[EDI + ECX*0x1]
CMP EAX,0x20
JG 0x0007b501
MOV ECX,EDI
MOV dword ptr [ESI + 0x10],EAX
SHL EDX,CL
OR EDX,dword ptr [ESI + 0xc]
MOV dword ptr [ESI + 0xc],EDX
CMP EAX,0x7
JLE 0x0007b4b2
LEA ESI,[ESI]
MOV EAX,dword ptr [ESI + 0x4]
MOV ECX,dword ptr [ESI]
CMP EAX,dword ptr [ESI + 0x8]
JGE 0x0007b4c0
LEA EDI,[EAX + 0x1]
MOV dword ptr [ESI + 0x4],EDI
MOV byte ptr [ECX + EAX*0x1],DL
MOV EDX,dword ptr [ESI + 0xc]
MOV EAX,dword ptr [ESI + 0x10]
SHR EDX,0x8
SUB EAX,0x8
MOV dword ptr [ESI + 0xc],EDX
MOV dword ptr [ESI + 0x10],EAX
CMP EAX,0x7
JG 0x0007b488
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0x4
ADD EAX,0x40
PUSH 0x1
MOV dword ptr [ESI + 0x8],EAX
PUSH EAX
PUSH ECX
CALL 0x0001dc50
MOV EDX,dword ptr [ESI + 0x4]
MOV ECX,dword ptr [ESI + 0xc]
ADD ESP,0x10
MOV dword ptr [ESI],EAX
LEA EDI,[EDX + 0x1]
MOV dword ptr [ESI + 0x4],EDI
MOV byte ptr [EAX + EDX*0x1],CL
MOV EDX,dword ptr [ESI + 0xc]
MOV EAX,dword ptr [ESI + 0x10]
SHR EDX,0x8
SUB EAX,0x8
MOV dword ptr [ESI + 0xc],EDX
MOV dword ptr [ESI + 0x10],EAX
CMP EAX,0x7
JG 0x0007b488
POP EBX
POP ESI
POP EDI
RET
LEA EAX,[EBX + 0xfffcf3e8]
PUSH EAX
LEA EAX,[EBX + 0xfffcf2da]
PUSH 0x17a
PUSH EAX
LEA EAX,[EBX + 0xfffcf317]
PUSH EAX
CALL 0x00014870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0007b450(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[4];\n  param_3 = iVar1 + param_3;\n  if (0x20 < param_3) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }\n  param_1[4] = param_3;\n  uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];\n  param_1[3] = uVar3;\n  do {\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 FUN_0007b450(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[4];\n  param_3 = iVar1 + param_3;\n  if (0x20 < param_3) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }\n  param_1[4] = param_3;\n  uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];\n  param_1[3] = uVar3;\n  do {\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0007b450(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[4];\n  param_3 = iVar1 + param_3;\n  if (0x20 < param_3) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }\n  param_1[4] = param_3;\n  uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];\n  param_1[3] = uVar3;\n  do {\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = param_1[4];" (assignment_expression "iVar1 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "param_3 = iVar1 + param_3;" (assignment_expression "param_3 = iVar1 + param_3" identifier = (binary_expression "iVar1 + param_3" identifier + identifier)) ;) (if_statement "if (0x20 < param_3) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }" if (parenthesized_expression "(0x20 < param_3)" ( (binary_expression "0x20 < param_3" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }" { comment (expression_statement "__assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");" (call_expression "__assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits")" identifier (argument_list "("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits")" ( (string_literal ""out->noutbits + nbits <= 32"" " string_content ") , (string_literal ""sshzlib.c"" " string_content ") , number_literal , (string_literal ""outbits"" " string_content ") ))) ;) })) (expression_statement "param_1[4] = param_3;" (assignment_expression "param_1[4] = param_3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];" (assignment_expression "uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3]" identifier = (binary_expression "param_2 << ((byte)iVar1 & 0x1f) | param_1[3]" (binary_expression "param_2 << ((byte)iVar1 & 0x1f)" identifier << (parenthesized_expression "((byte)iVar1 & 0x1f)" ( (binary_expression "(byte)iVar1 & 0x1f" (cast_expression "(byte)iVar1" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) | (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (do_statement "do {\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  } while( true );" do (compound_statement "{\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  }" { (if_statement "if (param_3 < 8) {\n      return;\n    }" if (parenthesized_expression "(param_3 < 8)" ( (binary_expression "param_3 < 8" identifier < number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (while_statement "while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }" { (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 < param_1[2]) break;" if (parenthesized_expression "(iVar1 < param_1[2])" ( (binary_expression "iVar1 < param_1[2]" identifier < (subscript_expression "param_1[2]" identifier [ number_literal ])) )) (break_statement "break;" break ;)) (expression_statement "param_1[2] = iVar1 + 0x40;" (assignment_expression "param_1[2] = iVar1 + 0x40" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "iVar1 + 0x40" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);" (assignment_expression "iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1)" identifier = (call_expression "FUN_0001dc50(*param_1,iVar1 + 0x40,1)" identifier (argument_list "(*param_1,iVar1 + 0x40,1)" ( (pointer_expression "*param_1" * identifier) , (binary_expression "iVar1 + 0x40" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(char *)(iVar2 + iVar1) = (char)param_1[3];" (assignment_expression "*(char *)(iVar2 + iVar1) = (char)param_1[3]" (pointer_expression "*(char *)(iVar2 + iVar1)" * (cast_expression "(char *)(iVar2 + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )))) = (cast_expression "(char)param_1[3]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "iVar1 = param_1[4];" (assignment_expression "iVar1 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = (uint)param_1[3] >> 8;" (assignment_expression "uVar3 = (uint)param_1[3] >> 8" identifier = (binary_expression "(uint)param_1[3] >> 8" (cast_expression "(uint)param_1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) >> number_literal)) ;) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = iVar1 + -8;" (assignment_expression "param_1[4] = iVar1 + -8" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (binary_expression "iVar1 + -8" identifier + number_literal)) ;) (if_statement "if (iVar1 + -8 < 8) {\n        return;\n      }" if (parenthesized_expression "(iVar1 + -8 < 8)" ( (binary_expression "iVar1 + -8 < 8" (binary_expression "iVar1 + -8" identifier + number_literal) < number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(char *)(*param_1 + iVar1) = (char)uVar3;" (assignment_expression "*(char *)(*param_1 + iVar1) = (char)uVar3" (pointer_expression "*(char *)(*param_1 + iVar1)" * (cast_expression "(char *)(*param_1 + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar1)" ( (binary_expression "*param_1 + iVar1" (pointer_expression "*param_1" * identifier) + identifier) )))) = (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar3 = (uint)param_1[3] >> 8;" (assignment_expression "uVar3 = (uint)param_1[3] >> 8" identifier = (binary_expression "(uint)param_1[3] >> 8" (cast_expression "(uint)param_1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) >> number_literal)) ;) (expression_statement "param_3 = param_1[4] + -8;" (assignment_expression "param_3 = param_1[4] + -8" identifier = (binary_expression "param_1[4] + -8" (subscript_expression "param_1[4]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = param_3;" (assignment_expression "param_1[4] = param_3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 outbits(Outbuf *out,ulong bits,int nbits)\n\n{\n  int iVar1;\n  int iVar2;\n  uchar *puVar3;\n  uint uVar4;\n  \n  iVar1 = out->noutbits;\n  iVar2 = iVar1 + nbits;\n  if (0x20 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }\n  out->noutbits = iVar2;\n  uVar4 = bits << ((byte)iVar1 & 0x1f) | out->outbits;\n  out->outbits = uVar4;\n  do {\n    if (iVar2 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar2 = out->outlen;\n      if (iVar2 < out->outsize) break;\n      out->outsize = iVar2 + 0x40U;\n      puVar3 = (uchar *)saferealloc(out->outbuf,iVar2 + 0x40U,1);\n      iVar2 = out->outlen;\n      out->outbuf = puVar3;\n      out->outlen = iVar2 + 1;\n      puVar3[iVar2] = (uchar)out->outbits;\n      uVar4 = out->outbits >> 8;\n      iVar2 = out->noutbits + -8;\n      out->outbits = uVar4;\n      out->noutbits = iVar2;\n      if (iVar2 < 8) {\n        return;\n      }\n    }\n    out->outlen = iVar2 + 1;\n    out->outbuf[iVar2] = (uchar)uVar4;\n    uVar4 = out->outbits >> 8;\n    iVar2 = out->noutbits + -8;\n    out->outbits = uVar4;\n    out->noutbits = iVar2;\n  } while( true );\n}\n\n" comment (function_definition "void __regparm3 outbits(Outbuf *out,ulong bits,int nbits)\n\n{\n  int iVar1;\n  int iVar2;\n  uchar *puVar3;\n  uint uVar4;\n  \n  iVar1 = out->noutbits;\n  iVar2 = iVar1 + nbits;\n  if (0x20 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }\n  out->noutbits = iVar2;\n  uVar4 = bits << ((byte)iVar1 & 0x1f) | out->outbits;\n  out->outbits = uVar4;\n  do {\n    if (iVar2 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar2 = out->outlen;\n      if (iVar2 < out->outsize) break;\n      out->outsize = iVar2 + 0x40U;\n      puVar3 = (uchar *)saferealloc(out->outbuf,iVar2 + 0x40U,1);\n      iVar2 = out->outlen;\n      out->outbuf = puVar3;\n      out->outlen = iVar2 + 1;\n      puVar3[iVar2] = (uchar)out->outbits;\n      uVar4 = out->outbits >> 8;\n      iVar2 = out->noutbits + -8;\n      out->outbits = uVar4;\n      out->noutbits = iVar2;\n      if (iVar2 < 8) {\n        return;\n      }\n    }\n    out->outlen = iVar2 + 1;\n    out->outbuf[iVar2] = (uchar)uVar4;\n    uVar4 = out->outbits >> 8;\n    iVar2 = out->noutbits + -8;\n    out->outbits = uVar4;\n    out->noutbits = iVar2;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "outbits(Outbuf *out,ulong bits,int nbits)" identifier (parameter_list "(Outbuf *out,ulong bits,int nbits)" ( (parameter_declaration "Outbuf *out" type_identifier (pointer_declarator "*out" * identifier)) , (parameter_declaration "ulong bits" type_identifier identifier) , (parameter_declaration "int nbits" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uchar *puVar3;\n  uint uVar4;\n  \n  iVar1 = out->noutbits;\n  iVar2 = iVar1 + nbits;\n  if (0x20 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }\n  out->noutbits = iVar2;\n  uVar4 = bits << ((byte)iVar1 & 0x1f) | out->outbits;\n  out->outbits = uVar4;\n  do {\n    if (iVar2 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar2 = out->outlen;\n      if (iVar2 < out->outsize) break;\n      out->outsize = iVar2 + 0x40U;\n      puVar3 = (uchar *)saferealloc(out->outbuf,iVar2 + 0x40U,1);\n      iVar2 = out->outlen;\n      out->outbuf = puVar3;\n      out->outlen = iVar2 + 1;\n      puVar3[iVar2] = (uchar)out->outbits;\n      uVar4 = out->outbits >> 8;\n      iVar2 = out->noutbits + -8;\n      out->outbits = uVar4;\n      out->noutbits = iVar2;\n      if (iVar2 < 8) {\n        return;\n      }\n    }\n    out->outlen = iVar2 + 1;\n    out->outbuf[iVar2] = (uchar)uVar4;\n    uVar4 = out->outbits >> 8;\n    iVar2 = out->noutbits + -8;\n    out->outbits = uVar4;\n    out->noutbits = iVar2;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uchar *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = out->noutbits;" (assignment_expression "iVar1 = out->noutbits" identifier = (field_expression "out->noutbits" identifier -> field_identifier)) ;) (expression_statement "iVar2 = iVar1 + nbits;" (assignment_expression "iVar2 = iVar1 + nbits" identifier = (binary_expression "iVar1 + nbits" identifier + identifier)) ;) (if_statement "if (0x20 < iVar2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }" if (parenthesized_expression "(0x20 < iVar2)" ( (binary_expression "0x20 < iVar2" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }" { comment (expression_statement "__assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");" (call_expression "__assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits")" identifier (argument_list "("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits")" ( (string_literal ""out->noutbits + nbits <= 32"" " string_content ") , (string_literal ""sshzlib.c"" " string_content ") , number_literal , (string_literal ""outbits"" " string_content ") ))) ;) })) (expression_statement "out->noutbits = iVar2;" (assignment_expression "out->noutbits = iVar2" (field_expression "out->noutbits" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar4 = bits << ((byte)iVar1 & 0x1f) | out->outbits;" (assignment_expression "uVar4 = bits << ((byte)iVar1 & 0x1f) | out->outbits" identifier = (binary_expression "bits << ((byte)iVar1 & 0x1f) | out->outbits" (binary_expression "bits << ((byte)iVar1 & 0x1f)" identifier << (parenthesized_expression "((byte)iVar1 & 0x1f)" ( (binary_expression "(byte)iVar1 & 0x1f" (cast_expression "(byte)iVar1" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) | (field_expression "out->outbits" identifier -> field_identifier))) ;) (expression_statement "out->outbits = uVar4;" (assignment_expression "out->outbits = uVar4" (field_expression "out->outbits" identifier -> field_identifier) = identifier) ;) (do_statement "do {\n    if (iVar2 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar2 = out->outlen;\n      if (iVar2 < out->outsize) break;\n      out->outsize = iVar2 + 0x40U;\n      puVar3 = (uchar *)saferealloc(out->outbuf,iVar2 + 0x40U,1);\n      iVar2 = out->outlen;\n      out->outbuf = puVar3;\n      out->outlen = iVar2 + 1;\n      puVar3[iVar2] = (uchar)out->outbits;\n      uVar4 = out->outbits >> 8;\n      iVar2 = out->noutbits + -8;\n      out->outbits = uVar4;\n      out->noutbits = iVar2;\n      if (iVar2 < 8) {\n        return;\n      }\n    }\n    out->outlen = iVar2 + 1;\n    out->outbuf[iVar2] = (uchar)uVar4;\n    uVar4 = out->outbits >> 8;\n    iVar2 = out->noutbits + -8;\n    out->outbits = uVar4;\n    out->noutbits = iVar2;\n  } while( true );" do (compound_statement "{\n    if (iVar2 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar2 = out->outlen;\n      if (iVar2 < out->outsize) break;\n      out->outsize = iVar2 + 0x40U;\n      puVar3 = (uchar *)saferealloc(out->outbuf,iVar2 + 0x40U,1);\n      iVar2 = out->outlen;\n      out->outbuf = puVar3;\n      out->outlen = iVar2 + 1;\n      puVar3[iVar2] = (uchar)out->outbits;\n      uVar4 = out->outbits >> 8;\n      iVar2 = out->noutbits + -8;\n      out->outbits = uVar4;\n      out->noutbits = iVar2;\n      if (iVar2 < 8) {\n        return;\n      }\n    }\n    out->outlen = iVar2 + 1;\n    out->outbuf[iVar2] = (uchar)uVar4;\n    uVar4 = out->outbits >> 8;\n    iVar2 = out->noutbits + -8;\n    out->outbits = uVar4;\n    out->noutbits = iVar2;\n  }" { (if_statement "if (iVar2 < 8) {\n      return;\n    }" if (parenthesized_expression "(iVar2 < 8)" ( (binary_expression "iVar2 < 8" identifier < number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (while_statement "while( true ) {\n      iVar2 = out->outlen;\n      if (iVar2 < out->outsize) break;\n      out->outsize = iVar2 + 0x40U;\n      puVar3 = (uchar *)saferealloc(out->outbuf,iVar2 + 0x40U,1);\n      iVar2 = out->outlen;\n      out->outbuf = puVar3;\n      out->outlen = iVar2 + 1;\n      puVar3[iVar2] = (uchar)out->outbits;\n      uVar4 = out->outbits >> 8;\n      iVar2 = out->noutbits + -8;\n      out->outbits = uVar4;\n      out->noutbits = iVar2;\n      if (iVar2 < 8) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar2 = out->outlen;\n      if (iVar2 < out->outsize) break;\n      out->outsize = iVar2 + 0x40U;\n      puVar3 = (uchar *)saferealloc(out->outbuf,iVar2 + 0x40U,1);\n      iVar2 = out->outlen;\n      out->outbuf = puVar3;\n      out->outlen = iVar2 + 1;\n      puVar3[iVar2] = (uchar)out->outbits;\n      uVar4 = out->outbits >> 8;\n      iVar2 = out->noutbits + -8;\n      out->outbits = uVar4;\n      out->noutbits = iVar2;\n      if (iVar2 < 8) {\n        return;\n      }\n    }" { (expression_statement "iVar2 = out->outlen;" (assignment_expression "iVar2 = out->outlen" identifier = (field_expression "out->outlen" identifier -> field_identifier)) ;) (if_statement "if (iVar2 < out->outsize) break;" if (parenthesized_expression "(iVar2 < out->outsize)" ( (binary_expression "iVar2 < out->outsize" identifier < (field_expression "out->outsize" identifier -> field_identifier)) )) (break_statement "break;" break ;)) (expression_statement "out->outsize = iVar2 + 0x40U;" (assignment_expression "out->outsize = iVar2 + 0x40U" (field_expression "out->outsize" identifier -> field_identifier) = (binary_expression "iVar2 + 0x40U" identifier + number_literal)) ;) (expression_statement "puVar3 = (uchar *)saferealloc(out->outbuf,iVar2 + 0x40U,1);" (assignment_expression "puVar3 = (uchar *)saferealloc(out->outbuf,iVar2 + 0x40U,1)" identifier = (cast_expression "(uchar *)saferealloc(out->outbuf,iVar2 + 0x40U,1)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "saferealloc(out->outbuf,iVar2 + 0x40U,1)" identifier (argument_list "(out->outbuf,iVar2 + 0x40U,1)" ( (field_expression "out->outbuf" identifier -> field_identifier) , (binary_expression "iVar2 + 0x40U" identifier + number_literal) , number_literal ))))) ;) (expression_statement "iVar2 = out->outlen;" (assignment_expression "iVar2 = out->outlen" identifier = (field_expression "out->outlen" identifier -> field_identifier)) ;) (expression_statement "out->outbuf = puVar3;" (assignment_expression "out->outbuf = puVar3" (field_expression "out->outbuf" identifier -> field_identifier) = identifier) ;) (expression_statement "out->outlen = iVar2 + 1;" (assignment_expression "out->outlen = iVar2 + 1" (field_expression "out->outlen" identifier -> field_identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "puVar3[iVar2] = (uchar)out->outbits;" (assignment_expression "puVar3[iVar2] = (uchar)out->outbits" (subscript_expression "puVar3[iVar2]" identifier [ identifier ]) = (cast_expression "(uchar)out->outbits" ( (type_descriptor "uchar" type_identifier) ) (field_expression "out->outbits" identifier -> field_identifier))) ;) (expression_statement "uVar4 = out->outbits >> 8;" (assignment_expression "uVar4 = out->outbits >> 8" identifier = (binary_expression "out->outbits >> 8" (field_expression "out->outbits" identifier -> field_identifier) >> number_literal)) ;) (expression_statement "iVar2 = out->noutbits + -8;" (assignment_expression "iVar2 = out->noutbits + -8" identifier = (binary_expression "out->noutbits + -8" (field_expression "out->noutbits" identifier -> field_identifier) + number_literal)) ;) (expression_statement "out->outbits = uVar4;" (assignment_expression "out->outbits = uVar4" (field_expression "out->outbits" identifier -> field_identifier) = identifier) ;) (expression_statement "out->noutbits = iVar2;" (assignment_expression "out->noutbits = iVar2" (field_expression "out->noutbits" identifier -> field_identifier) = identifier) ;) (if_statement "if (iVar2 < 8) {\n        return;\n      }" if (parenthesized_expression "(iVar2 < 8)" ( (binary_expression "iVar2 < 8" identifier < number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "out->outlen = iVar2 + 1;" (assignment_expression "out->outlen = iVar2 + 1" (field_expression "out->outlen" identifier -> field_identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "out->outbuf[iVar2] = (uchar)uVar4;" (assignment_expression "out->outbuf[iVar2] = (uchar)uVar4" (subscript_expression "out->outbuf[iVar2]" (field_expression "out->outbuf" identifier -> field_identifier) [ identifier ]) = (cast_expression "(uchar)uVar4" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "uVar4 = out->outbits >> 8;" (assignment_expression "uVar4 = out->outbits >> 8" identifier = (binary_expression "out->outbits >> 8" (field_expression "out->outbits" identifier -> field_identifier) >> number_literal)) ;) (expression_statement "iVar2 = out->noutbits + -8;" (assignment_expression "iVar2 = out->noutbits + -8" identifier = (binary_expression "out->noutbits + -8" (field_expression "out->noutbits" identifier -> field_identifier) + number_literal)) ;) (expression_statement "out->outbits = uVar4;" (assignment_expression "out->outbits = uVar4" (field_expression "out->outbits" identifier -> field_identifier) = identifier) ;) (expression_statement "out->noutbits = iVar2;" (assignment_expression "out->noutbits = iVar2" (field_expression "out->noutbits" identifier -> field_identifier) = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void __regparm3 FUN_0007b450(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[4];\n  param_3 = iVar1 + param_3;\n  if (0x20 < param_3) {\n                    \n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }\n  param_1[4] = param_3;\n  uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];\n  param_1[3] = uVar3;\n  do {\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  } while( true );\n}\n\n" (function_definition "void __regparm3 FUN_0007b450(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[4];\n  param_3 = iVar1 + param_3;\n  if (0x20 < param_3) {\n                    \n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }\n  param_1[4] = param_3;\n  uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];\n  param_1[3] = uVar3;\n  do {\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  } while( true );\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0007b450(int *param_1,int param_2,int param_3)" identifier (parameter_list "(int *param_1,int param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[4];\n  param_3 = iVar1 + param_3;\n  if (0x20 < param_3) {\n                    \n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }\n  param_1[4] = param_3;\n  uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];\n  param_1[3] = uVar3;\n  do {\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  } while( true );\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = param_1[4];" (assignment_expression "iVar1 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "param_3 = iVar1 + param_3;" (assignment_expression "param_3 = iVar1 + param_3" identifier = (binary_expression "iVar1 + param_3" identifier + identifier)) ;) (if_statement "if (0x20 < param_3) {\n                    \n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }" if (parenthesized_expression "(0x20 < param_3)" ( (binary_expression "0x20 < param_3" number_literal < identifier) )) (compound_statement "{\n                    \n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }" { (expression_statement "__assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");" (call_expression "__assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits")" identifier (argument_list "("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits")" ( (string_literal ""out->noutbits + nbits <= 32"" " string_content ") , (string_literal ""sshzlib.c"" " string_content ") , number_literal , (string_literal ""outbits"" " string_content ") ))) ;) })) (expression_statement "param_1[4] = param_3;" (assignment_expression "param_1[4] = param_3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];" (assignment_expression "uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3]" identifier = (binary_expression "param_2 << ((byte)iVar1 & 0x1f) | param_1[3]" (binary_expression "param_2 << ((byte)iVar1 & 0x1f)" identifier << (parenthesized_expression "((byte)iVar1 & 0x1f)" ( (binary_expression "(byte)iVar1 & 0x1f" (cast_expression "(byte)iVar1" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) | (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (do_statement "do {\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  } while( true );" do (compound_statement "{\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  }" { (if_statement "if (param_3 < 8) {\n      return;\n    }" if (parenthesized_expression "(param_3 < 8)" ( (binary_expression "param_3 < 8" identifier < number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (while_statement "while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }" { (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar1 < param_1[2]) break;" if (parenthesized_expression "(iVar1 < param_1[2])" ( (binary_expression "iVar1 < param_1[2]" identifier < (subscript_expression "param_1[2]" identifier [ number_literal ])) )) (break_statement "break;" break ;)) (expression_statement "param_1[2] = iVar1 + 0x40;" (assignment_expression "param_1[2] = iVar1 + 0x40" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "iVar1 + 0x40" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);" (assignment_expression "iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1)" identifier = (call_expression "FUN_0001dc50(*param_1,iVar1 + 0x40,1)" identifier (argument_list "(*param_1,iVar1 + 0x40,1)" ( (pointer_expression "*param_1" * identifier) , (binary_expression "iVar1 + 0x40" identifier + number_literal) , number_literal )))) ;) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(char *)(iVar2 + iVar1) = (char)param_1[3];" (assignment_expression "*(char *)(iVar2 + iVar1) = (char)param_1[3]" (pointer_expression "*(char *)(iVar2 + iVar1)" * (cast_expression "(char *)(iVar2 + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar1)" ( (binary_expression "iVar2 + iVar1" identifier + identifier) )))) = (cast_expression "(char)param_1[3]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "iVar1 = param_1[4];" (assignment_expression "iVar1 = param_1[4]" identifier = (subscript_expression "param_1[4]" identifier [ number_literal ])) ;) (expression_statement "uVar3 = (uint)param_1[3] >> 8;" (assignment_expression "uVar3 = (uint)param_1[3] >> 8" identifier = (binary_expression "(uint)param_1[3] >> 8" (cast_expression "(uint)param_1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) >> number_literal)) ;) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = iVar1 + -8;" (assignment_expression "param_1[4] = iVar1 + -8" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (binary_expression "iVar1 + -8" identifier + number_literal)) ;) (if_statement "if (iVar1 + -8 < 8) {\n        return;\n      }" if (parenthesized_expression "(iVar1 + -8 < 8)" ( (binary_expression "iVar1 + -8 < 8" (binary_expression "iVar1 + -8" identifier + number_literal) < number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "*(char *)(*param_1 + iVar1) = (char)uVar3;" (assignment_expression "*(char *)(*param_1 + iVar1) = (char)uVar3" (pointer_expression "*(char *)(*param_1 + iVar1)" * (cast_expression "(char *)(*param_1 + iVar1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar1)" ( (binary_expression "*param_1 + iVar1" (pointer_expression "*param_1" * identifier) + identifier) )))) = (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "uVar3 = (uint)param_1[3] >> 8;" (assignment_expression "uVar3 = (uint)param_1[3] >> 8" identifier = (binary_expression "(uint)param_1[3] >> 8" (cast_expression "(uint)param_1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) >> number_literal)) ;) (expression_statement "param_3 = param_1[4] + -8;" (assignment_expression "param_3 = param_1[4] + -8" identifier = (binary_expression "param_1[4] + -8" (subscript_expression "param_1[4]" identifier [ number_literal ]) + number_literal)) ;) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = param_3;" (assignment_expression "param_1[4] = param_3" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) | (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (subscript_expression IDENT [ LIT ])) )) (break_statement break ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) >> LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < LIT) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void __regparm3 FUN_0007b450(int *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[4];\n  param_3 = iVar1 + param_3;\n  if (0x20 < param_3) {\n                    \n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }\n  param_1[4] = param_3;\n  uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];\n  param_1[3] = uVar3;\n  do {\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  } while( true );\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0007b450(int *param_1,int param_2,int param_3)" (identifier "FUN_0007b450") (parameter_list "(int *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (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")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = param_1[4];\n  param_3 = iVar1 + param_3;\n  if (0x20 < param_3) {\n                    \n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }\n  param_1[4] = param_3;\n  uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];\n  param_1[3] = uVar3;\n  do {\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  } while( true );\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "iVar1 = param_1[4];" (assignment_expression "iVar1 = param_1[4]" (identifier "iVar1") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "param_3 = iVar1 + param_3;" (assignment_expression "param_3 = iVar1 + param_3" (identifier "param_3") (= "=") (binary_expression "iVar1 + param_3" (identifier "iVar1") (+ "+") (identifier "param_3"))) (; ";")) (if_statement "if (0x20 < param_3) {\n                    \n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }" (if "if") (parenthesized_expression "(0x20 < param_3)" (( "(") (binary_expression "0x20 < param_3" (number_literal "0x20") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n                    \n    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");\n  }" ({ "{") (expression_statement "__assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");" (call_expression "__assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits")" (identifier "__assert_fail") (argument_list "("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits")" (( "(") (string_literal ""out->noutbits + nbits <= 32"" (" """) (string_content "out->noutbits + nbits <= 32") (" """)) (, ",") (string_literal ""sshzlib.c"" (" """) (string_content "sshzlib.c") (" """)) (, ",") (number_literal "0x17a") (, ",") (string_literal ""outbits"" (" """) (string_content "outbits") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "param_1[4] = param_3;" (assignment_expression "param_1[4] = param_3" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];" (assignment_expression "uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3]" (identifier "uVar3") (= "=") (binary_expression "param_2 << ((byte)iVar1 & 0x1f) | param_1[3]" (binary_expression "param_2 << ((byte)iVar1 & 0x1f)" (identifier "param_2") (<< "<<") (parenthesized_expression "((byte)iVar1 & 0x1f)" (( "(") (binary_expression "(byte)iVar1 & 0x1f" (cast_expression "(byte)iVar1" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "iVar1")) (& "&") (number_literal "0x1f")) () ")"))) (| "|") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (do_statement "do {\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  } while( true );" (do "do") (compound_statement "{\n    if (param_3 < 8) {\n      return;\n    }\n    while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }\n    param_1[1] = iVar1 + 1;\n    *(char *)(*param_1 + iVar1) = (char)uVar3;\n    uVar3 = (uint)param_1[3] >> 8;\n    param_3 = param_1[4] + -8;\n    param_1[3] = uVar3;\n    param_1[4] = param_3;\n  }" ({ "{") (if_statement "if (param_3 < 8) {\n      return;\n    }" (if "if") (parenthesized_expression "(param_3 < 8)" (( "(") (binary_expression "param_3 < 8" (identifier "param_3") (< "<") (number_literal "8")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (while_statement "while( true ) {\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar1 = param_1[1];\n      if (iVar1 < param_1[2]) break;\n      param_1[2] = iVar1 + 0x40;\n      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);\n      iVar1 = param_1[1];\n      *param_1 = iVar2;\n      param_1[1] = iVar1 + 1;\n      *(char *)(iVar2 + iVar1) = (char)param_1[3];\n      iVar1 = param_1[4];\n      uVar3 = (uint)param_1[3] >> 8;\n      param_1[3] = uVar3;\n      param_1[4] = iVar1 + -8;\n      if (iVar1 + -8 < 8) {\n        return;\n      }\n    }" ({ "{") (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (iVar1 < param_1[2]) break;" (if "if") (parenthesized_expression "(iVar1 < param_1[2])" (( "(") (binary_expression "iVar1 < param_1[2]" (identifier "iVar1") (< "<") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "param_1[2] = iVar1 + 0x40;" (assignment_expression "param_1[2] = iVar1 + 0x40" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "iVar1 + 0x40" (identifier "iVar1") (+ "+") (number_literal "0x40"))) (; ";")) (expression_statement "iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);" (assignment_expression "iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1)" (identifier "iVar2") (= "=") (call_expression "FUN_0001dc50(*param_1,iVar1 + 0x40,1)" (identifier "FUN_0001dc50") (argument_list "(*param_1,iVar1 + 0x40,1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (binary_expression "iVar1 + 0x40" (identifier "iVar1") (+ "+") (number_literal "0x40")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(char *)(iVar2 + iVar1) = (char)param_1[3];" (assignment_expression "*(char *)(iVar2 + iVar1) = (char)param_1[3]" (pointer_expression "*(char *)(iVar2 + iVar1)" (* "*") (cast_expression "(char *)(iVar2 + iVar1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar1)" (( "(") (binary_expression "iVar2 + iVar1" (identifier "iVar2") (+ "+") (identifier "iVar1")) () ")")))) (= "=") (cast_expression "(char)param_1[3]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "iVar1 = param_1[4];" (assignment_expression "iVar1 = param_1[4]" (identifier "iVar1") (= "=") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "uVar3 = (uint)param_1[3] >> 8;" (assignment_expression "uVar3 = (uint)param_1[3] >> 8" (identifier "uVar3") (= "=") (binary_expression "(uint)param_1[3] >> 8" (cast_expression "(uint)param_1[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (>> ">>") (number_literal "8"))) (; ";")) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "param_1[4] = iVar1 + -8;" (assignment_expression "param_1[4] = iVar1 + -8" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "iVar1 + -8" (identifier "iVar1") (+ "+") (number_literal "-8"))) (; ";")) (if_statement "if (iVar1 + -8 < 8) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar1 + -8 < 8)" (( "(") (binary_expression "iVar1 + -8 < 8" (binary_expression "iVar1 + -8" (identifier "iVar1") (+ "+") (number_literal "-8")) (< "<") (number_literal "8")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "param_1[1] = iVar1 + 1;" (assignment_expression "param_1[1] = iVar1 + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "iVar1 + 1" (identifier "iVar1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(char *)(*param_1 + iVar1) = (char)uVar3;" (assignment_expression "*(char *)(*param_1 + iVar1) = (char)uVar3" (pointer_expression "*(char *)(*param_1 + iVar1)" (* "*") (cast_expression "(char *)(*param_1 + iVar1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar1)" (( "(") (binary_expression "*param_1 + iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar1")) () ")")))) (= "=") (cast_expression "(char)uVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar3"))) (; ";")) (expression_statement "uVar3 = (uint)param_1[3] >> 8;" (assignment_expression "uVar3 = (uint)param_1[3] >> 8" (identifier "uVar3") (= "=") (binary_expression "(uint)param_1[3] >> 8" (cast_expression "(uint)param_1[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (>> ">>") (number_literal "8"))) (; ";")) (expression_statement "param_3 = param_1[4] + -8;" (assignment_expression "param_3 = param_1[4] + -8" (identifier "param_3") (= "=") (binary_expression "param_1[4] + -8" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "-8"))) (; ";")) (expression_statement "param_1[3] = uVar3;" (assignment_expression "param_1[3] = uVar3" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "param_1[4] = param_3;" (assignment_expression "param_1[4] = param_3" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 function_1(type_1 *out,type_2 var_5,int var_2)

{
  int var_1;
  int var_3;
  type_3 *puVar3;
  type_4 uVar4;
  
  var_1 = out->noutbits;
  var_3 = var_1 + var_2;
  if (0x20 < var_3) {
                    /* WARNING: Subroutine does not return */
    var_4("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");
  }
  out->noutbits = var_3;
  uVar4 = var_5 << ((type_5)var_1 & 0x1f) | out->function_1;
  out->function_1 = uVar4;
  do {
    if (var_3 < 8) {
      return;
    }
    while( true ) {
      var_3 = out->outlen;
      if (var_3 < out->outsize) break;
      out->outsize = var_3 + 0x40U;
      puVar3 = (type_3 *)var_6(out->outbuf,var_3 + 0x40U,1);
      var_3 = out->outlen;
      out->outbuf = puVar3;
      out->outlen = var_3 + 1;
      puVar3[var_3] = (type_3)out->function_1;
      uVar4 = out->function_1 >> 8;
      var_3 = out->noutbits + -8;
      out->function_1 = uVar4;
      out->noutbits = var_3;
      if (var_3 < 8) {
        return;
      }
    }
    out->outlen = var_3 + 1;
    out->outbuf[var_3] = (type_3)uVar4;
    uVar4 = out->function_1 >> 8;
    var_3 = out->noutbits + -8;
    out->function_1 = uVar4;
    out->noutbits = var_3;
  } while( true );
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) consequence: (break_statement)) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (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: (identifier))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (return_statement))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (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: (pointer_expression argument: (identifier)) right: (identifier))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) condition: (parenthesized_expression (true))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void __regparm3 MASKED(int *param_1,int param_2,int param_3)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  
  iVar1 = param_1[4];
  param_3 = iVar1 + param_3;
  if (0x20 < param_3) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("out->noutbits + nbits <= 32","sshzlib.c",0x17a,"outbits");
  }
  param_1[4] = param_3;
  uVar3 = param_2 << ((byte)iVar1 & 0x1f) | param_1[3];
  param_1[3] = uVar3;
  do {
    if (param_3 < 8) {
      return;
    }
    while( true ) {
      iVar1 = param_1[1];
      if (iVar1 < param_1[2]) break;
      param_1[2] = iVar1 + 0x40;
      iVar2 = FUN_0001dc50(*param_1,iVar1 + 0x40,1);
      iVar1 = param_1[1];
      *param_1 = iVar2;
      param_1[1] = iVar1 + 1;
      *(char *)(iVar2 + iVar1) = (char)param_1[3];
      iVar1 = param_1[4];
      uVar3 = (uint)param_1[3] >> 8;
      param_1[3] = uVar3;
      param_1[4] = iVar1 + -8;
      if (iVar1 + -8 < 8) {
        return;
      }
    }
    param_1[1] = iVar1 + 1;
    *(char *)(*param_1 + iVar1) = (char)uVar3;
    uVar3 = (uint)param_1[3] >> 8;
    param_3 = param_1[4] + -8;
    param_1[3] = uVar3;
    param_1[4] = param_3;
  } while( true );
}

