	.file	"extr_videobuf-core.c_videobuf_waiton.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	videobuf_waiton
	.type	videobuf_waiton, @function
videobuf_waiton:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 4[rsi]
	mov	esi, DWORD PTR MAGIC_BUFFER[rip]
	call	MAGIC_CHECK@PLT
	test	ebx, ebx
	jne	.L18
	mov	rdi, QWORD PTR [r12]
	test	rdi, rdi
	jne	.L19
.L5:
	mov	rsi, rbp
	mov	rdi, r12
	test	r13d, r13d
	jne	.L20
	call	state_neither_active_nor_queued@PLT
	mov	edi, DWORD PTR 0[rbp]
	xor	r13d, r13d
	mov	rsi, rax
	call	wait_event@PLT
	test	ebx, ebx
	jne	.L21
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	call	state_neither_active_nor_queued@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, rax
	call	wait_event_interruptible@PLT
	mov	r13d, eax
	test	ebx, ebx
	je	.L1
.L21:
	mov	rdi, QWORD PTR [r12]
	call	mutex_lock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L19:
	.cfi_restore_state
	call	mutex_is_locked@PLT
	test	rax, rax
	je	.L5
	mov	rdi, QWORD PTR [r12]
	mov	ebx, 1
	call	mutex_unlock@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rsi, rbp
	mov	rdi, r12
	xor	r13d, r13d
	call	state_neither_active_nor_queued@PLT
	test	rax, rax
	jne	.L1
	mov	r13d, DWORD PTR EAGAIN[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r13d
	pop	r12
	.cfi_def_cfa_offset 16
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	videobuf_waiton, .-videobuf_waiton
	.comm	MAGIC_BUFFER,4,4
	.comm	EAGAIN,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_waiton.c"
	.text
	.align	2
	.global	videobuf_waiton
	.syntax unified
	.arm
	.fpu softvfp
	.type	videobuf_waiton, %function
videobuf_waiton:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r2
	ldr	r2, .L22
	mov	r5, r1
	mov	r6, r0
	ldr	r0, [r1, #4]
	ldr	r1, [r2]
	mov	r4, r3
	bl	MAGIC_CHECK
	cmp	r7, #0
	bne	.L18
	ldr	r0, [r6]
	cmp	r0, #0
	bne	.L19
.L5:
	cmp	r4, #0
	mov	r1, r5
	mov	r0, r6
	ldr	r8, [r5]
	bne	.L20
	bl	state_neither_active_nor_queued
	mov	r1, r0
	mov	r0, r8
	bl	wait_event
	cmp	r7, #0
	bne	.L21
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	bl	state_neither_active_nor_queued
	mov	r1, r0
	mov	r0, r8
	bl	wait_event_interruptible
	cmp	r7, #0
	mov	r4, r0
	beq	.L1
.L21:
	ldr	r0, [r6]
	bl	mutex_lock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	bl	mutex_is_locked
	cmp	r0, #0
	beq	.L5
	ldr	r0, [r6]
	bl	mutex_unlock
	mov	r7, #1
	b	.L5
.L18:
	mov	r1, r5
	mov	r0, r6
	bl	state_neither_active_nor_queued
	cmp	r0, #0
	movne	r4, #0
	bne	.L1
	ldr	r3, .L22+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	.align	2
.L22:
	.word	MAGIC_BUFFER
	.word	EAGAIN
	.size	videobuf_waiton, .-videobuf_waiton
	.comm	MAGIC_BUFFER,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
