	.file	"extr_net-buffers.c_free_unused_buffers.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	free_unused_buffers
	.type	free_unused_buffers, @function
free_unused_buffers:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR [rdi]
	mov	rbx, rdi
	cmp	rax, QWORD PTR NB_MAGIC_HEAD[rip]
	mov	rbp, QWORD PTR 48[rdi]
	mov	edi, 1
	je	.L2
	xor	edi, edi
	cmp	QWORD PTR NB_MAGIC_BUSYHEAD[rip], rax
	sete	dil
.L2:
	call	assert@PLT
	mov	rax, QWORD PTR 16[rbx]
	cmp	QWORD PTR 8[rbx], rax
	je	.L24
.L4:
	cmp	rbx, rbp
	jne	.L5
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r12, QWORD PTR 48[rbp]
	mov	eax, DWORD PTR 40[rbx]
	xor	edi, edi
	mov	QWORD PTR 48[rbx], r12
	test	eax, eax
	mov	QWORD PTR 56[r12], rbx
	setg	dil
	call	assert@PLT
	mov	rdi, rbp
	call	free_buffer@PLT
	mov	eax, DWORD PTR 40[rbx]
	sub	eax, 1
	mov	DWORD PTR 40[rbx], eax
	cmp	rbx, r12
	je	.L6
	mov	rbp, r12
.L5:
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR 8[rbp], rax
	je	.L7
	cmp	rbx, rbp
	je	.L21
	mov	rbp, QWORD PTR 56[rbx]
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r12, rbp
	mov	rbp, QWORD PTR 56[rbp]
	xor	edi, edi
	mov	QWORD PTR 56[rbx], rbp
	cmp	rbx, rbp
	je	.L11
	xor	edi, edi
	cmp	DWORD PTR 40[rbx], 1
	setg	dil
.L11:
	call	assert@PLT
	mov	QWORD PTR 48[rbp], rbx
	mov	rdi, r12
	call	free_buffer@PLT
	sub	DWORD PTR 40[rbx], 1
.L22:
	xor	edi, edi
	cmp	rbx, rbp
	setne	dil
	call	assert@PLT
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR 8[rbp], rax
	je	.L25
	pop	rbx
	.cfi_remember_state
	.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
.L24:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbx]
	cmp	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 16[rbx], rax
	mov	QWORD PTR 8[rbx], rax
	je	.L4
	mov	QWORD PTR 32[rbx], rax
	jmp	.L4
.L21:
	mov	eax, DWORD PTR 40[rbx]
.L6:
	xor	edi, edi
	test	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	sete	dil
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	assert@PLT
	.cfi_endproc
.LFE0:
	.size	free_unused_buffers, .-free_unused_buffers
	.comm	NB_MAGIC_HEAD,8,8
	.comm	NB_MAGIC_BUSYHEAD,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_net-buffers.c_free_unused_buffers.c"
	.text
	.align	2
	.global	free_unused_buffers
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_unused_buffers, %function
free_unused_buffers:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L25
	ldr	r3, [r0]
	ldr	r2, [r2]
	push	{r4, r5, r6, lr}
	cmp	r3, r2
	ldrne	r2, .L25+4
	mov	r4, r0
	ldr	r5, [r0, #24]
	ldrne	r0, [r2]
	moveq	r0, #1
	subne	r0, r0, r3
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	assert
	ldmib	r4, {r2, r3}
	cmp	r2, r3
	bne	.L4
	ldr	r2, [r4, #16]
	ldr	r3, [r4, #12]
	cmp	r2, #0
	str	r3, [r4, #8]
	str	r3, [r4, #4]
	strne	r3, [r4, #16]
.L4:
	cmp	r4, r5
	bne	.L5
	b	.L23
.L7:
	ldr	r0, [r4, #20]
	ldr	r6, [r5, #24]
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	str	r6, [r4, #24]
	str	r4, [r6, #28]
	bl	assert
	mov	r0, r5
	bl	free_buffer
	ldr	r0, [r4, #20]
	cmp	r4, r6
	sub	r0, r0, #1
	str	r0, [r4, #20]
	beq	.L6
	mov	r5, r6
.L5:
	ldmib	r5, {r2, r3}
	cmp	r2, r3
	beq	.L7
	cmp	r4, r5
	beq	.L23
	ldr	r5, [r4, #28]
	subs	r0, r4, r5
	movne	r0, #1
	bl	assert
	ldmib	r5, {r2, r3}
	cmp	r2, r3
	popne	{r4, r5, r6, pc}
.L9:
	mov	r6, r5
	ldr	r5, [r5, #28]
	cmp	r4, r5
	moveq	r0, #0
	str	r5, [r4, #28]
	beq	.L11
	ldr	r0, [r4, #20]
	cmp	r0, #1
	movle	r0, #0
	movgt	r0, #1
.L11:
	bl	assert
	mov	r0, r6
	str	r4, [r5, #24]
	bl	free_buffer
	ldr	r3, [r4, #20]
	subs	r0, r4, r5
	sub	r3, r3, #1
	movne	r0, #1
	str	r3, [r4, #20]
	bl	assert
	ldmib	r5, {r2, r3}
	cmp	r2, r3
	beq	.L9
	pop	{r4, r5, r6, pc}
.L23:
	ldr	r0, [r4, #20]
.L6:
	clz	r0, r0
	pop	{r4, r5, r6, lr}
	lsr	r0, r0, #5
	b	assert
.L26:
	.align	2
.L25:
	.word	NB_MAGIC_HEAD
	.word	NB_MAGIC_BUSYHEAD
	.size	free_unused_buffers, .-free_unused_buffers
	.comm	NB_MAGIC_HEAD,4,4
	.comm	NB_MAGIC_BUSYHEAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
