	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_init_gfx_cgpg
_si_init_gfx_cgpg:                      ## @si_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_RLC_SAVE_AND_RESTORE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	sarl	$8, %esi
	callq	_WREG32
	movq	_RLC_PG_CNTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_RREG32
	movq	_GFX_PG_SRC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_WREG32
	movq	_RLC_CLEAR_STATE_RESTORE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	sarl	$8, %esi
	callq	_WREG32
	movq	_RLC_AUTO_PG_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_RREG32
	movq	_GRBM_REG_SGIT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	$1792, %edi                     ## imm = 0x700
	callq	_GRBM_REG_SGIT
	orl	%eax, %ebx
	movq	_PG_AFTER_GRBM_REG_ST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%ebx, %esi
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RLC_SAVE_AND_RESTORE_BASE,4,2  ## @RLC_SAVE_AND_RESTORE_BASE
	.comm	_RLC_PG_CNTL,4,2                ## @RLC_PG_CNTL
	.comm	_GFX_PG_SRC,4,2                 ## @GFX_PG_SRC
	.comm	_RLC_CLEAR_STATE_RESTORE_BASE,4,2 ## @RLC_CLEAR_STATE_RESTORE_BASE
	.comm	_RLC_AUTO_PG_CTRL,4,2           ## @RLC_AUTO_PG_CTRL
	.comm	_GRBM_REG_SGIT_MASK,4,2         ## @GRBM_REG_SGIT_MASK
	.comm	_PG_AFTER_GRBM_REG_ST_MASK,4,2  ## @PG_AFTER_GRBM_REG_ST_MASK
	.no_dead_strip	_si_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 si_init_gfx_cgpg
_si_init_gfx_cgpg:                      ; @si_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, _RLC_SAVE_AND_RESTORE_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RLC_SAVE_AND_RESTORE_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w8, [x19]
	asr	w1, w8, #8
	bl	_WREG32
Lloh3:
	adrp	x20, _RLC_PG_CNTL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _RLC_PG_CNTL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32
Lloh5:
	adrp	x8, _GFX_PG_SRC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFX_PG_SRC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x20]
	bl	_WREG32
Lloh8:
	adrp	x8, _RLC_CLEAR_STATE_RESTORE_BASE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RLC_CLEAR_STATE_RESTORE_BASE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w8, [x19, #4]
	asr	w1, w8, #8
	bl	_WREG32
Lloh11:
	adrp	x19, _RLC_AUTO_PG_CTRL@GOTPAGE
Lloh12:
	ldr	x19, [x19, _RLC_AUTO_PG_CTRL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_RREG32
Lloh13:
	adrp	x8, _GRBM_REG_SGIT_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GRBM_REG_SGIT_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w20, w0, w8
	mov	w0, #1792
	bl	_GRBM_REG_SGIT
Lloh16:
	adrp	x8, _PG_AFTER_GRBM_REG_ST_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PG_AFTER_GRBM_REG_ST_MASK@GOTPAGEOFF]
	orr	w9, w20, w0
Lloh18:
	ldr	w8, [x8]
	bic	w1, w9, w8
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RLC_SAVE_AND_RESTORE_BASE,4,2  ; @RLC_SAVE_AND_RESTORE_BASE
	.comm	_RLC_PG_CNTL,4,2                ; @RLC_PG_CNTL
	.comm	_GFX_PG_SRC,4,2                 ; @GFX_PG_SRC
	.comm	_RLC_CLEAR_STATE_RESTORE_BASE,4,2 ; @RLC_CLEAR_STATE_RESTORE_BASE
	.comm	_RLC_AUTO_PG_CTRL,4,2           ; @RLC_AUTO_PG_CTRL
	.comm	_GRBM_REG_SGIT_MASK,4,2         ; @GRBM_REG_SGIT_MASK
	.comm	_PG_AFTER_GRBM_REG_ST_MASK,4,2  ; @PG_AFTER_GRBM_REG_ST_MASK
	.no_dead_strip	_si_init_gfx_cgpg
.subsections_via_symbols
