	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sf2_gphy_enable_set
_bcm_sf2_gphy_enable_set:               ## @bcm_sf2_gphy_enable_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_bcm_sf2_to_priv
	movq	%rax, %r14
	movq	_REG_SPHY_CNTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_reg_readl
	movl	%eax, %ebx
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	movq	_PHY_RESET@GOTPCREL(%rip), %r15
	orl	(%r15), %ebx
	movq	_EXT_PWR_DOWN@GOTPCREL(%rip), %rax
	movq	_IDDQ_BIAS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_IDDQ_GLOBAL_PWR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_CK25_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	notl	%esi
	andl	%ebx, %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_reg_writel
	movl	$21, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_reg_readl
	movl	(%r15), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	jmp	LBB0_2
LBB0_3:
	movq	_EXT_PWR_DOWN@GOTPCREL(%rip), %rax
	movq	_IDDQ_BIAS@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	movq	_PHY_RESET@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_reg_writel
	movl	$1, %edi
	callq	_mdelay
	movq	_CK25_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_reg_writel
	xorl	%edi, %edi
	callq	_REG_LED_CNTRL
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_reg_readl
	movl	%eax, %ebx
	movq	_SPDLNK_SRC_SEL@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_REG_LED_CNTRL
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_writel                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SPHY_CNTRL,4,2             ## @REG_SPHY_CNTRL
	.comm	_PHY_RESET,4,2                  ## @PHY_RESET
	.comm	_EXT_PWR_DOWN,4,2               ## @EXT_PWR_DOWN
	.comm	_IDDQ_BIAS,4,2                  ## @IDDQ_BIAS
	.comm	_IDDQ_GLOBAL_PWR,4,2            ## @IDDQ_GLOBAL_PWR
	.comm	_CK25_DIS,4,2                   ## @CK25_DIS
	.comm	_SPDLNK_SRC_SEL,4,2             ## @SPDLNK_SRC_SEL
	.no_dead_strip	_bcm_sf2_gphy_enable_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sf2_gphy_enable_set
_bcm_sf2_gphy_enable_set:               ; @bcm_sf2_gphy_enable_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	_bcm_sf2_to_priv
	mov	x19, x0
Lloh0:
	adrp	x21, _REG_SPHY_CNTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_SPHY_CNTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_reg_readl
	cbz	w20, LBB0_2
; %bb.1:
Lloh2:
	adrp	x20, _PHY_RESET@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PHY_RESET@GOTPAGEOFF]
	ldr	w8, [x20]
	orr	w8, w8, w0
Lloh4:
	adrp	x9, _EXT_PWR_DOWN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EXT_PWR_DOWN@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _IDDQ_BIAS@GOTPAGE
Lloh8:
	ldr	x10, [x10, _IDDQ_BIAS@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh10:
	adrp	x10, _IDDQ_GLOBAL_PWR@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IDDQ_GLOBAL_PWR@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh13:
	adrp	x10, _CK25_DIS@GOTPAGE
Lloh14:
	ldr	x10, [x10, _CK25_DIS@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w1, w8, w9
	ldr	w2, [x21]
	mov	x0, x19
	bl	_reg_writel
	mov	w0, #21
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	bl	_reg_readl
	ldr	w8, [x20]
	bic	w1, w0, w8
	ldr	w2, [x21]
	mov	x0, x19
	b	LBB0_3
LBB0_2:
Lloh16:
	adrp	x8, _EXT_PWR_DOWN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXT_PWR_DOWN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _IDDQ_BIAS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IDDQ_BIAS@GOTPAGEOFF]
Lloh21:
	adrp	x10, _PHY_RESET@GOTPAGE
Lloh22:
	ldr	x10, [x10, _PHY_RESET@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	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	_reg_writel
	mov	w0, #1
	bl	_mdelay
Lloh25:
	adrp	x8, _CK25_DIS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CK25_DIS@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w1, w8, w20
	ldr	w2, [x21]
	mov	x0, x19
	bl	_reg_writel
	mov	w0, #0
	bl	_REG_LED_CNTRL
	mov	x1, x0
	mov	x0, x19
	bl	_reg_readl
Lloh28:
	adrp	x8, _SPDLNK_SRC_SEL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SPDLNK_SRC_SEL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w20, w8, w0
	mov	w0, #0
	bl	_REG_LED_CNTRL
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
LBB0_3:
	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	_reg_writel
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SPHY_CNTRL,4,2             ; @REG_SPHY_CNTRL
	.comm	_PHY_RESET,4,2                  ; @PHY_RESET
	.comm	_EXT_PWR_DOWN,4,2               ; @EXT_PWR_DOWN
	.comm	_IDDQ_BIAS,4,2                  ; @IDDQ_BIAS
	.comm	_IDDQ_GLOBAL_PWR,4,2            ; @IDDQ_GLOBAL_PWR
	.comm	_CK25_DIS,4,2                   ; @CK25_DIS
	.comm	_SPDLNK_SRC_SEL,4,2             ; @SPDLNK_SRC_SEL
	.no_dead_strip	_bcm_sf2_gphy_enable_set
.subsections_via_symbols
