	.file	"extr_mcp251x.c_mcp251x_hw_rx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cannot allocate RX skb\n"
	.text
	.p2align 4
	.type	mcp251x_hw_rx, @function
mcp251x_hw_rx:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rdi
	push	r14
	.cfi_offset 14, -32
	mov	r14d, esi
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	r13, rsp
	call	spi_get_drvdata@PLT
	mov	rcx, rsp
	mov	rbx, rax
	movsx	rax, DWORD PTR SPI_TRANSFER_BUF_LEN[rip]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L20:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L20
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L21
.L4:
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, -64[rbp]
	mov	r12, rsp
	call	alloc_can_skb@PLT
	mov	QWORD PTR -72[rbp], rax
	test	rax, rax
	je	.L22
	mov	edx, r14d
	mov	rdi, r15
	mov	rsi, r12
	call	mcp251x_hw_rx_frame@PLT
	mov	rax, QWORD PTR RXBSIDL_OFF[rip]
	lea	rdi, [r12+rax*4]
	mov	edx, DWORD PTR [rdi]
	test	DWORD PTR RXBSIDL_IDE[rip], edx
	jne	.L23
	mov	rax, QWORD PTR RXBSIDH_OFF[rip]
	mov	ecx, DWORD PTR RXBSIDH_SHIFT[rip]
	mov	r15, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR [r12+rax*4]
	sal	eax, cl
	mov	ecx, DWORD PTR RXBSIDL_SHIFT[rip]
	sar	edx, cl
	or	eax, edx
	mov	rdx, QWORD PTR RXBDLC_OFF[rip]
	mov	DWORD PTR [r15], eax
	mov	ecx, DWORD PTR [rdi]
	test	DWORD PTR RXBSIDL_SRR[rip], ecx
	je	.L18
	or	eax, DWORD PTR CAN_RTR_FLAG[rip]
	mov	DWORD PTR [r15], eax
.L18:
	mov	edi, DWORD PTR [r12+rdx*4]
.L8:
	and	edi, DWORD PTR RXBDLC_LEN_MASK[rip]
	call	get_can_dlc@PLT
	movsx	rcx, DWORD PTR RXBDAT_OFF[rip]
	mov	QWORD PTR 8[r15], rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rsi, [r12+rcx*4]
	mov	rdx, QWORD PTR 8[rax]
	mov	edi, DWORD PTR 16[rax]
	call	memcpy@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, DWORD PTR CAN_LED_EVENT_RX[rip]
	add	DWORD PTR 4[rdi], 1
	mov	rax, QWORD PTR 8[rax]
	add	DWORD PTR [rdi], eax
	call	can_led_event@PLT
	mov	rdi, QWORD PTR -72[rbp]
	call	netif_rx_ni@PLT
	mov	rsp, r13
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	edx, DWORD PTR CAN_EFF_FLAG[rip]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 2
	mov	DWORD PTR [rax], edx
	mov	edi, DWORD PTR [rdi]
	and	edi, DWORD PTR RXBSIDL_EID[rip]
	call	SET_BYTE@PLT
	mov	esi, 1
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR RXBEID8_OFF[rip]
	mov	edi, DWORD PTR [r12+rax*4]
	call	SET_BYTE@PLT
	xor	esi, esi
	mov	r14d, eax
	mov	rax, QWORD PTR RXBEID0_OFF[rip]
	mov	edi, DWORD PTR [r12+rax*4]
	call	SET_BYTE@PLT
	mov	rdx, QWORD PTR RXBSIDH_OFF[rip]
	mov	ecx, DWORD PTR RXBSIDH_SHIFT[rip]
	mov	r15, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR [r12+rdx*4]
	sal	edx, cl
	mov	rcx, QWORD PTR RXBSIDL_OFF[rip]
	mov	edi, DWORD PTR [r12+rcx*4]
	mov	ecx, DWORD PTR RXBSIDL_SHIFT[rip]
	sar	edi, cl
	or	edx, edi
	sal	edx, 18
	or	edx, DWORD PTR [r15]
	or	edx, DWORD PTR -76[rbp]
	or	r14d, edx
	or	r14d, eax
	mov	rax, QWORD PTR RXBDLC_OFF[rip]
	mov	DWORD PTR [r15], r14d
	lea	rax, [r12+rax*4]
	mov	edi, DWORD PTR [rax]
	test	DWORD PTR RXBDLC_RTR[rip], edi
	je	.L8
	or	r14d, DWORD PTR CAN_RTR_FLAG[rip]
	mov	DWORD PTR [r15], r14d
	mov	edi, DWORD PTR [rax]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	call	dev_err@PLT
	mov	rax, QWORD PTR [rbx]
	add	DWORD PTR 8[rax], 1
	mov	rsp, r13
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mcp251x_hw_rx, .-mcp251x_hw_rx
	.comm	SPI_TRANSFER_BUF_LEN,4,4
	.comm	RXBSIDL_SRR,4,4
	.comm	RXBSIDL_SHIFT,4,4
	.comm	RXBSIDL_OFF,8,8
	.comm	RXBSIDL_IDE,4,4
	.comm	RXBSIDL_EID,4,4
	.comm	RXBSIDH_SHIFT,4,4
	.comm	RXBSIDH_OFF,8,8
	.comm	RXBEID8_OFF,8,8
	.comm	RXBEID0_OFF,8,8
	.comm	RXBDLC_RTR,4,4
	.comm	RXBDLC_OFF,8,8
	.comm	RXBDLC_LEN_MASK,4,4
	.comm	RXBDAT_OFF,4,4
	.comm	CAN_RTR_FLAG,4,4
	.comm	CAN_LED_EVENT_RX,4,4
	.comm	CAN_EFF_FLAG,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_mcp251x.c_mcp251x_hw_rx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot allocate RX skb\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp251x_hw_rx, %function
mcp251x_hw_rx:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L17
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r7, r0
	bl	spi_get_drvdata
	ldr	r3, .L17+4
	mov	r5, r0
	ldr	r3, [r3]
	mov	r6, sp
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	ldr	r0, [r0]
	sub	sp, sp, r3
	sub	r1, fp, #44
	bl	alloc_can_skb
	subs	r9, r0, #0
	beq	.L14
	mov	r4, sp
	ldr	r10, .L17+8
	mov	r2, r8
	mov	r1, r4
	mov	r0, r7
	bl	mcp251x_hw_rx_frame
	ldr	r2, [r10]
	ldr	r1, .L17+12
	ldr	r3, [r4, r2, lsl #2]
	ldr	r1, [r1]
	tst	r3, r1
	bne	.L15
	ldr	r1, .L17+16
	ldr	ip, .L17+20
	ldr	r0, [r1]
	ldr	r1, .L17+24
	ldr	ip, [ip]
	ldr	r0, [r4, r0, lsl #2]
	ldr	r1, [r1]
	ldr	r7, [fp, #-44]
	asr	r3, r3, ip
	orr	r3, r3, r0, lsl r1
	ldr	r1, .L17+28
	str	r3, [r7]
	ldr	r1, [r1]
	ldr	r0, [r4, r2, lsl #2]
	ldr	r2, .L17+32
	tst	r0, r1
	ldrne	r1, .L17+36
	ldr	r2, [r2]
	ldrne	r1, [r1]
	orrne	r3, r1, r3
	strne	r3, [r7]
	ldr	r2, [r4, r2, lsl #2]
.L5:
	ldr	r3, .L17+40
	ldr	r0, [r3]
	and	r0, r0, r2
	bl	get_can_dlc
	ldr	r2, .L17+44
	ldr	r3, [fp, #-44]
	ldr	r1, [r2]
	str	r0, [r7, #4]
	ldr	r2, [r3, #4]
	ldr	r0, [r3, #8]
	add	r1, r4, r1, lsl #2
	bl	memcpy
	ldr	r0, [r5]
	ldr	r1, [fp, #-44]
	ldr	r2, [r0, #4]
	ldr	ip, [r1, #4]
	ldr	r3, [r0]
	ldr	r1, .L17+48
	add	r2, r2, #1
	add	r3, r3, ip
	ldr	r1, [r1]
	str	r2, [r0, #4]
	str	r3, [r0]
	bl	can_led_event
	mov	r0, r9
	bl	netif_rx_ni
	mov	sp, r6
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, .L17+52
	ldr	r1, [fp, #-44]
	ldr	r0, [r3]
	ldr	r3, .L17+56
	str	r0, [r1]
	ldr	r0, [r4, r2, lsl #2]
	ldr	r3, [r3]
	mov	r1, #2
	and	r0, r0, r3
	bl	SET_BYTE
	ldr	r3, .L17+60
	mov	r1, #1
	ldr	ip, [r3]
	str	r0, [fp, #-48]
	ldr	r0, [r4, ip, lsl #2]
	bl	SET_BYTE
	ldr	r1, .L17+64
	mov	r8, r0
	ldr	r3, [r1]
	mov	r1, #0
	ldr	r0, [r4, r3, lsl #2]
	bl	SET_BYTE
	ldr	r1, .L17+16
	ldr	ip, [r10]
	ldr	r3, .L17+20
	ldr	lr, [r1]
	ldr	r1, .L17+24
	ldr	ip, [r4, ip, lsl #2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	lr, [r4, lr, lsl #2]
	ldr	r7, [fp, #-44]
	asr	r3, ip, r3
	orr	ip, r3, lr, lsl r1
	ldr	r3, [r7]
	ldr	r2, [fp, #-48]
	orr	r3, r3, ip, lsl #18
	orr	r3, r3, r2
	ldr	r1, .L17+32
	orr	r3, r3, r8
	ldr	r1, [r1]
	orr	r3, r3, r0
	ldr	r0, .L17+68
	str	r3, [r7]
	ldr	r2, [r4, r1, lsl #2]
	ldr	r0, [r0]
	tst	r2, r0
	beq	.L5
	ldr	r2, .L17+36
	ldr	r0, [r2]
	orr	r3, r0, r3
	str	r3, [r7]
	ldr	r2, [r4, r1, lsl #2]
	b	.L5
.L14:
	mov	r0, r7
	ldr	r1, .L17+72
	bl	dev_err
	ldr	r2, [r5]
	ldr	r3, [r2, #8]
	add	r3, r3, #1
	str	r3, [r2, #8]
	mov	sp, r6
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC1
	.word	SPI_TRANSFER_BUF_LEN
	.word	RXBSIDL_OFF
	.word	RXBSIDL_IDE
	.word	RXBSIDH_OFF
	.word	RXBSIDL_SHIFT
	.word	RXBSIDH_SHIFT
	.word	RXBSIDL_SRR
	.word	RXBDLC_OFF
	.word	CAN_RTR_FLAG
	.word	RXBDLC_LEN_MASK
	.word	RXBDAT_OFF
	.word	CAN_LED_EVENT_RX
	.word	CAN_EFF_FLAG
	.word	RXBSIDL_EID
	.word	RXBEID8_OFF
	.word	RXBEID0_OFF
	.word	RXBDLC_RTR
	.word	.LC0
	.size	mcp251x_hw_rx, .-mcp251x_hw_rx
	.comm	SPI_TRANSFER_BUF_LEN,4,4
	.comm	RXBSIDL_SRR,4,4
	.comm	RXBSIDL_SHIFT,4,4
	.comm	RXBSIDL_OFF,4,4
	.comm	RXBSIDL_IDE,4,4
	.comm	RXBSIDL_EID,4,4
	.comm	RXBSIDH_SHIFT,4,4
	.comm	RXBSIDH_OFF,4,4
	.comm	RXBEID8_OFF,4,4
	.comm	RXBEID0_OFF,4,4
	.comm	RXBDLC_RTR,4,4
	.comm	RXBDLC_OFF,4,4
	.comm	RXBDLC_LEN_MASK,4,4
	.comm	RXBDAT_OFF,4,4
	.comm	CAN_RTR_FLAG,4,4
	.comm	CAN_LED_EVENT_RX,4,4
	.comm	CAN_EFF_FLAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
