	.file	"extr_et1310_tx.c_et131x_send_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	et131x_send_packet, @function
et131x_send_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rax, QWORD PTR ETH_HLEN[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	QWORD PTR [rdi], rax
	jge	.L2
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	lea	r13, 24[rsi]
	mov	rbp, rsi
	mov	rbx, rdi
	xor	esi, esi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	r14, QWORD PTR 16[rbp]
	test	r14, r14
	je	.L16
	mov	rax, QWORD PTR 8[r14]
	mov	QWORD PTR 16[rbp], rax
	test	rax, rax
	je	.L17
.L5:
	xor	esi, esi
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 16[rbx]
	mov	QWORD PTR 24[r14], rbx
	mov	QWORD PTR [r14], rax
	test	rdx, rdx
	je	.L6
	movsx	rcx, DWORD PTR 8[rbx]
	sub	rax, rcx
	cmp	rax, 5
	jle	.L6
	mov	eax, DWORD PTR [rdx]
	cmp	eax, 65535
	je	.L18
	and	eax, 3
	cmp	eax, 1
	jne	.L6
	mov	eax, DWORD PTR fMP_DEST_MULTI[rip]
	or	DWORD PTR 16[r14], eax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	QWORD PTR 8[r14], 0
	mov	rsi, r14
	mov	rdi, rbp
	call	nic_send_packet@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L19
	mov	rax, QWORD PTR NUM_TCB[rip]
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], rax
	setg	dil
	call	WARN_ON@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	xor	esi, esi
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L9
	mov	QWORD PTR 8[rax], r14
.L10:
	mov	QWORD PTR 8[rbp], r14
	mov	rdi, r13
	xor	esi, esi
	call	spin_unlock_irqrestore@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L17:
	.cfi_restore_state
	mov	QWORD PTR 8[rbp], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	DWORD PTR 4[rdx], 65535
	jne	.L6
	cmp	DWORD PTR 8[rdx], 65535
	jne	.L6
	mov	eax, DWORD PTR fMP_DEST_BROAD[rip]
	or	DWORD PTR 16[r14], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	xor	esi, esi
	mov	rdi, r13
	call	spin_unlock_irqrestore@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	QWORD PTR 16[rbp], r14
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	et131x_send_packet, .-et131x_send_packet
	.comm	fMP_DEST_MULTI,4,4
	.comm	fMP_DEST_BROAD,4,4
	.comm	NUM_TCB,8,8
	.comm	ETH_HLEN,8,8
	.comm	ENOMEM,4,4
	.comm	EIO,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_et1310_tx.c_et131x_send_packet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	et131x_send_packet, %function
et131x_send_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L19
	ldr	r2, [r0]
	ldr	r3, [r3]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r2, r3
	bge	.L2
	ldr	r3, .L19+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r6, r1
	add	r7, r1, #12
	mov	r4, r0
	mov	r1, #0
	mov	r0, r7
	bl	spin_lock_irqsave
	ldr	r5, [r6, #8]
	cmp	r5, #0
	beq	.L16
	ldr	r3, [r5, #4]
	mov	r1, #0
	cmp	r3, #0
	streq	r3, [r6, #4]
	str	r3, [r6, #8]
	mov	r0, r7
	bl	spin_unlock_irqrestore
	ldr	r2, [r4, #8]
	ldr	r3, [r4]
	cmp	r2, #0
	str	r3, [r5]
	str	r4, [r5, #12]
	beq	.L6
	ldr	r1, [r4, #4]
	sub	r3, r3, r1
	cmp	r3, #5
	ble	.L6
	ldr	r3, [r2]
	ldr	r1, .L19+8
	cmp	r3, r1
	beq	.L17
	and	r3, r3, #3
	cmp	r3, #1
	ldreq	r2, .L19+12
	ldreq	r3, [r5, #8]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r5, #8]
.L6:
	mov	r3, #0
	mov	r1, r5
	mov	r0, r6
	str	r3, [r5, #4]
	bl	nic_send_packet
	subs	r4, r0, #0
	bne	.L18
	ldr	r3, .L19+16
	ldr	r0, [r6]
	ldr	r3, [r3]
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	bl	WARN_ON
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r1, #0
	mov	r0, r7
	bl	spin_lock_irqsave
	ldr	r3, [r6, #4]
	mov	r0, r7
	cmp	r3, #0
	strne	r5, [r3, #4]
	mov	r1, #0
	streq	r5, [r6, #8]
	str	r5, [r6, #4]
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r1, [r2, #4]
	cmp	r1, r3
	bne	.L6
	ldr	r3, [r2, #8]
	cmp	r3, r1
	bne	.L6
	ldr	r2, .L19+20
	ldr	r3, [r5, #8]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r5, #8]
	b	.L6
.L16:
	mov	r0, r7
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L19+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L20:
	.align	2
.L19:
	.word	ETH_HLEN
	.word	EIO
	.word	65535
	.word	fMP_DEST_MULTI
	.word	NUM_TCB
	.word	fMP_DEST_BROAD
	.word	ENOMEM
	.size	et131x_send_packet, .-et131x_send_packet
	.comm	fMP_DEST_MULTI,4,4
	.comm	fMP_DEST_BROAD,4,4
	.comm	NUM_TCB,4,4
	.comm	ETH_HLEN,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
