	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gmac_get_ethtool_stats
_gmac_get_ethtool_stats:                ## @gmac_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
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_gmac_update_hw_stats
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	56(%rbx), %r14
	movq	_RX_STATS_NUM@GOTPCREL(%rip), %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_u64_stats_fetch_retry
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r14, %rdi
	callq	_u64_stats_fetch_begin
	cmpl	$0, (%rbx)
	movq	%r15, %r13
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	48(%rcx), %rcx
	xorl	%edx, %edx
	movq	%r15, %r13
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%rdx,4), %esi
	movl	%esi, (%r13)
	addq	$4, %r13
	incq	%rdx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	40(%rax), %rdi
	movq	_RX_STATUS_NUM@GOTPCREL(%rip), %r14
	movq	_RX_CHKSUM_NUM@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	20(%rcx), %ecx
	movl	%ecx, (%rbx)
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_u64_stats_fetch_retry
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_13
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	movq	%rdi, %r12
	callq	_u64_stats_fetch_begin
	cmpl	$0, (%r14)
	movq	%r13, %rbx
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	32(%rcx), %rcx
	xorl	%edx, %edx
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%rdx,4), %esi
	movl	%esi, (%rbx)
	addq	$4, %rbx
	incq	%rdx
	movslq	(%r14), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%rdx,4), %esi
	movl	%esi, (%rbx)
	addq	$4, %rbx
	incq	%rdx
	movslq	(%r15), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_11
	jmp	LBB0_12
LBB0_13:
	addq	$4, %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	addq	$16, %r15
	movq	_TX_MAX_FRAGS@GOTPCREL(%rip), %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	4(%rdx), %ecx
	movl	%ecx, (%rbx)
	movl	(%rdx), %ecx
	movl	%ecx, 4(%rbx)
	addq	$8, %rbx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_u64_stats_fetch_retry
	testq	%rax, %rax
	je	LBB0_18
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	%r15, %rdi
	callq	_u64_stats_fetch_begin
	cmpl	$0, (%r14)
	jle	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%rdx,8), %esi
	movl	%esi, (%rbx)
	addq	$4, %rbx
	movq	$0, (%rcx,%rdx,8)
	incq	%rdx
	movslq	(%r14), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_16
	jmp	LBB0_17
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_STATS_NUM,4,2               ## @RX_STATS_NUM
	.comm	_RX_STATUS_NUM,4,2              ## @RX_STATUS_NUM
	.comm	_RX_CHKSUM_NUM,4,2              ## @RX_CHKSUM_NUM
	.comm	_TX_MAX_FRAGS,4,2               ## @TX_MAX_FRAGS
	.no_dead_strip	_gmac_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 gmac_get_ethtool_stats
_gmac_get_ethtool_stats:                ; @gmac_get_ethtool_stats
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x21
	bl	_gmac_update_hw_stats
	add	x21, x19, #56
Lloh0:
	adrp	x23, _RX_STATS_NUM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RX_STATS_NUM@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_u64_stats_fetch_retry
	cbz	x0, LBB0_5
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x0, x21
	bl	_u64_stats_fetch_begin
	mov	x1, x0
	ldr	w8, [x23]
	mov	x22, x20
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, #0
	ldr	x9, [x19, #48]
	mov	x22, x20
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x9, x8, lsl #2]
	str	w10, [x22], #4
	add	x8, x8, #1
	ldrsw	x10, [x23]
	cmp	x8, x10
	b.lt	LBB0_4
	b	LBB0_1
LBB0_5:
	add	x20, x19, #40
Lloh2:
	adrp	x21, _RX_STATUS_NUM@GOTPAGE
Lloh3:
	ldr	x21, [x21, _RX_STATUS_NUM@GOTPAGEOFF]
Lloh4:
	adrp	x23, _RX_CHKSUM_NUM@GOTPAGE
Lloh5:
	ldr	x23, [x23, _RX_CHKSUM_NUM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19, #20]
	str	w8, [x24]
	mov	x0, x20
	bl	_u64_stats_fetch_retry
	cbz	x0, LBB0_13
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x20
	bl	_u64_stats_fetch_begin
	mov	x1, x0
	ldr	w8, [x21]
	mov	x24, x22
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, #0
	ldr	x9, [x19, #32]
	mov	x24, x22
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x9, x8, lsl #2]
	str	w10, [x24], #4
	add	x8, x8, #1
	ldrsw	x10, [x21]
	cmp	x8, x10
	b.lt	LBB0_9
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, #0
	ldr	x9, [x19, #24]
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x9, x8, lsl #2]
	str	w10, [x24], #4
	add	x8, x8, #1
	ldrsw	x10, [x23]
	cmp	x8, x10
	b.lt	LBB0_12
	b	LBB0_6
LBB0_13:
	add	x22, x24, #4
	add	x20, x19, #16
Lloh6:
	adrp	x21, _TX_MAX_FRAGS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _TX_MAX_FRAGS@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x19, #4]
	str	w8, [x22]
	ldr	w8, [x19]
	add	x23, x22, #8
	str	w8, [x22, #4]
	mov	x0, x20
	bl	_u64_stats_fetch_retry
	mov	x22, x23
	cbz	x0, LBB0_18
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	mov	x0, x20
	bl	_u64_stats_fetch_begin
	mov	x1, x0
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x8, #0
	ldr	x9, [x19, #8]
LBB0_17:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x10, x8, #3
	ldr	x11, [x9, x10]
	str	w11, [x22], #4
	str	xzr, [x9, x10]
	add	x8, x8, #1
	ldrsw	x10, [x21]
	cmp	x8, x10
	b.lt	LBB0_17
	b	LBB0_14
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_STATS_NUM,4,2               ; @RX_STATS_NUM
	.comm	_RX_STATUS_NUM,4,2              ; @RX_STATUS_NUM
	.comm	_RX_CHKSUM_NUM,4,2              ; @RX_CHKSUM_NUM
	.comm	_TX_MAX_FRAGS,4,2               ; @TX_MAX_FRAGS
	.no_dead_strip	_gmac_get_ethtool_stats
.subsections_via_symbols
