	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_user_sdma_queue_destroy    ## -- Begin function qib_user_sdma_queue_destroy
	.p2align	4, 0x90
_qib_user_sdma_queue_destroy:           ## @qib_user_sdma_queue_destroy
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	decq	(%rdi)
	jne	LBB0_3
## %bb.2:
	addq	$24, %rdi
	movq	_qib_user_sdma_rb_root@GOTPCREL(%rip), %rsi
	callq	_rb_erase
	movq	16(%rbx), %rdi
	callq	_kfree
LBB0_3:
	movl	12(%rbx), %edi
	callq	_dma_pool_destroy
	movl	8(%rbx), %edi
	callq	_kmem_cache_destroy
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_4:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qib_user_sdma_rb_root,4,2      ## @qib_user_sdma_rb_root
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_user_sdma_queue_destroy    ; -- Begin function qib_user_sdma_queue_destroy
	.p2align	2
_qib_user_sdma_queue_destroy:           ; @qib_user_sdma_queue_destroy
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	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	x8, [x0, #16]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_3
; %bb.2:
	add	x0, x8, #24
Lloh0:
	adrp	x1, _qib_user_sdma_rb_root@GOTPAGE
Lloh1:
	ldr	x1, [x1, _qib_user_sdma_rb_root@GOTPAGEOFF]
	bl	_rb_erase
	ldr	x0, [x19, #16]
	bl	_kfree
LBB0_3:
	ldr	w0, [x19, #12]
	bl	_dma_pool_destroy
	ldr	w0, [x19, #8]
	bl	_kmem_cache_destroy
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_qib_user_sdma_rb_root,4,2      ; @qib_user_sdma_rb_root
.subsections_via_symbols
