	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18271c2_rf_tracking_filters_correction
_tda18271c2_rf_tracking_filters_correction: ## @tda18271c2_rf_tracking_filters_correction
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	%esi, -44(%rbp)
	movq	(%rdi), %r13
	movq	(%r13), %r12
	movq	16(%r13), %r14
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_tda18271_set_standby_mode
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	callq	_tda18271_read_thermometer
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	-44(%rbp), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_tda18271_calc_rf_cal
	movq	_R_EB14@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	(%r12,%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_tda18271_lookup_rf_band
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	_R_EB14@GOTPCREL(%rip), %rsi
	movslq	%ebx, %rcx
	shlq	$5, %rcx
	movslq	-44(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	cmpq	$0, (%r14,%rcx)
	je	LBB0_4
## %bb.3:
	movl	%eax, %edx
	subl	8(%r14,%rcx), %edx
	jge	LBB0_5
LBB0_4:
	subl	16(%r14,%rcx), %eax
	imull	12(%r14,%rcx), %eax
	addq	%r14, %rcx
	addq	$20, %rcx
	jmp	LBB0_6
LBB0_5:
	imull	24(%r14,%rcx), %edx
	addq	%r14, %rcx
	addq	$28, %rcx
	movl	%edx, %eax
LBB0_6:
	movq	%rsi, %r14
	addl	(%rcx), %eax
	addl	%edi, %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	cmpl	$255, %ecx
	movl	$255, %ebx
	cmovbl	%ecx, %ebx
	movq	_RF_CAL_DC_OVER_DT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	callq	_tda18271_lookup_map
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	subl	8(%r13), %eax
	imull	-56(%rbp), %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$38, %rax
	addl	%ecx, %eax
	addl	%ebx, %eax
	movq	(%r14), %rcx
	movb	%al, (%r12,%rcx)
	movq	(%r14), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_tda18271_write_regs
	movl	%eax, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_EB14,8,3                     ## @R_EB14
	.comm	_RF_CAL_DC_OVER_DT,4,2          ## @RF_CAL_DC_OVER_DT
	.no_dead_strip	_tda18271c2_rf_tracking_filters_correction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18271c2_rf_tracking_filters_correction
_tda18271c2_rf_tracking_filters_correction: ; @tda18271c2_rf_tracking_filters_correction
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	str	w1, [sp, #12]
	ldr	x23, [x0]
	ldr	x25, [x23, #16]
	ldr	x22, [x23]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_tda18271_set_standby_mode
	mov	x21, x0
	bl	_tda_fail
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_tda18271_read_thermometer
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x19
	bl	_tda18271_calc_rf_cal
Lloh0:
	adrp	x24, _R_EB14@GOTPAGE
Lloh1:
	ldr	x24, [x24, _R_EB14@GOTPAGEOFF]
	ldr	x8, [x24]
	ldrb	w26, [x22, x8]
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, #0
	bl	_tda18271_lookup_rf_band
	mov	x21, x0
	bl	_tda_fail
	cbnz	x0, LBB0_7
; %bb.2:
	sxtw	x8, w21
	sbfiz	x9, x21, #5, #32
	ldr	x10, [x25, x9]
	ldrsw	x9, [sp, #12]
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x9, x9, x11
	lsr	x11, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w11
	cbz	x10, LBB0_4
; %bb.3:
	add	x10, x25, x8, lsl #5
	ldr	w11, [x10, #8]
	subs	w11, w9, w11
	b.ge	LBB0_5
LBB0_4:
	add	x10, x25, x8, lsl #5
	ldp	w8, w11, [x10, #12]
	sub	w9, w9, w11
	mul	w8, w9, w8
	add	x9, x10, #20
	b	LBB0_6
LBB0_5:
	ldr	w8, [x10, #24]
	mul	w8, w8, w11
	add	x9, x10, #28
LBB0_6:
	ldr	w9, [x9]
	add	w8, w8, w9
	add	w8, w8, w26
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	mov	w9, #255
	cmp	w8, #255
	csel	w21, w8, w9, lo
Lloh2:
	adrp	x8, _RF_CAL_DC_OVER_DT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RF_CAL_DC_OVER_DT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	bl	_tda18271_lookup_map
	ldr	w8, [sp, #8]
	ldr	w9, [x23, #8]
	sub	w9, w20, w9
	mul	w8, w9, w8
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #38
	add	w8, w8, w9
	add	w8, w8, w21
	ldr	x9, [x24]
	strb	w8, [x22, x9]
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #1
	bl	_tda18271_write_regs
	mov	x21, x0
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_R_EB14,8,3                     ; @R_EB14
	.comm	_RF_CAL_DC_OVER_DT,4,2          ; @RF_CAL_DC_OVER_DT
	.no_dead_strip	_tda18271c2_rf_tracking_filters_correction
.subsections_via_symbols
