	.file	"extr_go7007-v4l2.c_vidioc_s_tuner.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vidioc_s_tuner, @function
vidioc_s_tuner:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdi, QWORD PTR [rsi]
	mov	rax, QWORD PTR 16[rdi]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR GO7007_BOARD_HAS_TUNER[rip], eax
	je	.L4
	cmp	QWORD PTR [rdx], 0
	jne	.L4
	mov	eax, DWORD PTR 8[rdi]
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR [rdi]
	add	eax, -128
	cmp	eax, 1
	ja	.L6
	mov	eax, DWORD PTR V4L2_TUNER_MODE_STEREO[rip]
	cmp	DWORD PTR 8[rdx], eax
	je	.L6
.L4:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	esi, DWORD PTR VIDIOC_S_TUNER[rip]
	add	rdi, 4
	call	i2c_clients_command@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	vidioc_s_tuner, .-vidioc_s_tuner
	.comm	VIDIOC_S_TUNER,4,4
	.comm	V4L2_TUNER_MODE_STEREO,4,4
	.comm	GO7007_BOARD_HAS_TUNER,4,4
	.comm	EIO,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_go7007-v4l2.c_vidioc_s_tuner.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vidioc_s_tuner, %function
vidioc_s_tuner:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r0, [r1]
	ldr	r3, .L10
	ldr	r1, [r0, #12]
	ldr	r3, [r3]
	ldr	r1, [r1]
	push	{r4, lr}
	tst	r1, r3
	beq	.L4
	ldr	r4, [r2]
	cmp	r4, #0
	bne	.L4
	ldr	r3, [r0, #8]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [r0]
	sub	r3, r3, #128
	cmp	r3, #1
	bhi	.L6
	ldr	r3, .L10+4
	ldr	r1, [r2, #4]
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L6
.L4:
	ldr	r3, .L10+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, pc}
.L6:
	ldr	r3, .L10+12
	add	r0, r0, #4
	ldr	r1, [r3]
	bl	i2c_clients_command
	mov	r0, r4
	pop	{r4, pc}
.L9:
	ldr	r3, .L10+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, pc}
.L11:
	.align	2
.L10:
	.word	GO7007_BOARD_HAS_TUNER
	.word	V4L2_TUNER_MODE_STEREO
	.word	EINVAL
	.word	VIDIOC_S_TUNER
	.word	EIO
	.size	vidioc_s_tuner, .-vidioc_s_tuner
	.comm	VIDIOC_S_TUNER,4,4
	.comm	V4L2_TUNER_MODE_STEREO,4,4
	.comm	GO7007_BOARD_HAS_TUNER,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
