	.file	"extr_au8522_decoder.c_au8522_g_tuner.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	au8522_g_tuner, @function
au8522_g_tuner:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rsi
	call	to_state@PLT
	xor	esi, esi
	mov	rdi, rax
	call	au8522_readreg@PLT
	cmp	eax, 162
	sete	al
	movzx	eax, al
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR V4L2_TUNER_CAP_STEREO[rip]
	or	eax, DWORD PTR V4L2_TUNER_CAP_LANG1[rip]
	or	eax, DWORD PTR V4L2_TUNER_CAP_LANG2[rip]
	or	eax, DWORD PTR V4L2_TUNER_CAP_SAP[rip]
	or	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR V4L2_TUNER_SUB_MONO[rip]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR V4L2_TUNER_MODE_STEREO[rip]
	mov	DWORD PTR 12[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	au8522_g_tuner, .-au8522_g_tuner
	.comm	V4L2_TUNER_SUB_MONO,4,4
	.comm	V4L2_TUNER_MODE_STEREO,4,4
	.comm	V4L2_TUNER_CAP_STEREO,4,4
	.comm	V4L2_TUNER_CAP_SAP,4,4
	.comm	V4L2_TUNER_CAP_LANG2,4,4
	.comm	V4L2_TUNER_CAP_LANG1,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_au8522_decoder.c_au8522_g_tuner.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	au8522_g_tuner, %function
au8522_g_tuner:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r1
	bl	to_state
	mov	r1, #0
	bl	au8522_readreg
	sub	r0, r0, #162
	clz	r0, r0
	ldr	r2, .L4
	ldr	r3, .L4+4
	ldr	r1, .L4+8
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r2, .L4+12
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r3, ip
	orr	r3, r3, r1
	ldr	ip, .L4+16
	ldr	r1, .L4+20
	orr	r3, r3, r2
	ldr	r2, [r4, #4]
	ldr	r1, [r1]
	ldr	ip, [ip]
	lsr	r0, r0, #5
	orr	r3, r2, r3
	stm	r4, {r0, r3, ip}
	str	r1, [r4, #12]
	mov	r0, #0
	pop	{r4, pc}
.L5:
	.align	2
.L4:
	.word	V4L2_TUNER_CAP_LANG1
	.word	V4L2_TUNER_CAP_STEREO
	.word	V4L2_TUNER_CAP_LANG2
	.word	V4L2_TUNER_CAP_SAP
	.word	V4L2_TUNER_SUB_MONO
	.word	V4L2_TUNER_MODE_STEREO
	.size	au8522_g_tuner, .-au8522_g_tuner
	.comm	V4L2_TUNER_SUB_MONO,4,4
	.comm	V4L2_TUNER_MODE_STEREO,4,4
	.comm	V4L2_TUNER_CAP_STEREO,4,4
	.comm	V4L2_TUNER_CAP_SAP,4,4
	.comm	V4L2_TUNER_CAP_LANG2,4,4
	.comm	V4L2_TUNER_CAP_LANG1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
