	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsxx_dma_done
_rsxx_dma_done:                         ## @rsxx_dma_done
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	40(%rdi), %rax
	movq	64(%rdi), %rbx
	movl	12(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	40(%r13), %rax
	movl	8(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	movq	40(%r13), %rax
	movl	4(%rax), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	56(%r13), %rax
	leaq	(%rax,%rax,2), %rax
	movl	(%rbx,%rax,8), %edi
	callq	_le16_to_cpu
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.4:
	movq	%rax, %r12
	leaq	32(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	52(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	callq	_rsxx_complete_dma
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	72(%r13), %edi
	movq	%rbx, %rsi
	callq	_push_tracker
	movq	56(%r13), %rax
	incq	%rax
	movq	_RSXX_CS_IDX_MASK@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	andq	%rax, %rcx
	movq	%rcx, 56(%r13)
	incq	(%r13)
	leaq	(%rcx,%rcx,2), %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx,%rax,8), %edi
	callq	_le16_to_cpu
	movq	%rax, %r12
	cmpq	(%r13), %rax
	jne	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rmb
	movq	56(%r13), %rax
	leaq	(%rax,%rax,2), %rax
	movq	8(%rbx,%rax,8), %rcx
	movq	16(%rbx,%rax,8), %r14
	movq	%rcx, %rbx
	movl	72(%r13), %edi
	movq	%rcx, %rsi
	callq	_get_tracker_dma
	movq	40(%r13), %rdi
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r15
	callq	_CARD_TO_DEV
	movl	48(%r13), %edx
	movl	(%r15), %ecx
	movl	%eax, %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %r8
	movq	%r14, %r9
	pushq	56(%r13)
	pushq	%r12
	callq	_dev_dbg
	addq	$16, %rsp
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_dec
	movq	_DMA_ACTIVITY_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mod_timer
	movq	%r13, %rdi
	movq	%r15, %rsi
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdx
	callq	_rsxx_handle_dma_error
	jmp	LBB0_9
LBB0_10:
	movq	40(%r13), %rdi
	callq	_dma_intr_coal_auto_tune
	leaq	32(%r13), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	leaq	52(%r13), %rdi
	callq	_del_timer_sync
LBB0_12:
	movq	40(%r13), %rdi
	callq	_spin_lock_irqsave
	movq	40(%r13), %r14
	movl	48(%r13), %edi
	callq	_CR_INTR_DMA
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_rsxx_enable_ier
	movq	40(%r13), %rdi
	callq	_spin_unlock_irqrestore
	leaq	8(%r13), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	cmpq	$0, 24(%r13)
	je	LBB0_14
## %bb.13:
	movl	16(%r13), %edi
	addq	$12, %r13
	movq	%r13, %rsi
	callq	_queue_work
LBB0_14:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
LBB0_16:
	callq	_spin_lock_irqsave
	movq	40(%r13), %rdi
	movq	_CR_INTR_DMA_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rsxx_disable_ier
	movq	40(%r13), %rdi
	callq	_spin_unlock_irqrestore
	movq	40(%r13), %rdi
	callq	_CARD_TO_DEV
	movq	56(%r13), %rcx
	movl	48(%r13), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CR_INTR_DMA_ALL,4,2            ## @CR_INTR_DMA_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No tracker for tag %d (idx %d id %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Completing DMA%d(laddr x%x tag %d st: x%x cnt: x%04x) from idx %d.\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DMA_ACTIVITY_TIMEOUT,8,3       ## @DMA_ACTIVITY_TIMEOUT
	.comm	_RSXX_CS_IDX_MASK,4,2           ## @RSXX_CS_IDX_MASK
	.no_dead_strip	_rsxx_dma_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsxx_dma_done
_rsxx_dma_done:                         ; @rsxx_dma_done
	.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
	mov	x19, x0
	ldr	x27, [x0, #64]
	ldr	x8, [x0, #40]
	ldr	w0, [x8, #12]
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #40]
	ldr	w0, [x8, #8]
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x19, #40]
	ldr	w0, [x8, #4]
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_3:
	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
LBB0_4:
	ldr	x8, [x19, #56]
	mov	w9, #24
	mul	x8, x8, x9
	ldr	w0, [x27, x8]
	bl	_le16_to_cpu
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.5:
	mov	x24, x0
	add	x20, x19, #32
	add	x21, x19, #52
	mov	w28, #24
Lloh0:
	adrp	x22, l_.str.1@PAGE
Lloh1:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w2, #0
	bl	_rsxx_complete_dma
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #72]
	mov	x1, x23
	bl	_push_tracker
	ldr	x8, [x19, #56]
	add	x8, x8, #1
Lloh2:
	adrp	x9, _RSXX_CS_IDX_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RSXX_CS_IDX_MASK@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	and	x8, x8, x9
	str	x8, [x19, #56]
	ldr	x9, [x19]
	add	x9, x9, #1
	str	x9, [x19]
	mul	x8, x8, x28
	ldr	w0, [x27, x8]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rmb
	ldr	x8, [x19, #56]
	madd	x8, x8, x28, x27
	ldp	x23, x25, [x8, #8]
	ldr	w0, [x19, #72]
	mov	x1, x23
	bl	_get_tracker_dma
	mov	x26, x0
	ldr	x0, [x19, #40]
	cbz	x26, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_CARD_TO_DEV
	ldr	w2, [x19, #48]
	ldr	w3, [x26]
	ldr	x7, [x19, #56]
	mov	x1, x22
	mov	x4, x23
	mov	x5, x25
	mov	x6, x24
	bl	_dev_dbg
	mov	x0, x20
	bl	_atomic_dec
Lloh5:
	adrp	x8, _jiffies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _DMA_ACTIVITY_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMA_ACTIVITY_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_mod_timer
	mov	x0, x19
	mov	x1, x26
	cbz	x25, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x2, x25
	bl	_rsxx_handle_dma_error
	b	LBB0_7
LBB0_11:
	ldr	x0, [x19, #40]
	bl	_dma_intr_coal_auto_tune
	add	x0, x19, #32
	bl	_atomic_read
	cbnz	x0, LBB0_13
; %bb.12:
	add	x0, x19, #52
	bl	_del_timer_sync
LBB0_13:
	ldr	x0, [x19, #40]
	bl	_spin_lock_irqsave
	ldr	x20, [x19, #40]
	ldr	w0, [x19, #48]
	bl	_CR_INTR_DMA
	mov	x1, x0
	mov	x0, x20
	bl	_rsxx_enable_ier
	ldr	x0, [x19, #40]
	bl	_spin_unlock_irqrestore
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_bh
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	w0, [x19, #16]
	add	x1, x19, #12
	bl	_queue_work
LBB0_15:
	mov	x0, x20
	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
	b	_spin_unlock_bh
LBB0_16:
	bl	_spin_lock_irqsave
	ldr	x0, [x19, #40]
Lloh11:
	adrp	x8, _CR_INTR_DMA_ALL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CR_INTR_DMA_ALL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_rsxx_disable_ier
	ldr	x0, [x19, #40]
	bl	_spin_unlock_irqrestore
	ldr	x0, [x19, #40]
	bl	_CARD_TO_DEV
	ldr	x3, [x19, #56]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	ldr	w4, [x19, #48]
	mov	x2, x23
	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
	b	_dev_err
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CR_INTR_DMA_ALL,4,2            ; @CR_INTR_DMA_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No tracker for tag %d (idx %d id %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Completing DMA%d(laddr x%x tag %d st: x%x cnt: x%04x) from idx %d.\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DMA_ACTIVITY_TIMEOUT,8,3       ; @DMA_ACTIVITY_TIMEOUT
	.comm	_RSXX_CS_IDX_MASK,4,2           ; @RSXX_CS_IDX_MASK
	.no_dead_strip	_rsxx_dma_done
.subsections_via_symbols
