	.file	"extr_spi-meson-spicc.c_meson_spicc_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to request cs gpio\n"
	.text
	.p2align 4
	.type	meson_spicc_setup, @function
meson_spicc_setup:
.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
	cmp	QWORD PTR 16[rdi], 0
	mov	rbx, rdi
	jne	.L2
	mov	edi, DWORD PTR 12[rdi]
	call	spi_master_get_devdata@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	QWORD PTR 16[rbx], rax
.L3:
	call	gpio_is_valid@PLT
	test	rax, rax
	jne	.L15
.L4:
	mov	eax, DWORD PTR [rbx]
	xor	esi, esi
	mov	edi, DWORD PTR 4[rbx]
	test	DWORD PTR SPI_CS_HIGH[rip], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	sete	sil
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	gpio_direction_output@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rdi]
	call	gpio_is_valid@PLT
	test	rax, rax
	jne	.L4
	mov	edi, DWORD PTR 4[rbx]
	mov	eax, edi
	add	eax, DWORD PTR ENOENT[rip]
	jne	.L3
	xor	r12d, r12d
.L1:
	mov	eax, r12d
	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
.L15:
	.cfi_restore_state
	lea	rbp, 8[rbx]
	mov	rdi, rbp
	call	dev_name@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, eax
	call	gpio_request@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L4
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	meson_spicc_setup, .-meson_spicc_setup
	.comm	SPI_CS_HIGH,4,4
	.comm	ENOENT,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-spicc.c_meson_spicc_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to request cs gpio\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	meson_spicc_setup, %function
meson_spicc_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #16]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r0
	bne	.L2
	ldr	r0, [r0, #12]
	bl	spi_master_get_devdata
	mov	r3, r0
	ldr	r0, [r4, #4]
	str	r3, [r4, #16]
.L3:
	bl	gpio_is_valid
	cmp	r0, #0
	bne	.L14
.L4:
	ldr	r3, .L15
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r0, [r4, #4]
	tst	r2, r3
	moveq	r1, #1
	pop	{r4, r5, r6, lr}
	movne	r1, #0
	b	gpio_direction_output
.L2:
	ldr	r0, [r0, #4]
	bl	gpio_is_valid
	subs	r5, r0, #0
	bne	.L4
	ldr	r3, .L15+4
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	cmn	r0, r3
	bne	.L3
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	add	r6, r4, #8
	mov	r0, r6
	ldr	r5, [r4, #4]
	bl	dev_name
	mov	r1, r0
	mov	r0, r5
	bl	gpio_request
	subs	r5, r0, #0
	beq	.L4
	mov	r0, r6
	ldr	r1, .L15+8
	bl	dev_err
	b	.L1
.L16:
	.align	2
.L15:
	.word	SPI_CS_HIGH
	.word	ENOENT
	.word	.LC0
	.size	meson_spicc_setup, .-meson_spicc_setup
	.comm	SPI_CS_HIGH,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
