	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_power_aux
_sky2_power_aux:                        ## @sky2_power_aux
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CHIP_ID_YUKON_XL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movq	_CHIP_REV_YU_XL_A1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.2:
	movq	_B2_Y2_CLK_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	jmp	LBB0_4
LBB0_3:
	movq	_Y2_PCI_CLK_LNK1_DIS@GOTPCREL(%rip), %rax
	movq	_Y2_COR_CLK_LNK1_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_Y2_CLK_GAT_LNK1_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_Y2_PCI_CLK_LNK2_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_B2_Y2_CLK_GATE@GOTPCREL(%rip), %rax
	movq	_Y2_COR_CLK_LNK2_DIS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_Y2_CLK_GAT_LNK2_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
LBB0_4:
	callq	_sky2_write8
	movq	_B0_CTST@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sky2_read32
	movq	_Y2_VAUX_AVAIL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movl	16(%rbx), %edi
	movq	_PCI_D3cold@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_pme_capable
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_PC_VAUX_ENA@GOTPCREL(%rip), %rax
	movq	_PC_VCC_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_B0_POWER_CTRL@GOTPCREL(%rip), %rax
	movq	_PC_VAUX_ON@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_PC_VCC_OFF@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sky2_write8
LBB0_7:
	movl	(%r14), %esi
	movq	_Y2_LED_STAT_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sky2_write16                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	_B2_Y2_CLK_GATE,4,2             ## @B2_Y2_CLK_GATE
	.comm	_Y2_PCI_CLK_LNK1_DIS,4,2        ## @Y2_PCI_CLK_LNK1_DIS
	.comm	_Y2_COR_CLK_LNK1_DIS,4,2        ## @Y2_COR_CLK_LNK1_DIS
	.comm	_Y2_CLK_GAT_LNK1_DIS,4,2        ## @Y2_CLK_GAT_LNK1_DIS
	.comm	_Y2_PCI_CLK_LNK2_DIS,4,2        ## @Y2_PCI_CLK_LNK2_DIS
	.comm	_Y2_COR_CLK_LNK2_DIS,4,2        ## @Y2_COR_CLK_LNK2_DIS
	.comm	_Y2_CLK_GAT_LNK2_DIS,4,2        ## @Y2_CLK_GAT_LNK2_DIS
	.comm	_B0_CTST,4,2                    ## @B0_CTST
	.comm	_Y2_VAUX_AVAIL,4,2              ## @Y2_VAUX_AVAIL
	.comm	_PCI_D3cold,4,2                 ## @PCI_D3cold
	.comm	_B0_POWER_CTRL,4,2              ## @B0_POWER_CTRL
	.comm	_PC_VAUX_ENA,4,2                ## @PC_VAUX_ENA
	.comm	_PC_VCC_ENA,4,2                 ## @PC_VCC_ENA
	.comm	_PC_VAUX_ON,4,2                 ## @PC_VAUX_ON
	.comm	_PC_VCC_OFF,4,2                 ## @PC_VCC_OFF
	.comm	_Y2_LED_STAT_OFF,4,2            ## @Y2_LED_STAT_OFF
	.no_dead_strip	_sky2_power_aux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_power_aux
_sky2_power_aux:                        ; @sky2_power_aux
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CHIP_ID_YUKON_XL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHIP_ID_YUKON_XL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _CHIP_REV_YU_XL_A1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CHIP_REV_YU_XL_A1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _B2_Y2_CLK_GATE@GOTPAGE
Lloh7:
	ldr	x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AGE
Lloh31:
	ldr	x20, [x20, _B0_CTST@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sky2_read32
Lloh32:
	adrp	x8, _Y2_VAUX_AVAIL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _Y2_VAUX_AVAIL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.5:
	ldr	w0, [x19, #16]
Lloh35:
	adrp	x8, _PCI_D3cold@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PCI_D3cold@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_pci_pme_capable
	cbz	x0, LBB0_7
; %bb.6:
Lloh38:
	adrp	x8, _B0_POWER_CTRL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _B0_POWER_CTRL@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _PC_VAUX_ENA@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PC_VAUX_ENA@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _PC_VCC_ENA@GOTPAGE
Lloh45:
	ldr	x9, [x9, _PC_VCC_ENA@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh47:
	adrp	x9, _PC_VAUX_ON@GOTPAGE
Lloh48:
	ldr	x9, [x9, _PC_VAUX_ON@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh50:
	adrp	x9, _PC_VCC_OFF@GOTPAGE
Lloh51:
	ldr	x9, [x9, _PC_VCC_OFF@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_sky2_write8
LBB0_7:
	ldr	w1, [x20]
Lloh53:
	adrp	x8, _Y2_LED_STAT_OFF@GOTPAGE
Lloh54:
	ldr	x8, [x8, _Y2_LED_STAT_OFF@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sky2_write16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.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	_B2_Y2_CLK_GATE,4,2             ; @B2_Y2_CLK_GATE
	.comm	_Y2_PCI_CLK_LNK1_DIS,4,2        ; @Y2_PCI_CLK_LNK1_DIS
	.comm	_Y2_COR_CLK_LNK1_DIS,4,2        ; @Y2_COR_CLK_LNK1_DIS
	.comm	_Y2_CLK_GAT_LNK1_DIS,4,2        ; @Y2_CLK_GAT_LNK1_DIS
	.comm	_Y2_PCI_CLK_LNK2_DIS,4,2        ; @Y2_PCI_CLK_LNK2_DIS
	.comm	_Y2_COR_CLK_LNK2_DIS,4,2        ; @Y2_COR_CLK_LNK2_DIS
	.comm	_Y2_CLK_GAT_LNK2_DIS,4,2        ; @Y2_CLK_GAT_LNK2_DIS
	.comm	_B0_CTST,4,2                    ; @B0_CTST
	.comm	_Y2_VAUX_AVAIL,4,2              ; @Y2_VAUX_AVAIL
	.comm	_PCI_D3cold,4,2                 ; @PCI_D3cold
	.comm	_B0_POWER_CTRL,4,2              ; @B0_POWER_CTRL
	.comm	_PC_VAUX_ENA,4,2                ; @PC_VAUX_ENA
	.comm	_PC_VCC_ENA,4,2                 ; @PC_VCC_ENA
	.comm	_PC_VAUX_ON,4,2                 ; @PC_VAUX_ON
	.comm	_PC_VCC_OFF,4,2                 ; @PC_VCC_OFF
	.comm	_Y2_LED_STAT_OFF,4,2            ; @Y2_LED_STAT_OFF
	.no_dead_strip	_sky2_power_aux
.subsections_via_symbols
