	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan9303_virt_phy_reg_read
_lan9303_virt_phy_reg_read:             ## @lan9303_virt_phy_reg_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_MII_EXPANSION@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jge	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movl	(%rdi), %edi
	movq	_LAN9303_VIRT_PHY_BASE@GOTPCREL(%rip), %rax
	movslq	%esi, %rsi
	addq	(%rax), %rsi
	leaq	-4(%rbp), %rdx
	callq	_lan9303_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movzwl	-4(%rbp), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_EXPANSION,4,2              ## @MII_EXPANSION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LAN9303_VIRT_PHY_BASE,8,3      ## @LAN9303_VIRT_PHY_BASE
	.no_dead_strip	_lan9303_virt_phy_reg_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan9303_virt_phy_reg_read
_lan9303_virt_phy_reg_read:             ; @lan9303_virt_phy_reg_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _MII_EXPANSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_EXPANSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	ldr	w0, [x0]
Lloh6:
	adrp	x8, _LAN9303_VIRT_PHY_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LAN9303_VIRT_PHY_BASE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, w1, sxtw
	sub	x2, x29, #4
	bl	_lan9303_read
	cbnz	w0, LBB0_4
; %bb.3:
	ldurh	w0, [x29, #-4]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_EXPANSION,4,2              ; @MII_EXPANSION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LAN9303_VIRT_PHY_BASE,8,3      ; @LAN9303_VIRT_PHY_BASE
	.no_dead_strip	_lan9303_virt_phy_reg_read
.subsections_via_symbols
