	.file	"extr_ksz884x.c_send_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	send_packet, @function
send_packet:
.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
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 48[rsp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	mov	rdi, r13
	mov	rbp, QWORD PTR 8[rax]
	mov	rbx, rax
	lea	rax, 8[rbp]
	mov	QWORD PTR 40[rsp], rax
	call	skb_shinfo@PLT
	cmp	DWORD PTR 8[rbp], 1
	mov	r12d, DWORD PTR [rax]
	jle	.L2
	mov	ecx, DWORD PTR [rbx]
	mov	eax, 1
	sal	eax, cl
	mov	DWORD PTR 12[rbp], eax
.L2:
	mov	eax, DWORD PTR 0[r13]
	mov	DWORD PTR 36[rsp], eax
	mov	rax, QWORD PTR 24[rbp]
	mov	rdi, rax
	mov	QWORD PTR 56[rsp], rax
	mov	QWORD PTR 64[rsp], rax
	call	DMA_BUFFER@PLT
	mov	rbx, rax
	test	r12d, r12d
	je	.L3
	mov	rdi, r13
	lea	r15, 24[rbp]
	call	skb_headlen@PLT
	mov	ecx, DWORD PTR PCI_DMA_TODEVICE[rip]
	mov	esi, DWORD PTR 16[r13]
	mov	DWORD PTR [rbx], eax
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, eax
	call	pci_map_single@PLT
	mov	rdi, QWORD PTR 64[rsp]
	mov	QWORD PTR 16[rbx], rax
	mov	rsi, rax
	call	set_tx_buf@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, QWORD PTR 64[rsp]
	call	set_tx_len@PLT
	lea	eax, -1[r12]
	xor	r12d, r12d
	sal	rax, 2
	mov	QWORD PTR 16[rsp], rax
	lea	rax, 64[rsp]
	mov	QWORD PTR 24[rsp], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, QWORD PTR 64[rsp]
	add	r12, 4
	call	release_desc@PLT
.L5:
	mov	rdi, r13
	call	skb_shinfo@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, r15
	mov	r14, QWORD PTR 8[rax]
	call	get_tx_pkt@PLT
	add	DWORD PTR 16[rbp], 1
	mov	rdi, QWORD PTR 64[rsp]
	add	r14, r12
	call	DMA_BUFFER@PLT
	mov	rdi, r14
	mov	rbx, rax
	call	skb_frag_size@PLT
	mov	ecx, DWORD PTR PCI_DMA_TODEVICE[rip]
	mov	rdi, r14
	mov	DWORD PTR [rbx], eax
	mov	DWORD PTR 12[rsp], ecx
	mov	DWORD PTR 32[rsp], eax
	call	skb_frag_address@PLT
	mov	ecx, DWORD PTR 12[rsp]
	mov	edx, DWORD PTR 32[rsp]
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, eax
	call	pci_map_single@PLT
	mov	rdi, QWORD PTR 64[rsp]
	mov	QWORD PTR 16[rbx], rax
	mov	rsi, rax
	call	set_tx_buf@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, QWORD PTR 64[rsp]
	call	set_tx_len@PLT
	cmp	r12, QWORD PTR 16[rsp]
	jne	.L11
	mov	rax, QWORD PTR 64[rsp]
	mov	rdi, QWORD PTR 56[rsp]
	mov	QWORD PTR 24[rbp], rax
	call	release_desc@PLT
.L6:
	mov	rax, QWORD PTR CHECKSUM_PARTIAL[rip]
	cmp	QWORD PTR 8[r13], rax
	jne	.L7
	movabs	rcx, 4294967297
	mov	rax, QWORD PTR 64[rsp]
	mov	QWORD PTR [rax], rcx
.L7:
	mov	QWORD PTR 8[rbx], r13
	mov	rdi, QWORD PTR 40[rsp]
	call	hw_send_pkt@PLT
	mov	rax, QWORD PTR 48[rsp]
	mov	ecx, DWORD PTR 36[rsp]
	add	DWORD PTR 4[rax], 1
	add	DWORD PTR [rax], ecx
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 88
	.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
.L3:
	.cfi_restore_state
	mov	edx, DWORD PTR 36[rsp]
	mov	esi, DWORD PTR 16[r13]
	mov	ecx, DWORD PTR PCI_DMA_TODEVICE[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	DWORD PTR [rax], edx
	call	pci_map_single@PLT
	mov	rdi, QWORD PTR 64[rsp]
	mov	QWORD PTR 16[rbx], rax
	mov	rsi, rax
	call	set_tx_buf@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, QWORD PTR 64[rsp]
	call	set_tx_len@PLT
	jmp	.L6
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	send_packet, .-send_packet
	.comm	PCI_DMA_TODEVICE,4,4
	.comm	CHECKSUM_PARTIAL,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_ksz884x.c_send_packet.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_packet, %function
send_packet:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L13
	sub	sp, sp, #28
	mov	r7, r0
	mov	r0, r1
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	netdev_priv
	mov	r4, r0
	ldr	r5, [r4, #4]
	mov	r0, r7
	bl	skb_shinfo
	ldr	r3, [r5, #4]
	ldr	r9, [r0]
	cmp	r3, #1
	add	r3, r5, #4
	str	r3, [sp, #8]
	movgt	r3, #1
	ldrgt	r2, [r4]
	lslgt	r3, r3, r2
	strgt	r3, [r5, #8]
	ldr	r3, [r5, #16]
	ldr	r2, [r7]
	mov	r0, r3
	str	r3, [sp, #12]
	str	r2, [sp, #4]
	str	r3, [sp, #16]
	bl	DMA_BUFFER
	cmp	r9, #0
	mov	r4, r0
	beq	.L3
	mov	r0, r7
	bl	skb_headlen
	mov	r10, r5
	ldr	r3, .L13+4
	mov	r2, r0
	ldr	r3, [r3]
	ldr	r1, [r7, #8]
	str	r0, [r4]
	ldr	r0, [r10], #16
	bl	pci_map_single
	mov	r1, r0
	ldr	r0, [sp, #16]
	str	r1, [r4, #8]
	bl	set_tx_buf
	ldr	r1, [r4]
	ldr	r0, [sp, #16]
	bl	set_tx_len
	mov	r6, #0
	b	.L5
.L11:
	ldr	r0, [sp, #16]
	bl	release_desc
.L5:
	mov	r0, r7
	bl	skb_shinfo
	add	r1, sp, #16
	ldr	fp, [r0, #4]
	mov	r0, r10
	bl	get_tx_pkt
	ldr	r3, [r5, #12]
	ldr	r0, [sp, #16]
	add	r3, r3, #1
	str	r3, [r5, #12]
	bl	DMA_BUFFER
	add	fp, fp, r6, lsl #2
	mov	r4, r0
	mov	r0, fp
	bl	skb_frag_size
	mov	r3, r0
	mov	r0, fp
	str	r3, [r4]
	ldr	fp, [r5]
	bl	skb_frag_address
	ldr	r3, .L13+4
	mov	r1, r0
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r0, fp
	bl	pci_map_single
	mov	r1, r0
	ldr	r0, [sp, #16]
	str	r1, [r4, #8]
	bl	set_tx_buf
	add	r6, r6, #1
	ldr	r1, [r4]
	ldr	r0, [sp, #16]
	bl	set_tx_len
	cmp	r9, r6
	bne	.L11
	ldr	r3, [sp, #16]
	ldr	r0, [sp, #12]
	str	r3, [r5, #16]
	bl	release_desc
.L6:
	ldr	r3, .L13+8
	ldr	r2, [r7, #4]
	ldr	r3, [r3]
	ldr	r0, [sp, #8]
	cmp	r2, r3
	moveq	r2, #1
	ldreq	r3, [sp, #16]
	streq	r2, [r3]
	streq	r2, [r3, #4]
	str	r7, [r4, #4]
	bl	hw_send_pkt
	ldr	r3, [r8]
	ldr	r1, [sp, #4]
	ldr	r2, [r8, #4]
	add	r3, r3, r1
	add	r2, r2, #1
	str	r3, [r8]
	ldr	r3, .L13
	str	r2, [r8, #4]
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r2, [sp, #4]
	ldr	r3, .L13+4
	str	r2, [r0]
	ldr	r3, [r3]
	ldr	r1, [r7, #8]
	ldr	r0, [r5]
	bl	pci_map_single
	mov	r1, r0
	ldr	r0, [sp, #16]
	str	r1, [r4, #8]
	bl	set_tx_buf
	ldr	r1, [r4]
	ldr	r0, [sp, #16]
	bl	set_tx_len
	b	.L6
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	PCI_DMA_TODEVICE
	.word	CHECKSUM_PARTIAL
	.size	send_packet, .-send_packet
	.comm	PCI_DMA_TODEVICE,4,4
	.comm	CHECKSUM_PARTIAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
