	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __xm_phy_read
___xm_phy_read:                         ## @__xm_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %ecx
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_XM_PHY_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rdi), %ecx
	callq	_xm_write16
	movq	_XM_PHY_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_xm_read16
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r14)
	movq	8(%rbx), %rax
	movq	_SK_PHY_XMAC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
LBB0_6:
	movq	_XM_PHY_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_xm_read16
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_PHY_RETRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.2:
	xorl	%r12d, %r12d
	movq	_XM_MMU_CMD@GOTPCREL(%rip), %r14
	movq	_XM_MMU_PHY_RDY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_xm_read16
	testl	%eax, (%r13)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_udelay
	incl	%r12d
	movq	_PHY_RETRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_3
LBB0_5:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XM_PHY_ADDR,4,2                ## @XM_PHY_ADDR
	.comm	_XM_PHY_DATA,4,2                ## @XM_PHY_DATA
	.comm	_SK_PHY_XMAC,8,3                ## @SK_PHY_XMAC
	.comm	_PHY_RETRIES,4,2                ## @PHY_RETRIES
	.comm	_XM_MMU_CMD,4,2                 ## @XM_MMU_CMD
	.comm	_XM_MMU_PHY_RDY,4,2             ## @XM_MMU_PHY_RDY
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	___xm_phy_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __xm_phy_read
___xm_phy_read:                         ; @__xm_phy_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _XM_PHY_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XM_PHY_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w3, w9, w2
	mov	x2, x8
	bl	_xm_write16
Lloh3:
	adrp	x22, _XM_PHY_DATA@GOTPAGE
Lloh4:
	ldr	x22, [x22, _XM_PHY_DATA@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_xm_read16
	str	w0, [x19]
	ldr	x8, [x21, #8]
Lloh5:
	adrp	x9, _SK_PHY_XMAC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SK_PHY_XMAC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_xm_read16
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_7
LBB0_2:
Lloh8:
	adrp	x23, _PHY_RETRIES@GOTPAGE
Lloh9:
	ldr	x23, [x23, _PHY_RETRIES@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w24, #0
Lloh10:
	adrp	x25, _XM_MMU_CMD@GOTPAGE
Lloh11:
	ldr	x25, [x25, _XM_MMU_CMD@GOTPAGEOFF]
Lloh12:
	adrp	x26, _XM_MMU_PHY_RDY@GOTPAGE
Lloh13:
	ldr	x26, [x26, _XM_MMU_PHY_RDY@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x20
	bl	_xm_read16
	ldr	w8, [x26]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.lt	LBB0_4
LBB0_6:
Lloh14:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_XM_PHY_ADDR,4,2                ; @XM_PHY_ADDR
	.comm	_XM_PHY_DATA,4,2                ; @XM_PHY_DATA
	.comm	_SK_PHY_XMAC,8,3                ; @SK_PHY_XMAC
	.comm	_PHY_RETRIES,4,2                ; @PHY_RETRIES
	.comm	_XM_MMU_CMD,4,2                 ; @XM_MMU_CMD
	.comm	_XM_MMU_PHY_RDY,4,2             ; @XM_MMU_PHY_RDY
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	___xm_phy_read
.subsections_via_symbols
