	.file	"extr_spi-rb4xx.c_rb4xx_spi_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"mode %x not supported\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"bits_per_word %u not supported\n"
	.text
	.p2align 4
	.type	rb4xx_spi_setup, @function
rb4xx_spi_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	spi_master_get_devdata@PLT
	mov	edx, DWORD PTR [rbx]
	mov	rbp, rax
	mov	eax, DWORD PTR SPI_CS_HIGH[rip]
	or	eax, DWORD PTR SPI_TX_DUAL[rip]
	not	eax
	test	eax, edx
	jne	.L9
	mov	edx, DWORD PTR 4[rbx]
	mov	r12d, edx
	and	r12d, -9
	jne	.L10
	mov	rsi, QWORD PTR [rsp]
	lea	r13, 4[rbp]
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR 8[rbx]
	cmp	DWORD PTR 0[rbp], eax
	je	.L11
.L5:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rdi, 12[rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, 12[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	jne	.L5
	mov	DWORD PTR 0[rbp], -1
	mov	rsi, rsp
	mov	rdi, rbp
	call	rb4xx_spi_process_queue_locked@PLT
	jmp	.L5
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rb4xx_spi_setup, .-rb4xx_spi_setup
	.comm	SPI_TX_DUAL,4,4
	.comm	SPI_CS_HIGH,4,4
	.comm	EINVAL,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_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mode %x not supported\012\000"
	.align	2
.LC1:
	.ascii	"bits_per_word %u not supported\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rb4xx_spi_setup, %function
rb4xx_spi_setup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r3, .L13
	sub	sp, sp, #12
	ldr	r0, [r0, #16]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	spi_master_get_devdata
	ldr	r2, .L13+4
	ldr	r3, .L13+8
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4]
	orr	r3, r3, r1
	bics	r3, r2, r3
	bne	.L9
	ldr	r2, [r4, #4]
	bics	r6, r2, #8
	bne	.L10
	mov	r5, r0
	add	r7, r0, #4
	mov	r0, r7
	ldr	r1, [sp]
	bl	spin_lock_irqsave
	ldr	r3, [r4, #8]
	ldr	r2, [r5]
	cmp	r2, r3
	beq	.L11
.L5:
	mov	r0, r7
	ldr	r1, [sp]
	bl	spin_unlock_irqrestore
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	ldr	r1, .L13+12
	add	r0, r4, #12
	bl	dev_err
	ldr	r3, .L13+16
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L9:
	ldr	r1, .L13+20
	add	r0, r4, #12
	bl	dev_err
	ldr	r3, .L13+16
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L11:
	ldr	r3, [r5, #8]
	cmp	r3, #0
	bne	.L5
	mvn	r3, #0
	mov	r0, r5
	mov	r1, sp
	str	r3, [r5]
	bl	rb4xx_spi_process_queue_locked
	b	.L5
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	SPI_TX_DUAL
	.word	SPI_CS_HIGH
	.word	.LC1
	.word	EINVAL
	.word	.LC0
	.size	rb4xx_spi_setup, .-rb4xx_spi_setup
	.comm	SPI_TX_DUAL,4,4
	.comm	SPI_CS_HIGH,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
