	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v6_0_init_gfx_cgpg
_gfx_v6_0_init_gfx_cgpg:                ## @gfx_v6_0_init_gfx_cgpg
	.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
	movq	_mmRLC_SAVE_AND_RESTORE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	sarl	$8, %esi
	callq	_WREG32
	movq	_RLC_PG_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFX_POWER_GATING_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_WREG32_FIELD
	movq	_mmRLC_CLEAR_STATE_RESTORE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	sarl	$8, %esi
	callq	_WREG32
	movq	_mmRLC_AUTO_PG_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32
	movq	_RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1792, %edi                     ## imm = 0x700
	shll	%cl, %edi
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %edi
	movq	_RLC_AUTO_PG_CTRL__PG_AFTER_GRBM_REG_SAVE_THRESHOLD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%edi, %esi
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmRLC_SAVE_AND_RESTORE_BASE,4,2 ## @mmRLC_SAVE_AND_RESTORE_BASE
	.comm	_RLC_PG_CNTL,4,2                ## @RLC_PG_CNTL
	.comm	_GFX_POWER_GATING_SRC,4,2       ## @GFX_POWER_GATING_SRC
	.comm	_mmRLC_CLEAR_STATE_RESTORE_BASE,4,2 ## @mmRLC_CLEAR_STATE_RESTORE_BASE
	.comm	_mmRLC_AUTO_PG_CTRL,4,2         ## @mmRLC_AUTO_PG_CTRL
	.comm	_RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD_MASK,4,2 ## @RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD_MASK
	.comm	_RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD__SHIFT,4,2 ## @RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD__SHIFT
	.comm	_RLC_AUTO_PG_CTRL__PG_AFTER_GRBM_REG_SAVE_THRESHOLD_MASK,4,2 ## @RLC_AUTO_PG_CTRL__PG_AFTER_GRBM_REG_SAVE_THRESHOLD_MASK
	.no_dead_strip	_gfx_v6_0_init_gfx_cgpg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v6_0_init_gfx_cgpg
_gfx_v6_0_init_gfx_cgpg:                ; @gfx_v6_0_init_gfx_cgpg
	.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
Lloh0:
	adrp	x8, _mmRLC_SAVE_AND_RESTORE_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmRLC_SAVE_AND_RESTORE_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w8, [x19]
	asr	w1, w8, #8
	bl	_WREG32
Lloh3:
	adrp	x8, _RLC_PG_CNTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RLC_PG_CNTL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _GFX_POWER_GATING_SRC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFX_POWER_GATING_SRC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_WREG32_FIELD
Lloh9:
	adrp	x8, _mmRLC_CLEAR_STATE_RESTORE_BASE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mmRLC_CLEAR_STATE_RESTORE_BASE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w8, [x19, #4]
	asr	w1, w8, #8
	bl	_WREG32
Lloh12:
	adrp	x19, _mmRLC_AUTO_PG_CTRL@GOTPAGE
Lloh13:
	ldr	x19, [x19, _mmRLC_AUTO_PG_CTRL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_RREG32
Lloh14:
	adrp	x8, _RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD__SHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD__SHIFT@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh19:
	ldr	w9, [x9]
	mov	w10, #1792
	lsl	w9, w10, w9
Lloh20:
	adrp	x10, _RLC_AUTO_PG_CTRL__PG_AFTER_GRBM_REG_SAVE_THRESHOLD_MASK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _RLC_AUTO_PG_CTRL__PG_AFTER_GRBM_REG_SAVE_THRESHOLD_MASK@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh22:
	ldr	w9, [x10]
	bic	w1, w8, w9
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mmRLC_SAVE_AND_RESTORE_BASE,4,2 ; @mmRLC_SAVE_AND_RESTORE_BASE
	.comm	_RLC_PG_CNTL,4,2                ; @RLC_PG_CNTL
	.comm	_GFX_POWER_GATING_SRC,4,2       ; @GFX_POWER_GATING_SRC
	.comm	_mmRLC_CLEAR_STATE_RESTORE_BASE,4,2 ; @mmRLC_CLEAR_STATE_RESTORE_BASE
	.comm	_mmRLC_AUTO_PG_CTRL,4,2         ; @mmRLC_AUTO_PG_CTRL
	.comm	_RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD_MASK,4,2 ; @RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD_MASK
	.comm	_RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD__SHIFT,4,2 ; @RLC_AUTO_PG_CTRL__GRBM_REG_SAVE_GFX_IDLE_THRESHOLD__SHIFT
	.comm	_RLC_AUTO_PG_CTRL__PG_AFTER_GRBM_REG_SAVE_THRESHOLD_MASK,4,2 ; @RLC_AUTO_PG_CTRL__PG_AFTER_GRBM_REG_SAVE_THRESHOLD_MASK
	.no_dead_strip	_gfx_v6_0_init_gfx_cgpg
.subsections_via_symbols
