	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnp_rawclk
_cnp_rawclk:                            ## @cnp_rawclk
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_SFUSE_STRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	_SFUSE_STRAP_RAW_FREQUENCY@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	andl	(%rax), %ebx
	setne	%cl
	leal	(%rcx,%rcx,4), %edi
	addl	$19, %edi
	callq	_CNP_RAWCLK_DIV
	movl	%eax, %r15d
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	$24000, %r14d                   ## imm = 0x5DC0
	movl	%r15d, %ebx
	jmp	LBB0_4
LBB0_2:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$200, %esi
	callq	_DIV_ROUND_CLOSEST
	leaq	-1(%rax), %rdi
	callq	_CNP_RAWCLK_DEN
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	callq	_INTEL_PCH_TYPE
	movq	_PCH_ICP@GOTPCREL(%rip), %rcx
	movl	$19200, %r14d                   ## imm = 0x4B00
	cmpq	(%rcx), %rax
	jl	LBB0_4
## %bb.3:
	movl	$1, %edi
	callq	_ICP_RAWCLK_NUM
	orl	%eax, %ebx
LBB0_4:
	movq	_PCH_RAWCLK_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SFUSE_STRAP,4,2                ## @SFUSE_STRAP
	.comm	_SFUSE_STRAP_RAW_FREQUENCY,4,2  ## @SFUSE_STRAP_RAW_FREQUENCY
	.comm	_PCH_ICP,8,3                    ## @PCH_ICP
	.comm	_PCH_RAWCLK_FREQ,4,2            ## @PCH_RAWCLK_FREQ
	.no_dead_strip	_cnp_rawclk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnp_rawclk
_cnp_rawclk:                            ; @cnp_rawclk
	.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	x20, x0
Lloh0:
	adrp	x8, _SFUSE_STRAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SFUSE_STRAP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_I915_READ
Lloh3:
	adrp	x8, _SFUSE_STRAP_RAW_FREQUENCY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SFUSE_STRAP_RAW_FREQUENCY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ands	w21, w8, w0
	mov	w8, #24
	mov	w9, #19
	csel	w0, w9, w8, eq
	bl	_CNP_RAWCLK_DIV
	mov	x19, x0
	cbz	w21, LBB0_2
; %bb.1:
	mov	w20, #24000
	b	LBB0_5
LBB0_2:
	mov	w0, #1000
	mov	w1, #200
	bl	_DIV_ROUND_CLOSEST
	sub	x0, x0, #1
	bl	_CNP_RAWCLK_DEN
	orr	w19, w0, w19
	mov	x0, x20
	bl	_INTEL_PCH_TYPE
Lloh6:
	adrp	x8, _PCH_ICP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCH_ICP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_4
; %bb.3:
	mov	w0, #1
	bl	_ICP_RAWCLK_NUM
	orr	w19, w0, w19
LBB0_4:
	mov	w20, #19200
LBB0_5:
Lloh9:
	adrp	x8, _PCH_RAWCLK_FREQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCH_RAWCLK_FREQ@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_I915_WRITE
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SFUSE_STRAP,4,2                ; @SFUSE_STRAP
	.comm	_SFUSE_STRAP_RAW_FREQUENCY,4,2  ; @SFUSE_STRAP_RAW_FREQUENCY
	.comm	_PCH_ICP,8,3                    ; @PCH_ICP
	.comm	_PCH_RAWCLK_FREQ,4,2            ; @PCH_RAWCLK_FREQ
	.no_dead_strip	_cnp_rawclk
.subsections_via_symbols
