	.file	"extr_meye.c_vidioc_querybuf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vidioc_querybuf, @function
vidioc_querybuf:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR EINVAL[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	neg	eax
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebp, DWORD PTR [rdx]
	cmp	DWORD PTR gbuffers[rip], ebp
	jbe	.L1
	mov	eax, ebp
	mov	rbx, rdx
	mov	rdx, QWORD PTR meye[rip]
	lea	r12, [rax+rax*2]
	sal	r12, 3
	add	rdx, r12
	mov	eax, DWORD PTR 16[rdx]
	mov	rcx, QWORD PTR [rdx]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR V4L2_BUF_FLAG_MAPPED[rip]
	or	eax, DWORD PTR V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC[rip]
	cmp	rcx, QWORD PTR MEYE_BUF_USING[rip]
	mov	DWORD PTR 4[rbx], eax
	je	.L8
	cmp	rcx, QWORD PTR MEYE_BUF_DONE[rip]
	je	.L9
.L5:
	mov	eax, DWORD PTR V4L2_FIELD_NONE[rip]
	mov	edi, DWORD PTR 12[rdx]
	mov	DWORD PTR 28[rbx], eax
	call	ns_to_timeval@PLT
	mov	DWORD PTR 24[rbx], eax
	mov	rax, QWORD PTR meye[rip]
	mov	eax, DWORD PTR 8[rax+r12]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR V4L2_MEMORY_MMAP[rip]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR gbufsize[rip]
	imul	ebp, eax
	mov	DWORD PTR 8[rbx], eax
	xor	eax, eax
	mov	DWORD PTR 12[rbx], ebp
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR V4L2_BUF_FLAG_DONE[rip]
	or	DWORD PTR 4[rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	or	eax, DWORD PTR V4L2_BUF_FLAG_QUEUED[rip]
	cmp	rcx, QWORD PTR MEYE_BUF_DONE[rip]
	mov	DWORD PTR 4[rbx], eax
	jne	.L5
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	vidioc_querybuf, .-vidioc_querybuf
	.comm	meye,8,8
	.comm	gbufsize,4,4
	.comm	gbuffers,4,4
	.comm	V4L2_MEMORY_MMAP,4,4
	.comm	V4L2_FIELD_NONE,4,4
	.comm	V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,4
	.comm	V4L2_BUF_FLAG_QUEUED,4,4
	.comm	V4L2_BUF_FLAG_MAPPED,4,4
	.comm	V4L2_BUF_FLAG_DONE,4,4
	.comm	MEYE_BUF_USING,8,8
	.comm	MEYE_BUF_DONE,8,8
	.comm	EINVAL,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_meye.c_vidioc_querybuf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vidioc_querybuf, %function
vidioc_querybuf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ldr	r5, [r2]
	cmp	r3, r5
	bls	.L8
	mov	r4, r2
	ldr	r6, .L9+4
	ldr	r0, .L9+8
	ldr	r3, [r6]
	ldr	r0, [r0]
	ldr	r1, [r3, r5, lsl #4]
	add	r2, r3, r5, lsl #4
	cmp	r1, r0
	ldr	r0, [r2, #12]
	ldr	lr, .L9+12
	ldr	ip, .L9+16
	str	r0, [r4, #32]
	ldreq	r0, .L9+20
	ldr	r3, [lr]
	ldr	ip, [ip]
	ldreq	r0, [r0]
	orr	r3, r3, ip
	str	r3, [r4, #4]
	orreq	r3, r0, r3
	streq	r3, [r4, #4]
	ldr	r3, .L9+24
	ldr	r0, [r2, #8]
	ldr	r3, [r3]
	lsl	r7, r5, #4
	cmp	r1, r3
	ldreq	r1, .L9+28
	ldreq	r3, [r4, #4]
	ldreq	r1, [r1]
	orreq	r3, r3, r1
	streq	r3, [r4, #4]
	ldr	r3, .L9+32
	ldr	r3, [r3]
	str	r3, [r4, #28]
	bl	ns_to_timeval
	mov	r1, r0
	ldr	r2, .L9+36
	ldr	r3, [r6]
	ldr	r2, [r2]
	ldr	lr, .L9+40
	mul	r5, r2, r5
	add	r3, r3, r7
	ldr	ip, [r3, #4]
	ldr	r3, [lr]
	mov	r0, #0
	str	ip, [r4, #20]
	str	r1, [r4, #24]
	str	r5, [r4, #12]
	str	r2, [r4, #8]
	str	r3, [r4, #16]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L9+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	gbuffers
	.word	meye
	.word	MEYE_BUF_USING
	.word	V4L2_BUF_FLAG_MAPPED
	.word	V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.word	V4L2_BUF_FLAG_QUEUED
	.word	MEYE_BUF_DONE
	.word	V4L2_BUF_FLAG_DONE
	.word	V4L2_FIELD_NONE
	.word	gbufsize
	.word	V4L2_MEMORY_MMAP
	.word	EINVAL
	.size	vidioc_querybuf, .-vidioc_querybuf
	.comm	meye,4,4
	.comm	gbufsize,4,4
	.comm	gbuffers,4,4
	.comm	V4L2_MEMORY_MMAP,4,4
	.comm	V4L2_FIELD_NONE,4,4
	.comm	V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC,4,4
	.comm	V4L2_BUF_FLAG_QUEUED,4,4
	.comm	V4L2_BUF_FLAG_MAPPED,4,4
	.comm	V4L2_BUF_FLAG_DONE,4,4
	.comm	MEYE_BUF_USING,4,4
	.comm	MEYE_BUF_DONE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
