	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcmgenet_phy_power_set         ## -- Begin function bcmgenet_phy_power_set
	.p2align	4, 0x90
_bcmgenet_phy_power_set:                ## @bcmgenet_phy_power_set
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_GENET_IS_V4
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_EXT_GPHY_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_bcmgenet_ext_readl
	movl	%eax, %r12d
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movq	_EXT_CK25_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_bcmgenet_ext_writel
	movl	$1, %edi
	callq	_mdelay
	movq	_EXT_CFG_IDDQ_BIAS@GOTPCREL(%rip), %rax
	movq	_EXT_CFG_PWR_DOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movq	_EXT_GPHY_RESET@GOTPCREL(%rip), %r15
	orl	(%r15), %ebx
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bcmgenet_ext_writel
	movl	$1, %edi
	callq	_mdelay
	movl	(%r15), %r12d
	notl	%r12d
	andl	%ebx, %r12d
	jmp	LBB0_4
LBB0_5:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdelay                         ## TAILCALL
LBB0_3:
	movq	_EXT_CFG_IDDQ_BIAS@GOTPCREL(%rip), %rax
	movq	_EXT_CFG_PWR_DOWN@GOTPCREL(%rip), %rcx
	orl	(%rax), %r12d
	orl	(%rcx), %r12d
	movq	_EXT_GPHY_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_bcmgenet_ext_writel
	movl	$1, %edi
	callq	_mdelay
	movq	_EXT_CK25_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_4:
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_bcmgenet_ext_writel
	movl	$60, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_GPHY_CTRL,4,2              ## @EXT_GPHY_CTRL
	.comm	_EXT_CK25_DIS,4,2               ## @EXT_CK25_DIS
	.comm	_EXT_CFG_IDDQ_BIAS,4,2          ## @EXT_CFG_IDDQ_BIAS
	.comm	_EXT_CFG_PWR_DOWN,4,2           ## @EXT_CFG_PWR_DOWN
	.comm	_EXT_GPHY_RESET,4,2             ## @EXT_GPHY_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcmgenet_phy_power_set         ; -- Begin function bcmgenet_phy_power_set
	.p2align	2
_bcmgenet_phy_power_set:                ; @bcmgenet_phy_power_set
	.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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	bl	_GENET_IS_V4
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x21, _EXT_GPHY_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EXT_GPHY_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_bcmgenet_ext_readl
	cbz	w20, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _EXT_CK25_DIS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EXT_CK25_DIS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w20, w0, w8
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_bcmgenet_ext_writel
	mov	w0, #1
	bl	_mdelay
Lloh5:
	adrp	x8, _EXT_CFG_IDDQ_BIAS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXT_CFG_IDDQ_BIAS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _EXT_CFG_PWR_DOWN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EXT_CFG_PWR_DOWN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w20, w8
Lloh11:
	adrp	x22, _EXT_GPHY_RESET@GOTPAGE
Lloh12:
	ldr	x22, [x22, _EXT_GPHY_RESET@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w20, w8, w9
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_bcmgenet_ext_writel
	mov	w0, #1
	bl	_mdelay
	ldr	w8, [x22]
	bic	w1, w20, w8
	b	LBB0_5
LBB0_3:
	mov	w0, #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	_mdelay
LBB0_4:
Lloh13:
	adrp	x8, _EXT_CFG_IDDQ_BIAS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EXT_CFG_IDDQ_BIAS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _EXT_CFG_PWR_DOWN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EXT_CFG_PWR_DOWN@GOTPAGEOFF]
Lloh18:
	adrp	x10, _EXT_GPHY_RESET@GOTPAGE
Lloh19:
	ldr	x10, [x10, _EXT_GPHY_RESET@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	ldr	w10, [x10]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w20, w8, w10
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_bcmgenet_ext_writel
	mov	w0, #1
	bl	_mdelay
Lloh22:
	adrp	x8, _EXT_CK25_DIS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EXT_CK25_DIS@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	orr	w1, w8, w20
LBB0_5:
	ldr	w2, [x21]
	mov	x0, x19
	bl	_bcmgenet_ext_writel
	mov	w0, #60
	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	_udelay
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_GPHY_CTRL,4,2              ; @EXT_GPHY_CTRL
	.comm	_EXT_CK25_DIS,4,2               ; @EXT_CK25_DIS
	.comm	_EXT_CFG_IDDQ_BIAS,4,2          ; @EXT_CFG_IDDQ_BIAS
	.comm	_EXT_CFG_PWR_DOWN,4,2           ; @EXT_CFG_PWR_DOWN
	.comm	_EXT_GPHY_RESET,4,2             ; @EXT_GPHY_RESET
.subsections_via_symbols
