	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v7_0_init_pg
_gfx_v7_0_init_pg:                      ## @gfx_v7_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_AMD_PG_SUPPORT_GFX_PG@GOTPCREL(%rip), %r14
	movq	_AMD_PG_SUPPORT_GFX_SMG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r14), %eax
	movq	_AMD_PG_SUPPORT_GFX_DMG@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_AMD_PG_SUPPORT_CP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_AMD_PG_SUPPORT_GDS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_AMD_PG_SUPPORT_RLC_SMU_HS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_gfx_v7_0_enable_sclk_slowdown_on_pu
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_gfx_v7_0_enable_sclk_slowdown_on_pd
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_gfx_v7_0_init_gfx_cgpg
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_gfx_v7_0_enable_cp_pg
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_gfx_v7_0_enable_gds_pg
LBB0_3:
	movq	%rbx, %rdi
	callq	_gfx_v7_0_init_ao_cu_mask
	movq	%rbx, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gfx_v7_0_update_gfx_pg         ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	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
	.no_dead_strip	_gfx_v7_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_v7_0_init_pg
_gfx_v7_0_init_pg:                      ; @gfx_v7_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
Lloh0:
	adrp	x20, _AMD_PG_SUPPORT_GFX_PG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AMD_PG_SUPPORT_GFX_PG@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _AMD_PG_SUPPORT_GFX_SMG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AMD_PG_SUPPORT_GFX_SMG@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh5:
	adrp	x9, _AMD_PG_SUPPORT_GFX_DMG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AMD_PG_SUPPORT_GFX_DMG@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh8:
	adrp	x9, _AMD_PG_SUPPORT_CP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AMD_PG_SUPPORT_CP@GOTPAGEOFF]
	ldr	w10, [x0]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _AMD_PG_SUPPORT_GDS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AMD_PG_SUPPORT_GDS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _AMD_PG_SUPPORT_RLC_SMU_HS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AMD_PG_SUPPORT_RLC_SMU_HS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w10
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w1, #1
	bl	_gfx_v7_0_enable_sclk_slowdown_on_pu
	mov	x0, x19
	mov	w1, #1
	bl	_gfx_v7_0_enable_sclk_slowdown_on_pd
	ldr	w8, [x19]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_gfx_v7_0_init_gfx_cgpg
	mov	x0, x19
	mov	w1, #1
	bl	_gfx_v7_0_enable_cp_pg
	mov	x0, x19
	mov	w1, #1
	bl	_gfx_v7_0_enable_gds_pg
LBB0_3:
	mov	x0, x19
	bl	_gfx_v7_0_init_ao_cu_mask
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gfx_v7_0_update_gfx_pg
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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
	.no_dead_strip	_gfx_v7_0_init_pg
.subsections_via_symbols
