	.file	"extr_key.c_key_flush_spacq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	key_flush_spacq, @function
key_flush_spacq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	eax, eax
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	SPACQ_LOCK@PLT
	lea	rdi, V_spacqtree[rip]
	call	LIST_FIRST@PLT
	test	rax, rax
	je	.L2
	mov	rbx, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	test	rbx, rbx
	je	.L2
.L6:
	mov	esi, DWORD PTR chain[rip]
	mov	rdi, rbx
	mov	rbp, rbx
	call	LIST_NEXT@PLT
	mov	rbx, rax
	mov	rax, r12
	sub	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR V_key_blockacq_lifetime[rip]
	jle	.L4
	mov	rdi, rbp
	call	__LIST_CHAINED@PLT
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR chain[rip]
	mov	rdi, rbp
	call	LIST_REMOVE@PLT
	mov	esi, DWORD PTR M_IPSEC_SAQ[rip]
	mov	rdi, rbp
	call	free@PLT
	test	rbx, rbx
	jne	.L6
.L2:
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	SPACQ_UNLOCK@PLT
	.cfi_endproc
.LFE0:
	.size	key_flush_spacq, .-key_flush_spacq
	.comm	chain,4,4
	.comm	V_spacqtree,4,4
	.comm	V_key_blockacq_lifetime,8,8
	.comm	M_IPSEC_SAQ,4,4
	.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_key.c_key_flush_spacq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	key_flush_spacq, %function
key_flush_spacq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	bl	SPACQ_LOCK
	ldr	r0, .L16
	bl	LIST_FIRST
	subs	r4, r0, #0
	beq	.L2
	ldr	r6, .L16+4
	ldr	r7, .L16+8
	ldr	r8, .L16+12
	b	.L6
.L4:
	cmp	r4, #0
	beq	.L2
.L6:
	mov	r0, r4
	ldr	r1, [r6]
	bl	LIST_NEXT
	ldr	r3, [r4]
	ldr	r2, [r7]
	sub	r3, r5, r3
	cmp	r3, r2
	mov	r9, r4
	mov	r4, r0
	ble	.L4
	mov	r0, r9
	bl	__LIST_CHAINED
	cmp	r0, #0
	beq	.L4
	ldr	r1, [r6]
	mov	r0, r9
	bl	LIST_REMOVE
	mov	r0, r9
	ldr	r1, [r8]
	bl	free
	cmp	r4, #0
	bne	.L6
.L2:
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	SPACQ_UNLOCK
.L17:
	.align	2
.L16:
	.word	V_spacqtree
	.word	chain
	.word	V_key_blockacq_lifetime
	.word	M_IPSEC_SAQ
	.size	key_flush_spacq, .-key_flush_spacq
	.comm	chain,4,4
	.comm	V_spacqtree,4,4
	.comm	V_key_blockacq_lifetime,4,4
	.comm	M_IPSEC_SAQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
