	.file	"extr_spi-lantiq-ssc.c_transfer_start.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	transfer_start, @function
transfer_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 8[rdi]
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	call	spin_lock_irqsave@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR 16[rbx]
	mov	QWORD PTR 16[rbp], rdx
	mov	QWORD PTR 24[rbp], rax
	test	rdx, rdx
	jne	.L11
.L2:
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR [rbx]
	cmp	QWORD PTR 16[rbp], 0
	mov	DWORD PTR 4[rbp], eax
	je	.L12
.L4:
	mov	rdi, r12
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	mov	rdi, rbp
	mov	DWORD PTR 0[rbp], eax
	call	tx_fifo_write@PLT
	mov	rax, QWORD PTR 24[rbp]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rbp
	call	rx_request@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	transfer_start, .-transfer_start
	.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-lantiq-ssc.c_transfer_start.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	transfer_start, %function
transfer_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r2
	mov	r4, r0
	add	r6, r0, #8
	mov	r0, r6
	mov	r1, #0
	bl	spin_lock_irqsave
	ldmib	r5, {r2, r3}
	cmp	r2, #0
	str	r2, [r4, #12]
	str	r3, [r4, #16]
	bne	.L11
.L2:
	cmp	r3, #0
	beq	.L4
	ldr	r2, [r4, #12]
	ldr	r3, [r5]
	cmp	r2, #0
	str	r3, [r4, #4]
	beq	.L12
.L4:
	mov	r0, r6
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r0, [r5]
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, [r5]
	mov	r0, r4
	str	r3, [r4]
	bl	tx_fifo_write
	ldr	r3, [r4, #16]
	b	.L2
.L12:
	mov	r0, r4
	bl	rx_request
	b	.L4
	.size	transfer_start, .-transfer_start
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
