	.file	"extr_pvrusb2-hdw.c_pvr2_decoder_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"on"
.LC1:
	.string	"off"
.LC2:
	.string	"subdev v4l2 stream=%s"
.LC3:
	.string	"WARNING: No decoder present"
.LC4:
	.string	"flag_decoder_missed"
	.text
	.p2align 4
	.type	pvr2_decoder_enable, @function
pvr2_decoder_enable:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rax, .LC1[rip]
	lea	rdx, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	cmove	rdx, rax
	mov	rbp, rdi
	mov	edi, DWORD PTR PVR2_TRACE_CHIPS[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xor	eax, eax
	lea	r12, 16[rbp]
	mov	ebx, esi
	lea	rsi, .LC2[rip]
	call	pvr2_trace@PLT
	mov	ecx, DWORD PTR s_stream[rip]
	xor	esi, esi
	mov	r8d, ebx
	mov	edx, DWORD PTR video[rip]
	mov	rdi, r12
	call	v4l2_device_call_all@PLT
	mov	ecx, DWORD PTR s_stream[rip]
	xor	esi, esi
	mov	r8d, ebx
	mov	edx, DWORD PTR audio[rip]
	mov	rdi, r12
	call	v4l2_device_call_all@PLT
	xor	eax, eax
	cmp	QWORD PTR 8[rbp], 0
	jne	.L1
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	je	.L9
.L4:
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	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
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR PVR2_TRACE_ERROR_LEGS[rip]
	lea	rsi, .LC3[rip]
	call	pvr2_trace@PLT
	mov	DWORD PTR 0[rbp], 1
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	trace_stbit@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	pvr2_decoder_enable, .-pvr2_decoder_enable
	.comm	video,4,4
	.comm	s_stream,4,4
	.comm	audio,4,4
	.comm	PVR2_TRACE_ERROR_LEGS,4,4
	.comm	PVR2_TRACE_CHIPS,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_pvrusb2-hdw.c_pvr2_decoder_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"on\000"
	.align	2
.LC1:
	.ascii	"off\000"
	.align	2
.LC2:
	.ascii	"subdev v4l2 stream=%s\000"
	.align	2
.LC3:
	.ascii	"WARNING: No decoder present\000"
	.align	2
.LC4:
	.ascii	"flag_decoder_missed\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pvr2_decoder_enable, %function
pvr2_decoder_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r0
	ldr	r3, .L10
	ldr	r0, .L10+4
	subs	r4, r1, #0
	sub	sp, sp, #12
	ldr	r2, .L10+8
	ldr	r1, .L10+12
	movne	r2, r0
	ldr	r0, [r3]
	bl	pvr2_trace
	ldr	r5, .L10+16
	ldr	r2, .L10+20
	add	r6, r7, #8
	str	r4, [sp]
	mov	r1, #0
	ldr	r3, [r5]
	ldr	r2, [r2]
	mov	r0, r6
	bl	v4l2_device_call_all
	ldr	r2, .L10+24
	str	r4, [sp]
	ldr	r3, [r5]
	mov	r0, r6
	mov	r1, #0
	ldr	r2, [r2]
	bl	v4l2_device_call_all
	ldr	r3, [r7, #4]
	cmp	r3, #0
	movne	r0, #0
	bne	.L1
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L9
.L4:
	ldr	r3, .L10+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	ldr	r3, .L10+32
	ldr	r1, .L10+36
	ldr	r0, [r3]
	bl	pvr2_trace
	mov	r1, #1
	ldr	r0, .L10+40
	str	r1, [r7]
	bl	trace_stbit
	b	.L4
.L11:
	.align	2
.L10:
	.word	PVR2_TRACE_CHIPS
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	s_stream
	.word	video
	.word	audio
	.word	EIO
	.word	PVR2_TRACE_ERROR_LEGS
	.word	.LC3
	.word	.LC4
	.size	pvr2_decoder_enable, .-pvr2_decoder_enable
	.comm	video,4,4
	.comm	s_stream,4,4
	.comm	audio,4,4
	.comm	PVR2_TRACE_ERROR_LEGS,4,4
	.comm	PVR2_TRACE_CHIPS,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
