	.file	"extr_video.c_GrabVideo.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dequeue error: %s"
.LC1:
	.string	"queue error: %s"
	.text
	.p2align 4
	.globl	GrabVideo
	.type	GrabVideo, @function
GrabVideo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	xmm0, xmm0
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edi, ebp
	mov	rbx, rdx
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR VIDIOC_DQBUF[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR V4L2_MEMORY_MMAP[rip]
	movaps	XMMWORD PTR [rsp], xmm0
	mov	r14, rsp
	mov	QWORD PTR 16[rsp], 0
	mov	rdx, r14
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR V4L2_BUF_TYPE_VIDEO_CAPTURE[rip]
	mov	DWORD PTR 16[rsp], eax
	call	v4l2_ioctl@PLT
	test	rax, rax
	jns	.L2
	mov	edi, DWORD PTR errno[rip]
	cmp	edi, 129
	jne	.L3
.L8:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	call	vlc_strerror_c@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	xor	r12d, r12d
	mov	edx, eax
	call	msg_Err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR 8[rsp]
	call	block_Alloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	r12, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L8
	mov	rdi, r14
	call	GetBufferPTS@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	edi, DWORD PTR [r12]
	mov	DWORD PTR 4[r12], eax
	mov	DWORD PTR 8[r12], eax
	mov	rax, QWORD PTR [rsp]
	mov	esi, DWORD PTR [rbx+rax*4]
	call	memcpy@PLT
	mov	esi, DWORD PTR VIDIOC_QBUF[rip]
	mov	rdx, r14
	mov	edi, ebp
	call	v4l2_ioctl@PLT
	test	rax, rax
	jns	.L1
	mov	edi, DWORD PTR errno[rip]
	call	vlc_strerror_c@PLT
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	mov	edx, eax
	call	msg_Err@PLT
	mov	rdi, r12
	call	block_Release@PLT
	jmp	.L8
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	GrabVideo, .-GrabVideo
	.comm	errno,4,4
	.comm	VIDIOC_QBUF,4,4
	.comm	VIDIOC_DQBUF,4,4
	.comm	V4L2_MEMORY_MMAP,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_CAPTURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_video.c_GrabVideo.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dequeue error: %s\000"
	.align	2
.LC1:
	.ascii	"queue error: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GrabVideo
	.syntax unified
	.arm
	.fpu softvfp
	.type	GrabVideo, %function
GrabVideo:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, #0
	mov	r6, r0
	ldr	r3, .L10
	ldr	r0, .L10+4
	mov	r7, r2
	ldr	r1, .L10+8
	ldr	r2, .L10+12
	sub	sp, sp, #24
	ldr	ip, [r0]
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	mov	r0, r5
	ldr	r1, [r1]
	add	r2, sp, #4
	str	ip, [sp, #12]
	str	r3, [sp, #16]
	str	r4, [sp, #4]
	str	r4, [sp, #8]
	bl	v4l2_ioctl
	cmp	r0, r4
	bge	.L2
	ldr	r3, .L10+16
	ldr	r0, [r3]
	cmp	r0, #129
	bne	.L3
.L5:
	mov	r4, #0
.L1:
	ldr	r3, .L10+12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	bl	vlc_strerror_c
	ldr	r1, .L10+20
	mov	r2, r0
	mov	r0, r6
	bl	msg_Err
	b	.L1
.L2:
	ldr	r0, [sp, #8]
	bl	block_Alloc
	mov	r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r8, r0, #0
	bne	.L5
	add	r0, sp, #4
	bl	GetBufferPTS
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #8]
	ldr	r1, [r7, r3, lsl #2]
	str	r0, [r4, #4]
	str	r0, [r4, #8]
	ldr	r0, [r4]
	bl	memcpy
	ldr	r3, .L10+24
	mov	r0, r5
	ldr	r1, [r3]
	add	r2, sp, #4
	bl	v4l2_ioctl
	cmp	r0, #0
	bge	.L1
	ldr	r3, .L10+16
	ldr	r0, [r3]
	bl	vlc_strerror_c
	ldr	r1, .L10+28
	mov	r2, r0
	mov	r0, r6
	bl	msg_Err
	mov	r0, r4
	bl	block_Release
	mov	r4, r8
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	V4L2_BUF_TYPE_VIDEO_CAPTURE
	.word	V4L2_MEMORY_MMAP
	.word	VIDIOC_DQBUF
	.word	.LC2
	.word	errno
	.word	.LC0
	.word	VIDIOC_QBUF
	.word	.LC1
	.size	GrabVideo, .-GrabVideo
	.comm	errno,4,4
	.comm	VIDIOC_QBUF,4,4
	.comm	VIDIOC_DQBUF,4,4
	.comm	V4L2_MEMORY_MMAP,4,4
	.comm	V4L2_BUF_TYPE_VIDEO_CAPTURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
