	.file	"extr_stv0900_core.c_stv0900_get_freq_auto.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	stv0900_get_freq_auto
	.type	stv0900_get_freq_auto, @function
stv0900_get_freq_auto:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR TUN_RFFREQ2[rip]
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	stv0900_get_bits@PLT
	mov	esi, DWORD PTR TUN_RFFREQ1[rip]
	mov	rdi, r12
	mov	ebx, eax
	call	stv0900_get_bits@PLT
	mov	esi, DWORD PTR TUN_RFFREQ0[rip]
	sal	ebx, 10
	mov	rdi, r12
	lea	ebp, [rbx+rax*4]
	call	stv0900_get_bits@PLT
	mov	esi, DWORD PTR TUN_RFRESTE1[rip]
	mov	rdi, r12
	add	ebp, eax
	call	stv0900_get_bits@PLT
	mov	esi, DWORD PTR TUN_RFRESTE0[rip]
	imul	ebp, ebp, 1000
	mov	rdi, r12
	mov	ebx, eax
	call	stv0900_get_bits@PLT
	sar	ebx, 2
	add	ebx, eax
	lea	eax, 63[rbp]
	imul	edx, ebx, 1000
	test	ebp, ebp
	pop	rbx
	.cfi_def_cfa_offset 24
	cmovns	eax, ebp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	sar	eax, 6
	test	edx, edx
	mov	ecx, eax
	lea	eax, 2047[rdx]
	cmovns	eax, edx
	sar	eax, 11
	lea	eax, [rcx+rax]
	ret
	.cfi_endproc
.LFE0:
	.size	stv0900_get_freq_auto, .-stv0900_get_freq_auto
	.comm	TUN_RFRESTE1,4,4
	.comm	TUN_RFRESTE0,4,4
	.comm	TUN_RFFREQ2,4,4
	.comm	TUN_RFFREQ1,4,4
	.comm	TUN_RFFREQ0,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_stv0900_core.c_stv0900_get_freq_auto.c"
	.text
	.align	2
	.global	stv0900_get_freq_auto
	.syntax unified
	.arm
	.fpu softvfp
	.type	stv0900_get_freq_auto, %function
stv0900_get_freq_auto:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L4
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r5, r0
	bl	stv0900_get_bits
	ldr	r3, .L4+4
	mov	r6, r0
	ldr	r1, [r3]
	mov	r0, r5
	bl	stv0900_get_bits
	ldr	r3, .L4+8
	lsl	r4, r0, #2
	ldr	r1, [r3]
	mov	r0, r5
	bl	stv0900_get_bits
	add	r4, r4, r6, lsl #10
	ldr	r3, .L4+12
	add	r4, r4, r0
	rsb	r0, r4, r4, lsl #5
	ldr	r1, [r3]
	add	r4, r4, r0, lsl #2
	mov	r0, r5
	bl	stv0900_get_bits
	mov	r3, r0
	ldr	r2, .L4+16
	mov	r0, r5
	ldr	r1, [r2]
	mov	r5, r3
	bl	stv0900_get_bits
	add	r0, r0, r5, asr #2
	rsb	r3, r0, r0, lsl #5
	add	r0, r0, r3, lsl #2
	lsl	r0, r0, #3
	add	r3, r0, #2032
	lsl	r4, r4, #3
	cmp	r0, #0
	add	r3, r3, #15
	movlt	r0, r3
	add	r3, r4, #63
	cmp	r4, #0
	movlt	r4, r3
	asr	r0, r0, #11
	add	r0, r0, r4, asr #6
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	TUN_RFFREQ2
	.word	TUN_RFFREQ1
	.word	TUN_RFFREQ0
	.word	TUN_RFRESTE1
	.word	TUN_RFRESTE0
	.size	stv0900_get_freq_auto, .-stv0900_get_freq_auto
	.comm	TUN_RFRESTE1,4,4
	.comm	TUN_RFRESTE0,4,4
	.comm	TUN_RFFREQ2,4,4
	.comm	TUN_RFFREQ1,4,4
	.comm	TUN_RFFREQ0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
