	.file	"extr_pvrusb2-encoder.c_pvr2_encoder_start.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pvr2_encoder_start
	.type	pvr2_encoder_start, @function
pvr2_encoder_start:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edx, -1073741825
	mov	rbp, rdi
	mov	esi, 72
	call	pvr2_write_register@PLT
	xor	ecx, ecx
	mov	esi, DWORD PTR CX2341X_ENC_MUTE_VIDEO[rip]
	mov	rdi, rbp
	mov	rax, QWORD PTR PVR2_CVAL_INPUT_RADIO[rip]
	cmp	QWORD PTR 0[rbp], rax
	mov	edx, 1
	sete	cl
	xor	eax, eax
	call	pvr2_encoder_vcmd@PLT
	mov	r8d, 20
	mov	ecx, 1
	cmp	DWORD PTR 8[rbp], 128
	je	.L4
	mov	r8d, 19
	xor	ecx, ecx
.L4:
	mov	esi, DWORD PTR CX2341X_ENC_START_CAPTURE[rip]
	mov	rdi, rbp
	mov	edx, 2
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	pvr2_encoder_vcmd@PLT
	.cfi_endproc
.LFE0:
	.size	pvr2_encoder_start, .-pvr2_encoder_start
	.comm	PVR2_CVAL_INPUT_RADIO,8,8
	.comm	CX2341X_ENC_START_CAPTURE,4,4
	.comm	CX2341X_ENC_MUTE_VIDEO,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-encoder.c_pvr2_encoder_start.c"
	.text
	.align	2
	.global	pvr2_encoder_start
	.syntax unified
	.arm
	.fpu softvfp
	.type	pvr2_encoder_start, %function
pvr2_encoder_start:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	mvn	r2, #1073741824
	mov	r1, #72
	sub	sp, sp, #8
	bl	pvr2_write_register
	ldr	r3, .L7
	ldr	r1, [r4]
	ldr	r3, [r3]
	ldr	r2, .L7+4
	sub	r3, r1, r3
	clz	r3, r3
	ldr	r1, [r2]
	lsr	r3, r3, #5
	mov	r0, r4
	mov	r2, #1
	bl	pvr2_encoder_vcmd
	ldr	r3, [r4, #4]
	cmp	r3, #128
	beq	.L6
	mov	r2, #19
	ldr	r3, .L7+8
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, #0
	mov	r2, #2
	bl	pvr2_encoder_vcmd
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L6:
	mov	r2, #20
	ldr	r3, .L7+8
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, #1
	mov	r2, #2
	bl	pvr2_encoder_vcmd
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	PVR2_CVAL_INPUT_RADIO
	.word	CX2341X_ENC_MUTE_VIDEO
	.word	CX2341X_ENC_START_CAPTURE
	.size	pvr2_encoder_start, .-pvr2_encoder_start
	.comm	PVR2_CVAL_INPUT_RADIO,4,4
	.comm	CX2341X_ENC_START_CAPTURE,4,4
	.comm	CX2341X_ENC_MUTE_VIDEO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
