	.file	"extr_stv090x.c_stv090x_search.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Search range: 10 MHz"
.LC1:
	.string	"Search range: 5 MHz"
.LC2:
	.string	"Search success!"
.LC3:
	.string	"Search failed!"
	.text
	.p2align 4
	.type	stv090x_search, @function
stv090x_search:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR [rdi]
	test	rdx, rdx
	je	.L17
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR 8[rdi]
	mov	rbp, QWORD PTR 24[rdi]
	cmp	eax, 129
	je	.L4
	cmp	eax, 130
	je	.L5
	cmp	eax, 128
	je	.L18
	mov	eax, DWORD PTR DVBFE_ALGO_SEARCH_INVALID[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR DVBFE_ALGO_SEARCH_INVALID[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	mov	eax, DWORD PTR STV090x_DVBS2[rip]
	mov	DWORD PTR 28[rbp], eax
.L8:
	mov	eax, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR FE_DEBUG[rip]
	mov	QWORD PTR 0[rbp], rdx
	mov	edx, DWORD PTR STV090x_SEARCH_AUTO[rip]
	mov	DWORD PTR 8[rbp], eax
	mov	DWORD PTR 24[rbp], edx
	mov	edx, DWORD PTR STV090x_COLD_SEARCH[rip]
	mov	DWORD PTR 20[rbp], edx
	mov	edx, DWORD PTR STV090x_PRERR[rip]
	mov	DWORD PTR 16[rbp], edx
	cmp	eax, 10000000
	jle	.L9
	lea	rdx, .LC0[rip]
	mov	esi, 1
	call	dprintk@PLT
	mov	DWORD PTR 12[rbp], 10000000
.L10:
	mov	esi, DWORD PTR 20[rbx]
	mov	rdi, rbp
	call	stv090x_set_pls@PLT
	mov	esi, DWORD PTR 16[rbx]
	mov	rdi, rbp
	call	stv090x_set_mis@PLT
	mov	rdi, rbp
	call	stv090x_algo@PLT
	cmp	rax, QWORD PTR STV090x_RANGEOK[rip]
	je	.L19
	mov	edi, DWORD PTR FE_DEBUG[rip]
	lea	rdx, .LC3[rip]
	mov	esi, 1
	call	dprintk@PLT
	mov	eax, DWORD PTR DVBFE_ALGO_SEARCH_FAILED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR STV090x_DSS[rip]
	mov	DWORD PTR 28[rbp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR STV090x_DVBS1[rip]
	mov	DWORD PTR 28[rbp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdx, .LC1[rip]
	mov	esi, 1
	call	dprintk@PLT
	mov	DWORD PTR 12[rbp], 5000000
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR FE_DEBUG[rip]
	lea	rdx, .LC2[rip]
	mov	esi, 1
	call	dprintk@PLT
	mov	eax, DWORD PTR DVBFE_ALGO_SEARCH_SUCCESS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	stv090x_search, .-stv090x_search
	.comm	STV090x_SEARCH_AUTO,4,4
	.comm	STV090x_RANGEOK,8,8
	.comm	STV090x_PRERR,4,4
	.comm	STV090x_DVBS2,4,4
	.comm	STV090x_DVBS1,4,4
	.comm	STV090x_DSS,4,4
	.comm	STV090x_COLD_SEARCH,4,4
	.comm	FE_DEBUG,4,4
	.comm	DVBFE_ALGO_SEARCH_SUCCESS,4,4
	.comm	DVBFE_ALGO_SEARCH_INVALID,4,4
	.comm	DVBFE_ALGO_SEARCH_FAILED,4,4
	.comm	DVBFE_ALGO_SEARCH_ERROR,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_search.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Search range: 10 MHz\000"
	.align	2
.LC1:
	.ascii	"Search range: 5 MHz\000"
	.align	2
.LC2:
	.ascii	"Search success!\000"
	.align	2
.LC3:
	.ascii	"Search failed!\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stv090x_search, %function
stv090x_search:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	cmp	r2, #0
	beq	.L17
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #129
	mov	r4, r0
	ldr	r5, [r0, #20]
	beq	.L4
	cmp	r3, #130
	beq	.L5
	cmp	r3, #128
	beq	.L18
	ldr	r3, .L20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, .L20
	ldr	r0, [r3]
	bx	lr
.L18:
	ldr	r3, .L20+4
	ldr	r3, [r3]
	str	r3, [r5, #24]
.L8:
	ldr	r0, .L20+8
	ldr	r1, .L20+12
	ldr	r3, .L20+16
	ldr	ip, [r0]
	ldr	r7, .L20+20
	ldr	r0, [r1]
	ldr	r1, [r3]
	ldr	r3, [r4, #8]
	ldr	r6, .L20+24
	cmp	r3, r7
	str	r0, [r5, #16]
	str	r2, [r5]
	ldr	r0, [r6]
	str	ip, [r5, #20]
	str	r3, [r5, #4]
	str	r1, [r5, #12]
	ble	.L9
	mov	r1, #1
	ldr	r2, .L20+28
	bl	dprintk
	str	r7, [r5, #8]
.L10:
	ldr	r1, [r4, #16]
	mov	r0, r5
	bl	stv090x_set_pls
	ldr	r1, [r4, #12]
	mov	r0, r5
	bl	stv090x_set_mis
	mov	r0, r5
	bl	stv090x_algo
	ldr	r3, .L20+32
	ldr	r3, [r3]
	cmp	r0, r3
	ldr	r0, [r6]
	beq	.L19
	mov	r1, #1
	ldr	r2, .L20+36
	bl	dprintk
	ldr	r3, .L20+40
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L20+44
	ldr	r3, [r3]
	str	r3, [r5, #24]
	b	.L8
.L4:
	ldr	r3, .L20+48
	ldr	r3, [r3]
	str	r3, [r5, #24]
	b	.L8
.L9:
	mov	r1, #1
	ldr	r2, .L20+52
	bl	dprintk
	ldr	r3, .L20+56
	str	r3, [r5, #8]
	b	.L10
.L19:
	mov	r1, #1
	ldr	r2, .L20+60
	bl	dprintk
	ldr	r3, .L20+64
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	.align	2
.L20:
	.word	DVBFE_ALGO_SEARCH_INVALID
	.word	STV090x_DVBS2
	.word	STV090x_SEARCH_AUTO
	.word	STV090x_COLD_SEARCH
	.word	STV090x_PRERR
	.word	10000000
	.word	FE_DEBUG
	.word	.LC0
	.word	STV090x_RANGEOK
	.word	.LC3
	.word	DVBFE_ALGO_SEARCH_FAILED
	.word	STV090x_DSS
	.word	STV090x_DVBS1
	.word	.LC1
	.word	5000000
	.word	.LC2
	.word	DVBFE_ALGO_SEARCH_SUCCESS
	.size	stv090x_search, .-stv090x_search
	.comm	STV090x_SEARCH_AUTO,4,4
	.comm	STV090x_RANGEOK,4,4
	.comm	STV090x_PRERR,4,4
	.comm	STV090x_DVBS2,4,4
	.comm	STV090x_DVBS1,4,4
	.comm	STV090x_DSS,4,4
	.comm	STV090x_COLD_SEARCH,4,4
	.comm	FE_DEBUG,4,4
	.comm	DVBFE_ALGO_SEARCH_SUCCESS,4,4
	.comm	DVBFE_ALGO_SEARCH_INVALID,4,4
	.comm	DVBFE_ALGO_SEARCH_FAILED,4,4
	.comm	DVBFE_ALGO_SEARCH_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
