	.file	"extr_rcar-dmac.c_rcar_dmac_isr_channel.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Channel Address Error\n"
	.text
	.p2align 4
	.type	rcar_dmac_isr_channel, @function
rcar_dmac_isr_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, 16[rsi]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	rdi, r14
	mov	r13d, DWORD PTR IRQ_NONE[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, DWORD PTR RCAR_DMACHCR_DSE[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	or	r12d, DWORD PTR RCAR_DMACHCR_TE[rip]
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	spin_lock@PLT
	mov	esi, DWORD PTR RCAR_DMACHCR[rip]
	mov	rdi, rbp
	call	rcar_dmac_chan_read@PLT
	test	DWORD PTR RCAR_DMACHCR_CAE[rip], eax
	jne	.L19
	mov	ebx, eax
	test	DWORD PTR RCAR_DMACHCR_TE[rip], eax
	jne	.L20
.L4:
	mov	edx, r12d
	mov	esi, DWORD PTR RCAR_DMACHCR[rip]
	mov	rdi, rbp
	not	edx
	and	edx, ebx
	call	rcar_dmac_chan_write@PLT
	test	DWORD PTR RCAR_DMACHCR_DE[rip], r12d
	jne	.L21
.L5:
	test	DWORD PTR RCAR_DMACHCR_DSE[rip], ebx
	jne	.L22
.L6:
	test	DWORD PTR RCAR_DMACHCR_TE[rip], ebx
	jne	.L23
	mov	rdi, r14
	call	spin_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	or	r12d, DWORD PTR RCAR_DMACHCR_DE[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, QWORD PTR 8[rbp]
	call	to_rcar_dmac@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR RCAR_DMACHCLR[rip]
	mov	edx, 1
	mov	rdi, rax
	sal	edx, cl
	call	rcar_dmac_write@PLT
	mov	rdi, rbp
	call	rcar_dmac_chcr_de_barrier@PLT
	mov	rdi, r14
	call	spin_unlock@PLT
	mov	rax, QWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	dev_err@PLT
	mov	rdi, rbp
	call	rcar_dmac_chan_reinit@PLT
	mov	r13d, DWORD PTR IRQ_HANDLED[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rdi, rbp
	call	rcar_dmac_isr_transfer_end@PLT
	mov	rdi, r14
	or	r13d, eax
	call	spin_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, rbp
	call	rcar_dmac_isr_desc_stage_end@PLT
	or	r13d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	rcar_dmac_chcr_de_barrier@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	rcar_dmac_isr_channel, .-rcar_dmac_isr_channel
	.comm	RCAR_DMACHCR_TE,4,4
	.comm	RCAR_DMACHCR_DSE,4,4
	.comm	RCAR_DMACHCR_DE,4,4
	.comm	RCAR_DMACHCR_CAE,4,4
	.comm	RCAR_DMACHCR,4,4
	.comm	RCAR_DMACHCLR,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rcar-dmac.c_rcar_dmac_isr_channel.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Channel Address Error\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rcar_dmac_isr_channel, %function
rcar_dmac_isr_channel:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r10, .L23
	ldr	r7, .L23+4
	ldr	r3, .L23+8
	ldr	r2, [r7]
	add	r9, r1, #8
	ldr	r6, [r10]
	ldr	fp, .L23+12
	sub	sp, sp, #12
	mov	r0, r9
	ldr	r8, [r3]
	orr	r6, r6, r2
	bl	spin_lock
	mov	r0, r4
	ldr	r1, [fp]
	bl	rcar_dmac_chan_read
	ldr	r3, .L23+16
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L19
	ldr	r3, [r7]
	mov	r5, r0
	tst	r0, r3
	ldr	r3, .L23+20
	ldr	r1, [fp]
	ldrne	r2, [r3]
	str	r3, [sp, #4]
	orrne	r6, r6, r2
	bic	r2, r0, r6
	mov	r0, r4
	bl	rcar_dmac_chan_write
	ldr	r3, [sp, #4]
	ldr	r3, [r3]
	tst	r6, r3
	bne	.L20
.L5:
	ldr	r3, [r10]
	tst	r5, r3
	bne	.L21
.L6:
	ldr	r3, [r7]
	tst	r5, r3
	bne	.L22
	mov	r0, r9
	bl	spin_unlock
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	ldr	r0, [r4, #4]
	bl	to_rcar_dmac
	mov	r1, #1
	ldr	r3, .L23+24
	ldr	r2, [r4]
	lsl	r2, r1, r2
	ldr	r1, [r3]
	bl	rcar_dmac_write
	mov	r0, r4
	bl	rcar_dmac_chcr_de_barrier
	mov	r0, r9
	bl	spin_unlock
	ldr	r3, [r4, #4]
	ldr	r1, .L23+28
	ldr	r0, [r3]
	bl	dev_err
	mov	r0, r4
	bl	rcar_dmac_chan_reinit
	ldr	r3, .L23+32
	ldr	r8, [r3]
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	mov	r0, r4
	bl	rcar_dmac_isr_transfer_end
	mov	r3, r0
	mov	r0, r9
	orr	r8, r8, r3
	bl	spin_unlock
	mov	r0, r8
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	mov	r0, r4
	bl	rcar_dmac_isr_desc_stage_end
	orr	r8, r8, r0
	b	.L6
.L20:
	mov	r0, r4
	bl	rcar_dmac_chcr_de_barrier
	b	.L5
.L24:
	.align	2
.L23:
	.word	RCAR_DMACHCR_DSE
	.word	RCAR_DMACHCR_TE
	.word	IRQ_NONE
	.word	RCAR_DMACHCR
	.word	RCAR_DMACHCR_CAE
	.word	RCAR_DMACHCR_DE
	.word	RCAR_DMACHCLR
	.word	.LC0
	.word	IRQ_HANDLED
	.size	rcar_dmac_isr_channel, .-rcar_dmac_isr_channel
	.comm	RCAR_DMACHCR_TE,4,4
	.comm	RCAR_DMACHCR_DSE,4,4
	.comm	RCAR_DMACHCR_DE,4,4
	.comm	RCAR_DMACHCR_CAE,4,4
	.comm	RCAR_DMACHCR,4,4
	.comm	RCAR_DMACHCLR,4,4
	.comm	IRQ_NONE,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
