	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cis8201_init
_cis8201_init:                          ## @cis8201_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
	movq	_MII_CIS8201_EPCR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_EPCR_MODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_2
## %bb.3:
	movslq	%ecx, %rcx
	leaq	l_switch.table.cis8201_init(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_EPCR_RGMII_MODE@GOTPCREL(%rip), %rcx
LBB0_4:
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_phy_write
	movq	_MII_CIS8201_ACSR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_phy_read
	movq	_ACSR_PIN_PRIO_SELECT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_phy_write
	movq	_MII_CIS8201_10BTCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_phy_read
	movq	_TENBTCSR_ECHO_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_phy_write
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_CIS8201_EPCR,4,2           ## @MII_CIS8201_EPCR
	.comm	_EPCR_MODE_MASK,4,2             ## @EPCR_MODE_MASK
	.comm	_EPCR_TBI_MODE,4,2              ## @EPCR_TBI_MODE
	.comm	_EPCR_RTBI_MODE,4,2             ## @EPCR_RTBI_MODE
	.comm	_EPCR_GMII_MODE,4,2             ## @EPCR_GMII_MODE
	.comm	_EPCR_RGMII_MODE,4,2            ## @EPCR_RGMII_MODE
	.comm	_MII_CIS8201_ACSR,4,2           ## @MII_CIS8201_ACSR
	.comm	_ACSR_PIN_PRIO_SELECT,4,2       ## @ACSR_PIN_PRIO_SELECT
	.comm	_MII_CIS8201_10BTCSR,4,2        ## @MII_CIS8201_10BTCSR
	.comm	_TENBTCSR_ECHO_DISABLE,4,2      ## @TENBTCSR_ECHO_DISABLE
	.no_dead_strip	_cis8201_init
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.cis8201_init
l_switch.table.cis8201_init:
	.quad	_EPCR_TBI_MODE
	.quad	_EPCR_RTBI_MODE
	.quad	_EPCR_RGMII_MODE
	.quad	_EPCR_GMII_MODE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cis8201_init
_cis8201_init:                          ; @cis8201_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
Lloh0:
	adrp	x20, _MII_CIS8201_EPCR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_CIS8201_EPCR@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_phy_read
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _EPCR_MODE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EPCR_MODE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
	ldr	w9, [x19]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.2:
Lloh5:
	adrp	x10, l_switch.table.cis8201_init@PAGE
Lloh6:
	add	x10, x10, l_switch.table.cis8201_init@PAGEOFF
	ldr	x9, [x10, w9, sxtw #3]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x9, _EPCR_RGMII_MODE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EPCR_RGMII_MODE@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_phy_write
Lloh9:
	adrp	x8, _MII_CIS8201_ACSR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MII_CIS8201_ACSR@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_phy_read
Lloh12:
	adrp	x8, _ACSR_PIN_PRIO_SELECT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACSR_PIN_PRIO_SELECT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_phy_write
Lloh15:
	adrp	x8, _MII_CIS8201_10BTCSR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MII_CIS8201_10BTCSR@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_phy_read
Lloh18:
	adrp	x8, _TENBTCSR_ECHO_DISABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TENBTCSR_ECHO_DISABLE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_phy_write
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_CIS8201_EPCR,4,2           ; @MII_CIS8201_EPCR
	.comm	_EPCR_MODE_MASK,4,2             ; @EPCR_MODE_MASK
	.comm	_EPCR_TBI_MODE,4,2              ; @EPCR_TBI_MODE
	.comm	_EPCR_RTBI_MODE,4,2             ; @EPCR_RTBI_MODE
	.comm	_EPCR_GMII_MODE,4,2             ; @EPCR_GMII_MODE
	.comm	_EPCR_RGMII_MODE,4,2            ; @EPCR_RGMII_MODE
	.comm	_MII_CIS8201_ACSR,4,2           ; @MII_CIS8201_ACSR
	.comm	_ACSR_PIN_PRIO_SELECT,4,2       ; @ACSR_PIN_PRIO_SELECT
	.comm	_MII_CIS8201_10BTCSR,4,2        ; @MII_CIS8201_10BTCSR
	.comm	_TENBTCSR_ECHO_DISABLE,4,2      ; @TENBTCSR_ECHO_DISABLE
	.no_dead_strip	_cis8201_init
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cis8201_init
l_switch.table.cis8201_init:
	.quad	_EPCR_TBI_MODE
	.quad	_EPCR_RTBI_MODE
	.quad	_EPCR_RGMII_MODE
	.quad	_EPCR_GMII_MODE

.subsections_via_symbols
