	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18271c1_rf_tracking_filter_calibration
_tda18271c1_rf_tracking_filter_calibration: ## @tda18271c1_rf_tracking_filter_calibration
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movl	%esi, -44(%rbp)
	movq	(%rdi), %r12
	movq	(%r12), %r13
	leaq	-44(%rbp), %rsi
	callq	_tda18271_calc_bp_filter
	movq	_R_EP1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_R_EB4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	andb	$7, (%r13,%rax)
	movq	(%rcx), %rax
	orb	$96, (%r13,%rax)
	movq	(%rcx), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_R_EB7@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movb	$96, (%r13,%rax)
	movq	(%rcx), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_R_EB14@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movb	$0, (%r13,%rax)
	movq	(%rcx), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_R_EB20@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movb	$-52, (%r13,%rax)
	movq	(%rcx), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_R_EP4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orb	$3, (%r13,%rax)
	movl	8(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.2:
	movl	$-1250000, %ebx                 ## imm = 0xFFECED30
	jmp	LBB0_4
LBB0_3:
	movl	%r14d, %ebx
	shrl	$31, %ebx
	addl	%r14d, %ebx
	sarl	%ebx
LBB0_4:
	addl	-44(%rbp), %ebx
LBB0_5:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tda18271_calc_cal_pll
	movl	8(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_9
## %bb.7:
	movl	$-250000, %ebx                  ## imm = 0xFFFC2F70
	addl	-44(%rbp), %ebx
	jmp	LBB0_9
LBB0_8:
	movl	-44(%rbp), %eax
	movl	%r14d, %ecx
	shrl	$31, %ecx
	addl	%r14d, %ecx
	sarl	%ecx
	leal	(%rcx,%rax), %ebx
	addl	$1000000, %ebx                  ## imm = 0xF4240
LBB0_9:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_tda18271_calc_main_pll
	movq	_R_EP3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$11, %edx
	callq	_tda18271_write_regs
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movl	$5, %edi
	callq	_msleep
	leaq	-44(%rbp), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tda18271_calc_km
	movq	_R_EB13@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tda18271_calc_rf_band
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tda18271_calc_gain_taper
	movq	_R_EP2@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_R_EP1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	(%r12), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_R_EB4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	andb	$7, (%r13,%rax)
	movq	(%rcx), %rax
	orb	$64, (%r13,%rax)
	movq	(%rcx), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	_R_EB7@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movb	$64, (%r13,%rax)
	movq	(%rcx), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movl	$10, %edi
	callq	_msleep
	movq	_R_EB20@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movb	$-20, (%r13,%rax)
	movq	(%rcx), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movl	$60, %edi
	callq	_msleep
	movq	_R_EP4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	andb	$-4, (%r13,%rax)
	movq	(%rcx), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tda18271_calc_rf_cal
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_R_EB14@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_EP1,8,3                      ## @R_EP1
	.comm	_R_EB4,8,3                      ## @R_EB4
	.comm	_R_EB7,8,3                      ## @R_EB7
	.comm	_R_EB14,8,3                     ## @R_EB14
	.comm	_R_EB20,8,3                     ## @R_EB20
	.comm	_R_EP4,8,3                      ## @R_EP4
	.comm	_R_EP3,8,3                      ## @R_EP3
	.comm	_R_EB13,8,3                     ## @R_EB13
	.comm	_R_EP2,8,3                      ## @R_EP2
	.no_dead_strip	_tda18271c1_rf_tracking_filter_calibration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18271c1_rf_tracking_filter_calibration
_tda18271c1_rf_tracking_filter_calibration: ; @tda18271c1_rf_tracking_filter_calibration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x19, x0
	str	w1, [sp, #12]
	ldr	x22, [x0]
	ldr	x23, [x22]
	add	x1, sp, #12
	bl	_tda18271_calc_bp_filter
Lloh0:
	adrp	x24, _R_EP1@GOTPAGE
Lloh1:
	ldr	x24, [x24, _R_EP1@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
Lloh2:
	adrp	x25, _R_EB4@GOTPAGE
Lloh3:
	ldr	x25, [x25, _R_EB4@GOTPAGEOFF]
	ldr	x8, [x25]
	ldrb	w9, [x23, x8]
	and	w9, w9, #0x7
	strb	w9, [x23, x8]
	ldr	x8, [x25]
	ldrb	w9, [x23, x8]
	orr	w9, w9, #0x60
	strb	w9, [x23, x8]
	ldr	x1, [x25]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
Lloh4:
	adrp	x26, _R_EB7@GOTPAGE
Lloh5:
	ldr	x26, [x26, _R_EB7@GOTPAGEOFF]
	ldr	x8, [x26]
	mov	w9, #96
	strb	w9, [x23, x8]
	ldr	x1, [x26]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
Lloh6:
	adrp	x9, _R_EB14@GOTPAGE
Lloh7:
	ldr	x9, [x9, _R_EB14@GOTPAGEOFF]
	ldr	x8, [x9]
	strb	wzr, [x23, x8]
	ldr	x1, [x9]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
Lloh8:
	adrp	x28, _R_EB20@GOTPAGE
Lloh9:
	ldr	x28, [x28, _R_EB20@GOTPAGEOFF]
	ldr	x8, [x28]
	mov	w9, #204
	strb	w9, [x23, x8]
	ldr	x1, [x28]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
Lloh10:
	adrp	x27, _R_EP4@GOTPAGE
Lloh11:
	ldr	x27, [x27, _R_EP4@GOTPAGEOFF]
	ldr	x8, [x27]
	ldrb	w9, [x23, x8]
	orr	w9, w9, #0x3
	strb	w9, [x23, x8]
	ldr	w8, [x22, #8]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	mov	w21, #0
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	sub	w8, w8, #305, lsl #12           ; =1249280
	sub	w21, w8, #720
	b	LBB0_4
LBB0_3:
	ldr	w8, [sp, #12]
	cmp	w20, #0
	cinc	w9, w20, lt
	add	w21, w8, w9, asr #1
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_tda18271_calc_cal_pll
	ldr	w8, [x22, #8]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [sp, #12]
	sub	w8, w8, #61, lsl #12            ; =249856
	sub	w21, w8, #144
	b	LBB0_8
LBB0_7:
	ldr	w8, [sp, #12]
	cmp	w20, #0
	cinc	w9, w20, lt
	add	w8, w8, w9, asr #1
	add	w8, w8, #244, lsl #12           ; =999424
	add	w21, w8, #576
LBB0_8:
	mov	x0, x19
	mov	x1, x21
	bl	_tda18271_calc_main_pll
Lloh12:
	adrp	x8, _R_EP3@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R_EP3@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #11
	bl	_tda18271_write_regs
	mov	x20, x0
	bl	_tda_fail
	cbnz	x0, LBB0_12
; %bb.9:
	mov	w0, #5
	bl	_msleep
	add	x1, sp, #12
	mov	x0, x19
	bl	_tda18271_calc_km
Lloh15:
	adrp	x8, _R_EB13@GOTPAGE
Lloh16:
	ldr	x8, [x8, _R_EB13@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	add	x1, sp, #12
	mov	x0, x19
	bl	_tda18271_calc_rf_band
	add	x1, sp, #12
	mov	x0, x19
	bl	_tda18271_calc_gain_taper
Lloh18:
	adrp	x20, _R_EP2@GOTPAGE
Lloh19:
	ldr	x20, [x20, _R_EP2@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	ldr	x8, [x25]
	ldrb	w9, [x23, x8]
	and	w9, w9, #0x7
	strb	w9, [x23, x8]
	ldr	x8, [x25]
	ldrb	w9, [x23, x8]
	orr	w9, w9, #0x40
	strb	w9, [x23, x8]
	ldr	x1, [x25]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	ldr	x8, [x26]
	mov	w9, #64
	strb	w9, [x23, x8]
	ldr	x1, [x26]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	mov	w0, #10
	bl	_msleep
	ldr	x8, [x28]
	mov	w9, #236
	strb	w9, [x23, x8]
	ldr	x1, [x28]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	mov	w0, #60
	bl	_msleep
	ldr	x8, [x27]
	ldrb	w9, [x23, x8]
	and	w9, w9, #0xfc
	strb	w9, [x23, x8]
	ldr	x1, [x27]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	add	x1, sp, #12
	mov	x0, x19
	bl	_tda18271_calc_rf_cal
	cbnz	x0, LBB0_11
; %bb.10:
Lloh20:
	adrp	x8, _R_EB14@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R_EB14@GOTPAGEOFF]
Lloh22:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_R_EP1,8,3                      ; @R_EP1
	.comm	_R_EB4,8,3                      ; @R_EB4
	.comm	_R_EB7,8,3                      ; @R_EB7
	.comm	_R_EB14,8,3                     ; @R_EB14
	.comm	_R_EB20,8,3                     ; @R_EB20
	.comm	_R_EP4,8,3                      ; @R_EP4
	.comm	_R_EP3,8,3                      ; @R_EP3
	.comm	_R_EB13,8,3                     ; @R_EB13
	.comm	_R_EP2,8,3                      ; @R_EP2
	.no_dead_strip	_tda18271c1_rf_tracking_filter_calibration
.subsections_via_symbols
