	.file	"extr_af9013.c_af9013_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\n"
.LC1:
	.string	"load demod core settings\n"
.LC2:
	.string	"load tuner specific settings\n"
.LC3:
	.string	"failed %d\n"
	.text
	.p2align 4
	.type	af9013_init, @function
af9013_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	rsi, .LC0[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rbp, QWORD PTR 32[rbx]
	mov	rdi, rbp
	call	dev_dbg@PLT
	mov	edi, DWORD PTR 28[rbx]
	xor	ecx, ecx
	mov	edx, 8
	mov	esi, 55098
	call	regmap_update_bits@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L37
.L2:
	mov	edx, r12d
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L38
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L37:
	.cfi_restore_state
	mov	edi, DWORD PTR 28[rbx]
	xor	ecx, ecx
	mov	edx, 2
	mov	esi, 54295
	call	regmap_update_bits@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	edi, DWORD PTR 28[rbx]
	xor	ecx, ecx
	mov	edx, 16
	mov	esi, 54295
	call	regmap_update_bits@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	edi, DWORD PTR 28[rbx]
	mov	rdx, QWORD PTR [rbx]
	mov	ecx, 4
	mov	esi, 39922
	call	regmap_bulk_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR 8[rbx]
	cmp	eax, 28000000
	je	.L27
	jg	.L4
	cmp	eax, 20480000
	je	.L28
	cmp	eax, 25000000
	jne	.L5
	mov	r12d, 3
.L3:
	mov	edi, DWORD PTR 28[rbx]
	mov	ecx, r12d
	mov	edx, 15
	mov	esi, 39890
	call	regmap_update_bits@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, 1000000
	sal	edi, 19
	call	div_u64@PLT
	mov	edi, DWORD PTR 28[rbx]
	mov	ecx, 3
	mov	esi, 53632
	movzx	edx, al
	mov	DWORD PTR 12[rsp], edx
	movzx	edx, ah
	shr	eax, 16
	mov	DWORD PTR 16[rsp], edx
	and	eax, 255
	lea	rdx, 12[rsp]
	mov	DWORD PTR 20[rsp], eax
	call	regmap_bulk_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	mov	rdi, QWORD PTR demod_init_tab[rip]
	call	ARRAY_SIZE@PLT
	mov	r13, QWORD PTR demod_init_tab[rip]
	test	eax, eax
	jle	.L18
	sub	eax, 1
	lea	rax, [rax+rax*2]
	lea	r14, 12[r13+rax*4]
	.p2align 4,,10
	.p2align 3
.L17:
	mov	ecx, DWORD PTR 8[r13]
	mov	edx, DWORD PTR 4[r13]
	mov	edi, DWORD PTR 28[rbx]
	mov	esi, DWORD PTR 0[r13]
	call	regmap_update_bits@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	add	r13, 12
	cmp	r14, r13
	jne	.L17
.L18:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	mov	eax, DWORD PTR 12[rbx]
	sub	eax, 129
	cmp	eax, 11
	ja	.L7
	lea	rdx, .L9[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L9:
	.long	.L16-.L9
	.long	.L16-.L9
	.long	.L15-.L9
	.long	.L15-.L9
	.long	.L14-.L9
	.long	.L14-.L9
	.long	.L14-.L9
	.long	.L13-.L9
	.long	.L12-.L9
	.long	.L11-.L9
	.long	.L10-.L9
	.long	.L8-.L9
	.text
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	eax, 28800000
	je	.L3
.L5:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L28:
	mov	r12d, 1
	jmp	.L3
.L14:
	mov	rdi, QWORD PTR tuner_init_tab_mxl5005[rip]
	call	ARRAY_SIZE@PLT
	mov	r13, QWORD PTR tuner_init_tab_mxl5005[rip]
.L19:
	test	eax, eax
	jle	.L24
	sub	eax, 1
	lea	rax, [rax+rax*2]
	lea	r14, 12[r13+rax*4]
	.p2align 4,,10
	.p2align 3
.L23:
	mov	ecx, DWORD PTR 8[r13]
	mov	edx, DWORD PTR 4[r13]
	mov	edi, DWORD PTR 28[rbx]
	mov	esi, DWORD PTR 0[r13]
	call	regmap_update_bits@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	add	r13, 12
	cmp	r14, r13
	jne	.L23
.L24:
	mov	eax, DWORD PTR 20[rbx]
	cmp	DWORD PTR 16[rbx], 7
	lea	ecx, [rax+rax]
	jne	.L22
	or	ecx, 8
.L22:
	mov	edi, DWORD PTR 28[rbx]
	mov	edx, 14
	mov	esi, 54528
	call	regmap_update_bits@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	edi, DWORD PTR 28[rbx]
	mov	ecx, 1
	mov	edx, 1
	mov	esi, 55088
	call	regmap_update_bits@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	DWORD PTR 24[rbx], 1
	jmp	.L1
.L15:
	mov	rdi, QWORD PTR tuner_init_tab_qt1010[rip]
	call	ARRAY_SIZE@PLT
	mov	r13, QWORD PTR tuner_init_tab_qt1010[rip]
	jmp	.L19
.L16:
	mov	rdi, QWORD PTR tuner_init_tab_tda18271[rip]
	call	ARRAY_SIZE@PLT
	mov	r13, QWORD PTR tuner_init_tab_tda18271[rip]
	jmp	.L19
.L8:
	mov	rdi, QWORD PTR tuner_init_tab_env77h11d5[rip]
	call	ARRAY_SIZE@PLT
	mov	r13, QWORD PTR tuner_init_tab_env77h11d5[rip]
	jmp	.L19
.L10:
	mov	rdi, QWORD PTR tuner_init_tab_mc44s803[rip]
	call	ARRAY_SIZE@PLT
	mov	r13, QWORD PTR tuner_init_tab_mc44s803[rip]
	jmp	.L19
.L11:
	mov	rdi, QWORD PTR tuner_init_tab_mt2060[rip]
	call	ARRAY_SIZE@PLT
	mov	r13, QWORD PTR tuner_init_tab_mt2060[rip]
	jmp	.L19
.L12:
	mov	rdi, QWORD PTR tuner_init_tab_mt2060_2[rip]
	call	ARRAY_SIZE@PLT
	mov	r13, QWORD PTR tuner_init_tab_mt2060_2[rip]
	jmp	.L19
.L13:
	mov	rdi, QWORD PTR tuner_init_tab_mxl5003d[rip]
	call	ARRAY_SIZE@PLT
	mov	r13, QWORD PTR tuner_init_tab_mxl5003d[rip]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L27:
	mov	r12d, 2
	jmp	.L3
.L7:
	mov	rdi, QWORD PTR tuner_init_tab_unknown[rip]
	call	ARRAY_SIZE@PLT
	mov	r13, QWORD PTR tuner_init_tab_unknown[rip]
	jmp	.L19
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	af9013_init, .-af9013_init
	.comm	tuner_init_tab_unknown,8,8
	.comm	tuner_init_tab_tda18271,8,8
	.comm	tuner_init_tab_qt1010,8,8
	.comm	tuner_init_tab_mxl5005,8,8
	.comm	tuner_init_tab_mxl5003d,8,8
	.comm	tuner_init_tab_mt2060_2,8,8
	.comm	tuner_init_tab_mt2060,8,8
	.comm	tuner_init_tab_mc44s803,8,8
	.comm	tuner_init_tab_env77h11d5,8,8
	.comm	demod_init_tab,8,8
	.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_af9013.c_af9013_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012\000"
	.align	2
.LC1:
	.ascii	"load demod core settings\012\000"
	.align	2
.LC2:
	.ascii	"load tuner specific settings\012\000"
	.align	2
.LC3:
	.ascii	"failed %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	af9013_init, %function
af9013_init:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r5, [r0]
	ldr	r3, .L38
	ldr	r6, [r5, #28]
	sub	sp, sp, #20
	ldr	r1, .L38+4
	mov	r0, r6
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	dev_dbg
	mov	r3, #0
	mov	r2, #8
	ldr	r0, [r5, #24]
	ldr	r1, .L38+8
	bl	regmap_update_bits
	subs	r4, r0, #0
	beq	.L35
.L2:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L38+12
	bl	dev_dbg
.L1:
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L35:
	mov	r3, r4
	mov	r2, #2
	ldr	r1, .L38+16
	ldr	r0, [r5, #24]
	bl	regmap_update_bits
	subs	r4, r0, #0
	bne	.L2
	mov	r3, r4
	mov	r2, #16
	ldr	r1, .L38+16
	ldr	r0, [r5, #24]
	bl	regmap_update_bits
	subs	r4, r0, #0
	bne	.L2
	mov	r3, #4
	ldr	r2, [r5]
	ldr	r1, .L38+20
	ldr	r0, [r5, #24]
	bl	regmap_bulk_write
	subs	r4, r0, #0
	bne	.L2
	ldr	r3, [r5, #4]
	ldr	r2, .L38+24
	cmp	r3, r2
	beq	.L27
	bgt	.L4
	ldr	r2, .L38+28
	cmp	r3, r2
	beq	.L28
	ldr	r2, .L38+32
	cmp	r3, r2
	moveq	r4, #3
	bne	.L5
.L3:
	mov	r3, r4
	mov	r2, #15
	ldr	r1, .L38+36
	ldr	r0, [r5, #24]
	bl	regmap_update_bits
	subs	r4, r0, #0
	bne	.L2
	ldr	r0, [r5, #4]
	ldr	r1, .L38+40
	lsl	r0, r0, #19
	bl	div_u64
	lsr	r1, r0, #8
	lsr	lr, r0, #16
	and	r1, r1, #255
	and	ip, r0, #255
	and	lr, lr, #255
	str	r1, [sp, #4]
	mov	r3, #3
	mov	r2, sp
	ldr	r1, .L38+44
	ldr	r0, [r5, #24]
	str	lr, [sp, #8]
	str	ip, [sp]
	bl	regmap_bulk_write
	subs	r4, r0, #0
	bne	.L2
	ldr	r7, .L38+48
	ldr	r1, .L38+52
	mov	r0, r6
	bl	dev_dbg
	ldr	r0, [r7]
	bl	ARRAY_SIZE
	subs	r8, r0, #0
	ldr	r7, [r7]
	bgt	.L17
	b	.L18
.L37:
	add	r4, r4, #1
	cmp	r8, r4
	add	r7, r7, #12
	beq	.L18
.L17:
	ldm	r7, {r1, r2, r3}
	ldr	r0, [r5, #24]
	bl	regmap_update_bits
	cmp	r0, #0
	beq	.L37
	mov	r4, r0
	b	.L2
.L4:
	ldr	r2, .L38+56
	cmp	r3, r2
	beq	.L3
.L5:
	ldr	r3, .L38+60
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L2
.L28:
	mov	r4, #1
	b	.L3
.L27:
	mov	r4, #2
	b	.L3
.L18:
	mov	r0, r6
	ldr	r1, .L38+64
	bl	dev_dbg
	ldr	r3, [r5, #8]
	sub	r3, r3, #129
	cmp	r3, #11
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L9:
	.word	.L16
	.word	.L16
	.word	.L15
	.word	.L15
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L8
.L14:
	ldr	r4, .L38+68
	ldr	r0, [r4]
	bl	ARRAY_SIZE
	mov	r9, r0
	ldr	r7, [r4]
.L19:
	cmp	r9, #0
	movgt	r8, #0
	ble	.L24
.L23:
	ldm	r7, {r1, r2, r3}
	ldr	r0, [r5, #24]
	bl	regmap_update_bits
	subs	r4, r0, #0
	bne	.L2
	add	r8, r8, #1
	cmp	r9, r8
	add	r7, r7, #12
	bne	.L23
.L24:
	ldr	r2, [r5, #12]
	ldr	r3, [r5, #16]
	cmp	r2, #7
	lsl	r3, r3, #1
	orreq	r3, r3, #8
.L22:
	mov	r2, #14
	mov	r1, #54528
	ldr	r0, [r5, #24]
	bl	regmap_update_bits
	subs	r4, r0, #0
	bne	.L2
	mov	r3, #1
	ldr	r1, .L38+72
	mov	r2, r3
	ldr	r0, [r5, #24]
	bl	regmap_update_bits
	subs	r4, r0, #0
	bne	.L2
	mov	r3, #1
	str	r3, [r5, #20]
	b	.L1
.L15:
	ldr	r4, .L38+76
	ldr	r0, [r4]
	bl	ARRAY_SIZE
	ldr	r7, [r4]
	mov	r9, r0
	b	.L19
.L16:
	ldr	r4, .L38+80
	ldr	r0, [r4]
	bl	ARRAY_SIZE
	ldr	r7, [r4]
	mov	r9, r0
	b	.L19
.L8:
	ldr	r4, .L38+84
	ldr	r0, [r4]
	bl	ARRAY_SIZE
	ldr	r7, [r4]
	mov	r9, r0
	b	.L19
.L10:
	ldr	r4, .L38+88
	ldr	r0, [r4]
	bl	ARRAY_SIZE
	ldr	r7, [r4]
	mov	r9, r0
	b	.L19
.L11:
	ldr	r4, .L38+92
	ldr	r0, [r4]
	bl	ARRAY_SIZE
	ldr	r7, [r4]
	mov	r9, r0
	b	.L19
.L12:
	ldr	r4, .L38+96
	ldr	r0, [r4]
	bl	ARRAY_SIZE
	ldr	r7, [r4]
	mov	r9, r0
	b	.L19
.L13:
	ldr	r4, .L38+100
	ldr	r0, [r4]
	bl	ARRAY_SIZE
	ldr	r7, [r4]
	mov	r9, r0
	b	.L19
.L36:
	bl	__stack_chk_fail
.L7:
	ldr	r4, .L38+104
	ldr	r0, [r4]
	bl	ARRAY_SIZE
	ldr	r7, [r4]
	mov	r9, r0
	b	.L19
.L39:
	.align	2
.L38:
	.word	.LC4
	.word	.LC0
	.word	55098
	.word	.LC3
	.word	54295
	.word	39922
	.word	28000000
	.word	20480000
	.word	25000000
	.word	39890
	.word	1000000
	.word	53632
	.word	demod_init_tab
	.word	.LC1
	.word	28800000
	.word	EINVAL
	.word	.LC2
	.word	tuner_init_tab_mxl5005
	.word	55088
	.word	tuner_init_tab_qt1010
	.word	tuner_init_tab_tda18271
	.word	tuner_init_tab_env77h11d5
	.word	tuner_init_tab_mc44s803
	.word	tuner_init_tab_mt2060
	.word	tuner_init_tab_mt2060_2
	.word	tuner_init_tab_mxl5003d
	.word	tuner_init_tab_unknown
	.size	af9013_init, .-af9013_init
	.comm	tuner_init_tab_unknown,4,4
	.comm	tuner_init_tab_tda18271,4,4
	.comm	tuner_init_tab_qt1010,4,4
	.comm	tuner_init_tab_mxl5005,4,4
	.comm	tuner_init_tab_mxl5003d,4,4
	.comm	tuner_init_tab_mt2060_2,4,4
	.comm	tuner_init_tab_mt2060,4,4
	.comm	tuner_init_tab_mc44s803,4,4
	.comm	tuner_init_tab_env77h11d5,4,4
	.comm	demod_init_tab,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
