	.file	"extr_be_ai_move.c_BotResetLastAvoidReach.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BotResetLastAvoidReach
	.type	BotResetLastAvoidReach, @function
BotResetLastAvoidReach:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	call	BotMoveStateFromHandle@PLT
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR MAX_AVOIDREACH[rip]
	test	edx, edx
	jle	.L1
	pxor	xmm2, xmm2
	lea	r9d, -1[rdx]
	mov	r8, QWORD PTR [rax]
	xor	edx, edx
	movaps	xmm0, xmm2
	xor	esi, esi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, rdi
.L7:
	movss	xmm1, DWORD PTR [r8+rdx*4]
	lea	rdi, 1[rdx]
	comiss	xmm1, xmm0
	maxss	xmm1, xmm0
	cmova	esi, edx
	movaps	xmm0, xmm1
	movsx	rcx, esi
	cmp	rdx, r9
	jne	.L9
	ucomiss	xmm1, xmm2
	jp	.L11
	je	.L1
.L11:
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR [r8+rcx*4], 0x00000000
	lea	rdx, [rax+rcx*8]
	mov	rax, QWORD PTR [rdx]
	test	rax, rax
	jle	.L1
	sub	rax, 1
	mov	QWORD PTR [rdx], rax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	BotResetLastAvoidReach, .-BotResetLastAvoidReach
	.comm	MAX_AVOIDREACH,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_BotResetLastAvoidReach.c"
	.text
	.global	__aeabi_fcmpgt
	.global	__aeabi_fcmpeq
	.align	2
	.global	BotResetLastAvoidReach
	.syntax unified
	.arm
	.fpu softvfp
	.type	BotResetLastAvoidReach, %function
BotResetLastAvoidReach:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	bl	BotMoveStateFromHandle
	subs	r9, r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r3, .L14
	ldr	r7, [r3]
	cmp	r7, #0
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r8, #0
	mov	fp, #0
	mov	r4, r8
	ldr	r10, [r9]
	sub	r6, r10, #4
.L7:
	ldr	r5, [r6, #4]!	@ float
	mov	r1, fp
	mov	r0, r5
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	movne	r8, r4
	add	r4, r4, #1
	movne	fp, r5
	cmp	r4, r7
	bne	.L7
	mov	r4, #0
	mov	r0, fp
	mov	r1, r4
	bl	__aeabi_fcmpeq
	cmp	r0, #0
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	ldr	r2, [r9, #4]
	str	r4, [r10, r8, lsl #2]	@ float
	ldr	r3, [r2, r8, lsl #2]
	cmp	r3, #0
	subgt	r3, r3, #1
	strgt	r3, [r2, r8, lsl #2]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	MAX_AVOIDREACH
	.size	BotResetLastAvoidReach, .-BotResetLastAvoidReach
	.comm	MAX_AVOIDREACH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
