	.file	"extr_hysdn_net.c_net_send_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	net_send_packet, @function
net_send_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 16[rsi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	spin_lock_irq@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rcx, QWORD PTR 24[rbx]
	lea	rax, 1[rdx]
	cmp	rax, QWORD PTR MAX_SKB_BUFFERS[rip]
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR [rcx+rdx*8], rbp
	jl	.L2
	mov	QWORD PTR [rbx], 0
.L2:
	add	QWORD PTR 8[rbx], 1
	mov	rdi, rbx
	call	netif_trans_update@PLT
	mov	rax, QWORD PTR MAX_SKB_BUFFERS[rip]
	cmp	QWORD PTR 8[rbx], rax
	jge	.L7
	mov	rdi, r12
	call	spin_unlock_irq@PLT
	cmp	QWORD PTR 8[rbx], 3
	jle	.L8
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR NETDEV_TX_OK[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbx
	call	netif_stop_queue@PLT
	mov	rdi, r12
	call	spin_unlock_irq@PLT
	cmp	QWORD PTR 8[rbx], 3
	jg	.L4
.L8:
	mov	rdi, QWORD PTR [rbx]
	call	schedule_work@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR NETDEV_TX_OK[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	net_send_packet, .-net_send_packet
	.comm	NETDEV_TX_OK,4,4
	.comm	MAX_SKB_BUFFERS,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_hysdn_net.c_net_send_packet.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	net_send_packet, %function
net_send_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	add	r6, r1, #8
	ldr	r7, .L9
	mov	r0, r6
	bl	spin_lock_irq
	ldr	r3, [r4]
	ldr	r0, [r7]
	add	r2, r3, #1
	ldr	r1, [r4, #12]
	cmp	r2, r0
	str	r2, [r4]
	str	r5, [r1, r3, lsl #2]
	movge	r3, #0
	strge	r3, [r4]
	ldr	r3, [r4, #4]
	mov	r0, r4
	add	r3, r3, #1
	str	r3, [r4, #4]
	bl	netif_trans_update
	ldr	r3, [r7]
	ldr	r2, [r4, #4]
	cmp	r2, r3
	bge	.L7
.L3:
	mov	r0, r6
	bl	spin_unlock_irq
	ldr	r3, [r4, #4]
	cmp	r3, #3
	ble	.L8
.L4:
	ldr	r3, .L9+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r4
	bl	netif_stop_queue
	b	.L3
.L8:
	ldr	r0, [r4]
	bl	schedule_work
	b	.L4
.L10:
	.align	2
.L9:
	.word	MAX_SKB_BUFFERS
	.word	NETDEV_TX_OK
	.size	net_send_packet, .-net_send_packet
	.comm	NETDEV_TX_OK,4,4
	.comm	MAX_SKB_BUFFERS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
