	.file	"extr_cx88-mpeg.c_cx8802_init_common.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Oops: no 32bit PCI DMA ???\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n"
	.section	.rodata.str1.1
.LC2:
	.string	"can't get IRQ %d\n"
	.text
	.p2align 4
	.type	cx8802_init_common, @function
cx8802_init_common:
.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
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR 8[rdi]
	mov	rdi, QWORD PTR [rdi]
	call	pci_enable_device@PLT
	test	rax, rax
	je	.L2
.L7:
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.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
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	call	pci_set_master@PLT
	mov	edi, 32
	call	DMA_BIT_MASK@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	esi, eax
	call	pci_set_dma_mask@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	rdi, QWORD PTR [rbx]
	mov	esi, DWORD PTR PCI_LATENCY_TIMER[rip]
	lea	rdx, 24[rbx]
	mov	eax, DWORD PTR 4[rdi]
	mov	DWORD PTR 28[rbx], eax
	call	pci_read_config_byte@PLT
	mov	rdi, QWORD PTR [rbx]
	xor	esi, esi
	call	pci_resource_start@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	r8d, DWORD PTR 24[rbx]
	mov	r14d, DWORD PTR 28[rbx]
	mov	r13, rax
	mov	r15d, DWORD PTR [rdi]
	mov	DWORD PTR 12[rsp], r8d
	call	pci_name@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	r9, r13
	mov	edx, r14d
	mov	esi, eax
	mov	ecx, r15d
	lea	rdi, .LC1[rip]
	call	pr_info@PLT
	lea	rdi, 20[rbx]
	call	spin_lock_init@PLT
	lea	rdi, 16[rbx]
	call	INIT_LIST_HEAD@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR IRQF_SHARED[rip]
	mov	r8, rbx
	mov	esi, DWORD PTR cx8802_irq[rip]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	call	request_irq@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L10
	mov	esi, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR MO_PCI_INTMSK[rip]
	call	cx_set@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, rbx
	call	pci_set_drvdata@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	pr_err@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR [rbx]
	lea	rdi, .LC2[rip]
	mov	r12d, r13d
	mov	esi, DWORD PTR [rax]
	xor	eax, eax
	call	pr_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cx8802_init_common, .-cx8802_init_common
	.comm	cx8802_irq,4,4
	.comm	PCI_LATENCY_TIMER,4,4
	.comm	MO_PCI_INTMSK,4,4
	.comm	IRQF_SHARED,4,4
	.comm	EIO,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_cx88-mpeg.c_cx8802_init_common.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Oops: no 32bit PCI DMA ???\012\000"
	.align	2
.LC1:
	.ascii	"found at %s, rev: %d, irq: %d, latency: %d, mmio: 0"
	.ascii	"x%llx\012\000"
	.align	2
.LC2:
	.ascii	"can't get IRQ %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx8802_init_common, %function
cx8802_init_common:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	sub	sp, sp, #28
	ldr	r0, [r0]
	ldr	r6, [r4, #4]
	bl	pci_enable_device
	cmp	r0, #0
	beq	.L2
.L7:
	ldr	r3, .L11
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r0, [r4]
	bl	pci_set_master
	mov	r0, #32
	ldr	r5, [r4]
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r5
	bl	pci_set_dma_mask
	subs	r5, r0, #0
	bne	.L9
	ldr	r0, [r4]
	ldr	r3, .L11+4
	ldr	r2, [r0, #4]
	ldr	r1, [r3]
	str	r2, [r4, #20]
	add	r2, r4, #16
	bl	pci_read_config_byte
	ldr	r0, [r4]
	bl	pci_name
	mov	r7, r0
	ldr	r0, [r4]
	mov	r1, r5
	ldr	r3, [r0]
	ldr	r10, [r4, #20]
	ldr	fp, [r4, #16]
	str	r3, [sp, #20]
	bl	pci_resource_start
	mov	r8, r0
	asr	r9, r0, #31
	mov	r1, r7
	mov	r2, r10
	ldr	r3, [sp, #20]
	str	r8, [sp, #8]
	str	r9, [sp, #12]
	ldr	r0, .L11+8
	str	fp, [sp]
	bl	pr_info
	add	r0, r4, #12
	bl	spin_lock_init
	add	r0, r4, #8
	bl	INIT_LIST_HEAD
	ldm	r4, {r2, r3}
	ldr	r1, .L11+12
	ldr	r0, [r2]
	ldr	r2, .L11+16
	ldr	r3, [r3, #4]
	str	r4, [sp]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	request_irq
	subs	r3, r0, #0
	blt	.L10
	ldr	r3, .L11+20
	ldr	r1, [r6]
	ldr	r0, [r3]
	bl	cx_set
	mov	r1, r4
	ldr	r0, [r4]
	bl	pci_set_drvdata
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r0, .L11+24
	bl	pr_err
	b	.L7
.L10:
	ldr	r2, [r4]
	ldr	r0, .L11+28
	ldr	r1, [r2]
	mov	r5, r3
	bl	pr_err
	b	.L1
.L12:
	.align	2
.L11:
	.word	EIO
	.word	PCI_LATENCY_TIMER
	.word	.LC1
	.word	cx8802_irq
	.word	IRQF_SHARED
	.word	MO_PCI_INTMSK
	.word	.LC0
	.word	.LC2
	.size	cx8802_init_common, .-cx8802_init_common
	.comm	cx8802_irq,4,4
	.comm	PCI_LATENCY_TIMER,4,4
	.comm	MO_PCI_INTMSK,4,4
	.comm	IRQF_SHARED,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
