	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_loop_shutdown_ctrl
_nvme_loop_shutdown_ctrl:               ## @nvme_loop_shutdown_ctrl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	cmpl	$2, 8(%rdi)
	jl	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_nvme_stop_queues
	leaq	32(%rbx), %r15
	movq	_nvme_cancel_request@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_blk_mq_tagset_busy_iter
	movq	%r15, %rdi
	callq	_blk_mq_tagset_wait_completed_request
	movq	%rbx, %rdi
	callq	_nvme_loop_destroy_io_queues
LBB0_2:
	movl	24(%rbx), %edi
	callq	_blk_mq_quiesce_queue
	movq	16(%rbx), %rax
	movq	_NVME_CTRL_LIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_nvme_shutdown_ctrl
LBB0_4:
	movq	_nvme_cancel_request@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_blk_mq_tagset_busy_iter
	movq	%rbx, %rdi
	callq	_blk_mq_tagset_wait_completed_request
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvme_loop_destroy_admin_queue  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nvme_cancel_request,4,2        ## @nvme_cancel_request
	.comm	_NVME_CTRL_LIVE,8,3             ## @NVME_CTRL_LIVE
	.no_dead_strip	_nvme_loop_shutdown_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_loop_shutdown_ctrl
_nvme_loop_shutdown_ctrl:               ; @nvme_loop_shutdown_ctrl
	.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, x0
	mov	x20, x0
	ldr	w8, [x20, #8]!
Lloh0:
	adrp	x22, _nvme_cancel_request@GOTPAGE
Lloh1:
	ldr	x22, [x22, _nvme_cancel_request@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_nvme_stop_queues
	add	x21, x19, #32
	ldr	w1, [x22]
	mov	x0, x21
	mov	x2, x20
	bl	_blk_mq_tagset_busy_iter
	mov	x0, x21
	bl	_blk_mq_tagset_wait_completed_request
	mov	x0, x19
	bl	_nvme_loop_destroy_io_queues
LBB0_2:
	ldr	w0, [x19, #24]
	bl	_blk_mq_quiesce_queue
	ldr	x8, [x19, #16]
Lloh2:
	adrp	x9, _NVME_CTRL_LIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NVME_CTRL_LIVE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_nvme_shutdown_ctrl
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_blk_mq_tagset_busy_iter
	mov	x0, x19
	bl	_blk_mq_tagset_wait_completed_request
	mov	x0, x19
	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	_nvme_loop_destroy_admin_queue
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_nvme_cancel_request,4,2        ; @nvme_cancel_request
	.comm	_NVME_CTRL_LIVE,8,3             ; @NVME_CTRL_LIVE
	.no_dead_strip	_nvme_loop_shutdown_ctrl
.subsections_via_symbols
