	.file	"extr_scan.c_Scan_Next_DVBT.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	Scan_Next_DVBT, @function
Scan_Next_DVBT:
.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
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	cmp	QWORD PTR 16[rdi], 0
	mov	QWORD PTR 8[rsp], rcx
	jne	.L17
	mov	r14d, DWORD PTR 8[rdi]
	mov	r10d, DWORD PTR [rdi]
	mov	eax, 166667
	test	r14d, r14d
	cmove	r14d, eax
	test	r10d, r10d
	jne	.L18
	mov	eax, -5
	mov	r10d, 6
.L4:
	mov	r8d, DWORD PTR 4[rdi]
	mov	edx, 8
	mov	ecx, DWORD PTR 0[rbp]
	mov	r15d, 3435973837
	test	r8d, r8d
	cmove	r8d, edx
	add	r8d, eax
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, ecx
	xor	edx, edx
	div	r8d
	mov	esi, eax
	cmp	eax, 869
	jbe	.L6
	mov	r11d, eax
	mov	rbx, r11
	imul	rbx, r15
	shr	rbx, 34
	cmp	eax, 1154
	jbe	.L13
	cmp	eax, 2349
	jbe	.L6
	cmp	ebx, 862
	jle	.L14
	add	ecx, 1
	mov	DWORD PTR 0[rbp], ecx
	mov	eax, DWORD PTR VLC_EGENERIC[rip]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L18:
	.cfi_restore_state
	mov	r8d, 1
	mov	eax, r8d
	sub	eax, r10d
	jmp	.L4
.L13:
	mov	r9d, 174000000
.L7:
	lea	edi, [rdx+r10]
	imul	eax, edi, 500000
	add	eax, r9d
	imul	r9d, ebx, 1000000
	cmp	eax, r9d
	ja	.L6
	imul	r12d, edi, 1000000
	mov	edx, r9d
	sub	edx, eax
	mov	eax, edx
	xor	edx, edx
	div	r12d
	test	edx, edx
	je	.L19
.L6:
	add	ecx, 1
	mov	DWORD PTR 0[rbp], ecx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	jmp	Scan_Next_DVB_SpectrumExhaustive@PLT
.L19:
	.cfi_restore_state
	mov	r12d, 3435973837
	mov	DWORD PTR 4[r13], edi
	lea	edi, -174[rbx]
	imul	r11, r12
	shr	r11, 34
	lea	eax, [r11+r11*4]
	sub	esi, eax
	lea	eax, -2[rsi]
	mov	r12d, esi
	mov	esi, 56
	imul	r14d, eax
	add	r9d, r14d
	mov	DWORD PTR 0[r13], r9d
	call	__MIN@PLT
	mov	r13, rax
	cmp	ebx, 469
	jle	.L20
	lea	edi, -470[rbx]
	mov	esi, 392
	call	__MIN@PLT
	pxor	xmm1, xmm1
	add	eax, r13d
	cvtsi2sd	xmm1, eax
	mov	eax, DWORD PTR 0[rbp]
.L10:
	mov	rdi, QWORD PTR 8[rsp]
	add	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, r12d
	divsd	xmm0, QWORD PTR .LC0[rip]
	addsd	xmm0, xmm1
	divsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR [rdi], xmm0
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR VLC_SUCCESS[rip]
	jmp	.L1
.L14:
	mov	r9d, 470000000
	jmp	.L7
.L20:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	mov	eax, DWORD PTR 0[rbp]
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	Scan_Next_DVBT, .-Scan_Next_DVBT
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1075052544
	.align 8
.LC1:
	.long	0
	.long	1081868288
	.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_scan.c_Scan_Next_DVBT.c"
	.text
	.global	__aeabi_uidivmod
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Scan_Next_DVBT, %function
Scan_Next_DVBT:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	lr, [r0, #12]
	sub	sp, sp, #20
	cmp	lr, #0
	stmib	sp, {r2, r3}
	bne	.L17
	ldr	r2, [r0, #8]
	ldr	r3, .L20
	ldr	r9, [r0]
	ldr	r7, [r0, #4]
	cmp	r2, #0
	moveq	r2, r3
	cmp	r9, #0
	mvneq	r3, #4
	rsbne	r3, r9, #1
	moveq	r9, #6
	cmp	r7, #0
	moveq	r7, #8
	mov	r8, r1
	ldr	fp, [r1]
	ldr	r10, .L20+4
	str	r2, [sp, #12]
	add	r7, r7, r3
.L11:
	mov	r1, r7
	mov	r0, fp
	bl	__aeabi_uidivmod
	cmp	r0, r10
	mov	r6, r0
	bls	.L6
	ldr	r4, .L20+8
	umull	r3, r4, r0, r4
	ldr	r3, .L20+12
	lsr	r4, r4, #2
	cmp	r0, r3
	bls	.L13
	ldr	r3, .L20+16
	cmp	r0, r3
	bls	.L6
	ldr	r3, .L20+20
	cmp	r4, r3
	ble	.L14
	ldr	r3, .L20+24
	add	r2, fp, #1
	str	r2, [r8]
	ldr	r0, [r3]
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r3, .L20+28
.L7:
	add	r5, r1, r9
	rsb	r0, r5, r5, lsl #5
	rsb	r0, r0, r0, lsl #6
	rsb	r2, r4, r4, lsl #5
	add	r0, r5, r0, lsl #3
	rsb	r2, r2, r2, lsl #6
	add	r2, r4, r2, lsl #3
	lsl	r1, r0, #6
	add	r0, r3, r0, lsl #5
	cmp	r0, r2, lsl #6
	lsl	r2, r2, #6
	sub	r0, r2, r0
	str	r2, [sp]
	bhi	.L6
	bl	__aeabi_uidivmod
	cmp	r1, #0
	ldr	r2, [sp]
	beq	.L18
.L6:
	add	fp, fp, #1
	str	fp, [r8]
	b	.L11
.L17:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	Scan_Next_DVB_SpectrumExhaustive
.L18:
	mov	r3, r4
	mov	r4, r2
	ldr	r2, .L20+8
	ldr	r0, [sp, #4]
	umull	r1, r2, r6, r2
	bic	r1, r2, #3
	add	r2, r1, r2, lsr #2
	sub	r6, r6, r2
	ldr	r1, [sp, #12]
	sub	r2, r6, #2
	mla	r1, r2, r1, r4
	mov	r4, r1
	str	r5, [r0, #4]
	str	r4, [r0]
	mov	r1, #56
	sub	r0, r3, #174
	str	r3, [sp]
	bl	__MIN
	ldr	r2, .L20+32
	ldr	r3, [sp]
	mov	r4, r0
	cmp	r3, r2
	ble	.L19
	sub	r0, r3, #468
	mov	r1, #392
	sub	r0, r0, #2
	bl	__MIN
	add	r0, r4, r0
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r7, [r8]
.L10:
	mov	r0, r6
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L20+36
	bl	__aeabi_ddiv
	mov	r2, r4
	mov	r3, r5
	bl	__aeabi_dadd
	mov	r2, #0
	ldr	r3, .L20+40
	bl	__aeabi_ddiv
	ldr	ip, [sp, #8]
	ldr	r2, .L20+44
	add	r3, r7, #1
	stm	ip, {r0-r1}
	str	r3, [r8]
	ldr	r0, [r2]
	b	.L1
.L14:
	ldr	r3, .L20+48
	b	.L7
.L19:
	bl	__aeabi_i2d
	ldr	r7, [r8]
	mov	r4, r0
	mov	r5, r1
	b	.L10
.L21:
	.align	2
.L20:
	.word	166667
	.word	869
	.word	-858993459
	.word	1154
	.word	2349
	.word	862
	.word	VLC_EGENERIC
	.word	174000000
	.word	469
	.word	1075052544
	.word	1081868288
	.word	VLC_SUCCESS
	.word	470000000
	.size	Scan_Next_DVBT, .-Scan_Next_DVBT
	.comm	VLC_SUCCESS,4,4
	.comm	VLC_EGENERIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
