	.file	"extr_esp32-hal-spi.c_spiAttachSS.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	spiAttachSS
	.type	spiAttachSS, @function
spiAttachSS:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	esi, 2
	jg	.L8
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	je	.L1
	mov	ebp, edx
	test	edx, edx
	js	.L3
	mov	r14d, 1
	mov	ecx, esi
	mov	r12d, esi
	sal	r14d, cl
.L4:
	mov	esi, DWORD PTR OUTPUT[rip]
	mov	edi, ebp
	call	pinMode@PLT
	mov	rdi, QWORD PTR 0[r13]
	mov	esi, r12d
	call	SPI_SS_IDX@PLT
	mov	edi, ebp
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, eax
	call	pinMatrixOutAttach@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, r14d
	mov	rdi, r13
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	spiEnableSSPins@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rax, QWORD PTR [rdi]
	cmp	rax, QWORD PTR HSPI[rip]
	mov	r14d, 1
	je	.L5
	cmp	rax, QWORD PTR VSPI[rip]
	mov	ebp, 5
	mov	edx, 11
	cmovne	ebp, edx
	xor	r12d, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	ebp, 15
	xor	r12d, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_def_cfa_offset 8
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE0:
	.size	spiAttachSS, .-spiAttachSS
	.comm	VSPI,8,8
	.comm	OUTPUT,4,4
	.comm	HSPI,8,8
	.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_esp32-hal-spi.c_spiAttachSS.c"
	.text
	.align	2
	.global	spiAttachSS
	.syntax unified
	.arm
	.fpu softvfp
	.type	spiAttachSS, %function
spiAttachSS:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r0
	lsr	r3, r3, #5
	cmp	r1, #2
	orrgt	r3, r3, #1
	cmp	r3, #0
	bxne	lr
	cmp	r2, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r5, r0
	blt	.L3
	mov	r7, #1
	mov	r6, r1
	lsl	r7, r7, r1
.L4:
	ldr	r3, .L11
	mov	r0, r4
	ldr	r1, [r3]
	bl	pinMode
	mov	r1, r6
	ldr	r0, [r5]
	bl	SPI_SS_IDX
	mov	r3, #0
	mov	r1, r0
	mov	r2, r3
	mov	r0, r4
	bl	pinMatrixOutAttach
	mov	r1, r7
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	spiEnableSSPins
.L3:
	ldr	r2, .L11+4
	ldr	r4, [r0]
	ldr	r2, [r2]
	cmp	r4, r2
	beq	.L5
	ldr	r2, .L11+8
	mov	r6, r3
	ldr	r2, [r2]
	mov	r7, #1
	cmp	r4, r2
	moveq	r4, #5
	movne	r4, #11
	b	.L4
.L5:
	mov	r6, r3
	mov	r7, #1
	mov	r4, #15
	b	.L4
.L12:
	.align	2
.L11:
	.word	OUTPUT
	.word	HSPI
	.word	VSPI
	.size	spiAttachSS, .-spiAttachSS
	.comm	VSPI,4,4
	.comm	OUTPUT,4,4
	.comm	HSPI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
