	.file	"extr_cx23885-video.c_cx23885_video_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" (VID_BC_MSK_OPC_ERR 0x%08x)\n"
.LC1:
	.string	"%s: video risc op code error\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	" (VID_BC_MSK_SYNC 0x%08x) video lines miss-match\n"
	.align 8
.LC3:
	.string	" (VID_BC_MSK_OF 0x%08x) fifo overflow\n"
	.text
	.p2align 4
	.globl	cx23885_video_irq
	.type	cx23885_video_irq, @function
cx23885_video_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	edi, DWORD PTR VID_A_INT_MSK[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	cx_read@PLT
	and	eax, ebp
	jne	.L21
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edi, DWORD PTR VID_A_INT_STAT[rip]
	mov	esi, ebp
	call	cx_write@PLT
	mov	edx, DWORD PTR VID_BC_MSK_OPC_ERR[rip]
	test	edx, ebp
	jne	.L3
	mov	edx, DWORD PTR VID_BC_MSK_SYNC[rip]
	test	edx, ebp
	jne	.L4
	mov	edx, DWORD PTR VID_BC_MSK_OF[rip]
	test	edx, ebp
	je	.L6
.L5:
	lea	rsi, .LC3[rip]
	mov	edi, 7
	xor	ebx, ebx
	call	dprintk@PLT
	test	DWORD PTR VID_BC_MSK_RISCI1[rip], ebp
	je	.L9
.L22:
	mov	rdi, r12
	mov	ebx, 1
	call	spin_lock@PLT
	mov	edi, DWORD PTR VID_A_GPCNT[rip]
	call	cx_read@PLT
	lea	rsi, 4[r12]
	mov	rdi, r12
	mov	edx, eax
	call	cx23885_video_wakeup@PLT
	mov	rdi, r12
	call	spin_unlock@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rsi, .LC0[rip]
	mov	edi, 7
	call	dprintk@PLT
	mov	esi, DWORD PTR 16[r12]
	lea	rdi, .LC1[rip]
	call	pr_warn@PLT
	mov	rdx, QWORD PTR SRAM_CH01[rip]
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, r12
	lea	rsi, [rax+rdx*4]
	call	cx23885_sram_channel_dump@PLT
	mov	edx, DWORD PTR VID_BC_MSK_SYNC[rip]
	test	edx, ebp
	jne	.L4
.L19:
	mov	edx, DWORD PTR VID_BC_MSK_OF[rip]
	mov	eax, ebp
	and	eax, edx
	test	eax, eax
	jne	.L5
.L6:
	xor	ebx, ebx
	test	DWORD PTR VID_BC_MSK_RISCI1[rip], ebp
	jne	.L22
.L9:
	mov	esi, ebp
	mov	rdi, r12
	call	cx23885_vbi_irq@PLT
	add	eax, ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	edi, 7
	call	dprintk@PLT
	jmp	.L19
	.cfi_endproc
.LFE0:
	.size	cx23885_video_irq, .-cx23885_video_irq
	.comm	VID_BC_MSK_SYNC,4,4
	.comm	VID_BC_MSK_RISCI1,4,4
	.comm	VID_BC_MSK_OPC_ERR,4,4
	.comm	VID_BC_MSK_OF,4,4
	.comm	VID_A_INT_STAT,4,4
	.comm	VID_A_INT_MSK,4,4
	.comm	VID_A_GPCNT,4,4
	.comm	SRAM_CH01,8,8
	.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-video.c_cx23885_video_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" (VID_BC_MSK_OPC_ERR 0x%08x)\012\000"
	.align	2
.LC1:
	.ascii	"%s: video risc op code error\012\000"
	.align	2
.LC2:
	.ascii	" (VID_BC_MSK_SYNC 0x%08x) video lines miss-match\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	" (VID_BC_MSK_OF 0x%08x) fifo overflow\012\000"
	.text
	.align	2
	.global	cx23885_video_irq
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx23885_video_irq, %function
cx23885_video_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L23
	push	{r4, r5, r6, lr}
	mov	r6, r0
	ldr	r0, [r3]
	mov	r4, r1
	bl	cx_read
	ands	r0, r0, r4
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L23+4
	mov	r1, r4
	ldr	r0, [r3]
	bl	cx_write
	ldr	r3, .L23+8
	ldr	r2, [r3]
	tst	r2, r4
	bne	.L3
	ldr	r3, .L23+12
	ldr	r2, [r3]
	tst	r2, r4
	bne	.L4
	ldr	r3, .L23+16
	ldr	r2, [r3]
	tst	r2, r4
	beq	.L6
.L5:
	mov	r0, #7
	ldr	r1, .L23+20
	bl	dprintk
	ldr	r3, .L23+24
	ldr	r3, [r3]
	ands	r5, r4, r3
	beq	.L9
.L22:
	mov	r0, r6
	bl	spin_lock
	ldr	r3, .L23+28
	mov	r5, #1
	ldr	r0, [r3]
	bl	cx_read
	add	r1, r6, #4
	mov	r2, r0
	mov	r0, r6
	bl	cx23885_video_wakeup
	mov	r0, r6
	bl	spin_unlock
	b	.L9
.L3:
	ldr	r1, .L23+32
	mov	r0, #7
	bl	dprintk
	ldr	r1, [r6, #12]
	ldr	r0, .L23+36
	bl	pr_warn
	ldr	r2, .L23+40
	ldr	r3, [r6, #8]
	ldr	r1, [r2]
	mov	r0, r6
	add	r1, r3, r1, lsl #2
	bl	cx23885_sram_channel_dump
	ldr	r3, .L23+12
	ldr	r2, [r3]
	tst	r2, r4
	bne	.L4
.L20:
	ldr	r3, .L23+16
	ldr	r2, [r3]
	and	r3, r2, r4
	cmp	r3, #0
	bne	.L5
.L6:
	ldr	r3, .L23+24
	ldr	r3, [r3]
	ands	r5, r4, r3
	bne	.L22
.L9:
	mov	r1, r4
	mov	r0, r6
	bl	cx23885_vbi_irq
	add	r0, r5, r0
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r1, .L23+44
	mov	r0, #7
	bl	dprintk
	b	.L20
.L24:
	.align	2
.L23:
	.word	VID_A_INT_MSK
	.word	VID_A_INT_STAT
	.word	VID_BC_MSK_OPC_ERR
	.word	VID_BC_MSK_SYNC
	.word	VID_BC_MSK_OF
	.word	.LC3
	.word	VID_BC_MSK_RISCI1
	.word	VID_A_GPCNT
	.word	.LC0
	.word	.LC1
	.word	SRAM_CH01
	.word	.LC2
	.size	cx23885_video_irq, .-cx23885_video_irq
	.comm	VID_BC_MSK_SYNC,4,4
	.comm	VID_BC_MSK_RISCI1,4,4
	.comm	VID_BC_MSK_OPC_ERR,4,4
	.comm	VID_BC_MSK_OF,4,4
	.comm	VID_A_INT_STAT,4,4
	.comm	VID_A_INT_MSK,4,4
	.comm	VID_A_GPCNT,4,4
	.comm	SRAM_CH01,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
