	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_dmac_isr_channel
_rcar_dmac_isr_channel:                 ## @rcar_dmac_isr_channel
	.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, %rbx
	movq	_RCAR_DMACHCR_DSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_RCAR_DMACHCR_TE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	16(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_RCAR_DMACHCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rcar_dmac_chan_read
	movl	%eax, %r12d
	movq	_RCAR_DMACHCR_CAE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_1
## %bb.10:
	movq	8(%rbx), %rdi
	callq	_to_rcar_dmac
	movq	_RCAR_DMACHCLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movb	(%rbx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	%rax, %rdi
	callq	_rcar_dmac_write
	movq	%rbx, %rdi
	callq	_rcar_dmac_chcr_de_barrier
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_rcar_dmac_chan_reinit
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_RCAR_DMACHCR@GOTPCREL(%rip), %rcx
	orl	-48(%rbp), %r13d                ## 4-byte Folded Reload
	movq	_RCAR_DMACHCR_TE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RCAR_DMACHCR_DE@GOTPCREL(%rip), %r15
	andl	%r12d, %eax
	je	LBB0_3
## %bb.2:
	movl	(%r15), %eax
LBB0_3:
	orl	%eax, %r13d
	movl	(%rcx), %esi
	movl	%r13d, %eax
	notl	%eax
	movl	%r12d, %edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	callq	_rcar_dmac_chan_write
	testl	%r13d, (%r15)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_rcar_dmac_chcr_de_barrier
LBB0_5:
	movq	_RCAR_DMACHCR_DSE@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	_RCAR_DMACHCR_TE@GOTPCREL(%rip), %r13
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_rcar_dmac_isr_desc_stage_end
	orl	%eax, %r15d
LBB0_7:
	testl	%r12d, (%r13)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_rcar_dmac_isr_transfer_end
	orl	%eax, %r15d
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_DMACHCR_DSE,4,2           ## @RCAR_DMACHCR_DSE
	.comm	_RCAR_DMACHCR_TE,4,2            ## @RCAR_DMACHCR_TE
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_RCAR_DMACHCR,4,2               ## @RCAR_DMACHCR
	.comm	_RCAR_DMACHCR_CAE,4,2           ## @RCAR_DMACHCR_CAE
	.comm	_RCAR_DMACHCLR,4,2              ## @RCAR_DMACHCLR
	.comm	_RCAR_DMACHCR_DE,4,2            ## @RCAR_DMACHCR_DE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Channel Address Error\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_rcar_dmac_isr_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_dmac_isr_channel
_rcar_dmac_isr_channel:                 ; @rcar_dmac_isr_channel
	.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, x1
Lloh0:
	adrp	x24, _RCAR_DMACHCR_DSE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RCAR_DMACHCR_DSE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _RCAR_DMACHCR_TE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RCAR_DMACHCR_TE@GOTPAGEOFF]
	ldr	w25, [x24]
	ldr	w26, [x23]
Lloh4:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	add	x20, x1, #16
	mov	x0, x20
	bl	_spin_lock
Lloh7:
	adrp	x27, _RCAR_DMACHCR@GOTPAGE
Lloh8:
	ldr	x27, [x27, _RCAR_DMACHCR@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x19
	bl	_rcar_dmac_chan_read
Lloh9:
	adrp	x8, _RCAR_DMACHCR_CAE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RCAR_DMACHCR_CAE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	bl	_to_rcar_dmac
Lloh12:
	adrp	x8, _RCAR_DMACHCLR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RCAR_DMACHCLR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w2, w9, w8
	bl	_rcar_dmac_write
	mov	x0, x19
	bl	_rcar_dmac_chcr_de_barrier
	mov	x0, x20
	bl	_spin_unlock
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_rcar_dmac_chan_reinit
Lloh17:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_2:
	mov	x22, x0
	orr	w8, w26, w25
	ldr	w9, [x23]
Lloh20:
	adrp	x25, _RCAR_DMACHCR_DE@GOTPAGE
Lloh21:
	ldr	x25, [x25, _RCAR_DMACHCR_DE@GOTPAGEOFF]
	ldr	w10, [x25]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w26, w8, w9
	ldr	w1, [x27]
	bic	w2, w0, w26
	mov	x0, x19
	bl	_rcar_dmac_chan_write
	ldr	w8, [x25]
	tst	w26, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_rcar_dmac_chcr_de_barrier
LBB0_4:
	ldr	w8, [x24]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_rcar_dmac_isr_desc_stage_end
	orr	w21, w0, w21
LBB0_6:
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_rcar_dmac_isr_transfer_end
	orr	w21, w0, w21
LBB0_8:
	mov	x0, x20
	bl	_spin_unlock
LBB0_9:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_DMACHCR_DSE,4,2           ; @RCAR_DMACHCR_DSE
	.comm	_RCAR_DMACHCR_TE,4,2            ; @RCAR_DMACHCR_TE
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_RCAR_DMACHCR,4,2               ; @RCAR_DMACHCR
	.comm	_RCAR_DMACHCR_CAE,4,2           ; @RCAR_DMACHCR_CAE
	.comm	_RCAR_DMACHCLR,4,2              ; @RCAR_DMACHCLR
	.comm	_RCAR_DMACHCR_DE,4,2            ; @RCAR_DMACHCR_DE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Channel Address Error\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_rcar_dmac_isr_channel
.subsections_via_symbols
