	.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_pipeline_powergating
_gfx_v9_0_enable_gfx_pipeline_powergating: ## @gfx_v9_0_enable_gfx_pipeline_powergating
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	_GC@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_mmRLC_PG_CNTL@GOTPCREL(%rip), %r13
	movl	(%r13), %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_PIPELINE_PG_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
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movl	(%r12), %edi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_WREG32
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%r12), %edi
	movq	_mmDB_RENDER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RREG32                         ## 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_PIPELINE_PG_ENABLE,4,2     ## @GFX_PIPELINE_PG_ENABLE
	.comm	_mmDB_RENDER_CONTROL,4,2        ## @mmDB_RENDER_CONTROL
	.no_dead_strip	_gfx_v9_0_enable_gfx_pipeline_powergating
.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_pipeline_powergating
_gfx_v9_0_enable_gfx_pipeline_powergating: ; @gfx_v9_0_enable_gfx_pipeline_powergating
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
Lloh0:
	adrp	x22, _GC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GC@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x23, _mmRLC_PG_CNTL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _mmRLC_PG_CNTL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	bl	_RREG32
	mov	x21, x0
Lloh4:
	adrp	x8, _RLC_PG_CNTL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RLC_PG_CNTL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _GFX_PIPELINE_PG_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFX_PIPELINE_PG_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	cmp	w19, #0
	cset	w3, ne
	bl	_REG_SET_FIELD
	cmp	x21, x0
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x22]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	x1, x20
	bl	_WREG32
LBB0_2:
	cbz	w19, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x22]
Lloh10:
	adrp	x8, _mmDB_RENDER_CONTROL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mmDB_RENDER_CONTROL@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_RREG32
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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_PIPELINE_PG_ENABLE,4,2     ; @GFX_PIPELINE_PG_ENABLE
	.comm	_mmDB_RENDER_CONTROL,4,2        ; @mmDB_RENDER_CONTROL
	.no_dead_strip	_gfx_v9_0_enable_gfx_pipeline_powergating
.subsections_via_symbols
