	.file	"extr_slicoss.c_slic_xmit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"BUG! not enough tx LEs left: %u\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"failed to map tx buffer\n"
	.text
	.p2align 4
	.type	slic_xmit, @function
slic_xmit:
.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, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	netdev_priv@PLT
	lea	rbx, 8[rax]
	mov	rbp, rax
	mov	rdi, rbx
	call	slic_get_free_tx_descs@PLT
	xor	edi, edi
	cmp	rax, QWORD PTR SLIC_MAX_REQ_TX_DESCS[rip]
	setl	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L8
	mov	rdi, r12
	call	skb_headlen@PLT
	mov	esi, DWORD PTR [r12]
	mov	rdi, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
	mov	edx, eax
	mov	r14d, eax
	call	dma_map_single@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	esi, eax
	mov	r15d, eax
	call	dma_mapping_error@PLT
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR map_addr[rip]
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 24[rbp]
	lea	rcx, [rax+rdx*8]
	mov	edx, r15d
	mov	QWORD PTR 16[rcx], r12
	mov	rdi, rcx
	mov	QWORD PTR 8[rsp], rcx
	call	dma_unmap_addr_set@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR map_len[rip]
	mov	edx, r14d
	mov	rdi, rcx
	call	dma_unmap_len_set@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	edi, r14d
	mov	r12, QWORD PTR 8[rcx]
	call	cpu_to_le32@PLT
	mov	edi, r15d
	mov	QWORD PTR 24[r12], rax
	call	lower_32_bits@PLT
	mov	edi, eax
	call	cpu_to_le32@PLT
	mov	edi, r15d
	mov	QWORD PTR 16[r12], rax
	call	upper_32_bits@PLT
	mov	edi, eax
	call	cpu_to_le32@PLT
	mov	edi, r14d
	mov	QWORD PTR 8[r12], rax
	call	cpu_to_le32@PLT
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, QWORD PTR 8[rbp]
	mov	QWORD PTR [r12], rax
	call	slic_next_queue_idx@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	QWORD PTR 8[rbp], rax
	mov	edi, DWORD PTR [rcx]
	call	lower_32_bits@PLT
	mov	r12d, eax
	xor	eax, eax
	call	wmb@PLT
	mov	esi, DWORD PTR SLIC_REG_CBAR[rip]
	mov	edx, r12d
	mov	rdi, rbp
	or	edx, 1
	call	slic_write@PLT
	mov	rdi, rbx
	call	slic_get_free_tx_descs@PLT
	cmp	rax, QWORD PTR SLIC_MAX_REQ_TX_DESCS[rip]
	jl	.L10
.L5:
	mov	eax, DWORD PTR NETDEV_TX_OK[rip]
	add	rsp, 24
	.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
.L9:
	.cfi_restore_state
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	netdev_err@PLT
	mov	rdi, r12
	call	dev_kfree_skb_any@PLT
	mov	eax, DWORD PTR NETDEV_TX_OK[rip]
	add	rsp, 24
	.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
.L8:
	.cfi_restore_state
	mov	rdi, rbx
	call	slic_get_free_tx_descs@PLT
	mov	rdi, r13
	lea	rsi, .LC0[rip]
	mov	rdx, rax
	xor	eax, eax
	call	netdev_err@PLT
	mov	eax, DWORD PTR NETDEV_TX_BUSY[rip]
	add	rsp, 24
	.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
.L10:
	.cfi_restore_state
	mov	rdi, r13
	call	netif_stop_queue@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	slic_xmit, .-slic_xmit
	.comm	map_len,4,4
	.comm	map_addr,4,4
	.comm	SLIC_REG_CBAR,4,4
	.comm	SLIC_MAX_REQ_TX_DESCS,8,8
	.comm	NETDEV_TX_OK,4,4
	.comm	NETDEV_TX_BUSY,4,4
	.comm	DMA_TO_DEVICE,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_slicoss.c_slic_xmit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BUG! not enough tx LEs left: %u\012\000"
	.align	2
.LC1:
	.ascii	"failed to map tx buffer\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	slic_xmit, %function
slic_xmit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	sub	sp, sp, #12
	mov	r0, r1
	mov	r6, r1
	bl	netdev_priv
	add	r9, r0, #4
	mov	r4, r0
	mov	r0, r9
	bl	slic_get_free_tx_descs
	ldr	r10, .L11
	ldr	r3, [r10]
	cmp	r0, r3
	movge	r0, #0
	movlt	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L8
	mov	r0, r5
	bl	skb_headlen
	ldr	r3, .L11+4
	mov	r2, r0
	ldr	r3, [r3]
	ldr	r1, [r5]
	mov	r7, r0
	ldr	r0, [r4]
	bl	dma_map_single
	mov	r8, r0
	ldr	r0, [r4]
	mov	r1, r8
	bl	dma_mapping_error
	cmp	r0, #0
	bne	.L9
	ldr	ip, [r4, #4]
	ldr	r3, [r4, #12]
	ldr	r2, .L11+8
	add	ip, ip, ip, lsl #1
	add	fp, r3, ip, lsl #2
	ldr	r1, [r2]
	lsl	ip, ip, #2
	mov	r2, r8
	str	r5, [fp, #8]
	mov	r0, fp
	str	ip, [sp]
	str	r3, [sp, #4]
	bl	dma_unmap_addr_set
	ldr	r2, .L11+12
	mov	r0, fp
	ldr	r1, [r2]
	mov	r2, r7
	bl	dma_unmap_len_set
	mov	r0, r7
	ldr	r5, [fp, #4]
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r8
	str	r3, [r5, #12]
	bl	lower_32_bits
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r8
	str	r3, [r5, #8]
	bl	upper_32_bits
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r7
	str	r3, [r5, #4]
	bl	cpu_to_le32
	ldr	r1, [r4, #8]
	str	r0, [r5]
	ldr	r0, [r4, #4]
	bl	slic_next_queue_idx
	mov	r3, r0
	ldr	ip, [sp]
	ldr	r2, [sp, #4]
	ldr	r0, [r2, ip]
	str	r3, [r4, #4]
	bl	lower_32_bits
	mov	r5, r0
	bl	wmb
	ldr	r3, .L11+16
	orr	r2, r5, #1
	ldr	r1, [r3]
	mov	r0, r4
	bl	slic_write
	mov	r0, r9
	bl	slic_get_free_tx_descs
	ldr	r3, [r10]
	cmp	r0, r3
	blt	.L10
.L5:
	ldr	r3, .L11+20
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r1, .L11+24
	mov	r0, r6
	bl	netdev_err
	mov	r0, r5
	bl	dev_kfree_skb_any
	ldr	r3, .L11+20
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r0, r9
	bl	slic_get_free_tx_descs
	ldr	r1, .L11+28
	mov	r2, r0
	mov	r0, r6
	bl	netdev_err
	ldr	r3, .L11+32
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	mov	r0, r6
	bl	netif_stop_queue
	b	.L5
.L12:
	.align	2
.L11:
	.word	SLIC_MAX_REQ_TX_DESCS
	.word	DMA_TO_DEVICE
	.word	map_addr
	.word	map_len
	.word	SLIC_REG_CBAR
	.word	NETDEV_TX_OK
	.word	.LC1
	.word	.LC0
	.word	NETDEV_TX_BUSY
	.size	slic_xmit, .-slic_xmit
	.comm	map_len,4,4
	.comm	map_addr,4,4
	.comm	SLIC_REG_CBAR,4,4
	.comm	SLIC_MAX_REQ_TX_DESCS,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	NETDEV_TX_BUSY,4,4
	.comm	DMA_TO_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
