	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_power_up
_bcmgenet_power_up:                     ## @bcmgenet_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	_GENET_HAS_EXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_EXT_EXT_PWR_MGMT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_bcmgenet_ext_readl
	cmpl	$128, %ebx
	je	LBB0_10
## %bb.2:
	movl	%eax, %r14d
	cmpl	$130, %ebx
	je	LBB0_8
## %bb.3:
	cmpl	$129, %ebx
	jne	LBB0_11
## %bb.4:
	movq	_EXT_PWR_DOWN_DLL@GOTPCREL(%rip), %rax
	movq	_EXT_PWR_DOWN_BIAS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r14d
	movq	%r15, %rdi
	callq	_GENET_IS_V5
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_EXT_PWR_DOWN_PHY_EN@GOTPCREL(%rip), %rax
	movq	_EXT_PWR_DOWN_PHY_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_EXT_PWR_DOWN_PHY_SD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_EXT_PWR_DOWN_PHY_RX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_EXT_PWR_DOWN_PHY_TX@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_EXT_IDDQ_GLBL_PWR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r14d
	movq	_EXT_PHY_RESET@GOTPCREL(%rip), %rbx
	orl	(%rbx), %r14d
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bcmgenet_ext_writel
	movl	$1, %edi
	callq	_mdelay
	movl	(%rbx), %esi
	notl	%esi
	andl	%r14d, %esi
	jmp	LBB0_7
LBB0_10:
	movq	%r15, %rdi
	movl	$128, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcmgenet_wol_power_up_cfg      ## TAILCALL
LBB0_8:
	movq	%r15, %rdi
	callq	_GENET_IS_V5
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_EXT_PWR_DN_EN_LD@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcmgenet_ext_writel            ## TAILCALL
LBB0_6:
	movq	_EXT_PWR_DOWN_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	movq	_EXT_PWR_DN_EN_LD@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %esi
LBB0_7:
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_bcmgenet_ext_writel
	movl	(%r15), %edi
	movl	$1, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcmgenet_phy_power_set         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GENET_HAS_EXT,4,2              ## @GENET_HAS_EXT
	.comm	_EXT_EXT_PWR_MGMT,4,2           ## @EXT_EXT_PWR_MGMT
	.comm	_EXT_PWR_DOWN_DLL,4,2           ## @EXT_PWR_DOWN_DLL
	.comm	_EXT_PWR_DOWN_BIAS,4,2          ## @EXT_PWR_DOWN_BIAS
	.comm	_EXT_PWR_DOWN_PHY_EN,4,2        ## @EXT_PWR_DOWN_PHY_EN
	.comm	_EXT_PWR_DOWN_PHY_RD,4,2        ## @EXT_PWR_DOWN_PHY_RD
	.comm	_EXT_PWR_DOWN_PHY_SD,4,2        ## @EXT_PWR_DOWN_PHY_SD
	.comm	_EXT_PWR_DOWN_PHY_RX,4,2        ## @EXT_PWR_DOWN_PHY_RX
	.comm	_EXT_PWR_DOWN_PHY_TX,4,2        ## @EXT_PWR_DOWN_PHY_TX
	.comm	_EXT_IDDQ_GLBL_PWR,4,2          ## @EXT_IDDQ_GLBL_PWR
	.comm	_EXT_PHY_RESET,4,2              ## @EXT_PHY_RESET
	.comm	_EXT_PWR_DOWN_PHY,4,2           ## @EXT_PWR_DOWN_PHY
	.comm	_EXT_PWR_DN_EN_LD,4,2           ## @EXT_PWR_DN_EN_LD
	.no_dead_strip	_bcmgenet_power_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_power_up
_bcmgenet_power_up:                     ; @bcmgenet_power_up
	.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, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _GENET_HAS_EXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GENET_HAS_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x19, x0
Lloh3:
	adrp	x22, _EXT_EXT_PWR_MGMT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EXT_EXT_PWR_MGMT@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_bcmgenet_ext_readl
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.2:
	mov	x20, x0
	cmp	w21, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w21, #129
	b.ne	LBB0_8
; %bb.4:
Lloh5:
	adrp	x8, _EXT_PWR_DOWN_DLL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXT_PWR_DOWN_DLL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _EXT_PWR_DOWN_BIAS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EXT_PWR_DOWN_BIAS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w20, w20, w8
	mov	x0, x19
	bl	_GENET_IS_V5
	cbz	w0, LBB0_10
; %bb.5:
Lloh11:
	adrp	x8, _EXT_PWR_DOWN_PHY_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EXT_PWR_DOWN_PHY_EN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _EXT_PWR_DOWN_PHY_RD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EXT_PWR_DOWN_PHY_RD@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _EXT_PWR_DOWN_PHY_SD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EXT_PWR_DOWN_PHY_SD@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _EXT_PWR_DOWN_PHY_RX@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EXT_PWR_DOWN_PHY_RX@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _EXT_PWR_DOWN_PHY_TX@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EXT_PWR_DOWN_PHY_TX@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _EXT_IDDQ_GLBL_PWR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _EXT_IDDQ_GLBL_PWR@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w8, w20, w8
Lloh29:
	adrp	x21, _EXT_PHY_RESET@GOTPAGE
Lloh30:
	ldr	x21, [x21, _EXT_PHY_RESET@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w20, w8, w9
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_bcmgenet_ext_writel
	mov	w0, #1
	bl	_mdelay
	ldr	w8, [x21]
	bic	w1, w20, w8
	b	LBB0_11
LBB0_6:
	mov	x0, x19
	mov	w1, #128
	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	_bcmgenet_wol_power_up_cfg
LBB0_7:
	mov	x0, x19
	bl	_GENET_IS_V5
	cbz	w0, LBB0_9
LBB0_8:
	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_9:
Lloh31:
	adrp	x8, _EXT_PWR_DN_EN_LD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EXT_PWR_DN_EN_LD@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	orr	w1, w8, w20
	ldr	w2, [x22]
	mov	x0, x19
	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	_bcmgenet_ext_writel
LBB0_10:
Lloh34:
	adrp	x8, _EXT_PWR_DOWN_PHY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EXT_PWR_DOWN_PHY@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	bic	w8, w20, w8
Lloh37:
	adrp	x9, _EXT_PWR_DN_EN_LD@GOTPAGE
Lloh38:
	ldr	x9, [x9, _EXT_PWR_DN_EN_LD@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w1, w8, w9
LBB0_11:
	ldr	w2, [x22]
	mov	x0, x19
	bl	_bcmgenet_ext_writel
	ldr	w0, [x19]
	mov	w1, #1
	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	_bcmgenet_phy_power_set
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_GENET_HAS_EXT,4,2              ; @GENET_HAS_EXT
	.comm	_EXT_EXT_PWR_MGMT,4,2           ; @EXT_EXT_PWR_MGMT
	.comm	_EXT_PWR_DOWN_DLL,4,2           ; @EXT_PWR_DOWN_DLL
	.comm	_EXT_PWR_DOWN_BIAS,4,2          ; @EXT_PWR_DOWN_BIAS
	.comm	_EXT_PWR_DOWN_PHY_EN,4,2        ; @EXT_PWR_DOWN_PHY_EN
	.comm	_EXT_PWR_DOWN_PHY_RD,4,2        ; @EXT_PWR_DOWN_PHY_RD
	.comm	_EXT_PWR_DOWN_PHY_SD,4,2        ; @EXT_PWR_DOWN_PHY_SD
	.comm	_EXT_PWR_DOWN_PHY_RX,4,2        ; @EXT_PWR_DOWN_PHY_RX
	.comm	_EXT_PWR_DOWN_PHY_TX,4,2        ; @EXT_PWR_DOWN_PHY_TX
	.comm	_EXT_IDDQ_GLBL_PWR,4,2          ; @EXT_IDDQ_GLBL_PWR
	.comm	_EXT_PHY_RESET,4,2              ; @EXT_PHY_RESET
	.comm	_EXT_PWR_DOWN_PHY,4,2           ; @EXT_PWR_DOWN_PHY
	.comm	_EXT_PWR_DN_EN_LD,4,2           ; @EXT_PWR_DN_EN_LD
	.no_dead_strip	_bcmgenet_power_up
.subsections_via_symbols
