	.file	"extr_ddbridge-core.c_tuner_attach_tda18212.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"tda18212"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"TDA18212 tuner not found. Device is not fully operational.\n"
	.text
	.p2align 4
	.type	tuner_attach_tda18212, @function
tuner_attach_tda18212:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	rdx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	mov	r12, QWORD PTR 16[rdx]
	mov	ecx, eax
	and	eax, 1
	sal	rax, 4
	add	rax, QWORD PTR 8[rdx]
	and	ecx, 1
	mov	rbx, rax
	mov	rax, QWORD PTR [rdx]
	cmp	ecx, 1
	sbb	ecx, ecx
	mov	rbp, QWORD PTR [rax]
	and	ecx, -3
	mov	DWORD PTR 40[rsp], 5000
	movabs	rax, 15891378998750
	mov	QWORD PTR 16[rsp], rax
	add	ecx, 99
	cmp	QWORD PTR DDB_TUNER_DVBCT_ST[rip], rsi
	movabs	rax, 13958643716150
	mov	QWORD PTR 24[rsp], rax
	movabs	rax, 17179869188000
	mov	QWORD PTR 32[rsp], rax
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 44[rsp], eax
	je	.L10
.L3:
	xor	esi, esi
	lea	r8, 16[rsp]
	mov	rdx, r12
	lea	rdi, .LC0[rip]
	call	dvb_module_probe@PLT
	test	rax, rax
	je	.L11
	mov	rdx, QWORD PTR [rbx]
	mov	QWORD PTR [rdx], rax
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 56[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, ecx
	mov	DWORD PTR 12[rsp], ecx
	call	tuner_tda18212_ping@PLT
	mov	ecx, DWORD PTR 12[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tuner_attach_tda18212, .-tuner_attach_tda18212
	.comm	ENODEV,4,4
	.comm	DDB_TUNER_DVBCT_ST,8,8
	.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_ddbridge-core.c_tuner_attach_tda18212.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"tda18212\000"
	.align	2
.LC1:
	.ascii	"TDA18212 tuner not found. Device is not fully opera"
	.ascii	"tional.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tuner_attach_tda18212, %function
tuner_attach_tda18212:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #4000
	ldr	r2, [r0, #4]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L13
	ldr	r4, [r0]
	ldr	r5, [r2, #4]
	ldr	lr, [r3]
	and	r4, r4, #1
	cmp	r4, #0
	add	r3, r5, r4, lsl #3
	ldr	r3, [r3, #4]
	ldr	r7, .L13+4
	movne	r6, #99
	moveq	r6, #96
	cmp	lr, r1
	ldr	lr, [r2]
	sub	sp, sp, #48
	ldr	r7, [r7]
	str	r7, [sp, #44]
	mov	r7,#0
	ldr	r8, [r2, #8]
	ldr	r7, [lr]
	ldr	r2, .L13+8
	str	r3, [sp, #40]
	ldr	r3, .L13+12
	ldr	r1, .L13+16
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	ldr	r2, .L13+20
	ldr	r3, .L13+24
	str	r1, [sp, #12]
	str	ip, [sp, #28]
	str	ip, [sp, #32]
	str	r2, [sp, #24]
	str	r3, [sp, #36]
	beq	.L10
.L3:
	add	r1, sp, #12
	mov	r3, r6
	str	r1, [sp]
	mov	r2, r8
	mov	r1, #0
	ldr	r0, .L13+28
	bl	dvb_module_probe
	subs	r3, r0, #0
	beq	.L11
	mov	r0, #0
	ldr	r2, [r5, r4, lsl #3]
	str	r3, [r2]
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r1, r6
	bl	tuner_tda18212_ping
	b	.L3
.L11:
	mov	r0, r7
	ldr	r1, .L13+32
	bl	dev_err
	ldr	r3, .L13+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	DDB_TUNER_DVBCT_ST
	.word	.LC2
	.word	3700
	.word	4150
	.word	3550
	.word	3250
	.word	5000
	.word	.LC0
	.word	.LC1
	.word	ENODEV
	.size	tuner_attach_tda18212, .-tuner_attach_tda18212
	.comm	ENODEV,4,4
	.comm	DDB_TUNER_DVBCT_ST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
