	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v9_0_init_pg
_gfx_v9_0_init_pg:                      ## @gfx_v9_0_init_pg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_gfx_v9_0_init_csb
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_gfx_v9_1_init_rlc_save_restore_list
	movq	%rbx, %rdi
	callq	_gfx_v9_0_enable_save_restore_machine
LBB0_2:
	movq	_AMD_PG_SUPPORT_GFX_PG@GOTPCREL(%rip), %rax
	movq	_AMD_PG_SUPPORT_GFX_SMG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_AMD_PG_SUPPORT_GFX_DMG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_AMD_PG_SUPPORT_CP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_AMD_PG_SUPPORT_GDS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_AMD_PG_SUPPORT_RLC_SMU_HS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_3
## %bb.4:
	movq	_mmRLC_JUMP_TABLE_RESTORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	sarl	$8, %esi
	callq	_WREG32
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gfx_v9_0_init_gfx_power_gating ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_PG_SUPPORT_GFX_PG,4,2      ## @AMD_PG_SUPPORT_GFX_PG
	.comm	_AMD_PG_SUPPORT_GFX_SMG,4,2     ## @AMD_PG_SUPPORT_GFX_SMG
	.comm	_AMD_PG_SUPPORT_GFX_DMG,4,2     ## @AMD_PG_SUPPORT_GFX_DMG
	.comm	_AMD_PG_SUPPORT_CP,4,2          ## @AMD_PG_SUPPORT_CP
	.comm	_AMD_PG_SUPPORT_GDS,4,2         ## @AMD_PG_SUPPORT_GDS
	.comm	_AMD_PG_SUPPORT_RLC_SMU_HS,4,2  ## @AMD_PG_SUPPORT_RLC_SMU_HS
	.comm	_mmRLC_JUMP_TABLE_RESTORE,4,2   ## @mmRLC_JUMP_TABLE_RESTORE
	.no_dead_strip	_gfx_v9_0_init_pg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v9_0_init_pg
_gfx_v9_0_init_pg:                      ; @gfx_v9_0_init_pg
	.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
	bl	_gfx_v9_0_init_csb
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_gfx_v9_1_init_rlc_save_restore_list
	mov	x0, x19
	bl	_gfx_v9_0_enable_save_restore_machine
LBB0_2:
Lloh0:
	adrp	x8, _AMD_PG_SUPPORT_GFX_PG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMD_PG_SUPPORT_GFX_PG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AMD_PG_SUPPORT_GFX_SMG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMD_PG_SUPPORT_GFX_SMG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _AMD_PG_SUPPORT_GFX_DMG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AMD_PG_SUPPORT_GFX_DMG@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _AMD_PG_SUPPORT_CP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AMD_PG_SUPPORT_CP@GOTPAGEOFF]
	ldr	w10, [x19]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _AMD_PG_SUPPORT_GDS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AMD_PG_SUPPORT_GDS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _AMD_PG_SUPPORT_RLC_SMU_HS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AMD_PG_SUPPORT_RLC_SMU_HS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w10
	b.eq	LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _mmRLC_JUMP_TABLE_RESTORE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mmRLC_JUMP_TABLE_RESTORE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	asr	w1, w8, #8
	bl	_WREG32
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gfx_v9_0_init_gfx_power_gating
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_PG_SUPPORT_GFX_PG,4,2      ; @AMD_PG_SUPPORT_GFX_PG
	.comm	_AMD_PG_SUPPORT_GFX_SMG,4,2     ; @AMD_PG_SUPPORT_GFX_SMG
	.comm	_AMD_PG_SUPPORT_GFX_DMG,4,2     ; @AMD_PG_SUPPORT_GFX_DMG
	.comm	_AMD_PG_SUPPORT_CP,4,2          ; @AMD_PG_SUPPORT_CP
	.comm	_AMD_PG_SUPPORT_GDS,4,2         ; @AMD_PG_SUPPORT_GDS
	.comm	_AMD_PG_SUPPORT_RLC_SMU_HS,4,2  ; @AMD_PG_SUPPORT_RLC_SMU_HS
	.comm	_mmRLC_JUMP_TABLE_RESTORE,4,2   ; @mmRLC_JUMP_TABLE_RESTORE
	.no_dead_strip	_gfx_v9_0_init_pg
.subsections_via_symbols
