	.file	"extr_mac89x0.c_net_send_packet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"sent %d byte packet of type %x\n"
	.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
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	netdev_priv@PLT
	mov	rdx, QWORD PTR ETH_ALEN[rip]
	mov	r8, QWORD PTR 8[rbp]
	lea	rcx, .LC0[rip]
	mov	r12, rax
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR tx_queued[rip]
	mov	rdi, r12
	mov	r9d, DWORD PTR [rax+rdx*8]
	sal	r9d, 8
	or	r9d, DWORD PTR 4[rax+rdx*8]
	mov	rdx, rbx
	call	netif_dbg@PLT
	xor	edi, edi
	call	local_irq_save@PLT
	mov	rdi, rbx
	call	netif_stop_queue@PLT
	mov	rdx, QWORD PTR [r12]
	mov	esi, DWORD PTR PP_TxCMD[rip]
	mov	rdi, rbx
	call	writereg@PLT
	mov	esi, DWORD PTR PP_TxLength[rip]
	mov	rdx, QWORD PTR 8[rbp]
	mov	rdi, rbx
	call	writereg@PLT
	mov	esi, DWORD PTR PP_BusST[rip]
	mov	rdi, rbx
	call	readreg@PLT
	test	DWORD PTR READY_FOR_TX_NOW[rip], eax
	je	.L6
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	mov	rsi, QWORD PTR PP_TxFrame[rip]
	add	rsi, QWORD PTR [rbx]
	lea	rdx, 1[rax]
	call	skb_copy_from_linear_data@PLT
	xor	edi, edi
	call	local_irq_restore@PLT
	mov	rdi, rbp
	call	dev_kfree_skb@PLT
	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
.L6:
	.cfi_restore_state
	xor	edi, edi
	call	local_irq_restore@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR NETDEV_TX_BUSY[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	tx_queued,4,4
	.comm	READY_FOR_TX_NOW,4,4
	.comm	PP_TxLength,4,4
	.comm	PP_TxFrame,8,8
	.comm	PP_TxCMD,4,4
	.comm	PP_BusST,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	NETDEV_TX_BUSY,4,4
	.comm	ETH_ALEN,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_mac89x0.c_net_send_packet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sent %d byte packet of type %x\012\000"
	.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, lr}
	mov	r5, r0
	sub	sp, sp, #8
	mov	r0, r1
	mov	r4, r1
	bl	netdev_priv
	mov	r6, r0
	ldr	r3, .L7
	ldr	r2, [r5]
	ldr	r1, [r3]
	ldr	ip, [r5, #4]
	add	r3, r2, r1, lsl #3
	ldr	r3, [r3, #4]
	ldr	r2, [r2, r1, lsl #3]
	ldr	r1, .L7+4
	orr	r3, r3, r2, lsl #8
	str	ip, [sp]
	str	r3, [sp, #4]
	mov	r2, r4
	ldr	r1, [r1]
	ldr	r3, .L7+8
	bl	netif_dbg
	mov	r0, #0
	bl	local_irq_save
	mov	r0, r4
	bl	netif_stop_queue
	ldr	r3, .L7+12
	ldr	r2, [r6]
	ldr	r1, [r3]
	mov	r0, r4
	bl	writereg
	ldr	r3, .L7+16
	ldr	r2, [r5, #4]
	ldr	r1, [r3]
	mov	r0, r4
	bl	writereg
	ldr	r3, .L7+20
	mov	r0, r4
	ldr	r1, [r3]
	bl	readreg
	ldr	r3, .L7+24
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L6
	ldr	r3, .L7+28
	ldr	r1, [r4]
	ldr	r3, [r3]
	ldr	r2, [r5, #4]
	add	r1, r1, r3
	add	r2, r2, #1
	mov	r0, r5
	bl	skb_copy_from_linear_data
	mov	r0, #0
	bl	local_irq_restore
	mov	r0, r5
	bl	dev_kfree_skb
	ldr	r3, .L7+32
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, #0
	bl	local_irq_restore
	ldr	r3, .L7+36
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	ETH_ALEN
	.word	tx_queued
	.word	.LC0
	.word	PP_TxCMD
	.word	PP_TxLength
	.word	PP_BusST
	.word	READY_FOR_TX_NOW
	.word	PP_TxFrame
	.word	NETDEV_TX_OK
	.word	NETDEV_TX_BUSY
	.size	net_send_packet, .-net_send_packet
	.comm	tx_queued,4,4
	.comm	READY_FOR_TX_NOW,4,4
	.comm	PP_TxLength,4,4
	.comm	PP_TxFrame,4,4
	.comm	PP_TxCMD,4,4
	.comm	PP_BusST,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	NETDEV_TX_BUSY,4,4
	.comm	ETH_ALEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
