	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CalcCalPLL
_CalcCalPLL:                            ## @CalcCalPLL
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_m_Cal_PLL_Map@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	callq	_SearchMap3
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	imull	-20(%rbp), %ebx
	movl	%ebx, %edi
	shll	$14, %edi
	movl	$16000000, %esi                 ## imm = 0xF42400
	callq	_do_div
	movl	-24(%rbp), %eax
	movq	(%r14), %rcx
	movq	_CPD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	%eax, (%rcx,%rsi,4)
	movl	%ebx, %eax
	shrl	$2, %eax
	movzbl	%al, %eax
	movq	_CD1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	shll	$6, %ebx
	movzbl	%bl, %eax
	movq	_CD2@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_CD3@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$0, (%rcx,%rdx,4)
	movq	%r14, %rdi
	callq	_UpdateRegs
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_m_Cal_PLL_Map,4,2              ## @m_Cal_PLL_Map
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CPD,8,3                        ## @CPD
	.comm	_CD1,8,3                        ## @CD1
	.comm	_CD2,8,3                        ## @CD2
	.comm	_CD3,8,3                        ## @CD3
	.no_dead_strip	_CalcCalPLL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CalcCalPLL
_CalcCalPLL:                            ; @CalcCalPLL
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _m_Cal_PLL_Map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m_Cal_PLL_Map@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_SearchMap3
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #8]
	mul	w20, w8, w20
	lsl	w0, w20, #14
	mov	w1, #9216
	movk	w1, #244, lsl #16
	bl	_do_div
	ldr	w8, [sp, #12]
	ldr	x9, [x19]
Lloh3:
	adrp	x10, _CPD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CPD@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x10]
	str	w8, [x9, x1, lsl #2]
	ubfx	w8, w20, #2, #8
Lloh6:
	adrp	x10, _CD1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CD1@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ubfiz	w8, w20, #6, #2
Lloh9:
	adrp	x10, _CD2@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CD2@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
Lloh12:
	adrp	x8, _CD3@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CD3@GOTPAGEOFF]
Lloh14:
	ldr	x2, [x8]
	str	wzr, [x9, x2, lsl #2]
	mov	x0, x19
	bl	_UpdateRegs
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_m_Cal_PLL_Map,4,2              ; @m_Cal_PLL_Map
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CPD,8,3                        ; @CPD
	.comm	_CD1,8,3                        ; @CD1
	.comm	_CD2,8,3                        ; @CD2
	.comm	_CD3,8,3                        ; @CD3
	.no_dead_strip	_CalcCalPLL
.subsections_via_symbols
