	.file	"extr_stv090x.c_stv090x_algo.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Tuner phase locked"
.LC1:
	.string	"Tuner unlocked"
.LC2:
	.string	"No Signal: POWER_IQ=0x%02x"
.LC3:
	.string	"I/O error"
	.text
	.p2align 4
	.type	stv090x_algo, @function
stv090x_algo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR TSCFGH[rip]
	mov	r12d, DWORD PTR STV090x_NOCARRIER[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	STV090x_READ_DEMOD@PLT
	mov	esi, DWORD PTR RST_HWARE_FIELD[rip]
	mov	edx, 1
	mov	edi, eax
	mov	DWORD PTR 4[rsp], eax
	call	STV090x_SETFIELD_Px@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR TSCFGH[rip]
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	esi, DWORD PTR DMDISTATE[rip]
	mov	edx, 92
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	rax, QWORD PTR 40[rbp]
	cmp	DWORD PTR [rax], 31
	jle	.L9
	cmp	DWORD PTR 0[rbp], 5000000
	mov	esi, DWORD PTR CORRELABS[rip]
	jle	.L8
	mov	edx, 158
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
.L9:
	mov	rdi, rbp
	call	stv090x_get_lock_tmg@PLT
	mov	rax, QWORD PTR STV090x_BLIND_SEARCH[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L68
	mov	esi, DWORD PTR DMDTOM[rip]
	mov	edx, 32
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	esi, DWORD PTR TMGCFG[rip]
	mov	edx, 210
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	cmp	DWORD PTR 0[rbp], 1999999
	mov	esi, DWORD PTR CORRELMANT[rip]
	jle	.L69
	mov	edx, 112
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
.L13:
	mov	esi, DWORD PTR AGC2REF[rip]
	mov	edx, 56
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	rax, QWORD PTR 40[rbp]
	cmp	DWORD PTR [rax], 31
	jle	.L15
	mov	esi, DWORD PTR KREFTMG[rip]
	mov	edx, 90
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	rax, QWORD PTR 8[rbp]
	cmp	rax, QWORD PTR STV090x_COLD_SEARCH[rip]
	je	.L70
	cmp	rax, QWORD PTR STV090x_WARM_SEARCH[rip]
	je	.L71
.L15:
	mov	esi, DWORD PTR TMGCFG2[rip]
	mov	edx, 193
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, rbp
	call	stv090x_set_srate@PLT
	test	rax, rax
	js	.L3
	mov	rax, QWORD PTR 40[rbp]
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	esi, DWORD PTR 4[rax]
	call	stv090x_set_max_srate@PLT
	test	rax, rax
	js	.L3
	mov	rax, QWORD PTR 40[rbp]
	mov	edx, DWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	esi, DWORD PTR 4[rax]
	call	stv090x_set_min_srate@PLT
	test	rax, rax
	js	.L3
	xor	r13d, r13d
	cmp	DWORD PTR 0[rbp], 9999999
	setle	r13b
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L21:
	xor	esi, esi
	mov	rdi, rbp
	call	stv090x_i2c_gate_ctrl@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR FE_ERROR[rip]
	lea	rdx, .LC3[rip]
	mov	esi, 1
	xor	eax, eax
	mov	r12d, -1
	call	dprintk@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L72
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, 130
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	jns	.L9
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L68:
	mov	DWORD PTR 16[rbp], 72000000
	mov	esi, DWORD PTR TMGCFG2[rip]
	mov	edx, 192
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	esi, DWORD PTR CORRELMANT[rip]
	mov	edx, 112
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	esi, 1000000
	mov	rdi, rbp
	call	stv090x_set_srate@PLT
	test	rax, rax
	js	.L3
	xor	r13d, r13d
.L10:
	mov	esi, 1
	mov	rdi, rbp
	call	stv090x_i2c_gate_ctrl@PLT
	test	rax, rax
	js	.L3
	mov	rax, QWORD PTR 56[rbp]
	lea	r14, 72[rbp]
	mov	rdx, QWORD PTR [rax]
	test	rdx, rdx
	je	.L18
	mov	esi, DWORD PTR 8[rax]
	test	esi, esi
	je	.L19
	mov	DWORD PTR 4[rsp], esi
.L20:
	mov	rdi, r14
	call	rdx
	test	rax, rax
	js	.L21
	mov	rax, QWORD PTR 56[rbp]
.L18:
	mov	rdx, QWORD PTR 16[rax]
	test	rdx, rdx
	je	.L22
	mov	esi, DWORD PTR 64[rbp]
	mov	rdi, r14
	call	rdx
	test	rax, rax
	js	.L21
	mov	rax, QWORD PTR 56[rbp]
.L22:
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L25
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, r14
	call	rax
	test	rax, rax
	js	.L21
.L25:
	xor	esi, esi
	mov	rdi, rbp
	call	stv090x_i2c_gate_ctrl@PLT
	test	rax, rax
	js	.L3
	mov	edi, 50
	call	msleep@PLT
	mov	rax, QWORD PTR 56[rbp]
	cmp	QWORD PTR 32[rax], 0
	je	.L26
	mov	esi, 1
	mov	rdi, rbp
	call	stv090x_i2c_gate_ctrl@PLT
	test	rax, rax
	js	.L3
	mov	rax, QWORD PTR 56[rbp]
	lea	rsi, 4[rsp]
	mov	rdi, r14
	call	[QWORD PTR 32[rax]]
	test	rax, rax
	js	.L21
	xor	esi, esi
	mov	rdi, rbp
	call	stv090x_i2c_gate_ctrl@PLT
	test	rax, rax
	js	.L3
	mov	eax, DWORD PTR 4[rsp]
	mov	edi, DWORD PTR FE_DEBUG[rip]
	test	eax, eax
	je	.L27
	lea	rdx, .LC0[rip]
	mov	esi, 1
	xor	eax, eax
	call	dprintk@PLT
.L26:
	mov	edi, 10
	call	msleep@PLT
	mov	esi, DWORD PTR AGCIQIN0[rip]
	mov	rdi, rbp
	call	STV090x_READ_DEMOD@PLT
	mov	esi, DWORD PTR AGCIQIN1[rip]
	mov	rdi, rbp
	mov	r14d, eax
	call	STV090x_READ_DEMOD@PLT
	mov	esi, r14d
	mov	edi, eax
	call	MAKEWORD16@PLT
	mov	r15, rax
	test	rax, rax
	jne	.L29
	mov	r14d, 5
.L30:
	mov	esi, DWORD PTR POWERI[rip]
	mov	rdi, rbp
	call	STV090x_READ_DEMOD@PLT
	mov	esi, DWORD PTR POWERQ[rip]
	mov	rdi, rbp
	mov	ebx, eax
	call	STV090x_READ_DEMOD@PLT
	add	ebx, eax
	sar	ebx
	movsx	rbx, ebx
	add	r15, rbx
	sub	r14, 1
	jne	.L30
	movabs	rdx, 7378697629483820647
	mov	rax, r15
	sar	r15, 63
	imul	rdx
	mov	rcx, rdx
	sar	rcx
	sub	rcx, r15
	cmp	QWORD PTR STV090x_IQPOWER_THRESHOLD[rip], rcx
	jg	.L73
.L29:
	mov	esi, DWORD PTR DEMOD[rip]
	mov	rdi, rbp
	call	STV090x_READ_DEMOD@PLT
	mov	edx, DWORD PTR 20[rbp]
	mov	esi, DWORD PTR SPECINV_CONTROL_FIELD[rip]
	mov	edi, eax
	mov	DWORD PTR 4[rsp], eax
	call	STV090x_SETFIELD_Px@PLT
	mov	rax, QWORD PTR 40[rbp]
	mov	edx, 1
	cmp	DWORD PTR [rax], 32
	jg	.L31
	mov	esi, DWORD PTR MANUAL_SXROLLOFF_FIELD[rip]
	mov	edi, DWORD PTR 4[rsp]
	call	STV090x_SETFIELD_Px@PLT
.L32:
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR DEMOD[rip]
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	rdi, rbp
	call	stv090x_delivery_search@PLT
	test	rax, rax
	js	.L3
	mov	rax, QWORD PTR STV090x_BLIND_SEARCH[rip]
	cmp	QWORD PTR 8[rbp], rax
	je	.L33
	mov	rdi, rbp
	call	stv090x_start_search@PLT
	test	rax, rax
	js	.L3
	cmp	r12d, DWORD PTR STV090x_NOAGC1[rip]
	je	.L1
	mov	rax, QWORD PTR 8[rbp]
	cmp	rax, QWORD PTR STV090x_BLIND_SEARCH[rip]
	je	.L47
	cmp	rax, QWORD PTR STV090x_COLD_SEARCH[rip]
	je	.L74
	cmp	rax, QWORD PTR STV090x_WARM_SEARCH[rip]
	jne	.L1
	mov	esi, DWORD PTR 48[rbp]
	mov	rdi, rbp
	call	stv090x_get_dmdlock@PLT
.L35:
	test	eax, eax
	jne	.L39
	mov	rax, QWORD PTR STV090x_COLD_SEARCH[rip]
	cmp	QWORD PTR 8[rbp], rax
	jne	.L1
	test	r13d, r13d
	jne	.L1
	mov	rdi, rbp
	call	stv090x_chk_tmg@PLT
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	call	stv090x_sw_algo@PLT
	test	eax, eax
	je	.L1
.L39:
	mov	rdi, rbp
	call	stv090x_get_sig_params@PLT
	cmp	eax, DWORD PTR STV090x_RANGEOK[rip]
	mov	r12d, eax
	jne	.L1
	mov	rdi, rbp
	call	stv090x_optimize_track@PLT
	mov	rax, QWORD PTR 40[rbp]
	cmp	DWORD PTR [rax], 31
	jle	.L43
	mov	esi, DWORD PTR TSCFGH[rip]
	mov	rdi, rbp
	call	STV090x_READ_DEMOD@PLT
	mov	esi, DWORD PTR RST_HWARE_FIELD[rip]
	xor	edx, edx
	mov	edi, eax
	mov	DWORD PTR 4[rsp], eax
	call	STV090x_SETFIELD_Px@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR TSCFGH[rip]
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	edi, 3
	call	msleep@PLT
	mov	esi, DWORD PTR RST_HWARE_FIELD[rip]
	mov	edi, DWORD PTR 4[rsp]
	mov	edx, 1
	call	STV090x_SETFIELD_Px@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR TSCFGH[rip]
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	esi, DWORD PTR RST_HWARE_FIELD[rip]
	mov	edi, DWORD PTR 4[rsp]
	xor	edx, edx
	call	STV090x_SETFIELD_Px@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR TSCFGH[rip]
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
.L43:
	mov	esi, DWORD PTR 32[rbp]
	mov	rdi, rbp
	mov	edx, esi
	call	stv090x_get_lock@PLT
	test	eax, eax
	je	.L75
	mov	rax, QWORD PTR STV090x_DVBS2[rip]
	mov	edx, 117
	cmp	QWORD PTR 24[rbp], rax
	je	.L76
.L66:
	mov	esi, DWORD PTR ERRCTRL1[rip]
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	esi, DWORD PTR FBERCPT4[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	esi, DWORD PTR ERRCTRL2[rip]
	mov	edx, 193
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	jns	.L1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L69:
	mov	edx, 99
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	jns	.L13
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L19:
	mov	DWORD PTR 4[rsp], 10
	mov	esi, 10
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L71:
	mov	esi, DWORD PTR 68[rbp]
	mov	edi, DWORD PTR 0[rbp]
	call	stv090x_car_width@PLT
	add	eax, 10000000
	mov	DWORD PTR 16[rbp], eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L70:
	mov	esi, DWORD PTR 68[rbp]
	mov	edi, DWORD PTR 0[rbp]
	call	stv090x_car_width@PLT
	add	eax, 10000000
	mov	edx, eax
	sal	edx, 4
	sub	edx, eax
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1717986919
	sar	rax, 34
	sub	eax, edx
	mov	DWORD PTR 16[rbp], eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, DWORD PTR MANUAL_S2ROLLOFF_FIELD[rip]
	mov	edi, DWORD PTR 4[rsp]
	call	STV090x_SETFIELD_Px@PLT
	jmp	.L32
.L33:
	cmp	r12d, DWORD PTR STV090x_NOAGC1[rip]
	je	.L1
.L47:
	mov	rdi, rbp
	call	stv090x_blind_search@PLT
	jmp	.L35
.L27:
	lea	rdx, .LC1[rip]
	mov	esi, 1
	xor	eax, eax
	call	dprintk@PLT
	mov	r12d, DWORD PTR STV090x_NOCARRIER[rip]
	jmp	.L1
.L73:
	mov	edi, DWORD PTR FE_ERROR[rip]
	lea	rdx, .LC2[rip]
	mov	esi, 1
	xor	eax, eax
	call	dprintk@PLT
	mov	r12d, DWORD PTR STV090x_NOAGC1[rip]
	jmp	.L1
.L74:
	mov	esi, DWORD PTR 48[rbp]
	mov	rdi, rbp
	call	stv090x_get_coldlock@PLT
	jmp	.L35
.L72:
	call	__stack_chk_fail@PLT
.L75:
	mov	rdi, rbp
	mov	r12d, DWORD PTR STV090x_NODATA[rip]
	call	stv090x_chk_signal@PLT
	jmp	.L1
.L76:
	mov	rdi, rbp
	call	stv090x_set_s2rolloff@PLT
	mov	esi, DWORD PTR PDELCTRL2[rip]
	mov	rdi, rbp
	call	STV090x_READ_DEMOD@PLT
	mov	esi, DWORD PTR RESET_UPKO_COUNT[rip]
	mov	edx, 1
	mov	edi, eax
	mov	DWORD PTR 4[rsp], eax
	call	STV090x_SETFIELD_Px@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR PDELCTRL2[rip]
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	esi, DWORD PTR PDELCTRL2[rip]
	mov	rdi, rbp
	call	STV090x_READ_DEMOD@PLT
	mov	esi, DWORD PTR RESET_UPKO_COUNT[rip]
	xor	edx, edx
	mov	edi, eax
	mov	DWORD PTR 4[rsp], eax
	call	STV090x_SETFIELD_Px@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR PDELCTRL2[rip]
	mov	rdi, rbp
	call	STV090x_WRITE_DEMOD@PLT
	test	rax, rax
	js	.L3
	mov	edx, 103
	jmp	.L66
	.cfi_endproc
.LFE0:
	.size	stv090x_algo, .-stv090x_algo
	.comm	TSCFGH,4,4
	.comm	TMGCFG2,4,4
	.comm	TMGCFG,4,4
	.comm	STV090x_WARM_SEARCH,8,8
	.comm	STV090x_RANGEOK,4,4
	.comm	STV090x_NODATA,4,4
	.comm	STV090x_NOCARRIER,4,4
	.comm	STV090x_NOAGC1,4,4
	.comm	STV090x_IQPOWER_THRESHOLD,8,8
	.comm	STV090x_DVBS2,8,8
	.comm	STV090x_COLD_SEARCH,8,8
	.comm	STV090x_BLIND_SEARCH,8,8
	.comm	SPECINV_CONTROL_FIELD,4,4
	.comm	RST_HWARE_FIELD,4,4
	.comm	RESET_UPKO_COUNT,4,4
	.comm	POWERQ,4,4
	.comm	POWERI,4,4
	.comm	PDELCTRL2,4,4
	.comm	MANUAL_SXROLLOFF_FIELD,4,4
	.comm	MANUAL_S2ROLLOFF_FIELD,4,4
	.comm	KREFTMG,4,4
	.comm	FE_ERROR,4,4
	.comm	FE_DEBUG,4,4
	.comm	FBERCPT4,4,4
	.comm	ERRCTRL2,4,4
	.comm	ERRCTRL1,4,4
	.comm	DMDTOM,4,4
	.comm	DMDISTATE,4,4
	.comm	DEMOD,4,4
	.comm	CORRELMANT,4,4
	.comm	CORRELABS,4,4
	.comm	AGCIQIN1,4,4
	.comm	AGCIQIN0,4,4
	.comm	AGC2REF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_stv090x.c_stv090x_algo.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Tuner phase locked\000"
	.align	2
.LC1:
	.ascii	"Tuner unlocked\000"
	.align	2
.LC2:
	.ascii	"No Signal: POWER_IQ=0x%02x\000"
	.align	2
.LC3:
	.ascii	"I/O error\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stv090x_algo, %function
stv090x_algo:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, .L80
	ldr	r3, .L80+4
	ldr	r9, .L80+8
	sub	sp, sp, #20
	ldr	r1, [r6]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	ldr	r5, [r9]
	bl	STV090x_READ_DEMOD
	ldr	r7, .L80+12
	mov	r2, #1
	ldr	r1, [r7]
	str	r0, [sp, #8]
	bl	STV090x_SETFIELD_Px
	mov	r0, r4
	ldr	r1, [r6]
	ldr	r2, [sp, #8]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	ldr	r3, .L80+16
	mov	r2, #92
	mov	r0, r4
	ldr	r1, [r3]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	ldr	r3, [r4, #24]
	ldr	r3, [r3]
	cmp	r3, #31
	ble	.L9
	ldr	r1, [r4]
	ldr	r2, .L80+20
	ldr	r3, .L80+24
	cmp	r1, r2
	ldr	r1, [r3]
	ble	.L8
	mov	r2, #158
	mov	r0, r4
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
.L9:
	ldr	r8, .L80+28
	mov	r0, r4
	bl	stv090x_get_lock_tmg
	ldr	r3, [r8]
	ldr	r2, [r4, #4]
	cmp	r2, r3
	beq	.L71
	ldr	r3, .L80+32
	mov	r2, #32
	mov	r0, r4
	ldr	r1, [r3]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	ldr	r3, .L80+36
	mov	r2, #210
	mov	r0, r4
	ldr	r1, [r3]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	ldr	r1, [r4]
	ldr	r2, .L80+40
	ldr	r3, .L80+44
	cmp	r1, r2
	ldr	r1, [r3]
	blt	.L72
	mov	r2, #112
	mov	r0, r4
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
.L13:
	ldr	r3, .L80+48
	mov	r2, #56
	mov	r0, r4
	ldr	r1, [r3]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	ldr	r3, [r4, #24]
	ldr	r3, [r3]
	cmp	r3, #31
	ble	.L15
	ldr	r3, .L80+52
	mov	r2, #90
	mov	r0, r4
	ldr	r1, [r3]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	ldr	r2, .L80+56
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L73
	ldr	r2, .L80+60
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L74
.L15:
	ldr	r3, .L80+64
	mov	r2, #193
	mov	r0, r4
	ldr	r1, [r3]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	mov	r0, r4
	ldr	r1, [r4]
	bl	stv090x_set_srate
	cmp	r0, #0
	blt	.L3
	ldr	r3, [r4, #24]
	mov	r0, r4
	ldr	r2, [r4]
	ldr	r1, [r3, #4]
	bl	stv090x_set_max_srate
	cmp	r0, #0
	blt	.L3
	ldr	r3, [r4, #24]
	mov	r0, r4
	ldr	r2, [r4]
	ldr	r1, [r3, #4]
	bl	stv090x_set_min_srate
	cmp	r0, #0
	blt	.L3
	ldr	r3, .L80+68
	ldr	r10, [r4]
	cmp	r10, r3
	movgt	r3, #0
	movle	r3, #1
	str	r3, [sp, #4]
	b	.L10
.L21:
	mov	r0, r4
	mov	r1, #0
	bl	stv090x_i2c_gate_ctrl
.L3:
	ldr	r3, .L80+72
	mov	r1, #1
	ldr	r2, .L80+76
	ldr	r0, [r3]
	bl	dprintk
	mvn	r5, #0
.L1:
	ldr	r3, .L80+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L75
	mov	r0, r5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r2, #130
	mov	r0, r4
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	bge	.L9
	b	.L3
.L71:
	ldr	r2, .L80+80
	ldr	r3, .L80+64
	str	r2, [r4, #8]
	mov	r0, r4
	mov	r2, #192
	ldr	r1, [r3]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	ldr	r3, .L80+44
	mov	r2, #112
	mov	r0, r4
	ldr	r1, [r3]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	mov	r0, r4
	ldr	r1, .L80+84
	bl	stv090x_set_srate
	cmp	r0, #0
	blt	.L3
	mov	r3, #0
	str	r3, [sp, #4]
.L10:
	mov	r1, #1
	mov	r0, r4
	bl	stv090x_i2c_gate_ctrl
	cmp	r0, #0
	blt	.L3
	ldr	r3, [r4, #32]
	add	fp, r4, #44
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L18
	ldr	r1, [r3, #4]
	mov	r0, fp
	cmp	r1, #0
	moveq	r3, #10
	strne	r1, [sp, #8]
	moveq	r1, r3
	streq	r3, [sp, #8]
	blx	r2
	cmp	r0, #0
	blt	.L21
	ldr	r3, [r4, #32]
.L18:
	ldr	r2, [r3, #8]
	cmp	r2, #0
	beq	.L22
	mov	r0, fp
	ldr	r1, [r4, #36]
	blx	r2
	cmp	r0, #0
	blt	.L21
	ldr	r3, [r4, #32]
.L22:
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L25
	mov	r0, fp
	ldr	r1, [r4, #8]
	blx	r3
	cmp	r0, #0
	blt	.L21
.L25:
	mov	r1, #0
	mov	r0, r4
	bl	stv090x_i2c_gate_ctrl
	cmp	r0, #0
	blt	.L3
	mov	r0, #50
	bl	msleep
	ldr	r3, [r4, #32]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L26
	mov	r1, #1
	mov	r0, r4
	bl	stv090x_i2c_gate_ctrl
	cmp	r0, #0
	blt	.L3
	ldr	r3, [r4, #32]
	mov	r0, fp
	ldr	r3, [r3, #16]
	add	r1, sp, #8
	blx	r3
	cmp	r0, #0
	blt	.L21
	mov	r1, #0
	mov	r0, r4
	bl	stv090x_i2c_gate_ctrl
	cmp	r0, #0
	blt	.L3
	ldr	r2, [sp, #8]
	ldr	r3, .L80+88
	cmp	r2, #0
	ldr	r0, [r3]
	beq	.L27
	mov	r1, #1
	ldr	r2, .L80+92
	bl	dprintk
.L26:
	mov	r0, #10
	bl	msleep
	ldr	r3, .L80+96
	mov	r0, r4
	ldr	r1, [r3]
	bl	STV090x_READ_DEMOD
	ldr	r3, .L80+100
	mov	r9, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	STV090x_READ_DEMOD
	mov	r1, r0
	mov	r0, r9
	bl	MAKEWORD16
	subs	fp, r0, #0
	bne	.L29
	mov	r10, #5
.L30:
	ldr	r3, .L80+104
	mov	r0, r4
	ldr	r1, [r3]
	bl	STV090x_READ_DEMOD
	ldr	r3, .L80+108
	mov	r9, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	STV090x_READ_DEMOD
	subs	r10, r10, #1
	add	r9, r9, r0
	add	fp, fp, r9, asr #1
	bne	.L30
	ldr	r2, .L80+112
	ldr	r1, .L80+116
	smull	r3, r2, fp, r2
	ldr	r1, [r1]
	asr	r3, fp, #31
	rsb	r3, r3, r2, asr #1
	cmp	r1, r3
	bgt	.L76
.L29:
	ldr	r9, .L80+120
	mov	r0, r4
	ldr	r1, [r9]
	bl	STV090x_READ_DEMOD
	ldr	r3, .L80+124
	ldr	r2, [r4, #12]
	ldr	r1, [r3]
	str	r0, [sp, #8]
	bl	STV090x_SETFIELD_Px
	ldr	r3, [r4, #24]
	mov	r2, #1
	ldr	r3, [r3]
	ldr	r0, [sp, #8]
	cmp	r3, #32
	ldrle	r3, .L80+128
	ldrgt	r3, .L80+132
	ldr	r1, [r3]
	bl	STV090x_SETFIELD_Px
	mov	r0, r4
	ldr	r1, [r9]
	ldr	r2, [sp, #8]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	mov	r0, r4
	bl	stv090x_delivery_search
	cmp	r0, #0
	blt	.L3
	ldr	r2, [r4, #4]
	ldr	r3, [r8]
	cmp	r2, r3
	beq	.L33
	mov	r0, r4
	bl	stv090x_start_search
	cmp	r0, #0
	blt	.L3
	ldr	r3, .L80+136
	ldr	r3, [r3]
	cmp	r5, r3
	beq	.L1
	ldr	r2, [r8]
	ldr	r3, [r4, #4]
	cmp	r3, r2
	beq	.L47
	ldr	r2, .L80+56
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L77
	ldr	r2, .L80+60
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L1
	mov	r0, r4
	ldr	r1, [r4, #28]
	bl	stv090x_get_dmdlock
.L35:
	cmp	r0, #0
	bne	.L39
	ldr	r3, .L80+56
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L1
	ldr	r3, [sp, #4]
	cmp	r3, #0
	bne	.L1
	mov	r0, r4
	bl	stv090x_chk_tmg
	cmp	r0, #0
	beq	.L1
	mov	r0, r4
	bl	stv090x_sw_algo
	cmp	r0, #0
	beq	.L1
.L39:
	mov	r0, r4
	bl	stv090x_get_sig_params
	ldr	r3, .L80+140
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L1
	mov	r0, r4
	bl	stv090x_optimize_track
	ldr	r3, [r4, #24]
	ldr	r3, [r3]
	cmp	r3, #31
	ble	.L43
	ldr	r1, [r6]
	mov	r0, r4
	bl	STV090x_READ_DEMOD
	mov	r2, #0
	ldr	r1, [r7]
	str	r0, [sp, #8]
	bl	STV090x_SETFIELD_Px
	mov	r0, r4
	ldr	r2, [sp, #8]
	ldr	r1, [r6]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	mov	r0, #3
	bl	msleep
	mov	r2, #1
	ldr	r1, [r7]
	ldr	r0, [sp, #8]
	bl	STV090x_SETFIELD_Px
	mov	r0, r4
	ldr	r2, [sp, #8]
	ldr	r1, [r6]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	mov	r2, #0
	ldr	r1, [r7]
	ldr	r0, [sp, #8]
	bl	STV090x_SETFIELD_Px
	mov	r0, r4
	ldr	r1, [r6]
	ldr	r2, [sp, #8]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
.L43:
	ldr	r2, [r4, #20]
	mov	r0, r4
	mov	r1, r2
	bl	stv090x_get_lock
	cmp	r0, #0
	beq	.L78
	ldr	r3, .L80+144
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	cmp	r2, r3
	movne	r2, #117
	ldrne	r3, .L80+148
	beq	.L79
.L69:
	mov	r0, r4
	ldr	r1, [r3]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	ldr	r3, .L80+152
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r3]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	ldr	r3, .L80+156
	mov	r0, r4
	mov	r2, #193
	ldr	r1, [r3]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	bge	.L1
	b	.L3
.L72:
	mov	r2, #99
	mov	r0, r4
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	bge	.L13
	b	.L3
.L74:
	ldr	r1, [r4, #40]
	ldr	r0, [r4]
	bl	stv090x_car_width
	ldr	r3, .L80+160
	add	r3, r0, r3
	str	r3, [r4, #8]
	b	.L15
.L73:
	ldr	r1, [r4, #40]
	ldr	r0, [r4]
	bl	stv090x_car_width
	ldr	r3, .L80+160
	ldr	r2, .L80+112
	add	r3, r0, r3
	rsb	r3, r3, r3, lsl #4
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	rsb	r3, r3, r2, asr #2
	str	r3, [r4, #8]
	b	.L15
.L33:
	ldr	r3, .L80+136
	ldr	r3, [r3]
	cmp	r5, r3
	beq	.L1
.L47:
	mov	r0, r4
	bl	stv090x_blind_search
	b	.L35
.L27:
	mov	r1, #1
	ldr	r2, .L80+164
	bl	dprintk
	ldr	r5, [r9]
	b	.L1
.L76:
	ldr	r2, .L80+72
	mov	r1, #1
	ldr	r0, [r2]
	ldr	r2, .L80+168
	bl	dprintk
	ldr	r3, .L80+136
	ldr	r5, [r3]
	b	.L1
.L77:
	mov	r0, r4
	ldr	r1, [r4, #28]
	bl	stv090x_get_coldlock
	b	.L35
.L75:
	bl	__stack_chk_fail
.L78:
	ldr	r3, .L80+172
	mov	r0, r4
	ldr	r5, [r3]
	bl	stv090x_chk_signal
	b	.L1
.L79:
	ldr	r6, .L80+176
	mov	r0, r4
	bl	stv090x_set_s2rolloff
	ldr	r1, [r6]
	mov	r0, r4
	bl	STV090x_READ_DEMOD
	ldr	r7, .L80+180
	mov	r2, #1
	ldr	r1, [r7]
	str	r0, [sp, #8]
	bl	STV090x_SETFIELD_Px
	mov	r0, r4
	ldr	r1, [r6]
	ldr	r2, [sp, #8]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	ldr	r1, [r6]
	mov	r0, r4
	bl	STV090x_READ_DEMOD
	mov	r2, #0
	ldr	r1, [r7]
	str	r0, [sp, #8]
	bl	STV090x_SETFIELD_Px
	mov	r0, r4
	ldr	r1, [r6]
	ldr	r2, [sp, #8]
	bl	STV090x_WRITE_DEMOD
	cmp	r0, #0
	blt	.L3
	mov	r2, #103
	ldr	r3, .L80+148
	b	.L69
.L81:
	.align	2
.L80:
	.word	TSCFGH
	.word	.LC4
	.word	STV090x_NOCARRIER
	.word	RST_HWARE_FIELD
	.word	DMDISTATE
	.word	5000000
	.word	CORRELABS
	.word	STV090x_BLIND_SEARCH
	.word	DMDTOM
	.word	TMGCFG
	.word	2000000
	.word	CORRELMANT
	.word	AGC2REF
	.word	KREFTMG
	.word	STV090x_COLD_SEARCH
	.word	STV090x_WARM_SEARCH
	.word	TMGCFG2
	.word	9999999
	.word	FE_ERROR
	.word	.LC3
	.word	72000000
	.word	1000000
	.word	FE_DEBUG
	.word	.LC0
	.word	AGCIQIN1
	.word	AGCIQIN0
	.word	POWERI
	.word	POWERQ
	.word	1717986919
	.word	STV090x_IQPOWER_THRESHOLD
	.word	DEMOD
	.word	SPECINV_CONTROL_FIELD
	.word	MANUAL_SXROLLOFF_FIELD
	.word	MANUAL_S2ROLLOFF_FIELD
	.word	STV090x_NOAGC1
	.word	STV090x_RANGEOK
	.word	STV090x_DVBS2
	.word	ERRCTRL1
	.word	FBERCPT4
	.word	ERRCTRL2
	.word	10000000
	.word	.LC1
	.word	.LC2
	.word	STV090x_NODATA
	.word	PDELCTRL2
	.word	RESET_UPKO_COUNT
	.size	stv090x_algo, .-stv090x_algo
	.comm	TSCFGH,4,4
	.comm	TMGCFG2,4,4
	.comm	TMGCFG,4,4
	.comm	STV090x_WARM_SEARCH,4,4
	.comm	STV090x_RANGEOK,4,4
	.comm	STV090x_NODATA,4,4
	.comm	STV090x_NOCARRIER,4,4
	.comm	STV090x_NOAGC1,4,4
	.comm	STV090x_IQPOWER_THRESHOLD,4,4
	.comm	STV090x_DVBS2,4,4
	.comm	STV090x_COLD_SEARCH,4,4
	.comm	STV090x_BLIND_SEARCH,4,4
	.comm	SPECINV_CONTROL_FIELD,4,4
	.comm	RST_HWARE_FIELD,4,4
	.comm	RESET_UPKO_COUNT,4,4
	.comm	POWERQ,4,4
	.comm	POWERI,4,4
	.comm	PDELCTRL2,4,4
	.comm	MANUAL_SXROLLOFF_FIELD,4,4
	.comm	MANUAL_S2ROLLOFF_FIELD,4,4
	.comm	KREFTMG,4,4
	.comm	FE_ERROR,4,4
	.comm	FE_DEBUG,4,4
	.comm	FBERCPT4,4,4
	.comm	ERRCTRL2,4,4
	.comm	ERRCTRL1,4,4
	.comm	DMDTOM,4,4
	.comm	DMDISTATE,4,4
	.comm	DEMOD,4,4
	.comm	CORRELMANT,4,4
	.comm	CORRELABS,4,4
	.comm	AGCIQIN1,4,4
	.comm	AGCIQIN0,4,4
	.comm	AGC2REF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
