	.file	"extr_netmap_mem2.c_netmap_extra_free.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"freeing the extra list"
.LC1:
	.string	"breaking with head %d"
.LC2:
	.string	"freed %d buffers"
	.text
	.p2align 4
	.type	netmap_extra_free, @function
netmap_extra_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR [rdi]
	mov	rdx, QWORD PTR NETMAP_BUF_POOL[rip]
	mov	r13, QWORD PTR 8[rdi]
	lea	rdi, .LC0[rip]
	mov	DWORD PTR 12[rsp], esi
	mov	rax, QWORD PTR [rax]
	lea	rbp, [rax+rdx*4]
	call	nm_prdis@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	ebx, esi
	cmp	esi, 1
	jg	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movsx	rax, esi
	mov	rdi, rbp
	mov	rax, QWORD PTR 0[r13+rax*8]
	mov	ebx, DWORD PTR [rax]
	mov	DWORD PTR [rax], 0
	call	netmap_obj_free@PLT
	test	rax, rax
	jne	.L3
	add	r12d, 1
	cmp	ebx, 1
	jle	.L3
	mov	esi, ebx
.L2:
	cmp	DWORD PTR 0[rbp], esi
	jg	.L4
.L5:
	lea	rdi, .LC1[rip]
	call	nm_prerr@PLT
	mov	eax, DWORD PTR netmap_debug[rip]
	test	DWORD PTR NM_DEBUG_MEM[rip], eax
	je	.L1
.L16:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, r12d
	lea	rdi, .LC2[rip]
	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
	jmp	nm_prinf@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	test	ebx, ebx
	jne	.L15
	mov	eax, DWORD PTR netmap_debug[rip]
	test	DWORD PTR NM_DEBUG_MEM[rip], eax
	jne	.L16
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L15:
	.cfi_restore_state
	mov	esi, ebx
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	netmap_extra_free, .-netmap_extra_free
	.comm	netmap_debug,4,4
	.comm	NM_DEBUG_MEM,4,4
	.comm	NETMAP_BUF_POOL,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_netmap_mem2.c_netmap_extra_free.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"freeing the extra list\000"
	.align	2
.LC1:
	.ascii	"breaking with head %d\000"
	.align	2
.LC2:
	.ascii	"freed %d buffers\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	netmap_extra_free, %function
netmap_extra_free:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r0]
	ldr	r2, .L16
	ldr	r5, [r0]
	ldr	r2, [r2]
	sub	sp, sp, #8
	ldr	r0, .L16+4
	str	r1, [sp, #4]
	ldr	r7, [r3, #4]
	add	r5, r5, r2, lsl #2
	bl	nm_prdis
	ldr	r1, [sp, #4]
	cmp	r1, #1
	movle	r4, r1
	movle	r6, #0
	ble	.L3
	mov	r6, #0
	mov	r8, r6
	b	.L2
.L4:
	ldr	r3, [r7, r1, lsl #2]
	mov	r0, r5
	ldr	r4, [r3]
	str	r8, [r3]
	bl	netmap_obj_free
	cmp	r0, #0
	bne	.L3
	cmp	r4, #1
	add	r6, r6, #1
	ble	.L3
	mov	r1, r4
.L2:
	ldr	r3, [r5]
	cmp	r3, r1
	bgt	.L4
.L5:
	ldr	r0, .L16+8
	bl	nm_prerr
	b	.L6
.L3:
	cmp	r4, #0
	bne	.L14
.L6:
	ldr	r2, .L16+12
	ldr	r3, .L16+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L15
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r1, r6
	ldr	r0, .L16+20
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	nm_prinf
.L14:
	mov	r1, r4
	b	.L5
.L17:
	.align	2
.L16:
	.word	NETMAP_BUF_POOL
	.word	.LC0
	.word	.LC1
	.word	netmap_debug
	.word	NM_DEBUG_MEM
	.word	.LC2
	.size	netmap_extra_free, .-netmap_extra_free
	.comm	netmap_debug,4,4
	.comm	NM_DEBUG_MEM,4,4
	.comm	NETMAP_BUF_POOL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
