	.file	"extr_rtl2832.c_rtl2832_set_if.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"if_frequency=%d pset_iffreq=%08x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"failed=%d\n"
	.text
	.p2align 4
	.type	rtl2832_set_if, @function
rtl2832_set_if:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r14, QWORD PTR [rdi]
	mov	rax, QWORD PTR [r14]
	mov	rbp, QWORD PTR 8[r14]
	mov	esi, DWORD PTR [rax]
	mov	eax, r12d
	cdq
	idiv	esi
	sal	edx, 22
	mov	edi, edx
	call	div_u64@PLT
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	neg	eax
	mov	r13d, eax
	xor	eax, eax
	and	r13d, 4194303
	mov	ecx, r13d
	call	dev_dbg@PLT
	xor	edx, edx
	mov	esi, DWORD PTR DVBT_EN_BBIN[rip]
	test	r12d, r12d
	sete	dl
	mov	rdi, r14
	call	rtl2832_wr_demod_reg@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L11
.L2:
	mov	edx, r12d
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_dbg@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR DVBT_PSET_IFFREQ[rip]
	mov	edx, r13d
	mov	rdi, r14
	call	rtl2832_wr_demod_reg@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	rtl2832_set_if, .-rtl2832_set_if
	.comm	DVBT_PSET_IFFREQ,4,4
	.comm	DVBT_EN_BBIN,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_rtl2832.c_rtl2832_set_if.c"
	.text
	.global	__aeabi_idivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"if_frequency=%d pset_iffreq=%08x\012\000"
	.align	2
.LC1:
	.ascii	"failed=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl2832_set_if, %function
rtl2832_set_if:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0]
	mov	r5, r1
	ldm	r7, {r3, r6}
	ldr	r4, [r3]
	mov	r0, r1
	mov	r1, r4
	bl	__aeabi_idivmod
	mov	r0, r1
	mov	r1, r4
	lsl	r0, r0, #22
	bl	div_u64
	rsb	r4, r0, #0
	bic	r4, r4, #-16777216
	bic	r4, r4, #12582912
	mov	r2, r5
	mov	r3, r4
	ldr	r1, .L11
	mov	r0, r6
	bl	dev_dbg
	clz	r2, r5
	ldr	r3, .L11+4
	mov	r0, r7
	ldr	r1, [r3]
	lsr	r2, r2, #5
	bl	rtl2832_wr_demod_reg
	subs	r5, r0, #0
	beq	.L10
.L2:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L11+8
	bl	dev_dbg
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L11+12
	mov	r2, r4
	mov	r0, r7
	ldr	r1, [r3]
	bl	rtl2832_wr_demod_reg
	subs	r5, r0, #0
	bne	.L2
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	DVBT_EN_BBIN
	.word	.LC1
	.word	DVBT_PSET_IFFREQ
	.size	rtl2832_set_if, .-rtl2832_set_if
	.comm	DVBT_PSET_IFFREQ,4,4
	.comm	DVBT_EN_BBIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
