	.file	"extr_addrtree.c_purge_node.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	purge_node, @function
purge_node:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rax, QWORD PTR 24[rsi]
	mov	rbp, rsi
	cmp	QWORD PTR [rax], 0
	je	.L2
	cmp	QWORD PTR 8[rax], 0
	je	.L2
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	clean_node@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	clean_node@PLT
	mov	r13, QWORD PTR 32[rbp]
	test	r13, r13
	je	.L1
	mov	rcx, QWORD PTR 24[rbp]
	sub	DWORD PTR 4[r12], 1
	movsx	rdx, DWORD PTR 0[r13]
	mov	rax, QWORD PTR [rcx]
	test	rax, rax
	je	.L12
.L5:
	mov	rcx, QWORD PTR 16[r13]
	mov	DWORD PTR [rax], edx
	mov	QWORD PTR 16[rax], rcx
.L6:
	mov	rcx, QWORD PTR 16[r13]
	mov	rsi, rbp
	mov	rdi, r12
	mov	rcx, QWORD PTR [rcx]
	mov	QWORD PTR [rcx+rdx*8], rax
	call	node_size@PLT
	sub	DWORD PTR [r12], eax
	mov	rdi, QWORD PTR 8[r13]
	call	free@PLT
	mov	rdi, r13
	call	free@PLT
	mov	rdi, r12
	mov	rsi, rbp
	call	lru_pop@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	free@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rcx]
	test	rax, rax
	je	.L6
	jmp	.L5
.L1:
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	purge_node, .-purge_node
	.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_addrtree.c_purge_node.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	purge_node, %function
purge_node:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #12]
	push	{r4, r5, r6, lr}
	ldr	r2, [r3]
	mov	r4, r1
	cmp	r2, #0
	mov	r5, r0
	beq	.L2
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L2
	pop	{r4, r5, r6, lr}
	b	clean_node
.L2:
	mov	r1, r4
	mov	r0, r5
	bl	clean_node
	ldr	r6, [r4, #16]
	cmp	r6, #0
	popeq	{r4, r5, r6, pc}
	ldr	r1, [r4, #12]
	ldr	r2, [r5, #4]
	ldr	r3, [r1]
	sub	r2, r2, #1
	cmp	r3, #0
	str	r2, [r5, #4]
	ldr	r2, [r6]
	beq	.L15
.L5:
	ldr	r1, [r6, #8]
	str	r2, [r3]
	str	r1, [r3, #8]
.L6:
	ldr	r0, [r6, #8]
	mov	r1, r4
	ldr	r0, [r0]
	str	r3, [r0, r2, lsl #2]
	mov	r0, r5
	bl	node_size
	mov	r2, r0
	ldr	r3, [r5]
	ldr	r0, [r6, #4]
	sub	r3, r3, r2
	str	r3, [r5]
	bl	free
	mov	r0, r6
	bl	free
	mov	r1, r4
	mov	r0, r5
	bl	lru_pop
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	free
.L15:
	ldr	r3, [r1, #4]
	cmp	r3, #0
	beq	.L6
	b	.L5
	.size	purge_node, .-purge_node
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
