	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_vsc8211_phy_prep            ## -- Begin function t3_vsc8211_phy_prep
	.p2align	4, 0x90
_t3_vsc8211_phy_prep:                   ## @t3_vsc8211_phy_prep
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SUPPORTED_10baseT_Full@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_100baseT_Full@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r9d
	orl	(%rax), %r9d
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %r14
	orl	(%r14), %r9d
	movq	_SUPPORTED_MII@GOTPCREL(%rip), %r15
	orl	(%r15), %r9d
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	movq	%rcx, %r8
	movq	%rdi, %rbx
	movq	_SUPPORTED_IRQ@GOTPCREL(%rip), %r13
	orl	(%r13), %r9d
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rsp)
	movq	_vsc8211_ops@GOTPCREL(%rip), %rcx
	callq	_cphy_init
	movl	$20, %edi
	callq	_msleep
	movq	_MDIO_DEVAD_NONE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_VSC8211_EXT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_t3_mdio_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r13, %rsi
	movq	_SUPPORTED_1000baseT_Full@GOTPCREL(%rip), %r13
	movq	_VSC_CTRL_MEDIA_MODE_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_3
## %bb.2:
	movl	(%r12), %esi
	movq	_VSC8211_LED_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$256, %ecx                      ## imm = 0x100
	callq	_t3_mdio_write
	jmp	LBB0_9
LBB0_3:
	movl	(%r14), %eax
	orl	(%r13), %eax
	orl	(%r15), %eax
	movq	_SUPPORTED_FIBRE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	(%rsi), %eax
	movl	%eax, (%rbx)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_vsc8211_fiber_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movl	(%r12), %esi
	movq	_VSC8211_EXT_PAGE_AXS@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_t3_mdio_write
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movl	(%r12), %esi
	movq	_VSC8211_SIGDET_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_t3_mdio_write
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movl	(%r12), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_t3_mdio_write
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movl	(%r12), %esi
	movq	_VSC8211_EXT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VSC_CTRL_CLAUSE37_VIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	-44(%rbp), %ecx
	movq	%rbx, %rdi
	callq	_t3_mdio_write
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vsc8211_reset
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	$5, %edi
	callq	_udelay
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vsc8211_ops,4,2                ## @vsc8211_ops
	.comm	_SUPPORTED_10baseT_Full,4,2     ## @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Full,4,2    ## @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_1000baseT_Full,4,2   ## @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_SUPPORTED_MII,4,2              ## @SUPPORTED_MII
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.comm	_SUPPORTED_IRQ,4,2              ## @SUPPORTED_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"10/100/1000BASE-T"

	.comm	_MDIO_DEVAD_NONE,4,2            ## @MDIO_DEVAD_NONE
	.comm	_VSC8211_EXT_CTRL,4,2           ## @VSC8211_EXT_CTRL
	.comm	_VSC_CTRL_MEDIA_MODE_HI,4,2     ## @VSC_CTRL_MEDIA_MODE_HI
	.comm	_VSC8211_LED_CTRL,4,2           ## @VSC8211_LED_CTRL
	.comm	_SUPPORTED_FIBRE,4,2            ## @SUPPORTED_FIBRE
L_.str.1:                               ## @.str.1
	.asciz	"1000BASE-X"

	.comm	_vsc8211_fiber_ops,4,2          ## @vsc8211_fiber_ops
	.comm	_VSC8211_EXT_PAGE_AXS,4,2       ## @VSC8211_EXT_PAGE_AXS
	.comm	_VSC8211_SIGDET_CTRL,4,2        ## @VSC8211_SIGDET_CTRL
	.comm	_VSC_CTRL_CLAUSE37_VIEW,4,2     ## @VSC_CTRL_CLAUSE37_VIEW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_vsc8211_phy_prep            ; -- Begin function t3_vsc8211_phy_prep
	.p2align	2
_t3_vsc8211_phy_prep:                   ; @t3_vsc8211_phy_prep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x4, x3
	mov	x19, x0
Lloh0:
	adrp	x8, _SUPPORTED_10baseT_Full@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_10baseT_Full@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SUPPORTED_100baseT_Full@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUPPORTED_100baseT_Full@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x22, _SUPPORTED_1000baseT_Full@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SUPPORTED_1000baseT_Full@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w8, w9
Lloh8:
	adrp	x23, _SUPPORTED_Autoneg@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SUPPORTED_Autoneg@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w8, w9
Lloh10:
	adrp	x24, _SUPPORTED_MII@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SUPPORTED_MII@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _SUPPORTED_TP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SUPPORTED_TP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x25, _SUPPORTED_IRQ@GOTPAGE
Lloh16:
	ldr	x25, [x25, _SUPPORTED_IRQ@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w5, w8, w9
Lloh17:
	adrp	x3, _vsc8211_ops@GOTPAGE
Lloh18:
	ldr	x3, [x3, _vsc8211_ops@GOTPAGEOFF]
Lloh19:
	adrp	x6, l_.str@PAGE
Lloh20:
	add	x6, x6, l_.str@PAGEOFF
	bl	_cphy_init
	mov	w0, #20
	bl	_msleep
Lloh21:
	adrp	x20, _MDIO_DEVAD_NONE@GOTPAGE
Lloh22:
	ldr	x20, [x20, _MDIO_DEVAD_NONE@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh23:
	adrp	x21, _VSC8211_EXT_CTRL@GOTPAGE
Lloh24:
	ldr	x21, [x21, _VSC8211_EXT_CTRL@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x19
	bl	_t3_mdio_read
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	w8, [sp, #12]
Lloh25:
	adrp	x9, _VSC_CTRL_MEDIA_MODE_HI@GOTPAGE
Lloh26:
	ldr	x9, [x9, _VSC_CTRL_MEDIA_MODE_HI@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x20]
Lloh28:
	adrp	x8, _VSC8211_LED_CTRL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VSC8211_LED_CTRL@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #256
	bl	_t3_mdio_write
	b	LBB0_9
LBB0_3:
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh31:
	adrp	x9, _SUPPORTED_FIBRE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SUPPORTED_FIBRE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x25]
	orr	w8, w8, w9
	str	w8, [x19]
Lloh34:
	adrp	x8, l_.str.1@PAGE
Lloh35:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh36:
	adrp	x9, _vsc8211_fiber_ops@GOTPAGE
Lloh37:
	ldr	x9, [x9, _vsc8211_fiber_ops@GOTPAGEOFF]
	stp	x8, x9, [x19, #8]
	ldr	w1, [x20]
Lloh38:
	adrp	x22, _VSC8211_EXT_PAGE_AXS@GOTPAGE
Lloh39:
	ldr	x22, [x22, _VSC8211_EXT_PAGE_AXS@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w3, #1
	bl	_t3_mdio_write
	cbnz	w0, LBB0_9
; %bb.4:
	ldr	w1, [x20]
Lloh40:
	adrp	x8, _VSC8211_SIGDET_CTRL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _VSC8211_SIGDET_CTRL@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_t3_mdio_write
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	w1, [x20]
	ldr	w2, [x22]
	mov	x0, x19
	mov	w3, #0
	bl	_t3_mdio_write
	cbnz	w0, LBB0_9
; %bb.6:
	ldr	w1, [x20]
	ldr	w2, [x21]
	ldr	w8, [sp, #12]
Lloh43:
	adrp	x9, _VSC_CTRL_CLAUSE37_VIEW@GOTPAGE
Lloh44:
	ldr	x9, [x9, _VSC_CTRL_CLAUSE37_VIEW@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	bl	_t3_mdio_write
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	bl	_vsc8211_reset
	cbnz	w0, LBB0_9
; %bb.8:
	mov	w0, #5
	bl	_udelay
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_vsc8211_ops,4,2                ; @vsc8211_ops
	.comm	_SUPPORTED_10baseT_Full,4,2     ; @SUPPORTED_10baseT_Full
	.comm	_SUPPORTED_100baseT_Full,4,2    ; @SUPPORTED_100baseT_Full
	.comm	_SUPPORTED_1000baseT_Full,4,2   ; @SUPPORTED_1000baseT_Full
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_SUPPORTED_MII,4,2              ; @SUPPORTED_MII
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.comm	_SUPPORTED_IRQ,4,2              ; @SUPPORTED_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"10/100/1000BASE-T"

	.comm	_MDIO_DEVAD_NONE,4,2            ; @MDIO_DEVAD_NONE
	.comm	_VSC8211_EXT_CTRL,4,2           ; @VSC8211_EXT_CTRL
	.comm	_VSC_CTRL_MEDIA_MODE_HI,4,2     ; @VSC_CTRL_MEDIA_MODE_HI
	.comm	_VSC8211_LED_CTRL,4,2           ; @VSC8211_LED_CTRL
	.comm	_SUPPORTED_FIBRE,4,2            ; @SUPPORTED_FIBRE
l_.str.1:                               ; @.str.1
	.asciz	"1000BASE-X"

	.comm	_vsc8211_fiber_ops,4,2          ; @vsc8211_fiber_ops
	.comm	_VSC8211_EXT_PAGE_AXS,4,2       ; @VSC8211_EXT_PAGE_AXS
	.comm	_VSC8211_SIGDET_CTRL,4,2        ; @VSC8211_SIGDET_CTRL
	.comm	_VSC_CTRL_CLAUSE37_VIEW,4,2     ; @VSC_CTRL_CLAUSE37_VIEW
.subsections_via_symbols
