	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc85xx_config_init
_vsc85xx_config_init:                   ## @vsc85xx_config_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	callq	_vsc85xx_default_config
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_vsc85xx_mac_if_set
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	movl	16(%r15), %esi
	movq	%rbx, %rdi
	callq	_vsc85xx_edge_rate_cntl_set
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:
	movq	(%rbx), %rcx
	movl	4(%rcx), %eax
	andl	(%rcx), %eax
	movq	_PHY_ID_VSC8531@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_7
## %bb.4:
	movq	_PHY_ID_VSC8541@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_PHY_ID_VSC8530@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_PHY_ID_VSC8540@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_vsc8531_pre_init_seq_set
	testl	%eax, %eax
	jne	LBB0_14
LBB0_8:
	movq	%rbx, %rdi
	callq	_vsc85xx_eee_init_seq_set
	testl	%eax, %eax
	je	LBB0_9
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpl	$0, (%r15)
	jle	LBB0_10
## %bb.11:
	xorl	%r14d, %r14d
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%r14,4), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_vsc85xx_led_cntl_set
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%r14
	movslq	(%r15), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r14
	jl	LBB0_13
	jmp	LBB0_14
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_ID_VSC8531,4,2             ## @PHY_ID_VSC8531
	.comm	_PHY_ID_VSC8541,4,2             ## @PHY_ID_VSC8541
	.comm	_PHY_ID_VSC8530,4,2             ## @PHY_ID_VSC8530
	.comm	_PHY_ID_VSC8540,4,2             ## @PHY_ID_VSC8540
	.no_dead_strip	_vsc85xx_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc85xx_config_init
_vsc85xx_config_init:                   ; @vsc85xx_config_init
	.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
	mov	x19, x0
	ldr	x21, [x0, #16]
	bl	_vsc85xx_default_config
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_vsc85xx_mac_if_set
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_vsc85xx_edge_rate_cntl_set
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	x8, [x19]
	ldp	w9, w8, [x8]
	and	w8, w8, w9
Lloh0:
	adrp	x9, _PHY_ID_VSC8531@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHY_ID_VSC8531@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PHY_ID_VSC8541@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PHY_ID_VSC8541@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _PHY_ID_VSC8530@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PHY_ID_VSC8530@GOTPAGEOFF]
Lloh8:
	adrp	x12, _PHY_ID_VSC8540@GOTPAGE
Lloh9:
	ldr	x12, [x12, _PHY_ID_VSC8540@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
Lloh11:
	ldr	w12, [x12]
	cmp	w9, w8
	ccmp	w10, w8, #4, ne
	ccmp	w11, w8, #4, ne
	ccmp	w12, w8, #4, ne
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_vsc8531_pre_init_seq_set
	cbnz	w0, LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_vsc85xx_eee_init_seq_set
	cbz	w0, LBB0_7
LBB0_6:
	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
LBB0_7:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x19
	mov	x1, x20
	bl	_vsc85xx_led_cntl_set
	cbnz	w0, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_9
	b	LBB0_6
LBB0_11:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_ID_VSC8531,4,2             ; @PHY_ID_VSC8531
	.comm	_PHY_ID_VSC8541,4,2             ; @PHY_ID_VSC8541
	.comm	_PHY_ID_VSC8530,4,2             ; @PHY_ID_VSC8530
	.comm	_PHY_ID_VSC8540,4,2             ; @PHY_ID_VSC8540
	.no_dead_strip	_vsc85xx_config_init
.subsections_via_symbols
