	.file	"852020.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"wb"
	.align 8
.LC1:
	.string	"\nERROR Could not create file %s"
	.text
	.globl	SaveBMPFile
	.type	SaveBMPFile, @function
SaveBMPFile:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -96[rbp], 40
	mov	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	WORD PTR -72[rbp], 1
	mov	WORD PTR -70[rbp], 8
	mov	QWORD PTR -64[rbp], 0
	mov	rdx, QWORD PTR -88[rbp]
	movzx	eax, WORD PTR -70[rbp]
	movzx	eax, ax
	imul	rax, rdx
	lea	rdx, 7[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 3
	add	rax, 3
	and	rax, -4
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	imul	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -48[rbp], 2835
	mov	QWORD PTR -40[rbp], 2835
	mov	QWORD PTR -32[rbp], 256
	mov	QWORD PTR -24[rbp], 0
	mov	WORD PTR -128[rbp], 19778
	mov	QWORD PTR -112[rbp], 0
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 2
	add	rax, rdx
	add	rax, 14
	mov	QWORD PTR -104[rbp], rax
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -144[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L12
.L2:
	mov	rdx, QWORD PTR -144[rbp]
	lea	rax, -128[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -128[rbp]
	lea	rdi, 8[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -128[rbp]
	lea	rdi, 16[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -128[rbp]
	lea	rdi, 24[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fwrite@PLT
	mov	rdx, QWORD PTR -144[rbp]
	lea	rax, -96[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -96[rbp]
	lea	rdi, 8[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -96[rbp]
	lea	rdi, 16[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -96[rbp]
	lea	rdi, 24[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 2
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -96[rbp]
	lea	rdi, 26[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 2
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -96[rbp]
	lea	rdi, 32[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -96[rbp]
	lea	rdi, 40[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -96[rbp]
	lea	rdi, 48[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -96[rbp]
	lea	rdi, 56[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -96[rbp]
	lea	rdi, 64[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fwrite@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -96[rbp]
	lea	rdi, 72[rdx]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 4
	call	fwrite@PLT
	mov	BYTE PTR -153[rbp], -1
	mov	DWORD PTR -164[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -164[rbp]
	mov	BYTE PTR -156[rbp], al
	mov	eax, DWORD PTR -164[rbp]
	mov	BYTE PTR -155[rbp], al
	mov	eax, DWORD PTR -164[rbp]
	mov	BYTE PTR -154[rbp], al
	mov	rdx, QWORD PTR -144[rbp]
	lea	rax, -156[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -164[rbp], 1
.L4:
	mov	rax, QWORD PTR -32[rbp]
	cmp	DWORD PTR -164[rbp], eax
	jl	.L5
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -136[rbp], rax
	mov	DWORD PTR -160[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -160[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -160[rbp], 1
.L6:
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	cmp	QWORD PTR -152[rbp], rax
	jg	.L7
	mov	rax, QWORD PTR -80[rbp]
	sub	eax, 1
	mov	DWORD PTR -164[rbp], eax
	jmp	.L8
.L11:
	mov	DWORD PTR -160[rbp], 0
	jmp	.L9
.L10:
	mov	rdx, QWORD PTR 16[rbp]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -160[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -160[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -136[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -160[rbp], 1
.L9:
	mov	eax, DWORD PTR -160[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	cmp	rdx, rax
	jl	.L10
	mov	rsi, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	sub	DWORD PTR -164[rbp], 1
.L8:
	cmp	DWORD PTR -164[rbp], 0
	jns	.L11
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 1
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	SaveBMPFile, .-SaveBMPFile
	.globl	AllocateImage
	.type	AllocateImage, @function
AllocateImage:
.LFB8:
	.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, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -40[rbp]
	sal	rax, 3
	mov	rcx, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -56[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -56[rbp], 1
.L15:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	cmp	rdx, rax
	jl	.L16
	mov	DWORD PTR -56[rbp], 0
	jmp	.L17
.L20:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L18
.L19:
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -52[rbp], 1
.L18:
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	cmp	rdx, rax
	jl	.L19
	add	DWORD PTR -56[rbp], 1
.L17:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	cmp	rdx, rax
	jl	.L20
	mov	rcx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	AllocateImage, .-AllocateImage
	.globl	FreeImage
	.type	FreeImage, @function
FreeImage:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L23
.L24:
	mov	rdx, QWORD PTR 16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -4[rbp], 1
.L23:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR 32[rbp]
	cmp	rdx, rax
	jl	.L24
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	FreeImage, .-FreeImage
	.globl	im
	.bss
	.align 16
	.type	im, @object
	.size	im, 24
im:
	.zero	24
	.globl	filename
	.data
	.align 8
	.type	filename, @object
	.size	filename, 8
filename:
	.string	"pic.bmp"
	.local	dev_name
	.comm	dev_name,8,8
	.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
	.data
	.align 4
	.type	n_buffers, @object
	.size	n_buffers, 4
n_buffers:
	.long	4
	.align 4
	.type	frame_count, @object
	.size	frame_count, 4
frame_count:
	.long	1
	.globl	po
	.bss
	.align 8
	.type	po, @object
	.size	po, 8
po:
	.zero	8
	.section	.rodata
.LC2:
	.string	"%s error %d, %s\n"
	.text
	.type	errno_exit, @function
errno_exit:
.LFB10:
	.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, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.size	errno_exit, .-errno_exit
	.type	xioctl, @function
xioctl:
.LFB11:
	.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
.L28:
	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	.L27
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L28
.L27:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	xioctl, .-xioctl
	.type	process_raw, @function
process_raw:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -36[rbp], eax
	mov	DWORD PTR -4[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -4[rbp], 1
.L31:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L32
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	process_raw, .-process_raw
	.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -44[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	process_raw
	mov	DWORD PTR -24[rbp], 0
	jmp	.L34
.L37:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR im[rip+8]
	imul	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	rcx, QWORD PTR im[rip]
	mov	edx, DWORD PTR -24[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rcx, QWORD PTR [rdx]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	movzx	eax, al
	mov	QWORD PTR [rdx], rax
	add	DWORD PTR -20[rbp], 1
.L35:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR im[rip+8]
	cmp	rdx, rax
	jl	.L36
	add	DWORD PTR -24[rbp], 1
.L34:
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR im[rip+16]
	cmp	rdx, rax
	jl	.L37
	sub	rsp, 8
	push	QWORD PTR im[rip+16]
	push	QWORD PTR im[rip+8]
	push	QWORD PTR im[rip]
	lea	rdi, filename[rip]
	call	SaveBMPFile
	add	rsp, 32
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	process_image, .-process_image
	.section	.rodata
.LC3:
	.string	"VIDIOC_DQBUF"
.LC4:
	.string	"the_stack_data/852020.c"
.LC5:
	.string	"buf.index < n_buffers"
.LC6:
	.string	"VIDIOC_QBUF"
	.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	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	.L39
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L40
	mov	eax, 0
	jmp	.L44
.L40:
	lea	rdi, .LC3[rip]
	call	errno_exit
.L39:
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	edx, eax
	jb	.L42
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 251
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L42:
	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	.L43
	lea	rdi, .LC6[rip]
	call	errno_exit
.L43:
	mov	eax, 1
.L44:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	read_frame, .-read_frame
	.section	.rodata
.LC7:
	.string	"select"
.LC8:
	.string	"select timeout\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, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR frame_count[rip]
	mov	DWORD PTR -176[rbp], eax
	jmp	.L47
.L53:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 273 "the_stack_data/852020.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -172[rbp], edx
	mov	DWORD PTR -168[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 -164[rbp], eax
	cmp	DWORD PTR -164[rbp], -1
	jne	.L48
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L55
	lea	rdi, .LC7[rip]
	call	errno_exit
.L48:
	cmp	DWORD PTR -164[rbp], 0
	jne	.L51
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L51:
	call	read_frame
	test	eax, eax
	je	.L53
	jmp	.L47
.L55:
	nop
	jmp	.L53
.L47:
	mov	eax, DWORD PTR -176[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -176[rbp], edx
	test	eax, eax
	jne	.L53
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	mainloop, .-mainloop
	.section	.rodata
.LC9:
	.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	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	.L59
	lea	rdi, .LC9[rip]
	call	errno_exit
.L59:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L58
	call	__stack_chk_fail@PLT
.L58:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	stop_capturing, .-stop_capturing
	.section	.rodata
.LC10:
	.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	DWORD PTR -100[rbp], 0
	jmp	.L61
.L63:
	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	.L62
	lea	rdi, .LC6[rip]
	call	errno_exit
.L62:
	add	DWORD PTR -100[rbp], 1
.L61:
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	DWORD PTR -100[rbp], eax
	jb	.L63
	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	.L66
	lea	rdi, .LC10[rip]
	call	errno_exit
.L66:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L65
	call	__stack_chk_fail@PLT
.L65:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	start_capturing, .-start_capturing
	.section	.rodata
.LC11:
	.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	DWORD PTR -4[rbp], 0
	jmp	.L68
.L70:
	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	.L69
	lea	rdi, .LC11[rip]
	call	errno_exit
.L69:
	add	DWORD PTR -4[rbp], 1
.L68:
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	DWORD PTR -4[rbp], eax
	jb	.L70
	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
	.align 8
.LC12:
	.string	"%s does not support memory mappingn"
.LC13:
	.string	"VIDIOC_REQBUFS"
	.align 8
.LC14:
	.string	"Insufficient buffer memory on %s\n"
.LC15:
	.string	"Out of memory\n"
.LC16:
	.string	"VIDIOC_QUERYBUF"
.LC17:
	.string	"mmap"
	.text
	.type	init_mmap, @function
init_mmap:
.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, 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], 4
	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	.L72
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jne	.L73
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L73:
	lea	rdi, .LC13[rip]
	call	errno_exit
.L72:
	mov	eax, DWORD PTR -144[rbp]
	cmp	eax, 1
	ja	.L74
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L74:
	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	.L75
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L75:
	mov	DWORD PTR n_buffers[rip], 0
	jmp	.L76
.L79:
	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	.L77
	lea	rdi, .LC16[rip]
	call	errno_exit
.L77:
	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	.L78
	lea	rdi, .LC17[rip]
	call	errno_exit
.L78:
	mov	eax, DWORD PTR n_buffers[rip]
	add	eax, 1
	mov	DWORD PTR n_buffers[rip], eax
.L76:
	mov	edx, DWORD PTR -144[rbp]
	mov	eax, DWORD PTR n_buffers[rip]
	cmp	edx, eax
	ja	.L79
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L80
	call	__stack_chk_fail@PLT
.L80:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	init_mmap, .-init_mmap
	.section	.rodata
.LC18:
	.string	"%s is no V4L2 device\n"
.LC19:
	.string	"VIDIOC_QUERYCAP"
	.align 8
.LC20:
	.string	"%s is no video capture device\n"
	.align 8
.LC21:
	.string	"%s does not support streaming i/o\n"
.LC22:
	.string	"VIDIOC_S_FMT"
	.text
	.type	init_device, @function
init_device:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 416
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -336[rbp]
	mov	esi, -2140645888
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L82
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jne	.L83
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L83:
	lea	rdi, .LC19[rip]
	call	errno_exit
.L82:
	mov	eax, DWORD PTR -252[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L84
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L84:
	mov	eax, DWORD PTR -252[rbp]
	and	eax, 67108864
	test	eax, eax
	jne	.L85
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L85:
	lea	rax, -384[rbp]
	mov	edx, 44
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -384[rbp], 1
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -384[rbp]
	mov	esi, -1070836166
	mov	edi, eax
	call	xioctl
	test	eax, eax
	jne	.L86
	mov	DWORD PTR -416[rbp], 1
	mov	rax, QWORD PTR -364[rbp]
	mov	rdx, QWORD PTR -356[rbp]
	mov	QWORD PTR -412[rbp], rax
	mov	QWORD PTR -404[rbp], rdx
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -416[rbp]
	mov	esi, 1075074620
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L91
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	jmp	.L86
.L91:
	nop
.L86:
	lea	rax, -224[rbp]
	mov	edx, 208
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -224[rbp], 1
	mov	DWORD PTR -216[rbp], 640
	mov	DWORD PTR -212[rbp], 480
	mov	DWORD PTR -208[rbp], 1448695129
	mov	DWORD PTR -204[rbp], 1
	mov	eax, DWORD PTR fd[rip]
	lea	rdx, -224[rbp]
	mov	esi, -1060088315
	mov	edi, eax
	call	xioctl
	cmp	eax, -1
	jne	.L89
	lea	rdi, .LC22[rip]
	call	errno_exit
.L89:
	call	init_mmap
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L90
	call	__stack_chk_fail@PLT
.L90:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	init_device, .-init_device
	.section	.rodata
.LC23:
	.string	"close"
	.text
	.type	close_device, @function
close_device:
.LFB21:
	.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	.L93
	lea	rdi, .LC23[rip]
	call	errno_exit
.L93:
	mov	DWORD PTR fd[rip], -1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	close_device, .-close_device
	.section	.rodata
.LC24:
	.string	"Cannot identify '%s': %d, %s\n"
.LC25:
	.string	"%s is no device\n"
.LC26:
	.string	"Cannot open '%s': %d, %s\n"
	.text
	.type	open_device, @function
open_device:
.LFB22:
	.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	.L95
	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, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L95:
	mov	eax, DWORD PTR -152[rbp]
	and	eax, 61440
	cmp	eax, 8192
	je	.L96
	mov	rdx, QWORD PTR dev_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L96:
	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	.L99
	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, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L99:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L98
	call	__stack_chk_fail@PLT
.L98:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	open_device, .-open_device
	.section	.rodata
.LC27:
	.string	"/dev/video0"
	.text
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	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
	lea	rax, -64[rbp]
	mov	edx, 480
	mov	esi, 640
	mov	rdi, rax
	call	AllocateImage
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR im[rip], rax
	mov	QWORD PTR im[rip+8], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR im[rip+16], rax
	lea	rax, .LC27[rip]
	mov	QWORD PTR dev_name[rip], rax
	call	open_device
	call	init_device
	call	start_capturing
	call	mainloop
	call	stop_capturing
	call	uninit_device
	call	close_device
	sub	rsp, 8
	push	QWORD PTR im[rip+16]
	push	QWORD PTR im[rip+8]
	push	QWORD PTR im[rip]
	call	FreeImage
	add	rsp, 32
	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	.L102
	call	__stack_chk_fail@PLT
.L102:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 11
__PRETTY_FUNCTION__.0:
	.string	"read_frame"
	.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	"852020.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"wb\000"
	.align	2
.LC1:
	.ascii	"\012ERROR Could not create file %s\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SaveBMPFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	SaveBMPFile, %function
SaveBMPFile:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-96]
	sub	r0, fp, #108
	stm	r0, {r1, r2, r3}
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #40
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-40]
	mov	r3, #1
	strh	r3, [fp, #-36]	@ movhi
	mov	r3, #8
	strh	r3, [fp, #-34]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	ldrh	r2, [fp, #-34]
	mul	r3, r2, r3
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	add	r3, r3, #3
	bic	r3, r3, #3
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-76]
	mul	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, .L14+4
	str	r3, [fp, #-24]
	ldr	r3, .L14+4
	str	r3, [fp, #-20]
	mov	r3, #256
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L14+8
	strh	r3, [fp, #-64]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	add	r3, r3, #14
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-60]
	ldr	r1, .L14+12
	ldr	r0, [fp, #-96]
	bl	fopen
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L2
	ldr	r1, [fp, #-96]
	ldr	r0, .L14+16
	bl	printf
	mov	r3, #0
	b	.L12
.L2:
	sub	r0, fp, #64
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #2
	bl	fwrite
	sub	r3, fp, #64
	add	r0, r3, #4
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r3, fp, #64
	add	r0, r3, #8
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r3, fp, #64
	add	r0, r3, #12
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r0, fp, #48
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r3, fp, #48
	add	r0, r3, #4
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r3, fp, #48
	add	r0, r3, #8
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r3, fp, #48
	add	r0, r3, #12
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #2
	bl	fwrite
	sub	r3, fp, #48
	add	r0, r3, #14
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #2
	bl	fwrite
	sub	r3, fp, #48
	add	r0, r3, #16
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r3, fp, #48
	add	r0, r3, #20
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r3, fp, #48
	add	r0, r3, #24
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r3, fp, #48
	add	r0, r3, #28
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r3, fp, #48
	add	r0, r3, #32
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	sub	r3, fp, #48
	add	r0, r3, #36
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mvn	r3, #0
	strb	r3, [fp, #-85]
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L4
.L5:
	ldr	r3, [fp, #-84]
	and	r3, r3, #255
	strb	r3, [fp, #-88]
	ldr	r3, [fp, #-84]
	and	r3, r3, #255
	strb	r3, [fp, #-87]
	ldr	r3, [fp, #-84]
	and	r3, r3, #255
	strb	r3, [fp, #-86]
	sub	r0, fp, #88
	ldr	r3, [fp, #-72]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L4:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r3, [fp, #-84]
	cmp	r3, r2
	blt	.L5
	ldr	r3, [fp, #-76]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L6
.L7:
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L6:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-76]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-84]
	b	.L8
.L11:
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L9
.L10:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-80]
	ldr	r1, [fp, #-68]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L9:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	blt	.L10
	ldr	r1, [fp, #-76]
	ldr	r3, [fp, #-72]
	mov	r2, #1
	ldr	r0, [fp, #-68]
	bl	fwrite
	ldr	r3, [fp, #-84]
	sub	r3, r3, #1
	str	r3, [fp, #-84]
.L8:
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bge	.L11
	ldr	r0, [fp, #-68]
	bl	free
	ldr	r0, [fp, #-72]
	bl	fclose
	mov	r3, #1
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	2835
	.word	19778
	.word	.LC0
	.word	.LC1
	.size	SaveBMPFile, .-SaveBMPFile
	.align	2
	.global	AllocateImage
	.syntax unified
	.arm
	.fpu softvfp
	.type	AllocateImage, %function
AllocateImage:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L17
.L18:
	ldr	r3, [fp, #-20]
	lsl	r1, r3, #2
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L17:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L18
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L19
.L22:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L20
.L21:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L20:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L21
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L19:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L22
	ldr	r3, [fp, #-40]
	mov	ip, r3
	sub	r3, fp, #24
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r0, [fp, #-40]
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	AllocateImage, .-AllocateImage
	.align	2
	.global	FreeImage
	.syntax unified
	.arm
	.fpu softvfp
	.type	FreeImage, %function
FreeImage:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	sub	r3, fp, #24
	stm	r3, {r0, r1, r2}
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L25
.L26:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L26
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	FreeImage, .-FreeImage
	.comm	im,12,4
	.global	filename
	.data
	.align	2
	.type	filename, %object
	.size	filename, 8
filename:
	.ascii	"pic.bmp\000"
	.local	dev_name
	.comm	dev_name,4,4
	.align	2
	.type	fd, %object
	.size	fd, 4
fd:
	.word	-1
	.comm	buffers,4,4
	.align	2
	.type	n_buffers, %object
	.size	n_buffers, 4
n_buffers:
	.word	4
	.align	2
	.type	frame_count, %object
	.size	frame_count, 4
frame_count:
	.word	1
	.comm	po,4,4
	.section	.rodata
	.align	2
.LC3:
	.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, .L28
	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, .L28+4
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L29:
	.align	2
.L28:
	.word	stderr
	.word	.LC3
	.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]
.L32:
	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	.L31
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L32
.L31:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	xioctl, .-xioctl
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_raw, %function
process_raw:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L35
.L36:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L35:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L36
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	process_raw, .-process_raw
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_image, %function
process_image:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	process_raw
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L38
.L41:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L39
.L40:
	ldr	r3, .L42
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	mul	r2, r3, r2
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, r1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L39:
	ldr	r3, .L42
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L40
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L38:
	ldr	r3, .L42
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L41
	ldr	r3, .L42
	ldm	r3, {r1, r2, r3}
	ldr	r0, .L42+4
	bl	SaveBMPFile
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	im
	.word	filename
	.size	process_image, .-process_image
	.section	.rodata
	.align	2
.LC4:
	.ascii	"VIDIOC_DQBUF\000"
	.align	2
.LC5:
	.ascii	"the_stack_data/852020.c\000"
	.align	2
.LC6:
	.ascii	"buf.index < n_buffers\000"
	.align	2
.LC7:
	.ascii	"VIDIOC_QBUF\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_frame, %function
read_frame:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	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, .L52+4
	ldr	r3, [r3]
	sub	r2, fp, #76
	ldr	r1, .L52+8
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L45
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L46
	mov	r3, #0
	b	.L50
.L46:
	ldr	r0, .L52+12
	bl	errno_exit
.L45:
	ldr	r2, [fp, #-76]
	ldr	r3, .L52+16
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L48
	ldr	r3, .L52+20
	mov	r2, #251
	ldr	r1, .L52+24
	ldr	r0, .L52+28
	bl	__assert_fail
.L48:
	ldr	r3, .L52+32
	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, .L52+4
	ldr	r3, [r3]
	sub	r2, fp, #76
	ldr	r1, .L52+36
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L49
	ldr	r0, .L52+40
	bl	errno_exit
.L49:
	mov	r3, #1
.L50:
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC8
	.word	fd
	.word	-1069263343
	.word	.LC4
	.word	n_buffers
	.word	__PRETTY_FUNCTION__.7456
	.word	.LC5
	.word	.LC6
	.word	buffers
	.word	-1069263345
	.word	.LC7
	.size	read_frame, .-read_frame
	.section	.rodata
	.align	2
.LC9:
	.ascii	"select\000"
	.align	2
.LC10:
	.ascii	"select timeout\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mainloop, %function
mainloop:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L66+4
	ldr	r3, [r3]
	str	r3, [fp, #-160]
	b	.L55
.L63:
	sub	r3, fp, #136
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-156]
	b	.L56
.L57:
	ldr	r3, [fp, #-152]
	ldr	r2, [fp, #-156]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-156]
	add	r3, r3, #1
	str	r3, [fp, #-156]
.L56:
	ldr	r3, [fp, #-156]
	cmp	r3, #31
	bls	.L57
	ldr	r3, .L66+8
	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, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, .L66+8
	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, #4
	add	r3, r2, r3
	str	r1, [r3, #-132]
	mov	r3, #2
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-140]
	ldr	r3, .L66+8
	ldr	r3, [r3]
	add	r0, r3, #1
	sub	r1, fp, #136
	sub	r3, fp, #144
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmn	r3, #1
	bne	.L58
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L65
	ldr	r0, .L66+12
	bl	errno_exit
.L58:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bne	.L61
	ldr	r3, .L66+16
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L66+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L61:
	bl	read_frame
	mov	r3, r0
	cmp	r3, #0
	beq	.L63
	b	.L55
.L65:
	nop
	b	.L63
.L55:
	ldr	r3, [fp, #-160]
	sub	r2, r3, #1
	str	r2, [fp, #-160]
	cmp	r3, #0
	bne	.L63
	nop
	ldr	r3, .L66
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L64
	bl	__stack_chk_fail
.L64:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC11
	.word	frame_count
	.word	fd
	.word	.LC9
	.word	stderr
	.word	.LC10
	.size	mainloop, .-mainloop
	.section	.rodata
	.align	2
.LC12:
	.ascii	"VIDIOC_STREAMOFF\000"
	.align	2
.LC13:
	.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, .L72
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, .L72+4
	ldr	r3, [r3]
	sub	r2, fp, #12
	ldr	r1, .L72+8
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L71
	ldr	r0, .L72+12
	bl	errno_exit
.L71:
	nop
	ldr	r3, .L72
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L70
	bl	__stack_chk_fail
.L70:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	.LC13
	.word	fd
	.word	1074026003
	.word	.LC12
	.size	stop_capturing, .-stop_capturing
	.section	.rodata
	.align	2
.LC14:
	.ascii	"VIDIOC_STREAMON\000"
	.align	2
.LC15:
	.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, .L81
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L75
.L77:
	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, .L81+4
	ldr	r3, [r3]
	sub	r2, fp, #76
	ldr	r1, .L81+8
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L76
	ldr	r0, .L81+12
	bl	errno_exit
.L76:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L75:
	ldr	r3, .L81+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bcc	.L77
	mov	r3, #1
	str	r3, [fp, #-84]
	ldr	r3, .L81+4
	ldr	r3, [r3]
	sub	r2, fp, #84
	ldr	r1, .L81+20
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L80
	ldr	r0, .L81+24
	bl	errno_exit
.L80:
	nop
	ldr	r3, .L81
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L79
	bl	__stack_chk_fail
.L79:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L82:
	.align	2
.L81:
	.word	.LC15
	.word	fd
	.word	-1069263345
	.word	.LC7
	.word	n_buffers
	.word	1074026002
	.word	.LC14
	.size	start_capturing, .-start_capturing
	.section	.rodata
	.align	2
.LC16:
	.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
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L84
.L86:
	ldr	r3, .L87
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L87
	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	.L85
	ldr	r0, .L87+4
	bl	errno_exit
.L85:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L84:
	ldr	r3, .L87+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L86
	ldr	r3, .L87
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	buffers
	.word	.LC16
	.word	n_buffers
	.size	uninit_device, .-uninit_device
	.section	.rodata
	.align	2
.LC17:
	.ascii	"%s does not support memory mappingn\000"
	.align	2
.LC18:
	.ascii	"VIDIOC_REQBUFS\000"
	.align	2
.LC19:
	.ascii	"Insufficient buffer memory on %s\012\000"
	.align	2
.LC20:
	.ascii	"Out of memory\012\000"
	.align	2
.LC21:
	.ascii	"VIDIOC_QUERYBUF\000"
	.align	2
.LC22:
	.ascii	"mmap\000"
	.align	2
.LC23:
	.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, .L99
	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, #4
	str	r3, [fp, #-104]
	mov	r3, #1
	str	r3, [fp, #-100]
	mov	r3, #1
	str	r3, [fp, #-96]
	ldr	r3, .L99+4
	ldr	r3, [r3]
	sub	r2, fp, #104
	ldr	r1, .L99+8
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L90
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	bne	.L91
	ldr	r3, .L99+12
	ldr	r3, [r3]
	ldr	r2, .L99+16
	ldr	r2, [r2]
	ldr	r1, .L99+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L91:
	ldr	r0, .L99+24
	bl	errno_exit
.L90:
	ldr	r3, [fp, #-104]
	cmp	r3, #1
	bhi	.L92
	ldr	r3, .L99+12
	ldr	r3, [r3]
	ldr	r2, .L99+16
	ldr	r2, [r2]
	ldr	r1, .L99+28
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L92:
	ldr	r3, [fp, #-104]
	mov	r1, #8
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L99+32
	str	r2, [r3]
	ldr	r3, .L99+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L93
	ldr	r3, .L99+12
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L99+36
	bl	fwrite
	mov	r0, #1
	bl	exit
.L93:
	ldr	r3, .L99+40
	mov	r2, #0
	str	r2, [r3]
	b	.L94
.L97:
	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, .L99+40
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	ldr	r3, .L99+4
	ldr	r3, [r3]
	sub	r2, fp, #84
	ldr	r1, .L99+44
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L95
	ldr	r0, .L99+48
	bl	errno_exit
.L95:
	ldr	r3, .L99+32
	ldr	r2, [r3]
	ldr	r3, .L99+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, .L99+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	mov	ip, r2
	ldr	r2, .L99+32
	ldr	r1, [r2]
	ldr	r2, .L99+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, .L99+32
	ldr	r2, [r3]
	ldr	r3, .L99+40
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L96
	ldr	r0, .L99+52
	bl	errno_exit
.L96:
	ldr	r3, .L99+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L99+40
	str	r3, [r2]
.L94:
	ldr	r2, [fp, #-104]
	ldr	r3, .L99+40
	ldr	r3, [r3]
	cmp	r2, r3
	bhi	.L97
	nop
	ldr	r3, .L99
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L98
	bl	__stack_chk_fail
.L98:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L100:
	.align	2
.L99:
	.word	.LC23
	.word	fd
	.word	-1072409080
	.word	stderr
	.word	dev_name
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	buffers
	.word	.LC20
	.word	n_buffers
	.word	-1069263351
	.word	.LC21
	.word	.LC22
	.size	init_mmap, .-init_mmap
	.section	.rodata
	.align	2
.LC24:
	.ascii	"%s is no V4L2 device\012\000"
	.align	2
.LC25:
	.ascii	"VIDIOC_QUERYCAP\000"
	.align	2
.LC26:
	.ascii	"%s is no video capture device\012\000"
	.align	2
.LC27:
	.ascii	"%s does not support streaming i/o\012\000"
	.align	2
.LC28:
	.ascii	"VIDIOC_S_FMT\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_device, %function
init_device:
	@ args = 0, pretend = 0, frame = 376
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #376
	ldr	r3, .L112
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L112+4
	ldr	r3, [r3]
	sub	r2, fp, #316
	ldr	r1, .L112+8
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L102
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	bne	.L103
	ldr	r3, .L112+12
	ldr	r3, [r3]
	ldr	r2, .L112+16
	ldr	r2, [r2]
	ldr	r1, .L112+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L103:
	ldr	r0, .L112+24
	bl	errno_exit
.L102:
	ldr	r3, [fp, #-232]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L104
	ldr	r3, .L112+12
	ldr	r3, [r3]
	ldr	r2, .L112+16
	ldr	r2, [r2]
	ldr	r1, .L112+28
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L104:
	ldr	r3, [fp, #-232]
	and	r3, r3, #67108864
	cmp	r3, #0
	bne	.L105
	ldr	r3, .L112+12
	ldr	r3, [r3]
	ldr	r2, .L112+16
	ldr	r2, [r2]
	ldr	r1, .L112+32
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L105:
	sub	r3, fp, #360
	mov	r2, #44
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-360]
	ldr	r3, .L112+4
	ldr	r3, [r3]
	sub	r2, fp, #360
	ldr	r1, .L112+36
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmp	r3, #0
	bne	.L106
	mov	r3, #1
	str	r3, [fp, #-380]
	sub	ip, fp, #376
	sub	r3, fp, #340
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L112+4
	ldr	r3, [r3]
	sub	r2, fp, #380
	ldr	r1, .L112+40
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L111
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	b	.L106
.L111:
	nop
.L106:
	sub	r3, fp, #212
	mov	r2, #204
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-212]
	mov	r3, #640
	str	r3, [fp, #-208]
	mov	r3, #480
	str	r3, [fp, #-204]
	ldr	r3, .L112+44
	str	r3, [fp, #-200]
	mov	r3, #1
	str	r3, [fp, #-196]
	ldr	r3, .L112+4
	ldr	r3, [r3]
	sub	r2, fp, #212
	ldr	r1, .L112+48
	mov	r0, r3
	bl	xioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L109
	ldr	r0, .L112+52
	bl	errno_exit
.L109:
	bl	init_mmap
	nop
	ldr	r3, .L112
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L110
	bl	__stack_chk_fail
.L110:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L113:
	.align	2
.L112:
	.word	.LC29
	.word	fd
	.word	-2140645888
	.word	stderr
	.word	dev_name
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	-1070836166
	.word	1075074620
	.word	1448695129
	.word	-1060350459
	.word	.LC28
	.size	init_device, .-init_device
	.section	.rodata
	.align	2
.LC30:
	.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, .L116
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L115
	ldr	r0, .L116+4
	bl	errno_exit
.L115:
	ldr	r3, .L116
	mvn	r2, #0
	str	r2, [r3]
	nop
	pop	{fp, pc}
.L117:
	.align	2
.L116:
	.word	fd
	.word	.LC30
	.size	close_device, .-close_device
	.section	.rodata
	.align	2
.LC31:
	.ascii	"Cannot identify '%s': %d, %s\012\000"
	.align	2
.LC32:
	.ascii	"%s is no device\012\000"
	.align	2
.LC33:
	.ascii	"Cannot open '%s': %d, %s\012\000"
	.align	2
.LC34:
	.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, .L124
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, .L124+4
	ldr	r3, [r3]
	sub	r2, fp, #116
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L119
	ldr	r3, .L124+8
	ldr	r4, [r3]
	ldr	r3, .L124+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, .L124+12
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L119:
	ldr	r3, [fp, #-100]
	and	r3, r3, #61440
	cmp	r3, #8192
	beq	.L120
	ldr	r3, .L124+8
	ldr	r3, [r3]
	ldr	r2, .L124+4
	ldr	r2, [r2]
	ldr	r1, .L124+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L120:
	ldr	r3, .L124+4
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L124+20
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L124+24
	str	r3, [r2]
	ldr	r3, .L124+24
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L123
	ldr	r3, .L124+8
	ldr	r4, [r3]
	ldr	r3, .L124+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, .L124+28
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L123:
	nop
	ldr	r3, .L124
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L122
	bl	__stack_chk_fail
.L122:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L125:
	.align	2
.L124:
	.word	.LC34
	.word	dev_name
	.word	stderr
	.word	.LC31
	.word	.LC32
	.word	2050
	.word	fd
	.word	.LC33
	.size	open_device, .-open_device
	.section	.rodata
	.align	2
.LC35:
	.ascii	"/dev/video0\000"
	.align	2
.LC36:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L129
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r4, .L129+4
	sub	r3, fp, #44
	mov	r2, #480
	mov	r1, #640
	mov	r0, r3
	bl	AllocateImage
	mov	ip, r4
	sub	r3, fp, #44
	ldm	r3, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, .L129+8
	ldr	r2, .L129+12
	str	r2, [r3]
	bl	open_device
	bl	init_device
	bl	start_capturing
	bl	mainloop
	bl	stop_capturing
	bl	uninit_device
	bl	close_device
	ldr	r3, .L129+4
	ldm	r3, {r0, r1, r2}
	bl	FreeImage
	ldr	r3, .L129+16
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r3, #0
	ldr	r2, .L129
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L128
	bl	__stack_chk_fail
.L128:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L130:
	.align	2
.L129:
	.word	.LC36
	.word	im
	.word	dev_name
	.word	.LC35
	.word	stderr
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7456, %object
	.size	__PRETTY_FUNCTION__.7456, 11
__PRETTY_FUNCTION__.7456:
	.ascii	"read_frame\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
