	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v9_0_enable_gfx_cg_power_gating
_gfx_v9_0_enable_gfx_cg_power_gating:   ## @gfx_v9_0_enable_gfx_cg_power_gating
	.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	_GC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_mmRLC_PG_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movl	%eax, %edi
	callq	_RREG32
	movq	%rax, %rbx
	movq	_RLC_PG_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFX_POWER_GATING_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	setne	%cl
	movq	%rbx, %rdi
	callq	_REG_SET_FIELD
	cmpq	%rax, %rbx
	jne	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rax, %r14
	movl	(%r15), %edi
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movl	%eax, %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.comm	_mmRLC_PG_CNTL,4,2              ## @mmRLC_PG_CNTL
	.comm	_RLC_PG_CNTL,4,2                ## @RLC_PG_CNTL
	.comm	_GFX_POWER_GATING_ENABLE,4,2    ## @GFX_POWER_GATING_ENABLE
	.no_dead_strip	_gfx_v9_0_enable_gfx_cg_power_gating
.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_enable_gfx_cg_power_gating
_gfx_v9_0_enable_gfx_cg_power_gating:   ; @gfx_v9_0_enable_gfx_cg_power_gating
	.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	x19, x1
Lloh0:
	adrp	x21, _GC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GC@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x22, _mmRLC_PG_CNTL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _mmRLC_PG_CNTL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	bl	_RREG32
	mov	x20, x0
Lloh4:
	adrp	x8, _RLC_PG_CNTL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RLC_PG_CNTL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _GFX_POWER_GATING_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFX_POWER_GATING_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	cmp	w19, #0
	cset	w3, ne
	bl	_REG_SET_FIELD
	cmp	x20, x0
	b.ne	LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x19, x0
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	x1, 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	_WREG32
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.comm	_mmRLC_PG_CNTL,4,2              ; @mmRLC_PG_CNTL
	.comm	_RLC_PG_CNTL,4,2                ; @RLC_PG_CNTL
	.comm	_GFX_POWER_GATING_ENABLE,4,2    ; @GFX_POWER_GATING_ENABLE
	.no_dead_strip	_gfx_v9_0_enable_gfx_cg_power_gating
.subsections_via_symbols
