	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen3_init_clock_gating
_gen3_init_clock_gating:                ## @gen3_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, %rbx
	movq	_D_STATE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_I915_READ
	movq	_DSTATE_PLL_D3_OFF@GOTPCREL(%rip), %rcx
	movq	_DSTATE_GFX_CLOCK_GATING@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_DSTATE_DOT_CLOCK_GATING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	%rbx, %rdi
	callq	_IS_PINEVIEW
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ECOSKPD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ECO_GATING_CX_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
LBB0_2:
	movq	_ECOSKPD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ECO_FLIP_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_DISABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_INSTPM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_INSTPM_AGPBUSY_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_MI_ARB_STATE@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	_MI_ARB_C3_LP_WRITE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movl	(%r14), %ebx
	movq	_MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__MASKED_BIT_ENABLE
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D_STATE,4,2                    ## @D_STATE
	.comm	_DSTATE_PLL_D3_OFF,4,2          ## @DSTATE_PLL_D3_OFF
	.comm	_DSTATE_GFX_CLOCK_GATING,4,2    ## @DSTATE_GFX_CLOCK_GATING
	.comm	_DSTATE_DOT_CLOCK_GATING,4,2    ## @DSTATE_DOT_CLOCK_GATING
	.comm	_ECOSKPD,4,2                    ## @ECOSKPD
	.comm	_ECO_GATING_CX_ONLY,4,2         ## @ECO_GATING_CX_ONLY
	.comm	_ECO_FLIP_DONE,4,2              ## @ECO_FLIP_DONE
	.comm	_INSTPM,4,2                     ## @INSTPM
	.comm	_INSTPM_AGPBUSY_INT_EN,4,2      ## @INSTPM_AGPBUSY_INT_EN
	.comm	_MI_ARB_STATE,4,2               ## @MI_ARB_STATE
	.comm	_MI_ARB_C3_LP_WRITE_ENABLE,4,2  ## @MI_ARB_C3_LP_WRITE_ENABLE
	.comm	_MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE,4,2 ## @MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE
	.no_dead_strip	_gen3_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 gen3_init_clock_gating
_gen3_init_clock_gating:                ; @gen3_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	x20, _D_STATE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _D_STATE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
Lloh2:
	adrp	x8, _DSTATE_PLL_D3_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DSTATE_PLL_D3_OFF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DSTATE_GFX_CLOCK_GATING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DSTATE_GFX_CLOCK_GATING@GOTPAGEOFF]
Lloh7:
	adrp	x10, _DSTATE_DOT_CLOCK_GATING@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DSTATE_DOT_CLOCK_GATING@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	ldr	w10, [x10]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w1, w8, w10
	ldr	w0, [x20]
	bl	_I915_WRITE
	mov	x0, x19
	bl	_IS_PINEVIEW
Lloh11:
	adrp	x20, _ECOSKPD@GOTPAGE
Lloh12:
	ldr	x20, [x20, _ECOSKPD@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w19, [x20]
Lloh13:
	adrp	x8, _ECO_GATING_CX_ONLY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ECO_GATING_CX_ONLY@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x19
	bl	_I915_WRITE
LBB0_2:
	ldr	w19, [x20]
Lloh16:
	adrp	x8, _ECO_FLIP_DONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ECO_FLIP_DONE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	__MASKED_BIT_DISABLE
	mov	x1, x0
	mov	x0, x19
	bl	_I915_WRITE
Lloh19:
	adrp	x8, _INSTPM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _INSTPM@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
Lloh22:
	adrp	x8, _INSTPM_AGPBUSY_INT_EN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _INSTPM_AGPBUSY_INT_EN@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x19
	bl	_I915_WRITE
Lloh25:
	adrp	x20, _MI_ARB_STATE@GOTPAGE
Lloh26:
	ldr	x20, [x20, _MI_ARB_STATE@GOTPAGEOFF]
	ldr	w19, [x20]
Lloh27:
	adrp	x8, _MI_ARB_C3_LP_WRITE_ENABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MI_ARB_C3_LP_WRITE_ENABLE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	bl	__MASKED_BIT_ENABLE
	mov	x1, x0
	mov	x0, x19
	bl	_I915_WRITE
	ldr	w19, [x20]
Lloh30:
	adrp	x8, _MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE@GOTPAGEOFF]
Lloh32:
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_D_STATE,4,2                    ; @D_STATE
	.comm	_DSTATE_PLL_D3_OFF,4,2          ; @DSTATE_PLL_D3_OFF
	.comm	_DSTATE_GFX_CLOCK_GATING,4,2    ; @DSTATE_GFX_CLOCK_GATING
	.comm	_DSTATE_DOT_CLOCK_GATING,4,2    ; @DSTATE_DOT_CLOCK_GATING
	.comm	_ECOSKPD,4,2                    ; @ECOSKPD
	.comm	_ECO_GATING_CX_ONLY,4,2         ; @ECO_GATING_CX_ONLY
	.comm	_ECO_FLIP_DONE,4,2              ; @ECO_FLIP_DONE
	.comm	_INSTPM,4,2                     ; @INSTPM
	.comm	_INSTPM_AGPBUSY_INT_EN,4,2      ; @INSTPM_AGPBUSY_INT_EN
	.comm	_MI_ARB_STATE,4,2               ; @MI_ARB_STATE
	.comm	_MI_ARB_C3_LP_WRITE_ENABLE,4,2  ; @MI_ARB_C3_LP_WRITE_ENABLE
	.comm	_MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE,4,2 ; @MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE
	.no_dead_strip	_gen3_init_clock_gating
.subsections_via_symbols
