	.file	"extr_p54spi.c_p54spi_rx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"rx request of zero bytes\n"
.LC1:
	.string	"could not alloc skb"
	.text
	.p2align 4
	.type	p54spi_rx, @function
p54spi_rx:
.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, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	p54spi_wakeup@PLT
	test	rax, rax
	js	.L12
	mov	esi, DWORD PTR SPI_ADRS_DMA_DATA[rip]
	mov	rdx, rsp
	mov	ecx, 16
	mov	rdi, rbx
	call	p54spi_spi_read@PLT
	mov	r12, QWORD PTR [rsp]
	test	r12, r12
	je	.L13
	lea	rdi, 4[r12]
	call	dev_alloc_skb@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L14
	cmp	r12, 8
	jbe	.L15
	mov	esi, 8
	mov	rdi, rax
	call	skb_put@PLT
	mov	edx, 8
	lea	rsi, 8[rsp]
	mov	rdi, rax
	call	memcpy@PLT
	lea	esi, -8[r12]
	mov	rdi, rbp
	call	skb_put@PLT
	mov	esi, DWORD PTR SPI_ADRS_DMA_DATA[rip]
	lea	rcx, -8[r12]
	mov	rdi, rbx
	mov	rdx, rax
	call	p54spi_spi_read@PLT
.L7:
	mov	rdi, rbx
	xor	r12d, r12d
	call	p54spi_sleep@PLT
	mov	esi, 4
	mov	rdi, rbp
	call	skb_put@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbp
	call	p54_rx@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, rbp
	call	dev_kfree_skb@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L13:
	.cfi_restore_state
	mov	rdi, rbx
	call	p54spi_sleep@PLT
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, r12d
	mov	rdi, rax
	call	skb_put@PLT
	lea	rsi, 8[rsp]
	mov	rdx, r12
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbx
	call	p54spi_sleep@PLT
	mov	rdi, QWORD PTR 8[rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	p54spi_rx, .-p54spi_rx
	.comm	SPI_ADRS_DMA_DATA,4,4
	.comm	READAHEAD_SZ,8,8
	.comm	ENOMEM,4,4
	.comm	EBUSY,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_p54spi.c_p54spi_rx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"rx request of zero bytes\012\000"
	.align	2
.LC1:
	.ascii	"could not alloc skb\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	p54spi_rx, %function
p54spi_rx:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L17
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	bl	p54spi_wakeup
	cmp	r0, #0
	blt	.L12
	ldr	r7, .L17+4
	mov	r3, #8
	mov	r0, r5
	ldr	r1, [r7]
	add	r2, sp, #4
	bl	p54spi_spi_read
	ldr	r4, [sp, #4]
	cmp	r4, #0
	beq	.L13
	add	r0, r4, #4
	bl	dev_alloc_skb
	subs	r6, r0, #0
	beq	.L14
	cmp	r4, #4
	bls	.L15
	mov	r1, #4
	bl	skb_put
	sub	r4, r4, #4
	mov	r2, #4
	add	r1, sp, #8
	bl	memcpy
	mov	r1, r4
	mov	r0, r6
	ldr	r7, [r7]
	bl	skb_put
	mov	r3, r4
	mov	r2, r0
	mov	r1, r7
	mov	r0, r5
	bl	p54spi_spi_read
.L7:
	mov	r0, r5
	bl	p54spi_sleep
	mov	r1, #4
	mov	r0, r6
	bl	skb_put
	mov	r1, r6
	ldr	r0, [r5]
	bl	p54_rx
	subs	r4, r0, #0
	movne	r4, #0
	bne	.L1
	mov	r0, r6
	bl	dev_kfree_skb
	b	.L1
.L12:
	ldr	r3, .L17+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	mov	r0, r5
	bl	p54spi_sleep
	ldr	r0, [r5, #4]
	ldr	r1, .L17+12
	bl	dev_err
	b	.L1
.L15:
	mov	r1, r4
	bl	skb_put
	mov	r2, r4
	add	r1, sp, #8
	bl	memcpy
	b	.L7
.L14:
	mov	r0, r5
	bl	p54spi_sleep
	ldr	r0, [r5, #4]
	ldr	r1, .L17+16
	bl	dev_err
	ldr	r3, .L17+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	SPI_ADRS_DMA_DATA
	.word	EBUSY
	.word	.LC0
	.word	.LC1
	.word	ENOMEM
	.size	p54spi_rx, .-p54spi_rx
	.comm	SPI_ADRS_DMA_DATA,4,4
	.comm	READAHEAD_SZ,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
