	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stb0899_dvbs_algo              ## -- Begin function stb0899_dvbs_algo
	.p2align	4, 0x90
_stb0899_dvbs_algo:                     ## @stb0899_dvbs_algo
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movl	$0, -108(%rbp)
	movl	$1, 16(%rdi)
	movl	112(%rdi), %esi
	movl	120(%rdi), %edx
	callq	_stb0899_set_srate
	movl	120(%rbx), %eax
	cmpl	$5000000, %eax                  ## imm = 0x4C4B40
	jg	LBB0_2
## %bb.1:
	movq	_STB0899_ACLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$137, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_BCLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movl	%eax, %r14d
	movq	_BETA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$28, %edx
	movl	%r14d, %esi
	callq	_STB0899_SETFIELD_VAL
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	cmpl	$15000000, %eax                 ## imm = 0xE4E1C0
	ja	LBB0_4
## %bb.3:
	movq	_STB0899_ACLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$201, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_BCLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movl	%eax, %r14d
	movq	_BETA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$34, %edx
	movl	%r14d, %esi
	callq	_STB0899_SETFIELD_VAL
	movl	$1, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_STB0899_ACLC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	cmpl	$25000000, %eax                 ## imm = 0x17D7840
	ja	LBB0_6
## %bb.5:
	movl	$137, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_BCLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movl	%eax, %r14d
	movq	_BETA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$39, %edx
	movl	%r14d, %esi
	callq	_STB0899_SETFIELD_VAL
	movl	$2, %eax
	jmp	LBB0_7
LBB0_6:
	movl	$200, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_BCLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movl	%eax, %r14d
	movq	_BETA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$41, %edx
	movl	%r14d, %esi
	callq	_STB0899_SETFIELD_VAL
	movl	$3, %eax
LBB0_7:
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_STB0899_BCLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_stb0899_write_reg
	movl	(%rbx), %edi
	movq	_FE_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_STB0899_RTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$70, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_CFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$238, %edx
	callq	_stb0899_write_reg
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movq	24(%rbx), %r8
	movl	120(%rbx), %r9d
	movq	32(%rbx), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movslq	120(%rbx), %rdi
	imulq	$274877907, %rdi, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	cltq
	imulq	24(%rbx), %rax
	movq	32(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.8:
	cqto
	idivq	%rcx
	jmp	LBB0_10
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_10:
	movq	%rax, 40(%rbx)
	callq	_stb0899_calc_derot_time
	movq	%rax, 80(%rbx)
	movl	$500, 48(%rbx)                  ## imm = 0x1F4
	movl	(%rbx), %edi
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_STB0899_TSTRES@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movl	%eax, %r14d
	movq	_FRESRS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %edx
	movl	%r14d, %esi
	callq	_STB0899_SETFIELD_VAL
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_DEMAPVIT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movl	%eax, %r14d
	movq	_DEMAPVIT_KDIVIDER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$60, %edx
	movl	%r14d, %esi
	callq	_STB0899_SETFIELD_VAL
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_EQON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_VITSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$25, %edx
	callq	_stb0899_write_reg
	movq	%rbx, %rdi
	callq	_stb0899_first_subrange
	leaq	4(%rbx), %r14
	leaq	72(%rbx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	_RANGEOK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, -56(%rbp)
	movq	_STB0899_CFRM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rdx
	movl	$2, %ecx
	callq	_stb0899_write_regs
	movq	_STB0899_RTF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_CFD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movl	%eax, %r13d
	movq	_CFD_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %edx
	movl	%r13d, %esi
	callq	_STB0899_SETFIELD_VAL
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_stb0899_write_reg
	movl	$0, 64(%rbx)
	movq	_NOAGC1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_stb0899_i2c_gate_ctrl
	movl	(%rbx), %edi
	movq	_FE_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$1, %edx
	leaq	L_.str.3(%rip), %rcx
	xorl	%eax, %eax
	callq	_dprintk
	movq	8(%rbx), %rcx
	movq	16(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	72(%rbx), %rsi
	movq	%r14, %rdi
	callq	*%rax
	movq	8(%rbx), %rcx
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	*%rax
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	88(%rbx), %rdi
	addq	96(%rbx), %rdi
	addq	80(%rbx), %rdi
	callq	_msleep
	movl	(%r12), %esi
	movl	(%rbx), %edi
	movl	64(%rbx), %r8d
	movl	$1, %edx
	leaq	L_.str.4(%rip), %rcx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_AGC1OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	leaq	-108(%rbp), %rsi
	callq	*%rax
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_stb0899_i2c_gate_ctrl
	movl	-108(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, 120(%rbx)
	jle	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_stb0899_check_tmg
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_stb0899_search_tmg
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	56(%rbx), %rax
	movq	_TIMINGOK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movl	64(%rbx), %r8d
	movq	32(%rbx), %r9
	movl	$1, %edx
	leaq	L_.str.5(%rip), %rcx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_stb0899_search_carrier
	movq	_CARRIEROK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movl	64(%rbx), %r8d
	movq	32(%rbx), %r9
	movl	$1, %edx
	leaq	L_.str.6(%rip), %rcx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_stb0899_search_data
	movq	_DATAOK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movl	64(%rbx), %r8d
	movq	32(%rbx), %r9
	movl	$1, %edx
	leaq	L_.str.7(%rip), %rcx
	xorl	%eax, %eax
	callq	_dprintk
	movq	%rbx, %rdi
	callq	_stb0899_check_range
	cmpq	(%r15), %rax
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movl	64(%rbx), %r8d
	movq	32(%rbx), %r9
	movl	$1, %edx
	leaq	L_.str.8(%rip), %rcx
	xorl	%eax, %eax
	callq	_dprintk
	movslq	64(%rbx), %rax
	imulq	32(%rbx), %rax
	movabsq	$-2361183241434822607, %rcx     ## imm = 0xDF3B645A1CAC0831
	imulq	%rcx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rdx
	addq	%rax, %rdx
	addq	128(%rbx), %rdx
	movq	%rdx, 72(%rbx)
	movq	_STB0899_PLPARM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movq	_VITCURPUN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_STB0899_GETFIELD
	movl	%eax, 68(%rbx)
	movl	(%rbx), %edi
	movl	(%r12), %esi
	movq	128(%rbx), %r8
	movq	72(%rbx), %r9
	movl	$1, %edx
	leaq	L_.str.9(%rip), %rcx
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r12), %esi
	movl	(%rbx), %edi
	movl	68(%rbx), %r8d
	movl	$1, %edx
	leaq	L_.str.10(%rip), %rcx
	xorl	%eax, %eax
	callq	_dprintk
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	56(%rbx), %rax
	cmpq	(%r15), %rax
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_next_sub_range
LBB0_27:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, 104(%rbx)
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	56(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_11
LBB0_29:
	movq	_STB0899_RTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$51, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_CFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$247, %edx
	callq	_stb0899_write_reg
	movq	56(%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_42
## %bb.30:
	movl	(%rbx), %edi
	movq	_FE_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str.11(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_STB0899_EQON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$65, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_VITSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$57, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_BCLC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movl	%eax, %r14d
	movl	68(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_33
## %bb.31:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_32:
	movq	_STB0899_DEMAPVIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$94, %edx
	callq	_stb0899_write_reg
	movq	_BETA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	l___const.stb0899_dvbs_algo.betaTab(%rip), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	128(%rax,%rcx,8), %rdx
	jmp	LBB0_39
LBB0_33:
	movl	(%rbx), %edi
	movl	(%r12), %esi
	leaq	L_.str.12(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_41
LBB0_34:
	movq	_STB0899_DEMAPVIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$88, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_ACLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$136, %edx
	callq	_stb0899_write_reg
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$154, %edx
	jmp	LBB0_40
LBB0_35:
	movq	_STB0899_DEMAPVIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$75, %edx
	callq	_stb0899_write_reg
	movq	_BETA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	l___const.stb0899_dvbs_algo.betaTab(%rip), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	96(%rax,%rcx,8), %rdx
	jmp	LBB0_39
LBB0_36:
	movq	_STB0899_DEMAPVIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$60, %edx
	callq	_stb0899_write_reg
	movq	_BETA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	l___const.stb0899_dvbs_algo.betaTab(%rip), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	64(%rax,%rcx,8), %rdx
	jmp	LBB0_39
LBB0_37:
	movq	_STB0899_DEMAPVIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$44, %edx
	callq	_stb0899_write_reg
	movq	_BETA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	l___const.stb0899_dvbs_algo.betaTab(%rip), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	32(%rax,%rcx,8), %rdx
	jmp	LBB0_39
LBB0_38:
	movq	_STB0899_DEMAPVIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$26, %edx
	callq	_stb0899_write_reg
	movq	_BETA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	l___const.stb0899_dvbs_algo.betaTab(%rip), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdx
LBB0_39:
	movl	%r14d, %esi
	callq	_STB0899_SETFIELD_VAL
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
LBB0_40:
	callq	_stb0899_write_reg
LBB0_41:
	movq	_STB0899_TSTRES@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movl	%eax, %r14d
	movq	_FRESRS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_STB0899_SETFIELD_VAL
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_CFD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_stb0899_read_reg
	movl	%eax, %r14d
	movq	_CFD_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_STB0899_SETFIELD_VAL
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_stb0899_write_reg
	movq	_STB0899_EQUAI1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %ecx
	callq	_stb0899_read_regs
	movq	56(%rbx), %rax
LBB0_42:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_44
## %bb.43:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
LJTI0_0:
	.long	L0_0_set_32
	.long	L0_0_set_34
	.long	L0_0_set_35
	.long	L0_0_set_36
	.long	L0_0_set_37
	.long	L0_0_set_38
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.stb0899_dvbs_algo.betaTab
l___const.stb0899_dvbs_algo.betaTab:
	.quad	37                              ## 0x25
	.quad	34                              ## 0x22
	.quad	32                              ## 0x20
	.quad	31                              ## 0x1f
	.quad	37                              ## 0x25
	.quad	35                              ## 0x23
	.quad	33                              ## 0x21
	.quad	31                              ## 0x1f
	.quad	37                              ## 0x25
	.quad	35                              ## 0x23
	.quad	33                              ## 0x21
	.quad	31                              ## 0x1f
	.quad	37                              ## 0x25
	.quad	36                              ## 0x24
	.quad	33                              ## 0x21
	.quad	32                              ## 0x20
	.quad	37                              ## 0x25
	.quad	36                              ## 0x24
	.quad	33                              ## 0x21
	.quad	32                              ## 0x20

	.comm	_STB0899_ACLC,4,2               ## @STB0899_ACLC
	.comm	_STB0899_BCLC,4,2               ## @STB0899_BCLC
	.comm	_BETA,4,2                       ## @BETA
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set the timing loop to acquisition"

	.comm	_STB0899_RTC,4,2                ## @STB0899_RTC
	.comm	_STB0899_CFD,4,2                ## @STB0899_CFD
L_.str.1:                               ## @.str.1
	.asciz	"Derot Percent=%d Srate=%d mclk=%d"

L_.str.2:                               ## @.str.2
	.asciz	"RESET stream merger"

	.comm	_STB0899_TSTRES,4,2             ## @STB0899_TSTRES
	.comm	_FRESRS,4,2                     ## @FRESRS
	.comm	_STB0899_DEMAPVIT,4,2           ## @STB0899_DEMAPVIT
	.comm	_DEMAPVIT_KDIVIDER,4,2          ## @DEMAPVIT_KDIVIDER
	.comm	_STB0899_EQON,4,2               ## @STB0899_EQON
	.comm	_STB0899_VITSYNC,4,2            ## @STB0899_VITSYNC
	.comm	_STB0899_CFRM,4,2               ## @STB0899_CFRM
	.comm	_STB0899_RTF,4,2                ## @STB0899_RTF
	.comm	_CFD_ON,4,2                     ## @CFD_ON
	.comm	_NOAGC1,8,3                     ## @NOAGC1
L_.str.3:                               ## @.str.3
	.asciz	"Tuner set frequency"

L_.str.4:                               ## @.str.4
	.asciz	"current derot freq=%d"

	.comm	_AGC1OK,8,3                     ## @AGC1OK
	.comm	_TIMINGOK,8,3                   ## @TIMINGOK
L_.str.5:                               ## @.str.5
	.asciz	"TIMING OK ! Derot freq=%d, mclk=%d"

	.comm	_CARRIEROK,8,3                  ## @CARRIEROK
L_.str.6:                               ## @.str.6
	.asciz	"CARRIER OK ! Derot freq=%d, mclk=%d"

	.comm	_DATAOK,8,3                     ## @DATAOK
L_.str.7:                               ## @.str.7
	.asciz	"DATA OK ! Derot freq=%d, mclk=%d"

	.comm	_RANGEOK,8,3                    ## @RANGEOK
L_.str.8:                               ## @.str.8
	.asciz	"RANGE OK ! derot freq=%d, mclk=%d"

	.comm	_STB0899_PLPARM,4,2             ## @STB0899_PLPARM
	.comm	_VITCURPUN,4,2                  ## @VITCURPUN
L_.str.9:                               ## @.str.9
	.asciz	"freq=%d, internal resultant freq=%d"

L_.str.10:                              ## @.str.10
	.asciz	"internal puncture rate=%d"

L_.str.11:                              ## @.str.11
	.asciz	"Locked & Range OK !"

L_.str.12:                              ## @.str.12
	.asciz	"Unsupported Puncture Rate"

	.comm	_STB0899_EQUAI1,4,2             ## @STB0899_EQUAI1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stb0899_dvbs_algo              ; -- Begin function stb0899_dvbs_algo
	.p2align	2
_stb0899_dvbs_algo:                     ; @stb0899_dvbs_algo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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]
	str	x8, [sp, #88]
	ldr	x25, [x0, #8]
	str	wzr, [sp, #36]
	mov	w8, #1
	str	w8, [x0, #16]
	ldr	w1, [x0, #112]
	ldr	w2, [x0, #120]
	bl	_stb0899_set_srate
	ldr	w8, [x19, #120]
	mov	w9, #19264
	movk	w9, #76, lsl #16
Lloh3:
	adrp	x21, _STB0899_BCLC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _STB0899_BCLC@GOTPAGEOFF]
Lloh5:
	adrp	x10, _STB0899_ACLC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _STB0899_ACLC@GOTPAGEOFF]
	cmp	w8, w9
	b.gt	LBB0_2
; %bb.1:
	ldr	w1, [x10]
	mov	x0, x19
	mov	w2, #137
	bl	_stb0899_write_reg
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x20, x0
Lloh7:
	adrp	x8, _BETA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BETA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #28
	bl	_STB0899_SETFIELD_VAL
	str	xzr, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_8
LBB0_2:
	mov	w9, #57792
	movk	w9, #228, lsl #16
	cmp	w8, w9
	b.hi	LBB0_4
; %bb.3:
	ldr	w1, [x10]
	mov	x0, x19
	mov	w2, #201
	bl	_stb0899_write_reg
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x20, x0
Lloh10:
	adrp	x8, _BETA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BETA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #34
	bl	_STB0899_SETFIELD_VAL
	mov	w8, #1
	b	LBB0_7
LBB0_4:
	ldr	w1, [x10]
	mov	w9, #30784
	movk	w9, #381, lsl #16
	mov	x0, x19
	cmp	w8, w9
	b.hi	LBB0_6
; %bb.5:
	mov	w2, #137
	bl	_stb0899_write_reg
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x20, x0
Lloh13:
	adrp	x8, _BETA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BETA@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #39
	bl	_STB0899_SETFIELD_VAL
	mov	w8, #2
	b	LBB0_7
LBB0_6:
	mov	w2, #200
	bl	_stb0899_write_reg
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x20, x0
Lloh16:
	adrp	x8, _BETA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BETA@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #41
	bl	_STB0899_SETFIELD_VAL
	mov	w8, #3
LBB0_7:
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
LBB0_8:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_stb0899_write_reg
	ldr	w0, [x19]
Lloh19:
	adrp	x23, _FE_DEBUG@GOTPAGE
Lloh20:
	ldr	x23, [x23, _FE_DEBUG@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
Lloh23:
	adrp	x8, _STB0899_RTC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _STB0899_RTC@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #70
	bl	_stb0899_write_reg
Lloh26:
	adrp	x8, _STB0899_CFD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _STB0899_CFD@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #238
	bl	_stb0899_write_reg
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldp	x8, x9, [x19, #24]
	ldr	w10, [x19, #120]
	stp	x10, x9, [sp, #8]
	str	x8, [sp]
Lloh29:
	adrp	x3, l_.str.1@PAGE
Lloh30:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	ldrsw	x0, [x19, #120]
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	mul	x8, x0, x8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	sxtw	x8, w8
	ldp	x9, x10, [x19, #24]
	mul	x8, x9, x8
	sdiv	x8, x8, x10
	str	x8, [x19, #40]
	bl	_stb0899_calc_derot_time
	str	x0, [x19, #80]
	mov	w8, #500
	str	w8, [x19, #48]
	ldr	w0, [x19]
	ldr	w1, [x23]
Lloh31:
	adrp	x3, l_.str.2@PAGE
Lloh32:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_dprintk
Lloh33:
	adrp	x21, _STB0899_TSTRES@GOTPAGE
Lloh34:
	ldr	x21, [x21, _STB0899_TSTRES@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x20, x0
Lloh35:
	adrp	x8, _FRESRS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FRESRS@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #1
	bl	_STB0899_SETFIELD_VAL
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_stb0899_write_reg
Lloh38:
	adrp	x21, _STB0899_DEMAPVIT@GOTPAGE
Lloh39:
	ldr	x21, [x21, _STB0899_DEMAPVIT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x20, x0
Lloh40:
	adrp	x8, _DEMAPVIT_KDIVIDER@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DEMAPVIT_KDIVIDER@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #60
	bl	_STB0899_SETFIELD_VAL
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_stb0899_write_reg
Lloh43:
	adrp	x8, _STB0899_EQON@GOTPAGE
Lloh44:
	ldr	x8, [x8, _STB0899_EQON@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_stb0899_write_reg
Lloh46:
	adrp	x8, _STB0899_VITSYNC@GOTPAGE
Lloh47:
	ldr	x8, [x8, _STB0899_VITSYNC@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #25
	bl	_stb0899_write_reg
	mov	x0, x19
	bl	_stb0899_first_subrange
	add	x20, x19, #4
Lloh49:
	adrp	x21, l_.str.3@PAGE
Lloh50:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh51:
	adrp	x22, l_.str.4@PAGE
Lloh52:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh53:
	adrp	x24, _RANGEOK@GOTPAGE
Lloh54:
	ldr	x24, [x24, _RANGEOK@GOTPAGEOFF]
	add	x26, x19, #72
Lloh55:
	adrp	x27, _STB0899_CFD@GOTPAGE
Lloh56:
	ldr	x27, [x27, _STB0899_CFD@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #40]
Lloh57:
	adrp	x8, _STB0899_CFRM@GOTPAGE
Lloh58:
	ldr	x8, [x8, _STB0899_CFRM@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	add	x2, sp, #40
	mov	x0, x19
	mov	w3, #2
	bl	_stb0899_write_regs
Lloh60:
	adrp	x8, _STB0899_RTF@GOTPAGE
Lloh61:
	ldr	x8, [x8, _STB0899_RTF@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stb0899_write_reg
	ldr	w1, [x27]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x28, x0
Lloh63:
	adrp	x8, _CFD_ON@GOTPAGE
Lloh64:
	ldr	x8, [x8, _CFD_ON@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
	mov	x1, x28
	mov	w2, #1
	bl	_STB0899_SETFIELD_VAL
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x28
	bl	_stb0899_write_reg
	str	wzr, [x19, #64]
Lloh66:
	adrp	x8, _NOAGC1@GOTPAGE
Lloh67:
	ldr	x8, [x8, _NOAGC1@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	str	x8, [x19, #56]
	mov	x0, x20
	mov	w1, #1
	bl	_stb0899_i2c_gate_ctrl
	ldr	w0, [x19]
	ldr	w1, [x23]
	mov	w2, #1
	mov	x3, x21
	bl	_dprintk
	ldr	x8, [x19, #8]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x19, #72]
	mov	x0, x20
	blr	x9
	ldr	x8, [x19, #8]
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	x1, x26
	blr	x8
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldp	x9, x8, [x19, #88]
	ldr	x10, [x19, #80]
	add	x8, x9, x8
	add	x0, x8, x10
	bl	_msleep
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldr	w8, [x19, #64]
	str	x8, [sp]
	mov	w2, #1
	mov	x3, x22
	bl	_dprintk
Lloh69:
	adrp	x8, _AGC1OK@GOTPAGE
Lloh70:
	ldr	x8, [x8, _AGC1OK@GOTPAGEOFF]
Lloh71:
	ldr	x8, [x8]
	str	x8, [x19, #56]
	ldr	x8, [x25]
	cbz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #36
	mov	x0, x20
	blr	x8
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	w1, #0
	bl	_stb0899_i2c_gate_ctrl
	ldr	w8, [x19, #120]
	ldr	w9, [sp, #36]
	cmp	w9, #0
	cinc	w9, w9, lt
	mov	x0, x19
	cmp	w8, w9, asr #1
	b.le	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_stb0899_check_tmg
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_stb0899_search_tmg
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #56]
Lloh72:
	adrp	x9, _TIMINGOK@GOTPAGE
Lloh73:
	ldr	x9, [x9, _TIMINGOK@GOTPAGEOFF]
Lloh74:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldr	x8, [x19, #32]
	ldr	w9, [x19, #64]
	stp	x9, x8, [sp]
	mov	w2, #1
Lloh75:
	adrp	x3, l_.str.5@PAGE
Lloh76:
	add	x3, x3, l_.str.5@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	bl	_stb0899_search_carrier
Lloh77:
	adrp	x8, _CARRIEROK@GOTPAGE
Lloh78:
	ldr	x8, [x8, _CARRIEROK@GOTPAGEOFF]
Lloh79:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldr	x8, [x19, #32]
	ldr	w9, [x19, #64]
	stp	x9, x8, [sp]
	mov	w2, #1
Lloh80:
	adrp	x3, l_.str.6@PAGE
Lloh81:
	add	x3, x3, l_.str.6@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	bl	_stb0899_search_data
Lloh82:
	adrp	x8, _DATAOK@GOTPAGE
Lloh83:
	ldr	x8, [x8, _DATAOK@GOTPAGEOFF]
Lloh84:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldr	x8, [x19, #32]
	ldr	w9, [x19, #64]
	stp	x9, x8, [sp]
	mov	w2, #1
Lloh85:
	adrp	x3, l_.str.7@PAGE
Lloh86:
	add	x3, x3, l_.str.7@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	bl	_stb0899_check_range
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldr	x8, [x19, #32]
	ldr	w9, [x19, #64]
	stp	x9, x8, [sp]
	mov	w2, #1
Lloh87:
	adrp	x3, l_.str.8@PAGE
Lloh88:
	add	x3, x3, l_.str.8@PAGEOFF
	bl	_dprintk
	ldr	x8, [x19, #128]
	ldrsw	x9, [x19, #64]
	ldr	x10, [x19, #32]
	mul	x9, x10, x9
	mov	x10, #2097
	movk	x10, #7340, lsl #16
	movk	x10, #25690, lsl #32
	movk	x10, #57147, lsl #48
	smulh	x9, x9, x10
	asr	x10, x9, #7
	add	x9, x10, x9, lsr #63
	add	x8, x9, x8
	str	x8, [x19, #72]
Lloh89:
	adrp	x8, _STB0899_PLPARM@GOTPAGE
Lloh90:
	ldr	x8, [x8, _STB0899_PLPARM@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x1, x0
Lloh92:
	adrp	x8, _VITCURPUN@GOTPAGE
Lloh93:
	ldr	x8, [x8, _VITCURPUN@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x8]
	bl	_STB0899_GETFIELD
	str	w0, [x19, #68]
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldr	x8, [x19, #128]
	ldr	x9, [x19, #72]
	stp	x8, x9, [sp]
	mov	w2, #1
Lloh95:
	adrp	x3, l_.str.9@PAGE
Lloh96:
	add	x3, x3, l_.str.9@PAGEOFF
	bl	_dprintk
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldr	w8, [x19, #68]
	str	x8, [sp]
	mov	w2, #1
Lloh97:
	adrp	x3, l_.str.10@PAGE
Lloh98:
	add	x3, x3, l_.str.10@PAGEOFF
	bl	_dprintk
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #56]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_next_sub_range
LBB0_25:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #104]
	cbz	x8, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #56]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_27:
Lloh99:
	adrp	x8, _STB0899_RTC@GOTPAGE
Lloh100:
	ldr	x8, [x8, _STB0899_RTC@GOTPAGEOFF]
Lloh101:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #51
	bl	_stb0899_write_reg
Lloh102:
	adrp	x8, _STB0899_CFD@GOTPAGE
Lloh103:
	ldr	x8, [x8, _STB0899_CFD@GOTPAGEOFF]
Lloh104:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #247
	bl	_stb0899_write_reg
	ldr	x0, [x19, #56]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_40
; %bb.28:
	ldr	w0, [x19]
	ldr	w1, [x23]
Lloh105:
	adrp	x3, l_.str.11@PAGE
Lloh106:
	add	x3, x3, l_.str.11@PAGEOFF
	mov	w2, #1
	bl	_dprintk
Lloh107:
	adrp	x8, _STB0899_EQON@GOTPAGE
Lloh108:
	ldr	x8, [x8, _STB0899_EQON@GOTPAGEOFF]
Lloh109:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65
	bl	_stb0899_write_reg
Lloh110:
	adrp	x8, _STB0899_VITSYNC@GOTPAGE
Lloh111:
	ldr	x8, [x8, _STB0899_VITSYNC@GOTPAGEOFF]
Lloh112:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #57
	bl	_stb0899_write_reg
Lloh113:
	adrp	x21, _STB0899_BCLC@GOTPAGE
Lloh114:
	ldr	x21, [x21, _STB0899_BCLC@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stb0899_read_reg
	ldr	w8, [x19, #68]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_31
; %bb.29:
	mov	x20, x0
Lloh115:
	adrp	x9, lJTI0_0@PAGE
Lloh116:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_30
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_30:
Lloh117:
	adrp	x8, _STB0899_DEMAPVIT@GOTPAGE
Lloh118:
	ldr	x8, [x8, _STB0899_DEMAPVIT@GOTPAGEOFF]
Lloh119:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #94
	bl	_stb0899_write_reg
Lloh120:
	adrp	x8, _BETA@GOTPAGE
Lloh121:
	ldr	x8, [x8, _BETA@GOTPAGEOFF]
Lloh122:
	ldr	w0, [x8]
Lloh123:
	adrp	x8, l___const.stb0899_dvbs_algo.betaTab@PAGE
Lloh124:
	add	x8, x8, l___const.stb0899_dvbs_algo.betaTab@PAGEOFF
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #3
	ldr	x2, [x8, #128]
	b	LBB0_37
LBB0_31:
	ldr	w0, [x19]
	ldr	w1, [x23]
Lloh125:
	adrp	x3, l_.str.12@PAGE
Lloh126:
	add	x3, x3, l_.str.12@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	b	LBB0_39
LBB0_32:
Lloh127:
	adrp	x8, _STB0899_DEMAPVIT@GOTPAGE
Lloh128:
	ldr	x8, [x8, _STB0899_DEMAPVIT@GOTPAGEOFF]
Lloh129:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #88
	bl	_stb0899_write_reg
Lloh130:
	adrp	x8, _STB0899_ACLC@GOTPAGE
Lloh131:
	ldr	x8, [x8, _STB0899_ACLC@GOTPAGEOFF]
Lloh132:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #136
	bl	_stb0899_write_reg
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #154
	b	LBB0_38
LBB0_33:
Lloh133:
	adrp	x8, _STB0899_DEMAPVIT@GOTPAGE
Lloh134:
	ldr	x8, [x8, _STB0899_DEMAPVIT@GOTPAGEOFF]
Lloh135:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #75
	bl	_stb0899_write_reg
Lloh136:
	adrp	x8, _BETA@GOTPAGE
Lloh137:
	ldr	x8, [x8, _BETA@GOTPAGEOFF]
Lloh138:
	ldr	w0, [x8]
Lloh139:
	adrp	x8, l___const.stb0899_dvbs_algo.betaTab@PAGE
Lloh140:
	add	x8, x8, l___const.stb0899_dvbs_algo.betaTab@PAGEOFF
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #3
	ldr	x2, [x8, #96]
	b	LBB0_37
LBB0_34:
Lloh141:
	adrp	x8, _STB0899_DEMAPVIT@GOTPAGE
Lloh142:
	ldr	x8, [x8, _STB0899_DEMAPVIT@GOTPAGEOFF]
Lloh143:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #60
	bl	_stb0899_write_reg
Lloh144:
	adrp	x8, _BETA@GOTPAGE
Lloh145:
	ldr	x8, [x8, _BETA@GOTPAGEOFF]
Lloh146:
	ldr	w0, [x8]
Lloh147:
	adrp	x8, l___const.stb0899_dvbs_algo.betaTab@PAGE
Lloh148:
	add	x8, x8, l___const.stb0899_dvbs_algo.betaTab@PAGEOFF
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #3
	ldr	x2, [x8, #64]
	b	LBB0_37
LBB0_35:
Lloh149:
	adrp	x8, _STB0899_DEMAPVIT@GOTPAGE
Lloh150:
	ldr	x8, [x8, _STB0899_DEMAPVIT@GOTPAGEOFF]
Lloh151:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #44
	bl	_stb0899_write_reg
Lloh152:
	adrp	x8, _BETA@GOTPAGE
Lloh153:
	ldr	x8, [x8, _BETA@GOTPAGEOFF]
Lloh154:
	ldr	w0, [x8]
Lloh155:
	adrp	x8, l___const.stb0899_dvbs_algo.betaTab@PAGE
Lloh156:
	add	x8, x8, l___const.stb0899_dvbs_algo.betaTab@PAGEOFF
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #3
	ldr	x2, [x8, #32]
	b	LBB0_37
LBB0_36:
Lloh157:
	adrp	x8, _STB0899_DEMAPVIT@GOTPAGE
Lloh158:
	ldr	x8, [x8, _STB0899_DEMAPVIT@GOTPAGEOFF]
Lloh159:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #26
	bl	_stb0899_write_reg
Lloh160:
	adrp	x8, _BETA@GOTPAGE
Lloh161:
	ldr	x8, [x8, _BETA@GOTPAGEOFF]
Lloh162:
	ldr	w0, [x8]
Lloh163:
	adrp	x8, l___const.stb0899_dvbs_algo.betaTab@PAGE
Lloh164:
	add	x8, x8, l___const.stb0899_dvbs_algo.betaTab@PAGEOFF
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x2, [x8, x9, lsl #3]
LBB0_37:
	mov	x1, x20
	bl	_STB0899_SETFIELD_VAL
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
LBB0_38:
	bl	_stb0899_write_reg
LBB0_39:
Lloh165:
	adrp	x21, _STB0899_TSTRES@GOTPAGE
Lloh166:
	ldr	x21, [x21, _STB0899_TSTRES@GOTPAGEOFF]
Lloh167:
	adrp	x22, _FRESRS@GOTPAGE
Lloh168:
	ldr	x22, [x22, _FRESRS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x20, x0
Lloh169:
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, #0
	bl	_STB0899_SETFIELD_VAL
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_stb0899_write_reg
Lloh170:
	adrp	x21, _STB0899_CFD@GOTPAGE
Lloh171:
	ldr	x21, [x21, _STB0899_CFD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stb0899_read_reg
	mov	x20, x0
Lloh172:
	adrp	x8, _CFD_ON@GOTPAGE
Lloh173:
	ldr	x8, [x8, _CFD_ON@GOTPAGEOFF]
Lloh174:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, #0
	bl	_STB0899_SETFIELD_VAL
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_stb0899_write_reg
Lloh175:
	adrp	x8, _STB0899_EQUAI1@GOTPAGE
Lloh176:
	ldr	x8, [x8, _STB0899_EQUAI1@GOTPAGEOFF]
Lloh177:
	ldr	w1, [x8]
	add	x2, sp, #48
	mov	x0, x19
	mov	w3, #10
	bl	_stb0899_read_regs
	ldr	x0, [x19, #56]
LBB0_40:
	ldr	x8, [sp, #88]
Lloh178:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh179:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh180:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_42
; %bb.41:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_42:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpAdd	Lloh115, Lloh116
	.loh AdrpAdd	Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpAdd	Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpAdd	Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpAdd	Lloh147, Lloh148
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpAdd	Lloh155, Lloh156
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh149, Lloh150, Lloh151
	.loh AdrpAdd	Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh160, Lloh161, Lloh162
	.loh AdrpLdrGotLdr	Lloh157, Lloh158, Lloh159
	.loh AdrpLdrGotLdr	Lloh175, Lloh176, Lloh177
	.loh AdrpLdrGotLdr	Lloh172, Lloh173, Lloh174
	.loh AdrpLdrGot	Lloh170, Lloh171
	.loh AdrpLdrGotLdr	Lloh167, Lloh168, Lloh169
	.loh AdrpLdrGot	Lloh165, Lloh166
	.loh AdrpLdrGotLdr	Lloh178, Lloh179, Lloh180
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_30-LBB0_30)>>2
	.byte	(LBB0_32-LBB0_30)>>2
	.byte	(LBB0_33-LBB0_30)>>2
	.byte	(LBB0_34-LBB0_30)>>2
	.byte	(LBB0_35-LBB0_30)>>2
	.byte	(LBB0_36-LBB0_30)>>2
                                        ; -- End function
	.p2align	3                               ; @__const.stb0899_dvbs_algo.betaTab
l___const.stb0899_dvbs_algo.betaTab:
	.quad	37                              ; 0x25
	.quad	34                              ; 0x22
	.quad	32                              ; 0x20
	.quad	31                              ; 0x1f
	.quad	37                              ; 0x25
	.quad	35                              ; 0x23
	.quad	33                              ; 0x21
	.quad	31                              ; 0x1f
	.quad	37                              ; 0x25
	.quad	35                              ; 0x23
	.quad	33                              ; 0x21
	.quad	31                              ; 0x1f
	.quad	37                              ; 0x25
	.quad	36                              ; 0x24
	.quad	33                              ; 0x21
	.quad	32                              ; 0x20
	.quad	37                              ; 0x25
	.quad	36                              ; 0x24
	.quad	33                              ; 0x21
	.quad	32                              ; 0x20

	.comm	_STB0899_ACLC,4,2               ; @STB0899_ACLC
	.comm	_STB0899_BCLC,4,2               ; @STB0899_BCLC
	.comm	_BETA,4,2                       ; @BETA
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set the timing loop to acquisition"

	.comm	_STB0899_RTC,4,2                ; @STB0899_RTC
	.comm	_STB0899_CFD,4,2                ; @STB0899_CFD
l_.str.1:                               ; @.str.1
	.asciz	"Derot Percent=%d Srate=%d mclk=%d"

l_.str.2:                               ; @.str.2
	.asciz	"RESET stream merger"

	.comm	_STB0899_TSTRES,4,2             ; @STB0899_TSTRES
	.comm	_FRESRS,4,2                     ; @FRESRS
	.comm	_STB0899_DEMAPVIT,4,2           ; @STB0899_DEMAPVIT
	.comm	_DEMAPVIT_KDIVIDER,4,2          ; @DEMAPVIT_KDIVIDER
	.comm	_STB0899_EQON,4,2               ; @STB0899_EQON
	.comm	_STB0899_VITSYNC,4,2            ; @STB0899_VITSYNC
	.comm	_STB0899_CFRM,4,2               ; @STB0899_CFRM
	.comm	_STB0899_RTF,4,2                ; @STB0899_RTF
	.comm	_CFD_ON,4,2                     ; @CFD_ON
	.comm	_NOAGC1,8,3                     ; @NOAGC1
l_.str.3:                               ; @.str.3
	.asciz	"Tuner set frequency"

l_.str.4:                               ; @.str.4
	.asciz	"current derot freq=%d"

	.comm	_AGC1OK,8,3                     ; @AGC1OK
	.comm	_TIMINGOK,8,3                   ; @TIMINGOK
l_.str.5:                               ; @.str.5
	.asciz	"TIMING OK ! Derot freq=%d, mclk=%d"

	.comm	_CARRIEROK,8,3                  ; @CARRIEROK
l_.str.6:                               ; @.str.6
	.asciz	"CARRIER OK ! Derot freq=%d, mclk=%d"

	.comm	_DATAOK,8,3                     ; @DATAOK
l_.str.7:                               ; @.str.7
	.asciz	"DATA OK ! Derot freq=%d, mclk=%d"

	.comm	_RANGEOK,8,3                    ; @RANGEOK
l_.str.8:                               ; @.str.8
	.asciz	"RANGE OK ! derot freq=%d, mclk=%d"

	.comm	_STB0899_PLPARM,4,2             ; @STB0899_PLPARM
	.comm	_VITCURPUN,4,2                  ; @VITCURPUN
l_.str.9:                               ; @.str.9
	.asciz	"freq=%d, internal resultant freq=%d"

l_.str.10:                              ; @.str.10
	.asciz	"internal puncture rate=%d"

l_.str.11:                              ; @.str.11
	.asciz	"Locked & Range OK !"

l_.str.12:                              ; @.str.12
	.asciz	"Unsupported Puncture Rate"

	.comm	_STB0899_EQUAI1,4,2             ; @STB0899_EQUAI1
.subsections_via_symbols
