
int sg_ll_report_id_info(int sg_fd,int itype,void *resp,int max_resp_len,_Bool noisy,int verbose)

{
  long lVar1;
  int iVar2;
  sg_pt_base *vp;
  byte *pbVar3;
  int len;
  char *pcVar4;
  long in_FS_OFFSET;
  int sense_cat;
  uint8_t rii_cdb [12];
  uint8_t sense_b [64];
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  rii_cdb[0] = 0xa3;
  rii_cdb[1] = '\x05';
  rii_cdb._2_8_ =
       (ulong)((uint)max_resp_len >> 0x18 | (max_resp_len & 0xff0000U) >> 8 |
               (max_resp_len & 0xff00U) << 8 | max_resp_len << 0x18) << 0x20;
  rii_cdb[0xb] = '\0';
  rii_cdb[10] = (char)itype * '\x02';
  if (verbose != 0) {
    pr2ws("    %s cdb: ","Report identifying information");
    pbVar3 = rii_cdb;
    do {
      pr2ws("%02x ",(ulong)*pbVar3);
      pbVar3 = pbVar3 + 1;
    } while (pbVar3 != sense_b);
    pr2ws("\n");
  }
  vp = create_pt_obj("Report identifying information");
  if (vp == (sg_pt_base *)0x0) {
    sense_cat = sg_convert_errno(0xc);
  }
  else {
    set_scsi_pt_cdb(vp,rii_cdb,0xc);
    set_scsi_pt_sense(vp,sense_b,0x40);
    set_scsi_pt_data_in(vp,(uint8_t *)resp,max_resp_len);
    iVar2 = do_scsi_pt(vp,sg_fd,0x3c,verbose);
    iVar2 = sg_cmds_process_resp
                      (vp,"Report identifying information",iVar2,max_resp_len,sense_b,noisy,verbose,
                       &sense_cat);
    if (iVar2 == -1) {
      iVar2 = get_scsi_pt_os_err(vp);
      sense_cat = sg_convert_errno(iVar2);
    }
    else if (iVar2 == -2) {
      if (sense_cat - 0x14U < 2) {
        sense_cat = 0;
      }
    }
    else if ((verbose < 3) || (iVar2 < 1)) {
      sense_cat = 0;
    }
    else {
      pr2ws("    %s: response","Report identifying information");
      if (verbose == 3) {
        pcVar4 = ", first 256 bytes";
        if (iVar2 < 0x101) {
          pcVar4 = "";
        }
        pr2ws("%s:\n",pcVar4);
        len = 0x100;
        if (iVar2 < 0x101) {
          len = iVar2;
        }
        hex2stderr((uint8_t *)resp,len,-1);
        sense_cat = 0;
      }
      else {
        pr2ws(":\n");
        hex2stderr((uint8_t *)resp,iVar2,0);
        sense_cat = 0;
      }
    }
    destruct_scsi_pt_obj(vp);
  }
  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return sense_cat;
}



int sg_ll_report_id_info
              (undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,
              int param_6)

{
  undefined4 uVar1;
  int iVar2;
  long lVar3;
  undefined1 *puVar4;
  int iVar5;
  char *pcVar6;
  long in_FS_OFFSET;
  int local_98;
  undefined1 local_94 [2];
  long local_92;
  ushort local_8a;
  undefined1 local_88 [72];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  local_94[0] = 0xa3;
  local_94[1] = 5;
  local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |
                    param_4 << 0x18) << 0x20;
  local_8a = (ushort)(byte)(param_2 * '\x02');
  if (param_6 != 0) {
    pr2ws("    %s cdb: ","Report identifying information");
    puVar4 = local_94;
    do {
      pr2ws("%02x ",*puVar4);
      puVar4 = puVar4 + 1;
    } while (puVar4 != local_88);
    pr2ws(&DAT_001256cf);
  }
  lVar3 = FUN_0011a2e9("Report identifying information");
  if (lVar3 == 0) {
    local_98 = sg_convert_errno(0xc);
  }
  else {
    set_scsi_pt_cdb(lVar3,local_94,0xc);
    set_scsi_pt_sense(lVar3,local_88,0x40);
    set_scsi_pt_data_in(lVar3,param_3,param_4);
    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);
    iVar2 = sg_cmds_process_resp
                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6
                       ,&local_98);
    if (iVar2 == -1) {
      uVar1 = get_scsi_pt_os_err(lVar3);
      local_98 = sg_convert_errno(uVar1);
    }
    else if (iVar2 == -2) {
      if (local_98 - 0x14U < 2) {
        local_98 = 0;
      }
    }
    else if ((param_6 < 3) || (iVar2 < 1)) {
      local_98 = 0;
    }
    else {
      pr2ws("    %s: response","Report identifying information");
      if (param_6 == 3) {
        pcVar6 = ", first 256 bytes";
        if (iVar2 < 0x101) {
          pcVar6 = "";
        }
        pr2ws("%s:\n",pcVar6);
        iVar5 = 0x100;
        if (iVar2 < 0x101) {
          iVar5 = iVar2;
        }
        hex2stderr(param_3,iVar5,0xffffffff);
        local_98 = 0;
      }
      else {
        pr2ws(":\n");
        hex2stderr(param_3,iVar2,0);
        local_98 = 0;
      }
    }
    destruct_scsi_pt_obj(lVar3);
  }
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return local_98;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x78
MOV dword ptr [RSP + 0x8],EDI
MOV R15,RDX
MOV R14D,ECX
MOV dword ptr [RSP + 0xc],R8D
MOV R13D,R9D
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x68],RAX
XOR EAX,EAX
MOV qword ptr [RSP + 0x16],0x0
MOV word ptr [RSP + 0x1e],0x0
MOV byte ptr [RSP + 0x14],0xa3
MOV byte ptr [RSP + 0x15],0x5
MOV EAX,ECX
BSWAP EAX
MOV dword ptr [RSP + 0x1a],EAX
ADD ESI,ESI
MOV byte ptr [RSP + 0x1e],SIL
TEST R9D,R9D
JNZ 0x0011bc9d
LEA RDI,[0x131328]
CALL 0x0011a2e9
MOV RBX,RAX
TEST RAX,RAX
JZ 0x0011bcf5
LEA RSI,[RSP + 0x14]
MOV EDX,0xc
MOV RDI,RAX
CALL 0x0010e7d0
LEA RBP,[RSP + 0x20]
MOV EDX,0x40
MOV RSI,RBP
MOV RDI,RBX
CALL 0x0010e600
MOV EDX,R14D
MOV RSI,R15
MOV RDI,RBX
CALL 0x0010e0f0
MOV ECX,R13D
MOV EDX,0x3c
MOV ESI,dword ptr [RSP + 0x8]
MOV RDI,RBX
CALL 0x0010e460
LEA RDX,[RSP + 0x10]
PUSH RDX
PUSH R13
MOVZX R9D,byte ptr [RSP + 0x1c]
MOV R8,RBP
MOV ECX,R14D
MOV EDX,EAX
LEA RSI,[0x131328]
MOV RDI,RBX
CALL 0x0010e680
MOV EBP,EAX
ADD RSP,0x10
CMP EAX,-0x1
JZ 0x0011bd06
CMP EAX,-0x2
JZ 0x0011bd1c
CMP R13D,0x2
JLE 0x0011bc6b
TEST EAX,EAX
JG 0x0011bd33
MOV EBP,0x0
MOV RDI,RBX
CALL 0x0010e4b0
MOV EAX,EBP
MOV RCX,qword ptr [RSP + 0x68]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x0011bdc9
ADD RSP,0x78
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
LEA RSI,[0x131328]
LEA RDI,[0x131793]
MOV EAX,0x0
CALL 0x0010e610
LEA RBX,[RSP + 0x14]
LEA R12,[RSP + 0x20]
LEA RBP,[0x132c03]
MOVZX ESI,byte ptr [RBX]
MOV RDI,RBP
MOV EAX,0x0
CALL 0x0010e610
ADD RBX,0x1
CMP RBX,R12
JNZ 0x0011bcc6
LEA RDI,[0x1256cf]
MOV EAX,0x0
CALL 0x0010e610
JMP 0x0011bbbf
MOV EDI,0xc
CALL 0x0010e550
MOV EBP,EAX
JMP 0x0011bc78
MOV RDI,RBX
CALL 0x0010e0a0
MOV EDI,EAX
CALL 0x0010e550
MOV EBP,EAX
JMP 0x0011bc70
MOV EBP,dword ptr [RSP + 0x10]
LEA EAX,[RBP + -0x14]
CMP EAX,0x1
MOV EAX,0x0
CMOVBE EBP,EAX
JMP 0x0011bc70
LEA RSI,[0x131328]
LEA RDI,[0x131c10]
MOV EAX,0x0
CALL 0x0010e610
CMP R13D,0x3
JNZ 0x0011bd9f
CMP EBP,0x100
LEA RSI,[0x131bdb]
LEA RAX,[0x125a00]
CMOVLE RSI,RAX
LEA RDI,[0x125365]
MOV EAX,0x0
CALL 0x0010e610
CMP EBP,0x100
MOV ESI,0x100
CMOVLE ESI,EBP
MOV EDX,0xffffffff
MOV RDI,R15
CALL 0x0010e700
MOV EBP,0x0
JMP 0x0011bc70
LEA RDI,[0x132cc5]
MOV EAX,0x0
CALL 0x0010e610
MOV EDX,0x0
MOV ESI,EBP
MOV RDI,R15
CALL 0x0010e700
MOV EBP,0x0
JMP 0x0011bc70
CALL 0x0010e210
(translation_unit "int sg_ll_report_id_info\n              (undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,\n              int param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  char *pcVar6;\n  long in_FS_OFFSET;\n  int local_98;\n  undefined1 local_94 [2];\n  long local_92;\n  ushort local_8a;\n  undefined1 local_88 [72];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_94[0] = 0xa3;\n  local_94[1] = 5;\n  local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20;\n  local_8a = (ushort)(byte)(param_2 * '\x02');\n  if (param_6 != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }\n  lVar3 = FUN_0011a2e9("Report identifying information");\n  if (lVar3 == 0) {\n    local_98 = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return local_98;\n}\n\n" (function_definition "int sg_ll_report_id_info\n              (undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,\n              int param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  char *pcVar6;\n  long in_FS_OFFSET;\n  int local_98;\n  undefined1 local_94 [2];\n  long local_92;\n  ushort local_8a;\n  undefined1 local_88 [72];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_94[0] = 0xa3;\n  local_94[1] = 5;\n  local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20;\n  local_8a = (ushort)(byte)(param_2 * '\x02');\n  if (param_6 != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }\n  lVar3 = FUN_0011a2e9("Report identifying information");\n  if (lVar3 == 0) {\n    local_98 = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return local_98;\n}" primitive_type (function_declarator "sg_ll_report_id_info\n              (undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,\n              int param_6)" identifier (parameter_list "(undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,\n              int param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char param_2" primitive_type identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "undefined1 param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  char *pcVar6;\n  long in_FS_OFFSET;\n  int local_98;\n  undefined1 local_94 [2];\n  long local_92;\n  ushort local_8a;\n  undefined1 local_88 [72];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_94[0] = 0xa3;\n  local_94[1] = 5;\n  local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20;\n  local_8a = (ushort)(byte)(param_2 * '\x02');\n  if (param_6 != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }\n  lVar3 = FUN_0011a2e9("Report identifying information");\n  if (lVar3 == 0) {\n    local_98 = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return local_98;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_98;" primitive_type identifier ;) (declaration "undefined1 local_94 [2];" type_identifier (array_declarator "local_94 [2]" identifier [ number_literal ]) ;) (declaration "long local_92;" (sized_type_specifier "long" long) identifier ;) (declaration "ushort local_8a;" type_identifier identifier ;) (declaration "undefined1 local_88 [72];" type_identifier (array_declarator "local_88 [72]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_94[0] = 0xa3;" (assignment_expression "local_94[0] = 0xa3" (subscript_expression "local_94[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_94[1] = 5;" (assignment_expression "local_94[1] = 5" (subscript_expression "local_94[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20;" (assignment_expression "local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20" identifier = (binary_expression "(ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20" (call_expression "(ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18)" ( (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8" (binary_expression "param_4 >> 0x18" identifier >> number_literal) | (binary_expression "(param_4 & 0xff0000) >> 8" (parenthesized_expression "(param_4 & 0xff0000)" ( (binary_expression "param_4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_4 & 0xff00) << 8" (parenthesized_expression "(param_4 & 0xff00)" ( (binary_expression "param_4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_4 << 0x18" identifier << number_literal)) ))) << number_literal)) ;) (expression_statement "local_8a = (ushort)(byte)(param_2 * '\x02');" (assignment_expression "local_8a = (ushort)(byte)(param_2 * '\x02')" identifier = (call_expression "(ushort)(byte)(param_2 * '\x02')" (call_expression "(ushort)(byte)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(param_2 * '\x02')" ( (binary_expression "param_2 * '\x02'" identifier * (char_literal "'\x02'" ' escape_sequence ')) )))) ;) (if_statement "if (param_6 != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }" { (expression_statement "pr2ws("    %s cdb: ","Report identifying information");" (call_expression "pr2ws("    %s cdb: ","Report identifying information")" identifier (argument_list "("    %s cdb: ","Report identifying information")" ( (string_literal ""    %s cdb: "" " string_content ") , (string_literal ""Report identifying information"" " string_content ") ))) ;) (expression_statement "puVar4 = local_94;" (assignment_expression "puVar4 = local_94" identifier = identifier) ;) (do_statement "do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);" do (compound_statement "{\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    }" { (expression_statement "pr2ws("%02x ",*puVar4);" (call_expression "pr2ws("%02x ",*puVar4)" identifier (argument_list "("%02x ",*puVar4)" ( (string_literal ""%02x "" " string_content ") , (pointer_expression "*puVar4" * identifier) ))) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 != local_88)" ( (binary_expression "puVar4 != local_88" identifier != identifier) )) ;) (expression_statement "pr2ws(&DAT_001256cf);" (call_expression "pr2ws(&DAT_001256cf)" identifier (argument_list "(&DAT_001256cf)" ( (pointer_expression "&DAT_001256cf" & identifier) ))) ;) })) (expression_statement "lVar3 = FUN_0011a2e9("Report identifying information");" (assignment_expression "lVar3 = FUN_0011a2e9("Report identifying information")" identifier = (call_expression "FUN_0011a2e9("Report identifying information")" identifier (argument_list "("Report identifying information")" ( (string_literal ""Report identifying information"" " string_content ") )))) ;) (if_statement "if (lVar3 == 0) {\n    local_98 = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    local_98 = sg_convert_errno(0xc);\n  }" { (expression_statement "local_98 = sg_convert_errno(0xc);" (assignment_expression "local_98 = sg_convert_errno(0xc)" identifier = (call_expression "sg_convert_errno(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) }) (else_clause "else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }" else (compound_statement "{\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }" { (expression_statement "set_scsi_pt_cdb(lVar3,local_94,0xc);" (call_expression "set_scsi_pt_cdb(lVar3,local_94,0xc)" identifier (argument_list "(lVar3,local_94,0xc)" ( identifier , identifier , number_literal ))) ;) (expression_statement "set_scsi_pt_sense(lVar3,local_88,0x40);" (call_expression "set_scsi_pt_sense(lVar3,local_88,0x40)" identifier (argument_list "(lVar3,local_88,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "set_scsi_pt_data_in(lVar3,param_3,param_4);" (call_expression "set_scsi_pt_data_in(lVar3,param_3,param_4)" identifier (argument_list "(lVar3,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);" (assignment_expression "uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6)" identifier = (call_expression "do_scsi_pt(lVar3,param_1,0x3c,param_6)" identifier (argument_list "(lVar3,param_1,0x3c,param_6)" ( identifier , identifier , number_literal , identifier )))) ;) (expression_statement "iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);" (assignment_expression "iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98)" identifier = (call_expression "sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98)" identifier (argument_list "(lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98)" ( identifier , (string_literal ""Report identifying information"" " string_content ") , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_98" & identifier) )))) ;) (if_statement "if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }" { (expression_statement "uVar1 = get_scsi_pt_os_err(lVar3);" (assignment_expression "uVar1 = get_scsi_pt_os_err(lVar3)" identifier = (call_expression "get_scsi_pt_os_err(lVar3)" identifier (argument_list "(lVar3)" ( identifier )))) ;) (expression_statement "local_98 = sg_convert_errno(uVar1);" (assignment_expression "local_98 = sg_convert_errno(uVar1)" identifier = (call_expression "sg_convert_errno(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) }) (else_clause "else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" else (if_statement "if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" if (parenthesized_expression "(iVar2 == -2)" ( (binary_expression "iVar2 == -2" identifier == number_literal) )) (compound_statement "{\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }" { (if_statement "if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }" if (parenthesized_expression "(local_98 - 0x14U < 2)" ( (binary_expression "local_98 - 0x14U < 2" (binary_expression "local_98 - 0x14U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        local_98 = 0;\n      }" { (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" identifier = number_literal) ;) })) }) (else_clause "else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" else (if_statement "if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" if (parenthesized_expression "((param_6 < 3) || (iVar2 < 1))" ( (binary_expression "(param_6 < 3) || (iVar2 < 1)" (parenthesized_expression "(param_6 < 3)" ( (binary_expression "param_6 < 3" identifier < number_literal) )) || (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) ))) )) (compound_statement "{\n      local_98 = 0;\n    }" { (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" else (compound_statement "{\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" { (expression_statement "pr2ws("    %s: response","Report identifying information");" (call_expression "pr2ws("    %s: response","Report identifying information")" identifier (argument_list "("    %s: response","Report identifying information")" ( (string_literal ""    %s: response"" " string_content ") , (string_literal ""Report identifying information"" " string_content ") ))) ;) (if_statement "if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }" if (parenthesized_expression "(param_6 == 3)" ( (binary_expression "param_6 == 3" identifier == number_literal) )) (compound_statement "{\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }" { (expression_statement "pcVar6 = ", first 256 bytes";" (assignment_expression "pcVar6 = ", first 256 bytes"" identifier = (string_literal "", first 256 bytes"" " string_content ")) ;) (if_statement "if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }" if (parenthesized_expression "(iVar2 < 0x101)" ( (binary_expression "iVar2 < 0x101" identifier < number_literal) )) (compound_statement "{\n          pcVar6 = "";\n        }" { (expression_statement "pcVar6 = "";" (assignment_expression "pcVar6 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "pr2ws("%s:\n",pcVar6);" (call_expression "pr2ws("%s:\n",pcVar6)" identifier (argument_list "("%s:\n",pcVar6)" ( (string_literal ""%s:\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "iVar5 = 0x100;" (assignment_expression "iVar5 = 0x100" identifier = number_literal) ;) (if_statement "if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }" if (parenthesized_expression "(iVar2 < 0x101)" ( (binary_expression "iVar2 < 0x101" identifier < number_literal) )) (compound_statement "{\n          iVar5 = iVar2;\n        }" { (expression_statement "iVar5 = iVar2;" (assignment_expression "iVar5 = iVar2" identifier = identifier) ;) })) (expression_statement "hex2stderr(param_3,iVar5,0xffffffff);" (call_expression "hex2stderr(param_3,iVar5,0xffffffff)" identifier (argument_list "(param_3,iVar5,0xffffffff)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }" else (compound_statement "{\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }" { (expression_statement "pr2ws(":\n");" (call_expression "pr2ws(":\n")" identifier (argument_list "(":\n")" ( (string_literal "":\n"" " string_content escape_sequence ") ))) ;) (expression_statement "hex2stderr(param_3,iVar2,0);" (call_expression "hex2stderr(param_3,iVar2,0)" identifier (argument_list "(param_3,iVar2,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" identifier = number_literal) ;) }))) }))))))) (expression_statement "destruct_scsi_pt_obj(lVar3);" (call_expression "destruct_scsi_pt_obj(lVar3)" identifier (argument_list "(lVar3)" ( identifier ))) ;) }))) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_98;" return identifier ;) })))
(translation_unit "int sg_ll_report_id_info(int sg_fd,int itype,void *resp,int max_resp_len,_Bool noisy,int verbose)\n\n{\n  long lVar1;\n  int iVar2;\n  sg_pt_base *vp;\n  byte *pbVar3;\n  int len;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  int sense_cat;\n  uint8_t rii_cdb [12];\n  uint8_t sense_b [64];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  rii_cdb[0] = 0xa3;\n  rii_cdb[1] = '\x05';\n  rii_cdb._2_8_ =\n       (ulong)((uint)max_resp_len >> 0x18 | (max_resp_len & 0xff0000U) >> 8 |\n               (max_resp_len & 0xff00U) << 8 | max_resp_len << 0x18) << 0x20;\n  rii_cdb[0xb] = '\0';\n  rii_cdb[10] = (char)itype * '\x02';\n  if (verbose != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    pbVar3 = rii_cdb;\n    do {\n      pr2ws("%02x ",(ulong)*pbVar3);\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != sense_b);\n    pr2ws("\n");\n  }\n  vp = create_pt_obj("Report identifying information");\n  if (vp == (sg_pt_base *)0x0) {\n    sense_cat = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(vp,rii_cdb,0xc);\n    set_scsi_pt_sense(vp,sense_b,0x40);\n    set_scsi_pt_data_in(vp,(uint8_t *)resp,max_resp_len);\n    iVar2 = do_scsi_pt(vp,sg_fd,0x3c,verbose);\n    iVar2 = sg_cmds_process_resp\n                      (vp,"Report identifying information",iVar2,max_resp_len,sense_b,noisy,verbose,\n                       &sense_cat);\n    if (iVar2 == -1) {\n      iVar2 = get_scsi_pt_os_err(vp);\n      sense_cat = sg_convert_errno(iVar2);\n    }\n    else if (iVar2 == -2) {\n      if (sense_cat - 0x14U < 2) {\n        sense_cat = 0;\n      }\n    }\n    else if ((verbose < 3) || (iVar2 < 1)) {\n      sense_cat = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }\n    destruct_scsi_pt_obj(vp);\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return sense_cat;\n}\n\n" (function_definition "int sg_ll_report_id_info(int sg_fd,int itype,void *resp,int max_resp_len,_Bool noisy,int verbose)\n\n{\n  long lVar1;\n  int iVar2;\n  sg_pt_base *vp;\n  byte *pbVar3;\n  int len;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  int sense_cat;\n  uint8_t rii_cdb [12];\n  uint8_t sense_b [64];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  rii_cdb[0] = 0xa3;\n  rii_cdb[1] = '\x05';\n  rii_cdb._2_8_ =\n       (ulong)((uint)max_resp_len >> 0x18 | (max_resp_len & 0xff0000U) >> 8 |\n               (max_resp_len & 0xff00U) << 8 | max_resp_len << 0x18) << 0x20;\n  rii_cdb[0xb] = '\0';\n  rii_cdb[10] = (char)itype * '\x02';\n  if (verbose != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    pbVar3 = rii_cdb;\n    do {\n      pr2ws("%02x ",(ulong)*pbVar3);\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != sense_b);\n    pr2ws("\n");\n  }\n  vp = create_pt_obj("Report identifying information");\n  if (vp == (sg_pt_base *)0x0) {\n    sense_cat = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(vp,rii_cdb,0xc);\n    set_scsi_pt_sense(vp,sense_b,0x40);\n    set_scsi_pt_data_in(vp,(uint8_t *)resp,max_resp_len);\n    iVar2 = do_scsi_pt(vp,sg_fd,0x3c,verbose);\n    iVar2 = sg_cmds_process_resp\n                      (vp,"Report identifying information",iVar2,max_resp_len,sense_b,noisy,verbose,\n                       &sense_cat);\n    if (iVar2 == -1) {\n      iVar2 = get_scsi_pt_os_err(vp);\n      sense_cat = sg_convert_errno(iVar2);\n    }\n    else if (iVar2 == -2) {\n      if (sense_cat - 0x14U < 2) {\n        sense_cat = 0;\n      }\n    }\n    else if ((verbose < 3) || (iVar2 < 1)) {\n      sense_cat = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }\n    destruct_scsi_pt_obj(vp);\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return sense_cat;\n}" primitive_type (function_declarator "sg_ll_report_id_info(int sg_fd,int itype,void *resp,int max_resp_len,_Bool noisy,int verbose)" identifier (parameter_list "(int sg_fd,int itype,void *resp,int max_resp_len,_Bool noisy,int verbose)" ( (parameter_declaration "int sg_fd" primitive_type identifier) , (parameter_declaration "int itype" primitive_type identifier) , (parameter_declaration "void *resp" primitive_type (pointer_declarator "*resp" * identifier)) , (parameter_declaration "int max_resp_len" primitive_type identifier) , (parameter_declaration "_Bool noisy" type_identifier identifier) , (parameter_declaration "int verbose" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  sg_pt_base *vp;\n  byte *pbVar3;\n  int len;\n  char *pcVar4;\n  long in_FS_OFFSET;\n  int sense_cat;\n  uint8_t rii_cdb [12];\n  uint8_t sense_b [64];\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  rii_cdb[0] = 0xa3;\n  rii_cdb[1] = '\x05';\n  rii_cdb._2_8_ =\n       (ulong)((uint)max_resp_len >> 0x18 | (max_resp_len & 0xff0000U) >> 8 |\n               (max_resp_len & 0xff00U) << 8 | max_resp_len << 0x18) << 0x20;\n  rii_cdb[0xb] = '\0';\n  rii_cdb[10] = (char)itype * '\x02';\n  if (verbose != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    pbVar3 = rii_cdb;\n    do {\n      pr2ws("%02x ",(ulong)*pbVar3);\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != sense_b);\n    pr2ws("\n");\n  }\n  vp = create_pt_obj("Report identifying information");\n  if (vp == (sg_pt_base *)0x0) {\n    sense_cat = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(vp,rii_cdb,0xc);\n    set_scsi_pt_sense(vp,sense_b,0x40);\n    set_scsi_pt_data_in(vp,(uint8_t *)resp,max_resp_len);\n    iVar2 = do_scsi_pt(vp,sg_fd,0x3c,verbose);\n    iVar2 = sg_cmds_process_resp\n                      (vp,"Report identifying information",iVar2,max_resp_len,sense_b,noisy,verbose,\n                       &sense_cat);\n    if (iVar2 == -1) {\n      iVar2 = get_scsi_pt_os_err(vp);\n      sense_cat = sg_convert_errno(iVar2);\n    }\n    else if (iVar2 == -2) {\n      if (sense_cat - 0x14U < 2) {\n        sense_cat = 0;\n      }\n    }\n    else if ((verbose < 3) || (iVar2 < 1)) {\n      sense_cat = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }\n    destruct_scsi_pt_obj(vp);\n  }\n  if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return sense_cat;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "sg_pt_base *vp;" type_identifier (pointer_declarator "*vp" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int len;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int sense_cat;" primitive_type identifier ;) (declaration "uint8_t rii_cdb [12];" primitive_type (array_declarator "rii_cdb [12]" identifier [ number_literal ]) ;) (declaration "uint8_t sense_b [64];" primitive_type (array_declarator "sense_b [64]" identifier [ number_literal ]) ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "rii_cdb[0] = 0xa3;" (assignment_expression "rii_cdb[0] = 0xa3" (subscript_expression "rii_cdb[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "rii_cdb[1] = '\x05';" (assignment_expression "rii_cdb[1] = '\x05'" (subscript_expression "rii_cdb[1]" identifier [ number_literal ]) = (char_literal "'\x05'" ' escape_sequence ')) ;) (expression_statement "rii_cdb._2_8_ =\n       (ulong)((uint)max_resp_len >> 0x18 | (max_resp_len & 0xff0000U) >> 8 |\n               (max_resp_len & 0xff00U) << 8 | max_resp_len << 0x18) << 0x20;" (assignment_expression "rii_cdb._2_8_ =\n       (ulong)((uint)max_resp_len >> 0x18 | (max_resp_len & 0xff0000U) >> 8 |\n               (max_resp_len & 0xff00U) << 8 | max_resp_len << 0x18) << 0x20" (field_expression "rii_cdb._2_8_" identifier . field_identifier) = (binary_expression "(ulong)((uint)max_resp_len >> 0x18 | (max_resp_len & 0xff0000U) >> 8 |\n               (max_resp_len & 0xff00U) << 8 | max_resp_len << 0x18) << 0x20" (call_expression "(ulong)((uint)max_resp_len >> 0x18 | (max_resp_len & 0xff0000U) >> 8 |\n               (max_resp_len & 0xff00U) << 8 | max_resp_len << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((uint)max_resp_len >> 0x18 | (max_resp_len & 0xff0000U) >> 8 |\n               (max_resp_len & 0xff00U) << 8 | max_resp_len << 0x18)" ( (binary_expression "(uint)max_resp_len >> 0x18 | (max_resp_len & 0xff0000U) >> 8 |\n               (max_resp_len & 0xff00U) << 8 | max_resp_len << 0x18" (binary_expression "(uint)max_resp_len >> 0x18 | (max_resp_len & 0xff0000U) >> 8 |\n               (max_resp_len & 0xff00U) << 8" (binary_expression "(uint)max_resp_len >> 0x18 | (max_resp_len & 0xff0000U) >> 8" (binary_expression "(uint)max_resp_len >> 0x18" (cast_expression "(uint)max_resp_len" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) | (binary_expression "(max_resp_len & 0xff0000U) >> 8" (parenthesized_expression "(max_resp_len & 0xff0000U)" ( (binary_expression "max_resp_len & 0xff0000U" identifier & number_literal) )) >> number_literal)) | (binary_expression "(max_resp_len & 0xff00U) << 8" (parenthesized_expression "(max_resp_len & 0xff00U)" ( (binary_expression "max_resp_len & 0xff00U" identifier & number_literal) )) << number_literal)) | (binary_expression "max_resp_len << 0x18" identifier << number_literal)) ))) << number_literal)) ;) (expression_statement "rii_cdb[0xb] = '\0';" (assignment_expression "rii_cdb[0xb] = '\0'" (subscript_expression "rii_cdb[0xb]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "rii_cdb[10] = (char)itype * '\x02';" (assignment_expression "rii_cdb[10] = (char)itype * '\x02'" (subscript_expression "rii_cdb[10]" identifier [ number_literal ]) = (binary_expression "(char)itype * '\x02'" (cast_expression "(char)itype" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\x02'" ' escape_sequence '))) ;) (if_statement "if (verbose != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    pbVar3 = rii_cdb;\n    do {\n      pr2ws("%02x ",(ulong)*pbVar3);\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != sense_b);\n    pr2ws("\n");\n  }" if (parenthesized_expression "(verbose != 0)" ( (binary_expression "verbose != 0" identifier != number_literal) )) (compound_statement "{\n    pr2ws("    %s cdb: ","Report identifying information");\n    pbVar3 = rii_cdb;\n    do {\n      pr2ws("%02x ",(ulong)*pbVar3);\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != sense_b);\n    pr2ws("\n");\n  }" { (expression_statement "pr2ws("    %s cdb: ","Report identifying information");" (call_expression "pr2ws("    %s cdb: ","Report identifying information")" identifier (argument_list "("    %s cdb: ","Report identifying information")" ( (string_literal ""    %s cdb: "" " string_content ") , (string_literal ""Report identifying information"" " string_content ") ))) ;) (expression_statement "pbVar3 = rii_cdb;" (assignment_expression "pbVar3 = rii_cdb" identifier = identifier) ;) (do_statement "do {\n      pr2ws("%02x ",(ulong)*pbVar3);\n      pbVar3 = pbVar3 + 1;\n    } while (pbVar3 != sense_b);" do (compound_statement "{\n      pr2ws("%02x ",(ulong)*pbVar3);\n      pbVar3 = pbVar3 + 1;\n    }" { (expression_statement "pr2ws("%02x ",(ulong)*pbVar3);" (call_expression "pr2ws("%02x ",(ulong)*pbVar3)" identifier (argument_list "("%02x ",(ulong)*pbVar3)" ( (string_literal ""%02x "" " string_content ") , (binary_expression "(ulong)*pbVar3" (parenthesized_expression "(ulong)" ( identifier )) * identifier) ))) ;) (expression_statement "pbVar3 = pbVar3 + 1;" (assignment_expression "pbVar3 = pbVar3 + 1" identifier = (binary_expression "pbVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar3 != sense_b)" ( (binary_expression "pbVar3 != sense_b" identifier != identifier) )) ;) (expression_statement "pr2ws("\n");" (call_expression "pr2ws("\n")" identifier (argument_list "("\n")" ( (string_literal ""\n"" " escape_sequence ") ))) ;) })) (expression_statement "vp = create_pt_obj("Report identifying information");" (assignment_expression "vp = create_pt_obj("Report identifying information")" identifier = (call_expression "create_pt_obj("Report identifying information")" identifier (argument_list "("Report identifying information")" ( (string_literal ""Report identifying information"" " string_content ") )))) ;) (if_statement "if (vp == (sg_pt_base *)0x0) {\n    sense_cat = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(vp,rii_cdb,0xc);\n    set_scsi_pt_sense(vp,sense_b,0x40);\n    set_scsi_pt_data_in(vp,(uint8_t *)resp,max_resp_len);\n    iVar2 = do_scsi_pt(vp,sg_fd,0x3c,verbose);\n    iVar2 = sg_cmds_process_resp\n                      (vp,"Report identifying information",iVar2,max_resp_len,sense_b,noisy,verbose,\n                       &sense_cat);\n    if (iVar2 == -1) {\n      iVar2 = get_scsi_pt_os_err(vp);\n      sense_cat = sg_convert_errno(iVar2);\n    }\n    else if (iVar2 == -2) {\n      if (sense_cat - 0x14U < 2) {\n        sense_cat = 0;\n      }\n    }\n    else if ((verbose < 3) || (iVar2 < 1)) {\n      sense_cat = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }\n    destruct_scsi_pt_obj(vp);\n  }" if (parenthesized_expression "(vp == (sg_pt_base *)0x0)" ( (binary_expression "vp == (sg_pt_base *)0x0" identifier == (cast_expression "(sg_pt_base *)0x0" ( (type_descriptor "sg_pt_base *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sense_cat = sg_convert_errno(0xc);\n  }" { (expression_statement "sense_cat = sg_convert_errno(0xc);" (assignment_expression "sense_cat = sg_convert_errno(0xc)" identifier = (call_expression "sg_convert_errno(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) }) (else_clause "else {\n    set_scsi_pt_cdb(vp,rii_cdb,0xc);\n    set_scsi_pt_sense(vp,sense_b,0x40);\n    set_scsi_pt_data_in(vp,(uint8_t *)resp,max_resp_len);\n    iVar2 = do_scsi_pt(vp,sg_fd,0x3c,verbose);\n    iVar2 = sg_cmds_process_resp\n                      (vp,"Report identifying information",iVar2,max_resp_len,sense_b,noisy,verbose,\n                       &sense_cat);\n    if (iVar2 == -1) {\n      iVar2 = get_scsi_pt_os_err(vp);\n      sense_cat = sg_convert_errno(iVar2);\n    }\n    else if (iVar2 == -2) {\n      if (sense_cat - 0x14U < 2) {\n        sense_cat = 0;\n      }\n    }\n    else if ((verbose < 3) || (iVar2 < 1)) {\n      sense_cat = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }\n    destruct_scsi_pt_obj(vp);\n  }" else (compound_statement "{\n    set_scsi_pt_cdb(vp,rii_cdb,0xc);\n    set_scsi_pt_sense(vp,sense_b,0x40);\n    set_scsi_pt_data_in(vp,(uint8_t *)resp,max_resp_len);\n    iVar2 = do_scsi_pt(vp,sg_fd,0x3c,verbose);\n    iVar2 = sg_cmds_process_resp\n                      (vp,"Report identifying information",iVar2,max_resp_len,sense_b,noisy,verbose,\n                       &sense_cat);\n    if (iVar2 == -1) {\n      iVar2 = get_scsi_pt_os_err(vp);\n      sense_cat = sg_convert_errno(iVar2);\n    }\n    else if (iVar2 == -2) {\n      if (sense_cat - 0x14U < 2) {\n        sense_cat = 0;\n      }\n    }\n    else if ((verbose < 3) || (iVar2 < 1)) {\n      sense_cat = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }\n    destruct_scsi_pt_obj(vp);\n  }" { (expression_statement "set_scsi_pt_cdb(vp,rii_cdb,0xc);" (call_expression "set_scsi_pt_cdb(vp,rii_cdb,0xc)" identifier (argument_list "(vp,rii_cdb,0xc)" ( identifier , identifier , number_literal ))) ;) (expression_statement "set_scsi_pt_sense(vp,sense_b,0x40);" (call_expression "set_scsi_pt_sense(vp,sense_b,0x40)" identifier (argument_list "(vp,sense_b,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "set_scsi_pt_data_in(vp,(uint8_t *)resp,max_resp_len);" (call_expression "set_scsi_pt_data_in(vp,(uint8_t *)resp,max_resp_len)" identifier (argument_list "(vp,(uint8_t *)resp,max_resp_len)" ( identifier , (cast_expression "(uint8_t *)resp" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "iVar2 = do_scsi_pt(vp,sg_fd,0x3c,verbose);" (assignment_expression "iVar2 = do_scsi_pt(vp,sg_fd,0x3c,verbose)" identifier = (call_expression "do_scsi_pt(vp,sg_fd,0x3c,verbose)" identifier (argument_list "(vp,sg_fd,0x3c,verbose)" ( identifier , identifier , number_literal , identifier )))) ;) (expression_statement "iVar2 = sg_cmds_process_resp\n                      (vp,"Report identifying information",iVar2,max_resp_len,sense_b,noisy,verbose,\n                       &sense_cat);" (assignment_expression "iVar2 = sg_cmds_process_resp\n                      (vp,"Report identifying information",iVar2,max_resp_len,sense_b,noisy,verbose,\n                       &sense_cat)" identifier = (call_expression "sg_cmds_process_resp\n                      (vp,"Report identifying information",iVar2,max_resp_len,sense_b,noisy,verbose,\n                       &sense_cat)" identifier (argument_list "(vp,"Report identifying information",iVar2,max_resp_len,sense_b,noisy,verbose,\n                       &sense_cat)" ( identifier , (string_literal ""Report identifying information"" " string_content ") , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&sense_cat" & identifier) )))) ;) (if_statement "if (iVar2 == -1) {\n      iVar2 = get_scsi_pt_os_err(vp);\n      sense_cat = sg_convert_errno(iVar2);\n    }\n    else if (iVar2 == -2) {\n      if (sense_cat - 0x14U < 2) {\n        sense_cat = 0;\n      }\n    }\n    else if ((verbose < 3) || (iVar2 < 1)) {\n      sense_cat = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar2 = get_scsi_pt_os_err(vp);\n      sense_cat = sg_convert_errno(iVar2);\n    }" { (expression_statement "iVar2 = get_scsi_pt_os_err(vp);" (assignment_expression "iVar2 = get_scsi_pt_os_err(vp)" identifier = (call_expression "get_scsi_pt_os_err(vp)" identifier (argument_list "(vp)" ( identifier )))) ;) (expression_statement "sense_cat = sg_convert_errno(iVar2);" (assignment_expression "sense_cat = sg_convert_errno(iVar2)" identifier = (call_expression "sg_convert_errno(iVar2)" identifier (argument_list "(iVar2)" ( identifier )))) ;) }) (else_clause "else if (iVar2 == -2) {\n      if (sense_cat - 0x14U < 2) {\n        sense_cat = 0;\n      }\n    }\n    else if ((verbose < 3) || (iVar2 < 1)) {\n      sense_cat = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }" else (if_statement "if (iVar2 == -2) {\n      if (sense_cat - 0x14U < 2) {\n        sense_cat = 0;\n      }\n    }\n    else if ((verbose < 3) || (iVar2 < 1)) {\n      sense_cat = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }" if (parenthesized_expression "(iVar2 == -2)" ( (binary_expression "iVar2 == -2" identifier == number_literal) )) (compound_statement "{\n      if (sense_cat - 0x14U < 2) {\n        sense_cat = 0;\n      }\n    }" { (if_statement "if (sense_cat - 0x14U < 2) {\n        sense_cat = 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        sense_cat = 0;\n      }" { (expression_statement "sense_cat = 0;" (assignment_expression "sense_cat = 0" identifier = number_literal) ;) })) }) (else_clause "else if ((verbose < 3) || (iVar2 < 1)) {\n      sense_cat = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }" else (if_statement "if ((verbose < 3) || (iVar2 < 1)) {\n      sense_cat = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }" if (parenthesized_expression "((verbose < 3) || (iVar2 < 1))" ( (binary_expression "(verbose < 3) || (iVar2 < 1)" (parenthesized_expression "(verbose < 3)" ( (binary_expression "verbose < 3" identifier < number_literal) )) || (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) ))) )) (compound_statement "{\n      sense_cat = 0;\n    }" { (expression_statement "sense_cat = 0;" (assignment_expression "sense_cat = 0" identifier = number_literal) ;) }) (else_clause "else {\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }" else (compound_statement "{\n      pr2ws("    %s: response","Report identifying information");\n      if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }\n    }" { (expression_statement "pr2ws("    %s: response","Report identifying information");" (call_expression "pr2ws("    %s: response","Report identifying information")" identifier (argument_list "("    %s: response","Report identifying information")" ( (string_literal ""    %s: response"" " string_content ") , (string_literal ""Report identifying information"" " string_content ") ))) ;) (if_statement "if (verbose == 3) {\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }" if (parenthesized_expression "(verbose == 3)" ( (binary_expression "verbose == 3" identifier == number_literal) )) (compound_statement "{\n        pcVar4 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }\n        pr2ws("%s:\n",pcVar4);\n        len = 0x100;\n        if (iVar2 < 0x101) {\n          len = iVar2;\n        }\n        hex2stderr((uint8_t *)resp,len,-1);\n        sense_cat = 0;\n      }" { (expression_statement "pcVar4 = ", first 256 bytes";" (assignment_expression "pcVar4 = ", first 256 bytes"" identifier = (string_literal "", first 256 bytes"" " string_content ")) ;) (if_statement "if (iVar2 < 0x101) {\n          pcVar4 = "";\n        }" if (parenthesized_expression "(iVar2 < 0x101)" ( (binary_expression "iVar2 < 0x101" identifier < number_literal) )) (compound_statement "{\n          pcVar4 = "";\n        }" { (expression_statement "pcVar4 = "";" (assignment_expression "pcVar4 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "pr2ws("%s:\n",pcVar4);" (call_expression "pr2ws("%s:\n",pcVar4)" identifier (argument_list "("%s:\n",pcVar4)" ( (string_literal ""%s:\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "len = 0x100;" (assignment_expression "len = 0x100" identifier = number_literal) ;) (if_statement "if (iVar2 < 0x101) {\n          len = iVar2;\n        }" if (parenthesized_expression "(iVar2 < 0x101)" ( (binary_expression "iVar2 < 0x101" identifier < number_literal) )) (compound_statement "{\n          len = iVar2;\n        }" { (expression_statement "len = iVar2;" (assignment_expression "len = iVar2" identifier = identifier) ;) })) (expression_statement "hex2stderr((uint8_t *)resp,len,-1);" (call_expression "hex2stderr((uint8_t *)resp,len,-1)" identifier (argument_list "((uint8_t *)resp,len,-1)" ( (cast_expression "(uint8_t *)resp" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal ))) ;) (expression_statement "sense_cat = 0;" (assignment_expression "sense_cat = 0" identifier = number_literal) ;) }) (else_clause "else {\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }" else (compound_statement "{\n        pr2ws(":\n");\n        hex2stderr((uint8_t *)resp,iVar2,0);\n        sense_cat = 0;\n      }" { (expression_statement "pr2ws(":\n");" (call_expression "pr2ws(":\n")" identifier (argument_list "(":\n")" ( (string_literal "":\n"" " string_content escape_sequence ") ))) ;) (expression_statement "hex2stderr((uint8_t *)resp,iVar2,0);" (call_expression "hex2stderr((uint8_t *)resp,iVar2,0)" identifier (argument_list "((uint8_t *)resp,iVar2,0)" ( (cast_expression "(uint8_t *)resp" ( (type_descriptor "uint8_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal ))) ;) (expression_statement "sense_cat = 0;" (assignment_expression "sense_cat = 0" identifier = number_literal) ;) }))) }))))))) (expression_statement "destruct_scsi_pt_obj(vp);" (call_expression "destruct_scsi_pt_obj(vp)" identifier (argument_list "(vp)" ( identifier ))) ;) }))) (if_statement "if (lVar1 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(lVar1 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return sense_cat;" return identifier ;) })))
(translation_unit "int sg_ll_report_id_info\n              (undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,\n              int param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  char *pcVar6;\n  long in_FS_OFFSET;\n  int local_98;\n  undefined1 local_94 [2];\n  long local_92;\n  ushort local_8a;\n  undefined1 local_88 [72];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_94[0] = 0xa3;\n  local_94[1] = 5;\n  local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20;\n  local_8a = (ushort)(byte)(param_2 * '\x02');\n  if (param_6 != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }\n  lVar3 = FUN_0011a2e9("Report identifying information");\n  if (lVar3 == 0) {\n    local_98 = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_98;\n}\n\n" (function_definition "int sg_ll_report_id_info\n              (undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,\n              int param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  char *pcVar6;\n  long in_FS_OFFSET;\n  int local_98;\n  undefined1 local_94 [2];\n  long local_92;\n  ushort local_8a;\n  undefined1 local_88 [72];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_94[0] = 0xa3;\n  local_94[1] = 5;\n  local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20;\n  local_8a = (ushort)(byte)(param_2 * '\x02');\n  if (param_6 != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }\n  lVar3 = FUN_0011a2e9("Report identifying information");\n  if (lVar3 == 0) {\n    local_98 = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_98;\n}" primitive_type (function_declarator "sg_ll_report_id_info\n              (undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,\n              int param_6)" identifier (parameter_list "(undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,\n              int param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char param_2" primitive_type identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "undefined1 param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  char *pcVar6;\n  long in_FS_OFFSET;\n  int local_98;\n  undefined1 local_94 [2];\n  long local_92;\n  ushort local_8a;\n  undefined1 local_88 [72];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_94[0] = 0xa3;\n  local_94[1] = 5;\n  local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20;\n  local_8a = (ushort)(byte)(param_2 * '\x02');\n  if (param_6 != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }\n  lVar3 = FUN_0011a2e9("Report identifying information");\n  if (lVar3 == 0) {\n    local_98 = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_98;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "int local_98;" primitive_type identifier ;) (declaration "undefined1 local_94 [2];" type_identifier (array_declarator "local_94 [2]" identifier [ number_literal ]) ;) (declaration "long local_92;" (sized_type_specifier "long" long) identifier ;) (declaration "ushort local_8a;" type_identifier identifier ;) (declaration "undefined1 local_88 [72];" type_identifier (array_declarator "local_88 [72]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "local_94[0] = 0xa3;" (assignment_expression "local_94[0] = 0xa3" (subscript_expression "local_94[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_94[1] = 5;" (assignment_expression "local_94[1] = 5" (subscript_expression "local_94[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20;" (assignment_expression "local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20" identifier = (binary_expression "(ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20" (call_expression "(ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18)" ( (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8" (binary_expression "param_4 >> 0x18" identifier >> number_literal) | (binary_expression "(param_4 & 0xff0000) >> 8" (parenthesized_expression "(param_4 & 0xff0000)" ( (binary_expression "param_4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(param_4 & 0xff00) << 8" (parenthesized_expression "(param_4 & 0xff00)" ( (binary_expression "param_4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "param_4 << 0x18" identifier << number_literal)) ))) << number_literal)) ;) (expression_statement "local_8a = (ushort)(byte)(param_2 * '\x02');" (assignment_expression "local_8a = (ushort)(byte)(param_2 * '\x02')" identifier = (call_expression "(ushort)(byte)(param_2 * '\x02')" (call_expression "(ushort)(byte)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(byte)" ( identifier ))) (argument_list "(param_2 * '\x02')" ( (binary_expression "param_2 * '\x02'" identifier * (char_literal "'\x02'" ' escape_sequence ')) )))) ;) (if_statement "if (param_6 != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }" { (expression_statement "pr2ws("    %s cdb: ","Report identifying information");" (call_expression "pr2ws("    %s cdb: ","Report identifying information")" identifier (argument_list "("    %s cdb: ","Report identifying information")" ( (string_literal ""    %s cdb: "" " string_content ") , (string_literal ""Report identifying information"" " string_content ") ))) ;) (expression_statement "puVar4 = local_94;" (assignment_expression "puVar4 = local_94" identifier = identifier) ;) (do_statement "do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);" do (compound_statement "{\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    }" { (expression_statement "pr2ws("%02x ",*puVar4);" (call_expression "pr2ws("%02x ",*puVar4)" identifier (argument_list "("%02x ",*puVar4)" ( (string_literal ""%02x "" " string_content ") , (pointer_expression "*puVar4" * identifier) ))) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar4 != local_88)" ( (binary_expression "puVar4 != local_88" identifier != identifier) )) ;) (expression_statement "pr2ws(&DAT_001256cf);" (call_expression "pr2ws(&DAT_001256cf)" identifier (argument_list "(&DAT_001256cf)" ( (pointer_expression "&DAT_001256cf" & identifier) ))) ;) })) (expression_statement "lVar3 = FUN_0011a2e9("Report identifying information");" (assignment_expression "lVar3 = FUN_0011a2e9("Report identifying information")" identifier = (call_expression "FUN_0011a2e9("Report identifying information")" identifier (argument_list "("Report identifying information")" ( (string_literal ""Report identifying information"" " string_content ") )))) ;) (if_statement "if (lVar3 == 0) {\n    local_98 = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }" if (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    local_98 = sg_convert_errno(0xc);\n  }" { (expression_statement "local_98 = sg_convert_errno(0xc);" (assignment_expression "local_98 = sg_convert_errno(0xc)" identifier = (call_expression "sg_convert_errno(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) }) (else_clause "else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }" else (compound_statement "{\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }" { (expression_statement "set_scsi_pt_cdb(lVar3,local_94,0xc);" (call_expression "set_scsi_pt_cdb(lVar3,local_94,0xc)" identifier (argument_list "(lVar3,local_94,0xc)" ( identifier , identifier , number_literal ))) ;) (expression_statement "set_scsi_pt_sense(lVar3,local_88,0x40);" (call_expression "set_scsi_pt_sense(lVar3,local_88,0x40)" identifier (argument_list "(lVar3,local_88,0x40)" ( identifier , identifier , number_literal ))) ;) (expression_statement "set_scsi_pt_data_in(lVar3,param_3,param_4);" (call_expression "set_scsi_pt_data_in(lVar3,param_3,param_4)" identifier (argument_list "(lVar3,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);" (assignment_expression "uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6)" identifier = (call_expression "do_scsi_pt(lVar3,param_1,0x3c,param_6)" identifier (argument_list "(lVar3,param_1,0x3c,param_6)" ( identifier , identifier , number_literal , identifier )))) ;) (expression_statement "iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);" (assignment_expression "iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98)" identifier = (call_expression "sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98)" identifier (argument_list "(lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98)" ( identifier , (string_literal ""Report identifying information"" " string_content ") , identifier , identifier , identifier , identifier , identifier , (pointer_expression "&local_98" & identifier) )))) ;) (if_statement "if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }" { (expression_statement "uVar1 = get_scsi_pt_os_err(lVar3);" (assignment_expression "uVar1 = get_scsi_pt_os_err(lVar3)" identifier = (call_expression "get_scsi_pt_os_err(lVar3)" identifier (argument_list "(lVar3)" ( identifier )))) ;) (expression_statement "local_98 = sg_convert_errno(uVar1);" (assignment_expression "local_98 = sg_convert_errno(uVar1)" identifier = (call_expression "sg_convert_errno(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) }) (else_clause "else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" else (if_statement "if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" if (parenthesized_expression "(iVar2 == -2)" ( (binary_expression "iVar2 == -2" identifier == number_literal) )) (compound_statement "{\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }" { (if_statement "if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }" if (parenthesized_expression "(local_98 - 0x14U < 2)" ( (binary_expression "local_98 - 0x14U < 2" (binary_expression "local_98 - 0x14U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        local_98 = 0;\n      }" { (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" identifier = number_literal) ;) })) }) (else_clause "else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" else (if_statement "if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" if (parenthesized_expression "((param_6 < 3) || (iVar2 < 1))" ( (binary_expression "(param_6 < 3) || (iVar2 < 1)" (parenthesized_expression "(param_6 < 3)" ( (binary_expression "param_6 < 3" identifier < number_literal) )) || (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) ))) )) (compound_statement "{\n      local_98 = 0;\n    }" { (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" else (compound_statement "{\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" { (expression_statement "pr2ws("    %s: response","Report identifying information");" (call_expression "pr2ws("    %s: response","Report identifying information")" identifier (argument_list "("    %s: response","Report identifying information")" ( (string_literal ""    %s: response"" " string_content ") , (string_literal ""Report identifying information"" " string_content ") ))) ;) (if_statement "if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }" if (parenthesized_expression "(param_6 == 3)" ( (binary_expression "param_6 == 3" identifier == number_literal) )) (compound_statement "{\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }" { (expression_statement "pcVar6 = ", first 256 bytes";" (assignment_expression "pcVar6 = ", first 256 bytes"" identifier = (string_literal "", first 256 bytes"" " string_content ")) ;) (if_statement "if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }" if (parenthesized_expression "(iVar2 < 0x101)" ( (binary_expression "iVar2 < 0x101" identifier < number_literal) )) (compound_statement "{\n          pcVar6 = "";\n        }" { (expression_statement "pcVar6 = "";" (assignment_expression "pcVar6 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "pr2ws("%s:\n",pcVar6);" (call_expression "pr2ws("%s:\n",pcVar6)" identifier (argument_list "("%s:\n",pcVar6)" ( (string_literal ""%s:\n"" " string_content escape_sequence ") , identifier ))) ;) (expression_statement "iVar5 = 0x100;" (assignment_expression "iVar5 = 0x100" identifier = number_literal) ;) (if_statement "if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }" if (parenthesized_expression "(iVar2 < 0x101)" ( (binary_expression "iVar2 < 0x101" identifier < number_literal) )) (compound_statement "{\n          iVar5 = iVar2;\n        }" { (expression_statement "iVar5 = iVar2;" (assignment_expression "iVar5 = iVar2" identifier = identifier) ;) })) (expression_statement "hex2stderr(param_3,iVar5,0xffffffff);" (call_expression "hex2stderr(param_3,iVar5,0xffffffff)" identifier (argument_list "(param_3,iVar5,0xffffffff)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }" else (compound_statement "{\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }" { (expression_statement "pr2ws(":\n");" (call_expression "pr2ws(":\n")" identifier (argument_list "(":\n")" ( (string_literal "":\n"" " string_content escape_sequence ") ))) ;) (expression_statement "hex2stderr(param_3,iVar2,0);" (call_expression "hex2stderr(param_3,iVar2,0)" identifier (argument_list "(param_3,iVar2,0)" ( identifier , identifier , number_literal ))) ;) (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" identifier = number_literal) ;) }))) }))))))) (expression_statement "destruct_scsi_pt_obj(lVar3);" (call_expression "destruct_scsi_pt_obj(lVar3)" identifier (argument_list "(lVar3)" ( identifier ))) ;) }))) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return local_98;" 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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT)) ))) << LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression IDENT * (char_literal ' escape_sequence ')) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , IDENT , IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression IDENT < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence ") ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))))))) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int sg_ll_report_id_info\n              (undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,\n              int param_6)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  char *pcVar6;\n  long in_FS_OFFSET;\n  int local_98;\n  undefined1 local_94 [2];\n  long local_92;\n  ushort local_8a;\n  undefined1 local_88 [72];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_94[0] = 0xa3;\n  local_94[1] = 5;\n  local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20;\n  local_8a = (ushort)(byte)(param_2 * '\x02');\n  if (param_6 != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }\n  lVar3 = FUN_0011a2e9("Report identifying information");\n  if (lVar3 == 0) {\n    local_98 = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_98;\n}" (primitive_type "int") (function_declarator "sg_ll_report_id_info\n              (undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,\n              int param_6)" (identifier "sg_ll_report_id_info") (parameter_list "(undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,\n              int param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "char param_2" (primitive_type "char") (identifier "param_2")) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "undefined1 param_5" (type_identifier "undefined1") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  long lVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  char *pcVar6;\n  long in_FS_OFFSET;\n  int local_98;\n  undefined1 local_94 [2];\n  long local_92;\n  ushort local_8a;\n  undefined1 local_88 [72];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  local_94[0] = 0xa3;\n  local_94[1] = 5;\n  local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20;\n  local_8a = (ushort)(byte)(param_2 * '\x02');\n  if (param_6 != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }\n  lVar3 = FUN_0011a2e9("Report identifying information");\n  if (lVar3 == 0) {\n    local_98 = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return local_98;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "int local_98;" (primitive_type "int") (identifier "local_98") (; ";")) (declaration "undefined1 local_94 [2];" (type_identifier "undefined1") (array_declarator "local_94 [2]" (identifier "local_94") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "long local_92;" (sized_type_specifier "long" (long "long")) (identifier "local_92") (; ";")) (declaration "ushort local_8a;" (type_identifier "ushort") (identifier "local_8a") (; ";")) (declaration "undefined1 local_88 [72];" (type_identifier "undefined1") (array_declarator "local_88 [72]" (identifier "local_88") ([ "[") (number_literal "72") (] "]")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "local_94[0] = 0xa3;" (assignment_expression "local_94[0] = 0xa3" (subscript_expression "local_94[0]" (identifier "local_94") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0xa3")) (; ";")) (expression_statement "local_94[1] = 5;" (assignment_expression "local_94[1] = 5" (subscript_expression "local_94[1]" (identifier "local_94") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "5")) (; ";")) (expression_statement "local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20;" (assignment_expression "local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20" (identifier "local_92") (= "=") (binary_expression "(ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18) << 0x20" (call_expression "(ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18)" (( "(") (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |\n                    param_4 << 0x18" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8" (binary_expression "param_4 >> 0x18 | (param_4 & 0xff0000) >> 8" (binary_expression "param_4 >> 0x18" (identifier "param_4") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(param_4 & 0xff0000) >> 8" (parenthesized_expression "(param_4 & 0xff0000)" (( "(") (binary_expression "param_4 & 0xff0000" (identifier "param_4") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(param_4 & 0xff00) << 8" (parenthesized_expression "(param_4 & 0xff00)" (( "(") (binary_expression "param_4 & 0xff00" (identifier "param_4") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "param_4 << 0x18" (identifier "param_4") (<< "<<") (number_literal "0x18"))) () ")"))) (<< "<<") (number_literal "0x20"))) (; ";")) (expression_statement "local_8a = (ushort)(byte)(param_2 * '\x02');" (assignment_expression "local_8a = (ushort)(byte)(param_2 * '\x02')" (identifier "local_8a") (= "=") (call_expression "(ushort)(byte)(param_2 * '\x02')" (call_expression "(ushort)(byte)" (parenthesized_expression "(ushort)" (( "(") (identifier "ushort") () ")")) (argument_list "(byte)" (( "(") (identifier "byte") () ")"))) (argument_list "(param_2 * '\x02')" (( "(") (binary_expression "param_2 * '\x02'" (identifier "param_2") (* "*") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")))) (; ";")) (if_statement "if (param_6 != 0) {\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }" (if "if") (parenthesized_expression "(param_6 != 0)" (( "(") (binary_expression "param_6 != 0" (identifier "param_6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    pr2ws("    %s cdb: ","Report identifying information");\n    puVar4 = local_94;\n    do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);\n    pr2ws(&DAT_001256cf);\n  }" ({ "{") (expression_statement "pr2ws("    %s cdb: ","Report identifying information");" (call_expression "pr2ws("    %s cdb: ","Report identifying information")" (identifier "pr2ws") (argument_list "("    %s cdb: ","Report identifying information")" (( "(") (string_literal ""    %s cdb: "" (" """) (string_content "    %s cdb: ") (" """)) (, ",") (string_literal ""Report identifying information"" (" """) (string_content "Report identifying information") (" """)) () ")"))) (; ";")) (expression_statement "puVar4 = local_94;" (assignment_expression "puVar4 = local_94" (identifier "puVar4") (= "=") (identifier "local_94")) (; ";")) (do_statement "do {\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    } while (puVar4 != local_88);" (do "do") (compound_statement "{\n      pr2ws("%02x ",*puVar4);\n      puVar4 = puVar4 + 1;\n    }" ({ "{") (expression_statement "pr2ws("%02x ",*puVar4);" (call_expression "pr2ws("%02x ",*puVar4)" (identifier "pr2ws") (argument_list "("%02x ",*puVar4)" (( "(") (string_literal ""%02x "" (" """) (string_content "%02x ") (" """)) (, ",") (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) () ")"))) (; ";")) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar4 != local_88)" (( "(") (binary_expression "puVar4 != local_88" (identifier "puVar4") (!= "!=") (identifier "local_88")) () ")")) (; ";")) (expression_statement "pr2ws(&DAT_001256cf);" (call_expression "pr2ws(&DAT_001256cf)" (identifier "pr2ws") (argument_list "(&DAT_001256cf)" (( "(") (pointer_expression "&DAT_001256cf" (& "&") (identifier "DAT_001256cf")) () ")"))) (; ";")) (} "}"))) (expression_statement "lVar3 = FUN_0011a2e9("Report identifying information");" (assignment_expression "lVar3 = FUN_0011a2e9("Report identifying information")" (identifier "lVar3") (= "=") (call_expression "FUN_0011a2e9("Report identifying information")" (identifier "FUN_0011a2e9") (argument_list "("Report identifying information")" (( "(") (string_literal ""Report identifying information"" (" """) (string_content "Report identifying information") (" """)) () ")")))) (; ";")) (if_statement "if (lVar3 == 0) {\n    local_98 = sg_convert_errno(0xc);\n  }\n  else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }" (if "if") (parenthesized_expression "(lVar3 == 0)" (( "(") (binary_expression "lVar3 == 0" (identifier "lVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_98 = sg_convert_errno(0xc);\n  }" ({ "{") (expression_statement "local_98 = sg_convert_errno(0xc);" (assignment_expression "local_98 = sg_convert_errno(0xc)" (identifier "local_98") (= "=") (call_expression "sg_convert_errno(0xc)" (identifier "sg_convert_errno") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }" (else "else") (compound_statement "{\n    set_scsi_pt_cdb(lVar3,local_94,0xc);\n    set_scsi_pt_sense(lVar3,local_88,0x40);\n    set_scsi_pt_data_in(lVar3,param_3,param_4);\n    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);\n    iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);\n    if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }\n    destruct_scsi_pt_obj(lVar3);\n  }" ({ "{") (expression_statement "set_scsi_pt_cdb(lVar3,local_94,0xc);" (call_expression "set_scsi_pt_cdb(lVar3,local_94,0xc)" (identifier "set_scsi_pt_cdb") (argument_list "(lVar3,local_94,0xc)" (( "(") (identifier "lVar3") (, ",") (identifier "local_94") (, ",") (number_literal "0xc") () ")"))) (; ";")) (expression_statement "set_scsi_pt_sense(lVar3,local_88,0x40);" (call_expression "set_scsi_pt_sense(lVar3,local_88,0x40)" (identifier "set_scsi_pt_sense") (argument_list "(lVar3,local_88,0x40)" (( "(") (identifier "lVar3") (, ",") (identifier "local_88") (, ",") (number_literal "0x40") () ")"))) (; ";")) (expression_statement "set_scsi_pt_data_in(lVar3,param_3,param_4);" (call_expression "set_scsi_pt_data_in(lVar3,param_3,param_4)" (identifier "set_scsi_pt_data_in") (argument_list "(lVar3,param_3,param_4)" (( "(") (identifier "lVar3") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);" (assignment_expression "uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6)" (identifier "uVar1") (= "=") (call_expression "do_scsi_pt(lVar3,param_1,0x3c,param_6)" (identifier "do_scsi_pt") (argument_list "(lVar3,param_1,0x3c,param_6)" (( "(") (identifier "lVar3") (, ",") (identifier "param_1") (, ",") (number_literal "0x3c") (, ",") (identifier "param_6") () ")")))) (; ";")) (expression_statement "iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98);" (assignment_expression "iVar2 = sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98)" (identifier "iVar2") (= "=") (call_expression "sg_cmds_process_resp\n                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98)" (identifier "sg_cmds_process_resp") (argument_list "(lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6\n                       ,&local_98)" (( "(") (identifier "lVar3") (, ",") (string_literal ""Report identifying information"" (" """) (string_content "Report identifying information") (" """)) (, ",") (identifier "uVar1") (, ",") (identifier "param_4") (, ",") (identifier "local_88") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (pointer_expression "&local_98" (& "&") (identifier "local_98")) () ")")))) (; ";")) (if_statement "if (iVar2 == -1) {\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }\n    else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      uVar1 = get_scsi_pt_os_err(lVar3);\n      local_98 = sg_convert_errno(uVar1);\n    }" ({ "{") (expression_statement "uVar1 = get_scsi_pt_os_err(lVar3);" (assignment_expression "uVar1 = get_scsi_pt_os_err(lVar3)" (identifier "uVar1") (= "=") (call_expression "get_scsi_pt_os_err(lVar3)" (identifier "get_scsi_pt_os_err") (argument_list "(lVar3)" (( "(") (identifier "lVar3") () ")")))) (; ";")) (expression_statement "local_98 = sg_convert_errno(uVar1);" (assignment_expression "local_98 = sg_convert_errno(uVar1)" (identifier "local_98") (= "=") (call_expression "sg_convert_errno(uVar1)" (identifier "sg_convert_errno") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (} "}")) (else_clause "else if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" (else "else") (if_statement "if (iVar2 == -2) {\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }\n    else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 == -2)" (( "(") (binary_expression "iVar2 == -2" (identifier "iVar2") (== "==") (number_literal "-2")) () ")")) (compound_statement "{\n      if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }\n    }" ({ "{") (if_statement "if (local_98 - 0x14U < 2) {\n        local_98 = 0;\n      }" (if "if") (parenthesized_expression "(local_98 - 0x14U < 2)" (( "(") (binary_expression "local_98 - 0x14U < 2" (binary_expression "local_98 - 0x14U" (identifier "local_98") (- "-") (number_literal "0x14U")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        local_98 = 0;\n      }" ({ "{") (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" (identifier "local_98") (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" (else "else") (if_statement "if ((param_6 < 3) || (iVar2 < 1)) {\n      local_98 = 0;\n    }\n    else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" (if "if") (parenthesized_expression "((param_6 < 3) || (iVar2 < 1))" (( "(") (binary_expression "(param_6 < 3) || (iVar2 < 1)" (parenthesized_expression "(param_6 < 3)" (( "(") (binary_expression "param_6 < 3" (identifier "param_6") (< "<") (number_literal "3")) () ")")) (|| "||") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n      local_98 = 0;\n    }" ({ "{") (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" (identifier "local_98") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" (else "else") (compound_statement "{\n      pr2ws("    %s: response","Report identifying information");\n      if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }\n    }" ({ "{") (expression_statement "pr2ws("    %s: response","Report identifying information");" (call_expression "pr2ws("    %s: response","Report identifying information")" (identifier "pr2ws") (argument_list "("    %s: response","Report identifying information")" (( "(") (string_literal ""    %s: response"" (" """) (string_content "    %s: response") (" """)) (, ",") (string_literal ""Report identifying information"" (" """) (string_content "Report identifying information") (" """)) () ")"))) (; ";")) (if_statement "if (param_6 == 3) {\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }\n      else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }" (if "if") (parenthesized_expression "(param_6 == 3)" (( "(") (binary_expression "param_6 == 3" (identifier "param_6") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n        pcVar6 = ", first 256 bytes";\n        if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }\n        pr2ws("%s:\n",pcVar6);\n        iVar5 = 0x100;\n        if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }\n        hex2stderr(param_3,iVar5,0xffffffff);\n        local_98 = 0;\n      }" ({ "{") (expression_statement "pcVar6 = ", first 256 bytes";" (assignment_expression "pcVar6 = ", first 256 bytes"" (identifier "pcVar6") (= "=") (string_literal "", first 256 bytes"" (" """) (string_content ", first 256 bytes") (" """))) (; ";")) (if_statement "if (iVar2 < 0x101) {\n          pcVar6 = "";\n        }" (if "if") (parenthesized_expression "(iVar2 < 0x101)" (( "(") (binary_expression "iVar2 < 0x101" (identifier "iVar2") (< "<") (number_literal "0x101")) () ")")) (compound_statement "{\n          pcVar6 = "";\n        }" ({ "{") (expression_statement "pcVar6 = "";" (assignment_expression "pcVar6 = """ (identifier "pcVar6") (= "=") (string_literal """" (" """) (" """))) (; ";")) (} "}"))) (expression_statement "pr2ws("%s:\n",pcVar6);" (call_expression "pr2ws("%s:\n",pcVar6)" (identifier "pr2ws") (argument_list "("%s:\n",pcVar6)" (( "(") (string_literal ""%s:\n"" (" """) (string_content "%s:") (escape_sequence "\n") (" """)) (, ",") (identifier "pcVar6") () ")"))) (; ";")) (expression_statement "iVar5 = 0x100;" (assignment_expression "iVar5 = 0x100" (identifier "iVar5") (= "=") (number_literal "0x100")) (; ";")) (if_statement "if (iVar2 < 0x101) {\n          iVar5 = iVar2;\n        }" (if "if") (parenthesized_expression "(iVar2 < 0x101)" (( "(") (binary_expression "iVar2 < 0x101" (identifier "iVar2") (< "<") (number_literal "0x101")) () ")")) (compound_statement "{\n          iVar5 = iVar2;\n        }" ({ "{") (expression_statement "iVar5 = iVar2;" (assignment_expression "iVar5 = iVar2" (identifier "iVar5") (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (expression_statement "hex2stderr(param_3,iVar5,0xffffffff);" (call_expression "hex2stderr(param_3,iVar5,0xffffffff)" (identifier "hex2stderr") (argument_list "(param_3,iVar5,0xffffffff)" (( "(") (identifier "param_3") (, ",") (identifier "iVar5") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" (identifier "local_98") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }" (else "else") (compound_statement "{\n        pr2ws(":\n");\n        hex2stderr(param_3,iVar2,0);\n        local_98 = 0;\n      }" ({ "{") (expression_statement "pr2ws(":\n");" (call_expression "pr2ws(":\n")" (identifier "pr2ws") (argument_list "(":\n")" (( "(") (string_literal "":\n"" (" """) (string_content ":") (escape_sequence "\n") (" """)) () ")"))) (; ";")) (expression_statement "hex2stderr(param_3,iVar2,0);" (call_expression "hex2stderr(param_3,iVar2,0)" (identifier "hex2stderr") (argument_list "(param_3,iVar2,0)" (( "(") (identifier "param_3") (, ",") (identifier "iVar2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "local_98 = 0;" (assignment_expression "local_98 = 0" (identifier "local_98") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))))))) (expression_statement "destruct_scsi_pt_obj(lVar3);" (call_expression "destruct_scsi_pt_obj(lVar3)" (identifier "destruct_scsi_pt_obj") (argument_list "(lVar3)" (( "(") (identifier "lVar3") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return local_98;" (return "return") (identifier "local_98") (; ";")) (} "}")))

int function_1(int sg_fd,int itype,void *resp,int var_2,type_1 noisy,int var_3)

{
  long var_20;
  int var_15;
  type_2 *var_8;
  type_3 *var_5;
  int len;
  char *pcVar4;
  long var_1;
  int var_17;
  uint8_t rii_cdb [12];
  uint8_t var_6 [64];
  
  var_20 = *(long *)(var_1 + 0x28);
  rii_cdb[0] = 0xa3;
  rii_cdb[1] = '\x05';
  rii_cdb._2_8_ =
       (ulong)((type_4)var_2 >> 0x18 | (var_2 & 0xff0000U) >> 8 |
               (var_2 & 0xff00U) << 8 | var_2 << 0x18) << 0x20;
  rii_cdb[0xb] = '\0';
  rii_cdb[10] = (char)itype * '\x02';
  if (var_3 != 0) {
    var_4("    %s cdb: ","Report identifying information");
    var_5 = rii_cdb;
    do {
      var_4("%02x ",(ulong)*var_5);
      var_5 = var_5 + 1;
    } while (var_5 != var_6);
    var_4("\n");
  }
  var_8 = var_7("Report identifying information");
  if (var_8 == (type_2 *)0x0) {
    var_17 = var_9(0xc);
  }
  else {
    var_10(var_8,rii_cdb,0xc);
    var_11(var_8,var_6,0x40);
    var_12(var_8,(uint8_t *)resp,var_2);
    var_15 = var_13(var_8,sg_fd,0x3c,var_3);
    var_15 = var_14
                      (var_8,"Report identifying information",var_15,var_2,var_6,noisy,var_3,
                       &var_17);
    if (var_15 == -1) {
      var_15 = var_16(var_8);
      var_17 = var_9(var_15);
    }
    else if (var_15 == -2) {
      if (var_17 - 0x14U < 2) {
        var_17 = 0;
      }
    }
    else if ((var_3 < 3) || (var_15 < 1)) {
      var_17 = 0;
    }
    else {
      var_4("    %s: response","Report identifying information");
      if (var_3 == 3) {
        pcVar4 = ", first 256 bytes";
        if (var_15 < 0x101) {
          pcVar4 = "";
        }
        var_4("%s:\n",pcVar4);
        len = 0x100;
        if (var_15 < 0x101) {
          len = var_15;
        }
        var_18((uint8_t *)resp,len,-1);
        var_17 = 0;
      }
      else {
        var_4(":\n");
        var_18((uint8_t *)resp,var_15,0);
        var_17 = 0;
      }
    }
    var_19(var_8);
  }
  if (var_20 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_21();
  }
  return var_17;
}


(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: (primitive_type) declarator: (identifier)) (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)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (identifier))) arguments: (argument_list (binary_expression left: (identifier) right: (char_literal (escape_sequence))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)))))) (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: (identifier) arguments: (argument_list (number_literal)))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier) (identifier) (identifier) (identifier) (pointer_expression argument: (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: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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 (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence)) (identifier)))) (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: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content) (escape_sequence))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (identifier)))))

int MASKED
              (undefined4 param_1,char param_2,undefined8 param_3,uint param_4,undefined1 param_5,
              int param_6)

{
  undefined4 uVar1;
  int iVar2;
  long lVar3;
  undefined1 *puVar4;
  int iVar5;
  char *pcVar6;
  long in_FS_OFFSET;
  int local_98;
  undefined1 local_94 [2];
  long local_92;
  ushort local_8a;
  undefined1 local_88 [72];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  local_94[0] = 0xa3;
  local_94[1] = 5;
  local_92 = (ulong)(param_4 >> 0x18 | (param_4 & 0xff0000) >> 8 | (param_4 & 0xff00) << 8 |
                    param_4 << 0x18) << 0x20;
  local_8a = (ushort)(byte)(param_2 * '\x02');
  if (param_6 != 0) {
    pr2ws("    %s cdb: ","Report identifying information");
    puVar4 = local_94;
    do {
      pr2ws("%02x ",*puVar4);
      puVar4 = puVar4 + 1;
    } while (puVar4 != local_88);
    pr2ws(&DAT_001256cf);
  }
  lVar3 = FUN_0011a2e9("Report identifying information");
  if (lVar3 == 0) {
    local_98 = sg_convert_errno(0xc);
  }
  else {
    set_scsi_pt_cdb(lVar3,local_94,0xc);
    set_scsi_pt_sense(lVar3,local_88,0x40);
    set_scsi_pt_data_in(lVar3,param_3,param_4);
    uVar1 = do_scsi_pt(lVar3,param_1,0x3c,param_6);
    iVar2 = sg_cmds_process_resp
                      (lVar3,"Report identifying information",uVar1,param_4,local_88,param_5,param_6
                       ,&local_98);
    if (iVar2 == -1) {
      uVar1 = get_scsi_pt_os_err(lVar3);
      local_98 = sg_convert_errno(uVar1);
    }
    else if (iVar2 == -2) {
      if (local_98 - 0x14U < 2) {
        local_98 = 0;
      }
    }
    else if ((param_6 < 3) || (iVar2 < 1)) {
      local_98 = 0;
    }
    else {
      pr2ws("    %s: response","Report identifying information");
      if (param_6 == 3) {
        pcVar6 = ", first 256 bytes";
        if (iVar2 < 0x101) {
          pcVar6 = "";
        }
        pr2ws("%s:\n",pcVar6);
        iVar5 = 0x100;
        if (iVar2 < 0x101) {
          iVar5 = iVar2;
        }
        hex2stderr(param_3,iVar5,0xffffffff);
        local_98 = 0;
      }
      else {
        pr2ws(":\n");
        hex2stderr(param_3,iVar2,0);
        local_98 = 0;
      }
    }
    destruct_scsi_pt_obj(lVar3);
  }
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return local_98;
}

