	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen9_init_clock_gating
_gen9_init_clock_gating:                ## @gen9_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
	callq	_HAS_LLC
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_CHICKEN_PAR1_1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_SKL_DE_COMPRESSED_HASH_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_2:
	movq	_CHICKEN_PAR1_1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_SKL_EDP_PSR_FIX_RDWRAP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	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_WM_DIS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_DISP_FBC_MEMORY_WAKE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_ILK_DPFC_CHICKEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_ILK_DPFC_DISABLE_DUMMY0@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	%r14, %rdi
	callq	_IS_SKYLAKE
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_GEN7_MISCCPCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_I915_READ
	movq	_GEN7_DOP_CLOCK_GATE_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHICKEN_PAR1_1,4,2             ## @CHICKEN_PAR1_1
	.comm	_SKL_DE_COMPRESSED_HASH_MODE,4,2 ## @SKL_DE_COMPRESSED_HASH_MODE
	.comm	_SKL_EDP_PSR_FIX_RDWRAP,4,2     ## @SKL_EDP_PSR_FIX_RDWRAP
	.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_WM_DIS,4,2            ## @DISP_FBC_WM_DIS
	.comm	_DISP_FBC_MEMORY_WAKE,4,2       ## @DISP_FBC_MEMORY_WAKE
	.comm	_ILK_DPFC_CHICKEN,4,2           ## @ILK_DPFC_CHICKEN
	.comm	_ILK_DPFC_DISABLE_DUMMY0,4,2    ## @ILK_DPFC_DISABLE_DUMMY0
	.comm	_GEN7_MISCCPCTL,4,2             ## @GEN7_MISCCPCTL
	.comm	_GEN7_DOP_CLOCK_GATE_ENABLE,4,2 ## @GEN7_DOP_CLOCK_GATE_ENABLE
	.no_dead_strip	_gen9_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 gen9_init_clock_gating
_gen9_init_clock_gating:                ; @gen9_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	_HAS_LLC
Lloh0:
	adrp	x21, _CHICKEN_PAR1_1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CHICKEN_PAR1_1@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x21]
	mov	x0, x20
	bl	_I915_READ
Lloh2:
	adrp	x8, _SKL_DE_COMPRESSED_HASH_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SKL_DE_COMPRESSED_HASH_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
LBB0_2:
	ldr	w20, [x21]
	mov	x0, x20
	bl	_I915_READ
Lloh5:
	adrp	x8, _SKL_EDP_PSR_FIX_RDWRAP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SKL_EDP_PSR_FIX_RDWRAP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
Lloh8:
	adrp	x8, _GEN8_CHICKEN_DCPR_1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GEN8_CHICKEN_DCPR_1@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh11:
	adrp	x8, _MASK_WAKEMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MASK_WAKEMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
Lloh14:
	adrp	x8, _DISP_ARB_CTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DISP_ARB_CTL@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh17:
	adrp	x8, _DISP_FBC_WM_DIS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DISP_FBC_WM_DIS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh20:
	adrp	x9, _DISP_FBC_MEMORY_WAKE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DISP_FBC_MEMORY_WAKE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	bl	_I915_WRITE
Lloh23:
	adrp	x8, _ILK_DPFC_CHICKEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ILK_DPFC_CHICKEN@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh26:
	adrp	x8, _ILK_DPFC_DISABLE_DUMMY0@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ILK_DPFC_DISABLE_DUMMY0@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_IS_SKYLAKE
	cbz	x0, LBB0_4
; %bb.3:
Lloh29:
	adrp	x8, _GEN7_MISCCPCTL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GEN7_MISCCPCTL@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_I915_READ
Lloh32:
	adrp	x8, _GEN7_DOP_CLOCK_GATE_ENABLE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GEN7_DOP_CLOCK_GATE_ENABLE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, 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
LBB0_4:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_CHICKEN_PAR1_1,4,2             ; @CHICKEN_PAR1_1
	.comm	_SKL_DE_COMPRESSED_HASH_MODE,4,2 ; @SKL_DE_COMPRESSED_HASH_MODE
	.comm	_SKL_EDP_PSR_FIX_RDWRAP,4,2     ; @SKL_EDP_PSR_FIX_RDWRAP
	.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_WM_DIS,4,2            ; @DISP_FBC_WM_DIS
	.comm	_DISP_FBC_MEMORY_WAKE,4,2       ; @DISP_FBC_MEMORY_WAKE
	.comm	_ILK_DPFC_CHICKEN,4,2           ; @ILK_DPFC_CHICKEN
	.comm	_ILK_DPFC_DISABLE_DUMMY0,4,2    ; @ILK_DPFC_DISABLE_DUMMY0
	.comm	_GEN7_MISCCPCTL,4,2             ; @GEN7_MISCCPCTL
	.comm	_GEN7_DOP_CLOCK_GATE_ENABLE,4,2 ; @GEN7_DOP_CLOCK_GATE_ENABLE
	.no_dead_strip	_gen9_init_clock_gating
.subsections_via_symbols
