	.file	"extr_be_ai_move.c_BotMoveInGoalArea.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BotMoveInGoalArea
	.type	BotMoveInGoalArea, @function
BotMoveInGoalArea:
.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
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR result[rip]
	mov	rsi, QWORD PTR result[rip+8]
	call	bot_moveresult_t_cleared@PLT
	mov	rcx, QWORD PTR 8[r12]
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rcx]
	sub	rax, QWORD PTR [rdx]
	mov	QWORD PTR 0[rbp], rax
	mov	rax, QWORD PTR 8[rcx]
	sub	rax, QWORD PTR 8[rdx]
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR MFL_SWIMMING[rip], eax
	je	.L2
	mov	rax, QWORD PTR 16[rcx]
	sub	rax, QWORD PTR 16[rdx]
	mov	QWORD PTR ds:16, rax
	mov	eax, DWORD PTR TRAVEL_SWIM[rip]
	mov	DWORD PTR result[rip+12], eax
.L3:
	xor	ebp, ebp
	mov	rdi, rbp
	call	VectorNormalize@PLT
	comiss	xmm0, DWORD PTR .LC2[rip]
	movss	xmm1, DWORD PTR .LC0[rip]
	ja	.L4
	mulss	xmm0, DWORD PTR .LC3[rip]
	movaps	xmm2, xmm1
	subss	xmm2, xmm0
	movss	xmm0, DWORD PTR .LC4[rip]
	subss	xmm1, xmm2
	comiss	xmm0, xmm1
	jbe	.L4
	pxor	xmm1, xmm1
.L4:
	mov	edx, DWORD PTR qtrue[rip]
	xor	ebp, ebp
	lea	rcx, result[rip]
	mov	rdi, rbx
	mov	rsi, rbp
	movss	DWORD PTR 12[rsp], xmm1
	call	BotCheckBlocked@PLT
	movss	xmm1, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR 40[rbx]
	mov	rsi, rbp
	movaps	xmm0, xmm1
	call	EA_Move@PLT
	mov	esi, DWORD PTR result[rip+8]
	mov	rdi, rbp
	call	VectorCopy@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR MFL_SWIMMING[rip], eax
	jne	.L14
.L6:
	mov	eax, DWORD PTR [r12]
	mov	esi, DWORD PTR 4[rbx]
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 24[rbx], 0
	mov	rdi, QWORD PTR 8[rbx]
	mov	DWORD PTR 16[rbx], eax
	call	VectorCopy@PLT
	mov	rax, QWORD PTR result[rip]
	mov	rdx, QWORD PTR result[rip+8]
	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
.L2:
	.cfi_restore_state
	mov	QWORD PTR ds:16, 0
	mov	eax, DWORD PTR TRAVEL_WALK[rip]
	mov	DWORD PTR result[rip+12], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR result[rip+4]
	mov	rdi, rbp
	call	Vector2Angles@PLT
	mov	eax, DWORD PTR result[rip]
	or	eax, DWORD PTR MOVERESULT_SWIMVIEW[rip]
	mov	DWORD PTR result[rip], eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	BotMoveInGoalArea, .-BotMoveInGoalArea
	.comm	result,16,16
	.comm	qtrue,4,4
	.comm	TRAVEL_WALK,4,4
	.comm	TRAVEL_SWIM,4,4
	.comm	MOVERESULT_SWIMVIEW,4,4
	.comm	MFL_SWIMMING,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1137180672
	.align 4
.LC2:
	.long	1120403456
	.align 4
.LC3:
	.long	1082130432
	.align 4
.LC4:
	.long	1092616192
	.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_BotMoveInGoalArea.c"
	.text
	.global	__aeabi_fcmpgt
	.global	__aeabi_fmul
	.global	__aeabi_fsub
	.global	__aeabi_fcmplt
	.align	2
	.global	BotMoveInGoalArea
	.syntax unified
	.arm
	.fpu softvfp
	.type	BotMoveInGoalArea, %function
BotMoveInGoalArea:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	mov	r8, r2
	mov	r6, #0
	ldr	r5, .L15
	mov	r7, r0
	ldm	r5, {r0, r1, r2, r3}
	bl	bot_moveresult_t_cleared
	ldr	r0, [r8, #4]
	ldr	r1, [r4, #8]
	ldr	r3, [r0]
	ldr	r2, [r1]
	ldr	r9, .L15+4
	sub	r3, r3, r2
	str	r3, [r6]
	ldr	ip, [r1, #4]
	ldr	r2, [r0, #4]
	ldr	r3, [r4]
	sub	r2, r2, ip
	ldr	ip, [r9]
	str	r2, [r6, #4]
	ands	r3, r3, ip
	beq	.L2
	ldr	r2, .L15+8
	ldr	r3, [r0, #8]
	ldr	r1, [r1, #8]
	ldr	r2, [r2]
	sub	r3, r3, r1
	str	r3, [r6, #8]
	str	r2, [r5, #12]
.L3:
	mov	r0, #0
	bl	VectorNormalize
	ldr	r1, .L15+12
	mov	r6, r0
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	ldrne	r10, .L15+16
	bne	.L4
	ldr	r1, .L15+20
	mov	r0, r6
	bl	__aeabi_fmul
	mov	r1, r0
	ldr	r0, .L15+16
	bl	__aeabi_fsub
	mov	r1, r0
	ldr	r0, .L15+16
	bl	__aeabi_fsub
	ldr	r1, .L15+24
	mov	r10, r0
	bl	__aeabi_fcmplt
	cmp	r0, #0
	movne	r10, #0
.L4:
	mov	r6, #0
	ldr	r3, .L15+28
	mov	r1, r6
	ldr	r2, [r3]
	mov	r0, r4
	ldr	r3, .L15
	bl	BotCheckBlocked
	mov	r2, r10
	mov	r1, r6
	ldr	r0, [r4, #24]
	bl	EA_Move
	mov	r0, r6
	ldr	r1, [r5, #8]
	bl	VectorCopy
	ldr	r3, [r9]
	ldr	r2, [r4]
	tst	r2, r3
	bne	.L14
.L6:
	mov	r3, #0
	ldr	r2, [r8]
	ldr	r1, [r4, #4]
	str	r3, [r4, #20]
	str	r2, [r4, #12]
	str	r3, [r4, #16]
	ldr	r0, [r4, #8]
	bl	VectorCopy
	ldm	r5, {r0, r1, r2, r3}
	stm	r7, {r0, r1, r2, r3}
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r6, #0
	ldr	r2, .L15+32
	str	r3, [r6, #8]
	ldr	r3, [r2]
	str	r3, [r5, #12]
	b	.L3
.L14:
	mov	r0, r6
	ldr	r1, [r5, #4]
	bl	Vector2Angles
	ldr	r2, .L15+36
	ldr	r3, [r5]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r5]
	b	.L6
.L16:
	.align	2
.L15:
	.word	result
	.word	MFL_SWIMMING
	.word	TRAVEL_SWIM
	.word	1120403456
	.word	1137180672
	.word	1082130432
	.word	1092616192
	.word	qtrue
	.word	TRAVEL_WALK
	.word	MOVERESULT_SWIMVIEW
	.size	BotMoveInGoalArea, .-BotMoveInGoalArea
	.comm	result,16,4
	.comm	qtrue,4,4
	.comm	TRAVEL_WALK,4,4
	.comm	TRAVEL_SWIM,4,4
	.comm	MOVERESULT_SWIMVIEW,4,4
	.comm	MFL_SWIMMING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
