	.file	"extr_8139cp.c_cp_get_ethtool_stats.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cp_get_ethtool_stats, @function
cp_get_ethtool_stats:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	rdx, rsp
	mov	esi, 52
	mov	rdi, QWORD PTR [rax]
	mov	r13, rax
	call	dma_alloc_coherent@PLT
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR [rsp]
	mov	r12, rax
	mov	rax, QWORD PTR StatsAddr[rip]
	mov	ecx, 32
	sar	esi, cl
	lea	rdi, 4[rax]
	call	cpw32@PLT
	mov	rbx, QWORD PTR [rsp]
	mov	edi, 32
	call	DMA_BIT_MASK@PLT
	mov	esi, DWORD PTR DumpStats[rip]
	mov	rdi, QWORD PTR StatsAddr[rip]
	and	eax, ebx
	mov	ebx, 1000
	or	esi, eax
	call	cpw32@PLT
	mov	rdi, QWORD PTR StatsAddr[rip]
	call	cpr32@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, 10
	call	udelay@PLT
	sub	ebx, 1
	je	.L4
.L5:
	mov	rdi, QWORD PTR StatsAddr[rip]
	call	cpr32@PLT
	test	DWORD PTR DumpStats[rip], eax
	jne	.L13
.L4:
	mov	rdi, QWORD PTR StatsAddr[rip]
	xor	esi, esi
	call	cpw32@PLT
	mov	rax, QWORD PTR StatsAddr[rip]
	xor	esi, esi
	lea	rdi, 4[rax]
	call	cpw32@PLT
	mov	rdi, QWORD PTR StatsAddr[rip]
	call	cpr32@PLT
	mov	edi, DWORD PTR 48[r12]
	call	le64_to_cpu@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	edi, DWORD PTR 44[r12]
	call	le64_to_cpu@PLT
	mov	DWORD PTR 4[rbp], eax
	mov	edi, DWORD PTR 40[r12]
	call	le64_to_cpu@PLT
	mov	DWORD PTR 8[rbp], eax
	mov	edi, DWORD PTR 36[r12]
	call	le32_to_cpu@PLT
	mov	DWORD PTR 12[rbp], eax
	mov	edi, DWORD PTR 32[r12]
	call	le16_to_cpu@PLT
	mov	DWORD PTR 16[rbp], eax
	mov	edi, DWORD PTR 28[r12]
	call	le16_to_cpu@PLT
	mov	DWORD PTR 20[rbp], eax
	mov	edi, DWORD PTR 24[r12]
	call	le32_to_cpu@PLT
	mov	DWORD PTR 24[rbp], eax
	mov	edi, DWORD PTR 20[r12]
	call	le32_to_cpu@PLT
	mov	DWORD PTR 28[rbp], eax
	mov	edi, DWORD PTR 16[r12]
	call	le64_to_cpu@PLT
	mov	DWORD PTR 32[rbp], eax
	mov	edi, DWORD PTR 12[r12]
	call	le64_to_cpu@PLT
	mov	DWORD PTR 36[rbp], eax
	mov	edi, DWORD PTR 8[r12]
	call	le32_to_cpu@PLT
	mov	DWORD PTR 40[rbp], eax
	mov	edi, DWORD PTR 4[r12]
	call	le16_to_cpu@PLT
	mov	DWORD PTR 44[rbp], eax
	mov	edi, DWORD PTR [r12]
	call	le16_to_cpu@PLT
	xor	edi, edi
	cmp	DWORD PTR CP_NUM_STATS[rip], 14
	mov	DWORD PTR 48[rbp], eax
	mov	eax, DWORD PTR 8[r13]
	setne	dil
	mov	DWORD PTR 52[rbp], eax
	call	BUG_ON@PLT
	mov	rcx, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 0[r13]
	mov	rdx, r12
	mov	esi, 52
	call	dma_free_coherent@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cp_get_ethtool_stats, .-cp_get_ethtool_stats
	.comm	StatsAddr,8,8
	.comm	GFP_KERNEL,4,4
	.comm	DumpStats,4,4
	.comm	CP_NUM_STATS,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_8139cp.c_cp_get_ethtool_stats.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cp_get_ethtool_stats, %function
cp_get_ethtool_stats:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L15
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r2
	bl	netdev_priv
	ldr	r3, .L15+4
	mov	r8, r0
	mov	r2, sp
	mov	r1, #52
	ldr	r0, [r0]
	ldr	r3, [r3]
	bl	dma_alloc_coherent
	subs	r6, r0, #0
	beq	.L1
	mov	r4, #32
	ldr	r5, .L15+8
	ldr	r1, [sp]
	ldr	r0, [r5]
	asr	r1, r1, r4
	add	r0, r0, #4
	bl	cpw32
	mov	r0, r4
	ldr	r4, [r5]
	bl	DMA_BIT_MASK
	ldr	r9, .L15+12
	ldr	r3, [sp]
	ldr	r1, [r9]
	and	r3, r3, r0
	orr	r1, r3, r1
	mov	r0, r4
	bl	cpw32
	ldr	r0, [r5]
	bl	cpr32
	mov	r4, #1000
	b	.L5
.L13:
	mov	r0, #10
	bl	udelay
	subs	r4, r4, #1
	beq	.L4
.L5:
	ldr	r0, [r5]
	bl	cpr32
	ldr	r3, [r9]
	tst	r0, r3
	bne	.L13
.L4:
	mov	r1, #0
	ldr	r0, [r5]
	bl	cpw32
	ldr	r0, [r5]
	mov	r1, #0
	add	r0, r0, #4
	bl	cpw32
	ldr	r0, [r5]
	bl	cpr32
	ldr	r0, [r6, #48]
	bl	le64_to_cpu
	str	r0, [r7]
	ldr	r0, [r6, #44]
	bl	le64_to_cpu
	str	r0, [r7, #4]
	ldr	r0, [r6, #40]
	bl	le64_to_cpu
	str	r0, [r7, #8]
	ldr	r0, [r6, #36]
	bl	le32_to_cpu
	str	r0, [r7, #12]
	ldr	r0, [r6, #32]
	bl	le16_to_cpu
	str	r0, [r7, #16]
	ldr	r0, [r6, #28]
	bl	le16_to_cpu
	str	r0, [r7, #20]
	ldr	r0, [r6, #24]
	bl	le32_to_cpu
	str	r0, [r7, #24]
	ldr	r0, [r6, #20]
	bl	le32_to_cpu
	str	r0, [r7, #28]
	ldr	r0, [r6, #16]
	bl	le64_to_cpu
	str	r0, [r7, #32]
	ldr	r0, [r6, #12]
	bl	le64_to_cpu
	str	r0, [r7, #36]
	ldr	r0, [r6, #8]
	bl	le32_to_cpu
	str	r0, [r7, #40]
	ldr	r0, [r6, #4]
	bl	le16_to_cpu
	str	r0, [r7, #44]
	ldr	r0, [r6]
	bl	le16_to_cpu
	ldr	r2, .L15+16
	str	r0, [r7, #48]
	ldr	r0, [r2]
	ldr	r3, [r8, #4]
	subs	r0, r0, #14
	str	r3, [r7, #52]
	movne	r0, #1
	bl	BUG_ON
	mov	r2, r6
	mov	r1, #52
	ldr	r0, [r8]
	ldr	r3, [sp]
	bl	dma_free_coherent
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	GFP_KERNEL
	.word	StatsAddr
	.word	DumpStats
	.word	CP_NUM_STATS
	.size	cp_get_ethtool_stats, .-cp_get_ethtool_stats
	.comm	StatsAddr,4,4
	.comm	GFP_KERNEL,4,4
	.comm	DumpStats,4,4
	.comm	CP_NUM_STATS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
