	.file	"extr_tvaudio.c_tda9874a_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"tda9874_modelist"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"tda9874a_setup(): %s [0x%02X].\n"
	.text
	.p2align 4
	.type	tda9874a_setup, @function
tda9874a_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR TDA9874A_AGCGR[rip]
	xor	edx, edx
	mov	r12, rdi
	call	chip_write@PLT
	mov	edx, DWORD PTR tda9874a_GCONR[rip]
	mov	esi, DWORD PTR TDA9874A_GCONR[rip]
	mov	rdi, r12
	call	chip_write@PLT
	xor	edx, edx
	mov	esi, DWORD PTR TDA9874A_MSR[rip]
	mov	rdi, r12
	cmp	QWORD PTR tda9874a_mode[rip], 0
	setne	dl
	add	edx, 2
	call	chip_write@PLT
	cmp	DWORD PTR tda9874a_dic[rip], 17
	je	.L16
	mov	rdx, QWORD PTR tda9874a_STD[rip]
	mov	rax, QWORD PTR tda9874a_modelist[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	lea	rdx, 4[rax+rdx*8]
	call	chip_cmd@PLT
	mov	esi, DWORD PTR TDA9874A_FMMR[rip]
	xor	edx, edx
	mov	rdi, r12
	call	chip_write@PLT
.L4:
	mov	esi, DWORD PTR TDA9874A_C1OLAR[rip]
	xor	edx, edx
	mov	rdi, r12
	call	chip_write@PLT
	mov	esi, DWORD PTR TDA9874A_C2OLAR[rip]
	xor	edx, edx
	mov	rdi, r12
	call	chip_write@PLT
	mov	edx, DWORD PTR tda9874a_NCONR[rip]
	mov	esi, DWORD PTR TDA9874A_NCONR[rip]
	mov	rdi, r12
	call	chip_write@PLT
	mov	esi, DWORD PTR TDA9874A_NOLAR[rip]
	xor	edx, edx
	mov	rdi, r12
	call	chip_write@PLT
	mov	esi, DWORD PTR TDA9874A_NLELR[rip]
	mov	edx, 20
	mov	rdi, r12
	call	chip_write@PLT
	mov	esi, DWORD PTR TDA9874A_NUELR[rip]
	mov	edx, 80
	mov	rdi, r12
	call	chip_write@PLT
	cmp	DWORD PTR tda9874a_dic[rip], 17
	je	.L17
	mov	esi, DWORD PTR TDA9874A_AMCONR[rip]
	mov	edx, 251
	mov	rdi, r12
	call	chip_write@PLT
	xor	edx, edx
	mov	esi, DWORD PTR TDA9874A_SDACOSR[rip]
	mov	rdi, r12
	cmp	QWORD PTR tda9874a_mode[rip], 0
	setne	dl
	sub	edx, -128
	call	chip_write@PLT
	mov	esi, DWORD PTR TDA9874A_AOSR[rip]
	xor	edx, edx
	mov	rdi, r12
	call	chip_write@PLT
.L8:
	mov	r9, QWORD PTR tda9874a_STD[rip]
	mov	rax, QWORD PTR tda9874a_modelist[rip]
	mov	rdx, r12
	lea	rcx, .LC1[rip]
	mov	esi, DWORD PTR debug[rip]
	mov	edi, 1
	mov	r8d, DWORD PTR [rax+r9*8]
	call	v4l2_dbg@PLT
	mov	eax, 1
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	esi, DWORD PTR TDA9874A_FMMR[rip]
	mov	edx, 128
	mov	rdi, r12
	call	chip_write@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR TDA9874A_AMCONR[rip]
	mov	rdi, r12
	mov	edx, 249
	call	chip_write@PLT
	xor	edx, edx
	mov	esi, DWORD PTR TDA9874A_SDACOSR[rip]
	mov	rdi, r12
	cmp	QWORD PTR tda9874a_mode[rip], 0
	setne	dl
	sub	edx, -128
	call	chip_write@PLT
	mov	esi, DWORD PTR TDA9874A_AOSR[rip]
	mov	rdi, r12
	mov	edx, 128
	call	chip_write@PLT
	cmp	QWORD PTR tda9874a_mode[rip], 1
	mov	esi, DWORD PTR TDA9874A_MDACOSR[rip]
	mov	rdi, r12
	sbb	edx, edx
	and	edx, -2
	add	edx, 130
	call	chip_write@PLT
	mov	edx, DWORD PTR tda9874a_ESP[rip]
	mov	esi, DWORD PTR TDA9874A_ESP[rip]
	mov	rdi, r12
	call	chip_write@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	tda9874a_setup, .-tda9874a_setup
	.comm	tda9874a_modelist,8,8
	.comm	tda9874a_mode,8,8
	.comm	tda9874a_dic,4,4
	.comm	tda9874a_STD,8,8
	.comm	tda9874a_NCONR,4,4
	.comm	tda9874a_GCONR,4,4
	.comm	tda9874a_ESP,4,4
	.comm	debug,4,4
	.comm	TDA9874A_SDACOSR,4,4
	.comm	TDA9874A_NUELR,4,4
	.comm	TDA9874A_NOLAR,4,4
	.comm	TDA9874A_NLELR,4,4
	.comm	TDA9874A_NCONR,4,4
	.comm	TDA9874A_MSR,4,4
	.comm	TDA9874A_MDACOSR,4,4
	.comm	TDA9874A_GCONR,4,4
	.comm	TDA9874A_FMMR,4,4
	.comm	TDA9874A_ESP,4,4
	.comm	TDA9874A_C2OLAR,4,4
	.comm	TDA9874A_C1OLAR,4,4
	.comm	TDA9874A_AOSR,4,4
	.comm	TDA9874A_AMCONR,4,4
	.comm	TDA9874A_AGCGR,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_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tda9874_modelist\000"
	.align	2
.LC1:
	.ascii	"tda9874a_setup(): %s [0x%02X].\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tda9874a_setup, %function
tda9874a_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L18
	sub	sp, sp, #8
	ldr	r1, [r3]
	mov	r2, #0
	bl	chip_write
	ldr	r3, .L18+4
	ldr	r2, .L18+8
	ldr	r5, .L18+12
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	chip_write
	ldr	r2, [r5]
	ldr	r3, .L18+16
	cmp	r2, #0
	ldr	r6, .L18+20
	movne	r2, #3
	moveq	r2, #2
	ldr	r1, [r3]
	mov	r0, r4
	bl	chip_write
	ldr	r3, [r6]
	cmp	r3, #17
	beq	.L16
	ldr	r7, .L18+24
	ldr	r8, .L18+28
	ldr	r2, [r7]
	ldr	r3, [r8]
	ldr	r1, .L18+32
	add	r2, r2, r3, lsl #3
	add	r2, r2, #4
	mov	r0, r4
	bl	chip_cmd
	ldr	r3, .L18+36
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r3]
	bl	chip_write
.L4:
	ldr	r3, .L18+40
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	chip_write
	ldr	r3, .L18+44
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	chip_write
	ldr	r3, .L18+48
	ldr	r2, .L18+52
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	chip_write
	ldr	r3, .L18+56
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	chip_write
	ldr	r3, .L18+60
	mov	r2, #20
	ldr	r1, [r3]
	mov	r0, r4
	bl	chip_write
	ldr	r3, .L18+64
	mov	r2, #80
	ldr	r1, [r3]
	mov	r0, r4
	bl	chip_write
	ldr	r3, [r6]
	cmp	r3, #17
	ldr	r3, .L18+68
	beq	.L17
	ldr	r1, [r3]
	mov	r2, #251
	mov	r0, r4
	bl	chip_write
	ldr	r2, [r5]
	ldr	r3, .L18+72
	cmp	r2, #0
	ldr	r1, [r3]
	movne	r2, #129
	moveq	r2, #128
	mov	r0, r4
	bl	chip_write
	ldr	r3, .L18+76
	mov	r2, #0
	mov	r0, r4
	ldr	r1, [r3]
	bl	chip_write
.L8:
	ldr	r3, [r8]
	ldr	r2, [r7]
	str	r3, [sp, #4]
	ldr	r2, [r2, r3, lsl #3]
	ldr	r3, .L18+80
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r2, r4
	ldr	r3, .L18+84
	mov	r0, #1
	bl	v4l2_dbg
	mov	r0, #1
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r3, .L18+36
	mov	r2, #128
	mov	r0, r4
	ldr	r1, [r3]
	bl	chip_write
	ldr	r7, .L18+24
	ldr	r8, .L18+28
	b	.L4
.L17:
	ldr	r1, [r3]
	mov	r2, #249
	mov	r0, r4
	bl	chip_write
	ldr	r2, [r5]
	ldr	r3, .L18+72
	cmp	r2, #0
	movne	r2, #129
	moveq	r2, #128
	ldr	r1, [r3]
	mov	r0, r4
	bl	chip_write
	ldr	r3, .L18+76
	mov	r2, #128
	ldr	r1, [r3]
	mov	r0, r4
	bl	chip_write
	ldr	r2, [r5]
	ldr	r3, .L18+88
	cmp	r2, #0
	movne	r2, #130
	moveq	r2, #128
	ldr	r1, [r3]
	mov	r0, r4
	bl	chip_write
	ldr	r3, .L18+92
	ldr	r2, .L18+96
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	chip_write
	b	.L8
.L19:
	.align	2
.L18:
	.word	TDA9874A_AGCGR
	.word	TDA9874A_GCONR
	.word	tda9874a_GCONR
	.word	tda9874a_mode
	.word	TDA9874A_MSR
	.word	tda9874a_dic
	.word	tda9874a_modelist
	.word	tda9874a_STD
	.word	.LC0
	.word	TDA9874A_FMMR
	.word	TDA9874A_C1OLAR
	.word	TDA9874A_C2OLAR
	.word	TDA9874A_NCONR
	.word	tda9874a_NCONR
	.word	TDA9874A_NOLAR
	.word	TDA9874A_NLELR
	.word	TDA9874A_NUELR
	.word	TDA9874A_AMCONR
	.word	TDA9874A_SDACOSR
	.word	TDA9874A_AOSR
	.word	debug
	.word	.LC1
	.word	TDA9874A_MDACOSR
	.word	TDA9874A_ESP
	.word	tda9874a_ESP
	.size	tda9874a_setup, .-tda9874a_setup
	.comm	tda9874a_modelist,4,4
	.comm	tda9874a_mode,4,4
	.comm	tda9874a_dic,4,4
	.comm	tda9874a_STD,4,4
	.comm	tda9874a_NCONR,4,4
	.comm	tda9874a_GCONR,4,4
	.comm	tda9874a_ESP,4,4
	.comm	debug,4,4
	.comm	TDA9874A_SDACOSR,4,4
	.comm	TDA9874A_NUELR,4,4
	.comm	TDA9874A_NOLAR,4,4
	.comm	TDA9874A_NLELR,4,4
	.comm	TDA9874A_NCONR,4,4
	.comm	TDA9874A_MSR,4,4
	.comm	TDA9874A_MDACOSR,4,4
	.comm	TDA9874A_GCONR,4,4
	.comm	TDA9874A_FMMR,4,4
	.comm	TDA9874A_ESP,4,4
	.comm	TDA9874A_C2OLAR,4,4
	.comm	TDA9874A_C1OLAR,4,4
	.comm	TDA9874A_AOSR,4,4
	.comm	TDA9874A_AMCONR,4,4
	.comm	TDA9874A_AGCGR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
