	.file	"extr_spi-imx.c_spi_imx_dma_configure.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TX dma configuration failed with %d\n"
	.align 8
.LC1:
	.string	"RX dma configuration failed with %d\n"
	.text
	.p2align 4
	.type	spi_imx_dma_configure, @function
spi_imx_dma_configure:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	xmm0, xmm0
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 104
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR [rsp], xmm0
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR 80[rsp], 0
	movaps	XMMWORD PTR 16[rsp], xmm0
	movaps	XMMWORD PTR 48[rsp], xmm0
	movaps	XMMWORD PTR 64[rsp], xmm0
	call	spi_master_get_devdata@PLT
	mov	edi, DWORD PTR 16[rax]
	mov	rbx, rax
	call	spi_imx_bytes_per_word@PLT
	cmp	eax, 2
	je	.L2
	cmp	eax, 4
	je	.L3
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	cmp	eax, 1
	je	.L16
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r13d, DWORD PTR DMA_SLAVE_BUSWIDTH_2_BYTES[rip]
.L6:
	mov	eax, DWORD PTR DMA_MEM_TO_DEV[rip]
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, 48[rsp]
	mov	DWORD PTR 48[rsp], r13d
	mov	DWORD PTR 72[rsp], eax
	mov	rax, QWORD PTR MXC_CSPITXDATA[rip]
	add	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 80[rsp], rax
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 76[rsp], eax
	call	dmaengine_slave_config@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR DMA_DEV_TO_MEM[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, rsp
	mov	DWORD PTR 4[rsp], r13d
	mov	DWORD PTR 24[rsp], eax
	mov	rax, QWORD PTR MXC_CSPIRXDATA[rip]
	add	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 8[rsp], eax
	call	dmaengine_slave_config@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r13d, DWORD PTR DMA_SLAVE_BUSWIDTH_1_BYTE[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r13d, DWORD PTR DMA_SLAVE_BUSWIDTH_4_BYTES[rip]
	jmp	.L6
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	spi_imx_dma_configure, .-spi_imx_dma_configure
	.comm	MXC_CSPITXDATA,8,8
	.comm	MXC_CSPIRXDATA,8,8
	.comm	EINVAL,4,4
	.comm	DMA_SLAVE_BUSWIDTH_4_BYTES,4,4
	.comm	DMA_SLAVE_BUSWIDTH_2_BYTES,4,4
	.comm	DMA_SLAVE_BUSWIDTH_1_BYTE,4,4
	.comm	DMA_MEM_TO_DEV,4,4
	.comm	DMA_DEV_TO_MEM,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_spi-imx.c_spi_imx_dma_configure.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TX dma configuration failed with %d\012\000"
	.align	2
.LC1:
	.ascii	"RX dma configuration failed with %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spi_imx_dma_configure, %function
spi_imx_dma_configure:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L19
	sub	sp, sp, #68
	ldr	r2, [r2]
	str	r2, [sp, #60]
	mov	r2,#0
	mov	r6, r0
	str	r3, [sp, #4]
	str	r3, [sp, #32]
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	str	r3, [sp, #36]
	str	r3, [sp, #40]
	str	r3, [sp, #44]
	str	r3, [sp, #48]
	str	r3, [sp, #52]
	str	r3, [sp, #56]
	bl	spi_master_get_devdata
	mov	r5, r0
	ldr	r0, [r0, #12]
	bl	spi_imx_bytes_per_word
	cmp	r0, #2
	beq	.L2
	cmp	r0, #4
	beq	.L3
	cmp	r0, #1
	beq	.L16
	ldr	r3, .L19+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L19+8
	ldr	r7, [r3]
.L6:
	ldr	r3, .L19+12
	ldr	r1, .L19+16
	ldr	r2, [r3]
	ldr	r3, [r5, #8]
	ldr	ip, [r1]
	add	r3, r3, r2
	ldr	r2, [r5, #4]
	ldr	r0, [r6, #4]
	add	r1, sp, #32
	str	r7, [sp, #32]
	str	r3, [sp, #56]
	str	ip, [sp, #48]
	str	r2, [sp, #52]
	bl	dmaengine_slave_config
	subs	r4, r0, #0
	bne	.L18
	ldr	r3, .L19+20
	ldr	r2, .L19+24
	ldr	ip, [r3]
	ldr	r2, [r2]
	ldr	r3, [r5, #8]
	ldr	r0, [r6]
	add	r3, r3, r2
	ldr	r2, [r5, #4]
	add	r1, sp, #4
	str	r7, [sp, #8]
	str	r3, [sp, #16]
	str	ip, [sp, #20]
	str	r2, [sp, #12]
	bl	dmaengine_slave_config
	subs	r4, r0, #0
	beq	.L1
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L19+28
	bl	dev_err
	b	.L1
.L18:
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L19+32
	bl	dev_err
	b	.L1
.L16:
	ldr	r3, .L19+36
	ldr	r7, [r3]
	b	.L6
.L3:
	ldr	r3, .L19+40
	ldr	r7, [r3]
	b	.L6
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	EINVAL
	.word	DMA_SLAVE_BUSWIDTH_2_BYTES
	.word	MXC_CSPITXDATA
	.word	DMA_MEM_TO_DEV
	.word	DMA_DEV_TO_MEM
	.word	MXC_CSPIRXDATA
	.word	.LC1
	.word	.LC0
	.word	DMA_SLAVE_BUSWIDTH_1_BYTE
	.word	DMA_SLAVE_BUSWIDTH_4_BYTES
	.size	spi_imx_dma_configure, .-spi_imx_dma_configure
	.comm	MXC_CSPITXDATA,4,4
	.comm	MXC_CSPIRXDATA,4,4
	.comm	EINVAL,4,4
	.comm	DMA_SLAVE_BUSWIDTH_4_BYTES,4,4
	.comm	DMA_SLAVE_BUSWIDTH_2_BYTES,4,4
	.comm	DMA_SLAVE_BUSWIDTH_1_BYTE,4,4
	.comm	DMA_MEM_TO_DEV,4,4
	.comm	DMA_DEV_TO_MEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
