	.file	"463545.c"
	.intel_syntax noprefix
	.text
	.local	fmt
	.comm	fmt,208,32
	.local	dev_name
	.comm	dev_name,8,8
	.data
	.align 4
	.type	io, @object
	.size	io, 4
io:
	.long	1
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.long	-1
	.globl	buffers
	.bss
	.align 8
	.type	buffers, @object
	.size	buffers, 8
buffers:
	.zero	8
	.local	n_buffers
	.comm	n_buffers,4,4
	.local	out_buf
	.comm	out_buf,4,4
	.data
	.align 4
	.type	force_format, @object
	.size	force_format, 4
force_format:
	.long	1
	.align 4
	.type	frame_count, @object
	.size	frame_count, 4
frame_count:
	.long	1810
	.globl	R
	.bss
	.align 32
	.type	R, @object
	.size	R, 307200
R:
	.zero	307200
	.globl	G
	.align 32
	.type	G, @object
	.size	G, 307200
G:
	.zero	307200
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 307200
B:
	.zero	307200
	.globl	convR
	.align 32
	.type	convR, @object
	.size	convR, 307200
convR:
	.zero	307200
	.globl	convG
	.align 32
	.type	convG, @object
	.size	convG, 307200
convG:
	.zero	307200
	.globl	convB
	.align 32
	.type	convB, @object
	.size	convB, 307200
convB:
	.zero	307200
	.local	fnow
	.comm	fnow,8,8
	.local	fstart
	.comm	fstart,8,8
	.local	fstop
	.comm	fstop,8,8
	.local	time_now
	.comm	time_now,16,16
	.local	time_start
	.comm	time_start,16,16
	.local	time_stop
	.comm	time_stop,16,16
	.section	.rodata
.LC0:
	.string	"%s error %d, %s\n"
	.text
	.type	errno_exit, @function
errno_exit:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	r8, rbx
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	errno_exit, .-errno_exit
	.type	xioctl, @function
xioctl:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
.L4:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L4
.L3:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	xioctl, .-xioctl
	.globl	ppm_header
	.data
	.align 32
	.type	ppm_header, @object
	.size	ppm_header, 49
ppm_header:
	.string	"P6\n#9999999999 sec 9999999999 msec \n640 480\n255\n"
	.globl	ppm_dumpname
	.align 16
	.type	ppm_dumpname, @object
	.size	ppm_dumpname, 20
ppm_dumpname:
	.string	"frames/test0000.ppm"
	.section	.rodata
.LC1:
	.string	"%04d"
.LC2:
	.string	"%010d"
.LC3:
	.string	"written=%d, size=%d\n"
	.align 8
.LC5:
	.string	"Frame written to flash at %lf, %d, bytes\n"
	.text
	.type	dump_ppm, @function
dump_ppm:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	eax, DWORD PTR -32[rbp]
	mov	ecx, eax
	lea	rdx, .LC1[rip]
	mov	esi, 9
	lea	rdi, ppm_dumpname[rip+11]
	mov	eax, 0
	call	snprintf@PLT
	lea	rdi, ppm_dumpname[rip+15]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, ppm_dumpname[rip+15]
	add	rax, rdx
	mov	DWORD PTR [rax], 1836085294
	mov	BYTE PTR 4[rax], 0
	mov	edx, 438
	mov	esi, 2113
	lea	rdi, ppm_dumpname[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rdx, .LC2[rip]
	mov	esi, 11
	lea	rdi, ppm_header[rip+4]
	mov	eax, 0
	call	snprintf@PLT
	lea	rdi, ppm_header[rip+14]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, ppm_header[rip+14]
	add	rax, rdx
	mov	DWORD PTR [rax], 1667592992
	mov	WORD PTR 4[rax], 32
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	ecx, eax
	lea	rdx, .LC2[rip]
	mov	esi, 11
	lea	rdi, ppm_header[rip+19]
	mov	eax, 0
	call	snprintf@PLT
	lea	rdi, ppm_header[rip+29]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, ppm_header[rip+29]
	add	rax, rdx
	movabs	rsi, 3893960439091129632
	movabs	rdi, 3605747469614329908
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	mov	DWORD PTR 16[rax], 668981
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 48
	lea	rsi, ppm_header[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 0
.L7:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L7
	lea	rsi, time_now[rip]
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR time_now[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR time_now[rip+8]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR fnow[rip], xmm0
	movsd	xmm0, QWORD PTR fnow[rip]
	movsd	xmm1, QWORD PTR fstart[rip]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dump_ppm, .-dump_ppm
	.globl	pgm_header
	.data
	.align 32
	.type	pgm_header, @object
	.size	pgm_header, 49
pgm_header:
	.string	"P5\n#9999999999 sec 9999999999 msec \n640 480\n255\n"
	.globl	pgm_dumpname
	.align 16
	.type	pgm_dumpname, @object
	.size	pgm_dumpname, 20
pgm_dumpname:
	.string	"frames/test0000.pgm"
	.text
	.type	dump_pgm, @function
dump_pgm:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	eax, DWORD PTR -32[rbp]
	mov	ecx, eax
	lea	rdx, .LC1[rip]
	mov	esi, 9
	lea	rdi, pgm_dumpname[rip+11]
	mov	eax, 0
	call	snprintf@PLT
	lea	rdi, pgm_dumpname[rip+15]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, pgm_dumpname[rip+15]
	add	rax, rdx
	mov	DWORD PTR [rax], 1835495470
	mov	BYTE PTR 4[rax], 0
	mov	edx, 438
	mov	esi, 2113
	lea	rdi, pgm_dumpname[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, eax
	lea	rdx, .LC2[rip]
	mov	esi, 11
	lea	rdi, pgm_header[rip+4]
	mov	eax, 0
	call	snprintf@PLT
	lea	rdi, pgm_header[rip+14]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, pgm_header[rip+14]
	add	rax, rdx
	mov	DWORD PTR [rax], 1667592992
	mov	WORD PTR 4[rax], 32
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	ecx, eax
	lea	rdx, .LC2[rip]
	mov	esi, 11
	lea	rdi, pgm_header[rip+19]
	mov	eax, 0
	call	snprintf@PLT
	lea	rdi, pgm_header[rip+29]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, pgm_header[rip+29]
	add	rax, rdx
	movabs	rsi, 3893960439091129632
	movabs	rdi, 3605747469614329908
	mov	QWORD PTR [rax], rsi
	mov	QWORD PTR 8[rax], rdi
	mov	DWORD PTR 16[rax], 668981
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 48
	lea	rsi, pgm_header[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -12[rbp], 0
.L9:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L9
	lea	rsi, time_now[rip]
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR time_now[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR time_now[rip+8]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR fnow[rip], xmm0
	movsd	xmm0, QWORD PTR fnow[rip]
	movsd	xmm1, QWORD PTR fstart[rip]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	movq	xmm0, rax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	dump_pgm, .-dump_pgm
	.globl	yuv2rgb_float
	.type	yuv2rgb_float, @function
yuv2rgb_float:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movss	DWORD PTR -20[rbp], xmm0
	movss	DWORD PTR -24[rbp], xmm1
	movss	DWORD PTR -28[rbp], xmm2
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -20[rbp]
	movsd	xmm2, QWORD PTR .LC6[rip]
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -28[rbp]
	movsd	xmm3, QWORD PTR .LC8[rip]
	movapd	xmm2, xmm0
	subsd	xmm2, xmm3
	movsd	xmm0, QWORD PTR .LC9[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -12[rbp], xmm0
	movss	xmm0, DWORD PTR -12[rbp]
	comiss	xmm0, DWORD PTR .LC10[rip]
	jbe	.L35
	mov	eax, -1
	jmp	.L13
.L35:
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -12[rbp]
	jbe	.L36
	mov	eax, 0
	jmp	.L13
.L36:
	cvttss2si	eax, DWORD PTR -12[rbp]
.L13:
	mov	rdx, QWORD PTR -40[rbp]
	mov	BYTE PTR [rdx], al
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -20[rbp]
	movsd	xmm2, QWORD PTR .LC6[rip]
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -28[rbp]
	movsd	xmm3, QWORD PTR .LC8[rip]
	movapd	xmm2, xmm1
	subsd	xmm2, xmm3
	movsd	xmm1, QWORD PTR .LC12[rip]
	mulsd	xmm1, xmm2
	subsd	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -24[rbp]
	movsd	xmm3, QWORD PTR .LC8[rip]
	movapd	xmm2, xmm1
	subsd	xmm2, xmm3
	movsd	xmm1, QWORD PTR .LC13[rip]
	mulsd	xmm1, xmm2
	subsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -8[rbp], xmm0
	movss	xmm0, DWORD PTR -8[rbp]
	comiss	xmm0, DWORD PTR .LC10[rip]
	jbe	.L37
	mov	eax, -1
	jmp	.L19
.L37:
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -8[rbp]
	jbe	.L38
	mov	eax, 0
	jmp	.L19
.L38:
	cvttss2si	eax, DWORD PTR -8[rbp]
.L19:
	mov	rdx, QWORD PTR -48[rbp]
	mov	BYTE PTR [rdx], al
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -20[rbp]
	movsd	xmm2, QWORD PTR .LC6[rip]
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC7[rip]
	mulsd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -24[rbp]
	movsd	xmm3, QWORD PTR .LC8[rip]
	movapd	xmm2, xmm0
	subsd	xmm2, xmm3
	movsd	xmm0, QWORD PTR .LC14[rip]
	mulsd	xmm0, xmm2
	addsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -4[rbp], xmm0
	movss	xmm0, DWORD PTR -4[rbp]
	comiss	xmm0, DWORD PTR .LC10[rip]
	jbe	.L39
	mov	eax, -1
	jmp	.L25
.L39:
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -4[rbp]
	jbe	.L40
	mov	eax, 0
	jmp	.L25
.L40:
	cvttss2si	eax, DWORD PTR -4[rbp]
.L25:
	mov	rdx, QWORD PTR -56[rbp]
	mov	BYTE PTR [rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	yuv2rgb_float, .-yuv2rgb_float
	.globl	yuv2rgb
	.type	yuv2rgb, @function
yuv2rgb:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	QWORD PTR -56[rbp], rcx
	mov	QWORD PTR -64[rbp], r8
	mov	QWORD PTR -72[rbp], r9
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 16
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, -128
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, -128
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	imul	edx, eax, 298
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax, 409
	add	eax, edx
	sub	eax, -128
	sar	eax, 8
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	imul	edx, eax, 298
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, eax, -100
	add	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax, -208
	add	eax, edx
	sub	eax, -128
	sar	eax, 8
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	imul	edx, eax, 298
	mov	eax, DWORD PTR -8[rbp]
	imul	eax, eax, 516
	add	eax, edx
	sub	eax, -128
	sar	eax, 8
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -24[rbp], 255
	jle	.L42
	mov	DWORD PTR -24[rbp], 255
.L42:
	cmp	DWORD PTR -20[rbp], 255
	jle	.L43
	mov	DWORD PTR -20[rbp], 255
.L43:
	cmp	DWORD PTR -16[rbp], 255
	jle	.L44
	mov	DWORD PTR -16[rbp], 255
.L44:
	cmp	DWORD PTR -24[rbp], 0
	jns	.L45
	mov	DWORD PTR -24[rbp], 0
.L45:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L46
	mov	DWORD PTR -20[rbp], 0
.L46:
	cmp	DWORD PTR -16[rbp], 0
	jns	.L47
	mov	DWORD PTR -16[rbp], 0
.L47:
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	BYTE PTR [rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	yuv2rgb, .-yuv2rgb
	.globl	framecnt
	.data
	.align 4
	.type	framecnt, @object
	.size	framecnt, 4
framecnt:
	.long	-8
	.globl	bigbuffer
	.bss
	.align 32
	.type	bigbuffer, @object
	.size	bigbuffer, 1228800
bigbuffer:
	.zero	1228800
	.globl	PSF
	.data
	.align 32
	.type	PSF, @object
	.size	PSF, 72
PSF:
	.long	0
	.long	-1075838976
	.long	0
	.long	-1075838976
	.long	0
	.long	-1075838976
	.long	0
	.long	-1075838976
	.long	0
	.long	1075052544
	.long	0
	.long	-1075838976
	.long	0
	.long	-1075838976
	.long	0
	.long	-1075838976
	.long	0
	.long	-1075838976
	.section	.rodata
.LC15:
	.string	"frame %d: "
.LC16:
	.string	"ERROR - unknown dump format"
	.text
	.type	process_image, @function
process_image:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	clock_gettime@PLT
	mov	eax, DWORD PTR framecnt[rip]
	add	eax, 1
	mov	DWORD PTR framecnt[rip], eax
	mov	eax, DWORD PTR framecnt[rip]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR framecnt[rip]
	test	eax, eax
	jne	.L49
	lea	rsi, time_start[rip]
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR time_start[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR time_start[rip+8]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR fstart[rip], xmm0
.L49:
	mov	eax, DWORD PTR fmt[rip+16]
	cmp	eax, 1497715271
	je	.L52
	mov	eax, DWORD PTR fmt[rip+16]
	cmp	eax, 1448695129
	je	.L52
	mov	eax, DWORD PTR fmt[rip+16]
	cmp	eax, 859981650
	je	.L52
	lea	rdi, .LC16[rip]
	call	puts@PLT
.L52:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	process_image, .-process_image
	.section	.rodata
.LC17:
	.string	"read"
.LC18:
	.string	"mmap failure"
.LC19:
	.string	"VIDIOC_DQBUF"
.LC20:
	.string	"the_stack_data/463545.c"
.LC21:
	.string	"buf.index < n_buffers"
.LC22:
	.string	"VIDIOC_QBUF"
.LC23:
	.string	"i < n_buffers"
	.text
	.type	read_frame, @function
read_frame:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR io[rip]
	cmp	eax, 2
	je	.L54
	cmp	eax, 2
	ja	.L55
	test	eax, eax
	je	.L56
	cmp	eax, 1
	je	.L57
	jmp	.L55
.L56:
	mov	rax, QWORD PTR buffers[rip]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR buffers[rip]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR fd[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, -1
	jne	.L58
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L59
	mov	eax, 0
	jmp	.L74
.L59:
	lea	rdi, .LC17[rip]
	call	errno_exit
.L58:
	mov	rax, QWORD PTR buffers[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, eax
	mov	rax, QWORD PTR buffers[rip]
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	process_image
	jmp	.L55
.L57:
	lea	rax, -96[rbp]
	mov	edx, 88
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -92[rbp], 1
	mov	DWORD PTR -36[rbp], 1
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -96[rbp]
	mov	esi, -1067952623
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L61
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 5
	je	.L62
	cmp	eax, 11
	jne	.L63
	mov	eax, 0
	jmp	.L74
.L62:
	mov	eax, 0
	jmp	.L74
.L63:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	call	errno_exit
.L61:
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	edx, eax
	jb	.L64
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 478
	lea	rsi, .LC20[rip]
	lea	rdi, .LC21[rip]
	call	__assert_fail@PLT
.L64:
	mov	eax, DWORD PTR -88[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR buffers[rip]
	mov	ecx, DWORD PTR -96[rbp]
	mov	ecx, ecx
	sal	rcx, 4
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	process_image
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -96[rbp]
	mov	esi, -1067952625
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L76
	lea	rdi, .LC22[rip]
	call	errno_exit
	jmp	.L76
.L54:
	lea	rax, -96[rbp]
	mov	edx, 88
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -92[rbp], 1
	mov	DWORD PTR -36[rbp], 2
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -96[rbp]
	mov	esi, -1067952623
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L66
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L67
	mov	eax, 0
	jmp	.L74
.L67:
	lea	rdi, .LC19[rip]
	call	errno_exit
.L66:
	mov	DWORD PTR -100[rbp], 0
	jmp	.L68
.L71:
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR buffers[rip]
	mov	edx, DWORD PTR -100[rbp]
	sal	rdx, 4
	add	rdx, rcx
	mov	rdx, QWORD PTR [rdx]
	cmp	rax, rdx
	jne	.L69
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR buffers[rip]
	mov	eax, DWORD PTR -100[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	cmp	rcx, rax
	je	.L77
.L69:
	add	DWORD PTR -100[rbp], 1
.L68:
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	DWORD PTR -100[rbp], eax
	jb	.L71
	jmp	.L70
.L77:
	nop
.L70:
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	DWORD PTR -100[rbp], eax
	jb	.L72
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 514
	lea	rsi, .LC20[rip]
	lea	rdi, .LC23[rip]
	call	__assert_fail@PLT
.L72:
	mov	eax, DWORD PTR -88[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	process_image
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -96[rbp]
	mov	esi, -1067952625
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L78
	lea	rdi, .LC22[rip]
	call	errno_exit
	jmp	.L78
.L76:
	nop
	jmp	.L55
.L78:
	nop
.L55:
	mov	eax, 1
.L74:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L75
	call	__stack_chk_fail@PLT
.L75:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	read_frame, .-read_frame
	.section	.rodata
.LC24:
	.string	"Running at 30 frames/sec"
.LC25:
	.string	"select"
.LC26:
	.string	"select timeout\n"
.LC27:
	.string	"nanosleep"
.LC28:
	.string	" read at %lf, @ %lf FPS\n"
.LC29:
	.string	"at %lf\n"
	.text
	.type	mainloop, @function
mainloop:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 33333333
	mov	eax, DWORD PTR frame_count[rip]
	mov	DWORD PTR -208[rbp], eax
	jmp	.L80
.L92:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 574 "the_stack_data/463545.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -204[rbp], edx
	mov	DWORD PTR -200[rbp], eax
	mov	eax, DWORD PTR fd[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR fd[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	mov	QWORD PTR -160[rbp], 2
	mov	QWORD PTR -152[rbp], 0
	mov	eax, DWORD PTR fd[rip]
	lea	edi, 1[rax]
	lea	rdx, -160[rbp]
	lea	rax, -144[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], -1
	jne	.L81
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L95
	lea	rdi, .LC25[rip]
	call	errno_exit
.L81:
	cmp	DWORD PTR -196[rbp], 0
	jne	.L84
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L84:
	call	read_frame
	test	eax, eax
	je	.L85
	lea	rdx, -176[rbp]
	lea	rax, -192[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	nanosleep@PLT
	test	eax, eax
	je	.L86
	lea	rdi, .LC27[rip]
	call	perror@PLT
	jmp	.L87
.L86:
	mov	eax, DWORD PTR framecnt[rip]
	cmp	eax, 1
	jle	.L88
	lea	rsi, time_now[rip]
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR time_now[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR time_now[rip+8]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR fnow[rip], xmm0
	mov	eax, DWORD PTR framecnt[rip]
	add	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm1, QWORD PTR fnow[rip]
	movsd	xmm2, QWORD PTR fstart[rip]
	subsd	xmm1, xmm2
	movapd	xmm2, xmm0
	divsd	xmm2, xmm1
	movsd	xmm0, QWORD PTR fnow[rip]
	movsd	xmm1, QWORD PTR fstart[rip]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movapd	xmm1, xmm2
	movq	xmm0, rax
	lea	rdi, .LC28[rip]
	mov	eax, 2
	call	printf@PLT
	jmp	.L87
.L88:
	mov	rax, QWORD PTR fnow[rip]
	movq	xmm0, rax
	lea	rdi, .LC29[rip]
	mov	eax, 1
	call	printf@PLT
.L87:
	sub	DWORD PTR -208[rbp], 1
	jmp	.L89
.L85:
	cmp	DWORD PTR -208[rbp], 0
	jne	.L92
	nop
.L89:
	cmp	DWORD PTR -208[rbp], 0
	je	.L96
	jmp	.L80
.L95:
	nop
	jmp	.L92
.L80:
	cmp	DWORD PTR -208[rbp], 0
	jne	.L92
	jmp	.L93
.L96:
	nop
.L93:
	lea	rsi, time_stop[rip]
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR time_stop[rip]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR time_stop[rip+8]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR fstop[rip], xmm0
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L94
	call	__stack_chk_fail@PLT
.L94:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	mainloop, .-mainloop
	.section	.rodata
.LC30:
	.string	"VIDIOC_STREAMOFF"
	.text
	.type	stop_capturing, @function
stop_capturing:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR io[rip]
	test	eax, eax
	je	.L103
	sub	eax, 1
	cmp	eax, 1
	ja	.L104
	mov	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -12[rbp]
	mov	esi, 1074026003
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L105
	lea	rdi, .LC30[rip]
	call	errno_exit
	jmp	.L105
.L103:
	nop
	jmp	.L104
.L105:
	nop
.L104:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L102
	call	__stack_chk_fail@PLT
.L102:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	stop_capturing, .-stop_capturing
	.section	.rodata
.LC31:
	.string	"allocated buffer %d\n"
.LC32:
	.string	"VIDIOC_STREAMON"
	.text
	.type	start_capturing, @function
start_capturing:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR io[rip]
	cmp	eax, 2
	je	.L107
	cmp	eax, 2
	ja	.L120
	test	eax, eax
	je	.L121
	cmp	eax, 1
	je	.L110
	jmp	.L120
.L110:
	mov	DWORD PTR -100[rbp], 0
	jmp	.L111
.L113:
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -96[rbp]
	mov	edx, 88
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -92[rbp], 1
	mov	DWORD PTR -36[rbp], 1
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR -96[rbp], eax
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -96[rbp]
	mov	esi, -1067952625
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L112
	lea	rdi, .LC22[rip]
	call	errno_exit
.L112:
	add	DWORD PTR -100[rbp], 1
.L111:
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	DWORD PTR -100[rbp], eax
	jb	.L113
	mov	DWORD PTR -104[rbp], 1
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -104[rbp]
	mov	esi, 1074026002
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L122
	lea	rdi, .LC32[rip]
	call	errno_exit
	jmp	.L122
.L107:
	mov	DWORD PTR -100[rbp], 0
	jmp	.L115
.L117:
	lea	rax, -96[rbp]
	mov	edx, 88
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -92[rbp], 1
	mov	DWORD PTR -36[rbp], 2
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR -96[rbp], eax
	mov	rdx, QWORD PTR buffers[rip]
	mov	eax, DWORD PTR -100[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR buffers[rip]
	mov	eax, DWORD PTR -100[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -96[rbp]
	mov	esi, -1067952625
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L116
	lea	rdi, .LC22[rip]
	call	errno_exit
.L116:
	add	DWORD PTR -100[rbp], 1
.L115:
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	DWORD PTR -100[rbp], eax
	jb	.L117
	mov	DWORD PTR -104[rbp], 1
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -104[rbp]
	mov	esi, 1074026002
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L123
	lea	rdi, .LC32[rip]
	call	errno_exit
	jmp	.L123
.L121:
	nop
	jmp	.L120
.L122:
	nop
	jmp	.L120
.L123:
	nop
.L120:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L119
	call	__stack_chk_fail@PLT
.L119:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	start_capturing, .-start_capturing
	.section	.rodata
.LC33:
	.string	"munmap"
	.text
	.type	uninit_device, @function
uninit_device:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, DWORD PTR io[rip]
	cmp	eax, 2
	je	.L125
	cmp	eax, 2
	ja	.L126
	test	eax, eax
	je	.L127
	cmp	eax, 1
	je	.L128
	jmp	.L126
.L127:
	mov	rax, QWORD PTR buffers[rip]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	jmp	.L126
.L128:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L129
.L131:
	mov	rdx, QWORD PTR buffers[rip]
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR buffers[rip]
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 4
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	cmp	eax, -1
	jne	.L130
	lea	rdi, .LC33[rip]
	call	errno_exit
.L130:
	add	DWORD PTR -4[rbp], 1
.L129:
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	DWORD PTR -4[rbp], eax
	jb	.L131
	jmp	.L126
.L125:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L132
.L133:
	mov	rdx, QWORD PTR buffers[rip]
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -4[rbp], 1
.L132:
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	DWORD PTR -4[rbp], eax
	jb	.L133
	nop
.L126:
	mov	rax, QWORD PTR buffers[rip]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	uninit_device, .-uninit_device
	.section	.rodata
.LC34:
	.string	"Out of memory\n"
	.text
	.type	init_read, @function
init_read:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	mov	esi, 16
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR buffers[rip], rax
	mov	rax, QWORD PTR buffers[rip]
	test	rax, rax
	jne	.L135
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L135:
	mov	rax, QWORD PTR buffers[rip]
	mov	edx, DWORD PTR -20[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR -20[rbp]
	mov	rbx, QWORD PTR buffers[rip]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR buffers[rip]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L137
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L137:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	init_read, .-init_read
	.section	.rodata
	.align 8
.LC35:
	.string	"%s does not support memory mapping\n"
.LC36:
	.string	"VIDIOC_REQBUFS"
	.align 8
.LC37:
	.string	"Insufficient buffer memory on %s\n"
.LC38:
	.string	"VIDIOC_QUERYBUF"
.LC39:
	.string	"mmap"
	.text
	.type	init_mmap, @function
init_mmap:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 136
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -144[rbp]
	mov	edx, 20
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -144[rbp], 6
	mov	DWORD PTR -140[rbp], 1
	mov	DWORD PTR -136[rbp], 1
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -144[rbp]
	mov	esi, -1072409080
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L139
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jne	.L140
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L140:
	lea	rdi, .LC36[rip]
	call	errno_exit
.L139:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, 1
	ja	.L141
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L141:
	mov	eax, DWORD PTR -144[rbp]
	mov	eax, eax
	mov	esi, 16
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR buffers[rip], rax
	mov	rax, QWORD PTR buffers[rip]
	test	rax, rax
	jne	.L142
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L142:
	mov	DWORD PTR n_buffers[rip], 0
	jmp	.L143
.L146:
	lea	rax, -112[rbp]
	mov	edx, 88
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -108[rbp], 1
	mov	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR n_buffers[rip]
	mov	DWORD PTR -112[rbp], eax
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -112[rbp]
	mov	esi, -1067952631
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L144
	lea	rdi, .LC38[rip]
	call	errno_exit
.L144:
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR buffers[rip]
	mov	ecx, DWORD PTR n_buffers[rip]
	mov	ecx, ecx
	sal	rcx, 4
	add	rax, rcx
	mov	edx, edx
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR -48[rbp]
	mov	edi, eax
	mov	eax, DWORD PTR fd[rip]
	mov	edx, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdx, QWORD PTR buffers[rip]
	mov	ecx, DWORD PTR n_buffers[rip]
	mov	ecx, ecx
	sal	rcx, 4
	lea	rbx, [rdx+rcx]
	mov	r9, rdi
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR buffers[rip]
	mov	edx, DWORD PTR n_buffers[rip]
	mov	edx, edx
	sal	rdx, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	cmp	rax, -1
	jne	.L145
	lea	rdi, .LC39[rip]
	call	errno_exit
.L145:
	mov	eax, DWORD PTR n_buffers[rip]
	add	eax, 1
	mov	DWORD PTR n_buffers[rip], eax
.L143:
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	edx, eax
	ja	.L146
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L147
	call	__stack_chk_fail@PLT
.L147:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	init_mmap, .-init_mmap
	.section	.rodata
	.align 8
.LC40:
	.string	"%s does not support user pointer i/o\n"
	.text
	.type	init_userp, @function
init_userp:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	edx, 20
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -48[rbp], 4
	mov	DWORD PTR -44[rbp], 1
	mov	DWORD PTR -40[rbp], 2
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -48[rbp]
	mov	esi, -1072409080
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L149
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jne	.L150
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L150:
	lea	rdi, .LC36[rip]
	call	errno_exit
.L149:
	mov	esi, 16
	mov	edi, 4
	call	calloc@PLT
	mov	QWORD PTR buffers[rip], rax
	mov	rax, QWORD PTR buffers[rip]
	test	rax, rax
	jne	.L151
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L151:
	mov	DWORD PTR n_buffers[rip], 0
	jmp	.L152
.L154:
	mov	rax, QWORD PTR buffers[rip]
	mov	edx, DWORD PTR n_buffers[rip]
	mov	edx, edx
	sal	rdx, 4
	add	rdx, rax
	mov	eax, DWORD PTR -52[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	eax, DWORD PTR -52[rbp]
	mov	rdx, QWORD PTR buffers[rip]
	mov	ecx, DWORD PTR n_buffers[rip]
	mov	ecx, ecx
	sal	rcx, 4
	lea	rbx, [rdx+rcx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR buffers[rip]
	mov	edx, DWORD PTR n_buffers[rip]
	mov	edx, edx
	sal	rdx, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L153
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC34[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L153:
	mov	eax, DWORD PTR n_buffers[rip]
	add	eax, 1
	mov	DWORD PTR n_buffers[rip], eax
.L152:
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	eax, 3
	jbe	.L154
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L155
	call	__stack_chk_fail@PLT
.L155:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	init_userp, .-init_userp
	.section	.rodata
.LC41:
	.string	"%s is no V4L2 device\n"
.LC42:
	.string	"VIDIOC_QUERYCAP"
	.align 8
.LC43:
	.string	"%s is no video capture device\n"
.LC44:
	.string	"%s does not support read i/o\n"
	.align 8
.LC45:
	.string	"%s does not support streaming i/o\n"
.LC46:
	.string	"FORCING FORMAT"
.LC47:
	.string	"VIDIOC_S_FMT"
.LC48:
	.string	"ASSUMING FORMAT"
.LC49:
	.string	"VIDIOC_G_FMT"
	.text
	.type	init_device, @function
init_device:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -112[rbp]
	mov	esi, -2140645888
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L157
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jne	.L158
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L158:
	lea	rdi, .LC42[rip]
	call	errno_exit
.L157:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L159
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L159:
	mov	eax, DWORD PTR io[rip]
	test	eax, eax
	je	.L160
	sub	eax, 1
	cmp	eax, 1
	ja	.L161
	jmp	.L177
.L160:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 16777216
	test	eax, eax
	jne	.L178
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC44[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L177:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 67108864
	test	eax, eax
	jne	.L179
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L178:
	nop
	jmp	.L161
.L179:
	nop
.L161:
	lea	rax, -160[rbp]
	mov	edx, 44
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -160[rbp], 1
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -160[rbp]
	mov	esi, -1070836166
	mov	edi, eax
	call	xioctl
	test	eax, eax
	jne	.L165
	mov	DWORD PTR -192[rbp], 1
	mov	rax, QWORD PTR -140[rbp]
	mov	rdx, QWORD PTR -132[rbp]
	mov	QWORD PTR -188[rbp], rax
	mov	QWORD PTR -180[rbp], rdx
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -192[rbp]
	mov	esi, 1075074620
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L180
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jmp	.L165
.L180:
	nop
.L165:
	mov	edx, 208
	mov	esi, 0
	lea	rdi, fmt[rip]
	call	memset@PLT
	mov	DWORD PTR fmt[rip], 1
	mov	eax, DWORD PTR force_format[rip]
	test	eax, eax
	je	.L168
	lea	rdi, .LC46[rip]
	call	puts@PLT
	mov	DWORD PTR fmt[rip+8], 640
	mov	DWORD PTR fmt[rip+12], 480
	mov	DWORD PTR fmt[rip+16], 1448695129
	mov	DWORD PTR fmt[rip+20], 1
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, fmt[rip]
	mov	esi, -1060088315
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L169
	lea	rdi, .LC47[rip]
	call	errno_exit
	jmp	.L169
.L168:
	lea	rdi, .LC48[rip]
	call	puts@PLT
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, fmt[rip]
	mov	esi, -1060088316
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L169
	lea	rdi, .LC49[rip]
	call	errno_exit
.L169:
	mov	eax, DWORD PTR fmt[rip+8]
	add	eax, eax
	mov	DWORD PTR -196[rbp], eax
	mov	eax, DWORD PTR fmt[rip+24]
	cmp	DWORD PTR -196[rbp], eax
	jbe	.L170
	mov	eax, DWORD PTR -196[rbp]
	mov	DWORD PTR fmt[rip+24], eax
.L170:
	mov	edx, DWORD PTR fmt[rip+24]
	mov	eax, DWORD PTR fmt[rip+12]
	imul	eax, edx
	mov	DWORD PTR -196[rbp], eax
	mov	eax, DWORD PTR fmt[rip+28]
	cmp	DWORD PTR -196[rbp], eax
	jbe	.L171
	mov	eax, DWORD PTR -196[rbp]
	mov	DWORD PTR fmt[rip+28], eax
.L171:
	mov	eax, DWORD PTR io[rip]
	cmp	eax, 2
	je	.L172
	cmp	eax, 2
	ja	.L181
	test	eax, eax
	je	.L174
	cmp	eax, 1
	je	.L175
	jmp	.L181
.L174:
	mov	eax, DWORD PTR fmt[rip+28]
	mov	edi, eax
	call	init_read
	jmp	.L173
.L175:
	call	init_mmap
	jmp	.L173
.L172:
	mov	eax, DWORD PTR fmt[rip+28]
	mov	edi, eax
	call	init_userp
	nop
.L173:
.L181:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L176
	call	__stack_chk_fail@PLT
.L176:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	init_device, .-init_device
	.section	.rodata
.LC50:
	.string	"close"
	.text
	.type	close_device, @function
close_device:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L183
	lea	rdi, .LC50[rip]
	call	errno_exit
.L183:
	mov	DWORD PTR fd[rip], -1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	close_device, .-close_device
	.section	.rodata
.LC51:
	.string	"Cannot identify '%s': %d, %s\n"
.LC52:
	.string	"%s is no device\n"
.LC53:
	.string	"Cannot open '%s': %d, %s\n"
	.text
	.type	open_device, @function
open_device:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 168
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR dev_name[rip]
	lea	rdx, -176[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L185
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rbx
	lea	rsi, .LC51[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L185:
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 61440
	cmp	eax, 8192
	je	.L186
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC52[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L186:
	mov	rax, QWORD PTR dev_name[rip]
	mov	edx, 0
	mov	esi, 2050
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	cmp	eax, -1
	jne	.L189
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rbx
	lea	rsi, .LC53[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L189:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L188
	call	__stack_chk_fail@PLT
.L188:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	open_device, .-open_device
	.section	.rodata
	.align 8
.LC54:
	.ascii	"Usage: %s [options]\n\nVersion 1.3\nOptions:\n-d | --device "
	.ascii	"name   Video device name [%s]\n-h | --help          Print th"
	.ascii	"is message\n-m | --mmap          Use memory mapped bu"
	.string	"ffers [default]\n-r | --read          Use read() calls\n-u | --userp         Use application allocated buffers\n-o | --output        Outputs stream to stdout\n-f | --format        Force format to 640x480 GREY\n-c | --count         Number of frames to grab [%i]\n"
	.text
	.type	usage, @function
usage:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	esi, DWORD PTR frame_count[rip]
	mov	rcx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, esi
	lea	rsi, .LC54[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	usage, .-usage
	.section	.rodata
	.align 8
	.type	short_options, @object
	.size	short_options, 11
short_options:
	.string	"d:hmruofc:"
.LC55:
	.string	"device"
.LC56:
	.string	"help"
.LC57:
	.string	"userp"
.LC58:
	.string	"output"
.LC59:
	.string	"format"
.LC60:
	.string	"count"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	long_options, @object
	.size	long_options, 288
long_options:
	.quad	.LC55
	.long	1
	.zero	4
	.quad	0
	.long	100
	.zero	4
	.quad	.LC56
	.long	0
	.zero	4
	.quad	0
	.long	104
	.zero	4
	.quad	.LC39
	.long	0
	.zero	4
	.quad	0
	.long	109
	.zero	4
	.quad	.LC17
	.long	0
	.zero	4
	.quad	0
	.long	114
	.zero	4
	.quad	.LC57
	.long	0
	.zero	4
	.quad	0
	.long	117
	.zero	4
	.quad	.LC58
	.long	0
	.zero	4
	.quad	0
	.long	111
	.zero	4
	.quad	.LC59
	.long	0
	.zero	4
	.quad	0
	.long	102
	.zero	4
	.quad	.LC60
	.long	1
	.zero	4
	.quad	0
	.long	99
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.section	.rodata
.LC61:
	.string	"/dev/video0"
	.align 8
.LC63:
	.string	"Total capture time=%lf, for %d frames, %lf FPS\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -20[rbp], 1
	jle	.L192
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR dev_name[rip], rax
	jmp	.L209
.L192:
	lea	rax, .LC61[rip]
	mov	QWORD PTR dev_name[rip], rax
.L209:
	lea	rdx, -16[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8, rdx
	lea	rcx, long_options[rip]
	lea	rdx, short_options[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L194
	call	open_device
	call	init_device
	call	start_capturing
	call	mainloop
	call	stop_capturing
	movsd	xmm0, QWORD PTR fstop[rip]
	movsd	xmm2, QWORD PTR fstart[rip]
	movapd	xmm1, xmm0
	subsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC62[rip]
	movapd	xmm2, xmm0
	divsd	xmm2, xmm1
	movsd	xmm0, QWORD PTR fstop[rip]
	movsd	xmm1, QWORD PTR fstart[rip]
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movapd	xmm1, xmm2
	mov	esi, 1802
	movq	xmm0, rax
	lea	rdi, .LC63[rip]
	mov	eax, 2
	call	printf@PLT
	call	uninit_device
	call	close_device
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L210
	jmp	.L211
.L194:
	cmp	DWORD PTR -12[rbp], 0
	je	.L212
	cmp	DWORD PTR -12[rbp], 0
	js	.L197
	cmp	DWORD PTR -12[rbp], 117
	jg	.L197
	cmp	DWORD PTR -12[rbp], 99
	jl	.L197
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 99
	cmp	eax, 18
	ja	.L197
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L199[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L199[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L199:
	.long	.L206-.L199
	.long	.L205-.L199
	.long	.L197-.L199
	.long	.L204-.L199
	.long	.L197-.L199
	.long	.L203-.L199
	.long	.L197-.L199
	.long	.L197-.L199
	.long	.L197-.L199
	.long	.L197-.L199
	.long	.L202-.L199
	.long	.L197-.L199
	.long	.L201-.L199
	.long	.L197-.L199
	.long	.L197-.L199
	.long	.L200-.L199
	.long	.L197-.L199
	.long	.L197-.L199
	.long	.L198-.L199
	.text
.L205:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR dev_name[rip], rax
	jmp	.L207
.L203:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	usage
	mov	edi, 0
	call	exit@PLT
.L202:
	mov	DWORD PTR io[rip], 1
	jmp	.L207
.L200:
	mov	DWORD PTR io[rip], 0
	jmp	.L207
.L198:
	mov	DWORD PTR io[rip], 2
	jmp	.L207
.L201:
	mov	eax, DWORD PTR out_buf[rip]
	add	eax, 1
	mov	DWORD PTR out_buf[rip], eax
	jmp	.L207
.L204:
	mov	eax, DWORD PTR force_format[rip]
	add	eax, 1
	mov	DWORD PTR force_format[rip], eax
	jmp	.L207
.L206:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR frame_count[rip], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L213
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	errno_exit
	jmp	.L213
.L197:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	usage
	mov	edi, 1
	call	exit@PLT
.L212:
	nop
	jmp	.L209
.L213:
	nop
.L207:
	jmp	.L209
.L211:
	call	__stack_chk_fail@PLT
.L210:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 11
__PRETTY_FUNCTION__.0:
	.string	"read_frame"
	.align 8
.LC4:
	.long	0
	.long	1104006501
	.align 8
.LC6:
	.long	0
	.long	1076887552
	.align 8
.LC7:
	.long	1992864825
	.long	1072865214
	.align 8
.LC8:
	.long	0
	.long	1080033280
	.align 8
.LC9:
	.long	-1161359157
	.long	1072860600
	.align 4
.LC10:
	.long	1132396544
	.align 8
.LC12:
	.long	-1821066134
	.long	1072301080
	.align 8
.LC13:
	.long	-584115552
	.long	1071187492
	.align 8
.LC14:
	.long	790273982
	.long	1073751261
	.align 8
.LC62:
	.long	0
	.long	1083974656
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"463545.c"
	.text
	.local	fmt
	.comm	fmt,204,4
	.local	dev_name
	.comm	dev_name,4,4
	.data
	.align	2
	.type	io, %object
	.size	io, 4
io:
	.word	1
	.align	2
	.type	fd, %object
	.size	fd, 4
fd:
	.word	-1
	.comm	buffers,4,4
	.local	n_buffers
	.comm	n_buffers,4,4
	.local	out_buf
	.comm	out_buf,4,4
	.align	2
	.type	force_format, %object
	.size	force_format, 4
force_format:
	.word	1
	.align	2
	.type	frame_count, %object
	.size	frame_count, 4
frame_count:
	.word	1810
	.comm	R,307200,4
	.comm	G,307200,4
	.comm	B,307200,4
	.comm	convR,307200,4
	.comm	convG,307200,4
	.comm	convB,307200,4
	.local	fnow
	.comm	fnow,8,8
	.local	fstart
	.comm	fstart,8,8
	.local	fstop
	.comm	fstop,8,8
	.local	time_now
	.comm	time_now,8,4
	.local	time_start
	.comm	time_start,8,4
	.local	time_stop
	.comm	time_stop,8,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s error %d, %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	errno_exit, %function
errno_exit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L2
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r5
	ldr	r2, [fp, #-16]
	ldr	r1, .L2+4
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	errno_exit, .-errno_exit
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xioctl, %function
xioctl:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
.L6:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	ioctl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L6
.L5:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	xioctl, .-xioctl
	.global	ppm_header
	.data
	.align	2
	.type	ppm_header, %object
	.size	ppm_header, 49
ppm_header:
	.ascii	"P6\012#9999999999 sec 9999999999 msec \012640 480\012"
	.ascii	"255\012\000"
	.global	ppm_dumpname
	.align	2
	.type	ppm_dumpname, %object
	.size	ppm_dumpname, 20
ppm_dumpname:
	.ascii	"frames/test0000.ppm\000"
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%04d\000"
	.align	2
.LC2:
	.ascii	".ppm\000"
	.align	2
.LC3:
	.ascii	"%010d\000"
	.align	2
.LC4:
	.ascii	" sec \000"
	.align	2
.LC5:
	.ascii	" msec \012640 480\012255\012\000"
	.align	2
.LC6:
	.ascii	"written=%d, size=%d\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_dsub
	.align	2
.LC7:
	.ascii	"Frame written to flash at %lf, %d, bytes\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_ppm, %function
dump_ppm:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	ldr	r2, .L10
	mov	r1, #9
	ldr	r0, .L10+4
	bl	snprintf
	ldr	r0, .L10+8
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L10+8
	add	r3, r2, r3
	ldr	r2, .L10+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L10+16
	ldr	r1, .L10+20
	ldr	r0, .L10+24
	bl	open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, .L10+28
	mov	r1, #11
	ldr	r0, .L10+32
	bl	snprintf
	ldr	r0, .L10+36
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L10+36
	add	r3, r2, r3
	ldr	r2, .L10+40
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	ldr	r2, .L10+44
	smull	r1, r2, r3, r2
	asr	r2, r2, #18
	asr	r3, r3, #31
	sub	r3, r2, r3
	ldr	r2, .L10+28
	mov	r1, #11
	ldr	r0, .L10+48
	bl	snprintf
	ldr	r0, .L10+52
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L10+52
	add	r3, r2, r3
	ldr	r2, .L10+56
	mov	r0, r3
	mov	r1, r2
	mov	r3, #20
	mov	r2, r3
	bl	memcpy
	mov	r2, #48
	ldr	r1, .L10+60
	ldr	r0, [fp, #-20]
	bl	write
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
.L9:
	ldr	r3, [fp, #-36]
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-20]
	bl	write
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-16]
	ldr	r0, .L10+64
	bl	printf
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L9
	ldr	r1, .L10+68
	mov	r0, #1
	bl	clock_gettime
	ldr	r3, .L10+68
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L10+68
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L10+72
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L10+76
	stm	r1, {r2-r3}
	ldr	r3, .L10+76
	ldmia	r3, {r0-r1}
	ldr	r3, .L10+80
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L10+84
	bl	printf
	ldr	r0, [fp, #-20]
	bl	close
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	ppm_dumpname+11
	.word	ppm_dumpname+15
	.word	.LC2
	.word	438
	.word	2113
	.word	ppm_dumpname
	.word	.LC3
	.word	ppm_header+4
	.word	ppm_header+14
	.word	.LC4
	.word	1125899907
	.word	ppm_header+19
	.word	ppm_header+29
	.word	.LC5
	.word	ppm_header
	.word	.LC6
	.word	time_now
	.word	1104006501
	.word	fnow
	.word	fstart
	.word	.LC7
	.size	dump_ppm, .-dump_ppm
	.global	pgm_header
	.data
	.align	2
	.type	pgm_header, %object
	.size	pgm_header, 49
pgm_header:
	.ascii	"P5\012#9999999999 sec 9999999999 msec \012640 480\012"
	.ascii	"255\012\000"
	.global	pgm_dumpname
	.align	2
	.type	pgm_dumpname, %object
	.size	pgm_dumpname, 20
pgm_dumpname:
	.ascii	"frames/test0000.pgm\000"
	.section	.rodata
	.align	2
.LC8:
	.ascii	".pgm\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_pgm, %function
dump_pgm:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	ldr	r2, .L14
	mov	r1, #9
	ldr	r0, .L14+4
	bl	snprintf
	ldr	r0, .L14+8
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L14+8
	add	r3, r2, r3
	ldr	r2, .L14+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L14+16
	ldr	r1, .L14+20
	ldr	r0, .L14+24
	bl	open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r2, .L14+28
	mov	r1, #11
	ldr	r0, .L14+32
	bl	snprintf
	ldr	r0, .L14+36
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L14+36
	add	r3, r2, r3
	ldr	r2, .L14+40
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	ldr	r2, .L14+44
	smull	r1, r2, r3, r2
	asr	r2, r2, #18
	asr	r3, r3, #31
	sub	r3, r2, r3
	ldr	r2, .L14+28
	mov	r1, #11
	ldr	r0, .L14+48
	bl	snprintf
	ldr	r0, .L14+52
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L14+52
	add	r3, r2, r3
	ldr	r2, .L14+56
	mov	r0, r3
	mov	r1, r2
	mov	r3, #20
	mov	r2, r3
	bl	memcpy
	mov	r2, #48
	ldr	r1, .L14+60
	ldr	r0, [fp, #-20]
	bl	write
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
.L13:
	ldr	r3, [fp, #-36]
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-20]
	bl	write
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L13
	ldr	r1, .L14+64
	mov	r0, #1
	bl	clock_gettime
	ldr	r3, .L14+64
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L14+64
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L14+68
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L14+72
	stm	r1, {r2-r3}
	ldr	r3, .L14+72
	ldmia	r3, {r0-r1}
	ldr	r3, .L14+76
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L14+80
	bl	printf
	ldr	r0, [fp, #-20]
	bl	close
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	pgm_dumpname+11
	.word	pgm_dumpname+15
	.word	.LC8
	.word	438
	.word	2113
	.word	pgm_dumpname
	.word	.LC3
	.word	pgm_header+4
	.word	pgm_header+14
	.word	.LC4
	.word	1125899907
	.word	pgm_header+19
	.word	pgm_header+29
	.word	.LC5
	.word	pgm_header
	.word	time_now
	.word	1104006501
	.word	fnow
	.word	fstart
	.word	.LC7
	.size	dump_pgm, .-dump_pgm
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.global	__aeabi_d2f
	.global	__aeabi_fcmpgt
	.global	__aeabi_fcmplt
	.global	__aeabi_f2uiz
	.align	2
	.global	yuv2rgb_float
	.syntax unified
	.arm
	.fpu softvfp
	.type	yuv2rgb_float, %function
yuv2rgb_float:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-32]	@ float
	str	r1, [fp, #-36]	@ float
	str	r2, [fp, #-40]	@ float
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L47
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L47+4
	ldr	r3, .L47+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L47+12
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L47+16
	ldr	r3, .L47+20
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r1, .L47+24
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	mov	r3, #255
	b	.L19
.L41:
	mov	r1, #0
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	mov	r3, #0
	b	.L19
.L42:
	ldr	r0, [fp, #-24]	@ float
	bl	__aeabi_f2uiz
	mov	r3, r0
	and	r3, r3, #255
.L19:
	ldr	r2, [fp, #-44]
	strb	r3, [r2]
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L47
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L47+4
	ldr	r3, .L47+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-40]	@ float
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L47+12
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L47+28
	ldr	r3, .L47+32
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L47+12
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L47+36
	ldr	r3, .L47+40
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r1, .L47+24
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	mov	r3, #255
	b	.L25
.L43:
	mov	r1, #0
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	mov	r3, #0
	b	.L25
.L44:
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2uiz
	mov	r3, r0
	and	r3, r3, #255
.L25:
	ldr	r2, [fp, #4]
	strb	r3, [r2]
	ldr	r0, [fp, #-32]	@ float
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L47
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L47+4
	ldr	r3, .L47+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-36]	@ float
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L47+12
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, .L47+44
	ldr	r3, .L47+48
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r1, .L47+24
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	mov	r3, #255
	b	.L31
.L45:
	mov	r1, #0
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	mov	r3, #0
	b	.L31
.L46:
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2uiz
	mov	r3, r0
	and	r3, r3, #255
.L31:
	ldr	r2, [fp, #8]
	strb	r3, [r2]
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L48:
	.align	2
.L47:
	.word	1076887552
	.word	1992864825
	.word	1072865214
	.word	1080033280
	.word	-1161359157
	.word	1072860600
	.word	1132396544
	.word	-1821066134
	.word	1072301080
	.word	-584115552
	.word	1071187492
	.word	790273982
	.word	1073751261
	.size	yuv2rgb_float, .-yuv2rgb_float
	.align	2
	.global	yuv2rgb
	.syntax unified
	.arm
	.fpu softvfp
	.type	yuv2rgb, %function
yuv2rgb:
	@ args = 8, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #16
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #128
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #128
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r1, r3, #5
	add	r3, r3, r1
	add	r1, r3, r2
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r0, r3, #4
	add	r3, r3, r0
	lsl	r3, r3, #3
	add	r3, r3, r2
	add	r3, r1, r3
	add	r3, r3, #128
	asr	r3, r3, #8
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r1, r3, #5
	add	r3, r3, r1
	add	r2, r3, r2
	ldr	r3, [fp, #-12]
	mvn	r1, #99
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	mvn	r1, #207
	mul	r3, r1, r3
	add	r3, r2, r3
	add	r3, r3, #128
	asr	r3, r3, #8
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r1, r3, #5
	add	r3, r3, r1
	add	r1, r3, r2
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #128
	asr	r3, r3, #8
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r3, #255
	ble	.L50
	mov	r3, #255
	str	r3, [fp, #-28]
.L50:
	ldr	r3, [fp, #-24]
	cmp	r3, #255
	ble	.L51
	mov	r3, #255
	str	r3, [fp, #-24]
.L51:
	ldr	r3, [fp, #-20]
	cmp	r3, #255
	ble	.L52
	mov	r3, #255
	str	r3, [fp, #-20]
.L52:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L53
	mov	r3, #0
	str	r3, [fp, #-28]
.L53:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L54
	mov	r3, #0
	str	r3, [fp, #-24]
.L54:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L55
	mov	r3, #0
	str	r3, [fp, #-20]
.L55:
	ldr	r3, [fp, #-28]
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	and	r2, r3, #255
	ldr	r3, [fp, #4]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	and	r2, r3, #255
	ldr	r3, [fp, #8]
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	yuv2rgb, .-yuv2rgb
	.global	framecnt
	.data
	.align	2
	.type	framecnt, %object
	.size	framecnt, 4
framecnt:
	.word	-8
	.comm	bigbuffer,1228800,4
	.global	PSF
	.align	3
	.type	PSF, %object
	.size	PSF, 72
PSF:
	.word	0
	.word	-1075838976
	.word	0
	.word	-1075838976
	.word	0
	.word	-1075838976
	.word	0
	.word	-1075838976
	.word	0
	.word	1075052544
	.word	0
	.word	-1075838976
	.word	0
	.word	-1075838976
	.word	0
	.word	-1075838976
	.word	0
	.word	-1075838976
	.section	.rodata
	.align	2
.LC9:
	.ascii	"frame %d: \000"
	.align	2
.LC10:
	.ascii	"ERROR - unknown dump format\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_image, %function
process_image:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #0
	bl	clock_gettime
	ldr	r3, .L61+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L61+4
	str	r3, [r2]
	ldr	r3, .L61+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L61+8
	bl	printf
	ldr	r3, .L61+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L57
	ldr	r1, .L61+12
	mov	r0, #1
	bl	clock_gettime
	ldr	r3, .L61+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L61+12
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L61+16
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L61+20
	stm	r1, {r2-r3}
.L57:
	ldr	r3, .L61+24
	ldr	r3, [r3, #12]
	ldr	r2, .L61+28
	cmp	r3, r2
	beq	.L60
	ldr	r3, .L61+24
	ldr	r3, [r3, #12]
	ldr	r2, .L61+32
	cmp	r3, r2
	beq	.L60
	ldr	r3, .L61+24
	ldr	r3, [r3, #12]
	ldr	r2, .L61+36
	cmp	r3, r2
	beq	.L60
	ldr	r0, .L61+40
	bl	puts
.L60:
	nop
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L59
	bl	__stack_chk_fail
.L59:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC11
	.word	framecnt
	.word	.LC9
	.word	time_start
	.word	1104006501
	.word	fstart
	.word	fmt
	.word	1497715271
	.word	1448695129
	.word	859981650
	.word	.LC10
	.size	process_image, .-process_image
	.section	.rodata
	.align	2
.LC12:
	.ascii	"read\000"
	.align	2
.LC13:
	.ascii	"mmap failure\000"
	.align	2
.LC14:
	.ascii	"VIDIOC_DQBUF\000"
	.align	2
.LC15:
	.ascii	"the_stack_data/463545.c\000"
	.align	2
.LC16:
	.ascii	"buf.index < n_buffers\000"
	.align	2
.LC17:
	.ascii	"VIDIOC_QBUF\000"
	.align	2
.LC18:
	.ascii	"i < n_buffers\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_frame, %function
read_frame:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L89
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L89+4
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L64
	cmp	r3, #2
	bhi	.L65
	cmp	r3, #0
	beq	.L66
	cmp	r3, #1
	beq	.L67
	b	.L65
.L66:
	ldr	r3, .L89+8
	ldr	r0, [r3]
	ldr	r3, .L89+12
	ldr	r3, [r3]
	ldr	r1, [r3]
	ldr	r3, .L89+12
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r2, r3
	bl	read
	mov	r3, r0
	cmn	r3, #1
	bne	.L68
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L69
	mov	r3, #0
	b	.L84
.L69:
	ldr	r0, .L89+16
	bl	errno_exit
.L68:
	ldr	r3, .L89+12
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, .L89+12
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	process_image
	b	.L65
.L67:
	sub	r3, fp, #76
	mov	r2, #68
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-72]
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, .L89+8
	ldr	r3, [r3]
	sub	r2, fp, #76
	ldr	r1, .L89+20
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L71
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #5
	beq	.L72
	cmp	r3, #11
	bne	.L73
	mov	r3, #0
	b	.L84
.L72:
	mov	r3, #0
	b	.L84
.L73:
	ldr	r0, .L89+24
	bl	puts
	ldr	r0, .L89+28
	bl	errno_exit
.L71:
	ldr	r2, [fp, #-76]
	ldr	r3, .L89+32
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L74
	ldr	r3, .L89+36
	ldr	r2, .L89+40
	ldr	r1, .L89+44
	ldr	r0, .L89+48
	bl	__assert_fail
.L74:
	ldr	r3, .L89+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-68]
	mov	r1, r2
	mov	r0, r3
	bl	process_image
	ldr	r3, .L89+8
	ldr	r3, [r3]
	sub	r2, fp, #76
	ldr	r1, .L89+52
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L86
	ldr	r0, .L89+56
	bl	errno_exit
	b	.L86
.L64:
	sub	r3, fp, #76
	mov	r2, #68
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-72]
	mov	r3, #2
	str	r3, [fp, #-28]
	ldr	r3, .L89+8
	ldr	r3, [r3]
	sub	r2, fp, #76
	ldr	r1, .L89+20
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L76
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L77
	mov	r3, #0
	b	.L84
.L77:
	ldr	r0, .L89+28
	bl	errno_exit
.L76:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L78
.L81:
	ldr	r3, [fp, #-24]
	ldr	r2, .L89+12
	ldr	r1, [r2]
	ldr	r2, [fp, #-80]
	lsl	r2, r2, #3
	add	r2, r1, r2
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L79
	ldr	r2, [fp, #-20]
	ldr	r3, .L89+12
	ldr	r1, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #3
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	cmp	r2, r3
	beq	.L87
.L79:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L78:
	ldr	r3, .L89+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bcc	.L81
	b	.L80
.L87:
	nop
.L80:
	ldr	r3, .L89+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bcc	.L82
	ldr	r3, .L89+36
	ldr	r2, .L89+60
	ldr	r1, .L89+44
	ldr	r0, .L89+64
	bl	__assert_fail
.L82:
	ldr	r3, [fp, #-24]
	mov	r2, r3
	ldr	r3, [fp, #-68]
	mov	r1, r3
	mov	r0, r2
	bl	process_image
	ldr	r3, .L89+8
	ldr	r3, [r3]
	sub	r2, fp, #76
	ldr	r1, .L89+52
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L88
	ldr	r0, .L89+56
	bl	errno_exit
	b	.L88
.L86:
	nop
	b	.L65
.L88:
	nop
.L65:
	mov	r3, #1
.L84:
	ldr	r2, .L89
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L85
	bl	__stack_chk_fail
.L85:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	.LC19
	.word	io
	.word	fd
	.word	buffers
	.word	.LC12
	.word	-1069263343
	.word	.LC13
	.word	.LC14
	.word	n_buffers
	.word	__PRETTY_FUNCTION__.7569
	.word	478
	.word	.LC15
	.word	.LC16
	.word	-1069263345
	.word	.LC17
	.word	514
	.word	.LC18
	.size	read_frame, .-read_frame
	.section	.rodata
	.align	2
.LC20:
	.ascii	"Running at 30 frames/sec\000"
	.align	2
.LC21:
	.ascii	"select\000"
	.align	2
.LC22:
	.ascii	"select timeout\012\000"
	.align	2
.LC23:
	.ascii	"nanosleep\000"
	.align	2
.LC24:
	.ascii	" read at %lf, @ %lf FPS\012\000"
	.align	2
.LC25:
	.ascii	"at %lf\012\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mainloop, %function
mainloop:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #184
	ldr	r3, .L111
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L111+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-176]
	ldr	r3, .L111+8
	str	r3, [fp, #-172]
	ldr	r3, .L111+12
	ldr	r3, [r3]
	str	r3, [fp, #-192]
	b	.L92
.L106:
	sub	r3, fp, #152
	str	r3, [fp, #-184]
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L93
.L94:
	ldr	r3, [fp, #-184]
	ldr	r2, [fp, #-188]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L93:
	ldr	r3, [fp, #-188]
	cmp	r3, #31
	bls	.L94
	ldr	r3, .L111+16
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, .L111+16
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	str	r1, [r3, #-132]
	mov	r3, #2
	str	r3, [fp, #-160]
	mov	r3, #0
	str	r3, [fp, #-156]
	ldr	r3, .L111+16
	ldr	r3, [r3]
	add	r0, r3, #1
	sub	r1, fp, #152
	sub	r3, fp, #160
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmn	r3, #1
	bne	.L95
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L109
	ldr	r0, .L111+20
	bl	errno_exit
.L95:
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	bne	.L98
	ldr	r3, .L111+24
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L111+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L98:
	bl	read_frame
	mov	r3, r0
	cmp	r3, #0
	beq	.L99
	sub	r2, fp, #168
	sub	r3, fp, #176
	mov	r1, r2
	mov	r0, r3
	bl	nanosleep
	mov	r3, r0
	cmp	r3, #0
	beq	.L100
	ldr	r0, .L111+32
	bl	perror
	b	.L101
.L100:
	ldr	r3, .L111+36
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L102
	ldr	r1, .L111+40
	mov	r0, #1
	bl	clock_gettime
	ldr	r3, .L111+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L111+40
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L111+44
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L111+48
	stm	r1, {r2-r3}
	ldr	r3, .L111+48
	ldmia	r3, {r0-r1}
	ldr	r3, .L111+52
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, .L111+36
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L111+48
	ldmia	r3, {r0-r1}
	ldr	r3, .L111+52
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L111+56
	bl	printf
	b	.L101
.L102:
	ldr	r3, .L111+48
	ldmia	r3, {r2-r3}
	ldr	r0, .L111+60
	bl	printf
.L101:
	ldr	r3, [fp, #-192]
	sub	r3, r3, #1
	str	r3, [fp, #-192]
	b	.L103
.L99:
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	bne	.L106
	nop
.L103:
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	beq	.L110
	b	.L92
.L109:
	nop
	b	.L106
.L92:
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	bne	.L106
	b	.L107
.L110:
	nop
.L107:
	ldr	r1, .L111+64
	mov	r0, #1
	bl	clock_gettime
	ldr	r3, .L111+64
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, .L111+64
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L111+44
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L111+68
	stm	r1, {r2-r3}
	nop
	ldr	r3, .L111
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L108
	bl	__stack_chk_fail
.L108:
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L112:
	.align	2
.L111:
	.word	.LC26
	.word	.LC20
	.word	33333333
	.word	frame_count
	.word	fd
	.word	.LC21
	.word	stderr
	.word	.LC22
	.word	.LC23
	.word	framecnt
	.word	time_now
	.word	1104006501
	.word	fnow
	.word	fstart
	.word	.LC24
	.word	.LC25
	.word	time_stop
	.word	fstop
	.size	mainloop, .-mainloop
	.section	.rodata
	.align	2
.LC27:
	.ascii	"VIDIOC_STREAMOFF\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	stop_capturing, %function
stop_capturing:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L122
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L122+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L119
	sub	r3, r3, #1
	cmp	r3, #1
	bhi	.L120
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, .L122+8
	ldr	r3, [r3]
	sub	r2, fp, #12
	ldr	r1, .L122+12
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L121
	ldr	r0, .L122+16
	bl	errno_exit
	b	.L121
.L119:
	nop
	b	.L120
.L121:
	nop
.L120:
	nop
	ldr	r3, .L122
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L118
	bl	__stack_chk_fail
.L118:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L123:
	.align	2
.L122:
	.word	.LC28
	.word	io
	.word	fd
	.word	1074026003
	.word	.LC27
	.size	stop_capturing, .-stop_capturing
	.section	.rodata
	.align	2
.LC29:
	.ascii	"allocated buffer %d\012\000"
	.align	2
.LC30:
	.ascii	"VIDIOC_STREAMON\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_capturing, %function
start_capturing:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L142
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L142+4
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L125
	cmp	r3, #2
	bhi	.L138
	cmp	r3, #0
	beq	.L139
	cmp	r3, #1
	beq	.L128
	b	.L138
.L128:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L129
.L131:
	ldr	r1, [fp, #-80]
	ldr	r0, .L142+8
	bl	printf
	sub	r3, fp, #76
	mov	r2, #68
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-72]
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-76]
	ldr	r3, .L142+12
	ldr	r3, [r3]
	sub	r2, fp, #76
	ldr	r1, .L142+16
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L130
	ldr	r0, .L142+20
	bl	errno_exit
.L130:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L129:
	ldr	r3, .L142+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bcc	.L131
	mov	r3, #1
	str	r3, [fp, #-84]
	ldr	r3, .L142+12
	ldr	r3, [r3]
	sub	r2, fp, #84
	ldr	r1, .L142+28
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L140
	ldr	r0, .L142+32
	bl	errno_exit
	b	.L140
.L125:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L133
.L135:
	sub	r3, fp, #76
	mov	r2, #68
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-72]
	mov	r3, #2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-76]
	ldr	r3, .L142+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, .L142+36
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
	ldr	r3, .L142+12
	ldr	r3, [r3]
	sub	r2, fp, #76
	ldr	r1, .L142+16
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L134
	ldr	r0, .L142+20
	bl	errno_exit
.L134:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L133:
	ldr	r3, .L142+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bcc	.L135
	mov	r3, #1
	str	r3, [fp, #-84]
	ldr	r3, .L142+12
	ldr	r3, [r3]
	sub	r2, fp, #84
	ldr	r1, .L142+28
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L141
	ldr	r0, .L142+32
	bl	errno_exit
	b	.L141
.L139:
	nop
	b	.L138
.L140:
	nop
	b	.L138
.L141:
	nop
.L138:
	nop
	ldr	r3, .L142
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L137
	bl	__stack_chk_fail
.L137:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L143:
	.align	2
.L142:
	.word	.LC31
	.word	io
	.word	.LC29
	.word	fd
	.word	-1069263345
	.word	.LC17
	.word	n_buffers
	.word	1074026002
	.word	.LC30
	.word	buffers
	.size	start_capturing, .-start_capturing
	.section	.rodata
	.align	2
.LC32:
	.ascii	"munmap\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uninit_device, %function
uninit_device:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L154
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L145
	cmp	r3, #2
	bhi	.L146
	cmp	r3, #0
	beq	.L147
	cmp	r3, #1
	beq	.L148
	b	.L146
.L147:
	ldr	r3, .L154+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	b	.L146
.L148:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L149
.L151:
	ldr	r3, .L154+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L154+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, r3
	bl	munmap
	mov	r3, r0
	cmn	r3, #1
	bne	.L150
	ldr	r0, .L154+8
	bl	errno_exit
.L150:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L149:
	ldr	r3, .L154+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L151
	b	.L146
.L145:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L152
.L153:
	ldr	r3, .L154+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L152:
	ldr	r3, .L154+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L153
	nop
.L146:
	ldr	r3, .L154+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L155:
	.align	2
.L154:
	.word	io
	.word	buffers
	.word	.LC32
	.word	n_buffers
	.size	uninit_device, .-uninit_device
	.section	.rodata
	.align	2
.LC33:
	.ascii	"Out of memory\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_read, %function
init_read:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	mov	r1, #8
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L160
	str	r2, [r3]
	ldr	r3, .L160
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L157
	ldr	r3, .L160+4
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L160+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L157:
	ldr	r3, .L160
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, .L160
	ldr	r4, [r3]
	ldr	r0, [fp, #-16]
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L160
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L159
	ldr	r3, .L160+4
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L160+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L159:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L161:
	.align	2
.L160:
	.word	buffers
	.word	stderr
	.word	.LC33
	.size	init_read, .-init_read
	.section	.rodata
	.align	2
.LC34:
	.ascii	"%s does not support memory mapping\012\000"
	.align	2
.LC35:
	.ascii	"VIDIOC_REQBUFS\000"
	.align	2
.LC36:
	.ascii	"Insufficient buffer memory on %s\012\000"
	.align	2
.LC37:
	.ascii	"VIDIOC_QUERYBUF\000"
	.align	2
.LC38:
	.ascii	"mmap\000"
	.align	2
.LC39:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_mmap, %function
init_mmap:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	ldr	r3, .L172
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #104
	mov	r2, #20
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #6
	str	r3, [fp, #-104]
	mov	r3, #1
	str	r3, [fp, #-100]
	mov	r3, #1
	str	r3, [fp, #-96]
	ldr	r3, .L172+4
	ldr	r3, [r3]
	sub	r2, fp, #104
	ldr	r1, .L172+8
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L163
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	bne	.L164
	ldr	r3, .L172+12
	ldr	r3, [r3]
	ldr	r2, .L172+16
	ldr	r2, [r2]
	ldr	r1, .L172+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L164:
	ldr	r0, .L172+24
	bl	errno_exit
.L163:
	ldr	r3, [fp, #-104]
	cmp	r3, #1
	bhi	.L165
	ldr	r3, .L172+12
	ldr	r3, [r3]
	ldr	r2, .L172+16
	ldr	r2, [r2]
	ldr	r1, .L172+28
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L165:
	ldr	r3, [fp, #-104]
	mov	r1, #8
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L172+32
	str	r2, [r3]
	ldr	r3, .L172+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L166
	ldr	r3, .L172+12
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L172+36
	bl	fwrite
	mov	r0, #1
	bl	exit
.L166:
	ldr	r3, .L172+40
	mov	r2, #0
	str	r2, [r3]
	b	.L167
.L170:
	sub	r3, fp, #84
	mov	r2, #68
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-80]
	mov	r3, #1
	str	r3, [fp, #-36]
	ldr	r3, .L172+40
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	ldr	r3, .L172+4
	ldr	r3, [r3]
	sub	r2, fp, #84
	ldr	r1, .L172+44
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L168
	ldr	r0, .L172+48
	bl	errno_exit
.L168:
	ldr	r3, .L172+32
	ldr	r2, [r3]
	ldr	r3, .L172+40
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r0, [fp, #-28]
	ldr	r3, .L172+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	mov	ip, r2
	ldr	r2, .L172+32
	ldr	r1, [r2]
	ldr	r2, .L172+40
	ldr	r2, [r2]
	lsl	r2, r2, #3
	add	r4, r1, r2
	str	ip, [sp, #4]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r1, r0
	mov	r0, #0
	bl	mmap
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L172+32
	ldr	r2, [r3]
	ldr	r3, .L172+40
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L169
	ldr	r0, .L172+52
	bl	errno_exit
.L169:
	ldr	r3, .L172+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L172+40
	str	r3, [r2]
.L167:
	ldr	r2, [fp, #-104]
	ldr	r3, .L172+40
	ldr	r3, [r3]
	cmp	r2, r3
	bhi	.L170
	nop
	ldr	r3, .L172
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L171
	bl	__stack_chk_fail
.L171:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L173:
	.align	2
.L172:
	.word	.LC39
	.word	fd
	.word	-1072409080
	.word	stderr
	.word	dev_name
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	buffers
	.word	.LC33
	.word	n_buffers
	.word	-1069263351
	.word	.LC37
	.word	.LC38
	.size	init_mmap, .-init_mmap
	.section	.rodata
	.align	2
.LC40:
	.ascii	"%s does not support user pointer i/o\012\000"
	.align	2
.LC41:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_userp, %function
init_userp:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	ldr	r3, .L182
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #36
	mov	r2, #20
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #4
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-32]
	mov	r3, #2
	str	r3, [fp, #-28]
	ldr	r3, .L182+4
	ldr	r3, [r3]
	sub	r2, fp, #36
	ldr	r1, .L182+8
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L175
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	bne	.L176
	ldr	r3, .L182+12
	ldr	r3, [r3]
	ldr	r2, .L182+16
	ldr	r2, [r2]
	ldr	r1, .L182+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L176:
	ldr	r0, .L182+24
	bl	errno_exit
.L175:
	mov	r1, #8
	mov	r0, #4
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L182+28
	str	r2, [r3]
	ldr	r3, .L182+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L177
	ldr	r3, .L182+12
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L182+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L177:
	ldr	r3, .L182+36
	mov	r2, #0
	str	r2, [r3]
	b	.L178
.L180:
	ldr	r3, .L182+28
	ldr	r2, [r3]
	ldr	r3, .L182+36
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3, #4]
	ldr	r3, .L182+28
	ldr	r2, [r3]
	ldr	r3, .L182+36
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r4, r2, r3
	ldr	r0, [fp, #-40]
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, .L182+28
	ldr	r2, [r3]
	ldr	r3, .L182+36
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L179
	ldr	r3, .L182+12
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L182+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L179:
	ldr	r3, .L182+36
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L182+36
	str	r3, [r2]
.L178:
	ldr	r3, .L182+36
	ldr	r3, [r3]
	cmp	r3, #3
	bls	.L180
	nop
	ldr	r3, .L182
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L181
	bl	__stack_chk_fail
.L181:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L183:
	.align	2
.L182:
	.word	.LC41
	.word	fd
	.word	-1072409080
	.word	stderr
	.word	dev_name
	.word	.LC40
	.word	.LC35
	.word	buffers
	.word	.LC33
	.word	n_buffers
	.size	init_userp, .-init_userp
	.section	.rodata
	.align	2
.LC42:
	.ascii	"%s is no V4L2 device\012\000"
	.align	2
.LC43:
	.ascii	"VIDIOC_QUERYCAP\000"
	.align	2
.LC44:
	.ascii	"%s is no video capture device\012\000"
	.align	2
.LC45:
	.ascii	"%s does not support read i/o\012\000"
	.align	2
.LC46:
	.ascii	"%s does not support streaming i/o\012\000"
	.align	2
.LC47:
	.ascii	"FORCING FORMAT\000"
	.align	2
.LC48:
	.ascii	"VIDIOC_S_FMT\000"
	.align	2
.LC49:
	.ascii	"ASSUMING FORMAT\000"
	.align	2
.LC50:
	.ascii	"VIDIOC_G_FMT\000"
	.align	2
.LC51:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_device, %function
init_device:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #176
	ldr	r3, .L210
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L210+4
	ldr	r3, [r3]
	sub	r2, fp, #112
	ldr	r1, .L210+8
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L185
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	bne	.L186
	ldr	r3, .L210+12
	ldr	r3, [r3]
	ldr	r2, .L210+16
	ldr	r2, [r2]
	ldr	r1, .L210+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L186:
	ldr	r0, .L210+24
	bl	errno_exit
.L185:
	ldr	r3, [fp, #-28]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L187
	ldr	r3, .L210+12
	ldr	r3, [r3]
	ldr	r2, .L210+16
	ldr	r2, [r2]
	ldr	r1, .L210+28
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L187:
	ldr	r3, .L210+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L188
	sub	r3, r3, #1
	cmp	r3, #1
	bhi	.L189
	b	.L205
.L188:
	ldr	r3, [fp, #-28]
	and	r3, r3, #16777216
	cmp	r3, #0
	bne	.L206
	ldr	r3, .L210+12
	ldr	r3, [r3]
	ldr	r2, .L210+16
	ldr	r2, [r2]
	ldr	r1, .L210+36
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L205:
	ldr	r3, [fp, #-28]
	and	r3, r3, #67108864
	cmp	r3, #0
	bne	.L207
	ldr	r3, .L210+12
	ldr	r3, [r3]
	ldr	r2, .L210+16
	ldr	r2, [r2]
	ldr	r1, .L210+40
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L206:
	nop
	b	.L189
.L207:
	nop
.L189:
	sub	r3, fp, #156
	mov	r2, #44
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-156]
	ldr	r3, .L210+4
	ldr	r3, [r3]
	sub	r2, fp, #156
	ldr	r1, .L210+44
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmp	r3, #0
	bne	.L193
	mov	r3, #1
	str	r3, [fp, #-176]
	sub	ip, fp, #172
	sub	r3, fp, #136
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L210+4
	ldr	r3, [r3]
	sub	r2, fp, #176
	ldr	r1, .L210+48
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L208
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	b	.L193
.L208:
	nop
.L193:
	mov	r2, #204
	mov	r1, #0
	ldr	r0, .L210+52
	bl	memset
	ldr	r3, .L210+52
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L210+56
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L196
	ldr	r0, .L210+60
	bl	puts
	ldr	r3, .L210+52
	mov	r2, #640
	str	r2, [r3, #4]
	ldr	r3, .L210+52
	mov	r2, #480
	str	r2, [r3, #8]
	ldr	r3, .L210+52
	ldr	r2, .L210+64
	str	r2, [r3, #12]
	ldr	r3, .L210+52
	mov	r2, #1
	str	r2, [r3, #16]
	ldr	r3, .L210+4
	ldr	r3, [r3]
	ldr	r2, .L210+52
	ldr	r1, .L210+68
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L197
	ldr	r0, .L210+72
	bl	errno_exit
	b	.L197
.L196:
	ldr	r0, .L210+76
	bl	puts
	ldr	r3, .L210+4
	ldr	r3, [r3]
	ldr	r2, .L210+52
	ldr	r1, .L210+80
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L197
	ldr	r0, .L210+84
	bl	errno_exit
.L197:
	ldr	r3, .L210+52
	ldr	r3, [r3, #4]
	lsl	r3, r3, #1
	str	r3, [fp, #-180]
	ldr	r3, .L210+52
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-180]
	cmp	r2, r3
	bls	.L198
	ldr	r2, .L210+52
	ldr	r3, [fp, #-180]
	str	r3, [r2, #20]
.L198:
	ldr	r3, .L210+52
	ldr	r3, [r3, #20]
	ldr	r2, .L210+52
	ldr	r2, [r2, #8]
	mul	r3, r2, r3
	str	r3, [fp, #-180]
	ldr	r3, .L210+52
	ldr	r3, [r3, #24]
	ldr	r2, [fp, #-180]
	cmp	r2, r3
	bls	.L199
	ldr	r2, .L210+52
	ldr	r3, [fp, #-180]
	str	r3, [r2, #24]
.L199:
	ldr	r3, .L210+32
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L200
	cmp	r3, #2
	bhi	.L209
	cmp	r3, #0
	beq	.L202
	cmp	r3, #1
	beq	.L203
	b	.L209
.L202:
	ldr	r3, .L210+52
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	init_read
	b	.L201
.L203:
	bl	init_mmap
	b	.L201
.L200:
	ldr	r3, .L210+52
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	init_userp
	nop
.L201:
.L209:
	nop
	ldr	r3, .L210
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L204
	bl	__stack_chk_fail
.L204:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L211:
	.align	2
.L210:
	.word	.LC51
	.word	fd
	.word	-2140645888
	.word	stderr
	.word	dev_name
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	io
	.word	.LC45
	.word	.LC46
	.word	-1070836166
	.word	1075074620
	.word	fmt
	.word	force_format
	.word	.LC47
	.word	1448695129
	.word	-1060350459
	.word	.LC48
	.word	.LC49
	.word	-1060350460
	.word	.LC50
	.size	init_device, .-init_device
	.section	.rodata
	.align	2
.LC52:
	.ascii	"close\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	close_device, %function
close_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L214
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L213
	ldr	r0, .L214+4
	bl	errno_exit
.L213:
	ldr	r3, .L214
	mvn	r2, #0
	str	r2, [r3]
	nop
	pop	{fp, pc}
.L215:
	.align	2
.L214:
	.word	fd
	.word	.LC52
	.size	close_device, .-close_device
	.section	.rodata
	.align	2
.LC53:
	.ascii	"Cannot identify '%s': %d, %s\012\000"
	.align	2
.LC54:
	.ascii	"%s is no device\012\000"
	.align	2
.LC55:
	.ascii	"Cannot open '%s': %d, %s\012\000"
	.align	2
.LC56:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_device, %function
open_device:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #108
	ldr	r3, .L222
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, .L222+4
	ldr	r3, [r3]
	sub	r2, fp, #116
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L217
	ldr	r3, .L222+8
	ldr	r4, [r3]
	ldr	r3, .L222+4
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r6, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r6
	mov	r2, r5
	ldr	r1, .L222+12
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L217:
	ldr	r3, [fp, #-100]
	and	r3, r3, #61440
	cmp	r3, #8192
	beq	.L218
	ldr	r3, .L222+8
	ldr	r3, [r3]
	ldr	r2, .L222+4
	ldr	r2, [r2]
	ldr	r1, .L222+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L218:
	ldr	r3, .L222+4
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L222+20
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L222+24
	str	r3, [r2]
	ldr	r3, .L222+24
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L221
	ldr	r3, .L222+8
	ldr	r4, [r3]
	ldr	r3, .L222+4
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r6, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r6
	mov	r2, r5
	ldr	r1, .L222+28
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L221:
	nop
	ldr	r3, .L222
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L220
	bl	__stack_chk_fail
.L220:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L223:
	.align	2
.L222:
	.word	.LC56
	.word	dev_name
	.word	stderr
	.word	.LC53
	.word	.LC54
	.word	2050
	.word	fd
	.word	.LC55
	.size	open_device, .-open_device
	.section	.rodata
	.align	2
.LC57:
	.ascii	"Usage: %s [options]\012\012Version 1.3\012Options:\012"
	.ascii	"-d | --device name   Video device name [%s]\012-h |"
	.ascii	" --help          Print this message\012-m | --mmap "
	.ascii	"         Use memory mapped buffers [default]\012-r "
	.ascii	"| --read          Use read() calls\012-u | --userp "
	.ascii	"        Use application allocated buffers\012-o | -"
	.ascii	"-output        Outputs stream to stdout\012-f | --f"
	.ascii	"ormat        Force format to 640x480 GREY\012-c | -"
	.ascii	"-count         Number of frames to grab [%i]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, .L225
	ldr	r1, [r3]
	ldr	r3, .L225+4
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L225+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L226:
	.align	2
.L225:
	.word	dev_name
	.word	frame_count
	.word	.LC57
	.size	usage, .-usage
	.section	.rodata
	.align	2
	.type	short_options, %object
	.size	short_options, 11
short_options:
	.ascii	"d:hmruofc:\000"
	.align	2
.LC58:
	.ascii	"device\000"
	.align	2
.LC59:
	.ascii	"help\000"
	.align	2
.LC60:
	.ascii	"userp\000"
	.align	2
.LC61:
	.ascii	"output\000"
	.align	2
.LC62:
	.ascii	"format\000"
	.align	2
.LC63:
	.ascii	"count\000"
	.align	2
	.type	long_options, %object
	.size	long_options, 144
long_options:
	.word	.LC58
	.word	1
	.word	0
	.word	100
	.word	.LC59
	.word	0
	.word	0
	.word	104
	.word	.LC38
	.word	0
	.word	0
	.word	109
	.word	.LC12
	.word	0
	.word	0
	.word	114
	.word	.LC60
	.word	0
	.word	0
	.word	117
	.word	.LC61
	.word	0
	.word	0
	.word	111
	.word	.LC62
	.word	0
	.word	0
	.word	102
	.word	.LC63
	.word	1
	.word	0
	.word	99
	.word	0
	.word	0
	.word	0
	.word	0
	.align	2
.LC64:
	.ascii	"/dev/video0\000"
	.align	2
.LC65:
	.ascii	"Total capture time=%lf, for %d frames, %lf FPS\012\000"
	.align	2
.LC66:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L250
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	ble	.L228
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #4]
	ldr	r2, .L250+4
	str	r3, [r2]
	b	.L245
.L228:
	ldr	r3, .L250+4
	ldr	r2, .L250+8
	str	r2, [r3]
.L245:
	sub	r3, fp, #24
	str	r3, [sp]
	ldr	r3, .L250+12
	ldr	r2, .L250+16
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getopt_long
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L230
	bl	open_device
	bl	init_device
	bl	start_capturing
	bl	mainloop
	bl	stop_capturing
	ldr	r3, .L250+20
	ldmia	r3, {r0-r1}
	ldr	r3, .L250+24
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, .L250+20
	ldmia	r3, {r0-r1}
	ldr	r3, .L250+24
	ldmia	r3, {r2-r3}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L250+28
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, .L250+32
	str	r3, [sp]
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L250+36
	bl	printf
	bl	uninit_device
	bl	close_device
	ldr	r3, .L250+40
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r3, #0
	ldr	r2, .L250
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L246
	b	.L247
.L230:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L248
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L233
	ldr	r3, [fp, #-20]
	cmp	r3, #117
	bgt	.L233
	ldr	r3, [fp, #-20]
	cmp	r3, #99
	blt	.L233
	ldr	r3, [fp, #-20]
	sub	r3, r3, #99
	cmp	r3, #18
	ldrls	pc, [pc, r3, asl #2]
	b	.L233
.L235:
	.word	.L242
	.word	.L241
	.word	.L233
	.word	.L240
	.word	.L233
	.word	.L239
	.word	.L233
	.word	.L233
	.word	.L233
	.word	.L233
	.word	.L238
	.word	.L233
	.word	.L237
	.word	.L233
	.word	.L233
	.word	.L236
	.word	.L233
	.word	.L233
	.word	.L234
.L241:
	ldr	r3, .L250+44
	ldr	r3, [r3]
	ldr	r2, .L250+4
	str	r3, [r2]
	b	.L243
.L239:
	ldr	r3, .L250+48
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	usage
	mov	r0, #0
	bl	exit
.L238:
	ldr	r3, .L250+52
	mov	r2, #1
	str	r2, [r3]
	b	.L243
.L236:
	ldr	r3, .L250+52
	mov	r2, #0
	str	r2, [r3]
	b	.L243
.L234:
	ldr	r3, .L250+52
	mov	r2, #2
	str	r2, [r3]
	b	.L243
.L237:
	ldr	r3, .L250+56
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L250+56
	str	r3, [r2]
	b	.L243
.L240:
	ldr	r3, .L250+60
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L250+60
	str	r3, [r2]
	b	.L243
.L242:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L250+44
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	ldr	r2, .L250+64
	str	r3, [r2]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L249
	ldr	r3, .L250+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	errno_exit
	b	.L249
.L233:
	ldr	r3, .L250+40
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	usage
	mov	r0, #1
	bl	exit
.L248:
	nop
	b	.L245
.L249:
	nop
.L243:
	b	.L245
.L247:
	bl	__stack_chk_fail
.L246:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L251:
	.align	2
.L250:
	.word	.LC66
	.word	dev_name
	.word	.LC64
	.word	long_options
	.word	short_options
	.word	fstop
	.word	fstart
	.word	1083974656
	.word	1802
	.word	.LC65
	.word	stderr
	.word	optarg
	.word	stdout
	.word	io
	.word	out_buf
	.word	force_format
	.word	frame_count
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7569, %object
	.size	__PRETTY_FUNCTION__.7569, 11
__PRETTY_FUNCTION__.7569:
	.ascii	"read_frame\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
