	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_get_ethtool_stats
_niu_get_ethtool_stats:                 ## @niu_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, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_niu_sync_mac_stats
	movq	_NIU_FLAGS_XMAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r14), %eax
	setne	%cl
	leaq	(%r14,%rcx,4), %rsi
	addq	$32, %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	addq	$4, %r15
	cmpl	$0, 4(%r14)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %r13
	leaq	(%rbx,%r13), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_niu_sync_rx_discard_stats
	movl	16(%r13,%rbx), %eax
	movl	%eax, (%r15,%rbx)
	movl	12(%r13,%rbx), %eax
	movl	%eax, 4(%r15,%rbx)
	movl	8(%r13,%rbx), %eax
	movl	%eax, 8(%r15,%rbx)
	movl	4(%r13,%rbx), %eax
	movl	%eax, 12(%r15,%rbx)
	movl	(%r13,%rbx), %eax
	movl	%eax, 16(%r15,%rbx)
	incq	%r12
	movslq	4(%r14), %rax
	addq	$20, %rbx
	cmpq	%rax, %r12
	jl	LBB0_2
## %bb.3:
	addq	%rbx, %r15
LBB0_4:
	cmpl	$0, 8(%r14)
	jle	LBB0_7
## %bb.5:
	movq	16(%r14), %rax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%rax,%rcx), %esi
	movl	%esi, (%r15,%rcx)
	movl	8(%rax,%rcx), %esi
	movl	%esi, 4(%r15,%rcx)
	movl	4(%rax,%rcx), %esi
	movl	%esi, 8(%r15,%rcx)
	movl	(%rax,%rcx), %esi
	movl	%esi, 12(%r15,%rcx)
	incq	%rdx
	movslq	8(%r14), %rsi
	addq	$16, %rcx
	cmpq	%rsi, %rdx
	jl	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIU_FLAGS_XMAC,4,2             ## @NIU_FLAGS_XMAC
	.no_dead_strip	_niu_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 niu_get_ethtool_stats
_niu_get_ethtool_stats:                 ; @niu_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
	bl	_netdev_priv
	mov	x19, x0
	bl	_niu_sync_mac_stats
Lloh0:
	adrp	x8, _NIU_FLAGS_XMAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIU_FLAGS_XMAC@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh2:
	ldr	w8, [x8]
	add	x10, x19, #32
	add	x11, x19, #36
	tst	w8, w9
	csel	x1, x10, x11, eq
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	add	x21, x20, #4
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x21, x22
	ldr	x8, [x19, #24]
	add	x20, x8, x22
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_niu_sync_rx_discard_stats
	ldr	w8, [x20, #16]
	str	w8, [x24]
	ldr	w8, [x20, #12]
	str	w8, [x24, #4]
	ldr	w8, [x20, #8]
	str	w8, [x24, #8]
	ldr	w8, [x20, #4]
	str	w8, [x24, #12]
	ldr	w8, [x20]
	str	w8, [x24, #16]
	add	x23, x23, #1
	ldrsw	x8, [x19, #4]
	add	x22, x22, #20
	cmp	x23, x8
	b.lt	LBB0_2
; %bb.3:
	add	x21, x21, x22
LBB0_4:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x8, #0
	ldr	x9, [x19, #16]
	add	x9, x9, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, #4]
	str	w10, [x21]
	ldr	w10, [x9]
	str	w10, [x21, #4]
	ldur	w10, [x9, #-4]
	str	w10, [x21, #8]
	ldur	w10, [x9, #-8]
	str	w10, [x21, #12]
	add	x8, x8, #1
	ldrsw	x10, [x19, #8]
	add	x9, x9, #16
	add	x21, x21, #16
	cmp	x8, x10
	b.lt	LBB0_6
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIU_FLAGS_XMAC,4,2             ; @NIU_FLAGS_XMAC
	.no_dead_strip	_niu_get_ethtool_stats
.subsections_via_symbols
