	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc7385_setup
_vsc7385_setup:                         ## @vsc7385_setup
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_VSC73XX_BLOCK_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VSC73XX_ICPU_CLOCK_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VSC7385_CLOCK_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_VSC7385_CLOCK_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r8d, (%rsp)
	xorl	%edx, %edx
	callq	_vsc7385_write_verify
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	_VSC73XX_BLOCK_MAC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_VSC73XX_SUBBLOCK_PORT_MAC@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_VSC73XX_ADVPORTM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VSC7385_ADVPORTM_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_VSC7385_ADVPORTM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r8d, (%rsp)
	movq	%r14, %rdi
	callq	_vsc7385_write_verify
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	_VSC73XX_MAC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_VSC7385_MAC_CFG_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	callq	_vsc7385_write
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_VSC73XX_MAC_CFG_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%r15), %edi
	callq	_VSC73XX_MAC_CFG_TX_IPG
	movl	%eax, %ebx
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	8(%r15), %edi
	callq	_VSC73XX_MAC_CFG_CLK_SEL
	orl	%ebx, %eax
	xorl	%ebx, %ebx
	cmpq	$0, (%r15)
	movl	$0, %ecx
	je	LBB0_5
## %bb.4:
	movq	_VSC73XX_MAC_CFG_BIT2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:
	orl	%ecx, %eax
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	_VSC73XX_MAC_CFG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%eax, %r8d
	callq	_vsc7385_write
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	movl	%eax, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VSC73XX_BLOCK_SYSTEM,4,2       ## @VSC73XX_BLOCK_SYSTEM
	.comm	_VSC73XX_ICPU_CLOCK_DELAY,4,2   ## @VSC73XX_ICPU_CLOCK_DELAY
	.comm	_VSC7385_CLOCK_DELAY,4,2        ## @VSC7385_CLOCK_DELAY
	.comm	_VSC7385_CLOCK_DELAY_MASK,4,2   ## @VSC7385_CLOCK_DELAY_MASK
	.comm	_VSC73XX_BLOCK_MAC,4,2          ## @VSC73XX_BLOCK_MAC
	.comm	_VSC73XX_SUBBLOCK_PORT_MAC,4,2  ## @VSC73XX_SUBBLOCK_PORT_MAC
	.comm	_VSC73XX_ADVPORTM,4,2           ## @VSC73XX_ADVPORTM
	.comm	_VSC7385_ADVPORTM_INIT,4,2      ## @VSC7385_ADVPORTM_INIT
	.comm	_VSC7385_ADVPORTM_MASK,4,2      ## @VSC7385_ADVPORTM_MASK
	.comm	_VSC73XX_MAC_CFG,4,2            ## @VSC73XX_MAC_CFG
	.comm	_VSC7385_MAC_CFG_RESET,4,2      ## @VSC7385_MAC_CFG_RESET
	.comm	_VSC73XX_MAC_CFG_INIT,4,2       ## @VSC73XX_MAC_CFG_INIT
	.comm	_VSC73XX_MAC_CFG_BIT2,4,2       ## @VSC73XX_MAC_CFG_BIT2
	.no_dead_strip	_vsc7385_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc7385_setup
_vsc7385_setup:                         ; @vsc7385_setup
	.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	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _VSC73XX_BLOCK_SYSTEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VSC73XX_BLOCK_SYSTEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _VSC73XX_ICPU_CLOCK_DELAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VSC73XX_ICPU_CLOCK_DELAY@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _VSC7385_CLOCK_DELAY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VSC7385_CLOCK_DELAY@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _VSC7385_CLOCK_DELAY_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VSC7385_CLOCK_DELAY_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	w2, #0
	mov	x6, x4
	bl	_vsc7385_write_verify
	cbnz	w0, LBB0_4
; %bb.1:
Lloh12:
	adrp	x21, _VSC73XX_BLOCK_MAC@GOTPAGE
Lloh13:
	ldr	x21, [x21, _VSC73XX_BLOCK_MAC@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh14:
	adrp	x22, _VSC73XX_SUBBLOCK_PORT_MAC@GOTPAGE
Lloh15:
	ldr	x22, [x22, _VSC73XX_SUBBLOCK_PORT_MAC@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh16:
	adrp	x8, _VSC73XX_ADVPORTM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VSC73XX_ADVPORTM@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x8, _VSC7385_ADVPORTM_INIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VSC7385_ADVPORTM_INIT@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
Lloh22:
	adrp	x8, _VSC7385_ADVPORTM_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VSC7385_ADVPORTM_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x6, x4
	bl	_vsc7385_write_verify
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w1, [x21]
	ldr	w2, [x22]
Lloh25:
	adrp	x23, _VSC73XX_MAC_CFG@GOTPAGE
Lloh26:
	ldr	x23, [x23, _VSC73XX_MAC_CFG@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh27:
	adrp	x8, _VSC7385_MAC_CFG_RESET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VSC7385_MAC_CFG_RESET@GOTPAGEOFF]
Lloh29:
	ldr	w4, [x8]
	mov	x0, x19
	bl	_vsc7385_write
	cbnz	w0, LBB0_4
; %bb.3:
Lloh30:
	adrp	x8, _VSC73XX_MAC_CFG_INIT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VSC73XX_MAC_CFG_INIT@GOTPAGEOFF]
Lloh32:
	ldr	w24, [x8]
	ldr	w0, [x20, #12]
	bl	_VSC73XX_MAC_CFG_TX_IPG
	orr	w24, w0, w24
	ldr	w0, [x20, #8]
	bl	_VSC73XX_MAC_CFG_CLK_SEL
	orr	w8, w24, w0
	ldr	x9, [x20]
Lloh33:
	adrp	x10, _VSC73XX_MAC_CFG_BIT2@GOTPAGE
Lloh34:
	ldr	x10, [x10, _VSC73XX_MAC_CFG_BIT2@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w4, w8, w9
	ldr	w1, [x21]
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x19
	bl	_vsc7385_write
LBB0_4:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_VSC73XX_BLOCK_SYSTEM,4,2       ; @VSC73XX_BLOCK_SYSTEM
	.comm	_VSC73XX_ICPU_CLOCK_DELAY,4,2   ; @VSC73XX_ICPU_CLOCK_DELAY
	.comm	_VSC7385_CLOCK_DELAY,4,2        ; @VSC7385_CLOCK_DELAY
	.comm	_VSC7385_CLOCK_DELAY_MASK,4,2   ; @VSC7385_CLOCK_DELAY_MASK
	.comm	_VSC73XX_BLOCK_MAC,4,2          ; @VSC73XX_BLOCK_MAC
	.comm	_VSC73XX_SUBBLOCK_PORT_MAC,4,2  ; @VSC73XX_SUBBLOCK_PORT_MAC
	.comm	_VSC73XX_ADVPORTM,4,2           ; @VSC73XX_ADVPORTM
	.comm	_VSC7385_ADVPORTM_INIT,4,2      ; @VSC7385_ADVPORTM_INIT
	.comm	_VSC7385_ADVPORTM_MASK,4,2      ; @VSC7385_ADVPORTM_MASK
	.comm	_VSC73XX_MAC_CFG,4,2            ; @VSC73XX_MAC_CFG
	.comm	_VSC7385_MAC_CFG_RESET,4,2      ; @VSC7385_MAC_CFG_RESET
	.comm	_VSC73XX_MAC_CFG_INIT,4,2       ; @VSC73XX_MAC_CFG_INIT
	.comm	_VSC73XX_MAC_CFG_BIT2,4,2       ; @VSC73XX_MAC_CFG_BIT2
	.no_dead_strip	_vsc7385_setup
.subsections_via_symbols
