
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int sg_cmds_open_device(char *device_name,_Bool read_only,int verbose)

{
  int iVar1;
  
  iVar1 = scsi_pt_open_device(device_name,read_only,verbose);
  return iVar1;
}



void __regparm2
sg_cmds_open_device(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)

{
  undefined4 unaff_retaddr;
  
  entry(param_2,0x1f536);
  scsi_pt_open_device(unaff_retaddr,param_3,param_4);
  return;
}


PUSH EBX
CALL 0x00017820
ADD EBX,0x29852
SUB ESP,0xc
PUSH dword ptr [ESP + 0x1c]
MOVZX EAX,byte ptr [ESP + 0x1c]
PUSH EAX
PUSH dword ptr [ESP + 0x1c]
CALL 0x00017610
ADD ESP,0x18
POP EBX
RET
(translation_unit "void __regparm2\nsg_cmds_open_device(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)\n\n{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x1f536);\n  scsi_pt_open_device(unaff_retaddr,param_3,param_4);\n  return;\n}\n\n" (function_definition "void __regparm2\nsg_cmds_open_device(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)\n\n{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x1f536);\n  scsi_pt_open_device(unaff_retaddr,param_3,param_4);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "sg_cmds_open_device(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined1 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x1f536);\n  scsi_pt_open_device(unaff_retaddr,param_3,param_4);\n  return;\n}" { (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (expression_statement "entry(param_2,0x1f536);" (call_expression "entry(param_2,0x1f536)" identifier (argument_list "(param_2,0x1f536)" ( identifier , number_literal ))) ;) (expression_statement "scsi_pt_open_device(unaff_retaddr,param_3,param_4);" (call_expression "scsi_pt_open_device(unaff_retaddr,param_3,param_4)" identifier (argument_list "(unaff_retaddr,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint sg_cmds_open_device(char *device_name,_Bool read_only,int verbose)\n\n{\n  int iVar1;\n  \n  iVar1 = scsi_pt_open_device(device_name,read_only,verbose);\n  return iVar1;\n}\n\n" comment comment (function_definition "int sg_cmds_open_device(char *device_name,_Bool read_only,int verbose)\n\n{\n  int iVar1;\n  \n  iVar1 = scsi_pt_open_device(device_name,read_only,verbose);\n  return iVar1;\n}" primitive_type (function_declarator "sg_cmds_open_device(char *device_name,_Bool read_only,int verbose)" identifier (parameter_list "(char *device_name,_Bool read_only,int verbose)" ( (parameter_declaration "char *device_name" primitive_type (pointer_declarator "*device_name" * identifier)) , (parameter_declaration "_Bool read_only" type_identifier identifier) , (parameter_declaration "int verbose" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = scsi_pt_open_device(device_name,read_only,verbose);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = scsi_pt_open_device(device_name,read_only,verbose);" (assignment_expression "iVar1 = scsi_pt_open_device(device_name,read_only,verbose)" identifier = (call_expression "scsi_pt_open_device(device_name,read_only,verbose)" identifier (argument_list "(device_name,read_only,verbose)" ( identifier , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void __regparm2\nsg_cmds_open_device(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)\n\n{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x1f536);\n  scsi_pt_open_device(unaff_retaddr,param_3,param_4);\n  return;\n}\n\n" (function_definition "void __regparm2\nsg_cmds_open_device(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)\n\n{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x1f536);\n  scsi_pt_open_device(unaff_retaddr,param_3,param_4);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "sg_cmds_open_device(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined1 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x1f536);\n  scsi_pt_open_device(unaff_retaddr,param_3,param_4);\n  return;\n}" { (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (expression_statement "entry(param_2,0x1f536);" (call_expression "entry(param_2,0x1f536)" identifier (argument_list "(param_2,0x1f536)" ( identifier , number_literal ))) ;) (expression_statement "scsi_pt_open_device(unaff_retaddr,param_3,param_4);" (call_expression "scsi_pt_open_device(unaff_retaddr,param_3,param_4)" identifier (argument_list "(unaff_retaddr,param_3,param_4)" ( identifier , identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm2\nsg_cmds_open_device(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)\n\n{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x1f536);\n  scsi_pt_open_device(unaff_retaddr,param_3,param_4);\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "sg_cmds_open_device(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)" (identifier "sg_cmds_open_device") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined1 param_3" (type_identifier "undefined1") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x1f536);\n  scsi_pt_open_device(unaff_retaddr,param_3,param_4);\n  return;\n}" ({ "{") (declaration "undefined4 unaff_retaddr;" (type_identifier "undefined4") (identifier "unaff_retaddr") (; ";")) (expression_statement "entry(param_2,0x1f536);" (call_expression "entry(param_2,0x1f536)" (identifier "entry") (argument_list "(param_2,0x1f536)" (( "(") (identifier "param_2") (, ",") (number_literal "0x1f536") () ")"))) (; ";")) (expression_statement "scsi_pt_open_device(unaff_retaddr,param_3,param_4);" (call_expression "scsi_pt_open_device(unaff_retaddr,param_3,param_4)" (identifier "scsi_pt_open_device") (argument_list "(unaff_retaddr,param_3,param_4)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

int function_1(char *device_name,type_1 read_only,int verbose)

{
  int iVar1;
  
  iVar1 = var_1(device_name,read_only,verbose);
  return iVar1;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (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)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))) (return_statement))))

void __regparm2
MASKED(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined4 param_4)

{
  undefined4 unaff_retaddr;
  
  entry(param_2,0x1f536);
  scsi_pt_open_device(unaff_retaddr,param_3,param_4);
  return;
}

