	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chv_init_clock_gating
_chv_init_clock_gating:                 ## @chv_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_GEN7_FF_THREAD_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_GEN8_FF_DS_REF_CNT_FFME@GOTPCREL(%rip), %rcx
	movq	_GEN7_FF_VS_REF_CNT_FFME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
	movq	_GEN6_RC_SLEEP_PSMI_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_GEN8_RC_SEMA_IDLE_MSG_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_GEN6_UCGCTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_GEN6_CSUNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_GEN8_UCGCTL6@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_GEN8_SDEUNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	%r14, %rdi
	movl	$38, %esi
	movl	$2, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_gen8_set_l3sqc_credits         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN7_FF_THREAD_MODE,4,2        ## @GEN7_FF_THREAD_MODE
	.comm	_GEN8_FF_DS_REF_CNT_FFME,4,2    ## @GEN8_FF_DS_REF_CNT_FFME
	.comm	_GEN7_FF_VS_REF_CNT_FFME,4,2    ## @GEN7_FF_VS_REF_CNT_FFME
	.comm	_GEN6_RC_SLEEP_PSMI_CONTROL,4,2 ## @GEN6_RC_SLEEP_PSMI_CONTROL
	.comm	_GEN8_RC_SEMA_IDLE_MSG_DISABLE,4,2 ## @GEN8_RC_SEMA_IDLE_MSG_DISABLE
	.comm	_GEN6_UCGCTL1,4,2               ## @GEN6_UCGCTL1
	.comm	_GEN6_CSUNIT_CLOCK_GATE_DISABLE,4,2 ## @GEN6_CSUNIT_CLOCK_GATE_DISABLE
	.comm	_GEN8_UCGCTL6,4,2               ## @GEN8_UCGCTL6
	.comm	_GEN8_SDEUNIT_CLOCK_GATE_DISABLE,4,2 ## @GEN8_SDEUNIT_CLOCK_GATE_DISABLE
	.no_dead_strip	_chv_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 chv_init_clock_gating
_chv_init_clock_gating:                 ; @chv_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, _GEN7_FF_THREAD_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN7_FF_THREAD_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh3:
	adrp	x8, _GEN8_FF_DS_REF_CNT_FFME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN8_FF_DS_REF_CNT_FFME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GEN7_FF_VS_REF_CNT_FFME@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GEN7_FF_VS_REF_CNT_FFME@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w1, w0, w8
	mov	x0, x20
	bl	_I915_WRITE
Lloh9:
	adrp	x8, _GEN6_RC_SLEEP_PSMI_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GEN6_RC_SLEEP_PSMI_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
Lloh12:
	adrp	x8, _GEN8_RC_SEMA_IDLE_MSG_DISABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GEN8_RC_SEMA_IDLE_MSG_DISABLE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE
Lloh15:
	adrp	x8, _GEN6_UCGCTL1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GEN6_UCGCTL1@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh18:
	adrp	x8, _GEN6_CSUNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GEN6_CSUNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
Lloh21:
	adrp	x8, _GEN8_UCGCTL6@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GEN8_UCGCTL6@GOTPAGEOFF]
Lloh23:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh24:
	adrp	x8, _GEN8_SDEUNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GEN8_SDEUNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x19
	mov	w1, #38
	mov	w2, #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gen8_set_l3sqc_credits
	.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	_GEN7_FF_THREAD_MODE,4,2        ; @GEN7_FF_THREAD_MODE
	.comm	_GEN8_FF_DS_REF_CNT_FFME,4,2    ; @GEN8_FF_DS_REF_CNT_FFME
	.comm	_GEN7_FF_VS_REF_CNT_FFME,4,2    ; @GEN7_FF_VS_REF_CNT_FFME
	.comm	_GEN6_RC_SLEEP_PSMI_CONTROL,4,2 ; @GEN6_RC_SLEEP_PSMI_CONTROL
	.comm	_GEN8_RC_SEMA_IDLE_MSG_DISABLE,4,2 ; @GEN8_RC_SEMA_IDLE_MSG_DISABLE
	.comm	_GEN6_UCGCTL1,4,2               ; @GEN6_UCGCTL1
	.comm	_GEN6_CSUNIT_CLOCK_GATE_DISABLE,4,2 ; @GEN6_CSUNIT_CLOCK_GATE_DISABLE
	.comm	_GEN8_UCGCTL6,4,2               ; @GEN8_UCGCTL6
	.comm	_GEN8_SDEUNIT_CLOCK_GATE_DISABLE,4,2 ; @GEN8_SDEUNIT_CLOCK_GATE_DISABLE
	.no_dead_strip	_chv_init_clock_gating
.subsections_via_symbols
