	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adin_get_stat
_adin_get_stat:                         ## @adin_get_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_adin_hw_stats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%esi, %rbx
	movq	(%rdi), %r14
	movl	(%rax,%rbx,4), %esi
	cmpl	$32, %esi
	jl	LBB0_3
## %bb.1:
	leaq	(%rax,%rbx,4), %rsi
	leaq	-20(%rbp), %rdx
	callq	_adin_read_mmd_stat_regs
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movl	-20(%rbp), %eax
	jmp	LBB0_5
LBB0_3:
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movzwl	%ax, %eax
	movl	%eax, -20(%rbp)
LBB0_5:
	movq	(%r14), %rcx
	addl	(%rcx,%rbx,4), %eax
	movl	%eax, (%rcx,%rbx,4)
	jmp	LBB0_8
LBB0_7:
	movl	$-1, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adin_hw_stats,8,3              ## @adin_hw_stats
	.no_dead_strip	_adin_get_stat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adin_get_stat
_adin_get_stat:                         ; @adin_get_stat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _adin_hw_stats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adin_hw_stats@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, w1, sxtw #2
	ldr	x20, [x0]
	ldr	w8, [x1]
	cmp	w8, #32
	b.lt	LBB0_3
; %bb.1:
	add	x2, sp, #12
	bl	_adin_read_mmd_stat_regs
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w8, [sp, #12]
	b	LBB0_5
LBB0_3:
	mov	x1, x8
	bl	_phy_read
	tbnz	w0, #31, LBB0_6
; %bb.4:
	and	w8, w0, #0xffff
	str	w8, [sp, #12]
LBB0_5:
	sxtw	x9, w19
	ldr	x10, [x20]
	lsl	x9, x9, #2
	ldr	w11, [x10, x9]
	add	w0, w11, w8
	str	w0, [x10, x9]
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_adin_hw_stats,8,3              ; @adin_hw_stats
	.no_dead_strip	_adin_get_stat
.subsections_via_symbols
