	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gve_get_ethtool_stats
_gve_get_ethtool_stats:                 ## @gve_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movl	16(%r13), %eax
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -80(%rbp)                ## 16-byte Spill
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -80(%rbp)                ## 16-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r13), %eax
	movdqa	-64(%rbp), %xmm0                ## 16-byte Reload
	movdqa	%xmm0, -80(%rbp)                ## 16-byte Spill
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	24(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(,%r15,8), %rax
	leaq	(%rax,%rax,4), %rbx
	leaq	(%rcx,%rbx), %rdi
	addq	$32, %rdi
	callq	_u64_stats_fetch_begin
	movq	24(%r13), %rcx
	movdqu	16(%rcx,%rbx), %xmm0
	paddq	-80(%rbp), %xmm0                ## 16-byte Folded Reload
	movdqa	%xmm0, -64(%rbp)                ## 16-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%rcx,%rbx), %rdi
	addq	$32, %rdi
	movl	%eax, %esi
	callq	_u64_stats_fetch_retry
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	24(%r13), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$32, %rdi
	callq	_u64_stats_fetch_begin
	movq	24(%r13), %rcx
	movdqu	16(%rcx,%rbx), %xmm0
	movdqa	-64(%rbp), %xmm1                ## 16-byte Reload
	paddq	%xmm0, %xmm1
	movdqa	%xmm1, -64(%rbp)                ## 16-byte Spill
	jmp	LBB0_5
LBB0_8:
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_16
## %bb.9:
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r13), %eax
	movdqa	-64(%rbp), %xmm0                ## 16-byte Reload
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_16
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	8(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	imulq	$56, %r15, %rbx
	leaq	(%rcx,%rbx), %rdi
	addq	$48, %rdi
	callq	_u64_stats_fetch_begin
	movq	8(%r13), %rcx
	movdqu	32(%rcx,%rbx), %xmm0
	paddq	-96(%rbp), %xmm0                ## 16-byte Folded Reload
	movdqa	%xmm0, -64(%rbp)                ## 16-byte Spill
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	(%rcx,%rbx), %rdi
	addq	$48, %rdi
	movl	%eax, %esi
	callq	_u64_stats_fetch_retry
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	8(%r13), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$48, %rdi
	callq	_u64_stats_fetch_begin
	movq	8(%r13), %rcx
	movdqu	32(%rcx,%rbx), %xmm0
	movdqa	-64(%rbp), %xmm1                ## 16-byte Reload
	paddq	%xmm0, %xmm1
	movdqa	%xmm1, -64(%rbp)                ## 16-byte Spill
	jmp	LBB0_13
LBB0_16:
	movaps	-80(%rbp), %xmm2                ## 16-byte Reload
	movaps	%xmm2, %xmm0
	movaps	-96(%rbp), %xmm1                ## 16-byte Reload
	unpckhpd	%xmm1, %xmm0                    ## xmm0 = xmm0[1],xmm1[1]
	movups	%xmm0, (%r14)
	movlhps	%xmm1, %xmm2                    ## xmm2 = xmm2[0],xmm1[0]
	movups	%xmm2, 16(%r14)
	movq	32(%r13), %rcx
	movq	%rcx, 48(%r14)
	movq	_GVE_MAIN_STATS_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	24(%r13), %r8
	movl	16(%r13), %r9d
	testq	%r8, %r8
	je	LBB0_30
## %bb.17:
	testl	%r9d, %r9d
	jle	LBB0_24
## %bb.18:
	movslq	%ecx, %rcx
	cmpl	$1, %r9d
	jne	LBB0_20
## %bb.19:
	xorl	%edi, %edi
	jmp	LBB0_22
LBB0_30:
	movq	_NUM_GVE_RX_CNTS@GOTPCREL(%rip), %rdx
	imull	(%rdx), %r9d
	addl	%ecx, %r9d
	movl	%r9d, %ecx
	jmp	LBB0_24
LBB0_20:
	movl	%r9d, %esi
	andl	$-2, %esi
	leaq	48(%r8), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	-40(%rdx), %rbx
	movq	%rbx, (%r14,%rcx,8)
	movq	-48(%rdx), %rbx
	movq	%rbx, 8(%r14,%rcx,8)
	movq	(%rdx), %rbx
	movq	%rbx, 16(%r14,%rcx,8)
	movq	-8(%rdx), %rbx
	movq	%rbx, 24(%r14,%rcx,8)
	addq	$4, %rcx
	addq	$2, %rdi
	addq	$80, %rdx
	cmpq	%rdi, %rsi
	jne	LBB0_21
LBB0_22:
	testb	$1, %r9b
	je	LBB0_24
## %bb.23:
	leaq	(%rdi,%rdi,4), %rdx
	movq	8(%r8,%rdx,8), %rsi
	movq	%rsi, (%r14,%rcx,8)
	movq	(%r8,%rdx,8), %rdx
	movq	%rdx, 8(%r14,%rcx,8)
	addq	$2, %rcx
LBB0_24:
	movq	8(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_29
## %bb.25:
	testl	%eax, %eax
	jle	LBB0_29
## %bb.26:
	movslq	%ecx, %rax
	leaq	(%r14,%rax,8), %r14
	addq	$32, %r14
	movl	$1, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rdx,%r12), %rsi
	movq	24(%rdx,%r12), %rax
	movq	%rax, -32(%r14)
	movq	16(%rdx,%r12), %rax
	movq	%rax, -24(%r14)
	movq	8(%rdx,%r12), %rax
	movq	%rax, -16(%r14)
	movq	(%rdx,%r12), %rax
	movq	%rax, -8(%r14)
	movq	%r13, %rdi
	callq	_gve_tx_load_event_counter
	movl	%eax, %edi
	callq	_be32_to_cpu
	movq	%rax, (%r14)
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	8(%r13), %rdx
	addq	$56, %r12
	incq	%r15
	addq	$40, %r14
	jmp	LBB0_27
LBB0_29:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GVE_MAIN_STATS_LEN,4,2         ## @GVE_MAIN_STATS_LEN
	.comm	_NUM_GVE_RX_CNTS,4,2            ## @NUM_GVE_RX_CNTS
	.comm	_NUM_GVE_TX_CNTS,4,2            ## @NUM_GVE_TX_CNTS
	.no_dead_strip	_gve_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 gve_get_ethtool_stats
_gve_get_ethtool_stats:                 ; @gve_get_ethtool_stats
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	bl	_netdev_priv
	mov	x19, x0
	bl	_ASSERT_RTNL
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x23, #0
	mov	x22, #0
	mov	x21, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x23, x23, lsl #2
	lsl	x24, x8, #3
	add	x8, x9, x24
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x8, #32
	bl	_u64_stats_fetch_begin
	mov	x1, x0
	ldr	x8, [x19, #24]
	add	x8, x8, x24
	ldp	x10, x9, [x8, #16]
	add	x22, x9, x22
	add	x21, x10, x21
	add	x0, x8, #32
	bl	_u64_stats_fetch_retry
	cbz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x19, #24]
	add	x9, x23, x23, lsl #2
	lsl	x24, x9, #3
	add	x8, x8, x24
	b	LBB0_6
LBB0_8:
	mov	x21, #0
	mov	x22, #0
LBB0_9:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.10:
	mov	x25, #0
	mov	x23, #0
	mov	x24, #0
	mov	w26, #56
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x19]
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_18
LBB0_13:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mul	x27, x25, x26
	add	x8, x9, x27
LBB0_15:                                ;   Parent Loop BB0_13 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, x8, #48
	bl	_u64_stats_fetch_begin
	mov	x1, x0
	ldr	x8, [x19, #8]
	add	x8, x8, x27
	ldp	x10, x9, [x8, #32]
	add	x24, x9, x24
	add	x23, x10, x23
	add	x0, x8, #48
	bl	_u64_stats_fetch_retry
	cbz	x0, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x8, [x19, #8]
	mul	x27, x25, x26
	add	x8, x8, x27
	b	LBB0_15
LBB0_17:
	mov	x24, #0
	mov	x23, #0
LBB0_18:
	stp	x22, x24, [x20]
	stp	x21, x23, [x20, #16]
	ldp	x11, x9, [x19, #24]
	str	x9, [x20, #48]
Lloh0:
	adrp	x9, _GVE_MAIN_STATS_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GVE_MAIN_STATS_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x19, #16]
	cbz	x11, LBB0_24
; %bb.19:
	cmp	w10, #1
	b.lt	LBB0_28
; %bb.20:
	sxtw	x9, w9
	cmp	w10, #3
	b.lo	LBB0_25
; %bb.21:
	add	x13, x20, x9, lsl #3
	add	x12, x9, x10, lsl #1
	add	x12, x20, x12, lsl #3
	mov	w14, #40
	madd	x14, x10, x14, x11
	sub	x14, x14, #24
	cmp	x13, x14
	ccmp	x11, x12, #2, lo
	b.lo	LBB0_25
; %bb.22:
	ands	x12, x10, #0x1
	mov	w14, #2
	csel	x12, x14, x12, eq
	sub	x12, x10, x12
	add	x9, x9, x12, lsl #1
	mov	x14, x12
	mov	x15, x11
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x15, #48]
	ldr	q2, [x15]
	add	x16, x15, #40
	ext.16b	v1, v2, v0, #8
	ld1.d	{ v2 }[1], [x16]
	st2.2d	{ v1, v2 }, [x13], #32
	add	x15, x15, #80
	subs	x14, x14, #2
	b.ne	LBB0_23
	b	LBB0_26
LBB0_24:
Lloh3:
	adrp	x11, _NUM_GVE_RX_CNTS@GOTPAGE
Lloh4:
	ldr	x11, [x11, _NUM_GVE_RX_CNTS@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	madd	w9, w11, w10, w9
	b	LBB0_29
LBB0_25:
	mov	x12, #0
LBB0_26:
	mov	w13, #40
	madd	x11, x12, x13, x11
	add	x11, x11, #8
	sub	x10, x10, x12
	add	x12, x20, x9, lsl #3
	add	x12, x12, #8
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11]
	stur	x13, [x12, #-8]
	ldur	x13, [x11, #-8]
	str	x13, [x12], #16
	add	w9, w9, #2
	add	x11, x11, #40
	subs	x10, x10, #1
	b.ne	LBB0_27
	b	LBB0_29
LBB0_28:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_29:
	ldr	x10, [x19, #8]
	cmp	x10, #0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_31
LBB0_30:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	mov	x21, #0
	add	x8, x20, w9, sxtw #3
	add	x20, x8, #16
	mov	w22, #1
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	add	x1, x10, x21
	ldr	x8, [x1, #24]
	stur	x8, [x20, #-16]
	ldr	x8, [x1, #16]
	stur	x8, [x20, #-8]
	ldr	x8, [x1, #8]
	str	x8, [x20]
	ldr	x8, [x1]
	str	x8, [x20, #8]
	mov	x0, x19
	bl	_gve_tx_load_event_counter
	bl	_be32_to_cpu
	str	x0, [x20, #16]
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	x10, [x19, #8]
	add	x20, x20, #40
	add	x21, x21, #56
	add	x22, x22, #1
	b	LBB0_32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GVE_MAIN_STATS_LEN,4,2         ; @GVE_MAIN_STATS_LEN
	.comm	_NUM_GVE_RX_CNTS,4,2            ; @NUM_GVE_RX_CNTS
	.comm	_NUM_GVE_TX_CNTS,4,2            ; @NUM_GVE_TX_CNTS
	.no_dead_strip	_gve_get_ethtool_stats
.subsections_via_symbols
