
/* WARNING: Unknown calling convention */

void set_scsi_pt_tag(uint64_t tag)

{
  sg_pt_linux_scsi *ptp;
  
  (ptp->io_hdr).request_tag = tag;
  return;
}



void set_scsi_pt_tag(int param_1,undefined4 param_2,undefined4 param_3)

{
  *(undefined4 *)(param_1 + 0x18) = param_2;
  *(undefined4 *)(param_1 + 0x1c) = param_3;
  return;
}


MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [ESP + 0x8]
MOV ECX,dword ptr [ESP + 0xc]
MOV dword ptr [EAX + 0x18],EDX
MOV dword ptr [EAX + 0x1c],ECX
RET
(translation_unit "void set_scsi_pt_tag(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  *(undefined4 *)(param_1 + 0x18) = param_2;\n  *(undefined4 *)(param_1 + 0x1c) = param_3;\n  return;\n}\n\n" (function_definition "void set_scsi_pt_tag(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  *(undefined4 *)(param_1 + 0x18) = param_2;\n  *(undefined4 *)(param_1 + 0x1c) = param_3;\n  return;\n}" primitive_type (function_declarator "set_scsi_pt_tag(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  *(undefined4 *)(param_1 + 0x18) = param_2;\n  *(undefined4 *)(param_1 + 0x1c) = param_3;\n  return;\n}" { (expression_statement "*(undefined4 *)(param_1 + 0x18) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid set_scsi_pt_tag(uint64_t tag)\n\n{\n  sg_pt_linux_scsi *ptp;\n  \n  (ptp->io_hdr).request_tag = tag;\n  return;\n}\n\n" comment (function_definition "void set_scsi_pt_tag(uint64_t tag)\n\n{\n  sg_pt_linux_scsi *ptp;\n  \n  (ptp->io_hdr).request_tag = tag;\n  return;\n}" primitive_type (function_declarator "set_scsi_pt_tag(uint64_t tag)" identifier (parameter_list "(uint64_t tag)" ( (parameter_declaration "uint64_t tag" primitive_type identifier) ))) (compound_statement "{\n  sg_pt_linux_scsi *ptp;\n  \n  (ptp->io_hdr).request_tag = tag;\n  return;\n}" { (declaration "sg_pt_linux_scsi *ptp;" type_identifier (pointer_declarator "*ptp" * identifier) ;) (expression_statement "(ptp->io_hdr).request_tag = tag;" (assignment_expression "(ptp->io_hdr).request_tag = tag" (field_expression "(ptp->io_hdr).request_tag" (parenthesized_expression "(ptp->io_hdr)" ( (field_expression "ptp->io_hdr" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void set_scsi_pt_tag(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  *(undefined4 *)(param_1 + 0x18) = param_2;\n  *(undefined4 *)(param_1 + 0x1c) = param_3;\n  return;\n}\n\n" (function_definition "void set_scsi_pt_tag(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  *(undefined4 *)(param_1 + 0x18) = param_2;\n  *(undefined4 *)(param_1 + 0x1c) = param_3;\n  return;\n}" primitive_type (function_declarator "set_scsi_pt_tag(int param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  *(undefined4 *)(param_1 + 0x18) = param_2;\n  *(undefined4 *)(param_1 + 0x1c) = param_3;\n  return;\n}" { (expression_statement "*(undefined4 *)(param_1 + 0x18) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })))
(function_definition "void set_scsi_pt_tag(int param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  *(undefined4 *)(param_1 + 0x18) = param_2;\n  *(undefined4 *)(param_1 + 0x1c) = param_3;\n  return;\n}" (primitive_type "void") (function_declarator "set_scsi_pt_tag(int param_1,undefined4 param_2,undefined4 param_3)" (identifier "set_scsi_pt_tag") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  *(undefined4 *)(param_1 + 0x18) = param_2;\n  *(undefined4 *)(param_1 + 0x1c) = param_3;\n  return;\n}" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x18) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x18) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x1c) = param_3;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c) = param_3" (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(uint64_t tag)

{
  type_1 *ptp;
  
  (ptp->io_hdr).request_tag = tag;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement))))

void MASKED(int param_1,undefined4 param_2,undefined4 param_3)

{
  *(undefined4 *)(param_1 + 0x18) = param_2;
  *(undefined4 *)(param_1 + 0x1c) = param_3;
  return;
}

