	.file	"extr_videobuf2-core.c_vb2_core_dqbuf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"returning done buffer\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"returning done buffer with errors\n"
	.section	.rodata.str1.1
.LC2:
	.string	"invalid buffer state\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"dqbuf of buffer %d, with state %d\n"
	.text
	.p2align 4
	.globl	vb2_core_dqbuf
	.type	vb2_core_dqbuf, @function
vb2_core_dqbuf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rsi, rsp
	mov	QWORD PTR [rsp], 0
	call	__vb2_get_done_vb@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR [rsp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 128
	je	.L3
	cmp	eax, 129
	jne	.L4
	lea	rsi, .LC0[rip]
	mov	edi, 3
	xor	eax, eax
	call	dprintk@PLT
.L5:
	mov	rdi, QWORD PTR [rsp]
	mov	esi, DWORD PTR buf_finish[rip]
	mov	rdx, rdi
	call	call_void_vb_qop@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	QWORD PTR 24[rdx], 0
	test	rbx, rbx
	je	.L6
	mov	eax, DWORD PTR 4[rdx]
	mov	DWORD PTR [rbx], eax
.L6:
	test	r12, r12
	je	.L7
	mov	esi, DWORD PTR fill_user_buffer[rip]
	mov	rcx, r12
	mov	rdi, rbp
	call	call_void_bufop@PLT
	mov	rdx, QWORD PTR [rsp]
.L7:
	lea	rdi, 20[rdx]
	call	list_del@PLT
	sub	DWORD PTR 0[rbp], 1
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rbp
	call	trace_vb2_dqbuf@PLT
	mov	rdi, QWORD PTR [rsp]
	call	__vb2_dqbuf@PLT
	mov	rax, QWORD PTR [rsp]
	mov	edi, DWORD PTR 16[rax]
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L25
.L8:
	mov	rax, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 8[rax]
	test	rdi, rdi
	je	.L9
	call	media_request_put@PLT
	mov	rax, QWORD PTR [rsp]
.L9:
	mov	QWORD PTR 8[rax], 0
	mov	edx, DWORD PTR 4[rax]
	lea	rsi, .LC3[rip]
	mov	edi, 2
	mov	ecx, DWORD PTR [rax]
	xor	eax, eax
	call	dprintk@PLT
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L26
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L4:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	edi, 1
	xor	eax, eax
	call	dprintk@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rsi, .LC1[rip]
	mov	edi, 3
	xor	eax, eax
	call	dprintk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rax, QWORD PTR [rsp]
	lea	rdi, 16[rax]
	call	media_request_object_unbind@PLT
	mov	rax, QWORD PTR [rsp]
	lea	rdi, 16[rax]
	call	media_request_object_put@PLT
	jmp	.L8
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vb2_core_dqbuf, .-vb2_core_dqbuf
	.comm	fill_user_buffer,4,4
	.comm	buf_finish,4,4
	.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_videobuf2-core.c_vb2_core_dqbuf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"returning done buffer\012\000"
	.align	2
.LC1:
	.ascii	"returning done buffer with errors\012\000"
	.align	2
.LC2:
	.ascii	"invalid buffer state\012\000"
	.align	2
.LC3:
	.ascii	"dqbuf of buffer %d, with state %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vb2_core_dqbuf
	.syntax unified
	.arm
	.fpu softvfp
	.type	vb2_core_dqbuf, %function
vb2_core_dqbuf:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, lr}
	ldr	lr, .L27
	sub	sp, sp, #8
	mov	r5, r1
	mov	r1, sp
	ldr	lr, [lr]
	str	lr, [sp, #4]
	mov	lr,#0
	mov	r4, r0
	mov	r6, r2
	str	ip, [sp]
	bl	__vb2_get_done_vb
	cmp	r0, #0
	blt	.L1
	ldr	r3, [sp]
	ldr	r3, [r3]
	cmp	r3, #128
	beq	.L3
	cmp	r3, #129
	bne	.L4
	mov	r0, #3
	ldr	r1, .L27+4
	bl	dprintk
.L5:
	ldr	r2, [sp]
	ldr	r3, .L27+8
	mov	r0, r2
	ldr	r1, [r3]
	bl	call_void_vb_qop
	mov	r3, #0
	ldr	r2, [sp]
	cmp	r5, r3
	str	r3, [r2, #20]
	ldrne	r3, [r2, #4]
	strne	r3, [r5]
	cmp	r6, #0
	beq	.L7
	ldr	r1, .L27+12
	mov	r3, r6
	mov	r0, r4
	ldr	r1, [r1]
	bl	call_void_bufop
	ldr	r2, [sp]
.L7:
	add	r0, r2, #16
	bl	list_del
	ldr	r3, [r4]
	ldr	r1, [sp]
	sub	r3, r3, #1
	str	r3, [r4]
	mov	r0, r4
	bl	trace_vb2_dqbuf
	ldr	r0, [sp]
	bl	__vb2_dqbuf
	ldr	r3, [sp]
	ldr	r0, [r3, #12]
	bl	WARN_ON
	cmp	r0, #0
	bne	.L25
.L8:
	ldr	r2, [sp]
	ldr	r0, [r2, #8]
	cmp	r0, #0
	beq	.L9
	bl	media_request_put
	ldr	r2, [sp]
.L9:
	mov	r4, #0
	ldr	r3, [r2]
	str	r4, [r2, #8]
	mov	r0, #2
	ldr	r2, [r2, #4]
	ldr	r1, .L27+16
	bl	dprintk
	mov	r0, r4
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, #1
	ldr	r1, .L27+20
	bl	dprintk
	ldr	r3, .L27+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L3:
	ldr	r1, .L27+28
	mov	r0, #3
	bl	dprintk
	b	.L5
.L25:
	ldr	r0, [sp]
	add	r0, r0, #12
	bl	media_request_object_unbind
	ldr	r0, [sp]
	add	r0, r0, #12
	bl	media_request_object_put
	b	.L8
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC4
	.word	.LC0
	.word	buf_finish
	.word	fill_user_buffer
	.word	.LC3
	.word	.LC2
	.word	EINVAL
	.word	.LC1
	.size	vb2_core_dqbuf, .-vb2_core_dqbuf
	.comm	fill_user_buffer,4,4
	.comm	buf_finish,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
