	.file	"extr_lcs.c___lcs_start_xmit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"hardxmit"
	.text
	.p2align 4
	.type	__lcs_start_xmit, @function
__lcs_start_xmit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	rdx, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	edi, 5
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR trace[rip]
	mov	r13d, DWORD PTR NETDEV_TX_OK[rip]
	call	LCS_DBF_TEXT@PLT
	test	r12, r12
	je	.L18
	mov	rax, QWORD PTR DEV_STATE_UP[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L19
	mov	edi, DWORD PTR ETH_P_IPV6[rip]
	mov	r14, QWORD PTR [r12]
	call	htons@PLT
	cmp	r14, rax
	je	.L20
	mov	edi, DWORD PTR 32[rbp]
	lea	r14, 16[rbp]
	call	netif_stop_queue@PLT
	mov	rdi, r14
	call	spin_lock@PLT
	mov	rax, QWORD PTR 24[rbp]
	test	rax, rax
	je	.L6
	mov	rsi, QWORD PTR [rax]
	mov	r8, QWORD PTR 8[r12]
	lea	rdx, [rsi+r8]
	lea	rcx, 20[rdx]
	cmp	rcx, QWORD PTR LCS_IOBUFFERSIZE[rip]
	ja	.L21
.L7:
	add	rdx, 16
	add	rsi, QWORD PTR 8[rax]
	mov	rdi, r12
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR 60[rbp]
	add	rsi, 16
	mov	QWORD PTR -16[rsi], rdx
	mov	rdx, r8
	mov	DWORD PTR -4[rsi], eax
	mov	eax, DWORD PTR 56[rbp]
	mov	DWORD PTR -8[rsi], eax
	call	skb_copy_from_linear_data@PLT
	mov	rdi, r14
	call	spin_unlock@PLT
	mov	rax, QWORD PTR 8[r12]
	add	DWORD PTR 40[rbp], eax
	mov	rdi, r12
	add	DWORD PTR 36[rbp], 1
	call	dev_kfree_skb@PLT
	mov	edi, DWORD PTR 32[rbp]
	call	netif_wake_queue@PLT
	mov	rdi, r14
	call	spin_lock@PLT
	cmp	QWORD PTR 8[rbp], 0
	jle	.L22
.L9:
	mov	rdi, r14
	call	spin_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, r12
	call	dev_kfree_skb@PLT
	add	DWORD PTR 44[rbp], 1
	mov	r13d, DWORD PTR NETDEV_TX_OK[rip]
	add	DWORD PTR 52[rbp], 1
	add	DWORD PTR 48[rbp], 1
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	cmp	QWORD PTR 24[rbp], 0
	je	.L9
	mov	rdi, rbp
	call	__lcs_emit_txbuffer@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	__lcs_emit_txbuffer@PLT
	mov	rax, QWORD PTR 24[rbp]
	test	rax, rax
	je	.L6
	mov	rsi, QWORD PTR [rax]
	mov	r8, QWORD PTR 8[r12]
	lea	rdx, [rsi+r8]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r13d, DWORD PTR NETDEV_TX_OK[rip]
	add	DWORD PTR 44[rbp], 1
	add	DWORD PTR 52[rbp], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rdi, 64[rbp]
	call	lcs_get_buffer@PLT
	mov	QWORD PTR 24[rbp], rax
	test	rax, rax
	je	.L23
	mov	edx, DWORD PTR lcs_txbuffer_cb[rip]
	mov	r8, QWORD PTR 8[r12]
	xor	esi, esi
	mov	QWORD PTR [rax], 0
	mov	DWORD PTR 16[rax], edx
	mov	rdx, r8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, r12
	call	dev_kfree_skb@PLT
	mov	r13d, DWORD PTR NETDEV_TX_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	add	DWORD PTR 44[rbp], 1
	mov	r13d, DWORD PTR NETDEV_TX_BUSY[rip]
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	__lcs_start_xmit, .-__lcs_start_xmit
	.comm	trace,4,4
	.comm	lcs_txbuffer_cb,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	NETDEV_TX_BUSY,4,4
	.comm	LCS_IOBUFFERSIZE,8,8
	.comm	ETH_P_IPV6,4,4
	.comm	DEV_STATE_UP,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_lcs.c___lcs_start_xmit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hardxmit\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__lcs_start_xmit, %function
__lcs_start_xmit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ldr	r3, .L27
	ldr	r5, .L27+4
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, #5
	ldr	r2, .L27+8
	ldr	r7, [r5]
	bl	LCS_DBF_TEXT
	cmp	r6, #0
	beq	.L21
	ldr	r3, .L27+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L22
	ldr	r3, .L27+16
	ldr	r8, [r6]
	ldr	r0, [r3]
	bl	htons
	cmp	r8, r0
	beq	.L23
	ldr	r0, [r4, #16]
	add	r5, r4, #8
	bl	netif_stop_queue
	mov	r0, r5
	bl	spin_lock
	ldr	r0, [r4, #12]
	cmp	r0, #0
	beq	.L6
	ldr	r3, [r0]
	ldr	r2, [r6, #4]
	ldr	r1, .L27+20
	add	ip, r3, r2
	ldr	r1, [r1]
	add	lr, ip, #16
	cmp	lr, r1
	bhi	.L24
.L7:
	add	ip, ip, #12
	ldr	r1, [r0, #4]
	str	ip, [r0]
	ldr	lr, [r4, #44]
	ldr	r0, [r4, #40]
	str	ip, [r3, r1]
	add	r1, r3, r1
	stmib	r1, {r0, lr}
	add	r1, r1, #12
	mov	r0, r6
	bl	skb_copy_from_linear_data
	mov	r0, r5
	bl	spin_unlock
	ldr	r1, [r6, #4]
	ldr	r2, [r4, #24]
	ldr	r3, [r4, #20]
	add	r2, r2, r1
	add	r3, r3, #1
	str	r3, [r4, #20]
	str	r2, [r4, #24]
	mov	r0, r6
	bl	dev_kfree_skb
	ldr	r0, [r4, #16]
	bl	netif_wake_queue
	mov	r0, r5
	bl	spin_lock
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L25
.L9:
	mov	r0, r5
	bl	spin_unlock
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	mov	r0, r6
	bl	dev_kfree_skb
	ldr	r1, [r4, #28]
	ldr	r2, [r4, #36]
	ldr	r3, [r4, #32]
	add	r1, r1, #1
	add	r2, r2, #1
	add	r3, r3, #1
	ldr	r7, [r5]
	str	r1, [r4, #28]
	str	r2, [r4, #36]
	str	r3, [r4, #32]
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L9
	mov	r0, r4
	bl	__lcs_emit_txbuffer
	b	.L9
.L24:
	mov	r0, r4
	bl	__lcs_emit_txbuffer
	ldr	r0, [r4, #12]
	cmp	r0, #0
	beq	.L6
	ldr	r3, [r0]
	ldr	r2, [r6, #4]
	add	ip, r3, r2
	b	.L7
.L21:
	ldr	r2, [r4, #28]
	ldr	r3, [r4, #36]
	ldr	r7, [r5]
	add	r2, r2, #1
	add	r3, r3, #1
	mov	r0, r7
	str	r2, [r4, #28]
	str	r3, [r4, #36]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	add	r0, r4, #48
	bl	lcs_get_buffer
	cmp	r0, #0
	str	r0, [r4, #12]
	beq	.L26
	mov	r1, #0
	ldr	lr, .L27+24
	ldr	r2, [r6, #4]
	ldr	lr, [lr]
	mov	r3, r1
	mov	ip, r2
	str	r1, [r0]
	str	lr, [r0, #8]
	b	.L7
.L23:
	mov	r0, r6
	bl	dev_kfree_skb
	ldr	r7, [r5]
	b	.L1
.L26:
	ldr	r3, [r4, #28]
	ldr	r2, .L27+28
	add	r3, r3, #1
	ldr	r7, [r2]
	str	r3, [r4, #28]
	b	.L9
.L28:
	.align	2
.L27:
	.word	trace
	.word	NETDEV_TX_OK
	.word	.LC0
	.word	DEV_STATE_UP
	.word	ETH_P_IPV6
	.word	LCS_IOBUFFERSIZE
	.word	lcs_txbuffer_cb
	.word	NETDEV_TX_BUSY
	.size	__lcs_start_xmit, .-__lcs_start_xmit
	.comm	trace,4,4
	.comm	lcs_txbuffer_cb,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	NETDEV_TX_BUSY,4,4
	.comm	LCS_IOBUFFERSIZE,4,4
	.comm	ETH_P_IPV6,4,4
	.comm	DEV_STATE_UP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
