	.file	"extr_dm1105.c_frontend_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"could not attach frontend\n"
	.text
	.p2align 4
	.type	frontend_init, @function
frontend_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	cmp	eax, 128
	je	.L2
	cmp	eax, 129
	je	.L3
	lea	r12, 32[rdi]
.L41:
	mov	edi, DWORD PTR stv0299_attach[rip]
	lea	rsi, sharp_z0194a_config[rip]
	mov	edx, r12d
	xor	eax, eax
	call	dvb_attach@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rsi, rax
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR dm1105_set_voltage[rip]
	mov	r8d, DWORD PTR DVB_PLL_OPERA1[rip]
	mov	rcx, r12
	mov	edx, 96
	mov	edi, DWORD PTR dvb_pll_attach[rip]
	mov	QWORD PTR 8[rsi], rax
	xor	eax, eax
	call	dvb_attach@PLT
	mov	rsi, QWORD PTR 8[rbx]
	test	rsi, rsi
	je	.L13
.L16:
	lea	rdi, 16[rbx]
	call	dvb_register_frontend@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L43
.L17:
	xor	r12d, r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR GPIO15[rip]
	mov	edx, 1
	lea	r12, 36[rbx]
	call	dm1105_gpio_enable@PLT
	mov	esi, DWORD PTR GPIO15[rip]
	mov	rdi, rbx
	call	dm1105_gpio_clear@PLT
	mov	edi, 100
	call	msleep@PLT
	mov	esi, DWORD PTR GPIO15[rip]
	mov	rdi, rbx
	call	dm1105_gpio_set@PLT
	mov	edi, 200
	call	msleep@PLT
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L3:
	lea	r12, 32[rdi]
	mov	edi, DWORD PTR cx24116_attach[rip]
	lea	rsi, serit_sp2633_config[rip]
	xor	eax, eax
	mov	edx, r12d
	call	dvb_attach@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rsi, rax
	test	rax, rax
	je	.L10
.L37:
	mov	rax, QWORD PTR dm1105_set_voltage[rip]
	lea	rdi, 16[rbx]
	mov	QWORD PTR 8[rsi], rax
	call	dvb_register_frontend@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L17
.L43:
	mov	rdi, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rdi]
	test	rax, rax
	je	.L15
	call	rax
.L15:
	mov	QWORD PTR 8[rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR stv0288_attach[rip]
	lea	rsi, earda_config[rip]
	mov	edx, r12d
	xor	eax, eax
	call	dvb_attach@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rsi, rax
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR dm1105_set_voltage[rip]
	mov	edi, DWORD PTR stb6000_attach[rip]
	mov	rcx, r12
	mov	edx, 97
	mov	QWORD PTR 8[rsi], rax
	xor	eax, eax
	call	dvb_attach@PLT
	mov	rsi, QWORD PTR 8[rbx]
	test	rsi, rsi
	jne	.L16
.L13:
	mov	rdi, QWORD PTR 24[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR si21xx_attach[rip]
	lea	rsi, serit_config[rip]
	mov	edx, r12d
	xor	eax, eax
	call	dvb_attach@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rsi, rax
	test	rax, rax
	jne	.L37
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR ds3000_attach[rip]
	lea	rsi, dvbworld_ds3000_config[rip]
	mov	edx, r12d
	xor	eax, eax
	call	dvb_attach@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rsi, rax
	test	rax, rax
	je	.L13
	lea	rax, dvbworld_ts2020_config[rip]
	mov	edi, DWORD PTR ts2020_attach[rip]
	mov	rcx, r12
	lea	edx, [rax]
	xor	eax, eax
	call	dvb_attach@PLT
	mov	rsi, QWORD PTR 8[rbx]
	jmp	.L37
	.cfi_endproc
.LFE0:
	.size	frontend_init, .-frontend_init
	.comm	ts2020_attach,4,4
	.comm	stv0299_attach,4,4
	.comm	stv0288_attach,4,4
	.comm	stb6000_attach,4,4
	.comm	si21xx_attach,4,4
	.comm	sharp_z0194a_config,4,4
	.comm	serit_sp2633_config,4,4
	.comm	serit_config,4,4
	.comm	earda_config,4,4
	.comm	dvbworld_ts2020_config,4,4
	.comm	dvbworld_ds3000_config,4,4
	.comm	dvb_pll_attach,4,4
	.comm	ds3000_attach,4,4
	.comm	dm1105_set_voltage,8,8
	.comm	cx24116_attach,4,4
	.comm	GPIO15,4,4
	.comm	ENODEV,4,4
	.comm	DVB_PLL_OPERA1,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_dm1105.c_frontend_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not attach frontend\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	frontend_init, %function
frontend_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, [r0]
	mov	r4, r0
	cmp	r3, #128
	sub	sp, sp, #12
	beq	.L2
	cmp	r3, #129
	beq	.L3
	ldr	r3, .L44
	add	r5, r0, #16
.L41:
	ldr	r1, .L44+4
	mov	r2, r5
	ldr	r0, [r3]
	bl	dvb_attach
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r4, #4]
	beq	.L11
	ldr	r2, .L44+8
	ldr	r3, .L44+12
	ldr	ip, [r2]
	ldr	r0, [r3]
	ldr	r2, .L44+16
	str	ip, [r1, #4]
	str	r0, [sp]
	ldr	r0, [r2]
	mov	r3, r5
	mov	r2, #96
	bl	dvb_attach
	ldr	r1, [r4, #4]
	cmp	r1, #0
	beq	.L13
.L16:
	add	r0, r4, #8
	bl	dvb_register_frontend
	subs	r5, r0, #0
	movge	r5, #0
	blt	.L43
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r5, .L44+20
	mov	r2, #1
	ldr	r1, [r5]
	bl	dm1105_gpio_enable
	ldr	r1, [r5]
	mov	r0, r4
	bl	dm1105_gpio_clear
	mov	r0, #100
	bl	msleep
	ldr	r1, [r5]
	mov	r0, r4
	bl	dm1105_gpio_set
	mov	r0, #200
	bl	msleep
	add	r5, r4, #20
	ldr	r3, .L44
	b	.L41
.L3:
	ldr	r3, .L44+24
	add	r5, r0, #16
	ldr	r1, .L44+28
	mov	r2, r5
	ldr	r0, [r3]
	bl	dvb_attach
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r4, #4]
	beq	.L10
.L37:
	ldr	r3, .L44+8
	ldr	r3, [r3]
	str	r3, [r1, #4]
	b	.L16
.L43:
	ldr	r0, [r4, #4]
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L15
	blx	r3
.L15:
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L11:
	ldr	r3, .L44+32
	ldr	r1, .L44+36
	mov	r2, r5
	ldr	r0, [r3]
	bl	dvb_attach
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r4, #4]
	beq	.L12
	ldr	r3, .L44+8
	ldr	r2, .L44+40
	ldr	r0, [r3]
	mov	r3, r5
	str	r0, [r1, #4]
	ldr	r0, [r2]
	mov	r2, #97
	bl	dvb_attach
	ldr	r1, [r4, #4]
	cmp	r1, #0
	bne	.L16
.L13:
	ldr	r0, [r4, #12]
	ldr	r1, .L44+44
	bl	dev_err
	ldr	r3, .L44+48
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L12:
	ldr	r3, .L44+52
	ldr	r1, .L44+56
	mov	r2, r5
	ldr	r0, [r3]
	bl	dvb_attach
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r4, #4]
	bne	.L37
	b	.L13
.L10:
	ldr	r3, .L44+60
	ldr	r1, .L44+64
	mov	r2, r5
	ldr	r0, [r3]
	bl	dvb_attach
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r4, #4]
	beq	.L13
	ldr	r2, .L44+68
	mov	r3, r5
	ldr	r0, [r2]
	ldr	r2, .L44+72
	bl	dvb_attach
	ldr	r3, .L44+8
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	str	r3, [r1, #4]
	b	.L16
.L45:
	.align	2
.L44:
	.word	stv0299_attach
	.word	sharp_z0194a_config
	.word	dm1105_set_voltage
	.word	DVB_PLL_OPERA1
	.word	dvb_pll_attach
	.word	GPIO15
	.word	cx24116_attach
	.word	serit_sp2633_config
	.word	stv0288_attach
	.word	earda_config
	.word	stb6000_attach
	.word	.LC0
	.word	ENODEV
	.word	si21xx_attach
	.word	serit_config
	.word	ds3000_attach
	.word	dvbworld_ds3000_config
	.word	ts2020_attach
	.word	dvbworld_ts2020_config
	.size	frontend_init, .-frontend_init
	.comm	ts2020_attach,4,4
	.comm	stv0299_attach,4,4
	.comm	stv0288_attach,4,4
	.comm	stb6000_attach,4,4
	.comm	si21xx_attach,4,4
	.comm	sharp_z0194a_config,4,4
	.comm	serit_sp2633_config,4,4
	.comm	serit_config,4,4
	.comm	earda_config,4,4
	.comm	dvbworld_ts2020_config,4,4
	.comm	dvbworld_ds3000_config,4,4
	.comm	dvb_pll_attach,4,4
	.comm	ds3000_attach,4,4
	.comm	dm1105_set_voltage,4,4
	.comm	cx24116_attach,4,4
	.comm	GPIO15,4,4
	.comm	ENODEV,4,4
	.comm	DVB_PLL_OPERA1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
