	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_port_power_up
_mvneta_port_power_up:                  ## @mvneta_port_power_up
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_MVNETA_UNIT_INTR_CAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_mvreg_write
	movq	_PHY_INTERFACE_MODE_QSGMII@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_MVNETA_SERDES_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MVNETA_QSGMII_SERDES_PROTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mvreg_write
	jmp	LBB0_7
LBB0_2:
	movq	_PHY_INTERFACE_MODE_SGMII@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_phy_interface_mode_is_8023z
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	_MVNETA_SERDES_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MVNETA_SGMII_SERDES_PROTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_mvreg_write
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%ebx, %edi
	callq	_phy_interface_mode_is_rgmii
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MVNETA_UNIT_INTR_CAUSE,4,2     ## @MVNETA_UNIT_INTR_CAUSE
	.comm	_PHY_INTERFACE_MODE_QSGMII,4,2  ## @PHY_INTERFACE_MODE_QSGMII
	.comm	_MVNETA_SERDES_CFG,4,2          ## @MVNETA_SERDES_CFG
	.comm	_MVNETA_QSGMII_SERDES_PROTO,4,2 ## @MVNETA_QSGMII_SERDES_PROTO
	.comm	_PHY_INTERFACE_MODE_SGMII,4,2   ## @PHY_INTERFACE_MODE_SGMII
	.comm	_MVNETA_SGMII_SERDES_PROTO,4,2  ## @MVNETA_SGMII_SERDES_PROTO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mvneta_port_power_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_port_power_up
_mvneta_port_power_up:                  ; @mvneta_port_power_up
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MVNETA_UNIT_INTR_CAUSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVNETA_UNIT_INTR_CAUSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_mvreg_write
Lloh3:
	adrp	x8, _PHY_INTERFACE_MODE_QSGMII@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_QSGMII@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _MVNETA_SERDES_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MVNETA_SERDES_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MVNETA_QSGMII_SERDES_PROTO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MVNETA_QSGMII_SERDES_PROTO@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
Lloh11:
	adrp	x8, _PHY_INTERFACE_MODE_SGMII@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_SGMII@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_phy_interface_mode_is_8023z
	cbz	x0, LBB0_8
LBB0_4:
Lloh14:
	adrp	x8, _MVNETA_SERDES_CFG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MVNETA_SERDES_CFG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _MVNETA_SGMII_SERDES_PROTO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MVNETA_SGMII_SERDES_PROTO@GOTPAGEOFF]
LBB0_5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mvreg_write
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x20
	bl	_phy_interface_mode_is_rgmii
	cbnz	w0, LBB0_6
; %bb.9:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MVNETA_UNIT_INTR_CAUSE,4,2     ; @MVNETA_UNIT_INTR_CAUSE
	.comm	_PHY_INTERFACE_MODE_QSGMII,4,2  ; @PHY_INTERFACE_MODE_QSGMII
	.comm	_MVNETA_SERDES_CFG,4,2          ; @MVNETA_SERDES_CFG
	.comm	_MVNETA_QSGMII_SERDES_PROTO,4,2 ; @MVNETA_QSGMII_SERDES_PROTO
	.comm	_PHY_INTERFACE_MODE_SGMII,4,2   ; @PHY_INTERFACE_MODE_SGMII
	.comm	_MVNETA_SGMII_SERDES_PROTO,4,2  ; @MVNETA_SGMII_SERDES_PROTO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mvneta_port_power_up
.subsections_via_symbols
