	.file	"extr_af9015.c_af9015_tuner_attach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"adap id %u\n"
.LC1:
	.string	"unknown tuner, tuner id %02x\n"
	.text
	.p2align 4
	.type	af9015_tuner_attach, @function
af9015_tuner_attach:
.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
	mov	rbx, rdi
	call	adap_to_d@PLT
	mov	r12, rax
	mov	rdi, rax
	call	d_to_priv@PLT
	mov	r12, QWORD PTR [r12]
	mov	rdx, QWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	mov	rbp, rax
	mov	rdi, r12
	call	dev_dbg@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 32[rbp]
	mov	rdi, QWORD PTR [rdx+rax*8]
	sal	rax, 4
	add	rax, QWORD PTR 16[rbp]
	call	[QWORD PTR 8[rax]]
	mov	rdi, QWORD PTR [rbx]
	mov	rcx, rdi
	sal	rcx, 4
	add	rcx, QWORD PTR 16[rbp]
	mov	edx, DWORD PTR [rcx]
	lea	ecx, -129[rdx]
	cmp	ecx, 11
	ja	.L2
	lea	rsi, .L4[rip]
	movsx	rcx, DWORD PTR [rsi+rcx*4]
	add	rcx, rsi
	notrack jmp	rcx
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L12-.L4
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR 24[rbp]
	mov	rsi, QWORD PTR 8[rbx]
	mov	r8d, DWORD PTR [rdx+rdi*4]
	lea	rdi, af9015_mt2060_config[rip]
	mov	rsi, QWORD PTR [rsi]
	mov	edx, eax
	lea	ecx, [rdi]
	mov	edi, DWORD PTR mt2060_attach[rip]
	xor	eax, eax
	call	dvb_attach@PLT
	test	rax, rax
	je	.L25
	.p2align 4,,10
	.p2align 3
.L15:
	xor	r8d, r8d
.L14:
	mov	rax, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	test	rdx, rdx
	je	.L16
	mov	rsi, QWORD PTR [rbx]
	mov	rcx, QWORD PTR 8[rbp]
	mov	QWORD PTR [rcx+rsi*8], rdx
	mov	rdx, QWORD PTR af9015_tuner_init[rip]
	mov	QWORD PTR 8[rax], rdx
.L16:
	mov	rdx, QWORD PTR [rax]
	test	rdx, rdx
	je	.L1
	mov	rsi, QWORD PTR [rbx]
	mov	rcx, QWORD PTR 0[rbp]
	mov	QWORD PTR [rcx+rsi*8], rdx
	mov	rdx, QWORD PTR af9015_tuner_sleep[rip]
	mov	QWORD PTR [rax], rdx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r8d
	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	rsi, QWORD PTR 8[rbx]
	lea	rdi, af9015_qt1010_config[rip]
	mov	edx, eax
	xor	eax, eax
	lea	ecx, [rdi]
	mov	edi, DWORD PTR qt1010_attach[rip]
	mov	rsi, QWORD PTR [rsi]
	call	dvb_attach@PLT
	test	rax, rax
	jne	.L15
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rdi, af9015_mxl5005_config[rip]
	mov	rsi, QWORD PTR 8[rbx]
	lea	ecx, [rdi]
.L27:
	mov	rsi, QWORD PTR [rsi]
	mov	edi, DWORD PTR mxl5005s_attach[rip]
	mov	edx, eax
	xor	eax, eax
	call	dvb_attach@PLT
	test	rax, rax
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r8d, DWORD PTR ENODEV[rip]
	neg	r8d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rdx, af9015_mxl5003_config[rip]
	mov	rsi, QWORD PTR 8[rbx]
	lea	ecx, [rdx]
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, QWORD PTR 8[rbx]
	lea	rdi, af9015_tda18218_config[rip]
	mov	edx, eax
	xor	eax, eax
	lea	ecx, [rdi]
	mov	edi, DWORD PTR tda18218_attach[rip]
	mov	rsi, QWORD PTR [rsi]
	call	dvb_attach@PLT
	test	rax, rax
	jne	.L15
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, QWORD PTR 8[rbx]
	lea	rdx, af9015_mc44s803_config[rip]
	mov	edi, DWORD PTR mc44s803_attach[rip]
	lea	ecx, [rdx]
	mov	edx, eax
	xor	eax, eax
	mov	rsi, QWORD PTR [rsi]
	call	dvb_attach@PLT
	test	rax, rax
	jne	.L15
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, QWORD PTR 8[rbx]
	mov	r8d, DWORD PTR DVB_PLL_TDA665X[rip]
	mov	ecx, eax
	mov	edx, 96
	mov	edi, DWORD PTR dvb_pll_attach[rip]
	xor	eax, eax
	mov	rsi, QWORD PTR [rsi]
	call	dvb_attach@PLT
	test	rax, rax
	jne	.L15
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR tda18271_attach[rip]
	mov	ecx, eax
	xor	eax, eax
	lea	r8, af9015_tda18271_config[rip]
	mov	edx, 96
	mov	rsi, QWORD PTR [rsi]
	call	dvb_attach@PLT
	test	rax, rax
	jne	.L15
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rsi, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR mxl5007t_attach[rip]
	mov	edx, eax
	xor	eax, eax
	lea	r8, af9015_mxl5007t_config[rip]
	mov	ecx, 96
	mov	rsi, QWORD PTR [rsi]
	call	dvb_attach@PLT
	test	rax, rax
	jne	.L15
	jmp	.L25
.L2:
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	dev_err@PLT
	jmp	.L25
	.cfi_endproc
.LFE0:
	.size	af9015_tuner_attach, .-af9015_tuner_attach
	.comm	tda18271_attach,4,4
	.comm	tda18218_attach,4,4
	.comm	qt1010_attach,4,4
	.comm	mxl5007t_attach,4,4
	.comm	mxl5005s_attach,4,4
	.comm	mt2060_attach,4,4
	.comm	mc44s803_attach,4,4
	.comm	dvb_pll_attach,4,4
	.comm	af9015_tuner_sleep,8,8
	.comm	af9015_tuner_init,8,8
	.comm	af9015_tda18271_config,4,4
	.comm	af9015_tda18218_config,4,4
	.comm	af9015_qt1010_config,4,4
	.comm	af9015_mxl5007t_config,4,4
	.comm	af9015_mxl5005_config,4,4
	.comm	af9015_mxl5003_config,4,4
	.comm	af9015_mt2060_config,4,4
	.comm	af9015_mc44s803_config,4,4
	.comm	ENODEV,4,4
	.comm	DVB_PLL_TDA665X,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_af9015.c_af9015_tuner_attach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"adap id %u\012\000"
	.align	2
.LC1:
	.ascii	"unknown tuner, tuner id %02x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	af9015_tuner_attach, %function
af9015_tuner_attach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r4, r0
	bl	adap_to_d
	mov	r6, r0
	bl	d_to_priv
	mov	r5, r0
	ldr	r6, [r6]
	ldr	r2, [r4]
	ldr	r1, .L27
	mov	r0, r6
	bl	dev_dbg
	ldr	r2, [r4]
	ldr	r3, [r5, #8]
	ldr	r1, [r5, #16]
	add	r3, r3, r2, lsl #3
	ldr	r0, [r1, r2, lsl #2]
	ldr	r3, [r3, #4]
	blx	r3
	ldr	r1, [r5, #8]
	ldr	ip, [r4]
	mov	r2, r0
	ldr	lr, [r1, ip, lsl #3]
	sub	r1, lr, #129
	cmp	r1, #11
	ldrls	pc, [pc, r1, asl #2]
	b	.L2
.L4:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L6
	.word	.L5
	.word	.L3
.L6:
	ldr	r3, [r5, #12]
	ldr	r1, [r4, #4]
	ldr	r0, [r3, ip, lsl #2]
	ldr	r3, .L27+4
	ldr	r1, [r1]
	str	r0, [sp]
	ldr	r0, [r3]
	ldr	r3, .L27+8
	bl	dvb_attach
	cmp	r0, #0
	beq	.L25
.L15:
	mov	r0, #0
.L14:
	ldr	r3, [r4, #4]
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L16
	ldr	lr, [r4]
	ldr	ip, [r5, #4]
	ldr	r1, .L27+12
	str	r2, [ip, lr, lsl #2]
	ldr	r2, [r1]
	str	r2, [r3, #4]
.L16:
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L1
	ldr	lr, [r4]
	ldr	ip, [r5]
	ldr	r1, .L27+16
	str	r2, [ip, lr, lsl #2]
	ldr	r2, [r1]
	str	r2, [r3]
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r1, [r4, #4]
	ldr	r3, .L27+20
	ldr	r1, [r1]
	ldr	r0, [r3]
	ldr	r3, .L27+24
	bl	dvb_attach
	cmp	r0, #0
	bne	.L15
.L25:
	ldr	r3, .L27+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L14
.L8:
	ldr	r1, [r4, #4]
	ldr	r3, .L27+32
	ldr	r1, [r1]
	ldr	r0, [r3]
	ldr	r3, .L27+36
	bl	dvb_attach
	cmp	r0, #0
	bne	.L15
	b	.L25
.L7:
	ldr	r1, [r4, #4]
	ldr	r3, .L27+32
	ldr	r1, [r1]
	ldr	r0, [r3]
	ldr	r3, .L27+40
	bl	dvb_attach
	cmp	r0, #0
	bne	.L15
	b	.L25
.L11:
	ldr	r1, [r4, #4]
	ldr	r3, .L27+44
	ldr	r1, [r1]
	ldr	r0, [r3]
	ldr	r3, .L27+48
	bl	dvb_attach
	cmp	r0, #0
	bne	.L15
	b	.L25
.L5:
	ldr	r1, [r4, #4]
	ldr	r3, .L27+52
	ldr	r1, [r1]
	ldr	r0, [r3]
	ldr	r3, .L27+56
	bl	dvb_attach
	cmp	r0, #0
	bne	.L15
	b	.L25
.L3:
	ldr	r3, .L27+60
	ldr	r1, [r4, #4]
	ldr	ip, [r3]
	ldr	r0, .L27+64
	ldr	r1, [r1]
	str	ip, [sp]
	mov	r3, r2
	ldr	r0, [r0]
	mov	r2, #96
	bl	dvb_attach
	cmp	r0, #0
	bne	.L15
	b	.L25
.L12:
	ldr	r3, [r4, #4]
	ldr	ip, .L27+68
	ldr	r0, .L27+72
	ldr	r1, [r3]
	ldr	r0, [r0]
	mov	r3, r2
	str	ip, [sp]
	mov	r2, #96
	bl	dvb_attach
	cmp	r0, #0
	bne	.L15
	b	.L25
.L9:
	ldr	r3, [r4, #4]
	ldr	r0, .L27+76
	ldr	r1, [r3]
	ldr	r3, .L27+80
	ldr	r0, [r0]
	str	r3, [sp]
	mov	r3, #96
	bl	dvb_attach
	cmp	r0, #0
	bne	.L15
	b	.L25
.L2:
	mov	r2, lr
	mov	r0, r6
	ldr	r1, .L27+84
	bl	dev_err
	b	.L25
.L28:
	.align	2
.L27:
	.word	.LC0
	.word	mt2060_attach
	.word	af9015_mt2060_config
	.word	af9015_tuner_init
	.word	af9015_tuner_sleep
	.word	qt1010_attach
	.word	af9015_qt1010_config
	.word	ENODEV
	.word	mxl5005s_attach
	.word	af9015_mxl5005_config
	.word	af9015_mxl5003_config
	.word	tda18218_attach
	.word	af9015_tda18218_config
	.word	mc44s803_attach
	.word	af9015_mc44s803_config
	.word	DVB_PLL_TDA665X
	.word	dvb_pll_attach
	.word	af9015_tda18271_config
	.word	tda18271_attach
	.word	mxl5007t_attach
	.word	af9015_mxl5007t_config
	.word	.LC1
	.size	af9015_tuner_attach, .-af9015_tuner_attach
	.comm	tda18271_attach,4,4
	.comm	tda18218_attach,4,4
	.comm	qt1010_attach,4,4
	.comm	mxl5007t_attach,4,4
	.comm	mxl5005s_attach,4,4
	.comm	mt2060_attach,4,4
	.comm	mc44s803_attach,4,4
	.comm	dvb_pll_attach,4,4
	.comm	af9015_tuner_sleep,4,4
	.comm	af9015_tuner_init,4,4
	.comm	af9015_tda18271_config,4,4
	.comm	af9015_tda18218_config,4,4
	.comm	af9015_qt1010_config,4,4
	.comm	af9015_mxl5007t_config,4,4
	.comm	af9015_mxl5005_config,4,4
	.comm	af9015_mxl5003_config,4,4
	.comm	af9015_mt2060_config,4,4
	.comm	af9015_mc44s803_config,4,4
	.comm	ENODEV,4,4
	.comm	DVB_PLL_TDA665X,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
