	.file	"extr_c_can.c_c_can_handle_bus_err.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"stuff error\n"
.LC1:
	.string	"form error\n"
.LC2:
	.string	"ack error\n"
.LC3:
	.string	"bit1 error\n"
.LC4:
	.string	"bit0 error\n"
.LC5:
	.string	"CRC error\n"
	.text
	.p2align 4
	.type	c_can_handle_bus_err, @function
c_can_handle_bus_err:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	cmp	DWORD PTR LEC_UNUSED[rip], ebx
	je	.L4
	cmp	DWORD PTR LEC_NO_ERROR[rip], ebx
	je	.L4
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR CAN_CTRLMODE_BERR_REPORTING[rip], edx
	jne	.L19
.L4:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L20
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	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
.L19:
	.cfi_restore_state
	add	DWORD PTR 4[rax], 1
	mov	rdi, rbp
	mov	rsi, rsp
	add	DWORD PTR 8[rbp], 1
	call	alloc_can_err_skb@PLT
	xor	edi, edi
	test	rax, rax
	mov	r12, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR [rsp]
	add	ebx, -128
	mov	edx, DWORD PTR CAN_ERR_PROT[rip]
	or	edx, DWORD PTR CAN_ERR_BUSERROR[rip]
	or	DWORD PTR [rax], edx
	cmp	ebx, 5
	ja	.L5
	lea	rdx, .L7[rip]
	movsx	rax, DWORD PTR [rdx+rbx*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L7:
	.long	.L12-.L7
	.long	.L11-.L7
	.long	.L10-.L7
	.long	.L9-.L7
	.long	.L8-.L7
	.long	.L6-.L7
	.text
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	netdev_dbg@PLT
	mov	rax, QWORD PTR [rsp]
	mov	ecx, DWORD PTR CAN_ERR_PROT_STUFF[rip]
	mov	rdx, QWORD PTR 16[rax]
	or	DWORD PTR 8[rdx], ecx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[rax]
	add	DWORD PTR 4[rbp], 1
	mov	rdi, r12
	add	DWORD PTR 0[rbp], eax
	call	netif_receive_skb@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	netdev_dbg@PLT
	mov	rax, QWORD PTR [rsp]
	mov	ecx, DWORD PTR CAN_ERR_PROT_BIT0[rip]
	mov	rdx, QWORD PTR 16[rax]
	or	DWORD PTR 8[rdx], ecx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	netdev_dbg@PLT
	mov	rax, QWORD PTR [rsp]
	mov	ecx, DWORD PTR CAN_ERR_PROT_LOC_ACK[rip]
	mov	rdx, QWORD PTR 16[rax]
	mov	DWORD PTR 12[rdx], ecx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	netdev_dbg@PLT
	mov	rax, QWORD PTR [rsp]
	mov	ecx, DWORD PTR CAN_ERR_PROT_FORM[rip]
	mov	rdx, QWORD PTR 16[rax]
	or	DWORD PTR 8[rdx], ecx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	netdev_dbg@PLT
	mov	rax, QWORD PTR [rsp]
	mov	ecx, DWORD PTR CAN_ERR_PROT_LOC_CRC_SEQ[rip]
	mov	rdx, QWORD PTR 16[rax]
	mov	DWORD PTR 12[rdx], ecx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	netdev_dbg@PLT
	mov	rax, QWORD PTR [rsp]
	mov	ecx, DWORD PTR CAN_ERR_PROT_BIT1[rip]
	mov	rdx, QWORD PTR 16[rax]
	or	DWORD PTR 8[rdx], ecx
	jmp	.L5
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	c_can_handle_bus_err, .-c_can_handle_bus_err
	.comm	LEC_UNUSED,4,4
	.comm	LEC_NO_ERROR,4,4
	.comm	CAN_ERR_PROT_STUFF,4,4
	.comm	CAN_ERR_PROT_LOC_CRC_SEQ,4,4
	.comm	CAN_ERR_PROT_LOC_ACK,4,4
	.comm	CAN_ERR_PROT_FORM,4,4
	.comm	CAN_ERR_PROT_BIT1,4,4
	.comm	CAN_ERR_PROT_BIT0,4,4
	.comm	CAN_ERR_PROT,4,4
	.comm	CAN_ERR_BUSERROR,4,4
	.comm	CAN_CTRLMODE_BERR_REPORTING,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_c_can.c_c_can_handle_bus_err.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"stuff error\012\000"
	.align	2
.LC1:
	.ascii	"form error\012\000"
	.align	2
.LC2:
	.ascii	"ack error\012\000"
	.align	2
.LC3:
	.ascii	"bit1 error\012\000"
	.align	2
.LC4:
	.ascii	"bit0 error\012\000"
	.align	2
.LC5:
	.ascii	"CRC error\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	c_can_handle_bus_err, %function
c_can_handle_bus_err:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r3, .L22
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	bl	netdev_priv
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L4
	ldr	r3, .L22+8
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L4
	ldr	r3, .L22+12
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L20
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L20:
	ldr	r2, [r0, #4]
	ldr	r3, [r5, #8]
	add	r2, r2, #1
	add	r3, r3, #1
	str	r2, [r0, #4]
	mov	r1, sp
	str	r3, [r5, #8]
	mov	r0, r5
	bl	alloc_can_err_skb
	mov	r6, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L4
	ldr	r2, .L22+16
	ldr	r1, .L22+20
	ldr	r3, [sp]
	ldr	r0, [r2]
	ldr	r1, [r1]
	ldr	r2, [r3]
	orr	r1, r1, r0
	orr	r2, r2, r1
	sub	r4, r4, #128
	str	r2, [r3]
	cmp	r4, #5
	ldrls	pc, [pc, r4, asl #2]
	b	.L5
.L7:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L12:
	mov	r0, r5
	ldr	r1, .L22+24
	bl	netdev_dbg
	ldr	r3, [sp]
	ldr	r2, .L22+28
.L18:
	ldr	r1, [r3, #8]
	ldr	r0, [r2]
	ldr	r2, [r1, #8]
	orr	r2, r2, r0
	str	r2, [r1, #8]
.L5:
	ldr	r1, [r3, #4]
	ldm	r5, {r2, r3}
	add	r2, r2, r1
	add	r3, r3, #1
	mov	r0, r6
	stm	r5, {r2, r3}
	bl	netif_receive_skb
	mov	r0, #1
	b	.L1
.L6:
	ldr	r1, .L22+32
	mov	r0, r5
	bl	netdev_dbg
	ldr	r3, [sp]
	ldr	r1, .L22+36
	ldr	r2, [r3, #8]
	ldr	r1, [r1]
	str	r1, [r2, #12]
	b	.L5
.L11:
	mov	r0, r5
	ldr	r1, .L22+40
	bl	netdev_dbg
	ldr	r3, [sp]
	ldr	r2, .L22+44
	b	.L18
.L10:
	ldr	r1, .L22+48
	mov	r0, r5
	bl	netdev_dbg
	ldr	r3, [sp]
	ldr	r1, .L22+52
	ldr	r2, [r3, #8]
	ldr	r1, [r1]
	str	r1, [r2, #12]
	b	.L5
.L9:
	mov	r0, r5
	ldr	r1, .L22+56
	bl	netdev_dbg
	ldr	r3, [sp]
	ldr	r2, .L22+60
	b	.L18
.L8:
	mov	r0, r5
	ldr	r1, .L22+64
	bl	netdev_dbg
	ldr	r3, [sp]
	ldr	r2, .L22+68
	b	.L18
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC6
	.word	LEC_UNUSED
	.word	LEC_NO_ERROR
	.word	CAN_CTRLMODE_BERR_REPORTING
	.word	CAN_ERR_BUSERROR
	.word	CAN_ERR_PROT
	.word	.LC0
	.word	CAN_ERR_PROT_STUFF
	.word	.LC2
	.word	CAN_ERR_PROT_LOC_ACK
	.word	.LC1
	.word	CAN_ERR_PROT_FORM
	.word	.LC5
	.word	CAN_ERR_PROT_LOC_CRC_SEQ
	.word	.LC3
	.word	CAN_ERR_PROT_BIT1
	.word	.LC4
	.word	CAN_ERR_PROT_BIT0
	.size	c_can_handle_bus_err, .-c_can_handle_bus_err
	.comm	LEC_UNUSED,4,4
	.comm	LEC_NO_ERROR,4,4
	.comm	CAN_ERR_PROT_STUFF,4,4
	.comm	CAN_ERR_PROT_LOC_CRC_SEQ,4,4
	.comm	CAN_ERR_PROT_LOC_ACK,4,4
	.comm	CAN_ERR_PROT_FORM,4,4
	.comm	CAN_ERR_PROT_BIT1,4,4
	.comm	CAN_ERR_PROT_BIT0,4,4
	.comm	CAN_ERR_PROT,4,4
	.comm	CAN_ERR_BUSERROR,4,4
	.comm	CAN_CTRLMODE_BERR_REPORTING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
