	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp_get_ethtool_stats
_cp_get_ethtool_stats:                  ## @cp_get_ethtool_stats
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movl	$52, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_StatsAddr@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	$4, %rdi
	callq	_cpw32
	movq	(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %ebx
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	andl	%eax, %ebx
	movq	_DumpStats@GOTPCREL(%rip), %r12
	orl	(%r12), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_cpw32
	movq	(%r14), %rdi
	callq	_cpr32
	movl	$1000, %ebx                     ## imm = 0x3E8
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	callq	_cpr32
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_2
LBB0_4:
	movq	(%r14), %rdi
	xorl	%esi, %esi
	callq	_cpw32
	movq	(%r14), %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	callq	_cpw32
	movq	(%r14), %rdi
	callq	_cpr32
	movl	48(%r13), %edi
	callq	_le64_to_cpu
	movl	%eax, (%r15)
	movl	44(%r13), %edi
	callq	_le64_to_cpu
	movl	%eax, 4(%r15)
	movl	40(%r13), %edi
	callq	_le64_to_cpu
	movl	%eax, 8(%r15)
	movl	36(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, 12(%r15)
	movl	32(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, 16(%r15)
	movl	28(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, 20(%r15)
	movl	24(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, 24(%r15)
	movl	20(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, 28(%r15)
	movl	16(%r13), %edi
	callq	_le64_to_cpu
	movl	%eax, 32(%r15)
	movl	12(%r13), %edi
	callq	_le64_to_cpu
	movl	%eax, 36(%r15)
	movl	8(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, 40(%r15)
	movl	4(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, 44(%r15)
	movl	(%r13), %edi
	callq	_le16_to_cpu
	movl	%eax, 48(%r15)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %eax
	movl	%eax, 52(%r15)
	movq	_CP_NUM_STATS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$14, (%rax)
	setne	%dil
	callq	_BUG_ON
	movq	(%rbx), %rdi
	movq	-48(%rbp), %rcx
	movl	$52, %esi
	movq	%r13, %rdx
	callq	_dma_free_coherent
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_StatsAddr,8,3                  ## @StatsAddr
	.comm	_DumpStats,4,2                  ## @DumpStats
	.comm	_CP_NUM_STATS,4,2               ## @CP_NUM_STATS
	.no_dead_strip	_cp_get_ethtool_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp_get_ethtool_stats
_cp_get_ethtool_stats:                  ; @cp_get_ethtool_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	bl	_netdev_priv
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #8
	mov	w1, #52
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x23, _StatsAddr@GOTPAGE
Lloh4:
	ldr	x23, [x23, _StatsAddr@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x0, x8, #4
	bl	_cpw32
	ldr	x22, [x23]
	ldr	w24, [sp, #8]
	mov	w0, #32
	bl	_DMA_BIT_MASK
	and	w8, w0, w24
Lloh5:
	adrp	x24, _DumpStats@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DumpStats@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_cpw32
	ldr	x0, [x23]
	bl	_cpr32
	mov	w22, #1000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	bl	_cpr32
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w22, w22, #1
	b.ne	LBB0_2
LBB0_4:
	ldr	x0, [x23]
	mov	w1, #0
	bl	_cpw32
	ldr	x8, [x23]
	add	x0, x8, #4
	mov	w1, #0
	bl	_cpw32
	ldr	x0, [x23]
	bl	_cpr32
	ldr	w0, [x21, #48]
	bl	_le64_to_cpu
	str	w0, [x20]
	ldr	w0, [x21, #44]
	bl	_le64_to_cpu
	str	w0, [x20, #4]
	ldr	w0, [x21, #40]
	bl	_le64_to_cpu
	str	w0, [x20, #8]
	ldr	w0, [x21, #36]
	bl	_le32_to_cpu
	str	w0, [x20, #12]
	ldr	w0, [x21, #32]
	bl	_le16_to_cpu
	str	w0, [x20, #16]
	ldr	w0, [x21, #28]
	bl	_le16_to_cpu
	str	w0, [x20, #20]
	ldr	w0, [x21, #24]
	bl	_le32_to_cpu
	str	w0, [x20, #24]
	ldr	w0, [x21, #20]
	bl	_le32_to_cpu
	str	w0, [x20, #28]
	ldr	w0, [x21, #16]
	bl	_le64_to_cpu
	str	w0, [x20, #32]
	ldr	w0, [x21, #12]
	bl	_le64_to_cpu
	str	w0, [x20, #36]
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	str	w0, [x20, #40]
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	str	w0, [x20, #44]
	ldr	w0, [x21]
	bl	_le16_to_cpu
	str	w0, [x20, #48]
	ldr	w8, [x19, #8]
	str	w8, [x20, #52]
Lloh7:
	adrp	x8, _CP_NUM_STATS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CP_NUM_STATS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, #14
	cset	w0, ne
	bl	_BUG_ON
	ldr	x0, [x19]
	ldr	x3, [sp, #8]
	mov	w1, #52
	mov	x2, x21
	bl	_dma_free_coherent
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_StatsAddr,8,3                  ; @StatsAddr
	.comm	_DumpStats,4,2                  ; @DumpStats
	.comm	_CP_NUM_STATS,4,2               ; @CP_NUM_STATS
	.no_dead_strip	_cp_get_ethtool_stats
.subsections_via_symbols
