
int sg_ll_write_buffer_v2
              (int sg_fd,int mode,int m_specific,int buffer_id,uint32_t buffer_offset,void *paramp,
              uint32_t param_len,int timeout_secs,_Bool noisy,int verbose)

{
  undefined *puVar1;
  uint uVar2;
  int *piVar3;
  undefined1 uVar6;
  int iVar4;
  undefined4 uVar5;
  undefined *puVar7;
  uint32_t uVar8;
  int iVar9;
  int unaff_s0;
  uint8_t *puVar10;
  uint8_t *puVar11;
  uint8_t *unaff_s3;
  int *piVar12;
  int iVar13;
  undefined *puVar14;
  uint8_t *unaff_s8;
  int *piVar15;
  int *piVar16;
  code *pcVar17;
  int aiStack_124 [3];
  short sStack_118;
  undefined4 uStack_116;
  int iStack_d4;
  int iStack_d0;
  int iStack_cc;
  int iStack_c8;
  uint8_t *puStack_c4;
  int iStack_c0;
  undefined *puStack_bc;
  void *pvStack_b8;
  int iStack_b4;
  uint8_t *puStack_b0;
  code *pcStack_ac;
  int iStack_a8;
  uint8_t *local_98;
  uint local_94;
  uint local_90;
  int *local_8c;
  int sense_cat;
  uint8_t wbuf_cdb [10];
  uint8_t auStack_6e [2];
  uint8_t sense_b [64];
  
  puVar1 = PTR___stack_chk_guard_00054a4c;
  uVar6 = (undefined1)m_specific;
  iVar9 = *(int *)PTR___stack_chk_guard_00054a4c;
  wbuf_cdb[0] = ';';
  wbuf_cdb[1] = '\0';
  wbuf_cdb[2] = '\0';
  wbuf_cdb[3] = '\0';
  wbuf_cdb[4] = '\0';
  wbuf_cdb[5] = '\0';
  wbuf_cdb[6] = '\0';
  wbuf_cdb[7] = '\0';
  wbuf_cdb[8] = '\0';
  wbuf_cdb[9] = '\0';
  if (buffer_offset < 0x1000000) {
    uVar5 = 0;
    uVar6 = 0;
    if (param_len < 0x1000000) {
      wbuf_cdb[0] = ';';
      wbuf_cdb[1] = '\0';
      wbuf_cdb[2] = (char)buffer_id;
      wbuf_cdb._8_2_ = (ushort)(byte)param_len << 8;
      wbuf_cdb[3] = (uint8_t)(buffer_offset >> 0x10);
      wbuf_cdb._4_2_ = (short)buffer_offset;
      wbuf_cdb[6] = (char)(param_len >> 0x10);
      wbuf_cdb._1_3_ = CONCAT12((char)mode,wbuf_cdb._2_2_) & 0x1fffff;
      wbuf_cdb[0] = ';';
      wbuf_cdb[7] = (uint8_t)(param_len >> 8);
      if (verbose != 0) {
        unaff_s8 = auStack_6e;
        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);
        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;
        puVar10 = wbuf_cdb;
        do {
          puVar11 = puVar10 + 1;
          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);
          uVar6 = (undefined1)uVar5;
          puVar10 = puVar11;
        } while (puVar11 != unaff_s8);
        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);
        if (((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0)) {
          if (0x100 < param_len) {
            puVar7 = PTR_s_tatus_00054840 + -0x116c;
          }
          else {
            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;
          }
          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);
          uVar6 = 0xff;
          uVar8 = 0x100;
          if (0x100 >= param_len) {
            uVar8 = param_len;
          }
          (*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);
        }
      }
      if (timeout_secs < 1) {
        timeout_secs = 0x3c;
      }
      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();
      if (unaff_s0 == 0) {
        iVar4 = -1;
        puVar7 = PTR_s_tatus_00054840 + -0xeb4;
        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);
      }
      else {
        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10);
        unaff_s3 = sense_b;
        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);
        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len);
        uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose);
        buffer_id = 0;
        local_8c = &sense_cat;
        local_90 = verbose;
        local_94 = (uint)noisy;
        puVar7 = PTR_LAB_0005483c + 0x3a04;
        local_98 = unaff_s3;
        iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);
        if (iVar4 == -1) {
          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);
          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);
        }
        else if (iVar4 == -2) {
          iVar4 = sense_cat;
          if (sense_cat - 0x14U < 2) {
            iVar4 = 0;
          }
        }
        else {
          iVar4 = 0;
        }
        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);
      }
    }
    else {
      iVar4 = -1;
      puVar7 = PTR_s_tatus_00054840 + -0xeb4;
      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);
    }
  }
  else {
    iVar4 = -1;
    puVar7 = PTR_s_tatus_00054840 + -0xeb4;
    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);
  }
  if (iVar9 == *(int *)puVar1) {
    return iVar4;
  }
  pcVar17 = sg_ll_unmap_v2;
  puVar14 = PTR___stack_chk_fail_00054a1c;
  (*(code *)PTR___stack_chk_fail_00054a1c)();
  piVar3 = local_8c;
  uVar2 = local_94;
  puVar10 = local_98;
  piVar12 = *(int **)(puVar14 + 0x2ac2c);
  pvStack_b8 = paramp;
  puStack_bc = puVar1;
  iStack_c8 = verbose;
  aiStack_124[1] = 0x42000000;
  iStack_d4 = *piVar12;
  if (puVar7 != (undefined *)0x0) {
    aiStack_124[1] = 0x42010000;
  }
  if (buffer_id < 1) {
    buffer_id = 0x3c;
  }
  iVar13 = *(int *)(puVar14 + 0x2aa20);
  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);
  sStack_118 = (ushort)(byte)local_94 << 8;
  aiStack_124[2] = (int)(CONCAT11(uVar6,(char)(local_94 >> 8)) & 0x1fff);
  iStack_d0 = unaff_s0;
  iStack_cc = iVar4;
  puStack_c4 = unaff_s3;
  iStack_c0 = timeout_secs;
  iStack_b4 = sg_fd;
  puStack_b0 = unaff_s8;
  pcStack_ac = pcVar17;
  iStack_a8 = iVar9;
  if (local_8c != (int *)0x0) {
    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);
    iVar9 = *(int *)(puVar14 + 0x2aa1c);
    piVar15 = aiStack_124 + 1;
    do {
      piVar16 = (int *)((int)piVar15 + 1);
      (**(code **)(puVar14 + 0x2aacc))(iVar9 + 0x1f1c,*(undefined1 *)piVar15);
      piVar15 = piVar16;
    } while (&uStack_116 != piVar16);
    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);
    if (1 < (int)piVar3) {
      pcVar17 = *(code **)(puVar14 + 0x2ac34);
      if ((puVar10 == (uint8_t *)0x0) || (uVar2 == 0)) goto LAB_00029ecc;
      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);
      (**(code **)(puVar14 + 0x2aa7c))(puVar10,uVar2,0xffffffff);
    }
  }
  pcVar17 = *(code **)(puVar14 + 0x2ac34);
LAB_00029ecc:
  iVar9 = (*pcVar17)();
  if (iVar9 == 0) {
    iVar4 = -1;
    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);
  }
  else {
    (**(code **)(puVar14 + 0x2aa40))(iVar9,aiStack_124 + 1,10);
    (**(code **)(puVar14 + 0x2aad4))(iVar9,(int)&uStack_116 + 2,0x40);
    (**(code **)(puVar14 + 0x2ac54))(iVar9,puVar10,uVar2);
    uVar5 = (**(code **)(puVar14 + 0x2ab64))(iVar9,iStack_a8,buffer_id,piVar3);
    iVar4 = (**(code **)(puVar14 + 0x2aab0))
                      (iVar9,iVar13 + -0x10c0,uVar5,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar3,
                       aiStack_124);
    if (iVar4 == -1) {
      uVar5 = (**(code **)(puVar14 + 0x2ac7c))(iVar9);
      iVar4 = (**(code **)(puVar14 + 0x2ab08))(uVar5);
    }
    else if (iVar4 == -2) {
      iVar4 = aiStack_124[0];
      if (aiStack_124[0] - 0x14U < 2) {
        iVar4 = 0;
      }
    }
    else {
      iVar4 = 0;
    }
    (**(code **)(puVar14 + 0x2ab4c))(iVar9);
  }
  if (iStack_d4 != *piVar12) {
    pcVar17 = *(code **)(puVar14 + 0x2abfc);
    (*pcVar17)();
    iVar9 = (**(code **)(pcVar17 + 0x2a938))();
    return iVar9;
  }
  return iVar4;
}



int sg_ll_write_buffer_v2
              (undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,
              int param_6,uint param_7,int param_8,byte param_9,uint param_10)

{
  uint3 uVar1;
  undefined *puVar2;
  undefined *puVar3;
  int *piVar4;
  int iVar5;
  undefined4 uVar6;
  int iVar7;
  undefined *puVar8;
  uint uVar9;
  int unaff_s0;
  undefined4 *puVar10;
  undefined4 *puVar11;
  undefined *unaff_s3;
  int *piVar12;
  int iVar13;
  undefined *puVar14;
  undefined4 *unaff_s8;
  int *piVar15;
  int *piVar16;
  code *pcVar17;
  int aiStack_124 [3];
  short sStack_118;
  undefined4 uStack_116;
  int iStack_d4;
  int iStack_d0;
  int iStack_cc;
  uint uStack_c8;
  undefined *puStack_c4;
  int iStack_c0;
  undefined *puStack_bc;
  int iStack_b8;
  undefined4 uStack_b4;
  undefined4 *puStack_b0;
  code *pcStack_ac;
  int iStack_a8;
  undefined *local_98;
  uint local_94;
  uint local_90;
  int *local_8c;
  int local_7c;
  undefined4 local_78;
  undefined4 local_74;
  short local_70;
  undefined4 uStack_6e;
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_00054a4c;
  local_2c = *(int *)PTR___stack_chk_guard_00054a4c;
  local_78 = 0x3b000000;
  local_74 = 0;
  local_70 = 0;
  if (param_5 < 0x1000000) {
    uVar6 = 0;
    param_3 = 0;
    if (param_7 < 0x1000000) {
      local_70 = (ushort)(byte)param_7 << 8;
      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));
      uVar1 = CONCAT12(param_2,local_78._2_2_);
      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);
      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));
      if (param_10 != 0) {
        unaff_s8 = &uStack_6e;
        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);
        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;
        puVar10 = &local_78;
        do {
          puVar11 = (undefined4 *)((int)puVar10 + 1);
          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);
          param_3 = (undefined1)uVar6;
          puVar10 = puVar11;
        } while (puVar11 != unaff_s8);
        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);
        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {
          if (0x100 < param_7) {
            puVar8 = PTR_s_tatus_00054840 + -0x116c;
          }
          else {
            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;
          }
          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);
          param_3 = 0xff;
          uVar9 = 0x100;
          if (0x100 >= param_7) {
            uVar9 = param_7;
          }
          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);
        }
      }
      if (param_8 < 1) {
        param_8 = 0x3c;
      }
      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();
      if (unaff_s0 == 0) {
        iVar5 = -1;
        puVar8 = PTR_s_tatus_00054840 + -0xeb4;
        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);
      }
      else {
        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);
        unaff_s3 = (undefined *)((int)&uStack_6e + 2);
        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);
        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);
        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);
        param_4 = 0;
        local_8c = &local_7c;
        local_90 = param_10;
        local_94 = (uint)param_9;
        puVar8 = PTR_LAB_0005483c + 0x3a04;
        local_98 = unaff_s3;
        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);
        if (iVar5 == -1) {
          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);
          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);
        }
        else if (iVar5 == -2) {
          iVar5 = local_7c;
          if (local_7c - 0x14U < 2) {
            iVar5 = 0;
          }
        }
        else {
          iVar5 = 0;
        }
        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);
      }
    }
    else {
      iVar5 = -1;
      puVar8 = PTR_s_tatus_00054840 + -0xeb4;
      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);
    }
  }
  else {
    iVar5 = -1;
    puVar8 = PTR_s_tatus_00054840 + -0xeb4;
    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);
  }
  if (local_2c == *(int *)puVar2) {
    return iVar5;
  }
  pcVar17 = sg_ll_unmap_v2;
  iVar7 = local_2c;
  puVar14 = PTR___stack_chk_fail_00054a1c;
  (*(code *)PTR___stack_chk_fail_00054a1c)();
  piVar4 = local_8c;
  uVar9 = local_94;
  puVar3 = local_98;
  piVar12 = *(int **)(puVar14 + 0x2ac2c);
  iStack_b8 = param_6;
  puStack_bc = puVar2;
  uStack_c8 = param_10;
  aiStack_124[1] = 0x42000000;
  iStack_d4 = *piVar12;
  if (puVar8 != (undefined *)0x0) {
    aiStack_124[1] = 0x42010000;
  }
  if (param_4 < 1) {
    param_4 = 0x3c;
  }
  iVar13 = *(int *)(puVar14 + 0x2aa20);
  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);
  sStack_118 = (ushort)(byte)local_94 << 8;
  aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);
  iStack_d0 = unaff_s0;
  iStack_cc = iVar5;
  puStack_c4 = unaff_s3;
  iStack_c0 = param_8;
  uStack_b4 = param_1;
  puStack_b0 = unaff_s8;
  pcStack_ac = pcVar17;
  iStack_a8 = iVar7;
  if (local_8c != (int *)0x0) {
    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);
    iVar5 = *(int *)(puVar14 + 0x2aa1c);
    piVar15 = aiStack_124 + 1;
    do {
      piVar16 = (int *)((int)piVar15 + 1);
      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);
      piVar15 = piVar16;
    } while (&uStack_116 != piVar16);
    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);
    if (1 < (int)piVar4) {
      pcVar17 = *(code **)(puVar14 + 0x2ac34);
      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;
      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);
      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);
    }
  }
  pcVar17 = *(code **)(puVar14 + 0x2ac34);
LAB_00029ecc:
  iVar5 = (*pcVar17)();
  if (iVar5 == 0) {
    iVar7 = -1;
    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);
  }
  else {
    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);
    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);
    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);
    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);
    iVar7 = (**(code **)(puVar14 + 0x2aab0))
                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,
                       aiStack_124);
    if (iVar7 == -1) {
      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);
      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);
    }
    else if (iVar7 == -2) {
      iVar7 = aiStack_124[0];
      if (aiStack_124[0] - 0x14U < 2) {
        iVar7 = 0;
      }
    }
    else {
      iVar7 = 0;
    }
    (**(code **)(puVar14 + 0x2ab4c))(iVar5);
  }
  if (iStack_d4 != *piVar12) {
    pcVar17 = *(code **)(puVar14 + 0x2abfc);
    (*pcVar17)();
    iVar5 = (**(code **)(pcVar17 + 0x2a938))();
    return iVar5;
  }
  return iVar7;
}


lui gp,0x3
addiu gp,gp,0x2d3c
addu gp,gp,t9
addiu sp,sp,-0xa8
lui v1,0x100
sw s5,0x94(sp)
lw s5,-0x7dc4(gp)
lw v0,0xb8(sp)
sw s7,0x9c(sp)
or s7,a0,zero
sw gp,0x20(sp)
lw t0,0x0(s5)
sltu a0,v0,v1
sw s6,0x98(sp)
sw s4,0x90(sp)
sw t0,0x7c(sp)
lui t0,0x3b00
sw s2,0x88(sp)
sw s1,0x84(sp)
sw ra,0xa4(sp)
sw s8,0xa0(sp)
sw s3,0x8c(sp)
sw s0,0x80(sp)
sw t0,0x30(sp)
sw zero,0x34(sp)
sh zero,0x38(sp)
lw s6,0xbc(sp)
lw s1,0xc0(sp)
lw s4,0xc4(sp)
beq a0,zero,0x00029da8
_lw s2,0xcc(sp)
sltu v1,s1,v1
beq v1,zero,0x00029dcc
_sll a2,a2,0x5
sh v0,0x34(sp)
andi a1,a1,0x1f
sb a3,0x32(sp)
srl v0,v0,0x10
sb s1,0x38(sp)
srl a0,s1,0x10
srl v1,s1,0x8
sb v0,0x33(sp)
or a1,a1,a2
sb a0,0x36(sp)
sb a1,0x31(sp)
bne s2,zero,0x00029cb8
_sb v1,0x37(sp)
bgtz s4,0x00029b9c
_lw t9,-0x7dbc(gp)
li s4,0x3c
jalr t9
_nop
lw gp,0x20(sp)
beq v0,zero,0x00029df0
_or s0,v0,zero
lw t9,-0x7fb0(gp)
li a2,0xa
addiu a1,sp,0x30
jalr t9
_or a0,v0,zero
addiu s3,sp,0x3c
lw gp,0x20(sp)
li a2,0x40
or a1,s3,zero
lw t9,-0x7f1c(gp)
jalr t9
_or a0,s0,zero
or a2,s1,zero
lw gp,0x20(sp)
or a1,s6,zero
lw t9,-0x7d9c(gp)
jalr t9
_or a0,s0,zero
or a3,s2,zero
lw gp,0x20(sp)
or a2,s4,zero
or a1,s7,zero
lw t9,-0x7e8c(gp)
jalr t9
_or a0,s0,zero
or a3,zero,zero
lw gp,0x20(sp)
or a2,v0,zero
addiu v0,sp,0x2c
sw s2,0x18(sp)
or a0,s0,zero
sw s3,0x10(sp)
sw v0,0x1c(sp)
lw a1,-0x7fd4(gp)
lbu v0,0xcb(sp)
lw t9,-0x7f40(gp)
addiu a1,a1,0x3a04
jalr t9
_sw v0,0x14(sp)
li v1,-0x1
beq v0,v1,0x00029d78
_lw gp,0x20(sp)
li v1,-0x2
beq v0,v1,0x00029d68
_lw s1,0x2c(sp)
or s1,zero,zero
lw t9,-0x7ea4(gp)
jalr t9
_or a0,s0,zero
lw gp,0x20(sp)
lw a0,0x7c(sp)
or v0,s1,zero
lw v1,0x0(s5)
bne a0,v1,0x00029e14
_lw ra,0xa4(sp)
lw s8,0xa0(sp)
lw s7,0x9c(sp)
lw s6,0x98(sp)
lw s5,0x94(sp)
lw s4,0x90(sp)
lw s3,0x8c(sp)
lw s2,0x88(sp)
lw s1,0x84(sp)
lw s0,0x80(sp)
jr ra
_addiu sp,sp,0xa8
lw a0,-0x7fd0(gp)
addiu s0,sp,0x30
lw t9,-0x7f24(gp)
addiu s8,sp,0x3a
jalr t9
_addiu a0,a0,-0x10fc
lw gp,0x20(sp)
lw s3,-0x7fd4(gp)
addiu s3,s3,0x1f1c
lw t9,-0x7f24(gp)
addiu s0,s0,0x1
lbu a1,-0x1(s0)
jalr t9
_or a0,s3,zero
bne s0,s8,0x00029cdc
_lw gp,0x20(sp)
lw a0,-0x7fd0(gp)
lw t9,-0x7f24(gp)
jalr t9
_addiu a0,a0,-0x990
slti v0,s2,0x2
bne v0,zero,0x00029b90
_lw gp,0x20(sp)
beq s6,zero,0x00029b90
_nop
beq s1,zero,0x00029b90
_sltiu s0,s1,0x101
beq s0,zero,0x00029da0
_lw a1,-0x7fd0(gp)
lw a1,-0x7fd0(gp)
addiu a1,a1,-0x1a5c
lw a0,-0x7fd0(gp)
lw t9,-0x7f24(gp)
jalr t9
_addiu a0,a0,-0x10e4
li a1,0x100
lw gp,0x20(sp)
li a2,-0x1
movn a1,s1,s0
lw t9,-0x7f74(gp)
jalr t9
_or a0,s6,zero
b 0x00029b90
_lw gp,0x20(sp)
addiu v0,s1,-0x14
sltiu v0,v0,0x2
b 0x00029c68
_movn s1,zero,v0
lw t9,-0x7d74(gp)
jalr t9
_or a0,s0,zero
lw gp,0x20(sp)
lw t9,-0x7ee8(gp)
jalr t9
_or a0,v0,zero
lw gp,0x20(sp)
b 0x00029c68
_or s1,v0,zero
b 0x00029d34
_addiu a1,a1,-0x116c
lw a1,-0x7fd0(gp)
li s1,-0x1
lw a0,-0x7fd0(gp)
lw t9,-0x7f24(gp)
addiu a1,a1,-0xeb4
jalr t9
_addiu a0,a0,-0x1158
b 0x00029c78
_lw gp,0x20(sp)
lw a1,-0x7fd0(gp)
li s1,-0x1
lw a0,-0x7fd0(gp)
lw t9,-0x7f24(gp)
addiu a1,a1,-0xeb4
jalr t9
_addiu a0,a0,-0x1128
b 0x00029c78
_lw gp,0x20(sp)
lw a1,-0x7fd0(gp)
li s1,-0x1
lw a0,-0x7fd0(gp)
lw t9,-0x7f24(gp)
addiu a1,a1,-0xeb4
jalr t9
_addiu a0,a0,-0x1974
b 0x00029c78
_lw gp,0x20(sp)
lw t9,-0x7df4(gp)
jalr t9
_nop
(translation_unit "int sg_ll_write_buffer_v2\n              (undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,\n              int param_6,uint param_7,int param_8,byte param_9,uint param_10)\n\n{\n  uint3 uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined *puVar8;\n  uint uVar9;\n  int unaff_s0;\n  undefined4 *puVar10;\n  undefined4 *puVar11;\n  undefined *unaff_s3;\n  int *piVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 *unaff_s8;\n  int *piVar15;\n  int *piVar16;\n  code *pcVar17;\n  int aiStack_124 [3];\n  short sStack_118;\n  undefined4 uStack_116;\n  int iStack_d4;\n  int iStack_d0;\n  int iStack_cc;\n  uint uStack_c8;\n  undefined *puStack_c4;\n  int iStack_c0;\n  undefined *puStack_bc;\n  int iStack_b8;\n  undefined4 uStack_b4;\n  undefined4 *puStack_b0;\n  code *pcStack_ac;\n  int iStack_a8;\n  undefined *local_98;\n  uint local_94;\n  uint local_90;\n  int *local_8c;\n  int local_7c;\n  undefined4 local_78;\n  undefined4 local_74;\n  short local_70;\n  undefined4 uStack_6e;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00054a4c;\n  local_2c = *(int *)PTR___stack_chk_guard_00054a4c;\n  local_78 = 0x3b000000;\n  local_74 = 0;\n  local_70 = 0;\n  if (param_5 < 0x1000000) {\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }\n  if (local_2c == *(int *)puVar2) {\n    return iVar5;\n  }\n  pcVar17 = sg_ll_unmap_v2;\n  iVar7 = local_2c;\n  puVar14 = PTR___stack_chk_fail_00054a1c;\n  (*(code *)PTR___stack_chk_fail_00054a1c)();\n  piVar4 = local_8c;\n  uVar9 = local_94;\n  puVar3 = local_98;\n  piVar12 = *(int **)(puVar14 + 0x2ac2c);\n  iStack_b8 = param_6;\n  puStack_bc = puVar2;\n  uStack_c8 = param_10;\n  aiStack_124[1] = 0x42000000;\n  iStack_d4 = *piVar12;\n  if (puVar8 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }\n  if (param_4 < 1) {\n    param_4 = 0x3c;\n  }\n  iVar13 = *(int *)(puVar14 + 0x2aa20);\n  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);\n  sStack_118 = (ushort)(byte)local_94 << 8;\n  aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);\n  iStack_d0 = unaff_s0;\n  iStack_cc = iVar5;\n  puStack_c4 = unaff_s3;\n  iStack_c0 = param_8;\n  uStack_b4 = param_1;\n  puStack_b0 = unaff_s8;\n  pcStack_ac = pcVar17;\n  iStack_a8 = iVar7;\n  if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }\n  pcVar17 = *(code **)(puVar14 + 0x2ac34);\nLAB_00029ecc:\n  iVar5 = (*pcVar17)();\n  if (iVar5 == 0) {\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }\n  if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }\n  return iVar7;\n}\n\n" (function_definition "int sg_ll_write_buffer_v2\n              (undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,\n              int param_6,uint param_7,int param_8,byte param_9,uint param_10)\n\n{\n  uint3 uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined *puVar8;\n  uint uVar9;\n  int unaff_s0;\n  undefined4 *puVar10;\n  undefined4 *puVar11;\n  undefined *unaff_s3;\n  int *piVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 *unaff_s8;\n  int *piVar15;\n  int *piVar16;\n  code *pcVar17;\n  int aiStack_124 [3];\n  short sStack_118;\n  undefined4 uStack_116;\n  int iStack_d4;\n  int iStack_d0;\n  int iStack_cc;\n  uint uStack_c8;\n  undefined *puStack_c4;\n  int iStack_c0;\n  undefined *puStack_bc;\n  int iStack_b8;\n  undefined4 uStack_b4;\n  undefined4 *puStack_b0;\n  code *pcStack_ac;\n  int iStack_a8;\n  undefined *local_98;\n  uint local_94;\n  uint local_90;\n  int *local_8c;\n  int local_7c;\n  undefined4 local_78;\n  undefined4 local_74;\n  short local_70;\n  undefined4 uStack_6e;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00054a4c;\n  local_2c = *(int *)PTR___stack_chk_guard_00054a4c;\n  local_78 = 0x3b000000;\n  local_74 = 0;\n  local_70 = 0;\n  if (param_5 < 0x1000000) {\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }\n  if (local_2c == *(int *)puVar2) {\n    return iVar5;\n  }\n  pcVar17 = sg_ll_unmap_v2;\n  iVar7 = local_2c;\n  puVar14 = PTR___stack_chk_fail_00054a1c;\n  (*(code *)PTR___stack_chk_fail_00054a1c)();\n  piVar4 = local_8c;\n  uVar9 = local_94;\n  puVar3 = local_98;\n  piVar12 = *(int **)(puVar14 + 0x2ac2c);\n  iStack_b8 = param_6;\n  puStack_bc = puVar2;\n  uStack_c8 = param_10;\n  aiStack_124[1] = 0x42000000;\n  iStack_d4 = *piVar12;\n  if (puVar8 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }\n  if (param_4 < 1) {\n    param_4 = 0x3c;\n  }\n  iVar13 = *(int *)(puVar14 + 0x2aa20);\n  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);\n  sStack_118 = (ushort)(byte)local_94 << 8;\n  aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);\n  iStack_d0 = unaff_s0;\n  iStack_cc = iVar5;\n  puStack_c4 = unaff_s3;\n  iStack_c0 = param_8;\n  uStack_b4 = param_1;\n  puStack_b0 = unaff_s8;\n  pcStack_ac = pcVar17;\n  iStack_a8 = iVar7;\n  if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }\n  pcVar17 = *(code **)(puVar14 + 0x2ac34);\nLAB_00029ecc:\n  iVar5 = (*pcVar17)();\n  if (iVar5 == 0) {\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }\n  if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }\n  return iVar7;\n}" primitive_type (function_declarator "sg_ll_write_buffer_v2\n              (undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,\n              int param_6,uint param_7,int param_8,byte param_9,uint param_10)" identifier (parameter_list "(undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,\n              int param_6,uint param_7,int param_8,byte param_9,uint param_10)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) , (parameter_declaration "undefined1 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "uint param_7" type_identifier identifier) , (parameter_declaration "int param_8" primitive_type identifier) , (parameter_declaration "byte param_9" type_identifier identifier) , (parameter_declaration "uint param_10" type_identifier identifier) ))) (compound_statement "{\n  uint3 uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined *puVar8;\n  uint uVar9;\n  int unaff_s0;\n  undefined4 *puVar10;\n  undefined4 *puVar11;\n  undefined *unaff_s3;\n  int *piVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 *unaff_s8;\n  int *piVar15;\n  int *piVar16;\n  code *pcVar17;\n  int aiStack_124 [3];\n  short sStack_118;\n  undefined4 uStack_116;\n  int iStack_d4;\n  int iStack_d0;\n  int iStack_cc;\n  uint uStack_c8;\n  undefined *puStack_c4;\n  int iStack_c0;\n  undefined *puStack_bc;\n  int iStack_b8;\n  undefined4 uStack_b4;\n  undefined4 *puStack_b0;\n  code *pcStack_ac;\n  int iStack_a8;\n  undefined *local_98;\n  uint local_94;\n  uint local_90;\n  int *local_8c;\n  int local_7c;\n  undefined4 local_78;\n  undefined4 local_74;\n  short local_70;\n  undefined4 uStack_6e;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00054a4c;\n  local_2c = *(int *)PTR___stack_chk_guard_00054a4c;\n  local_78 = 0x3b000000;\n  local_74 = 0;\n  local_70 = 0;\n  if (param_5 < 0x1000000) {\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }\n  if (local_2c == *(int *)puVar2) {\n    return iVar5;\n  }\n  pcVar17 = sg_ll_unmap_v2;\n  iVar7 = local_2c;\n  puVar14 = PTR___stack_chk_fail_00054a1c;\n  (*(code *)PTR___stack_chk_fail_00054a1c)();\n  piVar4 = local_8c;\n  uVar9 = local_94;\n  puVar3 = local_98;\n  piVar12 = *(int **)(puVar14 + 0x2ac2c);\n  iStack_b8 = param_6;\n  puStack_bc = puVar2;\n  uStack_c8 = param_10;\n  aiStack_124[1] = 0x42000000;\n  iStack_d4 = *piVar12;\n  if (puVar8 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }\n  if (param_4 < 1) {\n    param_4 = 0x3c;\n  }\n  iVar13 = *(int *)(puVar14 + 0x2aa20);\n  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);\n  sStack_118 = (ushort)(byte)local_94 << 8;\n  aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);\n  iStack_d0 = unaff_s0;\n  iStack_cc = iVar5;\n  puStack_c4 = unaff_s3;\n  iStack_c0 = param_8;\n  uStack_b4 = param_1;\n  puStack_b0 = unaff_s8;\n  pcStack_ac = pcVar17;\n  iStack_a8 = iVar7;\n  if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }\n  pcVar17 = *(code **)(puVar14 + 0x2ac34);\nLAB_00029ecc:\n  iVar5 = (*pcVar17)();\n  if (iVar5 == 0) {\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }\n  if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }\n  return iVar7;\n}" { (declaration "uint3 uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int unaff_s0;" primitive_type identifier ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined *unaff_s3;" type_identifier (pointer_declarator "*unaff_s3" * identifier) ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "undefined4 *unaff_s8;" type_identifier (pointer_declarator "*unaff_s8" * identifier) ;) (declaration "int *piVar15;" primitive_type (pointer_declarator "*piVar15" * identifier) ;) (declaration "int *piVar16;" primitive_type (pointer_declarator "*piVar16" * identifier) ;) (declaration "code *pcVar17;" type_identifier (pointer_declarator "*pcVar17" * identifier) ;) (declaration "int aiStack_124 [3];" primitive_type (array_declarator "aiStack_124 [3]" identifier [ number_literal ]) ;) (declaration "short sStack_118;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 uStack_116;" type_identifier identifier ;) (declaration "int iStack_d4;" primitive_type identifier ;) (declaration "int iStack_d0;" primitive_type identifier ;) (declaration "int iStack_cc;" primitive_type identifier ;) (declaration "uint uStack_c8;" type_identifier identifier ;) (declaration "undefined *puStack_c4;" type_identifier (pointer_declarator "*puStack_c4" * identifier) ;) (declaration "int iStack_c0;" primitive_type identifier ;) (declaration "undefined *puStack_bc;" type_identifier (pointer_declarator "*puStack_bc" * identifier) ;) (declaration "int iStack_b8;" primitive_type identifier ;) (declaration "undefined4 uStack_b4;" type_identifier identifier ;) (declaration "undefined4 *puStack_b0;" type_identifier (pointer_declarator "*puStack_b0" * identifier) ;) (declaration "code *pcStack_ac;" type_identifier (pointer_declarator "*pcStack_ac" * identifier) ;) (declaration "int iStack_a8;" primitive_type identifier ;) (declaration "undefined *local_98;" type_identifier (pointer_declarator "*local_98" * identifier) ;) (declaration "uint local_94;" type_identifier identifier ;) (declaration "uint local_90;" type_identifier identifier ;) (declaration "int *local_8c;" primitive_type (pointer_declarator "*local_8c" * identifier) ;) (declaration "int local_7c;" primitive_type identifier ;) (declaration "undefined4 local_78;" type_identifier identifier ;) (declaration "undefined4 local_74;" type_identifier identifier ;) (declaration "short local_70;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 uStack_6e;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_00054a4c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_00054a4c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00054a4c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00054a4c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00054a4c" * (cast_expression "(int *)PTR___stack_chk_guard_00054a4c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_78 = 0x3b000000;" (assignment_expression "local_78 = 0x3b000000" identifier = number_literal) ;) (expression_statement "local_74 = 0;" (assignment_expression "local_74 = 0" identifier = number_literal) ;) (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" identifier = number_literal) ;) (if_statement "if (param_5 < 0x1000000) {\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }" if (parenthesized_expression "(param_5 < 0x1000000)" ( (binary_expression "param_5 < 0x1000000" identifier < number_literal) )) (compound_statement "{\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (if_statement "if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }" if (parenthesized_expression "(param_7 < 0x1000000)" ( (binary_expression "param_7 < 0x1000000" identifier < number_literal) )) (compound_statement "{\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }" { (expression_statement "local_70 = (ushort)(byte)param_7 << 8;" (assignment_expression "local_70 = (ushort)(byte)param_7 << 8" identifier = (binary_expression "(ushort)(byte)param_7 << 8" (cast_expression "(ushort)(byte)param_7" ( (type_descriptor "ushort" type_identifier) ) (cast_expression "(byte)param_7" ( (type_descriptor "byte" type_identifier) ) identifier)) << number_literal)) ;) (expression_statement "local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));" (assignment_expression "local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10))" identifier = (call_expression "CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10))" identifier (argument_list "(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10))" ( (call_expression "CONCAT21(0x3b00,(char)param_4)" identifier (argument_list "(0x3b00,(char)param_4)" ( number_literal , (cast_expression "(char)param_4" ( (type_descriptor "char" primitive_type) ) identifier) ))) , (cast_expression "(char)(param_5 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_5 >> 0x10)" ( (binary_expression "param_5 >> 0x10" identifier >> number_literal) ))) )))) ;) (expression_statement "uVar1 = CONCAT12(param_2,local_78._2_2_);" (assignment_expression "uVar1 = CONCAT12(param_2,local_78._2_2_)" identifier = (call_expression "CONCAT12(param_2,local_78._2_2_)" identifier (argument_list "(param_2,local_78._2_2_)" ( identifier , (field_expression "local_78._2_2_" identifier . field_identifier) )))) ;) (expression_statement "local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);" (assignment_expression "local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff)" identifier = (call_expression "CONCAT13(0x3b,uVar1 & 0x1fffff)" identifier (argument_list "(0x3b,uVar1 & 0x1fffff)" ( number_literal , (binary_expression "uVar1 & 0x1fffff" identifier & number_literal) )))) ;) (expression_statement "local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));" (assignment_expression "local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8))" identifier = (call_expression "CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8))" identifier (argument_list "(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8))" ( (call_expression "CONCAT21((short)param_5,(char)(param_7 >> 0x10))" identifier (argument_list "((short)param_5,(char)(param_7 >> 0x10))" ( (cast_expression "(short)param_5" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) , (cast_expression "(char)(param_7 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_7 >> 0x10)" ( (binary_expression "param_7 >> 0x10" identifier >> number_literal) ))) ))) , (cast_expression "(char)(param_7 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_7 >> 8)" ( (binary_expression "param_7 >> 8" identifier >> number_literal) ))) )))) ;) (if_statement "if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }" if (parenthesized_expression "(param_10 != 0)" ( (binary_expression "param_10 != 0" identifier != number_literal) )) (compound_statement "{\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }" { (expression_statement "unaff_s8 = &uStack_6e;" (assignment_expression "unaff_s8 = &uStack_6e" identifier = (pointer_expression "&uStack_6e" & identifier)) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x10fc)" ( (binary_expression "PTR_s_tatus_00054840 + -0x10fc" identifier + number_literal) ))) ;) (expression_statement "unaff_s3 = PTR_LAB_0005483c + 0x1f1c;" (assignment_expression "unaff_s3 = PTR_LAB_0005483c + 0x1f1c" identifier = (binary_expression "PTR_LAB_0005483c + 0x1f1c" identifier + number_literal)) ;) (expression_statement "puVar10 = &local_78;" (assignment_expression "puVar10 = &local_78" identifier = (pointer_expression "&local_78" & identifier)) ;) (do_statement "do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);" do (compound_statement "{\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        }" { (expression_statement "puVar11 = (undefined4 *)((int)puVar10 + 1);" (assignment_expression "puVar11 = (undefined4 *)((int)puVar10 + 1)" identifier = (cast_expression "(undefined4 *)((int)puVar10 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 1)" ( (binary_expression "(int)puVar10 + 1" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3,*(undefined1 *)puVar10)" ( identifier , (pointer_expression "*(undefined1 *)puVar10" * (cast_expression "(undefined1 *)puVar10" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "param_3 = (undefined1)uVar6;" (assignment_expression "param_3 = (undefined1)uVar6" identifier = (cast_expression "(undefined1)uVar6" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "puVar10 = puVar11;" (assignment_expression "puVar10 = puVar11" identifier = identifier) ;) }) while (parenthesized_expression "(puVar11 != unaff_s8)" ( (binary_expression "puVar11 != unaff_s8" identifier != identifier) )) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x990)" ( (binary_expression "PTR_s_tatus_00054840 + -0x990" identifier + number_literal) ))) ;) (if_statement "if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }" if (parenthesized_expression "(((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0))" ( (binary_expression "((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)" (parenthesized_expression "((1 < (int)param_10) && (param_6 != 0))" ( (binary_expression "(1 < (int)param_10) && (param_6 != 0)" (parenthesized_expression "(1 < (int)param_10)" ( (binary_expression "1 < (int)param_10" number_literal < (cast_expression "(int)param_10" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(param_7 != 0)" ( (binary_expression "param_7 != 0" identifier != number_literal) ))) )) (compound_statement "{\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }" { (if_statement "if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }" if (parenthesized_expression "(0x100 < param_7)" ( (binary_expression "0x100 < param_7" number_literal < identifier) )) (compound_statement "{\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }" { (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0x116c;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0x116c" identifier = (binary_expression "PTR_s_tatus_00054840 + -0x116c" identifier + number_literal)) ;) }) (else_clause "else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }" else (compound_statement "{\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }" { (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0x1a5c;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0x1a5c" identifier = (binary_expression "PTR_s_tatus_00054840 + -0x1a5c" identifier + number_literal)) ;) }))) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x10e4,puVar8)" ( (binary_expression "PTR_s_tatus_00054840 + -0x10e4" identifier + number_literal) , identifier ))) ;) (expression_statement "param_3 = 0xff;" (assignment_expression "param_3 = 0xff" identifier = number_literal) ;) (expression_statement "uVar9 = 0x100;" (assignment_expression "uVar9 = 0x100" identifier = number_literal) ;) (if_statement "if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }" if (parenthesized_expression "(0x100 >= param_7)" ( (binary_expression "0x100 >= param_7" number_literal >= identifier) )) (compound_statement "{\n            uVar9 = param_7;\n          }" { (expression_statement "uVar9 = param_7;" (assignment_expression "uVar9 = param_7" identifier = identifier) ;) })) (expression_statement "(*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);" (call_expression "(*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9)" (parenthesized_expression "(*(code *)PTR_hex2stderr_0005489c)" ( (pointer_expression "*(code *)PTR_hex2stderr_0005489c" * (cast_expression "(code *)PTR_hex2stderr_0005489c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_6,uVar9)" ( identifier , identifier ))) ;) })) })) (if_statement "if (param_8 < 1) {\n        param_8 = 0x3c;\n      }" if (parenthesized_expression "(param_8 < 1)" ( (binary_expression "param_8 < 1" identifier < number_literal) )) (compound_statement "{\n        param_8 = 0x3c;\n      }" { (expression_statement "param_8 = 0x3c;" (assignment_expression "param_8 = 0x3c" identifier = number_literal) ;) })) (expression_statement "unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();" (assignment_expression "unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)()" identifier = (call_expression "(*(code *)PTR_construct_scsi_pt_obj_00054a54)()" (parenthesized_expression "(*(code *)PTR_construct_scsi_pt_obj_00054a54)" ( (pointer_expression "*(code *)PTR_construct_scsi_pt_obj_00054a54" * (cast_expression "(code *)PTR_construct_scsi_pt_obj_00054a54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }" if (parenthesized_expression "(unaff_s0 == 0)" ( (binary_expression "unaff_s0 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0xeb4;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0xeb4" identifier = (binary_expression "PTR_s_tatus_00054840 + -0xeb4" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x1974)" ( (binary_expression "PTR_s_tatus_00054840 + -0x1974" identifier + number_literal) ))) ;) }) (else_clause "else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }" else (compound_statement "{\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }" { (expression_statement "(*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);" (call_expression "(*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10)" (parenthesized_expression "(*(code *)PTR_set_scsi_pt_cdb_00054860)" ( (pointer_expression "*(code *)PTR_set_scsi_pt_cdb_00054860" * (cast_expression "(code *)PTR_set_scsi_pt_cdb_00054860" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0,&local_78,10)" ( identifier , (pointer_expression "&local_78" & identifier) , number_literal ))) ;) (expression_statement "unaff_s3 = (undefined *)((int)&uStack_6e + 2);" (assignment_expression "unaff_s3 = (undefined *)((int)&uStack_6e + 2)" identifier = (cast_expression "(undefined *)((int)&uStack_6e + 2)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&uStack_6e + 2)" ( (binary_expression "(int)&uStack_6e + 2" (cast_expression "(int)&uStack_6e" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&uStack_6e" & identifier)) + number_literal) )))) ;) (expression_statement "(*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);" (call_expression "(*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40)" (parenthesized_expression "(*(code *)PTR_set_scsi_pt_sense_000548f4)" ( (pointer_expression "*(code *)PTR_set_scsi_pt_sense_000548f4" * (cast_expression "(code *)PTR_set_scsi_pt_sense_000548f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0,unaff_s3,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);" (call_expression "(*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7)" (parenthesized_expression "(*(code *)PTR_set_scsi_pt_data_out_00054a74)" ( (pointer_expression "*(code *)PTR_set_scsi_pt_data_out_00054a74" * (cast_expression "(code *)PTR_set_scsi_pt_data_out_00054a74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0,param_6,param_7)" ( identifier , identifier , identifier ))) ;) (expression_statement "param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);" (assignment_expression "param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10)" identifier = (call_expression "(*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10)" (parenthesized_expression "(*(code *)PTR_do_scsi_pt_00054984)" ( (pointer_expression "*(code *)PTR_do_scsi_pt_00054984" * (cast_expression "(code *)PTR_do_scsi_pt_00054984" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0,param_1,param_8,param_10)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" identifier = number_literal) ;) (expression_statement "local_8c = &local_7c;" (assignment_expression "local_8c = &local_7c" identifier = (pointer_expression "&local_7c" & identifier)) ;) (expression_statement "local_90 = param_10;" (assignment_expression "local_90 = param_10" identifier = identifier) ;) (expression_statement "local_94 = (uint)param_9;" (assignment_expression "local_94 = (uint)param_9" identifier = (cast_expression "(uint)param_9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar8 = PTR_LAB_0005483c + 0x3a04;" (assignment_expression "puVar8 = PTR_LAB_0005483c + 0x3a04" identifier = (binary_expression "PTR_LAB_0005483c + 0x3a04" identifier + number_literal)) ;) (expression_statement "local_98 = unaff_s3;" (assignment_expression "local_98 = unaff_s3" identifier = identifier) ;) (expression_statement "iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);" (assignment_expression "iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0)" identifier = (call_expression "(*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0)" (parenthesized_expression "(*(code *)PTR_sg_cmds_process_resp_000548d0)" ( (pointer_expression "*(code *)PTR_sg_cmds_process_resp_000548d0" * (cast_expression "(code *)PTR_sg_cmds_process_resp_000548d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0)" ( identifier )))) ;) (if_statement "if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }" { (expression_statement "uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);" (assignment_expression "uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0)" identifier = (call_expression "(*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0)" (parenthesized_expression "(*(code *)PTR_get_scsi_pt_os_err_00054a9c)" ( (pointer_expression "*(code *)PTR_get_scsi_pt_os_err_00054a9c" * (cast_expression "(code *)PTR_get_scsi_pt_os_err_00054a9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0)" ( identifier )))) ;) (expression_statement "iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);" (assignment_expression "iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6)" identifier = (call_expression "(*(code *)PTR_sg_convert_errno_00054928)(uVar6)" (parenthesized_expression "(*(code *)PTR_sg_convert_errno_00054928)" ( (pointer_expression "*(code *)PTR_sg_convert_errno_00054928" * (cast_expression "(code *)PTR_sg_convert_errno_00054928" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6)" ( identifier )))) ;) }) (else_clause "else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }" else (if_statement "if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }" if (parenthesized_expression "(iVar5 == -2)" ( (binary_expression "iVar5 == -2" identifier == number_literal) )) (compound_statement "{\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }" { (expression_statement "iVar5 = local_7c;" (assignment_expression "iVar5 = local_7c" identifier = identifier) ;) (if_statement "if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }" if (parenthesized_expression "(local_7c - 0x14U < 2)" ( (binary_expression "local_7c - 0x14U < 2" (binary_expression "local_7c - 0x14U" identifier - number_literal) < number_literal) )) (compound_statement "{\n            iVar5 = 0;\n          }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\n          iVar5 = 0;\n        }" else (compound_statement "{\n          iVar5 = 0;\n        }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }))))) (expression_statement "(*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);" (call_expression "(*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0)" (parenthesized_expression "(*(code *)PTR_destruct_scsi_pt_obj_0005496c)" ( (pointer_expression "*(code *)PTR_destruct_scsi_pt_obj_0005496c" * (cast_expression "(code *)PTR_destruct_scsi_pt_obj_0005496c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0)" ( identifier ))) ;) }))) }) (else_clause "else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }" else (compound_statement "{\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0xeb4;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0xeb4" identifier = (binary_expression "PTR_s_tatus_00054840 + -0xeb4" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x1128)" ( (binary_expression "PTR_s_tatus_00054840 + -0x1128" identifier + number_literal) ))) ;) }))) }) (else_clause "else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }" else (compound_statement "{\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0xeb4;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0xeb4" identifier = (binary_expression "PTR_s_tatus_00054840 + -0xeb4" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x1158)" ( (binary_expression "PTR_s_tatus_00054840 + -0x1158" identifier + number_literal) ))) ;) }))) (if_statement "if (local_2c == *(int *)puVar2) {\n    return iVar5;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar2)" ( (binary_expression "local_2c == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) })) (expression_statement "pcVar17 = sg_ll_unmap_v2;" (assignment_expression "pcVar17 = sg_ll_unmap_v2" identifier = identifier) ;) (expression_statement "iVar7 = local_2c;" (assignment_expression "iVar7 = local_2c" identifier = identifier) ;) (expression_statement "puVar14 = PTR___stack_chk_fail_00054a1c;" (assignment_expression "puVar14 = PTR___stack_chk_fail_00054a1c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00054a1c)();" (call_expression "(*(code *)PTR___stack_chk_fail_00054a1c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00054a1c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00054a1c" * (cast_expression "(code *)PTR___stack_chk_fail_00054a1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar4 = local_8c;" (assignment_expression "piVar4 = local_8c" identifier = identifier) ;) (expression_statement "uVar9 = local_94;" (assignment_expression "uVar9 = local_94" identifier = identifier) ;) (expression_statement "puVar3 = local_98;" (assignment_expression "puVar3 = local_98" identifier = identifier) ;) (expression_statement "piVar12 = *(int **)(puVar14 + 0x2ac2c);" (assignment_expression "piVar12 = *(int **)(puVar14 + 0x2ac2c)" identifier = (pointer_expression "*(int **)(puVar14 + 0x2ac2c)" * (cast_expression "(int **)(puVar14 + 0x2ac2c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac2c)" ( (binary_expression "puVar14 + 0x2ac2c" identifier + number_literal) ))))) ;) (expression_statement "iStack_b8 = param_6;" (assignment_expression "iStack_b8 = param_6" identifier = identifier) ;) (expression_statement "puStack_bc = puVar2;" (assignment_expression "puStack_bc = puVar2" identifier = identifier) ;) (expression_statement "uStack_c8 = param_10;" (assignment_expression "uStack_c8 = param_10" identifier = identifier) ;) (expression_statement "aiStack_124[1] = 0x42000000;" (assignment_expression "aiStack_124[1] = 0x42000000" (subscript_expression "aiStack_124[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iStack_d4 = *piVar12;" (assignment_expression "iStack_d4 = *piVar12" identifier = (pointer_expression "*piVar12" * identifier)) ;) (if_statement "if (puVar8 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }" if (parenthesized_expression "(puVar8 != (undefined *)0x0)" ( (binary_expression "puVar8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    aiStack_124[1] = 0x42010000;\n  }" { (expression_statement "aiStack_124[1] = 0x42010000;" (assignment_expression "aiStack_124[1] = 0x42010000" (subscript_expression "aiStack_124[1]" identifier [ number_literal ]) = number_literal) ;) })) (if_statement "if (param_4 < 1) {\n    param_4 = 0x3c;\n  }" if (parenthesized_expression "(param_4 < 1)" ( (binary_expression "param_4 < 1" identifier < number_literal) )) (compound_statement "{\n    param_4 = 0x3c;\n  }" { (expression_statement "param_4 = 0x3c;" (assignment_expression "param_4 = 0x3c" identifier = number_literal) ;) })) (expression_statement "iVar13 = *(int *)(puVar14 + 0x2aa20);" (assignment_expression "iVar13 = *(int *)(puVar14 + 0x2aa20)" identifier = (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) ))))) ;) (expression_statement "aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);" (assignment_expression "aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_)" (subscript_expression "aiStack_124[0]" identifier [ number_literal ]) = (call_expression "CONCAT22((short)local_94,aiStack_124[0]._2_2_)" identifier (argument_list "((short)local_94,aiStack_124[0]._2_2_)" ( (cast_expression "(short)local_94" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) , (field_expression "aiStack_124[0]._2_2_" (subscript_expression "aiStack_124[0]" identifier [ number_literal ]) . field_identifier) )))) ;) (expression_statement "sStack_118 = (ushort)(byte)local_94 << 8;" (assignment_expression "sStack_118 = (ushort)(byte)local_94 << 8" identifier = (binary_expression "(ushort)(byte)local_94 << 8" (cast_expression "(ushort)(byte)local_94" ( (type_descriptor "ushort" type_identifier) ) (cast_expression "(byte)local_94" ( (type_descriptor "byte" type_identifier) ) identifier)) << number_literal)) ;) (expression_statement "aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);" (assignment_expression "aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff)" (subscript_expression "aiStack_124[2]" identifier [ number_literal ]) = (cast_expression "(int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff)" ( (binary_expression "CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff" (call_expression "CONCAT11(param_3,(char)(local_94 >> 8))" identifier (argument_list "(param_3,(char)(local_94 >> 8))" ( identifier , (cast_expression "(char)(local_94 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(local_94 >> 8)" ( (binary_expression "local_94 >> 8" identifier >> number_literal) ))) ))) & number_literal) )))) ;) (expression_statement "iStack_d0 = unaff_s0;" (assignment_expression "iStack_d0 = unaff_s0" identifier = identifier) ;) (expression_statement "iStack_cc = iVar5;" (assignment_expression "iStack_cc = iVar5" identifier = identifier) ;) (expression_statement "puStack_c4 = unaff_s3;" (assignment_expression "puStack_c4 = unaff_s3" identifier = identifier) ;) (expression_statement "iStack_c0 = param_8;" (assignment_expression "iStack_c0 = param_8" identifier = identifier) ;) (expression_statement "uStack_b4 = param_1;" (assignment_expression "uStack_b4 = param_1" identifier = identifier) ;) (expression_statement "puStack_b0 = unaff_s8;" (assignment_expression "puStack_b0 = unaff_s8" identifier = identifier) ;) (expression_statement "pcStack_ac = pcVar17;" (assignment_expression "pcStack_ac = pcVar17" identifier = identifier) ;) (expression_statement "iStack_a8 = iVar7;" (assignment_expression "iStack_a8 = iVar7" identifier = identifier) ;) (if_statement "if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }" if (parenthesized_expression "(local_8c != (int *)0x0)" ( (binary_expression "local_8c != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }" { (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0)" ( (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x1a50" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) )))) + number_literal) , (binary_expression "iVar13 + -0x10c0" identifier + number_literal) ))) ;) (expression_statement "iVar5 = *(int *)(puVar14 + 0x2aa1c);" (assignment_expression "iVar5 = *(int *)(puVar14 + 0x2aa1c)" identifier = (pointer_expression "*(int *)(puVar14 + 0x2aa1c)" * (cast_expression "(int *)(puVar14 + 0x2aa1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa1c)" ( (binary_expression "puVar14 + 0x2aa1c" identifier + number_literal) ))))) ;) (expression_statement "piVar15 = aiStack_124 + 1;" (assignment_expression "piVar15 = aiStack_124 + 1" identifier = (binary_expression "aiStack_124 + 1" identifier + number_literal)) ;) (do_statement "do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);" do (compound_statement "{\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    }" { (expression_statement "piVar16 = (int *)((int)piVar15 + 1);" (assignment_expression "piVar16 = (int *)((int)piVar15 + 1)" identifier = (cast_expression "(int *)((int)piVar15 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar15 + 1)" ( (binary_expression "(int)piVar15 + 1" (cast_expression "(int)piVar15" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(iVar5 + 0x1f1c,*(undefined1 *)piVar15)" ( (binary_expression "iVar5 + 0x1f1c" identifier + number_literal) , (pointer_expression "*(undefined1 *)piVar15" * (cast_expression "(undefined1 *)piVar15" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "piVar15 = piVar16;" (assignment_expression "piVar15 = piVar16" identifier = identifier) ;) }) while (parenthesized_expression "(&uStack_116 != piVar16)" ( (binary_expression "&uStack_116 != piVar16" (pointer_expression "&uStack_116" & identifier) != identifier) )) ;) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x990)" ( (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x990" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) )))) + number_literal) ))) ;) (if_statement "if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }" if (parenthesized_expression "(1 < (int)piVar4)" ( (binary_expression "1 < (int)piVar4" number_literal < (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }" { (expression_statement "pcVar17 = *(code **)(puVar14 + 0x2ac34);" (assignment_expression "pcVar17 = *(code **)(puVar14 + 0x2ac34)" identifier = (pointer_expression "*(code **)(puVar14 + 0x2ac34)" * (cast_expression "(code **)(puVar14 + 0x2ac34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac34)" ( (binary_expression "puVar14 + 0x2ac34" identifier + number_literal) ))))) ;) (if_statement "if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;" if (parenthesized_expression "((puVar3 == (undefined *)0x0) || (uVar9 == 0))" ( (binary_expression "(puVar3 == (undefined *)0x0) || (uVar9 == 0)" (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_00029ecc;" goto statement_identifier ;)) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0)" ( (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x13cc" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) )))) + number_literal) , (binary_expression "iVar13 + -0x10c0" identifier + number_literal) ))) ;) (expression_statement "(**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);" (call_expression "(**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aa7c))" ( (pointer_expression "**(code **)(puVar14 + 0x2aa7c)" * (pointer_expression "*(code **)(puVar14 + 0x2aa7c)" * (cast_expression "(code **)(puVar14 + 0x2aa7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aa7c)" ( (binary_expression "puVar14 + 0x2aa7c" identifier + number_literal) ))))) )) (argument_list "(puVar3,uVar9,0xffffffff)" ( identifier , identifier , number_literal ))) ;) })) })) (expression_statement "pcVar17 = *(code **)(puVar14 + 0x2ac34);" (assignment_expression "pcVar17 = *(code **)(puVar14 + 0x2ac34)" identifier = (pointer_expression "*(code **)(puVar14 + 0x2ac34)" * (cast_expression "(code **)(puVar14 + 0x2ac34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac34)" ( (binary_expression "puVar14 + 0x2ac34" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00029ecc:\n  iVar5 = (*pcVar17)();" statement_identifier : (expression_statement "iVar5 = (*pcVar17)();" (assignment_expression "iVar5 = (*pcVar17)()" identifier = (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" ( (pointer_expression "*pcVar17" * identifier) )) (argument_list "()" ( )))) ;)) (if_statement "if (iVar5 == 0) {\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }" { (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0)" ( (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x1974" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) )))) + number_literal) , (binary_expression "iVar13 + -0x10c0" identifier + number_literal) ))) ;) }) (else_clause "else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }" else (compound_statement "{\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }" { (expression_statement "(**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);" (call_expression "(**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aa40))" ( (pointer_expression "**(code **)(puVar14 + 0x2aa40)" * (pointer_expression "*(code **)(puVar14 + 0x2aa40)" * (cast_expression "(code **)(puVar14 + 0x2aa40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aa40)" ( (binary_expression "puVar14 + 0x2aa40" identifier + number_literal) ))))) )) (argument_list "(iVar5,aiStack_124 + 1,10)" ( identifier , (binary_expression "aiStack_124 + 1" identifier + number_literal) , number_literal ))) ;) (expression_statement "(**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);" (call_expression "(**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aad4))" ( (pointer_expression "**(code **)(puVar14 + 0x2aad4)" * (pointer_expression "*(code **)(puVar14 + 0x2aad4)" * (cast_expression "(code **)(puVar14 + 0x2aad4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aad4)" ( (binary_expression "puVar14 + 0x2aad4" identifier + number_literal) ))))) )) (argument_list "(iVar5,(int)&uStack_116 + 2,0x40)" ( identifier , (binary_expression "(int)&uStack_116 + 2" (cast_expression "(int)&uStack_116" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&uStack_116" & identifier)) + number_literal) , number_literal ))) ;) (expression_statement "(**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);" (call_expression "(**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ac54))" ( (pointer_expression "**(code **)(puVar14 + 0x2ac54)" * (pointer_expression "*(code **)(puVar14 + 0x2ac54)" * (cast_expression "(code **)(puVar14 + 0x2ac54)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac54)" ( (binary_expression "puVar14 + 0x2ac54" identifier + number_literal) ))))) )) (argument_list "(iVar5,puVar3,uVar9)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);" (assignment_expression "uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4)" identifier = (call_expression "(**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ab64))" ( (pointer_expression "**(code **)(puVar14 + 0x2ab64)" * (pointer_expression "*(code **)(puVar14 + 0x2ab64)" * (cast_expression "(code **)(puVar14 + 0x2ab64)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ab64)" ( (binary_expression "puVar14 + 0x2ab64" identifier + number_literal) ))))) )) (argument_list "(iVar5,iStack_a8,param_4,piVar4)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);" (assignment_expression "iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124)" identifier = (call_expression "(**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aab0))" ( (pointer_expression "**(code **)(puVar14 + 0x2aab0)" * (pointer_expression "*(code **)(puVar14 + 0x2aab0)" * (cast_expression "(code **)(puVar14 + 0x2aab0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aab0)" ( (binary_expression "puVar14 + 0x2aab0" identifier + number_literal) ))))) )) (argument_list "(iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124)" ( identifier , (binary_expression "iVar13 + -0x10c0" identifier + number_literal) , identifier , number_literal , (binary_expression "(int)&uStack_116 + 2" (cast_expression "(int)&uStack_116" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&uStack_116" & identifier)) + number_literal) , (binary_expression "local_90 & 0xff" identifier & number_literal) , identifier , identifier )))) ;) (if_statement "if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }" { (expression_statement "uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);" (assignment_expression "uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5)" identifier = (call_expression "(**(code **)(puVar14 + 0x2ac7c))(iVar5)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ac7c))" ( (pointer_expression "**(code **)(puVar14 + 0x2ac7c)" * (pointer_expression "*(code **)(puVar14 + 0x2ac7c)" * (cast_expression "(code **)(puVar14 + 0x2ac7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac7c)" ( (binary_expression "puVar14 + 0x2ac7c" identifier + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);" (assignment_expression "iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6)" identifier = (call_expression "(**(code **)(puVar14 + 0x2ab08))(uVar6)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ab08))" ( (pointer_expression "**(code **)(puVar14 + 0x2ab08)" * (pointer_expression "*(code **)(puVar14 + 0x2ab08)" * (cast_expression "(code **)(puVar14 + 0x2ab08)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ab08)" ( (binary_expression "puVar14 + 0x2ab08" identifier + number_literal) ))))) )) (argument_list "(uVar6)" ( identifier )))) ;) }) (else_clause "else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }" else (if_statement "if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }" if (parenthesized_expression "(iVar7 == -2)" ( (binary_expression "iVar7 == -2" identifier == number_literal) )) (compound_statement "{\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }" { (expression_statement "iVar7 = aiStack_124[0];" (assignment_expression "iVar7 = aiStack_124[0]" identifier = (subscript_expression "aiStack_124[0]" identifier [ number_literal ])) ;) (if_statement "if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }" if (parenthesized_expression "(aiStack_124[0] - 0x14U < 2)" ( (binary_expression "aiStack_124[0] - 0x14U < 2" (binary_expression "aiStack_124[0] - 0x14U" (subscript_expression "aiStack_124[0]" identifier [ number_literal ]) - number_literal) < number_literal) )) (compound_statement "{\n        iVar7 = 0;\n      }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\n      iVar7 = 0;\n    }" else (compound_statement "{\n      iVar7 = 0;\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) }))))) (expression_statement "(**(code **)(puVar14 + 0x2ab4c))(iVar5);" (call_expression "(**(code **)(puVar14 + 0x2ab4c))(iVar5)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ab4c))" ( (pointer_expression "**(code **)(puVar14 + 0x2ab4c)" * (pointer_expression "*(code **)(puVar14 + 0x2ab4c)" * (cast_expression "(code **)(puVar14 + 0x2ab4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ab4c)" ( (binary_expression "puVar14 + 0x2ab4c" identifier + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier ))) ;) }))) (if_statement "if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }" if (parenthesized_expression "(iStack_d4 != *piVar12)" ( (binary_expression "iStack_d4 != *piVar12" identifier != (pointer_expression "*piVar12" * identifier)) )) (compound_statement "{\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }" { (expression_statement "pcVar17 = *(code **)(puVar14 + 0x2abfc);" (assignment_expression "pcVar17 = *(code **)(puVar14 + 0x2abfc)" identifier = (pointer_expression "*(code **)(puVar14 + 0x2abfc)" * (cast_expression "(code **)(puVar14 + 0x2abfc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2abfc)" ( (binary_expression "puVar14 + 0x2abfc" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar17)();" (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" ( (pointer_expression "*pcVar17" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar5 = (**(code **)(pcVar17 + 0x2a938))();" (assignment_expression "iVar5 = (**(code **)(pcVar17 + 0x2a938))()" identifier = (call_expression "(**(code **)(pcVar17 + 0x2a938))()" (parenthesized_expression "(**(code **)(pcVar17 + 0x2a938))" ( (pointer_expression "**(code **)(pcVar17 + 0x2a938)" * (pointer_expression "*(code **)(pcVar17 + 0x2a938)" * (cast_expression "(code **)(pcVar17 + 0x2a938)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar17 + 0x2a938)" ( (binary_expression "pcVar17 + 0x2a938" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar5;" return identifier ;) })) (return_statement "return iVar7;" return identifier ;) })))
(translation_unit "int sg_ll_write_buffer_v2\n              (int sg_fd,int mode,int m_specific,int buffer_id,uint32_t buffer_offset,void *paramp,\n              uint32_t param_len,int timeout_secs,_Bool noisy,int verbose)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  int *piVar3;\n  undefined1 uVar6;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar7;\n  uint32_t uVar8;\n  int iVar9;\n  int unaff_s0;\n  uint8_t *puVar10;\n  uint8_t *puVar11;\n  uint8_t *unaff_s3;\n  int *piVar12;\n  int iVar13;\n  undefined *puVar14;\n  uint8_t *unaff_s8;\n  int *piVar15;\n  int *piVar16;\n  code *pcVar17;\n  int aiStack_124 [3];\n  short sStack_118;\n  undefined4 uStack_116;\n  int iStack_d4;\n  int iStack_d0;\n  int iStack_cc;\n  int iStack_c8;\n  uint8_t *puStack_c4;\n  int iStack_c0;\n  undefined *puStack_bc;\n  void *pvStack_b8;\n  int iStack_b4;\n  uint8_t *puStack_b0;\n  code *pcStack_ac;\n  int iStack_a8;\n  uint8_t *local_98;\n  uint local_94;\n  uint local_90;\n  int *local_8c;\n  int sense_cat;\n  uint8_t wbuf_cdb [10];\n  uint8_t auStack_6e [2];\n  uint8_t sense_b [64];\n  \n  puVar1 = PTR___stack_chk_guard_00054a4c;\n  uVar6 = (undefined1)m_specific;\n  iVar9 = *(int *)PTR___stack_chk_guard_00054a4c;\n  wbuf_cdb[0] = ';';\n  wbuf_cdb[1] = '\0';\n  wbuf_cdb[2] = '\0';\n  wbuf_cdb[3] = '\0';\n  wbuf_cdb[4] = '\0';\n  wbuf_cdb[5] = '\0';\n  wbuf_cdb[6] = '\0';\n  wbuf_cdb[7] = '\0';\n  wbuf_cdb[8] = '\0';\n  wbuf_cdb[9] = '\0';\n  if (buffer_offset < 0x1000000) {\n    uVar5 = 0;\n    uVar6 = 0;\n    if (param_len < 0x1000000) {\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[1] = '\0';\n      wbuf_cdb[2] = (char)buffer_id;\n      wbuf_cdb._8_2_ = (ushort)(byte)param_len << 8;\n      wbuf_cdb[3] = (uint8_t)(buffer_offset >> 0x10);\n      wbuf_cdb._4_2_ = (short)buffer_offset;\n      wbuf_cdb[6] = (char)(param_len >> 0x10);\n      wbuf_cdb._1_3_ = CONCAT12((char)mode,wbuf_cdb._2_2_) & 0x1fffff;\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[7] = (uint8_t)(param_len >> 8);\n      if (verbose != 0) {\n        unaff_s8 = auStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = wbuf_cdb;\n        do {\n          puVar11 = puVar10 + 1;\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);\n          uVar6 = (undefined1)uVar5;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0)) {\n          if (0x100 < param_len) {\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);\n          uVar6 = 0xff;\n          uVar8 = 0x100;\n          if (0x100 >= param_len) {\n            uVar8 = param_len;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);\n        }\n      }\n      if (timeout_secs < 1) {\n        timeout_secs = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar4 = -1;\n        puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10);\n        unaff_s3 = sense_b;\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len);\n        uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose);\n        buffer_id = 0;\n        local_8c = &sense_cat;\n        local_90 = verbose;\n        local_94 = (uint)noisy;\n        puVar7 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar4 == -1) {\n          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);\n        }\n        else if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar4 = -1;\n      puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar4 = -1;\n    puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }\n  if (iVar9 == *(int *)puVar1) {\n    return iVar4;\n  }\n  pcVar17 = sg_ll_unmap_v2;\n  puVar14 = PTR___stack_chk_fail_00054a1c;\n  (*(code *)PTR___stack_chk_fail_00054a1c)();\n  piVar3 = local_8c;\n  uVar2 = local_94;\n  puVar10 = local_98;\n  piVar12 = *(int **)(puVar14 + 0x2ac2c);\n  pvStack_b8 = paramp;\n  puStack_bc = puVar1;\n  iStack_c8 = verbose;\n  aiStack_124[1] = 0x42000000;\n  iStack_d4 = *piVar12;\n  if (puVar7 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }\n  if (buffer_id < 1) {\n    buffer_id = 0x3c;\n  }\n  iVar13 = *(int *)(puVar14 + 0x2aa20);\n  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);\n  sStack_118 = (ushort)(byte)local_94 << 8;\n  aiStack_124[2] = (int)(CONCAT11(uVar6,(char)(local_94 >> 8)) & 0x1fff);\n  iStack_d0 = unaff_s0;\n  iStack_cc = iVar4;\n  puStack_c4 = unaff_s3;\n  iStack_c0 = timeout_secs;\n  iStack_b4 = sg_fd;\n  puStack_b0 = unaff_s8;\n  pcStack_ac = pcVar17;\n  iStack_a8 = iVar9;\n  if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar9 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar9 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar3) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar10 == (uint8_t *)0x0) || (uVar2 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar10,uVar2,0xffffffff);\n    }\n  }\n  pcVar17 = *(code **)(puVar14 + 0x2ac34);\nLAB_00029ecc:\n  iVar9 = (*pcVar17)();\n  if (iVar9 == 0) {\n    iVar4 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar9,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar9,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar9,puVar10,uVar2);\n    uVar5 = (**(code **)(puVar14 + 0x2ab64))(iVar9,iStack_a8,buffer_id,piVar3);\n    iVar4 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar9,iVar13 + -0x10c0,uVar5,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar3,\n                       aiStack_124);\n    if (iVar4 == -1) {\n      uVar5 = (**(code **)(puVar14 + 0x2ac7c))(iVar9);\n      iVar4 = (**(code **)(puVar14 + 0x2ab08))(uVar5);\n    }\n    else if (iVar4 == -2) {\n      iVar4 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar4 = 0;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar9);\n  }\n  if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar9 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar9;\n  }\n  return iVar4;\n}\n\n" (function_definition "int sg_ll_write_buffer_v2\n              (int sg_fd,int mode,int m_specific,int buffer_id,uint32_t buffer_offset,void *paramp,\n              uint32_t param_len,int timeout_secs,_Bool noisy,int verbose)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  int *piVar3;\n  undefined1 uVar6;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar7;\n  uint32_t uVar8;\n  int iVar9;\n  int unaff_s0;\n  uint8_t *puVar10;\n  uint8_t *puVar11;\n  uint8_t *unaff_s3;\n  int *piVar12;\n  int iVar13;\n  undefined *puVar14;\n  uint8_t *unaff_s8;\n  int *piVar15;\n  int *piVar16;\n  code *pcVar17;\n  int aiStack_124 [3];\n  short sStack_118;\n  undefined4 uStack_116;\n  int iStack_d4;\n  int iStack_d0;\n  int iStack_cc;\n  int iStack_c8;\n  uint8_t *puStack_c4;\n  int iStack_c0;\n  undefined *puStack_bc;\n  void *pvStack_b8;\n  int iStack_b4;\n  uint8_t *puStack_b0;\n  code *pcStack_ac;\n  int iStack_a8;\n  uint8_t *local_98;\n  uint local_94;\n  uint local_90;\n  int *local_8c;\n  int sense_cat;\n  uint8_t wbuf_cdb [10];\n  uint8_t auStack_6e [2];\n  uint8_t sense_b [64];\n  \n  puVar1 = PTR___stack_chk_guard_00054a4c;\n  uVar6 = (undefined1)m_specific;\n  iVar9 = *(int *)PTR___stack_chk_guard_00054a4c;\n  wbuf_cdb[0] = ';';\n  wbuf_cdb[1] = '\0';\n  wbuf_cdb[2] = '\0';\n  wbuf_cdb[3] = '\0';\n  wbuf_cdb[4] = '\0';\n  wbuf_cdb[5] = '\0';\n  wbuf_cdb[6] = '\0';\n  wbuf_cdb[7] = '\0';\n  wbuf_cdb[8] = '\0';\n  wbuf_cdb[9] = '\0';\n  if (buffer_offset < 0x1000000) {\n    uVar5 = 0;\n    uVar6 = 0;\n    if (param_len < 0x1000000) {\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[1] = '\0';\n      wbuf_cdb[2] = (char)buffer_id;\n      wbuf_cdb._8_2_ = (ushort)(byte)param_len << 8;\n      wbuf_cdb[3] = (uint8_t)(buffer_offset >> 0x10);\n      wbuf_cdb._4_2_ = (short)buffer_offset;\n      wbuf_cdb[6] = (char)(param_len >> 0x10);\n      wbuf_cdb._1_3_ = CONCAT12((char)mode,wbuf_cdb._2_2_) & 0x1fffff;\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[7] = (uint8_t)(param_len >> 8);\n      if (verbose != 0) {\n        unaff_s8 = auStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = wbuf_cdb;\n        do {\n          puVar11 = puVar10 + 1;\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);\n          uVar6 = (undefined1)uVar5;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0)) {\n          if (0x100 < param_len) {\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);\n          uVar6 = 0xff;\n          uVar8 = 0x100;\n          if (0x100 >= param_len) {\n            uVar8 = param_len;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);\n        }\n      }\n      if (timeout_secs < 1) {\n        timeout_secs = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar4 = -1;\n        puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10);\n        unaff_s3 = sense_b;\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len);\n        uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose);\n        buffer_id = 0;\n        local_8c = &sense_cat;\n        local_90 = verbose;\n        local_94 = (uint)noisy;\n        puVar7 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar4 == -1) {\n          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);\n        }\n        else if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar4 = -1;\n      puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar4 = -1;\n    puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }\n  if (iVar9 == *(int *)puVar1) {\n    return iVar4;\n  }\n  pcVar17 = sg_ll_unmap_v2;\n  puVar14 = PTR___stack_chk_fail_00054a1c;\n  (*(code *)PTR___stack_chk_fail_00054a1c)();\n  piVar3 = local_8c;\n  uVar2 = local_94;\n  puVar10 = local_98;\n  piVar12 = *(int **)(puVar14 + 0x2ac2c);\n  pvStack_b8 = paramp;\n  puStack_bc = puVar1;\n  iStack_c8 = verbose;\n  aiStack_124[1] = 0x42000000;\n  iStack_d4 = *piVar12;\n  if (puVar7 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }\n  if (buffer_id < 1) {\n    buffer_id = 0x3c;\n  }\n  iVar13 = *(int *)(puVar14 + 0x2aa20);\n  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);\n  sStack_118 = (ushort)(byte)local_94 << 8;\n  aiStack_124[2] = (int)(CONCAT11(uVar6,(char)(local_94 >> 8)) & 0x1fff);\n  iStack_d0 = unaff_s0;\n  iStack_cc = iVar4;\n  puStack_c4 = unaff_s3;\n  iStack_c0 = timeout_secs;\n  iStack_b4 = sg_fd;\n  puStack_b0 = unaff_s8;\n  pcStack_ac = pcVar17;\n  iStack_a8 = iVar9;\n  if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar9 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar9 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar3) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar10 == (uint8_t *)0x0) || (uVar2 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar10,uVar2,0xffffffff);\n    }\n  }\n  pcVar17 = *(code **)(puVar14 + 0x2ac34);\nLAB_00029ecc:\n  iVar9 = (*pcVar17)();\n  if (iVar9 == 0) {\n    iVar4 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar9,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar9,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar9,puVar10,uVar2);\n    uVar5 = (**(code **)(puVar14 + 0x2ab64))(iVar9,iStack_a8,buffer_id,piVar3);\n    iVar4 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar9,iVar13 + -0x10c0,uVar5,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar3,\n                       aiStack_124);\n    if (iVar4 == -1) {\n      uVar5 = (**(code **)(puVar14 + 0x2ac7c))(iVar9);\n      iVar4 = (**(code **)(puVar14 + 0x2ab08))(uVar5);\n    }\n    else if (iVar4 == -2) {\n      iVar4 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar4 = 0;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar9);\n  }\n  if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar9 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar9;\n  }\n  return iVar4;\n}" primitive_type (function_declarator "sg_ll_write_buffer_v2\n              (int sg_fd,int mode,int m_specific,int buffer_id,uint32_t buffer_offset,void *paramp,\n              uint32_t param_len,int timeout_secs,_Bool noisy,int verbose)" identifier (parameter_list "(int sg_fd,int mode,int m_specific,int buffer_id,uint32_t buffer_offset,void *paramp,\n              uint32_t param_len,int timeout_secs,_Bool noisy,int verbose)" ( (parameter_declaration "int sg_fd" primitive_type identifier) , (parameter_declaration "int mode" primitive_type identifier) , (parameter_declaration "int m_specific" primitive_type identifier) , (parameter_declaration "int buffer_id" primitive_type identifier) , (parameter_declaration "uint32_t buffer_offset" primitive_type identifier) , (parameter_declaration "void *paramp" primitive_type (pointer_declarator "*paramp" * identifier)) , (parameter_declaration "uint32_t param_len" primitive_type identifier) , (parameter_declaration "int timeout_secs" primitive_type identifier) , (parameter_declaration "_Bool noisy" type_identifier identifier) , (parameter_declaration "int verbose" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  int *piVar3;\n  undefined1 uVar6;\n  int iVar4;\n  undefined4 uVar5;\n  undefined *puVar7;\n  uint32_t uVar8;\n  int iVar9;\n  int unaff_s0;\n  uint8_t *puVar10;\n  uint8_t *puVar11;\n  uint8_t *unaff_s3;\n  int *piVar12;\n  int iVar13;\n  undefined *puVar14;\n  uint8_t *unaff_s8;\n  int *piVar15;\n  int *piVar16;\n  code *pcVar17;\n  int aiStack_124 [3];\n  short sStack_118;\n  undefined4 uStack_116;\n  int iStack_d4;\n  int iStack_d0;\n  int iStack_cc;\n  int iStack_c8;\n  uint8_t *puStack_c4;\n  int iStack_c0;\n  undefined *puStack_bc;\n  void *pvStack_b8;\n  int iStack_b4;\n  uint8_t *puStack_b0;\n  code *pcStack_ac;\n  int iStack_a8;\n  uint8_t *local_98;\n  uint local_94;\n  uint local_90;\n  int *local_8c;\n  int sense_cat;\n  uint8_t wbuf_cdb [10];\n  uint8_t auStack_6e [2];\n  uint8_t sense_b [64];\n  \n  puVar1 = PTR___stack_chk_guard_00054a4c;\n  uVar6 = (undefined1)m_specific;\n  iVar9 = *(int *)PTR___stack_chk_guard_00054a4c;\n  wbuf_cdb[0] = ';';\n  wbuf_cdb[1] = '\0';\n  wbuf_cdb[2] = '\0';\n  wbuf_cdb[3] = '\0';\n  wbuf_cdb[4] = '\0';\n  wbuf_cdb[5] = '\0';\n  wbuf_cdb[6] = '\0';\n  wbuf_cdb[7] = '\0';\n  wbuf_cdb[8] = '\0';\n  wbuf_cdb[9] = '\0';\n  if (buffer_offset < 0x1000000) {\n    uVar5 = 0;\n    uVar6 = 0;\n    if (param_len < 0x1000000) {\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[1] = '\0';\n      wbuf_cdb[2] = (char)buffer_id;\n      wbuf_cdb._8_2_ = (ushort)(byte)param_len << 8;\n      wbuf_cdb[3] = (uint8_t)(buffer_offset >> 0x10);\n      wbuf_cdb._4_2_ = (short)buffer_offset;\n      wbuf_cdb[6] = (char)(param_len >> 0x10);\n      wbuf_cdb._1_3_ = CONCAT12((char)mode,wbuf_cdb._2_2_) & 0x1fffff;\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[7] = (uint8_t)(param_len >> 8);\n      if (verbose != 0) {\n        unaff_s8 = auStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = wbuf_cdb;\n        do {\n          puVar11 = puVar10 + 1;\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);\n          uVar6 = (undefined1)uVar5;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0)) {\n          if (0x100 < param_len) {\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);\n          uVar6 = 0xff;\n          uVar8 = 0x100;\n          if (0x100 >= param_len) {\n            uVar8 = param_len;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);\n        }\n      }\n      if (timeout_secs < 1) {\n        timeout_secs = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar4 = -1;\n        puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10);\n        unaff_s3 = sense_b;\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len);\n        uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose);\n        buffer_id = 0;\n        local_8c = &sense_cat;\n        local_90 = verbose;\n        local_94 = (uint)noisy;\n        puVar7 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar4 == -1) {\n          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);\n        }\n        else if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar4 = -1;\n      puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar4 = -1;\n    puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }\n  if (iVar9 == *(int *)puVar1) {\n    return iVar4;\n  }\n  pcVar17 = sg_ll_unmap_v2;\n  puVar14 = PTR___stack_chk_fail_00054a1c;\n  (*(code *)PTR___stack_chk_fail_00054a1c)();\n  piVar3 = local_8c;\n  uVar2 = local_94;\n  puVar10 = local_98;\n  piVar12 = *(int **)(puVar14 + 0x2ac2c);\n  pvStack_b8 = paramp;\n  puStack_bc = puVar1;\n  iStack_c8 = verbose;\n  aiStack_124[1] = 0x42000000;\n  iStack_d4 = *piVar12;\n  if (puVar7 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }\n  if (buffer_id < 1) {\n    buffer_id = 0x3c;\n  }\n  iVar13 = *(int *)(puVar14 + 0x2aa20);\n  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);\n  sStack_118 = (ushort)(byte)local_94 << 8;\n  aiStack_124[2] = (int)(CONCAT11(uVar6,(char)(local_94 >> 8)) & 0x1fff);\n  iStack_d0 = unaff_s0;\n  iStack_cc = iVar4;\n  puStack_c4 = unaff_s3;\n  iStack_c0 = timeout_secs;\n  iStack_b4 = sg_fd;\n  puStack_b0 = unaff_s8;\n  pcStack_ac = pcVar17;\n  iStack_a8 = iVar9;\n  if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar9 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar9 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar3) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar10 == (uint8_t *)0x0) || (uVar2 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar10,uVar2,0xffffffff);\n    }\n  }\n  pcVar17 = *(code **)(puVar14 + 0x2ac34);\nLAB_00029ecc:\n  iVar9 = (*pcVar17)();\n  if (iVar9 == 0) {\n    iVar4 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar9,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar9,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar9,puVar10,uVar2);\n    uVar5 = (**(code **)(puVar14 + 0x2ab64))(iVar9,iStack_a8,buffer_id,piVar3);\n    iVar4 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar9,iVar13 + -0x10c0,uVar5,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar3,\n                       aiStack_124);\n    if (iVar4 == -1) {\n      uVar5 = (**(code **)(puVar14 + 0x2ac7c))(iVar9);\n      iVar4 = (**(code **)(puVar14 + 0x2ab08))(uVar5);\n    }\n    else if (iVar4 == -2) {\n      iVar4 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar4 = 0;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar9);\n  }\n  if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar9 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar9;\n  }\n  return iVar4;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined1 uVar6;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint32_t uVar8;" primitive_type identifier ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int unaff_s0;" primitive_type identifier ;) (declaration "uint8_t *puVar10;" primitive_type (pointer_declarator "*puVar10" * identifier) ;) (declaration "uint8_t *puVar11;" primitive_type (pointer_declarator "*puVar11" * identifier) ;) (declaration "uint8_t *unaff_s3;" primitive_type (pointer_declarator "*unaff_s3" * identifier) ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "uint8_t *unaff_s8;" primitive_type (pointer_declarator "*unaff_s8" * identifier) ;) (declaration "int *piVar15;" primitive_type (pointer_declarator "*piVar15" * identifier) ;) (declaration "int *piVar16;" primitive_type (pointer_declarator "*piVar16" * identifier) ;) (declaration "code *pcVar17;" type_identifier (pointer_declarator "*pcVar17" * identifier) ;) (declaration "int aiStack_124 [3];" primitive_type (array_declarator "aiStack_124 [3]" identifier [ number_literal ]) ;) (declaration "short sStack_118;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 uStack_116;" type_identifier identifier ;) (declaration "int iStack_d4;" primitive_type identifier ;) (declaration "int iStack_d0;" primitive_type identifier ;) (declaration "int iStack_cc;" primitive_type identifier ;) (declaration "int iStack_c8;" primitive_type identifier ;) (declaration "uint8_t *puStack_c4;" primitive_type (pointer_declarator "*puStack_c4" * identifier) ;) (declaration "int iStack_c0;" primitive_type identifier ;) (declaration "undefined *puStack_bc;" type_identifier (pointer_declarator "*puStack_bc" * identifier) ;) (declaration "void *pvStack_b8;" primitive_type (pointer_declarator "*pvStack_b8" * identifier) ;) (declaration "int iStack_b4;" primitive_type identifier ;) (declaration "uint8_t *puStack_b0;" primitive_type (pointer_declarator "*puStack_b0" * identifier) ;) (declaration "code *pcStack_ac;" type_identifier (pointer_declarator "*pcStack_ac" * identifier) ;) (declaration "int iStack_a8;" primitive_type identifier ;) (declaration "uint8_t *local_98;" primitive_type (pointer_declarator "*local_98" * identifier) ;) (declaration "uint local_94;" type_identifier identifier ;) (declaration "uint local_90;" type_identifier identifier ;) (declaration "int *local_8c;" primitive_type (pointer_declarator "*local_8c" * identifier) ;) (declaration "int sense_cat;" primitive_type identifier ;) (declaration "uint8_t wbuf_cdb [10];" primitive_type (array_declarator "wbuf_cdb [10]" identifier [ number_literal ]) ;) (declaration "uint8_t auStack_6e [2];" primitive_type (array_declarator "auStack_6e [2]" identifier [ number_literal ]) ;) (declaration "uint8_t sense_b [64];" primitive_type (array_declarator "sense_b [64]" identifier [ number_literal ]) ;) (expression_statement "puVar1 = PTR___stack_chk_guard_00054a4c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_00054a4c" identifier = identifier) ;) (expression_statement "uVar6 = (undefined1)m_specific;" (assignment_expression "uVar6 = (undefined1)m_specific" identifier = (cast_expression "(undefined1)m_specific" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "iVar9 = *(int *)PTR___stack_chk_guard_00054a4c;" (assignment_expression "iVar9 = *(int *)PTR___stack_chk_guard_00054a4c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00054a4c" * (cast_expression "(int *)PTR___stack_chk_guard_00054a4c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "wbuf_cdb[0] = ';';" (assignment_expression "wbuf_cdb[0] = ';'" (subscript_expression "wbuf_cdb[0]" identifier [ number_literal ]) = (char_literal "';'" ' character ')) ;) (expression_statement "wbuf_cdb[1] = '\0';" (assignment_expression "wbuf_cdb[1] = '\0'" (subscript_expression "wbuf_cdb[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "wbuf_cdb[2] = '\0';" (assignment_expression "wbuf_cdb[2] = '\0'" (subscript_expression "wbuf_cdb[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "wbuf_cdb[3] = '\0';" (assignment_expression "wbuf_cdb[3] = '\0'" (subscript_expression "wbuf_cdb[3]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "wbuf_cdb[4] = '\0';" (assignment_expression "wbuf_cdb[4] = '\0'" (subscript_expression "wbuf_cdb[4]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "wbuf_cdb[5] = '\0';" (assignment_expression "wbuf_cdb[5] = '\0'" (subscript_expression "wbuf_cdb[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "wbuf_cdb[6] = '\0';" (assignment_expression "wbuf_cdb[6] = '\0'" (subscript_expression "wbuf_cdb[6]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "wbuf_cdb[7] = '\0';" (assignment_expression "wbuf_cdb[7] = '\0'" (subscript_expression "wbuf_cdb[7]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "wbuf_cdb[8] = '\0';" (assignment_expression "wbuf_cdb[8] = '\0'" (subscript_expression "wbuf_cdb[8]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "wbuf_cdb[9] = '\0';" (assignment_expression "wbuf_cdb[9] = '\0'" (subscript_expression "wbuf_cdb[9]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (buffer_offset < 0x1000000) {\n    uVar5 = 0;\n    uVar6 = 0;\n    if (param_len < 0x1000000) {\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[1] = '\0';\n      wbuf_cdb[2] = (char)buffer_id;\n      wbuf_cdb._8_2_ = (ushort)(byte)param_len << 8;\n      wbuf_cdb[3] = (uint8_t)(buffer_offset >> 0x10);\n      wbuf_cdb._4_2_ = (short)buffer_offset;\n      wbuf_cdb[6] = (char)(param_len >> 0x10);\n      wbuf_cdb._1_3_ = CONCAT12((char)mode,wbuf_cdb._2_2_) & 0x1fffff;\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[7] = (uint8_t)(param_len >> 8);\n      if (verbose != 0) {\n        unaff_s8 = auStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = wbuf_cdb;\n        do {\n          puVar11 = puVar10 + 1;\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);\n          uVar6 = (undefined1)uVar5;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0)) {\n          if (0x100 < param_len) {\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);\n          uVar6 = 0xff;\n          uVar8 = 0x100;\n          if (0x100 >= param_len) {\n            uVar8 = param_len;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);\n        }\n      }\n      if (timeout_secs < 1) {\n        timeout_secs = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar4 = -1;\n        puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10);\n        unaff_s3 = sense_b;\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len);\n        uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose);\n        buffer_id = 0;\n        local_8c = &sense_cat;\n        local_90 = verbose;\n        local_94 = (uint)noisy;\n        puVar7 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar4 == -1) {\n          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);\n        }\n        else if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar4 = -1;\n      puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar4 = -1;\n    puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }" if (parenthesized_expression "(buffer_offset < 0x1000000)" ( (binary_expression "buffer_offset < 0x1000000" identifier < number_literal) )) (compound_statement "{\n    uVar5 = 0;\n    uVar6 = 0;\n    if (param_len < 0x1000000) {\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[1] = '\0';\n      wbuf_cdb[2] = (char)buffer_id;\n      wbuf_cdb._8_2_ = (ushort)(byte)param_len << 8;\n      wbuf_cdb[3] = (uint8_t)(buffer_offset >> 0x10);\n      wbuf_cdb._4_2_ = (short)buffer_offset;\n      wbuf_cdb[6] = (char)(param_len >> 0x10);\n      wbuf_cdb._1_3_ = CONCAT12((char)mode,wbuf_cdb._2_2_) & 0x1fffff;\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[7] = (uint8_t)(param_len >> 8);\n      if (verbose != 0) {\n        unaff_s8 = auStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = wbuf_cdb;\n        do {\n          puVar11 = puVar10 + 1;\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);\n          uVar6 = (undefined1)uVar5;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0)) {\n          if (0x100 < param_len) {\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);\n          uVar6 = 0xff;\n          uVar8 = 0x100;\n          if (0x100 >= param_len) {\n            uVar8 = param_len;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);\n        }\n      }\n      if (timeout_secs < 1) {\n        timeout_secs = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar4 = -1;\n        puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10);\n        unaff_s3 = sense_b;\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len);\n        uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose);\n        buffer_id = 0;\n        local_8c = &sense_cat;\n        local_90 = verbose;\n        local_94 = (uint)noisy;\n        puVar7 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar4 == -1) {\n          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);\n        }\n        else if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar4 = -1;\n      puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (if_statement "if (param_len < 0x1000000) {\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[1] = '\0';\n      wbuf_cdb[2] = (char)buffer_id;\n      wbuf_cdb._8_2_ = (ushort)(byte)param_len << 8;\n      wbuf_cdb[3] = (uint8_t)(buffer_offset >> 0x10);\n      wbuf_cdb._4_2_ = (short)buffer_offset;\n      wbuf_cdb[6] = (char)(param_len >> 0x10);\n      wbuf_cdb._1_3_ = CONCAT12((char)mode,wbuf_cdb._2_2_) & 0x1fffff;\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[7] = (uint8_t)(param_len >> 8);\n      if (verbose != 0) {\n        unaff_s8 = auStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = wbuf_cdb;\n        do {\n          puVar11 = puVar10 + 1;\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);\n          uVar6 = (undefined1)uVar5;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0)) {\n          if (0x100 < param_len) {\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);\n          uVar6 = 0xff;\n          uVar8 = 0x100;\n          if (0x100 >= param_len) {\n            uVar8 = param_len;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);\n        }\n      }\n      if (timeout_secs < 1) {\n        timeout_secs = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar4 = -1;\n        puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10);\n        unaff_s3 = sense_b;\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len);\n        uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose);\n        buffer_id = 0;\n        local_8c = &sense_cat;\n        local_90 = verbose;\n        local_94 = (uint)noisy;\n        puVar7 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar4 == -1) {\n          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);\n        }\n        else if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar4 = -1;\n      puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }" if (parenthesized_expression "(param_len < 0x1000000)" ( (binary_expression "param_len < 0x1000000" identifier < number_literal) )) (compound_statement "{\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[1] = '\0';\n      wbuf_cdb[2] = (char)buffer_id;\n      wbuf_cdb._8_2_ = (ushort)(byte)param_len << 8;\n      wbuf_cdb[3] = (uint8_t)(buffer_offset >> 0x10);\n      wbuf_cdb._4_2_ = (short)buffer_offset;\n      wbuf_cdb[6] = (char)(param_len >> 0x10);\n      wbuf_cdb._1_3_ = CONCAT12((char)mode,wbuf_cdb._2_2_) & 0x1fffff;\n      wbuf_cdb[0] = ';';\n      wbuf_cdb[7] = (uint8_t)(param_len >> 8);\n      if (verbose != 0) {\n        unaff_s8 = auStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = wbuf_cdb;\n        do {\n          puVar11 = puVar10 + 1;\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);\n          uVar6 = (undefined1)uVar5;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0)) {\n          if (0x100 < param_len) {\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);\n          uVar6 = 0xff;\n          uVar8 = 0x100;\n          if (0x100 >= param_len) {\n            uVar8 = param_len;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);\n        }\n      }\n      if (timeout_secs < 1) {\n        timeout_secs = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar4 = -1;\n        puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10);\n        unaff_s3 = sense_b;\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len);\n        uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose);\n        buffer_id = 0;\n        local_8c = &sense_cat;\n        local_90 = verbose;\n        local_94 = (uint)noisy;\n        puVar7 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar4 == -1) {\n          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);\n        }\n        else if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }" { (expression_statement "wbuf_cdb[0] = ';';" (assignment_expression "wbuf_cdb[0] = ';'" (subscript_expression "wbuf_cdb[0]" identifier [ number_literal ]) = (char_literal "';'" ' character ')) ;) (expression_statement "wbuf_cdb[1] = '\0';" (assignment_expression "wbuf_cdb[1] = '\0'" (subscript_expression "wbuf_cdb[1]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "wbuf_cdb[2] = (char)buffer_id;" (assignment_expression "wbuf_cdb[2] = (char)buffer_id" (subscript_expression "wbuf_cdb[2]" identifier [ number_literal ]) = (cast_expression "(char)buffer_id" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "wbuf_cdb._8_2_ = (ushort)(byte)param_len << 8;" (assignment_expression "wbuf_cdb._8_2_ = (ushort)(byte)param_len << 8" (field_expression "wbuf_cdb._8_2_" identifier . field_identifier) = (binary_expression "(ushort)(byte)param_len << 8" (cast_expression "(ushort)(byte)param_len" ( (type_descriptor "ushort" type_identifier) ) (cast_expression "(byte)param_len" ( (type_descriptor "byte" type_identifier) ) identifier)) << number_literal)) ;) (expression_statement "wbuf_cdb[3] = (uint8_t)(buffer_offset >> 0x10);" (assignment_expression "wbuf_cdb[3] = (uint8_t)(buffer_offset >> 0x10)" (subscript_expression "wbuf_cdb[3]" identifier [ number_literal ]) = (cast_expression "(uint8_t)(buffer_offset >> 0x10)" ( (type_descriptor "uint8_t" primitive_type) ) (parenthesized_expression "(buffer_offset >> 0x10)" ( (binary_expression "buffer_offset >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "wbuf_cdb._4_2_ = (short)buffer_offset;" (assignment_expression "wbuf_cdb._4_2_ = (short)buffer_offset" (field_expression "wbuf_cdb._4_2_" identifier . field_identifier) = (cast_expression "(short)buffer_offset" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "wbuf_cdb[6] = (char)(param_len >> 0x10);" (assignment_expression "wbuf_cdb[6] = (char)(param_len >> 0x10)" (subscript_expression "wbuf_cdb[6]" identifier [ number_literal ]) = (cast_expression "(char)(param_len >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_len >> 0x10)" ( (binary_expression "param_len >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "wbuf_cdb._1_3_ = CONCAT12((char)mode,wbuf_cdb._2_2_) & 0x1fffff;" (assignment_expression "wbuf_cdb._1_3_ = CONCAT12((char)mode,wbuf_cdb._2_2_) & 0x1fffff" (field_expression "wbuf_cdb._1_3_" identifier . field_identifier) = (binary_expression "CONCAT12((char)mode,wbuf_cdb._2_2_) & 0x1fffff" (call_expression "CONCAT12((char)mode,wbuf_cdb._2_2_)" identifier (argument_list "((char)mode,wbuf_cdb._2_2_)" ( (cast_expression "(char)mode" ( (type_descriptor "char" primitive_type) ) identifier) , (field_expression "wbuf_cdb._2_2_" identifier . field_identifier) ))) & number_literal)) ;) (expression_statement "wbuf_cdb[0] = ';';" (assignment_expression "wbuf_cdb[0] = ';'" (subscript_expression "wbuf_cdb[0]" identifier [ number_literal ]) = (char_literal "';'" ' character ')) ;) (expression_statement "wbuf_cdb[7] = (uint8_t)(param_len >> 8);" (assignment_expression "wbuf_cdb[7] = (uint8_t)(param_len >> 8)" (subscript_expression "wbuf_cdb[7]" identifier [ number_literal ]) = (cast_expression "(uint8_t)(param_len >> 8)" ( (type_descriptor "uint8_t" primitive_type) ) (parenthesized_expression "(param_len >> 8)" ( (binary_expression "param_len >> 8" identifier >> number_literal) )))) ;) (if_statement "if (verbose != 0) {\n        unaff_s8 = auStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = wbuf_cdb;\n        do {\n          puVar11 = puVar10 + 1;\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);\n          uVar6 = (undefined1)uVar5;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0)) {\n          if (0x100 < param_len) {\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);\n          uVar6 = 0xff;\n          uVar8 = 0x100;\n          if (0x100 >= param_len) {\n            uVar8 = param_len;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);\n        }\n      }" if (parenthesized_expression "(verbose != 0)" ( (binary_expression "verbose != 0" identifier != number_literal) )) (compound_statement "{\n        unaff_s8 = auStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = wbuf_cdb;\n        do {\n          puVar11 = puVar10 + 1;\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);\n          uVar6 = (undefined1)uVar5;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0)) {\n          if (0x100 < param_len) {\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);\n          uVar6 = 0xff;\n          uVar8 = 0x100;\n          if (0x100 >= param_len) {\n            uVar8 = param_len;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);\n        }\n      }" { (expression_statement "unaff_s8 = auStack_6e;" (assignment_expression "unaff_s8 = auStack_6e" identifier = identifier) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x10fc)" ( (binary_expression "PTR_s_tatus_00054840 + -0x10fc" identifier + number_literal) ))) ;) (expression_statement "unaff_s3 = PTR_LAB_0005483c + 0x1f1c;" (assignment_expression "unaff_s3 = PTR_LAB_0005483c + 0x1f1c" identifier = (binary_expression "PTR_LAB_0005483c + 0x1f1c" identifier + number_literal)) ;) (expression_statement "puVar10 = wbuf_cdb;" (assignment_expression "puVar10 = wbuf_cdb" identifier = identifier) ;) (do_statement "do {\n          puVar11 = puVar10 + 1;\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);\n          uVar6 = (undefined1)uVar5;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);" do (compound_statement "{\n          puVar11 = puVar10 + 1;\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);\n          uVar6 = (undefined1)uVar5;\n          puVar10 = puVar11;\n        }" { (expression_statement "puVar11 = puVar10 + 1;" (assignment_expression "puVar11 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(unaff_s3,*puVar10)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3,*puVar10)" ( identifier , (pointer_expression "*puVar10" * identifier) ))) ;) (expression_statement "uVar6 = (undefined1)uVar5;" (assignment_expression "uVar6 = (undefined1)uVar5" identifier = (cast_expression "(undefined1)uVar5" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "puVar10 = puVar11;" (assignment_expression "puVar10 = puVar11" identifier = identifier) ;) }) while (parenthesized_expression "(puVar11 != unaff_s8)" ( (binary_expression "puVar11 != unaff_s8" identifier != identifier) )) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x990)" ( (binary_expression "PTR_s_tatus_00054840 + -0x990" identifier + number_literal) ))) ;) (if_statement "if (((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0)) {\n          if (0x100 < param_len) {\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);\n          uVar6 = 0xff;\n          uVar8 = 0x100;\n          if (0x100 >= param_len) {\n            uVar8 = param_len;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);\n        }" if (parenthesized_expression "(((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0))" ( (binary_expression "((1 < verbose) && (paramp != (void *)0x0)) && (param_len != 0)" (parenthesized_expression "((1 < verbose) && (paramp != (void *)0x0))" ( (binary_expression "(1 < verbose) && (paramp != (void *)0x0)" (parenthesized_expression "(1 < verbose)" ( (binary_expression "1 < verbose" number_literal < identifier) )) && (parenthesized_expression "(paramp != (void *)0x0)" ( (binary_expression "paramp != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) && (parenthesized_expression "(param_len != 0)" ( (binary_expression "param_len != 0" identifier != number_literal) ))) )) (compound_statement "{\n          if (0x100 < param_len) {\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);\n          uVar6 = 0xff;\n          uVar8 = 0x100;\n          if (0x100 >= param_len) {\n            uVar8 = param_len;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);\n        }" { (if_statement "if (0x100 < param_len) {\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }" if (parenthesized_expression "(0x100 < param_len)" ( (binary_expression "0x100 < param_len" number_literal < identifier) )) (compound_statement "{\n            puVar7 = PTR_s_tatus_00054840 + -0x116c;\n          }" { (expression_statement "puVar7 = PTR_s_tatus_00054840 + -0x116c;" (assignment_expression "puVar7 = PTR_s_tatus_00054840 + -0x116c" identifier = (binary_expression "PTR_s_tatus_00054840 + -0x116c" identifier + number_literal)) ;) }) (else_clause "else {\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }" else (compound_statement "{\n            puVar7 = PTR_s_tatus_00054840 + -0x1a5c;\n          }" { (expression_statement "puVar7 = PTR_s_tatus_00054840 + -0x1a5c;" (assignment_expression "puVar7 = PTR_s_tatus_00054840 + -0x1a5c" identifier = (binary_expression "PTR_s_tatus_00054840 + -0x1a5c" identifier + number_literal)) ;) }))) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar7)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x10e4,puVar7)" ( (binary_expression "PTR_s_tatus_00054840 + -0x10e4" identifier + number_literal) , identifier ))) ;) (expression_statement "uVar6 = 0xff;" (assignment_expression "uVar6 = 0xff" identifier = number_literal) ;) (expression_statement "uVar8 = 0x100;" (assignment_expression "uVar8 = 0x100" identifier = number_literal) ;) (if_statement "if (0x100 >= param_len) {\n            uVar8 = param_len;\n          }" if (parenthesized_expression "(0x100 >= param_len)" ( (binary_expression "0x100 >= param_len" number_literal >= identifier) )) (compound_statement "{\n            uVar8 = param_len;\n          }" { (expression_statement "uVar8 = param_len;" (assignment_expression "uVar8 = param_len" identifier = identifier) ;) })) (expression_statement "(*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8);" (call_expression "(*(code *)PTR_hex2stderr_0005489c)(paramp,uVar8)" (parenthesized_expression "(*(code *)PTR_hex2stderr_0005489c)" ( (pointer_expression "*(code *)PTR_hex2stderr_0005489c" * (cast_expression "(code *)PTR_hex2stderr_0005489c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(paramp,uVar8)" ( identifier , identifier ))) ;) })) })) (if_statement "if (timeout_secs < 1) {\n        timeout_secs = 0x3c;\n      }" if (parenthesized_expression "(timeout_secs < 1)" ( (binary_expression "timeout_secs < 1" identifier < number_literal) )) (compound_statement "{\n        timeout_secs = 0x3c;\n      }" { (expression_statement "timeout_secs = 0x3c;" (assignment_expression "timeout_secs = 0x3c" identifier = number_literal) ;) })) (expression_statement "unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();" (assignment_expression "unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)()" identifier = (call_expression "(*(code *)PTR_construct_scsi_pt_obj_00054a54)()" (parenthesized_expression "(*(code *)PTR_construct_scsi_pt_obj_00054a54)" ( (pointer_expression "*(code *)PTR_construct_scsi_pt_obj_00054a54" * (cast_expression "(code *)PTR_construct_scsi_pt_obj_00054a54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (unaff_s0 == 0) {\n        iVar4 = -1;\n        puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10);\n        unaff_s3 = sense_b;\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len);\n        uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose);\n        buffer_id = 0;\n        local_8c = &sense_cat;\n        local_90 = verbose;\n        local_94 = (uint)noisy;\n        puVar7 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar4 == -1) {\n          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);\n        }\n        else if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }" if (parenthesized_expression "(unaff_s0 == 0)" ( (binary_expression "unaff_s0 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar4 = -1;\n        puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (expression_statement "puVar7 = PTR_s_tatus_00054840 + -0xeb4;" (assignment_expression "puVar7 = PTR_s_tatus_00054840 + -0xeb4" identifier = (binary_expression "PTR_s_tatus_00054840 + -0xeb4" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x1974)" ( (binary_expression "PTR_s_tatus_00054840 + -0x1974" identifier + number_literal) ))) ;) }) (else_clause "else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10);\n        unaff_s3 = sense_b;\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len);\n        uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose);\n        buffer_id = 0;\n        local_8c = &sense_cat;\n        local_90 = verbose;\n        local_94 = (uint)noisy;\n        puVar7 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar4 == -1) {\n          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);\n        }\n        else if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }" else (compound_statement "{\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10);\n        unaff_s3 = sense_b;\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len);\n        uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose);\n        buffer_id = 0;\n        local_8c = &sense_cat;\n        local_90 = verbose;\n        local_94 = (uint)noisy;\n        puVar7 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar4 == -1) {\n          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);\n        }\n        else if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }" { (expression_statement "(*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10);" (call_expression "(*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,wbuf_cdb,10)" (parenthesized_expression "(*(code *)PTR_set_scsi_pt_cdb_00054860)" ( (pointer_expression "*(code *)PTR_set_scsi_pt_cdb_00054860" * (cast_expression "(code *)PTR_set_scsi_pt_cdb_00054860" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0,wbuf_cdb,10)" ( identifier , identifier , number_literal ))) ;) (expression_statement "unaff_s3 = sense_b;" (assignment_expression "unaff_s3 = sense_b" identifier = identifier) ;) (expression_statement "(*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);" (call_expression "(*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40)" (parenthesized_expression "(*(code *)PTR_set_scsi_pt_sense_000548f4)" ( (pointer_expression "*(code *)PTR_set_scsi_pt_sense_000548f4" * (cast_expression "(code *)PTR_set_scsi_pt_sense_000548f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0,unaff_s3,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len);" (call_expression "(*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,paramp,param_len)" (parenthesized_expression "(*(code *)PTR_set_scsi_pt_data_out_00054a74)" ( (pointer_expression "*(code *)PTR_set_scsi_pt_data_out_00054a74" * (cast_expression "(code *)PTR_set_scsi_pt_data_out_00054a74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0,paramp,param_len)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose);" (assignment_expression "uVar6 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose)" identifier = (call_expression "(*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,sg_fd,timeout_secs,verbose)" (parenthesized_expression "(*(code *)PTR_do_scsi_pt_00054984)" ( (pointer_expression "*(code *)PTR_do_scsi_pt_00054984" * (cast_expression "(code *)PTR_do_scsi_pt_00054984" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0,sg_fd,timeout_secs,verbose)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "buffer_id = 0;" (assignment_expression "buffer_id = 0" identifier = number_literal) ;) (expression_statement "local_8c = &sense_cat;" (assignment_expression "local_8c = &sense_cat" identifier = (pointer_expression "&sense_cat" & identifier)) ;) (expression_statement "local_90 = verbose;" (assignment_expression "local_90 = verbose" identifier = identifier) ;) (expression_statement "local_94 = (uint)noisy;" (assignment_expression "local_94 = (uint)noisy" identifier = (cast_expression "(uint)noisy" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar7 = PTR_LAB_0005483c + 0x3a04;" (assignment_expression "puVar7 = PTR_LAB_0005483c + 0x3a04" identifier = (binary_expression "PTR_LAB_0005483c + 0x3a04" identifier + number_literal)) ;) (expression_statement "local_98 = unaff_s3;" (assignment_expression "local_98 = unaff_s3" identifier = identifier) ;) (expression_statement "iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);" (assignment_expression "iVar4 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0)" identifier = (call_expression "(*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0)" (parenthesized_expression "(*(code *)PTR_sg_cmds_process_resp_000548d0)" ( (pointer_expression "*(code *)PTR_sg_cmds_process_resp_000548d0" * (cast_expression "(code *)PTR_sg_cmds_process_resp_000548d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0)" ( identifier )))) ;) (if_statement "if (iVar4 == -1) {\n          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);\n        }\n        else if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n          uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);\n        }" { (expression_statement "uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);" (assignment_expression "uVar5 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0)" identifier = (call_expression "(*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0)" (parenthesized_expression "(*(code *)PTR_get_scsi_pt_os_err_00054a9c)" ( (pointer_expression "*(code *)PTR_get_scsi_pt_os_err_00054a9c" * (cast_expression "(code *)PTR_get_scsi_pt_os_err_00054a9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0)" ( identifier )))) ;) (expression_statement "iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5);" (assignment_expression "iVar4 = (*(code *)PTR_sg_convert_errno_00054928)(uVar5)" identifier = (call_expression "(*(code *)PTR_sg_convert_errno_00054928)(uVar5)" (parenthesized_expression "(*(code *)PTR_sg_convert_errno_00054928)" ( (pointer_expression "*(code *)PTR_sg_convert_errno_00054928" * (cast_expression "(code *)PTR_sg_convert_errno_00054928" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar5)" ( identifier )))) ;) }) (else_clause "else if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }" else (if_statement "if (iVar4 == -2) {\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }\n        else {\n          iVar4 = 0;\n        }" if (parenthesized_expression "(iVar4 == -2)" ( (binary_expression "iVar4 == -2" identifier == number_literal) )) (compound_statement "{\n          iVar4 = sense_cat;\n          if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }\n        }" { (expression_statement "iVar4 = sense_cat;" (assignment_expression "iVar4 = sense_cat" identifier = identifier) ;) (if_statement "if (sense_cat - 0x14U < 2) {\n            iVar4 = 0;\n          }" if (parenthesized_expression "(sense_cat - 0x14U < 2)" ( (binary_expression "sense_cat - 0x14U < 2" (binary_expression "sense_cat - 0x14U" identifier - number_literal) < number_literal) )) (compound_statement "{\n            iVar4 = 0;\n          }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\n          iVar4 = 0;\n        }" else (compound_statement "{\n          iVar4 = 0;\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))))) (expression_statement "(*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);" (call_expression "(*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0)" (parenthesized_expression "(*(code *)PTR_destruct_scsi_pt_obj_0005496c)" ( (pointer_expression "*(code *)PTR_destruct_scsi_pt_obj_0005496c" * (cast_expression "(code *)PTR_destruct_scsi_pt_obj_0005496c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0)" ( identifier ))) ;) }))) }) (else_clause "else {\n      iVar4 = -1;\n      puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }" else (compound_statement "{\n      iVar4 = -1;\n      puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (expression_statement "puVar7 = PTR_s_tatus_00054840 + -0xeb4;" (assignment_expression "puVar7 = PTR_s_tatus_00054840 + -0xeb4" identifier = (binary_expression "PTR_s_tatus_00054840 + -0xeb4" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x1128)" ( (binary_expression "PTR_s_tatus_00054840 + -0x1128" identifier + number_literal) ))) ;) }))) }) (else_clause "else {\n    iVar4 = -1;\n    puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }" else (compound_statement "{\n    iVar4 = -1;\n    puVar7 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (expression_statement "puVar7 = PTR_s_tatus_00054840 + -0xeb4;" (assignment_expression "puVar7 = PTR_s_tatus_00054840 + -0xeb4" identifier = (binary_expression "PTR_s_tatus_00054840 + -0xeb4" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x1158)" ( (binary_expression "PTR_s_tatus_00054840 + -0x1158" identifier + number_literal) ))) ;) }))) (if_statement "if (iVar9 == *(int *)puVar1) {\n    return iVar4;\n  }" if (parenthesized_expression "(iVar9 == *(int *)puVar1)" ( (binary_expression "iVar9 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "pcVar17 = sg_ll_unmap_v2;" (assignment_expression "pcVar17 = sg_ll_unmap_v2" identifier = identifier) ;) (expression_statement "puVar14 = PTR___stack_chk_fail_00054a1c;" (assignment_expression "puVar14 = PTR___stack_chk_fail_00054a1c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00054a1c)();" (call_expression "(*(code *)PTR___stack_chk_fail_00054a1c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00054a1c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00054a1c" * (cast_expression "(code *)PTR___stack_chk_fail_00054a1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar3 = local_8c;" (assignment_expression "piVar3 = local_8c" identifier = identifier) ;) (expression_statement "uVar2 = local_94;" (assignment_expression "uVar2 = local_94" identifier = identifier) ;) (expression_statement "puVar10 = local_98;" (assignment_expression "puVar10 = local_98" identifier = identifier) ;) (expression_statement "piVar12 = *(int **)(puVar14 + 0x2ac2c);" (assignment_expression "piVar12 = *(int **)(puVar14 + 0x2ac2c)" identifier = (pointer_expression "*(int **)(puVar14 + 0x2ac2c)" * (cast_expression "(int **)(puVar14 + 0x2ac2c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac2c)" ( (binary_expression "puVar14 + 0x2ac2c" identifier + number_literal) ))))) ;) (expression_statement "pvStack_b8 = paramp;" (assignment_expression "pvStack_b8 = paramp" identifier = identifier) ;) (expression_statement "puStack_bc = puVar1;" (assignment_expression "puStack_bc = puVar1" identifier = identifier) ;) (expression_statement "iStack_c8 = verbose;" (assignment_expression "iStack_c8 = verbose" identifier = identifier) ;) (expression_statement "aiStack_124[1] = 0x42000000;" (assignment_expression "aiStack_124[1] = 0x42000000" (subscript_expression "aiStack_124[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iStack_d4 = *piVar12;" (assignment_expression "iStack_d4 = *piVar12" identifier = (pointer_expression "*piVar12" * identifier)) ;) (if_statement "if (puVar7 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }" if (parenthesized_expression "(puVar7 != (undefined *)0x0)" ( (binary_expression "puVar7 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    aiStack_124[1] = 0x42010000;\n  }" { (expression_statement "aiStack_124[1] = 0x42010000;" (assignment_expression "aiStack_124[1] = 0x42010000" (subscript_expression "aiStack_124[1]" identifier [ number_literal ]) = number_literal) ;) })) (if_statement "if (buffer_id < 1) {\n    buffer_id = 0x3c;\n  }" if (parenthesized_expression "(buffer_id < 1)" ( (binary_expression "buffer_id < 1" identifier < number_literal) )) (compound_statement "{\n    buffer_id = 0x3c;\n  }" { (expression_statement "buffer_id = 0x3c;" (assignment_expression "buffer_id = 0x3c" identifier = number_literal) ;) })) (expression_statement "iVar13 = *(int *)(puVar14 + 0x2aa20);" (assignment_expression "iVar13 = *(int *)(puVar14 + 0x2aa20)" identifier = (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) ))))) ;) (expression_statement "aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);" (assignment_expression "aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_)" (subscript_expression "aiStack_124[0]" identifier [ number_literal ]) = (call_expression "CONCAT22((short)local_94,aiStack_124[0]._2_2_)" identifier (argument_list "((short)local_94,aiStack_124[0]._2_2_)" ( (cast_expression "(short)local_94" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) , (field_expression "aiStack_124[0]._2_2_" (subscript_expression "aiStack_124[0]" identifier [ number_literal ]) . field_identifier) )))) ;) (expression_statement "sStack_118 = (ushort)(byte)local_94 << 8;" (assignment_expression "sStack_118 = (ushort)(byte)local_94 << 8" identifier = (binary_expression "(ushort)(byte)local_94 << 8" (cast_expression "(ushort)(byte)local_94" ( (type_descriptor "ushort" type_identifier) ) (cast_expression "(byte)local_94" ( (type_descriptor "byte" type_identifier) ) identifier)) << number_literal)) ;) (expression_statement "aiStack_124[2] = (int)(CONCAT11(uVar6,(char)(local_94 >> 8)) & 0x1fff);" (assignment_expression "aiStack_124[2] = (int)(CONCAT11(uVar6,(char)(local_94 >> 8)) & 0x1fff)" (subscript_expression "aiStack_124[2]" identifier [ number_literal ]) = (cast_expression "(int)(CONCAT11(uVar6,(char)(local_94 >> 8)) & 0x1fff)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(CONCAT11(uVar6,(char)(local_94 >> 8)) & 0x1fff)" ( (binary_expression "CONCAT11(uVar6,(char)(local_94 >> 8)) & 0x1fff" (call_expression "CONCAT11(uVar6,(char)(local_94 >> 8))" identifier (argument_list "(uVar6,(char)(local_94 >> 8))" ( identifier , (cast_expression "(char)(local_94 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(local_94 >> 8)" ( (binary_expression "local_94 >> 8" identifier >> number_literal) ))) ))) & number_literal) )))) ;) (expression_statement "iStack_d0 = unaff_s0;" (assignment_expression "iStack_d0 = unaff_s0" identifier = identifier) ;) (expression_statement "iStack_cc = iVar4;" (assignment_expression "iStack_cc = iVar4" identifier = identifier) ;) (expression_statement "puStack_c4 = unaff_s3;" (assignment_expression "puStack_c4 = unaff_s3" identifier = identifier) ;) (expression_statement "iStack_c0 = timeout_secs;" (assignment_expression "iStack_c0 = timeout_secs" identifier = identifier) ;) (expression_statement "iStack_b4 = sg_fd;" (assignment_expression "iStack_b4 = sg_fd" identifier = identifier) ;) (expression_statement "puStack_b0 = unaff_s8;" (assignment_expression "puStack_b0 = unaff_s8" identifier = identifier) ;) (expression_statement "pcStack_ac = pcVar17;" (assignment_expression "pcStack_ac = pcVar17" identifier = identifier) ;) (expression_statement "iStack_a8 = iVar9;" (assignment_expression "iStack_a8 = iVar9" identifier = identifier) ;) (if_statement "if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar9 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar9 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar3) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar10 == (uint8_t *)0x0) || (uVar2 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar10,uVar2,0xffffffff);\n    }\n  }" if (parenthesized_expression "(local_8c != (int *)0x0)" ( (binary_expression "local_8c != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar9 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar9 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar3) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar10 == (uint8_t *)0x0) || (uVar2 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar10,uVar2,0xffffffff);\n    }\n  }" { (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0)" ( (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x1a50" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) )))) + number_literal) , (binary_expression "iVar13 + -0x10c0" identifier + number_literal) ))) ;) (expression_statement "iVar9 = *(int *)(puVar14 + 0x2aa1c);" (assignment_expression "iVar9 = *(int *)(puVar14 + 0x2aa1c)" identifier = (pointer_expression "*(int *)(puVar14 + 0x2aa1c)" * (cast_expression "(int *)(puVar14 + 0x2aa1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa1c)" ( (binary_expression "puVar14 + 0x2aa1c" identifier + number_literal) ))))) ;) (expression_statement "piVar15 = aiStack_124 + 1;" (assignment_expression "piVar15 = aiStack_124 + 1" identifier = (binary_expression "aiStack_124 + 1" identifier + number_literal)) ;) (do_statement "do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar9 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);" do (compound_statement "{\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar9 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    }" { (expression_statement "piVar16 = (int *)((int)piVar15 + 1);" (assignment_expression "piVar16 = (int *)((int)piVar15 + 1)" identifier = (cast_expression "(int *)((int)piVar15 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar15 + 1)" ( (binary_expression "(int)piVar15 + 1" (cast_expression "(int)piVar15" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(iVar9 + 0x1f1c,*(undefined1 *)piVar15);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(iVar9 + 0x1f1c,*(undefined1 *)piVar15)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(iVar9 + 0x1f1c,*(undefined1 *)piVar15)" ( (binary_expression "iVar9 + 0x1f1c" identifier + number_literal) , (pointer_expression "*(undefined1 *)piVar15" * (cast_expression "(undefined1 *)piVar15" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "piVar15 = piVar16;" (assignment_expression "piVar15 = piVar16" identifier = identifier) ;) }) while (parenthesized_expression "(&uStack_116 != piVar16)" ( (binary_expression "&uStack_116 != piVar16" (pointer_expression "&uStack_116" & identifier) != identifier) )) ;) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x990)" ( (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x990" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) )))) + number_literal) ))) ;) (if_statement "if (1 < (int)piVar3) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar10 == (uint8_t *)0x0) || (uVar2 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar10,uVar2,0xffffffff);\n    }" if (parenthesized_expression "(1 < (int)piVar3)" ( (binary_expression "1 < (int)piVar3" number_literal < (cast_expression "(int)piVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar10 == (uint8_t *)0x0) || (uVar2 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar10,uVar2,0xffffffff);\n    }" { (expression_statement "pcVar17 = *(code **)(puVar14 + 0x2ac34);" (assignment_expression "pcVar17 = *(code **)(puVar14 + 0x2ac34)" identifier = (pointer_expression "*(code **)(puVar14 + 0x2ac34)" * (cast_expression "(code **)(puVar14 + 0x2ac34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac34)" ( (binary_expression "puVar14 + 0x2ac34" identifier + number_literal) ))))) ;) (if_statement "if ((puVar10 == (uint8_t *)0x0) || (uVar2 == 0)) goto LAB_00029ecc;" if (parenthesized_expression "((puVar10 == (uint8_t *)0x0) || (uVar2 == 0))" ( (binary_expression "(puVar10 == (uint8_t *)0x0) || (uVar2 == 0)" (parenthesized_expression "(puVar10 == (uint8_t *)0x0)" ( (binary_expression "puVar10 == (uint8_t *)0x0" identifier == (cast_expression "(uint8_t *)0x0" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_00029ecc;" goto statement_identifier ;)) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0)" ( (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x13cc" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) )))) + number_literal) , (binary_expression "iVar13 + -0x10c0" identifier + number_literal) ))) ;) (expression_statement "(**(code **)(puVar14 + 0x2aa7c))(puVar10,uVar2,0xffffffff);" (call_expression "(**(code **)(puVar14 + 0x2aa7c))(puVar10,uVar2,0xffffffff)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aa7c))" ( (pointer_expression "**(code **)(puVar14 + 0x2aa7c)" * (pointer_expression "*(code **)(puVar14 + 0x2aa7c)" * (cast_expression "(code **)(puVar14 + 0x2aa7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aa7c)" ( (binary_expression "puVar14 + 0x2aa7c" identifier + number_literal) ))))) )) (argument_list "(puVar10,uVar2,0xffffffff)" ( identifier , identifier , number_literal ))) ;) })) })) (expression_statement "pcVar17 = *(code **)(puVar14 + 0x2ac34);" (assignment_expression "pcVar17 = *(code **)(puVar14 + 0x2ac34)" identifier = (pointer_expression "*(code **)(puVar14 + 0x2ac34)" * (cast_expression "(code **)(puVar14 + 0x2ac34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac34)" ( (binary_expression "puVar14 + 0x2ac34" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00029ecc:\n  iVar9 = (*pcVar17)();" statement_identifier : (expression_statement "iVar9 = (*pcVar17)();" (assignment_expression "iVar9 = (*pcVar17)()" identifier = (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" ( (pointer_expression "*pcVar17" * identifier) )) (argument_list "()" ( )))) ;)) (if_statement "if (iVar9 == 0) {\n    iVar4 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar9,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar9,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar9,puVar10,uVar2);\n    uVar5 = (**(code **)(puVar14 + 0x2ab64))(iVar9,iStack_a8,buffer_id,piVar3);\n    iVar4 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar9,iVar13 + -0x10c0,uVar5,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar3,\n                       aiStack_124);\n    if (iVar4 == -1) {\n      uVar5 = (**(code **)(puVar14 + 0x2ac7c))(iVar9);\n      iVar4 = (**(code **)(puVar14 + 0x2ab08))(uVar5);\n    }\n    else if (iVar4 == -2) {\n      iVar4 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar4 = 0;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar9);\n  }" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }" { (expression_statement "iVar4 = -1;" (assignment_expression "iVar4 = -1" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0)" ( (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x1974" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) )))) + number_literal) , (binary_expression "iVar13 + -0x10c0" identifier + number_literal) ))) ;) }) (else_clause "else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar9,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar9,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar9,puVar10,uVar2);\n    uVar5 = (**(code **)(puVar14 + 0x2ab64))(iVar9,iStack_a8,buffer_id,piVar3);\n    iVar4 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar9,iVar13 + -0x10c0,uVar5,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar3,\n                       aiStack_124);\n    if (iVar4 == -1) {\n      uVar5 = (**(code **)(puVar14 + 0x2ac7c))(iVar9);\n      iVar4 = (**(code **)(puVar14 + 0x2ab08))(uVar5);\n    }\n    else if (iVar4 == -2) {\n      iVar4 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar4 = 0;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar9);\n  }" else (compound_statement "{\n    (**(code **)(puVar14 + 0x2aa40))(iVar9,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar9,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar9,puVar10,uVar2);\n    uVar5 = (**(code **)(puVar14 + 0x2ab64))(iVar9,iStack_a8,buffer_id,piVar3);\n    iVar4 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar9,iVar13 + -0x10c0,uVar5,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar3,\n                       aiStack_124);\n    if (iVar4 == -1) {\n      uVar5 = (**(code **)(puVar14 + 0x2ac7c))(iVar9);\n      iVar4 = (**(code **)(puVar14 + 0x2ab08))(uVar5);\n    }\n    else if (iVar4 == -2) {\n      iVar4 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar4 = 0;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar9);\n  }" { (expression_statement "(**(code **)(puVar14 + 0x2aa40))(iVar9,aiStack_124 + 1,10);" (call_expression "(**(code **)(puVar14 + 0x2aa40))(iVar9,aiStack_124 + 1,10)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aa40))" ( (pointer_expression "**(code **)(puVar14 + 0x2aa40)" * (pointer_expression "*(code **)(puVar14 + 0x2aa40)" * (cast_expression "(code **)(puVar14 + 0x2aa40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aa40)" ( (binary_expression "puVar14 + 0x2aa40" identifier + number_literal) ))))) )) (argument_list "(iVar9,aiStack_124 + 1,10)" ( identifier , (binary_expression "aiStack_124 + 1" identifier + number_literal) , number_literal ))) ;) (expression_statement "(**(code **)(puVar14 + 0x2aad4))(iVar9,(int)&uStack_116 + 2,0x40);" (call_expression "(**(code **)(puVar14 + 0x2aad4))(iVar9,(int)&uStack_116 + 2,0x40)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aad4))" ( (pointer_expression "**(code **)(puVar14 + 0x2aad4)" * (pointer_expression "*(code **)(puVar14 + 0x2aad4)" * (cast_expression "(code **)(puVar14 + 0x2aad4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aad4)" ( (binary_expression "puVar14 + 0x2aad4" identifier + number_literal) ))))) )) (argument_list "(iVar9,(int)&uStack_116 + 2,0x40)" ( identifier , (binary_expression "(int)&uStack_116 + 2" (cast_expression "(int)&uStack_116" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&uStack_116" & identifier)) + number_literal) , number_literal ))) ;) (expression_statement "(**(code **)(puVar14 + 0x2ac54))(iVar9,puVar10,uVar2);" (call_expression "(**(code **)(puVar14 + 0x2ac54))(iVar9,puVar10,uVar2)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ac54))" ( (pointer_expression "**(code **)(puVar14 + 0x2ac54)" * (pointer_expression "*(code **)(puVar14 + 0x2ac54)" * (cast_expression "(code **)(puVar14 + 0x2ac54)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac54)" ( (binary_expression "puVar14 + 0x2ac54" identifier + number_literal) ))))) )) (argument_list "(iVar9,puVar10,uVar2)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar5 = (**(code **)(puVar14 + 0x2ab64))(iVar9,iStack_a8,buffer_id,piVar3);" (assignment_expression "uVar5 = (**(code **)(puVar14 + 0x2ab64))(iVar9,iStack_a8,buffer_id,piVar3)" identifier = (call_expression "(**(code **)(puVar14 + 0x2ab64))(iVar9,iStack_a8,buffer_id,piVar3)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ab64))" ( (pointer_expression "**(code **)(puVar14 + 0x2ab64)" * (pointer_expression "*(code **)(puVar14 + 0x2ab64)" * (cast_expression "(code **)(puVar14 + 0x2ab64)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ab64)" ( (binary_expression "puVar14 + 0x2ab64" identifier + number_literal) ))))) )) (argument_list "(iVar9,iStack_a8,buffer_id,piVar3)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar4 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar9,iVar13 + -0x10c0,uVar5,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar3,\n                       aiStack_124);" (assignment_expression "iVar4 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar9,iVar13 + -0x10c0,uVar5,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar3,\n                       aiStack_124)" identifier = (call_expression "(**(code **)(puVar14 + 0x2aab0))\n                      (iVar9,iVar13 + -0x10c0,uVar5,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar3,\n                       aiStack_124)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aab0))" ( (pointer_expression "**(code **)(puVar14 + 0x2aab0)" * (pointer_expression "*(code **)(puVar14 + 0x2aab0)" * (cast_expression "(code **)(puVar14 + 0x2aab0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aab0)" ( (binary_expression "puVar14 + 0x2aab0" identifier + number_literal) ))))) )) (argument_list "(iVar9,iVar13 + -0x10c0,uVar5,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar3,\n                       aiStack_124)" ( identifier , (binary_expression "iVar13 + -0x10c0" identifier + number_literal) , identifier , number_literal , (binary_expression "(int)&uStack_116 + 2" (cast_expression "(int)&uStack_116" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&uStack_116" & identifier)) + number_literal) , (binary_expression "local_90 & 0xff" identifier & number_literal) , identifier , identifier )))) ;) (if_statement "if (iVar4 == -1) {\n      uVar5 = (**(code **)(puVar14 + 0x2ac7c))(iVar9);\n      iVar4 = (**(code **)(puVar14 + 0x2ab08))(uVar5);\n    }\n    else if (iVar4 == -2) {\n      iVar4 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar4 = 0;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar5 = (**(code **)(puVar14 + 0x2ac7c))(iVar9);\n      iVar4 = (**(code **)(puVar14 + 0x2ab08))(uVar5);\n    }" { (expression_statement "uVar5 = (**(code **)(puVar14 + 0x2ac7c))(iVar9);" (assignment_expression "uVar5 = (**(code **)(puVar14 + 0x2ac7c))(iVar9)" identifier = (call_expression "(**(code **)(puVar14 + 0x2ac7c))(iVar9)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ac7c))" ( (pointer_expression "**(code **)(puVar14 + 0x2ac7c)" * (pointer_expression "*(code **)(puVar14 + 0x2ac7c)" * (cast_expression "(code **)(puVar14 + 0x2ac7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac7c)" ( (binary_expression "puVar14 + 0x2ac7c" identifier + number_literal) ))))) )) (argument_list "(iVar9)" ( identifier )))) ;) (expression_statement "iVar4 = (**(code **)(puVar14 + 0x2ab08))(uVar5);" (assignment_expression "iVar4 = (**(code **)(puVar14 + 0x2ab08))(uVar5)" identifier = (call_expression "(**(code **)(puVar14 + 0x2ab08))(uVar5)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ab08))" ( (pointer_expression "**(code **)(puVar14 + 0x2ab08)" * (pointer_expression "*(code **)(puVar14 + 0x2ab08)" * (cast_expression "(code **)(puVar14 + 0x2ab08)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ab08)" ( (binary_expression "puVar14 + 0x2ab08" identifier + number_literal) ))))) )) (argument_list "(uVar5)" ( identifier )))) ;) }) (else_clause "else if (iVar4 == -2) {\n      iVar4 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar4 = 0;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }" else (if_statement "if (iVar4 == -2) {\n      iVar4 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar4 = 0;\n      }\n    }\n    else {\n      iVar4 = 0;\n    }" if (parenthesized_expression "(iVar4 == -2)" ( (binary_expression "iVar4 == -2" identifier == number_literal) )) (compound_statement "{\n      iVar4 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar4 = 0;\n      }\n    }" { (expression_statement "iVar4 = aiStack_124[0];" (assignment_expression "iVar4 = aiStack_124[0]" identifier = (subscript_expression "aiStack_124[0]" identifier [ number_literal ])) ;) (if_statement "if (aiStack_124[0] - 0x14U < 2) {\n        iVar4 = 0;\n      }" if (parenthesized_expression "(aiStack_124[0] - 0x14U < 2)" ( (binary_expression "aiStack_124[0] - 0x14U < 2" (binary_expression "aiStack_124[0] - 0x14U" (subscript_expression "aiStack_124[0]" identifier [ number_literal ]) - number_literal) < number_literal) )) (compound_statement "{\n        iVar4 = 0;\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\n      iVar4 = 0;\n    }" else (compound_statement "{\n      iVar4 = 0;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }))))) (expression_statement "(**(code **)(puVar14 + 0x2ab4c))(iVar9);" (call_expression "(**(code **)(puVar14 + 0x2ab4c))(iVar9)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ab4c))" ( (pointer_expression "**(code **)(puVar14 + 0x2ab4c)" * (pointer_expression "*(code **)(puVar14 + 0x2ab4c)" * (cast_expression "(code **)(puVar14 + 0x2ab4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ab4c)" ( (binary_expression "puVar14 + 0x2ab4c" identifier + number_literal) ))))) )) (argument_list "(iVar9)" ( identifier ))) ;) }))) (if_statement "if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar9 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar9;\n  }" if (parenthesized_expression "(iStack_d4 != *piVar12)" ( (binary_expression "iStack_d4 != *piVar12" identifier != (pointer_expression "*piVar12" * identifier)) )) (compound_statement "{\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar9 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar9;\n  }" { (expression_statement "pcVar17 = *(code **)(puVar14 + 0x2abfc);" (assignment_expression "pcVar17 = *(code **)(puVar14 + 0x2abfc)" identifier = (pointer_expression "*(code **)(puVar14 + 0x2abfc)" * (cast_expression "(code **)(puVar14 + 0x2abfc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2abfc)" ( (binary_expression "puVar14 + 0x2abfc" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar17)();" (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" ( (pointer_expression "*pcVar17" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar9 = (**(code **)(pcVar17 + 0x2a938))();" (assignment_expression "iVar9 = (**(code **)(pcVar17 + 0x2a938))()" identifier = (call_expression "(**(code **)(pcVar17 + 0x2a938))()" (parenthesized_expression "(**(code **)(pcVar17 + 0x2a938))" ( (pointer_expression "**(code **)(pcVar17 + 0x2a938)" * (pointer_expression "*(code **)(pcVar17 + 0x2a938)" * (cast_expression "(code **)(pcVar17 + 0x2a938)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar17 + 0x2a938)" ( (binary_expression "pcVar17 + 0x2a938" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar9;" return identifier ;) })) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "int sg_ll_write_buffer_v2\n              (undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,\n              int param_6,uint param_7,int param_8,byte param_9,uint param_10)\n\n{\n  uint3 uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined *puVar8;\n  uint uVar9;\n  int unaff_s0;\n  undefined4 *puVar10;\n  undefined4 *puVar11;\n  undefined *unaff_s3;\n  int *piVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 *unaff_s8;\n  int *piVar15;\n  int *piVar16;\n  code *pcVar17;\n  int aiStack_124 [3];\n  short sStack_118;\n  undefined4 uStack_116;\n  int iStack_d4;\n  int iStack_d0;\n  int iStack_cc;\n  uint uStack_c8;\n  undefined *puStack_c4;\n  int iStack_c0;\n  undefined *puStack_bc;\n  int iStack_b8;\n  undefined4 uStack_b4;\n  undefined4 *puStack_b0;\n  code *pcStack_ac;\n  int iStack_a8;\n  undefined *local_98;\n  uint local_94;\n  uint local_90;\n  int *local_8c;\n  int local_7c;\n  undefined4 local_78;\n  undefined4 local_74;\n  short local_70;\n  undefined4 uStack_6e;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00054a4c;\n  local_2c = *(int *)PTR___stack_chk_guard_00054a4c;\n  local_78 = 0x3b000000;\n  local_74 = 0;\n  local_70 = 0;\n  if (param_5 < 0x1000000) {\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }\n  if (local_2c == *(int *)puVar2) {\n    return iVar5;\n  }\n  pcVar17 = sg_ll_unmap_v2;\n  iVar7 = local_2c;\n  puVar14 = PTR___stack_chk_fail_00054a1c;\n  (*(code *)PTR___stack_chk_fail_00054a1c)();\n  piVar4 = local_8c;\n  uVar9 = local_94;\n  puVar3 = local_98;\n  piVar12 = *(int **)(puVar14 + 0x2ac2c);\n  iStack_b8 = param_6;\n  puStack_bc = puVar2;\n  uStack_c8 = param_10;\n  aiStack_124[1] = 0x42000000;\n  iStack_d4 = *piVar12;\n  if (puVar8 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }\n  if (param_4 < 1) {\n    param_4 = 0x3c;\n  }\n  iVar13 = *(int *)(puVar14 + 0x2aa20);\n  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);\n  sStack_118 = (ushort)(byte)local_94 << 8;\n  aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);\n  iStack_d0 = unaff_s0;\n  iStack_cc = iVar5;\n  puStack_c4 = unaff_s3;\n  iStack_c0 = param_8;\n  uStack_b4 = param_1;\n  puStack_b0 = unaff_s8;\n  pcStack_ac = pcVar17;\n  iStack_a8 = iVar7;\n  if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }\n  pcVar17 = *(code **)(puVar14 + 0x2ac34);\nLAB_00029ecc:\n  iVar5 = (*pcVar17)();\n  if (iVar5 == 0) {\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }\n  if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }\n  return iVar7;\n}\n\n" (function_definition "int sg_ll_write_buffer_v2\n              (undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,\n              int param_6,uint param_7,int param_8,byte param_9,uint param_10)\n\n{\n  uint3 uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined *puVar8;\n  uint uVar9;\n  int unaff_s0;\n  undefined4 *puVar10;\n  undefined4 *puVar11;\n  undefined *unaff_s3;\n  int *piVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 *unaff_s8;\n  int *piVar15;\n  int *piVar16;\n  code *pcVar17;\n  int aiStack_124 [3];\n  short sStack_118;\n  undefined4 uStack_116;\n  int iStack_d4;\n  int iStack_d0;\n  int iStack_cc;\n  uint uStack_c8;\n  undefined *puStack_c4;\n  int iStack_c0;\n  undefined *puStack_bc;\n  int iStack_b8;\n  undefined4 uStack_b4;\n  undefined4 *puStack_b0;\n  code *pcStack_ac;\n  int iStack_a8;\n  undefined *local_98;\n  uint local_94;\n  uint local_90;\n  int *local_8c;\n  int local_7c;\n  undefined4 local_78;\n  undefined4 local_74;\n  short local_70;\n  undefined4 uStack_6e;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00054a4c;\n  local_2c = *(int *)PTR___stack_chk_guard_00054a4c;\n  local_78 = 0x3b000000;\n  local_74 = 0;\n  local_70 = 0;\n  if (param_5 < 0x1000000) {\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }\n  if (local_2c == *(int *)puVar2) {\n    return iVar5;\n  }\n  pcVar17 = sg_ll_unmap_v2;\n  iVar7 = local_2c;\n  puVar14 = PTR___stack_chk_fail_00054a1c;\n  (*(code *)PTR___stack_chk_fail_00054a1c)();\n  piVar4 = local_8c;\n  uVar9 = local_94;\n  puVar3 = local_98;\n  piVar12 = *(int **)(puVar14 + 0x2ac2c);\n  iStack_b8 = param_6;\n  puStack_bc = puVar2;\n  uStack_c8 = param_10;\n  aiStack_124[1] = 0x42000000;\n  iStack_d4 = *piVar12;\n  if (puVar8 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }\n  if (param_4 < 1) {\n    param_4 = 0x3c;\n  }\n  iVar13 = *(int *)(puVar14 + 0x2aa20);\n  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);\n  sStack_118 = (ushort)(byte)local_94 << 8;\n  aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);\n  iStack_d0 = unaff_s0;\n  iStack_cc = iVar5;\n  puStack_c4 = unaff_s3;\n  iStack_c0 = param_8;\n  uStack_b4 = param_1;\n  puStack_b0 = unaff_s8;\n  pcStack_ac = pcVar17;\n  iStack_a8 = iVar7;\n  if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }\n  pcVar17 = *(code **)(puVar14 + 0x2ac34);\nLAB_00029ecc:\n  iVar5 = (*pcVar17)();\n  if (iVar5 == 0) {\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }\n  if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }\n  return iVar7;\n}" primitive_type (function_declarator "sg_ll_write_buffer_v2\n              (undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,\n              int param_6,uint param_7,int param_8,byte param_9,uint param_10)" identifier (parameter_list "(undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,\n              int param_6,uint param_7,int param_8,byte param_9,uint param_10)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) , (parameter_declaration "undefined1 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "uint param_7" type_identifier identifier) , (parameter_declaration "int param_8" primitive_type identifier) , (parameter_declaration "byte param_9" type_identifier identifier) , (parameter_declaration "uint param_10" type_identifier identifier) ))) (compound_statement "{\n  uint3 uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined *puVar8;\n  uint uVar9;\n  int unaff_s0;\n  undefined4 *puVar10;\n  undefined4 *puVar11;\n  undefined *unaff_s3;\n  int *piVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 *unaff_s8;\n  int *piVar15;\n  int *piVar16;\n  code *pcVar17;\n  int aiStack_124 [3];\n  short sStack_118;\n  undefined4 uStack_116;\n  int iStack_d4;\n  int iStack_d0;\n  int iStack_cc;\n  uint uStack_c8;\n  undefined *puStack_c4;\n  int iStack_c0;\n  undefined *puStack_bc;\n  int iStack_b8;\n  undefined4 uStack_b4;\n  undefined4 *puStack_b0;\n  code *pcStack_ac;\n  int iStack_a8;\n  undefined *local_98;\n  uint local_94;\n  uint local_90;\n  int *local_8c;\n  int local_7c;\n  undefined4 local_78;\n  undefined4 local_74;\n  short local_70;\n  undefined4 uStack_6e;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00054a4c;\n  local_2c = *(int *)PTR___stack_chk_guard_00054a4c;\n  local_78 = 0x3b000000;\n  local_74 = 0;\n  local_70 = 0;\n  if (param_5 < 0x1000000) {\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }\n  if (local_2c == *(int *)puVar2) {\n    return iVar5;\n  }\n  pcVar17 = sg_ll_unmap_v2;\n  iVar7 = local_2c;\n  puVar14 = PTR___stack_chk_fail_00054a1c;\n  (*(code *)PTR___stack_chk_fail_00054a1c)();\n  piVar4 = local_8c;\n  uVar9 = local_94;\n  puVar3 = local_98;\n  piVar12 = *(int **)(puVar14 + 0x2ac2c);\n  iStack_b8 = param_6;\n  puStack_bc = puVar2;\n  uStack_c8 = param_10;\n  aiStack_124[1] = 0x42000000;\n  iStack_d4 = *piVar12;\n  if (puVar8 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }\n  if (param_4 < 1) {\n    param_4 = 0x3c;\n  }\n  iVar13 = *(int *)(puVar14 + 0x2aa20);\n  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);\n  sStack_118 = (ushort)(byte)local_94 << 8;\n  aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);\n  iStack_d0 = unaff_s0;\n  iStack_cc = iVar5;\n  puStack_c4 = unaff_s3;\n  iStack_c0 = param_8;\n  uStack_b4 = param_1;\n  puStack_b0 = unaff_s8;\n  pcStack_ac = pcVar17;\n  iStack_a8 = iVar7;\n  if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }\n  pcVar17 = *(code **)(puVar14 + 0x2ac34);\nLAB_00029ecc:\n  iVar5 = (*pcVar17)();\n  if (iVar5 == 0) {\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }\n  if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }\n  return iVar7;\n}" { (declaration "uint3 uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int unaff_s0;" primitive_type identifier ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined *unaff_s3;" type_identifier (pointer_declarator "*unaff_s3" * identifier) ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "undefined *puVar14;" type_identifier (pointer_declarator "*puVar14" * identifier) ;) (declaration "undefined4 *unaff_s8;" type_identifier (pointer_declarator "*unaff_s8" * identifier) ;) (declaration "int *piVar15;" primitive_type (pointer_declarator "*piVar15" * identifier) ;) (declaration "int *piVar16;" primitive_type (pointer_declarator "*piVar16" * identifier) ;) (declaration "code *pcVar17;" type_identifier (pointer_declarator "*pcVar17" * identifier) ;) (declaration "int aiStack_124 [3];" primitive_type (array_declarator "aiStack_124 [3]" identifier [ number_literal ]) ;) (declaration "short sStack_118;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 uStack_116;" type_identifier identifier ;) (declaration "int iStack_d4;" primitive_type identifier ;) (declaration "int iStack_d0;" primitive_type identifier ;) (declaration "int iStack_cc;" primitive_type identifier ;) (declaration "uint uStack_c8;" type_identifier identifier ;) (declaration "undefined *puStack_c4;" type_identifier (pointer_declarator "*puStack_c4" * identifier) ;) (declaration "int iStack_c0;" primitive_type identifier ;) (declaration "undefined *puStack_bc;" type_identifier (pointer_declarator "*puStack_bc" * identifier) ;) (declaration "int iStack_b8;" primitive_type identifier ;) (declaration "undefined4 uStack_b4;" type_identifier identifier ;) (declaration "undefined4 *puStack_b0;" type_identifier (pointer_declarator "*puStack_b0" * identifier) ;) (declaration "code *pcStack_ac;" type_identifier (pointer_declarator "*pcStack_ac" * identifier) ;) (declaration "int iStack_a8;" primitive_type identifier ;) (declaration "undefined *local_98;" type_identifier (pointer_declarator "*local_98" * identifier) ;) (declaration "uint local_94;" type_identifier identifier ;) (declaration "uint local_90;" type_identifier identifier ;) (declaration "int *local_8c;" primitive_type (pointer_declarator "*local_8c" * identifier) ;) (declaration "int local_7c;" primitive_type identifier ;) (declaration "undefined4 local_78;" type_identifier identifier ;) (declaration "undefined4 local_74;" type_identifier identifier ;) (declaration "short local_70;" (sized_type_specifier "short" short) identifier ;) (declaration "undefined4 uStack_6e;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_00054a4c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_00054a4c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00054a4c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00054a4c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_00054a4c" * (cast_expression "(int *)PTR___stack_chk_guard_00054a4c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "local_78 = 0x3b000000;" (assignment_expression "local_78 = 0x3b000000" identifier = number_literal) ;) (expression_statement "local_74 = 0;" (assignment_expression "local_74 = 0" identifier = number_literal) ;) (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" identifier = number_literal) ;) (if_statement "if (param_5 < 0x1000000) {\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }" if (parenthesized_expression "(param_5 < 0x1000000)" ( (binary_expression "param_5 < 0x1000000" identifier < number_literal) )) (compound_statement "{\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;) (if_statement "if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }" if (parenthesized_expression "(param_7 < 0x1000000)" ( (binary_expression "param_7 < 0x1000000" identifier < number_literal) )) (compound_statement "{\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }" { (expression_statement "local_70 = (ushort)(byte)param_7 << 8;" (assignment_expression "local_70 = (ushort)(byte)param_7 << 8" identifier = (binary_expression "(ushort)(byte)param_7 << 8" (cast_expression "(ushort)(byte)param_7" ( (type_descriptor "ushort" type_identifier) ) (cast_expression "(byte)param_7" ( (type_descriptor "byte" type_identifier) ) identifier)) << number_literal)) ;) (expression_statement "local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));" (assignment_expression "local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10))" identifier = (call_expression "CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10))" identifier (argument_list "(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10))" ( (call_expression "CONCAT21(0x3b00,(char)param_4)" identifier (argument_list "(0x3b00,(char)param_4)" ( number_literal , (cast_expression "(char)param_4" ( (type_descriptor "char" primitive_type) ) identifier) ))) , (cast_expression "(char)(param_5 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_5 >> 0x10)" ( (binary_expression "param_5 >> 0x10" identifier >> number_literal) ))) )))) ;) (expression_statement "uVar1 = CONCAT12(param_2,local_78._2_2_);" (assignment_expression "uVar1 = CONCAT12(param_2,local_78._2_2_)" identifier = (call_expression "CONCAT12(param_2,local_78._2_2_)" identifier (argument_list "(param_2,local_78._2_2_)" ( identifier , (field_expression "local_78._2_2_" identifier . field_identifier) )))) ;) (expression_statement "local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);" (assignment_expression "local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff)" identifier = (call_expression "CONCAT13(0x3b,uVar1 & 0x1fffff)" identifier (argument_list "(0x3b,uVar1 & 0x1fffff)" ( number_literal , (binary_expression "uVar1 & 0x1fffff" identifier & number_literal) )))) ;) (expression_statement "local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));" (assignment_expression "local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8))" identifier = (call_expression "CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8))" identifier (argument_list "(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8))" ( (call_expression "CONCAT21((short)param_5,(char)(param_7 >> 0x10))" identifier (argument_list "((short)param_5,(char)(param_7 >> 0x10))" ( (cast_expression "(short)param_5" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) , (cast_expression "(char)(param_7 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_7 >> 0x10)" ( (binary_expression "param_7 >> 0x10" identifier >> number_literal) ))) ))) , (cast_expression "(char)(param_7 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(param_7 >> 8)" ( (binary_expression "param_7 >> 8" identifier >> number_literal) ))) )))) ;) (if_statement "if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }" if (parenthesized_expression "(param_10 != 0)" ( (binary_expression "param_10 != 0" identifier != number_literal) )) (compound_statement "{\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }" { (expression_statement "unaff_s8 = &uStack_6e;" (assignment_expression "unaff_s8 = &uStack_6e" identifier = (pointer_expression "&uStack_6e" & identifier)) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x10fc)" ( (binary_expression "PTR_s_tatus_00054840 + -0x10fc" identifier + number_literal) ))) ;) (expression_statement "unaff_s3 = PTR_LAB_0005483c + 0x1f1c;" (assignment_expression "unaff_s3 = PTR_LAB_0005483c + 0x1f1c" identifier = (binary_expression "PTR_LAB_0005483c + 0x1f1c" identifier + number_literal)) ;) (expression_statement "puVar10 = &local_78;" (assignment_expression "puVar10 = &local_78" identifier = (pointer_expression "&local_78" & identifier)) ;) (do_statement "do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);" do (compound_statement "{\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        }" { (expression_statement "puVar11 = (undefined4 *)((int)puVar10 + 1);" (assignment_expression "puVar11 = (undefined4 *)((int)puVar10 + 1)" identifier = (cast_expression "(undefined4 *)((int)puVar10 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 1)" ( (binary_expression "(int)puVar10 + 1" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3,*(undefined1 *)puVar10)" ( identifier , (pointer_expression "*(undefined1 *)puVar10" * (cast_expression "(undefined1 *)puVar10" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "param_3 = (undefined1)uVar6;" (assignment_expression "param_3 = (undefined1)uVar6" identifier = (cast_expression "(undefined1)uVar6" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (expression_statement "puVar10 = puVar11;" (assignment_expression "puVar10 = puVar11" identifier = identifier) ;) }) while (parenthesized_expression "(puVar11 != unaff_s8)" ( (binary_expression "puVar11 != unaff_s8" identifier != identifier) )) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x990)" ( (binary_expression "PTR_s_tatus_00054840 + -0x990" identifier + number_literal) ))) ;) (if_statement "if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }" if (parenthesized_expression "(((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0))" ( (binary_expression "((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)" (parenthesized_expression "((1 < (int)param_10) && (param_6 != 0))" ( (binary_expression "(1 < (int)param_10) && (param_6 != 0)" (parenthesized_expression "(1 < (int)param_10)" ( (binary_expression "1 < (int)param_10" number_literal < (cast_expression "(int)param_10" ( (type_descriptor "int" primitive_type) ) identifier)) )) && (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) ))) )) && (parenthesized_expression "(param_7 != 0)" ( (binary_expression "param_7 != 0" identifier != number_literal) ))) )) (compound_statement "{\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }" { (if_statement "if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }" if (parenthesized_expression "(0x100 < param_7)" ( (binary_expression "0x100 < param_7" number_literal < identifier) )) (compound_statement "{\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }" { (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0x116c;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0x116c" identifier = (binary_expression "PTR_s_tatus_00054840 + -0x116c" identifier + number_literal)) ;) }) (else_clause "else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }" else (compound_statement "{\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }" { (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0x1a5c;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0x1a5c" identifier = (binary_expression "PTR_s_tatus_00054840 + -0x1a5c" identifier + number_literal)) ;) }))) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x10e4,puVar8)" ( (binary_expression "PTR_s_tatus_00054840 + -0x10e4" identifier + number_literal) , identifier ))) ;) (expression_statement "param_3 = 0xff;" (assignment_expression "param_3 = 0xff" identifier = number_literal) ;) (expression_statement "uVar9 = 0x100;" (assignment_expression "uVar9 = 0x100" identifier = number_literal) ;) (if_statement "if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }" if (parenthesized_expression "(0x100 >= param_7)" ( (binary_expression "0x100 >= param_7" number_literal >= identifier) )) (compound_statement "{\n            uVar9 = param_7;\n          }" { (expression_statement "uVar9 = param_7;" (assignment_expression "uVar9 = param_7" identifier = identifier) ;) })) (expression_statement "(*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);" (call_expression "(*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9)" (parenthesized_expression "(*(code *)PTR_hex2stderr_0005489c)" ( (pointer_expression "*(code *)PTR_hex2stderr_0005489c" * (cast_expression "(code *)PTR_hex2stderr_0005489c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_6,uVar9)" ( identifier , identifier ))) ;) })) })) (if_statement "if (param_8 < 1) {\n        param_8 = 0x3c;\n      }" if (parenthesized_expression "(param_8 < 1)" ( (binary_expression "param_8 < 1" identifier < number_literal) )) (compound_statement "{\n        param_8 = 0x3c;\n      }" { (expression_statement "param_8 = 0x3c;" (assignment_expression "param_8 = 0x3c" identifier = number_literal) ;) })) (expression_statement "unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();" (assignment_expression "unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)()" identifier = (call_expression "(*(code *)PTR_construct_scsi_pt_obj_00054a54)()" (parenthesized_expression "(*(code *)PTR_construct_scsi_pt_obj_00054a54)" ( (pointer_expression "*(code *)PTR_construct_scsi_pt_obj_00054a54" * (cast_expression "(code *)PTR_construct_scsi_pt_obj_00054a54" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }" if (parenthesized_expression "(unaff_s0 == 0)" ( (binary_expression "unaff_s0 == 0" identifier == number_literal) )) (compound_statement "{\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0xeb4;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0xeb4" identifier = (binary_expression "PTR_s_tatus_00054840 + -0xeb4" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x1974)" ( (binary_expression "PTR_s_tatus_00054840 + -0x1974" identifier + number_literal) ))) ;) }) (else_clause "else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }" else (compound_statement "{\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }" { (expression_statement "(*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);" (call_expression "(*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10)" (parenthesized_expression "(*(code *)PTR_set_scsi_pt_cdb_00054860)" ( (pointer_expression "*(code *)PTR_set_scsi_pt_cdb_00054860" * (cast_expression "(code *)PTR_set_scsi_pt_cdb_00054860" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0,&local_78,10)" ( identifier , (pointer_expression "&local_78" & identifier) , number_literal ))) ;) (expression_statement "unaff_s3 = (undefined *)((int)&uStack_6e + 2);" (assignment_expression "unaff_s3 = (undefined *)((int)&uStack_6e + 2)" identifier = (cast_expression "(undefined *)((int)&uStack_6e + 2)" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&uStack_6e + 2)" ( (binary_expression "(int)&uStack_6e + 2" (cast_expression "(int)&uStack_6e" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&uStack_6e" & identifier)) + number_literal) )))) ;) (expression_statement "(*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);" (call_expression "(*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40)" (parenthesized_expression "(*(code *)PTR_set_scsi_pt_sense_000548f4)" ( (pointer_expression "*(code *)PTR_set_scsi_pt_sense_000548f4" * (cast_expression "(code *)PTR_set_scsi_pt_sense_000548f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0,unaff_s3,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "(*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);" (call_expression "(*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7)" (parenthesized_expression "(*(code *)PTR_set_scsi_pt_data_out_00054a74)" ( (pointer_expression "*(code *)PTR_set_scsi_pt_data_out_00054a74" * (cast_expression "(code *)PTR_set_scsi_pt_data_out_00054a74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0,param_6,param_7)" ( identifier , identifier , identifier ))) ;) (expression_statement "param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);" (assignment_expression "param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10)" identifier = (call_expression "(*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10)" (parenthesized_expression "(*(code *)PTR_do_scsi_pt_00054984)" ( (pointer_expression "*(code *)PTR_do_scsi_pt_00054984" * (cast_expression "(code *)PTR_do_scsi_pt_00054984" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0,param_1,param_8,param_10)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" identifier = number_literal) ;) (expression_statement "local_8c = &local_7c;" (assignment_expression "local_8c = &local_7c" identifier = (pointer_expression "&local_7c" & identifier)) ;) (expression_statement "local_90 = param_10;" (assignment_expression "local_90 = param_10" identifier = identifier) ;) (expression_statement "local_94 = (uint)param_9;" (assignment_expression "local_94 = (uint)param_9" identifier = (cast_expression "(uint)param_9" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar8 = PTR_LAB_0005483c + 0x3a04;" (assignment_expression "puVar8 = PTR_LAB_0005483c + 0x3a04" identifier = (binary_expression "PTR_LAB_0005483c + 0x3a04" identifier + number_literal)) ;) (expression_statement "local_98 = unaff_s3;" (assignment_expression "local_98 = unaff_s3" identifier = identifier) ;) (expression_statement "iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);" (assignment_expression "iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0)" identifier = (call_expression "(*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0)" (parenthesized_expression "(*(code *)PTR_sg_cmds_process_resp_000548d0)" ( (pointer_expression "*(code *)PTR_sg_cmds_process_resp_000548d0" * (cast_expression "(code *)PTR_sg_cmds_process_resp_000548d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0)" ( identifier )))) ;) (if_statement "if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }" { (expression_statement "uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);" (assignment_expression "uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0)" identifier = (call_expression "(*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0)" (parenthesized_expression "(*(code *)PTR_get_scsi_pt_os_err_00054a9c)" ( (pointer_expression "*(code *)PTR_get_scsi_pt_os_err_00054a9c" * (cast_expression "(code *)PTR_get_scsi_pt_os_err_00054a9c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0)" ( identifier )))) ;) (expression_statement "iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);" (assignment_expression "iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6)" identifier = (call_expression "(*(code *)PTR_sg_convert_errno_00054928)(uVar6)" (parenthesized_expression "(*(code *)PTR_sg_convert_errno_00054928)" ( (pointer_expression "*(code *)PTR_sg_convert_errno_00054928" * (cast_expression "(code *)PTR_sg_convert_errno_00054928" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6)" ( identifier )))) ;) }) (else_clause "else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }" else (if_statement "if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }" if (parenthesized_expression "(iVar5 == -2)" ( (binary_expression "iVar5 == -2" identifier == number_literal) )) (compound_statement "{\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }" { (expression_statement "iVar5 = local_7c;" (assignment_expression "iVar5 = local_7c" identifier = identifier) ;) (if_statement "if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }" if (parenthesized_expression "(local_7c - 0x14U < 2)" ( (binary_expression "local_7c - 0x14U < 2" (binary_expression "local_7c - 0x14U" identifier - number_literal) < number_literal) )) (compound_statement "{\n            iVar5 = 0;\n          }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\n          iVar5 = 0;\n        }" else (compound_statement "{\n          iVar5 = 0;\n        }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }))))) (expression_statement "(*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);" (call_expression "(*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0)" (parenthesized_expression "(*(code *)PTR_destruct_scsi_pt_obj_0005496c)" ( (pointer_expression "*(code *)PTR_destruct_scsi_pt_obj_0005496c" * (cast_expression "(code *)PTR_destruct_scsi_pt_obj_0005496c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s0)" ( identifier ))) ;) }))) }) (else_clause "else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }" else (compound_statement "{\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0xeb4;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0xeb4" identifier = (binary_expression "PTR_s_tatus_00054840 + -0xeb4" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x1128)" ( (binary_expression "PTR_s_tatus_00054840 + -0x1128" identifier + number_literal) ))) ;) }))) }) (else_clause "else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }" else (compound_statement "{\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0xeb4;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0xeb4" identifier = (binary_expression "PTR_s_tatus_00054840 + -0xeb4" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" ( (pointer_expression "*(code *)PTR_pr2ws_000548ec" * (cast_expression "(code *)PTR_pr2ws_000548ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_s_tatus_00054840 + -0x1158)" ( (binary_expression "PTR_s_tatus_00054840 + -0x1158" identifier + number_literal) ))) ;) }))) (if_statement "if (local_2c == *(int *)puVar2) {\n    return iVar5;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar2)" ( (binary_expression "local_2c == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar5;\n  }" { (return_statement "return iVar5;" return identifier ;) })) (expression_statement "pcVar17 = sg_ll_unmap_v2;" (assignment_expression "pcVar17 = sg_ll_unmap_v2" identifier = identifier) ;) (expression_statement "iVar7 = local_2c;" (assignment_expression "iVar7 = local_2c" identifier = identifier) ;) (expression_statement "puVar14 = PTR___stack_chk_fail_00054a1c;" (assignment_expression "puVar14 = PTR___stack_chk_fail_00054a1c" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_00054a1c)();" (call_expression "(*(code *)PTR___stack_chk_fail_00054a1c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00054a1c)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_00054a1c" * (cast_expression "(code *)PTR___stack_chk_fail_00054a1c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "piVar4 = local_8c;" (assignment_expression "piVar4 = local_8c" identifier = identifier) ;) (expression_statement "uVar9 = local_94;" (assignment_expression "uVar9 = local_94" identifier = identifier) ;) (expression_statement "puVar3 = local_98;" (assignment_expression "puVar3 = local_98" identifier = identifier) ;) (expression_statement "piVar12 = *(int **)(puVar14 + 0x2ac2c);" (assignment_expression "piVar12 = *(int **)(puVar14 + 0x2ac2c)" identifier = (pointer_expression "*(int **)(puVar14 + 0x2ac2c)" * (cast_expression "(int **)(puVar14 + 0x2ac2c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac2c)" ( (binary_expression "puVar14 + 0x2ac2c" identifier + number_literal) ))))) ;) (expression_statement "iStack_b8 = param_6;" (assignment_expression "iStack_b8 = param_6" identifier = identifier) ;) (expression_statement "puStack_bc = puVar2;" (assignment_expression "puStack_bc = puVar2" identifier = identifier) ;) (expression_statement "uStack_c8 = param_10;" (assignment_expression "uStack_c8 = param_10" identifier = identifier) ;) (expression_statement "aiStack_124[1] = 0x42000000;" (assignment_expression "aiStack_124[1] = 0x42000000" (subscript_expression "aiStack_124[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iStack_d4 = *piVar12;" (assignment_expression "iStack_d4 = *piVar12" identifier = (pointer_expression "*piVar12" * identifier)) ;) (if_statement "if (puVar8 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }" if (parenthesized_expression "(puVar8 != (undefined *)0x0)" ( (binary_expression "puVar8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    aiStack_124[1] = 0x42010000;\n  }" { (expression_statement "aiStack_124[1] = 0x42010000;" (assignment_expression "aiStack_124[1] = 0x42010000" (subscript_expression "aiStack_124[1]" identifier [ number_literal ]) = number_literal) ;) })) (if_statement "if (param_4 < 1) {\n    param_4 = 0x3c;\n  }" if (parenthesized_expression "(param_4 < 1)" ( (binary_expression "param_4 < 1" identifier < number_literal) )) (compound_statement "{\n    param_4 = 0x3c;\n  }" { (expression_statement "param_4 = 0x3c;" (assignment_expression "param_4 = 0x3c" identifier = number_literal) ;) })) (expression_statement "iVar13 = *(int *)(puVar14 + 0x2aa20);" (assignment_expression "iVar13 = *(int *)(puVar14 + 0x2aa20)" identifier = (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) ))))) ;) (expression_statement "aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);" (assignment_expression "aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_)" (subscript_expression "aiStack_124[0]" identifier [ number_literal ]) = (call_expression "CONCAT22((short)local_94,aiStack_124[0]._2_2_)" identifier (argument_list "((short)local_94,aiStack_124[0]._2_2_)" ( (cast_expression "(short)local_94" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) , (field_expression "aiStack_124[0]._2_2_" (subscript_expression "aiStack_124[0]" identifier [ number_literal ]) . field_identifier) )))) ;) (expression_statement "sStack_118 = (ushort)(byte)local_94 << 8;" (assignment_expression "sStack_118 = (ushort)(byte)local_94 << 8" identifier = (binary_expression "(ushort)(byte)local_94 << 8" (cast_expression "(ushort)(byte)local_94" ( (type_descriptor "ushort" type_identifier) ) (cast_expression "(byte)local_94" ( (type_descriptor "byte" type_identifier) ) identifier)) << number_literal)) ;) (expression_statement "aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);" (assignment_expression "aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff)" (subscript_expression "aiStack_124[2]" identifier [ number_literal ]) = (cast_expression "(int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff)" ( (binary_expression "CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff" (call_expression "CONCAT11(param_3,(char)(local_94 >> 8))" identifier (argument_list "(param_3,(char)(local_94 >> 8))" ( identifier , (cast_expression "(char)(local_94 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(local_94 >> 8)" ( (binary_expression "local_94 >> 8" identifier >> number_literal) ))) ))) & number_literal) )))) ;) (expression_statement "iStack_d0 = unaff_s0;" (assignment_expression "iStack_d0 = unaff_s0" identifier = identifier) ;) (expression_statement "iStack_cc = iVar5;" (assignment_expression "iStack_cc = iVar5" identifier = identifier) ;) (expression_statement "puStack_c4 = unaff_s3;" (assignment_expression "puStack_c4 = unaff_s3" identifier = identifier) ;) (expression_statement "iStack_c0 = param_8;" (assignment_expression "iStack_c0 = param_8" identifier = identifier) ;) (expression_statement "uStack_b4 = param_1;" (assignment_expression "uStack_b4 = param_1" identifier = identifier) ;) (expression_statement "puStack_b0 = unaff_s8;" (assignment_expression "puStack_b0 = unaff_s8" identifier = identifier) ;) (expression_statement "pcStack_ac = pcVar17;" (assignment_expression "pcStack_ac = pcVar17" identifier = identifier) ;) (expression_statement "iStack_a8 = iVar7;" (assignment_expression "iStack_a8 = iVar7" identifier = identifier) ;) (if_statement "if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }" if (parenthesized_expression "(local_8c != (int *)0x0)" ( (binary_expression "local_8c != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }" { (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0)" ( (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x1a50" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) )))) + number_literal) , (binary_expression "iVar13 + -0x10c0" identifier + number_literal) ))) ;) (expression_statement "iVar5 = *(int *)(puVar14 + 0x2aa1c);" (assignment_expression "iVar5 = *(int *)(puVar14 + 0x2aa1c)" identifier = (pointer_expression "*(int *)(puVar14 + 0x2aa1c)" * (cast_expression "(int *)(puVar14 + 0x2aa1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa1c)" ( (binary_expression "puVar14 + 0x2aa1c" identifier + number_literal) ))))) ;) (expression_statement "piVar15 = aiStack_124 + 1;" (assignment_expression "piVar15 = aiStack_124 + 1" identifier = (binary_expression "aiStack_124 + 1" identifier + number_literal)) ;) (do_statement "do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);" do (compound_statement "{\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    }" { (expression_statement "piVar16 = (int *)((int)piVar15 + 1);" (assignment_expression "piVar16 = (int *)((int)piVar15 + 1)" identifier = (cast_expression "(int *)((int)piVar15 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar15 + 1)" ( (binary_expression "(int)piVar15 + 1" (cast_expression "(int)piVar15" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(iVar5 + 0x1f1c,*(undefined1 *)piVar15)" ( (binary_expression "iVar5 + 0x1f1c" identifier + number_literal) , (pointer_expression "*(undefined1 *)piVar15" * (cast_expression "(undefined1 *)piVar15" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "piVar15 = piVar16;" (assignment_expression "piVar15 = piVar16" identifier = identifier) ;) }) while (parenthesized_expression "(&uStack_116 != piVar16)" ( (binary_expression "&uStack_116 != piVar16" (pointer_expression "&uStack_116" & identifier) != identifier) )) ;) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x990)" ( (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x990" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) )))) + number_literal) ))) ;) (if_statement "if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }" if (parenthesized_expression "(1 < (int)piVar4)" ( (binary_expression "1 < (int)piVar4" number_literal < (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }" { (expression_statement "pcVar17 = *(code **)(puVar14 + 0x2ac34);" (assignment_expression "pcVar17 = *(code **)(puVar14 + 0x2ac34)" identifier = (pointer_expression "*(code **)(puVar14 + 0x2ac34)" * (cast_expression "(code **)(puVar14 + 0x2ac34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac34)" ( (binary_expression "puVar14 + 0x2ac34" identifier + number_literal) ))))) ;) (if_statement "if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;" if (parenthesized_expression "((puVar3 == (undefined *)0x0) || (uVar9 == 0))" ( (binary_expression "(puVar3 == (undefined *)0x0) || (uVar9 == 0)" (parenthesized_expression "(puVar3 == (undefined *)0x0)" ( (binary_expression "puVar3 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) ))) )) (goto_statement "goto LAB_00029ecc;" goto statement_identifier ;)) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0)" ( (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x13cc" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) )))) + number_literal) , (binary_expression "iVar13 + -0x10c0" identifier + number_literal) ))) ;) (expression_statement "(**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);" (call_expression "(**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aa7c))" ( (pointer_expression "**(code **)(puVar14 + 0x2aa7c)" * (pointer_expression "*(code **)(puVar14 + 0x2aa7c)" * (cast_expression "(code **)(puVar14 + 0x2aa7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aa7c)" ( (binary_expression "puVar14 + 0x2aa7c" identifier + number_literal) ))))) )) (argument_list "(puVar3,uVar9,0xffffffff)" ( identifier , identifier , number_literal ))) ;) })) })) (expression_statement "pcVar17 = *(code **)(puVar14 + 0x2ac34);" (assignment_expression "pcVar17 = *(code **)(puVar14 + 0x2ac34)" identifier = (pointer_expression "*(code **)(puVar14 + 0x2ac34)" * (cast_expression "(code **)(puVar14 + 0x2ac34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac34)" ( (binary_expression "puVar14 + 0x2ac34" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00029ecc:\n  iVar5 = (*pcVar17)();" statement_identifier : (expression_statement "iVar5 = (*pcVar17)();" (assignment_expression "iVar5 = (*pcVar17)()" identifier = (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" ( (pointer_expression "*pcVar17" * identifier) )) (argument_list "()" ( )))) ;)) (if_statement "if (iVar5 == 0) {\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }" { (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" ( (pointer_expression "**(code **)(puVar14 + 0x2aacc)" * (pointer_expression "*(code **)(puVar14 + 0x2aacc)" * (cast_expression "(code **)(puVar14 + 0x2aacc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aacc)" ( (binary_expression "puVar14 + 0x2aacc" identifier + number_literal) ))))) )) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0)" ( (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x1974" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" * (cast_expression "(int *)(puVar14 + 0x2aa20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar14 + 0x2aa20)" ( (binary_expression "puVar14 + 0x2aa20" identifier + number_literal) )))) + number_literal) , (binary_expression "iVar13 + -0x10c0" identifier + number_literal) ))) ;) }) (else_clause "else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }" else (compound_statement "{\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }" { (expression_statement "(**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);" (call_expression "(**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aa40))" ( (pointer_expression "**(code **)(puVar14 + 0x2aa40)" * (pointer_expression "*(code **)(puVar14 + 0x2aa40)" * (cast_expression "(code **)(puVar14 + 0x2aa40)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aa40)" ( (binary_expression "puVar14 + 0x2aa40" identifier + number_literal) ))))) )) (argument_list "(iVar5,aiStack_124 + 1,10)" ( identifier , (binary_expression "aiStack_124 + 1" identifier + number_literal) , number_literal ))) ;) (expression_statement "(**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);" (call_expression "(**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aad4))" ( (pointer_expression "**(code **)(puVar14 + 0x2aad4)" * (pointer_expression "*(code **)(puVar14 + 0x2aad4)" * (cast_expression "(code **)(puVar14 + 0x2aad4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aad4)" ( (binary_expression "puVar14 + 0x2aad4" identifier + number_literal) ))))) )) (argument_list "(iVar5,(int)&uStack_116 + 2,0x40)" ( identifier , (binary_expression "(int)&uStack_116 + 2" (cast_expression "(int)&uStack_116" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&uStack_116" & identifier)) + number_literal) , number_literal ))) ;) (expression_statement "(**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);" (call_expression "(**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ac54))" ( (pointer_expression "**(code **)(puVar14 + 0x2ac54)" * (pointer_expression "*(code **)(puVar14 + 0x2ac54)" * (cast_expression "(code **)(puVar14 + 0x2ac54)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac54)" ( (binary_expression "puVar14 + 0x2ac54" identifier + number_literal) ))))) )) (argument_list "(iVar5,puVar3,uVar9)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);" (assignment_expression "uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4)" identifier = (call_expression "(**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ab64))" ( (pointer_expression "**(code **)(puVar14 + 0x2ab64)" * (pointer_expression "*(code **)(puVar14 + 0x2ab64)" * (cast_expression "(code **)(puVar14 + 0x2ab64)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ab64)" ( (binary_expression "puVar14 + 0x2ab64" identifier + number_literal) ))))) )) (argument_list "(iVar5,iStack_a8,param_4,piVar4)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);" (assignment_expression "iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124)" identifier = (call_expression "(**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aab0))" ( (pointer_expression "**(code **)(puVar14 + 0x2aab0)" * (pointer_expression "*(code **)(puVar14 + 0x2aab0)" * (cast_expression "(code **)(puVar14 + 0x2aab0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2aab0)" ( (binary_expression "puVar14 + 0x2aab0" identifier + number_literal) ))))) )) (argument_list "(iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124)" ( identifier , (binary_expression "iVar13 + -0x10c0" identifier + number_literal) , identifier , number_literal , (binary_expression "(int)&uStack_116 + 2" (cast_expression "(int)&uStack_116" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&uStack_116" & identifier)) + number_literal) , (binary_expression "local_90 & 0xff" identifier & number_literal) , identifier , identifier )))) ;) (if_statement "if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }" if (parenthesized_expression "(iVar7 == -1)" ( (binary_expression "iVar7 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }" { (expression_statement "uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);" (assignment_expression "uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5)" identifier = (call_expression "(**(code **)(puVar14 + 0x2ac7c))(iVar5)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ac7c))" ( (pointer_expression "**(code **)(puVar14 + 0x2ac7c)" * (pointer_expression "*(code **)(puVar14 + 0x2ac7c)" * (cast_expression "(code **)(puVar14 + 0x2ac7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ac7c)" ( (binary_expression "puVar14 + 0x2ac7c" identifier + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier )))) ;) (expression_statement "iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);" (assignment_expression "iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6)" identifier = (call_expression "(**(code **)(puVar14 + 0x2ab08))(uVar6)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ab08))" ( (pointer_expression "**(code **)(puVar14 + 0x2ab08)" * (pointer_expression "*(code **)(puVar14 + 0x2ab08)" * (cast_expression "(code **)(puVar14 + 0x2ab08)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ab08)" ( (binary_expression "puVar14 + 0x2ab08" identifier + number_literal) ))))) )) (argument_list "(uVar6)" ( identifier )))) ;) }) (else_clause "else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }" else (if_statement "if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }" if (parenthesized_expression "(iVar7 == -2)" ( (binary_expression "iVar7 == -2" identifier == number_literal) )) (compound_statement "{\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }" { (expression_statement "iVar7 = aiStack_124[0];" (assignment_expression "iVar7 = aiStack_124[0]" identifier = (subscript_expression "aiStack_124[0]" identifier [ number_literal ])) ;) (if_statement "if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }" if (parenthesized_expression "(aiStack_124[0] - 0x14U < 2)" ( (binary_expression "aiStack_124[0] - 0x14U < 2" (binary_expression "aiStack_124[0] - 0x14U" (subscript_expression "aiStack_124[0]" identifier [ number_literal ]) - number_literal) < number_literal) )) (compound_statement "{\n        iVar7 = 0;\n      }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) })) }) (else_clause "else {\n      iVar7 = 0;\n    }" else (compound_statement "{\n      iVar7 = 0;\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) }))))) (expression_statement "(**(code **)(puVar14 + 0x2ab4c))(iVar5);" (call_expression "(**(code **)(puVar14 + 0x2ab4c))(iVar5)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ab4c))" ( (pointer_expression "**(code **)(puVar14 + 0x2ab4c)" * (pointer_expression "*(code **)(puVar14 + 0x2ab4c)" * (cast_expression "(code **)(puVar14 + 0x2ab4c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2ab4c)" ( (binary_expression "puVar14 + 0x2ab4c" identifier + number_literal) ))))) )) (argument_list "(iVar5)" ( identifier ))) ;) }))) (if_statement "if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }" if (parenthesized_expression "(iStack_d4 != *piVar12)" ( (binary_expression "iStack_d4 != *piVar12" identifier != (pointer_expression "*piVar12" * identifier)) )) (compound_statement "{\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }" { (expression_statement "pcVar17 = *(code **)(puVar14 + 0x2abfc);" (assignment_expression "pcVar17 = *(code **)(puVar14 + 0x2abfc)" identifier = (pointer_expression "*(code **)(puVar14 + 0x2abfc)" * (cast_expression "(code **)(puVar14 + 0x2abfc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar14 + 0x2abfc)" ( (binary_expression "puVar14 + 0x2abfc" identifier + number_literal) ))))) ;) (expression_statement "(*pcVar17)();" (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" ( (pointer_expression "*pcVar17" * identifier) )) (argument_list "()" ( ))) ;) (expression_statement "iVar5 = (**(code **)(pcVar17 + 0x2a938))();" (assignment_expression "iVar5 = (**(code **)(pcVar17 + 0x2a938))()" identifier = (call_expression "(**(code **)(pcVar17 + 0x2a938))()" (parenthesized_expression "(**(code **)(pcVar17 + 0x2a938))" ( (pointer_expression "**(code **)(pcVar17 + 0x2a938)" * (pointer_expression "*(code **)(pcVar17 + 0x2a938)" * (cast_expression "(code **)(pcVar17 + 0x2a938)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(pcVar17 + 0x2a938)" ( (binary_expression "pcVar17 + 0x2a938" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar5;" return identifier ;) })) (return_statement "return iVar7;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) << LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (call_expression IDENT (argument_list ( LIT , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))) , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (field_expression IDENT . field_identifier) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT) , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) ))) , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (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 = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT >= IDENT) )) (compound_statement { (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 ( IDENT , IDENT ))) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (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) ))) ;) }) (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 , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (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) ))) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (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) ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (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) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT) , (field_expression (subscript_expression IDENT [ LIT ]) . field_identifier) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT)) << LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression IDENT (argument_list ( IDENT , (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) ))) ))) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (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 ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) (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 ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) != IDENT) )) ;) (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 ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (goto_statement goto statement_identifier ;)) (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 ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression IDENT + LIT) ))) ;) (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 ( IDENT , IDENT , LIT ))) ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) , (binary_expression IDENT + LIT) ))) ;) }) (else_clause else (compound_statement { (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 ( IDENT , (binary_expression IDENT + LIT) , LIT ))) ;) (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 ( IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + LIT) , LIT ))) ;) (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 ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (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 ( IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (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 ( IDENT , (binary_expression IDENT + LIT) , IDENT , LIT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + LIT) , (binary_expression IDENT & LIT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (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 ( IDENT )))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))))) (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 ( IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (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 ( )))) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "int sg_ll_write_buffer_v2\n              (undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,\n              int param_6,uint param_7,int param_8,byte param_9,uint param_10)\n\n{\n  uint3 uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined *puVar8;\n  uint uVar9;\n  int unaff_s0;\n  undefined4 *puVar10;\n  undefined4 *puVar11;\n  undefined *unaff_s3;\n  int *piVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 *unaff_s8;\n  int *piVar15;\n  int *piVar16;\n  code *pcVar17;\n  int aiStack_124 [3];\n  short sStack_118;\n  undefined4 uStack_116;\n  int iStack_d4;\n  int iStack_d0;\n  int iStack_cc;\n  uint uStack_c8;\n  undefined *puStack_c4;\n  int iStack_c0;\n  undefined *puStack_bc;\n  int iStack_b8;\n  undefined4 uStack_b4;\n  undefined4 *puStack_b0;\n  code *pcStack_ac;\n  int iStack_a8;\n  undefined *local_98;\n  uint local_94;\n  uint local_90;\n  int *local_8c;\n  int local_7c;\n  undefined4 local_78;\n  undefined4 local_74;\n  short local_70;\n  undefined4 uStack_6e;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00054a4c;\n  local_2c = *(int *)PTR___stack_chk_guard_00054a4c;\n  local_78 = 0x3b000000;\n  local_74 = 0;\n  local_70 = 0;\n  if (param_5 < 0x1000000) {\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }\n  if (local_2c == *(int *)puVar2) {\n    return iVar5;\n  }\n  pcVar17 = sg_ll_unmap_v2;\n  iVar7 = local_2c;\n  puVar14 = PTR___stack_chk_fail_00054a1c;\n  (*(code *)PTR___stack_chk_fail_00054a1c)();\n  piVar4 = local_8c;\n  uVar9 = local_94;\n  puVar3 = local_98;\n  piVar12 = *(int **)(puVar14 + 0x2ac2c);\n  iStack_b8 = param_6;\n  puStack_bc = puVar2;\n  uStack_c8 = param_10;\n  aiStack_124[1] = 0x42000000;\n  iStack_d4 = *piVar12;\n  if (puVar8 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }\n  if (param_4 < 1) {\n    param_4 = 0x3c;\n  }\n  iVar13 = *(int *)(puVar14 + 0x2aa20);\n  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);\n  sStack_118 = (ushort)(byte)local_94 << 8;\n  aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);\n  iStack_d0 = unaff_s0;\n  iStack_cc = iVar5;\n  puStack_c4 = unaff_s3;\n  iStack_c0 = param_8;\n  uStack_b4 = param_1;\n  puStack_b0 = unaff_s8;\n  pcStack_ac = pcVar17;\n  iStack_a8 = iVar7;\n  if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }\n  pcVar17 = *(code **)(puVar14 + 0x2ac34);\nLAB_00029ecc:\n  iVar5 = (*pcVar17)();\n  if (iVar5 == 0) {\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }\n  if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }\n  return iVar7;\n}" (primitive_type "int") (function_declarator "sg_ll_write_buffer_v2\n              (undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,\n              int param_6,uint param_7,int param_8,byte param_9,uint param_10)" (identifier "sg_ll_write_buffer_v2") (parameter_list "(undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,\n              int param_6,uint param_7,int param_8,byte param_9,uint param_10)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) (, ",") (parameter_declaration "undefined1 param_3" (type_identifier "undefined1") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "uint param_7" (type_identifier "uint") (identifier "param_7")) (, ",") (parameter_declaration "int param_8" (primitive_type "int") (identifier "param_8")) (, ",") (parameter_declaration "byte param_9" (type_identifier "byte") (identifier "param_9")) (, ",") (parameter_declaration "uint param_10" (type_identifier "uint") (identifier "param_10")) () ")"))) (compound_statement "{\n  uint3 uVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int *piVar4;\n  int iVar5;\n  undefined4 uVar6;\n  int iVar7;\n  undefined *puVar8;\n  uint uVar9;\n  int unaff_s0;\n  undefined4 *puVar10;\n  undefined4 *puVar11;\n  undefined *unaff_s3;\n  int *piVar12;\n  int iVar13;\n  undefined *puVar14;\n  undefined4 *unaff_s8;\n  int *piVar15;\n  int *piVar16;\n  code *pcVar17;\n  int aiStack_124 [3];\n  short sStack_118;\n  undefined4 uStack_116;\n  int iStack_d4;\n  int iStack_d0;\n  int iStack_cc;\n  uint uStack_c8;\n  undefined *puStack_c4;\n  int iStack_c0;\n  undefined *puStack_bc;\n  int iStack_b8;\n  undefined4 uStack_b4;\n  undefined4 *puStack_b0;\n  code *pcStack_ac;\n  int iStack_a8;\n  undefined *local_98;\n  uint local_94;\n  uint local_90;\n  int *local_8c;\n  int local_7c;\n  undefined4 local_78;\n  undefined4 local_74;\n  short local_70;\n  undefined4 uStack_6e;\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_00054a4c;\n  local_2c = *(int *)PTR___stack_chk_guard_00054a4c;\n  local_78 = 0x3b000000;\n  local_74 = 0;\n  local_70 = 0;\n  if (param_5 < 0x1000000) {\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }\n  if (local_2c == *(int *)puVar2) {\n    return iVar5;\n  }\n  pcVar17 = sg_ll_unmap_v2;\n  iVar7 = local_2c;\n  puVar14 = PTR___stack_chk_fail_00054a1c;\n  (*(code *)PTR___stack_chk_fail_00054a1c)();\n  piVar4 = local_8c;\n  uVar9 = local_94;\n  puVar3 = local_98;\n  piVar12 = *(int **)(puVar14 + 0x2ac2c);\n  iStack_b8 = param_6;\n  puStack_bc = puVar2;\n  uStack_c8 = param_10;\n  aiStack_124[1] = 0x42000000;\n  iStack_d4 = *piVar12;\n  if (puVar8 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }\n  if (param_4 < 1) {\n    param_4 = 0x3c;\n  }\n  iVar13 = *(int *)(puVar14 + 0x2aa20);\n  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);\n  sStack_118 = (ushort)(byte)local_94 << 8;\n  aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);\n  iStack_d0 = unaff_s0;\n  iStack_cc = iVar5;\n  puStack_c4 = unaff_s3;\n  iStack_c0 = param_8;\n  uStack_b4 = param_1;\n  puStack_b0 = unaff_s8;\n  pcStack_ac = pcVar17;\n  iStack_a8 = iVar7;\n  if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }\n  pcVar17 = *(code **)(puVar14 + 0x2ac34);\nLAB_00029ecc:\n  iVar5 = (*pcVar17)();\n  if (iVar5 == 0) {\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }\n  if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }\n  return iVar7;\n}" ({ "{") (declaration "uint3 uVar1;" (type_identifier "uint3") (identifier "uVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "int unaff_s0;" (primitive_type "int") (identifier "unaff_s0") (; ";")) (declaration "undefined4 *puVar10;" (type_identifier "undefined4") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "undefined4 *puVar11;" (type_identifier "undefined4") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "undefined *unaff_s3;" (type_identifier "undefined") (pointer_declarator "*unaff_s3" (* "*") (identifier "unaff_s3")) (; ";")) (declaration "int *piVar12;" (primitive_type "int") (pointer_declarator "*piVar12" (* "*") (identifier "piVar12")) (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "undefined *puVar14;" (type_identifier "undefined") (pointer_declarator "*puVar14" (* "*") (identifier "puVar14")) (; ";")) (declaration "undefined4 *unaff_s8;" (type_identifier "undefined4") (pointer_declarator "*unaff_s8" (* "*") (identifier "unaff_s8")) (; ";")) (declaration "int *piVar15;" (primitive_type "int") (pointer_declarator "*piVar15" (* "*") (identifier "piVar15")) (; ";")) (declaration "int *piVar16;" (primitive_type "int") (pointer_declarator "*piVar16" (* "*") (identifier "piVar16")) (; ";")) (declaration "code *pcVar17;" (type_identifier "code") (pointer_declarator "*pcVar17" (* "*") (identifier "pcVar17")) (; ";")) (declaration "int aiStack_124 [3];" (primitive_type "int") (array_declarator "aiStack_124 [3]" (identifier "aiStack_124") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "short sStack_118;" (sized_type_specifier "short" (short "short")) (identifier "sStack_118") (; ";")) (declaration "undefined4 uStack_116;" (type_identifier "undefined4") (identifier "uStack_116") (; ";")) (declaration "int iStack_d4;" (primitive_type "int") (identifier "iStack_d4") (; ";")) (declaration "int iStack_d0;" (primitive_type "int") (identifier "iStack_d0") (; ";")) (declaration "int iStack_cc;" (primitive_type "int") (identifier "iStack_cc") (; ";")) (declaration "uint uStack_c8;" (type_identifier "uint") (identifier "uStack_c8") (; ";")) (declaration "undefined *puStack_c4;" (type_identifier "undefined") (pointer_declarator "*puStack_c4" (* "*") (identifier "puStack_c4")) (; ";")) (declaration "int iStack_c0;" (primitive_type "int") (identifier "iStack_c0") (; ";")) (declaration "undefined *puStack_bc;" (type_identifier "undefined") (pointer_declarator "*puStack_bc" (* "*") (identifier "puStack_bc")) (; ";")) (declaration "int iStack_b8;" (primitive_type "int") (identifier "iStack_b8") (; ";")) (declaration "undefined4 uStack_b4;" (type_identifier "undefined4") (identifier "uStack_b4") (; ";")) (declaration "undefined4 *puStack_b0;" (type_identifier "undefined4") (pointer_declarator "*puStack_b0" (* "*") (identifier "puStack_b0")) (; ";")) (declaration "code *pcStack_ac;" (type_identifier "code") (pointer_declarator "*pcStack_ac" (* "*") (identifier "pcStack_ac")) (; ";")) (declaration "int iStack_a8;" (primitive_type "int") (identifier "iStack_a8") (; ";")) (declaration "undefined *local_98;" (type_identifier "undefined") (pointer_declarator "*local_98" (* "*") (identifier "local_98")) (; ";")) (declaration "uint local_94;" (type_identifier "uint") (identifier "local_94") (; ";")) (declaration "uint local_90;" (type_identifier "uint") (identifier "local_90") (; ";")) (declaration "int *local_8c;" (primitive_type "int") (pointer_declarator "*local_8c" (* "*") (identifier "local_8c")) (; ";")) (declaration "int local_7c;" (primitive_type "int") (identifier "local_7c") (; ";")) (declaration "undefined4 local_78;" (type_identifier "undefined4") (identifier "local_78") (; ";")) (declaration "undefined4 local_74;" (type_identifier "undefined4") (identifier "local_74") (; ";")) (declaration "short local_70;" (sized_type_specifier "short" (short "short")) (identifier "local_70") (; ";")) (declaration "undefined4 uStack_6e;" (type_identifier "undefined4") (identifier "uStack_6e") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar2 = PTR___stack_chk_guard_00054a4c;" (assignment_expression "puVar2 = PTR___stack_chk_guard_00054a4c" (identifier "puVar2") (= "=") (identifier "PTR___stack_chk_guard_00054a4c")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_00054a4c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_00054a4c" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_00054a4c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_00054a4c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_00054a4c")))) (; ";")) (expression_statement "local_78 = 0x3b000000;" (assignment_expression "local_78 = 0x3b000000" (identifier "local_78") (= "=") (number_literal "0x3b000000")) (; ";")) (expression_statement "local_74 = 0;" (assignment_expression "local_74 = 0" (identifier "local_74") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_70 = 0;" (assignment_expression "local_70 = 0" (identifier "local_70") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_5 < 0x1000000) {\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }\n  else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }" (if "if") (parenthesized_expression "(param_5 < 0x1000000)" (( "(") (binary_expression "param_5 < 0x1000000" (identifier "param_5") (< "<") (number_literal "0x1000000")) () ")")) (compound_statement "{\n    uVar6 = 0;\n    param_3 = 0;\n    if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }\n  }" ({ "{") (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" (identifier "param_3") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_7 < 0x1000000) {\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }\n    else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }" (if "if") (parenthesized_expression "(param_7 < 0x1000000)" (( "(") (binary_expression "param_7 < 0x1000000" (identifier "param_7") (< "<") (number_literal "0x1000000")) () ")")) (compound_statement "{\n      local_70 = (ushort)(byte)param_7 << 8;\n      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));\n      uVar1 = CONCAT12(param_2,local_78._2_2_);\n      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);\n      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));\n      if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }\n      if (param_8 < 1) {\n        param_8 = 0x3c;\n      }\n      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();\n      if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }\n    }" ({ "{") (expression_statement "local_70 = (ushort)(byte)param_7 << 8;" (assignment_expression "local_70 = (ushort)(byte)param_7 << 8" (identifier "local_70") (= "=") (binary_expression "(ushort)(byte)param_7 << 8" (cast_expression "(ushort)(byte)param_7" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (cast_expression "(byte)param_7" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "param_7"))) (<< "<<") (number_literal "8"))) (; ";")) (expression_statement "local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));" (assignment_expression "local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10))" (identifier "local_78") (= "=") (call_expression "CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10))" (identifier "CONCAT31") (argument_list "(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10))" (( "(") (call_expression "CONCAT21(0x3b00,(char)param_4)" (identifier "CONCAT21") (argument_list "(0x3b00,(char)param_4)" (( "(") (number_literal "0x3b00") (, ",") (cast_expression "(char)param_4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_4")) () ")"))) (, ",") (cast_expression "(char)(param_5 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(param_5 >> 0x10)" (( "(") (binary_expression "param_5 >> 0x10" (identifier "param_5") (>> ">>") (number_literal "0x10")) () ")"))) () ")")))) (; ";")) (expression_statement "uVar1 = CONCAT12(param_2,local_78._2_2_);" (assignment_expression "uVar1 = CONCAT12(param_2,local_78._2_2_)" (identifier "uVar1") (= "=") (call_expression "CONCAT12(param_2,local_78._2_2_)" (identifier "CONCAT12") (argument_list "(param_2,local_78._2_2_)" (( "(") (identifier "param_2") (, ",") (field_expression "local_78._2_2_" (identifier "local_78") (. ".") (field_identifier "_2_2_")) () ")")))) (; ";")) (expression_statement "local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);" (assignment_expression "local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff)" (identifier "local_78") (= "=") (call_expression "CONCAT13(0x3b,uVar1 & 0x1fffff)" (identifier "CONCAT13") (argument_list "(0x3b,uVar1 & 0x1fffff)" (( "(") (number_literal "0x3b") (, ",") (binary_expression "uVar1 & 0x1fffff" (identifier "uVar1") (& "&") (number_literal "0x1fffff")) () ")")))) (; ";")) (expression_statement "local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));" (assignment_expression "local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8))" (identifier "local_74") (= "=") (call_expression "CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8))" (identifier "CONCAT31") (argument_list "(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8))" (( "(") (call_expression "CONCAT21((short)param_5,(char)(param_7 >> 0x10))" (identifier "CONCAT21") (argument_list "((short)param_5,(char)(param_7 >> 0x10))" (( "(") (cast_expression "(short)param_5" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "param_5")) (, ",") (cast_expression "(char)(param_7 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(param_7 >> 0x10)" (( "(") (binary_expression "param_7 >> 0x10" (identifier "param_7") (>> ">>") (number_literal "0x10")) () ")"))) () ")"))) (, ",") (cast_expression "(char)(param_7 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(param_7 >> 8)" (( "(") (binary_expression "param_7 >> 8" (identifier "param_7") (>> ">>") (number_literal "8")) () ")"))) () ")")))) (; ";")) (if_statement "if (param_10 != 0) {\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }" (if "if") (parenthesized_expression "(param_10 != 0)" (( "(") (binary_expression "param_10 != 0" (identifier "param_10") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        unaff_s8 = &uStack_6e;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);\n        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;\n        puVar10 = &local_78;\n        do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);\n        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }\n      }" ({ "{") (expression_statement "unaff_s8 = &uStack_6e;" (assignment_expression "unaff_s8 = &uStack_6e" (identifier "unaff_s8") (= "=") (pointer_expression "&uStack_6e" (& "&") (identifier "uStack_6e"))) (; ";")) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" (( "(") (pointer_expression "*(code *)PTR_pr2ws_000548ec" (* "*") (cast_expression "(code *)PTR_pr2ws_000548ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2ws_000548ec"))) () ")")) (argument_list "(PTR_s_tatus_00054840 + -0x10fc)" (( "(") (binary_expression "PTR_s_tatus_00054840 + -0x10fc" (identifier "PTR_s_tatus_00054840") (+ "+") (number_literal "-0x10fc")) () ")"))) (; ";")) (expression_statement "unaff_s3 = PTR_LAB_0005483c + 0x1f1c;" (assignment_expression "unaff_s3 = PTR_LAB_0005483c + 0x1f1c" (identifier "unaff_s3") (= "=") (binary_expression "PTR_LAB_0005483c + 0x1f1c" (identifier "PTR_LAB_0005483c") (+ "+") (number_literal "0x1f1c"))) (; ";")) (expression_statement "puVar10 = &local_78;" (assignment_expression "puVar10 = &local_78" (identifier "puVar10") (= "=") (pointer_expression "&local_78" (& "&") (identifier "local_78"))) (; ";")) (do_statement "do {\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        } while (puVar11 != unaff_s8);" (do "do") (compound_statement "{\n          puVar11 = (undefined4 *)((int)puVar10 + 1);\n          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);\n          param_3 = (undefined1)uVar6;\n          puVar10 = puVar11;\n        }" ({ "{") (expression_statement "puVar11 = (undefined4 *)((int)puVar10 + 1);" (assignment_expression "puVar11 = (undefined4 *)((int)puVar10 + 1)" (identifier "puVar11") (= "=") (cast_expression "(undefined4 *)((int)puVar10 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar10 + 1)" (( "(") (binary_expression "(int)puVar10 + 1" (cast_expression "(int)puVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar10")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" (( "(") (pointer_expression "*(code *)PTR_pr2ws_000548ec" (* "*") (cast_expression "(code *)PTR_pr2ws_000548ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2ws_000548ec"))) () ")")) (argument_list "(unaff_s3,*(undefined1 *)puVar10)" (( "(") (identifier "unaff_s3") (, ",") (pointer_expression "*(undefined1 *)puVar10" (* "*") (cast_expression "(undefined1 *)puVar10" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar10"))) () ")"))) (; ";")) (expression_statement "param_3 = (undefined1)uVar6;" (assignment_expression "param_3 = (undefined1)uVar6" (identifier "param_3") (= "=") (cast_expression "(undefined1)uVar6" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "uVar6"))) (; ";")) (expression_statement "puVar10 = puVar11;" (assignment_expression "puVar10 = puVar11" (identifier "puVar10") (= "=") (identifier "puVar11")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar11 != unaff_s8)" (( "(") (binary_expression "puVar11 != unaff_s8" (identifier "puVar11") (!= "!=") (identifier "unaff_s8")) () ")")) (; ";")) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" (( "(") (pointer_expression "*(code *)PTR_pr2ws_000548ec" (* "*") (cast_expression "(code *)PTR_pr2ws_000548ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2ws_000548ec"))) () ")")) (argument_list "(PTR_s_tatus_00054840 + -0x990)" (( "(") (binary_expression "PTR_s_tatus_00054840 + -0x990" (identifier "PTR_s_tatus_00054840") (+ "+") (number_literal "-0x990")) () ")"))) (; ";")) (if_statement "if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }" (if "if") (parenthesized_expression "(((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0))" (( "(") (binary_expression "((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)" (parenthesized_expression "((1 < (int)param_10) && (param_6 != 0))" (( "(") (binary_expression "(1 < (int)param_10) && (param_6 != 0)" (parenthesized_expression "(1 < (int)param_10)" (( "(") (binary_expression "1 < (int)param_10" (number_literal "1") (< "<") (cast_expression "(int)param_10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_10"))) () ")")) (&& "&&") (parenthesized_expression "(param_6 != 0)" (( "(") (binary_expression "param_6 != 0" (identifier "param_6") (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_7 != 0)" (( "(") (binary_expression "param_7 != 0" (identifier "param_7") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }\n          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);\n          param_3 = 0xff;\n          uVar9 = 0x100;\n          if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }\n          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);\n        }" ({ "{") (if_statement "if (0x100 < param_7) {\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }\n          else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }" (if "if") (parenthesized_expression "(0x100 < param_7)" (( "(") (binary_expression "0x100 < param_7" (number_literal "0x100") (< "<") (identifier "param_7")) () ")")) (compound_statement "{\n            puVar8 = PTR_s_tatus_00054840 + -0x116c;\n          }" ({ "{") (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0x116c;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0x116c" (identifier "puVar8") (= "=") (binary_expression "PTR_s_tatus_00054840 + -0x116c" (identifier "PTR_s_tatus_00054840") (+ "+") (number_literal "-0x116c"))) (; ";")) (} "}")) (else_clause "else {\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }" (else "else") (compound_statement "{\n            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;\n          }" ({ "{") (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0x1a5c;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0x1a5c" (identifier "puVar8") (= "=") (binary_expression "PTR_s_tatus_00054840 + -0x1a5c" (identifier "PTR_s_tatus_00054840") (+ "+") (number_literal "-0x1a5c"))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" (( "(") (pointer_expression "*(code *)PTR_pr2ws_000548ec" (* "*") (cast_expression "(code *)PTR_pr2ws_000548ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2ws_000548ec"))) () ")")) (argument_list "(PTR_s_tatus_00054840 + -0x10e4,puVar8)" (( "(") (binary_expression "PTR_s_tatus_00054840 + -0x10e4" (identifier "PTR_s_tatus_00054840") (+ "+") (number_literal "-0x10e4")) (, ",") (identifier "puVar8") () ")"))) (; ";")) (expression_statement "param_3 = 0xff;" (assignment_expression "param_3 = 0xff" (identifier "param_3") (= "=") (number_literal "0xff")) (; ";")) (expression_statement "uVar9 = 0x100;" (assignment_expression "uVar9 = 0x100" (identifier "uVar9") (= "=") (number_literal "0x100")) (; ";")) (if_statement "if (0x100 >= param_7) {\n            uVar9 = param_7;\n          }" (if "if") (parenthesized_expression "(0x100 >= param_7)" (( "(") (binary_expression "0x100 >= param_7" (number_literal "0x100") (>= ">=") (identifier "param_7")) () ")")) (compound_statement "{\n            uVar9 = param_7;\n          }" ({ "{") (expression_statement "uVar9 = param_7;" (assignment_expression "uVar9 = param_7" (identifier "uVar9") (= "=") (identifier "param_7")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);" (call_expression "(*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9)" (parenthesized_expression "(*(code *)PTR_hex2stderr_0005489c)" (( "(") (pointer_expression "*(code *)PTR_hex2stderr_0005489c" (* "*") (cast_expression "(code *)PTR_hex2stderr_0005489c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_hex2stderr_0005489c"))) () ")")) (argument_list "(param_6,uVar9)" (( "(") (identifier "param_6") (, ",") (identifier "uVar9") () ")"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (param_8 < 1) {\n        param_8 = 0x3c;\n      }" (if "if") (parenthesized_expression "(param_8 < 1)" (( "(") (binary_expression "param_8 < 1" (identifier "param_8") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n        param_8 = 0x3c;\n      }" ({ "{") (expression_statement "param_8 = 0x3c;" (assignment_expression "param_8 = 0x3c" (identifier "param_8") (= "=") (number_literal "0x3c")) (; ";")) (} "}"))) (expression_statement "unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();" (assignment_expression "unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)()" (identifier "unaff_s0") (= "=") (call_expression "(*(code *)PTR_construct_scsi_pt_obj_00054a54)()" (parenthesized_expression "(*(code *)PTR_construct_scsi_pt_obj_00054a54)" (( "(") (pointer_expression "*(code *)PTR_construct_scsi_pt_obj_00054a54" (* "*") (cast_expression "(code *)PTR_construct_scsi_pt_obj_00054a54" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_construct_scsi_pt_obj_00054a54"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (unaff_s0 == 0) {\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }\n      else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }" (if "if") (parenthesized_expression "(unaff_s0 == 0)" (( "(") (binary_expression "unaff_s0 == 0" (identifier "unaff_s0") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar5 = -1;\n        puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);\n      }" ({ "{") (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" (identifier "iVar5") (= "=") (number_literal "-1")) (; ";")) (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0xeb4;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0xeb4" (identifier "puVar8") (= "=") (binary_expression "PTR_s_tatus_00054840 + -0xeb4" (identifier "PTR_s_tatus_00054840") (+ "+") (number_literal "-0xeb4"))) (; ";")) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" (( "(") (pointer_expression "*(code *)PTR_pr2ws_000548ec" (* "*") (cast_expression "(code *)PTR_pr2ws_000548ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2ws_000548ec"))) () ")")) (argument_list "(PTR_s_tatus_00054840 + -0x1974)" (( "(") (binary_expression "PTR_s_tatus_00054840 + -0x1974" (identifier "PTR_s_tatus_00054840") (+ "+") (number_literal "-0x1974")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }" (else "else") (compound_statement "{\n        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);\n        unaff_s3 = (undefined *)((int)&uStack_6e + 2);\n        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);\n        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);\n        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);\n        param_4 = 0;\n        local_8c = &local_7c;\n        local_90 = param_10;\n        local_94 = (uint)param_9;\n        puVar8 = PTR_LAB_0005483c + 0x3a04;\n        local_98 = unaff_s3;\n        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);\n        if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }\n        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);\n      }" ({ "{") (expression_statement "(*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);" (call_expression "(*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10)" (parenthesized_expression "(*(code *)PTR_set_scsi_pt_cdb_00054860)" (( "(") (pointer_expression "*(code *)PTR_set_scsi_pt_cdb_00054860" (* "*") (cast_expression "(code *)PTR_set_scsi_pt_cdb_00054860" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_set_scsi_pt_cdb_00054860"))) () ")")) (argument_list "(unaff_s0,&local_78,10)" (( "(") (identifier "unaff_s0") (, ",") (pointer_expression "&local_78" (& "&") (identifier "local_78")) (, ",") (number_literal "10") () ")"))) (; ";")) (expression_statement "unaff_s3 = (undefined *)((int)&uStack_6e + 2);" (assignment_expression "unaff_s3 = (undefined *)((int)&uStack_6e + 2)" (identifier "unaff_s3") (= "=") (cast_expression "(undefined *)((int)&uStack_6e + 2)" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)&uStack_6e + 2)" (( "(") (binary_expression "(int)&uStack_6e + 2" (cast_expression "(int)&uStack_6e" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&uStack_6e" (& "&") (identifier "uStack_6e"))) (+ "+") (number_literal "2")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);" (call_expression "(*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40)" (parenthesized_expression "(*(code *)PTR_set_scsi_pt_sense_000548f4)" (( "(") (pointer_expression "*(code *)PTR_set_scsi_pt_sense_000548f4" (* "*") (cast_expression "(code *)PTR_set_scsi_pt_sense_000548f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_set_scsi_pt_sense_000548f4"))) () ")")) (argument_list "(unaff_s0,unaff_s3,0x40)" (( "(") (identifier "unaff_s0") (, ",") (identifier "unaff_s3") (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);" (call_expression "(*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7)" (parenthesized_expression "(*(code *)PTR_set_scsi_pt_data_out_00054a74)" (( "(") (pointer_expression "*(code *)PTR_set_scsi_pt_data_out_00054a74" (* "*") (cast_expression "(code *)PTR_set_scsi_pt_data_out_00054a74" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_set_scsi_pt_data_out_00054a74"))) () ")")) (argument_list "(unaff_s0,param_6,param_7)" (( "(") (identifier "unaff_s0") (, ",") (identifier "param_6") (, ",") (identifier "param_7") () ")"))) (; ";")) (expression_statement "param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);" (assignment_expression "param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10)" (identifier "param_3") (= "=") (call_expression "(*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10)" (parenthesized_expression "(*(code *)PTR_do_scsi_pt_00054984)" (( "(") (pointer_expression "*(code *)PTR_do_scsi_pt_00054984" (* "*") (cast_expression "(code *)PTR_do_scsi_pt_00054984" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_do_scsi_pt_00054984"))) () ")")) (argument_list "(unaff_s0,param_1,param_8,param_10)" (( "(") (identifier "unaff_s0") (, ",") (identifier "param_1") (, ",") (identifier "param_8") (, ",") (identifier "param_10") () ")")))) (; ";")) (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" (identifier "param_4") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_8c = &local_7c;" (assignment_expression "local_8c = &local_7c" (identifier "local_8c") (= "=") (pointer_expression "&local_7c" (& "&") (identifier "local_7c"))) (; ";")) (expression_statement "local_90 = param_10;" (assignment_expression "local_90 = param_10" (identifier "local_90") (= "=") (identifier "param_10")) (; ";")) (expression_statement "local_94 = (uint)param_9;" (assignment_expression "local_94 = (uint)param_9" (identifier "local_94") (= "=") (cast_expression "(uint)param_9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "param_9"))) (; ";")) (expression_statement "puVar8 = PTR_LAB_0005483c + 0x3a04;" (assignment_expression "puVar8 = PTR_LAB_0005483c + 0x3a04" (identifier "puVar8") (= "=") (binary_expression "PTR_LAB_0005483c + 0x3a04" (identifier "PTR_LAB_0005483c") (+ "+") (number_literal "0x3a04"))) (; ";")) (expression_statement "local_98 = unaff_s3;" (assignment_expression "local_98 = unaff_s3" (identifier "local_98") (= "=") (identifier "unaff_s3")) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);" (assignment_expression "iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0)" (parenthesized_expression "(*(code *)PTR_sg_cmds_process_resp_000548d0)" (( "(") (pointer_expression "*(code *)PTR_sg_cmds_process_resp_000548d0" (* "*") (cast_expression "(code *)PTR_sg_cmds_process_resp_000548d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sg_cmds_process_resp_000548d0"))) () ")")) (argument_list "(unaff_s0)" (( "(") (identifier "unaff_s0") () ")")))) (; ";")) (if_statement "if (iVar5 == -1) {\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }\n        else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }" (if "if") (parenthesized_expression "(iVar5 == -1)" (( "(") (binary_expression "iVar5 == -1" (identifier "iVar5") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);\n          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);\n        }" ({ "{") (expression_statement "uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);" (assignment_expression "uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0)" (identifier "uVar6") (= "=") (call_expression "(*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0)" (parenthesized_expression "(*(code *)PTR_get_scsi_pt_os_err_00054a9c)" (( "(") (pointer_expression "*(code *)PTR_get_scsi_pt_os_err_00054a9c" (* "*") (cast_expression "(code *)PTR_get_scsi_pt_os_err_00054a9c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_get_scsi_pt_os_err_00054a9c"))) () ")")) (argument_list "(unaff_s0)" (( "(") (identifier "unaff_s0") () ")")))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);" (assignment_expression "iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_sg_convert_errno_00054928)(uVar6)" (parenthesized_expression "(*(code *)PTR_sg_convert_errno_00054928)" (( "(") (pointer_expression "*(code *)PTR_sg_convert_errno_00054928" (* "*") (cast_expression "(code *)PTR_sg_convert_errno_00054928" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sg_convert_errno_00054928"))) () ")")) (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")")))) (; ";")) (} "}")) (else_clause "else if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }" (else "else") (if_statement "if (iVar5 == -2) {\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }\n        else {\n          iVar5 = 0;\n        }" (if "if") (parenthesized_expression "(iVar5 == -2)" (( "(") (binary_expression "iVar5 == -2" (identifier "iVar5") (== "==") (number_literal "-2")) () ")")) (compound_statement "{\n          iVar5 = local_7c;\n          if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }\n        }" ({ "{") (expression_statement "iVar5 = local_7c;" (assignment_expression "iVar5 = local_7c" (identifier "iVar5") (= "=") (identifier "local_7c")) (; ";")) (if_statement "if (local_7c - 0x14U < 2) {\n            iVar5 = 0;\n          }" (if "if") (parenthesized_expression "(local_7c - 0x14U < 2)" (( "(") (binary_expression "local_7c - 0x14U < 2" (binary_expression "local_7c - 0x14U" (identifier "local_7c") (- "-") (number_literal "0x14U")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n            iVar5 = 0;\n          }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n          iVar5 = 0;\n        }" (else "else") (compound_statement "{\n          iVar5 = 0;\n        }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")))))) (expression_statement "(*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);" (call_expression "(*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0)" (parenthesized_expression "(*(code *)PTR_destruct_scsi_pt_obj_0005496c)" (( "(") (pointer_expression "*(code *)PTR_destruct_scsi_pt_obj_0005496c" (* "*") (cast_expression "(code *)PTR_destruct_scsi_pt_obj_0005496c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_destruct_scsi_pt_obj_0005496c"))) () ")")) (argument_list "(unaff_s0)" (( "(") (identifier "unaff_s0") () ")"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }" (else "else") (compound_statement "{\n      iVar5 = -1;\n      puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);\n    }" ({ "{") (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" (identifier "iVar5") (= "=") (number_literal "-1")) (; ";")) (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0xeb4;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0xeb4" (identifier "puVar8") (= "=") (binary_expression "PTR_s_tatus_00054840 + -0xeb4" (identifier "PTR_s_tatus_00054840") (+ "+") (number_literal "-0xeb4"))) (; ";")) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" (( "(") (pointer_expression "*(code *)PTR_pr2ws_000548ec" (* "*") (cast_expression "(code *)PTR_pr2ws_000548ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2ws_000548ec"))) () ")")) (argument_list "(PTR_s_tatus_00054840 + -0x1128)" (( "(") (binary_expression "PTR_s_tatus_00054840 + -0x1128" (identifier "PTR_s_tatus_00054840") (+ "+") (number_literal "-0x1128")) () ")"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }" (else "else") (compound_statement "{\n    iVar5 = -1;\n    puVar8 = PTR_s_tatus_00054840 + -0xeb4;\n    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);\n  }" ({ "{") (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" (identifier "iVar5") (= "=") (number_literal "-1")) (; ";")) (expression_statement "puVar8 = PTR_s_tatus_00054840 + -0xeb4;" (assignment_expression "puVar8 = PTR_s_tatus_00054840 + -0xeb4" (identifier "puVar8") (= "=") (binary_expression "PTR_s_tatus_00054840 + -0xeb4" (identifier "PTR_s_tatus_00054840") (+ "+") (number_literal "-0xeb4"))) (; ";")) (expression_statement "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);" (call_expression "(*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158)" (parenthesized_expression "(*(code *)PTR_pr2ws_000548ec)" (( "(") (pointer_expression "*(code *)PTR_pr2ws_000548ec" (* "*") (cast_expression "(code *)PTR_pr2ws_000548ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pr2ws_000548ec"))) () ")")) (argument_list "(PTR_s_tatus_00054840 + -0x1158)" (( "(") (binary_expression "PTR_s_tatus_00054840 + -0x1158" (identifier "PTR_s_tatus_00054840") (+ "+") (number_literal "-0x1158")) () ")"))) (; ";")) (} "}")))) (if_statement "if (local_2c == *(int *)puVar2) {\n    return iVar5;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar2)" (( "(") (binary_expression "local_2c == *(int *)puVar2" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) () ")")) (compound_statement "{\n    return iVar5;\n  }" ({ "{") (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (expression_statement "pcVar17 = sg_ll_unmap_v2;" (assignment_expression "pcVar17 = sg_ll_unmap_v2" (identifier "pcVar17") (= "=") (identifier "sg_ll_unmap_v2")) (; ";")) (expression_statement "iVar7 = local_2c;" (assignment_expression "iVar7 = local_2c" (identifier "iVar7") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "puVar14 = PTR___stack_chk_fail_00054a1c;" (assignment_expression "puVar14 = PTR___stack_chk_fail_00054a1c" (identifier "puVar14") (= "=") (identifier "PTR___stack_chk_fail_00054a1c")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_00054a1c)();" (call_expression "(*(code *)PTR___stack_chk_fail_00054a1c)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_00054a1c)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_00054a1c" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_00054a1c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_00054a1c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar4 = local_8c;" (assignment_expression "piVar4 = local_8c" (identifier "piVar4") (= "=") (identifier "local_8c")) (; ";")) (expression_statement "uVar9 = local_94;" (assignment_expression "uVar9 = local_94" (identifier "uVar9") (= "=") (identifier "local_94")) (; ";")) (expression_statement "puVar3 = local_98;" (assignment_expression "puVar3 = local_98" (identifier "puVar3") (= "=") (identifier "local_98")) (; ";")) (expression_statement "piVar12 = *(int **)(puVar14 + 0x2ac2c);" (assignment_expression "piVar12 = *(int **)(puVar14 + 0x2ac2c)" (identifier "piVar12") (= "=") (pointer_expression "*(int **)(puVar14 + 0x2ac2c)" (* "*") (cast_expression "(int **)(puVar14 + 0x2ac2c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2ac2c)" (( "(") (binary_expression "puVar14 + 0x2ac2c" (identifier "puVar14") (+ "+") (number_literal "0x2ac2c")) () ")"))))) (; ";")) (expression_statement "iStack_b8 = param_6;" (assignment_expression "iStack_b8 = param_6" (identifier "iStack_b8") (= "=") (identifier "param_6")) (; ";")) (expression_statement "puStack_bc = puVar2;" (assignment_expression "puStack_bc = puVar2" (identifier "puStack_bc") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "uStack_c8 = param_10;" (assignment_expression "uStack_c8 = param_10" (identifier "uStack_c8") (= "=") (identifier "param_10")) (; ";")) (expression_statement "aiStack_124[1] = 0x42000000;" (assignment_expression "aiStack_124[1] = 0x42000000" (subscript_expression "aiStack_124[1]" (identifier "aiStack_124") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x42000000")) (; ";")) (expression_statement "iStack_d4 = *piVar12;" (assignment_expression "iStack_d4 = *piVar12" (identifier "iStack_d4") (= "=") (pointer_expression "*piVar12" (* "*") (identifier "piVar12"))) (; ";")) (if_statement "if (puVar8 != (undefined *)0x0) {\n    aiStack_124[1] = 0x42010000;\n  }" (if "if") (parenthesized_expression "(puVar8 != (undefined *)0x0)" (( "(") (binary_expression "puVar8 != (undefined *)0x0" (identifier "puVar8") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    aiStack_124[1] = 0x42010000;\n  }" ({ "{") (expression_statement "aiStack_124[1] = 0x42010000;" (assignment_expression "aiStack_124[1] = 0x42010000" (subscript_expression "aiStack_124[1]" (identifier "aiStack_124") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x42010000")) (; ";")) (} "}"))) (if_statement "if (param_4 < 1) {\n    param_4 = 0x3c;\n  }" (if "if") (parenthesized_expression "(param_4 < 1)" (( "(") (binary_expression "param_4 < 1" (identifier "param_4") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    param_4 = 0x3c;\n  }" ({ "{") (expression_statement "param_4 = 0x3c;" (assignment_expression "param_4 = 0x3c" (identifier "param_4") (= "=") (number_literal "0x3c")) (; ";")) (} "}"))) (expression_statement "iVar13 = *(int *)(puVar14 + 0x2aa20);" (assignment_expression "iVar13 = *(int *)(puVar14 + 0x2aa20)" (identifier "iVar13") (= "=") (pointer_expression "*(int *)(puVar14 + 0x2aa20)" (* "*") (cast_expression "(int *)(puVar14 + 0x2aa20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar14 + 0x2aa20)" (( "(") (binary_expression "puVar14 + 0x2aa20" (identifier "puVar14") (+ "+") (number_literal "0x2aa20")) () ")"))))) (; ";")) (expression_statement "aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);" (assignment_expression "aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_)" (subscript_expression "aiStack_124[0]" (identifier "aiStack_124") ([ "[") (number_literal "0") (] "]")) (= "=") (call_expression "CONCAT22((short)local_94,aiStack_124[0]._2_2_)" (identifier "CONCAT22") (argument_list "((short)local_94,aiStack_124[0]._2_2_)" (( "(") (cast_expression "(short)local_94" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "local_94")) (, ",") (field_expression "aiStack_124[0]._2_2_" (subscript_expression "aiStack_124[0]" (identifier "aiStack_124") ([ "[") (number_literal "0") (] "]")) (. ".") (field_identifier "_2_2_")) () ")")))) (; ";")) (expression_statement "sStack_118 = (ushort)(byte)local_94 << 8;" (assignment_expression "sStack_118 = (ushort)(byte)local_94 << 8" (identifier "sStack_118") (= "=") (binary_expression "(ushort)(byte)local_94 << 8" (cast_expression "(ushort)(byte)local_94" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (cast_expression "(byte)local_94" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "local_94"))) (<< "<<") (number_literal "8"))) (; ";")) (expression_statement "aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);" (assignment_expression "aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff)" (subscript_expression "aiStack_124[2]" (identifier "aiStack_124") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff)" (( "(") (binary_expression "CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff" (call_expression "CONCAT11(param_3,(char)(local_94 >> 8))" (identifier "CONCAT11") (argument_list "(param_3,(char)(local_94 >> 8))" (( "(") (identifier "param_3") (, ",") (cast_expression "(char)(local_94 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(local_94 >> 8)" (( "(") (binary_expression "local_94 >> 8" (identifier "local_94") (>> ">>") (number_literal "8")) () ")"))) () ")"))) (& "&") (number_literal "0x1fff")) () ")")))) (; ";")) (expression_statement "iStack_d0 = unaff_s0;" (assignment_expression "iStack_d0 = unaff_s0" (identifier "iStack_d0") (= "=") (identifier "unaff_s0")) (; ";")) (expression_statement "iStack_cc = iVar5;" (assignment_expression "iStack_cc = iVar5" (identifier "iStack_cc") (= "=") (identifier "iVar5")) (; ";")) (expression_statement "puStack_c4 = unaff_s3;" (assignment_expression "puStack_c4 = unaff_s3" (identifier "puStack_c4") (= "=") (identifier "unaff_s3")) (; ";")) (expression_statement "iStack_c0 = param_8;" (assignment_expression "iStack_c0 = param_8" (identifier "iStack_c0") (= "=") (identifier "param_8")) (; ";")) (expression_statement "uStack_b4 = param_1;" (assignment_expression "uStack_b4 = param_1" (identifier "uStack_b4") (= "=") (identifier "param_1")) (; ";")) (expression_statement "puStack_b0 = unaff_s8;" (assignment_expression "puStack_b0 = unaff_s8" (identifier "puStack_b0") (= "=") (identifier "unaff_s8")) (; ";")) (expression_statement "pcStack_ac = pcVar17;" (assignment_expression "pcStack_ac = pcVar17" (identifier "pcStack_ac") (= "=") (identifier "pcVar17")) (; ";")) (expression_statement "iStack_a8 = iVar7;" (assignment_expression "iStack_a8 = iVar7" (identifier "iStack_a8") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (local_8c != (int *)0x0) {\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }" (if "if") (parenthesized_expression "(local_8c != (int *)0x0)" (( "(") (binary_expression "local_8c != (int *)0x0" (identifier "local_8c") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);\n    iVar5 = *(int *)(puVar14 + 0x2aa1c);\n    piVar15 = aiStack_124 + 1;\n    do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);\n    if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }\n  }" ({ "{") (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2aacc)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2aacc)" (* "*") (cast_expression "(code **)(puVar14 + 0x2aacc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2aacc)" (( "(") (binary_expression "puVar14 + 0x2aacc" (identifier "puVar14") (+ "+") (number_literal "0x2aacc")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0)" (( "(") (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x1a50" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" (* "*") (cast_expression "(int *)(puVar14 + 0x2aa20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar14 + 0x2aa20)" (( "(") (binary_expression "puVar14 + 0x2aa20" (identifier "puVar14") (+ "+") (number_literal "0x2aa20")) () ")")))) (+ "+") (number_literal "-0x1a50")) (, ",") (binary_expression "iVar13 + -0x10c0" (identifier "iVar13") (+ "+") (number_literal "-0x10c0")) () ")"))) (; ";")) (expression_statement "iVar5 = *(int *)(puVar14 + 0x2aa1c);" (assignment_expression "iVar5 = *(int *)(puVar14 + 0x2aa1c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(puVar14 + 0x2aa1c)" (* "*") (cast_expression "(int *)(puVar14 + 0x2aa1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar14 + 0x2aa1c)" (( "(") (binary_expression "puVar14 + 0x2aa1c" (identifier "puVar14") (+ "+") (number_literal "0x2aa1c")) () ")"))))) (; ";")) (expression_statement "piVar15 = aiStack_124 + 1;" (assignment_expression "piVar15 = aiStack_124 + 1" (identifier "piVar15") (= "=") (binary_expression "aiStack_124 + 1" (identifier "aiStack_124") (+ "+") (number_literal "1"))) (; ";")) (do_statement "do {\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    } while (&uStack_116 != piVar16);" (do "do") (compound_statement "{\n      piVar16 = (int *)((int)piVar15 + 1);\n      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);\n      piVar15 = piVar16;\n    }" ({ "{") (expression_statement "piVar16 = (int *)((int)piVar15 + 1);" (assignment_expression "piVar16 = (int *)((int)piVar15 + 1)" (identifier "piVar16") (= "=") (cast_expression "(int *)((int)piVar15 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar15 + 1)" (( "(") (binary_expression "(int)piVar15 + 1" (cast_expression "(int)piVar15" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar15")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2aacc)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2aacc)" (* "*") (cast_expression "(code **)(puVar14 + 0x2aacc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2aacc)" (( "(") (binary_expression "puVar14 + 0x2aacc" (identifier "puVar14") (+ "+") (number_literal "0x2aacc")) () ")"))))) () ")")) (argument_list "(iVar5 + 0x1f1c,*(undefined1 *)piVar15)" (( "(") (binary_expression "iVar5 + 0x1f1c" (identifier "iVar5") (+ "+") (number_literal "0x1f1c")) (, ",") (pointer_expression "*(undefined1 *)piVar15" (* "*") (cast_expression "(undefined1 *)piVar15" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piVar15"))) () ")"))) (; ";")) (expression_statement "piVar15 = piVar16;" (assignment_expression "piVar15 = piVar16" (identifier "piVar15") (= "=") (identifier "piVar16")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(&uStack_116 != piVar16)" (( "(") (binary_expression "&uStack_116 != piVar16" (pointer_expression "&uStack_116" (& "&") (identifier "uStack_116")) (!= "!=") (identifier "piVar16")) () ")")) (; ";")) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2aacc)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2aacc)" (* "*") (cast_expression "(code **)(puVar14 + 0x2aacc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2aacc)" (( "(") (binary_expression "puVar14 + 0x2aacc" (identifier "puVar14") (+ "+") (number_literal "0x2aacc")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x990)" (( "(") (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x990" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" (* "*") (cast_expression "(int *)(puVar14 + 0x2aa20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar14 + 0x2aa20)" (( "(") (binary_expression "puVar14 + 0x2aa20" (identifier "puVar14") (+ "+") (number_literal "0x2aa20")) () ")")))) (+ "+") (number_literal "-0x990")) () ")"))) (; ";")) (if_statement "if (1 < (int)piVar4) {\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }" (if "if") (parenthesized_expression "(1 < (int)piVar4)" (( "(") (binary_expression "1 < (int)piVar4" (number_literal "1") (< "<") (cast_expression "(int)piVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar4"))) () ")")) (compound_statement "{\n      pcVar17 = *(code **)(puVar14 + 0x2ac34);\n      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;\n      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);\n      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);\n    }" ({ "{") (expression_statement "pcVar17 = *(code **)(puVar14 + 0x2ac34);" (assignment_expression "pcVar17 = *(code **)(puVar14 + 0x2ac34)" (identifier "pcVar17") (= "=") (pointer_expression "*(code **)(puVar14 + 0x2ac34)" (* "*") (cast_expression "(code **)(puVar14 + 0x2ac34)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2ac34)" (( "(") (binary_expression "puVar14 + 0x2ac34" (identifier "puVar14") (+ "+") (number_literal "0x2ac34")) () ")"))))) (; ";")) (if_statement "if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;" (if "if") (parenthesized_expression "((puVar3 == (undefined *)0x0) || (uVar9 == 0))" (( "(") (binary_expression "(puVar3 == (undefined *)0x0) || (uVar9 == 0)" (parenthesized_expression "(puVar3 == (undefined *)0x0)" (( "(") (binary_expression "puVar3 == (undefined *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(uVar9 == 0)" (( "(") (binary_expression "uVar9 == 0" (identifier "uVar9") (== "==") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_00029ecc;" (goto "goto") (statement_identifier "LAB_00029ecc") (; ";"))) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2aacc)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2aacc)" (* "*") (cast_expression "(code **)(puVar14 + 0x2aacc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2aacc)" (( "(") (binary_expression "puVar14 + 0x2aacc" (identifier "puVar14") (+ "+") (number_literal "0x2aacc")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0)" (( "(") (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x13cc" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" (* "*") (cast_expression "(int *)(puVar14 + 0x2aa20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar14 + 0x2aa20)" (( "(") (binary_expression "puVar14 + 0x2aa20" (identifier "puVar14") (+ "+") (number_literal "0x2aa20")) () ")")))) (+ "+") (number_literal "-0x13cc")) (, ",") (binary_expression "iVar13 + -0x10c0" (identifier "iVar13") (+ "+") (number_literal "-0x10c0")) () ")"))) (; ";")) (expression_statement "(**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);" (call_expression "(**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aa7c))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2aa7c)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2aa7c)" (* "*") (cast_expression "(code **)(puVar14 + 0x2aa7c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2aa7c)" (( "(") (binary_expression "puVar14 + 0x2aa7c" (identifier "puVar14") (+ "+") (number_literal "0x2aa7c")) () ")"))))) () ")")) (argument_list "(puVar3,uVar9,0xffffffff)" (( "(") (identifier "puVar3") (, ",") (identifier "uVar9") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "pcVar17 = *(code **)(puVar14 + 0x2ac34);" (assignment_expression "pcVar17 = *(code **)(puVar14 + 0x2ac34)" (identifier "pcVar17") (= "=") (pointer_expression "*(code **)(puVar14 + 0x2ac34)" (* "*") (cast_expression "(code **)(puVar14 + 0x2ac34)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2ac34)" (( "(") (binary_expression "puVar14 + 0x2ac34" (identifier "puVar14") (+ "+") (number_literal "0x2ac34")) () ")"))))) (; ";")) (labeled_statement "LAB_00029ecc:\n  iVar5 = (*pcVar17)();" (statement_identifier "LAB_00029ecc") (: ":") (expression_statement "iVar5 = (*pcVar17)();" (assignment_expression "iVar5 = (*pcVar17)()" (identifier "iVar5") (= "=") (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" (( "(") (pointer_expression "*pcVar17" (* "*") (identifier "pcVar17")) () ")")) (argument_list "()" (( "(") () ")")))) (; ";"))) (if_statement "if (iVar5 == 0) {\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }\n  else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar7 = -1;\n    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);\n  }" ({ "{") (expression_statement "iVar7 = -1;" (assignment_expression "iVar7 = -1" (identifier "iVar7") (= "=") (number_literal "-1")) (; ";")) (expression_statement "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);" (call_expression "(**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aacc))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2aacc)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2aacc)" (* "*") (cast_expression "(code **)(puVar14 + 0x2aacc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2aacc)" (( "(") (binary_expression "puVar14 + 0x2aacc" (identifier "puVar14") (+ "+") (number_literal "0x2aacc")) () ")"))))) () ")")) (argument_list "(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0)" (( "(") (binary_expression "*(int *)(puVar14 + 0x2aa20) + -0x1974" (pointer_expression "*(int *)(puVar14 + 0x2aa20)" (* "*") (cast_expression "(int *)(puVar14 + 0x2aa20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar14 + 0x2aa20)" (( "(") (binary_expression "puVar14 + 0x2aa20" (identifier "puVar14") (+ "+") (number_literal "0x2aa20")) () ")")))) (+ "+") (number_literal "-0x1974")) (, ",") (binary_expression "iVar13 + -0x10c0" (identifier "iVar13") (+ "+") (number_literal "-0x10c0")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }" (else "else") (compound_statement "{\n    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);\n    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);\n    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);\n    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);\n    iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);\n    if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }\n    (**(code **)(puVar14 + 0x2ab4c))(iVar5);\n  }" ({ "{") (expression_statement "(**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);" (call_expression "(**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aa40))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2aa40)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2aa40)" (* "*") (cast_expression "(code **)(puVar14 + 0x2aa40)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2aa40)" (( "(") (binary_expression "puVar14 + 0x2aa40" (identifier "puVar14") (+ "+") (number_literal "0x2aa40")) () ")"))))) () ")")) (argument_list "(iVar5,aiStack_124 + 1,10)" (( "(") (identifier "iVar5") (, ",") (binary_expression "aiStack_124 + 1" (identifier "aiStack_124") (+ "+") (number_literal "1")) (, ",") (number_literal "10") () ")"))) (; ";")) (expression_statement "(**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);" (call_expression "(**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aad4))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2aad4)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2aad4)" (* "*") (cast_expression "(code **)(puVar14 + 0x2aad4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2aad4)" (( "(") (binary_expression "puVar14 + 0x2aad4" (identifier "puVar14") (+ "+") (number_literal "0x2aad4")) () ")"))))) () ")")) (argument_list "(iVar5,(int)&uStack_116 + 2,0x40)" (( "(") (identifier "iVar5") (, ",") (binary_expression "(int)&uStack_116 + 2" (cast_expression "(int)&uStack_116" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&uStack_116" (& "&") (identifier "uStack_116"))) (+ "+") (number_literal "2")) (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "(**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);" (call_expression "(**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ac54))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2ac54)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2ac54)" (* "*") (cast_expression "(code **)(puVar14 + 0x2ac54)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2ac54)" (( "(") (binary_expression "puVar14 + 0x2ac54" (identifier "puVar14") (+ "+") (number_literal "0x2ac54")) () ")"))))) () ")")) (argument_list "(iVar5,puVar3,uVar9)" (( "(") (identifier "iVar5") (, ",") (identifier "puVar3") (, ",") (identifier "uVar9") () ")"))) (; ";")) (expression_statement "uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);" (assignment_expression "uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4)" (identifier "uVar6") (= "=") (call_expression "(**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ab64))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2ab64)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2ab64)" (* "*") (cast_expression "(code **)(puVar14 + 0x2ab64)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2ab64)" (( "(") (binary_expression "puVar14 + 0x2ab64" (identifier "puVar14") (+ "+") (number_literal "0x2ab64")) () ")"))))) () ")")) (argument_list "(iVar5,iStack_a8,param_4,piVar4)" (( "(") (identifier "iVar5") (, ",") (identifier "iStack_a8") (, ",") (identifier "param_4") (, ",") (identifier "piVar4") () ")")))) (; ";")) (expression_statement "iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124);" (assignment_expression "iVar7 = (**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124)" (identifier "iVar7") (= "=") (call_expression "(**(code **)(puVar14 + 0x2aab0))\n                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124)" (parenthesized_expression "(**(code **)(puVar14 + 0x2aab0))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2aab0)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2aab0)" (* "*") (cast_expression "(code **)(puVar14 + 0x2aab0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2aab0)" (( "(") (binary_expression "puVar14 + 0x2aab0" (identifier "puVar14") (+ "+") (number_literal "0x2aab0")) () ")"))))) () ")")) (argument_list "(iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,\n                       aiStack_124)" (( "(") (identifier "iVar5") (, ",") (binary_expression "iVar13 + -0x10c0" (identifier "iVar13") (+ "+") (number_literal "-0x10c0")) (, ",") (identifier "uVar6") (, ",") (number_literal "0") (, ",") (binary_expression "(int)&uStack_116 + 2" (cast_expression "(int)&uStack_116" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&uStack_116" (& "&") (identifier "uStack_116"))) (+ "+") (number_literal "2")) (, ",") (binary_expression "local_90 & 0xff" (identifier "local_90") (& "&") (number_literal "0xff")) (, ",") (identifier "piVar4") (, ",") (identifier "aiStack_124") () ")")))) (; ";")) (if_statement "if (iVar7 == -1) {\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }\n    else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }" (if "if") (parenthesized_expression "(iVar7 == -1)" (( "(") (binary_expression "iVar7 == -1" (identifier "iVar7") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);\n      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);\n    }" ({ "{") (expression_statement "uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);" (assignment_expression "uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5)" (identifier "uVar6") (= "=") (call_expression "(**(code **)(puVar14 + 0x2ac7c))(iVar5)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ac7c))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2ac7c)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2ac7c)" (* "*") (cast_expression "(code **)(puVar14 + 0x2ac7c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2ac7c)" (( "(") (binary_expression "puVar14 + 0x2ac7c" (identifier "puVar14") (+ "+") (number_literal "0x2ac7c")) () ")"))))) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);" (assignment_expression "iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6)" (identifier "iVar7") (= "=") (call_expression "(**(code **)(puVar14 + 0x2ab08))(uVar6)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ab08))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2ab08)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2ab08)" (* "*") (cast_expression "(code **)(puVar14 + 0x2ab08)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2ab08)" (( "(") (binary_expression "puVar14 + 0x2ab08" (identifier "puVar14") (+ "+") (number_literal "0x2ab08")) () ")"))))) () ")")) (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")")))) (; ";")) (} "}")) (else_clause "else if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }" (else "else") (if_statement "if (iVar7 == -2) {\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }\n    else {\n      iVar7 = 0;\n    }" (if "if") (parenthesized_expression "(iVar7 == -2)" (( "(") (binary_expression "iVar7 == -2" (identifier "iVar7") (== "==") (number_literal "-2")) () ")")) (compound_statement "{\n      iVar7 = aiStack_124[0];\n      if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }\n    }" ({ "{") (expression_statement "iVar7 = aiStack_124[0];" (assignment_expression "iVar7 = aiStack_124[0]" (identifier "iVar7") (= "=") (subscript_expression "aiStack_124[0]" (identifier "aiStack_124") ([ "[") (number_literal "0") (] "]"))) (; ";")) (if_statement "if (aiStack_124[0] - 0x14U < 2) {\n        iVar7 = 0;\n      }" (if "if") (parenthesized_expression "(aiStack_124[0] - 0x14U < 2)" (( "(") (binary_expression "aiStack_124[0] - 0x14U < 2" (binary_expression "aiStack_124[0] - 0x14U" (subscript_expression "aiStack_124[0]" (identifier "aiStack_124") ([ "[") (number_literal "0") (] "]")) (- "-") (number_literal "0x14U")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        iVar7 = 0;\n      }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      iVar7 = 0;\n    }" (else "else") (compound_statement "{\n      iVar7 = 0;\n    }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (} "}")))))) (expression_statement "(**(code **)(puVar14 + 0x2ab4c))(iVar5);" (call_expression "(**(code **)(puVar14 + 0x2ab4c))(iVar5)" (parenthesized_expression "(**(code **)(puVar14 + 0x2ab4c))" (( "(") (pointer_expression "**(code **)(puVar14 + 0x2ab4c)" (* "*") (pointer_expression "*(code **)(puVar14 + 0x2ab4c)" (* "*") (cast_expression "(code **)(puVar14 + 0x2ab4c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2ab4c)" (( "(") (binary_expression "puVar14 + 0x2ab4c" (identifier "puVar14") (+ "+") (number_literal "0x2ab4c")) () ")"))))) () ")")) (argument_list "(iVar5)" (( "(") (identifier "iVar5") () ")"))) (; ";")) (} "}")))) (if_statement "if (iStack_d4 != *piVar12) {\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }" (if "if") (parenthesized_expression "(iStack_d4 != *piVar12)" (( "(") (binary_expression "iStack_d4 != *piVar12" (identifier "iStack_d4") (!= "!=") (pointer_expression "*piVar12" (* "*") (identifier "piVar12"))) () ")")) (compound_statement "{\n    pcVar17 = *(code **)(puVar14 + 0x2abfc);\n    (*pcVar17)();\n    iVar5 = (**(code **)(pcVar17 + 0x2a938))();\n    return iVar5;\n  }" ({ "{") (expression_statement "pcVar17 = *(code **)(puVar14 + 0x2abfc);" (assignment_expression "pcVar17 = *(code **)(puVar14 + 0x2abfc)" (identifier "pcVar17") (= "=") (pointer_expression "*(code **)(puVar14 + 0x2abfc)" (* "*") (cast_expression "(code **)(puVar14 + 0x2abfc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar14 + 0x2abfc)" (( "(") (binary_expression "puVar14 + 0x2abfc" (identifier "puVar14") (+ "+") (number_literal "0x2abfc")) () ")"))))) (; ";")) (expression_statement "(*pcVar17)();" (call_expression "(*pcVar17)()" (parenthesized_expression "(*pcVar17)" (( "(") (pointer_expression "*pcVar17" (* "*") (identifier "pcVar17")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar5 = (**(code **)(pcVar17 + 0x2a938))();" (assignment_expression "iVar5 = (**(code **)(pcVar17 + 0x2a938))()" (identifier "iVar5") (= "=") (call_expression "(**(code **)(pcVar17 + 0x2a938))()" (parenthesized_expression "(**(code **)(pcVar17 + 0x2a938))" (( "(") (pointer_expression "**(code **)(pcVar17 + 0x2a938)" (* "*") (pointer_expression "*(code **)(pcVar17 + 0x2a938)" (* "*") (cast_expression "(code **)(pcVar17 + 0x2a938)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(pcVar17 + 0x2a938)" (( "(") (binary_expression "pcVar17 + 0x2a938" (identifier "pcVar17") (+ "+") (number_literal "0x2a938")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}"))) (return_statement "return iVar7;" (return "return") (identifier "iVar7") (; ";")) (} "}")))

int function_1
              (int sg_fd,int mode,int m_specific,int var_18,uint32_t var_1,void *var_10,
              uint32_t var_2,int var_11,type_1 noisy,int var_4)

{
  type_2 *puVar1;
  type_3 var_26;
  int *piVar3;
  type_4 uVar6;
  int var_13;
  type_5 uVar5;
  type_2 *var_17;
  uint32_t uVar8;
  int var_15;
  int var_12;
  uint8_t *var_7;
  uint8_t *var_8;
  uint8_t *unaff_s3;
  int *piVar12;
  int var_23;
  type_2 *var_16;
  uint8_t *var_9;
  int *piVar15;
  int *var_25;
  type_6 *var_29;
  int var_24 [3];
  short sStack_118;
  type_5 uStack_116;
  int var_28;
  int iStack_d0;
  int iStack_cc;
  int iStack_c8;
  uint8_t *puStack_c4;
  int iStack_c0;
  type_2 *puStack_bc;
  void *pvStack_b8;
  int iStack_b4;
  uint8_t *puStack_b0;
  type_6 *pcStack_ac;
  int iStack_a8;
  uint8_t *local_98;
  type_3 var_21;
  type_3 var_27;
  int *var_22;
  int var_14;
  uint8_t wbuf_cdb [10];
  uint8_t auStack_6e [2];
  uint8_t sense_b [64];
  
  puVar1 = PTR___stack_chk_guard_00054a4c;
  uVar6 = (type_4)m_specific;
  var_15 = *(int *)PTR___stack_chk_guard_00054a4c;
  wbuf_cdb[0] = ';';
  wbuf_cdb[1] = '\0';
  wbuf_cdb[2] = '\0';
  wbuf_cdb[3] = '\0';
  wbuf_cdb[4] = '\0';
  wbuf_cdb[5] = '\0';
  wbuf_cdb[6] = '\0';
  wbuf_cdb[7] = '\0';
  wbuf_cdb[8] = '\0';
  wbuf_cdb[9] = '\0';
  if (var_1 < 0x1000000) {
    uVar5 = 0;
    uVar6 = 0;
    if (var_2 < 0x1000000) {
      wbuf_cdb[0] = ';';
      wbuf_cdb[1] = '\0';
      wbuf_cdb[2] = (char)var_18;
      wbuf_cdb._8_2_ = (type_7)(type_8)var_2 << 8;
      wbuf_cdb[3] = (uint8_t)(var_1 >> 0x10);
      wbuf_cdb._4_2_ = (short)var_1;
      wbuf_cdb[6] = (char)(var_2 >> 0x10);
      wbuf_cdb._1_3_ = var_3((char)mode,wbuf_cdb._2_2_) & 0x1fffff;
      wbuf_cdb[0] = ';';
      wbuf_cdb[7] = (uint8_t)(var_2 >> 8);
      if (var_4 != 0) {
        var_9 = auStack_6e;
        (*(type_6 *)PTR_pr2ws_000548ec)(var_5 + -0x10fc);
        unaff_s3 = var_6 + 0x1f1c;
        var_7 = wbuf_cdb;
        do {
          var_8 = var_7 + 1;
          (*(type_6 *)PTR_pr2ws_000548ec)(unaff_s3,*var_7);
          uVar6 = (type_4)uVar5;
          var_7 = var_8;
        } while (var_8 != var_9);
        (*(type_6 *)PTR_pr2ws_000548ec)(var_5 + -0x990);
        if (((1 < var_4) && (var_10 != (void *)0x0)) && (var_2 != 0)) {
          if (0x100 < var_2) {
            var_17 = var_5 + -0x116c;
          }
          else {
            var_17 = var_5 + -0x1a5c;
          }
          (*(type_6 *)PTR_pr2ws_000548ec)(var_5 + -0x10e4,var_17);
          uVar6 = 0xff;
          uVar8 = 0x100;
          if (0x100 >= var_2) {
            uVar8 = var_2;
          }
          (*(type_6 *)PTR_hex2stderr_0005489c)(var_10,uVar8);
        }
      }
      if (var_11 < 1) {
        var_11 = 0x3c;
      }
      var_12 = (*(type_6 *)PTR_construct_scsi_pt_obj_00054a54)();
      if (var_12 == 0) {
        var_13 = -1;
        var_17 = var_5 + -0xeb4;
        (*(type_6 *)PTR_pr2ws_000548ec)(var_5 + -0x1974);
      }
      else {
        (*(type_6 *)PTR_set_scsi_pt_cdb_00054860)(var_12,wbuf_cdb,10);
        unaff_s3 = sense_b;
        (*(type_6 *)PTR_set_scsi_pt_sense_000548f4)(var_12,unaff_s3,0x40);
        (*(type_6 *)PTR_set_scsi_pt_data_out_00054a74)(var_12,var_10,var_2);
        uVar6 = (*(type_6 *)PTR_do_scsi_pt_00054984)(var_12,sg_fd,var_11,var_4);
        var_18 = 0;
        var_22 = &var_14;
        var_27 = var_4;
        var_21 = (type_3)noisy;
        var_17 = var_6 + 0x3a04;
        local_98 = unaff_s3;
        var_13 = (*(type_6 *)PTR_sg_cmds_process_resp_000548d0)(var_12);
        if (var_13 == -1) {
          uVar5 = (*(type_6 *)PTR_get_scsi_pt_os_err_00054a9c)(var_12);
          var_13 = (*(type_6 *)PTR_sg_convert_errno_00054928)(uVar5);
        }
        else if (var_13 == -2) {
          var_13 = var_14;
          if (var_14 - 0x14U < 2) {
            var_13 = 0;
          }
        }
        else {
          var_13 = 0;
        }
        (*(type_6 *)PTR_destruct_scsi_pt_obj_0005496c)(var_12);
      }
    }
    else {
      var_13 = -1;
      var_17 = var_5 + -0xeb4;
      (*(type_6 *)PTR_pr2ws_000548ec)(var_5 + -0x1128);
    }
  }
  else {
    var_13 = -1;
    var_17 = var_5 + -0xeb4;
    (*(type_6 *)PTR_pr2ws_000548ec)(var_5 + -0x1158);
  }
  if (var_15 == *(int *)puVar1) {
    return var_13;
  }
  var_29 = sg_ll_unmap_v2;
  var_16 = PTR___stack_chk_fail_00054a1c;
  (*(type_6 *)PTR___stack_chk_fail_00054a1c)();
  piVar3 = var_22;
  var_26 = var_21;
  var_7 = local_98;
  piVar12 = *(int **)(var_16 + 0x2ac2c);
  pvStack_b8 = var_10;
  puStack_bc = puVar1;
  iStack_c8 = var_4;
  var_24[1] = 0x42000000;
  var_28 = *piVar12;
  if (var_17 != (type_2 *)0x0) {
    var_24[1] = 0x42010000;
  }
  if (var_18 < 1) {
    var_18 = 0x3c;
  }
  var_23 = *(int *)(var_16 + 0x2aa20);
  var_24[0] = var_19((short)var_21,var_24[0]._2_2_);
  sStack_118 = (type_7)(type_8)var_21 << 8;
  var_24[2] = (int)(var_20(uVar6,(char)(var_21 >> 8)) & 0x1fff);
  iStack_d0 = var_12;
  iStack_cc = var_13;
  puStack_c4 = unaff_s3;
  iStack_c0 = var_11;
  iStack_b4 = sg_fd;
  puStack_b0 = var_9;
  pcStack_ac = var_29;
  iStack_a8 = var_15;
  if (var_22 != (int *)0x0) {
    (**(type_6 **)(var_16 + 0x2aacc))(*(int *)(var_16 + 0x2aa20) + -0x1a50,var_23 + -0x10c0);
    var_15 = *(int *)(var_16 + 0x2aa1c);
    piVar15 = var_24 + 1;
    do {
      var_25 = (int *)((int)piVar15 + 1);
      (**(type_6 **)(var_16 + 0x2aacc))(var_15 + 0x1f1c,*(type_4 *)piVar15);
      piVar15 = var_25;
    } while (&uStack_116 != var_25);
    (**(type_6 **)(var_16 + 0x2aacc))(*(int *)(var_16 + 0x2aa20) + -0x990);
    if (1 < (int)piVar3) {
      var_29 = *(type_6 **)(var_16 + 0x2ac34);
      if ((var_7 == (uint8_t *)0x0) || (var_26 == 0)) goto LAB_00029ecc;
      (**(type_6 **)(var_16 + 0x2aacc))(*(int *)(var_16 + 0x2aa20) + -0x13cc,var_23 + -0x10c0);
      (**(type_6 **)(var_16 + 0x2aa7c))(var_7,var_26,0xffffffff);
    }
  }
  var_29 = *(type_6 **)(var_16 + 0x2ac34);
LAB_00029ecc:
  var_15 = (*var_29)();
  if (var_15 == 0) {
    var_13 = -1;
    (**(type_6 **)(var_16 + 0x2aacc))(*(int *)(var_16 + 0x2aa20) + -0x1974,var_23 + -0x10c0);
  }
  else {
    (**(type_6 **)(var_16 + 0x2aa40))(var_15,var_24 + 1,10);
    (**(type_6 **)(var_16 + 0x2aad4))(var_15,(int)&uStack_116 + 2,0x40);
    (**(type_6 **)(var_16 + 0x2ac54))(var_15,var_7,var_26);
    uVar5 = (**(type_6 **)(var_16 + 0x2ab64))(var_15,iStack_a8,var_18,piVar3);
    var_13 = (**(type_6 **)(var_16 + 0x2aab0))
                      (var_15,var_23 + -0x10c0,uVar5,0,(int)&uStack_116 + 2,var_27 & 0xff,piVar3,
                       var_24);
    if (var_13 == -1) {
      uVar5 = (**(type_6 **)(var_16 + 0x2ac7c))(var_15);
      var_13 = (**(type_6 **)(var_16 + 0x2ab08))(uVar5);
    }
    else if (var_13 == -2) {
      var_13 = var_24[0];
      if (var_24[0] - 0x14U < 2) {
        var_13 = 0;
      }
    }
    else {
      var_13 = 0;
    }
    (**(type_6 **)(var_16 + 0x2ab4c))(var_15);
  }
  if (var_28 != *piVar12) {
    var_29 = *(type_6 **)(var_16 + 0x2abfc);
    (*var_29)();
    var_15 = (**(type_6 **)(var_29 + 0x2a938))();
    return var_15;
  }
  return var_13;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) 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: (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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator 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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (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: (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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (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: (number_literal))) (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: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (call_expression function: (identifier) arguments: (argument_list (number_literal) (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (field_expression argument: (identifier) field: (field_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (cast_expression type: (type_descriptor type: (primitive_type)) 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 (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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 (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: (pointer_expression argument: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_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 (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (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 (identifier) (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: (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)))) (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: (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)))))) 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) (pointer_expression argument: (identifier)) (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (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: (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: (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)))))) 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))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))))))) alternative: (else_clause (compound_statement (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 (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))))) alternative: (else_clause (compound_statement (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 (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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (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 (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 (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 declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (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))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) (field_expression argument: (subscript_expression argument: (identifier) index: (number_literal)) field: (field_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (call_expression function: (identifier) arguments: (argument_list (identifier) (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (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: (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (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 (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)) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) (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 (binary_expression left: (identifier) right: (number_literal)) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (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 (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))))) (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: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (goto_statement label: (statement_identifier))) (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 (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)) (binary_expression left: (identifier) right: (number_literal))))) (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 (identifier) (identifier) (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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 (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)) (binary_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (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 (identifier) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))) (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 (identifier) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (number_literal)) (number_literal)))) (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 (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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 (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (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: (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 (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (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 (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: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (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 (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (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)))) (return_statement (identifier)))) (return_statement (identifier)))))

int MASKED
              (undefined4 param_1,undefined1 param_2,undefined1 param_3,int param_4,uint param_5,
              int param_6,uint param_7,int param_8,byte param_9,uint param_10)

{
  uint3 uVar1;
  undefined *puVar2;
  undefined *puVar3;
  int *piVar4;
  int iVar5;
  undefined4 uVar6;
  int iVar7;
  undefined *puVar8;
  uint uVar9;
  int unaff_s0;
  undefined4 *puVar10;
  undefined4 *puVar11;
  undefined *unaff_s3;
  int *piVar12;
  int iVar13;
  undefined *puVar14;
  undefined4 *unaff_s8;
  int *piVar15;
  int *piVar16;
  code *pcVar17;
  int aiStack_124 [3];
  short sStack_118;
  undefined4 uStack_116;
  int iStack_d4;
  int iStack_d0;
  int iStack_cc;
  uint uStack_c8;
  undefined *puStack_c4;
  int iStack_c0;
  undefined *puStack_bc;
  int iStack_b8;
  undefined4 uStack_b4;
  undefined4 *puStack_b0;
  code *pcStack_ac;
  int iStack_a8;
  undefined *local_98;
  uint local_94;
  uint local_90;
  int *local_8c;
  int local_7c;
  undefined4 local_78;
  undefined4 local_74;
  short local_70;
  undefined4 uStack_6e;
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_00054a4c;
  local_2c = *(int *)PTR___stack_chk_guard_00054a4c;
  local_78 = 0x3b000000;
  local_74 = 0;
  local_70 = 0;
  if (param_5 < 0x1000000) {
    uVar6 = 0;
    param_3 = 0;
    if (param_7 < 0x1000000) {
      local_70 = (ushort)(byte)param_7 << 8;
      local_78 = CONCAT31(CONCAT21(0x3b00,(char)param_4),(char)(param_5 >> 0x10));
      uVar1 = CONCAT12(param_2,local_78._2_2_);
      local_78 = CONCAT13(0x3b,uVar1 & 0x1fffff);
      local_74 = CONCAT31(CONCAT21((short)param_5,(char)(param_7 >> 0x10)),(char)(param_7 >> 8));
      if (param_10 != 0) {
        unaff_s8 = &uStack_6e;
        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10fc);
        unaff_s3 = PTR_LAB_0005483c + 0x1f1c;
        puVar10 = &local_78;
        do {
          puVar11 = (undefined4 *)((int)puVar10 + 1);
          (*(code *)PTR_pr2ws_000548ec)(unaff_s3,*(undefined1 *)puVar10);
          param_3 = (undefined1)uVar6;
          puVar10 = puVar11;
        } while (puVar11 != unaff_s8);
        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x990);
        if (((1 < (int)param_10) && (param_6 != 0)) && (param_7 != 0)) {
          if (0x100 < param_7) {
            puVar8 = PTR_s_tatus_00054840 + -0x116c;
          }
          else {
            puVar8 = PTR_s_tatus_00054840 + -0x1a5c;
          }
          (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x10e4,puVar8);
          param_3 = 0xff;
          uVar9 = 0x100;
          if (0x100 >= param_7) {
            uVar9 = param_7;
          }
          (*(code *)PTR_hex2stderr_0005489c)(param_6,uVar9);
        }
      }
      if (param_8 < 1) {
        param_8 = 0x3c;
      }
      unaff_s0 = (*(code *)PTR_construct_scsi_pt_obj_00054a54)();
      if (unaff_s0 == 0) {
        iVar5 = -1;
        puVar8 = PTR_s_tatus_00054840 + -0xeb4;
        (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1974);
      }
      else {
        (*(code *)PTR_set_scsi_pt_cdb_00054860)(unaff_s0,&local_78,10);
        unaff_s3 = (undefined *)((int)&uStack_6e + 2);
        (*(code *)PTR_set_scsi_pt_sense_000548f4)(unaff_s0,unaff_s3,0x40);
        (*(code *)PTR_set_scsi_pt_data_out_00054a74)(unaff_s0,param_6,param_7);
        param_3 = (*(code *)PTR_do_scsi_pt_00054984)(unaff_s0,param_1,param_8,param_10);
        param_4 = 0;
        local_8c = &local_7c;
        local_90 = param_10;
        local_94 = (uint)param_9;
        puVar8 = PTR_LAB_0005483c + 0x3a04;
        local_98 = unaff_s3;
        iVar5 = (*(code *)PTR_sg_cmds_process_resp_000548d0)(unaff_s0);
        if (iVar5 == -1) {
          uVar6 = (*(code *)PTR_get_scsi_pt_os_err_00054a9c)(unaff_s0);
          iVar5 = (*(code *)PTR_sg_convert_errno_00054928)(uVar6);
        }
        else if (iVar5 == -2) {
          iVar5 = local_7c;
          if (local_7c - 0x14U < 2) {
            iVar5 = 0;
          }
        }
        else {
          iVar5 = 0;
        }
        (*(code *)PTR_destruct_scsi_pt_obj_0005496c)(unaff_s0);
      }
    }
    else {
      iVar5 = -1;
      puVar8 = PTR_s_tatus_00054840 + -0xeb4;
      (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1128);
    }
  }
  else {
    iVar5 = -1;
    puVar8 = PTR_s_tatus_00054840 + -0xeb4;
    (*(code *)PTR_pr2ws_000548ec)(PTR_s_tatus_00054840 + -0x1158);
  }
  if (local_2c == *(int *)puVar2) {
    return iVar5;
  }
  pcVar17 = sg_ll_unmap_v2;
  iVar7 = local_2c;
  puVar14 = PTR___stack_chk_fail_00054a1c;
  (*(code *)PTR___stack_chk_fail_00054a1c)();
  piVar4 = local_8c;
  uVar9 = local_94;
  puVar3 = local_98;
  piVar12 = *(int **)(puVar14 + 0x2ac2c);
  iStack_b8 = param_6;
  puStack_bc = puVar2;
  uStack_c8 = param_10;
  aiStack_124[1] = 0x42000000;
  iStack_d4 = *piVar12;
  if (puVar8 != (undefined *)0x0) {
    aiStack_124[1] = 0x42010000;
  }
  if (param_4 < 1) {
    param_4 = 0x3c;
  }
  iVar13 = *(int *)(puVar14 + 0x2aa20);
  aiStack_124[0] = CONCAT22((short)local_94,aiStack_124[0]._2_2_);
  sStack_118 = (ushort)(byte)local_94 << 8;
  aiStack_124[2] = (int)(CONCAT11(param_3,(char)(local_94 >> 8)) & 0x1fff);
  iStack_d0 = unaff_s0;
  iStack_cc = iVar5;
  puStack_c4 = unaff_s3;
  iStack_c0 = param_8;
  uStack_b4 = param_1;
  puStack_b0 = unaff_s8;
  pcStack_ac = pcVar17;
  iStack_a8 = iVar7;
  if (local_8c != (int *)0x0) {
    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1a50,iVar13 + -0x10c0);
    iVar5 = *(int *)(puVar14 + 0x2aa1c);
    piVar15 = aiStack_124 + 1;
    do {
      piVar16 = (int *)((int)piVar15 + 1);
      (**(code **)(puVar14 + 0x2aacc))(iVar5 + 0x1f1c,*(undefined1 *)piVar15);
      piVar15 = piVar16;
    } while (&uStack_116 != piVar16);
    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x990);
    if (1 < (int)piVar4) {
      pcVar17 = *(code **)(puVar14 + 0x2ac34);
      if ((puVar3 == (undefined *)0x0) || (uVar9 == 0)) goto LAB_00029ecc;
      (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x13cc,iVar13 + -0x10c0);
      (**(code **)(puVar14 + 0x2aa7c))(puVar3,uVar9,0xffffffff);
    }
  }
  pcVar17 = *(code **)(puVar14 + 0x2ac34);
LAB_00029ecc:
  iVar5 = (*pcVar17)();
  if (iVar5 == 0) {
    iVar7 = -1;
    (**(code **)(puVar14 + 0x2aacc))(*(int *)(puVar14 + 0x2aa20) + -0x1974,iVar13 + -0x10c0);
  }
  else {
    (**(code **)(puVar14 + 0x2aa40))(iVar5,aiStack_124 + 1,10);
    (**(code **)(puVar14 + 0x2aad4))(iVar5,(int)&uStack_116 + 2,0x40);
    (**(code **)(puVar14 + 0x2ac54))(iVar5,puVar3,uVar9);
    uVar6 = (**(code **)(puVar14 + 0x2ab64))(iVar5,iStack_a8,param_4,piVar4);
    iVar7 = (**(code **)(puVar14 + 0x2aab0))
                      (iVar5,iVar13 + -0x10c0,uVar6,0,(int)&uStack_116 + 2,local_90 & 0xff,piVar4,
                       aiStack_124);
    if (iVar7 == -1) {
      uVar6 = (**(code **)(puVar14 + 0x2ac7c))(iVar5);
      iVar7 = (**(code **)(puVar14 + 0x2ab08))(uVar6);
    }
    else if (iVar7 == -2) {
      iVar7 = aiStack_124[0];
      if (aiStack_124[0] - 0x14U < 2) {
        iVar7 = 0;
      }
    }
    else {
      iVar7 = 0;
    }
    (**(code **)(puVar14 + 0x2ab4c))(iVar5);
  }
  if (iStack_d4 != *piVar12) {
    pcVar17 = *(code **)(puVar14 + 0x2abfc);
    (*pcVar17)();
    iVar5 = (**(code **)(pcVar17 + 0x2a938))();
    return iVar5;
  }
  return iVar7;
}

