	.file	"extr_be_aas_bspq3.c_AAS_FreeBSPEntities.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	AAS_FreeBSPEntities
	.type	AAS_FreeBSPEntities, @function
AAS_FreeBSPEntities:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR bspworld[rip], 1
	jle	.L20
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, bspworld[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, 8
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, 1
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR bspworld[rip+8]
	mov	rbx, QWORD PTR [rax+r13]
	test	rbx, rbx
	je	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rbp, rbx
	mov	rbx, QWORD PTR 16[rbx]
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L4
	call	FreeMemory@PLT
.L4:
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	je	.L5
	call	FreeMemory@PLT
.L5:
	mov	rdi, rbp
	call	FreeMemory@PLT
	test	rbx, rbx
	jne	.L6
.L3:
	add	r12d, 1
	add	r13, 8
	cmp	DWORD PTR [r14], r12d
	jg	.L7
	mov	DWORD PTR bspworld[rip], 0
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	mov	DWORD PTR bspworld[rip], 0
	ret
	.cfi_endproc
.LFE0:
	.size	AAS_FreeBSPEntities, .-AAS_FreeBSPEntities
	.comm	bspworld,16,16
	.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_be_aas_bspq3.c_AAS_FreeBSPEntities.c"
	.text
	.align	2
	.global	AAS_FreeBSPEntities
	.syntax unified
	.arm
	.fpu softvfp
	.type	AAS_FreeBSPEntities, %function
AAS_FreeBSPEntities:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L21
	ldr	r3, [r7]
	cmp	r3, #1
	ble	.L2
	mov	r6, #1
.L7:
	ldr	r3, [r7, #4]
	ldr	r4, [r3, r6, lsl #2]
	cmp	r4, #0
	beq	.L3
.L6:
	ldr	r0, [r4, #4]
	mov	r5, r4
	cmp	r0, #0
	ldr	r4, [r4, #8]
	beq	.L4
	bl	FreeMemory
.L4:
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L5
	bl	FreeMemory
.L5:
	mov	r0, r5
	bl	FreeMemory
	cmp	r4, #0
	bne	.L6
.L3:
	ldr	r3, [r7]
	add	r6, r6, #1
	cmp	r3, r6
	bgt	.L7
.L2:
	mov	r3, #0
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	.align	2
.L21:
	.word	bspworld
	.size	AAS_FreeBSPEntities, .-AAS_FreeBSPEntities
	.comm	bspworld,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
