	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_hz_to_pwm
_vlv_hz_to_pwm:                         ## @vlv_hz_to_pwm
	.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
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %rbx
	movq	_CBR1_VLV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movq	_CBR_PWM_CLOCK_MUX_SELECT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_KHz
	movl	$128, %esi
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$19200, %edi                    ## imm = 0x4B00
	callq	_KHz
	jmp	LBB0_5
LBB0_4:
	movl	$25, %edi
	callq	_MHz
LBB0_5:
	movl	$16, %esi
LBB0_6:
	imull	%r14d, %esi
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_DIV_ROUND_CLOSEST              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CBR1_VLV,4,2                   ## @CBR1_VLV
	.comm	_CBR_PWM_CLOCK_MUX_SELECT,4,2   ## @CBR_PWM_CLOCK_MUX_SELECT
	.no_dead_strip	_vlv_hz_to_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_hz_to_pwm
_vlv_hz_to_pwm:                         ; @vlv_hz_to_pwm
	.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	w0, [x0]
	bl	_to_i915
	mov	x20, x0
Lloh0:
	adrp	x8, _CBR1_VLV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CBR1_VLV@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _CBR_PWM_CLOCK_MUX_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CBR_PWM_CLOCK_MUX_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_KHz
	mov	w8, #128
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #19200
	bl	_KHz
	b	LBB0_5
LBB0_4:
	mov	w0, #25
	bl	_MHz
LBB0_5:
	mov	w8, #16
LBB0_6:
	mul	w1, w8, w19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_DIV_ROUND_CLOSEST
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CBR1_VLV,4,2                   ; @CBR1_VLV
	.comm	_CBR_PWM_CLOCK_MUX_SELECT,4,2   ; @CBR_PWM_CLOCK_MUX_SELECT
	.no_dead_strip	_vlv_hz_to_pwm
.subsections_via_symbols
