	.file	"extr_gemini.c_gmac_clean_txq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gmac_clean_txq, @function
gmac_clean_txq:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	DWORD PTR 12[rsp], edx
	call	netdev_priv@PLT
	mov	r14d, DWORD PTR 0[r13]
	mov	ecx, DWORD PTR [rax]
	mov	r12, rax
	mov	eax, 1
	sal	eax, cl
	sub	eax, 1
	mov	DWORD PTR 24[rsp], eax
	cmp	r14d, ebx
	je	.L1
	mov	rax, QWORD PTR 48[r12]
	mov	QWORD PTR 40[rsp], r12
	mov	DWORD PTR 48[rsp], 0
	mov	QWORD PTR 16[rsp], rax
	lea	rax, 32[r12]
	mov	r12d, r14d
	mov	DWORD PTR 52[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	mov	DWORD PTR 28[rsp], 0
	mov	QWORD PTR 56[rsp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	lea	r9d, 1[r12]
	and	r9d, DWORD PTR 24[rsp]
	mov	r12d, r9d
	test	DWORD PTR SOF_BIT[rip], ebx
	je	.L4
	test	r15d, r15d
	je	.L23
	movzx	ebx, WORD PTR 4[rsp]
	mov	ebp, DWORD PTR 8[rsp]
	and	ebp, DWORD PTR TSS_CHECKUM_ENABLE[rip]
	add	DWORD PTR 48[rsp], 1
	mov	rcx, QWORD PTR [r14]
	add	QWORD PTR 32[rsp], rcx
	cmp	ebp, 1
	sbb	DWORD PTR 28[rsp], -1
	sub	bx, 1
	je	.L4
	movzx	eax, WORD PTR TX_MAX_FRAGS[rip]
	mov	r15, QWORD PTR 56[rsp]
	cmp	ax, bx
	lea	edx, -1[rax]
	mov	rdi, r15
	cmovbe	ebx, edx
	call	u64_stats_update_begin@PLT
	mov	rax, QWORD PTR 40[rsp]
	mov	rdi, r15
	movzx	ebx, bx
	mov	rax, QWORD PTR 40[rax]
	add	DWORD PTR [rax+rbx*4], 1
	call	u64_stats_update_end@PLT
.L4:
	cmp	DWORD PTR 12[rsp], r12d
	je	.L24
.L8:
	mov	ebp, r12d
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
	mov	r8, rbp
	sal	r8, 5
	add	r8, QWORD PTR 16[r13]
	mov	eax, DWORD PTR 16[r8]
	mov	edx, DWORD PTR 24[r8]
	mov	r14, r8
	mov	esi, DWORD PTR 12[r8]
	mov	ebx, DWORD PTR 8[r8]
	mov	DWORD PTR 4[rsp], eax
	mov	eax, DWORD PTR [r8]
	mov	r15d, DWORD PTR 20[r8]
	mov	DWORD PTR 8[rsp], eax
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rax]
	call	dma_unmap_single@PLT
	test	DWORD PTR EOF_BIT[rip], ebx
	je	.L3
	mov	rax, QWORD PTR 8[r13]
	mov	edi, DWORD PTR [rax+rbp*4]
	call	dev_kfree_skb@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	add	DWORD PTR 52[rsp], 1
	cmp	DWORD PTR 12[rsp], r12d
	jne	.L8
.L24:
	mov	r12, QWORD PTR 40[rsp]
	lea	rbp, 8[r12]
	mov	rdi, rbp
	call	u64_stats_update_begin@PLT
	mov	eax, DWORD PTR 52[rsp]
	add	DWORD PTR 16[r12], eax
	mov	rdi, rbp
	mov	eax, DWORD PTR 48[rsp]
	add	DWORD PTR 20[r12], eax
	mov	rax, QWORD PTR 32[rsp]
	add	QWORD PTR 24[r12], rax
	mov	eax, DWORD PTR 28[rsp]
	add	DWORD PTR 4[r12], eax
	call	u64_stats_update_end@PLT
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR 0[r13], eax
.L1:
	add	rsp, 72
	.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
	.cfi_endproc
.LFE0:
	.size	gmac_clean_txq, .-gmac_clean_txq
	.comm	TX_MAX_FRAGS,2,2
	.comm	TSS_CHECKUM_ENABLE,4,4
	.comm	SOF_BIT,4,4
	.comm	EOF_BIT,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_gemini.c_gmac_clean_txq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gmac_clean_txq, %function
gmac_clean_txq:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #52
	mov	r5, r2
	mov	r4, r1
	str	r2, [sp, #12]
	str	r1, [sp, #4]
	bl	netdev_priv
	mvn	r2, #0
	ldr	r3, [r0]
	ldr	r4, [r4]
	mvn	r3, r2, lsl r3
	cmp	r4, r5
	str	r3, [sp, #16]
	beq	.L1
	mov	r3, #0
	str	r3, [sp, #24]
	str	r3, [sp, #36]
	str	r3, [sp, #20]
	str	r3, [sp, #32]
	ldr	r3, [r0, #32]
	ldr	fp, .L26
	str	r3, [sp, #28]
	add	r3, r0, #24
	ldr	r10, .L26+4
	str	r3, [sp, #44]
	str	r0, [sp, #40]
	b	.L8
.L3:
	ldr	r3, [r10]
	add	r4, r4, #1
	tst	r7, r3
	ldr	r3, [sp, #16]
	and	r4, r4, r3
	beq	.L4
	cmp	r8, #0
	beq	.L24
	ldr	r3, .L26+8
	ldr	r2, [r3]
	ldr	r3, [r5, r6, lsl #3]
	tst	r9, r2
	ldr	r2, [sp, #20]
	add	r3, r2, r3
	str	r3, [sp, #20]
	ldr	r3, [sp, #24]
	add	r3, r3, #1
	str	r3, [sp, #24]
	ldrne	r3, [sp, #32]
	addne	r3, r3, #1
	strne	r3, [sp, #32]
	ldr	r3, [sp, #8]
	sub	r5, r3, #1
	lsl	r5, r5, #16
	lsr	r5, r5, #16
	cmp	r5, #0
	beq	.L4
	ldr	r3, .L26+12
	ldr	r6, [sp, #44]
	ldrh	r3, [r3]
	mov	r0, r6
	cmp	r3, r5
	subls	r5, r3, #1
	lslls	r5, r5, #16
	lsrls	r5, r5, #16
	bl	u64_stats_update_begin
	ldr	r3, [sp, #40]
	mov	r0, r6
	ldr	r2, [r3, #28]
	ldr	r3, [r2, r5, lsl #2]
	add	r3, r3, #1
	str	r3, [r2, r5, lsl #2]
	bl	u64_stats_update_end
.L4:
	ldr	r3, [sp, #12]
	cmp	r3, r4
	beq	.L25
.L8:
	ldr	r3, [sp, #4]
	add	r6, r4, r4, lsl #1
	ldr	r5, [r3, #8]
	ldr	r0, [sp, #28]
	add	ip, r5, r6, lsl #3
	ldr	r3, .L26+16
	ldr	lr, [ip, #12]
	ldr	r3, [r3]
	ldr	r2, [ip, #20]
	ldr	r1, [ip, #8]
	ldr	r0, [r0]
	ldr	r7, [ip, #4]
	ldr	r8, [ip, #16]
	ldr	r9, [r5, r6, lsl #3]
	str	lr, [sp, #8]
	bl	dma_unmap_single
	ldr	r3, [fp]
	tst	r7, r3
	beq	.L3
	ldr	r3, [sp, #4]
	ldr	r3, [r3, #4]
	ldr	r0, [r3, r4, lsl #2]
	bl	dev_kfree_skb
	b	.L3
.L24:
	ldr	r3, [sp, #36]
	add	r3, r3, #1
	str	r3, [sp, #36]
	ldr	r3, [sp, #12]
	cmp	r3, r4
	bne	.L8
.L25:
	ldr	r9, [sp, #40]
	add	r4, r9, #8
	mov	r0, r4
	bl	u64_stats_update_begin
	ldr	ip, [r9, #12]
	ldr	r3, [sp, #36]
	ldr	r1, [r9, #16]
	ldr	r2, [r9, #20]
	ldr	r0, [sp, #20]
	add	ip, ip, r3
	ldr	r3, [sp, #24]
	add	r2, r2, r0
	add	r1, r1, r3
	ldr	r0, [sp, #32]
	ldr	r3, [r9, #4]
	str	r2, [r9, #20]
	add	r3, r3, r0
	str	r3, [r9, #4]
	mov	r0, r4
	str	ip, [r9, #12]
	str	r1, [r9, #16]
	bl	u64_stats_update_end
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #12]
	str	r2, [r3]
.L1:
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	.align	2
.L26:
	.word	EOF_BIT
	.word	SOF_BIT
	.word	TSS_CHECKUM_ENABLE
	.word	TX_MAX_FRAGS
	.word	DMA_TO_DEVICE
	.size	gmac_clean_txq, .-gmac_clean_txq
	.comm	TX_MAX_FRAGS,2,2
	.comm	TSS_CHECKUM_ENABLE,4,4
	.comm	SOF_BIT,4,4
	.comm	EOF_BIT,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
