	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trinity_mg_clockgating_enable
_trinity_mg_clockgating_enable:         ## @trinity_mg_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_CG_CGTT_LOCAL_0@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32_CG
	movl	%eax, %ebx
	movq	_CG_CGTT_LOCAL_1@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_RREG32_CG
	movl	%eax, %r14d
	movl	(%r15), %edi
	movq	_CGCG_CGTT_LOCAL0_MASK@GOTPCREL(%rip), %rax
	movl	%ebx, %esi
	xorl	$3670016, %esi                  ## imm = 0x380000
	andl	(%rax), %esi
	xorl	%ebx, %esi
	callq	_WREG32_CG
	movl	(%r12), %edi
	movq	_CGCG_CGTT_LOCAL1_MASK@GOTPCREL(%rip), %rax
	movl	%r14d, %esi
	xorl	$234881024, %esi                ## imm = 0xE000000
	andl	(%rax), %esi
	xorl	%r14d, %esi
	callq	_WREG32_CG
	movq	_CGTS_SM_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CGTS_SM_CTRL_REG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_2:
	movq	_CGTS_SM_CTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CGTS_SM_CTRL_REG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WREG32
	movq	_CG_CGTT_LOCAL_0@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32_CG
	movl	%eax, %ebx
	movq	_CG_CGTT_LOCAL_1@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_RREG32_CG
	movl	%eax, %r14d
	movl	(%r15), %edi
	movq	_CGCG_CGTT_LOCAL0_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %esi
	callq	_WREG32_CG
	movl	(%r12), %edi
	movq	_CGCG_CGTT_LOCAL1_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_CG                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CG_CGTT_LOCAL_0,4,2            ## @CG_CGTT_LOCAL_0
	.comm	_CG_CGTT_LOCAL_1,4,2            ## @CG_CGTT_LOCAL_1
	.comm	_CGCG_CGTT_LOCAL0_MASK,4,2      ## @CGCG_CGTT_LOCAL0_MASK
	.comm	_CGCG_CGTT_LOCAL1_MASK,4,2      ## @CGCG_CGTT_LOCAL1_MASK
	.comm	_CGTS_SM_CTRL_REG,4,2           ## @CGTS_SM_CTRL_REG
	.comm	_CGTS_SM_CTRL_REG_ENABLE,4,2    ## @CGTS_SM_CTRL_REG_ENABLE
	.comm	_CGTS_SM_CTRL_REG_DISABLE,4,2   ## @CGTS_SM_CTRL_REG_DISABLE
	.no_dead_strip	_trinity_mg_clockgating_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trinity_mg_clockgating_enable
_trinity_mg_clockgating_enable:         ; @trinity_mg_clockgating_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x21, _CG_CGTT_LOCAL_0@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CG_CGTT_LOCAL_0@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32_CG
	mov	x19, x0
Lloh2:
	adrp	x22, _CG_CGTT_LOCAL_1@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CG_CGTT_LOCAL_1@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_RREG32_CG
	mov	x20, x0
	ldr	w0, [x21]
Lloh4:
	adrp	x8, _CGCG_CGTT_LOCAL0_MASK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CGCG_CGTT_LOCAL0_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	and	w9, w8, #0x380000
	bic	w8, w19, w8
	orr	w1, w9, w8
	bl	_WREG32_CG
	ldr	w0, [x22]
Lloh7:
	adrp	x8, _CGCG_CGTT_LOCAL1_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CGCG_CGTT_LOCAL1_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w9, w8, #0xe000000
	bic	w8, w20, w8
	orr	w1, w9, w8
	bl	_WREG32_CG
Lloh10:
	adrp	x8, _CGTS_SM_CTRL_REG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CGTS_SM_CTRL_REG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _CGTS_SM_CTRL_REG_ENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CGTS_SM_CTRL_REG_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_WREG32
LBB0_2:
Lloh16:
	adrp	x8, _CGTS_SM_CTRL_REG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CGTS_SM_CTRL_REG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _CGTS_SM_CTRL_REG_DISABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CGTS_SM_CTRL_REG_DISABLE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_WREG32
Lloh22:
	adrp	x21, _CG_CGTT_LOCAL_0@GOTPAGE
Lloh23:
	ldr	x21, [x21, _CG_CGTT_LOCAL_0@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32_CG
	mov	x19, x0
Lloh24:
	adrp	x22, _CG_CGTT_LOCAL_1@GOTPAGE
Lloh25:
	ldr	x22, [x22, _CG_CGTT_LOCAL_1@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_RREG32_CG
	mov	x20, x0
	ldr	w0, [x21]
Lloh26:
	adrp	x8, _CGCG_CGTT_LOCAL0_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CGCG_CGTT_LOCAL0_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w1, w8, w19
	bl	_WREG32_CG
	ldr	w0, [x22]
Lloh29:
	adrp	x8, _CGCG_CGTT_LOCAL1_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CGCG_CGTT_LOCAL1_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w1, w8, w20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_WREG32_CG
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CG_CGTT_LOCAL_0,4,2            ; @CG_CGTT_LOCAL_0
	.comm	_CG_CGTT_LOCAL_1,4,2            ; @CG_CGTT_LOCAL_1
	.comm	_CGCG_CGTT_LOCAL0_MASK,4,2      ; @CGCG_CGTT_LOCAL0_MASK
	.comm	_CGCG_CGTT_LOCAL1_MASK,4,2      ; @CGCG_CGTT_LOCAL1_MASK
	.comm	_CGTS_SM_CTRL_REG,4,2           ; @CGTS_SM_CTRL_REG
	.comm	_CGTS_SM_CTRL_REG_ENABLE,4,2    ; @CGTS_SM_CTRL_REG_ENABLE
	.comm	_CGTS_SM_CTRL_REG_DISABLE,4,2   ; @CGTS_SM_CTRL_REG_DISABLE
	.no_dead_strip	_trinity_mg_clockgating_enable
.subsections_via_symbols
