
int svpd_decode_all(int sg_fd,opts_t *op)

{
  undefined *puVar1;
  uint uVar2;
  undefined *puVar3;
  code *pcVar4;
  code *pcVar5;
  int iVar6;
  undefined *puVar7;
  int iVar8;
  uint uVar9;
  uint uVar10;
  int off;
  uint8_t *puVar11;
  undefined *puVar12;
  int iVar13;
  int local_29c;
  int rlen;
  char b [80];
  uint8_t vpd0_buff [512];
  
  puVar1 = PTR___stack_chk_guard_00039a5c;
  puVar7 = PTR_rsp_buff_00039950;
  puVar12 = PTR_LAB_00039948;
  local_29c = op->vpd_pn;
  uVar2 = *(uint *)PTR___stack_chk_guard_00039a5c;
  if (local_29c < 1) {
    local_29c = 0xff;
  }
  iVar8 = op->maxlen;
  if (sg_fd < 0) {
    if (0 < iVar8) {
      off = 0;
      iVar13 = 0;
      puVar3 = PTR_LAB_00039948 + 0x3f48;
      pcVar4 = (code *)(PTR_00039944 + 0x6d44);
      pcVar5 = (code *)(PTR_00039944 + 0x6afc);
      uVar9 = 0xffffffff;
      do {
        iVar6 = *(int *)puVar7 + off;
        uVar10 = (uint)*(byte *)(iVar6 + 1);
        rlen = CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_));
        iVar6 = ((uint)rlen >> 0x10) + 4;
        if (iVar8 < iVar6 + off) {
          (*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);
          iVar6 = iVar8 - off;
        }
        if ((int)uVar10 <= (int)uVar9) {
          (*(code *)PTR_pr2serr_00039a44)
                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);
          break;
        }
        op->vpd_pn = uVar10;
        if (local_29c < (int)uVar10) {
          if (2 < op->verbose) {
            (*(code *)PTR_pr2serr_00039a44)
                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);
          }
        }
        else {
          if (op->do_long != false) {
            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);
          }
          iVar13 = (*pcVar4)(0xffffffff,op,0,off);
          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {
            iVar13 = (*pcVar5)(0xffffffff,op,0,off);
          }
        }
        off = off + iVar6;
        uVar9 = uVar10;
      } while (off < iVar8);
      goto LAB_0001c2f8;
    }
  }
  else {
    iVar13 = vpd_fetch_page(sg_fd,vpd0_buff,0,iVar8,op->do_quiet,op->verbose,&rlen);
    if (iVar13 != 0) {
      if (op->do_quiet == false) {
        if (iVar13 == 0xb) {
          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);
        }
        else {
          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);
          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);
        }
      }
      goto LAB_0001c2f8;
    }
    uVar9 = (uint)(ushort)vpd0_buff._2_2_;
    if (rlen + -3 <= (int)uVar9) {
      if (op->verbose == 0) {
        uVar9 = rlen - 4;
      }
      else {
        (*(code *)PTR_pr2serr_00039a44)
                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);
        uVar9 = rlen - 4;
      }
    }
    puVar12 = PTR_LAB_00039948;
    if (0 < (int)uVar9) {
      puVar7 = PTR_LAB_00039948 + 0x3efc;
      pcVar4 = (code *)(PTR_00039944 + 0x6afc);
      puVar11 = vpd0_buff;
      do {
        uVar10 = (uint)puVar11[4];
        if ((int)uVar10 <= local_29c) {
          op->vpd_pn = uVar10;
          if (vpd0_buff != puVar11) {
            (*(code *)PTR_putchar_000399f0)(10);
          }
          if (op->do_long != false) {
            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);
          }
          iVar8 = svpd_decode_t10(sg_fd,op,0,0);
          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {
            iVar8 = (*pcVar4)(sg_fd,op,0,0);
          }
          if (op->do_quiet == false) {
            if (iVar8 == 0xb) {
              (*(code *)PTR_pr2serr_00039a44)(puVar7);
              iVar13 = 0xb;
            }
            else if (iVar8 != 0) {
              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);
              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);
              iVar13 = iVar8;
            }
          }
          else if (iVar8 != 0) {
            iVar13 = iVar8;
          }
        }
        puVar11 = puVar11 + 1;
      } while (vpd0_buff + uVar9 != puVar11);
      goto LAB_0001c2f8;
    }
  }
  iVar13 = 0;
LAB_0001c2f8:
  if (uVar2 != *(uint *)puVar1) {
    puVar12 = PTR___stack_chk_fail_00039a48;
    (*(code *)PTR___stack_chk_fail_00039a48)();
    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);
                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar8 = (*(code *)(puVar12 +
                      (int)("third party persistent reservation source I_T nexus" +
                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +
                           0x10)))(1);
    return iVar8;
  }
  return iVar13;
}



int FUN_0001c154(int param_1,int param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  code *pcVar3;
  code *pcVar4;
  int iVar5;
  undefined *puVar6;
  int iVar7;
  uint uVar8;
  uint uVar9;
  int iVar10;
  undefined1 *puVar11;
  undefined *puVar12;
  int iVar13;
  int local_29c;
  undefined4 local_280;
  undefined1 auStack_27c [80];
  undefined1 auStack_22c [2];
  ushort local_22a;
  byte local_228 [508];
  uint local_2c;
  
  puVar1 = PTR___stack_chk_guard_00039a5c;
  puVar6 = PTR_rsp_buff_00039950;
  puVar12 = PTR_LAB_00039948;
  local_29c = *(int *)(param_2 + 0xc);
  local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;
  if (local_29c < 1) {
    local_29c = 0xff;
  }
  iVar7 = *(int *)(param_2 + 0x14);
  if (param_1 < 0) {
    if (0 < iVar7) {
      iVar10 = 0;
      iVar13 = 0;
      puVar2 = PTR_LAB_00039948 + 0x3f48;
      pcVar3 = (code *)(PTR_00039944 + 0x6d44);
      pcVar4 = (code *)(PTR_00039944 + 0x6afc);
      uVar8 = 0xffffffff;
      do {
        iVar5 = *(int *)puVar6 + iVar10;
        uVar9 = (uint)*(byte *)(iVar5 + 1);
        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),
                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));
        iVar5 = (local_280 >> 0x10) + 4;
        if (iVar7 < iVar5 + iVar10) {
          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);
          iVar5 = iVar7 - iVar10;
        }
        if ((int)uVar9 <= (int)uVar8) {
          (*(code *)PTR_pr2serr_00039a44)
                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);
          break;
        }
        *(uint *)(param_2 + 0xc) = uVar9;
        if (local_29c < (int)uVar9) {
          if (2 < *(int *)(param_2 + 0x20)) {
            (*(code *)PTR_pr2serr_00039a44)
                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);
          }
        }
        else {
          if (*(char *)(param_2 + 3) != '\0') {
            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);
          }
          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);
          if ((iVar13 == 99) &&
             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {
            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);
          }
        }
        iVar10 = iVar10 + iVar5;
        uVar8 = uVar9;
      } while (iVar10 < iVar7);
      goto LAB_0001c2f8;
    }
  }
  else {
    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),
                            *(undefined4 *)(param_2 + 0x20),&local_280);
    if (iVar13 != 0) {
      if (*(char *)(param_2 + 4) == '\0') {
        if (iVar13 == 0xb) {
          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);
        }
        else {
          (*(code *)PTR_sg_get_category_sense_str_000399bc)
                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));
          (*(code *)PTR_pr2serr_00039a44)
                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);
        }
      }
      goto LAB_0001c2f8;
    }
    uVar8 = (uint)local_22a;
    if ((int)(local_280 - 3) <= (int)uVar8) {
      if (*(int *)(param_2 + 0x20) == 0) {
        uVar8 = local_280 - 4;
      }
      else {
        (*(code *)PTR_pr2serr_00039a44)
                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);
        uVar8 = local_280 - 4;
      }
    }
    puVar12 = PTR_LAB_00039948;
    if (0 < (int)uVar8) {
      puVar6 = PTR_LAB_00039948 + 0x3efc;
      pcVar3 = (code *)(PTR_00039944 + 0x6afc);
      puVar11 = auStack_22c;
      do {
        uVar9 = (uint)(byte)puVar11[4];
        if ((int)uVar9 <= local_29c) {
          *(uint *)(param_2 + 0xc) = uVar9;
          if (auStack_22c != puVar11) {
            (*(code *)PTR_putchar_000399f0)(10);
          }
          if (*(char *)(param_2 + 3) != '\0') {
            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);
          }
          iVar7 = FUN_00016d44(param_1,param_2,0,0);
          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {
            iVar7 = (*pcVar3)(param_1,param_2,0,0);
          }
          if (*(char *)(param_2 + 4) == '\0') {
            if (iVar7 == 0xb) {
              (*(code *)PTR_pr2serr_00039a44)(puVar6);
              iVar13 = 0xb;
            }
            else if (iVar7 != 0) {
              (*(code *)PTR_sg_get_category_sense_str_000399bc)
                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));
              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);
              iVar13 = iVar7;
            }
          }
          else if (iVar7 != 0) {
            iVar13 = iVar7;
          }
        }
        puVar11 = puVar11 + 1;
      } while (auStack_22c + uVar8 != puVar11);
      goto LAB_0001c2f8;
    }
  }
  iVar13 = 0;
LAB_0001c2f8:
  if (local_2c != *(uint *)puVar1) {
    uVar8 = local_2c;
    puVar12 = PTR___stack_chk_fail_00039a48;
    (*(code *)PTR___stack_chk_fail_00039a48)();
    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);
                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar7 = (*(code *)(puVar12 +
                      (int)("third party persistent reservation source I_T nexus" +
                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +
                           0x10)))(1);
    return iVar7;
  }
  return iVar13;
}


lui gp,0x2
addiu gp,gp,0x57bc
addu gp,gp,t9
lw v0,-0x7eb4(gp)
addiu sp,sp,-0x2c8
lw v1,0xc(a1)
sw v0,0x3c(sp)
sw gp,0x20(sp)
sw s5,0x2b4(sp)
or s5,a1,zero
sw s1,0x2a4(sp)
or s1,a0,zero
sw ra,0x2c4(sp)
sw s8,0x2c0(sp)
sw s7,0x2bc(sp)
sw s6,0x2b8(sp)
sw s4,0x2b0(sp)
sw s3,0x2ac(sp)
sw s2,0x2a8(sp)
sw s0,0x2a0(sp)
sw v1,0x2c(sp)
lw v0,0x0(v0)
sw v0,0x29c(sp)
bgtz v1,0x0001c1bc
_li v0,0xff
sw v0,0x2c(sp)
bgez s1,0x0001c3cc
_lw s0,0x14(s5)
blez s0,0x0001c610
_lw v0,-0x7fc8(gp)
li s7,-0x1
lw s4,-0x7fcc(gp)
or s6,zero,zero
or s8,zero,zero
lw s3,-0x7fc0(gp)
sw v0,0x34(sp)
addiu s1,sp,0x48
lw v0,-0x7fc8(gp)
addiu v0,v0,0x3f48
sw v0,0x38(sp)
lw v0,-0x7fc8(gp)
sw v0,0x40(sp)
addiu v0,s4,0x6d44
sw v0,0x30(sp)
lw v0,-0x7fcc(gp)
addiu v0,v0,0x6afc
b 0x0001c270
_sw v0,0x44(sp)
beq v0,zero,0x0001c2d4
_lw a1,-0x7fc8(gp)
lw v0,0x2c(sp)
slt v0,v0,s4
bne v0,zero,0x0001c338
_sw s4,0xc(s5)
lbu v0,0x3(s5)
bne v0,zero,0x0001c36c
_lw v0,0x40(sp)
lw t9,0x30(sp)
or a2,zero,zero
li a0,-0x1
or a3,s6,zero
or a1,s5,zero
jalr t9
_li s7,0x63
lw gp,0x20(sp)
beq v0,s7,0x0001c388
_or s8,v0,zero
addu s6,s6,s2
slt v0,s6,s0
beq v0,zero,0x0001c2f4
_or s7,s4,zero
lw v0,0x0(s3)
addu v0,v0,s6
lbu a0,0x2(v0)
lbu s4,0x1(v0)
sb a0,0x0(s1)
lbu v0,0x3(v0)
sb v0,0x1(s1)
lhu t0,0x48(sp)
addiu s2,t0,0x4
addu v0,s2,s6
slt v0,s0,v0
beq v0,zero,0x0001c214
_slt v0,s7,s4
lw v0,0x34(sp)
or a3,s2,zero
lw t9,-0x7ecc(gp)
or a2,s4,zero
lw a0,0x38(sp)
subu s2,s0,s6
jalr t9
_addiu a1,v0,0x6604
slt v0,s7,s4
bne v0,zero,0x0001c21c
_lw gp,0x20(sp)
lw a1,-0x7fc8(gp)
or a3,s4,zero
lw a0,-0x7fc8(gp)
or a2,s7,zero
lw t9,-0x7ecc(gp)
addiu a1,a1,0x6604
jalr t9
_addiu a0,a0,0x3f70
lw gp,0x20(sp)
lw v1,0x3c(sp)
or v0,s8,zero
lw a0,0x29c(sp)
lw v1,0x0(v1)
bne a0,v1,0x0001c660
_lw ra,0x2c4(sp)
lw s8,0x2c0(sp)
lw s7,0x2bc(sp)
lw s6,0x2b8(sp)
lw s5,0x2b4(sp)
lw s4,0x2b0(sp)
lw s3,0x2ac(sp)
lw s2,0x2a8(sp)
lw s1,0x2a4(sp)
lw s0,0x2a0(sp)
jr ra
_addiu sp,sp,0x2c8
lw v0,0x20(s5)
slti v0,v0,0x3
bne v0,zero,0x0001c260
_lw a0,-0x7fc8(gp)
or a2,s4,zero
lw v0,0x34(sp)
lw t9,-0x7ecc(gp)
lw a3,0x2c(sp)
addiu a0,a0,0x3fa8
jalr t9
_addiu a1,v0,0x6604
b 0x0001c260
_lw gp,0x20(sp)
li a0,0x1
lw t9,-0x7f38(gp)
or a2,s4,zero
jalr t9
_addiu a1,v0,0x3ef4
b 0x0001c23c
_lw t9,0x30(sp)
lw t9,-0x7fb4(gp)
li a0,-0x1
or a2,s6,zero
bal 0x0001d1d4
_or a1,s5,zero
lw gp,0x20(sp)
bne v0,s7,0x0001c260
_or s8,v0,zero
lw t9,0x44(sp)
or a2,zero,zero
li a0,-0x1
or a3,s6,zero
jalr t9
_or a1,s5,zero
lw gp,0x20(sp)
b 0x0001c260
_or s8,v0,zero
lw v1,0x20(s5)
addiu a0,sp,0x48
lbu v0,0x4(s5)
addiu s3,sp,0x9c
lw t9,-0x7fbc(gp)
or a2,zero,zero
sw a0,0x18(sp)
or a3,s0,zero
sw v1,0x14(sp)
or a1,s3,zero
sw v0,0x10(sp)
bal 0x0001678c
_or a0,s1,zero
lw gp,0x20(sp)
bne v0,zero,0x0001c5b8
_or s8,v0,zero
lw a2,0x48(sp)
lhu s0,0x9e(sp)
addiu v0,a2,-0x3
slt v0,s0,v0
beq v0,zero,0x0001c554
_nop
blez s0,0x0001c610
_lw v0,-0x7fc8(gp)
addu s0,s3,s0
lw s4,-0x7fcc(gp)
or s7,s3,zero
sw v0,0x34(sp)
lw v0,-0x7fc8(gp)
addiu s4,s4,0x6d44
sw v0,0x30(sp)
lw v0,-0x7fc8(gp)
addiu v0,v0,0x3efc
sw v0,0x38(sp)
lw v0,-0x7fcc(gp)
addiu v0,v0,0x6afc
b 0x0001c480
_sw v0,0x40(sp)
beq s2,v0,0x0001c5a4
_lw t9,-0x7ecc(gp)
bne s2,zero,0x0001c568
_lw t9,-0x7f54(gp)
addiu s7,s7,0x1
beq s0,s7,0x0001c2f8
_lw v1,0x3c(sp)
lbu s2,0x4(s7)
lw v0,0x2c(sp)
slt v0,v0,s2
bne v0,zero,0x0001c474
_nop
beq s3,s7,0x0001c4ac
_sw s2,0xc(s5)
lw t9,-0x7f20(gp)
jalr t9
_li a0,0xa
lw gp,0x20(sp)
lbu v0,0x3(s5)
bne v0,zero,0x0001c4f4
_lw v0,0x30(sp)
or a3,zero,zero
or a2,zero,zero
or a1,s5,zero
or a0,s1,zero
or t9,s4,zero
bal 0x00016d44
_li s6,0x63
lw gp,0x20(sp)
beq v0,s6,0x0001c510
_or s2,v0,zero
lbu v0,0x4(s5)
beq v0,zero,0x0001c464
_li v0,0xb
b 0x0001c474
_movn s8,s2,s2
li a0,0x1
lw t9,-0x7f38(gp)
or a2,s2,zero
jalr t9
_addiu a1,v0,0x3ef4
b 0x0001c4bc
_or a3,zero,zero
lw t9,-0x7fb4(gp)
or a2,zero,zero
or a1,s5,zero
bal 0x0001d1d4
_or a0,s1,zero
lw gp,0x20(sp)
bne v0,s6,0x0001c4e0
_or s2,v0,zero
lw t9,0x40(sp)
or a3,zero,zero
or a2,zero,zero
or a1,s5,zero
jalr t9
_or a0,s1,zero
lw gp,0x20(sp)
b 0x0001c4e0
_or s2,v0,zero
lw v0,0x20(s5)
bne v0,zero,0x0001c618
_lw a1,-0x7fc8(gp)
b 0x0001c424
_addiu s0,a2,-0x4
addiu s8,sp,0x4c
lw a3,0x20(s5)
li a1,0x50
or a2,s8,zero
jalr t9
_or a0,s2,zero
or a1,s8,zero
lw gp,0x20(sp)
or s8,s2,zero
lw v0,0x34(sp)
lw t9,-0x7ecc(gp)
jalr t9
_addiu a0,v0,0x3f28
b 0x0001c474
_lw gp,0x20(sp)
li s8,0xb
jalr t9
_lw a0,0x38(sp)
b 0x0001c474
_lw gp,0x20(sp)
lbu v0,0x4(s5)
bne v0,zero,0x0001c2f8
_lw v1,0x3c(sp)
li v0,0xb
beq s8,v0,0x0001c640
_lw t9,-0x7f54(gp)
addiu s0,sp,0x4c
lw a3,0x20(s5)
li a1,0x50
or a2,s0,zero
jalr t9
_or a0,s8,zero
or a2,s0,zero
lw gp,0x20(sp)
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7ecc(gp)
addiu a1,a1,0x6604
jalr t9
_addiu a0,a0,0x3eb0
b 0x0001c2f4
_lw gp,0x20(sp)
b 0x0001c2f4
_or s8,zero,zero
addiu a3,s0,0x4
lw a0,-0x7fc8(gp)
lw t9,-0x7ecc(gp)
addiu a1,a1,0x6604
jalr t9
_addiu a0,a0,0x3ed4
lw a2,0x48(sp)
lw gp,0x20(sp)
b 0x0001c424
_addiu s0,a2,-0x4
lw a1,-0x7fc8(gp)
lw a0,-0x7fc8(gp)
lw t9,-0x7ecc(gp)
addiu a1,a1,0x6604
jalr t9
_addiu a0,a0,0x3e8c
b 0x0001c2f4
_lw gp,0x20(sp)
lw t9,-0x7ec8(gp)
jalr t9
_nop
nop
(translation_unit "int FUN_0001c154(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  code *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined1 *puVar11;\n  undefined *puVar12;\n  int iVar13;\n  int local_29c;\n  undefined4 local_280;\n  undefined1 auStack_27c [80];\n  undefined1 auStack_22c [2];\n  ushort local_22a;\n  byte local_228 [508];\n  uint local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00039a5c;\n  puVar6 = PTR_rsp_buff_00039950;\n  puVar12 = PTR_LAB_00039948;\n  local_29c = *(int *)(param_2 + 0xc);\n  local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;\n  if (local_29c < 1) {\n    local_29c = 0xff;\n  }\n  iVar7 = *(int *)(param_2 + 0x14);\n  if (param_1 < 0) {\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }\n  iVar13 = 0;\nLAB_0001c2f8:\n  if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }\n  return iVar13;\n}\n\n" (function_definition "int FUN_0001c154(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  code *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined1 *puVar11;\n  undefined *puVar12;\n  int iVar13;\n  int local_29c;\n  undefined4 local_280;\n  undefined1 auStack_27c [80];\n  undefined1 auStack_22c [2];\n  ushort local_22a;\n  byte local_228 [508];\n  uint local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00039a5c;\n  puVar6 = PTR_rsp_buff_00039950;\n  puVar12 = PTR_LAB_00039948;\n  local_29c = *(int *)(param_2 + 0xc);\n  local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;\n  if (local_29c < 1) {\n    local_29c = 0xff;\n  }\n  iVar7 = *(int *)(param_2 + 0x14);\n  if (param_1 < 0) {\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }\n  iVar13 = 0;\nLAB_0001c2f8:\n  if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }\n  return iVar13;\n}" primitive_type (function_declarator "FUN_0001c154(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  code *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined1 *puVar11;\n  undefined *puVar12;\n  int iVar13;\n  int local_29c;\n  undefined4 local_280;\n  undefined1 auStack_27c [80];\n  undefined1 auStack_22c [2];\n  ushort local_22a;\n  byte local_228 [508];\n  uint local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00039a5c;\n  puVar6 = PTR_rsp_buff_00039950;\n  puVar12 = PTR_LAB_00039948;\n  local_29c = *(int *)(param_2 + 0xc);\n  local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;\n  if (local_29c < 1) {\n    local_29c = 0xff;\n  }\n  iVar7 = *(int *)(param_2 + 0x14);\n  if (param_1 < 0) {\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }\n  iVar13 = 0;\nLAB_0001c2f8:\n  if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }\n  return iVar13;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined1 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int local_29c;" primitive_type identifier ;) (declaration "undefined4 local_280;" type_identifier identifier ;) (declaration "undefined1 auStack_27c [80];" type_identifier (array_declarator "auStack_27c [80]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_22c [2];" type_identifier (array_declarator "auStack_22c [2]" identifier [ number_literal ]) ;) (declaration "ushort local_22a;" type_identifier identifier ;) (declaration "byte local_228 [508];" type_identifier (array_declarator "local_228 [508]" identifier [ number_literal ]) ;) (declaration "uint local_2c;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00039a5c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00039a5c" identifier = identifier) ;) (expression_statement "puVar6 = PTR_rsp_buff_00039950;" (assignment_expression "puVar6 = PTR_rsp_buff_00039950" identifier = identifier) ;) (expression_statement "puVar12 = PTR_LAB_00039948;" (assignment_expression "puVar12 = PTR_LAB_00039948" identifier = identifier) ;) (expression_statement "local_29c = *(int *)(param_2 + 0xc);" (assignment_expression "local_29c = *(int *)(param_2 + 0xc)" identifier = (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;" (assignment_expression "local_2c = *(uint *)PTR___stack_chk_guard_00039a5c" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_00039a5c" * (cast_expression "(uint *)PTR___stack_chk_guard_00039a5c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (local_29c < 1) {\n    local_29c = 0xff;\n  }" if (parenthesized_expression "(local_29c < 1)" ( (binary_expression "local_29c < 1" identifier < number_literal) )) (compound_statement "{\n    local_29c = 0xff;\n  }" { (expression_statement "local_29c = 0xff;" (assignment_expression "local_29c = 0xff" identifier = number_literal) ;) })) (expression_statement "iVar7 = *(int *)(param_2 + 0x14);" (assignment_expression "iVar7 = *(int *)(param_2 + 0x14)" identifier = (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 < 0) {\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }" { (if_statement "if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }" { (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = PTR_LAB_00039948 + 0x3f48;" (assignment_expression "puVar2 = PTR_LAB_00039948 + 0x3f48" identifier = (binary_expression "PTR_LAB_00039948 + 0x3f48" identifier + number_literal)) ;) (expression_statement "pcVar3 = (code *)(PTR_00039944 + 0x6d44);" (assignment_expression "pcVar3 = (code *)(PTR_00039944 + 0x6d44)" identifier = (cast_expression "(code *)(PTR_00039944 + 0x6d44)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00039944 + 0x6d44)" ( (binary_expression "PTR_00039944 + 0x6d44" identifier + number_literal) )))) ;) (expression_statement "pcVar4 = (code *)(PTR_00039944 + 0x6afc);" (assignment_expression "pcVar4 = (code *)(PTR_00039944 + 0x6afc)" identifier = (cast_expression "(code *)(PTR_00039944 + 0x6afc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00039944 + 0x6afc)" ( (binary_expression "PTR_00039944 + 0x6afc" identifier + number_literal) )))) ;) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) (do_statement "do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);" do (compound_statement "{\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      }" { (expression_statement "iVar5 = *(int *)puVar6 + iVar10;" (assignment_expression "iVar5 = *(int *)puVar6 + iVar10" identifier = (binary_expression "*(int *)puVar6 + iVar10" (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier)) ;) (expression_statement "uVar9 = (uint)*(byte *)(iVar5 + 1);" (assignment_expression "uVar9 = (uint)*(byte *)(iVar5 + 1)" identifier = (binary_expression "(uint)*(byte *)(iVar5 + 1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(iVar5 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) ))))) ;) (expression_statement "local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));" (assignment_expression "local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_))" identifier = (call_expression "CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_))" identifier (argument_list "(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_))" ( (pointer_expression "*(undefined1 *)(iVar5 + 2)" * (cast_expression "(undefined1 *)(iVar5 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 2)" ( (binary_expression "iVar5 + 2" identifier + number_literal) )))) , (call_expression "CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_)" identifier (argument_list "(*(undefined1 *)(iVar5 + 3),local_280._2_2_)" ( (pointer_expression "*(undefined1 *)(iVar5 + 3)" * (cast_expression "(undefined1 *)(iVar5 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 3)" ( (binary_expression "iVar5 + 3" identifier + number_literal) )))) , (field_expression "local_280._2_2_" identifier . field_identifier) ))) )))) ;) (expression_statement "iVar5 = (local_280 >> 0x10) + 4;" (assignment_expression "iVar5 = (local_280 >> 0x10) + 4" identifier = (binary_expression "(local_280 >> 0x10) + 4" (parenthesized_expression "(local_280 >> 0x10)" ( (binary_expression "local_280 >> 0x10" identifier >> number_literal) )) + number_literal)) ;) (if_statement "if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }" if (parenthesized_expression "(iVar7 < iVar5 + iVar10)" ( (binary_expression "iVar7 < iVar5 + iVar10" identifier < (binary_expression "iVar5 + iVar10" identifier + identifier)) )) (compound_statement "{\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,puVar12 + 0x6604,uVar9,iVar5)" ( identifier , (binary_expression "puVar12 + 0x6604" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "iVar5 = iVar7 - iVar10;" (assignment_expression "iVar5 = iVar7 - iVar10" identifier = (binary_expression "iVar7 - iVar10" identifier - identifier)) ;) })) (if_statement "if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }" if (parenthesized_expression "((int)uVar9 <= (int)uVar8)" ( (binary_expression "(int)uVar9 <= (int)uVar8" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9)" ( (binary_expression "PTR_LAB_00039948 + 0x3f70" identifier + number_literal) , (binary_expression "PTR_LAB_00039948 + 0x6604" identifier + number_literal) , identifier , identifier ))) ;) (break_statement "break;" break ;) })) (expression_statement "*(uint *)(param_2 + 0xc) = uVar9;" (assignment_expression "*(uint *)(param_2 + 0xc) = uVar9" (pointer_expression "*(uint *)(param_2 + 0xc)" * (cast_expression "(uint *)(param_2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }" if (parenthesized_expression "(local_29c < (int)uVar9)" ( (binary_expression "local_29c < (int)uVar9" identifier < (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }" { (if_statement "if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }" if (parenthesized_expression "(2 < *(int *)(param_2 + 0x20))" ( (binary_expression "2 < *(int *)(param_2 + 0x20)" number_literal < (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) ))))) )) (compound_statement "{\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c)" ( (binary_expression "PTR_LAB_00039948 + 0x3fa8" identifier + number_literal) , (binary_expression "puVar12 + 0x6604" identifier + number_literal) , identifier , identifier ))) ;) })) }) (else_clause "else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }" else (compound_statement "{\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }" { (if_statement "if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }" if (parenthesized_expression "(*(char *)(param_2 + 3) != '\0')" ( (binary_expression "*(char *)(param_2 + 3) != '\0'" (pointer_expression "*(char *)(param_2 + 3)" * (cast_expression "(char *)(param_2 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 3)" ( (binary_expression "param_2 + 3" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }" { (expression_statement "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);" (call_expression "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9)" (parenthesized_expression "(*(code *)PTR___printf_chk_000399d8)" ( (pointer_expression "*(code *)PTR___printf_chk_000399d8" * (cast_expression "(code *)PTR___printf_chk_000399d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar12 + 0x3ef4,uVar9)" ( number_literal , (binary_expression "puVar12 + 0x3ef4" identifier + number_literal) , identifier ))) ;) })) (expression_statement "iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);" (assignment_expression "iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10)" identifier = (call_expression "(*pcVar3)(0xffffffff,param_2,0,iVar10)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(0xffffffff,param_2,0,iVar10)" ( number_literal , identifier , number_literal , identifier )))) ;) (if_statement "if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }" if (parenthesized_expression "((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99))" ( (binary_expression "(iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)" (parenthesized_expression "(iVar13 == 99)" ( (binary_expression "iVar13 == 99" identifier == number_literal) )) && (parenthesized_expression "(iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)" ( (comma_expression "iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99" (assignment_expression "iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10)" identifier = (call_expression "svpd_decode_vendor(0xffffffff,param_2,iVar10)" identifier (argument_list "(0xffffffff,param_2,iVar10)" ( number_literal , identifier , identifier )))) , (binary_expression "iVar13 == 99" identifier == number_literal)) ))) )) (compound_statement "{\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }" { (expression_statement "iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);" (assignment_expression "iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10)" identifier = (call_expression "(*pcVar4)(0xffffffff,param_2,0,iVar10)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(0xffffffff,param_2,0,iVar10)" ( number_literal , identifier , number_literal , identifier )))) ;) })) }))) (expression_statement "iVar10 = iVar10 + iVar5;" (assignment_expression "iVar10 = iVar10 + iVar5" identifier = (binary_expression "iVar10 + iVar5" identifier + identifier)) ;) (expression_statement "uVar8 = uVar9;" (assignment_expression "uVar8 = uVar9" identifier = identifier) ;) }) while (parenthesized_expression "(iVar10 < iVar7)" ( (binary_expression "iVar10 < iVar7" identifier < identifier) )) ;) (goto_statement "goto LAB_0001c2f8;" goto statement_identifier ;) })) }) (else_clause "else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }" else (compound_statement "{\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }" { (expression_statement "iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);" (assignment_expression "iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280)" identifier = (call_expression "vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280)" identifier (argument_list "(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280)" ( identifier , identifier , number_literal , identifier , (pointer_expression "*(undefined1 *)(param_2 + 4)" * (cast_expression "(undefined1 *)(param_2 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (pointer_expression "&local_280" & identifier) )))) ;) (if_statement "if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }" if (parenthesized_expression "(iVar13 != 0)" ( (binary_expression "iVar13 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }" { (if_statement "if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }" if (parenthesized_expression "(*(char *)(param_2 + 4) == '\0')" ( (binary_expression "*(char *)(param_2 + 4) == '\0'" (pointer_expression "*(char *)(param_2 + 4)" * (cast_expression "(char *)(param_2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }" { (if_statement "if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }" if (parenthesized_expression "(iVar13 == 0xb)" ( (binary_expression "iVar13 == 0xb" identifier == number_literal) )) (compound_statement "{\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604)" ( (binary_expression "PTR_LAB_00039948 + 0x3e8c" identifier + number_literal) , (binary_expression "PTR_LAB_00039948 + 0x6604" identifier + number_literal) ))) ;) }) (else_clause "else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }" else (compound_statement "{\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }" { (expression_statement "(*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));" (call_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20))" (parenthesized_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)" ( (pointer_expression "*(code *)PTR_sg_get_category_sense_str_000399bc" * (cast_expression "(code *)PTR_sg_get_category_sense_str_000399bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20))" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c)" ( (binary_expression "PTR_LAB_00039948 + 0x3eb0" identifier + number_literal) , (binary_expression "PTR_LAB_00039948 + 0x6604" identifier + number_literal) , identifier ))) ;) }))) })) (goto_statement "goto LAB_0001c2f8;" goto statement_identifier ;) })) (expression_statement "uVar8 = (uint)local_22a;" (assignment_expression "uVar8 = (uint)local_22a" identifier = (cast_expression "(uint)local_22a" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }" if (parenthesized_expression "((int)(local_280 - 3) <= (int)uVar8)" ( (binary_expression "(int)(local_280 - 3) <= (int)uVar8" (cast_expression "(int)(local_280 - 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_280 - 3)" ( (binary_expression "local_280 - 3" identifier - number_literal) ))) <= (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }" { (if_statement "if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }" if (parenthesized_expression "(*(int *)(param_2 + 0x20) == 0)" ( (binary_expression "*(int *)(param_2 + 0x20) == 0" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        uVar8 = local_280 - 4;\n      }" { (expression_statement "uVar8 = local_280 - 4;" (assignment_expression "uVar8 = local_280 - 4" identifier = (binary_expression "local_280 - 4" identifier - number_literal)) ;) }) (else_clause "else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }" else (compound_statement "{\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4)" ( (binary_expression "PTR_LAB_00039948 + 0x3ed4" identifier + number_literal) , (binary_expression "PTR_LAB_00039948 + 0x6604" identifier + number_literal) , identifier , (binary_expression "uVar8 + 4" identifier + number_literal) ))) ;) (expression_statement "uVar8 = local_280 - 4;" (assignment_expression "uVar8 = local_280 - 4" identifier = (binary_expression "local_280 - 4" identifier - number_literal)) ;) }))) })) (expression_statement "puVar12 = PTR_LAB_00039948;" (assignment_expression "puVar12 = PTR_LAB_00039948" identifier = identifier) ;) (if_statement "if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }" if (parenthesized_expression "(0 < (int)uVar8)" ( (binary_expression "0 < (int)uVar8" number_literal < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }" { (expression_statement "puVar6 = PTR_LAB_00039948 + 0x3efc;" (assignment_expression "puVar6 = PTR_LAB_00039948 + 0x3efc" identifier = (binary_expression "PTR_LAB_00039948 + 0x3efc" identifier + number_literal)) ;) (expression_statement "pcVar3 = (code *)(PTR_00039944 + 0x6afc);" (assignment_expression "pcVar3 = (code *)(PTR_00039944 + 0x6afc)" identifier = (cast_expression "(code *)(PTR_00039944 + 0x6afc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00039944 + 0x6afc)" ( (binary_expression "PTR_00039944 + 0x6afc" identifier + number_literal) )))) ;) (expression_statement "puVar11 = auStack_22c;" (assignment_expression "puVar11 = auStack_22c" identifier = identifier) ;) (do_statement "do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);" do (compound_statement "{\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      }" { (expression_statement "uVar9 = (uint)(byte)puVar11[4];" (assignment_expression "uVar9 = (uint)(byte)puVar11[4]" identifier = (cast_expression "(uint)(byte)puVar11[4]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar11[4]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar11[4]" identifier [ number_literal ])))) ;) (if_statement "if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }" if (parenthesized_expression "((int)uVar9 <= local_29c)" ( (binary_expression "(int)uVar9 <= local_29c" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (compound_statement "{\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }" { (expression_statement "*(uint *)(param_2 + 0xc) = uVar9;" (assignment_expression "*(uint *)(param_2 + 0xc) = uVar9" (pointer_expression "*(uint *)(param_2 + 0xc)" * (cast_expression "(uint *)(param_2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }" if (parenthesized_expression "(auStack_22c != puVar11)" ( (binary_expression "auStack_22c != puVar11" identifier != identifier) )) (compound_statement "{\n            (*(code *)PTR_putchar_000399f0)(10);\n          }" { (expression_statement "(*(code *)PTR_putchar_000399f0)(10);" (call_expression "(*(code *)PTR_putchar_000399f0)(10)" (parenthesized_expression "(*(code *)PTR_putchar_000399f0)" ( (pointer_expression "*(code *)PTR_putchar_000399f0" * (cast_expression "(code *)PTR_putchar_000399f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10)" ( number_literal ))) ;) })) (if_statement "if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }" if (parenthesized_expression "(*(char *)(param_2 + 3) != '\0')" ( (binary_expression "*(char *)(param_2 + 3) != '\0'" (pointer_expression "*(char *)(param_2 + 3)" * (cast_expression "(char *)(param_2 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 3)" ( (binary_expression "param_2 + 3" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }" { (expression_statement "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);" (call_expression "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9)" (parenthesized_expression "(*(code *)PTR___printf_chk_000399d8)" ( (pointer_expression "*(code *)PTR___printf_chk_000399d8" * (cast_expression "(code *)PTR___printf_chk_000399d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar12 + 0x3ef4,uVar9)" ( number_literal , (binary_expression "puVar12 + 0x3ef4" identifier + number_literal) , identifier ))) ;) })) (expression_statement "iVar7 = FUN_00016d44(param_1,param_2,0,0);" (assignment_expression "iVar7 = FUN_00016d44(param_1,param_2,0,0)" identifier = (call_expression "FUN_00016d44(param_1,param_2,0,0)" identifier (argument_list "(param_1,param_2,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) (if_statement "if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }" if (parenthesized_expression "((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99))" ( (binary_expression "(iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)" (parenthesized_expression "(iVar7 == 99)" ( (binary_expression "iVar7 == 99" identifier == number_literal) )) && (parenthesized_expression "(iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)" ( (comma_expression "iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99" (assignment_expression "iVar7 = svpd_decode_vendor(param_1,param_2,0)" identifier = (call_expression "svpd_decode_vendor(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar7 == 99" identifier == number_literal)) ))) )) (compound_statement "{\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }" { (expression_statement "iVar7 = (*pcVar3)(param_1,param_2,0,0);" (assignment_expression "iVar7 = (*pcVar3)(param_1,param_2,0,0)" identifier = (call_expression "(*pcVar3)(param_1,param_2,0,0)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(param_1,param_2,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) })) (if_statement "if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }" if (parenthesized_expression "(*(char *)(param_2 + 4) == '\0')" ( (binary_expression "*(char *)(param_2 + 4) == '\0'" (pointer_expression "*(char *)(param_2 + 4)" * (cast_expression "(char *)(param_2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }" { (if_statement "if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }" if (parenthesized_expression "(iVar7 == 0xb)" ( (binary_expression "iVar7 == 0xb" identifier == number_literal) )) (compound_statement "{\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)(puVar6);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(puVar6)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "iVar13 = 0xb;" (assignment_expression "iVar13 = 0xb" identifier = number_literal) ;) }) (else_clause "else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }" else (if_statement "if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }" { (expression_statement "(*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));" (call_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20))" (parenthesized_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)" ( (pointer_expression "*(code *)PTR_sg_get_category_sense_str_000399bc" * (cast_expression "(code *)PTR_sg_get_category_sense_str_000399bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20))" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar12 + 0x3f28,auStack_27c)" ( (binary_expression "puVar12 + 0x3f28" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar13 = iVar7;" (assignment_expression "iVar13 = iVar7" identifier = identifier) ;) })))) }) (else_clause "else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }" else (if_statement "if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n            iVar13 = iVar7;\n          }" { (expression_statement "iVar13 = iVar7;" (assignment_expression "iVar13 = iVar7" identifier = identifier) ;) })))) })) (expression_statement "puVar11 = puVar11 + 1;" (assignment_expression "puVar11 = puVar11 + 1" identifier = (binary_expression "puVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(auStack_22c + uVar8 != puVar11)" ( (binary_expression "auStack_22c + uVar8 != puVar11" (binary_expression "auStack_22c + uVar8" identifier + identifier) != identifier) )) ;) (goto_statement "goto LAB_0001c2f8;" goto statement_identifier ;) })) }))) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001c2f8:\n  if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }" statement_identifier : (if_statement "if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }" if (parenthesized_expression "(local_2c != *(uint *)puVar1)" ( (binary_expression "local_2c != *(uint *)puVar1" identifier != (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }" { (expression_statement "uVar8 = local_2c;" (assignment_expression "uVar8 = local_2c" identifier = identifier) ;) (expression_statement "puVar12 = PTR___stack_chk_fail_00039a48;" (assignment_expression "puVar12 = PTR___stack_chk_fail_00039a48" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00039a48)();" (call_expression "(*(code *)PTR___stack_chk_fail_00039a48)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00039a48)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00039a48" * (cast_expression "(code *)PTR___stack_chk_fail_00039a48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);" (call_expression "(**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630)" (parenthesized_expression "(**(code **)(puVar12 + 0x1d368))" ( (pointer_expression "**(code **)(puVar12 + 0x1d368)" * (pointer_expression "*(code **)(puVar12 + 0x1d368)" * (cast_expression "(code **)(puVar12 + 0x1d368)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1d368)" ( (binary_expression "puVar12 + 0x1d368" identifier + number_literal) ))))) )) (argument_list "(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630)" ( number_literal , (binary_expression "*(int *)(puVar12 + 0x1d2d8) + 0x6630" (pointer_expression "*(int *)(puVar12 + 0x1d2d8)" * (cast_expression "(int *)(puVar12 + 0x1d2d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x1d2d8)" ( (binary_expression "puVar12 + 0x1d2d8" identifier + number_literal) )))) + number_literal) ))) ;) comment comment (expression_statement "iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);" (assignment_expression "iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1)" identifier = (call_expression "(*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1)" (parenthesized_expression "(*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))" ( (pointer_expression "*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10))" * (cast_expression "(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10))" ( (binary_expression "puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)" identifier + (cast_expression "(int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)" ( (binary_expression ""third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10" (binary_expression ""third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4)" (string_literal ""third party persistent reservation source I_T nexus"" " string_content ") + (pointer_expression "*(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4)" * (cast_expression "(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4)" ( (binary_expression "*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4" (binary_expression "*(int *)(puVar12 + 0x1d300) + -0x75b0" (pointer_expression "*(int *)(puVar12 + 0x1d300)" * (cast_expression "(int *)(puVar12 + 0x1d300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x1d300)" ( (binary_expression "puVar12 + 0x1d300" identifier + number_literal) )))) + number_literal) + (binary_expression "(uVar8 & 0xf) * 4" (parenthesized_expression "(uVar8 & 0xf)" ( (binary_expression "uVar8 & 0xf" identifier & number_literal) )) * number_literal)) ))))) + number_literal) )))) )))) )) (argument_list "(1)" ( number_literal )))) ;) (return_statement "return iVar7;" return identifier ;) }))) (return_statement "return iVar13;" return identifier ;) })))
(translation_unit "int svpd_decode_all(int sg_fd,opts_t *op)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  code *pcVar4;\n  code *pcVar5;\n  int iVar6;\n  undefined *puVar7;\n  int iVar8;\n  uint uVar9;\n  uint uVar10;\n  int off;\n  uint8_t *puVar11;\n  undefined *puVar12;\n  int iVar13;\n  int local_29c;\n  int rlen;\n  char b [80];\n  uint8_t vpd0_buff [512];\n  \n  puVar1 = PTR___stack_chk_guard_00039a5c;\n  puVar7 = PTR_rsp_buff_00039950;\n  puVar12 = PTR_LAB_00039948;\n  local_29c = op->vpd_pn;\n  uVar2 = *(uint *)PTR___stack_chk_guard_00039a5c;\n  if (local_29c < 1) {\n    local_29c = 0xff;\n  }\n  iVar8 = op->maxlen;\n  if (sg_fd < 0) {\n    if (0 < iVar8) {\n      off = 0;\n      iVar13 = 0;\n      puVar3 = PTR_LAB_00039948 + 0x3f48;\n      pcVar4 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar5 = (code *)(PTR_00039944 + 0x6afc);\n      uVar9 = 0xffffffff;\n      do {\n        iVar6 = *(int *)puVar7 + off;\n        uVar10 = (uint)*(byte *)(iVar6 + 1);\n        rlen = CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_));\n        iVar6 = ((uint)rlen >> 0x10) + 4;\n        if (iVar8 < iVar6 + off) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);\n          iVar6 = iVar8 - off;\n        }\n        if ((int)uVar10 <= (int)uVar9) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);\n          break;\n        }\n        op->vpd_pn = uVar10;\n        if (local_29c < (int)uVar10) {\n          if (2 < op->verbose) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }\n        }\n        else {\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar13 = (*pcVar4)(0xffffffff,op,0,off);\n          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }\n        }\n        off = off + iVar6;\n        uVar9 = uVar10;\n      } while (off < iVar8);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(sg_fd,vpd0_buff,0,iVar8,op->do_quiet,op->verbose,&rlen);\n    if (iVar13 != 0) {\n      if (op->do_quiet == false) {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar9 = (uint)(ushort)vpd0_buff._2_2_;\n    if (rlen + -3 <= (int)uVar9) {\n      if (op->verbose == 0) {\n        uVar9 = rlen - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);\n        uVar9 = rlen - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar9) {\n      puVar7 = PTR_LAB_00039948 + 0x3efc;\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = vpd0_buff;\n      do {\n        uVar10 = (uint)puVar11[4];\n        if ((int)uVar10 <= local_29c) {\n          op->vpd_pn = uVar10;\n          if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar8 = svpd_decode_t10(sg_fd,op,0,0);\n          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }\n          if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (vpd0_buff + uVar9 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }\n  iVar13 = 0;\nLAB_0001c2f8:\n  if (uVar2 != *(uint *)puVar1) {\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar8 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar8;\n  }\n  return iVar13;\n}\n\n" (function_definition "int svpd_decode_all(int sg_fd,opts_t *op)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  code *pcVar4;\n  code *pcVar5;\n  int iVar6;\n  undefined *puVar7;\n  int iVar8;\n  uint uVar9;\n  uint uVar10;\n  int off;\n  uint8_t *puVar11;\n  undefined *puVar12;\n  int iVar13;\n  int local_29c;\n  int rlen;\n  char b [80];\n  uint8_t vpd0_buff [512];\n  \n  puVar1 = PTR___stack_chk_guard_00039a5c;\n  puVar7 = PTR_rsp_buff_00039950;\n  puVar12 = PTR_LAB_00039948;\n  local_29c = op->vpd_pn;\n  uVar2 = *(uint *)PTR___stack_chk_guard_00039a5c;\n  if (local_29c < 1) {\n    local_29c = 0xff;\n  }\n  iVar8 = op->maxlen;\n  if (sg_fd < 0) {\n    if (0 < iVar8) {\n      off = 0;\n      iVar13 = 0;\n      puVar3 = PTR_LAB_00039948 + 0x3f48;\n      pcVar4 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar5 = (code *)(PTR_00039944 + 0x6afc);\n      uVar9 = 0xffffffff;\n      do {\n        iVar6 = *(int *)puVar7 + off;\n        uVar10 = (uint)*(byte *)(iVar6 + 1);\n        rlen = CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_));\n        iVar6 = ((uint)rlen >> 0x10) + 4;\n        if (iVar8 < iVar6 + off) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);\n          iVar6 = iVar8 - off;\n        }\n        if ((int)uVar10 <= (int)uVar9) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);\n          break;\n        }\n        op->vpd_pn = uVar10;\n        if (local_29c < (int)uVar10) {\n          if (2 < op->verbose) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }\n        }\n        else {\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar13 = (*pcVar4)(0xffffffff,op,0,off);\n          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }\n        }\n        off = off + iVar6;\n        uVar9 = uVar10;\n      } while (off < iVar8);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(sg_fd,vpd0_buff,0,iVar8,op->do_quiet,op->verbose,&rlen);\n    if (iVar13 != 0) {\n      if (op->do_quiet == false) {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar9 = (uint)(ushort)vpd0_buff._2_2_;\n    if (rlen + -3 <= (int)uVar9) {\n      if (op->verbose == 0) {\n        uVar9 = rlen - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);\n        uVar9 = rlen - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar9) {\n      puVar7 = PTR_LAB_00039948 + 0x3efc;\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = vpd0_buff;\n      do {\n        uVar10 = (uint)puVar11[4];\n        if ((int)uVar10 <= local_29c) {\n          op->vpd_pn = uVar10;\n          if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar8 = svpd_decode_t10(sg_fd,op,0,0);\n          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }\n          if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (vpd0_buff + uVar9 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }\n  iVar13 = 0;\nLAB_0001c2f8:\n  if (uVar2 != *(uint *)puVar1) {\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar8 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar8;\n  }\n  return iVar13;\n}" primitive_type (function_declarator "svpd_decode_all(int sg_fd,opts_t *op)" identifier (parameter_list "(int sg_fd,opts_t *op)" ( (parameter_declaration "int sg_fd" primitive_type identifier) , (parameter_declaration "opts_t *op" type_identifier (pointer_declarator "*op" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  undefined *puVar3;\n  code *pcVar4;\n  code *pcVar5;\n  int iVar6;\n  undefined *puVar7;\n  int iVar8;\n  uint uVar9;\n  uint uVar10;\n  int off;\n  uint8_t *puVar11;\n  undefined *puVar12;\n  int iVar13;\n  int local_29c;\n  int rlen;\n  char b [80];\n  uint8_t vpd0_buff [512];\n  \n  puVar1 = PTR___stack_chk_guard_00039a5c;\n  puVar7 = PTR_rsp_buff_00039950;\n  puVar12 = PTR_LAB_00039948;\n  local_29c = op->vpd_pn;\n  uVar2 = *(uint *)PTR___stack_chk_guard_00039a5c;\n  if (local_29c < 1) {\n    local_29c = 0xff;\n  }\n  iVar8 = op->maxlen;\n  if (sg_fd < 0) {\n    if (0 < iVar8) {\n      off = 0;\n      iVar13 = 0;\n      puVar3 = PTR_LAB_00039948 + 0x3f48;\n      pcVar4 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar5 = (code *)(PTR_00039944 + 0x6afc);\n      uVar9 = 0xffffffff;\n      do {\n        iVar6 = *(int *)puVar7 + off;\n        uVar10 = (uint)*(byte *)(iVar6 + 1);\n        rlen = CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_));\n        iVar6 = ((uint)rlen >> 0x10) + 4;\n        if (iVar8 < iVar6 + off) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);\n          iVar6 = iVar8 - off;\n        }\n        if ((int)uVar10 <= (int)uVar9) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);\n          break;\n        }\n        op->vpd_pn = uVar10;\n        if (local_29c < (int)uVar10) {\n          if (2 < op->verbose) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }\n        }\n        else {\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar13 = (*pcVar4)(0xffffffff,op,0,off);\n          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }\n        }\n        off = off + iVar6;\n        uVar9 = uVar10;\n      } while (off < iVar8);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(sg_fd,vpd0_buff,0,iVar8,op->do_quiet,op->verbose,&rlen);\n    if (iVar13 != 0) {\n      if (op->do_quiet == false) {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar9 = (uint)(ushort)vpd0_buff._2_2_;\n    if (rlen + -3 <= (int)uVar9) {\n      if (op->verbose == 0) {\n        uVar9 = rlen - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);\n        uVar9 = rlen - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar9) {\n      puVar7 = PTR_LAB_00039948 + 0x3efc;\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = vpd0_buff;\n      do {\n        uVar10 = (uint)puVar11[4];\n        if ((int)uVar10 <= local_29c) {\n          op->vpd_pn = uVar10;\n          if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar8 = svpd_decode_t10(sg_fd,op,0,0);\n          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }\n          if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (vpd0_buff + uVar9 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }\n  iVar13 = 0;\nLAB_0001c2f8:\n  if (uVar2 != *(uint *)puVar1) {\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar8 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar8;\n  }\n  return iVar13;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "int off;" primitive_type identifier ;) (declaration "uint8_t *puVar11;" primitive_type (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int local_29c;" primitive_type identifier ;) (declaration "int rlen;" primitive_type identifier ;) (declaration "char b [80];" primitive_type (array_declarator "b [80]" identifier [ number_literal ]) ;) (declaration "uint8_t vpd0_buff [512];" primitive_type (array_declarator "vpd0_buff [512]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00039a5c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00039a5c" identifier = identifier) ;) (expression_statement "puVar7 = PTR_rsp_buff_00039950;" (assignment_expression "puVar7 = PTR_rsp_buff_00039950" identifier = identifier) ;) (expression_statement "puVar12 = PTR_LAB_00039948;" (assignment_expression "puVar12 = PTR_LAB_00039948" identifier = identifier) ;) (expression_statement "local_29c = op->vpd_pn;" (assignment_expression "local_29c = op->vpd_pn" identifier = (field_expression "op->vpd_pn" identifier -> field_identifier)) ;) (expression_statement "uVar2 = *(uint *)PTR___stack_chk_guard_00039a5c;" (assignment_expression "uVar2 = *(uint *)PTR___stack_chk_guard_00039a5c" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_00039a5c" * (cast_expression "(uint *)PTR___stack_chk_guard_00039a5c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (local_29c < 1) {\n    local_29c = 0xff;\n  }" if (parenthesized_expression "(local_29c < 1)" ( (binary_expression "local_29c < 1" identifier < number_literal) )) (compound_statement "{\n    local_29c = 0xff;\n  }" { (expression_statement "local_29c = 0xff;" (assignment_expression "local_29c = 0xff" identifier = number_literal) ;) })) (expression_statement "iVar8 = op->maxlen;" (assignment_expression "iVar8 = op->maxlen" identifier = (field_expression "op->maxlen" identifier -> field_identifier)) ;) (if_statement "if (sg_fd < 0) {\n    if (0 < iVar8) {\n      off = 0;\n      iVar13 = 0;\n      puVar3 = PTR_LAB_00039948 + 0x3f48;\n      pcVar4 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar5 = (code *)(PTR_00039944 + 0x6afc);\n      uVar9 = 0xffffffff;\n      do {\n        iVar6 = *(int *)puVar7 + off;\n        uVar10 = (uint)*(byte *)(iVar6 + 1);\n        rlen = CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_));\n        iVar6 = ((uint)rlen >> 0x10) + 4;\n        if (iVar8 < iVar6 + off) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);\n          iVar6 = iVar8 - off;\n        }\n        if ((int)uVar10 <= (int)uVar9) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);\n          break;\n        }\n        op->vpd_pn = uVar10;\n        if (local_29c < (int)uVar10) {\n          if (2 < op->verbose) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }\n        }\n        else {\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar13 = (*pcVar4)(0xffffffff,op,0,off);\n          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }\n        }\n        off = off + iVar6;\n        uVar9 = uVar10;\n      } while (off < iVar8);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(sg_fd,vpd0_buff,0,iVar8,op->do_quiet,op->verbose,&rlen);\n    if (iVar13 != 0) {\n      if (op->do_quiet == false) {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar9 = (uint)(ushort)vpd0_buff._2_2_;\n    if (rlen + -3 <= (int)uVar9) {\n      if (op->verbose == 0) {\n        uVar9 = rlen - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);\n        uVar9 = rlen - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar9) {\n      puVar7 = PTR_LAB_00039948 + 0x3efc;\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = vpd0_buff;\n      do {\n        uVar10 = (uint)puVar11[4];\n        if ((int)uVar10 <= local_29c) {\n          op->vpd_pn = uVar10;\n          if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar8 = svpd_decode_t10(sg_fd,op,0,0);\n          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }\n          if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (vpd0_buff + uVar9 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }" if (parenthesized_expression "(sg_fd < 0)" ( (binary_expression "sg_fd < 0" identifier < number_literal) )) (compound_statement "{\n    if (0 < iVar8) {\n      off = 0;\n      iVar13 = 0;\n      puVar3 = PTR_LAB_00039948 + 0x3f48;\n      pcVar4 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar5 = (code *)(PTR_00039944 + 0x6afc);\n      uVar9 = 0xffffffff;\n      do {\n        iVar6 = *(int *)puVar7 + off;\n        uVar10 = (uint)*(byte *)(iVar6 + 1);\n        rlen = CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_));\n        iVar6 = ((uint)rlen >> 0x10) + 4;\n        if (iVar8 < iVar6 + off) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);\n          iVar6 = iVar8 - off;\n        }\n        if ((int)uVar10 <= (int)uVar9) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);\n          break;\n        }\n        op->vpd_pn = uVar10;\n        if (local_29c < (int)uVar10) {\n          if (2 < op->verbose) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }\n        }\n        else {\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar13 = (*pcVar4)(0xffffffff,op,0,off);\n          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }\n        }\n        off = off + iVar6;\n        uVar9 = uVar10;\n      } while (off < iVar8);\n      goto LAB_0001c2f8;\n    }\n  }" { (if_statement "if (0 < iVar8) {\n      off = 0;\n      iVar13 = 0;\n      puVar3 = PTR_LAB_00039948 + 0x3f48;\n      pcVar4 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar5 = (code *)(PTR_00039944 + 0x6afc);\n      uVar9 = 0xffffffff;\n      do {\n        iVar6 = *(int *)puVar7 + off;\n        uVar10 = (uint)*(byte *)(iVar6 + 1);\n        rlen = CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_));\n        iVar6 = ((uint)rlen >> 0x10) + 4;\n        if (iVar8 < iVar6 + off) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);\n          iVar6 = iVar8 - off;\n        }\n        if ((int)uVar10 <= (int)uVar9) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);\n          break;\n        }\n        op->vpd_pn = uVar10;\n        if (local_29c < (int)uVar10) {\n          if (2 < op->verbose) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }\n        }\n        else {\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar13 = (*pcVar4)(0xffffffff,op,0,off);\n          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }\n        }\n        off = off + iVar6;\n        uVar9 = uVar10;\n      } while (off < iVar8);\n      goto LAB_0001c2f8;\n    }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n      off = 0;\n      iVar13 = 0;\n      puVar3 = PTR_LAB_00039948 + 0x3f48;\n      pcVar4 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar5 = (code *)(PTR_00039944 + 0x6afc);\n      uVar9 = 0xffffffff;\n      do {\n        iVar6 = *(int *)puVar7 + off;\n        uVar10 = (uint)*(byte *)(iVar6 + 1);\n        rlen = CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_));\n        iVar6 = ((uint)rlen >> 0x10) + 4;\n        if (iVar8 < iVar6 + off) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);\n          iVar6 = iVar8 - off;\n        }\n        if ((int)uVar10 <= (int)uVar9) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);\n          break;\n        }\n        op->vpd_pn = uVar10;\n        if (local_29c < (int)uVar10) {\n          if (2 < op->verbose) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }\n        }\n        else {\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar13 = (*pcVar4)(0xffffffff,op,0,off);\n          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }\n        }\n        off = off + iVar6;\n        uVar9 = uVar10;\n      } while (off < iVar8);\n      goto LAB_0001c2f8;\n    }" { (expression_statement "off = 0;" (assignment_expression "off = 0" identifier = number_literal) ;) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = PTR_LAB_00039948 + 0x3f48;" (assignment_expression "puVar3 = PTR_LAB_00039948 + 0x3f48" identifier = (binary_expression "PTR_LAB_00039948 + 0x3f48" identifier + number_literal)) ;) (expression_statement "pcVar4 = (code *)(PTR_00039944 + 0x6d44);" (assignment_expression "pcVar4 = (code *)(PTR_00039944 + 0x6d44)" identifier = (cast_expression "(code *)(PTR_00039944 + 0x6d44)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00039944 + 0x6d44)" ( (binary_expression "PTR_00039944 + 0x6d44" identifier + number_literal) )))) ;) (expression_statement "pcVar5 = (code *)(PTR_00039944 + 0x6afc);" (assignment_expression "pcVar5 = (code *)(PTR_00039944 + 0x6afc)" identifier = (cast_expression "(code *)(PTR_00039944 + 0x6afc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00039944 + 0x6afc)" ( (binary_expression "PTR_00039944 + 0x6afc" identifier + number_literal) )))) ;) (expression_statement "uVar9 = 0xffffffff;" (assignment_expression "uVar9 = 0xffffffff" identifier = number_literal) ;) (do_statement "do {\n        iVar6 = *(int *)puVar7 + off;\n        uVar10 = (uint)*(byte *)(iVar6 + 1);\n        rlen = CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_));\n        iVar6 = ((uint)rlen >> 0x10) + 4;\n        if (iVar8 < iVar6 + off) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);\n          iVar6 = iVar8 - off;\n        }\n        if ((int)uVar10 <= (int)uVar9) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);\n          break;\n        }\n        op->vpd_pn = uVar10;\n        if (local_29c < (int)uVar10) {\n          if (2 < op->verbose) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }\n        }\n        else {\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar13 = (*pcVar4)(0xffffffff,op,0,off);\n          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }\n        }\n        off = off + iVar6;\n        uVar9 = uVar10;\n      } while (off < iVar8);" do (compound_statement "{\n        iVar6 = *(int *)puVar7 + off;\n        uVar10 = (uint)*(byte *)(iVar6 + 1);\n        rlen = CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_));\n        iVar6 = ((uint)rlen >> 0x10) + 4;\n        if (iVar8 < iVar6 + off) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);\n          iVar6 = iVar8 - off;\n        }\n        if ((int)uVar10 <= (int)uVar9) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);\n          break;\n        }\n        op->vpd_pn = uVar10;\n        if (local_29c < (int)uVar10) {\n          if (2 < op->verbose) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }\n        }\n        else {\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar13 = (*pcVar4)(0xffffffff,op,0,off);\n          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }\n        }\n        off = off + iVar6;\n        uVar9 = uVar10;\n      }" { (expression_statement "iVar6 = *(int *)puVar7 + off;" (assignment_expression "iVar6 = *(int *)puVar7 + off" identifier = (binary_expression "*(int *)puVar7 + off" (pointer_expression "*(int *)puVar7" * (cast_expression "(int *)puVar7" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier)) ;) (expression_statement "uVar10 = (uint)*(byte *)(iVar6 + 1);" (assignment_expression "uVar10 = (uint)*(byte *)(iVar6 + 1)" identifier = (binary_expression "(uint)*(byte *)(iVar6 + 1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(iVar6 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) ))))) ;) (expression_statement "rlen = CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_));" (assignment_expression "rlen = CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_))" identifier = (call_expression "CONCAT13(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_))" identifier (argument_list "(*(undefined1 *)(iVar6 + 2),CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_))" ( (pointer_expression "*(undefined1 *)(iVar6 + 2)" * (cast_expression "(undefined1 *)(iVar6 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 2)" ( (binary_expression "iVar6 + 2" identifier + number_literal) )))) , (call_expression "CONCAT12(*(undefined1 *)(iVar6 + 3),rlen._2_2_)" identifier (argument_list "(*(undefined1 *)(iVar6 + 3),rlen._2_2_)" ( (pointer_expression "*(undefined1 *)(iVar6 + 3)" * (cast_expression "(undefined1 *)(iVar6 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 3)" ( (binary_expression "iVar6 + 3" identifier + number_literal) )))) , (field_expression "rlen._2_2_" identifier . field_identifier) ))) )))) ;) (expression_statement "iVar6 = ((uint)rlen >> 0x10) + 4;" (assignment_expression "iVar6 = ((uint)rlen >> 0x10) + 4" identifier = (binary_expression "((uint)rlen >> 0x10) + 4" (parenthesized_expression "((uint)rlen >> 0x10)" ( (binary_expression "(uint)rlen >> 0x10" (cast_expression "(uint)rlen" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )) + number_literal)) ;) (if_statement "if (iVar8 < iVar6 + off) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);\n          iVar6 = iVar8 - off;\n        }" if (parenthesized_expression "(iVar8 < iVar6 + off)" ( (binary_expression "iVar8 < iVar6 + off" identifier < (binary_expression "iVar6 + off" identifier + identifier)) )) (compound_statement "{\n          (*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);\n          iVar6 = iVar8 - off;\n        }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(puVar3,puVar12 + 0x6604,uVar10,iVar6)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3,puVar12 + 0x6604,uVar10,iVar6)" ( identifier , (binary_expression "puVar12 + 0x6604" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "iVar6 = iVar8 - off;" (assignment_expression "iVar6 = iVar8 - off" identifier = (binary_expression "iVar8 - off" identifier - identifier)) ;) })) (if_statement "if ((int)uVar10 <= (int)uVar9) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);\n          break;\n        }" if (parenthesized_expression "((int)uVar10 <= (int)uVar9)" ( (binary_expression "(int)uVar10 <= (int)uVar9" (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);\n          break;\n        }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar9,uVar10)" ( (binary_expression "PTR_LAB_00039948 + 0x3f70" identifier + number_literal) , (binary_expression "PTR_LAB_00039948 + 0x6604" identifier + number_literal) , identifier , identifier ))) ;) (break_statement "break;" break ;) })) (expression_statement "op->vpd_pn = uVar10;" (assignment_expression "op->vpd_pn = uVar10" (field_expression "op->vpd_pn" identifier -> field_identifier) = identifier) ;) (if_statement "if (local_29c < (int)uVar10) {\n          if (2 < op->verbose) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }\n        }\n        else {\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar13 = (*pcVar4)(0xffffffff,op,0,off);\n          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }\n        }" if (parenthesized_expression "(local_29c < (int)uVar10)" ( (binary_expression "local_29c < (int)uVar10" identifier < (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          if (2 < op->verbose) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }\n        }" { (if_statement "if (2 < op->verbose) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }" if (parenthesized_expression "(2 < op->verbose)" ( (binary_expression "2 < op->verbose" number_literal < (field_expression "op->verbose" identifier -> field_identifier)) )) (compound_statement "{\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);\n          }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar10,local_29c)" ( (binary_expression "PTR_LAB_00039948 + 0x3fa8" identifier + number_literal) , (binary_expression "puVar12 + 0x6604" identifier + number_literal) , identifier , identifier ))) ;) })) }) (else_clause "else {\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar13 = (*pcVar4)(0xffffffff,op,0,off);\n          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }\n        }" else (compound_statement "{\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar13 = (*pcVar4)(0xffffffff,op,0,off);\n          if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }\n        }" { (if_statement "if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }" if (parenthesized_expression "(op->do_long != false)" ( (binary_expression "op->do_long != false" (field_expression "op->do_long" identifier -> field_identifier) != false) )) (compound_statement "{\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }" { (expression_statement "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);" (call_expression "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10)" (parenthesized_expression "(*(code *)PTR___printf_chk_000399d8)" ( (pointer_expression "*(code *)PTR___printf_chk_000399d8" * (cast_expression "(code *)PTR___printf_chk_000399d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar12 + 0x3ef4,uVar10)" ( number_literal , (binary_expression "puVar12 + 0x3ef4" identifier + number_literal) , identifier ))) ;) })) (expression_statement "iVar13 = (*pcVar4)(0xffffffff,op,0,off);" (assignment_expression "iVar13 = (*pcVar4)(0xffffffff,op,0,off)" identifier = (call_expression "(*pcVar4)(0xffffffff,op,0,off)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(0xffffffff,op,0,off)" ( number_literal , identifier , number_literal , identifier )))) ;) (if_statement "if ((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)) {\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }" if (parenthesized_expression "((iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99))" ( (binary_expression "(iVar13 == 99) && (iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)" (parenthesized_expression "(iVar13 == 99)" ( (binary_expression "iVar13 == 99" identifier == number_literal) )) && (parenthesized_expression "(iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99)" ( (comma_expression "iVar13 = svpd_decode_vendor(-1,op,off), iVar13 == 99" (assignment_expression "iVar13 = svpd_decode_vendor(-1,op,off)" identifier = (call_expression "svpd_decode_vendor(-1,op,off)" identifier (argument_list "(-1,op,off)" ( number_literal , identifier , identifier )))) , (binary_expression "iVar13 == 99" identifier == number_literal)) ))) )) (compound_statement "{\n            iVar13 = (*pcVar5)(0xffffffff,op,0,off);\n          }" { (expression_statement "iVar13 = (*pcVar5)(0xffffffff,op,0,off);" (assignment_expression "iVar13 = (*pcVar5)(0xffffffff,op,0,off)" identifier = (call_expression "(*pcVar5)(0xffffffff,op,0,off)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(0xffffffff,op,0,off)" ( number_literal , identifier , number_literal , identifier )))) ;) })) }))) (expression_statement "off = off + iVar6;" (assignment_expression "off = off + iVar6" identifier = (binary_expression "off + iVar6" identifier + identifier)) ;) (expression_statement "uVar9 = uVar10;" (assignment_expression "uVar9 = uVar10" identifier = identifier) ;) }) while (parenthesized_expression "(off < iVar8)" ( (binary_expression "off < iVar8" identifier < identifier) )) ;) (goto_statement "goto LAB_0001c2f8;" goto statement_identifier ;) })) }) (else_clause "else {\n    iVar13 = vpd_fetch_page(sg_fd,vpd0_buff,0,iVar8,op->do_quiet,op->verbose,&rlen);\n    if (iVar13 != 0) {\n      if (op->do_quiet == false) {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar9 = (uint)(ushort)vpd0_buff._2_2_;\n    if (rlen + -3 <= (int)uVar9) {\n      if (op->verbose == 0) {\n        uVar9 = rlen - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);\n        uVar9 = rlen - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar9) {\n      puVar7 = PTR_LAB_00039948 + 0x3efc;\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = vpd0_buff;\n      do {\n        uVar10 = (uint)puVar11[4];\n        if ((int)uVar10 <= local_29c) {\n          op->vpd_pn = uVar10;\n          if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar8 = svpd_decode_t10(sg_fd,op,0,0);\n          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }\n          if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (vpd0_buff + uVar9 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }" else (compound_statement "{\n    iVar13 = vpd_fetch_page(sg_fd,vpd0_buff,0,iVar8,op->do_quiet,op->verbose,&rlen);\n    if (iVar13 != 0) {\n      if (op->do_quiet == false) {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar9 = (uint)(ushort)vpd0_buff._2_2_;\n    if (rlen + -3 <= (int)uVar9) {\n      if (op->verbose == 0) {\n        uVar9 = rlen - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);\n        uVar9 = rlen - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar9) {\n      puVar7 = PTR_LAB_00039948 + 0x3efc;\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = vpd0_buff;\n      do {\n        uVar10 = (uint)puVar11[4];\n        if ((int)uVar10 <= local_29c) {\n          op->vpd_pn = uVar10;\n          if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar8 = svpd_decode_t10(sg_fd,op,0,0);\n          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }\n          if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (vpd0_buff + uVar9 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }" { (expression_statement "iVar13 = vpd_fetch_page(sg_fd,vpd0_buff,0,iVar8,op->do_quiet,op->verbose,&rlen);" (assignment_expression "iVar13 = vpd_fetch_page(sg_fd,vpd0_buff,0,iVar8,op->do_quiet,op->verbose,&rlen)" identifier = (call_expression "vpd_fetch_page(sg_fd,vpd0_buff,0,iVar8,op->do_quiet,op->verbose,&rlen)" identifier (argument_list "(sg_fd,vpd0_buff,0,iVar8,op->do_quiet,op->verbose,&rlen)" ( identifier , identifier , number_literal , identifier , (field_expression "op->do_quiet" identifier -> field_identifier) , (field_expression "op->verbose" identifier -> field_identifier) , (pointer_expression "&rlen" & identifier) )))) ;) (if_statement "if (iVar13 != 0) {\n      if (op->do_quiet == false) {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }\n      }\n      goto LAB_0001c2f8;\n    }" if (parenthesized_expression "(iVar13 != 0)" ( (binary_expression "iVar13 != 0" identifier != number_literal) )) (compound_statement "{\n      if (op->do_quiet == false) {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }\n      }\n      goto LAB_0001c2f8;\n    }" { (if_statement "if (op->do_quiet == false) {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }\n      }" if (parenthesized_expression "(op->do_quiet == false)" ( (binary_expression "op->do_quiet == false" (field_expression "op->do_quiet" identifier -> field_identifier) == false) )) (compound_statement "{\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }\n      }" { (if_statement "if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }" if (parenthesized_expression "(iVar13 == 0xb)" ( (binary_expression "iVar13 == 0xb" identifier == number_literal) )) (compound_statement "{\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604)" ( (binary_expression "PTR_LAB_00039948 + 0x3e8c" identifier + number_literal) , (binary_expression "PTR_LAB_00039948 + 0x6604" identifier + number_literal) ))) ;) }) (else_clause "else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }" else (compound_statement "{\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);\n        }" { (expression_statement "(*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose);" (call_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar13,0x50,b,op->verbose)" (parenthesized_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)" ( (pointer_expression "*(code *)PTR_sg_get_category_sense_str_000399bc" * (cast_expression "(code *)PTR_sg_get_category_sense_str_000399bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar13,0x50,b,op->verbose)" ( identifier , number_literal , identifier , (field_expression "op->verbose" identifier -> field_identifier) ))) ;) (expression_statement "(*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,b)" ( (binary_expression "PTR_LAB_00039948 + 0x3eb0" identifier + number_literal) , (binary_expression "PTR_LAB_00039948 + 0x6604" identifier + number_literal) , identifier ))) ;) }))) })) (goto_statement "goto LAB_0001c2f8;" goto statement_identifier ;) })) (expression_statement "uVar9 = (uint)(ushort)vpd0_buff._2_2_;" (assignment_expression "uVar9 = (uint)(ushort)vpd0_buff._2_2_" identifier = (cast_expression "(uint)(ushort)vpd0_buff._2_2_" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(ushort)vpd0_buff._2_2_" ( (type_descriptor "ushort" type_identifier) ) (field_expression "vpd0_buff._2_2_" identifier . field_identifier)))) ;) (if_statement "if (rlen + -3 <= (int)uVar9) {\n      if (op->verbose == 0) {\n        uVar9 = rlen - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);\n        uVar9 = rlen - 4;\n      }\n    }" if (parenthesized_expression "(rlen + -3 <= (int)uVar9)" ( (binary_expression "rlen + -3 <= (int)uVar9" (binary_expression "rlen + -3" identifier + number_literal) <= (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      if (op->verbose == 0) {\n        uVar9 = rlen - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);\n        uVar9 = rlen - 4;\n      }\n    }" { (if_statement "if (op->verbose == 0) {\n        uVar9 = rlen - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);\n        uVar9 = rlen - 4;\n      }" if (parenthesized_expression "(op->verbose == 0)" ( (binary_expression "op->verbose == 0" (field_expression "op->verbose" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n        uVar9 = rlen - 4;\n      }" { (expression_statement "uVar9 = rlen - 4;" (assignment_expression "uVar9 = rlen - 4" identifier = (binary_expression "rlen - 4" identifier - number_literal)) ;) }) (else_clause "else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);\n        uVar9 = rlen - 4;\n      }" else (compound_statement "{\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);\n        uVar9 = rlen - 4;\n      }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,rlen,uVar9 + 4)" ( (binary_expression "PTR_LAB_00039948 + 0x3ed4" identifier + number_literal) , (binary_expression "PTR_LAB_00039948 + 0x6604" identifier + number_literal) , identifier , (binary_expression "uVar9 + 4" identifier + number_literal) ))) ;) (expression_statement "uVar9 = rlen - 4;" (assignment_expression "uVar9 = rlen - 4" identifier = (binary_expression "rlen - 4" identifier - number_literal)) ;) }))) })) (expression_statement "puVar12 = PTR_LAB_00039948;" (assignment_expression "puVar12 = PTR_LAB_00039948" identifier = identifier) ;) (if_statement "if (0 < (int)uVar9) {\n      puVar7 = PTR_LAB_00039948 + 0x3efc;\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = vpd0_buff;\n      do {\n        uVar10 = (uint)puVar11[4];\n        if ((int)uVar10 <= local_29c) {\n          op->vpd_pn = uVar10;\n          if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar8 = svpd_decode_t10(sg_fd,op,0,0);\n          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }\n          if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (vpd0_buff + uVar9 != puVar11);\n      goto LAB_0001c2f8;\n    }" if (parenthesized_expression "(0 < (int)uVar9)" ( (binary_expression "0 < (int)uVar9" number_literal < (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      puVar7 = PTR_LAB_00039948 + 0x3efc;\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = vpd0_buff;\n      do {\n        uVar10 = (uint)puVar11[4];\n        if ((int)uVar10 <= local_29c) {\n          op->vpd_pn = uVar10;\n          if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar8 = svpd_decode_t10(sg_fd,op,0,0);\n          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }\n          if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (vpd0_buff + uVar9 != puVar11);\n      goto LAB_0001c2f8;\n    }" { (expression_statement "puVar7 = PTR_LAB_00039948 + 0x3efc;" (assignment_expression "puVar7 = PTR_LAB_00039948 + 0x3efc" identifier = (binary_expression "PTR_LAB_00039948 + 0x3efc" identifier + number_literal)) ;) (expression_statement "pcVar4 = (code *)(PTR_00039944 + 0x6afc);" (assignment_expression "pcVar4 = (code *)(PTR_00039944 + 0x6afc)" identifier = (cast_expression "(code *)(PTR_00039944 + 0x6afc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00039944 + 0x6afc)" ( (binary_expression "PTR_00039944 + 0x6afc" identifier + number_literal) )))) ;) (expression_statement "puVar11 = vpd0_buff;" (assignment_expression "puVar11 = vpd0_buff" identifier = identifier) ;) (do_statement "do {\n        uVar10 = (uint)puVar11[4];\n        if ((int)uVar10 <= local_29c) {\n          op->vpd_pn = uVar10;\n          if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar8 = svpd_decode_t10(sg_fd,op,0,0);\n          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }\n          if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (vpd0_buff + uVar9 != puVar11);" do (compound_statement "{\n        uVar10 = (uint)puVar11[4];\n        if ((int)uVar10 <= local_29c) {\n          op->vpd_pn = uVar10;\n          if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar8 = svpd_decode_t10(sg_fd,op,0,0);\n          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }\n          if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      }" { (expression_statement "uVar10 = (uint)puVar11[4];" (assignment_expression "uVar10 = (uint)puVar11[4]" identifier = (cast_expression "(uint)puVar11[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "puVar11[4]" identifier [ number_literal ]))) ;) (if_statement "if ((int)uVar10 <= local_29c) {\n          op->vpd_pn = uVar10;\n          if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar8 = svpd_decode_t10(sg_fd,op,0,0);\n          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }\n          if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }\n        }" if (parenthesized_expression "((int)uVar10 <= local_29c)" ( (binary_expression "(int)uVar10 <= local_29c" (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (compound_statement "{\n          op->vpd_pn = uVar10;\n          if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }\n          iVar8 = svpd_decode_t10(sg_fd,op,0,0);\n          if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }\n          if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }\n        }" { (expression_statement "op->vpd_pn = uVar10;" (assignment_expression "op->vpd_pn = uVar10" (field_expression "op->vpd_pn" identifier -> field_identifier) = identifier) ;) (if_statement "if (vpd0_buff != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }" if (parenthesized_expression "(vpd0_buff != puVar11)" ( (binary_expression "vpd0_buff != puVar11" identifier != identifier) )) (compound_statement "{\n            (*(code *)PTR_putchar_000399f0)(10);\n          }" { (expression_statement "(*(code *)PTR_putchar_000399f0)(10);" (call_expression "(*(code *)PTR_putchar_000399f0)(10)" (parenthesized_expression "(*(code *)PTR_putchar_000399f0)" ( (pointer_expression "*(code *)PTR_putchar_000399f0" * (cast_expression "(code *)PTR_putchar_000399f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10)" ( number_literal ))) ;) })) (if_statement "if (op->do_long != false) {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }" if (parenthesized_expression "(op->do_long != false)" ( (binary_expression "op->do_long != false" (field_expression "op->do_long" identifier -> field_identifier) != false) )) (compound_statement "{\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);\n          }" { (expression_statement "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10);" (call_expression "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar10)" (parenthesized_expression "(*(code *)PTR___printf_chk_000399d8)" ( (pointer_expression "*(code *)PTR___printf_chk_000399d8" * (cast_expression "(code *)PTR___printf_chk_000399d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar12 + 0x3ef4,uVar10)" ( number_literal , (binary_expression "puVar12 + 0x3ef4" identifier + number_literal) , identifier ))) ;) })) (expression_statement "iVar8 = svpd_decode_t10(sg_fd,op,0,0);" (assignment_expression "iVar8 = svpd_decode_t10(sg_fd,op,0,0)" identifier = (call_expression "svpd_decode_t10(sg_fd,op,0,0)" identifier (argument_list "(sg_fd,op,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) (if_statement "if ((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)) {\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }" if (parenthesized_expression "((iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99))" ( (binary_expression "(iVar8 == 99) && (iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)" (parenthesized_expression "(iVar8 == 99)" ( (binary_expression "iVar8 == 99" identifier == number_literal) )) && (parenthesized_expression "(iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99)" ( (comma_expression "iVar8 = svpd_decode_vendor(sg_fd,op,0), iVar8 == 99" (assignment_expression "iVar8 = svpd_decode_vendor(sg_fd,op,0)" identifier = (call_expression "svpd_decode_vendor(sg_fd,op,0)" identifier (argument_list "(sg_fd,op,0)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar8 == 99" identifier == number_literal)) ))) )) (compound_statement "{\n            iVar8 = (*pcVar4)(sg_fd,op,0,0);\n          }" { (expression_statement "iVar8 = (*pcVar4)(sg_fd,op,0,0);" (assignment_expression "iVar8 = (*pcVar4)(sg_fd,op,0,0)" identifier = (call_expression "(*pcVar4)(sg_fd,op,0,0)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(sg_fd,op,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) })) (if_statement "if (op->do_quiet == false) {\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }\n          else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }" if (parenthesized_expression "(op->do_quiet == false)" ( (binary_expression "op->do_quiet == false" (field_expression "op->do_quiet" identifier -> field_identifier) == false) )) (compound_statement "{\n            if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }\n          }" { (if_statement "if (iVar8 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }\n            else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }" if (parenthesized_expression "(iVar8 == 0xb)" ( (binary_expression "iVar8 == 0xb" identifier == number_literal) )) (compound_statement "{\n              (*(code *)PTR_pr2serr_00039a44)(puVar7);\n              iVar13 = 0xb;\n            }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)(puVar7);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(puVar7)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7)" ( identifier ))) ;) (expression_statement "iVar13 = 0xb;" (assignment_expression "iVar13 = 0xb" identifier = number_literal) ;) }) (else_clause "else if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }" else (if_statement "if (iVar8 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);\n              iVar13 = iVar8;\n            }" { (expression_statement "(*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose);" (call_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)(iVar8,0x50,b,op->verbose)" (parenthesized_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)" ( (pointer_expression "*(code *)PTR_sg_get_category_sense_str_000399bc" * (cast_expression "(code *)PTR_sg_get_category_sense_str_000399bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8,0x50,b,op->verbose)" ( identifier , number_literal , identifier , (field_expression "op->verbose" identifier -> field_identifier) ))) ;) (expression_statement "(*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,b)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar12 + 0x3f28,b)" ( (binary_expression "puVar12 + 0x3f28" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar13 = iVar8;" (assignment_expression "iVar13 = iVar8" identifier = identifier) ;) })))) }) (else_clause "else if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }" else (if_statement "if (iVar8 != 0) {\n            iVar13 = iVar8;\n          }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n            iVar13 = iVar8;\n          }" { (expression_statement "iVar13 = iVar8;" (assignment_expression "iVar13 = iVar8" identifier = identifier) ;) })))) })) (expression_statement "puVar11 = puVar11 + 1;" (assignment_expression "puVar11 = puVar11 + 1" identifier = (binary_expression "puVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(vpd0_buff + uVar9 != puVar11)" ( (binary_expression "vpd0_buff + uVar9 != puVar11" (binary_expression "vpd0_buff + uVar9" identifier + identifier) != identifier) )) ;) (goto_statement "goto LAB_0001c2f8;" goto statement_identifier ;) })) }))) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001c2f8:\n  if (uVar2 != *(uint *)puVar1) {\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar8 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar8;\n  }" statement_identifier : (if_statement "if (uVar2 != *(uint *)puVar1) {\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar8 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar8;\n  }" if (parenthesized_expression "(uVar2 != *(uint *)puVar1)" ( (binary_expression "uVar2 != *(uint *)puVar1" identifier != (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    iVar8 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar8;\n  }" { (expression_statement "puVar12 = PTR___stack_chk_fail_00039a48;" (assignment_expression "puVar12 = PTR___stack_chk_fail_00039a48" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00039a48)();" (call_expression "(*(code *)PTR___stack_chk_fail_00039a48)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00039a48)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00039a48" * (cast_expression "(code *)PTR___stack_chk_fail_00039a48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);" (call_expression "(**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630)" (parenthesized_expression "(**(code **)(puVar12 + 0x1d368))" ( (pointer_expression "**(code **)(puVar12 + 0x1d368)" * (pointer_expression "*(code **)(puVar12 + 0x1d368)" * (cast_expression "(code **)(puVar12 + 0x1d368)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1d368)" ( (binary_expression "puVar12 + 0x1d368" identifier + number_literal) ))))) )) (argument_list "(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630)" ( number_literal , (binary_expression "*(int *)(puVar12 + 0x1d2d8) + 0x6630" (pointer_expression "*(int *)(puVar12 + 0x1d2d8)" * (cast_expression "(int *)(puVar12 + 0x1d2d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x1d2d8)" ( (binary_expression "puVar12 + 0x1d2d8" identifier + number_literal) )))) + number_literal) ))) ;) comment comment (expression_statement "iVar8 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)))(1);" (assignment_expression "iVar8 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)))(1)" identifier = (call_expression "(*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)))(1)" (parenthesized_expression "(*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)))" ( (pointer_expression "*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10))" * (cast_expression "(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10))" ( (binary_expression "puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)" identifier + (cast_expression "(int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10)" ( (binary_expression ""third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4) +\n                           0x10" (binary_expression ""third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4)" (string_literal ""third party persistent reservation source I_T nexus"" " string_content ") + (pointer_expression "*(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4)" * (cast_expression "(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4)" ( (binary_expression "*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar2 & 0xf) * 4" (binary_expression "*(int *)(puVar12 + 0x1d300) + -0x75b0" (pointer_expression "*(int *)(puVar12 + 0x1d300)" * (cast_expression "(int *)(puVar12 + 0x1d300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x1d300)" ( (binary_expression "puVar12 + 0x1d300" identifier + number_literal) )))) + number_literal) + (binary_expression "(uVar2 & 0xf) * 4" (parenthesized_expression "(uVar2 & 0xf)" ( (binary_expression "uVar2 & 0xf" identifier & number_literal) )) * number_literal)) ))))) + number_literal) )))) )))) )) (argument_list "(1)" ( number_literal )))) ;) (return_statement "return iVar8;" return identifier ;) }))) (return_statement "return iVar13;" return identifier ;) })))
(translation_unit "int FUN_0001c154(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  code *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined1 *puVar11;\n  undefined *puVar12;\n  int iVar13;\n  int local_29c;\n  undefined4 local_280;\n  undefined1 auStack_27c [80];\n  undefined1 auStack_22c [2];\n  ushort local_22a;\n  byte local_228 [508];\n  uint local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00039a5c;\n  puVar6 = PTR_rsp_buff_00039950;\n  puVar12 = PTR_LAB_00039948;\n  local_29c = *(int *)(param_2 + 0xc);\n  local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;\n  if (local_29c < 1) {\n    local_29c = 0xff;\n  }\n  iVar7 = *(int *)(param_2 + 0x14);\n  if (param_1 < 0) {\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }\n  iVar13 = 0;\nLAB_0001c2f8:\n  if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    \n                    \n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }\n  return iVar13;\n}\n\n" (function_definition "int FUN_0001c154(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  code *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined1 *puVar11;\n  undefined *puVar12;\n  int iVar13;\n  int local_29c;\n  undefined4 local_280;\n  undefined1 auStack_27c [80];\n  undefined1 auStack_22c [2];\n  ushort local_22a;\n  byte local_228 [508];\n  uint local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00039a5c;\n  puVar6 = PTR_rsp_buff_00039950;\n  puVar12 = PTR_LAB_00039948;\n  local_29c = *(int *)(param_2 + 0xc);\n  local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;\n  if (local_29c < 1) {\n    local_29c = 0xff;\n  }\n  iVar7 = *(int *)(param_2 + 0x14);\n  if (param_1 < 0) {\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }\n  iVar13 = 0;\nLAB_0001c2f8:\n  if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    \n                    \n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }\n  return iVar13;\n}" primitive_type (function_declarator "FUN_0001c154(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  code *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined1 *puVar11;\n  undefined *puVar12;\n  int iVar13;\n  int local_29c;\n  undefined4 local_280;\n  undefined1 auStack_27c [80];\n  undefined1 auStack_22c [2];\n  ushort local_22a;\n  byte local_228 [508];\n  uint local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00039a5c;\n  puVar6 = PTR_rsp_buff_00039950;\n  puVar12 = PTR_LAB_00039948;\n  local_29c = *(int *)(param_2 + 0xc);\n  local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;\n  if (local_29c < 1) {\n    local_29c = 0xff;\n  }\n  iVar7 = *(int *)(param_2 + 0x14);\n  if (param_1 < 0) {\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }\n  iVar13 = 0;\nLAB_0001c2f8:\n  if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    \n                    \n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }\n  return iVar13;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined1 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int local_29c;" primitive_type identifier ;) (declaration "undefined4 local_280;" type_identifier identifier ;) (declaration "undefined1 auStack_27c [80];" type_identifier (array_declarator "auStack_27c [80]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_22c [2];" type_identifier (array_declarator "auStack_22c [2]" identifier [ number_literal ]) ;) (declaration "ushort local_22a;" type_identifier identifier ;) (declaration "byte local_228 [508];" type_identifier (array_declarator "local_228 [508]" identifier [ number_literal ]) ;) (declaration "uint local_2c;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00039a5c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00039a5c" identifier = identifier) ;) (expression_statement "puVar6 = PTR_rsp_buff_00039950;" (assignment_expression "puVar6 = PTR_rsp_buff_00039950" identifier = identifier) ;) (expression_statement "puVar12 = PTR_LAB_00039948;" (assignment_expression "puVar12 = PTR_LAB_00039948" identifier = identifier) ;) (expression_statement "local_29c = *(int *)(param_2 + 0xc);" (assignment_expression "local_29c = *(int *)(param_2 + 0xc)" identifier = (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;" (assignment_expression "local_2c = *(uint *)PTR___stack_chk_guard_00039a5c" identifier = (pointer_expression "*(uint *)PTR___stack_chk_guard_00039a5c" * (cast_expression "(uint *)PTR___stack_chk_guard_00039a5c" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (local_29c < 1) {\n    local_29c = 0xff;\n  }" if (parenthesized_expression "(local_29c < 1)" ( (binary_expression "local_29c < 1" identifier < number_literal) )) (compound_statement "{\n    local_29c = 0xff;\n  }" { (expression_statement "local_29c = 0xff;" (assignment_expression "local_29c = 0xff" identifier = number_literal) ;) })) (expression_statement "iVar7 = *(int *)(param_2 + 0x14);" (assignment_expression "iVar7 = *(int *)(param_2 + 0x14)" identifier = (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 < 0) {\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }" { (if_statement "if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }" if (parenthesized_expression "(0 < iVar7)" ( (binary_expression "0 < iVar7" number_literal < identifier) )) (compound_statement "{\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }" { (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = PTR_LAB_00039948 + 0x3f48;" (assignment_expression "puVar2 = PTR_LAB_00039948 + 0x3f48" identifier = (binary_expression "PTR_LAB_00039948 + 0x3f48" identifier + number_literal)) ;) (expression_statement "pcVar3 = (code *)(PTR_00039944 + 0x6d44);" (assignment_expression "pcVar3 = (code *)(PTR_00039944 + 0x6d44)" identifier = (cast_expression "(code *)(PTR_00039944 + 0x6d44)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00039944 + 0x6d44)" ( (binary_expression "PTR_00039944 + 0x6d44" identifier + number_literal) )))) ;) (expression_statement "pcVar4 = (code *)(PTR_00039944 + 0x6afc);" (assignment_expression "pcVar4 = (code *)(PTR_00039944 + 0x6afc)" identifier = (cast_expression "(code *)(PTR_00039944 + 0x6afc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00039944 + 0x6afc)" ( (binary_expression "PTR_00039944 + 0x6afc" identifier + number_literal) )))) ;) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) (do_statement "do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);" do (compound_statement "{\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      }" { (expression_statement "iVar5 = *(int *)puVar6 + iVar10;" (assignment_expression "iVar5 = *(int *)puVar6 + iVar10" identifier = (binary_expression "*(int *)puVar6 + iVar10" (pointer_expression "*(int *)puVar6" * (cast_expression "(int *)puVar6" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + identifier)) ;) (expression_statement "uVar9 = (uint)*(byte *)(iVar5 + 1);" (assignment_expression "uVar9 = (uint)*(byte *)(iVar5 + 1)" identifier = (binary_expression "(uint)*(byte *)(iVar5 + 1)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(iVar5 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) ))))) ;) (expression_statement "local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));" (assignment_expression "local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_))" identifier = (call_expression "CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_))" identifier (argument_list "(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_))" ( (pointer_expression "*(undefined1 *)(iVar5 + 2)" * (cast_expression "(undefined1 *)(iVar5 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 2)" ( (binary_expression "iVar5 + 2" identifier + number_literal) )))) , (call_expression "CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_)" identifier (argument_list "(*(undefined1 *)(iVar5 + 3),local_280._2_2_)" ( (pointer_expression "*(undefined1 *)(iVar5 + 3)" * (cast_expression "(undefined1 *)(iVar5 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 3)" ( (binary_expression "iVar5 + 3" identifier + number_literal) )))) , (field_expression "local_280._2_2_" identifier . field_identifier) ))) )))) ;) (expression_statement "iVar5 = (local_280 >> 0x10) + 4;" (assignment_expression "iVar5 = (local_280 >> 0x10) + 4" identifier = (binary_expression "(local_280 >> 0x10) + 4" (parenthesized_expression "(local_280 >> 0x10)" ( (binary_expression "local_280 >> 0x10" identifier >> number_literal) )) + number_literal)) ;) (if_statement "if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }" if (parenthesized_expression "(iVar7 < iVar5 + iVar10)" ( (binary_expression "iVar7 < iVar5 + iVar10" identifier < (binary_expression "iVar5 + iVar10" identifier + identifier)) )) (compound_statement "{\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,puVar12 + 0x6604,uVar9,iVar5)" ( identifier , (binary_expression "puVar12 + 0x6604" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "iVar5 = iVar7 - iVar10;" (assignment_expression "iVar5 = iVar7 - iVar10" identifier = (binary_expression "iVar7 - iVar10" identifier - identifier)) ;) })) (if_statement "if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }" if (parenthesized_expression "((int)uVar9 <= (int)uVar8)" ( (binary_expression "(int)uVar9 <= (int)uVar8" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9)" ( (binary_expression "PTR_LAB_00039948 + 0x3f70" identifier + number_literal) , (binary_expression "PTR_LAB_00039948 + 0x6604" identifier + number_literal) , identifier , identifier ))) ;) (break_statement "break;" break ;) })) (expression_statement "*(uint *)(param_2 + 0xc) = uVar9;" (assignment_expression "*(uint *)(param_2 + 0xc) = uVar9" (pointer_expression "*(uint *)(param_2 + 0xc)" * (cast_expression "(uint *)(param_2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }" if (parenthesized_expression "(local_29c < (int)uVar9)" ( (binary_expression "local_29c < (int)uVar9" identifier < (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }" { (if_statement "if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }" if (parenthesized_expression "(2 < *(int *)(param_2 + 0x20))" ( (binary_expression "2 < *(int *)(param_2 + 0x20)" number_literal < (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) ))))) )) (compound_statement "{\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c)" ( (binary_expression "PTR_LAB_00039948 + 0x3fa8" identifier + number_literal) , (binary_expression "puVar12 + 0x6604" identifier + number_literal) , identifier , identifier ))) ;) })) }) (else_clause "else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }" else (compound_statement "{\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }" { (if_statement "if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }" if (parenthesized_expression "(*(char *)(param_2 + 3) != '\0')" ( (binary_expression "*(char *)(param_2 + 3) != '\0'" (pointer_expression "*(char *)(param_2 + 3)" * (cast_expression "(char *)(param_2 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 3)" ( (binary_expression "param_2 + 3" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }" { (expression_statement "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);" (call_expression "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9)" (parenthesized_expression "(*(code *)PTR___printf_chk_000399d8)" ( (pointer_expression "*(code *)PTR___printf_chk_000399d8" * (cast_expression "(code *)PTR___printf_chk_000399d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar12 + 0x3ef4,uVar9)" ( number_literal , (binary_expression "puVar12 + 0x3ef4" identifier + number_literal) , identifier ))) ;) })) (expression_statement "iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);" (assignment_expression "iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10)" identifier = (call_expression "(*pcVar3)(0xffffffff,param_2,0,iVar10)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(0xffffffff,param_2,0,iVar10)" ( number_literal , identifier , number_literal , identifier )))) ;) (if_statement "if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }" if (parenthesized_expression "((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99))" ( (binary_expression "(iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)" (parenthesized_expression "(iVar13 == 99)" ( (binary_expression "iVar13 == 99" identifier == number_literal) )) && (parenthesized_expression "(iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)" ( (comma_expression "iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99" (assignment_expression "iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10)" identifier = (call_expression "svpd_decode_vendor(0xffffffff,param_2,iVar10)" identifier (argument_list "(0xffffffff,param_2,iVar10)" ( number_literal , identifier , identifier )))) , (binary_expression "iVar13 == 99" identifier == number_literal)) ))) )) (compound_statement "{\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }" { (expression_statement "iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);" (assignment_expression "iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10)" identifier = (call_expression "(*pcVar4)(0xffffffff,param_2,0,iVar10)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(0xffffffff,param_2,0,iVar10)" ( number_literal , identifier , number_literal , identifier )))) ;) })) }))) (expression_statement "iVar10 = iVar10 + iVar5;" (assignment_expression "iVar10 = iVar10 + iVar5" identifier = (binary_expression "iVar10 + iVar5" identifier + identifier)) ;) (expression_statement "uVar8 = uVar9;" (assignment_expression "uVar8 = uVar9" identifier = identifier) ;) }) while (parenthesized_expression "(iVar10 < iVar7)" ( (binary_expression "iVar10 < iVar7" identifier < identifier) )) ;) (goto_statement "goto LAB_0001c2f8;" goto statement_identifier ;) })) }) (else_clause "else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }" else (compound_statement "{\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }" { (expression_statement "iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);" (assignment_expression "iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280)" identifier = (call_expression "vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280)" identifier (argument_list "(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280)" ( identifier , identifier , number_literal , identifier , (pointer_expression "*(undefined1 *)(param_2 + 4)" * (cast_expression "(undefined1 *)(param_2 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) , (pointer_expression "&local_280" & identifier) )))) ;) (if_statement "if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }" if (parenthesized_expression "(iVar13 != 0)" ( (binary_expression "iVar13 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }" { (if_statement "if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }" if (parenthesized_expression "(*(char *)(param_2 + 4) == '\0')" ( (binary_expression "*(char *)(param_2 + 4) == '\0'" (pointer_expression "*(char *)(param_2 + 4)" * (cast_expression "(char *)(param_2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }" { (if_statement "if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }" if (parenthesized_expression "(iVar13 == 0xb)" ( (binary_expression "iVar13 == 0xb" identifier == number_literal) )) (compound_statement "{\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604)" ( (binary_expression "PTR_LAB_00039948 + 0x3e8c" identifier + number_literal) , (binary_expression "PTR_LAB_00039948 + 0x6604" identifier + number_literal) ))) ;) }) (else_clause "else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }" else (compound_statement "{\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }" { (expression_statement "(*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));" (call_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20))" (parenthesized_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)" ( (pointer_expression "*(code *)PTR_sg_get_category_sense_str_000399bc" * (cast_expression "(code *)PTR_sg_get_category_sense_str_000399bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20))" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c)" ( (binary_expression "PTR_LAB_00039948 + 0x3eb0" identifier + number_literal) , (binary_expression "PTR_LAB_00039948 + 0x6604" identifier + number_literal) , identifier ))) ;) }))) })) (goto_statement "goto LAB_0001c2f8;" goto statement_identifier ;) })) (expression_statement "uVar8 = (uint)local_22a;" (assignment_expression "uVar8 = (uint)local_22a" identifier = (cast_expression "(uint)local_22a" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (if_statement "if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }" if (parenthesized_expression "((int)(local_280 - 3) <= (int)uVar8)" ( (binary_expression "(int)(local_280 - 3) <= (int)uVar8" (cast_expression "(int)(local_280 - 3)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(local_280 - 3)" ( (binary_expression "local_280 - 3" identifier - number_literal) ))) <= (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }" { (if_statement "if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }" if (parenthesized_expression "(*(int *)(param_2 + 0x20) == 0)" ( (binary_expression "*(int *)(param_2 + 0x20) == 0" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n        uVar8 = local_280 - 4;\n      }" { (expression_statement "uVar8 = local_280 - 4;" (assignment_expression "uVar8 = local_280 - 4" identifier = (binary_expression "local_280 - 4" identifier - number_literal)) ;) }) (else_clause "else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }" else (compound_statement "{\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4)" ( (binary_expression "PTR_LAB_00039948 + 0x3ed4" identifier + number_literal) , (binary_expression "PTR_LAB_00039948 + 0x6604" identifier + number_literal) , identifier , (binary_expression "uVar8 + 4" identifier + number_literal) ))) ;) (expression_statement "uVar8 = local_280 - 4;" (assignment_expression "uVar8 = local_280 - 4" identifier = (binary_expression "local_280 - 4" identifier - number_literal)) ;) }))) })) (expression_statement "puVar12 = PTR_LAB_00039948;" (assignment_expression "puVar12 = PTR_LAB_00039948" identifier = identifier) ;) (if_statement "if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }" if (parenthesized_expression "(0 < (int)uVar8)" ( (binary_expression "0 < (int)uVar8" number_literal < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }" { (expression_statement "puVar6 = PTR_LAB_00039948 + 0x3efc;" (assignment_expression "puVar6 = PTR_LAB_00039948 + 0x3efc" identifier = (binary_expression "PTR_LAB_00039948 + 0x3efc" identifier + number_literal)) ;) (expression_statement "pcVar3 = (code *)(PTR_00039944 + 0x6afc);" (assignment_expression "pcVar3 = (code *)(PTR_00039944 + 0x6afc)" identifier = (cast_expression "(code *)(PTR_00039944 + 0x6afc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_00039944 + 0x6afc)" ( (binary_expression "PTR_00039944 + 0x6afc" identifier + number_literal) )))) ;) (expression_statement "puVar11 = auStack_22c;" (assignment_expression "puVar11 = auStack_22c" identifier = identifier) ;) (do_statement "do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);" do (compound_statement "{\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      }" { (expression_statement "uVar9 = (uint)(byte)puVar11[4];" (assignment_expression "uVar9 = (uint)(byte)puVar11[4]" identifier = (cast_expression "(uint)(byte)puVar11[4]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar11[4]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar11[4]" identifier [ number_literal ])))) ;) (if_statement "if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }" if (parenthesized_expression "((int)uVar9 <= local_29c)" ( (binary_expression "(int)uVar9 <= local_29c" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (compound_statement "{\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }" { (expression_statement "*(uint *)(param_2 + 0xc) = uVar9;" (assignment_expression "*(uint *)(param_2 + 0xc) = uVar9" (pointer_expression "*(uint *)(param_2 + 0xc)" * (cast_expression "(uint *)(param_2 + 0xc)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (if_statement "if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }" if (parenthesized_expression "(auStack_22c != puVar11)" ( (binary_expression "auStack_22c != puVar11" identifier != identifier) )) (compound_statement "{\n            (*(code *)PTR_putchar_000399f0)(10);\n          }" { (expression_statement "(*(code *)PTR_putchar_000399f0)(10);" (call_expression "(*(code *)PTR_putchar_000399f0)(10)" (parenthesized_expression "(*(code *)PTR_putchar_000399f0)" ( (pointer_expression "*(code *)PTR_putchar_000399f0" * (cast_expression "(code *)PTR_putchar_000399f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(10)" ( number_literal ))) ;) })) (if_statement "if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }" if (parenthesized_expression "(*(char *)(param_2 + 3) != '\0')" ( (binary_expression "*(char *)(param_2 + 3) != '\0'" (pointer_expression "*(char *)(param_2 + 3)" * (cast_expression "(char *)(param_2 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 3)" ( (binary_expression "param_2 + 3" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }" { (expression_statement "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);" (call_expression "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9)" (parenthesized_expression "(*(code *)PTR___printf_chk_000399d8)" ( (pointer_expression "*(code *)PTR___printf_chk_000399d8" * (cast_expression "(code *)PTR___printf_chk_000399d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,puVar12 + 0x3ef4,uVar9)" ( number_literal , (binary_expression "puVar12 + 0x3ef4" identifier + number_literal) , identifier ))) ;) })) (expression_statement "iVar7 = FUN_00016d44(param_1,param_2,0,0);" (assignment_expression "iVar7 = FUN_00016d44(param_1,param_2,0,0)" identifier = (call_expression "FUN_00016d44(param_1,param_2,0,0)" identifier (argument_list "(param_1,param_2,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) (if_statement "if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }" if (parenthesized_expression "((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99))" ( (binary_expression "(iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)" (parenthesized_expression "(iVar7 == 99)" ( (binary_expression "iVar7 == 99" identifier == number_literal) )) && (parenthesized_expression "(iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)" ( (comma_expression "iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99" (assignment_expression "iVar7 = svpd_decode_vendor(param_1,param_2,0)" identifier = (call_expression "svpd_decode_vendor(param_1,param_2,0)" identifier (argument_list "(param_1,param_2,0)" ( identifier , identifier , number_literal )))) , (binary_expression "iVar7 == 99" identifier == number_literal)) ))) )) (compound_statement "{\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }" { (expression_statement "iVar7 = (*pcVar3)(param_1,param_2,0,0);" (assignment_expression "iVar7 = (*pcVar3)(param_1,param_2,0,0)" identifier = (call_expression "(*pcVar3)(param_1,param_2,0,0)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(param_1,param_2,0,0)" ( identifier , identifier , number_literal , number_literal )))) ;) })) (if_statement "if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }" if (parenthesized_expression "(*(char *)(param_2 + 4) == '\0')" ( (binary_expression "*(char *)(param_2 + 4) == '\0'" (pointer_expression "*(char *)(param_2 + 4)" * (cast_expression "(char *)(param_2 + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }" { (if_statement "if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }" if (parenthesized_expression "(iVar7 == 0xb)" ( (binary_expression "iVar7 == 0xb" identifier == number_literal) )) (compound_statement "{\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }" { (expression_statement "(*(code *)PTR_pr2serr_00039a44)(puVar6);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(puVar6)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6)" ( identifier ))) ;) (expression_statement "iVar13 = 0xb;" (assignment_expression "iVar13 = 0xb" identifier = number_literal) ;) }) (else_clause "else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }" else (if_statement "if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }" { (expression_statement "(*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));" (call_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20))" (parenthesized_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)" ( (pointer_expression "*(code *)PTR_sg_get_category_sense_str_000399bc" * (cast_expression "(code *)PTR_sg_get_category_sense_str_000399bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20))" ( identifier , number_literal , identifier , (pointer_expression "*(undefined4 *)(param_2 + 0x20)" * (cast_expression "(undefined4 *)(param_2 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" ( (pointer_expression "*(code *)PTR_pr2serr_00039a44" * (cast_expression "(code *)PTR_pr2serr_00039a44" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar12 + 0x3f28,auStack_27c)" ( (binary_expression "puVar12 + 0x3f28" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar13 = iVar7;" (assignment_expression "iVar13 = iVar7" identifier = identifier) ;) })))) }) (else_clause "else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }" else (if_statement "if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n            iVar13 = iVar7;\n          }" { (expression_statement "iVar13 = iVar7;" (assignment_expression "iVar13 = iVar7" identifier = identifier) ;) })))) })) (expression_statement "puVar11 = puVar11 + 1;" (assignment_expression "puVar11 = puVar11 + 1" identifier = (binary_expression "puVar11 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(auStack_22c + uVar8 != puVar11)" ( (binary_expression "auStack_22c + uVar8 != puVar11" (binary_expression "auStack_22c + uVar8" identifier + identifier) != identifier) )) ;) (goto_statement "goto LAB_0001c2f8;" goto statement_identifier ;) })) }))) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0001c2f8:\n  if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    \n                    \n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }" statement_identifier : (if_statement "if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    \n                    \n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }" if (parenthesized_expression "(local_2c != *(uint *)puVar1)" ( (binary_expression "local_2c != *(uint *)puVar1" identifier != (pointer_expression "*(uint *)puVar1" * (cast_expression "(uint *)puVar1" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    \n                    \n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }" { (expression_statement "uVar8 = local_2c;" (assignment_expression "uVar8 = local_2c" identifier = identifier) ;) (expression_statement "puVar12 = PTR___stack_chk_fail_00039a48;" (assignment_expression "puVar12 = PTR___stack_chk_fail_00039a48" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00039a48)();" (call_expression "(*(code *)PTR___stack_chk_fail_00039a48)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00039a48)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00039a48" * (cast_expression "(code *)PTR___stack_chk_fail_00039a48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);" (call_expression "(**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630)" (parenthesized_expression "(**(code **)(puVar12 + 0x1d368))" ( (pointer_expression "**(code **)(puVar12 + 0x1d368)" * (pointer_expression "*(code **)(puVar12 + 0x1d368)" * (cast_expression "(code **)(puVar12 + 0x1d368)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x1d368)" ( (binary_expression "puVar12 + 0x1d368" identifier + number_literal) ))))) )) (argument_list "(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630)" ( number_literal , (binary_expression "*(int *)(puVar12 + 0x1d2d8) + 0x6630" (pointer_expression "*(int *)(puVar12 + 0x1d2d8)" * (cast_expression "(int *)(puVar12 + 0x1d2d8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x1d2d8)" ( (binary_expression "puVar12 + 0x1d2d8" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);" (assignment_expression "iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1)" identifier = (call_expression "(*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1)" (parenthesized_expression "(*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))" ( (pointer_expression "*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10))" * (cast_expression "(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10))" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10))" ( (binary_expression "puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)" identifier + (cast_expression "(int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)" ( (binary_expression ""third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10" (binary_expression ""third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4)" (string_literal ""third party persistent reservation source I_T nexus"" " string_content ") + (pointer_expression "*(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4)" * (cast_expression "(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4)" ( (binary_expression "*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4" (binary_expression "*(int *)(puVar12 + 0x1d300) + -0x75b0" (pointer_expression "*(int *)(puVar12 + 0x1d300)" * (cast_expression "(int *)(puVar12 + 0x1d300)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + 0x1d300)" ( (binary_expression "puVar12 + 0x1d300" identifier + number_literal) )))) + number_literal) + (binary_expression "(uVar8 & 0xf) * 4" (parenthesized_expression "(uVar8 & 0xf)" ( (binary_expression "uVar8 & 0xf" identifier & number_literal) )) * number_literal)) ))))) + number_literal) )))) )))) )) (argument_list "(1)" ( number_literal )))) ;) (return_statement "return iVar7;" return identifier ;) }))) (return_statement "return iVar13;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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) )))) , (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (field_expression IDENT . field_identifier) ))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (break_statement break ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( LIT , IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( LIT , IDENT , LIT , IDENT )))) ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT , (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) )))) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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) , (binary_expression IDENT + LIT) , IDENT ))) ;) }))) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - LIT) ))) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) }))) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT )))) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , LIT , LIT )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (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 = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })))) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (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 = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( 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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression (string_literal " string_content ") + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) ))))) + LIT) )))) )))) )) (argument_list ( LIT )))) ;) (return_statement return IDENT ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001c154(int param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  code *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined1 *puVar11;\n  undefined *puVar12;\n  int iVar13;\n  int local_29c;\n  undefined4 local_280;\n  undefined1 auStack_27c [80];\n  undefined1 auStack_22c [2];\n  ushort local_22a;\n  byte local_228 [508];\n  uint local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00039a5c;\n  puVar6 = PTR_rsp_buff_00039950;\n  puVar12 = PTR_LAB_00039948;\n  local_29c = *(int *)(param_2 + 0xc);\n  local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;\n  if (local_29c < 1) {\n    local_29c = 0xff;\n  }\n  iVar7 = *(int *)(param_2 + 0x14);\n  if (param_1 < 0) {\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }\n  iVar13 = 0;\nLAB_0001c2f8:\n  if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    \n                    \n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }\n  return iVar13;\n}" (primitive_type "int") (function_declarator "FUN_0001c154(int param_1,int param_2)" (identifier "FUN_0001c154") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  code *pcVar4;\n  int iVar5;\n  undefined *puVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  undefined1 *puVar11;\n  undefined *puVar12;\n  int iVar13;\n  int local_29c;\n  undefined4 local_280;\n  undefined1 auStack_27c [80];\n  undefined1 auStack_22c [2];\n  ushort local_22a;\n  byte local_228 [508];\n  uint local_2c;\n  \n  puVar1 = PTR___stack_chk_guard_00039a5c;\n  puVar6 = PTR_rsp_buff_00039950;\n  puVar12 = PTR_LAB_00039948;\n  local_29c = *(int *)(param_2 + 0xc);\n  local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;\n  if (local_29c < 1) {\n    local_29c = 0xff;\n  }\n  iVar7 = *(int *)(param_2 + 0x14);\n  if (param_1 < 0) {\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }\n  iVar13 = 0;\nLAB_0001c2f8:\n  if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    \n                    \n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }\n  return iVar13;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "code *pcVar4;" (type_identifier "code") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "undefined1 *puVar11;" (type_identifier "undefined1") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "undefined *puVar12;" (type_identifier "undefined") (pointer_declarator "*puVar12" (* "*") (identifier "puVar12")) (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "int local_29c;" (primitive_type "int") (identifier "local_29c") (; ";")) (declaration "undefined4 local_280;" (type_identifier "undefined4") (identifier "local_280") (; ";")) (declaration "undefined1 auStack_27c [80];" (type_identifier "undefined1") (array_declarator "auStack_27c [80]" (identifier "auStack_27c") ([ "[") (number_literal "80") (] "]")) (; ";")) (declaration "undefined1 auStack_22c [2];" (type_identifier "undefined1") (array_declarator "auStack_22c [2]" (identifier "auStack_22c") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "ushort local_22a;" (type_identifier "ushort") (identifier "local_22a") (; ";")) (declaration "byte local_228 [508];" (type_identifier "byte") (array_declarator "local_228 [508]" (identifier "local_228") ([ "[") (number_literal "508") (] "]")) (; ";")) (declaration "uint local_2c;" (type_identifier "uint") (identifier "local_2c") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_00039a5c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00039a5c" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_00039a5c")) (; ";")) (expression_statement "puVar6 = PTR_rsp_buff_00039950;" (assignment_expression "puVar6 = PTR_rsp_buff_00039950" (identifier "puVar6") (= "=") (identifier "PTR_rsp_buff_00039950")) (; ";")) (expression_statement "puVar12 = PTR_LAB_00039948;" (assignment_expression "puVar12 = PTR_LAB_00039948" (identifier "puVar12") (= "=") (identifier "PTR_LAB_00039948")) (; ";")) (expression_statement "local_29c = *(int *)(param_2 + 0xc);" (assignment_expression "local_29c = *(int *)(param_2 + 0xc)" (identifier "local_29c") (= "=") (pointer_expression "*(int *)(param_2 + 0xc)" (* "*") (cast_expression "(int *)(param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;" (assignment_expression "local_2c = *(uint *)PTR___stack_chk_guard_00039a5c" (identifier "local_2c") (= "=") (pointer_expression "*(uint *)PTR___stack_chk_guard_00039a5c" (* "*") (cast_expression "(uint *)PTR___stack_chk_guard_00039a5c" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00039a5c")))) (; ";")) (if_statement "if (local_29c < 1) {\n    local_29c = 0xff;\n  }" (if "if") (parenthesized_expression "(local_29c < 1)" (( "(") (binary_expression "local_29c < 1" (identifier "local_29c") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    local_29c = 0xff;\n  }" ({ "{") (expression_statement "local_29c = 0xff;" (assignment_expression "local_29c = 0xff" (identifier "local_29c") (= "=") (number_literal "0xff")) (; ";")) (} "}"))) (expression_statement "iVar7 = *(int *)(param_2 + 0x14);" (assignment_expression "iVar7 = *(int *)(param_2 + 0x14)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_1 < 0) {\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }\n  else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 < 0)" (( "(") (binary_expression "param_1 < 0" (identifier "param_1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }\n  }" ({ "{") (if_statement "if (0 < iVar7) {\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }" (if "if") (parenthesized_expression "(0 < iVar7)" (( "(") (binary_expression "0 < iVar7" (number_literal "0") (< "<") (identifier "iVar7")) () ")")) (compound_statement "{\n      iVar10 = 0;\n      iVar13 = 0;\n      puVar2 = PTR_LAB_00039948 + 0x3f48;\n      pcVar3 = (code *)(PTR_00039944 + 0x6d44);\n      pcVar4 = (code *)(PTR_00039944 + 0x6afc);\n      uVar8 = 0xffffffff;\n      do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);\n      goto LAB_0001c2f8;\n    }" ({ "{") (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = PTR_LAB_00039948 + 0x3f48;" (assignment_expression "puVar2 = PTR_LAB_00039948 + 0x3f48" (identifier "puVar2") (= "=") (binary_expression "PTR_LAB_00039948 + 0x3f48" (identifier "PTR_LAB_00039948") (+ "+") (number_literal "0x3f48"))) (; ";")) (expression_statement "pcVar3 = (code *)(PTR_00039944 + 0x6d44);" (assignment_expression "pcVar3 = (code *)(PTR_00039944 + 0x6d44)" (identifier "pcVar3") (= "=") (cast_expression "(code *)(PTR_00039944 + 0x6d44)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_00039944 + 0x6d44)" (( "(") (binary_expression "PTR_00039944 + 0x6d44" (identifier "PTR_00039944") (+ "+") (number_literal "0x6d44")) () ")")))) (; ";")) (expression_statement "pcVar4 = (code *)(PTR_00039944 + 0x6afc);" (assignment_expression "pcVar4 = (code *)(PTR_00039944 + 0x6afc)" (identifier "pcVar4") (= "=") (cast_expression "(code *)(PTR_00039944 + 0x6afc)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_00039944 + 0x6afc)" (( "(") (binary_expression "PTR_00039944 + 0x6afc" (identifier "PTR_00039944") (+ "+") (number_literal "0x6afc")) () ")")))) (; ";")) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" (identifier "uVar8") (= "=") (number_literal "0xffffffff")) (; ";")) (do_statement "do {\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      } while (iVar10 < iVar7);" (do "do") (compound_statement "{\n        iVar5 = *(int *)puVar6 + iVar10;\n        uVar9 = (uint)*(byte *)(iVar5 + 1);\n        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));\n        iVar5 = (local_280 >> 0x10) + 4;\n        if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }\n        if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }\n        *(uint *)(param_2 + 0xc) = uVar9;\n        if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }\n        iVar10 = iVar10 + iVar5;\n        uVar8 = uVar9;\n      }" ({ "{") (expression_statement "iVar5 = *(int *)puVar6 + iVar10;" (assignment_expression "iVar5 = *(int *)puVar6 + iVar10" (identifier "iVar5") (= "=") (binary_expression "*(int *)puVar6 + iVar10" (pointer_expression "*(int *)puVar6" (* "*") (cast_expression "(int *)puVar6" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar6"))) (+ "+") (identifier "iVar10"))) (; ";")) (expression_statement "uVar9 = (uint)*(byte *)(iVar5 + 1);" (assignment_expression "uVar9 = (uint)*(byte *)(iVar5 + 1)" (identifier "uVar9") (= "=") (binary_expression "(uint)*(byte *)(iVar5 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(iVar5 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 1)" (( "(") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1")) () ")"))))) (; ";")) (expression_statement "local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));" (assignment_expression "local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_))" (identifier "local_280") (= "=") (call_expression "CONCAT13(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_))" (identifier "CONCAT13") (argument_list "(*(undefined1 *)(iVar5 + 2),\n                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_))" (( "(") (pointer_expression "*(undefined1 *)(iVar5 + 2)" (* "*") (cast_expression "(undefined1 *)(iVar5 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 2)" (( "(") (binary_expression "iVar5 + 2" (identifier "iVar5") (+ "+") (number_literal "2")) () ")")))) (, ",") (call_expression "CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_)" (identifier "CONCAT12") (argument_list "(*(undefined1 *)(iVar5 + 3),local_280._2_2_)" (( "(") (pointer_expression "*(undefined1 *)(iVar5 + 3)" (* "*") (cast_expression "(undefined1 *)(iVar5 + 3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 3)" (( "(") (binary_expression "iVar5 + 3" (identifier "iVar5") (+ "+") (number_literal "3")) () ")")))) (, ",") (field_expression "local_280._2_2_" (identifier "local_280") (. ".") (field_identifier "_2_2_")) () ")"))) () ")")))) (; ";")) (expression_statement "iVar5 = (local_280 >> 0x10) + 4;" (assignment_expression "iVar5 = (local_280 >> 0x10) + 4" (identifier "iVar5") (= "=") (binary_expression "(local_280 >> 0x10) + 4" (parenthesized_expression "(local_280 >> 0x10)" (( "(") (binary_expression "local_280 >> 0x10" (identifier "local_280") (>> ">>") (number_literal "0x10")) () ")")) (+ "+") (number_literal "4"))) (; ";")) (if_statement "if (iVar7 < iVar5 + iVar10) {\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }" (if "if") (parenthesized_expression "(iVar7 < iVar5 + iVar10)" (( "(") (binary_expression "iVar7 < iVar5 + iVar10" (identifier "iVar7") (< "<") (binary_expression "iVar5 + iVar10" (identifier "iVar5") (+ "+") (identifier "iVar10"))) () ")")) (compound_statement "{\n          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);\n          iVar5 = iVar7 - iVar10;\n        }" ({ "{") (expression_statement "(*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" (( "(") (pointer_expression "*(code *)PTR_pr2serr_00039a44" (* "*") (cast_expression "(code *)PTR_pr2serr_00039a44" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2serr_00039a44"))) () ")")) (argument_list "(puVar2,puVar12 + 0x6604,uVar9,iVar5)" (( "(") (identifier "puVar2") (, ",") (binary_expression "puVar12 + 0x6604" (identifier "puVar12") (+ "+") (number_literal "0x6604")) (, ",") (identifier "uVar9") (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "iVar5 = iVar7 - iVar10;" (assignment_expression "iVar5 = iVar7 - iVar10" (identifier "iVar5") (= "=") (binary_expression "iVar7 - iVar10" (identifier "iVar7") (- "-") (identifier "iVar10"))) (; ";")) (} "}"))) (if_statement "if ((int)uVar9 <= (int)uVar8) {\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }" (if "if") (parenthesized_expression "((int)uVar9 <= (int)uVar8)" (( "(") (binary_expression "(int)uVar9 <= (int)uVar8" (cast_expression "(int)uVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar9")) (<= "<=") (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8"))) () ")")) (compound_statement "{\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);\n          break;\n        }" ({ "{") (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" (( "(") (pointer_expression "*(code *)PTR_pr2serr_00039a44" (* "*") (cast_expression "(code *)PTR_pr2serr_00039a44" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2serr_00039a44"))) () ")")) (argument_list "(PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9)" (( "(") (binary_expression "PTR_LAB_00039948 + 0x3f70" (identifier "PTR_LAB_00039948") (+ "+") (number_literal "0x3f70")) (, ",") (binary_expression "PTR_LAB_00039948 + 0x6604" (identifier "PTR_LAB_00039948") (+ "+") (number_literal "0x6604")) (, ",") (identifier "uVar8") (, ",") (identifier "uVar9") () ")"))) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "*(uint *)(param_2 + 0xc) = uVar9;" (assignment_expression "*(uint *)(param_2 + 0xc) = uVar9" (pointer_expression "*(uint *)(param_2 + 0xc)" (* "*") (cast_expression "(uint *)(param_2 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar9")) (; ";")) (if_statement "if (local_29c < (int)uVar9) {\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }\n        else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }" (if "if") (parenthesized_expression "(local_29c < (int)uVar9)" (( "(") (binary_expression "local_29c < (int)uVar9" (identifier "local_29c") (< "<") (cast_expression "(int)uVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar9"))) () ")")) (compound_statement "{\n          if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }\n        }" ({ "{") (if_statement "if (2 < *(int *)(param_2 + 0x20)) {\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }" (if "if") (parenthesized_expression "(2 < *(int *)(param_2 + 0x20))" (( "(") (binary_expression "2 < *(int *)(param_2 + 0x20)" (number_literal "2") (< "<") (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (compound_statement "{\n            (*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);\n          }" ({ "{") (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" (( "(") (pointer_expression "*(code *)PTR_pr2serr_00039a44" (* "*") (cast_expression "(code *)PTR_pr2serr_00039a44" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2serr_00039a44"))) () ")")) (argument_list "(PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c)" (( "(") (binary_expression "PTR_LAB_00039948 + 0x3fa8" (identifier "PTR_LAB_00039948") (+ "+") (number_literal "0x3fa8")) (, ",") (binary_expression "puVar12 + 0x6604" (identifier "puVar12") (+ "+") (number_literal "0x6604")) (, ",") (identifier "uVar9") (, ",") (identifier "local_29c") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }" (else "else") (compound_statement "{\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);\n          if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }\n        }" ({ "{") (if_statement "if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }" (if "if") (parenthesized_expression "(*(char *)(param_2 + 3) != '\0')" (( "(") (binary_expression "*(char *)(param_2 + 3) != '\0'" (pointer_expression "*(char *)(param_2 + 3)" (* "*") (cast_expression "(char *)(param_2 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 3)" (( "(") (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }" ({ "{") (expression_statement "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);" (call_expression "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9)" (parenthesized_expression "(*(code *)PTR___printf_chk_000399d8)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000399d8" (* "*") (cast_expression "(code *)PTR___printf_chk_000399d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000399d8"))) () ")")) (argument_list "(1,puVar12 + 0x3ef4,uVar9)" (( "(") (number_literal "1") (, ",") (binary_expression "puVar12 + 0x3ef4" (identifier "puVar12") (+ "+") (number_literal "0x3ef4")) (, ",") (identifier "uVar9") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);" (assignment_expression "iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10)" (identifier "iVar13") (= "=") (call_expression "(*pcVar3)(0xffffffff,param_2,0,iVar10)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(0xffffffff,param_2,0,iVar10)" (( "(") (number_literal "0xffffffff") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (identifier "iVar10") () ")")))) (; ";")) (if_statement "if ((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }" (if "if") (parenthesized_expression "((iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99))" (( "(") (binary_expression "(iVar13 == 99) &&\n             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)" (parenthesized_expression "(iVar13 == 99)" (( "(") (binary_expression "iVar13 == 99" (identifier "iVar13") (== "==") (number_literal "99")) () ")")) (&& "&&") (parenthesized_expression "(iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)" (( "(") (comma_expression "iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99" (assignment_expression "iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10)" (identifier "iVar13") (= "=") (call_expression "svpd_decode_vendor(0xffffffff,param_2,iVar10)" (identifier "svpd_decode_vendor") (argument_list "(0xffffffff,param_2,iVar10)" (( "(") (number_literal "0xffffffff") (, ",") (identifier "param_2") (, ",") (identifier "iVar10") () ")")))) (, ",") (binary_expression "iVar13 == 99" (identifier "iVar13") (== "==") (number_literal "99"))) () ")"))) () ")")) (compound_statement "{\n            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);\n          }" ({ "{") (expression_statement "iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);" (assignment_expression "iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10)" (identifier "iVar13") (= "=") (call_expression "(*pcVar4)(0xffffffff,param_2,0,iVar10)" (parenthesized_expression "(*pcVar4)" (( "(") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) () ")")) (argument_list "(0xffffffff,param_2,0,iVar10)" (( "(") (number_literal "0xffffffff") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (identifier "iVar10") () ")")))) (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar10 = iVar10 + iVar5;" (assignment_expression "iVar10 = iVar10 + iVar5" (identifier "iVar10") (= "=") (binary_expression "iVar10 + iVar5" (identifier "iVar10") (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "uVar8 = uVar9;" (assignment_expression "uVar8 = uVar9" (identifier "uVar8") (= "=") (identifier "uVar9")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar10 < iVar7)" (( "(") (binary_expression "iVar10 < iVar7" (identifier "iVar10") (< "<") (identifier "iVar7")) () ")")) (; ";")) (goto_statement "goto LAB_0001c2f8;" (goto "goto") (statement_identifier "LAB_0001c2f8") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }" (else "else") (compound_statement "{\n    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);\n    if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }\n    uVar8 = (uint)local_22a;\n    if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }\n    puVar12 = PTR_LAB_00039948;\n    if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }\n  }" ({ "{") (expression_statement "iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280);" (assignment_expression "iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280)" (identifier "iVar13") (= "=") (call_expression "vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280)" (identifier "vpd_fetch_page") (argument_list "(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),\n                            *(undefined4 *)(param_2 + 0x20),&local_280)" (( "(") (identifier "param_1") (, ",") (identifier "auStack_22c") (, ",") (number_literal "0") (, ",") (identifier "iVar7") (, ",") (pointer_expression "*(undefined1 *)(param_2 + 4)" (* "*") (cast_expression "(undefined1 *)(param_2 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (pointer_expression "&local_280" (& "&") (identifier "local_280")) () ")")))) (; ";")) (if_statement "if (iVar13 != 0) {\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }" (if "if") (parenthesized_expression "(iVar13 != 0)" (( "(") (binary_expression "iVar13 != 0" (identifier "iVar13") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }\n      goto LAB_0001c2f8;\n    }" ({ "{") (if_statement "if (*(char *)(param_2 + 4) == '\0') {\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }" (if "if") (parenthesized_expression "(*(char *)(param_2 + 4) == '\0')" (( "(") (binary_expression "*(char *)(param_2 + 4) == '\0'" (pointer_expression "*(char *)(param_2 + 4)" (* "*") (cast_expression "(char *)(param_2 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }\n      }" ({ "{") (if_statement "if (iVar13 == 0xb) {\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }\n        else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }" (if "if") (parenthesized_expression "(iVar13 == 0xb)" (( "(") (binary_expression "iVar13 == 0xb" (identifier "iVar13") (== "==") (number_literal "0xb")) () ")")) (compound_statement "{\n          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);\n        }" ({ "{") (expression_statement "(*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" (( "(") (pointer_expression "*(code *)PTR_pr2serr_00039a44" (* "*") (cast_expression "(code *)PTR_pr2serr_00039a44" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2serr_00039a44"))) () ")")) (argument_list "(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604)" (( "(") (binary_expression "PTR_LAB_00039948 + 0x3e8c" (identifier "PTR_LAB_00039948") (+ "+") (number_literal "0x3e8c")) (, ",") (binary_expression "PTR_LAB_00039948 + 0x6604" (identifier "PTR_LAB_00039948") (+ "+") (number_literal "0x6604")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }" (else "else") (compound_statement "{\n          (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n          (*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);\n        }" ({ "{") (expression_statement "(*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));" (call_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)\n                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20))" (parenthesized_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)" (( "(") (pointer_expression "*(code *)PTR_sg_get_category_sense_str_000399bc" (* "*") (cast_expression "(code *)PTR_sg_get_category_sense_str_000399bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sg_get_category_sense_str_000399bc"))) () ")")) (argument_list "(iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20))" (( "(") (identifier "iVar13") (, ",") (number_literal "0x50") (, ",") (identifier "auStack_27c") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" (( "(") (pointer_expression "*(code *)PTR_pr2serr_00039a44" (* "*") (cast_expression "(code *)PTR_pr2serr_00039a44" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2serr_00039a44"))) () ")")) (argument_list "(PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c)" (( "(") (binary_expression "PTR_LAB_00039948 + 0x3eb0" (identifier "PTR_LAB_00039948") (+ "+") (number_literal "0x3eb0")) (, ",") (binary_expression "PTR_LAB_00039948 + 0x6604" (identifier "PTR_LAB_00039948") (+ "+") (number_literal "0x6604")) (, ",") (identifier "auStack_27c") () ")"))) (; ";")) (} "}")))) (} "}"))) (goto_statement "goto LAB_0001c2f8;" (goto "goto") (statement_identifier "LAB_0001c2f8") (; ";")) (} "}"))) (expression_statement "uVar8 = (uint)local_22a;" (assignment_expression "uVar8 = (uint)local_22a" (identifier "uVar8") (= "=") (cast_expression "(uint)local_22a" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "local_22a"))) (; ";")) (if_statement "if ((int)(local_280 - 3) <= (int)uVar8) {\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }" (if "if") (parenthesized_expression "((int)(local_280 - 3) <= (int)uVar8)" (( "(") (binary_expression "(int)(local_280 - 3) <= (int)uVar8" (cast_expression "(int)(local_280 - 3)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(local_280 - 3)" (( "(") (binary_expression "local_280 - 3" (identifier "local_280") (- "-") (number_literal "3")) () ")"))) (<= "<=") (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8"))) () ")")) (compound_statement "{\n      if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }\n    }" ({ "{") (if_statement "if (*(int *)(param_2 + 0x20) == 0) {\n        uVar8 = local_280 - 4;\n      }\n      else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x20) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x20) == 0" (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar8 = local_280 - 4;\n      }" ({ "{") (expression_statement "uVar8 = local_280 - 4;" (assignment_expression "uVar8 = local_280 - 4" (identifier "uVar8") (= "=") (binary_expression "local_280 - 4" (identifier "local_280") (- "-") (number_literal "4"))) (; ";")) (} "}")) (else_clause "else {\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }" (else "else") (compound_statement "{\n        (*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);\n        uVar8 = local_280 - 4;\n      }" ({ "{") (expression_statement "(*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);" (call_expression "(*(code *)PTR_pr2serr_00039a44)\n                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" (( "(") (pointer_expression "*(code *)PTR_pr2serr_00039a44" (* "*") (cast_expression "(code *)PTR_pr2serr_00039a44" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2serr_00039a44"))) () ")")) (argument_list "(PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4)" (( "(") (binary_expression "PTR_LAB_00039948 + 0x3ed4" (identifier "PTR_LAB_00039948") (+ "+") (number_literal "0x3ed4")) (, ",") (binary_expression "PTR_LAB_00039948 + 0x6604" (identifier "PTR_LAB_00039948") (+ "+") (number_literal "0x6604")) (, ",") (identifier "local_280") (, ",") (binary_expression "uVar8 + 4" (identifier "uVar8") (+ "+") (number_literal "4")) () ")"))) (; ";")) (expression_statement "uVar8 = local_280 - 4;" (assignment_expression "uVar8 = local_280 - 4" (identifier "uVar8") (= "=") (binary_expression "local_280 - 4" (identifier "local_280") (- "-") (number_literal "4"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "puVar12 = PTR_LAB_00039948;" (assignment_expression "puVar12 = PTR_LAB_00039948" (identifier "puVar12") (= "=") (identifier "PTR_LAB_00039948")) (; ";")) (if_statement "if (0 < (int)uVar8) {\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }" (if "if") (parenthesized_expression "(0 < (int)uVar8)" (( "(") (binary_expression "0 < (int)uVar8" (number_literal "0") (< "<") (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8"))) () ")")) (compound_statement "{\n      puVar6 = PTR_LAB_00039948 + 0x3efc;\n      pcVar3 = (code *)(PTR_00039944 + 0x6afc);\n      puVar11 = auStack_22c;\n      do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);\n      goto LAB_0001c2f8;\n    }" ({ "{") (expression_statement "puVar6 = PTR_LAB_00039948 + 0x3efc;" (assignment_expression "puVar6 = PTR_LAB_00039948 + 0x3efc" (identifier "puVar6") (= "=") (binary_expression "PTR_LAB_00039948 + 0x3efc" (identifier "PTR_LAB_00039948") (+ "+") (number_literal "0x3efc"))) (; ";")) (expression_statement "pcVar3 = (code *)(PTR_00039944 + 0x6afc);" (assignment_expression "pcVar3 = (code *)(PTR_00039944 + 0x6afc)" (identifier "pcVar3") (= "=") (cast_expression "(code *)(PTR_00039944 + 0x6afc)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_00039944 + 0x6afc)" (( "(") (binary_expression "PTR_00039944 + 0x6afc" (identifier "PTR_00039944") (+ "+") (number_literal "0x6afc")) () ")")))) (; ";")) (expression_statement "puVar11 = auStack_22c;" (assignment_expression "puVar11 = auStack_22c" (identifier "puVar11") (= "=") (identifier "auStack_22c")) (; ";")) (do_statement "do {\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      } while (auStack_22c + uVar8 != puVar11);" (do "do") (compound_statement "{\n        uVar9 = (uint)(byte)puVar11[4];\n        if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }\n        puVar11 = puVar11 + 1;\n      }" ({ "{") (expression_statement "uVar9 = (uint)(byte)puVar11[4];" (assignment_expression "uVar9 = (uint)(byte)puVar11[4]" (identifier "uVar9") (= "=") (cast_expression "(uint)(byte)puVar11[4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar11[4]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar11[4]" (identifier "puVar11") ([ "[") (number_literal "4") (] "]"))))) (; ";")) (if_statement "if ((int)uVar9 <= local_29c) {\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }" (if "if") (parenthesized_expression "((int)uVar9 <= local_29c)" (( "(") (binary_expression "(int)uVar9 <= local_29c" (cast_expression "(int)uVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar9")) (<= "<=") (identifier "local_29c")) () ")")) (compound_statement "{\n          *(uint *)(param_2 + 0xc) = uVar9;\n          if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }\n          if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }\n          iVar7 = FUN_00016d44(param_1,param_2,0,0);\n          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }\n          if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }\n        }" ({ "{") (expression_statement "*(uint *)(param_2 + 0xc) = uVar9;" (assignment_expression "*(uint *)(param_2 + 0xc) = uVar9" (pointer_expression "*(uint *)(param_2 + 0xc)" (* "*") (cast_expression "(uint *)(param_2 + 0xc)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar9")) (; ";")) (if_statement "if (auStack_22c != puVar11) {\n            (*(code *)PTR_putchar_000399f0)(10);\n          }" (if "if") (parenthesized_expression "(auStack_22c != puVar11)" (( "(") (binary_expression "auStack_22c != puVar11" (identifier "auStack_22c") (!= "!=") (identifier "puVar11")) () ")")) (compound_statement "{\n            (*(code *)PTR_putchar_000399f0)(10);\n          }" ({ "{") (expression_statement "(*(code *)PTR_putchar_000399f0)(10);" (call_expression "(*(code *)PTR_putchar_000399f0)(10)" (parenthesized_expression "(*(code *)PTR_putchar_000399f0)" (( "(") (pointer_expression "*(code *)PTR_putchar_000399f0" (* "*") (cast_expression "(code *)PTR_putchar_000399f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_putchar_000399f0"))) () ")")) (argument_list "(10)" (( "(") (number_literal "10") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(param_2 + 3) != '\0') {\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }" (if "if") (parenthesized_expression "(*(char *)(param_2 + 3) != '\0')" (( "(") (binary_expression "*(char *)(param_2 + 3) != '\0'" (pointer_expression "*(char *)(param_2 + 3)" (* "*") (cast_expression "(char *)(param_2 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 3)" (( "(") (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);\n          }" ({ "{") (expression_statement "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);" (call_expression "(*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9)" (parenthesized_expression "(*(code *)PTR___printf_chk_000399d8)" (( "(") (pointer_expression "*(code *)PTR___printf_chk_000399d8" (* "*") (cast_expression "(code *)PTR___printf_chk_000399d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___printf_chk_000399d8"))) () ")")) (argument_list "(1,puVar12 + 0x3ef4,uVar9)" (( "(") (number_literal "1") (, ",") (binary_expression "puVar12 + 0x3ef4" (identifier "puVar12") (+ "+") (number_literal "0x3ef4")) (, ",") (identifier "uVar9") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar7 = FUN_00016d44(param_1,param_2,0,0);" (assignment_expression "iVar7 = FUN_00016d44(param_1,param_2,0,0)" (identifier "iVar7") (= "=") (call_expression "FUN_00016d44(param_1,param_2,0,0)" (identifier "FUN_00016d44") (argument_list "(param_1,param_2,0,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }" (if "if") (parenthesized_expression "((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99))" (( "(") (binary_expression "(iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)" (parenthesized_expression "(iVar7 == 99)" (( "(") (binary_expression "iVar7 == 99" (identifier "iVar7") (== "==") (number_literal "99")) () ")")) (&& "&&") (parenthesized_expression "(iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)" (( "(") (comma_expression "iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99" (assignment_expression "iVar7 = svpd_decode_vendor(param_1,param_2,0)" (identifier "iVar7") (= "=") (call_expression "svpd_decode_vendor(param_1,param_2,0)" (identifier "svpd_decode_vendor") (argument_list "(param_1,param_2,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (, ",") (binary_expression "iVar7 == 99" (identifier "iVar7") (== "==") (number_literal "99"))) () ")"))) () ")")) (compound_statement "{\n            iVar7 = (*pcVar3)(param_1,param_2,0,0);\n          }" ({ "{") (expression_statement "iVar7 = (*pcVar3)(param_1,param_2,0,0);" (assignment_expression "iVar7 = (*pcVar3)(param_1,param_2,0,0)" (identifier "iVar7") (= "=") (call_expression "(*pcVar3)(param_1,param_2,0,0)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(param_1,param_2,0,0)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}"))) (if_statement "if (*(char *)(param_2 + 4) == '\0') {\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }\n          else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }" (if "if") (parenthesized_expression "(*(char *)(param_2 + 4) == '\0')" (( "(") (binary_expression "*(char *)(param_2 + 4) == '\0'" (pointer_expression "*(char *)(param_2 + 4)" (* "*") (cast_expression "(char *)(param_2 + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }\n          }" ({ "{") (if_statement "if (iVar7 == 0xb) {\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }\n            else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }" (if "if") (parenthesized_expression "(iVar7 == 0xb)" (( "(") (binary_expression "iVar7 == 0xb" (identifier "iVar7") (== "==") (number_literal "0xb")) () ")")) (compound_statement "{\n              (*(code *)PTR_pr2serr_00039a44)(puVar6);\n              iVar13 = 0xb;\n            }" ({ "{") (expression_statement "(*(code *)PTR_pr2serr_00039a44)(puVar6);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(puVar6)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" (( "(") (pointer_expression "*(code *)PTR_pr2serr_00039a44" (* "*") (cast_expression "(code *)PTR_pr2serr_00039a44" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2serr_00039a44"))) () ")")) (argument_list "(puVar6)" (( "(") (identifier "puVar6") () ")"))) (; ";")) (expression_statement "iVar13 = 0xb;" (assignment_expression "iVar13 = 0xb" (identifier "iVar13") (= "=") (number_literal "0xb")) (; ";")) (} "}")) (else_clause "else if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }" (else "else") (if_statement "if (iVar7 != 0) {\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n              (*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));\n              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);\n              iVar13 = iVar7;\n            }" ({ "{") (expression_statement "(*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));" (call_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)\n                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20))" (parenthesized_expression "(*(code *)PTR_sg_get_category_sense_str_000399bc)" (( "(") (pointer_expression "*(code *)PTR_sg_get_category_sense_str_000399bc" (* "*") (cast_expression "(code *)PTR_sg_get_category_sense_str_000399bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sg_get_category_sense_str_000399bc"))) () ")")) (argument_list "(iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20))" (( "(") (identifier "iVar7") (, ",") (number_literal "0x50") (, ",") (identifier "auStack_27c") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x20)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);" (call_expression "(*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c)" (parenthesized_expression "(*(code *)PTR_pr2serr_00039a44)" (( "(") (pointer_expression "*(code *)PTR_pr2serr_00039a44" (* "*") (cast_expression "(code *)PTR_pr2serr_00039a44" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2serr_00039a44"))) () ")")) (argument_list "(puVar12 + 0x3f28,auStack_27c)" (( "(") (binary_expression "puVar12 + 0x3f28" (identifier "puVar12") (+ "+") (number_literal "0x3f28")) (, ",") (identifier "auStack_27c") () ")"))) (; ";")) (expression_statement "iVar13 = iVar7;" (assignment_expression "iVar13 = iVar7" (identifier "iVar13") (= "=") (identifier "iVar7")) (; ";")) (} "}"))))) (} "}")) (else_clause "else if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }" (else "else") (if_statement "if (iVar7 != 0) {\n            iVar13 = iVar7;\n          }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            iVar13 = iVar7;\n          }" ({ "{") (expression_statement "iVar13 = iVar7;" (assignment_expression "iVar13 = iVar7" (identifier "iVar13") (= "=") (identifier "iVar7")) (; ";")) (} "}"))))) (} "}"))) (expression_statement "puVar11 = puVar11 + 1;" (assignment_expression "puVar11 = puVar11 + 1" (identifier "puVar11") (= "=") (binary_expression "puVar11 + 1" (identifier "puVar11") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(auStack_22c + uVar8 != puVar11)" (( "(") (binary_expression "auStack_22c + uVar8 != puVar11" (binary_expression "auStack_22c + uVar8" (identifier "auStack_22c") (+ "+") (identifier "uVar8")) (!= "!=") (identifier "puVar11")) () ")")) (; ";")) (goto_statement "goto LAB_0001c2f8;" (goto "goto") (statement_identifier "LAB_0001c2f8") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0001c2f8:\n  if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    \n                    \n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }" (statement_identifier "LAB_0001c2f8") (: ":") (if_statement "if (local_2c != *(uint *)puVar1) {\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    \n                    \n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }" (if "if") (parenthesized_expression "(local_2c != *(uint *)puVar1)" (( "(") (binary_expression "local_2c != *(uint *)puVar1" (identifier "local_2c") (!= "!=") (pointer_expression "*(uint *)puVar1" (* "*") (cast_expression "(uint *)puVar1" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    uVar8 = local_2c;\n    puVar12 = PTR___stack_chk_fail_00039a48;\n    (*(code *)PTR___stack_chk_fail_00039a48)();\n    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);\n                    \n                    \n    iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);\n    return iVar7;\n  }" ({ "{") (expression_statement "uVar8 = local_2c;" (assignment_expression "uVar8 = local_2c" (identifier "uVar8") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "puVar12 = PTR___stack_chk_fail_00039a48;" (assignment_expression "puVar12 = PTR___stack_chk_fail_00039a48" (identifier "puVar12") (= "=") (identifier "PTR___stack_chk_fail_00039a48")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00039a48)();" (call_expression "(*(code *)PTR___stack_chk_fail_00039a48)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00039a48)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00039a48" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00039a48" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00039a48"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);" (call_expression "(**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630)" (parenthesized_expression "(**(code **)(puVar12 + 0x1d368))" (( "(") (pointer_expression "**(code **)(puVar12 + 0x1d368)" (* "*") (pointer_expression "*(code **)(puVar12 + 0x1d368)" (* "*") (cast_expression "(code **)(puVar12 + 0x1d368)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar12 + 0x1d368)" (( "(") (binary_expression "puVar12 + 0x1d368" (identifier "puVar12") (+ "+") (number_literal "0x1d368")) () ")"))))) () ")")) (argument_list "(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630)" (( "(") (number_literal "1") (, ",") (binary_expression "*(int *)(puVar12 + 0x1d2d8) + 0x6630" (pointer_expression "*(int *)(puVar12 + 0x1d2d8)" (* "*") (cast_expression "(int *)(puVar12 + 0x1d2d8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + 0x1d2d8)" (( "(") (binary_expression "puVar12 + 0x1d2d8" (identifier "puVar12") (+ "+") (number_literal "0x1d2d8")) () ")")))) (+ "+") (number_literal "0x6630")) () ")"))) (; ";")) (expression_statement "iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1);" (assignment_expression "iVar7 = (*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1)" (identifier "iVar7") (= "=") (call_expression "(*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))(1)" (parenthesized_expression "(*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)))" (( "(") (pointer_expression "*(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10))" (* "*") (cast_expression "(code *)(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10))" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10))" (( "(") (binary_expression "puVar12 +\n                      (int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)" (identifier "puVar12") (+ "+") (cast_expression "(int)("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "("third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10)" (( "(") (binary_expression ""third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +\n                           0x10" (binary_expression ""third party persistent reservation source I_T nexus" +\n                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4)" (string_literal ""third party persistent reservation source I_T nexus"" (" """) (string_content "third party persistent reservation source I_T nexus") (" """)) (+ "+") (pointer_expression "*(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4)" (* "*") (cast_expression "(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4)" (( "(") (binary_expression "*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4" (binary_expression "*(int *)(puVar12 + 0x1d300) + -0x75b0" (pointer_expression "*(int *)(puVar12 + 0x1d300)" (* "*") (cast_expression "(int *)(puVar12 + 0x1d300)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar12 + 0x1d300)" (( "(") (binary_expression "puVar12 + 0x1d300" (identifier "puVar12") (+ "+") (number_literal "0x1d300")) () ")")))) (+ "+") (number_literal "-0x75b0")) (+ "+") (binary_expression "(uVar8 & 0xf) * 4" (parenthesized_expression "(uVar8 & 0xf)" (( "(") (binary_expression "uVar8 & 0xf" (identifier "uVar8") (& "&") (number_literal "0xf")) () ")")) (* "*") (number_literal "4"))) () ")"))))) (+ "+") (number_literal "0x10")) () ")")))) () ")")))) () ")")) (argument_list "(1)" (( "(") (number_literal "1") () ")")))) (; ";")) (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}")))) (return_statement "return iVar13;" (return "return") (identifier "iVar13") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (primitive_type) 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: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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))))) (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))))) (field_expression argument: (identifier) field: (field_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: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) consequence: (compound_statement (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: (number_literal)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (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)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (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: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (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))))))) consequence: (compound_statement (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)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier))))))) alternative: (else_clause (compound_statement (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: (char_literal (escape_sequence)))) consequence: (compound_statement (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (number_literal) (identifier) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (number_literal) (identifier) (number_literal) (identifier)))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (identifier) (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: (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)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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)) (binary_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (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) (number_literal) (identifier) (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 (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)) (binary_expression left: (identifier) right: (number_literal)) (identifier))))))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (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: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (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)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (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 (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: (char_literal (escape_sequence)))) consequence: (compound_statement (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 (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (identifier) (number_literal) (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: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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) (number_literal) (identifier) (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 (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)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) 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))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (number_literal) (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (string_literal (string_content)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))) right: (number_literal))))))))) arguments: (argument_list (number_literal))))) (return_statement (identifier))))) (return_statement (identifier)))))

int MASKED(int param_1,int param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  code *pcVar3;
  code *pcVar4;
  int iVar5;
  undefined *puVar6;
  int iVar7;
  uint uVar8;
  uint uVar9;
  int iVar10;
  undefined1 *puVar11;
  undefined *puVar12;
  int iVar13;
  int local_29c;
  undefined4 local_280;
  undefined1 auStack_27c [80];
  undefined1 auStack_22c [2];
  ushort local_22a;
  byte local_228 [508];
  uint local_2c;
  
  puVar1 = PTR___stack_chk_guard_00039a5c;
  puVar6 = PTR_rsp_buff_00039950;
  puVar12 = PTR_LAB_00039948;
  local_29c = *(int *)(param_2 + 0xc);
  local_2c = *(uint *)PTR___stack_chk_guard_00039a5c;
  if (local_29c < 1) {
    local_29c = 0xff;
  }
  iVar7 = *(int *)(param_2 + 0x14);
  if (param_1 < 0) {
    if (0 < iVar7) {
      iVar10 = 0;
      iVar13 = 0;
      puVar2 = PTR_LAB_00039948 + 0x3f48;
      pcVar3 = (code *)(PTR_00039944 + 0x6d44);
      pcVar4 = (code *)(PTR_00039944 + 0x6afc);
      uVar8 = 0xffffffff;
      do {
        iVar5 = *(int *)puVar6 + iVar10;
        uVar9 = (uint)*(byte *)(iVar5 + 1);
        local_280 = CONCAT13(*(undefined1 *)(iVar5 + 2),
                             CONCAT12(*(undefined1 *)(iVar5 + 3),local_280._2_2_));
        iVar5 = (local_280 >> 0x10) + 4;
        if (iVar7 < iVar5 + iVar10) {
          (*(code *)PTR_pr2serr_00039a44)(puVar2,puVar12 + 0x6604,uVar9,iVar5);
          iVar5 = iVar7 - iVar10;
        }
        if ((int)uVar9 <= (int)uVar8) {
          (*(code *)PTR_pr2serr_00039a44)
                    (PTR_LAB_00039948 + 0x3f70,PTR_LAB_00039948 + 0x6604,uVar8,uVar9);
          break;
        }
        *(uint *)(param_2 + 0xc) = uVar9;
        if (local_29c < (int)uVar9) {
          if (2 < *(int *)(param_2 + 0x20)) {
            (*(code *)PTR_pr2serr_00039a44)
                      (PTR_LAB_00039948 + 0x3fa8,puVar12 + 0x6604,uVar9,local_29c);
          }
        }
        else {
          if (*(char *)(param_2 + 3) != '\0') {
            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);
          }
          iVar13 = (*pcVar3)(0xffffffff,param_2,0,iVar10);
          if ((iVar13 == 99) &&
             (iVar13 = svpd_decode_vendor(0xffffffff,param_2,iVar10), iVar13 == 99)) {
            iVar13 = (*pcVar4)(0xffffffff,param_2,0,iVar10);
          }
        }
        iVar10 = iVar10 + iVar5;
        uVar8 = uVar9;
      } while (iVar10 < iVar7);
      goto LAB_0001c2f8;
    }
  }
  else {
    iVar13 = vpd_fetch_page(param_1,auStack_22c,0,iVar7,*(undefined1 *)(param_2 + 4),
                            *(undefined4 *)(param_2 + 0x20),&local_280);
    if (iVar13 != 0) {
      if (*(char *)(param_2 + 4) == '\0') {
        if (iVar13 == 0xb) {
          (*(code *)PTR_pr2serr_00039a44)(PTR_LAB_00039948 + 0x3e8c,PTR_LAB_00039948 + 0x6604);
        }
        else {
          (*(code *)PTR_sg_get_category_sense_str_000399bc)
                    (iVar13,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));
          (*(code *)PTR_pr2serr_00039a44)
                    (PTR_LAB_00039948 + 0x3eb0,PTR_LAB_00039948 + 0x6604,auStack_27c);
        }
      }
      goto LAB_0001c2f8;
    }
    uVar8 = (uint)local_22a;
    if ((int)(local_280 - 3) <= (int)uVar8) {
      if (*(int *)(param_2 + 0x20) == 0) {
        uVar8 = local_280 - 4;
      }
      else {
        (*(code *)PTR_pr2serr_00039a44)
                  (PTR_LAB_00039948 + 0x3ed4,PTR_LAB_00039948 + 0x6604,local_280,uVar8 + 4);
        uVar8 = local_280 - 4;
      }
    }
    puVar12 = PTR_LAB_00039948;
    if (0 < (int)uVar8) {
      puVar6 = PTR_LAB_00039948 + 0x3efc;
      pcVar3 = (code *)(PTR_00039944 + 0x6afc);
      puVar11 = auStack_22c;
      do {
        uVar9 = (uint)(byte)puVar11[4];
        if ((int)uVar9 <= local_29c) {
          *(uint *)(param_2 + 0xc) = uVar9;
          if (auStack_22c != puVar11) {
            (*(code *)PTR_putchar_000399f0)(10);
          }
          if (*(char *)(param_2 + 3) != '\0') {
            (*(code *)PTR___printf_chk_000399d8)(1,puVar12 + 0x3ef4,uVar9);
          }
          iVar7 = FUN_00016d44(param_1,param_2,0,0);
          if ((iVar7 == 99) && (iVar7 = svpd_decode_vendor(param_1,param_2,0), iVar7 == 99)) {
            iVar7 = (*pcVar3)(param_1,param_2,0,0);
          }
          if (*(char *)(param_2 + 4) == '\0') {
            if (iVar7 == 0xb) {
              (*(code *)PTR_pr2serr_00039a44)(puVar6);
              iVar13 = 0xb;
            }
            else if (iVar7 != 0) {
              (*(code *)PTR_sg_get_category_sense_str_000399bc)
                        (iVar7,0x50,auStack_27c,*(undefined4 *)(param_2 + 0x20));
              (*(code *)PTR_pr2serr_00039a44)(puVar12 + 0x3f28,auStack_27c);
              iVar13 = iVar7;
            }
          }
          else if (iVar7 != 0) {
            iVar13 = iVar7;
          }
        }
        puVar11 = puVar11 + 1;
      } while (auStack_22c + uVar8 != puVar11);
      goto LAB_0001c2f8;
    }
  }
  iVar13 = 0;
LAB_0001c2f8:
  if (local_2c != *(uint *)puVar1) {
    uVar8 = local_2c;
    puVar12 = PTR___stack_chk_fail_00039a48;
    (*(code *)PTR___stack_chk_fail_00039a48)();
    (**(code **)(puVar12 + 0x1d368))(1,*(int *)(puVar12 + 0x1d2d8) + 0x6630);
                    /* WARNING: Could not recover jumptable at 0x0001c6d0. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    iVar7 = (*(code *)(puVar12 +
                      (int)("third party persistent reservation source I_T nexus" +
                           *(int *)(*(int *)(puVar12 + 0x1d300) + -0x75b0 + (uVar8 & 0xf) * 4) +
                           0x10)))(1);
    return iVar7;
  }
  return iVar13;
}

