	.file	"extr_si.c_si_init_gfx_cgpg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	si_init_gfx_cgpg, @function
si_init_gfx_cgpg:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, DWORD PTR [rdi]
	mov	rbx, rdi
	mov	edi, DWORD PTR RLC_SAVE_AND_RESTORE_BASE[rip]
	sar	esi, 8
	call	WREG32@PLT
	mov	edi, DWORD PTR RLC_PG_CNTL[rip]
	call	RREG32@PLT
	mov	edi, DWORD PTR RLC_PG_CNTL[rip]
	or	eax, DWORD PTR GFX_PG_SRC[rip]
	mov	esi, eax
	call	WREG32@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR RLC_CLEAR_STATE_RESTORE_BASE[rip]
	sar	esi, 8
	call	WREG32@PLT
	mov	edi, DWORD PTR RLC_AUTO_PG_CTRL[rip]
	call	RREG32@PLT
	mov	ebx, DWORD PTR GRBM_REG_SGIT_MASK[rip]
	mov	edi, 1792
	not	ebx
	and	ebx, eax
	call	GRBM_REG_SGIT@PLT
	mov	esi, DWORD PTR PG_AFTER_GRBM_REG_ST_MASK[rip]
	mov	edi, DWORD PTR RLC_AUTO_PG_CTRL[rip]
	or	ebx, eax
	not	esi
	and	esi, ebx
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	WREG32@PLT
	.cfi_endproc
.LFE0:
	.size	si_init_gfx_cgpg, .-si_init_gfx_cgpg
	.comm	RLC_SAVE_AND_RESTORE_BASE,4,4
	.comm	RLC_PG_CNTL,4,4
	.comm	RLC_CLEAR_STATE_RESTORE_BASE,4,4
	.comm	RLC_AUTO_PG_CTRL,4,4
	.comm	PG_AFTER_GRBM_REG_ST_MASK,4,4
	.comm	GRBM_REG_SGIT_MASK,4,4
	.comm	GFX_PG_SRC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_si.c_si_init_gfx_cgpg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	si_init_gfx_cgpg, %function
si_init_gfx_cgpg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L4
	ldr	r1, [r0]
	push	{r4, r5, r6, lr}
	ldr	r5, .L4+4
	mov	r4, r0
	asr	r1, r1, #8
	ldr	r0, [r3]
	bl	WREG32
	ldr	r0, [r5]
	bl	RREG32
	mov	r1, r0
	ldr	r3, .L4+8
	ldr	r0, [r5]
	ldr	r3, [r3]
	ldr	r5, .L4+12
	orr	r1, r1, r3
	bl	WREG32
	ldr	r3, .L4+16
	ldr	r1, [r4, #4]
	ldr	r0, [r3]
	asr	r1, r1, #8
	bl	WREG32
	ldr	r0, [r5]
	bl	RREG32
	mov	r4, r0
	ldr	r3, .L4+20
	mov	r0, #1792
	ldr	r1, [r3]
	bic	r4, r4, r1
	bl	GRBM_REG_SGIT
	ldr	r3, .L4+24
	orr	r4, r4, r0
	ldr	r1, [r3]
	ldr	r0, [r5]
	bic	r1, r4, r1
	pop	{r4, r5, r6, lr}
	b	WREG32
.L5:
	.align	2
.L4:
	.word	RLC_SAVE_AND_RESTORE_BASE
	.word	RLC_PG_CNTL
	.word	GFX_PG_SRC
	.word	RLC_AUTO_PG_CTRL
	.word	RLC_CLEAR_STATE_RESTORE_BASE
	.word	GRBM_REG_SGIT_MASK
	.word	PG_AFTER_GRBM_REG_ST_MASK
	.size	si_init_gfx_cgpg, .-si_init_gfx_cgpg
	.comm	RLC_SAVE_AND_RESTORE_BASE,4,4
	.comm	RLC_PG_CNTL,4,4
	.comm	RLC_CLEAR_STATE_RESTORE_BASE,4,4
	.comm	RLC_AUTO_PG_CTRL,4,4
	.comm	PG_AFTER_GRBM_REG_ST_MASK,4,4
	.comm	GRBM_REG_SGIT_MASK,4,4
	.comm	GFX_PG_SRC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
