	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _mv88e6xxx_get_ethtool_stat
__mv88e6xxx_get_ethtool_stat:           ## @_mv88e6xxx_get_ethtool_stat
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$0, -40(%rbp)
	movl	$0, -36(%rbp)
	movl	(%rsi), %eax
	cmpl	$130, %eax
	je	LBB0_1
## %bb.4:
	cmpl	$129, %eax
	je	LBB0_2
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.6:
	movl	%edx, %r12d
	movl	4(%r15), %edx
	leaq	-36(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_mv88e6xxx_port_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	cmpl	$4, 8(%r15)
                                        ## implicit-def: $eax
	jne	LBB0_10
## %bb.8:
	movl	4(%r15), %edx
	incl	%edx
	leaq	-36(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_mv88e6xxx_port_read
LBB0_9:
	movq	_U64_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_1:
	xorl	%ecx, %ecx
LBB0_2:
	orl	4(%r15), %ebx
	orl	%ecx, %ebx
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mv88e6xxx_g1_stats_read
	cmpl	$8, 8(%r15)
                                        ## implicit-def: $eax
	jne	LBB0_10
## %bb.3:
	incl	%ebx
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mv88e6xxx_g1_stats_read
                                        ## implicit-def: $eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U64_MAX,4,2                    ## @U64_MAX
	.no_dead_strip	__mv88e6xxx_get_ethtool_stat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _mv88e6xxx_get_ethtool_stat
__mv88e6xxx_get_ethtool_stat:           ; @_mv88e6xxx_get_ethtool_stat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	stp	wzr, wzr, [sp, #4]
	ldr	w8, [x1]
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
	mov	x21, x2
	ldr	w2, [x20, #4]
	add	x3, sp, #4
	mov	x0, x19
	mov	x1, x21
	bl	_mv88e6xxx_port_read
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w8, [x20, #8]
                                        ; implicit-def: $w0
	cmp	w8, #4
	b.ne	LBB0_10
; %bb.5:
	ldr	w8, [x20, #4]
	add	w2, w8, #1
	add	x3, sp, #4
	mov	x0, x19
	mov	x1, x21
	bl	_mv88e6xxx_port_read
LBB0_6:
Lloh0:
	adrp	x8, _U64_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _U64_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_7:
	mov	w3, #0
LBB0_8:
	ldr	w8, [x20, #4]
	orr	w8, w8, w4
	orr	w21, w8, w3
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_mv88e6xxx_g1_stats_read
	ldr	w8, [x20, #8]
                                        ; implicit-def: $w0
	cmp	w8, #8
	b.ne	LBB0_10
; %bb.9:
	add	w1, w21, #1
	add	x2, sp, #8
	mov	x0, x19
	bl	_mv88e6xxx_g1_stats_read
                                        ; implicit-def: $w0
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_U64_MAX,4,2                    ; @U64_MAX
	.no_dead_strip	__mv88e6xxx_get_ethtool_stat
.subsections_via_symbols
