	.file	"extr_be_ai_move.c_BotAddAvoidSpot.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BotAddAvoidSpot
	.type	BotAddAvoidSpot, @function
BotAddAvoidSpot:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	movss	DWORD PTR 12[rsp], xmm0
	call	BotMoveStateFromHandle@PLT
	test	rax, rax
	je	.L1
	cmp	DWORD PTR AVOID_CLEAR[rip], ebp
	mov	rbx, rax
	je	.L9
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR MAX_AVOIDSPOTS[rip]
	jb	.L10
.L1:
	add	rsp, 16
	.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
.L10:
	.cfi_restore_state
	mov	rdx, QWORD PTR 8[rbx]
	lea	rax, [rax+rax*2]
	mov	edi, r12d
	lea	rax, [rdx+rax*4]
	mov	esi, DWORD PTR 8[rax]
	call	VectorCopy@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 8[rbx]
	movss	xmm1, DWORD PTR 12[rsp]
	lea	rcx, [rax+rax*2]
	add	rax, 1
	lea	rdx, [rdx+rcx*4]
	mov	DWORD PTR 4[rdx], ebp
	movss	DWORD PTR [rdx], xmm1
	mov	QWORD PTR [rbx], rax
	add	rsp, 16
	.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
.L9:
	.cfi_restore_state
	mov	QWORD PTR [rax], 0
	add	rsp, 16
	.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
	.cfi_endproc
.LFE0:
	.size	BotAddAvoidSpot, .-BotAddAvoidSpot
	.comm	MAX_AVOIDSPOTS,8,8
	.comm	AVOID_CLEAR,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_be_ai_move.c_BotAddAvoidSpot.c"
	.text
	.align	2
	.global	BotAddAvoidSpot
	.syntax unified
	.arm
	.fpu softvfp
	.type	BotAddAvoidSpot, %function
BotAddAvoidSpot:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r7, r2
	mov	r5, r3
	bl	BotMoveStateFromHandle
	subs	r4, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L9
	ldr	r2, .L10+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	popcs	{r4, r5, r6, r7, r8, pc}
	ldr	r2, [r4, #4]
	add	r3, r3, r3, lsl #1
	add	r3, r2, r3, lsl #2
	ldr	r1, [r3, #8]
	mov	r0, r6
	bl	VectorCopy
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	add	r1, r3, r3, lsl #1
	add	r0, r2, r1, lsl #2
	add	r3, r3, #1
	str	r7, [r2, r1, lsl #2]	@ float
	str	r5, [r0, #4]
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	AVOID_CLEAR
	.word	MAX_AVOIDSPOTS
	.size	BotAddAvoidSpot, .-BotAddAvoidSpot
	.comm	MAX_AVOIDSPOTS,4,4
	.comm	AVOID_CLEAR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
