	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ksz_get_ethtool_stats          ## -- Begin function ksz_get_ethtool_stats
	.p2align	4, 0x90
_ksz_get_ethtool_stats:                 ## @ksz_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, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_dsa_to_port
	movq	%rax, %r13
	movq	(%rbx), %rbx
	movq	8(%rbx), %r14
	movslq	%r12d, %rax
	leaq	(%rax,%rax,2), %r15
	leaq	(%r14,%r15,4), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movl	(%r13), %edi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	4(%rbx), %eax
	movl	%eax, 8(%r14,%r15,4)
LBB0_2:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_port_r_cnt
	movl	4(%r14,%r15,4), %esi
	movl	(%rbx), %edx
	shll	$2, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ksz_get_ethtool_stats          ; -- Begin function ksz_get_ethtool_stats
	.p2align	2
_ksz_get_ethtool_stats:                 ; @ksz_get_ethtool_stats
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_dsa_to_port
	mov	x23, x0
	ldr	x22, [x20]
	ldr	x24, [x22, #8]
	sxtw	x25, w21
	mov	w8, #12
	smaddl	x20, w21, w8, x24
	mov	x0, x20
	bl	_mutex_lock
	ldr	w0, [x23]
	bl	_netif_carrier_ok
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x22, #4]
	mov	w9, #12
	madd	x9, x25, x9, x24
	str	w8, [x9, #8]
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	bl	_port_r_cnt
	mov	w8, #12
	madd	x8, x25, x8, x24
	ldr	w1, [x8, #4]
	ldr	w8, [x22]
	lsl	w2, w8, #2
	mov	x0, x19
	bl	_memcpy
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mutex_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
