	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tda18271_calc_cal_pll          ## -- Begin function tda18271_calc_cal_pll
	.p2align	4, 0x90
_tda18271_calc_cal_pll:                 ## @tda18271_calc_cal_pll
	.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, -20(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	_CAL_PLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %r8
	callq	_tda18271_lookup_pll_map
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movb	-24(%rbp), %al
	movq	_R_CPD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r14, %rsi
	movb	%al, (%r14,%rcx)
	movslq	-20(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$38, %rax
	addl	%ecx, %eax
	imull	-28(%rbp), %eax
	shll	$7, %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$16, %ecx
	andb	$127, %cl
	movq	_R_CD1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movb	%cl, (%r14,%rdx)
	movq	_R_CD2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	%ah, (%rsi,%rcx)
	movq	_R_CD3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	%al, (%r14,%rcx)
LBB0_2:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAL_PLL,4,2                    ## @CAL_PLL
	.comm	_R_CPD,8,3                      ## @R_CPD
	.comm	_R_CD1,8,3                      ## @R_CD1
	.comm	_R_CD2,8,3                      ## @R_CD2
	.comm	_R_CD3,8,3                      ## @R_CD3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tda18271_calc_cal_pll          ; -- Begin function tda18271_calc_cal_pll
	.p2align	2
_tda18271_calc_cal_pll:                 ; @tda18271_calc_cal_pll
	.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
	str	w1, [sp, #12]
	ldr	x8, [x0]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _CAL_PLL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAL_PLL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	add	x3, sp, #4
	add	x4, sp, #8
	bl	_tda18271_lookup_pll_map
	mov	x19, x0
	bl	_tda_fail
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #4]
Lloh3:
	adrp	x9, _R_CPD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _R_CPD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	strb	w8, [x20, x9]
	ldp	w8, w9, [sp, #8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	mov	w10, #19923
	movk	w10, #4194, lsl #16
	mul	x9, x9, x10
	lsr	x11, x9, #63
	lsr	x9, x9, #38
	add	w9, w9, w11
	mul	w8, w8, w9
	lsl	w8, w8, #7
	smull	x8, w8, w10
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	ubfx	w9, w8, #16, #7
Lloh6:
	adrp	x10, _R_CD1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _R_CD1@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	strb	w9, [x20, x10]
	lsr	w9, w8, #8
Lloh9:
	adrp	x10, _R_CD2@GOTPAGE
Lloh10:
	ldr	x10, [x10, _R_CD2@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	strb	w9, [x20, x10]
Lloh12:
	adrp	x9, _R_CD3@GOTPAGE
Lloh13:
	ldr	x9, [x9, _R_CD3@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	strb	w8, [x20, x9]
LBB0_2:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_CAL_PLL,4,2                    ; @CAL_PLL
	.comm	_R_CPD,8,3                      ; @R_CPD
	.comm	_R_CD1,8,3                      ; @R_CD1
	.comm	_R_CD2,8,3                      ; @R_CD2
	.comm	_R_CD3,8,3                      ; @R_CD3
.subsections_via_symbols
