	.file	"extr_videobuf-core.c_videobuf_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	videobuf_status, @function
videobuf_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 48[rdx]
	mov	esi, DWORD PTR MAGIC_BUFFER[rip]
	call	MAGIC_CHECK@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	esi, DWORD PTR MAGIC_QTYPE_OPS[rip]
	mov	edi, DWORD PTR [rax]
	call	MAGIC_CHECK@PLT
	mov	eax, DWORD PTR 44[rbp]
	mov	DWORD PTR [rbx], r12d
	mov	DWORD PTR 40[rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rbx], eax
	cmp	eax, 136
	je	.L2
	cmp	eax, 137
	je	.L3
	cmp	eax, 135
	je	.L19
.L5:
	mov	eax, DWORD PTR V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC[rip]
	cmp	QWORD PTR 24[rbp], 0
	mov	DWORD PTR 24[rbx], eax
	je	.L6
	or	eax, DWORD PTR V4L2_BUF_FLAG_MAPPED[rip]
	mov	DWORD PTR 24[rbx], eax
.L6:
	mov	eax, DWORD PTR 4[rbp]
	cmp	eax, 133
	je	.L7
	jg	.L8
	cmp	eax, 129
	jle	.L20
	cmp	eax, 132
	jne	.L11
	mov	eax, DWORD PTR 24[rbx]
	or	eax, DWORD PTR V4L2_BUF_FLAG_ERROR[rip]
.L13:
	or	eax, DWORD PTR V4L2_BUF_FLAG_DONE[rip]
	mov	DWORD PTR 24[rbx], eax
.L11:
	mov	eax, DWORD PTR 20[rbp]
	mov	edi, DWORD PTR 16[rbp]
	mov	DWORD PTR 20[rbx], eax
	call	ns_to_timeval@PLT
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR 12[rbp]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 8[rbp]
	sar	eax
	mov	DWORD PTR 8[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	cmp	eax, 127
	jle	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	cmp	eax, 134
	jne	.L11
.L10:
	mov	eax, DWORD PTR V4L2_BUF_FLAG_QUEUED[rip]
	or	DWORD PTR 24[rbx], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR 24[rbx]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR 40[rbp]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR 36[rbp]
	mov	DWORD PTR 36[rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 32[rbp]
	mov	DWORD PTR 28[rbx], eax
	mov	eax, DWORD PTR 36[rbp]
	mov	DWORD PTR 36[rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR 32[rbp]
	mov	DWORD PTR 28[rbx], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	videobuf_status, .-videobuf_status
	.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_ERROR,4,4
	.comm	V4L2_BUF_FLAG_DONE,4,4
	.comm	MAGIC_QTYPE_OPS,4,4
	.comm	MAGIC_BUFFER,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_videobuf-core.c_videobuf_status.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	videobuf_status, %function
videobuf_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r5, r2
	mov	r4, r1
	mov	r6, r3
	ldr	r3, .L19
	ldr	r0, [r2, #44]
	ldr	r1, [r3]
	bl	MAGIC_CHECK
	ldr	r2, [r7]
	ldr	r3, .L19+4
	ldr	r0, [r2]
	ldr	r1, [r3]
	bl	MAGIC_CHECK
	ldr	r2, [r5]
	ldr	r3, [r5, #40]
	cmp	r2, #136
	str	r3, [r4, #40]
	str	r6, [r4]
	str	r2, [r4, #4]
	beq	.L2
	cmp	r2, #137
	beq	.L3
	cmp	r2, #135
	beq	.L18
.L5:
	ldr	r2, [r5, #24]
	ldr	r3, .L19+8
	cmp	r2, #0
	ldrne	r2, .L19+12
	ldr	r3, [r3]
	ldrne	r2, [r2]
	str	r3, [r4, #24]
	orrne	r3, r2, r3
	strne	r3, [r4, #24]
	ldr	r3, [r5, #4]
	sub	r3, r3, #128
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L9:
	.word	.L8
	.word	.L8
	.word	.L7
	.word	.L7
	.word	.L11
	.word	.L10
	.word	.L8
.L10:
	ldr	r2, [r4, #24]
.L12:
	ldr	r3, .L19+16
	ldr	r3, [r3]
	orr	r3, r3, r2
	str	r3, [r4, #24]
.L7:
	ldr	r3, [r5, #20]
	ldr	r0, [r5, #16]
	str	r3, [r4, #20]
	bl	ns_to_timeval
	ldr	r3, [r5, #8]
	ldr	r2, [r5, #12]
	asr	r3, r3, #1
	str	r0, [r4, #16]
	str	r3, [r4, #8]
	str	r2, [r4, #12]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r2, .L19+20
	ldr	r3, [r4, #24]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #24]
	b	.L7
.L11:
	ldr	r2, .L19+24
	ldr	r3, [r4, #24]
	ldr	r2, [r2]
	orr	r2, r3, r2
	b	.L12
.L18:
	ldr	r2, [r5, #36]
	ldr	r3, [r5, #32]
	str	r2, [r4, #32]
	str	r3, [r4, #36]
	b	.L5
.L3:
	ldr	r2, [r5, #28]
	ldr	r3, [r5, #32]
	str	r2, [r4, #28]
	str	r3, [r4, #36]
	b	.L5
.L2:
	ldr	r3, [r5, #28]
	str	r3, [r4, #28]
	b	.L5
.L20:
	.align	2
.L19:
	.word	MAGIC_BUFFER
	.word	MAGIC_QTYPE_OPS
	.word	V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC
	.word	V4L2_BUF_FLAG_MAPPED
	.word	V4L2_BUF_FLAG_DONE
	.word	V4L2_BUF_FLAG_QUEUED
	.word	V4L2_BUF_FLAG_ERROR
	.size	videobuf_status, .-videobuf_status
	.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_ERROR,4,4
	.comm	V4L2_BUF_FLAG_DONE,4,4
	.comm	MAGIC_QTYPE_OPS,4,4
	.comm	MAGIC_BUFFER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
