	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sdma_clean
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_sdma_clean
	.p2align	4, 0x90
_sdma_clean:                            ## @sdma_clean
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	64(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	_SDMA_PAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%r15), %rdi
	movq	56(%r15), %rcx
	callq	_dma_free_coherent
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r15)
LBB0_2:
	movq	48(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	32(%r15), %rdi
	movl	(%r15), %esi
	movq	40(%r15), %rcx
	callq	_dma_free_coherent
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r15)
LBB0_4:
	movq	16(%r15), %r13
	testq	%r13, %r13
	je	LBB0_11
## %bb.5:
	testq	%r14, %r14
	je	LBB0_11
## %bb.6:
	movl	$1, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r13,%rbx)
	movq	(%r13,%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	32(%r15), %rdi
	movl	8(%r13,%rbx), %esi
	shll	$3, %esi
	movq	24(%r13,%rbx), %rcx
	callq	_dma_free_coherent
	movq	$0, (%r13,%rbx)
	movq	$0, 24(%r13,%rbx)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13,%rbx), %rdi
	callq	_kvfree
	movq	$0, 16(%r13,%rbx)
	movq	16(%r15), %r13
	testq	%r13, %r13
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	$48, %rbx
	leaq	1(%r12), %rax
	cmpq	%r14, %r12
	movq	%rax, %r12
	jb	LBB0_7
LBB0_11:
	leaq	24(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	28(%r15), %edi
	callq	_rcu_access_pointer
	movl	%eax, %edi
	callq	_sdma_map_free
	movl	28(%r15), %edi
	xorl	%esi, %esi
	callq	_RCU_INIT_POINTER
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	16(%r15), %rdi
	callq	_kfree
	movq	$0, 16(%r15)
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	movq	_sdma_rht_free@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_rhashtable_free_and_destroy
	movq	8(%r15), %rdi
	callq	_kfree
	movq	$0, 8(%r15)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMA_PAD,4,2                   ## @SDMA_PAD
	.comm	_sdma_rht_free,4,2              ## @sdma_rht_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_clean                     ; -- Begin function sdma_clean
	.p2align	2
_sdma_clean:                            ; @sdma_clean
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x2, [x0, #64]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	x0, [x19, #32]
Lloh0:
	adrp	x8, _SDMA_PAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDMA_PAD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x3, [x19, #56]
	bl	_dma_free_coherent
	stp	xzr, xzr, [x19, #56]
LBB0_2:
	ldr	x2, [x19, #48]
	cbz	x2, LBB0_4
; %bb.3:
	ldr	w1, [x19]
	ldp	x0, x3, [x19, #32]
	bl	_dma_free_coherent
	stp	xzr, xzr, [x19, #40]
LBB0_4:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	ccmp	x20, #0, #4, ne
	b.ne	LBB0_8
LBB0_5:
	add	x20, x19, #24
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	w0, [x19, #28]
	bl	_rcu_access_pointer
	bl	_sdma_map_free
	ldr	w0, [x19, #28]
	mov	x1, #0
	bl	_RCU_INIT_POINTER
	mov	x0, x20
	bl	_spin_unlock_irq
	bl	_synchronize_rcu
	ldr	x0, [x19, #16]
	bl	_kfree
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _sdma_rht_free@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sdma_rht_free@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_rhashtable_free_and_destroy
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x21, #0
	mov	w22, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x23, #16]
	bl	_kvfree
	str	xzr, [x23, #16]
	ldr	x8, [x19, #16]
	add	x21, x21, #48
	cmp	x8, #0
	ccmp	x22, x20, #2, ne
	add	x22, x22, #1
	b.hs	LBB0_5
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x23, x8, x21
	stp	xzr, xzr, [x23, #32]
	ldr	x2, [x23]
	cbz	x2, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x19, #32]
	ldr	w8, [x23, #8]
	lsl	w1, w8, #3
	ldr	x3, [x23, #24]
	bl	_dma_free_coherent
	str	xzr, [x23]
	str	xzr, [x23, #24]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA_PAD,4,2                   ; @SDMA_PAD
	.comm	_sdma_rht_free,4,2              ; @sdma_rht_free
.subsections_via_symbols
