	.file	"extr_ivtv-ioctl.c_ivtv_g_tuner.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ivtv Radio Tuner"
.LC1:
	.string	"ivtv TV Tuner"
	.text
	.p2align 4
	.type	ivtv_g_tuner, @function
ivtv_g_tuner:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR [rdx], 0
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rcx, rdx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR [rsi]
	mov	edx, DWORD PTR g_tuner[rip]
	mov	esi, DWORD PTR tuner[rip]
	mov	rdi, rbp
	call	ivtv_call_all@PLT
	mov	edi, DWORD PTR IVTV_F_I_RADIO_USER[rip]
	mov	rsi, rbp
	call	test_bit@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, 4
	test	rax, rax
	je	.L4
	lea	rsi, .LC0[rip]
	call	strlcpy@PLT
	mov	eax, DWORD PTR V4L2_TUNER_RADIO[rip]
	mov	DWORD PTR 8[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	call	strlcpy@PLT
	mov	eax, DWORD PTR V4L2_TUNER_ANALOG_TV[rip]
	mov	DWORD PTR 8[rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ivtv_g_tuner, .-ivtv_g_tuner
	.comm	tuner,4,4
	.comm	g_tuner,4,4
	.comm	V4L2_TUNER_RADIO,4,4
	.comm	V4L2_TUNER_ANALOG_TV,4,4
	.comm	IVTV_F_I_RADIO_USER,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_ivtv-ioctl.c_ivtv_g_tuner.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ivtv Radio Tuner\000"
	.align	2
.LC1:
	.ascii	"ivtv TV Tuner\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ivtv_g_tuner, %function
ivtv_g_tuner:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r2]
	cmp	r6, #0
	beq	.L2
	ldr	r3, .L7
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	mov	r4, r2
	ldr	r5, [r1]
	ldr	r3, .L7+4
	ldr	r2, .L7+8
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r5
	mov	r3, r4
	bl	ivtv_call_all
	ldr	r3, .L7+12
	mov	r1, r5
	ldr	r0, [r3]
	bl	test_bit
	subs	r5, r0, #0
	mov	r2, #4
	beq	.L4
	mov	r5, r6
	ldr	r1, .L7+16
	ldr	r0, [r4, #8]
	bl	strlcpy
	ldr	r3, .L7+20
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r1, .L7+24
	ldr	r0, [r4, #8]
	bl	strlcpy
	ldr	r3, .L7+28
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	EINVAL
	.word	tuner
	.word	g_tuner
	.word	IVTV_F_I_RADIO_USER
	.word	.LC0
	.word	V4L2_TUNER_RADIO
	.word	.LC1
	.word	V4L2_TUNER_ANALOG_TV
	.size	ivtv_g_tuner, .-ivtv_g_tuner
	.comm	tuner,4,4
	.comm	g_tuner,4,4
	.comm	V4L2_TUNER_RADIO,4,4
	.comm	V4L2_TUNER_ANALOG_TV,4,4
	.comm	IVTV_F_I_RADIO_USER,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
