	.file	"extr_cx23885-core.c_cx23885_initdev.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s/0: found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n"
	.align 8
.LC1:
	.string	"%s/0: Oops: no 32bit PCI DMA ???\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%s: can't get IRQ %d\n"
	.text
	.p2align 4
	.type	cx23885_initdev, @function
cx23885_initdev:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	edi, 48
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rbp, rax
	xor	eax, eax
	call	cx23885_does_need_dma_reset@PLT
	lea	r13, 8[rbp]
	lea	rdi, 8[rbx]
	mov	DWORD PTR 44[rbp], eax
	mov	rsi, r13
	call	v4l2_device_register@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L4
	lea	r14, 40[rbp]
	mov	esi, 6
	mov	rdi, r14
	call	v4l2_ctrl_handler_init@PLT
	mov	r12d, DWORD PTR 40[rbp]
	test	r12d, r12d
	je	.L14
.L5:
	mov	rdi, r14
	call	v4l2_ctrl_handler_free@PLT
	mov	rdi, r13
	call	v4l2_device_unregister@PLT
.L4:
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	QWORD PTR 8[rbp], r14
	mov	rdi, rbp
	call	cx23885_v4l2_dev_notify_init@PLT
	mov	QWORD PTR 32[rbp], rbx
	mov	rdi, rbx
	call	pci_enable_device@PLT
	test	rax, rax
	je	.L6
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	cx23885_dev_setup@PLT
	test	rax, rax
	js	.L15
	mov	eax, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR PCI_LATENCY_TIMER[rip]
	lea	rdx, 20[rbp]
	mov	rdi, rbx
	mov	DWORD PTR 24[rbp], eax
	call	pci_read_config_byte@PLT
	xor	esi, esi
	mov	rdi, rbx
	call	pci_resource_start@PLT
	mov	r9d, DWORD PTR 20[rbp]
	mov	r8d, DWORD PTR [rbx]
	mov	rdi, rbx
	mov	r12, rax
	mov	r15d, DWORD PTR 24[rbp]
	mov	DWORD PTR 12[rsp], r9d
	mov	DWORD PTR 8[rsp], r8d
	call	pci_name@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	esi, DWORD PTR 16[rbp]
	mov	ecx, r15d
	push	r12
	.cfi_def_cfa_offset 96
	mov	r9d, DWORD PTR 28[rsp]
	mov	edx, eax
	lea	rdi, .LC0[rip]
	mov	r8d, DWORD PTR 24[rsp]
	call	pr_info@PLT
	mov	rdi, rbx
	call	pci_set_master@PLT
	mov	esi, -1
	mov	rdi, rbx
	call	pci_set_dma_mask@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	r12d, r12d
	jne	.L16
	mov	ecx, DWORD PTR 16[rbp]
	mov	edx, DWORD PTR IRQF_SHARED[rip]
	mov	r8, rbp
	mov	esi, DWORD PTR cx23885_irq[rip]
	mov	edi, DWORD PTR [rbx]
	call	request_irq@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L17
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 128
	je	.L10
	cmp	eax, 129
	jne	.L11
	mov	esi, DWORD PTR PCI_MSK_GPIO1[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR PCI_MSK_GPIO0[rip]
	call	cx23885_irq_add_enable@PLT
.L11:
	mov	rdi, rbp
	call	cx23885_ir_pci_int_enable@PLT
	mov	rdi, rbp
	call	cx23885_input_init@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR 16[rbp]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pr_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, DWORD PTR PCI_MSK_GPIO0[rip]
	mov	rdi, rbp
	call	cx23885_irq_add_enable@PLT
	jmp	.L11
.L17:
	mov	esi, DWORD PTR 16[rbp]
	mov	edx, DWORD PTR [rbx]
	lea	rdi, .LC2[rip]
	xor	eax, eax
	mov	r12d, r15d
	call	pr_err@PLT
	mov	rdi, rbp
	call	cx23885_dev_unregister@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	cx23885_initdev, .-cx23885_initdev
	.comm	cx23885_irq,4,4
	.comm	PCI_MSK_GPIO1,4,4
	.comm	PCI_MSK_GPIO0,4,4
	.comm	PCI_LATENCY_TIMER,4,4
	.comm	IRQF_SHARED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.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_cx23885-core.c_cx23885_initdev.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s/0: found at %s, rev: %d, irq: %d, latency: %d, m"
	.ascii	"mio: 0x%llx\012\000"
	.align	2
.LC1:
	.ascii	"%s/0: Oops: no 32bit PCI DMA ???\012\000"
	.align	2
.LC2:
	.ascii	"%s: can't get IRQ %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx23885_initdev, %function
cx23885_initdev:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L19
	mov	r6, r0
	ldr	r1, [r2]
	mov	r0, #32
	sub	sp, sp, #28
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L14
	bl	cx23885_does_need_dma_reset
	add	r7, r4, #4
	str	r0, [r4, #28]
	mov	r1, r7
	add	r0, r6, #8
	bl	v4l2_device_register
	subs	r5, r0, #0
	blt	.L4
	add	r8, r4, #24
	mov	r0, r8
	mov	r1, #6
	bl	v4l2_ctrl_handler_init
	ldr	r5, [r4, #24]
	cmp	r5, #0
	beq	.L15
.L5:
	mov	r0, r8
	bl	v4l2_ctrl_handler_free
	mov	r0, r7
	bl	v4l2_device_unregister
.L4:
	mov	r0, r4
	bl	kfree
.L1:
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r3, .L19+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r0, r4
	str	r8, [r4, #4]
	bl	cx23885_v4l2_dev_notify_init
	mov	r0, r6
	str	r6, [r4, #20]
	bl	pci_enable_device
	cmp	r0, #0
	ldrne	r3, .L19+8
	ldrne	r5, [r3]
	rsbne	r5, r5, #0
	bne	.L5
.L6:
	mov	r0, r4
	bl	cx23885_dev_setup
	cmp	r0, #0
	blt	.L16
	ldr	r3, .L19+12
	ldr	r2, [r6, #4]
	ldr	r1, [r3]
	str	r2, [r4, #16]
	mov	r0, r6
	add	r2, r4, #12
	bl	pci_read_config_byte
	mov	r0, r6
	ldr	r9, [r4, #8]
	bl	pci_name
	mov	r2, r0
	ldr	r3, [r4, #12]
	mov	r1, r5
	mov	r0, r6
	mov	r5, r2
	ldr	r10, [r4, #16]
	ldr	fp, [r6]
	str	r3, [sp, #20]
	bl	pci_resource_start
	mov	r2, r0
	asr	r3, r0, #31
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [sp, #20]
	mov	r2, r5
	mov	r1, r9
	str	r3, [sp, #4]
	ldr	r0, .L19+16
	mov	r3, r10
	str	fp, [sp]
	bl	pr_info
	mov	r0, r6
	bl	pci_set_master
	mvn	r1, #0
	mov	r0, r6
	bl	pci_set_dma_mask
	subs	r5, r0, #0
	bne	.L17
	ldr	r2, .L19+20
	ldr	r1, .L19+24
	ldr	r3, [r4, #8]
	str	r4, [sp]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r6]
	bl	request_irq
	subs	r9, r0, #0
	blt	.L18
	ldr	r3, [r4]
	cmp	r3, #128
	beq	.L10
	cmp	r3, #129
	bne	.L11
	ldr	r2, .L19+28
	ldr	r3, .L19+32
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r4
	orr	r1, r1, r3
	bl	cx23885_irq_add_enable
.L11:
	mov	r0, r4
	bl	cx23885_ir_pci_int_enable
	mov	r0, r4
	bl	cx23885_input_init
	b	.L1
.L17:
	ldr	r1, [r4, #8]
	ldr	r0, .L19+36
	bl	pr_err
	b	.L5
.L16:
	ldr	r3, .L19+40
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L5
.L10:
	ldr	r3, .L19+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	cx23885_irq_add_enable
	b	.L11
.L18:
	ldr	r2, [r6]
	ldr	r1, [r4, #8]
	ldr	r0, .L19+44
	bl	pr_err
	mov	r0, r4
	mov	r5, r9
	bl	cx23885_dev_unregister
	b	.L5
.L20:
	.align	2
.L19:
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	EIO
	.word	PCI_LATENCY_TIMER
	.word	.LC0
	.word	IRQF_SHARED
	.word	cx23885_irq
	.word	PCI_MSK_GPIO1
	.word	PCI_MSK_GPIO0
	.word	.LC1
	.word	EINVAL
	.word	.LC2
	.size	cx23885_initdev, .-cx23885_initdev
	.comm	cx23885_irq,4,4
	.comm	PCI_MSK_GPIO1,4,4
	.comm	PCI_MSK_GPIO0,4,4
	.comm	PCI_LATENCY_TIMER,4,4
	.comm	IRQF_SHARED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
