	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnl_init_clock_gating
_cnl_init_clock_gating:                 ## @cnl_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
	callq	_cnp_init_clock_gating
	movq	__3D_CHICKEN3@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	__3D_CHICKEN3_AA_LINE_QUALITY_FIX_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_GEN8_CHICKEN_DCPR_1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_MASK_WAKEMEM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_DISP_ARB_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_DISP_FBC_MEMORY_WAKE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_SLICE_UNIT_LEVEL_CLKGATE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_RCCUNIT_CLKGATE_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_CNL_REVID_A0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CNL_REVID_B0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_IS_CNL_REVID
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SARBUNIT_CLKGATE_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	orl	%ecx, %ebx
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movq	_SUBSLICE_UNIT_LEVEL_CLKGATE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_GWUNIT_CLKGATE_DIS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_UNSLICE_UNIT_LEVEL_CLKGATE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_VFUNIT_CLKGATE_DIS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__3D_CHICKEN3,4,2               ## @_3D_CHICKEN3
	.comm	__3D_CHICKEN3_AA_LINE_QUALITY_FIX_ENABLE,4,2 ## @_3D_CHICKEN3_AA_LINE_QUALITY_FIX_ENABLE
	.comm	_GEN8_CHICKEN_DCPR_1,4,2        ## @GEN8_CHICKEN_DCPR_1
	.comm	_MASK_WAKEMEM,4,2               ## @MASK_WAKEMEM
	.comm	_DISP_ARB_CTL,4,2               ## @DISP_ARB_CTL
	.comm	_DISP_FBC_MEMORY_WAKE,4,2       ## @DISP_FBC_MEMORY_WAKE
	.comm	_SLICE_UNIT_LEVEL_CLKGATE,4,2   ## @SLICE_UNIT_LEVEL_CLKGATE
	.comm	_RCCUNIT_CLKGATE_DIS,4,2        ## @RCCUNIT_CLKGATE_DIS
	.comm	_CNL_REVID_A0,4,2               ## @CNL_REVID_A0
	.comm	_CNL_REVID_B0,4,2               ## @CNL_REVID_B0
	.comm	_SARBUNIT_CLKGATE_DIS,4,2       ## @SARBUNIT_CLKGATE_DIS
	.comm	_SUBSLICE_UNIT_LEVEL_CLKGATE,4,2 ## @SUBSLICE_UNIT_LEVEL_CLKGATE
	.comm	_GWUNIT_CLKGATE_DIS,4,2         ## @GWUNIT_CLKGATE_DIS
	.comm	_UNSLICE_UNIT_LEVEL_CLKGATE,4,2 ## @UNSLICE_UNIT_LEVEL_CLKGATE
	.comm	_VFUNIT_CLKGATE_DIS,4,2         ## @VFUNIT_CLKGATE_DIS
	.no_dead_strip	_cnl_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 cnl_init_clock_gating
_cnl_init_clock_gating:                 ; @cnl_init_clock_gating
	.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
	mov	x19, x0
	bl	_cnp_init_clock_gating
Lloh0:
	adrp	x8, __3D_CHICKEN3@GOTPAGE
Lloh1:
	ldr	x8, [x8, __3D_CHICKEN3@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, __3D_CHICKEN3_AA_LINE_QUALITY_FIX_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, __3D_CHICKEN3_AA_LINE_QUALITY_FIX_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x20
	bl	_I915_WRITE
Lloh6:
	adrp	x8, _GEN8_CHICKEN_DCPR_1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GEN8_CHICKEN_DCPR_1@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh9:
	adrp	x8, _MASK_WAKEMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MASK_WAKEMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
Lloh12:
	adrp	x8, _DISP_ARB_CTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DISP_ARB_CTL@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh15:
	adrp	x8, _DISP_FBC_MEMORY_WAKE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DISP_FBC_MEMORY_WAKE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
Lloh18:
	adrp	x20, _SLICE_UNIT_LEVEL_CLKGATE@GOTPAGE
Lloh19:
	ldr	x20, [x20, _SLICE_UNIT_LEVEL_CLKGATE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
Lloh20:
	adrp	x8, _RCCUNIT_CLKGATE_DIS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RCCUNIT_CLKGATE_DIS@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w21, w8, w0
Lloh23:
	adrp	x8, _CNL_REVID_A0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CNL_REVID_A0@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _CNL_REVID_B0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CNL_REVID_B0@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_IS_CNL_REVID
Lloh29:
	adrp	x8, _SARBUNIT_CLKGATE_DIS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SARBUNIT_CLKGATE_DIS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w1, w21, w8
	ldr	w0, [x20]
	bl	_I915_WRITE
Lloh32:
	adrp	x19, _SUBSLICE_UNIT_LEVEL_CLKGATE@GOTPAGE
Lloh33:
	ldr	x19, [x19, _SUBSLICE_UNIT_LEVEL_CLKGATE@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_READ
Lloh34:
	adrp	x8, _GWUNIT_CLKGATE_DIS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _GWUNIT_CLKGATE_DIS@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x19]
	bl	_I915_WRITE
Lloh37:
	adrp	x19, _UNSLICE_UNIT_LEVEL_CLKGATE@GOTPAGE
Lloh38:
	ldr	x19, [x19, _UNSLICE_UNIT_LEVEL_CLKGATE@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_READ
Lloh39:
	adrp	x8, _VFUNIT_CLKGATE_DIS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _VFUNIT_CLKGATE_DIS@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x19]
	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	_I915_WRITE
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.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	__3D_CHICKEN3,4,2               ; @_3D_CHICKEN3
	.comm	__3D_CHICKEN3_AA_LINE_QUALITY_FIX_ENABLE,4,2 ; @_3D_CHICKEN3_AA_LINE_QUALITY_FIX_ENABLE
	.comm	_GEN8_CHICKEN_DCPR_1,4,2        ; @GEN8_CHICKEN_DCPR_1
	.comm	_MASK_WAKEMEM,4,2               ; @MASK_WAKEMEM
	.comm	_DISP_ARB_CTL,4,2               ; @DISP_ARB_CTL
	.comm	_DISP_FBC_MEMORY_WAKE,4,2       ; @DISP_FBC_MEMORY_WAKE
	.comm	_SLICE_UNIT_LEVEL_CLKGATE,4,2   ; @SLICE_UNIT_LEVEL_CLKGATE
	.comm	_RCCUNIT_CLKGATE_DIS,4,2        ; @RCCUNIT_CLKGATE_DIS
	.comm	_CNL_REVID_A0,4,2               ; @CNL_REVID_A0
	.comm	_CNL_REVID_B0,4,2               ; @CNL_REVID_B0
	.comm	_SARBUNIT_CLKGATE_DIS,4,2       ; @SARBUNIT_CLKGATE_DIS
	.comm	_SUBSLICE_UNIT_LEVEL_CLKGATE,4,2 ; @SUBSLICE_UNIT_LEVEL_CLKGATE
	.comm	_GWUNIT_CLKGATE_DIS,4,2         ; @GWUNIT_CLKGATE_DIS
	.comm	_UNSLICE_UNIT_LEVEL_CLKGATE,4,2 ; @UNSLICE_UNIT_LEVEL_CLKGATE
	.comm	_VFUNIT_CLKGATE_DIS,4,2         ; @VFUNIT_CLKGATE_DIS
	.no_dead_strip	_cnl_init_clock_gating
.subsections_via_symbols
