	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtip_issue_ncq_command
_mtip_issue_ncq_command:                ## @mtip_issue_ncq_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movslq	%esi, %r13
	movq	%r13, %rcx
	shlq	$4, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx), %rdi
	addq	$8, %rdi
	movl	$1, %r15d
	movl	$1, %esi
	callq	_atomic_set
	leaq	8(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movl	%r13d, %edi
	callq	_MTIP_TAG_BIT
	movl	$1, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	movq	24(%r12), %r14
	movl	%r13d, %edi
	callq	_MTIP_TAG_INDEX
	movl	(%r14,%rax,4), %esi
	movl	%ebx, %edi
	callq	_writel
	movl	%r13d, %edi
	callq	_MTIP_TAG_BIT
	movl	%eax, %ecx
	shll	%cl, %r15d
	movq	16(%r12), %rbx
	movl	%r13d, %edi
	callq	_MTIP_TAG_INDEX
	movl	(%rbx,%rax,4), %esi
	movl	%r15d, %edi
	callq	_writel
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_MTIP_NCQ_COMMAND_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rbx, %rax
	movq	(%r12), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MTIP_NCQ_COMMAND_TIMEOUT_MS,4,2 ## @MTIP_NCQ_COMMAND_TIMEOUT_MS
	.no_dead_strip	_mtip_issue_ncq_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_issue_ncq_command
_mtip_issue_ncq_command:                ; @mtip_issue_ncq_command
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	sbfiz	x23, x20, #4, #32
	add	x8, x8, x23
	add	x0, x8, #8
	mov	w24, #1
	mov	w1, #1
	bl	_atomic_set
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x20
	bl	_MTIP_TAG_BIT
	lsl	w22, w24, w0
	ldr	x25, [x19, #24]
	mov	x0, x20
	bl	_MTIP_TAG_INDEX
	ldr	w1, [x25, x0, lsl #2]
	mov	x0, x22
	bl	_writel
	mov	x0, x20
	bl	_MTIP_TAG_BIT
	lsl	w22, w24, w0
	ldr	x24, [x19, #16]
	mov	x0, x20
	bl	_MTIP_TAG_INDEX
	ldr	w1, [x24, x0, lsl #2]
	mov	x0, x22
	bl	_writel
	mov	x0, x21
	bl	_spin_unlock
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _MTIP_NCQ_COMMAND_TIMEOUT_MS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTIP_NCQ_COMMAND_TIMEOUT_MS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x8, x0, x20
	ldr	x9, [x19]
	str	x8, [x9, x23]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MTIP_NCQ_COMMAND_TIMEOUT_MS,4,2 ; @MTIP_NCQ_COMMAND_TIMEOUT_MS
	.no_dead_strip	_mtip_issue_ncq_command
.subsections_via_symbols
