
longlong unpack_gz_stream(transformer_state_t *xstate)

{
  uchar uVar1;
  uchar uVar2;
  undefined *puVar3;
  ushort uVar4;
  ushort uVar5;
  int iVar6;
  uint32_t uVar7;
  uint uVar8;
  uint uVar9;
  uchar *puVar10;
  undefined *puVar11;
  state_t *state_1;
  uint uVar12;
  state_t *unaff_s8;
  longlong lVar13;
  longlong lVar14;
  code *pcStack_44;
  undefined *puStack_40;
  uint16_t magic2;
  undefined2 uStack_34;
  ushort uStack_32;
  ushort uStack_30;
  undefined2 uStack_2e;
  int iStack_2c;
  
  puVar3 = PTR___stack_chk_guard_0012b14c;
  iStack_2c = *(int *)PTR___stack_chk_guard_0012b14c;
  if (xstate->signature_skipped != '\0') {
LAB_000a827c:
    puStack_40 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8;
    lVar13 = 0;
    unaff_s8 = (state_t *)(*(code *)PTR_xzalloc_0012a1d0)(0x170);
    *(undefined4 *)((int)&unaff_s8->to_read + 4) = 0xffffffff;
    puVar11 = PTR_xmalloc_0012a230;
    *(undefined4 *)&unaff_s8->to_read = 0xffffffff;
    puVar10 = (uchar *)(*(code *)puVar11)(0x4000);
    iVar6 = xstate->src_fd;
    uVar8 = unaff_s8->bytebuffer_offset;
    unaff_s8->bytebuffer = puVar10;
    pcStack_44 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);
    unaff_s8->gunzip_src_fd = iVar6;
    goto LAB_000a82f0;
  }
  iVar6 = (*(code *)PTR_full_read_0012a2bc)(xstate->src_fd,&magic2,2);
  if (iVar6 == 2) {
    if (magic2 == 0x1f9d) {
      xstate->signature_skipped = '\x02';
      lVar13 = unpack_Z_stream(xstate);
      goto LAB_000a8348;
    }
    if (magic2 == 0x1f8b) goto LAB_000a827c;
  }
  lVar13 = -1;
  (*(code *)PTR_bb_error_msg_0012a1c8)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x563c);
LAB_000a8348:
  do {
    if (iStack_2c == *(int *)puVar3) {
      return lVar13;
    }
    (*(code *)PTR___stack_chk_fail_0012b0c8)();
    while( true ) {
      uVar8 = *(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4);
      uVar12 = *(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset);
      unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 8;
      uStack_34 = (undefined2)(uVar12 >> 0x10);
      uStack_32 = (ushort)uVar12;
      uVar4 = uStack_32;
      uStack_30 = (ushort)(uVar8 >> 0x10);
      uVar5 = uStack_30;
      uStack_2e = (undefined2)uVar8;
      uVar8 = (uVar12 << 8) >> 0x18;
      if (uVar12 >> 0x18 != 8) break;
      if ((uVar8 & 4) != 0) {
        iVar6 = top_up(unaff_s8,2);
        if (iVar6 == 0) break;
        uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];
        uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];
        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;
        uVar9 = (uint)CONCAT11(uVar1,uVar2);
        iVar6 = top_up(unaff_s8,uVar9);
        if (iVar6 == 0) break;
        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9;
      }
      if ((uVar8 & 0x18) != 0) {
        while (iVar6 = top_up(unaff_s8,1), iVar6 != 0) {
          uVar9 = unaff_s8->bytebuffer_offset;
          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {
            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;
            uVar8 = uVar8 & 0xffffffe7;
            iVar6 = top_up(unaff_s8,1);
            if (iVar6 == 0) goto LAB_000a8324;
            uVar9 = unaff_s8->bytebuffer_offset;
          }
        }
        break;
      }
LAB_000a84a4:
      xstate->mtime =
           ((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +
           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000;
      if ((uVar8 & 2) != 0) {
        iVar6 = top_up(unaff_s8,2);
        if (iVar6 == 0) break;
        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;
      }
      lVar14 = (*pcStack_44)(unaff_s8,xstate);
      if (lVar14 < 0) {
        puVar10 = unaff_s8->bytebuffer;
        lVar13 = -1;
        goto LAB_000a850c;
      }
      iVar6 = top_up(unaff_s8,8);
      if (iVar6 == 0) break;
      state_1 = (state_t *)&unaff_s8->bytebuffer_offset;
      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);
      if (~unaff_s8->gunzip_crc != uVar7) {
        puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874;
        goto LAB_000a8570;
      }
      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);
      if ((uint32_t)unaff_s8->gunzip_bytes_out == uVar7) {
        lVar13 = lVar13 + lVar14;
      }
      else {
        lVar13 = -1;
        (*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);
      }
      iVar6 = top_up(unaff_s8,2);
      puVar10 = unaff_s8->bytebuffer;
      if (iVar6 == 0) goto LAB_000a850c;
      if ((puVar10[unaff_s8->bytebuffer_offset] != '\x1f') ||
         (uVar8 = unaff_s8->bytebuffer_offset + 2,
         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b)) goto LAB_000a850c;
      unaff_s8->bytebuffer_offset = uVar8;
LAB_000a82f0:
      puVar11 = PTR_memmove_0012b174;
      unaff_s8->bytebuffer_size = unaff_s8->bytebuffer_size - uVar8;
      (*(code *)puVar11)(puVar10,puVar10 + uVar8);
      unaff_s8->bytebuffer_offset = 0;
      iVar6 = top_up(unaff_s8,8);
      if (iVar6 == 0) break;
    }
LAB_000a8324:
    puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5df0;
LAB_000a8570:
    lVar13 = -1;
    (*(code *)PTR_bb_error_msg_0012a1c8)(puVar11);
    puVar10 = unaff_s8->bytebuffer;
LAB_000a850c:
    (*(code *)PTR_free_0012b168)(puVar10);
    (*(code *)PTR_free_0012b168)(unaff_s8);
  } while( true );
}



longlong FUN_000a81cc(char *param_1)

{
  undefined1 uVar1;
  undefined1 uVar2;
  undefined *puVar3;
  undefined *puVar4;
  ushort uVar5;
  ushort uVar6;
  int iVar7;
  int iVar8;
  undefined4 uVar9;
  uint *puVar10;
  undefined1 *puVar11;
  char *pcVar12;
  code *pcVar13;
  uint uVar14;
  uint uVar15;
  undefined *puVar16;
  int iVar17;
  uint uVar18;
  longlong lVar19;
  longlong lVar20;
  short local_36;
  undefined2 local_34;
  ushort uStack_32;
  ushort local_30;
  undefined2 uStack_2e;
  int local_2c;
  
  puVar4 = PTR___stack_chk_guard_0012b14c;
  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;
  if (*param_1 == '\0') {
    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);
    if (iVar7 == 2) {
      if (local_36 == 0x1f9d) {
        *param_1 = '\x02';
        lVar19 = FUN_000a8640(param_1);
        goto LAB_000a8348;
      }
      if (local_36 == 0x1f8b) goto LAB_000a827c;
    }
    lVar19 = -1;
    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);
  }
  else {
LAB_000a827c:
    puVar16 = PTR_FUN_0012a1a8;
    lVar19 = 0;
    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);
    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;
    puVar3 = PTR_FUN_0012a230;
    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;
    iVar8 = (*(code *)puVar3)(0x4000);
    uVar9 = *(undefined4 *)(param_1 + 8);
    iVar17 = *(int *)(iVar7 + 0x30);
    *(int *)(iVar7 + 0x24) = iVar8;
    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);
    *(undefined4 *)(iVar7 + 0xc) = uVar9;
    while( true ) {
      puVar3 = PTR_memmove_0012b174;
      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;
      (*(code *)puVar3)(iVar8,iVar8 + iVar17);
      *(undefined4 *)(iVar7 + 0x30) = 0;
      iVar8 = FUN_000a6584(iVar7,8);
      if (iVar8 == 0) break;
      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));
      uVar14 = puVar10[1];
      uVar18 = *puVar10;
      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;
      local_34 = (undefined2)(uVar18 >> 0x10);
      uStack_32 = (ushort)uVar18;
      uVar5 = uStack_32;
      local_30 = (ushort)(uVar14 >> 0x10);
      uVar6 = local_30;
      uStack_2e = (undefined2)uVar14;
      uVar14 = (uVar18 << 8) >> 0x18;
      if (uVar18 >> 0x18 != 8) break;
      if ((uVar14 & 4) != 0) {
        iVar8 = FUN_000a6584(iVar7,2);
        if (iVar8 == 0) break;
        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));
        uVar1 = puVar11[1];
        uVar2 = *puVar11;
        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;
        uVar15 = (uint)CONCAT11(uVar1,uVar2);
        iVar8 = FUN_000a6584(iVar7,uVar15);
        if (iVar8 == 0) break;
        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;
      }
      if ((uVar14 & 0x18) != 0) {
        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {
          iVar8 = *(int *)(iVar7 + 0x30);
          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,
                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {
            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;
            uVar14 = uVar14 & 0xffffffe7;
            iVar8 = FUN_000a6584(iVar7,1);
            if (iVar8 == 0) goto LAB_000a8324;
            iVar8 = *(int *)(iVar7 + 0x30);
          }
        }
        break;
      }
LAB_000a84a4:
      *(uint *)(param_1 + 0x34) =
           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +
           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;
      if ((uVar14 & 2) != 0) {
        iVar8 = FUN_000a6584(iVar7,2);
        if (iVar8 == 0) break;
        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;
      }
      lVar20 = (*pcVar13)(iVar7,param_1);
      if (lVar20 < 0) {
        iVar8 = *(int *)(iVar7 + 0x24);
        lVar19 = -1;
        goto LAB_000a850c;
      }
      iVar8 = FUN_000a6584(iVar7,8);
      if (iVar8 == 0) break;
      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);
      if (~*(uint *)(iVar7 + 8) != uVar14) {
        puVar16 = PTR_FUN_0012a1a8 + -0x5874;
        goto LAB_000a8570;
      }
      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));
      if (*(int *)(iVar7 + 4) == iVar8) {
        lVar19 = lVar20 + lVar19;
      }
      else {
        lVar19 = -1;
        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);
      }
      iVar17 = FUN_000a6584(iVar7,2);
      iVar8 = *(int *)(iVar7 + 0x24);
      if (iVar17 == 0) goto LAB_000a850c;
      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));
      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))
      goto LAB_000a850c;
      *(int *)(iVar7 + 0x30) = iVar17;
    }
LAB_000a8324:
    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;
LAB_000a8570:
    lVar19 = -1;
    (*(code *)PTR_FUN_0012a1c8)(puVar16);
    iVar8 = *(int *)(iVar7 + 0x24);
LAB_000a850c:
    (*(code *)PTR_free_0012b168)(iVar8);
    (*(code *)PTR_free_0012b168)(iVar7);
  }
LAB_000a8348:
  if (local_2c != *(int *)puVar4) {
    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();
    return lVar19;
  }
  return lVar19;
}


lui gp,0x9
addiu gp,gp,-0x607c
addu gp,gp,t9
addiu sp,sp,-0x60
sw s7,0x54(sp)
sw s3,0x44(sp)
or s3,a0,zero
sw gp,0x10(sp)
sw ra,0x5c(sp)
sw s8,0x58(sp)
sw s6,0x50(sp)
sw s5,0x4c(sp)
sw s4,0x48(sp)
sw s2,0x40(sp)
sw s1,0x3c(sp)
sw s0,0x38(sp)
lw s7,-0x7004(gp)
lb v0,0x0(a0)
lw v1,0x0(s7)
sw v1,0x34(sp)
bne v0,zero,0x000a827c
_lw t9,-0x7e94(gp)
li a2,0x2
lw a0,0x8(a0)
jalr t9
_addiu a1,sp,0x2a
li v1,0x2
beq v0,v1,0x000a8260
_lw gp,0x10(sp)
lw a0,-0x7fa8(gp)
li s1,-0x1
lw t9,-0x7f88(gp)
li s0,-0x1
jalr t9
_addiu a0,a0,-0x563c
b 0x000a8348
_lw gp,0x10(sp)
lhu v1,0x2a(sp)
li a0,0x1f9d
beq v1,a0,0x000a8330
_lw t9,-0x7730(gp)
li v0,0x1f8b
bne v1,v0,0x000a8244
_lw a0,-0x7fa8(gp)
lw v0,-0x7fa8(gp)
li a0,0x170
lw t9,-0x7f80(gp)
or s1,zero,zero
or s0,zero,zero
jalr t9
_sw v0,0x20(sp)
li v1,-0x1
lw gp,0x10(sp)
or s8,v0,zero
li v0,-0x1
li a0,0x4000
sw v1,0x2c(s8)
lw t9,-0x7f20(gp)
jalr t9
_sw v0,0x28(s8)
lw gp,0x10(sp)
or a0,v0,zero
lw v0,0x8(s3)
lw a2,0x30(s8)
sw a0,0x24(s8)
lw v1,-0x7728(gp)
lw s2,-0x7728(gp)
lw s4,-0x7728(gp)
addiu v1,v1,0x7cb0
sw v0,0xc(s8)
addiu s2,s2,0x6584
addiu s4,s4,0x6660
sw v1,0x1c(sp)
lw v0,0x34(s8)
addu a1,a0,a2
lw t9,-0x6fdc(gp)
subu a2,v0,a2
jalr t9
_sw a2,0x34(s8)
li a1,0x8
or a0,s8,zero
or t9,s2,zero
bal 0x000a6584
_sw zero,0x30(s8)
bne v0,zero,0x000a8398
_lw gp,0x10(sp)
lw a0,-0x7fa8(gp)
b 0x000a8570
_addiu a0,a0,-0x5df0
or a0,s3,zero
bal 0x000a8640
_sb v0,0x0(s3)
lw gp,0x10(sp)
or s1,v0,zero
or s0,v1,zero
lw a1,0x34(sp)
or v0,s1,zero
lw a0,0x0(s7)
bne a1,a0,0x000a838c
_or v1,s0,zero
lw ra,0x5c(sp)
lw s8,0x58(sp)
lw s7,0x54(sp)
lw s6,0x50(sp)
lw s5,0x4c(sp)
lw s4,0x48(sp)
lw s3,0x44(sp)
lw s2,0x40(sp)
lw s1,0x3c(sp)
lw s0,0x38(sp)
jr ra
_addiu sp,sp,0x60
lw t9,-0x7088(gp)
jalr t9
_nop
lw v1,0x30(s8)
li a0,0x8
lw v0,0x24(s8)
addiu a1,v1,0x8
addu v0,v0,v1
lwl v1,0x4(v0)
lwl s6,0x0(v0)
lwr v1,0x7(v0)
lwr s6,0x3(v0)
sw a1,0x30(s8)
or v0,v1,zero
sw s6,0x2c(sp)
srl v1,s6,0x18
sw v0,0x30(sp)
ext s6,s6,0x10,0x8
lwl s5,0x2e(sp)
bne v1,a0,0x000a8324
_lwr s5,0x31(sp)
andi v0,s6,0x4
beq v0,zero,0x000a8450
_li a1,0x2
or t9,s2,zero
bal 0x000a6584
_or a0,s8,zero
beq v0,zero,0x000a8324
_lw gp,0x10(sp)
lw v1,0x30(s8)
or a0,s8,zero
lw v0,0x24(s8)
or t9,s2,zero
addiu a1,v1,0x2
addu v0,v0,v1
lbu v1,0x1(v0)
lbu v0,0x0(v0)
sw a1,0x30(s8)
sll v1,v1,0x8
or v1,v1,v0
or a1,v1,zero
bal 0x000a6584
_sw v1,0x24(sp)
beq v0,zero,0x000a8324
_lw gp,0x10(sp)
lw v0,0x30(s8)
lw v1,0x24(sp)
addu v1,v0,v1
sw v1,0x30(s8)
andi v0,s6,0x18
beq v0,zero,0x000a84a4
_nop
li a1,0x1
or t9,s2,zero
bal 0x000a6584
_or a0,s8,zero
beq v0,zero,0x000a8324
_lw gp,0x10(sp)
lw v1,0x30(s8)
li t0,0x18
lw v0,0x24(s8)
addiu a0,v1,0x1
addu v0,v0,v1
sw a0,0x30(s8)
lbu v0,0x0(v0)
bne v0,zero,0x000a845c
_li a2,-0x19
andi v0,s6,0x18
beq v0,t0,0x000a8620
_li a1,0x1
wsbh s5,s5
andi s6,s6,0x2
rotr s5,s5,0x10
beq s6,zero,0x000a84dc
_sw s5,0x34(s3)
li a1,0x2
or t9,s2,zero
bal 0x000a6584
_or a0,s8,zero
beq v0,zero,0x000a8324
_lw gp,0x10(sp)
lw v0,0x30(s8)
addiu v0,v0,0x2
sw v0,0x30(s8)
lw t9,0x1c(sp)
or a1,s3,zero
jalr t9
_or a0,s8,zero
or s6,v0,zero
lw gp,0x10(sp)
bgez s6,0x000a852c
_or s5,v1,zero
lw a0,0x24(s8)
li s1,-0x1
li s0,-0x1
lw t9,-0x6fe8(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x6fe8(gp)
jalr t9
_or a0,s8,zero
b 0x000a8348
_lw gp,0x10(sp)
li a1,0x8
or t9,s2,zero
bal 0x000a6584
_or a0,s8,zero
beq v0,zero,0x000a8324
_lw gp,0x10(sp)
addiu t1,s8,0x30
lw a0,0x24(s8)
or t9,s4,zero
bal 0x000a6660
_or a1,t1,zero
lw v1,0x8(s8)
nor v1,zero,v1
beq v1,v0,0x000a858c
_lw gp,0x10(sp)
lw a0,-0x7fa8(gp)
addiu a0,a0,-0x5874
lw t9,-0x7f88(gp)
li s1,-0x1
jalr t9
_li s0,-0x1
lw gp,0x10(sp)
b 0x000a8508
_lw a0,0x24(s8)
bal 0x000a6660
_lw a0,0x24(s8)
lw v1,0x4(s8)
bne v1,v0,0x000a8600
_lw gp,0x10(sp)
addu s5,s0,s5
addu s1,s1,s6
sltu s0,s5,s0
addu s1,s0,s1
or s0,s5,zero
li a1,0x2
or t9,s2,zero
bal 0x000a6584
_or a0,s8,zero
lw gp,0x10(sp)
beq v0,zero,0x000a8508
_lw a0,0x24(s8)
lw a2,0x30(s8)
li v1,0x1f
addu v0,a0,a2
lbu a1,0x0(v0)
bne a1,v1,0x000a850c
_lw t9,-0x6fe8(gp)
lbu v1,0x1(v0)
li v0,0x8b
bne v1,v0,0x000a850c
_addiu a2,a2,0x2
b 0x000a82f0
_sw a2,0x30(s8)
lw v0,0x20(sp)
li s1,-0x1
lw t9,-0x7f88(gp)
li s0,-0x1
jalr t9
_addiu a0,v0,-0x562c
b 0x000a85b8
_li a1,0x2
or a0,s8,zero
or t9,s2,zero
bal 0x000a6584
_and s6,s6,a2
beq v0,zero,0x000a8324
_lw gp,0x10(sp)
b 0x000a8478
_lw v1,0x30(s8)
(translation_unit "longlong FUN_000a81cc(char *param_1)\n\n{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  ushort uVar5;\n  ushort uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  undefined1 *puVar11;\n  char *pcVar12;\n  code *pcVar13;\n  uint uVar14;\n  uint uVar15;\n  undefined *puVar16;\n  int iVar17;\n  uint uVar18;\n  longlong lVar19;\n  longlong lVar20;\n  short local_36;\n  undefined2 local_34;\n  ushort uStack_32;\n  ushort local_30;\n  undefined2 uStack_2e;\n  int local_2c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if (*param_1 == '\0') {\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }\n  else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }\nLAB_000a8348:\n  if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }\n  return lVar19;\n}\n\n" (function_definition "longlong FUN_000a81cc(char *param_1)\n\n{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  ushort uVar5;\n  ushort uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  undefined1 *puVar11;\n  char *pcVar12;\n  code *pcVar13;\n  uint uVar14;\n  uint uVar15;\n  undefined *puVar16;\n  int iVar17;\n  uint uVar18;\n  longlong lVar19;\n  longlong lVar20;\n  short local_36;\n  undefined2 local_34;\n  ushort uStack_32;\n  ushort local_30;\n  undefined2 uStack_2e;\n  int local_2c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if (*param_1 == '\0') {\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }\n  else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }\nLAB_000a8348:\n  if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }\n  return lVar19;\n}" type_identifier (function_declarator "FUN_000a81cc(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  ushort uVar5;\n  ushort uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  undefined1 *puVar11;\n  char *pcVar12;\n  code *pcVar13;\n  uint uVar14;\n  uint uVar15;\n  undefined *puVar16;\n  int iVar17;\n  uint uVar18;\n  longlong lVar19;\n  longlong lVar20;\n  short local_36;\n  undefined2 local_34;\n  ushort uStack_32;\n  ushort local_30;\n  undefined2 uStack_2e;\n  int local_2c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if (*param_1 == '\0') {\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }\n  else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }\nLAB_000a8348:\n  if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }\n  return lVar19;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "ushort uVar5;" type_identifier identifier ;) (declaration "ushort uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined1 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "char *pcVar12;" primitive_type (pointer_declarator "*pcVar12" * identifier) ;) (declaration "code *pcVar13;" type_identifier (pointer_declarator "*pcVar13" * identifier) ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "undefined *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "uint uVar18;" type_identifier identifier ;) (declaration "longlong lVar19;" type_identifier identifier ;) (declaration "longlong lVar20;" type_identifier identifier ;) (declaration "short local_36;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined2 local_34;" type_identifier identifier ;) (declaration "ushort uStack_32;" type_identifier identifier ;) (declaration "ushort local_30;" type_identifier identifier ;) (declaration "undefined2 uStack_2e;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*param_1 == '\0') {\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }\n  else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }" if (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }" { (expression_statement "iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);" (assignment_expression "iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2)" identifier = (call_expression "(*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2bc)" ( (pointer_expression "*(code *)PTR_FUN_0012a2bc" * (cast_expression "(code *)PTR_FUN_0012a2bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 8),&local_36,2)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (pointer_expression "&local_36" & identifier) , number_literal )))) ;) (if_statement "if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }" if (parenthesized_expression "(iVar7 == 2)" ( (binary_expression "iVar7 == 2" identifier == number_literal) )) (compound_statement "{\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }" { (if_statement "if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }" if (parenthesized_expression "(local_36 == 0x1f9d)" ( (binary_expression "local_36 == 0x1f9d" identifier == number_literal) )) (compound_statement "{\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }" { (expression_statement "*param_1 = '\x02';" (assignment_expression "*param_1 = '\x02'" (pointer_expression "*param_1" * identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "lVar19 = FUN_000a8640(param_1);" (assignment_expression "lVar19 = FUN_000a8640(param_1)" identifier = (call_expression "FUN_000a8640(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (goto_statement "goto LAB_000a8348;" goto statement_identifier ;) })) (if_statement "if (local_36 == 0x1f8b) goto LAB_000a827c;" if (parenthesized_expression "(local_36 == 0x1f8b)" ( (binary_expression "local_36 == 0x1f8b" identifier == number_literal) )) (goto_statement "goto LAB_000a827c;" goto statement_identifier ;)) })) (expression_statement "lVar19 = -1;" (assignment_expression "lVar19 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);" (call_expression "(*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1c8)" ( (pointer_expression "*(code *)PTR_FUN_0012a1c8" * (cast_expression "(code *)PTR_FUN_0012a1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0x563c)" ( (binary_expression "PTR_FUN_0012a1a8 + -0x563c" identifier + number_literal) ))) ;) }) (else_clause "else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }" else (compound_statement "{\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }" { (labeled_statement "LAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;" statement_identifier : (expression_statement "puVar16 = PTR_FUN_0012a1a8;" (assignment_expression "puVar16 = PTR_FUN_0012a1a8" identifier = identifier) ;)) (expression_statement "lVar19 = 0;" (assignment_expression "lVar19 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);" (assignment_expression "iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170)" identifier = (call_expression "(*(code *)PTR_FUN_0012a1d0)(0x170)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1d0)" ( (pointer_expression "*(code *)PTR_FUN_0012a1d0" * (cast_expression "(code *)PTR_FUN_0012a1d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x170)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar7 + 0x2c) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar7 + 0x2c)" * (cast_expression "(undefined4 *)(iVar7 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x2c)" ( (binary_expression "iVar7 + 0x2c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar3 = PTR_FUN_0012a230;" (assignment_expression "puVar3 = PTR_FUN_0012a230" identifier = identifier) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x28) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar7 + 0x28) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar7 + 0x28)" * (cast_expression "(undefined4 *)(iVar7 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x28)" ( (binary_expression "iVar7 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar8 = (*(code *)puVar3)(0x4000);" (assignment_expression "iVar8 = (*(code *)puVar3)(0x4000)" identifier = (call_expression "(*(code *)puVar3)(0x4000)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x4000)" ( number_literal )))) ;) (expression_statement "uVar9 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar9 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar17 = *(int *)(iVar7 + 0x30);" (assignment_expression "iVar17 = *(int *)(iVar7 + 0x30)" identifier = (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar7 + 0x24) = iVar8;" (assignment_expression "*(int *)(iVar7 + 0x24) = iVar8" (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);" (assignment_expression "pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0)" identifier = (cast_expression "(code *)(PTR_LAB_0012aa28 + 0x7cb0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0012aa28 + 0x7cb0)" ( (binary_expression "PTR_LAB_0012aa28 + 0x7cb0" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(iVar7 + 0xc) = uVar9;" (assignment_expression "*(undefined4 *)(iVar7 + 0xc) = uVar9" (pointer_expression "*(undefined4 *)(iVar7 + 0xc)" * (cast_expression "(undefined4 *)(iVar7 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xc)" ( (binary_expression "iVar7 + 0xc" identifier + number_literal) )))) = identifier) ;) (while_statement "while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }" { (expression_statement "puVar3 = PTR_memmove_0012b174;" (assignment_expression "puVar3 = PTR_memmove_0012b174" identifier = identifier) ;) (expression_statement "*(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;" (assignment_expression "*(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17" (pointer_expression "*(int *)(iVar7 + 0x34)" * (cast_expression "(int *)(iVar7 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x34)" ( (binary_expression "iVar7 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar7 + 0x34) - iVar17" (pointer_expression "*(int *)(iVar7 + 0x34)" * (cast_expression "(int *)(iVar7 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x34)" ( (binary_expression "iVar7 + 0x34" identifier + number_literal) )))) - identifier)) ;) (expression_statement "(*(code *)puVar3)(iVar8,iVar8 + iVar17);" (call_expression "(*(code *)puVar3)(iVar8,iVar8 + iVar17)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8,iVar8 + iVar17)" ( identifier , (binary_expression "iVar8 + iVar17" identifier + identifier) ))) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(iVar7 + 0x30) = 0" (pointer_expression "*(undefined4 *)(iVar7 + 0x30)" * (cast_expression "(undefined4 *)(iVar7 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar8 = FUN_000a6584(iVar7,8);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,8)" identifier = (call_expression "FUN_000a6584(iVar7,8)" identifier (argument_list "(iVar7,8)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));" (assignment_expression "puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" identifier = (cast_expression "(uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" ( (binary_expression "*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30)" (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) ))))) )))) ;) (expression_statement "uVar14 = puVar10[1];" (assignment_expression "uVar14 = puVar10[1]" identifier = (subscript_expression "puVar10[1]" identifier [ number_literal ])) ;) (expression_statement "uVar18 = *puVar10;" (assignment_expression "uVar18 = *puVar10" identifier = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;" (assignment_expression "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar7 + 0x30) + 8" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "local_34 = (undefined2)(uVar18 >> 0x10);" (assignment_expression "local_34 = (undefined2)(uVar18 >> 0x10)" identifier = (call_expression "(undefined2)(uVar18 >> 0x10)" (parenthesized_expression "(undefined2)" ( identifier )) (argument_list "(uVar18 >> 0x10)" ( (binary_expression "uVar18 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "uStack_32 = (ushort)uVar18;" (assignment_expression "uStack_32 = (ushort)uVar18" identifier = (cast_expression "(ushort)uVar18" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "uVar5 = uStack_32;" (assignment_expression "uVar5 = uStack_32" identifier = identifier) ;) (expression_statement "local_30 = (ushort)(uVar14 >> 0x10);" (assignment_expression "local_30 = (ushort)(uVar14 >> 0x10)" identifier = (call_expression "(ushort)(uVar14 >> 0x10)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar14 >> 0x10)" ( (binary_expression "uVar14 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "uVar6 = local_30;" (assignment_expression "uVar6 = local_30" identifier = identifier) ;) (expression_statement "uStack_2e = (undefined2)uVar14;" (assignment_expression "uStack_2e = (undefined2)uVar14" identifier = (cast_expression "(undefined2)uVar14" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "uVar14 = (uVar18 << 8) >> 0x18;" (assignment_expression "uVar14 = (uVar18 << 8) >> 0x18" identifier = (binary_expression "(uVar18 << 8) >> 0x18" (parenthesized_expression "(uVar18 << 8)" ( (binary_expression "uVar18 << 8" identifier << number_literal) )) >> number_literal)) ;) (if_statement "if (uVar18 >> 0x18 != 8) break;" if (parenthesized_expression "(uVar18 >> 0x18 != 8)" ( (binary_expression "uVar18 >> 0x18 != 8" (binary_expression "uVar18 >> 0x18" identifier >> number_literal) != number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }" if (parenthesized_expression "((uVar14 & 4) != 0)" ( (binary_expression "(uVar14 & 4) != 0" (parenthesized_expression "(uVar14 & 4)" ( (binary_expression "uVar14 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }" { (expression_statement "iVar8 = FUN_000a6584(iVar7,2);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,2)" identifier = (call_expression "FUN_000a6584(iVar7,2)" identifier (argument_list "(iVar7,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));" (assignment_expression "puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" identifier = (cast_expression "(undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" ( (binary_expression "*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30)" (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) ))))) )))) ;) (expression_statement "uVar1 = puVar11[1];" (assignment_expression "uVar1 = puVar11[1]" identifier = (subscript_expression "puVar11[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = *puVar11;" (assignment_expression "uVar2 = *puVar11" identifier = (pointer_expression "*puVar11" * identifier)) ;) (expression_statement "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;" (assignment_expression "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar15 = (uint)CONCAT11(uVar1,uVar2);" (assignment_expression "uVar15 = (uint)CONCAT11(uVar1,uVar2)" identifier = (cast_expression "(uint)CONCAT11(uVar1,uVar2)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CONCAT11(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))))) ;) (expression_statement "iVar8 = FUN_000a6584(iVar7,uVar15);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,uVar15)" identifier = (call_expression "FUN_000a6584(iVar7,uVar15)" identifier (argument_list "(iVar7,uVar15)" ( identifier , identifier )))) ;) (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;" (assignment_expression "*(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15" (pointer_expression "*(uint *)(iVar7 + 0x30)" * (cast_expression "(uint *)(iVar7 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar7 + 0x30) + uVar15" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) + identifier)) ;) })) (if_statement "if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }" if (parenthesized_expression "((uVar14 & 0x18) != 0)" ( (binary_expression "(uVar14 & 0x18) != 0" (parenthesized_expression "(uVar14 & 0x18)" ( (binary_expression "uVar14 & 0x18" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }" { (while_statement "while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }" while (parenthesized_expression "(iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0)" ( (comma_expression "iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0" (assignment_expression "iVar8 = FUN_000a6584(iVar7,1)" identifier = (call_expression "FUN_000a6584(iVar7,1)" identifier (argument_list "(iVar7,1)" ( identifier , number_literal )))) , (binary_expression "iVar8 != 0" identifier != number_literal)) )) (compound_statement "{\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }" { (expression_statement "iVar8 = *(int *)(iVar7 + 0x30);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x30)" identifier = (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) ))))) ;) (while_statement "while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }" while (parenthesized_expression "(*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0')" ( (comma_expression "*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0'" (assignment_expression "*(int *)(iVar7 + 0x30) = iVar8 + 1" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = (binary_expression "iVar8 + 1" identifier + number_literal)) , (binary_expression "*(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0'" (pointer_expression "*(char *)(*(int *)(iVar7 + 0x24) + iVar8)" * (cast_expression "(char *)(*(int *)(iVar7 + 0x24) + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x24) + iVar8)" ( (binary_expression "*(int *)(iVar7 + 0x24) + iVar8" (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) )))) + identifier) )))) == (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }" { (if_statement "if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;" if (parenthesized_expression "((uVar14 & 0x18) != 0x18)" ( (binary_expression "(uVar14 & 0x18) != 0x18" (parenthesized_expression "(uVar14 & 0x18)" ( (binary_expression "uVar14 & 0x18" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_000a84a4;" goto statement_identifier ;)) (expression_statement "uVar14 = uVar14 & 0xffffffe7;" (assignment_expression "uVar14 = uVar14 & 0xffffffe7" identifier = (binary_expression "uVar14 & 0xffffffe7" identifier & number_literal)) ;) (expression_statement "iVar8 = FUN_000a6584(iVar7,1);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,1)" identifier = (call_expression "FUN_000a6584(iVar7,1)" identifier (argument_list "(iVar7,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) goto LAB_000a8324;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a8324;" goto statement_identifier ;)) (expression_statement "iVar8 = *(int *)(iVar7 + 0x30);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x30)" identifier = (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) ))))) ;) })) })) (break_statement "break;" break ;) })) (labeled_statement "LAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;" statement_identifier : (expression_statement "*(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;" (assignment_expression "*(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000" (parenthesized_expression "((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10)" ( (binary_expression "(uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10" (parenthesized_expression "(uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10)" ( (binary_expression "uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10" (binary_expression "uVar18 << 0x18" identifier << number_literal) | (binary_expression "(uint)(uVar5 >> 8) << 0x10" (call_expression "(uint)(uVar5 >> 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 >> 8)" ( (binary_expression "uVar5 >> 8" identifier >> number_literal) ))) << number_literal)) )) >> number_literal) )) + (binary_expression "((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000" (parenthesized_expression "((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8))" ( (binary_expression "(uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)" (binary_expression "(uVar6 & 0xff) << 8" (parenthesized_expression "(uVar6 & 0xff)" ( (binary_expression "uVar6 & 0xff" identifier & number_literal) )) << number_literal) | (call_expression "(uint)(uVar6 >> 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) )))) )) * number_literal))) ;)) (if_statement "if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }" if (parenthesized_expression "((uVar14 & 2) != 0)" ( (binary_expression "(uVar14 & 2) != 0" (parenthesized_expression "(uVar14 & 2)" ( (binary_expression "uVar14 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }" { (expression_statement "iVar8 = FUN_000a6584(iVar7,2);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,2)" identifier = (call_expression "FUN_000a6584(iVar7,2)" identifier (argument_list "(iVar7,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;" (assignment_expression "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) + number_literal)) ;) })) (expression_statement "lVar20 = (*pcVar13)(iVar7,param_1);" (assignment_expression "lVar20 = (*pcVar13)(iVar7,param_1)" identifier = (call_expression "(*pcVar13)(iVar7,param_1)" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "(iVar7,param_1)" ( identifier , identifier )))) ;) (if_statement "if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }" if (parenthesized_expression "(lVar20 < 0)" ( (binary_expression "lVar20 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }" { (expression_statement "iVar8 = *(int *)(iVar7 + 0x24);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x24)" identifier = (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "lVar19 = -1;" (assignment_expression "lVar19 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_000a850c;" goto statement_identifier ;) })) (expression_statement "iVar8 = FUN_000a6584(iVar7,8);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,8)" identifier = (call_expression "FUN_000a6584(iVar7,8)" identifier (argument_list "(iVar7,8)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);" (assignment_expression "uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30)" identifier = (call_expression "FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30)" identifier (argument_list "(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30)" ( (pointer_expression "*(undefined4 *)(iVar7 + 0x24)" * (cast_expression "(undefined4 *)(iVar7 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) )))) , (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) ;) (if_statement "if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }" if (parenthesized_expression "(~*(uint *)(iVar7 + 8) != uVar14)" ( (binary_expression "~*(uint *)(iVar7 + 8) != uVar14" (unary_expression "~*(uint *)(iVar7 + 8)" ~ (pointer_expression "*(uint *)(iVar7 + 8)" * (cast_expression "(uint *)(iVar7 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) ))))) != identifier) )) (compound_statement "{\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }" { (expression_statement "puVar16 = PTR_FUN_0012a1a8 + -0x5874;" (assignment_expression "puVar16 = PTR_FUN_0012a1a8 + -0x5874" identifier = (binary_expression "PTR_FUN_0012a1a8 + -0x5874" identifier + number_literal)) ;) (goto_statement "goto LAB_000a8570;" goto statement_identifier ;) })) (expression_statement "iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));" (assignment_expression "iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24))" identifier = (call_expression "FUN_000a6660(*(undefined4 *)(iVar7 + 0x24))" identifier (argument_list "(*(undefined4 *)(iVar7 + 0x24))" ( (pointer_expression "*(undefined4 *)(iVar7 + 0x24)" * (cast_expression "(undefined4 *)(iVar7 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) )))) )))) ;) (if_statement "if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }" if (parenthesized_expression "(*(int *)(iVar7 + 4) == iVar8)" ( (binary_expression "*(int *)(iVar7 + 4) == iVar8" (pointer_expression "*(int *)(iVar7 + 4)" * (cast_expression "(int *)(iVar7 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        lVar19 = lVar20 + lVar19;\n      }" { (expression_statement "lVar19 = lVar20 + lVar19;" (assignment_expression "lVar19 = lVar20 + lVar19" identifier = (binary_expression "lVar20 + lVar19" identifier + identifier)) ;) }) (else_clause "else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }" else (compound_statement "{\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }" { (expression_statement "lVar19 = -1;" (assignment_expression "lVar19 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);" (call_expression "(*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1c8)" ( (pointer_expression "*(code *)PTR_FUN_0012a1c8" * (cast_expression "(code *)PTR_FUN_0012a1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar16 + -0x562c)" ( (binary_expression "puVar16 + -0x562c" identifier + number_literal) ))) ;) }))) (expression_statement "iVar17 = FUN_000a6584(iVar7,2);" (assignment_expression "iVar17 = FUN_000a6584(iVar7,2)" identifier = (call_expression "FUN_000a6584(iVar7,2)" identifier (argument_list "(iVar7,2)" ( identifier , number_literal )))) ;) (expression_statement "iVar8 = *(int *)(iVar7 + 0x24);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x24)" identifier = (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar17 == 0) goto LAB_000a850c;" if (parenthesized_expression "(iVar17 == 0)" ( (binary_expression "iVar17 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a850c;" goto statement_identifier ;)) (expression_statement "pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));" (assignment_expression "pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30))" identifier = (cast_expression "(char *)(iVar8 + *(int *)(iVar7 + 0x30))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + *(int *)(iVar7 + 0x30))" ( (binary_expression "iVar8 + *(int *)(iVar7 + 0x30)" identifier + (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) ))))) )))) ;) (if_statement "if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;" if (parenthesized_expression "((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))" ( (binary_expression "(*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75)" (parenthesized_expression "(*pcVar12 != '\x1f')" ( (binary_expression "*pcVar12 != '\x1f'" (pointer_expression "*pcVar12" * identifier) != (char_literal "'\x1f'" ' escape_sequence ')) )) || (parenthesized_expression "(iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75)" ( (comma_expression "iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75" (assignment_expression "iVar17 = *(int *)(iVar7 + 0x30) + 2" identifier = (binary_expression "*(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) + number_literal)) , (binary_expression "pcVar12[1] != -0x75" (subscript_expression "pcVar12[1]" identifier [ number_literal ]) != number_literal)) ))) )) (goto_statement "goto LAB_000a850c;" goto statement_identifier ;)) (expression_statement "*(int *)(iVar7 + 0x30) = iVar17;" (assignment_expression "*(int *)(iVar7 + 0x30) = iVar17" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = identifier) ;) })) (labeled_statement "LAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;" statement_identifier : (expression_statement "puVar16 = PTR_FUN_0012a1a8 + -0x5df0;" (assignment_expression "puVar16 = PTR_FUN_0012a1a8 + -0x5df0" identifier = (binary_expression "PTR_FUN_0012a1a8 + -0x5df0" identifier + number_literal)) ;)) (labeled_statement "LAB_000a8570:\n    lVar19 = -1;" statement_identifier : (expression_statement "lVar19 = -1;" (assignment_expression "lVar19 = -1" identifier = number_literal) ;)) (expression_statement "(*(code *)PTR_FUN_0012a1c8)(puVar16);" (call_expression "(*(code *)PTR_FUN_0012a1c8)(puVar16)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1c8)" ( (pointer_expression "*(code *)PTR_FUN_0012a1c8" * (cast_expression "(code *)PTR_FUN_0012a1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar16)" ( identifier ))) ;) (expression_statement "iVar8 = *(int *)(iVar7 + 0x24);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x24)" identifier = (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) ))))) ;) (labeled_statement "LAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);" statement_identifier : (expression_statement "(*(code *)PTR_free_0012b168)(iVar8);" (call_expression "(*(code *)PTR_free_0012b168)(iVar8)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8)" ( identifier ))) ;)) (expression_statement "(*(code *)PTR_free_0012b168)(iVar7);" (call_expression "(*(code *)PTR_free_0012b168)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier ))) ;) }))) (labeled_statement "LAB_000a8348:\n  if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }" statement_identifier : (if_statement "if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar4)" ( (binary_expression "local_2c != *(int *)puVar4" identifier != (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }" { (expression_statement "lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" identifier = (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return lVar19;" return identifier ;) }))) (return_statement "return lVar19;" return identifier ;) })))
(translation_unit "longlong unpack_gz_stream(transformer_state_t *xstate)\n\n{\n  uchar uVar1;\n  uchar uVar2;\n  undefined *puVar3;\n  ushort uVar4;\n  ushort uVar5;\n  int iVar6;\n  uint32_t uVar7;\n  uint uVar8;\n  uint uVar9;\n  uchar *puVar10;\n  undefined *puVar11;\n  state_t *state_1;\n  uint uVar12;\n  state_t *unaff_s8;\n  longlong lVar13;\n  longlong lVar14;\n  code *pcStack_44;\n  undefined *puStack_40;\n  uint16_t magic2;\n  undefined2 uStack_34;\n  ushort uStack_32;\n  ushort uStack_30;\n  undefined2 uStack_2e;\n  int iStack_2c;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  iStack_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if (xstate->signature_skipped != '\0') {\nLAB_000a827c:\n    puStack_40 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8;\n    lVar13 = 0;\n    unaff_s8 = (state_t *)(*(code *)PTR_xzalloc_0012a1d0)(0x170);\n    *(undefined4 *)((int)&unaff_s8->to_read + 4) = 0xffffffff;\n    puVar11 = PTR_xmalloc_0012a230;\n    *(undefined4 *)&unaff_s8->to_read = 0xffffffff;\n    puVar10 = (uchar *)(*(code *)puVar11)(0x4000);\n    iVar6 = xstate->src_fd;\n    uVar8 = unaff_s8->bytebuffer_offset;\n    unaff_s8->bytebuffer = puVar10;\n    pcStack_44 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    unaff_s8->gunzip_src_fd = iVar6;\n    goto LAB_000a82f0;\n  }\n  iVar6 = (*(code *)PTR_full_read_0012a2bc)(xstate->src_fd,&magic2,2);\n  if (iVar6 == 2) {\n    if (magic2 == 0x1f9d) {\n      xstate->signature_skipped = '\x02';\n      lVar13 = unpack_Z_stream(xstate);\n      goto LAB_000a8348;\n    }\n    if (magic2 == 0x1f8b) goto LAB_000a827c;\n  }\n  lVar13 = -1;\n  (*(code *)PTR_bb_error_msg_0012a1c8)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x563c);\nLAB_000a8348:\n  do {\n    if (iStack_2c == *(int *)puVar3) {\n      return lVar13;\n    }\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    while( true ) {\n      uVar8 = *(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4);\n      uVar12 = *(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset);\n      unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 8;\n      uStack_34 = (undefined2)(uVar12 >> 0x10);\n      uStack_32 = (ushort)uVar12;\n      uVar4 = uStack_32;\n      uStack_30 = (ushort)(uVar8 >> 0x10);\n      uVar5 = uStack_30;\n      uStack_2e = (undefined2)uVar8;\n      uVar8 = (uVar12 << 8) >> 0x18;\n      if (uVar12 >> 0x18 != 8) break;\n      if ((uVar8 & 4) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];\n        uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n        uVar9 = (uint)CONCAT11(uVar1,uVar2);\n        iVar6 = top_up(unaff_s8,uVar9);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9;\n      }\n      if ((uVar8 & 0x18) != 0) {\n        while (iVar6 = top_up(unaff_s8,1), iVar6 != 0) {\n          uVar9 = unaff_s8->bytebuffer_offset;\n          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      xstate->mtime =\n           ((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +\n           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000;\n      if ((uVar8 & 2) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n      }\n      lVar14 = (*pcStack_44)(unaff_s8,xstate);\n      if (lVar14 < 0) {\n        puVar10 = unaff_s8->bytebuffer;\n        lVar13 = -1;\n        goto LAB_000a850c;\n      }\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n      state_1 = (state_t *)&unaff_s8->bytebuffer_offset;\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if (~unaff_s8->gunzip_crc != uVar7) {\n        puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if ((uint32_t)unaff_s8->gunzip_bytes_out == uVar7) {\n        lVar13 = lVar13 + lVar14;\n      }\n      else {\n        lVar13 = -1;\n        (*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);\n      }\n      iVar6 = top_up(unaff_s8,2);\n      puVar10 = unaff_s8->bytebuffer;\n      if (iVar6 == 0) goto LAB_000a850c;\n      if ((puVar10[unaff_s8->bytebuffer_offset] != '\x1f') ||\n         (uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b)) goto LAB_000a850c;\n      unaff_s8->bytebuffer_offset = uVar8;\nLAB_000a82f0:\n      puVar11 = PTR_memmove_0012b174;\n      unaff_s8->bytebuffer_size = unaff_s8->bytebuffer_size - uVar8;\n      (*(code *)puVar11)(puVar10,puVar10 + uVar8);\n      unaff_s8->bytebuffer_offset = 0;\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n    }\nLAB_000a8324:\n    puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar13 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)(puVar11);\n    puVar10 = unaff_s8->bytebuffer;\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(puVar10);\n    (*(code *)PTR_free_0012b168)(unaff_s8);\n  } while( true );\n}\n\n" (function_definition "longlong unpack_gz_stream(transformer_state_t *xstate)\n\n{\n  uchar uVar1;\n  uchar uVar2;\n  undefined *puVar3;\n  ushort uVar4;\n  ushort uVar5;\n  int iVar6;\n  uint32_t uVar7;\n  uint uVar8;\n  uint uVar9;\n  uchar *puVar10;\n  undefined *puVar11;\n  state_t *state_1;\n  uint uVar12;\n  state_t *unaff_s8;\n  longlong lVar13;\n  longlong lVar14;\n  code *pcStack_44;\n  undefined *puStack_40;\n  uint16_t magic2;\n  undefined2 uStack_34;\n  ushort uStack_32;\n  ushort uStack_30;\n  undefined2 uStack_2e;\n  int iStack_2c;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  iStack_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if (xstate->signature_skipped != '\0') {\nLAB_000a827c:\n    puStack_40 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8;\n    lVar13 = 0;\n    unaff_s8 = (state_t *)(*(code *)PTR_xzalloc_0012a1d0)(0x170);\n    *(undefined4 *)((int)&unaff_s8->to_read + 4) = 0xffffffff;\n    puVar11 = PTR_xmalloc_0012a230;\n    *(undefined4 *)&unaff_s8->to_read = 0xffffffff;\n    puVar10 = (uchar *)(*(code *)puVar11)(0x4000);\n    iVar6 = xstate->src_fd;\n    uVar8 = unaff_s8->bytebuffer_offset;\n    unaff_s8->bytebuffer = puVar10;\n    pcStack_44 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    unaff_s8->gunzip_src_fd = iVar6;\n    goto LAB_000a82f0;\n  }\n  iVar6 = (*(code *)PTR_full_read_0012a2bc)(xstate->src_fd,&magic2,2);\n  if (iVar6 == 2) {\n    if (magic2 == 0x1f9d) {\n      xstate->signature_skipped = '\x02';\n      lVar13 = unpack_Z_stream(xstate);\n      goto LAB_000a8348;\n    }\n    if (magic2 == 0x1f8b) goto LAB_000a827c;\n  }\n  lVar13 = -1;\n  (*(code *)PTR_bb_error_msg_0012a1c8)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x563c);\nLAB_000a8348:\n  do {\n    if (iStack_2c == *(int *)puVar3) {\n      return lVar13;\n    }\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    while( true ) {\n      uVar8 = *(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4);\n      uVar12 = *(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset);\n      unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 8;\n      uStack_34 = (undefined2)(uVar12 >> 0x10);\n      uStack_32 = (ushort)uVar12;\n      uVar4 = uStack_32;\n      uStack_30 = (ushort)(uVar8 >> 0x10);\n      uVar5 = uStack_30;\n      uStack_2e = (undefined2)uVar8;\n      uVar8 = (uVar12 << 8) >> 0x18;\n      if (uVar12 >> 0x18 != 8) break;\n      if ((uVar8 & 4) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];\n        uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n        uVar9 = (uint)CONCAT11(uVar1,uVar2);\n        iVar6 = top_up(unaff_s8,uVar9);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9;\n      }\n      if ((uVar8 & 0x18) != 0) {\n        while (iVar6 = top_up(unaff_s8,1), iVar6 != 0) {\n          uVar9 = unaff_s8->bytebuffer_offset;\n          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      xstate->mtime =\n           ((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +\n           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000;\n      if ((uVar8 & 2) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n      }\n      lVar14 = (*pcStack_44)(unaff_s8,xstate);\n      if (lVar14 < 0) {\n        puVar10 = unaff_s8->bytebuffer;\n        lVar13 = -1;\n        goto LAB_000a850c;\n      }\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n      state_1 = (state_t *)&unaff_s8->bytebuffer_offset;\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if (~unaff_s8->gunzip_crc != uVar7) {\n        puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if ((uint32_t)unaff_s8->gunzip_bytes_out == uVar7) {\n        lVar13 = lVar13 + lVar14;\n      }\n      else {\n        lVar13 = -1;\n        (*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);\n      }\n      iVar6 = top_up(unaff_s8,2);\n      puVar10 = unaff_s8->bytebuffer;\n      if (iVar6 == 0) goto LAB_000a850c;\n      if ((puVar10[unaff_s8->bytebuffer_offset] != '\x1f') ||\n         (uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b)) goto LAB_000a850c;\n      unaff_s8->bytebuffer_offset = uVar8;\nLAB_000a82f0:\n      puVar11 = PTR_memmove_0012b174;\n      unaff_s8->bytebuffer_size = unaff_s8->bytebuffer_size - uVar8;\n      (*(code *)puVar11)(puVar10,puVar10 + uVar8);\n      unaff_s8->bytebuffer_offset = 0;\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n    }\nLAB_000a8324:\n    puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar13 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)(puVar11);\n    puVar10 = unaff_s8->bytebuffer;\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(puVar10);\n    (*(code *)PTR_free_0012b168)(unaff_s8);\n  } while( true );\n}" type_identifier (function_declarator "unpack_gz_stream(transformer_state_t *xstate)" identifier (parameter_list "(transformer_state_t *xstate)" ( (parameter_declaration "transformer_state_t *xstate" type_identifier (pointer_declarator "*xstate" * identifier)) ))) (compound_statement "{\n  uchar uVar1;\n  uchar uVar2;\n  undefined *puVar3;\n  ushort uVar4;\n  ushort uVar5;\n  int iVar6;\n  uint32_t uVar7;\n  uint uVar8;\n  uint uVar9;\n  uchar *puVar10;\n  undefined *puVar11;\n  state_t *state_1;\n  uint uVar12;\n  state_t *unaff_s8;\n  longlong lVar13;\n  longlong lVar14;\n  code *pcStack_44;\n  undefined *puStack_40;\n  uint16_t magic2;\n  undefined2 uStack_34;\n  ushort uStack_32;\n  ushort uStack_30;\n  undefined2 uStack_2e;\n  int iStack_2c;\n  \n  puVar3 = PTR___stack_chk_guard_0012b14c;\n  iStack_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if (xstate->signature_skipped != '\0') {\nLAB_000a827c:\n    puStack_40 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8;\n    lVar13 = 0;\n    unaff_s8 = (state_t *)(*(code *)PTR_xzalloc_0012a1d0)(0x170);\n    *(undefined4 *)((int)&unaff_s8->to_read + 4) = 0xffffffff;\n    puVar11 = PTR_xmalloc_0012a230;\n    *(undefined4 *)&unaff_s8->to_read = 0xffffffff;\n    puVar10 = (uchar *)(*(code *)puVar11)(0x4000);\n    iVar6 = xstate->src_fd;\n    uVar8 = unaff_s8->bytebuffer_offset;\n    unaff_s8->bytebuffer = puVar10;\n    pcStack_44 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    unaff_s8->gunzip_src_fd = iVar6;\n    goto LAB_000a82f0;\n  }\n  iVar6 = (*(code *)PTR_full_read_0012a2bc)(xstate->src_fd,&magic2,2);\n  if (iVar6 == 2) {\n    if (magic2 == 0x1f9d) {\n      xstate->signature_skipped = '\x02';\n      lVar13 = unpack_Z_stream(xstate);\n      goto LAB_000a8348;\n    }\n    if (magic2 == 0x1f8b) goto LAB_000a827c;\n  }\n  lVar13 = -1;\n  (*(code *)PTR_bb_error_msg_0012a1c8)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x563c);\nLAB_000a8348:\n  do {\n    if (iStack_2c == *(int *)puVar3) {\n      return lVar13;\n    }\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    while( true ) {\n      uVar8 = *(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4);\n      uVar12 = *(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset);\n      unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 8;\n      uStack_34 = (undefined2)(uVar12 >> 0x10);\n      uStack_32 = (ushort)uVar12;\n      uVar4 = uStack_32;\n      uStack_30 = (ushort)(uVar8 >> 0x10);\n      uVar5 = uStack_30;\n      uStack_2e = (undefined2)uVar8;\n      uVar8 = (uVar12 << 8) >> 0x18;\n      if (uVar12 >> 0x18 != 8) break;\n      if ((uVar8 & 4) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];\n        uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n        uVar9 = (uint)CONCAT11(uVar1,uVar2);\n        iVar6 = top_up(unaff_s8,uVar9);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9;\n      }\n      if ((uVar8 & 0x18) != 0) {\n        while (iVar6 = top_up(unaff_s8,1), iVar6 != 0) {\n          uVar9 = unaff_s8->bytebuffer_offset;\n          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      xstate->mtime =\n           ((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +\n           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000;\n      if ((uVar8 & 2) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n      }\n      lVar14 = (*pcStack_44)(unaff_s8,xstate);\n      if (lVar14 < 0) {\n        puVar10 = unaff_s8->bytebuffer;\n        lVar13 = -1;\n        goto LAB_000a850c;\n      }\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n      state_1 = (state_t *)&unaff_s8->bytebuffer_offset;\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if (~unaff_s8->gunzip_crc != uVar7) {\n        puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if ((uint32_t)unaff_s8->gunzip_bytes_out == uVar7) {\n        lVar13 = lVar13 + lVar14;\n      }\n      else {\n        lVar13 = -1;\n        (*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);\n      }\n      iVar6 = top_up(unaff_s8,2);\n      puVar10 = unaff_s8->bytebuffer;\n      if (iVar6 == 0) goto LAB_000a850c;\n      if ((puVar10[unaff_s8->bytebuffer_offset] != '\x1f') ||\n         (uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b)) goto LAB_000a850c;\n      unaff_s8->bytebuffer_offset = uVar8;\nLAB_000a82f0:\n      puVar11 = PTR_memmove_0012b174;\n      unaff_s8->bytebuffer_size = unaff_s8->bytebuffer_size - uVar8;\n      (*(code *)puVar11)(puVar10,puVar10 + uVar8);\n      unaff_s8->bytebuffer_offset = 0;\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n    }\nLAB_000a8324:\n    puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar13 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)(puVar11);\n    puVar10 = unaff_s8->bytebuffer;\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(puVar10);\n    (*(code *)PTR_free_0012b168)(unaff_s8);\n  } while( true );\n}" { (declaration "uchar uVar1;" type_identifier identifier ;) (declaration "uchar uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "ushort uVar4;" type_identifier identifier ;) (declaration "ushort uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint32_t uVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uchar *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "state_t *state_1;" type_identifier (pointer_declarator "*state_1" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "state_t *unaff_s8;" type_identifier (pointer_declarator "*unaff_s8" * identifier) ;) (declaration "longlong lVar13;" type_identifier identifier ;) (declaration "longlong lVar14;" type_identifier identifier ;) (declaration "code *pcStack_44;" type_identifier (pointer_declarator "*pcStack_44" * identifier) ;) (declaration "undefined *puStack_40;" type_identifier (pointer_declarator "*puStack_40" * identifier) ;) (declaration "uint16_t magic2;" primitive_type identifier ;) (declaration "undefined2 uStack_34;" type_identifier identifier ;) (declaration "ushort uStack_32;" type_identifier identifier ;) (declaration "ushort uStack_30;" type_identifier identifier ;) (declaration "undefined2 uStack_2e;" type_identifier identifier ;) (declaration "int iStack_2c;" primitive_type identifier ;) (expression_statement "puVar3 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar3 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "iStack_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "iStack_2c = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (xstate->signature_skipped != '\0') {\nLAB_000a827c:\n    puStack_40 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8;\n    lVar13 = 0;\n    unaff_s8 = (state_t *)(*(code *)PTR_xzalloc_0012a1d0)(0x170);\n    *(undefined4 *)((int)&unaff_s8->to_read + 4) = 0xffffffff;\n    puVar11 = PTR_xmalloc_0012a230;\n    *(undefined4 *)&unaff_s8->to_read = 0xffffffff;\n    puVar10 = (uchar *)(*(code *)puVar11)(0x4000);\n    iVar6 = xstate->src_fd;\n    uVar8 = unaff_s8->bytebuffer_offset;\n    unaff_s8->bytebuffer = puVar10;\n    pcStack_44 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    unaff_s8->gunzip_src_fd = iVar6;\n    goto LAB_000a82f0;\n  }" if (parenthesized_expression "(xstate->signature_skipped != '\0')" ( (binary_expression "xstate->signature_skipped != '\0'" (field_expression "xstate->signature_skipped" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000a827c:\n    puStack_40 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8;\n    lVar13 = 0;\n    unaff_s8 = (state_t *)(*(code *)PTR_xzalloc_0012a1d0)(0x170);\n    *(undefined4 *)((int)&unaff_s8->to_read + 4) = 0xffffffff;\n    puVar11 = PTR_xmalloc_0012a230;\n    *(undefined4 *)&unaff_s8->to_read = 0xffffffff;\n    puVar10 = (uchar *)(*(code *)puVar11)(0x4000);\n    iVar6 = xstate->src_fd;\n    uVar8 = unaff_s8->bytebuffer_offset;\n    unaff_s8->bytebuffer = puVar10;\n    pcStack_44 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    unaff_s8->gunzip_src_fd = iVar6;\n    goto LAB_000a82f0;\n  }" { (labeled_statement "LAB_000a827c:\n    puStack_40 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8;" statement_identifier : (expression_statement "puStack_40 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8;" (assignment_expression "puStack_40 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" identifier = (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier)) (ERROR ")9__f_l_0012a1a8" ) number_literal identifier) ;)) (expression_statement "lVar13 = 0;" (assignment_expression "lVar13 = 0" identifier = number_literal) ;) (expression_statement "unaff_s8 = (state_t *)(*(code *)PTR_xzalloc_0012a1d0)(0x170);" (assignment_expression "unaff_s8 = (state_t *)(*(code *)PTR_xzalloc_0012a1d0)(0x170)" identifier = (cast_expression "(state_t *)(*(code *)PTR_xzalloc_0012a1d0)(0x170)" ( (type_descriptor "state_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xzalloc_0012a1d0)(0x170)" (parenthesized_expression "(*(code *)PTR_xzalloc_0012a1d0)" ( (pointer_expression "*(code *)PTR_xzalloc_0012a1d0" * (cast_expression "(code *)PTR_xzalloc_0012a1d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x170)" ( number_literal ))))) ;) (expression_statement "*(undefined4 *)((int)&unaff_s8->to_read + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)&unaff_s8->to_read + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)&unaff_s8->to_read + 4)" * (cast_expression "(undefined4 *)((int)&unaff_s8->to_read + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&unaff_s8->to_read + 4)" ( (binary_expression "(int)&unaff_s8->to_read + 4" (cast_expression "(int)&unaff_s8->to_read" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&unaff_s8->to_read" & (field_expression "unaff_s8->to_read" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "puVar11 = PTR_xmalloc_0012a230;" (assignment_expression "puVar11 = PTR_xmalloc_0012a230" identifier = identifier) ;) (expression_statement "*(undefined4 *)&unaff_s8->to_read = 0xffffffff;" (assignment_expression "*(undefined4 *)&unaff_s8->to_read = 0xffffffff" (pointer_expression "*(undefined4 *)&unaff_s8->to_read" * (cast_expression "(undefined4 *)&unaff_s8->to_read" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&unaff_s8->to_read" & (field_expression "unaff_s8->to_read" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "puVar10 = (uchar *)(*(code *)puVar11)(0x4000);" (assignment_expression "puVar10 = (uchar *)(*(code *)puVar11)(0x4000)" identifier = (cast_expression "(uchar *)(*(code *)puVar11)(0x4000)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar11)(0x4000)" (parenthesized_expression "(*(code *)puVar11)" ( (pointer_expression "*(code *)puVar11" * (cast_expression "(code *)puVar11" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x4000)" ( number_literal ))))) ;) (expression_statement "iVar6 = xstate->src_fd;" (assignment_expression "iVar6 = xstate->src_fd" identifier = (field_expression "xstate->src_fd" identifier -> field_identifier)) ;) (expression_statement "uVar8 = unaff_s8->bytebuffer_offset;" (assignment_expression "uVar8 = unaff_s8->bytebuffer_offset" identifier = (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier)) ;) (expression_statement "unaff_s8->bytebuffer = puVar10;" (assignment_expression "unaff_s8->bytebuffer = puVar10" (field_expression "unaff_s8->bytebuffer" identifier -> field_identifier) = identifier) ;) (expression_statement "pcStack_44 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);" (assignment_expression "pcStack_44 = (code *)(PTR_LAB_0012aa28 + 0x7cb0)" identifier = (cast_expression "(code *)(PTR_LAB_0012aa28 + 0x7cb0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0012aa28 + 0x7cb0)" ( (binary_expression "PTR_LAB_0012aa28 + 0x7cb0" identifier + number_literal) )))) ;) (expression_statement "unaff_s8->gunzip_src_fd = iVar6;" (assignment_expression "unaff_s8->gunzip_src_fd = iVar6" (field_expression "unaff_s8->gunzip_src_fd" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_000a82f0;" goto statement_identifier ;) })) (expression_statement "iVar6 = (*(code *)PTR_full_read_0012a2bc)(xstate->src_fd,&magic2,2);" (assignment_expression "iVar6 = (*(code *)PTR_full_read_0012a2bc)(xstate->src_fd,&magic2,2)" identifier = (call_expression "(*(code *)PTR_full_read_0012a2bc)(xstate->src_fd,&magic2,2)" (parenthesized_expression "(*(code *)PTR_full_read_0012a2bc)" ( (pointer_expression "*(code *)PTR_full_read_0012a2bc" * (cast_expression "(code *)PTR_full_read_0012a2bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(xstate->src_fd,&magic2,2)" ( (field_expression "xstate->src_fd" identifier -> field_identifier) , (pointer_expression "&magic2" & identifier) , number_literal )))) ;) (if_statement "if (iVar6 == 2) {\n    if (magic2 == 0x1f9d) {\n      xstate->signature_skipped = '\x02';\n      lVar13 = unpack_Z_stream(xstate);\n      goto LAB_000a8348;\n    }\n    if (magic2 == 0x1f8b) goto LAB_000a827c;\n  }" if (parenthesized_expression "(iVar6 == 2)" ( (binary_expression "iVar6 == 2" identifier == number_literal) )) (compound_statement "{\n    if (magic2 == 0x1f9d) {\n      xstate->signature_skipped = '\x02';\n      lVar13 = unpack_Z_stream(xstate);\n      goto LAB_000a8348;\n    }\n    if (magic2 == 0x1f8b) goto LAB_000a827c;\n  }" { (if_statement "if (magic2 == 0x1f9d) {\n      xstate->signature_skipped = '\x02';\n      lVar13 = unpack_Z_stream(xstate);\n      goto LAB_000a8348;\n    }" if (parenthesized_expression "(magic2 == 0x1f9d)" ( (binary_expression "magic2 == 0x1f9d" identifier == number_literal) )) (compound_statement "{\n      xstate->signature_skipped = '\x02';\n      lVar13 = unpack_Z_stream(xstate);\n      goto LAB_000a8348;\n    }" { (expression_statement "xstate->signature_skipped = '\x02';" (assignment_expression "xstate->signature_skipped = '\x02'" (field_expression "xstate->signature_skipped" identifier -> field_identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "lVar13 = unpack_Z_stream(xstate);" (assignment_expression "lVar13 = unpack_Z_stream(xstate)" identifier = (call_expression "unpack_Z_stream(xstate)" identifier (argument_list "(xstate)" ( identifier )))) ;) (goto_statement "goto LAB_000a8348;" goto statement_identifier ;) })) (if_statement "if (magic2 == 0x1f8b) goto LAB_000a827c;" if (parenthesized_expression "(magic2 == 0x1f8b)" ( (binary_expression "magic2 == 0x1f8b" identifier == number_literal) )) (goto_statement "goto LAB_000a827c;" goto statement_identifier ;)) })) (expression_statement "lVar13 = -1;" (assignment_expression "lVar13 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_bb_error_msg_0012a1c8)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x563c);" (binary_expression "(*(code *)PTR_bb_error_msg_0012a1c8)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x563c" (call_expression "(*(code *)PTR_bb_error_msg_0012a1c8)(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR_bb_error_msg_0012a1c8)" ( (pointer_expression "*(code *)PTR_bb_error_msg_0012a1c8" * (cast_expression "(code *)PTR_bb_error_msg_0012a1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) (ERROR ")" )) ;) (labeled_statement "LAB_000a8348:\n  do {\n    if (iStack_2c == *(int *)puVar3) {\n      return lVar13;\n    }\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    while( true ) {\n      uVar8 = *(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4);\n      uVar12 = *(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset);\n      unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 8;\n      uStack_34 = (undefined2)(uVar12 >> 0x10);\n      uStack_32 = (ushort)uVar12;\n      uVar4 = uStack_32;\n      uStack_30 = (ushort)(uVar8 >> 0x10);\n      uVar5 = uStack_30;\n      uStack_2e = (undefined2)uVar8;\n      uVar8 = (uVar12 << 8) >> 0x18;\n      if (uVar12 >> 0x18 != 8) break;\n      if ((uVar8 & 4) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];\n        uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n        uVar9 = (uint)CONCAT11(uVar1,uVar2);\n        iVar6 = top_up(unaff_s8,uVar9);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9;\n      }\n      if ((uVar8 & 0x18) != 0) {\n        while (iVar6 = top_up(unaff_s8,1), iVar6 != 0) {\n          uVar9 = unaff_s8->bytebuffer_offset;\n          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      xstate->mtime =\n           ((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +\n           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000;\n      if ((uVar8 & 2) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n      }\n      lVar14 = (*pcStack_44)(unaff_s8,xstate);\n      if (lVar14 < 0) {\n        puVar10 = unaff_s8->bytebuffer;\n        lVar13 = -1;\n        goto LAB_000a850c;\n      }\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n      state_1 = (state_t *)&unaff_s8->bytebuffer_offset;\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if (~unaff_s8->gunzip_crc != uVar7) {\n        puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if ((uint32_t)unaff_s8->gunzip_bytes_out == uVar7) {\n        lVar13 = lVar13 + lVar14;\n      }\n      else {\n        lVar13 = -1;\n        (*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);\n      }\n      iVar6 = top_up(unaff_s8,2);\n      puVar10 = unaff_s8->bytebuffer;\n      if (iVar6 == 0) goto LAB_000a850c;\n      if ((puVar10[unaff_s8->bytebuffer_offset] != '\x1f') ||\n         (uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b)) goto LAB_000a850c;\n      unaff_s8->bytebuffer_offset = uVar8;\nLAB_000a82f0:\n      puVar11 = PTR_memmove_0012b174;\n      unaff_s8->bytebuffer_size = unaff_s8->bytebuffer_size - uVar8;\n      (*(code *)puVar11)(puVar10,puVar10 + uVar8);\n      unaff_s8->bytebuffer_offset = 0;\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n    }\nLAB_000a8324:\n    puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar13 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)(puVar11);\n    puVar10 = unaff_s8->bytebuffer;\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(puVar10);\n    (*(code *)PTR_free_0012b168)(unaff_s8);\n  } while( true );" statement_identifier : (do_statement "do {\n    if (iStack_2c == *(int *)puVar3) {\n      return lVar13;\n    }\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    while( true ) {\n      uVar8 = *(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4);\n      uVar12 = *(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset);\n      unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 8;\n      uStack_34 = (undefined2)(uVar12 >> 0x10);\n      uStack_32 = (ushort)uVar12;\n      uVar4 = uStack_32;\n      uStack_30 = (ushort)(uVar8 >> 0x10);\n      uVar5 = uStack_30;\n      uStack_2e = (undefined2)uVar8;\n      uVar8 = (uVar12 << 8) >> 0x18;\n      if (uVar12 >> 0x18 != 8) break;\n      if ((uVar8 & 4) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];\n        uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n        uVar9 = (uint)CONCAT11(uVar1,uVar2);\n        iVar6 = top_up(unaff_s8,uVar9);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9;\n      }\n      if ((uVar8 & 0x18) != 0) {\n        while (iVar6 = top_up(unaff_s8,1), iVar6 != 0) {\n          uVar9 = unaff_s8->bytebuffer_offset;\n          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      xstate->mtime =\n           ((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +\n           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000;\n      if ((uVar8 & 2) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n      }\n      lVar14 = (*pcStack_44)(unaff_s8,xstate);\n      if (lVar14 < 0) {\n        puVar10 = unaff_s8->bytebuffer;\n        lVar13 = -1;\n        goto LAB_000a850c;\n      }\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n      state_1 = (state_t *)&unaff_s8->bytebuffer_offset;\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if (~unaff_s8->gunzip_crc != uVar7) {\n        puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if ((uint32_t)unaff_s8->gunzip_bytes_out == uVar7) {\n        lVar13 = lVar13 + lVar14;\n      }\n      else {\n        lVar13 = -1;\n        (*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);\n      }\n      iVar6 = top_up(unaff_s8,2);\n      puVar10 = unaff_s8->bytebuffer;\n      if (iVar6 == 0) goto LAB_000a850c;\n      if ((puVar10[unaff_s8->bytebuffer_offset] != '\x1f') ||\n         (uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b)) goto LAB_000a850c;\n      unaff_s8->bytebuffer_offset = uVar8;\nLAB_000a82f0:\n      puVar11 = PTR_memmove_0012b174;\n      unaff_s8->bytebuffer_size = unaff_s8->bytebuffer_size - uVar8;\n      (*(code *)puVar11)(puVar10,puVar10 + uVar8);\n      unaff_s8->bytebuffer_offset = 0;\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n    }\nLAB_000a8324:\n    puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar13 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)(puVar11);\n    puVar10 = unaff_s8->bytebuffer;\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(puVar10);\n    (*(code *)PTR_free_0012b168)(unaff_s8);\n  } while( true );" do (compound_statement "{\n    if (iStack_2c == *(int *)puVar3) {\n      return lVar13;\n    }\n    (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    while( true ) {\n      uVar8 = *(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4);\n      uVar12 = *(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset);\n      unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 8;\n      uStack_34 = (undefined2)(uVar12 >> 0x10);\n      uStack_32 = (ushort)uVar12;\n      uVar4 = uStack_32;\n      uStack_30 = (ushort)(uVar8 >> 0x10);\n      uVar5 = uStack_30;\n      uStack_2e = (undefined2)uVar8;\n      uVar8 = (uVar12 << 8) >> 0x18;\n      if (uVar12 >> 0x18 != 8) break;\n      if ((uVar8 & 4) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];\n        uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n        uVar9 = (uint)CONCAT11(uVar1,uVar2);\n        iVar6 = top_up(unaff_s8,uVar9);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9;\n      }\n      if ((uVar8 & 0x18) != 0) {\n        while (iVar6 = top_up(unaff_s8,1), iVar6 != 0) {\n          uVar9 = unaff_s8->bytebuffer_offset;\n          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      xstate->mtime =\n           ((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +\n           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000;\n      if ((uVar8 & 2) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n      }\n      lVar14 = (*pcStack_44)(unaff_s8,xstate);\n      if (lVar14 < 0) {\n        puVar10 = unaff_s8->bytebuffer;\n        lVar13 = -1;\n        goto LAB_000a850c;\n      }\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n      state_1 = (state_t *)&unaff_s8->bytebuffer_offset;\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if (~unaff_s8->gunzip_crc != uVar7) {\n        puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if ((uint32_t)unaff_s8->gunzip_bytes_out == uVar7) {\n        lVar13 = lVar13 + lVar14;\n      }\n      else {\n        lVar13 = -1;\n        (*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);\n      }\n      iVar6 = top_up(unaff_s8,2);\n      puVar10 = unaff_s8->bytebuffer;\n      if (iVar6 == 0) goto LAB_000a850c;\n      if ((puVar10[unaff_s8->bytebuffer_offset] != '\x1f') ||\n         (uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b)) goto LAB_000a850c;\n      unaff_s8->bytebuffer_offset = uVar8;\nLAB_000a82f0:\n      puVar11 = PTR_memmove_0012b174;\n      unaff_s8->bytebuffer_size = unaff_s8->bytebuffer_size - uVar8;\n      (*(code *)puVar11)(puVar10,puVar10 + uVar8);\n      unaff_s8->bytebuffer_offset = 0;\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n    }\nLAB_000a8324:\n    puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar13 = -1;\n    (*(code *)PTR_bb_error_msg_0012a1c8)(puVar11);\n    puVar10 = unaff_s8->bytebuffer;\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(puVar10);\n    (*(code *)PTR_free_0012b168)(unaff_s8);\n  }" { (if_statement "if (iStack_2c == *(int *)puVar3) {\n      return lVar13;\n    }" if (parenthesized_expression "(iStack_2c == *(int *)puVar3)" ( (binary_expression "iStack_2c == *(int *)puVar3" identifier == (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n      return lVar13;\n    }" { (return_statement "return lVar13;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_0012b0c8)();" (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (while_statement "while( true ) {\n      uVar8 = *(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4);\n      uVar12 = *(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset);\n      unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 8;\n      uStack_34 = (undefined2)(uVar12 >> 0x10);\n      uStack_32 = (ushort)uVar12;\n      uVar4 = uStack_32;\n      uStack_30 = (ushort)(uVar8 >> 0x10);\n      uVar5 = uStack_30;\n      uStack_2e = (undefined2)uVar8;\n      uVar8 = (uVar12 << 8) >> 0x18;\n      if (uVar12 >> 0x18 != 8) break;\n      if ((uVar8 & 4) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];\n        uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n        uVar9 = (uint)CONCAT11(uVar1,uVar2);\n        iVar6 = top_up(unaff_s8,uVar9);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9;\n      }\n      if ((uVar8 & 0x18) != 0) {\n        while (iVar6 = top_up(unaff_s8,1), iVar6 != 0) {\n          uVar9 = unaff_s8->bytebuffer_offset;\n          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      xstate->mtime =\n           ((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +\n           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000;\n      if ((uVar8 & 2) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n      }\n      lVar14 = (*pcStack_44)(unaff_s8,xstate);\n      if (lVar14 < 0) {\n        puVar10 = unaff_s8->bytebuffer;\n        lVar13 = -1;\n        goto LAB_000a850c;\n      }\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n      state_1 = (state_t *)&unaff_s8->bytebuffer_offset;\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if (~unaff_s8->gunzip_crc != uVar7) {\n        puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if ((uint32_t)unaff_s8->gunzip_bytes_out == uVar7) {\n        lVar13 = lVar13 + lVar14;\n      }\n      else {\n        lVar13 = -1;\n        (*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);\n      }\n      iVar6 = top_up(unaff_s8,2);\n      puVar10 = unaff_s8->bytebuffer;\n      if (iVar6 == 0) goto LAB_000a850c;\n      if ((puVar10[unaff_s8->bytebuffer_offset] != '\x1f') ||\n         (uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b)) goto LAB_000a850c;\n      unaff_s8->bytebuffer_offset = uVar8;\nLAB_000a82f0:\n      puVar11 = PTR_memmove_0012b174;\n      unaff_s8->bytebuffer_size = unaff_s8->bytebuffer_size - uVar8;\n      (*(code *)puVar11)(puVar10,puVar10 + uVar8);\n      unaff_s8->bytebuffer_offset = 0;\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar8 = *(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4);\n      uVar12 = *(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset);\n      unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 8;\n      uStack_34 = (undefined2)(uVar12 >> 0x10);\n      uStack_32 = (ushort)uVar12;\n      uVar4 = uStack_32;\n      uStack_30 = (ushort)(uVar8 >> 0x10);\n      uVar5 = uStack_30;\n      uStack_2e = (undefined2)uVar8;\n      uVar8 = (uVar12 << 8) >> 0x18;\n      if (uVar12 >> 0x18 != 8) break;\n      if ((uVar8 & 4) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];\n        uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n        uVar9 = (uint)CONCAT11(uVar1,uVar2);\n        iVar6 = top_up(unaff_s8,uVar9);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9;\n      }\n      if ((uVar8 & 0x18) != 0) {\n        while (iVar6 = top_up(unaff_s8,1), iVar6 != 0) {\n          uVar9 = unaff_s8->bytebuffer_offset;\n          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      xstate->mtime =\n           ((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +\n           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000;\n      if ((uVar8 & 2) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n      }\n      lVar14 = (*pcStack_44)(unaff_s8,xstate);\n      if (lVar14 < 0) {\n        puVar10 = unaff_s8->bytebuffer;\n        lVar13 = -1;\n        goto LAB_000a850c;\n      }\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n      state_1 = (state_t *)&unaff_s8->bytebuffer_offset;\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if (~unaff_s8->gunzip_crc != uVar7) {\n        puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);\n      if ((uint32_t)unaff_s8->gunzip_bytes_out == uVar7) {\n        lVar13 = lVar13 + lVar14;\n      }\n      else {\n        lVar13 = -1;\n        (*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);\n      }\n      iVar6 = top_up(unaff_s8,2);\n      puVar10 = unaff_s8->bytebuffer;\n      if (iVar6 == 0) goto LAB_000a850c;\n      if ((puVar10[unaff_s8->bytebuffer_offset] != '\x1f') ||\n         (uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b)) goto LAB_000a850c;\n      unaff_s8->bytebuffer_offset = uVar8;\nLAB_000a82f0:\n      puVar11 = PTR_memmove_0012b174;\n      unaff_s8->bytebuffer_size = unaff_s8->bytebuffer_size - uVar8;\n      (*(code *)puVar11)(puVar10,puVar10 + uVar8);\n      unaff_s8->bytebuffer_offset = 0;\n      iVar6 = top_up(unaff_s8,8);\n      if (iVar6 == 0) break;\n    }" { (expression_statement "uVar8 = *(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4);" (assignment_expression "uVar8 = *(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4)" identifier = (pointer_expression "*(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4)" * (cast_expression "(uint *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4)" ( (binary_expression "(int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4" (cast_expression "(int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)" ( (binary_expression "unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset" (field_expression "unaff_s8->bytebuffer" identifier -> field_identifier) + (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier)) ))) + number_literal) ))))) ;) (expression_statement "uVar12 = *(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset);" (assignment_expression "uVar12 = *(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)" identifier = (pointer_expression "*(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)" * (cast_expression "(uint *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)" ( (binary_expression "unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset" (field_expression "unaff_s8->bytebuffer" identifier -> field_identifier) + (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier)) ))))) ;) (expression_statement "unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 8;" (assignment_expression "unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 8" (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) = (binary_expression "unaff_s8->bytebuffer_offset + 8" (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uStack_34 = (undefined2)(uVar12 >> 0x10);" (assignment_expression "uStack_34 = (undefined2)(uVar12 >> 0x10)" identifier = (call_expression "(undefined2)(uVar12 >> 0x10)" (parenthesized_expression "(undefined2)" ( identifier )) (argument_list "(uVar12 >> 0x10)" ( (binary_expression "uVar12 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "uStack_32 = (ushort)uVar12;" (assignment_expression "uStack_32 = (ushort)uVar12" identifier = (cast_expression "(ushort)uVar12" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "uVar4 = uStack_32;" (assignment_expression "uVar4 = uStack_32" identifier = identifier) ;) (expression_statement "uStack_30 = (ushort)(uVar8 >> 0x10);" (assignment_expression "uStack_30 = (ushort)(uVar8 >> 0x10)" identifier = (call_expression "(ushort)(uVar8 >> 0x10)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar8 >> 0x10)" ( (binary_expression "uVar8 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "uVar5 = uStack_30;" (assignment_expression "uVar5 = uStack_30" identifier = identifier) ;) (expression_statement "uStack_2e = (undefined2)uVar8;" (assignment_expression "uStack_2e = (undefined2)uVar8" identifier = (cast_expression "(undefined2)uVar8" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "uVar8 = (uVar12 << 8) >> 0x18;" (assignment_expression "uVar8 = (uVar12 << 8) >> 0x18" identifier = (binary_expression "(uVar12 << 8) >> 0x18" (parenthesized_expression "(uVar12 << 8)" ( (binary_expression "uVar12 << 8" identifier << number_literal) )) >> number_literal)) ;) (if_statement "if (uVar12 >> 0x18 != 8) break;" if (parenthesized_expression "(uVar12 >> 0x18 != 8)" ( (binary_expression "uVar12 >> 0x18 != 8" (binary_expression "uVar12 >> 0x18" identifier >> number_literal) != number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((uVar8 & 4) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];\n        uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n        uVar9 = (uint)CONCAT11(uVar1,uVar2);\n        iVar6 = top_up(unaff_s8,uVar9);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9;\n      }" if (parenthesized_expression "((uVar8 & 4) != 0)" ( (binary_expression "(uVar8 & 4) != 0" (parenthesized_expression "(uVar8 & 4)" ( (binary_expression "uVar8 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];\n        uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n        uVar9 = (uint)CONCAT11(uVar1,uVar2);\n        iVar6 = top_up(unaff_s8,uVar9);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9;\n      }" { (expression_statement "iVar6 = top_up(unaff_s8,2);" (assignment_expression "iVar6 = top_up(unaff_s8,2)" identifier = (call_expression "top_up(unaff_s8,2)" identifier (argument_list "(unaff_s8,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar6 == 0) break;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];" (assignment_expression "uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1]" identifier = (subscript_expression "(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1]" (parenthesized_expression "(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)" ( (binary_expression "unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset" (field_expression "unaff_s8->bytebuffer" identifier -> field_identifier) + (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier)) )) [ number_literal ])) ;) (expression_statement "uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];" (assignment_expression "uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset]" identifier = (subscript_expression "unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset]" (field_expression "unaff_s8->bytebuffer" identifier -> field_identifier) [ (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) ])) ;) (expression_statement "unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;" (assignment_expression "unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2" (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) = (binary_expression "unaff_s8->bytebuffer_offset + 2" (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) + number_literal)) ;) (expression_statement "uVar9 = (uint)CONCAT11(uVar1,uVar2);" (assignment_expression "uVar9 = (uint)CONCAT11(uVar1,uVar2)" identifier = (cast_expression "(uint)CONCAT11(uVar1,uVar2)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CONCAT11(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))))) ;) (expression_statement "iVar6 = top_up(unaff_s8,uVar9);" (assignment_expression "iVar6 = top_up(unaff_s8,uVar9)" identifier = (call_expression "top_up(unaff_s8,uVar9)" identifier (argument_list "(unaff_s8,uVar9)" ( identifier , identifier )))) ;) (if_statement "if (iVar6 == 0) break;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9;" (assignment_expression "unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + uVar9" (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) = (binary_expression "unaff_s8->bytebuffer_offset + uVar9" (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) + identifier)) ;) })) (if_statement "if ((uVar8 & 0x18) != 0) {\n        while (iVar6 = top_up(unaff_s8,1), iVar6 != 0) {\n          uVar9 = unaff_s8->bytebuffer_offset;\n          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }\n        }\n        break;\n      }" if (parenthesized_expression "((uVar8 & 0x18) != 0)" ( (binary_expression "(uVar8 & 0x18) != 0" (parenthesized_expression "(uVar8 & 0x18)" ( (binary_expression "uVar8 & 0x18" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        while (iVar6 = top_up(unaff_s8,1), iVar6 != 0) {\n          uVar9 = unaff_s8->bytebuffer_offset;\n          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }\n        }\n        break;\n      }" { (while_statement "while (iVar6 = top_up(unaff_s8,1), iVar6 != 0) {\n          uVar9 = unaff_s8->bytebuffer_offset;\n          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }\n        }" while (parenthesized_expression "(iVar6 = top_up(unaff_s8,1), iVar6 != 0)" ( (comma_expression "iVar6 = top_up(unaff_s8,1), iVar6 != 0" (assignment_expression "iVar6 = top_up(unaff_s8,1)" identifier = (call_expression "top_up(unaff_s8,1)" identifier (argument_list "(unaff_s8,1)" ( identifier , number_literal )))) , (binary_expression "iVar6 != 0" identifier != number_literal)) )) (compound_statement "{\n          uVar9 = unaff_s8->bytebuffer_offset;\n          while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }\n        }" { (expression_statement "uVar9 = unaff_s8->bytebuffer_offset;" (assignment_expression "uVar9 = unaff_s8->bytebuffer_offset" identifier = (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier)) ;) (while_statement "while (unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0') {\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }" while (parenthesized_expression "(unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0')" ( (comma_expression "unaff_s8->bytebuffer_offset = uVar9 + 1, unaff_s8->bytebuffer[uVar9] == '\0'" (assignment_expression "unaff_s8->bytebuffer_offset = uVar9 + 1" (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) = (binary_expression "uVar9 + 1" identifier + number_literal)) , (binary_expression "unaff_s8->bytebuffer[uVar9] == '\0'" (subscript_expression "unaff_s8->bytebuffer[uVar9]" (field_expression "unaff_s8->bytebuffer" identifier -> field_identifier) [ identifier ]) == (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n            if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar8 = uVar8 & 0xffffffe7;\n            iVar6 = top_up(unaff_s8,1);\n            if (iVar6 == 0) goto LAB_000a8324;\n            uVar9 = unaff_s8->bytebuffer_offset;\n          }" { (if_statement "if ((uVar8 & 0x18) != 0x18) goto LAB_000a84a4;" if (parenthesized_expression "((uVar8 & 0x18) != 0x18)" ( (binary_expression "(uVar8 & 0x18) != 0x18" (parenthesized_expression "(uVar8 & 0x18)" ( (binary_expression "uVar8 & 0x18" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_000a84a4;" goto statement_identifier ;)) (expression_statement "uVar8 = uVar8 & 0xffffffe7;" (assignment_expression "uVar8 = uVar8 & 0xffffffe7" identifier = (binary_expression "uVar8 & 0xffffffe7" identifier & number_literal)) ;) (expression_statement "iVar6 = top_up(unaff_s8,1);" (assignment_expression "iVar6 = top_up(unaff_s8,1)" identifier = (call_expression "top_up(unaff_s8,1)" identifier (argument_list "(unaff_s8,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar6 == 0) goto LAB_000a8324;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a8324;" goto statement_identifier ;)) (expression_statement "uVar9 = unaff_s8->bytebuffer_offset;" (assignment_expression "uVar9 = unaff_s8->bytebuffer_offset" identifier = (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier)) ;) })) })) (break_statement "break;" break ;) })) (labeled_statement "LAB_000a84a4:\n      xstate->mtime =\n           ((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +\n           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000;" statement_identifier : (expression_statement "xstate->mtime =\n           ((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +\n           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000;" (assignment_expression "xstate->mtime =\n           ((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +\n           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000" (field_expression "xstate->mtime" identifier -> field_identifier) = (binary_expression "((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10) +\n           ((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000" (parenthesized_expression "((uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10)" ( (binary_expression "(uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10) >> 0x10" (parenthesized_expression "(uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10)" ( (binary_expression "uVar12 << 0x18 | (uint)(uVar4 >> 8) << 0x10" (binary_expression "uVar12 << 0x18" identifier << number_literal) | (binary_expression "(uint)(uVar4 >> 8) << 0x10" (call_expression "(uint)(uVar4 >> 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar4 >> 8)" ( (binary_expression "uVar4 >> 8" identifier >> number_literal) ))) << number_literal)) )) >> number_literal) )) + (binary_expression "((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)) * 0x10000" (parenthesized_expression "((uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8))" ( (binary_expression "(uVar5 & 0xff) << 8 | (uint)(uVar5 >> 8)" (binary_expression "(uVar5 & 0xff) << 8" (parenthesized_expression "(uVar5 & 0xff)" ( (binary_expression "uVar5 & 0xff" identifier & number_literal) )) << number_literal) | (call_expression "(uint)(uVar5 >> 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 >> 8)" ( (binary_expression "uVar5 >> 8" identifier >> number_literal) )))) )) * number_literal))) ;)) (if_statement "if ((uVar8 & 2) != 0) {\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n      }" if (parenthesized_expression "((uVar8 & 2) != 0)" ( (binary_expression "(uVar8 & 2) != 0" (parenthesized_expression "(uVar8 & 2)" ( (binary_expression "uVar8 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        iVar6 = top_up(unaff_s8,2);\n        if (iVar6 == 0) break;\n        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;\n      }" { (expression_statement "iVar6 = top_up(unaff_s8,2);" (assignment_expression "iVar6 = top_up(unaff_s8,2)" identifier = (call_expression "top_up(unaff_s8,2)" identifier (argument_list "(unaff_s8,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar6 == 0) break;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;" (assignment_expression "unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2" (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) = (binary_expression "unaff_s8->bytebuffer_offset + 2" (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) + number_literal)) ;) })) (expression_statement "lVar14 = (*pcStack_44)(unaff_s8,xstate);" (assignment_expression "lVar14 = (*pcStack_44)(unaff_s8,xstate)" identifier = (call_expression "(*pcStack_44)(unaff_s8,xstate)" (parenthesized_expression "(*pcStack_44)" ( (pointer_expression "*pcStack_44" * identifier) )) (argument_list "(unaff_s8,xstate)" ( identifier , identifier )))) ;) (if_statement "if (lVar14 < 0) {\n        puVar10 = unaff_s8->bytebuffer;\n        lVar13 = -1;\n        goto LAB_000a850c;\n      }" if (parenthesized_expression "(lVar14 < 0)" ( (binary_expression "lVar14 < 0" identifier < number_literal) )) (compound_statement "{\n        puVar10 = unaff_s8->bytebuffer;\n        lVar13 = -1;\n        goto LAB_000a850c;\n      }" { (expression_statement "puVar10 = unaff_s8->bytebuffer;" (assignment_expression "puVar10 = unaff_s8->bytebuffer" identifier = (field_expression "unaff_s8->bytebuffer" identifier -> field_identifier)) ;) (expression_statement "lVar13 = -1;" (assignment_expression "lVar13 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_000a850c;" goto statement_identifier ;) })) (expression_statement "iVar6 = top_up(unaff_s8,8);" (assignment_expression "iVar6 = top_up(unaff_s8,8)" identifier = (call_expression "top_up(unaff_s8,8)" identifier (argument_list "(unaff_s8,8)" ( identifier , number_literal )))) ;) (if_statement "if (iVar6 == 0) break;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "state_1 = (state_t *)&unaff_s8->bytebuffer_offset;" (assignment_expression "state_1 = (state_t *)&unaff_s8->bytebuffer_offset" identifier = (cast_expression "(state_t *)&unaff_s8->bytebuffer_offset" ( (type_descriptor "state_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&unaff_s8->bytebuffer_offset" & (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier)))) ;) (expression_statement "uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);" (assignment_expression "uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1)" identifier = (call_expression "buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1)" identifier (argument_list "((state_t *)unaff_s8->bytebuffer,state_1)" ( (cast_expression "(state_t *)unaff_s8->bytebuffer" ( (type_descriptor "state_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "unaff_s8->bytebuffer" identifier -> field_identifier)) , identifier )))) ;) (if_statement "if (~unaff_s8->gunzip_crc != uVar7) {\n        puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }" if (parenthesized_expression "(~unaff_s8->gunzip_crc != uVar7)" ( (binary_expression "~unaff_s8->gunzip_crc != uVar7" (unary_expression "~unaff_s8->gunzip_crc" ~ (field_expression "unaff_s8->gunzip_crc" identifier -> field_identifier)) != identifier) )) (compound_statement "{\n        puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }" { (expression_statement "puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874;" (binary_expression "puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5874" (assignment_expression "puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" identifier = (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier)) (ERROR ")9__f_l_0012a1a8" ) number_literal identifier) + number_literal) ;) (goto_statement "goto LAB_000a8570;" goto statement_identifier ;) })) (expression_statement "uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1);" (assignment_expression "uVar7 = buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1)" identifier = (call_expression "buffer_read_le_u32((state_t *)unaff_s8->bytebuffer,state_1)" identifier (argument_list "((state_t *)unaff_s8->bytebuffer,state_1)" ( (cast_expression "(state_t *)unaff_s8->bytebuffer" ( (type_descriptor "state_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "unaff_s8->bytebuffer" identifier -> field_identifier)) , identifier )))) ;) (if_statement "if ((uint32_t)unaff_s8->gunzip_bytes_out == uVar7) {\n        lVar13 = lVar13 + lVar14;\n      }\n      else {\n        lVar13 = -1;\n        (*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);\n      }" if (parenthesized_expression "((uint32_t)unaff_s8->gunzip_bytes_out == uVar7)" ( (binary_expression "(uint32_t)unaff_s8->gunzip_bytes_out == uVar7" (cast_expression "(uint32_t)unaff_s8->gunzip_bytes_out" ( (type_descriptor "uint32_t" primitive_type) ) (field_expression "unaff_s8->gunzip_bytes_out" identifier -> field_identifier)) == identifier) )) (compound_statement "{\n        lVar13 = lVar13 + lVar14;\n      }" { (expression_statement "lVar13 = lVar13 + lVar14;" (assignment_expression "lVar13 = lVar13 + lVar14" identifier = (binary_expression "lVar13 + lVar14" identifier + identifier)) ;) }) (else_clause "else {\n        lVar13 = -1;\n        (*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);\n      }" else (compound_statement "{\n        lVar13 = -1;\n        (*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);\n      }" { (expression_statement "lVar13 = -1;" (assignment_expression "lVar13 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c);" (call_expression "(*(code *)PTR_bb_error_msg_0012a1c8)(puStack_40 + -0x562c)" (parenthesized_expression "(*(code *)PTR_bb_error_msg_0012a1c8)" ( (pointer_expression "*(code *)PTR_bb_error_msg_0012a1c8" * (cast_expression "(code *)PTR_bb_error_msg_0012a1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puStack_40 + -0x562c)" ( (binary_expression "puStack_40 + -0x562c" identifier + number_literal) ))) ;) }))) (expression_statement "iVar6 = top_up(unaff_s8,2);" (assignment_expression "iVar6 = top_up(unaff_s8,2)" identifier = (call_expression "top_up(unaff_s8,2)" identifier (argument_list "(unaff_s8,2)" ( identifier , number_literal )))) ;) (expression_statement "puVar10 = unaff_s8->bytebuffer;" (assignment_expression "puVar10 = unaff_s8->bytebuffer" identifier = (field_expression "unaff_s8->bytebuffer" identifier -> field_identifier)) ;) (if_statement "if (iVar6 == 0) goto LAB_000a850c;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a850c;" goto statement_identifier ;)) (if_statement "if ((puVar10[unaff_s8->bytebuffer_offset] != '\x1f') ||\n         (uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b)) goto LAB_000a850c;" if (parenthesized_expression "((puVar10[unaff_s8->bytebuffer_offset] != '\x1f') ||\n         (uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b))" ( (binary_expression "(puVar10[unaff_s8->bytebuffer_offset] != '\x1f') ||\n         (uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b)" (parenthesized_expression "(puVar10[unaff_s8->bytebuffer_offset] != '\x1f')" ( (binary_expression "puVar10[unaff_s8->bytebuffer_offset] != '\x1f'" (subscript_expression "puVar10[unaff_s8->bytebuffer_offset]" identifier [ (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) ]) != (char_literal "'\x1f'" ' escape_sequence ')) )) || (parenthesized_expression "(uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b)" ( (comma_expression "uVar8 = unaff_s8->bytebuffer_offset + 2,\n         (puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b" (assignment_expression "uVar8 = unaff_s8->bytebuffer_offset + 2" identifier = (binary_expression "unaff_s8->bytebuffer_offset + 2" (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) + number_literal)) , (binary_expression "(puVar10 + unaff_s8->bytebuffer_offset)[1] != 0x8b" (subscript_expression "(puVar10 + unaff_s8->bytebuffer_offset)[1]" (parenthesized_expression "(puVar10 + unaff_s8->bytebuffer_offset)" ( (binary_expression "puVar10 + unaff_s8->bytebuffer_offset" identifier + (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier)) )) [ number_literal ]) != number_literal)) ))) )) (goto_statement "goto LAB_000a850c;" goto statement_identifier ;)) (expression_statement "unaff_s8->bytebuffer_offset = uVar8;" (assignment_expression "unaff_s8->bytebuffer_offset = uVar8" (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) = identifier) ;) (labeled_statement "LAB_000a82f0:\n      puVar11 = PTR_memmove_0012b174;" statement_identifier : (expression_statement "puVar11 = PTR_memmove_0012b174;" (assignment_expression "puVar11 = PTR_memmove_0012b174" identifier = identifier) ;)) (expression_statement "unaff_s8->bytebuffer_size = unaff_s8->bytebuffer_size - uVar8;" (assignment_expression "unaff_s8->bytebuffer_size = unaff_s8->bytebuffer_size - uVar8" (field_expression "unaff_s8->bytebuffer_size" identifier -> field_identifier) = (binary_expression "unaff_s8->bytebuffer_size - uVar8" (field_expression "unaff_s8->bytebuffer_size" identifier -> field_identifier) - identifier)) ;) (expression_statement "(*(code *)puVar11)(puVar10,puVar10 + uVar8);" (call_expression "(*(code *)puVar11)(puVar10,puVar10 + uVar8)" (parenthesized_expression "(*(code *)puVar11)" ( (pointer_expression "*(code *)puVar11" * (cast_expression "(code *)puVar11" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar10,puVar10 + uVar8)" ( identifier , (binary_expression "puVar10 + uVar8" identifier + identifier) ))) ;) (expression_statement "unaff_s8->bytebuffer_offset = 0;" (assignment_expression "unaff_s8->bytebuffer_offset = 0" (field_expression "unaff_s8->bytebuffer_offset" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar6 = top_up(unaff_s8,8);" (assignment_expression "iVar6 = top_up(unaff_s8,8)" identifier = (call_expression "top_up(unaff_s8,8)" identifier (argument_list "(unaff_s8,8)" ( identifier , number_literal )))) ;) (if_statement "if (iVar6 == 0) break;" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) })) (labeled_statement "LAB_000a8324:\n    puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5df0;" statement_identifier : (expression_statement "puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5df0;" (binary_expression "puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x5df0" (assignment_expression "puVar11 = PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" identifier = (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier)) (ERROR ")9__f_l_0012a1a8" ) number_literal identifier) + number_literal) ;)) (labeled_statement "LAB_000a8570:\n    lVar13 = -1;" statement_identifier : (expression_statement "lVar13 = -1;" (assignment_expression "lVar13 = -1" identifier = number_literal) ;)) (expression_statement "(*(code *)PTR_bb_error_msg_0012a1c8)(puVar11);" (call_expression "(*(code *)PTR_bb_error_msg_0012a1c8)(puVar11)" (parenthesized_expression "(*(code *)PTR_bb_error_msg_0012a1c8)" ( (pointer_expression "*(code *)PTR_bb_error_msg_0012a1c8" * (cast_expression "(code *)PTR_bb_error_msg_0012a1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar11)" ( identifier ))) ;) (expression_statement "puVar10 = unaff_s8->bytebuffer;" (assignment_expression "puVar10 = unaff_s8->bytebuffer" identifier = (field_expression "unaff_s8->bytebuffer" identifier -> field_identifier)) ;) (labeled_statement "LAB_000a850c:\n    (*(code *)PTR_free_0012b168)(puVar10);" statement_identifier : (expression_statement "(*(code *)PTR_free_0012b168)(puVar10);" (call_expression "(*(code *)PTR_free_0012b168)(puVar10)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar10)" ( identifier ))) ;)) (expression_statement "(*(code *)PTR_free_0012b168)(unaff_s8);" (call_expression "(*(code *)PTR_free_0012b168)(unaff_s8)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s8)" ( identifier ))) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit "longlong FUN_000a81cc(char *param_1)\n\n{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  ushort uVar5;\n  ushort uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  undefined1 *puVar11;\n  char *pcVar12;\n  code *pcVar13;\n  uint uVar14;\n  uint uVar15;\n  undefined *puVar16;\n  int iVar17;\n  uint uVar18;\n  longlong lVar19;\n  longlong lVar20;\n  short local_36;\n  undefined2 local_34;\n  ushort uStack_32;\n  ushort local_30;\n  undefined2 uStack_2e;\n  int local_2c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if (*param_1 == '\0') {\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }\n  else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }\nLAB_000a8348:\n  if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }\n  return lVar19;\n}\n\n" (function_definition "longlong FUN_000a81cc(char *param_1)\n\n{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  ushort uVar5;\n  ushort uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  undefined1 *puVar11;\n  char *pcVar12;\n  code *pcVar13;\n  uint uVar14;\n  uint uVar15;\n  undefined *puVar16;\n  int iVar17;\n  uint uVar18;\n  longlong lVar19;\n  longlong lVar20;\n  short local_36;\n  undefined2 local_34;\n  ushort uStack_32;\n  ushort local_30;\n  undefined2 uStack_2e;\n  int local_2c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if (*param_1 == '\0') {\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }\n  else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }\nLAB_000a8348:\n  if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }\n  return lVar19;\n}" type_identifier (function_declarator "FUN_000a81cc(char *param_1)" identifier (parameter_list "(char *param_1)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  ushort uVar5;\n  ushort uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  undefined1 *puVar11;\n  char *pcVar12;\n  code *pcVar13;\n  uint uVar14;\n  uint uVar15;\n  undefined *puVar16;\n  int iVar17;\n  uint uVar18;\n  longlong lVar19;\n  longlong lVar20;\n  short local_36;\n  undefined2 local_34;\n  ushort uStack_32;\n  ushort local_30;\n  undefined2 uStack_2e;\n  int local_2c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if (*param_1 == '\0') {\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }\n  else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }\nLAB_000a8348:\n  if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }\n  return lVar19;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "ushort uVar5;" type_identifier identifier ;) (declaration "ushort uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined1 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "char *pcVar12;" primitive_type (pointer_declarator "*pcVar12" * identifier) ;) (declaration "code *pcVar13;" type_identifier (pointer_declarator "*pcVar13" * identifier) ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "undefined *puVar16;" type_identifier (pointer_declarator "*puVar16" * identifier) ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "uint uVar18;" type_identifier identifier ;) (declaration "longlong lVar19;" type_identifier identifier ;) (declaration "longlong lVar20;" type_identifier identifier ;) (declaration "short local_36;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined2 local_34;" type_identifier identifier ;) (declaration "ushort uStack_32;" type_identifier identifier ;) (declaration "ushort local_30;" type_identifier identifier ;) (declaration "undefined2 uStack_2e;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar4 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0012b14c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0012b14c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" * (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (*param_1 == '\0') {\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }\n  else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }" if (parenthesized_expression "(*param_1 == '\0')" ( (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }" { (expression_statement "iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);" (assignment_expression "iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2)" identifier = (call_expression "(*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2bc)" ( (pointer_expression "*(code *)PTR_FUN_0012a2bc" * (cast_expression "(code *)PTR_FUN_0012a2bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 8),&local_36,2)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , (pointer_expression "&local_36" & identifier) , number_literal )))) ;) (if_statement "if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }" if (parenthesized_expression "(iVar7 == 2)" ( (binary_expression "iVar7 == 2" identifier == number_literal) )) (compound_statement "{\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }" { (if_statement "if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }" if (parenthesized_expression "(local_36 == 0x1f9d)" ( (binary_expression "local_36 == 0x1f9d" identifier == number_literal) )) (compound_statement "{\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }" { (expression_statement "*param_1 = '\x02';" (assignment_expression "*param_1 = '\x02'" (pointer_expression "*param_1" * identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "lVar19 = FUN_000a8640(param_1);" (assignment_expression "lVar19 = FUN_000a8640(param_1)" identifier = (call_expression "FUN_000a8640(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (goto_statement "goto LAB_000a8348;" goto statement_identifier ;) })) (if_statement "if (local_36 == 0x1f8b) goto LAB_000a827c;" if (parenthesized_expression "(local_36 == 0x1f8b)" ( (binary_expression "local_36 == 0x1f8b" identifier == number_literal) )) (goto_statement "goto LAB_000a827c;" goto statement_identifier ;)) })) (expression_statement "lVar19 = -1;" (assignment_expression "lVar19 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);" (call_expression "(*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1c8)" ( (pointer_expression "*(code *)PTR_FUN_0012a1c8" * (cast_expression "(code *)PTR_FUN_0012a1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_FUN_0012a1a8 + -0x563c)" ( (binary_expression "PTR_FUN_0012a1a8 + -0x563c" identifier + number_literal) ))) ;) }) (else_clause "else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }" else (compound_statement "{\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }" { (labeled_statement "LAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;" statement_identifier : (expression_statement "puVar16 = PTR_FUN_0012a1a8;" (assignment_expression "puVar16 = PTR_FUN_0012a1a8" identifier = identifier) ;)) (expression_statement "lVar19 = 0;" (assignment_expression "lVar19 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);" (assignment_expression "iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170)" identifier = (call_expression "(*(code *)PTR_FUN_0012a1d0)(0x170)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1d0)" ( (pointer_expression "*(code *)PTR_FUN_0012a1d0" * (cast_expression "(code *)PTR_FUN_0012a1d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x170)" ( number_literal )))) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar7 + 0x2c) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar7 + 0x2c)" * (cast_expression "(undefined4 *)(iVar7 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x2c)" ( (binary_expression "iVar7 + 0x2c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "puVar3 = PTR_FUN_0012a230;" (assignment_expression "puVar3 = PTR_FUN_0012a230" identifier = identifier) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x28) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar7 + 0x28) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar7 + 0x28)" * (cast_expression "(undefined4 *)(iVar7 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x28)" ( (binary_expression "iVar7 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar8 = (*(code *)puVar3)(0x4000);" (assignment_expression "iVar8 = (*(code *)puVar3)(0x4000)" identifier = (call_expression "(*(code *)puVar3)(0x4000)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x4000)" ( number_literal )))) ;) (expression_statement "uVar9 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar9 = *(undefined4 *)(param_1 + 8)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar17 = *(int *)(iVar7 + 0x30);" (assignment_expression "iVar17 = *(int *)(iVar7 + 0x30)" identifier = (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar7 + 0x24) = iVar8;" (assignment_expression "*(int *)(iVar7 + 0x24) = iVar8" (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) )))) = identifier) ;) (expression_statement "pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);" (assignment_expression "pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0)" identifier = (cast_expression "(code *)(PTR_LAB_0012aa28 + 0x7cb0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0012aa28 + 0x7cb0)" ( (binary_expression "PTR_LAB_0012aa28 + 0x7cb0" identifier + number_literal) )))) ;) (expression_statement "*(undefined4 *)(iVar7 + 0xc) = uVar9;" (assignment_expression "*(undefined4 *)(iVar7 + 0xc) = uVar9" (pointer_expression "*(undefined4 *)(iVar7 + 0xc)" * (cast_expression "(undefined4 *)(iVar7 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0xc)" ( (binary_expression "iVar7 + 0xc" identifier + number_literal) )))) = identifier) ;) (while_statement "while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }" { (expression_statement "puVar3 = PTR_memmove_0012b174;" (assignment_expression "puVar3 = PTR_memmove_0012b174" identifier = identifier) ;) (expression_statement "*(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;" (assignment_expression "*(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17" (pointer_expression "*(int *)(iVar7 + 0x34)" * (cast_expression "(int *)(iVar7 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x34)" ( (binary_expression "iVar7 + 0x34" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar7 + 0x34) - iVar17" (pointer_expression "*(int *)(iVar7 + 0x34)" * (cast_expression "(int *)(iVar7 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x34)" ( (binary_expression "iVar7 + 0x34" identifier + number_literal) )))) - identifier)) ;) (expression_statement "(*(code *)puVar3)(iVar8,iVar8 + iVar17);" (call_expression "(*(code *)puVar3)(iVar8,iVar8 + iVar17)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8,iVar8 + iVar17)" ( identifier , (binary_expression "iVar8 + iVar17" identifier + identifier) ))) ;) (expression_statement "*(undefined4 *)(iVar7 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(iVar7 + 0x30) = 0" (pointer_expression "*(undefined4 *)(iVar7 + 0x30)" * (cast_expression "(undefined4 *)(iVar7 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar8 = FUN_000a6584(iVar7,8);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,8)" identifier = (call_expression "FUN_000a6584(iVar7,8)" identifier (argument_list "(iVar7,8)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));" (assignment_expression "puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" identifier = (cast_expression "(uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" ( (binary_expression "*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30)" (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) ))))) )))) ;) (expression_statement "uVar14 = puVar10[1];" (assignment_expression "uVar14 = puVar10[1]" identifier = (subscript_expression "puVar10[1]" identifier [ number_literal ])) ;) (expression_statement "uVar18 = *puVar10;" (assignment_expression "uVar18 = *puVar10" identifier = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;" (assignment_expression "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar7 + 0x30) + 8" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "local_34 = (undefined2)(uVar18 >> 0x10);" (assignment_expression "local_34 = (undefined2)(uVar18 >> 0x10)" identifier = (call_expression "(undefined2)(uVar18 >> 0x10)" (parenthesized_expression "(undefined2)" ( identifier )) (argument_list "(uVar18 >> 0x10)" ( (binary_expression "uVar18 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "uStack_32 = (ushort)uVar18;" (assignment_expression "uStack_32 = (ushort)uVar18" identifier = (cast_expression "(ushort)uVar18" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "uVar5 = uStack_32;" (assignment_expression "uVar5 = uStack_32" identifier = identifier) ;) (expression_statement "local_30 = (ushort)(uVar14 >> 0x10);" (assignment_expression "local_30 = (ushort)(uVar14 >> 0x10)" identifier = (call_expression "(ushort)(uVar14 >> 0x10)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar14 >> 0x10)" ( (binary_expression "uVar14 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "uVar6 = local_30;" (assignment_expression "uVar6 = local_30" identifier = identifier) ;) (expression_statement "uStack_2e = (undefined2)uVar14;" (assignment_expression "uStack_2e = (undefined2)uVar14" identifier = (cast_expression "(undefined2)uVar14" ( (type_descriptor "undefined2" type_identifier) ) identifier)) ;) (expression_statement "uVar14 = (uVar18 << 8) >> 0x18;" (assignment_expression "uVar14 = (uVar18 << 8) >> 0x18" identifier = (binary_expression "(uVar18 << 8) >> 0x18" (parenthesized_expression "(uVar18 << 8)" ( (binary_expression "uVar18 << 8" identifier << number_literal) )) >> number_literal)) ;) (if_statement "if (uVar18 >> 0x18 != 8) break;" if (parenthesized_expression "(uVar18 >> 0x18 != 8)" ( (binary_expression "uVar18 >> 0x18 != 8" (binary_expression "uVar18 >> 0x18" identifier >> number_literal) != number_literal) )) (break_statement "break;" break ;)) (if_statement "if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }" if (parenthesized_expression "((uVar14 & 4) != 0)" ( (binary_expression "(uVar14 & 4) != 0" (parenthesized_expression "(uVar14 & 4)" ( (binary_expression "uVar14 & 4" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }" { (expression_statement "iVar8 = FUN_000a6584(iVar7,2);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,2)" identifier = (call_expression "FUN_000a6584(iVar7,2)" identifier (argument_list "(iVar7,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));" (assignment_expression "puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" identifier = (cast_expression "(undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" ( (binary_expression "*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30)" (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) ))))) )))) ;) (expression_statement "uVar1 = puVar11[1];" (assignment_expression "uVar1 = puVar11[1]" identifier = (subscript_expression "puVar11[1]" identifier [ number_literal ])) ;) (expression_statement "uVar2 = *puVar11;" (assignment_expression "uVar2 = *puVar11" identifier = (pointer_expression "*puVar11" * identifier)) ;) (expression_statement "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;" (assignment_expression "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "uVar15 = (uint)CONCAT11(uVar1,uVar2);" (assignment_expression "uVar15 = (uint)CONCAT11(uVar1,uVar2)" identifier = (cast_expression "(uint)CONCAT11(uVar1,uVar2)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CONCAT11(uVar1,uVar2)" identifier (argument_list "(uVar1,uVar2)" ( identifier , identifier ))))) ;) (expression_statement "iVar8 = FUN_000a6584(iVar7,uVar15);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,uVar15)" identifier = (call_expression "FUN_000a6584(iVar7,uVar15)" identifier (argument_list "(iVar7,uVar15)" ( identifier , identifier )))) ;) (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;" (assignment_expression "*(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15" (pointer_expression "*(uint *)(iVar7 + 0x30)" * (cast_expression "(uint *)(iVar7 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar7 + 0x30) + uVar15" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) + identifier)) ;) })) (if_statement "if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }" if (parenthesized_expression "((uVar14 & 0x18) != 0)" ( (binary_expression "(uVar14 & 0x18) != 0" (parenthesized_expression "(uVar14 & 0x18)" ( (binary_expression "uVar14 & 0x18" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }" { (while_statement "while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }" while (parenthesized_expression "(iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0)" ( (comma_expression "iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0" (assignment_expression "iVar8 = FUN_000a6584(iVar7,1)" identifier = (call_expression "FUN_000a6584(iVar7,1)" identifier (argument_list "(iVar7,1)" ( identifier , number_literal )))) , (binary_expression "iVar8 != 0" identifier != number_literal)) )) (compound_statement "{\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }" { (expression_statement "iVar8 = *(int *)(iVar7 + 0x30);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x30)" identifier = (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) ))))) ;) (while_statement "while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }" while (parenthesized_expression "(*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0')" ( (comma_expression "*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0'" (assignment_expression "*(int *)(iVar7 + 0x30) = iVar8 + 1" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = (binary_expression "iVar8 + 1" identifier + number_literal)) , (binary_expression "*(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0'" (pointer_expression "*(char *)(*(int *)(iVar7 + 0x24) + iVar8)" * (cast_expression "(char *)(*(int *)(iVar7 + 0x24) + iVar8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar7 + 0x24) + iVar8)" ( (binary_expression "*(int *)(iVar7 + 0x24) + iVar8" (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) )))) + identifier) )))) == (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }" { (if_statement "if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;" if (parenthesized_expression "((uVar14 & 0x18) != 0x18)" ( (binary_expression "(uVar14 & 0x18) != 0x18" (parenthesized_expression "(uVar14 & 0x18)" ( (binary_expression "uVar14 & 0x18" identifier & number_literal) )) != number_literal) )) (goto_statement "goto LAB_000a84a4;" goto statement_identifier ;)) (expression_statement "uVar14 = uVar14 & 0xffffffe7;" (assignment_expression "uVar14 = uVar14 & 0xffffffe7" identifier = (binary_expression "uVar14 & 0xffffffe7" identifier & number_literal)) ;) (expression_statement "iVar8 = FUN_000a6584(iVar7,1);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,1)" identifier = (call_expression "FUN_000a6584(iVar7,1)" identifier (argument_list "(iVar7,1)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) goto LAB_000a8324;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a8324;" goto statement_identifier ;)) (expression_statement "iVar8 = *(int *)(iVar7 + 0x30);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x30)" identifier = (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) ))))) ;) })) })) (break_statement "break;" break ;) })) (labeled_statement "LAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;" statement_identifier : (expression_statement "*(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;" (assignment_expression "*(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000" (pointer_expression "*(uint *)(param_1 + 0x34)" * (cast_expression "(uint *)(param_1 + 0x34)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) = (binary_expression "((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000" (parenthesized_expression "((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10)" ( (binary_expression "(uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10" (parenthesized_expression "(uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10)" ( (binary_expression "uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10" (binary_expression "uVar18 << 0x18" identifier << number_literal) | (binary_expression "(uint)(uVar5 >> 8) << 0x10" (call_expression "(uint)(uVar5 >> 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar5 >> 8)" ( (binary_expression "uVar5 >> 8" identifier >> number_literal) ))) << number_literal)) )) >> number_literal) )) + (binary_expression "((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000" (parenthesized_expression "((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8))" ( (binary_expression "(uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)" (binary_expression "(uVar6 & 0xff) << 8" (parenthesized_expression "(uVar6 & 0xff)" ( (binary_expression "uVar6 & 0xff" identifier & number_literal) )) << number_literal) | (call_expression "(uint)(uVar6 >> 8)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar6 >> 8)" ( (binary_expression "uVar6 >> 8" identifier >> number_literal) )))) )) * number_literal))) ;)) (if_statement "if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }" if (parenthesized_expression "((uVar14 & 2) != 0)" ( (binary_expression "(uVar14 & 2) != 0" (parenthesized_expression "(uVar14 & 2)" ( (binary_expression "uVar14 & 2" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }" { (expression_statement "iVar8 = FUN_000a6584(iVar7,2);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,2)" identifier = (call_expression "FUN_000a6584(iVar7,2)" identifier (argument_list "(iVar7,2)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;" (assignment_expression "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) + number_literal)) ;) })) (expression_statement "lVar20 = (*pcVar13)(iVar7,param_1);" (assignment_expression "lVar20 = (*pcVar13)(iVar7,param_1)" identifier = (call_expression "(*pcVar13)(iVar7,param_1)" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "(iVar7,param_1)" ( identifier , identifier )))) ;) (if_statement "if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }" if (parenthesized_expression "(lVar20 < 0)" ( (binary_expression "lVar20 < 0" identifier < number_literal) )) (compound_statement "{\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }" { (expression_statement "iVar8 = *(int *)(iVar7 + 0x24);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x24)" identifier = (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "lVar19 = -1;" (assignment_expression "lVar19 = -1" identifier = number_literal) ;) (goto_statement "goto LAB_000a850c;" goto statement_identifier ;) })) (expression_statement "iVar8 = FUN_000a6584(iVar7,8);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,8)" identifier = (call_expression "FUN_000a6584(iVar7,8)" identifier (argument_list "(iVar7,8)" ( identifier , number_literal )))) ;) (if_statement "if (iVar8 == 0) break;" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);" (assignment_expression "uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30)" identifier = (call_expression "FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30)" identifier (argument_list "(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30)" ( (pointer_expression "*(undefined4 *)(iVar7 + 0x24)" * (cast_expression "(undefined4 *)(iVar7 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) )))) , (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) ;) (if_statement "if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }" if (parenthesized_expression "(~*(uint *)(iVar7 + 8) != uVar14)" ( (binary_expression "~*(uint *)(iVar7 + 8) != uVar14" (unary_expression "~*(uint *)(iVar7 + 8)" ~ (pointer_expression "*(uint *)(iVar7 + 8)" * (cast_expression "(uint *)(iVar7 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 8)" ( (binary_expression "iVar7 + 8" identifier + number_literal) ))))) != identifier) )) (compound_statement "{\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }" { (expression_statement "puVar16 = PTR_FUN_0012a1a8 + -0x5874;" (assignment_expression "puVar16 = PTR_FUN_0012a1a8 + -0x5874" identifier = (binary_expression "PTR_FUN_0012a1a8 + -0x5874" identifier + number_literal)) ;) (goto_statement "goto LAB_000a8570;" goto statement_identifier ;) })) (expression_statement "iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));" (assignment_expression "iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24))" identifier = (call_expression "FUN_000a6660(*(undefined4 *)(iVar7 + 0x24))" identifier (argument_list "(*(undefined4 *)(iVar7 + 0x24))" ( (pointer_expression "*(undefined4 *)(iVar7 + 0x24)" * (cast_expression "(undefined4 *)(iVar7 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) )))) )))) ;) (if_statement "if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }" if (parenthesized_expression "(*(int *)(iVar7 + 4) == iVar8)" ( (binary_expression "*(int *)(iVar7 + 4) == iVar8" (pointer_expression "*(int *)(iVar7 + 4)" * (cast_expression "(int *)(iVar7 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 4)" ( (binary_expression "iVar7 + 4" identifier + number_literal) )))) == identifier) )) (compound_statement "{\n        lVar19 = lVar20 + lVar19;\n      }" { (expression_statement "lVar19 = lVar20 + lVar19;" (assignment_expression "lVar19 = lVar20 + lVar19" identifier = (binary_expression "lVar20 + lVar19" identifier + identifier)) ;) }) (else_clause "else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }" else (compound_statement "{\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }" { (expression_statement "lVar19 = -1;" (assignment_expression "lVar19 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);" (call_expression "(*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1c8)" ( (pointer_expression "*(code *)PTR_FUN_0012a1c8" * (cast_expression "(code *)PTR_FUN_0012a1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar16 + -0x562c)" ( (binary_expression "puVar16 + -0x562c" identifier + number_literal) ))) ;) }))) (expression_statement "iVar17 = FUN_000a6584(iVar7,2);" (assignment_expression "iVar17 = FUN_000a6584(iVar7,2)" identifier = (call_expression "FUN_000a6584(iVar7,2)" identifier (argument_list "(iVar7,2)" ( identifier , number_literal )))) ;) (expression_statement "iVar8 = *(int *)(iVar7 + 0x24);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x24)" identifier = (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) ))))) ;) (if_statement "if (iVar17 == 0) goto LAB_000a850c;" if (parenthesized_expression "(iVar17 == 0)" ( (binary_expression "iVar17 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a850c;" goto statement_identifier ;)) (expression_statement "pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));" (assignment_expression "pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30))" identifier = (cast_expression "(char *)(iVar8 + *(int *)(iVar7 + 0x30))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + *(int *)(iVar7 + 0x30))" ( (binary_expression "iVar8 + *(int *)(iVar7 + 0x30)" identifier + (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) ))))) )))) ;) (if_statement "if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;" if (parenthesized_expression "((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))" ( (binary_expression "(*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75)" (parenthesized_expression "(*pcVar12 != '\x1f')" ( (binary_expression "*pcVar12 != '\x1f'" (pointer_expression "*pcVar12" * identifier) != (char_literal "'\x1f'" ' escape_sequence ')) )) || (parenthesized_expression "(iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75)" ( (comma_expression "iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75" (assignment_expression "iVar17 = *(int *)(iVar7 + 0x30) + 2" identifier = (binary_expression "*(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) + number_literal)) , (binary_expression "pcVar12[1] != -0x75" (subscript_expression "pcVar12[1]" identifier [ number_literal ]) != number_literal)) ))) )) (goto_statement "goto LAB_000a850c;" goto statement_identifier ;)) (expression_statement "*(int *)(iVar7 + 0x30) = iVar17;" (assignment_expression "*(int *)(iVar7 + 0x30) = iVar17" (pointer_expression "*(int *)(iVar7 + 0x30)" * (cast_expression "(int *)(iVar7 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x30)" ( (binary_expression "iVar7 + 0x30" identifier + number_literal) )))) = identifier) ;) })) (labeled_statement "LAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;" statement_identifier : (expression_statement "puVar16 = PTR_FUN_0012a1a8 + -0x5df0;" (assignment_expression "puVar16 = PTR_FUN_0012a1a8 + -0x5df0" identifier = (binary_expression "PTR_FUN_0012a1a8 + -0x5df0" identifier + number_literal)) ;)) (labeled_statement "LAB_000a8570:\n    lVar19 = -1;" statement_identifier : (expression_statement "lVar19 = -1;" (assignment_expression "lVar19 = -1" identifier = number_literal) ;)) (expression_statement "(*(code *)PTR_FUN_0012a1c8)(puVar16);" (call_expression "(*(code *)PTR_FUN_0012a1c8)(puVar16)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1c8)" ( (pointer_expression "*(code *)PTR_FUN_0012a1c8" * (cast_expression "(code *)PTR_FUN_0012a1c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar16)" ( identifier ))) ;) (expression_statement "iVar8 = *(int *)(iVar7 + 0x24);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x24)" identifier = (pointer_expression "*(int *)(iVar7 + 0x24)" * (cast_expression "(int *)(iVar7 + 0x24)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar7 + 0x24)" ( (binary_expression "iVar7 + 0x24" identifier + number_literal) ))))) ;) (labeled_statement "LAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);" statement_identifier : (expression_statement "(*(code *)PTR_free_0012b168)(iVar8);" (call_expression "(*(code *)PTR_free_0012b168)(iVar8)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8)" ( identifier ))) ;)) (expression_statement "(*(code *)PTR_free_0012b168)(iVar7);" (call_expression "(*(code *)PTR_free_0012b168)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" ( (pointer_expression "*(code *)PTR_free_0012b168" * (cast_expression "(code *)PTR_free_0012b168" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier ))) ;) }))) (labeled_statement "LAB_000a8348:\n  if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }" statement_identifier : (if_statement "if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar4)" ( (binary_expression "local_2c != *(int *)puVar4" identifier != (pointer_expression "*(int *)puVar4" * (cast_expression "(int *)puVar4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }" { (expression_statement "lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" identifier = (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" * (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return lVar19;" return identifier ;) }))) (return_statement "return lVar19;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE 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 (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) 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 *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( 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 = 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 = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT >> LIT) != LIT) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) == (char_literal ' escape_sequence '))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) })) (break_statement break ;) })) (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 (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT << LIT) | (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) ))) << LIT)) )) >> LIT) )) + (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT) | (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) )))) )) * LIT))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (unary_expression ~ (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) , (binary_expression (subscript_expression IDENT [ LIT ]) != 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) )))) = IDENT) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (return_statement return IDENT ;) }))) (return_statement return IDENT ;) })))
(function_definition "longlong FUN_000a81cc(char *param_1)\n\n{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  ushort uVar5;\n  ushort uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  undefined1 *puVar11;\n  char *pcVar12;\n  code *pcVar13;\n  uint uVar14;\n  uint uVar15;\n  undefined *puVar16;\n  int iVar17;\n  uint uVar18;\n  longlong lVar19;\n  longlong lVar20;\n  short local_36;\n  undefined2 local_34;\n  ushort uStack_32;\n  ushort local_30;\n  undefined2 uStack_2e;\n  int local_2c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if (*param_1 == '\0') {\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }\n  else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }\nLAB_000a8348:\n  if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }\n  return lVar19;\n}" (type_identifier "longlong") (function_declarator "FUN_000a81cc(char *param_1)" (identifier "FUN_000a81cc") (parameter_list "(char *param_1)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined1 uVar1;\n  undefined1 uVar2;\n  undefined *puVar3;\n  undefined *puVar4;\n  ushort uVar5;\n  ushort uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 uVar9;\n  uint *puVar10;\n  undefined1 *puVar11;\n  char *pcVar12;\n  code *pcVar13;\n  uint uVar14;\n  uint uVar15;\n  undefined *puVar16;\n  int iVar17;\n  uint uVar18;\n  longlong lVar19;\n  longlong lVar20;\n  short local_36;\n  undefined2 local_34;\n  ushort uStack_32;\n  ushort local_30;\n  undefined2 uStack_2e;\n  int local_2c;\n  \n  puVar4 = PTR___stack_chk_guard_0012b14c;\n  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;\n  if (*param_1 == '\0') {\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }\n  else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }\nLAB_000a8348:\n  if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }\n  return lVar19;\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "undefined1 uVar2;" (type_identifier "undefined1") (identifier "uVar2") (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "ushort uVar5;" (type_identifier "ushort") (identifier "uVar5") (; ";")) (declaration "ushort uVar6;" (type_identifier "ushort") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "uint *puVar10;" (type_identifier "uint") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "undefined1 *puVar11;" (type_identifier "undefined1") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "char *pcVar12;" (primitive_type "char") (pointer_declarator "*pcVar12" (* "*") (identifier "pcVar12")) (; ";")) (declaration "code *pcVar13;" (type_identifier "code") (pointer_declarator "*pcVar13" (* "*") (identifier "pcVar13")) (; ";")) (declaration "uint uVar14;" (type_identifier "uint") (identifier "uVar14") (; ";")) (declaration "uint uVar15;" (type_identifier "uint") (identifier "uVar15") (; ";")) (declaration "undefined *puVar16;" (type_identifier "undefined") (pointer_declarator "*puVar16" (* "*") (identifier "puVar16")) (; ";")) (declaration "int iVar17;" (primitive_type "int") (identifier "iVar17") (; ";")) (declaration "uint uVar18;" (type_identifier "uint") (identifier "uVar18") (; ";")) (declaration "longlong lVar19;" (type_identifier "longlong") (identifier "lVar19") (; ";")) (declaration "longlong lVar20;" (type_identifier "longlong") (identifier "lVar20") (; ";")) (declaration "short local_36;" (sized_type_specifier "short" (short "short")) (identifier "local_36") (; ";")) (declaration "undefined2 local_34;" (type_identifier "undefined2") (identifier "local_34") (; ";")) (declaration "ushort uStack_32;" (type_identifier "ushort") (identifier "uStack_32") (; ";")) (declaration "ushort local_30;" (type_identifier "ushort") (identifier "local_30") (; ";")) (declaration "undefined2 uStack_2e;" (type_identifier "undefined2") (identifier "uStack_2e") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar4 = PTR___stack_chk_guard_0012b14c;" (assignment_expression "puVar4 = PTR___stack_chk_guard_0012b14c" (identifier "puVar4") (= "=") (identifier "PTR___stack_chk_guard_0012b14c")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0012b14c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0012b14c" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0012b14c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0012b14c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0012b14c")))) (; ";")) (if_statement "if (*param_1 == '\0') {\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }\n  else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }" (if "if") (parenthesized_expression "(*param_1 == '\0')" (( "(") (binary_expression "*param_1 == '\0'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);\n    if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);\n  }" ({ "{") (expression_statement "iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);" (assignment_expression "iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2)" (identifier "iVar7") (= "=") (call_expression "(*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2)" (parenthesized_expression "(*(code *)PTR_FUN_0012a2bc)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a2bc" (* "*") (cast_expression "(code *)PTR_FUN_0012a2bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a2bc"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 8),&local_36,2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (pointer_expression "&local_36" (& "&") (identifier "local_36")) (, ",") (number_literal "2") () ")")))) (; ";")) (if_statement "if (iVar7 == 2) {\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }" (if "if") (parenthesized_expression "(iVar7 == 2)" (( "(") (binary_expression "iVar7 == 2" (identifier "iVar7") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }\n      if (local_36 == 0x1f8b) goto LAB_000a827c;\n    }" ({ "{") (if_statement "if (local_36 == 0x1f9d) {\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }" (if "if") (parenthesized_expression "(local_36 == 0x1f9d)" (( "(") (binary_expression "local_36 == 0x1f9d" (identifier "local_36") (== "==") (number_literal "0x1f9d")) () ")")) (compound_statement "{\n        *param_1 = '\x02';\n        lVar19 = FUN_000a8640(param_1);\n        goto LAB_000a8348;\n      }" ({ "{") (expression_statement "*param_1 = '\x02';" (assignment_expression "*param_1 = '\x02'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) (; ";")) (expression_statement "lVar19 = FUN_000a8640(param_1);" (assignment_expression "lVar19 = FUN_000a8640(param_1)" (identifier "lVar19") (= "=") (call_expression "FUN_000a8640(param_1)" (identifier "FUN_000a8640") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (goto_statement "goto LAB_000a8348;" (goto "goto") (statement_identifier "LAB_000a8348") (; ";")) (} "}"))) (if_statement "if (local_36 == 0x1f8b) goto LAB_000a827c;" (if "if") (parenthesized_expression "(local_36 == 0x1f8b)" (( "(") (binary_expression "local_36 == 0x1f8b" (identifier "local_36") (== "==") (number_literal "0x1f8b")) () ")")) (goto_statement "goto LAB_000a827c;" (goto "goto") (statement_identifier "LAB_000a827c") (; ";"))) (} "}"))) (expression_statement "lVar19 = -1;" (assignment_expression "lVar19 = -1" (identifier "lVar19") (= "=") (number_literal "-1")) (; ";")) (expression_statement "(*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);" (call_expression "(*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1c8)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a1c8" (* "*") (cast_expression "(code *)PTR_FUN_0012a1c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a1c8"))) () ")")) (argument_list "(PTR_FUN_0012a1a8 + -0x563c)" (( "(") (binary_expression "PTR_FUN_0012a1a8 + -0x563c" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x563c")) () ")"))) (; ";")) (} "}")) (else_clause "else {\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }" (else "else") (compound_statement "{\nLAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;\n    lVar19 = 0;\n    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);\n    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;\n    puVar3 = PTR_FUN_0012a230;\n    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;\n    iVar8 = (*(code *)puVar3)(0x4000);\n    uVar9 = *(undefined4 *)(param_1 + 8);\n    iVar17 = *(int *)(iVar7 + 0x30);\n    *(int *)(iVar7 + 0x24) = iVar8;\n    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);\n    *(undefined4 *)(iVar7 + 0xc) = uVar9;\n    while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }\nLAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;\nLAB_000a8570:\n    lVar19 = -1;\n    (*(code *)PTR_FUN_0012a1c8)(puVar16);\n    iVar8 = *(int *)(iVar7 + 0x24);\nLAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);\n    (*(code *)PTR_free_0012b168)(iVar7);\n  }" ({ "{") (labeled_statement "LAB_000a827c:\n    puVar16 = PTR_FUN_0012a1a8;" (statement_identifier "LAB_000a827c") (: ":") (expression_statement "puVar16 = PTR_FUN_0012a1a8;" (assignment_expression "puVar16 = PTR_FUN_0012a1a8" (identifier "puVar16") (= "=") (identifier "PTR_FUN_0012a1a8")) (; ";"))) (expression_statement "lVar19 = 0;" (assignment_expression "lVar19 = 0" (identifier "lVar19") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);" (assignment_expression "iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170)" (identifier "iVar7") (= "=") (call_expression "(*(code *)PTR_FUN_0012a1d0)(0x170)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1d0)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a1d0" (* "*") (cast_expression "(code *)PTR_FUN_0012a1d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a1d0"))) () ")")) (argument_list "(0x170)" (( "(") (number_literal "0x170") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar7 + 0x2c) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar7 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x2c)" (( "(") (binary_expression "iVar7 + 0x2c" (identifier "iVar7") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar3 = PTR_FUN_0012a230;" (assignment_expression "puVar3 = PTR_FUN_0012a230" (identifier "puVar3") (= "=") (identifier "PTR_FUN_0012a230")) (; ";")) (expression_statement "*(undefined4 *)(iVar7 + 0x28) = 0xffffffff;" (assignment_expression "*(undefined4 *)(iVar7 + 0x28) = 0xffffffff" (pointer_expression "*(undefined4 *)(iVar7 + 0x28)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x28)" (( "(") (binary_expression "iVar7 + 0x28" (identifier "iVar7") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "iVar8 = (*(code *)puVar3)(0x4000);" (assignment_expression "iVar8 = (*(code *)puVar3)(0x4000)" (identifier "iVar8") (= "=") (call_expression "(*(code *)puVar3)(0x4000)" (parenthesized_expression "(*(code *)puVar3)" (( "(") (pointer_expression "*(code *)puVar3" (* "*") (cast_expression "(code *)puVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")")) (argument_list "(0x4000)" (( "(") (number_literal "0x4000") () ")")))) (; ";")) (expression_statement "uVar9 = *(undefined4 *)(param_1 + 8);" (assignment_expression "uVar9 = *(undefined4 *)(param_1 + 8)" (identifier "uVar9") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar17 = *(int *)(iVar7 + 0x30);" (assignment_expression "iVar17 = *(int *)(iVar7 + 0x30)" (identifier "iVar17") (= "=") (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar7 + 0x24) = iVar8;" (assignment_expression "*(int *)(iVar7 + 0x24) = iVar8" (pointer_expression "*(int *)(iVar7 + 0x24)" (* "*") (cast_expression "(int *)(iVar7 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x24)" (( "(") (binary_expression "iVar7 + 0x24" (identifier "iVar7") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);" (assignment_expression "pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0)" (identifier "pcVar13") (= "=") (cast_expression "(code *)(PTR_LAB_0012aa28 + 0x7cb0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0012aa28 + 0x7cb0)" (( "(") (binary_expression "PTR_LAB_0012aa28 + 0x7cb0" (identifier "PTR_LAB_0012aa28") (+ "+") (number_literal "0x7cb0")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar7 + 0xc) = uVar9;" (assignment_expression "*(undefined4 *)(iVar7 + 0xc) = uVar9" (pointer_expression "*(undefined4 *)(iVar7 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0xc)" (( "(") (binary_expression "iVar7 + 0xc" (identifier "iVar7") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar9")) (; ";")) (while_statement "while( true ) {\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      puVar3 = PTR_memmove_0012b174;\n      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;\n      (*(code *)puVar3)(iVar8,iVar8 + iVar17);\n      *(undefined4 *)(iVar7 + 0x30) = 0;\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n      uVar14 = puVar10[1];\n      uVar18 = *puVar10;\n      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;\n      local_34 = (undefined2)(uVar18 >> 0x10);\n      uStack_32 = (ushort)uVar18;\n      uVar5 = uStack_32;\n      local_30 = (ushort)(uVar14 >> 0x10);\n      uVar6 = local_30;\n      uStack_2e = (undefined2)uVar14;\n      uVar14 = (uVar18 << 8) >> 0x18;\n      if (uVar18 >> 0x18 != 8) break;\n      if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }\n      if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }\nLAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;\n      if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }\n      lVar20 = (*pcVar13)(iVar7,param_1);\n      if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }\n      iVar8 = FUN_000a6584(iVar7,8);\n      if (iVar8 == 0) break;\n      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);\n      if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }\n      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));\n      if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }\n      iVar17 = FUN_000a6584(iVar7,2);\n      iVar8 = *(int *)(iVar7 + 0x24);\n      if (iVar17 == 0) goto LAB_000a850c;\n      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));\n      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;\n      *(int *)(iVar7 + 0x30) = iVar17;\n    }" ({ "{") (expression_statement "puVar3 = PTR_memmove_0012b174;" (assignment_expression "puVar3 = PTR_memmove_0012b174" (identifier "puVar3") (= "=") (identifier "PTR_memmove_0012b174")) (; ";")) (expression_statement "*(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;" (assignment_expression "*(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17" (pointer_expression "*(int *)(iVar7 + 0x34)" (* "*") (cast_expression "(int *)(iVar7 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x34)" (( "(") (binary_expression "iVar7 + 0x34" (identifier "iVar7") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "*(int *)(iVar7 + 0x34) - iVar17" (pointer_expression "*(int *)(iVar7 + 0x34)" (* "*") (cast_expression "(int *)(iVar7 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x34)" (( "(") (binary_expression "iVar7 + 0x34" (identifier "iVar7") (+ "+") (number_literal "0x34")) () ")")))) (- "-") (identifier "iVar17"))) (; ";")) (expression_statement "(*(code *)puVar3)(iVar8,iVar8 + iVar17);" (call_expression "(*(code *)puVar3)(iVar8,iVar8 + iVar17)" (parenthesized_expression "(*(code *)puVar3)" (( "(") (pointer_expression "*(code *)puVar3" (* "*") (cast_expression "(code *)puVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")")) (argument_list "(iVar8,iVar8 + iVar17)" (( "(") (identifier "iVar8") (, ",") (binary_expression "iVar8 + iVar17" (identifier "iVar8") (+ "+") (identifier "iVar17")) () ")"))) (; ";")) (expression_statement "*(undefined4 *)(iVar7 + 0x30) = 0;" (assignment_expression "*(undefined4 *)(iVar7 + 0x30) = 0" (pointer_expression "*(undefined4 *)(iVar7 + 0x30)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar8 = FUN_000a6584(iVar7,8);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,8)" (identifier "iVar8") (= "=") (call_expression "FUN_000a6584(iVar7,8)" (identifier "FUN_000a6584") (argument_list "(iVar7,8)" (( "(") (identifier "iVar7") (, ",") (number_literal "8") () ")")))) (; ";")) (if_statement "if (iVar8 == 0) break;" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));" (assignment_expression "puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" (identifier "puVar10") (= "=") (cast_expression "(uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" (( "(") (binary_expression "*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30)" (pointer_expression "*(int *)(iVar7 + 0x24)" (* "*") (cast_expression "(int *)(iVar7 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x24)" (( "(") (binary_expression "iVar7 + 0x24" (identifier "iVar7") (+ "+") (number_literal "0x24")) () ")")))) (+ "+") (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")"))))) () ")")))) (; ";")) (expression_statement "uVar14 = puVar10[1];" (assignment_expression "uVar14 = puVar10[1]" (identifier "uVar14") (= "=") (subscript_expression "puVar10[1]" (identifier "puVar10") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar18 = *puVar10;" (assignment_expression "uVar18 = *puVar10" (identifier "uVar18") (= "=") (pointer_expression "*puVar10" (* "*") (identifier "puVar10"))) (; ";")) (expression_statement "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;" (assignment_expression "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8" (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (binary_expression "*(int *)(iVar7 + 0x30) + 8" (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (number_literal "8"))) (; ";")) (expression_statement "local_34 = (undefined2)(uVar18 >> 0x10);" (assignment_expression "local_34 = (undefined2)(uVar18 >> 0x10)" (identifier "local_34") (= "=") (call_expression "(undefined2)(uVar18 >> 0x10)" (parenthesized_expression "(undefined2)" (( "(") (identifier "undefined2") () ")")) (argument_list "(uVar18 >> 0x10)" (( "(") (binary_expression "uVar18 >> 0x10" (identifier "uVar18") (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "uStack_32 = (ushort)uVar18;" (assignment_expression "uStack_32 = (ushort)uVar18" (identifier "uStack_32") (= "=") (cast_expression "(ushort)uVar18" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "uVar18"))) (; ";")) (expression_statement "uVar5 = uStack_32;" (assignment_expression "uVar5 = uStack_32" (identifier "uVar5") (= "=") (identifier "uStack_32")) (; ";")) (expression_statement "local_30 = (ushort)(uVar14 >> 0x10);" (assignment_expression "local_30 = (ushort)(uVar14 >> 0x10)" (identifier "local_30") (= "=") (call_expression "(ushort)(uVar14 >> 0x10)" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(uVar14 >> 0x10)" (( "(") (binary_expression "uVar14 >> 0x10" (identifier "uVar14") (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "uVar6 = local_30;" (assignment_expression "uVar6 = local_30" (identifier "uVar6") (= "=") (identifier "local_30")) (; ";")) (expression_statement "uStack_2e = (undefined2)uVar14;" (assignment_expression "uStack_2e = (undefined2)uVar14" (identifier "uStack_2e") (= "=") (cast_expression "(undefined2)uVar14" (( "(") (type_descriptor "undefined2" (type_identifier "undefined2")) () ")") (identifier "uVar14"))) (; ";")) (expression_statement "uVar14 = (uVar18 << 8) >> 0x18;" (assignment_expression "uVar14 = (uVar18 << 8) >> 0x18" (identifier "uVar14") (= "=") (binary_expression "(uVar18 << 8) >> 0x18" (parenthesized_expression "(uVar18 << 8)" (( "(") (binary_expression "uVar18 << 8" (identifier "uVar18") (<< "<<") (number_literal "8")) () ")")) (>> ">>") (number_literal "0x18"))) (; ";")) (if_statement "if (uVar18 >> 0x18 != 8) break;" (if "if") (parenthesized_expression "(uVar18 >> 0x18 != 8)" (( "(") (binary_expression "uVar18 >> 0x18 != 8" (binary_expression "uVar18 >> 0x18" (identifier "uVar18") (>> ">>") (number_literal "0x18")) (!= "!=") (number_literal "8")) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if ((uVar14 & 4) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }" (if "if") (parenthesized_expression "((uVar14 & 4) != 0)" (( "(") (binary_expression "(uVar14 & 4) != 0" (parenthesized_expression "(uVar14 & 4)" (( "(") (binary_expression "uVar14 & 4" (identifier "uVar14") (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));\n        uVar1 = puVar11[1];\n        uVar2 = *puVar11;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n        uVar15 = (uint)CONCAT11(uVar1,uVar2);\n        iVar8 = FUN_000a6584(iVar7,uVar15);\n        if (iVar8 == 0) break;\n        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;\n      }" ({ "{") (expression_statement "iVar8 = FUN_000a6584(iVar7,2);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,2)" (identifier "iVar8") (= "=") (call_expression "FUN_000a6584(iVar7,2)" (identifier "FUN_000a6584") (argument_list "(iVar7,2)" (( "(") (identifier "iVar7") (, ",") (number_literal "2") () ")")))) (; ";")) (if_statement "if (iVar8 == 0) break;" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));" (assignment_expression "puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" (identifier "puVar11") (= "=") (cast_expression "(undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30))" (( "(") (binary_expression "*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30)" (pointer_expression "*(int *)(iVar7 + 0x24)" (* "*") (cast_expression "(int *)(iVar7 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x24)" (( "(") (binary_expression "iVar7 + 0x24" (identifier "iVar7") (+ "+") (number_literal "0x24")) () ")")))) (+ "+") (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")"))))) () ")")))) (; ";")) (expression_statement "uVar1 = puVar11[1];" (assignment_expression "uVar1 = puVar11[1]" (identifier "uVar1") (= "=") (subscript_expression "puVar11[1]" (identifier "puVar11") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar2 = *puVar11;" (assignment_expression "uVar2 = *puVar11" (identifier "uVar2") (= "=") (pointer_expression "*puVar11" (* "*") (identifier "puVar11"))) (; ";")) (expression_statement "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;" (assignment_expression "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (binary_expression "*(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar15 = (uint)CONCAT11(uVar1,uVar2);" (assignment_expression "uVar15 = (uint)CONCAT11(uVar1,uVar2)" (identifier "uVar15") (= "=") (cast_expression "(uint)CONCAT11(uVar1,uVar2)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CONCAT11(uVar1,uVar2)" (identifier "CONCAT11") (argument_list "(uVar1,uVar2)" (( "(") (identifier "uVar1") (, ",") (identifier "uVar2") () ")"))))) (; ";")) (expression_statement "iVar8 = FUN_000a6584(iVar7,uVar15);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,uVar15)" (identifier "iVar8") (= "=") (call_expression "FUN_000a6584(iVar7,uVar15)" (identifier "FUN_000a6584") (argument_list "(iVar7,uVar15)" (( "(") (identifier "iVar7") (, ",") (identifier "uVar15") () ")")))) (; ";")) (if_statement "if (iVar8 == 0) break;" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;" (assignment_expression "*(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15" (pointer_expression "*(uint *)(iVar7 + 0x30)" (* "*") (cast_expression "(uint *)(iVar7 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (binary_expression "*(int *)(iVar7 + 0x30) + uVar15" (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (identifier "uVar15"))) (; ";")) (} "}"))) (if_statement "if ((uVar14 & 0x18) != 0) {\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }" (if "if") (parenthesized_expression "((uVar14 & 0x18) != 0)" (( "(") (binary_expression "(uVar14 & 0x18) != 0" (parenthesized_expression "(uVar14 & 0x18)" (( "(") (binary_expression "uVar14 & 0x18" (identifier "uVar14") (& "&") (number_literal "0x18")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }\n        break;\n      }" ({ "{") (while_statement "while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }" (while "while") (parenthesized_expression "(iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0)" (( "(") (comma_expression "iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0" (assignment_expression "iVar8 = FUN_000a6584(iVar7,1)" (identifier "iVar8") (= "=") (call_expression "FUN_000a6584(iVar7,1)" (identifier "FUN_000a6584") (argument_list "(iVar7,1)" (( "(") (identifier "iVar7") (, ",") (number_literal "1") () ")")))) (, ",") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n          iVar8 = *(int *)(iVar7 + 0x30);\n          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }\n        }" ({ "{") (expression_statement "iVar8 = *(int *)(iVar7 + 0x30);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x30)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (while_statement "while (*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }" (while "while") (parenthesized_expression "(*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0')" (( "(") (comma_expression "*(int *)(iVar7 + 0x30) = iVar8 + 1,\n                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0'" (assignment_expression "*(int *)(iVar7 + 0x30) = iVar8 + 1" (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (, ",") (binary_expression "*(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0'" (pointer_expression "*(char *)(*(int *)(iVar7 + 0x24) + iVar8)" (* "*") (cast_expression "(char *)(*(int *)(iVar7 + 0x24) + iVar8)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar7 + 0x24) + iVar8)" (( "(") (binary_expression "*(int *)(iVar7 + 0x24) + iVar8" (pointer_expression "*(int *)(iVar7 + 0x24)" (* "*") (cast_expression "(int *)(iVar7 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x24)" (( "(") (binary_expression "iVar7 + 0x24" (identifier "iVar7") (+ "+") (number_literal "0x24")) () ")")))) (+ "+") (identifier "iVar8")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (compound_statement "{\n            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;\n            uVar14 = uVar14 & 0xffffffe7;\n            iVar8 = FUN_000a6584(iVar7,1);\n            if (iVar8 == 0) goto LAB_000a8324;\n            iVar8 = *(int *)(iVar7 + 0x30);\n          }" ({ "{") (if_statement "if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;" (if "if") (parenthesized_expression "((uVar14 & 0x18) != 0x18)" (( "(") (binary_expression "(uVar14 & 0x18) != 0x18" (parenthesized_expression "(uVar14 & 0x18)" (( "(") (binary_expression "uVar14 & 0x18" (identifier "uVar14") (& "&") (number_literal "0x18")) () ")")) (!= "!=") (number_literal "0x18")) () ")")) (goto_statement "goto LAB_000a84a4;" (goto "goto") (statement_identifier "LAB_000a84a4") (; ";"))) (expression_statement "uVar14 = uVar14 & 0xffffffe7;" (assignment_expression "uVar14 = uVar14 & 0xffffffe7" (identifier "uVar14") (= "=") (binary_expression "uVar14 & 0xffffffe7" (identifier "uVar14") (& "&") (number_literal "0xffffffe7"))) (; ";")) (expression_statement "iVar8 = FUN_000a6584(iVar7,1);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,1)" (identifier "iVar8") (= "=") (call_expression "FUN_000a6584(iVar7,1)" (identifier "FUN_000a6584") (argument_list "(iVar7,1)" (( "(") (identifier "iVar7") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar8 == 0) goto LAB_000a8324;" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000a8324;" (goto "goto") (statement_identifier "LAB_000a8324") (; ";"))) (expression_statement "iVar8 = *(int *)(iVar7 + 0x30);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x30)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (break_statement "break;" (break "break") (; ";")) (} "}"))) (labeled_statement "LAB_000a84a4:\n      *(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;" (statement_identifier "LAB_000a84a4") (: ":") (expression_statement "*(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;" (assignment_expression "*(uint *)(param_1 + 0x34) =\n           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000" (pointer_expression "*(uint *)(param_1 + 0x34)" (* "*") (cast_expression "(uint *)(param_1 + 0x34)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (binary_expression "((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +\n           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000" (parenthesized_expression "((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10)" (( "(") (binary_expression "(uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10" (parenthesized_expression "(uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10)" (( "(") (binary_expression "uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10" (binary_expression "uVar18 << 0x18" (identifier "uVar18") (<< "<<") (number_literal "0x18")) (| "|") (binary_expression "(uint)(uVar5 >> 8) << 0x10" (call_expression "(uint)(uVar5 >> 8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar5 >> 8)" (( "(") (binary_expression "uVar5 >> 8" (identifier "uVar5") (>> ">>") (number_literal "8")) () ")"))) (<< "<<") (number_literal "0x10"))) () ")")) (>> ">>") (number_literal "0x10")) () ")")) (+ "+") (binary_expression "((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000" (parenthesized_expression "((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8))" (( "(") (binary_expression "(uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)" (binary_expression "(uVar6 & 0xff) << 8" (parenthesized_expression "(uVar6 & 0xff)" (( "(") (binary_expression "uVar6 & 0xff" (identifier "uVar6") (& "&") (number_literal "0xff")) () ")")) (<< "<<") (number_literal "8")) (| "|") (call_expression "(uint)(uVar6 >> 8)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar6 >> 8)" (( "(") (binary_expression "uVar6 >> 8" (identifier "uVar6") (>> ">>") (number_literal "8")) () ")")))) () ")")) (* "*") (number_literal "0x10000")))) (; ";"))) (if_statement "if ((uVar14 & 2) != 0) {\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }" (if "if") (parenthesized_expression "((uVar14 & 2) != 0)" (( "(") (binary_expression "(uVar14 & 2) != 0" (parenthesized_expression "(uVar14 & 2)" (( "(") (binary_expression "uVar14 & 2" (identifier "uVar14") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar8 = FUN_000a6584(iVar7,2);\n        if (iVar8 == 0) break;\n        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;\n      }" ({ "{") (expression_statement "iVar8 = FUN_000a6584(iVar7,2);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,2)" (identifier "iVar8") (= "=") (call_expression "FUN_000a6584(iVar7,2)" (identifier "FUN_000a6584") (argument_list "(iVar7,2)" (( "(") (identifier "iVar7") (, ",") (number_literal "2") () ")")))) (; ";")) (if_statement "if (iVar8 == 0) break;" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;" (assignment_expression "*(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (binary_expression "*(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "lVar20 = (*pcVar13)(iVar7,param_1);" (assignment_expression "lVar20 = (*pcVar13)(iVar7,param_1)" (identifier "lVar20") (= "=") (call_expression "(*pcVar13)(iVar7,param_1)" (parenthesized_expression "(*pcVar13)" (( "(") (pointer_expression "*pcVar13" (* "*") (identifier "pcVar13")) () ")")) (argument_list "(iVar7,param_1)" (( "(") (identifier "iVar7") (, ",") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (lVar20 < 0) {\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }" (if "if") (parenthesized_expression "(lVar20 < 0)" (( "(") (binary_expression "lVar20 < 0" (identifier "lVar20") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        iVar8 = *(int *)(iVar7 + 0x24);\n        lVar19 = -1;\n        goto LAB_000a850c;\n      }" ({ "{") (expression_statement "iVar8 = *(int *)(iVar7 + 0x24);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x24)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar7 + 0x24)" (* "*") (cast_expression "(int *)(iVar7 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x24)" (( "(") (binary_expression "iVar7 + 0x24" (identifier "iVar7") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "lVar19 = -1;" (assignment_expression "lVar19 = -1" (identifier "lVar19") (= "=") (number_literal "-1")) (; ";")) (goto_statement "goto LAB_000a850c;" (goto "goto") (statement_identifier "LAB_000a850c") (; ";")) (} "}"))) (expression_statement "iVar8 = FUN_000a6584(iVar7,8);" (assignment_expression "iVar8 = FUN_000a6584(iVar7,8)" (identifier "iVar8") (= "=") (call_expression "FUN_000a6584(iVar7,8)" (identifier "FUN_000a6584") (argument_list "(iVar7,8)" (( "(") (identifier "iVar7") (, ",") (number_literal "8") () ")")))) (; ";")) (if_statement "if (iVar8 == 0) break;" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);" (assignment_expression "uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30)" (identifier "uVar14") (= "=") (call_expression "FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30)" (identifier "FUN_000a6660") (argument_list "(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30)" (( "(") (pointer_expression "*(undefined4 *)(iVar7 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x24)" (( "(") (binary_expression "iVar7 + 0x24" (identifier "iVar7") (+ "+") (number_literal "0x24")) () ")")))) (, ",") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (; ";")) (if_statement "if (~*(uint *)(iVar7 + 8) != uVar14) {\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }" (if "if") (parenthesized_expression "(~*(uint *)(iVar7 + 8) != uVar14)" (( "(") (binary_expression "~*(uint *)(iVar7 + 8) != uVar14" (unary_expression "~*(uint *)(iVar7 + 8)" (~ "~") (pointer_expression "*(uint *)(iVar7 + 8)" (* "*") (cast_expression "(uint *)(iVar7 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 8)" (( "(") (binary_expression "iVar7 + 8" (identifier "iVar7") (+ "+") (number_literal "8")) () ")"))))) (!= "!=") (identifier "uVar14")) () ")")) (compound_statement "{\n        puVar16 = PTR_FUN_0012a1a8 + -0x5874;\n        goto LAB_000a8570;\n      }" ({ "{") (expression_statement "puVar16 = PTR_FUN_0012a1a8 + -0x5874;" (assignment_expression "puVar16 = PTR_FUN_0012a1a8 + -0x5874" (identifier "puVar16") (= "=") (binary_expression "PTR_FUN_0012a1a8 + -0x5874" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x5874"))) (; ";")) (goto_statement "goto LAB_000a8570;" (goto "goto") (statement_identifier "LAB_000a8570") (; ";")) (} "}"))) (expression_statement "iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));" (assignment_expression "iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24))" (identifier "iVar8") (= "=") (call_expression "FUN_000a6660(*(undefined4 *)(iVar7 + 0x24))" (identifier "FUN_000a6660") (argument_list "(*(undefined4 *)(iVar7 + 0x24))" (( "(") (pointer_expression "*(undefined4 *)(iVar7 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar7 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x24)" (( "(") (binary_expression "iVar7 + 0x24" (identifier "iVar7") (+ "+") (number_literal "0x24")) () ")")))) () ")")))) (; ";")) (if_statement "if (*(int *)(iVar7 + 4) == iVar8) {\n        lVar19 = lVar20 + lVar19;\n      }\n      else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar7 + 4) == iVar8)" (( "(") (binary_expression "*(int *)(iVar7 + 4) == iVar8" (pointer_expression "*(int *)(iVar7 + 4)" (* "*") (cast_expression "(int *)(iVar7 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 4)" (( "(") (binary_expression "iVar7 + 4" (identifier "iVar7") (+ "+") (number_literal "4")) () ")")))) (== "==") (identifier "iVar8")) () ")")) (compound_statement "{\n        lVar19 = lVar20 + lVar19;\n      }" ({ "{") (expression_statement "lVar19 = lVar20 + lVar19;" (assignment_expression "lVar19 = lVar20 + lVar19" (identifier "lVar19") (= "=") (binary_expression "lVar20 + lVar19" (identifier "lVar20") (+ "+") (identifier "lVar19"))) (; ";")) (} "}")) (else_clause "else {\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }" (else "else") (compound_statement "{\n        lVar19 = -1;\n        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);\n      }" ({ "{") (expression_statement "lVar19 = -1;" (assignment_expression "lVar19 = -1" (identifier "lVar19") (= "=") (number_literal "-1")) (; ";")) (expression_statement "(*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);" (call_expression "(*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1c8)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a1c8" (* "*") (cast_expression "(code *)PTR_FUN_0012a1c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a1c8"))) () ")")) (argument_list "(puVar16 + -0x562c)" (( "(") (binary_expression "puVar16 + -0x562c" (identifier "puVar16") (+ "+") (number_literal "-0x562c")) () ")"))) (; ";")) (} "}")))) (expression_statement "iVar17 = FUN_000a6584(iVar7,2);" (assignment_expression "iVar17 = FUN_000a6584(iVar7,2)" (identifier "iVar17") (= "=") (call_expression "FUN_000a6584(iVar7,2)" (identifier "FUN_000a6584") (argument_list "(iVar7,2)" (( "(") (identifier "iVar7") (, ",") (number_literal "2") () ")")))) (; ";")) (expression_statement "iVar8 = *(int *)(iVar7 + 0x24);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x24)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar7 + 0x24)" (* "*") (cast_expression "(int *)(iVar7 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x24)" (( "(") (binary_expression "iVar7 + 0x24" (identifier "iVar7") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (iVar17 == 0) goto LAB_000a850c;" (if "if") (parenthesized_expression "(iVar17 == 0)" (( "(") (binary_expression "iVar17 == 0" (identifier "iVar17") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000a850c;" (goto "goto") (statement_identifier "LAB_000a850c") (; ";"))) (expression_statement "pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));" (assignment_expression "pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30))" (identifier "pcVar12") (= "=") (cast_expression "(char *)(iVar8 + *(int *)(iVar7 + 0x30))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + *(int *)(iVar7 + 0x30))" (( "(") (binary_expression "iVar8 + *(int *)(iVar7 + 0x30)" (identifier "iVar8") (+ "+") (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")"))))) () ")")))) (; ";")) (if_statement "if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))\n      goto LAB_000a850c;" (if "if") (parenthesized_expression "((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))" (( "(") (binary_expression "(*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75)" (parenthesized_expression "(*pcVar12 != '\x1f')" (( "(") (binary_expression "*pcVar12 != '\x1f'" (pointer_expression "*pcVar12" (* "*") (identifier "pcVar12")) (!= "!=") (char_literal "'\x1f'" (' "'") (escape_sequence "\x1f") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75)" (( "(") (comma_expression "iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75" (assignment_expression "iVar17 = *(int *)(iVar7 + 0x30) + 2" (identifier "iVar17") (= "=") (binary_expression "*(int *)(iVar7 + 0x30) + 2" (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (number_literal "2"))) (, ",") (binary_expression "pcVar12[1] != -0x75" (subscript_expression "pcVar12[1]" (identifier "pcVar12") ([ "[") (number_literal "1") (] "]")) (!= "!=") (number_literal "-0x75"))) () ")"))) () ")")) (goto_statement "goto LAB_000a850c;" (goto "goto") (statement_identifier "LAB_000a850c") (; ";"))) (expression_statement "*(int *)(iVar7 + 0x30) = iVar17;" (assignment_expression "*(int *)(iVar7 + 0x30) = iVar17" (pointer_expression "*(int *)(iVar7 + 0x30)" (* "*") (cast_expression "(int *)(iVar7 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x30)" (( "(") (binary_expression "iVar7 + 0x30" (identifier "iVar7") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "iVar17")) (; ";")) (} "}"))) (labeled_statement "LAB_000a8324:\n    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;" (statement_identifier "LAB_000a8324") (: ":") (expression_statement "puVar16 = PTR_FUN_0012a1a8 + -0x5df0;" (assignment_expression "puVar16 = PTR_FUN_0012a1a8 + -0x5df0" (identifier "puVar16") (= "=") (binary_expression "PTR_FUN_0012a1a8 + -0x5df0" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x5df0"))) (; ";"))) (labeled_statement "LAB_000a8570:\n    lVar19 = -1;" (statement_identifier "LAB_000a8570") (: ":") (expression_statement "lVar19 = -1;" (assignment_expression "lVar19 = -1" (identifier "lVar19") (= "=") (number_literal "-1")) (; ";"))) (expression_statement "(*(code *)PTR_FUN_0012a1c8)(puVar16);" (call_expression "(*(code *)PTR_FUN_0012a1c8)(puVar16)" (parenthesized_expression "(*(code *)PTR_FUN_0012a1c8)" (( "(") (pointer_expression "*(code *)PTR_FUN_0012a1c8" (* "*") (cast_expression "(code *)PTR_FUN_0012a1c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0012a1c8"))) () ")")) (argument_list "(puVar16)" (( "(") (identifier "puVar16") () ")"))) (; ";")) (expression_statement "iVar8 = *(int *)(iVar7 + 0x24);" (assignment_expression "iVar8 = *(int *)(iVar7 + 0x24)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar7 + 0x24)" (* "*") (cast_expression "(int *)(iVar7 + 0x24)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar7 + 0x24)" (( "(") (binary_expression "iVar7 + 0x24" (identifier "iVar7") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (labeled_statement "LAB_000a850c:\n    (*(code *)PTR_free_0012b168)(iVar8);" (statement_identifier "LAB_000a850c") (: ":") (expression_statement "(*(code *)PTR_free_0012b168)(iVar8);" (call_expression "(*(code *)PTR_free_0012b168)(iVar8)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" (( "(") (pointer_expression "*(code *)PTR_free_0012b168" (* "*") (cast_expression "(code *)PTR_free_0012b168" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0012b168"))) () ")")) (argument_list "(iVar8)" (( "(") (identifier "iVar8") () ")"))) (; ";"))) (expression_statement "(*(code *)PTR_free_0012b168)(iVar7);" (call_expression "(*(code *)PTR_free_0012b168)(iVar7)" (parenthesized_expression "(*(code *)PTR_free_0012b168)" (( "(") (pointer_expression "*(code *)PTR_free_0012b168" (* "*") (cast_expression "(code *)PTR_free_0012b168" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0012b168"))) () ")")) (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (} "}")))) (labeled_statement "LAB_000a8348:\n  if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }" (statement_identifier "LAB_000a8348") (: ":") (if_statement "if (local_2c != *(int *)puVar4) {\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }" (if "if") (parenthesized_expression "(local_2c != *(int *)puVar4)" (( "(") (binary_expression "local_2c != *(int *)puVar4" (identifier "local_2c") (!= "!=") (pointer_expression "*(int *)puVar4" (* "*") (cast_expression "(int *)puVar4" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4")))) () ")")) (compound_statement "{\n    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();\n    return lVar19;\n  }" ({ "{") (expression_statement "lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();" (assignment_expression "lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)()" (identifier "lVar19") (= "=") (call_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0012b0c8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0012b0c8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0012b0c8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0012b0c8"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return lVar19;" (return "return") (identifier "lVar19") (; ";")) (} "}")))) (return_statement "return lVar19;" (return "return") (identifier "lVar19") (; ";")) (} "}")))

type_1 function_1(type_2 *xstate)

{
  type_3 uVar1;
  type_3 uVar2;
  type_4 *puVar3;
  type_5 var_14;
  type_5 var_15;
  int var_5;
  uint32_t var_18;
  type_6 var_10;
  type_6 var_13;
  type_3 *var_21;
  type_4 *puVar11;
  type_7 *state_1;
  type_6 var_9;
  type_7 *unaff_s8;
  type_1 var_19;
  type_1 var_16;
  type_8 *pcStack_44;
  type_4 *var_20;
  uint16_t var_6;
  type_9 uStack_34;
  type_5 uStack_32;
  type_5 uStack_30;
  type_9 uStack_2e;
  int var_8;
  
  puVar3 = PTR___stack_chk_guard_0012b14c;
  var_8 = *(int *)PTR___stack_chk_guard_0012b14c;
  if (xstate->signature_skipped != '\0') {
LAB_000a827c:
    var_20 = var_1<var_2&var_3)9__f_l_0012a1a8;
    var_19 = 0;
    unaff_s8 = (type_7 *)(*(type_8 *)PTR_xzalloc_0012a1d0)(0x170);
    *(type_10 *)((int)&unaff_s8->to_read + 4) = 0xffffffff;
    puVar11 = PTR_xmalloc_0012a230;
    *(type_10 *)&unaff_s8->to_read = 0xffffffff;
    var_21 = (type_3 *)(*(type_8 *)puVar11)(0x4000);
    var_5 = xstate->src_fd;
    var_10 = unaff_s8->bytebuffer_offset;
    unaff_s8->bytebuffer = var_21;
    pcStack_44 = (type_8 *)(var_4 + 0x7cb0);
    unaff_s8->gunzip_src_fd = var_5;
    goto LAB_000a82f0;
  }
  var_5 = (*(type_8 *)PTR_full_read_0012a2bc)(xstate->src_fd,&var_6,2);
  if (var_5 == 2) {
    if (var_6 == 0x1f9d) {
      xstate->signature_skipped = '\x02';
      var_19 = var_7(xstate);
      goto LAB_000a8348;
    }
    if (var_6 == 0x1f8b) goto LAB_000a827c;
  }
  var_19 = -1;
  (*(type_8 *)PTR_bb_error_msg_0012a1c8)(var_1<var_2&var_3)9__f_l_0012a1a8 + -0x563c);
LAB_000a8348:
  do {
    if (var_8 == *(int *)puVar3) {
      return var_19;
    }
    (*(type_8 *)PTR___stack_chk_fail_0012b0c8)();
    while( true ) {
      var_10 = *(type_6 *)((int)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset) + 4);
      var_9 = *(type_6 *)(unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset);
      unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 8;
      uStack_34 = (type_9)(var_9 >> 0x10);
      uStack_32 = (type_5)var_9;
      var_14 = uStack_32;
      uStack_30 = (type_5)(var_10 >> 0x10);
      var_15 = uStack_30;
      uStack_2e = (type_9)var_10;
      var_10 = (var_9 << 8) >> 0x18;
      if (var_9 >> 0x18 != 8) break;
      if ((var_10 & 4) != 0) {
        var_5 = var_11(unaff_s8,2);
        if (var_5 == 0) break;
        uVar1 = (unaff_s8->bytebuffer + unaff_s8->bytebuffer_offset)[1];
        uVar2 = unaff_s8->bytebuffer[unaff_s8->bytebuffer_offset];
        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;
        var_13 = (type_6)var_12(uVar1,uVar2);
        var_5 = var_11(unaff_s8,var_13);
        if (var_5 == 0) break;
        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + var_13;
      }
      if ((var_10 & 0x18) != 0) {
        while (var_5 = var_11(unaff_s8,1), var_5 != 0) {
          var_13 = unaff_s8->bytebuffer_offset;
          while (unaff_s8->bytebuffer_offset = var_13 + 1, unaff_s8->bytebuffer[var_13] == '\0') {
            if ((var_10 & 0x18) != 0x18) goto LAB_000a84a4;
            var_10 = var_10 & 0xffffffe7;
            var_5 = var_11(unaff_s8,1);
            if (var_5 == 0) goto LAB_000a8324;
            var_13 = unaff_s8->bytebuffer_offset;
          }
        }
        break;
      }
LAB_000a84a4:
      xstate->mtime =
           ((var_9 << 0x18 | (type_6)(var_14 >> 8) << 0x10) >> 0x10) +
           ((var_15 & 0xff) << 8 | (type_6)(var_15 >> 8)) * 0x10000;
      if ((var_10 & 2) != 0) {
        var_5 = var_11(unaff_s8,2);
        if (var_5 == 0) break;
        unaff_s8->bytebuffer_offset = unaff_s8->bytebuffer_offset + 2;
      }
      var_16 = (*pcStack_44)(unaff_s8,xstate);
      if (var_16 < 0) {
        var_21 = unaff_s8->bytebuffer;
        var_19 = -1;
        goto LAB_000a850c;
      }
      var_5 = var_11(unaff_s8,8);
      if (var_5 == 0) break;
      state_1 = (type_7 *)&unaff_s8->bytebuffer_offset;
      var_18 = var_17((type_7 *)unaff_s8->bytebuffer,state_1);
      if (~unaff_s8->gunzip_crc != var_18) {
        puVar11 = var_1<var_2&var_3)9__f_l_0012a1a8 + -0x5874;
        goto LAB_000a8570;
      }
      var_18 = var_17((type_7 *)unaff_s8->bytebuffer,state_1);
      if ((uint32_t)unaff_s8->gunzip_bytes_out == var_18) {
        var_19 = var_19 + var_16;
      }
      else {
        var_19 = -1;
        (*(type_8 *)PTR_bb_error_msg_0012a1c8)(var_20 + -0x562c);
      }
      var_5 = var_11(unaff_s8,2);
      var_21 = unaff_s8->bytebuffer;
      if (var_5 == 0) goto LAB_000a850c;
      if ((var_21[unaff_s8->bytebuffer_offset] != '\x1f') ||
         (var_10 = unaff_s8->bytebuffer_offset + 2,
         (var_21 + unaff_s8->bytebuffer_offset)[1] != 0x8b)) goto LAB_000a850c;
      unaff_s8->bytebuffer_offset = var_10;
LAB_000a82f0:
      puVar11 = PTR_memmove_0012b174;
      unaff_s8->bytebuffer_size = unaff_s8->bytebuffer_size - var_10;
      (*(type_8 *)puVar11)(var_21,var_21 + var_10);
      unaff_s8->bytebuffer_offset = 0;
      var_5 = var_11(unaff_s8,8);
      if (var_5 == 0) break;
    }
LAB_000a8324:
    puVar11 = var_1<var_2&var_3)9__f_l_0012a1a8 + -0x5df0;
LAB_000a8570:
    var_19 = -1;
    (*(type_8 *)PTR_bb_error_msg_0012a1c8)(puVar11);
    var_21 = unaff_s8->bytebuffer;
LAB_000a850c:
    (*(type_8 *)PTR_free_0012b168)(var_21);
    (*(type_8 *)PTR_free_0012b168)(unaff_s8);
  } while( true );
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) 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)) (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: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (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))))) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (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: (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: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (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))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (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: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) right: (char_literal (escape_sequence))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_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))))))))))) (break_statement))) (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: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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))))) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (unary_expression argument: (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))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (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))))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) (return_statement (identifier))))) (return_statement (identifier)))))

longlong MASKED(char *param_1)

{
  undefined1 uVar1;
  undefined1 uVar2;
  undefined *puVar3;
  undefined *puVar4;
  ushort uVar5;
  ushort uVar6;
  int iVar7;
  int iVar8;
  undefined4 uVar9;
  uint *puVar10;
  undefined1 *puVar11;
  char *pcVar12;
  code *pcVar13;
  uint uVar14;
  uint uVar15;
  undefined *puVar16;
  int iVar17;
  uint uVar18;
  longlong lVar19;
  longlong lVar20;
  short local_36;
  undefined2 local_34;
  ushort uStack_32;
  ushort local_30;
  undefined2 uStack_2e;
  int local_2c;
  
  puVar4 = PTR___stack_chk_guard_0012b14c;
  local_2c = *(int *)PTR___stack_chk_guard_0012b14c;
  if (*param_1 == '\0') {
    iVar7 = (*(code *)PTR_FUN_0012a2bc)(*(undefined4 *)(param_1 + 8),&local_36,2);
    if (iVar7 == 2) {
      if (local_36 == 0x1f9d) {
        *param_1 = '\x02';
        lVar19 = FUN_000a8640(param_1);
        goto LAB_000a8348;
      }
      if (local_36 == 0x1f8b) goto LAB_000a827c;
    }
    lVar19 = -1;
    (*(code *)PTR_FUN_0012a1c8)(PTR_FUN_0012a1a8 + -0x563c);
  }
  else {
LAB_000a827c:
    puVar16 = PTR_FUN_0012a1a8;
    lVar19 = 0;
    iVar7 = (*(code *)PTR_FUN_0012a1d0)(0x170);
    *(undefined4 *)(iVar7 + 0x2c) = 0xffffffff;
    puVar3 = PTR_FUN_0012a230;
    *(undefined4 *)(iVar7 + 0x28) = 0xffffffff;
    iVar8 = (*(code *)puVar3)(0x4000);
    uVar9 = *(undefined4 *)(param_1 + 8);
    iVar17 = *(int *)(iVar7 + 0x30);
    *(int *)(iVar7 + 0x24) = iVar8;
    pcVar13 = (code *)(PTR_LAB_0012aa28 + 0x7cb0);
    *(undefined4 *)(iVar7 + 0xc) = uVar9;
    while( true ) {
      puVar3 = PTR_memmove_0012b174;
      *(int *)(iVar7 + 0x34) = *(int *)(iVar7 + 0x34) - iVar17;
      (*(code *)puVar3)(iVar8,iVar8 + iVar17);
      *(undefined4 *)(iVar7 + 0x30) = 0;
      iVar8 = FUN_000a6584(iVar7,8);
      if (iVar8 == 0) break;
      puVar10 = (uint *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));
      uVar14 = puVar10[1];
      uVar18 = *puVar10;
      *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 8;
      local_34 = (undefined2)(uVar18 >> 0x10);
      uStack_32 = (ushort)uVar18;
      uVar5 = uStack_32;
      local_30 = (ushort)(uVar14 >> 0x10);
      uVar6 = local_30;
      uStack_2e = (undefined2)uVar14;
      uVar14 = (uVar18 << 8) >> 0x18;
      if (uVar18 >> 0x18 != 8) break;
      if ((uVar14 & 4) != 0) {
        iVar8 = FUN_000a6584(iVar7,2);
        if (iVar8 == 0) break;
        puVar11 = (undefined1 *)(*(int *)(iVar7 + 0x24) + *(int *)(iVar7 + 0x30));
        uVar1 = puVar11[1];
        uVar2 = *puVar11;
        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;
        uVar15 = (uint)CONCAT11(uVar1,uVar2);
        iVar8 = FUN_000a6584(iVar7,uVar15);
        if (iVar8 == 0) break;
        *(uint *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + uVar15;
      }
      if ((uVar14 & 0x18) != 0) {
        while (iVar8 = FUN_000a6584(iVar7,1), iVar8 != 0) {
          iVar8 = *(int *)(iVar7 + 0x30);
          while (*(int *)(iVar7 + 0x30) = iVar8 + 1,
                *(char *)(*(int *)(iVar7 + 0x24) + iVar8) == '\0') {
            if ((uVar14 & 0x18) != 0x18) goto LAB_000a84a4;
            uVar14 = uVar14 & 0xffffffe7;
            iVar8 = FUN_000a6584(iVar7,1);
            if (iVar8 == 0) goto LAB_000a8324;
            iVar8 = *(int *)(iVar7 + 0x30);
          }
        }
        break;
      }
LAB_000a84a4:
      *(uint *)(param_1 + 0x34) =
           ((uVar18 << 0x18 | (uint)(uVar5 >> 8) << 0x10) >> 0x10) +
           ((uVar6 & 0xff) << 8 | (uint)(uVar6 >> 8)) * 0x10000;
      if ((uVar14 & 2) != 0) {
        iVar8 = FUN_000a6584(iVar7,2);
        if (iVar8 == 0) break;
        *(int *)(iVar7 + 0x30) = *(int *)(iVar7 + 0x30) + 2;
      }
      lVar20 = (*pcVar13)(iVar7,param_1);
      if (lVar20 < 0) {
        iVar8 = *(int *)(iVar7 + 0x24);
        lVar19 = -1;
        goto LAB_000a850c;
      }
      iVar8 = FUN_000a6584(iVar7,8);
      if (iVar8 == 0) break;
      uVar14 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24),iVar7 + 0x30);
      if (~*(uint *)(iVar7 + 8) != uVar14) {
        puVar16 = PTR_FUN_0012a1a8 + -0x5874;
        goto LAB_000a8570;
      }
      iVar8 = FUN_000a6660(*(undefined4 *)(iVar7 + 0x24));
      if (*(int *)(iVar7 + 4) == iVar8) {
        lVar19 = lVar20 + lVar19;
      }
      else {
        lVar19 = -1;
        (*(code *)PTR_FUN_0012a1c8)(puVar16 + -0x562c);
      }
      iVar17 = FUN_000a6584(iVar7,2);
      iVar8 = *(int *)(iVar7 + 0x24);
      if (iVar17 == 0) goto LAB_000a850c;
      pcVar12 = (char *)(iVar8 + *(int *)(iVar7 + 0x30));
      if ((*pcVar12 != '\x1f') || (iVar17 = *(int *)(iVar7 + 0x30) + 2, pcVar12[1] != -0x75))
      goto LAB_000a850c;
      *(int *)(iVar7 + 0x30) = iVar17;
    }
LAB_000a8324:
    puVar16 = PTR_FUN_0012a1a8 + -0x5df0;
LAB_000a8570:
    lVar19 = -1;
    (*(code *)PTR_FUN_0012a1c8)(puVar16);
    iVar8 = *(int *)(iVar7 + 0x24);
LAB_000a850c:
    (*(code *)PTR_free_0012b168)(iVar8);
    (*(code *)PTR_free_0012b168)(iVar7);
  }
LAB_000a8348:
  if (local_2c != *(int *)puVar4) {
    lVar19 = (*(code *)PTR___stack_chk_fail_0012b0c8)();
    return lVar19;
  }
  return lVar19;
}

