	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv770_gfx_clock_gating_enable
_rv770_gfx_clock_gating_enable:         ## @rv770_gfx_clock_gating_enable
	.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
	movl	%esi, %eax
	movq	_SCLK_PWRMGT_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_DYN_GFX_CLK_OFF_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %edx
	notl	%edx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32_P                       ## TAILCALL
LBB0_2:
	xorl	%esi, %esi
	callq	_WREG32_P
	movl	(%rbx), %edi
	movq	_GFX_CLK_FORCE_ON@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%esi, %edx
	notl	%edx
	callq	_WREG32_P
	movl	(%rbx), %edi
	movl	(%r14), %edx
	notl	%edx
	xorl	%esi, %esi
	callq	_WREG32_P
	movq	_GB_TILING_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_RREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCLK_PWRMGT_CNTL,4,2           ## @SCLK_PWRMGT_CNTL
	.comm	_DYN_GFX_CLK_OFF_EN,4,2         ## @DYN_GFX_CLK_OFF_EN
	.comm	_GFX_CLK_FORCE_ON,4,2           ## @GFX_CLK_FORCE_ON
	.comm	_GB_TILING_CONFIG,4,2           ## @GB_TILING_CONFIG
	.no_dead_strip	_rv770_gfx_clock_gating_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv770_gfx_clock_gating_enable
_rv770_gfx_clock_gating_enable:         ; @rv770_gfx_clock_gating_enable
	.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	x8, x1
Lloh0:
	adrp	x19, _SCLK_PWRMGT_CNTL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SCLK_PWRMGT_CNTL@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x9, _DYN_GFX_CLK_OFF_EN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DYN_GFX_CLK_OFF_EN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	mvn	w2, w1
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32_P
LBB0_2:
	mov	w1, #0
	bl	_WREG32_P
	ldr	w0, [x19]
Lloh5:
	adrp	x20, _GFX_CLK_FORCE_ON@GOTPAGE
Lloh6:
	ldr	x20, [x20, _GFX_CLK_FORCE_ON@GOTPAGEOFF]
	ldr	w1, [x20]
	mvn	w2, w1
	bl	_WREG32_P
	ldr	w0, [x19]
	ldr	w8, [x20]
	mvn	w2, w8
	mov	w1, #0
	bl	_WREG32_P
Lloh7:
	adrp	x8, _GB_TILING_CONFIG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GB_TILING_CONFIG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_RREG32
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SCLK_PWRMGT_CNTL,4,2           ; @SCLK_PWRMGT_CNTL
	.comm	_DYN_GFX_CLK_OFF_EN,4,2         ; @DYN_GFX_CLK_OFF_EN
	.comm	_GFX_CLK_FORCE_ON,4,2           ; @GFX_CLK_FORCE_ON
	.comm	_GB_TILING_CONFIG,4,2           ; @GB_TILING_CONFIG
	.no_dead_strip	_rv770_gfx_clock_gating_enable
.subsections_via_symbols
