	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b53_get_ethtool_stats          ## -- Begin function b53_get_ethtool_stats
	.p2align	4, 0x90
_b53_get_ethtool_stats:                 ## @b53_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, %r13d
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_b53_get_mib
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_b53_get_mib_size
	movl	%eax, %r14d
	movq	$0, -48(%rbp)
	movq	%r15, %rdi
	callq	_is5365
	testq	%rax, %rax
	movl	$8, %r12d
	cmovel	%r13d, %r12d
	cmpl	$5, %r13d
	cmovnel	%r13d, %r12d
	movq	%r15, %rdi
	callq	_mutex_lock
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.1:
	movl	%r14d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	callq	_B53_MIB_PAGE
	movl	4(%rbx,%r14,8), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	leaq	-64(%rbp), %rcx
	callq	_b53_read32
	movq	-64(%rbp), %rax
	movq	%rax, -48(%rbp)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$8, (%rbx,%r14,8)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	callq	_B53_MIB_PAGE
	movl	4(%rbx,%r14,8), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	leaq	-48(%rbp), %rcx
	callq	_b53_read64
	movq	-48(%rbp), %rax
	jmp	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	callq	_mutex_unlock
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b53_get_ethtool_stats          ; -- Begin function b53_get_ethtool_stats
	.p2align	2
_b53_get_ethtool_stats:                 ; @b53_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
	mov	x21, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_b53_get_mib
	mov	x22, x0
	mov	x0, x20
	bl	_b53_get_mib_size
	mov	x23, x0
	str	xzr, [sp, #8]
	mov	x0, x20
	bl	_is5365
	cmp	x0, #0
	ccmp	w21, #5, #0, ne
	mov	w8, #8
	csel	w21, w8, w21, eq
	mov	x0, x20
	bl	_mutex_lock
	cbz	w23, LBB0_6
; %bb.1:
	mov	w23, w23
	add	x22, x22, #4
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_B53_MIB_PAGE
	mov	x1, x0
	ldr	w2, [x22]
	mov	x3, sp
	mov	x0, x20
	bl	_b53_read32
	ldr	x8, [sp]
	str	x8, [sp, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x19], #8
	add	x22, x22, #8
	subs	x23, x23, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x22, #-4]
	mov	x0, x21
	cmp	w8, #8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_B53_MIB_PAGE
	mov	x1, x0
	ldr	w2, [x22]
	add	x3, sp, #8
	mov	x0, x20
	bl	_b53_read64
	ldr	x8, [sp, #8]
	b	LBB0_3
LBB0_6:
	mov	x0, x20
	bl	_mutex_unlock
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
