	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_sq_destroy               ## -- Begin function nvmet_sq_destroy
	.p2align	4, 0x90
_nvmet_sq_destroy:                      ## @nvmet_sq_destroy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.3:
	callq	_nvmet_async_events_free
LBB0_4:
	leaq	8(%rbx), %r14
	movq	_nvmet_confirm_sq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_percpu_ref_kill_and_confirm
	leaq	16(%rbx), %rdi
	callq	_wait_for_completion
	leaq	12(%rbx), %rdi
	callq	_wait_for_completion
	movq	%r14, %rdi
	callq	_percpu_ref_exit
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_nvmet_ctrl_put
	movq	$0, (%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nvmet_confirm_sq,4,2           ## @nvmet_confirm_sq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_sq_destroy               ; -- Begin function nvmet_sq_destroy
	.p2align	2
_nvmet_sq_destroy:                      ; @nvmet_sq_destroy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
	bl	_nvmet_async_events_free
LBB0_4:
	add	x20, x19, #8
Lloh0:
	adrp	x8, _nvmet_confirm_sq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nvmet_confirm_sq@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_percpu_ref_kill_and_confirm
	add	x0, x19, #16
	bl	_wait_for_completion
	add	x0, x19, #12
	bl	_wait_for_completion
	mov	x0, x20
	bl	_percpu_ref_exit
	ldr	x0, [x19]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_nvmet_ctrl_put
	str	xzr, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_nvmet_confirm_sq,4,2           ; @nvmet_confirm_sq
.subsections_via_symbols
