	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_qt2045_phy_prep             ## -- Begin function t3_qt2045_phy_prep
	.p2align	4, 0x90
_t3_qt2045_phy_prep:                    ## @t3_qt2045_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SUPPORTED_10000baseT_Full@GOTPCREL(%rip), %rax
	movq	_SUPPORTED_AUI@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r9d
	orl	(%rax), %r9d
	movq	%rcx, %r8
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	_SUPPORTED_TP@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rsp)
	movq	_qt2045_ops@GOTPCREL(%rip), %rcx
	callq	_cphy_init
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.1:
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_STAT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	movq	%r14, %rdi
	callq	_t3_mdio_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	cmpl	$65535, -20(%rbp)               ## imm = 0xFFFF
	jne	LBB0_4
## %bb.3:
	movl	$1, (%r14)
LBB0_4:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qt2045_ops,4,2                 ## @qt2045_ops
	.comm	_SUPPORTED_10000baseT_Full,4,2  ## @SUPPORTED_10000baseT_Full
	.comm	_SUPPORTED_AUI,4,2              ## @SUPPORTED_AUI
	.comm	_SUPPORTED_TP,4,2               ## @SUPPORTED_TP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"10GBASE-CX4"

	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_MDIO_STAT1,4,2                 ## @MDIO_STAT1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t3_qt2045_phy_prep             ; -- Begin function t3_qt2045_phy_prep
	.p2align	2
_t3_qt2045_phy_prep:                    ; @t3_qt2045_phy_prep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x4, x3
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _SUPPORTED_10000baseT_Full@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_10000baseT_Full@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SUPPORTED_AUI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SUPPORTED_AUI@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _SUPPORTED_TP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SUPPORTED_TP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w5, w8, w9
Lloh9:
	adrp	x3, _qt2045_ops@GOTPAGE
Lloh10:
	ldr	x3, [x3, _qt2045_ops@GOTPAGEOFF]
Lloh11:
	adrp	x6, l_.str@PAGE
Lloh12:
	add	x6, x6, l_.str@PAGEOFF
	bl	_cphy_init
	cbnz	w20, LBB0_3
; %bb.1:
Lloh13:
	adrp	x8, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _MDIO_STAT1@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MDIO_STAT1@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	bl	_t3_mdio_read
	ldr	w8, [sp, #12]
	cmp	w0, #0
	mov	w9, #65535
	ccmp	w8, w9, #0, eq
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_qt2045_ops,4,2                 ; @qt2045_ops
	.comm	_SUPPORTED_10000baseT_Full,4,2  ; @SUPPORTED_10000baseT_Full
	.comm	_SUPPORTED_AUI,4,2              ; @SUPPORTED_AUI
	.comm	_SUPPORTED_TP,4,2               ; @SUPPORTED_TP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"10GBASE-CX4"

	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_MDIO_STAT1,4,2                 ; @MDIO_STAT1
.subsections_via_symbols
