	.file	"extr_videobuf2-core.c___vb2_free_mem.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__vb2_free_mem, @function
__vb2_free_mem:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	mov	ebx, eax
	sub	ebx, esi
	cmp	eax, ebx
	jbe	.L1
	mov	rbp, rdi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	call	__vb2_buf_userptr_put@PLT
.L3:
	add	ebx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jbe	.L1
.L6:
	mov	rdx, QWORD PTR 16[rbp]
	mov	eax, ebx
	mov	rdi, QWORD PTR [rdx+rax*8]
	test	rdi, rdi
	je	.L3
	mov	rax, QWORD PTR 8[rbp]
	cmp	rax, QWORD PTR VB2_MEMORY_MMAP[rip]
	je	.L13
	cmp	rax, QWORD PTR VB2_MEMORY_DMABUF[rip]
	jne	.L5
	call	__vb2_buf_dmabuf_put@PLT
	add	ebx, 1
	cmp	DWORD PTR 0[rbp], ebx
	ja	.L6
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	__vb2_buf_mem_free@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	__vb2_free_mem, .-__vb2_free_mem
	.comm	VB2_MEMORY_MMAP,8,8
	.comm	VB2_MEMORY_DMABUF,8,8
	.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_free_mem.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__vb2_free_mem, %function
__vb2_free_mem:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	sub	r4, r3, r1
	cmp	r3, r4
	popls	{r4, r5, r6, r7, r8, pc}
	mov	r5, r0
	ldr	r7, .L14
	ldr	r6, .L14+4
	b	.L6
.L5:
	bl	__vb2_buf_userptr_put
	ldr	r3, [r5]
.L3:
	add	r4, r4, #1
	cmp	r3, r4
	popls	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r2, [r5, #8]
	ldr	r0, [r2, r4, lsl #2]
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r5, #4]
	ldr	r2, [r7]
	cmp	r3, r2
	beq	.L13
	ldr	r2, [r6]
	cmp	r3, r2
	bne	.L5
	bl	__vb2_buf_dmabuf_put
	ldr	r3, [r5]
	b	.L3
.L13:
	bl	__vb2_buf_mem_free
	ldr	r3, [r5]
	b	.L3
.L15:
	.align	2
.L14:
	.word	VB2_MEMORY_MMAP
	.word	VB2_MEMORY_DMABUF
	.size	__vb2_free_mem, .-__vb2_free_mem
	.comm	VB2_MEMORY_MMAP,4,4
	.comm	VB2_MEMORY_DMABUF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
