	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_gfx_clockgating_enable    ## -- Begin function r600_gfx_clockgating_enable
	.p2align	4, 0x90
_r600_gfx_clockgating_enable:           ## @r600_gfx_clockgating_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	%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, %eax
	movq	%rdi, %r14
	movq	_SCLK_PWRMGT_CNTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_DYN_GFX_CLK_OFF_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %edx
	notl	%edx
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_P                       ## TAILCALL
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_WREG32_P
	movq	_CG_RLC_REQ_AND_RSP@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	$2, %esi
	callq	_WREG32
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.2:
	movq	_CG_RLC_RSP_TYPE_MASK@GOTPCREL(%rip), %r12
	movq	_CG_RLC_RSP_TYPE_SHIFT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_RREG32
	andl	(%r12), %eax
	movzbl	(%r13), %ecx
	sarl	%cl, %eax
	cmpl	$1, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_udelay
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_3
LBB0_5:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_GRBM_PWR_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_WREG32
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_CG_RLC_REQ_AND_RSP,4,2         ## @CG_RLC_REQ_AND_RSP
	.comm	_CG_RLC_RSP_TYPE_MASK,4,2       ## @CG_RLC_RSP_TYPE_MASK
	.comm	_CG_RLC_RSP_TYPE_SHIFT,4,2      ## @CG_RLC_RSP_TYPE_SHIFT
	.comm	_GRBM_PWR_CNTL,4,2              ## @GRBM_PWR_CNTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_gfx_clockgating_enable    ; -- Begin function r600_gfx_clockgating_enable
	.p2align	2
_r600_gfx_clockgating_enable:           ; @r600_gfx_clockgating_enable
	.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	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _SCLK_PWRMGT_CNTL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCLK_PWRMGT_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _DYN_GFX_CLK_OFF_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DYN_GFX_CLK_OFF_EN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mvn	w2, w1
	cbz	w8, LBB0_2
; %bb.1:
	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	_WREG32_P
LBB0_2:
	mov	w1, #0
	bl	_WREG32_P
Lloh6:
	adrp	x20, _CG_RLC_REQ_AND_RSP@GOTPAGE
Lloh7:
	ldr	x20, [x20, _CG_RLC_REQ_AND_RSP@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #2
	bl	_WREG32
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w21, #0
Lloh8:
	adrp	x22, _CG_RLC_RSP_TYPE_MASK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _CG_RLC_RSP_TYPE_MASK@GOTPAGEOFF]
Lloh10:
	adrp	x23, _CG_RLC_RSP_TYPE_SHIFT@GOTPAGE
Lloh11:
	ldr	x23, [x23, _CG_RLC_RSP_TYPE_SHIFT@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_RREG32
	ldr	w8, [x22]
	and	w8, w8, w0
	ldr	w9, [x23]
	asr	w8, w8, w9
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_udelay
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_4
LBB0_6:
	ldr	w0, [x20]
	mov	w1, #0
	bl	_WREG32
Lloh12:
	adrp	x19, _GRBM_PWR_CNTL@GOTPAGE
Lloh13:
	ldr	x19, [x19, _GRBM_PWR_CNTL@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #1
	bl	_WREG32
	ldr	w0, [x19]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.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	_CG_RLC_REQ_AND_RSP,4,2         ; @CG_RLC_REQ_AND_RSP
	.comm	_CG_RLC_RSP_TYPE_MASK,4,2       ; @CG_RLC_RSP_TYPE_MASK
	.comm	_CG_RLC_RSP_TYPE_SHIFT,4,2      ; @CG_RLC_RSP_TYPE_SHIFT
	.comm	_GRBM_PWR_CNTL,4,2              ; @GRBM_PWR_CNTL
.subsections_via_symbols
