	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lxt973_probe
_lxt973_probe:                          ## @lxt973_probe
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MII_LXT973_PCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phy_read
	movq	_PCR_FIBER_SELECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_MII_BMCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_phy_read
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_phy_write
	leaq	_lxt973_probe(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_LXT973_PCR,4,2             ## @MII_LXT973_PCR
	.comm	_PCR_FIBER_SELECT,4,2           ## @PCR_FIBER_SELECT
	.comm	_MII_BMCR,4,2                   ## @MII_BMCR
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.no_dead_strip	_lxt973_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lxt973_probe
_lxt973_probe:                          ; @lxt973_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MII_LXT973_PCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_LXT973_PCR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_phy_read
Lloh3:
	adrp	x8, _PCR_FIBER_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCR_FIBER_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x20, _MII_BMCR@GOTPAGE
Lloh7:
	ldr	x20, [x20, _MII_BMCR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_read
Lloh8:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _BMCR_FULLDPLX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	bic	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_write
Lloh17:
	adrp	x8, _lxt973_probe@PAGE
Lloh18:
	add	x8, x8, _lxt973_probe@PAGEOFF
	b	LBB0_3
LBB0_2:
	mov	x8, #0
LBB0_3:
	str	x8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_LXT973_PCR,4,2             ; @MII_LXT973_PCR
	.comm	_PCR_FIBER_SELECT,4,2           ; @PCR_FIBER_SELECT
	.comm	_MII_BMCR,4,2                   ; @MII_BMCR
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.no_dead_strip	_lxt973_probe
.subsections_via_symbols
