	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_init_display_clock_gating
_vlv_init_display_clock_gating:         ## @vlv_init_display_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	_DSPCLK_GATE_D@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_DPOUNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_VRHUNIT_CLOCK_GATE_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_MI_ARB_VLV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_I915_WRITE
	movq	_CBR1_VLV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_WARN_ON
	movq	_RAWCLK_FREQ_VLV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_CLOSEST
	movl	%ebx, %edi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DSPCLK_GATE_D,4,2              ## @DSPCLK_GATE_D
	.comm	_DPOUNIT_CLOCK_GATE_DISABLE,4,2 ## @DPOUNIT_CLOCK_GATE_DISABLE
	.comm	_VRHUNIT_CLOCK_GATE_DISABLE,4,2 ## @VRHUNIT_CLOCK_GATE_DISABLE
	.comm	_MI_ARB_VLV,4,2                 ## @MI_ARB_VLV
	.comm	_MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE,4,2 ## @MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE
	.comm	_CBR1_VLV,4,2                   ## @CBR1_VLV
	.comm	_RAWCLK_FREQ_VLV,4,2            ## @RAWCLK_FREQ_VLV
	.no_dead_strip	_vlv_init_display_clock_gating
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_init_display_clock_gating
_vlv_init_display_clock_gating:         ; @vlv_init_display_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, _DSPCLK_GATE_D@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DSPCLK_GATE_D@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
Lloh2:
	adrp	x8, _DPOUNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DPOUNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh5:
	adrp	x9, _VRHUNIT_CLOCK_GATE_DISABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VRHUNIT_CLOCK_GATE_DISABLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w0, [x20]
	bl	_I915_WRITE
Lloh8:
	adrp	x8, _MI_ARB_VLV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MI_ARB_VLV@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_I915_WRITE
Lloh14:
	adrp	x8, _CBR1_VLV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CBR1_VLV@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_I915_WRITE
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh17:
	adrp	x8, _RAWCLK_FREQ_VLV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RAWCLK_FREQ_VLV@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	ldr	x0, [x19]
	mov	w1, #1000
	bl	_DIV_ROUND_CLOSEST
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
	.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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DSPCLK_GATE_D,4,2              ; @DSPCLK_GATE_D
	.comm	_DPOUNIT_CLOCK_GATE_DISABLE,4,2 ; @DPOUNIT_CLOCK_GATE_DISABLE
	.comm	_VRHUNIT_CLOCK_GATE_DISABLE,4,2 ; @VRHUNIT_CLOCK_GATE_DISABLE
	.comm	_MI_ARB_VLV,4,2                 ; @MI_ARB_VLV
	.comm	_MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE,4,2 ; @MI_ARB_DISPLAY_TRICKLE_FEED_DISABLE
	.comm	_CBR1_VLV,4,2                   ; @CBR1_VLV
	.comm	_RAWCLK_FREQ_VLV,4,2            ; @RAWCLK_FREQ_VLV
	.no_dead_strip	_vlv_init_display_clock_gating
.subsections_via_symbols
