	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc82x4_config_autocross_enable
_vsc82x4_config_autocross_enable:       ## @vsc82x4_config_autocross_enable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_7
## %bb.2:
	movq	_MII_VSC82X4_EXT_PAGE_ACCESS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$21173, %edx                    ## imm = 0x52B5
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	_MII_VSC82X4_EXT_PAGE_18E@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$18, %edx
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	movq	_MII_VSC82X4_EXT_PAGE_17E@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$10243, %edx                    ## imm = 0x2803
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	_MII_VSC82X4_EXT_PAGE_16E@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$34810, %edx                    ## imm = 0x87FA
	callq	_phy_write
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_phy_write                      ## TAILCALL
LBB0_6:
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_phy_write
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_MII_VSC82X4_EXT_PAGE_ACCESS,4,2 ## @MII_VSC82X4_EXT_PAGE_ACCESS
	.comm	_MII_VSC82X4_EXT_PAGE_18E,4,2   ## @MII_VSC82X4_EXT_PAGE_18E
	.comm	_MII_VSC82X4_EXT_PAGE_17E,4,2   ## @MII_VSC82X4_EXT_PAGE_17E
	.comm	_MII_VSC82X4_EXT_PAGE_16E,4,2   ## @MII_VSC82X4_EXT_PAGE_16E
	.no_dead_strip	_vsc82x4_config_autocross_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc82x4_config_autocross_enable
_vsc82x4_config_autocross_enable:       ; @vsc82x4_config_autocross_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _SPEED_100@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPEED_100@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
LBB0_2:
	mov	w20, #0
	b	LBB0_9
LBB0_3:
Lloh6:
	adrp	x21, _MII_VSC82X4_EXT_PAGE_ACCESS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MII_VSC82X4_EXT_PAGE_ACCESS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #21173
	bl	_phy_write
	tbnz	w0, #31, LBB0_8
; %bb.4:
Lloh8:
	adrp	x8, _MII_VSC82X4_EXT_PAGE_18E@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MII_VSC82X4_EXT_PAGE_18E@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #18
	bl	_phy_write
	tbnz	w0, #31, LBB0_8
; %bb.5:
Lloh11:
	adrp	x8, _MII_VSC82X4_EXT_PAGE_17E@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MII_VSC82X4_EXT_PAGE_17E@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #10243
	bl	_phy_write
	tbnz	w0, #31, LBB0_8
; %bb.6:
Lloh14:
	adrp	x8, _MII_VSC82X4_EXT_PAGE_16E@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MII_VSC82X4_EXT_PAGE_16E@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #34810
	bl	_phy_write
	tbnz	w0, #31, LBB0_8
; %bb.7:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_phy_write
LBB0_8:
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_phy_write
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_MII_VSC82X4_EXT_PAGE_ACCESS,4,2 ; @MII_VSC82X4_EXT_PAGE_ACCESS
	.comm	_MII_VSC82X4_EXT_PAGE_18E,4,2   ; @MII_VSC82X4_EXT_PAGE_18E
	.comm	_MII_VSC82X4_EXT_PAGE_17E,4,2   ; @MII_VSC82X4_EXT_PAGE_17E
	.comm	_MII_VSC82X4_EXT_PAGE_16E,4,2   ; @MII_VSC82X4_EXT_PAGE_16E
	.no_dead_strip	_vsc82x4_config_autocross_enable
.subsections_via_symbols
