	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_phy_power_up
_sky2_phy_power_up:                     ## @sky2_phy_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_B2_TST_CTRL1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_TST_CFG_WRITE_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_sky2_write8
	movq	_PCI_DEV_REG1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sky2_pci_read32
	movq	_phy_power@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%r14d, %ecx
	movl	(%rdx,%rcx,4), %edx
	notl	%edx
	andl	%eax, %edx
	movq	(%rbx), %rax
	movq	_CHIP_ID_YUKON_XL@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movq	_CHIP_REV_YU_XL_A1@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jle	LBB0_3
## %bb.2:
	movq	_coma_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orl	(%rax,%rcx,4), %edx
LBB0_3:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sky2_pci_write32
	movl	(%r15), %esi
	movq	_TST_CFG_WRITE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sky2_write8
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sky2_pci_read32
	movq	(%rbx), %rax
	movq	_CHIP_ID_YUKON_FE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.6:
	movq	_PHY_MARV_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PHY_CT_ANE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gm_phy_write                   ## TAILCALL
LBB0_4:
	movq	_SKY2_HW_ADV_POWER_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_5
## %bb.7:
	movq	_GPHY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_SK_REG
	movq	_GPC_RST_CLR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sky2_write8                    ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B2_TST_CTRL1,4,2               ## @B2_TST_CTRL1
	.comm	_TST_CFG_WRITE_ON,4,2           ## @TST_CFG_WRITE_ON
	.comm	_PCI_DEV_REG1,4,2               ## @PCI_DEV_REG1
	.comm	_phy_power,8,3                  ## @phy_power
	.comm	_CHIP_ID_YUKON_XL,8,3           ## @CHIP_ID_YUKON_XL
	.comm	_CHIP_REV_YU_XL_A1,8,3          ## @CHIP_REV_YU_XL_A1
	.comm	_coma_mode,8,3                  ## @coma_mode
	.comm	_TST_CFG_WRITE_OFF,4,2          ## @TST_CFG_WRITE_OFF
	.comm	_CHIP_ID_YUKON_FE,8,3           ## @CHIP_ID_YUKON_FE
	.comm	_PHY_MARV_CTRL,4,2              ## @PHY_MARV_CTRL
	.comm	_PHY_CT_ANE,4,2                 ## @PHY_CT_ANE
	.comm	_SKY2_HW_ADV_POWER_CTL,4,2      ## @SKY2_HW_ADV_POWER_CTL
	.comm	_GPHY_CTRL,4,2                  ## @GPHY_CTRL
	.comm	_GPC_RST_CLR,4,2                ## @GPC_RST_CLR
	.no_dead_strip	_sky2_phy_power_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_phy_power_up
_sky2_phy_power_up:                     ; @sky2_phy_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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _B2_TST_CTRL1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _B2_TST_CTRL1@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _TST_CFG_WRITE_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TST_CFG_WRITE_ON@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_sky2_write8
Lloh5:
	adrp	x22, _PCI_DEV_REG1@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PCI_DEV_REG1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sky2_pci_read32
Lloh7:
	adrp	x8, _phy_power@GOTPAGE
Lloh8:
	ldr	x8, [x8, _phy_power@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w8, [x8, w20, uxtw #2]
	bic	w2, w0, w8
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _CHIP_ID_YUKON_XL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CHIP_ID_YUKON_XL@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _CHIP_REV_YU_XL_A1@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CHIP_REV_YU_XL_A1@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.2:
	mov	w8, w20
Lloh16:
	adrp	x9, _coma_mode@GOTPAGE
Lloh17:
	ldr	x9, [x9, _coma_mode@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	orr	w2, w8, w2
LBB0_3:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sky2_pci_write32
	ldr	w1, [x21]
Lloh19:
	adrp	x8, _TST_CFG_WRITE_OFF@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TST_CFG_WRITE_OFF@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_sky2_write8
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sky2_pci_read32
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _CHIP_ID_YUKON_FE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CHIP_ID_YUKON_FE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh25:
	adrp	x8, _PHY_MARV_CTRL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PHY_MARV_CTRL@GOTPAGEOFF]
Lloh27:
	adrp	x9, _PHY_CT_ANE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PHY_CT_ANE@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	ldr	w3, [x9]
	mov	x0, x19
	mov	x1, x20
	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	_gm_phy_write
LBB0_5:
	ldr	w8, [x19, #16]
Lloh31:
	adrp	x9, _SKY2_HW_ADV_POWER_CTL@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SKY2_HW_ADV_POWER_CTL@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh34:
	adrp	x8, _GPHY_CTRL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GPHY_CTRL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_SK_REG
	mov	x1, x0
Lloh37:
	adrp	x8, _GPC_RST_CLR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _GPC_RST_CLR@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	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	_sky2_write8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_B2_TST_CTRL1,4,2               ; @B2_TST_CTRL1
	.comm	_TST_CFG_WRITE_ON,4,2           ; @TST_CFG_WRITE_ON
	.comm	_PCI_DEV_REG1,4,2               ; @PCI_DEV_REG1
	.comm	_phy_power,8,3                  ; @phy_power
	.comm	_CHIP_ID_YUKON_XL,8,3           ; @CHIP_ID_YUKON_XL
	.comm	_CHIP_REV_YU_XL_A1,8,3          ; @CHIP_REV_YU_XL_A1
	.comm	_coma_mode,8,3                  ; @coma_mode
	.comm	_TST_CFG_WRITE_OFF,4,2          ; @TST_CFG_WRITE_OFF
	.comm	_CHIP_ID_YUKON_FE,8,3           ; @CHIP_ID_YUKON_FE
	.comm	_PHY_MARV_CTRL,4,2              ; @PHY_MARV_CTRL
	.comm	_PHY_CT_ANE,4,2                 ; @PHY_CT_ANE
	.comm	_SKY2_HW_ADV_POWER_CTL,4,2      ; @SKY2_HW_ADV_POWER_CTL
	.comm	_GPHY_CTRL,4,2                  ; @GPHY_CTRL
	.comm	_GPC_RST_CLR,4,2                ; @GPC_RST_CLR
	.no_dead_strip	_sky2_phy_power_up
.subsections_via_symbols
