	.file	"extr_qlcnic_io.c_qlcnic_xmit_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qlcnic_xmit_frame
	.type	qlcnic_xmit_frame, @function
qlcnic_xmit_frame:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	call	netdev_priv@PLT
	mov	edi, DWORD PTR __QLCNIC_DEV_UP[rip]
	mov	r14, QWORD PTR 56[rax]
	mov	rbx, rax
	lea	rsi, 52[rbx]
	mov	rax, QWORD PTR [r14]
	mov	QWORD PTR 32[rsp], rax
	call	test_bit@PLT
	test	eax, eax
	je	.L35
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR QLCNIC_MACSPOOF[rip], eax
	je	.L8
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 48[rbx]
	mov	edi, DWORD PTR [rax]
	call	compare_ether_addr@PLT
	test	rax, rax
	jne	.L14
.L8:
	mov	rdi, rbp
	call	skb_shinfo@PLT
	mov	rdi, rbp
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	mov	DWORD PTR 20[rsp], eax
	call	skb_is_gso@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR QLCNIC_MAX_FRAGS_PER_TX[rip]
	mov	ecx, DWORD PTR 20[rsp]
	cmp	eax, ecx
	jge	.L6
	mov	edx, ecx
	sub	edx, eax
	test	edx, edx
	jle	.L9
	mov	rax, r12
	mov	QWORD PTR 8[rsp], rbx
	mov	r12d, r15d
	xor	r13d, r13d
	mov	ebx, ecx
	mov	r15, rax
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	skb_shinfo@PLT
	mov	rax, QWORD PTR 8[rax]
	add	r12d, DWORD PTR [rax+r13*8]
	mov	eax, ebx
	add	r13, 1
	sub	eax, DWORD PTR QLCNIC_MAX_FRAGS_PER_TX[rip]
	cmp	eax, r13d
	jg	.L10
	mov	rax, r15
	mov	rbx, QWORD PTR 8[rsp]
	mov	r15d, r12d
	mov	r12, rax
.L9:
	mov	esi, r15d
	mov	rdi, rbp
	call	__pskb_pull_tail@PLT
	test	eax, eax
	je	.L14
	mov	rdi, rbp
	call	skb_shinfo@PLT
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	mov	DWORD PTR 20[rsp], eax
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, r14
	call	qlcnic_tx_avail@PLT
	xor	edi, edi
	cmp	rax, QWORD PTR TX_STOP_THRESH[rip]
	setle	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L36
.L11:
	mov	r13, QWORD PTR 8[r14]
	mov	rax, QWORD PTR 16[r14]
	mov	r12, QWORD PTR 40[rbx]
	lea	rdx, 0[r13+r13*2]
	lea	r15, [rax+rdx*8]
	mov	rax, QWORD PTR 24[r14]
	lea	rdx, 0[r13+r13*4]
	mov	QWORD PTR 56[rsp], r12
	mov	QWORD PTR 24[rsp], r15
	lea	rax, [rax+rdx*8]
	mov	rdi, rax
	mov	QWORD PTR 40[rsp], rax
	call	qlcnic_clear_cmddesc@PLT
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, r12
	call	qlcnic_map_tx_skb@PLT
	test	rax, rax
	je	.L13
	add	DWORD PTR 16[rbx], 1
.L14:
	add	DWORD PTR 4[rbx], 1
	mov	rdi, rbp
	call	dev_kfree_skb_any@PLT
	mov	eax, DWORD PTR NETDEV_TX_OK[rip]
	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
.L36:
	.cfi_restore_state
	mov	rdi, r12
	call	netif_stop_queue@PLT
	mov	rdi, r14
	call	qlcnic_tx_avail@PLT
	cmp	rax, QWORD PTR TX_STOP_THRESH[rip]
	jg	.L37
	add	DWORD PTR 20[rbx], 1
	mov	eax, DWORD PTR NETDEV_TX_BUSY[rip]
	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
.L35:
	.cfi_restore_state
	mov	rdi, r12
	call	netif_stop_queue@PLT
	mov	eax, DWORD PTR NETDEV_TX_BUSY[rip]
	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
.L37:
	.cfi_restore_state
	mov	rdi, r12
	call	netif_start_queue@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r15d, DWORD PTR 20[rsp]
	mov	rax, QWORD PTR 24[rsp]
	mov	r12, QWORD PTR 40[rsp]
	mov	rdx, QWORD PTR 0[rbp]
	mov	QWORD PTR 16[rax], rbp
	mov	esi, r15d
	mov	DWORD PTR [rax], r15d
	mov	rdi, r12
	call	qlcnic_set_tx_frags_len@PLT
	mov	esi, DWORD PTR 32[rbx]
	mov	rdi, r12
	call	qlcnic_set_tx_port@PLT
	test	r15d, r15d
	jle	.L16
	xor	eax, eax
	xor	edx, edx
	mov	QWORD PTR 64[rsp], rbx
	mov	r15, QWORD PTR 40[rsp]
	mov	QWORD PTR 72[rsp], rbp
	xor	r12d, r12d
	mov	rbx, rax
	mov	ebp, edx
	mov	QWORD PTR 48[rsp], r14
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L39:
	cmp	ebp, 1
	je	.L20
	call	cpu_to_le64@PLT
	mov	QWORD PTR 24[r15], rax
.L21:
	add	r12d, 1
	cmp	DWORD PTR 20[rsp], r12d
	je	.L38
.L22:
	mov	ebp, r12d
	and	ebp, 3
	jne	.L17
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, r13
	call	get_next_index@PLT
	mov	r14, QWORD PTR 48[rsp]
	lea	rcx, [rax+rax*4]
	mov	r13, rax
	mov	rax, QWORD PTR 24[r14]
	lea	r15, [rax+rcx*8]
	mov	rdi, r15
	call	qlcnic_clear_cmddesc@PLT
	mov	rdx, QWORD PTR 16[r14]
	lea	rax, 0[r13+r13*2]
	lea	rax, [rdx+rax*8]
	mov	QWORD PTR 16[rax], 0
.L17:
	add	rbx, 8
.L15:
	mov	rax, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR 32[r15]
	mov	r14, QWORD PTR 8[rax]
	movsx	rax, ebp
	lea	rsi, [rsi+rax*4]
	add	r14, rbx
	mov	QWORD PTR 8[rsp], rsi
	mov	edi, DWORD PTR 4[r14]
	call	cpu_to_le16@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	DWORD PTR [rsi], eax
	mov	edi, DWORD PTR [r14]
	cmp	ebp, 2
	je	.L18
	cmp	ebp, 3
	jne	.L39
	call	cpu_to_le64@PLT
	add	r12d, 1
	mov	QWORD PTR [r15], rax
	cmp	DWORD PTR 20[rsp], r12d
	jne	.L22
.L38:
	mov	rbx, QWORD PTR 64[rsp]
	mov	r14, QWORD PTR 48[rsp]
	mov	rbp, QWORD PTR 72[rsp]
.L16:
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, r13
	call	get_next_index@PLT
	mov	QWORD PTR 8[r14], rax
	xor	eax, eax
	call	smp_mb@PLT
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdi, rbx
	mov	rdx, rbp
	call	qlcnic_tx_pkt@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L40
	cmp	QWORD PTR 24[rbx], 0
	jne	.L41
.L24:
	mov	rax, QWORD PTR 0[rbp]
	add	DWORD PTR 8[rbx], 1
	mov	rdi, r14
	add	DWORD PTR 12[rbx], eax
	call	qlcnic_update_cmd_producer@PLT
	mov	eax, DWORD PTR NETDEV_TX_OK[rip]
	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
.L20:
	.cfi_restore_state
	call	cpu_to_le64@PLT
	mov	QWORD PTR 16[r15], rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L18:
	call	cpu_to_le64@PLT
	mov	QWORD PTR 8[r15], rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L41:
	mov	rsi, QWORD PTR 40[rsp]
	mov	rdx, rbp
	mov	rdi, rbx
	call	qlcnic_send_filter@PLT
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdx, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 56[rsp]
	mov	rsi, rbp
	call	qlcnic_unmap_buffers@PLT
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	qlcnic_xmit_frame, .-qlcnic_xmit_frame
	.comm	__QLCNIC_DEV_UP,4,4
	.comm	TX_STOP_THRESH,8,8
	.comm	QLCNIC_MAX_FRAGS_PER_TX,4,4
	.comm	QLCNIC_MACSPOOF,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	NETDEV_TX_BUSY,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_qlcnic_io.c_qlcnic_xmit_frame.c"
	.text
	.align	2
	.global	qlcnic_xmit_frame
	.syntax unified
	.arm
	.fpu softvfp
	.type	qlcnic_xmit_frame, %function
qlcnic_xmit_frame:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	sub	sp, sp, #28
	mov	r0, r1
	mov	r8, r1
	bl	netdev_priv
	ldr	r3, .L44
	ldr	r10, [r0, #44]
	add	r1, r0, #40
	mov	r5, r0
	ldr	r0, [r3]
	ldr	r3, [r10]
	str	r3, [sp, #4]
	bl	test_bit
	cmp	r0, #0
	beq	.L38
	ldr	r3, .L44+4
	ldr	r2, [r5]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L8
	ldr	r3, [r6, #4]
	ldr	r1, [r5, #36]
	ldr	r0, [r3]
	bl	compare_ether_addr
	cmp	r0, #0
	bne	.L14
.L8:
	mov	r0, r6
	bl	skb_shinfo
	ldr	r7, [r0]
	mov	r0, r6
	bl	skb_is_gso
	subs	r9, r0, #0
	add	r7, r7, #1
	bne	.L6
	ldr	fp, .L44+8
	ldr	r3, [fp]
	cmp	r3, r7
	bge	.L6
	sub	r3, r7, r3
	cmp	r3, #0
	ble	.L9
	mov	r4, r9
.L10:
	mov	r0, r6
	bl	skb_shinfo
	ldr	r3, [fp]
	ldr	r2, [r0, #4]
	sub	r3, r7, r3
	ldr	r2, [r2, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, r4
	add	r9, r9, r2
	bgt	.L10
.L9:
	mov	r1, r9
	mov	r0, r6
	bl	__pskb_pull_tail
	cmp	r0, #0
	beq	.L14
	mov	r0, r6
	bl	skb_shinfo
	ldr	r7, [r0]
	add	r7, r7, #1
.L6:
	mov	r0, r10
	bl	qlcnic_tx_avail
	ldr	r4, .L44+12
	ldr	r3, [r4]
	cmp	r0, r3
	movgt	r0, #0
	movle	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L39
.L11:
	ldr	r8, [r10, #4]
	ldr	r3, [r10, #12]
	add	r2, r8, r8, lsl #2
	add	r3, r3, r2, lsl #2
	ldr	r9, [r10, #8]
	mov	r0, r3
	str	r3, [sp, #8]
	add	r4, r8, r8, lsl #1
	ldr	r3, [r5, #32]
	add	fp, r9, r4, lsl #2
	str	fp, [sp]
	str	r3, [sp, #12]
	bl	qlcnic_clear_cmddesc
	mov	r2, fp
	mov	r1, r6
	ldr	r0, [sp, #12]
	bl	qlcnic_map_tx_skb
	subs	fp, r0, #0
	lsl	r4, r4, #2
	beq	.L13
	ldr	r3, [r5, #16]
	add	r3, r3, #1
	str	r3, [r5, #16]
.L14:
	ldr	r3, [r5, #4]
	mov	r0, r6
	add	r3, r3, #1
	str	r3, [r5, #4]
	bl	dev_kfree_skb_any
	ldr	r3, .L44+16
	ldr	r0, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	mov	r0, r8
	bl	netif_stop_queue
	mov	r0, r10
	bl	qlcnic_tx_avail
	ldr	r3, [r4]
	cmp	r0, r3
	bgt	.L40
	ldr	r2, .L44+20
	ldr	r3, [r5, #20]
	ldr	r0, [r2]
	add	r3, r3, #1
	str	r3, [r5, #20]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L38:
	mov	r0, r8
	bl	netif_stop_queue
	ldr	r3, .L44+20
	ldr	r0, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L40:
	mov	r0, r8
	bl	netif_start_queue
	b	.L11
.L13:
	ldr	r3, [sp]
	ldr	r2, [r6]
	str	r6, [r3, #8]
	str	r7, [r9, r4]
	ldr	r4, [sp, #8]
	mov	r1, r7
	mov	r0, r4
	bl	qlcnic_set_tx_frags_len
	mov	r0, r4
	ldr	r1, [r5, #28]
	bl	qlcnic_set_tx_port
	cmp	r7, #0
	ble	.L16
	mov	r4, fp
	ldr	r9, [sp, #8]
	str	r5, [sp, #16]
	str	r6, [sp, #20]
.L15:
	ldr	r3, [sp]
	ldr	r6, [r9, #16]
	ldr	r5, [r3, #4]
	add	r1, r5, r4, lsl #3
	ldr	r0, [r1, #4]
	bl	cpu_to_le16
	cmp	fp, #2
	str	r0, [r6, fp, lsl #2]
	lsl	r2, r4, #3
	beq	.L18
	cmp	fp, #3
	ldr	r0, [r5, r2]
	beq	.L19
	cmp	fp, #1
	beq	.L20
	bl	cpu_to_le64
	str	r0, [r9, #12]
.L21:
	add	r4, r4, #1
	cmp	r7, r4
	beq	.L41
.L22:
	ands	fp, r4, #3
	bne	.L15
	mov	r0, r8
	ldr	r1, [sp, #4]
	bl	get_next_index
	mov	r8, r0
	ldr	r9, [r10, #12]
	add	r3, r0, r0, lsl #2
	add	r9, r9, r3, lsl #2
	mov	r0, r9
	bl	qlcnic_clear_cmddesc
	ldr	r3, [r10, #8]
	add	r2, r8, r8, lsl #1
	add	r3, r3, r2, lsl #2
	str	fp, [r3, #8]
	b	.L15
.L20:
	bl	cpu_to_le64
	add	r4, r4, #1
	cmp	r7, r4
	str	r0, [r9, #8]
	bne	.L22
.L41:
	ldr	r5, [sp, #16]
	ldr	r6, [sp, #20]
.L16:
	ldr	r1, [sp, #4]
	mov	r0, r8
	bl	get_next_index
	str	r0, [r10, #4]
	bl	smp_mb
	mov	r2, r6
	ldr	r1, [sp, #8]
	mov	r0, r5
	bl	qlcnic_tx_pkt
	bl	unlikely
	cmp	r0, #0
	bne	.L42
	ldr	r3, [r5, #24]
	cmp	r3, #0
	bne	.L43
.L24:
	ldr	r1, [r6]
	ldr	r2, [r5, #12]
	ldr	r3, [r5, #8]
	add	r2, r2, r1
	add	r3, r3, #1
	str	r3, [r5, #8]
	mov	r0, r10
	str	r2, [r5, #12]
	bl	qlcnic_update_cmd_producer
	ldr	r3, .L44+16
	ldr	r0, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	bl	cpu_to_le64
	str	r0, [r9]
	b	.L21
.L18:
	ldr	r0, [r5, r4, lsl #3]
	bl	cpu_to_le64
	str	r0, [r9, #4]
	b	.L21
.L43:
	mov	r2, r6
	mov	r0, r5
	ldr	r1, [sp, #8]
	bl	qlcnic_send_filter
	b	.L24
.L42:
	mov	r1, r6
	ldr	r2, [sp]
	ldr	r0, [sp, #12]
	bl	qlcnic_unmap_buffers
	b	.L14
.L45:
	.align	2
.L44:
	.word	__QLCNIC_DEV_UP
	.word	QLCNIC_MACSPOOF
	.word	QLCNIC_MAX_FRAGS_PER_TX
	.word	TX_STOP_THRESH
	.word	NETDEV_TX_OK
	.word	NETDEV_TX_BUSY
	.size	qlcnic_xmit_frame, .-qlcnic_xmit_frame
	.comm	__QLCNIC_DEV_UP,4,4
	.comm	TX_STOP_THRESH,4,4
	.comm	QLCNIC_MAX_FRAGS_PER_TX,4,4
	.comm	QLCNIC_MACSPOOF,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	NETDEV_TX_BUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
