	.file	"304922.c"
	.intel_syntax noprefix
	.text
	.globl	CX23885_HW_AV_CORE
	.bss
	.align 4
	.type	CX23885_HW_AV_CORE, @object
	.size	CX23885_HW_AV_CORE, 4
CX23885_HW_AV_CORE:
	.zero	4
	.globl	CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO
	.align 8
	.type	CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO, @object
	.size	CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO, 8
CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO:
	.zero	8
	.globl	core
	.align 4
	.type	core, @object
	.size	core, 4
core:
	.zero	4
	.globl	enable_885_ir
	.align 4
	.type	enable_885_ir, @object
	.size	enable_885_ir, 4
enable_885_ir:
	.zero	4
	.globl	load_fw
	.align 4
	.type	load_fw, @object
	.size	load_fw, 4
load_fw:
	.zero	4
	.globl	netup_card_rev
	.align 4
	.type	netup_card_rev, @object
	.size	netup_card_rev, 4
netup_card_rev:
	.zero	4
	.globl	netup_jtag_io
	.align 4
	.type	netup_jtag_io, @object
	.size	netup_jtag_io, 4
netup_jtag_io:
	.zero	4
	.section	.rodata
.LC0:
	.string	"cx25840"
.LC1:
	.string	"cs3308"
.LC2:
	.string	"dvb-netup-altera-01.fw"
.LC3:
	.string	"configure"
.LC4:
	.string	"dvb-netup-altera-04.fw"
	.align 8
.LC5:
	.string	"NetUP card rev=0x%x fw_filename=%s\n"
	.align 8
.LC6:
	.string	"did not find the firmware file '%s'. You can use <kernel_dir>/scripts/get_dvb_firmware to get the firmware."
	.text
	.globl	cx23885_card_setup
	.type	cx23885_card_setup, @function
cx23885_card_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 72
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 48
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	DWORD PTR 12[rax], 80
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	add	rax, 12
	mov	edx, 1024
	lea	rsi, eeprom.1[rip]
	mov	rdi, rax
	call	tveeprom_read@PLT
.L2:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, -128
	cmp	eax, 45
	ja	.L3
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L5[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L5[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L8-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L7-.L5
	.long	.L7-.L5
	.long	.L7-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.long	.L4-.L5
	.text
.L6:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L48
	mov	eax, DWORD PTR eeprom.1[rip+512]
	cmp	eax, 132
	je	.L10
	lea	rdx, eeprom.1[rip+768]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	hauppauge_eeprom@PLT
	jmp	.L48
.L10:
	lea	rdx, eeprom.1[rip+512]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	hauppauge_eeprom@PLT
	jmp	.L48
.L7:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L49
	lea	rdx, eeprom.1[rip+512]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	hauppauge_eeprom@PLT
	jmp	.L49
.L4:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L50
	lea	rdx, eeprom.1[rip+768]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	hauppauge_eeprom@PLT
	jmp	.L50
.L8:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	add	rax, 16
	mov	DWORD PTR 12[rax], 80
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	add	rax, 16
	add	rax, 12
	mov	edx, 1024
	lea	rsi, eeprom.1[rip]
	mov	rdi, rax
	call	tveeprom_read@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L51
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, eeprom.1[rip]
	mov	rdi, rax
	call	viewcast_eeprom@PLT
	jmp	.L51
.L48:
	nop
	jmp	.L3
.L49:
	nop
	jmp	.L3
.L50:
	nop
	jmp	.L3
.L51:
	nop
.L3:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	sub	eax, 130
	cmp	eax, 58
	ja	.L14
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L16[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L16[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L16:
	.long	.L17-.L16
	.long	.L17-.L16
	.long	.L17-.L16
	.long	.L29-.L16
	.long	.L31-.L16
	.long	.L31-.L16
	.long	.L30-.L16
	.long	.L17-.L16
	.long	.L29-.L16
	.long	.L29-.L16
	.long	.L28-.L16
	.long	.L27-.L16
	.long	.L27-.L16
	.long	.L14-.L16
	.long	.L27-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L25-.L16
	.long	.L26-.L16
	.long	.L22-.L16
	.long	.L22-.L16
	.long	.L22-.L16
	.long	.L22-.L16
	.long	.L14-.L16
	.long	.L25-.L16
	.long	.L24-.L16
	.long	.L23-.L16
	.long	.L14-.L16
	.long	.L23-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L22-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L21-.L16
	.long	.L21-.L16
	.long	.L21-.L16
	.long	.L20-.L16
	.long	.L17-.L16
	.long	.L19-.L16
	.long	.L17-.L16
	.long	.L19-.L16
	.long	.L18-.L16
	.long	.L17-.L16
	.long	.L17-.L16
	.long	.L14-.L16
	.long	.L14-.L16
	.long	.L15-.L16
	.text
.L15:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 4
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 270
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L21:
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
.L20:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L23:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 270
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 8[rax], 8192
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 12[rax], 4656076
	mov	esi, 12
	mov	edi, 1245572
	call	cx_write@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L30:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 4
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L17:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 5
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L29:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L31:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	tbs_card_init@PLT
	jmp	.L32
.L27:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 5
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L28:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 5
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L24:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L26:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L19:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 5
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 8
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L18:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 5
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 14
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L25:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 5
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L22:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	jmp	.L32
.L14:
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 12
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rdx, QWORD PTR CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO[rip]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
.L32:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, -128
	cmp	eax, 60
	ja	.L33
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L35[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L35[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L35:
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L33-.L35
	.long	.L36-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L33-.L35
	.long	.L33-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L33-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L33-.L35
	.long	.L33-.L35
	.long	.L33-.L35
	.long	.L34-.L35
	.long	.L33-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L33-.L35
	.long	.L33-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L33-.L35
	.long	.L34-.L35
	.long	.L33-.L35
	.long	.L34-.L35
	.long	.L33-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L33-.L35
	.long	.L33-.L35
	.long	.L34-.L35
	.long	.L33-.L35
	.long	.L33-.L35
	.long	.L33-.L35
	.long	.L33-.L35
	.long	.L33-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.long	.L34-.L35
	.text
.L36:
	mov	eax, DWORD PTR enable_885_ir[rip]
	test	eax, eax
	je	.L52
.L34:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	add	rax, 32
	lea	rsi, 8[rax]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 24
	mov	r8d, 0
	mov	ecx, 68
	lea	rdx, .LC0[rip]
	mov	rdi, rax
	call	v4l2_i2c_new_subdev@PLT
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR 32[rdx], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L53
	mov	rax, QWORD PTR -88[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	v4l2_set_subdev_hostdata@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	edx, DWORD PTR CX23885_HW_AV_CORE[rip]
	mov	DWORD PTR [rax], edx
	mov	edx, DWORD PTR load_fw[rip]
	mov	ecx, DWORD PTR core[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	esi, ecx
	mov	rdi, rax
	call	v4l2_subdev_call@PLT
	jmp	.L53
.L52:
	nop
	jmp	.L33
.L53:
	nop
.L33:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 128
	je	.L38
	cmp	eax, 129
	jne	.L39
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rsi, 8[rax]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 24
	mov	r8d, 0
	mov	ecx, 65
	lea	rdx, .LC1[rip]
	mov	rdi, rax
	call	v4l2_i2c_new_subdev@PLT
	jmp	.L39
.L38:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rsi, 8[rax]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 24
	mov	r8d, 0
	mov	ecx, 64
	lea	rdx, .LC1[rip]
	mov	rdi, rax
	call	v4l2_i2c_new_subdev@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rsi, 8[rax]
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 24
	mov	r8d, 0
	mov	ecx, 65
	lea	rdx, .LC1[rip]
	mov	rdi, rax
	call	v4l2_i2c_new_subdev@PLT
	nop
.L39:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 138
	je	.L40
	cmp	eax, 139
	jne	.L54
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	netup_initialize@PLT
	jmp	.L41
.L40:
	lea	rax, .LC2[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR netup_jtag_io[rip]
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	netup_initialize@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	add	rax, 8
	lea	rsi, cinfo.0[rip]
	mov	rdi, rax
	call	netup_get_card_info@PLT
	mov	eax, DWORD PTR netup_card_rev[rip]
	test	eax, eax
	je	.L42
	mov	eax, DWORD PTR netup_card_rev[rip]
	mov	DWORD PTR cinfo.0[rip], eax
.L42:
	mov	eax, DWORD PTR cinfo.0[rip]
	cmp	eax, 4
	jne	.L43
	lea	rax, .LC4[rip]
	mov	QWORD PTR -64[rbp], rax
	jmp	.L44
.L43:
	lea	rax, .LC2[rip]
	mov	QWORD PTR -64[rbp], rax
	nop
.L44:
	mov	eax, DWORD PTR cinfo.0[rip]
	mov	rdx, QWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	call	pr_info@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, rax
	mov	rcx, QWORD PTR -64[rbp]
	lea	rax, -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	request_firmware@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L45
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	pr_err@PLT
	jmp	.L46
.L45:
	mov	rdx, QWORD PTR -72[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	altera_init@PLT
.L46:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	release_firmware@PLT
	nop
.L41:
.L54:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	cx23885_card_setup, .-cx23885_card_setup
	.local	eeprom.1
	.comm	eeprom.1,1024,32
	.local	cinfo.0
	.comm	cinfo.0,4,4
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"304922.c"
	.text
	.comm	CX23885_HW_AV_CORE,4,4
	.comm	CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO,4,4
	.comm	core,4,4
	.comm	enable_885_ir,4,4
	.comm	load_fw,4,4
	.comm	netup_card_rev,4,4
	.comm	netup_jtag_io,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cx25840\000"
	.align	2
.LC1:
	.ascii	"cs3308\000"
	.align	2
.LC2:
	.ascii	"dvb-netup-altera-01.fw\000"
	.align	2
.LC3:
	.ascii	"configure\000"
	.align	2
.LC4:
	.ascii	"dvb-netup-altera-04.fw\000"
	.align	2
.LC5:
	.ascii	"NetUP card rev=0x%x fw_filename=%s\012\000"
	.align	2
.LC6:
	.ascii	"did not find the firmware file '%s'. You can use <k"
	.ascii	"ernel_dir>/scripts/get_dvb_firmware to get the firm"
	.ascii	"ware.\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cx23885_card_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx23885_card_setup, %function
cx23885_card_setup:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	add	r3, r3, #44
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-48]
	add	r3, r3, #24
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	mov	r2, #80
	str	r2, [r3, #8]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	add	r3, r3, #8
	mov	r2, #1024
	ldr	r1, .L55+4
	mov	r0, r3
	bl	tveeprom_read
.L2:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	sub	r3, r3, #128
	cmp	r3, #45
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L8
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L3
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L4
	.word	.L6
	.word	.L4
	.word	.L4
.L6:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L48
	ldr	r3, .L55+4
	ldr	r3, [r3, #512]
	cmp	r3, #132
	beq	.L10
	ldr	r3, .L55+8
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	hauppauge_eeprom
	b	.L48
.L10:
	ldr	r3, .L55+12
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	hauppauge_eeprom
	b	.L48
.L7:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L49
	ldr	r3, .L55+12
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	hauppauge_eeprom
	b	.L49
.L4:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L55+8
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	hauppauge_eeprom
	b	.L50
.L8:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	add	r3, r3, #12
	mov	r2, #80
	str	r2, [r3, #8]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	add	r3, r3, #12
	add	r3, r3, #8
	mov	r2, #1024
	ldr	r1, .L55+4
	mov	r0, r3
	bl	tveeprom_read
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L51
	ldr	r1, .L55+4
	ldr	r0, [fp, #-48]
	bl	viewcast_eeprom
	b	.L51
.L48:
	nop
	b	.L3
.L49:
	nop
	b	.L3
.L50:
	nop
	b	.L3
.L51:
	nop
.L3:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	sub	r3, r3, #130
	cmp	r3, #58
	ldrls	pc, [pc, r3, asl #2]
	b	.L14
.L16:
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L29
	.word	.L31
	.word	.L31
	.word	.L30
	.word	.L17
	.word	.L29
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L27
	.word	.L14
	.word	.L27
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L25
	.word	.L26
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L22
	.word	.L14
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L14
	.word	.L23
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L22
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L20
	.word	.L17
	.word	.L19
	.word	.L17
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L17
	.word	.L14
	.word	.L14
	.word	.L15
.L15:
	ldr	r3, [fp, #-36]
	mov	r2, #4
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	ldr	r2, .L55+20
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	b	.L32
.L21:
	ldr	r3, [fp, #-32]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
.L20:
	ldr	r3, [fp, #-36]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	b	.L32
.L23:
	ldr	r3, [fp, #-36]
	ldr	r2, .L55+20
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-36]
	mov	r2, #8192
	str	r2, [r3, #8]
	ldr	r3, [fp, #-36]
	ldr	r2, .L55+24
	str	r2, [r3, #12]
	mov	r1, #12
	ldr	r0, .L55+28
	bl	cx_write
	ldr	r3, [fp, #-32]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	b	.L32
.L30:
	ldr	r3, [fp, #-36]
	mov	r2, #4
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	b	.L32
.L17:
	ldr	r3, [fp, #-36]
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	b	.L32
.L29:
	ldr	r3, [fp, #-36]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	b	.L32
.L31:
	ldr	r3, [fp, #-36]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	ldr	r0, [fp, #-48]
	bl	tbs_card_init
	b	.L32
.L27:
	ldr	r3, [fp, #-36]
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	b	.L32
.L28:
	ldr	r3, [fp, #-36]
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	b	.L32
.L24:
	ldr	r3, [fp, #-36]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	b	.L32
.L26:
	ldr	r3, [fp, #-36]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	b	.L32
.L19:
	ldr	r3, [fp, #-36]
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	mov	r2, #8
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	b	.L32
.L18:
	ldr	r3, [fp, #-36]
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	mov	r2, #14
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	b	.L32
.L25:
	ldr	r3, [fp, #-36]
	mov	r2, #5
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	b	.L32
.L22:
	ldr	r3, [fp, #-36]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
	b	.L32
.L14:
	ldr	r3, [fp, #-32]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, .L55+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3, #16]
.L32:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	sub	r3, r3, #128
	cmp	r3, #60
	ldrls	pc, [pc, r3, asl #2]
	b	.L33
.L35:
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L33
	.word	.L36
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L33
	.word	.L33
	.word	.L34
	.word	.L34
	.word	.L33
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L34
	.word	.L33
	.word	.L34
	.word	.L34
	.word	.L33
	.word	.L33
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L33
	.word	.L34
	.word	.L33
	.word	.L34
	.word	.L33
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L33
	.word	.L33
	.word	.L34
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
	.word	.L34
.L36:
	ldr	r3, .L55+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L52
.L34:
	ldr	r3, [fp, #-48]
	add	r0, r3, #12
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	add	r3, r3, #24
	add	r1, r3, #4
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #68
	ldr	r2, .L55+36
	bl	v4l2_i2c_new_subdev
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-48]
	add	r3, r3, #20
	mov	r1, r3
	mov	r0, r2
	bl	v4l2_set_subdev_hostdata
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	ldr	r2, .L55+40
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #16]
	ldr	r2, .L55+44
	ldr	r1, [r2]
	ldr	r2, .L55+48
	ldr	r2, [r2]
	mov	r0, r3
	bl	v4l2_subdev_call
	b	.L53
.L52:
	nop
	b	.L33
.L53:
	nop
.L33:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	cmp	r3, #128
	beq	.L38
	cmp	r3, #129
	bne	.L39
	ldr	r3, [fp, #-48]
	add	r0, r3, #12
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	add	r1, r3, #4
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #65
	ldr	r2, .L55+52
	bl	v4l2_i2c_new_subdev
	b	.L39
.L38:
	ldr	r3, [fp, #-48]
	add	r0, r3, #12
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	add	r1, r3, #4
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #64
	ldr	r2, .L55+52
	bl	v4l2_i2c_new_subdev
	ldr	r3, [fp, #-48]
	add	r0, r3, #12
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	add	r1, r3, #4
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #65
	ldr	r2, .L55+52
	bl	v4l2_i2c_new_subdev
	nop
.L39:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	cmp	r3, #138
	beq	.L40
	cmp	r3, #139
	bne	.L54
	ldr	r0, [fp, #-48]
	bl	netup_initialize
	b	.L41
.L40:
	ldr	r3, .L55+56
	str	r3, [fp, #-40]
	ldr	r3, .L55+60
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
	ldr	r3, .L55+64
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-48]
	bl	netup_initialize
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	add	r3, r3, #4
	ldr	r1, .L55+68
	mov	r0, r3
	bl	netup_get_card_info
	ldr	r3, .L55+72
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L42
	ldr	r3, .L55+72
	ldr	r3, [r3]
	ldr	r2, .L55+68
	str	r3, [r2]
.L42:
	ldr	r3, .L55+68
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L43
	ldr	r3, .L55+76
	str	r3, [fp, #-40]
	b	.L44
.L43:
	ldr	r3, .L55+56
	str	r3, [fp, #-40]
	nop
.L44:
	ldr	r3, .L55+68
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	mov	r1, r3
	ldr	r0, .L55+80
	bl	pr_info
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #4]
	mov	r2, r3
	sub	r3, fp, #44
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	request_firmware
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L45
	ldr	r1, [fp, #-40]
	ldr	r0, .L55+84
	bl	pr_err
	b	.L46
.L45:
	ldr	r2, [fp, #-44]
	sub	r3, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	altera_init
.L46:
	ldr	r3, [fp, #-44]
	mov	r0, r3
	bl	release_firmware
	nop
.L41:
.L54:
	nop
	ldr	r3, .L55
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC7
	.word	eeprom.4299
	.word	eeprom.4299+768
	.word	eeprom.4299+512
	.word	CX23885_SRC_SEL_PARALLEL_MPEG_VIDEO
	.word	270
	.word	4656076
	.word	1245572
	.word	enable_885_ir
	.word	.LC0
	.word	CX23885_HW_AV_CORE
	.word	core
	.word	load_fw
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	netup_jtag_io
	.word	cinfo.4439
	.word	netup_card_rev
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	cx23885_card_setup, .-cx23885_card_setup
	.local	eeprom.4299
	.comm	eeprom.4299,1024,4
	.local	cinfo.4439
	.comm	cinfo.4439,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
