	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_submit_cmd
_nvme_submit_cmd:                       ## @nvme_submit_cmd
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	12(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	movl	(%rbx), %eax
	movb	4(%rbx), %cl
	shll	%cl, %eax
	movslq	%eax, %rdi
	addq	16(%rbx), %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%rbx), %eax
	incl	%eax
	xorl	%ecx, %ecx
	cmpl	8(%rbx), %eax
	cmovnel	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_nvme_write_sq_db
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvme_submit_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_submit_cmd
_nvme_submit_cmd:                       ; @nvme_submit_cmd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x22, x0, #12
	mov	x0, x22
	bl	_spin_lock
	ldr	x8, [x21, #16]
	ldp	w9, w10, [x21]
	lsl	w9, w9, w10
	add	x0, x8, w9, sxtw
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x21]
	add	w9, w8, #1
	ldr	w10, [x21, #8]
	cmp	w9, w10
	csinc	w8, wzr, w8, eq
	str	w8, [x21]
	mov	x0, x21
	mov	x1, x19
	bl	_nvme_write_sq_db
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvme_submit_cmd
.subsections_via_symbols
