	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function tda18271_rf_tracking_filters_init
LCPI0_0:
	.long	1000                            ## 0x3e8
	.long	1000                            ## 0x3e8
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_tda18271_rf_tracking_filters_init:     ## @tda18271_rf_tracking_filters_init
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -152(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
	movq	8(%rax), %r14
	leaq	-152(%rbp), %rsi
	xorl	%edx, %edx
	callq	_tda18271_lookup_rf_band
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	je	LBB0_1
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movslq	%ebx, %rax
	imulq	$56, %rax, %rax
	movq	(%r14,%rax), %rcx
	movq	%rcx, %xmm0
	pmulld	LCPI0_0(%rip), %xmm0
	pmovsxdq	%xmm0, %xmm0
	movdqa	%xmm0, -80(%rbp)
	movslq	8(%r14,%rax), %rdx
	imulq	$1000, %rdx, %rdx               ## imm = 0x3E8
	movq	%rdx, -64(%rbp)
	movl	$0, %ebx
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.2:
	addq	%r14, %rax
	addq	$20, %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r14,%rbp), %rbx
	addq	$-80, %rbx
	movq	-152(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %edx
	callq	_tda_cal
	leaq	(%r14,%rbp), %r15
	addq	$-112, %r15
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_tda18271_powerscan
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	jne	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_tda18271_calc_rf_cal
	movq	_R_EB14@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	movzbl	(%rcx,%rax), %eax
	movl	%eax, -136(%rbp,%r13,4)
	cmpl	$1, %ebx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-112(%rbp,%r13,8), %rsi
	movq	%r12, %rdi
	callq	_tda18271_calibrate_rf
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, -124(%rbp,%r13,4)
	cmpl	$2, %r13d
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$1, %r13d
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movl	$0, -8(%rcx)
	movl	-124(%rbp), %eax
	subl	-136(%rbp), %eax
	movl	%eax, -4(%rcx)
	movabsq	$2361183241434822607, %rax      ## imm = 0x20C49BA5E353F7CF
	imulq	-112(%rbp)
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	movq	%rdx, 28(%rcx)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-120(%rbp), %esi
	movl	-116(%rbp), %eax
	movl	-132(%rbp), %edi
	movl	-128(%rbp), %ecx
	addl	%esi, %ecx
	subl	%ecx, %eax
	addl	%edi, %eax
	movq	-96(%rbp), %rcx
	movl	-104(%rbp), %edx
	movl	%ecx, %ebx
	subl	%edx, %ebx
	movslq	%ebx, %rdx
	imulq	$274877907, %rdx, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rbx
	addl	%edx, %ebx
	cltd
	idivl	%ebx
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	movl	%eax, (%rbx)
	subl	%edi, %esi
	movl	%esi, 4(%rbx)
	movq	%rcx, %rax
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rcx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	movq	%rdx, 12(%rbx)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-120(%rbp), %eax
	movl	-132(%rbp), %ecx
	addl	-124(%rbp), %ecx
	subl	%ecx, %eax
	addl	-136(%rbp), %eax
	movq	-104(%rbp), %rcx
	movl	-112(%rbp), %edx
	movl	%ecx, %esi
	subl	%edx, %esi
	movslq	%esi, %rdx
	imulq	$274877907, %rdx, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rdx
	shrq	$63, %rdx
	sarq	$38, %rsi
	addl	%edx, %esi
	cltd
	idivl	%esi
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	movl	%eax, -8(%rsi)
	movq	%rcx, %rax
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rcx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	movq	%rdx, 20(%rsi)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_BUG
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	cmpq	$2, %r13
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %r14
	cmpq	$0, -72(%rbp,%r13,8)
	leaq	1(%r13), %r13
	jne	LBB0_3
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"freq = %d, rf = %d\n"

	.comm	_R_EB14,8,3                     ## @R_EB14
	.no_dead_strip	_tda18271_rf_tracking_filters_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18271_rf_tracking_filters_init
_tda18271_rf_tracking_filters_init:     ; @tda18271_rf_tracking_filters_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	str	x1, [sp, #56]
	ldr	x8, [x0]
	ldp	x24, x20, [x8]
	add	x1, sp, #56
	mov	x2, #0
	bl	_tda18271_lookup_rf_band
	mov	x22, x0
	bl	_tda_fail
	cbnz	x0, LBB0_16
; %bb.1:
	mov	w8, #56
	smaddl	x8, w22, w8, x20
	ldr	d0, [x8]
	mov	w9, #1000
	dup.2s	v1, w9
	mul.2s	v1, v0, v1
	sshll.2d	v1, v1, #0
	str	q1, [sp, #112]
	ldrsw	x10, [x8, #8]
	mul	x9, x10, x9
	str	x9, [sp, #128]
	fmov	w9, s0
	cbz	w9, LBB0_15
; %bb.2:
	mov	x25, #0
	mov	x20, #0
	add	x10, x8, #20
	add	x9, x8, #24
	stp	x9, x10, [sp, #40]              ; 16-byte Folded Spill
	add	x10, x8, #32
	add	x26, x8, #12
	add	x9, x8, #40
	stp	x9, x10, [sp, #24]              ; 16-byte Folded Spill
	add	x9, x8, #16
	add	x8, x8, #48
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	add	x28, sp, #112
	add	x27, sp, #88
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x28, x25
	ldr	x1, [sp, #56]
	mov	x0, x21
	mov	x2, x20
	bl	_tda_cal
	add	x23, x27, x25
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_tda18271_powerscan
	mov	x22, x0
	bl	_tda_fail
	cbnz	x0, LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_tda18271_calc_rf_cal
Lloh5:
	adrp	x8, _R_EB14@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R_EB14@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldrb	w0, [x24, x8]
	add	x8, sp, #64
	str	w0, [x8, x20, lsl #2]
	cmp	w22, #1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x27, x20, lsl #3]
	mov	x0, x19
	bl	_tda18271_calibrate_rf
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, sp, #76
	str	w0, [x8, x20, lsl #2]
	cmp	w20, #2
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w20, #1
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w20, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x26]
	ldr	w8, [sp, #76]
	ldr	w9, [sp, #64]
	sub	w8, w8, w9
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	x8, [sp, #88]
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	smulh	x8, x8, x9
	asr	x9, x8, #7
	add	x8, x9, x8, lsr #63
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x9]
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w9, w8, [sp, #80]
	ldp	w11, w10, [sp, #68]
	add	w10, w10, w9
	sub	w8, w8, w10
	add	w8, w8, w11
	ldr	x10, [sp, #104]
	ldr	w12, [sp, #96]
	sub	w12, w10, w12
	mov	w13, #19923
	movk	w13, #4194, lsl #16
	smull	x12, w12, w13
	lsr	x13, x12, #63
	asr	x12, x12, #38
	add	w12, w12, w13
	sdiv	w8, w8, w12
	ldr	x12, [sp, #48]                  ; 8-byte Folded Reload
	str	w8, [x12]
	sub	w8, w9, w11
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	str	w8, [x9]
	mov	x8, #63439
	movk	x8, #58195, lsl #16
	movk	x8, #39845, lsl #32
	movk	x8, #8388, lsl #48
	smulh	x8, x10, x8
	asr	x9, x8, #7
	add	x8, x9, x8, lsr #63
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	str	x8, [x9]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w9, w8, [sp, #76]
	ldp	w11, w10, [sp, #64]
	add	w9, w10, w9
	sub	w8, w8, w9
	add	w8, w8, w11
	ldr	x9, [sp, #96]
	ldr	w10, [sp, #88]
	sub	w10, w9, w10
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	sdiv	w8, w8, w10
	str	w8, [x26]
	mov	x8, #63439
	movk	x8, #58195, lsl #16
	movk	x8, #39845, lsl #32
	movk	x8, #8388, lsl #48
	smulh	x8, x9, x8
	asr	x9, x8, #7
	add	x8, x9, x8, lsr #63
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	x8, [x9]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_BUG
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x20, #2
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x28, x20, lsl #3
	ldr	x8, [x8, #8]
	add	x25, x25, #8
	add	x20, x20, #1
	cbnz	x8, LBB0_3
LBB0_15:
	mov	w22, #0
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x22
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"freq = %d, rf = %d\n"

	.comm	_R_EB14,8,3                     ; @R_EB14
	.no_dead_strip	_tda18271_rf_tracking_filters_init
.subsections_via_symbols
