
void fillbuf(int n)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  uint uVar5;
  uint uVar7;
  uint uVar8;
  int iVar9;
  uint uVar10;
  ushort uVar6;
  
  puVar4 = PTR_DAT_000364c4;
  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);
  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (n & 0x1fU);
  uVar5 = uVar7 & 0xffff;
  uVar6 = (ushort)uVar7;
  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;
  puVar3 = PTR_inbuf_000363c0;
  puVar2 = PTR_insize_000363bc;
  puVar1 = PTR_inptr_000363b8;
  uVar7 = *(uint *)(puVar4 + -0x63a0);
  if (iVar9 < n) {
    do {
      while( true ) {
        n = n - iVar9;
        uVar8 = *(uint *)puVar1;
        uVar10 = *(uint *)puVar2;
        uVar5 = uVar5 | uVar7 << (n & 0x1fU) & 0xffff;
        *(short *)(puVar4 + -0x639c) = (short)uVar5;
        if (uVar10 <= uVar8) break;
        uVar7 = (uint)(byte)puVar3[uVar8];
        *(uint *)puVar1 = uVar8 + 1;
        *(uint *)(puVar4 + -0x63a0) = uVar7;
LAB_0001b9b0:
        uVar6 = (ushort)uVar5;
        *(undefined4 *)(puVar4 + -0x63a4) = 8;
        iVar9 = 8;
        if (n < 9) goto LAB_0001ba20;
      }
      uVar7 = fill_inbuf(1);
      uVar6 = *(ushort *)(puVar4 + -0x639c);
      uVar5 = (uint)uVar6;
      *(uint *)(puVar4 + -0x63a0) = uVar7;
      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;
      *(undefined4 *)(puVar4 + -0x63a0) = 0;
      uVar7 = 0;
      *(undefined4 *)(puVar4 + -0x63a4) = 8;
      iVar9 = 8;
    } while (8 < n);
  }
LAB_0001ba20:
  *(int *)(puVar4 + -0x63a4) = iVar9 - n;
  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - n & 0x1fU));
  return;
}



void FUN_0001b920(uint param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  uint uVar5;
  uint uVar7;
  uint uVar8;
  int iVar9;
  uint uVar10;
  ushort uVar6;
  
  puVar4 = PTR_DAT_000364c4;
  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);
  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);
  uVar5 = uVar7 & 0xffff;
  uVar6 = (ushort)uVar7;
  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;
  puVar3 = PTR_inbuf_000363c0;
  puVar2 = PTR_insize_000363bc;
  puVar1 = PTR_inptr_000363b8;
  uVar7 = *(uint *)(puVar4 + -0x63a0);
  if (iVar9 < (int)param_1) {
    do {
      while( true ) {
        param_1 = param_1 - iVar9;
        uVar8 = *(uint *)puVar1;
        uVar10 = *(uint *)puVar2;
        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;
        *(short *)(puVar4 + -0x639c) = (short)uVar5;
        if (uVar10 <= uVar8) break;
        uVar7 = (uint)(byte)puVar3[uVar8];
        *(uint *)puVar1 = uVar8 + 1;
        *(uint *)(puVar4 + -0x63a0) = uVar7;
LAB_0001b9b0:
        uVar6 = (ushort)uVar5;
        *(undefined4 *)(puVar4 + -0x63a4) = 8;
        iVar9 = 8;
        if ((int)param_1 < 9) goto LAB_0001ba20;
      }
      uVar7 = fill_inbuf(1);
      uVar6 = *(ushort *)(puVar4 + -0x639c);
      uVar5 = (uint)uVar6;
      *(uint *)(puVar4 + -0x63a0) = uVar7;
      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;
      *(undefined4 *)(puVar4 + -0x63a0) = 0;
      uVar7 = 0;
      *(undefined4 *)(puVar4 + -0x63a4) = 8;
      iVar9 = 8;
    } while (8 < (int)param_1);
  }
LAB_0001ba20:
  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;
  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));
  return;
}


lui gp,0x2
addiu gp,gp,0x2a40
addu gp,gp,t9
addiu sp,sp,-0x40
sw s2,0x20(sp)
sw s5,0x2c(sp)
sw s0,0x18(sp)
or s0,a0,zero
lw s2,-0x7e9c(gp)
lw s5,-0x7e9c(gp)
sw s4,0x28(sp)
sw gp,0x10(sp)
lhu a0,-0x639c(s2)
lw s4,-0x7e9c(gp)
lw a1,-0x63a4(s5)
sllv a0,a0,s0
sw ra,0x3c(sp)
sw s8,0x38(sp)
andi v1,a0,0xffff
sw s7,0x34(sp)
slt a2,a1,s0
sw s6,0x30(sp)
sw s3,0x24(sp)
sw s1,0x1c(sp)
sh v1,-0x639c(s2)
beq a2,zero,0x0001ba20
_lw v0,-0x63a0(s4)
lw s3,-0x7fa8(gp)
li s1,-0x1
lw s8,-0x7fa4(gp)
li s7,0x8
b 0x0001b9c0
_lw s6,-0x7fa0(gp)
lbu v0,0x0(a3)
sw a2,0x0(s3)
sw v0,-0x63a0(s4)
slti a0,s0,0x9
sw s7,-0x63a4(s5)
bne a0,zero,0x0001ba20
_li a1,0x8
subu s0,s0,a1
lw a0,0x0(s3)
lw a1,0x0(s8)
sllv v0,v0,s0
addu a3,s6,a0
or v1,v1,v0
addiu a2,a0,0x1
andi v1,v1,0xffff
sltu a0,a0,a1
bne a0,zero,0x0001b9a4
_sh v1,-0x639c(s2)
lw t9,-0x7f9c(gp)
bal 0x0001e6c8
_li a0,0x1
lw gp,0x10(sp)
lhu v1,-0x639c(s2)
bne v0,s1,0x0001b9b0
_sw v0,-0x63a0(s4)
slti a0,s0,0x9
sw zero,-0x63a0(s4)
or v0,zero,zero
sw s7,-0x63a4(s5)
beq a0,zero,0x0001b9c0
_li a1,0x8
subu s0,a1,s0
lw ra,0x3c(sp)
lw s8,0x38(sp)
srlv v0,v0,s0
lw s7,0x34(sp)
lw s6,0x30(sp)
or v1,v1,v0
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s1,0x1c(sp)
sw s0,-0x63a4(s5)
sh v1,-0x639c(s2)
lw s5,0x2c(sp)
lw s2,0x20(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x40
(translation_unit "void FUN_0001b920(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  ushort uVar6;\n  \n  puVar4 = PTR_DAT_000364c4;\n  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);\n  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);\n  uVar5 = uVar7 & 0xffff;\n  uVar6 = (ushort)uVar7;\n  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;\n  puVar3 = PTR_inbuf_000363c0;\n  puVar2 = PTR_insize_000363bc;\n  puVar1 = PTR_inptr_000363b8;\n  uVar7 = *(uint *)(puVar4 + -0x63a0);\n  if (iVar9 < (int)param_1) {\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }\nLAB_0001ba20:\n  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;\n  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));\n  return;\n}\n\n" (function_definition "void FUN_0001b920(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  ushort uVar6;\n  \n  puVar4 = PTR_DAT_000364c4;\n  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);\n  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);\n  uVar5 = uVar7 & 0xffff;\n  uVar6 = (ushort)uVar7;\n  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;\n  puVar3 = PTR_inbuf_000363c0;\n  puVar2 = PTR_insize_000363bc;\n  puVar1 = PTR_inptr_000363b8;\n  uVar7 = *(uint *)(puVar4 + -0x63a0);\n  if (iVar9 < (int)param_1) {\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }\nLAB_0001ba20:\n  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;\n  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));\n  return;\n}" primitive_type (function_declarator "FUN_0001b920(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  ushort uVar6;\n  \n  puVar4 = PTR_DAT_000364c4;\n  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);\n  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);\n  uVar5 = uVar7 & 0xffff;\n  uVar6 = (ushort)uVar7;\n  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;\n  puVar3 = PTR_inbuf_000363c0;\n  puVar2 = PTR_insize_000363bc;\n  puVar1 = PTR_inptr_000363b8;\n  uVar7 = *(uint *)(puVar4 + -0x63a0);\n  if (iVar9 < (int)param_1) {\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }\nLAB_0001ba20:\n  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;\n  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "ushort uVar6;" type_identifier identifier ;) (expression_statement "puVar4 = PTR_DAT_000364c4;" (assignment_expression "puVar4 = PTR_DAT_000364c4" identifier = identifier) ;) (expression_statement "iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);" (assignment_expression "iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4)" identifier = (pointer_expression "*(int *)(PTR_DAT_000364c4 + -0x63a4)" * (cast_expression "(int *)(PTR_DAT_000364c4 + -0x63a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000364c4 + -0x63a4)" ( (binary_expression "PTR_DAT_000364c4 + -0x63a4" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);" (assignment_expression "uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f)" identifier = (binary_expression "(uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f)" (binary_expression "(uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(PTR_DAT_000364c4 + -0x639c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000364c4 + -0x639c)" ( (binary_expression "PTR_DAT_000364c4 + -0x639c" identifier + number_literal) )))) << (parenthesized_expression "(param_1 & 0x1f)" ( (binary_expression "param_1 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar5 = uVar7 & 0xffff;" (assignment_expression "uVar5 = uVar7 & 0xffff" identifier = (binary_expression "uVar7 & 0xffff" identifier & number_literal)) ;) (expression_statement "uVar6 = (ushort)uVar7;" (assignment_expression "uVar6 = (ushort)uVar7" identifier = (cast_expression "(ushort)uVar7" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "*(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;" (assignment_expression "*(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6" (pointer_expression "*(ushort *)(PTR_DAT_000364c4 + -0x639c)" * (cast_expression "(ushort *)(PTR_DAT_000364c4 + -0x639c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000364c4 + -0x639c)" ( (binary_expression "PTR_DAT_000364c4 + -0x639c" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar3 = PTR_inbuf_000363c0;" (assignment_expression "puVar3 = PTR_inbuf_000363c0" identifier = identifier) ;) (expression_statement "puVar2 = PTR_insize_000363bc;" (assignment_expression "puVar2 = PTR_insize_000363bc" identifier = identifier) ;) (expression_statement "puVar1 = PTR_inptr_000363b8;" (assignment_expression "puVar1 = PTR_inptr_000363b8" identifier = identifier) ;) (expression_statement "uVar7 = *(uint *)(puVar4 + -0x63a0);" (assignment_expression "uVar7 = *(uint *)(puVar4 + -0x63a0)" identifier = (pointer_expression "*(uint *)(puVar4 + -0x63a0)" * (cast_expression "(uint *)(puVar4 + -0x63a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a0)" ( (binary_expression "puVar4 + -0x63a0" identifier + number_literal) ))))) ;) (if_statement "if (iVar9 < (int)param_1) {\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }" if (parenthesized_expression "(iVar9 < (int)param_1)" ( (binary_expression "iVar9 < (int)param_1" identifier < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }" { (do_statement "do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);" do (compound_statement "{\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    }" { (while_statement "while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }" { (expression_statement "param_1 = param_1 - iVar9;" (assignment_expression "param_1 = param_1 - iVar9" identifier = (binary_expression "param_1 - iVar9" identifier - identifier)) ;) (expression_statement "uVar8 = *(uint *)puVar1;" (assignment_expression "uVar8 = *(uint *)puVar1" identifier = (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar10 = *(uint *)puVar2;" (assignment_expression "uVar10 = *(uint *)puVar2" identifier = (pointer_expression "*(uint *)puVar2" * (cast_expression "(uint *)puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;" (assignment_expression "uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff" identifier = (binary_expression "uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff" identifier | (binary_expression "uVar7 << (param_1 & 0x1f) & 0xffff" (binary_expression "uVar7 << (param_1 & 0x1f)" identifier << (parenthesized_expression "(param_1 & 0x1f)" ( (binary_expression "param_1 & 0x1f" identifier & number_literal) ))) & number_literal))) ;) (expression_statement "*(short *)(puVar4 + -0x639c) = (short)uVar5;" (assignment_expression "*(short *)(puVar4 + -0x639c) = (short)uVar5" (pointer_expression "*(short *)(puVar4 + -0x639c)" * (cast_expression "(short *)(puVar4 + -0x639c)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x639c)" ( (binary_expression "puVar4 + -0x639c" identifier + number_literal) )))) = (cast_expression "(short)uVar5" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (if_statement "if (uVar10 <= uVar8) break;" if (parenthesized_expression "(uVar10 <= uVar8)" ( (binary_expression "uVar10 <= uVar8" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar7 = (uint)(byte)puVar3[uVar8];" (assignment_expression "uVar7 = (uint)(byte)puVar3[uVar8]" identifier = (cast_expression "(uint)(byte)puVar3[uVar8]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar3[uVar8]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar3[uVar8]" identifier [ identifier ])))) ;) (expression_statement "*(uint *)puVar1 = uVar8 + 1;" (assignment_expression "*(uint *)puVar1 = uVar8 + 1" (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(puVar4 + -0x63a0) = uVar7;" (assignment_expression "*(uint *)(puVar4 + -0x63a0) = uVar7" (pointer_expression "*(uint *)(puVar4 + -0x63a0)" * (cast_expression "(uint *)(puVar4 + -0x63a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a0)" ( (binary_expression "puVar4 + -0x63a0" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0001b9b0:\n        uVar6 = (ushort)uVar5;" statement_identifier : (expression_statement "uVar6 = (ushort)uVar5;" (assignment_expression "uVar6 = (ushort)uVar5" identifier = (cast_expression "(ushort)uVar5" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;)) (expression_statement "*(undefined4 *)(puVar4 + -0x63a4) = 8;" (assignment_expression "*(undefined4 *)(puVar4 + -0x63a4) = 8" (pointer_expression "*(undefined4 *)(puVar4 + -0x63a4)" * (cast_expression "(undefined4 *)(puVar4 + -0x63a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a4)" ( (binary_expression "puVar4 + -0x63a4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;) (if_statement "if ((int)param_1 < 9) goto LAB_0001ba20;" if (parenthesized_expression "((int)param_1 < 9)" ( (binary_expression "(int)param_1 < 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_0001ba20;" goto statement_identifier ;)) })) (expression_statement "uVar7 = fill_inbuf(1);" (assignment_expression "uVar7 = fill_inbuf(1)" identifier = (call_expression "fill_inbuf(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (expression_statement "uVar6 = *(ushort *)(puVar4 + -0x639c);" (assignment_expression "uVar6 = *(ushort *)(puVar4 + -0x639c)" identifier = (pointer_expression "*(ushort *)(puVar4 + -0x639c)" * (cast_expression "(ushort *)(puVar4 + -0x639c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x639c)" ( (binary_expression "puVar4 + -0x639c" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = (uint)uVar6;" (assignment_expression "uVar5 = (uint)uVar6" identifier = (cast_expression "(uint)uVar6" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*(uint *)(puVar4 + -0x63a0) = uVar7;" (assignment_expression "*(uint *)(puVar4 + -0x63a0) = uVar7" (pointer_expression "*(uint *)(puVar4 + -0x63a0)" * (cast_expression "(uint *)(puVar4 + -0x63a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a0)" ( (binary_expression "puVar4 + -0x63a0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (uVar7 != 0xffffffff) goto LAB_0001b9b0;" if (parenthesized_expression "(uVar7 != 0xffffffff)" ( (binary_expression "uVar7 != 0xffffffff" identifier != number_literal) )) (goto_statement "goto LAB_0001b9b0;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(puVar4 + -0x63a0) = 0;" (assignment_expression "*(undefined4 *)(puVar4 + -0x63a0) = 0" (pointer_expression "*(undefined4 *)(puVar4 + -0x63a0)" * (cast_expression "(undefined4 *)(puVar4 + -0x63a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a0)" ( (binary_expression "puVar4 + -0x63a0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(puVar4 + -0x63a4) = 8;" (assignment_expression "*(undefined4 *)(puVar4 + -0x63a4) = 8" (pointer_expression "*(undefined4 *)(puVar4 + -0x63a4)" * (cast_expression "(undefined4 *)(puVar4 + -0x63a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a4)" ( (binary_expression "puVar4 + -0x63a4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;) }) while (parenthesized_expression "(8 < (int)param_1)" ( (binary_expression "8 < (int)param_1" number_literal < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (labeled_statement "LAB_0001ba20:\n  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;" statement_identifier : (expression_statement "*(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;" (assignment_expression "*(uint *)(puVar4 + -0x63a4) = iVar9 - param_1" (pointer_expression "*(uint *)(puVar4 + -0x63a4)" * (cast_expression "(uint *)(puVar4 + -0x63a4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a4)" ( (binary_expression "puVar4 + -0x63a4" identifier + number_literal) )))) = (binary_expression "iVar9 - param_1" identifier - identifier)) ;)) (expression_statement "*(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));" (assignment_expression "*(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f))" (pointer_expression "*(ushort *)(puVar4 + -0x639c)" * (cast_expression "(ushort *)(puVar4 + -0x639c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x639c)" ( (binary_expression "puVar4 + -0x639c" identifier + number_literal) )))) = (binary_expression "uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f))" identifier | (call_expression "(ushort)(uVar7 >> (iVar9 - param_1 & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar7 >> (iVar9 - param_1 & 0x1f))" ( (binary_expression "uVar7 >> (iVar9 - param_1 & 0x1f)" identifier >> (parenthesized_expression "(iVar9 - param_1 & 0x1f)" ( (binary_expression "iVar9 - param_1 & 0x1f" (binary_expression "iVar9 - param_1" identifier - identifier) & number_literal) ))) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit "void fillbuf(int n)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  ushort uVar6;\n  \n  puVar4 = PTR_DAT_000364c4;\n  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);\n  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (n & 0x1fU);\n  uVar5 = uVar7 & 0xffff;\n  uVar6 = (ushort)uVar7;\n  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;\n  puVar3 = PTR_inbuf_000363c0;\n  puVar2 = PTR_insize_000363bc;\n  puVar1 = PTR_inptr_000363b8;\n  uVar7 = *(uint *)(puVar4 + -0x63a0);\n  if (iVar9 < n) {\n    do {\n      while( true ) {\n        n = n - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (n & 0x1fU) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if (n < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < n);\n  }\nLAB_0001ba20:\n  *(int *)(puVar4 + -0x63a4) = iVar9 - n;\n  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - n & 0x1fU));\n  return;\n}\n\n" (function_definition "void fillbuf(int n)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  ushort uVar6;\n  \n  puVar4 = PTR_DAT_000364c4;\n  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);\n  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (n & 0x1fU);\n  uVar5 = uVar7 & 0xffff;\n  uVar6 = (ushort)uVar7;\n  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;\n  puVar3 = PTR_inbuf_000363c0;\n  puVar2 = PTR_insize_000363bc;\n  puVar1 = PTR_inptr_000363b8;\n  uVar7 = *(uint *)(puVar4 + -0x63a0);\n  if (iVar9 < n) {\n    do {\n      while( true ) {\n        n = n - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (n & 0x1fU) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if (n < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < n);\n  }\nLAB_0001ba20:\n  *(int *)(puVar4 + -0x63a4) = iVar9 - n;\n  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - n & 0x1fU));\n  return;\n}" primitive_type (function_declarator "fillbuf(int n)" identifier (parameter_list "(int n)" ( (parameter_declaration "int n" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  ushort uVar6;\n  \n  puVar4 = PTR_DAT_000364c4;\n  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);\n  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (n & 0x1fU);\n  uVar5 = uVar7 & 0xffff;\n  uVar6 = (ushort)uVar7;\n  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;\n  puVar3 = PTR_inbuf_000363c0;\n  puVar2 = PTR_insize_000363bc;\n  puVar1 = PTR_inptr_000363b8;\n  uVar7 = *(uint *)(puVar4 + -0x63a0);\n  if (iVar9 < n) {\n    do {\n      while( true ) {\n        n = n - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (n & 0x1fU) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if (n < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < n);\n  }\nLAB_0001ba20:\n  *(int *)(puVar4 + -0x63a4) = iVar9 - n;\n  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - n & 0x1fU));\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "ushort uVar6;" type_identifier identifier ;) (expression_statement "puVar4 = PTR_DAT_000364c4;" (assignment_expression "puVar4 = PTR_DAT_000364c4" identifier = identifier) ;) (expression_statement "iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);" (assignment_expression "iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4)" identifier = (pointer_expression "*(int *)(PTR_DAT_000364c4 + -0x63a4)" * (cast_expression "(int *)(PTR_DAT_000364c4 + -0x63a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000364c4 + -0x63a4)" ( (binary_expression "PTR_DAT_000364c4 + -0x63a4" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (n & 0x1fU);" (assignment_expression "uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (n & 0x1fU)" identifier = (binary_expression "(uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (n & 0x1fU)" (binary_expression "(uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(PTR_DAT_000364c4 + -0x639c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000364c4 + -0x639c)" ( (binary_expression "PTR_DAT_000364c4 + -0x639c" identifier + number_literal) )))) << (parenthesized_expression "(n & 0x1fU)" ( (binary_expression "n & 0x1fU" identifier & number_literal) )))) ;) (expression_statement "uVar5 = uVar7 & 0xffff;" (assignment_expression "uVar5 = uVar7 & 0xffff" identifier = (binary_expression "uVar7 & 0xffff" identifier & number_literal)) ;) (expression_statement "uVar6 = (ushort)uVar7;" (assignment_expression "uVar6 = (ushort)uVar7" identifier = (cast_expression "(ushort)uVar7" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "*(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;" (assignment_expression "*(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6" (pointer_expression "*(ushort *)(PTR_DAT_000364c4 + -0x639c)" * (cast_expression "(ushort *)(PTR_DAT_000364c4 + -0x639c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000364c4 + -0x639c)" ( (binary_expression "PTR_DAT_000364c4 + -0x639c" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar3 = PTR_inbuf_000363c0;" (assignment_expression "puVar3 = PTR_inbuf_000363c0" identifier = identifier) ;) (expression_statement "puVar2 = PTR_insize_000363bc;" (assignment_expression "puVar2 = PTR_insize_000363bc" identifier = identifier) ;) (expression_statement "puVar1 = PTR_inptr_000363b8;" (assignment_expression "puVar1 = PTR_inptr_000363b8" identifier = identifier) ;) (expression_statement "uVar7 = *(uint *)(puVar4 + -0x63a0);" (assignment_expression "uVar7 = *(uint *)(puVar4 + -0x63a0)" identifier = (pointer_expression "*(uint *)(puVar4 + -0x63a0)" * (cast_expression "(uint *)(puVar4 + -0x63a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a0)" ( (binary_expression "puVar4 + -0x63a0" identifier + number_literal) ))))) ;) (if_statement "if (iVar9 < n) {\n    do {\n      while( true ) {\n        n = n - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (n & 0x1fU) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if (n < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < n);\n  }" if (parenthesized_expression "(iVar9 < n)" ( (binary_expression "iVar9 < n" identifier < identifier) )) (compound_statement "{\n    do {\n      while( true ) {\n        n = n - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (n & 0x1fU) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if (n < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < n);\n  }" { (do_statement "do {\n      while( true ) {\n        n = n - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (n & 0x1fU) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if (n < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < n);" do (compound_statement "{\n      while( true ) {\n        n = n - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (n & 0x1fU) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if (n < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    }" { (while_statement "while( true ) {\n        n = n - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (n & 0x1fU) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if (n < 9) goto LAB_0001ba20;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        n = n - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (n & 0x1fU) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if (n < 9) goto LAB_0001ba20;\n      }" { (expression_statement "n = n - iVar9;" (assignment_expression "n = n - iVar9" identifier = (binary_expression "n - iVar9" identifier - identifier)) ;) (expression_statement "uVar8 = *(uint *)puVar1;" (assignment_expression "uVar8 = *(uint *)puVar1" identifier = (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar10 = *(uint *)puVar2;" (assignment_expression "uVar10 = *(uint *)puVar2" identifier = (pointer_expression "*(uint *)puVar2" * (cast_expression "(uint *)puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar5 = uVar5 | uVar7 << (n & 0x1fU) & 0xffff;" (assignment_expression "uVar5 = uVar5 | uVar7 << (n & 0x1fU) & 0xffff" identifier = (binary_expression "uVar5 | uVar7 << (n & 0x1fU) & 0xffff" identifier | (binary_expression "uVar7 << (n & 0x1fU) & 0xffff" (binary_expression "uVar7 << (n & 0x1fU)" identifier << (parenthesized_expression "(n & 0x1fU)" ( (binary_expression "n & 0x1fU" identifier & number_literal) ))) & number_literal))) ;) (expression_statement "*(short *)(puVar4 + -0x639c) = (short)uVar5;" (assignment_expression "*(short *)(puVar4 + -0x639c) = (short)uVar5" (pointer_expression "*(short *)(puVar4 + -0x639c)" * (cast_expression "(short *)(puVar4 + -0x639c)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x639c)" ( (binary_expression "puVar4 + -0x639c" identifier + number_literal) )))) = (cast_expression "(short)uVar5" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (if_statement "if (uVar10 <= uVar8) break;" if (parenthesized_expression "(uVar10 <= uVar8)" ( (binary_expression "uVar10 <= uVar8" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar7 = (uint)(byte)puVar3[uVar8];" (assignment_expression "uVar7 = (uint)(byte)puVar3[uVar8]" identifier = (cast_expression "(uint)(byte)puVar3[uVar8]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar3[uVar8]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar3[uVar8]" identifier [ identifier ])))) ;) (expression_statement "*(uint *)puVar1 = uVar8 + 1;" (assignment_expression "*(uint *)puVar1 = uVar8 + 1" (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(puVar4 + -0x63a0) = uVar7;" (assignment_expression "*(uint *)(puVar4 + -0x63a0) = uVar7" (pointer_expression "*(uint *)(puVar4 + -0x63a0)" * (cast_expression "(uint *)(puVar4 + -0x63a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a0)" ( (binary_expression "puVar4 + -0x63a0" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0001b9b0:\n        uVar6 = (ushort)uVar5;" statement_identifier : (expression_statement "uVar6 = (ushort)uVar5;" (assignment_expression "uVar6 = (ushort)uVar5" identifier = (cast_expression "(ushort)uVar5" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;)) (expression_statement "*(undefined4 *)(puVar4 + -0x63a4) = 8;" (assignment_expression "*(undefined4 *)(puVar4 + -0x63a4) = 8" (pointer_expression "*(undefined4 *)(puVar4 + -0x63a4)" * (cast_expression "(undefined4 *)(puVar4 + -0x63a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a4)" ( (binary_expression "puVar4 + -0x63a4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;) (if_statement "if (n < 9) goto LAB_0001ba20;" if (parenthesized_expression "(n < 9)" ( (binary_expression "n < 9" identifier < number_literal) )) (goto_statement "goto LAB_0001ba20;" goto statement_identifier ;)) })) (expression_statement "uVar7 = fill_inbuf(1);" (assignment_expression "uVar7 = fill_inbuf(1)" identifier = (call_expression "fill_inbuf(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (expression_statement "uVar6 = *(ushort *)(puVar4 + -0x639c);" (assignment_expression "uVar6 = *(ushort *)(puVar4 + -0x639c)" identifier = (pointer_expression "*(ushort *)(puVar4 + -0x639c)" * (cast_expression "(ushort *)(puVar4 + -0x639c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x639c)" ( (binary_expression "puVar4 + -0x639c" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = (uint)uVar6;" (assignment_expression "uVar5 = (uint)uVar6" identifier = (cast_expression "(uint)uVar6" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*(uint *)(puVar4 + -0x63a0) = uVar7;" (assignment_expression "*(uint *)(puVar4 + -0x63a0) = uVar7" (pointer_expression "*(uint *)(puVar4 + -0x63a0)" * (cast_expression "(uint *)(puVar4 + -0x63a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a0)" ( (binary_expression "puVar4 + -0x63a0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (uVar7 != 0xffffffff) goto LAB_0001b9b0;" if (parenthesized_expression "(uVar7 != 0xffffffff)" ( (binary_expression "uVar7 != 0xffffffff" identifier != number_literal) )) (goto_statement "goto LAB_0001b9b0;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(puVar4 + -0x63a0) = 0;" (assignment_expression "*(undefined4 *)(puVar4 + -0x63a0) = 0" (pointer_expression "*(undefined4 *)(puVar4 + -0x63a0)" * (cast_expression "(undefined4 *)(puVar4 + -0x63a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a0)" ( (binary_expression "puVar4 + -0x63a0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(puVar4 + -0x63a4) = 8;" (assignment_expression "*(undefined4 *)(puVar4 + -0x63a4) = 8" (pointer_expression "*(undefined4 *)(puVar4 + -0x63a4)" * (cast_expression "(undefined4 *)(puVar4 + -0x63a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a4)" ( (binary_expression "puVar4 + -0x63a4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;) }) while (parenthesized_expression "(8 < n)" ( (binary_expression "8 < n" number_literal < identifier) )) ;) })) (labeled_statement "LAB_0001ba20:\n  *(int *)(puVar4 + -0x63a4) = iVar9 - n;" statement_identifier : (expression_statement "*(int *)(puVar4 + -0x63a4) = iVar9 - n;" (assignment_expression "*(int *)(puVar4 + -0x63a4) = iVar9 - n" (pointer_expression "*(int *)(puVar4 + -0x63a4)" * (cast_expression "(int *)(puVar4 + -0x63a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a4)" ( (binary_expression "puVar4 + -0x63a4" identifier + number_literal) )))) = (binary_expression "iVar9 - n" identifier - identifier)) ;)) (expression_statement "*(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - n & 0x1fU));" (assignment_expression "*(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - n & 0x1fU))" (pointer_expression "*(ushort *)(puVar4 + -0x639c)" * (cast_expression "(ushort *)(puVar4 + -0x639c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x639c)" ( (binary_expression "puVar4 + -0x639c" identifier + number_literal) )))) = (binary_expression "uVar6 | (ushort)(uVar7 >> (iVar9 - n & 0x1fU))" identifier | (call_expression "(ushort)(uVar7 >> (iVar9 - n & 0x1fU))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar7 >> (iVar9 - n & 0x1fU))" ( (binary_expression "uVar7 >> (iVar9 - n & 0x1fU)" identifier >> (parenthesized_expression "(iVar9 - n & 0x1fU)" ( (binary_expression "iVar9 - n & 0x1fU" (binary_expression "iVar9 - n" identifier - identifier) & number_literal) ))) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0001b920(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  ushort uVar6;\n  \n  puVar4 = PTR_DAT_000364c4;\n  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);\n  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);\n  uVar5 = uVar7 & 0xffff;\n  uVar6 = (ushort)uVar7;\n  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;\n  puVar3 = PTR_inbuf_000363c0;\n  puVar2 = PTR_insize_000363bc;\n  puVar1 = PTR_inptr_000363b8;\n  uVar7 = *(uint *)(puVar4 + -0x63a0);\n  if (iVar9 < (int)param_1) {\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }\nLAB_0001ba20:\n  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;\n  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));\n  return;\n}\n\n" (function_definition "void FUN_0001b920(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  ushort uVar6;\n  \n  puVar4 = PTR_DAT_000364c4;\n  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);\n  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);\n  uVar5 = uVar7 & 0xffff;\n  uVar6 = (ushort)uVar7;\n  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;\n  puVar3 = PTR_inbuf_000363c0;\n  puVar2 = PTR_insize_000363bc;\n  puVar1 = PTR_inptr_000363b8;\n  uVar7 = *(uint *)(puVar4 + -0x63a0);\n  if (iVar9 < (int)param_1) {\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }\nLAB_0001ba20:\n  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;\n  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));\n  return;\n}" primitive_type (function_declarator "FUN_0001b920(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  ushort uVar6;\n  \n  puVar4 = PTR_DAT_000364c4;\n  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);\n  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);\n  uVar5 = uVar7 & 0xffff;\n  uVar6 = (ushort)uVar7;\n  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;\n  puVar3 = PTR_inbuf_000363c0;\n  puVar2 = PTR_insize_000363bc;\n  puVar1 = PTR_inptr_000363b8;\n  uVar7 = *(uint *)(puVar4 + -0x63a0);\n  if (iVar9 < (int)param_1) {\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }\nLAB_0001ba20:\n  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;\n  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "ushort uVar6;" type_identifier identifier ;) (expression_statement "puVar4 = PTR_DAT_000364c4;" (assignment_expression "puVar4 = PTR_DAT_000364c4" identifier = identifier) ;) (expression_statement "iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);" (assignment_expression "iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4)" identifier = (pointer_expression "*(int *)(PTR_DAT_000364c4 + -0x63a4)" * (cast_expression "(int *)(PTR_DAT_000364c4 + -0x63a4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000364c4 + -0x63a4)" ( (binary_expression "PTR_DAT_000364c4 + -0x63a4" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);" (assignment_expression "uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f)" identifier = (binary_expression "(uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f)" (binary_expression "(uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(PTR_DAT_000364c4 + -0x639c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000364c4 + -0x639c)" ( (binary_expression "PTR_DAT_000364c4 + -0x639c" identifier + number_literal) )))) << (parenthesized_expression "(param_1 & 0x1f)" ( (binary_expression "param_1 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "uVar5 = uVar7 & 0xffff;" (assignment_expression "uVar5 = uVar7 & 0xffff" identifier = (binary_expression "uVar7 & 0xffff" identifier & number_literal)) ;) (expression_statement "uVar6 = (ushort)uVar7;" (assignment_expression "uVar6 = (ushort)uVar7" identifier = (cast_expression "(ushort)uVar7" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "*(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;" (assignment_expression "*(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6" (pointer_expression "*(ushort *)(PTR_DAT_000364c4 + -0x639c)" * (cast_expression "(ushort *)(PTR_DAT_000364c4 + -0x639c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000364c4 + -0x639c)" ( (binary_expression "PTR_DAT_000364c4 + -0x639c" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar3 = PTR_inbuf_000363c0;" (assignment_expression "puVar3 = PTR_inbuf_000363c0" identifier = identifier) ;) (expression_statement "puVar2 = PTR_insize_000363bc;" (assignment_expression "puVar2 = PTR_insize_000363bc" identifier = identifier) ;) (expression_statement "puVar1 = PTR_inptr_000363b8;" (assignment_expression "puVar1 = PTR_inptr_000363b8" identifier = identifier) ;) (expression_statement "uVar7 = *(uint *)(puVar4 + -0x63a0);" (assignment_expression "uVar7 = *(uint *)(puVar4 + -0x63a0)" identifier = (pointer_expression "*(uint *)(puVar4 + -0x63a0)" * (cast_expression "(uint *)(puVar4 + -0x63a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a0)" ( (binary_expression "puVar4 + -0x63a0" identifier + number_literal) ))))) ;) (if_statement "if (iVar9 < (int)param_1) {\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }" if (parenthesized_expression "(iVar9 < (int)param_1)" ( (binary_expression "iVar9 < (int)param_1" identifier < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }" { (do_statement "do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);" do (compound_statement "{\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    }" { (while_statement "while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }" { (expression_statement "param_1 = param_1 - iVar9;" (assignment_expression "param_1 = param_1 - iVar9" identifier = (binary_expression "param_1 - iVar9" identifier - identifier)) ;) (expression_statement "uVar8 = *(uint *)puVar1;" (assignment_expression "uVar8 = *(uint *)puVar1" identifier = (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar10 = *(uint *)puVar2;" (assignment_expression "uVar10 = *(uint *)puVar2" identifier = (pointer_expression "*(uint *)puVar2" * (cast_expression "(uint *)puVar2" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;" (assignment_expression "uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff" identifier = (binary_expression "uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff" identifier | (binary_expression "uVar7 << (param_1 & 0x1f) & 0xffff" (binary_expression "uVar7 << (param_1 & 0x1f)" identifier << (parenthesized_expression "(param_1 & 0x1f)" ( (binary_expression "param_1 & 0x1f" identifier & number_literal) ))) & number_literal))) ;) (expression_statement "*(short *)(puVar4 + -0x639c) = (short)uVar5;" (assignment_expression "*(short *)(puVar4 + -0x639c) = (short)uVar5" (pointer_expression "*(short *)(puVar4 + -0x639c)" * (cast_expression "(short *)(puVar4 + -0x639c)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x639c)" ( (binary_expression "puVar4 + -0x639c" identifier + number_literal) )))) = (cast_expression "(short)uVar5" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (if_statement "if (uVar10 <= uVar8) break;" if (parenthesized_expression "(uVar10 <= uVar8)" ( (binary_expression "uVar10 <= uVar8" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar7 = (uint)(byte)puVar3[uVar8];" (assignment_expression "uVar7 = (uint)(byte)puVar3[uVar8]" identifier = (cast_expression "(uint)(byte)puVar3[uVar8]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar3[uVar8]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar3[uVar8]" identifier [ identifier ])))) ;) (expression_statement "*(uint *)puVar1 = uVar8 + 1;" (assignment_expression "*(uint *)puVar1 = uVar8 + 1" (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (expression_statement "*(uint *)(puVar4 + -0x63a0) = uVar7;" (assignment_expression "*(uint *)(puVar4 + -0x63a0) = uVar7" (pointer_expression "*(uint *)(puVar4 + -0x63a0)" * (cast_expression "(uint *)(puVar4 + -0x63a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a0)" ( (binary_expression "puVar4 + -0x63a0" identifier + number_literal) )))) = identifier) ;) (labeled_statement "LAB_0001b9b0:\n        uVar6 = (ushort)uVar5;" statement_identifier : (expression_statement "uVar6 = (ushort)uVar5;" (assignment_expression "uVar6 = (ushort)uVar5" identifier = (cast_expression "(ushort)uVar5" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;)) (expression_statement "*(undefined4 *)(puVar4 + -0x63a4) = 8;" (assignment_expression "*(undefined4 *)(puVar4 + -0x63a4) = 8" (pointer_expression "*(undefined4 *)(puVar4 + -0x63a4)" * (cast_expression "(undefined4 *)(puVar4 + -0x63a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a4)" ( (binary_expression "puVar4 + -0x63a4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;) (if_statement "if ((int)param_1 < 9) goto LAB_0001ba20;" if (parenthesized_expression "((int)param_1 < 9)" ( (binary_expression "(int)param_1 < 9" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_0001ba20;" goto statement_identifier ;)) })) (expression_statement "uVar7 = fill_inbuf(1);" (assignment_expression "uVar7 = fill_inbuf(1)" identifier = (call_expression "fill_inbuf(1)" identifier (argument_list "(1)" ( number_literal )))) ;) (expression_statement "uVar6 = *(ushort *)(puVar4 + -0x639c);" (assignment_expression "uVar6 = *(ushort *)(puVar4 + -0x639c)" identifier = (pointer_expression "*(ushort *)(puVar4 + -0x639c)" * (cast_expression "(ushort *)(puVar4 + -0x639c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x639c)" ( (binary_expression "puVar4 + -0x639c" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = (uint)uVar6;" (assignment_expression "uVar5 = (uint)uVar6" identifier = (cast_expression "(uint)uVar6" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "*(uint *)(puVar4 + -0x63a0) = uVar7;" (assignment_expression "*(uint *)(puVar4 + -0x63a0) = uVar7" (pointer_expression "*(uint *)(puVar4 + -0x63a0)" * (cast_expression "(uint *)(puVar4 + -0x63a0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a0)" ( (binary_expression "puVar4 + -0x63a0" identifier + number_literal) )))) = identifier) ;) (if_statement "if (uVar7 != 0xffffffff) goto LAB_0001b9b0;" if (parenthesized_expression "(uVar7 != 0xffffffff)" ( (binary_expression "uVar7 != 0xffffffff" identifier != number_literal) )) (goto_statement "goto LAB_0001b9b0;" goto statement_identifier ;)) (expression_statement "*(undefined4 *)(puVar4 + -0x63a0) = 0;" (assignment_expression "*(undefined4 *)(puVar4 + -0x63a0) = 0" (pointer_expression "*(undefined4 *)(puVar4 + -0x63a0)" * (cast_expression "(undefined4 *)(puVar4 + -0x63a0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a0)" ( (binary_expression "puVar4 + -0x63a0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "*(undefined4 *)(puVar4 + -0x63a4) = 8;" (assignment_expression "*(undefined4 *)(puVar4 + -0x63a4) = 8" (pointer_expression "*(undefined4 *)(puVar4 + -0x63a4)" * (cast_expression "(undefined4 *)(puVar4 + -0x63a4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a4)" ( (binary_expression "puVar4 + -0x63a4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" identifier = number_literal) ;) }) while (parenthesized_expression "(8 < (int)param_1)" ( (binary_expression "8 < (int)param_1" number_literal < (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) (labeled_statement "LAB_0001ba20:\n  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;" statement_identifier : (expression_statement "*(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;" (assignment_expression "*(uint *)(puVar4 + -0x63a4) = iVar9 - param_1" (pointer_expression "*(uint *)(puVar4 + -0x63a4)" * (cast_expression "(uint *)(puVar4 + -0x63a4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x63a4)" ( (binary_expression "puVar4 + -0x63a4" identifier + number_literal) )))) = (binary_expression "iVar9 - param_1" identifier - identifier)) ;)) (expression_statement "*(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));" (assignment_expression "*(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f))" (pointer_expression "*(ushort *)(puVar4 + -0x639c)" * (cast_expression "(ushort *)(puVar4 + -0x639c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0x639c)" ( (binary_expression "puVar4 + -0x639c" identifier + number_literal) )))) = (binary_expression "uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f))" identifier | (call_expression "(ushort)(uVar7 >> (iVar9 - param_1 & 0x1f))" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar7 >> (iVar9 - param_1 & 0x1f))" ( (binary_expression "uVar7 >> (iVar9 - param_1 & 0x1f)" identifier >> (parenthesized_expression "(iVar9 - param_1 & 0x1f)" ( (binary_expression "iVar9 - param_1 & 0x1f" (binary_expression "iVar9 - param_1" identifier - identifier) & number_literal) ))) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (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 IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (binary_expression IDENT << (parenthesized_expression ( (binary_expression IDENT & LIT) ))) & LIT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ IDENT ])))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) while (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT - IDENT)) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT | (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) & LIT) ))) ))))) ;) (return_statement return ;) })))
(function_definition "void FUN_0001b920(uint param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  ushort uVar6;\n  \n  puVar4 = PTR_DAT_000364c4;\n  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);\n  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);\n  uVar5 = uVar7 & 0xffff;\n  uVar6 = (ushort)uVar7;\n  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;\n  puVar3 = PTR_inbuf_000363c0;\n  puVar2 = PTR_insize_000363bc;\n  puVar1 = PTR_inptr_000363b8;\n  uVar7 = *(uint *)(puVar4 + -0x63a0);\n  if (iVar9 < (int)param_1) {\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }\nLAB_0001ba20:\n  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;\n  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0001b920(uint param_1)" (identifier "FUN_0001b920") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  uint uVar5;\n  uint uVar7;\n  uint uVar8;\n  int iVar9;\n  uint uVar10;\n  ushort uVar6;\n  \n  puVar4 = PTR_DAT_000364c4;\n  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);\n  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);\n  uVar5 = uVar7 & 0xffff;\n  uVar6 = (ushort)uVar7;\n  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;\n  puVar3 = PTR_inbuf_000363c0;\n  puVar2 = PTR_insize_000363bc;\n  puVar1 = PTR_inptr_000363b8;\n  uVar7 = *(uint *)(puVar4 + -0x63a0);\n  if (iVar9 < (int)param_1) {\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }\nLAB_0001ba20:\n  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;\n  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "ushort uVar6;" (type_identifier "ushort") (identifier "uVar6") (; ";")) (expression_statement "puVar4 = PTR_DAT_000364c4;" (assignment_expression "puVar4 = PTR_DAT_000364c4" (identifier "puVar4") (= "=") (identifier "PTR_DAT_000364c4")) (; ";")) (expression_statement "iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);" (assignment_expression "iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4)" (identifier "iVar9") (= "=") (pointer_expression "*(int *)(PTR_DAT_000364c4 + -0x63a4)" (* "*") (cast_expression "(int *)(PTR_DAT_000364c4 + -0x63a4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000364c4 + -0x63a4)" (( "(") (binary_expression "PTR_DAT_000364c4 + -0x63a4" (identifier "PTR_DAT_000364c4") (+ "+") (number_literal "-0x63a4")) () ")"))))) (; ";")) (expression_statement "uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);" (assignment_expression "uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f)" (identifier "uVar7") (= "=") (binary_expression "(uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f)" (binary_expression "(uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(PTR_DAT_000364c4 + -0x639c)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000364c4 + -0x639c)" (( "(") (binary_expression "PTR_DAT_000364c4 + -0x639c" (identifier "PTR_DAT_000364c4") (+ "+") (number_literal "-0x639c")) () ")")))) (<< "<<") (parenthesized_expression "(param_1 & 0x1f)" (( "(") (binary_expression "param_1 & 0x1f" (identifier "param_1") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "uVar5 = uVar7 & 0xffff;" (assignment_expression "uVar5 = uVar7 & 0xffff" (identifier "uVar5") (= "=") (binary_expression "uVar7 & 0xffff" (identifier "uVar7") (& "&") (number_literal "0xffff"))) (; ";")) (expression_statement "uVar6 = (ushort)uVar7;" (assignment_expression "uVar6 = (ushort)uVar7" (identifier "uVar6") (= "=") (cast_expression "(ushort)uVar7" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "uVar7"))) (; ";")) (expression_statement "*(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;" (assignment_expression "*(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6" (pointer_expression "*(ushort *)(PTR_DAT_000364c4 + -0x639c)" (* "*") (cast_expression "(ushort *)(PTR_DAT_000364c4 + -0x639c)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000364c4 + -0x639c)" (( "(") (binary_expression "PTR_DAT_000364c4 + -0x639c" (identifier "PTR_DAT_000364c4") (+ "+") (number_literal "-0x639c")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "puVar3 = PTR_inbuf_000363c0;" (assignment_expression "puVar3 = PTR_inbuf_000363c0" (identifier "puVar3") (= "=") (identifier "PTR_inbuf_000363c0")) (; ";")) (expression_statement "puVar2 = PTR_insize_000363bc;" (assignment_expression "puVar2 = PTR_insize_000363bc" (identifier "puVar2") (= "=") (identifier "PTR_insize_000363bc")) (; ";")) (expression_statement "puVar1 = PTR_inptr_000363b8;" (assignment_expression "puVar1 = PTR_inptr_000363b8" (identifier "puVar1") (= "=") (identifier "PTR_inptr_000363b8")) (; ";")) (expression_statement "uVar7 = *(uint *)(puVar4 + -0x63a0);" (assignment_expression "uVar7 = *(uint *)(puVar4 + -0x63a0)" (identifier "uVar7") (= "=") (pointer_expression "*(uint *)(puVar4 + -0x63a0)" (* "*") (cast_expression "(uint *)(puVar4 + -0x63a0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x63a0)" (( "(") (binary_expression "puVar4 + -0x63a0" (identifier "puVar4") (+ "+") (number_literal "-0x63a0")) () ")"))))) (; ";")) (if_statement "if (iVar9 < (int)param_1) {\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }" (if "if") (parenthesized_expression "(iVar9 < (int)param_1)" (( "(") (binary_expression "iVar9 < (int)param_1" (identifier "iVar9") (< "<") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")) (compound_statement "{\n    do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);\n  }" ({ "{") (do_statement "do {\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    } while (8 < (int)param_1);" (do "do") (compound_statement "{\n      while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }\n      uVar7 = fill_inbuf(1);\n      uVar6 = *(ushort *)(puVar4 + -0x639c);\n      uVar5 = (uint)uVar6;\n      *(uint *)(puVar4 + -0x63a0) = uVar7;\n      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;\n      *(undefined4 *)(puVar4 + -0x63a0) = 0;\n      uVar7 = 0;\n      *(undefined4 *)(puVar4 + -0x63a4) = 8;\n      iVar9 = 8;\n    }" ({ "{") (while_statement "while( true ) {\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        param_1 = param_1 - iVar9;\n        uVar8 = *(uint *)puVar1;\n        uVar10 = *(uint *)puVar2;\n        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;\n        *(short *)(puVar4 + -0x639c) = (short)uVar5;\n        if (uVar10 <= uVar8) break;\n        uVar7 = (uint)(byte)puVar3[uVar8];\n        *(uint *)puVar1 = uVar8 + 1;\n        *(uint *)(puVar4 + -0x63a0) = uVar7;\nLAB_0001b9b0:\n        uVar6 = (ushort)uVar5;\n        *(undefined4 *)(puVar4 + -0x63a4) = 8;\n        iVar9 = 8;\n        if ((int)param_1 < 9) goto LAB_0001ba20;\n      }" ({ "{") (expression_statement "param_1 = param_1 - iVar9;" (assignment_expression "param_1 = param_1 - iVar9" (identifier "param_1") (= "=") (binary_expression "param_1 - iVar9" (identifier "param_1") (- "-") (identifier "iVar9"))) (; ";")) (expression_statement "uVar8 = *(uint *)puVar1;" (assignment_expression "uVar8 = *(uint *)puVar1" (identifier "uVar8") (= "=") (pointer_expression "*(uint *)puVar1" (* "*") (cast_expression "(uint *)puVar1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) (; ";")) (expression_statement "uVar10 = *(uint *)puVar2;" (assignment_expression "uVar10 = *(uint *)puVar2" (identifier "uVar10") (= "=") (pointer_expression "*(uint *)puVar2" (* "*") (cast_expression "(uint *)puVar2" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) (; ";")) (expression_statement "uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;" (assignment_expression "uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff" (identifier "uVar5") (= "=") (binary_expression "uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff" (identifier "uVar5") (| "|") (binary_expression "uVar7 << (param_1 & 0x1f) & 0xffff" (binary_expression "uVar7 << (param_1 & 0x1f)" (identifier "uVar7") (<< "<<") (parenthesized_expression "(param_1 & 0x1f)" (( "(") (binary_expression "param_1 & 0x1f" (identifier "param_1") (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "0xffff")))) (; ";")) (expression_statement "*(short *)(puVar4 + -0x639c) = (short)uVar5;" (assignment_expression "*(short *)(puVar4 + -0x639c) = (short)uVar5" (pointer_expression "*(short *)(puVar4 + -0x639c)" (* "*") (cast_expression "(short *)(puVar4 + -0x639c)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x639c)" (( "(") (binary_expression "puVar4 + -0x639c" (identifier "puVar4") (+ "+") (number_literal "-0x639c")) () ")")))) (= "=") (cast_expression "(short)uVar5" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "uVar5"))) (; ";")) (if_statement "if (uVar10 <= uVar8) break;" (if "if") (parenthesized_expression "(uVar10 <= uVar8)" (( "(") (binary_expression "uVar10 <= uVar8" (identifier "uVar10") (<= "<=") (identifier "uVar8")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar7 = (uint)(byte)puVar3[uVar8];" (assignment_expression "uVar7 = (uint)(byte)puVar3[uVar8]" (identifier "uVar7") (= "=") (cast_expression "(uint)(byte)puVar3[uVar8]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar3[uVar8]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar3[uVar8]" (identifier "puVar3") ([ "[") (identifier "uVar8") (] "]"))))) (; ";")) (expression_statement "*(uint *)puVar1 = uVar8 + 1;" (assignment_expression "*(uint *)puVar1 = uVar8 + 1" (pointer_expression "*(uint *)puVar1" (* "*") (cast_expression "(uint *)puVar1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(puVar4 + -0x63a0) = uVar7;" (assignment_expression "*(uint *)(puVar4 + -0x63a0) = uVar7" (pointer_expression "*(uint *)(puVar4 + -0x63a0)" (* "*") (cast_expression "(uint *)(puVar4 + -0x63a0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x63a0)" (( "(") (binary_expression "puVar4 + -0x63a0" (identifier "puVar4") (+ "+") (number_literal "-0x63a0")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (labeled_statement "LAB_0001b9b0:\n        uVar6 = (ushort)uVar5;" (statement_identifier "LAB_0001b9b0") (: ":") (expression_statement "uVar6 = (ushort)uVar5;" (assignment_expression "uVar6 = (ushort)uVar5" (identifier "uVar6") (= "=") (cast_expression "(ushort)uVar5" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "uVar5"))) (; ";"))) (expression_statement "*(undefined4 *)(puVar4 + -0x63a4) = 8;" (assignment_expression "*(undefined4 *)(puVar4 + -0x63a4) = 8" (pointer_expression "*(undefined4 *)(puVar4 + -0x63a4)" (* "*") (cast_expression "(undefined4 *)(puVar4 + -0x63a4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x63a4)" (( "(") (binary_expression "puVar4 + -0x63a4" (identifier "puVar4") (+ "+") (number_literal "-0x63a4")) () ")")))) (= "=") (number_literal "8")) (; ";")) (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" (identifier "iVar9") (= "=") (number_literal "8")) (; ";")) (if_statement "if ((int)param_1 < 9) goto LAB_0001ba20;" (if "if") (parenthesized_expression "((int)param_1 < 9)" (( "(") (binary_expression "(int)param_1 < 9" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (< "<") (number_literal "9")) () ")")) (goto_statement "goto LAB_0001ba20;" (goto "goto") (statement_identifier "LAB_0001ba20") (; ";"))) (} "}"))) (expression_statement "uVar7 = fill_inbuf(1);" (assignment_expression "uVar7 = fill_inbuf(1)" (identifier "uVar7") (= "=") (call_expression "fill_inbuf(1)" (identifier "fill_inbuf") (argument_list "(1)" (( "(") (number_literal "1") () ")")))) (; ";")) (expression_statement "uVar6 = *(ushort *)(puVar4 + -0x639c);" (assignment_expression "uVar6 = *(ushort *)(puVar4 + -0x639c)" (identifier "uVar6") (= "=") (pointer_expression "*(ushort *)(puVar4 + -0x639c)" (* "*") (cast_expression "(ushort *)(puVar4 + -0x639c)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x639c)" (( "(") (binary_expression "puVar4 + -0x639c" (identifier "puVar4") (+ "+") (number_literal "-0x639c")) () ")"))))) (; ";")) (expression_statement "uVar5 = (uint)uVar6;" (assignment_expression "uVar5 = (uint)uVar6" (identifier "uVar5") (= "=") (cast_expression "(uint)uVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar6"))) (; ";")) (expression_statement "*(uint *)(puVar4 + -0x63a0) = uVar7;" (assignment_expression "*(uint *)(puVar4 + -0x63a0) = uVar7" (pointer_expression "*(uint *)(puVar4 + -0x63a0)" (* "*") (cast_expression "(uint *)(puVar4 + -0x63a0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x63a0)" (( "(") (binary_expression "puVar4 + -0x63a0" (identifier "puVar4") (+ "+") (number_literal "-0x63a0")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (if_statement "if (uVar7 != 0xffffffff) goto LAB_0001b9b0;" (if "if") (parenthesized_expression "(uVar7 != 0xffffffff)" (( "(") (binary_expression "uVar7 != 0xffffffff" (identifier "uVar7") (!= "!=") (number_literal "0xffffffff")) () ")")) (goto_statement "goto LAB_0001b9b0;" (goto "goto") (statement_identifier "LAB_0001b9b0") (; ";"))) (expression_statement "*(undefined4 *)(puVar4 + -0x63a0) = 0;" (assignment_expression "*(undefined4 *)(puVar4 + -0x63a0) = 0" (pointer_expression "*(undefined4 *)(puVar4 + -0x63a0)" (* "*") (cast_expression "(undefined4 *)(puVar4 + -0x63a0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x63a0)" (( "(") (binary_expression "puVar4 + -0x63a0" (identifier "puVar4") (+ "+") (number_literal "-0x63a0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(puVar4 + -0x63a4) = 8;" (assignment_expression "*(undefined4 *)(puVar4 + -0x63a4) = 8" (pointer_expression "*(undefined4 *)(puVar4 + -0x63a4)" (* "*") (cast_expression "(undefined4 *)(puVar4 + -0x63a4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x63a4)" (( "(") (binary_expression "puVar4 + -0x63a4" (identifier "puVar4") (+ "+") (number_literal "-0x63a4")) () ")")))) (= "=") (number_literal "8")) (; ";")) (expression_statement "iVar9 = 8;" (assignment_expression "iVar9 = 8" (identifier "iVar9") (= "=") (number_literal "8")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(8 < (int)param_1)" (( "(") (binary_expression "8 < (int)param_1" (number_literal "8") (< "<") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_0001ba20:\n  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;" (statement_identifier "LAB_0001ba20") (: ":") (expression_statement "*(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;" (assignment_expression "*(uint *)(puVar4 + -0x63a4) = iVar9 - param_1" (pointer_expression "*(uint *)(puVar4 + -0x63a4)" (* "*") (cast_expression "(uint *)(puVar4 + -0x63a4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x63a4)" (( "(") (binary_expression "puVar4 + -0x63a4" (identifier "puVar4") (+ "+") (number_literal "-0x63a4")) () ")")))) (= "=") (binary_expression "iVar9 - param_1" (identifier "iVar9") (- "-") (identifier "param_1"))) (; ";"))) (expression_statement "*(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));" (assignment_expression "*(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f))" (pointer_expression "*(ushort *)(puVar4 + -0x639c)" (* "*") (cast_expression "(ushort *)(puVar4 + -0x639c)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0x639c)" (( "(") (binary_expression "puVar4 + -0x639c" (identifier "puVar4") (+ "+") (number_literal "-0x639c")) () ")")))) (= "=") (binary_expression "uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f))" (identifier "uVar6") (| "|") (call_expression "(ushort)(uVar7 >> (iVar9 - param_1 & 0x1f))" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(uVar7 >> (iVar9 - param_1 & 0x1f))" (( "(") (binary_expression "uVar7 >> (iVar9 - param_1 & 0x1f)" (identifier "uVar7") (>> ">>") (parenthesized_expression "(iVar9 - param_1 & 0x1f)" (( "(") (binary_expression "iVar9 - param_1 & 0x1f" (binary_expression "iVar9 - param_1" (identifier "iVar9") (- "-") (identifier "param_1")) (& "&") (number_literal "0x1f")) () ")"))) () ")"))))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (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: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) (labeled_statement label: (statement_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: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))))))) (return_statement))))

void MASKED(uint param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined *puVar4;
  uint uVar5;
  uint uVar7;
  uint uVar8;
  int iVar9;
  uint uVar10;
  ushort uVar6;
  
  puVar4 = PTR_DAT_000364c4;
  iVar9 = *(int *)(PTR_DAT_000364c4 + -0x63a4);
  uVar7 = (uint)*(ushort *)(PTR_DAT_000364c4 + -0x639c) << (param_1 & 0x1f);
  uVar5 = uVar7 & 0xffff;
  uVar6 = (ushort)uVar7;
  *(ushort *)(PTR_DAT_000364c4 + -0x639c) = uVar6;
  puVar3 = PTR_inbuf_000363c0;
  puVar2 = PTR_insize_000363bc;
  puVar1 = PTR_inptr_000363b8;
  uVar7 = *(uint *)(puVar4 + -0x63a0);
  if (iVar9 < (int)param_1) {
    do {
      while( true ) {
        param_1 = param_1 - iVar9;
        uVar8 = *(uint *)puVar1;
        uVar10 = *(uint *)puVar2;
        uVar5 = uVar5 | uVar7 << (param_1 & 0x1f) & 0xffff;
        *(short *)(puVar4 + -0x639c) = (short)uVar5;
        if (uVar10 <= uVar8) break;
        uVar7 = (uint)(byte)puVar3[uVar8];
        *(uint *)puVar1 = uVar8 + 1;
        *(uint *)(puVar4 + -0x63a0) = uVar7;
LAB_0001b9b0:
        uVar6 = (ushort)uVar5;
        *(undefined4 *)(puVar4 + -0x63a4) = 8;
        iVar9 = 8;
        if ((int)param_1 < 9) goto LAB_0001ba20;
      }
      uVar7 = fill_inbuf(1);
      uVar6 = *(ushort *)(puVar4 + -0x639c);
      uVar5 = (uint)uVar6;
      *(uint *)(puVar4 + -0x63a0) = uVar7;
      if (uVar7 != 0xffffffff) goto LAB_0001b9b0;
      *(undefined4 *)(puVar4 + -0x63a0) = 0;
      uVar7 = 0;
      *(undefined4 *)(puVar4 + -0x63a4) = 8;
      iVar9 = 8;
    } while (8 < (int)param_1);
  }
LAB_0001ba20:
  *(uint *)(puVar4 + -0x63a4) = iVar9 - param_1;
  *(ushort *)(puVar4 + -0x639c) = uVar6 | (ushort)(uVar7 >> (iVar9 - param_1 & 0x1f));
  return;
}

