	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tenxpress_phy_init
_tenxpress_phy_init:                    ## @tenxpress_phy_init
	.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
	callq	_falcon_board
	movq	(%rax), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_PHY_MODE_SPECIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
LBB0_3:
	movq	%rbx, %rdi
	callq	_tenxpress_init
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_ef4_link_set_wanted_fc
	movq	%rbx, %rdi
	callq	_ef4_mdio_an_reconfigure
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$33, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_schedule_timeout_uninterruptible
	movq	%rbx, %rdi
	callq	_falcon_reset_xaui
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_TENXPRESS_REQUIRED_DEVS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ef4_mdio_wait_reset_mmds
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ef4_mdio_check_mmds
	testl	%eax, %eax
	jns	LBB0_3
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_MODE_SPECIAL,4,2           ## @PHY_MODE_SPECIAL
	.comm	_TENXPRESS_REQUIRED_DEVS,4,2    ## @TENXPRESS_REQUIRED_DEVS
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_tenxpress_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tenxpress_phy_init
_tenxpress_phy_init:                    ; @tenxpress_phy_init
	.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
	bl	_falcon_board
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PHY_MODE_SPECIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_MODE_SPECIAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_1:
	mov	x0, x19
	bl	_tenxpress_init
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_ef4_link_set_wanted_fc
	mov	x0, x19
	bl	_ef4_mdio_an_reconfigure
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w0, w8, w9
	bl	_schedule_timeout_uninterruptible
	mov	x0, x19
	bl	_falcon_reset_xaui
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x20, _TENXPRESS_REQUIRED_DEVS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _TENXPRESS_REQUIRED_DEVS@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ef4_mdio_wait_reset_mmds
	tbnz	w0, #31, LBB0_5
; %bb.4:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ef4_mdio_check_mmds
	tbz	w0, #31, LBB0_1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_MODE_SPECIAL,4,2           ; @PHY_MODE_SPECIAL
	.comm	_TENXPRESS_REQUIRED_DEVS,4,2    ; @TENXPRESS_REQUIRED_DEVS
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_tenxpress_phy_init
.subsections_via_symbols
