	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qt202x_phy_reconfigure
_qt202x_phy_reconfigure:                ## @qt202x_phy_reconfigure
	.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	(%rdi), %rax
	movq	32(%rdi), %r14
	movq	_PHY_TYPE_QT2025C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_qt2025c_select_phy_mode
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	leaq	24(%rbx), %rdi
	movl	8(%rbx), %eax
	movl	24(%rbx), %esi
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PMA_PMD_FTX_CTRL2_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_PMA_PMD_FTX_STATIC_LBN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %r8d
	shll	%cl, %r8d
	movl	$1, %r9d
	movq	_PHY_MODE_TX_DISABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.3:
	movq	_PHY_MODE_LOW_POWER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.4:
	movq	16(%rbx), %rax
	movq	_LOOPBACK_PCS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_LOOPBACK_PMAPMD@GOTPCREL(%rip), %rcx
	xorl	%r9d, %r9d
	cmpq	(%rcx), %rax
	sete	%r9b
LBB0_6:
	movl	%r10d, %ecx
	callq	_mdio_set_flag
	jmp	LBB0_11
LBB0_7:
	movq	_PHY_MODE_TX_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_10
## %bb.8:
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_qt202x_reset_phy
LBB0_10:
	movq	%rbx, %rdi
	callq	_ef4_mdio_transmit_disable
LBB0_11:
	movq	%rbx, %rdi
	callq	_ef4_mdio_phy_reconfigure
	movl	8(%rbx), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_TYPE_QT2025C,8,3           ## @PHY_TYPE_QT2025C
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_PMA_PMD_FTX_CTRL2_REG,4,2      ## @PMA_PMD_FTX_CTRL2_REG
	.comm	_PMA_PMD_FTX_STATIC_LBN,4,2     ## @PMA_PMD_FTX_STATIC_LBN
	.comm	_PHY_MODE_TX_DISABLED,4,2       ## @PHY_MODE_TX_DISABLED
	.comm	_PHY_MODE_LOW_POWER,4,2         ## @PHY_MODE_LOW_POWER
	.comm	_LOOPBACK_PCS,8,3               ## @LOOPBACK_PCS
	.comm	_LOOPBACK_PMAPMD,8,3            ## @LOOPBACK_PMAPMD
	.no_dead_strip	_qt202x_phy_reconfigure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qt202x_phy_reconfigure
_qt202x_phy_reconfigure:                ; @qt202x_phy_reconfigure
	.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
	ldr	x20, [x0, #32]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PHY_TYPE_QT2025C@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_TYPE_QT2025C@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_qt2025c_select_phy_mode
	cbnz	w0, LBB0_9
; %bb.2:
	mov	x0, x19
	ldr	w1, [x0, #24]!
Lloh3:
	adrp	x8, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PMA_PMD_FTX_CTRL2_REG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PMA_PMD_FTX_CTRL2_REG@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	ldr	w3, [x9]
Lloh9:
	adrp	x8, _PMA_PMD_FTX_STATIC_LBN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PMA_PMD_FTX_STATIC_LBN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w5, #1
	lsl	w4, w5, w8
	ldur	w8, [x0, #-16]
Lloh12:
	adrp	x9, _PHY_MODE_TX_DISABLED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PHY_MODE_TX_DISABLED@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_3:
	bl	_mdio_set_flag
	b	LBB0_8
LBB0_4:
	ldr	w9, [x19, #8]
Lloh15:
	adrp	x8, _PHY_MODE_TX_DISABLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHY_MODE_TX_DISABLED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_7
; %bb.5:
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_qt202x_reset_phy
LBB0_7:
	mov	x0, x19
	bl	_ef4_mdio_transmit_disable
LBB0_8:
	mov	x0, x19
	bl	_ef4_mdio_phy_reconfigure
	mov	w0, #0
	ldr	w8, [x19, #8]
	str	w8, [x20]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh18:
	adrp	x9, _PHY_MODE_LOW_POWER@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PHY_MODE_LOW_POWER@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x19, #16]
Lloh21:
	adrp	x9, _LOOPBACK_PCS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LOOPBACK_PCS@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_12:
	mov	w5, #1
	bl	_mdio_set_flag
	b	LBB0_8
LBB0_13:
Lloh24:
	adrp	x9, _LOOPBACK_PMAPMD@GOTPAGE
Lloh25:
	ldr	x9, [x9, _LOOPBACK_PMAPMD@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w5, eq
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_TYPE_QT2025C,8,3           ; @PHY_TYPE_QT2025C
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_PMA_PMD_FTX_CTRL2_REG,4,2      ; @PMA_PMD_FTX_CTRL2_REG
	.comm	_PMA_PMD_FTX_STATIC_LBN,4,2     ; @PMA_PMD_FTX_STATIC_LBN
	.comm	_PHY_MODE_TX_DISABLED,4,2       ; @PHY_MODE_TX_DISABLED
	.comm	_PHY_MODE_LOW_POWER,4,2         ; @PHY_MODE_LOW_POWER
	.comm	_LOOPBACK_PCS,8,3               ; @LOOPBACK_PCS
	.comm	_LOOPBACK_PMAPMD,8,3            ; @LOOPBACK_PMAPMD
	.no_dead_strip	_qt202x_phy_reconfigure
.subsections_via_symbols
