	.file	"extr_jazzdma.c_vdma_free.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"vdma_free: trying to free other's dma pages, laddr=%8lx\n"
	.align 8
.LC1:
	.string	"vdma_free: freed %ld pages starting from %08lx\n"
	.text
	.p2align 4
	.globl	vdma_free
	.type	vdma_free, @function
vdma_free:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r9, rdi
	mov	rax, QWORD PTR pgtbl[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdx, rdi
	shr	r9, 12
	movsx	r8, r9d
	lea	rcx, [rax+r8*8]
	cmp	QWORD PTR [rcx], rdi
	jne	.L2
	mov	edi, DWORD PTR VDMA_PGTBL_ENTRIES[rip]
	mov	esi, r9d
	lea	rax, 8[rax+r8*8]
	cmp	r9d, edi
	jge	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r8, QWORD PTR VDMA_PAGE_EMPTY[rip]
	add	esi, 1
	mov	QWORD PTR [rcx], r8
	cmp	esi, edi
	je	.L4
	mov	rcx, rax
	add	rax, 8
	cmp	QWORD PTR -8[rax], rdx
	je	.L6
.L4:
	xor	r12d, r12d
	cmp	DWORD PTR vdma_debug[rip], 1
	jle	.L1
	sub	esi, r9d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printk@PLT
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	mov	esi, edi
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	r12d, -1
	call	printk@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vdma_free, .-vdma_free
	.comm	vdma_debug,4,4
	.comm	pgtbl,8,8
	.comm	VDMA_PGTBL_ENTRIES,4,4
	.comm	VDMA_PAGE_EMPTY,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_jazzdma.c_vdma_free.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vdma_free: trying to free other's dma pages, laddr="
	.ascii	"%8lx\012\000"
	.align	2
.LC1:
	.ascii	"vdma_free: freed %ld pages starting from %08lx\012\000"
	.text
	.align	2
	.global	vdma_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	vdma_free, %function
vdma_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, r0
	ldr	r3, .L13
	lsr	r1, r0, #12
	ldr	r3, [r3]
	push	{r4, lr}
	ldr	r0, [r3, r1, lsl #2]
	add	r3, r3, r1, lsl #2
	cmp	r0, r2
	bne	.L2
	ldr	r0, .L13+4
	mov	ip, r1
	ldr	r0, [r0]
	cmp	r1, r0
	bge	.L3
	ldr	r4, .L13+8
.L4:
	ldr	lr, [r4]
	add	ip, ip, #1
	cmp	ip, r0
	str	lr, [r3], #4
	beq	.L3
	ldr	lr, [r3]
	cmp	r2, lr
	beq	.L4
.L3:
	ldr	r3, .L13+12
	ldr	r3, [r3]
	cmp	r3, #1
	bgt	.L12
	mov	r0, #0
	pop	{r4, pc}
.L12:
	sub	r1, ip, r1
	ldr	r0, .L13+16
	bl	printk
	mov	r0, #0
	pop	{r4, pc}
.L2:
	mov	r1, r2
	ldr	r0, .L13+20
	bl	printk
	mvn	r0, #0
	pop	{r4, pc}
.L14:
	.align	2
.L13:
	.word	pgtbl
	.word	VDMA_PGTBL_ENTRIES
	.word	VDMA_PAGE_EMPTY
	.word	vdma_debug
	.word	.LC1
	.word	.LC0
	.size	vdma_free, .-vdma_free
	.comm	vdma_debug,4,4
	.comm	pgtbl,4,4
	.comm	VDMA_PGTBL_ENTRIES,4,4
	.comm	VDMA_PAGE_EMPTY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
