	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_disable_queue
_nvme_disable_queue:                    ## @nvme_disable_queue
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movslq	%esi, %rdx
	movq	(%rcx,%rdx,8), %rbx
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %r13d
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	cmpl	$0, 8(%rbx)
	jne	LBB0_4
## %bb.1:
	movl	$1, 8(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_irq_set_affinity_hint
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_free_irq
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_adapter_delete_sq
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_adapter_delete_cq
LBB0_3:
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	%rbx, %rdi
	callq	_nvme_process_cq
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_nvme_cancel_ios
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvme_disable_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_disable_queue
_nvme_disable_queue:                    ; @nvme_disable_queue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x22, x0
	ldp	x9, x8, [x0]
	ldr	x20, [x8, w1, sxtw #3]
	ldr	x8, [x20]
	ldr	w23, [x9, x8, lsl #2]
	add	x19, x20, #12
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_4
; %bb.1:
	mov	w8, #1
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x23
	mov	x1, #0
	bl	_irq_set_affinity_hint
	mov	x0, x23
	mov	x1, x20
	bl	_free_irq
	cbz	w21, LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	bl	_adapter_delete_sq
	mov	x0, x22
	mov	x1, x21
	bl	_adapter_delete_cq
LBB0_3:
	mov	x0, x19
	bl	_spin_lock_irq
	mov	x0, x20
	bl	_nvme_process_cq
	mov	x0, x20
	mov	w1, #0
	bl	_nvme_cancel_ios
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irq
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvme_disable_queue
.subsections_via_symbols
