	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sprd_dma_get_int_type
_sprd_dma_get_int_type:                 ## @sprd_dma_get_int_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$8, %rdi
	callq	_to_sprd_dma_dev
	movq	%rax, %r14
	movq	_SPRD_DMA_CHN_INTC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_SPRD_DMA_CHN_INT_STS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.sprd_dma_get_int_type(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_SPRD_DMA_NO_INT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPRD_DMA_CHN_INTC,8,3          ## @SPRD_DMA_CHN_INTC
	.comm	_SPRD_DMA_CHN_INT_STS,4,2       ## @SPRD_DMA_CHN_INT_STS
	.comm	_SPRD_DMA_CFGERR_INT,4,2        ## @SPRD_DMA_CFGERR_INT
	.comm	_SPRD_DMA_LIST_INT,4,2          ## @SPRD_DMA_LIST_INT
	.comm	_SPRD_DMA_TRANS_INT,4,2         ## @SPRD_DMA_TRANS_INT
	.comm	_SPRD_DMA_BLK_INT,4,2           ## @SPRD_DMA_BLK_INT
	.comm	_SPRD_DMA_FRAG_INT,4,2          ## @SPRD_DMA_FRAG_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incorrect dma interrupt type\n"

	.comm	_SPRD_DMA_NO_INT,4,2            ## @SPRD_DMA_NO_INT
	.no_dead_strip	_sprd_dma_get_int_type
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.sprd_dma_get_int_type
l_switch.table.sprd_dma_get_int_type:
	.quad	_SPRD_DMA_TRANS_INT
	.quad	_SPRD_DMA_LIST_INT
	.quad	_SPRD_DMA_FRAG_INT
	.quad	_SPRD_DMA_CFGERR_INT
	.quad	_SPRD_DMA_BLK_INT

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sprd_dma_get_int_type
_sprd_dma_get_int_type:                 ; @sprd_dma_get_int_type
	.cfi_startproc
; %bb.0:
	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	x20, x0
	add	x0, x0, #8
	bl	_to_sprd_dma_dev
	mov	x19, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SPRD_DMA_CHN_INTC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPRD_DMA_CHN_INTC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _SPRD_DMA_CHN_INT_STS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPRD_DMA_CHN_INT_STS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #5
	b.hs	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, l_switch.table.sprd_dma_get_int_type@PAGE
Lloh7:
	add	x9, x9, l_switch.table.sprd_dma_get_int_type@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh10:
	adrp	x8, _SPRD_DMA_NO_INT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SPRD_DMA_NO_INT@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SPRD_DMA_CHN_INTC,8,3          ; @SPRD_DMA_CHN_INTC
	.comm	_SPRD_DMA_CHN_INT_STS,4,2       ; @SPRD_DMA_CHN_INT_STS
	.comm	_SPRD_DMA_CFGERR_INT,4,2        ; @SPRD_DMA_CFGERR_INT
	.comm	_SPRD_DMA_LIST_INT,4,2          ; @SPRD_DMA_LIST_INT
	.comm	_SPRD_DMA_TRANS_INT,4,2         ; @SPRD_DMA_TRANS_INT
	.comm	_SPRD_DMA_BLK_INT,4,2           ; @SPRD_DMA_BLK_INT
	.comm	_SPRD_DMA_FRAG_INT,4,2          ; @SPRD_DMA_FRAG_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incorrect dma interrupt type\n"

	.comm	_SPRD_DMA_NO_INT,4,2            ; @SPRD_DMA_NO_INT
	.no_dead_strip	_sprd_dma_get_int_type
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.sprd_dma_get_int_type
l_switch.table.sprd_dma_get_int_type:
	.quad	_SPRD_DMA_TRANS_INT
	.quad	_SPRD_DMA_LIST_INT
	.quad	_SPRD_DMA_FRAG_INT
	.quad	_SPRD_DMA_CFGERR_INT
	.quad	_SPRD_DMA_BLK_INT

.subsections_via_symbols
