	.file	"extr_omap-dma.c_omap_dma_start_sg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	omap_dma_start_sg, @function
omap_dma_start_sg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movsx	rax, DWORD PTR [rdi]
	mov	rbx, rdi
	lea	rdx, [rax+rax*4]
	mov	rax, QWORD PTR 8[rsi]
	lea	r12, [rax+rdx*4]
	mov	rax, QWORD PTR [rsi]
	cmp	rax, QWORD PTR DMA_DEV_TO_MEM[rip]
	je	.L2
	cmp	rax, QWORD PTR DMA_MEM_TO_MEM[rip]
	je	.L2
	mov	esi, DWORD PTR CSSA[rip]
	mov	r14d, DWORD PTR CSEI[rip]
	mov	r13d, DWORD PTR CSFI[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR CDSA[rip]
	mov	r14d, DWORD PTR CDEI[rip]
	mov	r13d, DWORD PTR CDFI[rip]
.L4:
	mov	edx, DWORD PTR 16[r12]
	mov	rdi, rbx
	call	omap_dma_chan_write@PLT
	mov	edx, DWORD PTR 12[r12]
	mov	esi, r14d
	mov	rdi, rbx
	call	omap_dma_chan_write@PLT
	mov	edx, DWORD PTR 8[r12]
	mov	esi, r13d
	mov	rdi, rbx
	call	omap_dma_chan_write@PLT
	mov	edx, DWORD PTR 4[r12]
	mov	esi, DWORD PTR CEN[rip]
	mov	rdi, rbx
	call	omap_dma_chan_write@PLT
	mov	edx, DWORD PTR [r12]
	mov	esi, DWORD PTR CFN[rip]
	mov	rdi, rbx
	call	omap_dma_chan_write@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	call	omap_dma_start@PLT
	add	DWORD PTR [rbx], 1
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	omap_dma_start_sg, .-omap_dma_start_sg
	.comm	DMA_MEM_TO_MEM,8,8
	.comm	DMA_DEV_TO_MEM,8,8
	.comm	CSSA,4,4
	.comm	CSFI,4,4
	.comm	CSEI,4,4
	.comm	CFN,4,4
	.comm	CEN,4,4
	.comm	CDSA,4,4
	.comm	CDFI,4,4
	.comm	CDEI,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_omap-dma.c_omap_dma_start_sg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap_dma_start_sg, %function
omap_dma_start_sg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L7
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r1]
	ldr	r5, [r0]
	ldr	r2, [r2]
	ldr	r7, [r1, #4]
	add	r5, r5, r5, lsl #2
	cmp	r3, r2
	lsl	r8, r5, #2
	mov	r4, r0
	mov	r6, r1
	add	r5, r7, r5, lsl #2
	beq	.L2
	ldr	r2, .L7+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L2
	ldr	r1, .L7+8
	ldr	r2, .L7+12
	ldr	r3, .L7+16
	ldr	r1, [r1]
	ldr	r10, [r2]
	ldr	r9, [r3]
	b	.L4
.L2:
	ldr	r1, .L7+20
	ldr	r2, .L7+24
	ldr	r3, .L7+28
	ldr	r1, [r1]
	ldr	r10, [r2]
	ldr	r9, [r3]
.L4:
	ldr	r2, [r5, #16]
	mov	r0, r4
	bl	omap_dma_chan_write
	mov	r1, r10
	ldr	r2, [r5, #12]
	mov	r0, r4
	bl	omap_dma_chan_write
	mov	r1, r9
	ldr	r2, [r5, #8]
	mov	r0, r4
	bl	omap_dma_chan_write
	ldr	r3, .L7+32
	ldr	r2, [r5, #4]
	ldr	r1, [r3]
	mov	r0, r4
	bl	omap_dma_chan_write
	ldr	r3, .L7+36
	ldr	r2, [r7, r8]
	ldr	r1, [r3]
	mov	r0, r4
	bl	omap_dma_chan_write
	mov	r1, r6
	mov	r0, r4
	bl	omap_dma_start
	ldr	r3, [r4]
	add	r3, r3, #1
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	.align	2
.L7:
	.word	DMA_DEV_TO_MEM
	.word	DMA_MEM_TO_MEM
	.word	CSSA
	.word	CSEI
	.word	CSFI
	.word	CDSA
	.word	CDEI
	.word	CDFI
	.word	CEN
	.word	CFN
	.size	omap_dma_start_sg, .-omap_dma_start_sg
	.comm	DMA_MEM_TO_MEM,4,4
	.comm	DMA_DEV_TO_MEM,4,4
	.comm	CSSA,4,4
	.comm	CSFI,4,4
	.comm	CSEI,4,4
	.comm	CFN,4,4
	.comm	CEN,4,4
	.comm	CDSA,4,4
	.comm	CDFI,4,4
	.comm	CDEI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
