	.file	"extr_radio-cadet.c_vidioc_g_tuner.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Radio"
	.text
	.p2align 4
	.type	vidioc_g_tuner, @function
vidioc_g_tuner:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	call	video_drvdata@PLT
	cmp	QWORD PTR 32[rbx], 0
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbp, rax
	mov	eax, DWORD PTR V4L2_TUNER_RADIO[rip]
	mov	edi, DWORD PTR 24[rbx]
	mov	edx, 4
	lea	rsi, .LC0[rip]
	mov	DWORD PTR 28[rbx], eax
	call	strscpy@PLT
	mov	rax, QWORD PTR bands[rip]
	mov	edx, DWORD PTR [rax]
	or	edx, DWORD PTR 12[rax]
	mov	DWORD PTR [rbx], edx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR 20[rax]
	cmp	QWORD PTR 16[rbp], 0
	mov	DWORD PTR 4[rbx], edx
	mov	DWORD PTR 8[rbx], eax
	jne	.L11
	movabs	rax, 113387136622720
	mov	QWORD PTR 4[rbx], rax
	mov	eax, DWORD PTR V4L2_TUNER_SUB_MONO[rip]
	mov	DWORD PTR 20[rbx], eax
.L5:
	mov	eax, DWORD PTR V4L2_TUNER_MODE_STEREO[rip]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 12[rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rdi, rbp
	call	cadet_getstereo@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	edi, 3
	mov	DWORD PTR 20[rbx], eax
	call	outb@PLT
	mov	rax, QWORD PTR 8[rbp]
	lea	r12, 1[rax]
	mov	rdi, r12
	call	inb@PLT
	mov	rsi, r12
	and	eax, 127
	mov	edi, eax
	call	outb@PLT
	mov	edi, 100
	call	mdelay@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	edi, 3
	call	outb@PLT
	mov	rax, QWORD PTR 8[rbp]
	lea	rdi, 1[rax]
	call	inb@PLT
	test	al, -128
	je	.L5
	mov	eax, DWORD PTR V4L2_TUNER_SUB_RDS[rip]
	or	DWORD PTR 20[rbx], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	vidioc_g_tuner, .-vidioc_g_tuner
	.comm	bands,8,8
	.comm	V4L2_TUNER_SUB_RDS,4,4
	.comm	V4L2_TUNER_SUB_MONO,4,4
	.comm	V4L2_TUNER_RADIO,4,4
	.comm	V4L2_TUNER_MODE_STEREO,4,4
	.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-cadet.c_vidioc_g_tuner.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Radio\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vidioc_g_tuner, %function
vidioc_g_tuner:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	bl	video_drvdata
	ldr	r6, [r4, #32]
	cmp	r6, #0
	beq	.L2
	ldr	r3, .L12
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L2:
	mov	r5, r0
	ldr	r3, .L12+4
	mov	r2, #4
	ldr	r3, [r3]
	ldr	r1, .L12+8
	str	r3, [r4, #28]
	ldr	r0, [r4, #24]
	bl	strscpy
	ldr	r3, .L12+12
	ldr	r2, [r5, #8]
	ldr	r3, [r3]
	cmp	r2, #0
	ldr	ip, [r3, #12]
	ldr	r2, [r3]
	ldr	r0, [r3, #4]
	ldr	r1, [r3, #20]
	orr	r3, r2, ip
	stmib	r4, {r0, r1}
	str	r3, [r4]
	bne	.L11
	mov	r1, #8320
	ldr	r2, .L12+16
	ldr	r3, .L12+20
	ldr	r2, [r2]
	str	r1, [r4, #4]
	str	r2, [r4, #20]
	str	r3, [r4, #8]
.L5:
	ldr	r3, .L12+24
	ldr	r2, [r5]
	ldr	r3, [r3]
	mov	r0, r6
	str	r2, [r4, #12]
	str	r3, [r4, #16]
	pop	{r4, r5, r6, pc}
.L11:
	mov	r0, r5
	bl	cadet_getstereo
	ldr	r1, [r5, #4]
	str	r0, [r4, #20]
	mov	r0, #3
	bl	outb
	ldr	r0, [r5, #4]
	add	r0, r0, #1
	bl	inb
	ldr	r1, [r5, #4]
	and	r0, r0, #127
	add	r1, r1, #1
	bl	outb
	mov	r0, #100
	bl	mdelay
	ldr	r1, [r5, #4]
	mov	r0, #3
	bl	outb
	ldr	r0, [r5, #4]
	add	r0, r0, #1
	bl	inb
	tst	r0, #128
	beq	.L5
	ldr	r2, .L12+28
	ldr	r3, [r4, #20]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #20]
	b	.L5
.L13:
	.align	2
.L12:
	.word	EINVAL
	.word	V4L2_TUNER_RADIO
	.word	.LC0
	.word	bands
	.word	V4L2_TUNER_SUB_MONO
	.word	26400
	.word	V4L2_TUNER_MODE_STEREO
	.word	V4L2_TUNER_SUB_RDS
	.size	vidioc_g_tuner, .-vidioc_g_tuner
	.comm	bands,4,4
	.comm	V4L2_TUNER_SUB_RDS,4,4
	.comm	V4L2_TUNER_SUB_MONO,4,4
	.comm	V4L2_TUNER_RADIO,4,4
	.comm	V4L2_TUNER_MODE_STEREO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
