	.file	"extr_spi-meson-spifc.c_meson_spifc_txrx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	meson_spifc_txrx, @function
meson_spifc_txrx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r9d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movsx	r13, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rsi, QWORD PTR 16[rsi]
	test	rsi, rsi
	jne	.L17
.L2:
	mov	ecx, DWORD PTR USER_UC_DOUT_SEL[rip]
	mov	edx, DWORD PTR USER_UC_MASK[rip]
	mov	esi, DWORD PTR REG_USER[rip]
	mov	edi, DWORD PTR 0[rbp]
	call	regmap_update_bits@PLT
	mov	ecx, DWORD PTR USER1_BN_UC_DOUT_SHIFT[rip]
	mov	edi, DWORD PTR 0[rbp]
	lea	edx, -1[0+r12*8]
	mov	esi, DWORD PTR REG_USER1[rip]
	sal	edx, cl
	call	regmap_write@PLT
	mov	edx, DWORD PTR USER_DIN_EN_MS[rip]
	mov	esi, DWORD PTR REG_USER[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	ecx, edx
	call	regmap_update_bits@PLT
	mov	ecx, DWORD PTR USER4_CS_ACT[rip]
	test	r14d, r14d
	je	.L4
	mov	eax, DWORD PTR [rbx]
	test	r15d, r15d
	je	.L18
	mov	ecx, DWORD PTR USER4_CS_ACT[rip]
	test	eax, eax
	je	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, ecx
.L6:
	mov	esi, DWORD PTR REG_USER4[rip]
	mov	edi, DWORD PTR 0[rbp]
	call	regmap_update_bits@PLT
	mov	edx, DWORD PTR SLAVE_TRST_DONE[rip]
	mov	edi, DWORD PTR 0[rbp]
	xor	ecx, ecx
	mov	esi, DWORD PTR REG_SLAVE[rip]
	call	regmap_update_bits@PLT
	mov	edx, DWORD PTR CMD_USER[rip]
	mov	esi, DWORD PTR REG_CMD[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	ecx, edx
	call	regmap_update_bits@PLT
	mov	rdi, rbp
	call	meson_spifc_wait_ready@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L1
	mov	rsi, QWORD PTR 8[rbx]
	test	rsi, rsi
	jne	.L19
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, ecx
	xor	ecx, ecx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	test	eax, eax
	mov	ecx, DWORD PTR USER4_CS_ACT[rip]
	sete	al
	movzx	eax, al
	test	eax, eax
	je	.L8
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	movsx	rax, r13d
	mov	edx, ecx
	add	rsi, rax
	call	meson_spifc_fill_buffer@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	add	rsi, r13
	mov	edx, r12d
	mov	rdi, rbp
	call	meson_spifc_drain_buffer@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	meson_spifc_txrx, .-meson_spifc_txrx
	.comm	USER_UC_MASK,4,4
	.comm	USER_UC_DOUT_SEL,4,4
	.comm	USER_DIN_EN_MS,4,4
	.comm	USER4_CS_ACT,4,4
	.comm	USER1_BN_UC_DOUT_SHIFT,4,4
	.comm	SLAVE_TRST_DONE,4,4
	.comm	REG_USER4,4,4
	.comm	REG_USER1,4,4
	.comm	REG_USER,4,4
	.comm	REG_SLAVE,4,4
	.comm	REG_CMD,4,4
	.comm	CMD_USER,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-meson-spifc.c_meson_spifc_txrx.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	meson_spifc_txrx, %function
meson_spifc_txrx:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	ldr	r1, [r1, #8]
	mov	r7, r2
	cmp	r1, #0
	mov	r6, r3
	mov	r4, r0
	ldr	r9, [sp, #36]
	bne	.L17
.L2:
	ldr	r8, .L19
	ldr	r3, .L19+4
	ldr	r2, .L19+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r8]
	ldr	r0, [r4]
	bl	regmap_update_bits
	ldr	r3, .L19+12
	lsl	r0, r6, #3
	ldr	r2, [r3]
	ldr	r3, .L19+16
	sub	r0, r0, #1
	ldr	r1, [r3]
	lsl	r2, r0, r2
	ldr	r0, [r4]
	bl	regmap_write
	ldr	r3, .L19+20
	ldr	r1, [r8]
	ldr	r3, [r3]
	ldr	r0, [r4]
	mov	r2, r3
	bl	regmap_update_bits
	cmp	r9, #0
	bne	.L3
	ldr	r3, .L19+24
	ldr	r2, .L19+28
	ldr	r3, [r3]
	ldr	r1, [r2]
	mov	r2, r3
	ldr	r0, [r4]
.L4:
	bl	regmap_update_bits
	ldr	r3, .L19+32
	ldr	r2, .L19+36
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #0
	ldr	r0, [r4]
	bl	regmap_update_bits
	ldr	r3, .L19+40
	ldr	r2, .L19+44
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r0, [r4]
	mov	r2, r3
	bl	regmap_update_bits
	mov	r0, r4
	bl	meson_spifc_wait_ready
	subs	r8, r0, #0
	bne	.L1
	ldr	r1, [r5, #4]
	cmp	r1, #0
	bne	.L18
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	ldr	r3, [sp, #32]
	ldr	r2, .L19+24
	cmp	r3, #0
	ldr	r3, [r5]
	ldr	r2, [r2]
	clzeq	r3, r3
	ldr	r1, .L19+28
	lsreq	r3, r3, #5
	cmp	r3, #0
	movne	r3, r2
	ldr	r1, [r1]
	ldr	r0, [r4]
	b	.L4
.L17:
	add	r1, r1, r2
	mov	r2, r3
	bl	meson_spifc_fill_buffer
	b	.L2
.L18:
	mov	r2, r6
	mov	r0, r4
	add	r1, r1, r7
	bl	meson_spifc_drain_buffer
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	.align	2
.L19:
	.word	REG_USER
	.word	USER_UC_DOUT_SEL
	.word	USER_UC_MASK
	.word	USER1_BN_UC_DOUT_SHIFT
	.word	REG_USER1
	.word	USER_DIN_EN_MS
	.word	USER4_CS_ACT
	.word	REG_USER4
	.word	REG_SLAVE
	.word	SLAVE_TRST_DONE
	.word	CMD_USER
	.word	REG_CMD
	.size	meson_spifc_txrx, .-meson_spifc_txrx
	.comm	USER_UC_MASK,4,4
	.comm	USER_UC_DOUT_SEL,4,4
	.comm	USER_DIN_EN_MS,4,4
	.comm	USER4_CS_ACT,4,4
	.comm	USER1_BN_UC_DOUT_SHIFT,4,4
	.comm	SLAVE_TRST_DONE,4,4
	.comm	REG_USER4,4,4
	.comm	REG_USER1,4,4
	.comm	REG_USER,4,4
	.comm	REG_SLAVE,4,4
	.comm	REG_CMD,4,4
	.comm	CMD_USER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
