	.file	"extr_af_can.c_can_send.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	can_send
	.type	can_send, @function
can_send:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	DWORD PTR [rdi], 4
	jne	.L2
	mov	rax, QWORD PTR 32[rdi]
	cmp	DWORD PTR [rax], 8
	jg	.L2
	mov	rax, QWORD PTR 16[rdi]
	mov	rdx, QWORD PTR ARPHRD_CAN[rip]
	cmp	QWORD PTR [rax], rdx
	jne	.L19
	mov	eax, DWORD PTR 8[rax]
	test	DWORD PTR IFF_UP[rip], eax
	je	.L20
	mov	edi, DWORD PTR ETH_P_CAN[rip]
	mov	ebx, esi
	call	htons@PLT
	mov	rdi, rbp
	mov	DWORD PTR 24[rbp], eax
	call	skb_reset_network_header@PLT
	mov	rdi, rbp
	call	skb_reset_transport_header@PLT
	test	ebx, ebx
	je	.L7
	mov	eax, DWORD PTR PACKET_LOOPBACK[rip]
	xor	r13d, r13d
	mov	DWORD PTR 4[rbp], eax
	mov	rax, QWORD PTR 16[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	DWORD PTR IFF_ECHO[rip], eax
	je	.L21
.L8:
	mov	rdi, rbp
	call	dev_queue_xmit@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L10
	mov	edi, eax
	call	net_xmit_errno@PLT
	mov	r12d, eax
.L10:
	test	r12d, r12d
	jne	.L22
	test	r13, r13
	je	.L12
	mov	rdi, r13
	call	netif_rx_ni@PLT
.L12:
	add	DWORD PTR can_stats[rip+4], 1
	mov	eax, r12d
	add	DWORD PTR can_stats[rip], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	kfree_skb@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	call	kfree_skb@PLT
	mov	r12d, DWORD PTR ENETDOWN[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	call	kfree_skb@PLT
	mov	r12d, DWORD PTR EPERM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR PACKET_HOST[rip]
	xor	r13d, r13d
	mov	DWORD PTR 4[rbp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, r13
	call	kfree_skb@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	rdi, rbp
	call	skb_clone@PLT
	mov	r13, rax
	test	rax, rax
	je	.L23
	mov	eax, DWORD PTR 12[rbp]
	mov	DWORD PTR 12[r13], eax
	mov	eax, DWORD PTR CHECKSUM_UNNECESSARY[rip]
	mov	DWORD PTR 8[r13], eax
	mov	eax, DWORD PTR PACKET_BROADCAST[rip]
	mov	DWORD PTR 4[r13], eax
	jmp	.L8
.L23:
	mov	rdi, rbp
	call	kfree_skb@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	can_send, .-can_send
	.comm	can_stats,8,8
	.comm	PACKET_LOOPBACK,4,4
	.comm	PACKET_HOST,4,4
	.comm	PACKET_BROADCAST,4,4
	.comm	IFF_UP,4,4
	.comm	IFF_ECHO,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ETH_P_CAN,4,4
	.comm	EPERM,4,4
	.comm	ENOMEM,4,4
	.comm	ENETDOWN,4,4
	.comm	EINVAL,4,4
	.comm	CHECKSUM_UNNECESSARY,4,4
	.comm	ARPHRD_CAN,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_af_can.c_can_send.c"
	.text
	.align	2
	.global	can_send
	.syntax unified
	.arm
	.fpu softvfp
	.type	can_send, %function
can_send:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	cmp	r3, #4
	mov	r4, r0
	bne	.L2
	ldr	r3, [r0, #24]
	ldr	r3, [r3]
	cmp	r3, #8
	bgt	.L2
	ldr	r3, [r0, #16]
	ldr	r2, .L24
	mov	r5, r1
	ldr	r2, [r2]
	ldr	r1, [r3]
	cmp	r1, r2
	bne	.L19
	ldr	r1, .L24+4
	ldr	r2, [r3, #4]
	ldr	r3, [r1]
	tst	r2, r3
	beq	.L20
	ldr	r3, .L24+8
	ldr	r0, [r3]
	bl	htons
	mov	r3, r0
	mov	r0, r4
	str	r3, [r4, #20]
	bl	skb_reset_network_header
	mov	r0, r4
	bl	skb_reset_transport_header
	cmp	r5, #0
	beq	.L7
	ldr	r1, [r4, #16]
	ldr	r2, .L24+12
	ldr	r3, .L24+16
	ldr	r1, [r1, #4]
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r1, r2
	movne	r5, #0
	str	r3, [r4, #4]
	beq	.L21
.L8:
	mov	r0, r4
	bl	dev_queue_xmit
	subs	r4, r0, #0
	ble	.L10
	bl	net_xmit_errno
	mov	r4, r0
.L10:
	cmp	r4, #0
	bne	.L22
	cmp	r5, #0
	beq	.L12
	mov	r0, r5
	bl	netif_rx_ni
.L12:
	ldr	r3, .L24+20
	mov	r0, r4
	ldr	r1, [r3, #4]
	ldr	r2, [r3]
	add	r1, r1, #1
	add	r2, r2, #1
	str	r1, [r3, #4]
	str	r2, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r4
	bl	kfree_skb
	ldr	r3, .L24+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L20:
	bl	kfree_skb
	ldr	r3, .L24+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L19:
	bl	kfree_skb
	ldr	r3, .L24+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L24+36
	ldr	r3, [r3]
	str	r3, [r4, #4]
	b	.L8
.L22:
	mov	r0, r5
	bl	kfree_skb
	b	.L1
.L21:
	ldr	r3, .L24+40
	mov	r0, r4
	ldr	r1, [r3]
	bl	skb_clone
	subs	r5, r0, #0
	beq	.L23
	ldr	r2, .L24+44
	ldr	r3, .L24+48
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4, #12]
	str	r1, [r5, #8]
	str	r2, [r5, #12]
	str	r3, [r5, #4]
	b	.L8
.L23:
	mov	r0, r4
	bl	kfree_skb
	ldr	r3, .L24+52
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L25:
	.align	2
.L24:
	.word	ARPHRD_CAN
	.word	IFF_UP
	.word	ETH_P_CAN
	.word	IFF_ECHO
	.word	PACKET_LOOPBACK
	.word	can_stats
	.word	EINVAL
	.word	ENETDOWN
	.word	EPERM
	.word	PACKET_HOST
	.word	GFP_ATOMIC
	.word	CHECKSUM_UNNECESSARY
	.word	PACKET_BROADCAST
	.word	ENOMEM
	.size	can_send, .-can_send
	.comm	can_stats,8,4
	.comm	PACKET_LOOPBACK,4,4
	.comm	PACKET_HOST,4,4
	.comm	PACKET_BROADCAST,4,4
	.comm	IFF_UP,4,4
	.comm	IFF_ECHO,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ETH_P_CAN,4,4
	.comm	EPERM,4,4
	.comm	ENOMEM,4,4
	.comm	ENETDOWN,4,4
	.comm	EINVAL,4,4
	.comm	CHECKSUM_UNNECESSARY,4,4
	.comm	ARPHRD_CAN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
