	.file	"extr_spi-omap-100k.c_spi100k_write_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	spi100k_write_data, @function
spi100k_write_data:
.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
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	spi_master_get_devdata@PLT
	mov	rbx, rax
	cmp	r13d, 8
	jg	.L2
	sal	r12d, 8
	mov	r13d, 16
.L2:
	mov	rdi, rbp
	call	spi100k_enable_clock@PLT
	mov	edi, r12d
	mov	rsi, QWORD PTR SPI_TX_MSB[rip]
	add	rsi, QWORD PTR [rbx]
	call	writew@PLT
	xor	edi, edi
	mov	r14, QWORD PTR SPI_CTRL[rip]
	add	r14, QWORD PTR [rbx]
	call	SPI_CTRL_SEN@PLT
	mov	edi, r13d
	mov	r12d, eax
	call	SPI_CTRL_WORD_SIZE@PLT
	mov	edi, r12d
	mov	rsi, r14
	or	edi, eax
	or	edi, DWORD PTR SPI_CTRL_WR[rip]
	call	writew@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR SPI_STATUS[rip]
	add	rdi, QWORD PTR [rbx]
	call	readw@PLT
	mov	edx, DWORD PTR SPI_STATUS_WE[rip]
	and	eax, edx
	cmp	edx, eax
	jne	.L3
	mov	edi, 1000
	call	udelay@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	spi100k_disable_clock@PLT
	.cfi_endproc
.LFE0:
	.size	spi100k_write_data, .-spi100k_write_data
	.comm	SPI_TX_MSB,8,8
	.comm	SPI_STATUS_WE,4,4
	.comm	SPI_STATUS,8,8
	.comm	SPI_CTRL_WR,4,4
	.comm	SPI_CTRL,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_spi-omap-100k.c_spi100k_write_data.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spi100k_write_data, %function
spi100k_write_data:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r6, r1
	mov	r7, r0
	bl	spi_master_get_devdata
	mov	r4, r0
	cmp	r6, #8
	mov	r0, r7
	movle	r6, #16
	lslle	r5, r5, #8
	bl	spi100k_enable_clock
	ldr	r3, .L7
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r5
	add	r1, r1, r3
	bl	writew
	mov	r0, #0
	bl	SPI_CTRL_SEN
	mov	r5, r0
	mov	r0, r6
	bl	SPI_CTRL_WORD_SIZE
	ldr	r2, .L7+4
	ldr	r3, .L7+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r4]
	orr	r0, r5, r0
	orr	r0, r0, r2
	add	r1, r1, r3
	bl	writew
	ldr	r6, .L7+12
	ldr	r5, .L7+16
.L3:
	ldr	r3, [r6]
	ldr	r0, [r4]
	add	r0, r0, r3
	bl	readw
	ldr	r3, [r5]
	bics	r3, r3, r0
	bne	.L3
	mov	r0, #1000
	bl	udelay
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	spi100k_disable_clock
.L8:
	.align	2
.L7:
	.word	SPI_TX_MSB
	.word	SPI_CTRL_WR
	.word	SPI_CTRL
	.word	SPI_STATUS
	.word	SPI_STATUS_WE
	.size	spi100k_write_data, .-spi100k_write_data
	.comm	SPI_TX_MSB,4,4
	.comm	SPI_STATUS_WE,4,4
	.comm	SPI_STATUS,4,4
	.comm	SPI_CTRL_WR,4,4
	.comm	SPI_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
