	.file	"extr_v4l2-event.c_v4l2_event_dequeue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	v4l2_event_dequeue
	.type	v4l2_event_dequeue, @function
v4l2_event_dequeue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	test	edx, edx
	jne	.L16
	mov	rax, QWORD PTR 8[rdi]
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L5
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rsi, r13
	mov	rdi, rbp
	call	__v4l2_event_dequeue@PLT
	mov	r12d, eax
	add	eax, DWORD PTR ENOENT[rip]
	jne	.L4
.L5:
	xor	esi, esi
	mov	edi, DWORD PTR 16[rbp]
	cmp	QWORD PTR 0[rbp], 0
	setne	sil
	call	wait_event_interruptible@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L18
.L4:
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	jne	.L19
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L17:
	.cfi_restore_state
	call	mutex_unlock@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	call	mutex_lock@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L16:
	.cfi_restore_state
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	__v4l2_event_dequeue@PLT
	.cfi_endproc
.LFE0:
	.size	v4l2_event_dequeue, .-v4l2_event_dequeue
	.comm	ENOENT,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_v4l2-event.c_v4l2_event_dequeue.c"
	.text
	.align	2
	.global	v4l2_event_dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	v4l2_event_dequeue, %function
v4l2_event_dequeue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #0
	bne	.L17
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r3]
	mov	r7, r1
	cmp	r0, #0
	bne	.L18
.L3:
	ldr	r6, .L21
	b	.L5
.L19:
	mov	r1, r7
	mov	r0, r5
	bl	__v4l2_event_dequeue
	ldr	r3, [r6]
	mov	r4, r0
	cmn	r0, r3
	bne	.L4
.L5:
	ldr	r1, [r5]
	ldr	r0, [r5, #8]
	subs	r1, r1, #0
	movne	r1, #1
	bl	wait_event_interruptible
	subs	r4, r0, #0
	bge	.L19
.L4:
	ldr	r3, [r5, #4]
	ldr	r0, [r3]
	cmp	r0, #0
	bne	.L20
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	bl	mutex_unlock
	b	.L3
.L20:
	bl	mutex_lock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	b	__v4l2_event_dequeue
.L22:
	.align	2
.L21:
	.word	ENOENT
	.size	v4l2_event_dequeue, .-v4l2_event_dequeue
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
