	.file	"extr_dw2102.c_stv0288_frontend_attach.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Attached stv0288+stb6000!"
	.text
	.p2align 4
	.type	stv0288_frontend_attach, @function
stv0288_frontend_attach:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, earda_config[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	movabs	rax, 4294967303
	mov	QWORD PTR [rsp], rax
	mov	rax, QWORD PTR [rdi]
	mov	edi, DWORD PTR stv0288_attach[rip]
	lea	rdx, 4[rax]
	xor	eax, eax
	call	dvb_attach@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, QWORD PTR [rax]
	test	rsi, rsi
	je	.L7
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR stb6000_attach[rip]
	mov	edx, 97
	lea	rcx, 4[rax]
	xor	eax, eax
	call	dvb_attach@PLT
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR dw210x_set_voltage[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	xor	ecx, ecx
	mov	r9d, 2
	mov	esi, 138
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR DW210X_WRITE_MSG[rip]
	mov	rax, QWORD PTR [rbx]
	push	rdx
	.cfi_def_cfa_offset 64
	xor	edx, edx
	mov	edi, DWORD PTR [rax]
	lea	r8, 16[rsp]
	call	dw210x_op_rw@PLT
	lea	rdi, .LC0[rip]
	call	info@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rdx
	.cfi_def_cfa_offset 48
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stv0288_frontend_attach, .-stv0288_frontend_attach
	.comm	stv0288_attach,4,4
	.comm	stb6000_attach,4,4
	.comm	earda_config,4,4
	.comm	dw210x_set_voltage,4,4
	.comm	EIO,4,4
	.comm	DW210X_WRITE_MSG,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_dw2102.c_stv0288_frontend_attach.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"Attached stv0288+stb6000!\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stv0288_frontend_attach, %function
stv0288_frontend_attach:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	sub	sp, sp, #32
	ldr	r3, .L10
	add	r5, sp, #20
	ldr	r2, [r0]
	ldr	ip, .L10+4
	ldm	r3, {r0, r1}
	stm	r5, {r0, r1}
	ldr	r3, .L10+8
	ldr	r1, .L10+12
	ldr	r0, [ip]
	add	r2, r2, #4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r6, [r4, #4]
	bl	dvb_attach
	ldr	r3, [r4, #4]
	str	r0, [r6]
	ldr	r1, [r3]
	cmp	r1, #0
	beq	.L7
	ldr	r3, [r4]
	ldr	r2, .L10+16
	add	r3, r3, #4
	ldr	r0, [r2]
	mov	r2, #97
	bl	dvb_attach
	cmp	r0, #0
	beq	.L7
	mov	r3, #0
	mov	r2, #2
	ldr	r1, [r4, #4]
	ldr	r0, .L10+20
	ldr	r1, [r1]
	ldr	ip, [r0]
	ldr	r0, [r4]
	str	ip, [r1]
	ldr	r1, .L10+24
	ldr	r0, [r0]
	ldr	r1, [r1]
	str	r2, [sp, #4]
	str	r1, [sp, #8]
	mov	r2, r3
	mov	r1, #138
	str	r5, [sp]
	bl	dw210x_op_rw
	ldr	r0, .L10+28
	bl	info
	mov	r0, #0
	b	.L1
.L7:
	ldr	r3, .L10+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L10+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LANCHOR0
	.word	stv0288_attach
	.word	.LC2
	.word	earda_config
	.word	stb6000_attach
	.word	dw210x_set_voltage
	.word	DW210X_WRITE_MSG
	.word	.LC1
	.word	EIO
	.size	stv0288_frontend_attach, .-stv0288_frontend_attach
	.comm	stv0288_attach,4,4
	.comm	stb6000_attach,4,4
	.comm	earda_config,4,4
	.comm	dw210x_set_voltage,4,4
	.comm	EIO,4,4
	.comm	DW210X_WRITE_MSG,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	7
	.word	1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
