	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txc43128_phy_reconfigure
_txc43128_phy_reconfigure:              ## @txc43128_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	%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	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%r14), %r12d
	xorl	(%rdi), %r12d
	movq	_TXC_LOOPBACKS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_LOOPBACK_CHANGED
	movl	%eax, %r15d
	movl	(%rbx), %eax
	andl	%r12d, %eax
	movq	_PHY_MODE_TX_DISABLED@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_txc_reset_phy
	movq	%rbx, %rdi
	callq	_txc_apply_defaults
	movq	%rbx, %rdi
	callq	_falcon_reset_xaui
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, %r12d
LBB0_2:
	movq	%rbx, %rdi
	callq	_ef4_mdio_transmit_disable
	movq	%rbx, %rdi
	callq	_ef4_mdio_phy_reconfigure
	movq	_PHY_MODE_LOW_POWER@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_txc_set_power
LBB0_4:
	orl	%r12d, %r15d
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_txc_reset_logic
LBB0_6:
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movl	4(%rbx), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TXC_LOOPBACKS,4,2              ## @TXC_LOOPBACKS
	.comm	_PHY_MODE_TX_DISABLED,4,2       ## @PHY_MODE_TX_DISABLED
	.comm	_PHY_MODE_LOW_POWER,4,2         ## @PHY_MODE_LOW_POWER
	.no_dead_strip	_txc43128_phy_reconfigure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function txc43128_phy_reconfigure
_txc43128_phy_reconfigure:              ; @txc43128_phy_reconfigure
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w8, [x0]
	ldr	w9, [x19]
	eor	w22, w9, w8
Lloh0:
	adrp	x8, _TXC_LOOPBACKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TXC_LOOPBACKS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_LOOPBACK_CHANGED
	mov	x21, x0
	ldr	w8, [x20]
	and	w8, w8, w22
Lloh3:
	adrp	x23, _PHY_MODE_TX_DISABLED@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PHY_MODE_TX_DISABLED@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_txc_reset_phy
	mov	x0, x20
	bl	_txc_apply_defaults
	mov	x0, x20
	bl	_falcon_reset_xaui
	ldr	w8, [x23]
	bic	w22, w22, w8
LBB0_2:
	mov	x0, x20
	bl	_ef4_mdio_transmit_disable
	mov	x0, x20
	bl	_ef4_mdio_phy_reconfigure
Lloh5:
	adrp	x8, _PHY_MODE_LOW_POWER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PHY_MODE_LOW_POWER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_txc_set_power
LBB0_4:
	orr	w8, w21, w22
	cbz	w8, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_txc_reset_logic
LBB0_6:
	ldr	d0, [x20]
	str	d0, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TXC_LOOPBACKS,4,2              ; @TXC_LOOPBACKS
	.comm	_PHY_MODE_TX_DISABLED,4,2       ; @PHY_MODE_TX_DISABLED
	.comm	_PHY_MODE_LOW_POWER,4,2         ; @PHY_MODE_LOW_POWER
	.no_dead_strip	_txc43128_phy_reconfigure
.subsections_via_symbols
