	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g4x_init_clock_gating
_g4x_init_clock_gating:                 ## @g4x_init_clock_gating
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_RENCLK_GATE_D1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_I915_WRITE
	movq	_RENCLK_GATE_D2@GOTPCREL(%rip), %rax
	movq	_VF_UNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rcx
	movq	_GS_UNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	(%rax), %edi
	movq	_CL_UNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_I915_WRITE
	movq	_RAMCLK_GATE_D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
	movq	_VRHUNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rax
	movq	_OVRUNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_OVCUNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_IS_GM45
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_DSSUNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	orl	%r15d, %ebx
	movq	_DSPCLK_GATE_D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_CACHE_MODE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_CM0_PIPELINED_RENDER_FLUSH_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RENCLK_GATE_D1,4,2             ## @RENCLK_GATE_D1
	.comm	_RENCLK_GATE_D2,4,2             ## @RENCLK_GATE_D2
	.comm	_VF_UNIT_CLOCK_GATE_DISABLE,4,2 ## @VF_UNIT_CLOCK_GATE_DISABLE
	.comm	_GS_UNIT_CLOCK_GATE_DISABLE,4,2 ## @GS_UNIT_CLOCK_GATE_DISABLE
	.comm	_CL_UNIT_CLOCK_GATE_DISABLE,4,2 ## @CL_UNIT_CLOCK_GATE_DISABLE
	.comm	_RAMCLK_GATE_D,4,2              ## @RAMCLK_GATE_D
	.comm	_VRHUNIT_CLOCK_GATE_DISABLE,4,2 ## @VRHUNIT_CLOCK_GATE_DISABLE
	.comm	_OVRUNIT_CLOCK_GATE_DISABLE,4,2 ## @OVRUNIT_CLOCK_GATE_DISABLE
	.comm	_OVCUNIT_CLOCK_GATE_DISABLE,4,2 ## @OVCUNIT_CLOCK_GATE_DISABLE
	.comm	_DSSUNIT_CLOCK_GATE_DISABLE,4,2 ## @DSSUNIT_CLOCK_GATE_DISABLE
	.comm	_DSPCLK_GATE_D,4,2              ## @DSPCLK_GATE_D
	.comm	_CACHE_MODE_0,4,2               ## @CACHE_MODE_0
	.comm	_CM0_PIPELINED_RENDER_FLUSH_DISABLE,4,2 ## @CM0_PIPELINED_RENDER_FLUSH_DISABLE
	.no_dead_strip	_g4x_init_clock_gating
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g4x_init_clock_gating
_g4x_init_clock_gating:                 ; @g4x_init_clock_gating
	.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	x19, x0
Lloh0:
	adrp	x8, _RENCLK_GATE_D1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RENCLK_GATE_D1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_I915_WRITE
Lloh3:
	adrp	x8, _RENCLK_GATE_D2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RENCLK_GATE_D2@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _VF_UNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VF_UNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _GS_UNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GS_UNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _CL_UNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CL_UNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_I915_WRITE
Lloh15:
	adrp	x8, _RAMCLK_GATE_D@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RAMCLK_GATE_D@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_I915_WRITE
Lloh18:
	adrp	x8, _VRHUNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VRHUNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _OVRUNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _OVRUNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _OVCUNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _OVCUNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w20, w8, w9
	mov	x0, x19
	bl	_IS_GM45
Lloh27:
	adrp	x8, _DSSUNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DSSUNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w1, w20, w8
Lloh30:
	adrp	x8, _DSPCLK_GATE_D@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DSPCLK_GATE_D@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_I915_WRITE
Lloh33:
	adrp	x8, _CACHE_MODE_0@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CACHE_MODE_0@GOTPAGEOFF]
Lloh35:
	ldr	w19, [x8]
Lloh36:
	adrp	x8, _CM0_PIPELINED_RENDER_FLUSH_DISABLE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CM0_PIPELINED_RENDER_FLUSH_DISABLE@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RENCLK_GATE_D1,4,2             ; @RENCLK_GATE_D1
	.comm	_RENCLK_GATE_D2,4,2             ; @RENCLK_GATE_D2
	.comm	_VF_UNIT_CLOCK_GATE_DISABLE,4,2 ; @VF_UNIT_CLOCK_GATE_DISABLE
	.comm	_GS_UNIT_CLOCK_GATE_DISABLE,4,2 ; @GS_UNIT_CLOCK_GATE_DISABLE
	.comm	_CL_UNIT_CLOCK_GATE_DISABLE,4,2 ; @CL_UNIT_CLOCK_GATE_DISABLE
	.comm	_RAMCLK_GATE_D,4,2              ; @RAMCLK_GATE_D
	.comm	_VRHUNIT_CLOCK_GATE_DISABLE,4,2 ; @VRHUNIT_CLOCK_GATE_DISABLE
	.comm	_OVRUNIT_CLOCK_GATE_DISABLE,4,2 ; @OVRUNIT_CLOCK_GATE_DISABLE
	.comm	_OVCUNIT_CLOCK_GATE_DISABLE,4,2 ; @OVCUNIT_CLOCK_GATE_DISABLE
	.comm	_DSSUNIT_CLOCK_GATE_DISABLE,4,2 ; @DSSUNIT_CLOCK_GATE_DISABLE
	.comm	_DSPCLK_GATE_D,4,2              ; @DSPCLK_GATE_D
	.comm	_CACHE_MODE_0,4,2               ; @CACHE_MODE_0
	.comm	_CM0_PIPELINED_RENDER_FLUSH_DISABLE,4,2 ; @CM0_PIPELINED_RENDER_FLUSH_DISABLE
	.no_dead_strip	_g4x_init_clock_gating
.subsections_via_symbols
