	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_get_ethtool_stats         ## -- Begin function cpsw_get_ethtool_stats
	.p2align	4, 0x90
_cpsw_get_ethtool_stats:                ## @cpsw_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_ndev_to_cpsw
	movq	%rax, %r12
	movq	_CPSW_STATS_COMMON_LEN@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_1
## %bb.17:
	xorl	%r13d, %r13d
	movq	_cpsw_gstrings_stats@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	(%rax,%r13,8), %rdi
	addq	24(%r12), %rdi
	callq	_readl
	movl	%eax, (%r14,%r13,4)
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jl	LBB0_18
## %bb.2:
	cmpl	$0, (%r12)
	jg	LBB0_3
	jmp	LBB0_9
LBB0_1:
	xorl	%r13d, %r13d
	cmpl	$0, (%r12)
	jle	LBB0_9
LBB0_3:
	xorl	%ebx, %ebx
	movq	_CPSW_STATS_CH_LEN@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	leaq	-48(%rbp), %rsi
	callq	_cpdma_chan_get_stats
	cmpl	$0, (%r15)
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %eax
	movslq	%r13d, %rcx
	leaq	(%r14,%rcx,4), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, (%rdx,%rcx,4)
	incq	%rcx
	cmpl	(%r15), %ecx
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%ecx, %r13d
	jmp	LBB0_8
LBB0_9:
	cmpl	$0, 4(%r12)
	jle	LBB0_16
## %bb.10:
	xorl	%ebx, %ebx
	movq	_CPSW_STATS_CH_LEN@GOTPCREL(%rip), %r15
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_16
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	leaq	-48(%rbp), %rsi
	callq	_cpdma_chan_get_stats
	cmpl	$0, (%r15)
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-48(%rbp), %eax
	movslq	%r13d, %rcx
	leaq	(%r14,%rcx,4), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, (%rdx,%rcx,4)
	incq	%rcx
	cmpl	(%r15), %ecx
	jl	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	%ecx, %r13d
	jmp	LBB0_15
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPSW_STATS_COMMON_LEN,4,2      ## @CPSW_STATS_COMMON_LEN
	.comm	_cpsw_gstrings_stats,8,3        ## @cpsw_gstrings_stats
	.comm	_CPSW_STATS_CH_LEN,4,2          ## @CPSW_STATS_CH_LEN
	.comm	_cpsw_gstrings_ch_stats,8,3     ## @cpsw_gstrings_ch_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_get_ethtool_stats         ; -- Begin function cpsw_get_ethtool_stats
	.p2align	2
_cpsw_get_ethtool_stats:                ; @cpsw_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	x19, x2
	bl	_ndev_to_cpsw
	mov	x20, x0
Lloh0:
	adrp	x22, _CPSW_STATS_COMMON_LEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CPSW_STATS_COMMON_LEN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
Lloh2:
	adrp	x23, _cpsw_gstrings_stats@GOTPAGE
Lloh3:
	ldr	x23, [x23, _cpsw_gstrings_stats@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x9, [x23]
	ldr	x9, [x9, x21, lsl #3]
	add	x0, x9, x8
	bl	_readl
	str	w0, [x19, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	ldr	w8, [x20]
Lloh4:
	adrp	x22, _CPSW_STATS_CH_LEN@GOTPAGE
Lloh5:
	ldr	x22, [x22, _CPSW_STATS_CH_LEN@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	mov	x23, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.ge	LBB0_11
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x23, lsl #2]
	add	x1, sp, #8
	bl	_cpdma_chan_get_stats
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x8, #0
	ldr	w9, [sp, #8]
	add	x10, x19, w21, sxtw #2
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w9, [x10, x8, lsl #2]
	ldr	w11, [x22]
	add	x8, x8, #1
	cmp	w8, w11
	b.lt	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w21, w21, w8
	b	LBB0_6
LBB0_11:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.12:
	mov	x23, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x20, #4]
	cmp	x23, x8
	b.ge	LBB0_18
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x23, lsl #2]
	add	x1, sp, #8
	bl	_cpdma_chan_get_stats
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x8, #0
	ldr	w9, [sp, #8]
	add	x10, x19, w21, sxtw #2
LBB0_16:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w9, [x10, x8, lsl #2]
	ldr	w11, [x22]
	add	x8, x8, #1
	cmp	w8, w11
	b.lt	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w21, w21, w8
	b	LBB0_13
LBB0_18:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CPSW_STATS_COMMON_LEN,4,2      ; @CPSW_STATS_COMMON_LEN
	.comm	_cpsw_gstrings_stats,8,3        ; @cpsw_gstrings_stats
	.comm	_CPSW_STATS_CH_LEN,4,2          ; @CPSW_STATS_CH_LEN
	.comm	_cpsw_gstrings_ch_stats,8,3     ; @cpsw_gstrings_ch_stats
.subsections_via_symbols
