	.file	"extr_ivtv-streams.c_ivtv_start_v4l2_decode_stream.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Starting decode stream %s (gop_offset %d)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"IRQ Mask is now: 0x%08x\n"
	.text
	.p2align 4
	.globl	ivtv_start_v4l2_decode_stream
	.type	ivtv_start_v4l2_decode_stream, @function
ivtv_start_v4l2_decode_stream:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	cmp	QWORD PTR 8[rdi], 0
	je	.L1
	mov	r13, QWORD PTR 16[rdi]
	mov	rbp, rdi
	mov	r14d, esi
	mov	rsi, rdi
	mov	edi, DWORD PTR IVTV_F_S_STREAMING[rip]
	xor	r12d, r12d
	call	test_and_set_bit@PLT
	test	rax, rax
	je	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, r14d
	lea	rdi, .LC0[rip]
	call	IVTV_DEBUG_INFO@PLT
	mov	rdi, rbp
	call	ivtv_setup_v4l2_decode_stream@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L9
	mov	esi, DWORD PTR CX2341X_DEC_SET_DMA_BLOCK_SIZE[rip]
	mov	ecx, 65536
	mov	rdi, r13
	xor	eax, eax
	mov	edx, 1
	call	ivtv_vapi@PLT
	mov	edi, DWORD PTR IVTV_F_S_STREAMOFF[rip]
	mov	rsi, rbp
	call	clear_bit@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR IVTV_MBOX_DMA_END[rip]
	xor	edi, edi
	mov	rsi, QWORD PTR [rax+rdx*8]
	call	writel@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR IVTV_MBOX_DMA_END[rip]
	xor	edi, edi
	mov	rsi, QWORD PTR [rax+rdx*8]
	add	rsi, 4
	call	writel@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR IVTV_MBOX_DMA_END[rip]
	xor	edi, edi
	mov	rsi, QWORD PTR [rax+rdx*8]
	add	rsi, 8
	call	writel@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR IVTV_MBOX_DMA_END[rip]
	xor	edi, edi
	mov	rsi, QWORD PTR [rax+rdx*8]
	add	rsi, 12
	call	writel@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR IVTV_MBOX_DMA[rip]
	xor	edi, edi
	mov	rsi, QWORD PTR [rax+rdx*8]
	call	writel@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR IVTV_MBOX_DMA[rip]
	xor	edi, edi
	mov	rsi, QWORD PTR [rax+rdx*8]
	add	rsi, 4
	call	writel@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR IVTV_MBOX_DMA[rip]
	xor	edi, edi
	mov	rsi, QWORD PTR [rax+rdx*8]
	add	rsi, 8
	call	writel@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	rdx, QWORD PTR IVTV_MBOX_DMA[rip]
	xor	edi, edi
	mov	rsi, QWORD PTR [rax+rdx*8]
	add	rsi, 12
	call	writel@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	xor	ecx, ecx
	mov	rdi, r13
	push	-1
	.cfi_def_cfa_offset 64
	mov	r9d, DWORD PTR IVTV_IRQ_DEC_AUD_MODE_CHG[rip]
	mov	edx, 4
	xor	eax, eax
	mov	esi, DWORD PTR CX2341X_DEC_SET_EVENT_NOTIFICATION[rip]
	mov	r8d, 1
	call	ivtv_vapi@PLT
	mov	esi, DWORD PTR CX2341X_DEC_START_PLAYBACK[rip]
	xor	r8d, r8d
	xor	eax, eax
	mov	ecx, r14d
	mov	edx, 2
	mov	rdi, r13
	call	ivtv_vapi@PLT
	xor	esi, esi
	mov	edi, 10
	xor	r12d, r12d
	call	ivtv_msleep_timeout@PLT
	mov	esi, DWORD PTR IVTV_IRQ_MASK_DECODE[rip]
	mov	rdi, r13
	call	ivtv_clear_irq_mask@PLT
	mov	esi, DWORD PTR 4[r13]
	lea	rdi, .LC1[rip]
	call	IVTV_DEBUG_IRQ@PLT
	mov	rdi, r13
	call	atomic_inc@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR IVTV_F_S_STREAMING[rip]
	mov	rsi, rbp
	call	clear_bit@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ivtv_start_v4l2_decode_stream, .-ivtv_start_v4l2_decode_stream
	.comm	IVTV_MBOX_DMA_END,8,8
	.comm	IVTV_MBOX_DMA,8,8
	.comm	IVTV_IRQ_MASK_DECODE,4,4
	.comm	IVTV_IRQ_DEC_AUD_MODE_CHG,4,4
	.comm	IVTV_F_S_STREAMOFF,4,4
	.comm	IVTV_F_S_STREAMING,4,4
	.comm	EINVAL,4,4
	.comm	CX2341X_DEC_START_PLAYBACK,4,4
	.comm	CX2341X_DEC_SET_EVENT_NOTIFICATION,4,4
	.comm	CX2341X_DEC_SET_DMA_BLOCK_SIZE,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_ivtv-streams.c_ivtv_start_v4l2_decode_stream.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Starting decode stream %s (gop_offset %d)\012\000"
	.align	2
.LC1:
	.ascii	"IRQ Mask is now: 0x%08x\012\000"
	.text
	.align	2
	.global	ivtv_start_v4l2_decode_stream
	.syntax unified
	.arm
	.fpu softvfp
	.type	ivtv_start_v4l2_decode_stream, %function
ivtv_start_v4l2_decode_stream:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r5, r0
	ldr	r0, [r0, #8]
	sub	sp, sp, #20
	cmp	r0, #0
	beq	.L8
	ldr	r8, .L11
	mov	r7, r1
	ldr	r0, [r8]
	mov	r1, r5
	ldr	r6, [r5, #12]
	bl	test_and_set_bit
	subs	r4, r0, #0
	movne	r4, #0
	beq	.L9
.L1:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	mov	r2, r7
	ldr	r1, [r5, #4]
	ldr	r0, .L11+4
	bl	IVTV_DEBUG_INFO
	mov	r0, r5
	bl	ivtv_setup_v4l2_decode_stream
	subs	r9, r0, #0
	blt	.L10
	ldr	r2, .L11+8
	mov	r3, #65536
	ldr	r1, [r2]
	mov	r0, r6
	mov	r2, #1
	bl	ivtv_vapi
	ldr	r3, .L11+12
	ldr	r8, .L11+16
	mov	r1, r5
	ldr	r0, [r3]
	bl	clear_bit
	ldr	r2, [r8]
	ldr	r3, [r6, #8]
	mov	r0, r4
	ldr	r1, [r3, r2, lsl #2]
	bl	writel
	ldr	r2, [r8]
	ldr	r3, [r6, #8]
	mov	r0, r4
	ldr	r1, [r3, r2, lsl #2]
	ldr	r5, .L11+20
	add	r1, r1, #4
	bl	writel
	ldr	r2, [r8]
	ldr	r3, [r6, #8]
	mov	r0, r4
	ldr	r1, [r3, r2, lsl #2]
	add	r1, r1, #8
	bl	writel
	ldr	r2, [r8]
	ldr	r3, [r6, #8]
	mov	r0, r4
	ldr	r1, [r3, r2, lsl #2]
	add	r1, r1, #12
	bl	writel
	ldr	r2, [r5]
	ldr	r3, [r6, #8]
	mov	r0, r4
	ldr	r1, [r3, r2, lsl #2]
	bl	writel
	ldr	r2, [r5]
	ldr	r3, [r6, #8]
	mov	r0, r4
	ldr	r1, [r3, r2, lsl #2]
	add	r1, r1, #4
	bl	writel
	ldr	r2, [r5]
	ldr	r3, [r6, #8]
	mov	r0, r4
	ldr	r1, [r3, r2, lsl #2]
	add	r1, r1, #8
	bl	writel
	ldr	r2, [r5]
	ldr	r3, [r6, #8]
	mov	r0, r4
	ldr	r1, [r3, r2, lsl #2]
	add	r1, r1, #12
	bl	writel
	mvn	r0, #0
	mov	r2, #1
	ldr	r1, .L11+24
	ldr	r3, .L11+28
	ldr	r1, [r1]
	str	r0, [sp, #8]
	str	r2, [sp]
	str	r1, [sp, #4]
	ldr	r1, [r3]
	mov	r2, #4
	mov	r3, r4
	mov	r0, r6
	bl	ivtv_vapi
	ldr	r2, .L11+32
	str	r4, [sp]
	mov	r3, r7
	ldr	r1, [r2]
	mov	r0, r6
	mov	r2, #2
	bl	ivtv_vapi
	mov	r1, r4
	mov	r0, #10
	bl	ivtv_msleep_timeout
	ldr	r3, .L11+36
	mov	r0, r6
	ldr	r1, [r3]
	bl	ivtv_clear_irq_mask
	ldr	r1, [r6, #4]
	ldr	r0, .L11+40
	bl	IVTV_DEBUG_IRQ
	mov	r0, r6
	bl	atomic_inc
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L8:
	ldr	r3, .L11+44
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	mov	r1, r5
	ldr	r0, [r8]
	bl	clear_bit
	mov	r4, r9
	b	.L1
.L12:
	.align	2
.L11:
	.word	IVTV_F_S_STREAMING
	.word	.LC0
	.word	CX2341X_DEC_SET_DMA_BLOCK_SIZE
	.word	IVTV_F_S_STREAMOFF
	.word	IVTV_MBOX_DMA_END
	.word	IVTV_MBOX_DMA
	.word	IVTV_IRQ_DEC_AUD_MODE_CHG
	.word	CX2341X_DEC_SET_EVENT_NOTIFICATION
	.word	CX2341X_DEC_START_PLAYBACK
	.word	IVTV_IRQ_MASK_DECODE
	.word	.LC1
	.word	EINVAL
	.size	ivtv_start_v4l2_decode_stream, .-ivtv_start_v4l2_decode_stream
	.comm	IVTV_MBOX_DMA_END,4,4
	.comm	IVTV_MBOX_DMA,4,4
	.comm	IVTV_IRQ_MASK_DECODE,4,4
	.comm	IVTV_IRQ_DEC_AUD_MODE_CHG,4,4
	.comm	IVTV_F_S_STREAMOFF,4,4
	.comm	IVTV_F_S_STREAMING,4,4
	.comm	EINVAL,4,4
	.comm	CX2341X_DEC_START_PLAYBACK,4,4
	.comm	CX2341X_DEC_SET_EVENT_NOTIFICATION,4,4
	.comm	CX2341X_DEC_SET_DMA_BLOCK_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
