	.file	"extr_gmc_v7_0.c_gmc_v7_0_enable_hdp_mgcg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gmc_v7_0_enable_hdp_mgcg, @function
gmc_v7_0_enable_hdp_mgcg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	edi, DWORD PTR mmHDP_HOST_PATH_CNTL[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	RREG32@PLT
	mov	edx, DWORD PTR CLOCK_GATING_DIS[rip]
	mov	esi, DWORD PTR HDP_HOST_PATH_CNTL[rip]
	mov	rbx, rax
	test	ebp, ebp
	je	.L3
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR AMD_CG_SUPPORT_HDP_MGCG[rip], eax
	jne	.L11
.L3:
	mov	ecx, 1
	mov	rdi, rbx
	call	REG_SET_FIELD@PLT
	mov	rsi, rax
	cmp	rsi, rbx
	jne	.L12
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	xor	ecx, ecx
	mov	rdi, rbx
	call	REG_SET_FIELD@PLT
	mov	rsi, rax
	cmp	rsi, rbx
	je	.L1
.L12:
	mov	edi, DWORD PTR mmHDP_HOST_PATH_CNTL[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	WREG32@PLT
	.cfi_endproc
.LFE0:
	.size	gmc_v7_0_enable_hdp_mgcg, .-gmc_v7_0_enable_hdp_mgcg
	.comm	mmHDP_HOST_PATH_CNTL,4,4
	.comm	HDP_HOST_PATH_CNTL,4,4
	.comm	CLOCK_GATING_DIS,4,4
	.comm	AMD_CG_SUPPORT_HDP_MGCG,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_gmc_v7_0.c_gmc_v7_0_enable_hdp_mgcg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gmc_v7_0_enable_hdp_mgcg, %function
gmc_v7_0_enable_hdp_mgcg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L13
	mov	r5, r1
	mov	r7, r0
	ldr	r0, [r6]
	bl	RREG32
	cmp	r5, #0
	mov	r4, r0
	beq	.L2
	ldr	r3, .L13+4
	ldr	r1, [r7]
	ldr	r3, [r3]
	ldr	r2, .L13+8
	tst	r1, r3
	ldr	r3, .L13+12
	ldr	r1, [r2]
	ldr	r2, [r3]
	bne	.L11
.L3:
	mov	r3, #1
	mov	r0, r4
	bl	REG_SET_FIELD
	cmp	r0, r4
	popeq	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r1, r0
	ldr	r0, [r6]
	pop	{r4, r5, r6, r7, r8, lr}
	b	WREG32
.L11:
	mov	r3, #0
	bl	REG_SET_FIELD
	cmp	r0, r4
	popeq	{r4, r5, r6, r7, r8, pc}
	b	.L12
.L2:
	ldr	r2, .L13+8
	ldr	r3, .L13+12
	ldr	r1, [r2]
	ldr	r2, [r3]
	b	.L3
.L14:
	.align	2
.L13:
	.word	mmHDP_HOST_PATH_CNTL
	.word	AMD_CG_SUPPORT_HDP_MGCG
	.word	HDP_HOST_PATH_CNTL
	.word	CLOCK_GATING_DIS
	.size	gmc_v7_0_enable_hdp_mgcg, .-gmc_v7_0_enable_hdp_mgcg
	.comm	mmHDP_HOST_PATH_CNTL,4,4
	.comm	HDP_HOST_PATH_CNTL,4,4
	.comm	CLOCK_GATING_DIS,4,4
	.comm	AMD_CG_SUPPORT_HDP_MGCG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
