
int sg_ll_start_stop_unit
              (int sg_fd,_Bool immed,int pc_mod__fl_num,int power_cond,_Bool noflush__fl,_Bool loej,
              _Bool start,_Bool noisy,int verbose)

{
  int iVar1;
  sg_pt_base *ptvp;
  
  ptvp = construct_scsi_pt_obj_with_fd(sg_fd,verbose);
  if (ptvp == (sg_pt_base *)0x0) {
    iVar1 = sg_convert_errno(0xc);
  }
  else {
    iVar1 = sg_ll_start_stop_unit_pt
                      (ptvp,immed,pc_mod__fl_num,power_cond,noflush__fl,loej,start,noisy,verbose);
    destruct_scsi_pt_obj(ptvp);
  }
  return iVar1;
}



undefined4
sg_ll_start_stop_unit
          (undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,
          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,
          undefined4 param_9)

{
  undefined4 uVar1;
  long lVar2;
  
  lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);
  if (lVar2 == 0) {
    uVar1 = sg_convert_errno(0xc);
  }
  else {
    uVar1 = sg_ll_start_stop_unit_pt
                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);
    destruct_scsi_pt_obj(lVar2);
  }
  return uVar1;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV EBP,ESI
MOV dword ptr [RSP + 0x8],EDX
MOV dword ptr [RSP + 0xc],ECX
MOV R14D,R8D
MOV R15D,R9D
MOV R12D,dword ptr [RSP + 0x50]
MOV R13D,dword ptr [RSP + 0x58]
MOV ESI,dword ptr [RSP + 0x60]
CALL 0x0010e530
TEST RAX,RAX
JZ 0x0011a11d
MOV RBX,RAX
MOVZX ESI,BPL
SUB RSP,0x8
MOV EAX,dword ptr [RSP + 0x68]
PUSH RAX
MOVZX R13D,R13B
PUSH R13
MOVZX R12D,R12B
PUSH R12
MOVZX R9D,R15B
MOVZX R8D,R14B
MOV ECX,dword ptr [RSP + 0x2c]
MOV EDX,dword ptr [RSP + 0x28]
MOV RDI,RBX
CALL 0x0010e420
MOV EBP,EAX
ADD RSP,0x20
MOV RDI,RBX
CALL 0x0010e4b0
MOV EAX,EBP
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV EDI,0xc
CALL 0x0010e550
MOV EBP,EAX
JMP 0x0011a10c
(translation_unit "undefined4\nsg_ll_start_stop_unit\n          (undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,\n          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,\n          undefined4 param_9)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  \n  lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);\n  if (lVar2 == 0) {\n    uVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4\nsg_ll_start_stop_unit\n          (undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,\n          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,\n          undefined4 param_9)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  \n  lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);\n  if (lVar2 == 0) {\n    uVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "sg_ll_start_stop_unit\n          (undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,\n          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,\n          undefined4 param_9)" identifier (parameter_list "(undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,\n          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,\n          undefined4 param_9)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined1 param_5" type_identifier identifier) , (parameter_declaration "undefined1 param_6" type_identifier identifier) , (parameter_declaration "undefined1 param_7" type_identifier identifier) , (parameter_declaration "undefined1 param_8" type_identifier identifier) , (parameter_declaration "undefined4 param_9" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  long lVar2;\n  \n  lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);\n  if (lVar2 == 0) {\n    uVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);" (assignment_expression "lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9)" identifier = (call_expression "construct_scsi_pt_obj_with_fd(param_1,param_9)" identifier (argument_list "(param_1,param_9)" ( identifier , identifier )))) ;) (if_statement "if (lVar2 == 0) {\n    uVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar1 = sg_convert_errno(0xc);\n  }" { (expression_statement "uVar1 = sg_convert_errno(0xc);" (assignment_expression "uVar1 = sg_convert_errno(0xc)" identifier = (call_expression "sg_convert_errno(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) }) (else_clause "else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }" else (compound_statement "{\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }" { (expression_statement "uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);" (assignment_expression "uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" identifier = (call_expression "sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" identifier (argument_list "(lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "destruct_scsi_pt_obj(lVar2);" (call_expression "destruct_scsi_pt_obj(lVar2)" identifier (argument_list "(lVar2)" ( identifier ))) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int sg_ll_start_stop_unit\n              (int sg_fd,_Bool immed,int pc_mod__fl_num,int power_cond,_Bool noflush__fl,_Bool loej,\n              _Bool start,_Bool noisy,int verbose)\n\n{\n  int iVar1;\n  sg_pt_base *ptvp;\n  \n  ptvp = construct_scsi_pt_obj_with_fd(sg_fd,verbose);\n  if (ptvp == (sg_pt_base *)0x0) {\n    iVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    iVar1 = sg_ll_start_stop_unit_pt\n                      (ptvp,immed,pc_mod__fl_num,power_cond,noflush__fl,loej,start,noisy,verbose);\n    destruct_scsi_pt_obj(ptvp);\n  }\n  return iVar1;\n}\n\n" (function_definition "int sg_ll_start_stop_unit\n              (int sg_fd,_Bool immed,int pc_mod__fl_num,int power_cond,_Bool noflush__fl,_Bool loej,\n              _Bool start,_Bool noisy,int verbose)\n\n{\n  int iVar1;\n  sg_pt_base *ptvp;\n  \n  ptvp = construct_scsi_pt_obj_with_fd(sg_fd,verbose);\n  if (ptvp == (sg_pt_base *)0x0) {\n    iVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    iVar1 = sg_ll_start_stop_unit_pt\n                      (ptvp,immed,pc_mod__fl_num,power_cond,noflush__fl,loej,start,noisy,verbose);\n    destruct_scsi_pt_obj(ptvp);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "sg_ll_start_stop_unit\n              (int sg_fd,_Bool immed,int pc_mod__fl_num,int power_cond,_Bool noflush__fl,_Bool loej,\n              _Bool start,_Bool noisy,int verbose)" identifier (parameter_list "(int sg_fd,_Bool immed,int pc_mod__fl_num,int power_cond,_Bool noflush__fl,_Bool loej,\n              _Bool start,_Bool noisy,int verbose)" ( (parameter_declaration "int sg_fd" primitive_type identifier) , (parameter_declaration "_Bool immed" type_identifier identifier) , (parameter_declaration "int pc_mod__fl_num" primitive_type identifier) , (parameter_declaration "int power_cond" primitive_type identifier) , (parameter_declaration "_Bool noflush__fl" type_identifier identifier) , (parameter_declaration "_Bool loej" type_identifier identifier) , (parameter_declaration "_Bool start" type_identifier identifier) , (parameter_declaration "_Bool noisy" type_identifier identifier) , (parameter_declaration "int verbose" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  sg_pt_base *ptvp;\n  \n  ptvp = construct_scsi_pt_obj_with_fd(sg_fd,verbose);\n  if (ptvp == (sg_pt_base *)0x0) {\n    iVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    iVar1 = sg_ll_start_stop_unit_pt\n                      (ptvp,immed,pc_mod__fl_num,power_cond,noflush__fl,loej,start,noisy,verbose);\n    destruct_scsi_pt_obj(ptvp);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "sg_pt_base *ptvp;" type_identifier (pointer_declarator "*ptvp" * identifier) ;) (expression_statement "ptvp = construct_scsi_pt_obj_with_fd(sg_fd,verbose);" (assignment_expression "ptvp = construct_scsi_pt_obj_with_fd(sg_fd,verbose)" identifier = (call_expression "construct_scsi_pt_obj_with_fd(sg_fd,verbose)" identifier (argument_list "(sg_fd,verbose)" ( identifier , identifier )))) ;) (if_statement "if (ptvp == (sg_pt_base *)0x0) {\n    iVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    iVar1 = sg_ll_start_stop_unit_pt\n                      (ptvp,immed,pc_mod__fl_num,power_cond,noflush__fl,loej,start,noisy,verbose);\n    destruct_scsi_pt_obj(ptvp);\n  }" if (parenthesized_expression "(ptvp == (sg_pt_base *)0x0)" ( (binary_expression "ptvp == (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    iVar1 = sg_convert_errno(0xc);\n  }" { (expression_statement "iVar1 = sg_convert_errno(0xc);" (assignment_expression "iVar1 = sg_convert_errno(0xc)" identifier = (call_expression "sg_convert_errno(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) }) (else_clause "else {\n    iVar1 = sg_ll_start_stop_unit_pt\n                      (ptvp,immed,pc_mod__fl_num,power_cond,noflush__fl,loej,start,noisy,verbose);\n    destruct_scsi_pt_obj(ptvp);\n  }" else (compound_statement "{\n    iVar1 = sg_ll_start_stop_unit_pt\n                      (ptvp,immed,pc_mod__fl_num,power_cond,noflush__fl,loej,start,noisy,verbose);\n    destruct_scsi_pt_obj(ptvp);\n  }" { (expression_statement "iVar1 = sg_ll_start_stop_unit_pt\n                      (ptvp,immed,pc_mod__fl_num,power_cond,noflush__fl,loej,start,noisy,verbose);" (assignment_expression "iVar1 = sg_ll_start_stop_unit_pt\n                      (ptvp,immed,pc_mod__fl_num,power_cond,noflush__fl,loej,start,noisy,verbose)" identifier = (call_expression "sg_ll_start_stop_unit_pt\n                      (ptvp,immed,pc_mod__fl_num,power_cond,noflush__fl,loej,start,noisy,verbose)" identifier (argument_list "(ptvp,immed,pc_mod__fl_num,power_cond,noflush__fl,loej,start,noisy,verbose)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "destruct_scsi_pt_obj(ptvp);" (call_expression "destruct_scsi_pt_obj(ptvp)" identifier (argument_list "(ptvp)" ( identifier ))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4\nsg_ll_start_stop_unit\n          (undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,\n          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,\n          undefined4 param_9)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  \n  lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);\n  if (lVar2 == 0) {\n    uVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4\nsg_ll_start_stop_unit\n          (undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,\n          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,\n          undefined4 param_9)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  \n  lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);\n  if (lVar2 == 0) {\n    uVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "sg_ll_start_stop_unit\n          (undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,\n          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,\n          undefined4 param_9)" identifier (parameter_list "(undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,\n          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,\n          undefined4 param_9)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined1 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined1 param_5" type_identifier identifier) , (parameter_declaration "undefined1 param_6" type_identifier identifier) , (parameter_declaration "undefined1 param_7" type_identifier identifier) , (parameter_declaration "undefined1 param_8" type_identifier identifier) , (parameter_declaration "undefined4 param_9" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  long lVar2;\n  \n  lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);\n  if (lVar2 == 0) {\n    uVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "long lVar2;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);" (assignment_expression "lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9)" identifier = (call_expression "construct_scsi_pt_obj_with_fd(param_1,param_9)" identifier (argument_list "(param_1,param_9)" ( identifier , identifier )))) ;) (if_statement "if (lVar2 == 0) {\n    uVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }" if (parenthesized_expression "(lVar2 == 0)" ( (binary_expression "lVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar1 = sg_convert_errno(0xc);\n  }" { (expression_statement "uVar1 = sg_convert_errno(0xc);" (assignment_expression "uVar1 = sg_convert_errno(0xc)" identifier = (call_expression "sg_convert_errno(0xc)" identifier (argument_list "(0xc)" ( number_literal )))) ;) }) (else_clause "else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }" else (compound_statement "{\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }" { (expression_statement "uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);" (assignment_expression "uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" identifier = (call_expression "sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" identifier (argument_list "(lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "destruct_scsi_pt_obj(lVar2);" (call_expression "destruct_scsi_pt_obj(lVar2)" identifier (argument_list "(lVar2)" ( identifier ))) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (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 (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4\nsg_ll_start_stop_unit\n          (undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,\n          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,\n          undefined4 param_9)\n\n{\n  undefined4 uVar1;\n  long lVar2;\n  \n  lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);\n  if (lVar2 == 0) {\n    uVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "sg_ll_start_stop_unit\n          (undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,\n          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,\n          undefined4 param_9)" (identifier "sg_ll_start_stop_unit") (parameter_list "(undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,\n          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,\n          undefined4 param_9)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined1 param_5" (type_identifier "undefined1") (identifier "param_5")) (, ",") (parameter_declaration "undefined1 param_6" (type_identifier "undefined1") (identifier "param_6")) (, ",") (parameter_declaration "undefined1 param_7" (type_identifier "undefined1") (identifier "param_7")) (, ",") (parameter_declaration "undefined1 param_8" (type_identifier "undefined1") (identifier "param_8")) (, ",") (parameter_declaration "undefined4 param_9" (type_identifier "undefined4") (identifier "param_9")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  long lVar2;\n  \n  lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);\n  if (lVar2 == 0) {\n    uVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "long lVar2;" (sized_type_specifier "long" (long "long")) (identifier "lVar2") (; ";")) (expression_statement "lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);" (assignment_expression "lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9)" (identifier "lVar2") (= "=") (call_expression "construct_scsi_pt_obj_with_fd(param_1,param_9)" (identifier "construct_scsi_pt_obj_with_fd") (argument_list "(param_1,param_9)" (( "(") (identifier "param_1") (, ",") (identifier "param_9") () ")")))) (; ";")) (if_statement "if (lVar2 == 0) {\n    uVar1 = sg_convert_errno(0xc);\n  }\n  else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }" (if "if") (parenthesized_expression "(lVar2 == 0)" (( "(") (binary_expression "lVar2 == 0" (identifier "lVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = sg_convert_errno(0xc);\n  }" ({ "{") (expression_statement "uVar1 = sg_convert_errno(0xc);" (assignment_expression "uVar1 = sg_convert_errno(0xc)" (identifier "uVar1") (= "=") (call_expression "sg_convert_errno(0xc)" (identifier "sg_convert_errno") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }" (else "else") (compound_statement "{\n    uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n    destruct_scsi_pt_obj(lVar2);\n  }" ({ "{") (expression_statement "uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);" (assignment_expression "uVar1 = sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" (identifier "uVar1") (= "=") (call_expression "sg_ll_start_stop_unit_pt\n                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" (identifier "sg_ll_start_stop_unit_pt") (argument_list "(lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" (( "(") (identifier "lVar2") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") (, ",") (identifier "param_9") () ")")))) (; ";")) (expression_statement "destruct_scsi_pt_obj(lVar2);" (call_expression "destruct_scsi_pt_obj(lVar2)" (identifier "destruct_scsi_pt_obj") (argument_list "(lVar2)" (( "(") (identifier "lVar2") () ")"))) (; ";")) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int function_1
              (int sg_fd,type_1 immed,int pc_mod__fl_num,int power_cond,type_1 noflush__fl,type_1 loej,
              type_1 start,type_1 noisy,int verbose)

{
  int iVar1;
  type_2 *var_2;
  
  var_2 = var_1(sg_fd,verbose);
  if (var_2 == (type_2 *)0x0) {
    iVar1 = var_3(0xc);
  }
  else {
    iVar1 = var_4
                      (var_2,immed,pc_mod__fl_num,power_cond,noflush__fl,loej,start,noisy,verbose);
    var_5(var_2);
  }
  return iVar1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) 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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (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 (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (return_statement (identifier)))))

undefined4
MASKED
          (undefined8 param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4,
          undefined1 param_5,undefined1 param_6,undefined1 param_7,undefined1 param_8,
          undefined4 param_9)

{
  undefined4 uVar1;
  long lVar2;
  
  lVar2 = construct_scsi_pt_obj_with_fd(param_1,param_9);
  if (lVar2 == 0) {
    uVar1 = sg_convert_errno(0xc);
  }
  else {
    uVar1 = MASKED_pt
                      (lVar2,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);
    destruct_scsi_pt_obj(lVar2);
  }
  return uVar1;
}

