	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vlv_crtc_clock_get
LCPI0_0:
	.long	7                               ## 0x7
	.space	4
	.long	15                              ## 0xf
	.long	7                               ## 0x7
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vlv_crtc_clock_get:                    ## @vlv_crtc_clock_get
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rdi
	callq	_to_i915
	movq	%rax, %r15
	movq	_DPLL_VCO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_2
## %bb.1:
	movl	(%r14), %ebx
	movq	%r15, %rdi
	callq	_vlv_dpio_get
	movl	%ebx, %edi
	callq	_VLV_PLL_DW3
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_vlv_dpio_read
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_vlv_dpio_put
	movq	_DPIO_M1DIV_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %eax
	sarl	%cl, %eax
	movq	_DPIO_N_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%ebx, %edx
	sarl	%cl, %edx
	movq	_DPIO_P1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%ebx, %esi
	sarl	%cl, %esi
	movq	_DPIO_M2DIV_MASK@GOTPCREL(%rip), %rcx
	movd	%eax, %xmm0
	pinsrd	$1, (%rcx), %xmm0
	pinsrd	$2, %edx, %xmm0
	pinsrd	$3, %esi, %xmm0
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <7,u,15,7>
	pinsrd	$1, %ebx, %xmm1
	movq	_DPIO_P2_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	pand	%xmm0, %xmm1
	movdqa	%xmm1, -48(%rbp)
	andl	$31, %ebx
	movl	%ebx, -32(%rbp)
	leaq	-48(%rbp), %rsi
	movl	$100000, %edi                   ## imm = 0x186A0
	callq	_vlv_calc_dpll_params
	movl	%eax, 4(%r14)
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DPLL_VCO_ENABLE,4,2            ## @DPLL_VCO_ENABLE
	.comm	_DPIO_M1DIV_SHIFT,4,2           ## @DPIO_M1DIV_SHIFT
	.comm	_DPIO_M2DIV_MASK,4,2            ## @DPIO_M2DIV_MASK
	.comm	_DPIO_N_SHIFT,4,2               ## @DPIO_N_SHIFT
	.comm	_DPIO_P1_SHIFT,4,2              ## @DPIO_P1_SHIFT
	.comm	_DPIO_P2_SHIFT,4,2              ## @DPIO_P2_SHIFT
	.no_dead_strip	_vlv_crtc_clock_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_crtc_clock_get
_vlv_crtc_clock_get:                    ; @vlv_crtc_clock_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	ldr	x0, [x0]
	bl	_to_i915
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _DPLL_VCO_ENABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DPLL_VCO_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w21, [x19]
	bl	_vlv_dpio_get
	mov	x0, x21
	bl	_VLV_PLL_DW3
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_vlv_dpio_read
	mov	x21, x0
	mov	x0, x20
	bl	_vlv_dpio_put
Lloh3:
	adrp	x8, _DPIO_M1DIV_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DPIO_M1DIV_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w8, w21, w8
	and	w8, w8, #0x7
Lloh6:
	adrp	x9, _DPIO_M2DIV_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DPIO_M2DIV_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w21
	stp	w8, w9, [sp, #8]
Lloh9:
	adrp	x8, _DPIO_N_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPIO_N_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	asr	w8, w21, w8
Lloh12:
	adrp	x9, _DPIO_P1_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DPIO_P1_SHIFT@GOTPAGEOFF]
	and	w8, w8, #0xf
Lloh14:
	ldr	w9, [x9]
	asr	w9, w21, w9
	and	w9, w9, #0x7
	stp	w8, w9, [sp, #16]
Lloh15:
	adrp	x8, _DPIO_P2_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DPIO_P2_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	asr	w8, w21, w8
	and	w8, w8, #0x1f
	str	w8, [sp, #24]
	add	x1, sp, #8
	mov	w0, #34464
	movk	w0, #1, lsl #16
	bl	_vlv_calc_dpll_params
	str	w0, [x19, #4]
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_DPLL_VCO_ENABLE,4,2            ; @DPLL_VCO_ENABLE
	.comm	_DPIO_M1DIV_SHIFT,4,2           ; @DPIO_M1DIV_SHIFT
	.comm	_DPIO_M2DIV_MASK,4,2            ; @DPIO_M2DIV_MASK
	.comm	_DPIO_N_SHIFT,4,2               ; @DPIO_N_SHIFT
	.comm	_DPIO_P1_SHIFT,4,2              ; @DPIO_P1_SHIFT
	.comm	_DPIO_P2_SHIFT,4,2              ; @DPIO_P2_SHIFT
	.no_dead_strip	_vlv_crtc_clock_get
.subsections_via_symbols
