	.file	"extr_driversspi.h_spi_tx_dma.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	spi_tx_dma
	.type	spi_tx_dma, @function
spi_tx_dma:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rax, QWORD PTR SPI1[rip]
	mov	edx, DWORD PTR SPI_CR2_TXDMAEN[rip]
	not	edx
	and	DWORD PTR [rax], edx
	mov	rdx, QWORD PTR DMA2_Stream3[rip]
	add	rax, 4
	mov	QWORD PTR 8[rdx], rax
	mov	eax, DWORD PTR DMA_SxCR_EN[rip]
	or	eax, DWORD PTR DMA_SxCR_CHSEL_1[rip]
	or	eax, DWORD PTR DMA_SxCR_CHSEL_0[rip]
	mov	QWORD PTR 16[rdx], rdi
	xor	edi, edi
	or	eax, DWORD PTR DMA_SxCR_MINC[rip]
	or	eax, DWORD PTR DMA_SxCR_DIR_0[rip]
	mov	DWORD PTR 4[rdx], esi
	mov	DWORD PTR [rdx], eax
	call	delay@PLT
	mov	rax, QWORD PTR DMA2_Stream3[rip]
	mov	edx, DWORD PTR DMA_SxCR_TCIE[rip]
	xor	esi, esi
	mov	edi, DWORD PTR GPIOB[rip]
	or	DWORD PTR [rax], edx
	mov	rax, QWORD PTR SPI1[rip]
	mov	edx, DWORD PTR SPI_CR2_TXDMAEN[rip]
	or	DWORD PTR [rax], edx
	xor	edx, edx
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	set_gpio_output@PLT
	.cfi_endproc
.LFE0:
	.size	spi_tx_dma, .-spi_tx_dma
	.comm	SPI_CR2_TXDMAEN,4,4
	.comm	SPI1,8,8
	.comm	GPIOB,4,4
	.comm	DMA_SxCR_TCIE,4,4
	.comm	DMA_SxCR_MINC,4,4
	.comm	DMA_SxCR_EN,4,4
	.comm	DMA_SxCR_DIR_0,4,4
	.comm	DMA_SxCR_CHSEL_1,4,4
	.comm	DMA_SxCR_CHSEL_0,4,4
	.comm	DMA2_Stream3,8,8
	.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_driversspi.h_spi_tx_dma.c"
	.text
	.align	2
	.global	spi_tx_dma
	.syntax unified
	.arm
	.fpu softvfp
	.type	spi_tx_dma, %function
spi_tx_dma:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L4
	ldr	lr, .L4+4
	ldr	r2, [r4]
	ldr	r3, .L4+8
	mov	ip, r2
	ldr	r7, [lr]
	ldr	lr, .L4+12
	ldr	r3, [r3]
	ldr	lr, [lr]
	ldr	r5, .L4+16
	orr	r3, r3, r7
	orr	r3, r3, lr
	ldr	lr, .L4+20
	ldr	r6, [r5]
	ldr	r2, [r2]
	ldr	r7, [lr]
	ldr	lr, .L4+24
	bic	r2, r2, r6
	ldr	r6, .L4+28
	ldr	lr, [lr]
	orr	r3, r3, r7
	str	r2, [ip], #4
	ldr	r2, [r6]
	orr	r3, r3, lr
	stmib	r2, {r1, ip}
	str	r0, [r2, #12]
	str	r3, [r2]
	mov	r0, #0
	bl	delay
	mov	r2, #0
	ldr	r0, [r4]
	ldr	ip, [r6]
	ldr	lr, .L4+32
	ldr	r5, [r5]
	ldr	r4, [lr]
	ldr	r3, [r0]
	ldr	r1, [ip]
	ldr	lr, .L4+36
	orr	r1, r1, r4
	orr	r3, r3, r5
	str	r1, [ip]
	str	r3, [r0]
	mov	r1, r2
	ldr	r0, [lr]
	pop	{r4, r5, r6, r7, r8, lr}
	b	set_gpio_output
.L5:
	.align	2
.L4:
	.word	SPI1
	.word	DMA_SxCR_CHSEL_1
	.word	DMA_SxCR_EN
	.word	DMA_SxCR_CHSEL_0
	.word	SPI_CR2_TXDMAEN
	.word	DMA_SxCR_MINC
	.word	DMA_SxCR_DIR_0
	.word	DMA2_Stream3
	.word	DMA_SxCR_TCIE
	.word	GPIOB
	.size	spi_tx_dma, .-spi_tx_dma
	.comm	SPI_CR2_TXDMAEN,4,4
	.comm	SPI1,4,4
	.comm	GPIOB,4,4
	.comm	DMA_SxCR_TCIE,4,4
	.comm	DMA_SxCR_MINC,4,4
	.comm	DMA_SxCR_EN,4,4
	.comm	DMA_SxCR_DIR_0,4,4
	.comm	DMA_SxCR_CHSEL_1,4,4
	.comm	DMA_SxCR_CHSEL_0,4,4
	.comm	DMA2_Stream3,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
