	.file	"extr_at91_can.c_at91_start_xmit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"BUG! TX buffer full when queue awake!\n"
	.text
	.p2align 4
	.type	at91_start_xmit, @function
at91_start_xmit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rdi
	mov	rdi, rsi
	call	netdev_priv@PLT
	mov	r14, QWORD PTR [rbx]
	mov	rdi, rax
	mov	rbp, rax
	call	get_tx_next_mb@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	get_tx_next_prio@PLT
	mov	edi, r12d
	mov	r15d, eax
	call	AT91_MSR@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	at91_read@PLT
	xor	edi, edi
	test	DWORD PTR AT91_MSR_MRDY[rip], eax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L16
	mov	eax, DWORD PTR [r14]
	mov	r9d, eax
	test	DWORD PTR CAN_EFF_FLAG[rip], eax
	jne	.L17
	and	r9d, DWORD PTR CAN_SFF_MASK[rip]
	sal	r9d, 18
.L5:
	mov	ebx, DWORD PTR 4[r14]
	and	eax, DWORD PTR CAN_RTR_FLAG[rip]
	mov	esi, r12d
	mov	rdi, rbp
	cmovne	eax, DWORD PTR AT91_MCR_MRTR[rip]
	mov	edx, DWORD PTR AT91_MB_MODE_DISABLED[rip]
	mov	DWORD PTR 12[rsp], r9d
	sal	ebx, 16
	or	ebx, DWORD PTR AT91_MCR_MTCR[rip]
	or	ebx, eax
	call	set_mb_mode@PLT
	mov	edi, r12d
	call	AT91_MID@PLT
	mov	r9d, DWORD PTR 12[rsp]
	mov	rdi, rbp
	mov	esi, eax
	mov	edx, r9d
	call	at91_write@PLT
	mov	ecx, r15d
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR AT91_MB_MODE_TX[rip]
	call	set_mb_mode_prio@PLT
	mov	rax, QWORD PTR 8[r14]
	mov	edi, r12d
	mov	r15d, DWORD PTR [rax]
	call	AT91_MDL@PLT
	mov	rdi, rbp
	mov	edx, r15d
	mov	esi, eax
	call	at91_write@PLT
	mov	rax, QWORD PTR 8[r14]
	mov	edi, r12d
	mov	r15d, DWORD PTR 4[rax]
	call	AT91_MDH@PLT
	mov	rdi, rbp
	mov	esi, eax
	mov	edx, r15d
	call	at91_write@PLT
	mov	edi, r12d
	call	AT91_MCR@PLT
	mov	edx, ebx
	mov	rdi, rbp
	mov	esi, eax
	call	at91_write@PLT
	mov	eax, DWORD PTR 4[r14]
	add	DWORD PTR 8[r13], eax
	mov	rsi, r13
	mov	eax, DWORD PTR jiffies[rip]
	mov	rdi, QWORD PTR [rsp]
	mov	edx, r12d
	sub	rdx, QWORD PTR AT91_MB_TX_FIRST[rip]
	mov	DWORD PTR 0[r13], eax
	call	can_put_echo_skb@PLT
	add	DWORD PTR 0[rbp], 1
	mov	rdi, rbp
	call	get_tx_next_mb@PLT
	mov	edi, eax
	call	AT91_MSR@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	at91_read@PLT
	test	DWORD PTR AT91_MSR_MRDY[rip], eax
	je	.L7
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR AT91_NEXT_MASK[rip], eax
	jne	.L8
.L7:
	mov	rdi, r13
	call	netif_stop_queue@PLT
.L8:
	mov	ecx, r12d
	mov	esi, DWORD PTR AT91_IER[rip]
	mov	edx, 1
	mov	rdi, rbp
	sal	edx, cl
	call	at91_write@PLT
	mov	eax, DWORD PTR NETDEV_TX_OK[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	and	r9d, DWORD PTR CAN_EFF_MASK[rip]
	or	r9d, DWORD PTR AT91_MID_MIDE[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r13
	call	netif_stop_queue@PLT
	mov	edi, DWORD PTR 4[r13]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR NETDEV_TX_BUSY[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	at91_start_xmit, .-at91_start_xmit
	.comm	jiffies,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	NETDEV_TX_BUSY,4,4
	.comm	CAN_SFF_MASK,4,4
	.comm	CAN_RTR_FLAG,4,4
	.comm	CAN_EFF_MASK,4,4
	.comm	CAN_EFF_FLAG,4,4
	.comm	AT91_NEXT_MASK,4,4
	.comm	AT91_MSR_MRDY,4,4
	.comm	AT91_MID_MIDE,4,4
	.comm	AT91_MCR_MTCR,4,4
	.comm	AT91_MCR_MRTR,4,4
	.comm	AT91_MB_TX_FIRST,8,8
	.comm	AT91_MB_MODE_TX,4,4
	.comm	AT91_MB_MODE_DISABLED,4,4
	.comm	AT91_IER,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_at91_can.c_at91_start_xmit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BUG! TX buffer full when queue awake!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	at91_start_xmit, %function
at91_start_xmit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	sub	sp, sp, #12
	mov	r0, r1
	mov	r6, r1
	bl	netdev_priv
	ldr	r7, [r8]
	mov	r4, r0
	bl	get_tx_next_mb
	mov	r5, r0
	mov	r0, r4
	bl	get_tx_next_prio
	mov	r10, r0
	mov	r0, r5
	bl	AT91_MSR
	mov	r1, r0
	mov	r0, r4
	bl	at91_read
	ldr	fp, .L18
	ldr	r3, [fp]
	tst	r0, r3
	moveq	r0, #1
	movne	r0, #0
	bl	unlikely
	cmp	r0, #0
	bne	.L17
	ldr	r3, .L18+4
	ldr	r9, [r7]
	ldr	r3, [r3]
	ldr	r1, [r7, #4]
	tst	r9, r3
	ldrne	r3, .L18+8
	ldrne	r2, .L18+12
	ldrne	r3, [r3]
	ldrne	r2, [r2]
	ldreq	r3, .L18+16
	andne	r3, r3, r9
	orrne	r3, r3, r2
	ldr	r2, .L18+20
	ldreq	r3, [r3]
	ldr	r2, [r2]
	andeq	r3, r3, r9
	lsleq	r3, r3, #18
	ands	r9, r9, r2
	ldrne	r2, .L18+24
	mov	r0, r4
	ldrne	r9, [r2]
	ldr	r2, .L18+28
	str	r3, [sp, #4]
	ldr	ip, [r2]
	ldr	r2, .L18+32
	orr	ip, ip, r1, lsl #16
	ldr	r2, [r2]
	mov	r1, r5
	orr	r9, ip, r9
	bl	set_mb_mode
	mov	r0, r5
	bl	AT91_MID
	ldr	r3, [sp, #4]
	mov	r1, r0
	mov	r2, r3
	mov	r0, r4
	bl	at91_write
	ldr	r2, .L18+36
	mov	r3, r10
	mov	r1, r5
	ldr	r2, [r2]
	mov	r0, r4
	bl	set_mb_mode_prio
	mov	r0, r5
	bl	AT91_MDL
	ldr	r3, [r7, #8]
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r4
	bl	at91_write
	mov	r0, r5
	bl	AT91_MDH
	ldr	r3, [r7, #8]
	mov	r1, r0
	ldr	r2, [r3, #4]
	mov	r0, r4
	bl	at91_write
	mov	r0, r5
	bl	AT91_MCR
	mov	r2, r9
	mov	r1, r0
	mov	r0, r4
	bl	at91_write
	ldr	r1, .L18+40
	ldr	r2, .L18+44
	ldr	r0, [r7, #4]
	ldr	r3, [r6, #8]
	ldr	r1, [r1]
	ldr	r2, [r2]
	add	r3, r3, r0
	sub	r2, r5, r2
	str	r3, [r6, #8]
	str	r1, [r6]
	mov	r0, r8
	mov	r1, r6
	bl	can_put_echo_skb
	ldr	r3, [r4]
	mov	r0, r4
	add	r3, r3, #1
	str	r3, [r4]
	bl	get_tx_next_mb
	bl	AT91_MSR
	mov	r1, r0
	mov	r0, r4
	bl	at91_read
	ldr	r3, [fp]
	tst	r0, r3
	beq	.L7
	ldr	r3, .L18+48
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L7
.L8:
	mov	r2, #1
	ldr	r3, .L18+52
	mov	r0, r4
	ldr	r1, [r3]
	lsl	r2, r2, r5
	bl	at91_write
	ldr	r3, .L18+56
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r0, r6
	bl	netif_stop_queue
	b	.L8
.L17:
	mov	r0, r6
	bl	netif_stop_queue
	ldr	r0, [r6, #4]
	ldr	r1, .L18+60
	bl	dev_err
	ldr	r3, .L18+64
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	AT91_MSR_MRDY
	.word	CAN_EFF_FLAG
	.word	CAN_EFF_MASK
	.word	AT91_MID_MIDE
	.word	CAN_SFF_MASK
	.word	CAN_RTR_FLAG
	.word	AT91_MCR_MRTR
	.word	AT91_MCR_MTCR
	.word	AT91_MB_MODE_DISABLED
	.word	AT91_MB_MODE_TX
	.word	jiffies
	.word	AT91_MB_TX_FIRST
	.word	AT91_NEXT_MASK
	.word	AT91_IER
	.word	NETDEV_TX_OK
	.word	.LC0
	.word	NETDEV_TX_BUSY
	.size	at91_start_xmit, .-at91_start_xmit
	.comm	jiffies,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	NETDEV_TX_BUSY,4,4
	.comm	CAN_SFF_MASK,4,4
	.comm	CAN_RTR_FLAG,4,4
	.comm	CAN_EFF_MASK,4,4
	.comm	CAN_EFF_FLAG,4,4
	.comm	AT91_NEXT_MASK,4,4
	.comm	AT91_MSR_MRDY,4,4
	.comm	AT91_MID_MIDE,4,4
	.comm	AT91_MCR_MTCR,4,4
	.comm	AT91_MCR_MRTR,4,4
	.comm	AT91_MB_TX_FIRST,4,4
	.comm	AT91_MB_MODE_TX,4,4
	.comm	AT91_MB_MODE_DISABLED,4,4
	.comm	AT91_IER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
