	.file	"extr_ti_am335x_adc.c_tiadc_start_dma.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tiadc_start_dma, @function
tiadc_start_dma:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	iio_priv@PLT
	mov	rbp, rax
	mov	QWORD PTR 32[rax], 0
	mov	eax, DWORD PTR FIFO1_THRESHOLD[rip]
	mov	esi, DWORD PTR 0[rbp]
	lea	edi, 1[rax]
	call	rounddown@PLT
	sub	rax, 1
	lea	esi, 4[0+rax*4]
	mov	DWORD PTR 8[rbp], eax
	mov	eax, DWORD PTR DMA_BUFFER_SIZE[rip]
	mov	edi, eax
	shr	edi, 31
	add	edi, eax
	sar	edi
	call	rounddown@PLT
	mov	edi, DWORD PTR 16[rbp]
	lea	rsi, 28[rbp]
	mov	DWORD PTR 12[rbp], eax
	mov	eax, DWORD PTR 8[rbp]
	add	eax, 1
	mov	DWORD PTR 28[rbp], eax
	call	dmaengine_slave_config@PLT
	mov	ecx, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR 24[rbp]
	mov	edi, DWORD PTR 16[rbp]
	mov	r9d, DWORD PTR DMA_PREP_INTERRUPT[rip]
	mov	r8d, DWORD PTR DMA_DEV_TO_MEM[rip]
	lea	edx, [rcx+rcx]
	call	dmaengine_prep_dma_cyclic@PLT
	test	rax, rax
	je	.L6
	mov	rdi, rax
	mov	eax, DWORD PTR tiadc_dma_rx_complete[rip]
	mov	QWORD PTR [rdi], rbx
	mov	DWORD PTR 8[rdi], eax
	call	dmaengine_submit@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	DWORD PTR 20[rbp], eax
	call	dma_async_issue_pending@PLT
	mov	edx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR REG_FIFO1THR[rip]
	mov	rdi, rbp
	call	tiadc_writel@PLT
	mov	edx, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR REG_DMA1REQ[rip]
	mov	rdi, rbp
	call	tiadc_writel@PLT
	mov	edx, DWORD PTR DMA_FIFO1[rip]
	mov	esi, DWORD PTR REG_DMAENABLE_SET[rip]
	mov	rdi, rbp
	call	tiadc_writel@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	eax, DWORD PTR EBUSY[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	tiadc_start_dma, .-tiadc_start_dma
	.comm	tiadc_dma_rx_complete,4,4
	.comm	REG_FIFO1THR,4,4
	.comm	REG_DMAENABLE_SET,4,4
	.comm	REG_DMA1REQ,4,4
	.comm	FIFO1_THRESHOLD,4,4
	.comm	EBUSY,4,4
	.comm	DMA_PREP_INTERRUPT,4,4
	.comm	DMA_FIFO1,4,4
	.comm	DMA_DEV_TO_MEM,4,4
	.comm	DMA_BUFFER_SIZE,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_ti_am335x_adc.c_tiadc_start_dma.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tiadc_start_dma, %function
tiadc_start_dma:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r6, r0
	bl	iio_priv
	mov	r5, #0
	mov	r4, r0
	ldr	r3, .L7
	str	r5, [r0, #28]
	ldr	r0, [r3]
	ldr	r1, [r4]
	add	r0, r0, #1
	bl	rounddown
	ldr	r3, .L7+4
	sub	r2, r0, #1
	ldr	r3, [r3]
	str	r2, [r4, #4]
	add	r3, r3, r3, lsr #31
	lsl	r1, r0, #2
	asr	r0, r3, #1
	bl	rounddown
	mov	r1, r4
	ldr	r3, [r4, #4]
	str	r0, [r4, #8]
	add	r3, r3, #1
	str	r3, [r1, #24]!
	ldr	r0, [r4, #12]
	bl	dmaengine_slave_config
	ldr	ip, .L7+8
	ldr	r2, .L7+12
	ldr	r3, [r4, #8]
	ldr	lr, [ip]
	ldr	ip, [r2]
	ldr	r1, [r4, #20]
	ldr	r0, [r4, #12]
	lsl	r2, r3, #1
	stm	sp, {ip, lr}
	bl	dmaengine_prep_dma_cyclic
	subs	r3, r0, #0
	beq	.L6
	ldr	r2, .L7+16
	ldr	r2, [r2]
	str	r6, [r3]
	str	r2, [r3, #4]
	bl	dmaengine_submit
	mov	r3, r0
	ldr	r0, [r4, #12]
	str	r3, [r4, #16]
	bl	dma_async_issue_pending
	ldr	r3, .L7+20
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	mov	r0, r4
	bl	tiadc_writel
	ldr	r3, .L7+24
	ldr	r2, [r4, #4]
	ldr	r1, [r3]
	mov	r0, r4
	bl	tiadc_writel
	ldr	r3, .L7+28
	ldr	r2, .L7+32
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	tiadc_writel
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L7+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	FIFO1_THRESHOLD
	.word	DMA_BUFFER_SIZE
	.word	DMA_PREP_INTERRUPT
	.word	DMA_DEV_TO_MEM
	.word	tiadc_dma_rx_complete
	.word	REG_FIFO1THR
	.word	REG_DMA1REQ
	.word	REG_DMAENABLE_SET
	.word	DMA_FIFO1
	.word	EBUSY
	.size	tiadc_start_dma, .-tiadc_start_dma
	.comm	tiadc_dma_rx_complete,4,4
	.comm	REG_FIFO1THR,4,4
	.comm	REG_DMAENABLE_SET,4,4
	.comm	REG_DMA1REQ,4,4
	.comm	FIFO1_THRESHOLD,4,4
	.comm	EBUSY,4,4
	.comm	DMA_PREP_INTERRUPT,4,4
	.comm	DMA_FIFO1,4,4
	.comm	DMA_DEV_TO_MEM,4,4
	.comm	DMA_BUFFER_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
