	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_modeset_calc_cdclk
_vlv_modeset_calc_cdclk:                ## @vlv_modeset_calc_cdclk
	.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
	movl	44(%rdi), %edi
	callq	_to_i915
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_intel_compute_min_cdclk
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_vlv_calc_cdclk
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_vlv_calc_voltage_level
	movq	%rax, 16(%rbx)
	cmpl	$0, 40(%rbx)
	je	LBB0_2
## %bb.3:
	leaq	8(%rbx), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 24(%rbx)
	jmp	LBB0_4
LBB0_2:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_vlv_calc_cdclk
	movl	%eax, 24(%rbx)
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_vlv_calc_voltage_level
	movq	%rax, 32(%rbx)
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vlv_modeset_calc_cdclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_modeset_calc_cdclk
_vlv_modeset_calc_cdclk:                ; @vlv_modeset_calc_cdclk
	.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
	ldr	w0, [x0, #44]
	bl	_to_i915
	mov	x20, x0
	mov	x0, x19
	bl	_intel_compute_min_cdclk
	mov	x1, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_vlv_calc_cdclk
	mov	x1, x0
	mov	x21, x19
	str	w0, [x21, #8]!
	mov	x0, x20
	bl	_vlv_calc_voltage_level
	str	x0, [x21, #8]
	ldr	w8, [x21, #32]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w1, #0
	ldr	q0, [x21]
	stur	q0, [x19, #24]
	b	LBB0_4
LBB0_3:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_vlv_calc_cdclk
	mov	x1, x0
	str	w0, [x19, #24]
	mov	x0, x20
	bl	_vlv_calc_voltage_level
	mov	w1, #0
	str	x0, [x19, #32]
LBB0_4:
	mov	x0, x1
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vlv_modeset_calc_cdclk
.subsections_via_symbols
