	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_calc_cdclk
_vlv_calc_cdclk:                        ## @vlv_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
	movl	%esi, %r14d
	imull	$1979120930, (%rdi), %eax       ## imm = 0x75F6FD22
	addl	$3435520, %eax                  ## imm = 0x346C00
	rorl	$9, %eax
	cmpl	$13421, %eax                    ## imm = 0x346D
	movl	$320000, %eax                   ## imm = 0x4E200
	movl	$333333, %ebx                   ## imm = 0x51615
	cmovbl	%eax, %ebx
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$400000, %eax                   ## imm = 0x61A80
	cmpl	%r14d, %ebx
	jl	LBB0_4
LBB0_2:
	movl	%ebx, %eax
	cmpl	$266667, %r14d                  ## imm = 0x411AB
	jg	LBB0_4
## %bb.3:
	testl	%r14d, %r14d
	movl	$266667, %ecx                   ## imm = 0x411AB
	movl	$200000, %eax                   ## imm = 0x30D40
	cmovgl	%ecx, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vlv_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_calc_cdclk
_vlv_calc_cdclk:                        ; @vlv_calc_cdclk
	.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, x1
	ldr	w8, [x0]
	mov	w9, #64802
	movk	w9, #30198, lsl #16
	mov	w10, #27648
	movk	w10, #52, lsl #16
	madd	w8, w8, w9, w10
	ror	w8, w8, #9
	mov	w9, #13421
	mov	w10, #5653
	movk	w10, #5, lsl #16
	mov	w11, #57856
	movk	w11, #4, lsl #16
	cmp	w8, w9
	csel	w20, w11, w10, lo
	bl	_IS_VALLEYVIEW
	cbz	x0, LBB0_3
; %bb.1:
	cmp	w20, w19
	b.ge	LBB0_3
; %bb.2:
	mov	w20, #6784
	movk	w20, #6, lsl #16
	b	LBB0_5
LBB0_3:
	mov	w8, #4523
	movk	w8, #4, lsl #16
	cmp	w19, w8
	b.gt	LBB0_5
; %bb.4:
	mov	w9, #3392
	movk	w9, #3, lsl #16
	cmp	w19, #0
	csel	w20, w8, w9, gt
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vlv_calc_cdclk
.subsections_via_symbols
