	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netx_eth_phy_read
_netx_eth_phy_read:                     ## @netx_eth_phy_read
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %edi
	movq	_MIIMU_SNRDY@GOTPCREL(%rip), %r12
	movq	_MIIMU_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	orl	(%r12), %ebx
	callq	_MIIMU_PHYADDR
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_MIIMU_REGADDR
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_MIIMU_PHY_NRES@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_NETX_MIIMU@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_writel
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_readl
	testl	%eax, (%r12)
	jne	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	callq	_readl
	sarl	$16, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIIMU_SNRDY,4,2                ## @MIIMU_SNRDY
	.comm	_MIIMU_PREAMBLE,4,2             ## @MIIMU_PREAMBLE
	.comm	_MIIMU_PHY_NRES,4,2             ## @MIIMU_PHY_NRES
	.comm	_NETX_MIIMU,4,2                 ## @NETX_MIIMU
	.no_dead_strip	_netx_eth_phy_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netx_eth_phy_read
_netx_eth_phy_read:                     ; @netx_eth_phy_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x0, x1
Lloh0:
	adrp	x20, _MIIMU_SNRDY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MIIMU_SNRDY@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _MIIMU_PREAMBLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MIIMU_PREAMBLE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w21, w9, w8
	bl	_MIIMU_PHYADDR
	orr	w21, w21, w0
	mov	x0, x19
	bl	_MIIMU_REGADDR
Lloh5:
	adrp	x8, _MIIMU_PHY_NRES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIIMU_PHY_NRES@GOTPAGEOFF]
	orr	w9, w21, w0
Lloh7:
	ldr	w8, [x8]
	orr	w0, w9, w8
Lloh8:
	adrp	x19, _NETX_MIIMU@GOTPAGE
Lloh9:
	ldr	x19, [x19, _NETX_MIIMU@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_writel
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_readl
	ldr	w8, [x20]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.2:
	ldr	w0, [x19]
	bl	_readl
	asr	w0, w0, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MIIMU_SNRDY,4,2                ; @MIIMU_SNRDY
	.comm	_MIIMU_PREAMBLE,4,2             ; @MIIMU_PREAMBLE
	.comm	_MIIMU_PHY_NRES,4,2             ; @MIIMU_PHY_NRES
	.comm	_NETX_MIIMU,4,2                 ; @NETX_MIIMU
	.no_dead_strip	_netx_eth_phy_read
.subsections_via_symbols
