	.file	"extr_radio-zoltrix.c_zol_setfreq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cannot set a frequency of 0.\n"
	.text
	.p2align 4
	.type	zol_setfreq, @function
zol_setfreq:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	rsi, rsi
	je	.L12
	mov	rax, rsi
	lea	r12, 32[rdi]
	mov	rbx, rsi
	mov	r13d, DWORD PTR [rdi]
	movabs	rdx, -3689348814741910323
	mov	rdi, r12
	mul	rdx
	sal	r13d, 31
	shr	rdx, 7
	lea	r14, 2140[rdx+rdx]
	call	mutex_lock@PLT
	mov	QWORD PTR 8[rbp], rbx
	mov	rsi, QWORD PTR 40[rbp]
	xor	edi, edi
	mov	rbx, r14
	sal	r14, 30
	sal	rbx, 47
	call	outb@PLT
	mov	rsi, QWORD PTR 40[rbp]
	xor	edi, edi
	call	outb@PLT
	mov	rax, QWORD PTR 40[rbp]
	lea	rdi, 3[rax]
	call	inb@PLT
	mov	rsi, QWORD PTR 40[rbp]
	mov	edi, 64
	call	outb@PLT
	mov	rsi, QWORD PTR 40[rbp]
	mov	edi, 192
	call	outb@PLT
	movabs	rax, 35888059530608640
	and	rbx, rax
	movabs	rax, 70093866270720
	and	r14, rax
	movabs	rax, -4287356287265013760
	or	rbx, r14
	xor	rbx, r13
	mov	r13d, 45
	xor	rbx, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, 192
	add	rbx, rbx
	call	outb@PLT
	mov	edi, 50
	call	udelay@PLT
	mov	rsi, QWORD PTR 40[rbp]
	mov	edi, 64
	call	outb@PLT
	mov	edi, 50
	call	udelay@PLT
	mov	rsi, QWORD PTR 40[rbp]
	mov	edi, 192
	call	outb@PLT
	mov	edi, 50
	call	udelay@PLT
	sub	r13d, 1
	je	.L13
.L6:
	mov	rsi, QWORD PTR 40[rbp]
	test	rbx, rbx
	jns	.L4
	mov	edi, 128
	add	rbx, rbx
	call	outb@PLT
	mov	edi, 50
	call	udelay@PLT
	mov	rsi, QWORD PTR 40[rbp]
	xor	edi, edi
	call	outb@PLT
	mov	edi, 50
	call	udelay@PLT
	mov	rsi, QWORD PTR 40[rbp]
	mov	edi, 128
	call	outb@PLT
	mov	edi, 50
	call	udelay@PLT
	sub	r13d, 1
	jne	.L6
.L13:
	mov	rsi, QWORD PTR 40[rbp]
	mov	edi, 128
	call	outb@PLT
	mov	rsi, QWORD PTR 40[rbp]
	mov	edi, 192
	call	outb@PLT
	mov	rsi, QWORD PTR 40[rbp]
	mov	edi, 64
	call	outb@PLT
	mov	edi, 1000
	call	udelay@PLT
	mov	rax, QWORD PTR 40[rbp]
	lea	rdi, 2[rax]
	call	inb@PLT
	mov	edi, 1000
	call	udelay@PLT
	cmp	QWORD PTR 24[rbp], 0
	jne	.L14
.L7:
	mov	rdi, r12
	xor	r12d, r12d
	call	mutex_unlock@PLT
	cmp	QWORD PTR 24[rbp], 0
	je	.L15
	pop	rbx
	.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
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[rbp]
	mov	rdi, rbp
	call	zol_setvol@PLT
	pop	rbx
	.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
.L14:
	.cfi_restore_state
	mov	rsi, QWORD PTR 40[rbp]
	xor	edi, edi
	call	outb@PLT
	mov	rsi, QWORD PTR 40[rbp]
	xor	edi, edi
	call	outb@PLT
	mov	rax, QWORD PTR 40[rbp]
	lea	rdi, 3[rax]
	call	inb@PLT
	mov	edi, 1000
	call	udelay@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, 48[rdi]
	lea	rsi, .LC0[rip]
	call	v4l2_warn@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	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	zol_setfreq, .-zol_setfreq
	.comm	EINVAL,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_radio-zoltrix.c_zol_setfreq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot set a frequency of 0.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zol_setfreq, %function
zol_setfreq:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r9, r1, #0
	mov	r6, r0
	sub	sp, sp, #12
	beq	.L15
	mov	fp, #0
	mov	r8, r0
	ldr	r3, .L19
	ldr	r10, .L19+4
	umull	r2, r3, r9, r3
	lsr	r3, r3, #7
	sub	r3, r3, #8768
	sub	r3, r3, #32
	lsl	r3, r3, #1
	adds	r10, r10, r3
	adc	fp, fp, #0
	stm	sp, {r10-fp}
	ldr	fp, [r8], #16
	mov	r7, #45
	mov	r0, r8
	bl	mutex_lock
	ldr	r1, [r6, #20]
	mov	r0, #0
	str	r9, [r6, #4]
	bl	outb
	ldr	r1, [r6, #20]
	mov	r0, #0
	bl	outb
	ldr	r0, [r6, #20]
	add	r0, r0, #3
	bl	inb
	ldr	r1, [r6, #20]
	mov	r0, #64
	bl	outb
	ldr	r1, [r6, #20]
	mov	r0, #192
	bl	outb
	ldmia	sp, {r0-r1}
	ldr	r2, .L19+8
	ldr	r3, .L19+12
	orr	r4, r2, fp, lsl #31
	lsr	r2, r0, #2
	and	r2, r2, #16320
	and	r10, r3, r0, lsl #15
	orr	r10, r10, r2
	orr	r5, r10, #-1073741780
	orr	r5, r5, #75497472
	orr	r5, r5, #16384
	b	.L6
.L4:
	mov	r0, #192
	bl	outb
	mov	r0, #50
	bl	udelay
	ldr	r1, [r6, #20]
	mov	r0, #64
	bl	outb
	mov	r0, #50
	bl	udelay
	ldr	r1, [r6, #20]
	mov	r0, #192
	bl	outb
	mov	r0, #50
	bl	udelay
	adds	r4, r4, r4
	adc	r5, r5, r5
	subs	r7, r7, #1
	beq	.L16
.L6:
	cmp	r4, #0
	sbcs	r3, r5, #0
	ldr	r1, [r6, #20]
	bge	.L4
	mov	r0, #128
	bl	outb
	mov	r0, #50
	bl	udelay
	ldr	r1, [r6, #20]
	mov	r0, #0
	bl	outb
	mov	r0, #50
	bl	udelay
	ldr	r1, [r6, #20]
	mov	r0, #128
	bl	outb
	mov	r0, #50
	bl	udelay
	adds	r4, r4, r4
	adc	r5, r5, r5
	subs	r7, r7, #1
	bne	.L6
.L16:
	ldr	r1, [r6, #20]
	mov	r0, #128
	bl	outb
	ldr	r1, [r6, #20]
	mov	r0, #192
	bl	outb
	ldr	r1, [r6, #20]
	mov	r0, #64
	bl	outb
	mov	r0, #1000
	bl	udelay
	ldr	r0, [r6, #20]
	add	r0, r0, #2
	bl	inb
	mov	r0, #1000
	bl	udelay
	ldr	r3, [r6, #12]
	cmp	r3, #0
	bne	.L17
.L7:
	mov	r0, r8
	bl	mutex_unlock
	ldr	r4, [r6, #12]
	cmp	r4, #0
	movne	r4, #0
	beq	.L18
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r0, r6
	ldr	r1, [r6, #8]
	bl	zol_setvol
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r1, [r6, #20]
	mov	r0, r7
	bl	outb
	ldr	r1, [r6, #20]
	mov	r0, r7
	bl	outb
	ldr	r0, [r6, #20]
	add	r0, r0, #3
	bl	inb
	mov	r0, #1000
	bl	udelay
	b	.L7
.L15:
	ldr	r1, .L19+16
	add	r0, r0, #24
	bl	v4l2_warn
	ldr	r3, .L19+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	.align	2
.L19:
	.word	-858993459
	.word	19740
	.word	268959744
	.word	8355840
	.word	.LC0
	.word	EINVAL
	.size	zol_setfreq, .-zol_setfreq
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
