	.file	"extr_spi-rb4xx.c_rb4xx_spi_transfer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rb4xx_spi_transfer, @function
rb4xx_spi_transfer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	spi_master_get_devdata@PLT
	mov	QWORD PTR 16[rbx], 0
	mov	rsi, QWORD PTR [rsp]
	mov	rbp, rax
	mov	eax, DWORD PTR EINPROGRESS[rip]
	lea	r12, 8[rbp]
	neg	eax
	mov	rdi, r12
	mov	DWORD PTR 12[rbx], eax
	call	spin_lock_irqsave@PLT
	lea	rsi, 24[rbp]
	lea	rdi, 8[rbx]
	call	list_add_tail@PLT
	cmp	QWORD PTR 16[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR 0[rbp]
	test	rax, rax
	js	.L3
	mov	rdx, QWORD PTR [rbx]
	cmp	rax, QWORD PTR [rdx]
	je	.L3
.L7:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r12
	call	spin_unlock_irqrestore@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.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
.L3:
	.cfi_restore_state
	mov	rsi, rsp
	mov	rdi, rbp
	call	rb4xx_spi_process_queue_locked@PLT
	jmp	.L7
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rb4xx_spi_transfer, .-rb4xx_spi_transfer
	.comm	EINPROGRESS,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-rb4xx.c_rb4xx_spi_transfer.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rb4xx_spi_transfer, %function
rb4xx_spi_transfer:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L10
	sub	sp, sp, #8
	ldr	r0, [r0]
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	spi_master_get_devdata
	mov	r2, #0
	mov	r4, r0
	ldr	r3, .L10+4
	add	r6, r0, #4
	ldr	r3, [r3]
	ldr	r1, [sp]
	rsb	r3, r3, #0
	str	r3, [r5, #8]
	str	r2, [r5, #12]
	mov	r0, r6
	bl	spin_lock_irqsave
	add	r1, r4, #12
	add	r0, r5, #4
	bl	list_add_tail
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [r4]
	cmp	r3, #0
	blt	.L3
	ldr	r2, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
.L7:
	mov	r0, r6
	ldr	r1, [sp]
	bl	spin_unlock_irqrestore
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, r4
	mov	r1, sp
	bl	rb4xx_spi_process_queue_locked
	b	.L7
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	EINPROGRESS
	.size	rb4xx_spi_transfer, .-rb4xx_spi_transfer
	.comm	EINPROGRESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
