	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_free_queue
_nvme_free_queue:                       ## @nvme_free_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %r14d
	callq	_CQ_SIZE
	movq	32(%rbx), %rdx
	movl	28(%rbx), %ecx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_dma_free_coherent
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	_NVMEQ_SQ_CMB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_test_and_clear_bit
	movq	16(%rbx), %rcx
	movl	(%rcx), %r14d
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	%r14d, %edi
	callq	_to_pci_dev
	movl	%eax, %r14d
	movq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_SQ_SIZE
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_free_p2pmem                ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	_SQ_SIZE
	movq	(%rbx), %rdx
	movl	8(%rbx), %ecx
	movl	%r14d, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_free_coherent              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVMEQ_SQ_CMB,4,2               ## @NVMEQ_SQ_CMB
	.no_dead_strip	_nvme_free_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_free_queue
_nvme_free_queue:                       ; @nvme_free_queue
	.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
	ldr	x8, [x0, #16]
	ldr	w20, [x8]
	bl	_CQ_SIZE
	mov	x1, x0
	ldr	x2, [x19, #32]
	ldr	w3, [x19, #28]
	mov	x0, x20
	bl	_dma_free_coherent
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _NVMEQ_SQ_CMB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVMEQ_SQ_CMB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_and_clear_bit
	ldr	x8, [x19, #16]
	ldr	w20, [x8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_to_pci_dev
	mov	x20, x0
	ldr	x21, [x19]
	mov	x0, x19
	bl	_SQ_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	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	_pci_free_p2pmem
LBB0_3:
	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
	ret
LBB0_4:
	mov	x0, x19
	bl	_SQ_SIZE
	mov	x1, x0
	ldr	x2, [x19]
	ldr	w3, [x19, #8]
	mov	x0, x20
	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	_dma_free_coherent
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVMEQ_SQ_CMB,4,2               ; @NVMEQ_SQ_CMB
	.no_dead_strip	_nvme_free_queue
.subsections_via_symbols
