	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netdev_get_ethtool_stats
_netdev_get_ethtool_stats:              ## @netdev_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	%rax, %r13
	movq	8(%rax), %r14
	movl	(%rbx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_TOTAL_PORT_COUNTER_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	leaq	12(%r14), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_SWITCH_PORT_NUM@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movl	4(%r13), %r10d
	testl	%r10d, %r10d
	jle	LBB0_14
## %bb.1:
	movslq	(%r13), %r9
	movq	_media_connected@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	24(%r14), %r8
	cmpl	$1, %r10d
	je	LBB0_11
## %bb.2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r9, %rax
	shlq	$4, %rax
	leaq	(%rax,%r8), %rdi
	addq	$16, %rdi
	leaq	(,%r9,8), %rsi
	movl	%r9d, %r11d
	movl	%r10d, %ecx
	andl	$-2, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$2, %rbx
	addq	$32, %rdi
	cmpl	%ebx, %ecx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-16(%rdi), %rdx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	addq	%rsi, %rax
	movl	$1, (%rax,%rbx,8)
	cmpl	(%r12), %r15d
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r11,%rbx), %r15d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%rdi), %rdx
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rax
	addq	%rsi, %rax
	movl	$1, 8(%rax,%rbx,8)
	cmpl	(%r12), %r15d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r11,%rbx), %r15d
	incl	%r15d
	jmp	LBB0_9
LBB0_10:
	addq	%rbx, %r9
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:
	testb	$1, %r10b
	je	LBB0_14
## %bb.12:
	movq	%r9, %rax
	shlq	$4, %rax
	cmpq	(%r8,%rax), %rdx
	jne	LBB0_14
## %bb.13:
	movq	(%r14), %rax
	movl	$1, (%rax,%r9,8)
	cmpl	(%r12), %r15d
	cmovnel	%r15d, %r9d
	movl	%r9d, %r15d
LBB0_14:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	(%r12), %eax
	cmpl	%eax, %r15d
	jge	LBB0_16
## %bb.15:
	leaq	8(%r14), %rdi
	callq	_schedule_work
	movl	(%r12), %eax
LBB0_16:
	leaq	16(%r14), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edx
	cmpl	$1, %edx
	jne	LBB0_18
## %bb.17:
	cmpl	%eax, %r15d
	jge	LBB0_18
## %bb.28:
	movq	(%r14), %rax
	movslq	%r15d, %rcx
	xorl	%esi, %esi
	cmpl	$2, (%rax,%rcx,8)
	movl	4(%rax,%rcx,8), %edi
	sete	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_interruptible_timeout
	movl	4(%r13), %edx
	jmp	LBB0_24
LBB0_18:
	cmpl	%r15d, %edx
	jle	LBB0_24
## %bb.19:
	movslq	%r15d, %rbx
	movq	(%r14), %rax
	movl	4(%rax,%rbx,8), %edi
	xorl	%esi, %esi
	cmpl	$2, (%rax,%rbx,8)
	sete	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	callq	_wait_event_interruptible_timeout
	movl	4(%r13), %edx
	movl	%edx, %eax
	subl	%r15d, %eax
	cmpl	$2, %eax
	jl	LBB0_24
## %bb.20:
	leaq	12(,%rbx,8), %rbx
	movl	$1, %r12d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	incl	%r12d
	movl	%edx, %eax
	subl	%r15d, %eax
	addq	$8, %rbx
	cmpl	%eax, %r12d
	jge	LBB0_24
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	cmpq	$0, (%rax,%rbx,2)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx), %edi
	xorl	%esi, %esi
	cmpl	$2, -4(%rax,%rbx)
	sete	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_interruptible_timeout
	movl	4(%r13), %edx
	jmp	LBB0_23
LBB0_24:
	movl	(%r13), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_get_mib_counters
	movl	(%rbx), %eax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	testl	%ecx, %ecx
	jle	LBB0_26
## %bb.25:
	movl	%ecx, %edx
	shlq	$2, %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_memcpy
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TOTAL_PORT_COUNTER_NUM,4,2     ## @TOTAL_PORT_COUNTER_NUM
	.comm	_SWITCH_PORT_NUM,4,2            ## @SWITCH_PORT_NUM
	.comm	_media_connected,8,3            ## @media_connected
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_netdev_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 netdev_get_ethtool_stats
_netdev_get_ethtool_stats:              ; @netdev_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
	sub	sp, sp, #16
	stur	x2, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_netdev_priv
	mov	x21, x0
	ldr	x24, [x0, #8]
	ldr	w23, [x20]
Lloh3:
	adrp	x8, _TOTAL_PORT_COUNTER_NUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TOTAL_PORT_COUNTER_NUM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	add	x22, x24, #12
	mov	x0, x22
	bl	_mutex_lock
Lloh8:
	adrp	x26, _SWITCH_PORT_NUM@GOTPAGE
Lloh9:
	ldr	x26, [x26, _SWITCH_PORT_NUM@GOTPAGEOFF]
	ldr	w25, [x26]
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
Lloh10:
	adrp	x10, _media_connected@GOTPAGE
Lloh11:
	ldr	x10, [x10, _media_connected@GOTPAGEOFF]
	ldrsw	x9, [x21]
Lloh12:
	ldr	x10, [x10]
	ldr	x11, [x24, #24]
	add	x11, x11, x9, lsl #4
	lsl	x12, x9, #3
	mov	w13, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #16
	add	x12, x12, #8
	add	w9, w9, #1
	subs	w8, w8, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x11]
	cmp	x10, x14
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x24]
	str	w13, [x14, x12]
	ldr	w14, [x26]
	cmp	w25, w14
	csel	w25, w9, w25, eq
	b	LBB0_2
LBB0_5:
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w8, [x26]
	cmp	w25, w8
	b.ge	LBB0_7
; %bb.6:
	add	x0, x24, #8
	bl	_schedule_work
	ldr	w8, [x26]
LBB0_7:
	add	x22, x24, #16
	ldr	w2, [x21, #4]
	cmp	w2, #1
	b.ne	LBB0_10
; %bb.8:
	cmp	w25, w8
	b.ge	LBB0_10
; %bb.9:
	ldr	x8, [x24]
	add	x8, x8, w25, sxtw #3
	ldp	w8, w0, [x8]
	cmp	w8, #2
	cset	w1, eq
Lloh13:
	adrp	x8, _HZ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_wait_event_interruptible_timeout
	ldr	w2, [x21, #4]
	b	LBB0_16
LBB0_10:
	cmp	w2, w25
	b.le	LBB0_16
; %bb.11:
	ldr	x8, [x24]
	add	x8, x8, w25, sxtw #3
	ldp	w8, w0, [x8]
	cmp	w8, #2
	cset	w1, eq
Lloh16:
	adrp	x26, _HZ@GOTPAGE
Lloh17:
	ldr	x26, [x26, _HZ@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	w2, w8, #1
	bl	_wait_event_interruptible_timeout
	ldr	w2, [x21, #4]
	sub	w8, w2, w25
	cmp	w8, #1
	b.le	LBB0_16
; %bb.12:
	sxtw	x8, w25
	lsl	x27, x8, #3
	lsl	x8, x8, #4
	add	x28, x8, #24
	mov	w19, #1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w19, w19, #1
	add	x27, x27, #8
	add	x28, x28, #16
	sub	w8, w2, w25
	cmp	w19, w8
	b.ge	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #24]
	ldr	x8, [x8, x28]
	cbz	x8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x24]
	add	x8, x8, x27
	ldp	w8, w0, [x8, #8]
	cmp	w8, #2
	cset	w1, eq
	ldr	w2, [x26]
	bl	_wait_event_interruptible_timeout
	ldr	w2, [x21, #4]
	b	LBB0_13
LBB0_16:
	ldr	w1, [x21]
	mov	x0, x22
	mov	x3, x20
	bl	_get_mib_counters
	ldr	w8, [x22]
	cmp	w8, w23
	csel	w8, w8, w23, lt
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.17:
	lsl	x2, x8, #2
	ldur	x0, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x1, x20
	bl	_memcpy
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #80
	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_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TOTAL_PORT_COUNTER_NUM,4,2     ; @TOTAL_PORT_COUNTER_NUM
	.comm	_SWITCH_PORT_NUM,4,2            ; @SWITCH_PORT_NUM
	.comm	_media_connected,8,3            ; @media_connected
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_netdev_get_ethtool_stats
.subsections_via_symbols
