	.file	"extr_tvaudio.c_tda9874a_getmode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"tda9874a_getmode(): DSR=0x%X, NSR=0x%X, NECR=0x%X, return: %d.\n"
	.text
	.p2align 4
	.type	tda9874a_getmode, @function
tda9874a_getmode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR TDA9874A_DSR[rip]
	mov	r12d, DWORD PTR V4L2_TUNER_MODE_MONO[rip]
	call	chip_read2@PLT
	cmp	eax, -1
	je	.L1
	mov	esi, DWORD PTR TDA9874A_NSR[rip]
	mov	rdi, rbx
	mov	r13d, eax
	call	chip_read2@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L1
	mov	esi, DWORD PTR TDA9874A_NECR[rip]
	mov	rdi, rbx
	call	chip_read2@PLT
	cmp	eax, -1
	je	.L1
	movsx	rcx, DWORD PTR MAXREGS[rip]
	mov	rdx, QWORD PTR [rbx]
	cmp	QWORD PTR tda9874a_mode[rip], 0
	mov	DWORD PTR -8[rdx+rcx*4], r13d
	movsx	rcx, DWORD PTR MAXREGS[rip]
	mov	DWORD PTR -4[rdx+rcx*4], ebp
	jne	.L31
	test	r13b, 2
	je	.L6
	or	r12d, DWORD PTR V4L2_TUNER_MODE_STEREO[rip]
.L6:
	test	r13b, 4
	je	.L5
.L29:
	mov	edx, DWORD PTR V4L2_TUNER_MODE_LANG1[rip]
	or	edx, DWORD PTR V4L2_TUNER_MODE_LANG2[rip]
	or	r12d, edx
.L5:
	push	r12
	.cfi_def_cfa_offset 56
	mov	esi, DWORD PTR debug[rip]
	lea	rdx, 8[rbx]
	mov	r9d, ebp
	push	rax
	.cfi_def_cfa_offset 64
	mov	r8d, r13d
	lea	rcx, .LC0[rip]
	mov	edi, 1
	call	v4l2_dbg@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	test	bpl, 2
	je	.L4
	or	r12d, DWORD PTR V4L2_TUNER_MODE_STEREO[rip]
.L4:
	test	bpl, 1
	je	.L5
	jmp	.L29
	.cfi_endproc
.LFE0:
	.size	tda9874a_getmode, .-tda9874a_getmode
	.comm	tda9874a_mode,8,8
	.comm	debug,4,4
	.comm	V4L2_TUNER_MODE_STEREO,4,4
	.comm	V4L2_TUNER_MODE_MONO,4,4
	.comm	V4L2_TUNER_MODE_LANG2,4,4
	.comm	V4L2_TUNER_MODE_LANG1,4,4
	.comm	TDA9874A_NSR,4,4
	.comm	TDA9874A_NECR,4,4
	.comm	TDA9874A_DSR,4,4
	.comm	MAXREGS,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_tvaudio.c_tda9874a_getmode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tda9874a_getmode(): DSR=0x%X, NSR=0x%X, NECR=0x%X, "
	.ascii	"return: %d.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tda9874a_getmode, %function
tda9874a_getmode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, .L32
	ldr	r3, .L32+4
	ldr	r1, [r2]
	sub	sp, sp, #20
	mov	r6, r0
	ldr	r7, [r3]
	bl	chip_read2
	cmn	r0, #1
	beq	.L1
	ldr	r3, .L32+8
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, r6
	bl	chip_read2
	cmn	r0, #1
	mov	r5, r0
	beq	.L1
	ldr	r3, .L32+12
	mov	r0, r6
	ldr	r1, [r3]
	bl	chip_read2
	cmn	r0, #1
	beq	.L1
	ldr	r1, .L32+16
	ldr	r2, [r6]
	ldr	r3, [r1]
	ldr	ip, .L32+20
	sub	r3, r3, #-1073741822
	str	r4, [r2, r3, lsl #2]
	ldr	r3, [r1]
	ldr	r1, [ip]
	sub	r3, r3, #-1073741823
	cmp	r1, #0
	str	r5, [r2, r3, lsl #2]
	bne	.L31
	tst	r4, #2
	ldrne	r3, .L32+24
	ldrne	r3, [r3]
	orrne	r7, r7, r3
	tst	r4, #4
	beq	.L5
.L29:
	ldr	r3, .L32+28
	ldr	r2, .L32+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	orr	r7, r7, r3
.L5:
	stm	sp, {r4, r5}
	ldr	r3, .L32+36
	str	r0, [sp, #8]
	str	r7, [sp, #12]
	ldr	r1, [r3]
	mov	r0, #1
	ldr	r3, .L32+40
	add	r2, r6, #4
	bl	v4l2_dbg
.L1:
	mov	r0, r7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L31:
	tst	r5, #2
	ldrne	r3, .L32+24
	ldrne	r3, [r3]
	orrne	r7, r7, r3
	tst	r5, #1
	beq	.L5
	b	.L29
.L33:
	.align	2
.L32:
	.word	TDA9874A_DSR
	.word	V4L2_TUNER_MODE_MONO
	.word	TDA9874A_NSR
	.word	TDA9874A_NECR
	.word	MAXREGS
	.word	tda9874a_mode
	.word	V4L2_TUNER_MODE_STEREO
	.word	V4L2_TUNER_MODE_LANG1
	.word	V4L2_TUNER_MODE_LANG2
	.word	debug
	.word	.LC0
	.size	tda9874a_getmode, .-tda9874a_getmode
	.comm	tda9874a_mode,4,4
	.comm	debug,4,4
	.comm	V4L2_TUNER_MODE_STEREO,4,4
	.comm	V4L2_TUNER_MODE_MONO,4,4
	.comm	V4L2_TUNER_MODE_LANG2,4,4
	.comm	V4L2_TUNER_MODE_LANG1,4,4
	.comm	TDA9874A_NSR,4,4
	.comm	TDA9874A_NECR,4,4
	.comm	TDA9874A_DSR,4,4
	.comm	MAXREGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
