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

int sg_ll_mode_sense10(int sg_fd,_Bool llbaa,_Bool dbd,int pc,int pg_code,int sub_pg_code,void *resp
                      ,int mx_resp_len,_Bool noisy,int verbose)

{
  int iVar1;
  
  iVar1 = sg_ll_mode_sense10_v2
                    (sg_fd,llbaa,dbd,pc,pg_code,sub_pg_code,resp,mx_resp_len,0,(int *)0x0,noisy,
                     verbose);
  return iVar1;
}



void __regparm2
sg_ll_mode_sense10(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,
                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,
                  undefined4 param_9,undefined1 param_10,undefined4 param_11)

{
  undefined4 unaff_retaddr;
  
  entry(param_2,0x21ad6);
  sg_ll_mode_sense10_v2
            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,
             param_11);
  return;
}


PUSH EBX
CALL 0x00017820
ADD EBX,0x272b2
SUB ESP,0x8
PUSH dword ptr [ESP + 0x34]
MOVZX EAX,byte ptr [ESP + 0x34]
PUSH EAX
PUSH 0x0
PUSH 0x0
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x3c]
PUSH dword ptr [ESP + 0x3c]
MOVZX EAX,byte ptr [ESP + 0x3c]
PUSH EAX
MOVZX EAX,byte ptr [ESP + 0x3c]
PUSH EAX
PUSH dword ptr [ESP + 0x3c]
CALL 0x00017420
ADD ESP,0x38
POP EBX
RET
(translation_unit "void __regparm2\nsg_ll_mode_sense10(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,\n                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n                  undefined4 param_9,undefined1 param_10,undefined4 param_11)\n\n{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x21ad6);\n  sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11);\n  return;\n}\n\n" (function_definition "void __regparm2\nsg_ll_mode_sense10(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,\n                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n                  undefined4 param_9,undefined1 param_10,undefined4 param_11)\n\n{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x21ad6);\n  sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "sg_ll_mode_sense10(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,\n                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n                  undefined4 param_9,undefined1 param_10,undefined4 param_11)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,\n                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n                  undefined4 param_9,undefined1 param_10,undefined4 param_11)" ( (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 "undefined1 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "undefined4 param_9" type_identifier identifier) , (parameter_declaration "undefined1 param_10" type_identifier identifier) , (parameter_declaration "undefined4 param_11" type_identifier identifier) ))) (compound_statement "{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x21ad6);\n  sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11);\n  return;\n}" { (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (expression_statement "entry(param_2,0x21ad6);" (call_expression "entry(param_2,0x21ad6)" identifier (argument_list "(param_2,0x21ad6)" ( identifier , number_literal ))) ;) (expression_statement "sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11);" (call_expression "sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11)" identifier (argument_list "(unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , number_literal , number_literal , 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_ll_mode_sense10(int sg_fd,_Bool llbaa,_Bool dbd,int pc,int pg_code,int sub_pg_code,void *resp\n                      ,int mx_resp_len,_Bool noisy,int verbose)\n\n{\n  int iVar1;\n  \n  iVar1 = sg_ll_mode_sense10_v2\n                    (sg_fd,llbaa,dbd,pc,pg_code,sub_pg_code,resp,mx_resp_len,0,(int *)0x0,noisy,\n                     verbose);\n  return iVar1;\n}\n\n" comment comment (function_definition "int sg_ll_mode_sense10(int sg_fd,_Bool llbaa,_Bool dbd,int pc,int pg_code,int sub_pg_code,void *resp\n                      ,int mx_resp_len,_Bool noisy,int verbose)\n\n{\n  int iVar1;\n  \n  iVar1 = sg_ll_mode_sense10_v2\n                    (sg_fd,llbaa,dbd,pc,pg_code,sub_pg_code,resp,mx_resp_len,0,(int *)0x0,noisy,\n                     verbose);\n  return iVar1;\n}" primitive_type (function_declarator "sg_ll_mode_sense10(int sg_fd,_Bool llbaa,_Bool dbd,int pc,int pg_code,int sub_pg_code,void *resp\n                      ,int mx_resp_len,_Bool noisy,int verbose)" identifier (parameter_list "(int sg_fd,_Bool llbaa,_Bool dbd,int pc,int pg_code,int sub_pg_code,void *resp\n                      ,int mx_resp_len,_Bool noisy,int verbose)" ( (parameter_declaration "int sg_fd" primitive_type identifier) , (parameter_declaration "_Bool llbaa" type_identifier identifier) , (parameter_declaration "_Bool dbd" type_identifier identifier) , (parameter_declaration "int pc" primitive_type identifier) , (parameter_declaration "int pg_code" primitive_type identifier) , (parameter_declaration "int sub_pg_code" primitive_type identifier) , (parameter_declaration "void *resp" primitive_type (pointer_declarator "*resp" * identifier)) , (parameter_declaration "int mx_resp_len" primitive_type identifier) , (parameter_declaration "_Bool noisy" type_identifier identifier) , (parameter_declaration "int verbose" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = sg_ll_mode_sense10_v2\n                    (sg_fd,llbaa,dbd,pc,pg_code,sub_pg_code,resp,mx_resp_len,0,(int *)0x0,noisy,\n                     verbose);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = sg_ll_mode_sense10_v2\n                    (sg_fd,llbaa,dbd,pc,pg_code,sub_pg_code,resp,mx_resp_len,0,(int *)0x0,noisy,\n                     verbose);" (assignment_expression "iVar1 = sg_ll_mode_sense10_v2\n                    (sg_fd,llbaa,dbd,pc,pg_code,sub_pg_code,resp,mx_resp_len,0,(int *)0x0,noisy,\n                     verbose)" identifier = (call_expression "sg_ll_mode_sense10_v2\n                    (sg_fd,llbaa,dbd,pc,pg_code,sub_pg_code,resp,mx_resp_len,0,(int *)0x0,noisy,\n                     verbose)" identifier (argument_list "(sg_fd,llbaa,dbd,pc,pg_code,sub_pg_code,resp,mx_resp_len,0,(int *)0x0,noisy,\n                     verbose)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , number_literal , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "void __regparm2\nsg_ll_mode_sense10(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,\n                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n                  undefined4 param_9,undefined1 param_10,undefined4 param_11)\n\n{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x21ad6);\n  sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11);\n  return;\n}\n\n" (function_definition "void __regparm2\nsg_ll_mode_sense10(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,\n                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n                  undefined4 param_9,undefined1 param_10,undefined4 param_11)\n\n{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x21ad6);\n  sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11);\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "sg_ll_mode_sense10(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,\n                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n                  undefined4 param_9,undefined1 param_10,undefined4 param_11)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,\n                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n                  undefined4 param_9,undefined1 param_10,undefined4 param_11)" ( (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 "undefined1 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "undefined4 param_9" type_identifier identifier) , (parameter_declaration "undefined1 param_10" type_identifier identifier) , (parameter_declaration "undefined4 param_11" type_identifier identifier) ))) (compound_statement "{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x21ad6);\n  sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11);\n  return;\n}" { (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (expression_statement "entry(param_2,0x21ad6);" (call_expression "entry(param_2,0x21ad6)" identifier (argument_list "(param_2,0x21ad6)" ( identifier , number_literal ))) ;) (expression_statement "sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11);" (call_expression "sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11)" identifier (argument_list "(unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , number_literal , number_literal , 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) , (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 ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , LIT , LIT , IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm2\nsg_ll_mode_sense10(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,\n                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n                  undefined4 param_9,undefined1 param_10,undefined4 param_11)\n\n{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x21ad6);\n  sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11);\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "sg_ll_mode_sense10(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,\n                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n                  undefined4 param_9,undefined1 param_10,undefined4 param_11)" (identifier "sg_ll_mode_sense10") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,\n                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n                  undefined4 param_9,undefined1 param_10,undefined4 param_11)" (( "(") (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 "undefined1 param_4" (type_identifier "undefined1") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) (, ",") (parameter_declaration "undefined4 param_9" (type_identifier "undefined4") (identifier "param_9")) (, ",") (parameter_declaration "undefined1 param_10" (type_identifier "undefined1") (identifier "param_10")) (, ",") (parameter_declaration "undefined4 param_11" (type_identifier "undefined4") (identifier "param_11")) () ")"))) (compound_statement "{\n  undefined4 unaff_retaddr;\n  \n  entry(param_2,0x21ad6);\n  sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11);\n  return;\n}" ({ "{") (declaration "undefined4 unaff_retaddr;" (type_identifier "undefined4") (identifier "unaff_retaddr") (; ";")) (expression_statement "entry(param_2,0x21ad6);" (call_expression "entry(param_2,0x21ad6)" (identifier "entry") (argument_list "(param_2,0x21ad6)" (( "(") (identifier "param_2") (, ",") (number_literal "0x21ad6") () ")"))) (; ";")) (expression_statement "sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11);" (call_expression "sg_ll_mode_sense10_v2\n            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11)" (identifier "sg_ll_mode_sense10_v2") (argument_list "(unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,\n             param_11)" (( "(") (identifier "unaff_retaddr") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") (, ",") (identifier "param_9") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "param_10") (, ",") (identifier "param_11") () ")"))) (; ";")) (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(int sg_fd,type_1 llbaa,type_1 dbd,int pc,int pg_code,int sub_pg_code,void *resp
                      ,int mx_resp_len,type_1 noisy,int verbose)

{
  int iVar1;
  
  iVar1 = var_1
                    (sg_fd,llbaa,dbd,pc,pg_code,sub_pg_code,resp,mx_resp_len,0,(int *)0x0,noisy,
                     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)) (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)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (number_literal) (number_literal) (identifier) (identifier)))) (return_statement))))

void __regparm2
MASKED(undefined4 param_1,undefined4 param_2,undefined1 param_3,undefined1 param_4,
                  undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,
                  undefined4 param_9,undefined1 param_10,undefined4 param_11)

{
  undefined4 unaff_retaddr;
  
  entry(param_2,0x21ad6);
  MASKED_v2
            (unaff_retaddr,param_3,param_4,param_5,param_6,param_7,param_8,param_9,0,0,param_10,
             param_11);
  return;
}

