	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_irq_handle
_dma_irq_handle:                        ## @dma_irq_handle
	.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	_SPRD_DMA_GLB_INT_MSK_STS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	addq	8(%rsi), %rdi
	callq	_readl
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_vchan_cyclic_callback
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_spin_unlock
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	___ffs
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %r14
	cltq
	leaq	(%rax,%rax,2), %r15
	leaq	(%r14,%r15,8), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	8(%r14,%r15,8), %r12
	testq	%r12, %r12
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-1(%rbx), %eax
	andl	%ebx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_sprd_dma_get_int_type
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_sprd_dma_get_req_type
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_sprd_dma_clear_int
	cmpq	$0, 16(%r14,%r15,8)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_sprd_dma_check_trans_done
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%r14,%r15,8), %rbx
	addq	$8, %rbx
	movq	%r12, %rdi
	callq	_vchan_cookie_complete
	movq	$0, (%rbx)
	movq	%r13, %rdi
	callq	_sprd_dma_start
	jmp	LBB0_9
LBB0_3:
	movq	%r13, %rdi
	callq	_spin_unlock
LBB0_4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPRD_DMA_GLB_INT_MSK_STS,8,3   ## @SPRD_DMA_GLB_INT_MSK_STS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_dma_irq_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_irq_handle
_dma_irq_handle:                        ; @dma_irq_handle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _SPRD_DMA_GLB_INT_MSK_STS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPRD_DMA_GLB_INT_MSK_STS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cbz	w0, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	w25, #24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_vchan_cyclic_callback
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w20, w26, w20
	mov	x0, x21
	bl	_spin_unlock
	cbz	w20, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	___ffs
	mov	x23, x0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x28, [x8]
	smaddl	x21, w0, w25, x28
	mov	x0, x21
	bl	_spin_lock
	mov	x27, x21
	ldr	x22, [x27, #8]!
	cbz	x22, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w26, w20, #1
	mov	w19, #24
	sxtw	x25, w23
	mov	x0, x21
	bl	_sprd_dma_get_int_type
	mov	x23, x0
	mov	x0, x21
	bl	_sprd_dma_get_req_type
	mov	x24, x0
	mov	x0, x21
	bl	_sprd_dma_clear_int
	madd	x8, x25, x19, x28
	mov	w25, #24
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_sprd_dma_check_trans_done
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_vchan_cookie_complete
	str	xzr, [x27]
	mov	x0, x21
	bl	_sprd_dma_start
	b	LBB0_3
LBB0_8:
	mov	x0, x21
	bl	_spin_unlock
LBB0_9:
Lloh3:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SPRD_DMA_GLB_INT_MSK_STS,8,3   ; @SPRD_DMA_GLB_INT_MSK_STS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_dma_irq_handle
.subsections_via_symbols
