	.file	"extr_qca_uart.c_qcauart_netdev_xmit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"xmit: iface is down\n"
	.text
	.p2align 4
	.type	qcauart_netdev_xmit, @function
qcauart_netdev_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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	netdev_priv@PLT
	lea	r14, 24[rax]
	mov	rbx, rax
	mov	rdi, r14
	call	spin_lock@PLT
	mov	edi, DWORD PTR [rbx]
	call	WARN_ON@PLT
	mov	rdi, r12
	call	netif_running@PLT
	test	eax, eax
	je	.L10
	mov	rsi, QWORD PTR 0[rbp]
	mov	r8, QWORD PTR QCAFRM_MIN_LEN[rip]
	mov	r15, QWORD PTR 8[rbx]
	cmp	rsi, r8
	jl	.L11
	mov	rdi, r15
	call	qcafrm_create_header@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 0[rbp]
	cdqe
	lea	r13, [r15+rax*8]
	mov	rdi, r13
	call	memcpy@PLT
	mov	rax, QWORD PTR 0[rbp]
	lea	r13, 0[r13+rax*8]
.L6:
	mov	rdi, r13
	call	qcafrm_create_footer@PLT
	mov	edi, DWORD PTR 32[rbx]
	cdqe
	lea	r13, 0[r13+rax*8]
	call	netif_stop_queue@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdx, r13
	mov	edi, DWORD PTR 28[rbx]
	sub	rdx, rsi
	sar	rdx, 3
	call	serdev_device_write_buf@PLT
	test	eax, eax
	jle	.L5
	mov	rdx, QWORD PTR 8[rbx]
	movsx	rcx, eax
	sub	r13, rdx
	lea	rdx, [rdx+rcx*8]
	sar	r13, 3
	mov	QWORD PTR 16[rbx], rdx
	sub	r13d, eax
	mov	DWORD PTR [rbx], r13d
	add	DWORD PTR [r12], eax
.L5:
	mov	rdi, r14
	call	spin_unlock@PLT
	mov	rdi, r12
	call	netif_trans_update@PLT
.L3:
	mov	rdi, rbp
	call	dev_kfree_skb_any@PLT
	mov	eax, DWORD PTR NETDEV_TX_OK[rip]
	add	rsp, 8
	.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
.L11:
	.cfi_restore_state
	mov	r13, r8
	mov	rdi, r15
	sub	r13, rsi
	mov	rsi, r8
	call	qcafrm_create_header@PLT
	mov	esi, DWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 0[rbp]
	cdqe
	lea	r15, [r15+rax*8]
	mov	rdi, r15
	call	memcpy@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, r13
	xor	esi, esi
	lea	r15, [r15+rax*8]
	mov	rdi, r15
	lea	r13, [r15+r13*8]
	call	memset@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r14
	call	spin_unlock@PLT
	mov	edi, DWORD PTR 32[rbx]
	lea	rsi, .LC0[rip]
	call	netdev_warn@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	qcauart_netdev_xmit, .-qcauart_netdev_xmit
	.comm	QCAFRM_MIN_LEN,8,8
	.comm	NETDEV_TX_OK,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_qca_uart.c_qcauart_netdev_xmit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"xmit: iface is down\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qcauart_netdev_xmit, %function
qcauart_netdev_xmit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	mov	r0, r1
	mov	r8, r1
	bl	netdev_priv
	mov	r6, r0
	add	r9, r0, #12
	mov	r0, r9
	bl	spin_lock
	ldr	r0, [r6]
	bl	WARN_ON
	mov	r0, r8
	bl	netif_running
	cmp	r0, #0
	beq	.L10
	ldr	r3, .L12
	ldr	r10, [r7]
	ldr	r1, [r3]
	ldr	r5, [r6, #4]
	cmp	r10, r1
	blt	.L11
	mov	r1, r10
	mov	r0, r5
	bl	qcafrm_create_header
	add	r4, r5, r0, lsl #2
	mov	r0, r4
	ldr	r2, [r7]
	ldr	r1, [r7, #4]
	bl	memcpy
	ldr	r0, [r7]
	add	r4, r4, r0, lsl #2
.L6:
	mov	r0, r4
	bl	qcafrm_create_footer
	mov	r1, r0
	ldr	r0, [r6, #20]
	add	r4, r4, r1, lsl #2
	bl	netif_stop_queue
	ldr	r1, [r6, #4]
	ldr	r0, [r6, #16]
	sub	r2, r4, r1
	asr	r2, r2, #2
	bl	serdev_device_write_buf
	cmp	r0, #0
	ble	.L5
	ldr	r3, [r6, #4]
	ldr	r2, [r8]
	sub	r4, r4, r3
	rsb	r4, r0, r4, asr #2
	add	r3, r3, r0, lsl #2
	add	r0, r2, r0
	str	r4, [r6]
	str	r3, [r6, #8]
	str	r0, [r8]
.L5:
	mov	r0, r9
	bl	spin_unlock
	mov	r0, r8
	bl	netif_trans_update
.L3:
	mov	r0, r7
	bl	dev_kfree_skb_any
	ldr	r3, .L12+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r0, r5
	sub	r10, r1, r10
	bl	qcafrm_create_header
	add	r4, r5, r0, lsl #2
	mov	r0, r4
	ldr	r2, [r7]
	ldr	r1, [r7, #4]
	bl	memcpy
	ldr	r5, [r7]
	mov	r2, r10
	add	r4, r4, r5, lsl #2
	mov	r0, r4
	mov	r1, #0
	bl	memset
	add	r4, r4, r10, lsl #2
	b	.L6
.L10:
	mov	r0, r9
	bl	spin_unlock
	ldr	r0, [r6, #20]
	ldr	r1, .L12+8
	bl	netdev_warn
	b	.L3
.L13:
	.align	2
.L12:
	.word	QCAFRM_MIN_LEN
	.word	NETDEV_TX_OK
	.word	.LC0
	.size	qcauart_netdev_xmit, .-qcauart_netdev_xmit
	.comm	QCAFRM_MIN_LEN,4,4
	.comm	NETDEV_TX_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
