	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rsxx_dma_destroy               ## -- Begin function rsxx_dma_destroy
	.p2align	4, 0x90
_rsxx_dma_destroy:                      ## @rsxx_dma_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	movl	$20, %ebx
	xorl	%r13d, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rbx), %r15
	addq	$-20, %r15
	leaq	(%r14,%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	leaq	(%r14,%rbx), %rsi
	addq	$4, %rsi
	movq	_COMPLETE_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_rsxx_cleanup_dma_queue
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	%r15, %rdi
	callq	_rsxx_dma_cancel
	movl	-4(%r14,%rbx), %edi
	callq	_vfree
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %edi
	movq	_STATUS_BUFFER_SIZE8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-12(%r14,%rbx), %ecx
	movl	-8(%r14,%rbx), %edx
	callq	_pci_free_consistent
	movl	4(%r15), %edi
	movq	_COMMAND_BUFFER_SIZE8@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-20(%r14,%rbx), %ecx
	movl	-16(%r14,%rbx), %edx
	callq	_pci_free_consistent
	incq	%r13
	movslq	(%r15), %rax
	addq	$48, %rbx
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %r14
	movq	20(%r14,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_destroy_workqueue
	movq	$0, 20(%r14,%rbx)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	12(%r14,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_destroy_workqueue
	movq	$0, 12(%r14,%rbx)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rbx), %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_timer_pending
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_del_timer_sync
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMPLETE_DMA,4,2               ## @COMPLETE_DMA
	.comm	_STATUS_BUFFER_SIZE8,4,2        ## @STATUS_BUFFER_SIZE8
	.comm	_COMMAND_BUFFER_SIZE8,4,2       ## @COMMAND_BUFFER_SIZE8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rsxx_dma_destroy               ; -- Begin function rsxx_dma_destroy
	.p2align	2
_rsxx_dma_destroy:                      ; @rsxx_dma_destroy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x24, _COMPLETE_DMA@GOTPAGE
Lloh1:
	ldr	x24, [x24, _COMPLETE_DMA@GOTPAGEOFF]
Lloh2:
	adrp	x25, _STATUS_BUFFER_SIZE8@GOTPAGE
Lloh3:
	ldr	x25, [x25, _STATUS_BUFFER_SIZE8@GOTPAGEOFF]
Lloh4:
	adrp	x26, _COMMAND_BUFFER_SIZE8@GOTPAGE
Lloh5:
	ldr	x26, [x26, _COMMAND_BUFFER_SIZE8@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x27, #20
	mov	x0, x21
	bl	_spin_lock_bh
	add	x1, x27, #24
	ldr	w2, [x24]
	mov	x0, x20
	bl	_rsxx_cleanup_dma_queue
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x20
	bl	_rsxx_dma_cancel
	ldr	w0, [x27, #16]
	bl	_vfree
	ldr	w0, [x19, #4]
	ldr	w1, [x25]
	ldp	w3, w2, [x27, #8]
	bl	_pci_free_consistent
	ldr	w0, [x19, #4]
	ldr	w1, [x26]
	ldp	w3, w2, [x27]
	bl	_pci_free_consistent
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #48
	cmp	x23, x8
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19, #8]
	add	x20, x21, x22
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_destroy_workqueue
	str	xzr, [x20, #40]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_destroy_workqueue
	str	xzr, [x20, #32]
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x21, x22
	add	x21, x27, #28
	mov	x0, x21
	bl	_timer_pending
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_del_timer_sync
	b	LBB0_2
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_COMPLETE_DMA,4,2               ; @COMPLETE_DMA
	.comm	_STATUS_BUFFER_SIZE8,4,2        ; @STATUS_BUFFER_SIZE8
	.comm	_COMMAND_BUFFER_SIZE8,4,2       ; @COMMAND_BUFFER_SIZE8
.subsections_via_symbols
