	.file	"extr_aas_store.c_AAS_GetPlane.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"AAS_MAX_PLANES = %d"
	.text
	.p2align 4
	.globl	AAS_GetPlane
	.type	AAS_GetPlane, @function
AAS_GetPlane:
.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, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	AAS_FindHashedPlane@PLT
	mov	r8, rax
	mov	eax, 1
	test	r8, r8
	jne	.L1
	mov	esi, DWORD PTR max_aas[rip]
	movsx	rax, DWORD PTR aasworld[rip]
	lea	edx, -1[rsi]
	cmp	eax, edx
	jge	.L8
.L3:
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR aasworld[rip+8]
	mov	edi, ebp
	lea	r13, [rax+rdx*8]
	mov	rsi, QWORD PTR 0[r13]
	call	VectorCopy@PLT
	mov	QWORD PTR 16[r13], r12
	mov	edi, ebp
	call	AAS_PlaneTypeForNormal@PLT
	mov	DWORD PTR 8[r13], eax
	mov	eax, DWORD PTR aasworld[rip]
	mov	DWORD PTR [rbx], eax
	mov	edi, DWORD PTR aasworld[rip]
	lea	eax, 1[rdi]
	mov	DWORD PTR aasworld[rip], eax
	call	AAS_AddPlaneToHash@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	Error@PLT
	movsx	rax, DWORD PTR aasworld[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	AAS_GetPlane, .-AAS_GetPlane
	.comm	max_aas,4,4
	.comm	aasworld,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_aas_store.c_AAS_GetPlane.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"AAS_MAX_PLANES = %d\000"
	.text
	.align	2
	.global	AAS_GetPlane
	.syntax unified
	.arm
	.fpu softvfp
	.type	AAS_GetPlane, %function
AAS_GetPlane:
	@ 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
	mov	r7, r1
	mov	r8, r2
	bl	AAS_FindHashedPlane
	subs	r4, r0, #0
	movne	r4, #1
	bne	.L1
	ldr	r3, .L8
	ldr	r6, .L8+4
	ldr	r1, [r3]
	ldr	r3, [r6]
	sub	r2, r1, #1
	cmp	r3, r2
	bge	.L7
.L3:
	ldr	r2, [r6, #4]
	add	r3, r3, r3, lsl #1
	add	r9, r2, r3, lsl #2
	ldr	r1, [r2, r3, lsl #2]
	mov	r0, r5
	bl	VectorCopy
	mov	r0, r5
	str	r7, [r9, #8]
	bl	AAS_PlaneTypeForNormal
	ldr	r3, [r6]
	str	r0, [r9, #4]
	str	r3, [r8]
	ldr	r0, [r6]
	add	r3, r0, #1
	str	r3, [r6]
	bl	AAS_AddPlaneToHash
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	ldr	r0, .L8+8
	bl	Error
	ldr	r3, [r6]
	b	.L3
.L9:
	.align	2
.L8:
	.word	max_aas
	.word	aasworld
	.word	.LC0
	.size	AAS_GetPlane, .-AAS_GetPlane
	.comm	max_aas,4,4
	.comm	aasworld,8,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
