	.file	"extr_spa_misc.c_spa_aux_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	spa_aux_remove
	.type	spa_aux_remove, @function
spa_aux_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR 4[rdi]
	lea	rdx, 12[rsp]
	lea	rsi, 16[rsp]
	mov	rdi, r12
	mov	DWORD PTR 32[rsp], eax
	call	avl_find@PLT
	xor	edi, edi
	test	rax, rax
	mov	rbp, rax
	setne	dil
	call	ASSERT@PLT
	sub	QWORD PTR 0[rbp], 1
	jne	.L2
	mov	rsi, rbp
	mov	rdi, r12
	call	avl_remove@PLT
	mov	esi, 24
	mov	rdi, rbp
	call	kmem_free@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	r12, QWORD PTR 8[rbp]
	call	spa_guid@PLT
	cmp	r12, rax
	jne	.L1
	mov	QWORD PTR 8[rbp], 0
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	spa_aux_remove, .-spa_aux_remove
	.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_spa_misc.c_spa_aux_remove.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	spa_aux_remove
	.syntax unified
	.arm
	.fpu softvfp
	.type	spa_aux_remove, %function
spa_aux_remove:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0, #4]
	sub	sp, sp, #44
	ldr	ip, .L8
	add	r2, sp, #4
	mov	r5, r0
	mov	r6, r1
	mov	r0, r1
	add	r1, sp, #8
	ldr	ip, [ip]
	str	ip, [sp, #36]
	mov	ip,#0
	str	r3, [sp, #24]
	bl	avl_find
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	bl	ASSERT
	ldr	r3, [r4]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r4]
	bne	.L2
	mov	r1, r4
	mov	r0, r6
	bl	avl_remove
	mov	r0, r4
	mov	r1, #24
	bl	kmem_free
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r0, [r5]
	add	r7, r4, #8
	ldmia	r7, {r6-r7}
	bl	spa_guid
	cmp	r7, r1
	cmpeq	r6, r0
	moveq	r2, #0
	moveq	r3, #0
	streq	r2, [r4, #8]
	streq	r3, [r4, #12]
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	spa_aux_remove, .-spa_aux_remove
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
