	.file	"extr_esp32-hal-spi.c_spiTransferBytes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	spiTransferBytes
	.type	spiTransferBytes, @function
spiTransferBytes:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L1
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	eax, eax
	mov	r14d, ecx
	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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	SPI_MUTEX_LOCK@PLT
	test	r14d, r14d
	je	.L3
	cmp	r14d, 64
	jle	.L4
	mov	ebx, r14d
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, r12
	mov	rsi, rbp
	mov	ecx, 64
	mov	rdi, r13
	call	__spiTransferBytes@PLT
	sub	ebx, 64
	lea	rax, 256[rbp]
	test	rbp, rbp
	cmovne	rbp, rax
	lea	rax, 256[r12]
	test	r12, r12
	cmovne	r12, rax
	cmp	ebx, 64
	jg	.L7
	lea	eax, -65[r14]
	and	eax, -64
	neg	eax
	lea	r14d, -64[r14+rax]
.L4:
	mov	ecx, r14d
	mov	rdx, r12
	mov	rsi, rbp
	mov	rdi, r13
	call	__spiTransferBytes@PLT
.L3:
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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	SPI_MUTEX_UNLOCK@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	spiTransferBytes, .-spiTransferBytes
	.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_spiTransferBytes.c"
	.text
	.align	2
	.global	spiTransferBytes
	.syntax unified
	.arm
	.fpu softvfp
	.type	spiTransferBytes, %function
spiTransferBytes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r7, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r6, r3
	mov	r4, r1
	mov	r5, r2
	bl	SPI_MUTEX_LOCK
	cmp	r6, #0
	beq	.L3
	cmp	r6, #64
	ble	.L4
	mov	r8, r6
.L7:
	mov	r2, r5
	mov	r1, r4
	mov	r3, #64
	mov	r0, r7
	bl	__spiTransferBytes
	cmp	r4, #0
	sub	r8, r8, #64
	addne	r4, r4, #256
	cmp	r5, #0
	addne	r5, r5, #256
	cmp	r8, #64
	bgt	.L7
	sub	r3, r6, #65
	bic	r3, r3, #63
	sub	r6, r6, #64
	sub	r6, r6, r3
.L4:
	mov	r3, r6
	mov	r2, r5
	mov	r1, r4
	mov	r0, r7
	bl	__spiTransferBytes
.L3:
	pop	{r4, r5, r6, r7, r8, lr}
	b	SPI_MUTEX_UNLOCK
	.size	spiTransferBytes, .-spiTransferBytes
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
