	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_rdma_destroy_queue_ib
_nvme_rdma_destroy_queue_ib:            ## @nvme_rdma_destroy_queue_ib
	.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	_NVME_RDMA_Q_TR_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	32(%rbx), %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	16(%rbx), %rdi
	movq	24(%rbx), %r14
	movq	(%r14), %r15
	movq	%rdi, %rsi
	callq	_ib_mr_pool_destroy
	movq	16(%rbx), %rdi
	callq	_ib_destroy_qp
	movl	8(%rbx), %edi
	callq	_ib_free_cq
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	$4, %ecx
	callq	_nvme_rdma_free_ring
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvme_rdma_dev_put              ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_RDMA_Q_TR_READY,4,2       ## @NVME_RDMA_Q_TR_READY
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_nvme_rdma_destroy_queue_ib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_rdma_destroy_queue_ib
_nvme_rdma_destroy_queue_ib:            ; @nvme_rdma_destroy_queue_ib
	.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
Lloh0:
	adrp	x8, _NVME_RDMA_Q_TR_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_RDMA_Q_TR_READY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_test_and_clear_bit
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x0, x20, [x19, #16]
	ldr	x21, [x20]
	mov	x1, x0
	bl	_ib_mr_pool_destroy
	ldr	x0, [x19, #16]
	bl	_ib_destroy_qp
	ldr	w0, [x19, #8]
	bl	_ib_free_cq
	ldp	w2, w1, [x19]
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x21
	mov	w3, #4
	bl	_nvme_rdma_free_ring
	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	_nvme_rdma_dev_put
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_RDMA_Q_TR_READY,4,2       ; @NVME_RDMA_Q_TR_READY
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_nvme_rdma_destroy_queue_ib
.subsections_via_symbols
