	.file	"extr_be_ai_move.c_BotWalkInDirection.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BotWalkInDirection
	.type	BotWalkInDirection, @function
BotWalkInDirection:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edx, DWORD PTR 32[rdi]
	mov	esi, DWORD PTR 36[rdi]
	mov	rdi, QWORD PTR [rdi]
	movss	DWORD PTR 8[rsp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	AAS_OnGround@PLT
	test	rax, rax
	jne	.L2
	mov	eax, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR MFL_ONGROUND[rip]
	and	edx, eax
	test	edx, edx
	jne	.L53
.L4:
	test	DWORD PTR MFL_BARRIERJUMP[rip], eax
	jne	.L54
.L25:
	mov	eax, DWORD PTR qtrue[rip]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L55
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR MFL_ONGROUND[rip]
	or	eax, edx
	mov	DWORD PTR 8[rbx], eax
	test	edx, edx
	je	.L4
.L53:
	movss	xmm0, DWORD PTR 8[rsp]
	mov	rsi, r12
	mov	rdi, rbx
	call	BotCheckBarrierJump@PLT
	test	rax, rax
	jne	.L25
	mov	eax, DWORD PTR MFL_BARRIERJUMP[rip]
	not	eax
	and	DWORD PTR 8[rbx], eax
	test	DWORD PTR MOVE_CROUCH[rip], ebp
	jne	.L56
.L7:
	mov	r13d, DWORD PTR PRESENCE_NORMAL[rip]
.L8:
	movsd	xmm0, QWORD PTR [r12]
	xor	edi, edi
	movsd	QWORD PTR [rdi], xmm0
	movsd	xmm0, QWORD PTR 8[r12]
	mov	QWORD PTR 16[rdi], 0x000000000
	movsd	QWORD PTR 8[rdi], xmm0
	call	VectorNormalize@PLT
	test	DWORD PTR MOVE_JUMP[rip], ebp
	je	.L57
.L10:
	movss	xmm0, DWORD PTR 8[rsp]
	xor	esi, esi
	xor	edi, edi
	call	VectorScale@PLT
	mov	rdi, QWORD PTR 16[rbx]
	xor	esi, esi
	call	VectorCopy@PLT
	test	DWORD PTR MOVE_JUMP[rip], ebp
	jne	.L58
	mov	r12d, DWORD PTR SE_HITGROUNDDAMAGE[rip]
	mov	edx, 2
	or	r12d, DWORD PTR SE_ENTERWATER[rip]
	mov	r14d, 2
	or	r12d, DWORD PTR SE_ENTERSLIME[rip]
	or	r12d, DWORD PTR SE_ENTERLAVA[rip]
.L14:
	xor	r15d, r15d
	mov	rdi, QWORD PTR [rbx]
	mov	DWORD PTR 12[rsp], edx
	mov	rsi, r15
	call	VectorCopy@PLT
	lea	rdi, 16[rsp]
	mov	esi, DWORD PTR 32[rbx]
	xor	r9d, r9d
	mov	eax, DWORD PTR qfalse[rip]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mov	ecx, r13d
	addsd	xmm0, QWORD PTR ds:16
	mov	r8d, DWORD PTR qtrue[rip]
	movsd	QWORD PTR 16[r15], xmm0
	movss	xmm0, DWORD PTR .LC5[rip]
	push	rax
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	push	r12
	.cfi_def_cfa_offset 136
	push	r14
	.cfi_def_cfa_offset 144
	mov	edx, DWORD PTR 44[rsp]
	push	rdx
	.cfi_def_cfa_offset 152
	mov	rdx, r15
	push	0
	.cfi_def_cfa_offset 160
	call	AAS_PredictClientMovement@PLT
	add	rsp, 48
	.cfi_def_cfa_offset 112
	cmp	DWORD PTR 16[rsp], r14d
	jl	.L15
	test	DWORD PTR MOVE_JUMP[rip], ebp
	jne	.L16
.L15:
	mov	edx, DWORD PTR 20[rsp]
	mov	eax, DWORD PTR SE_ENTERSLIME[rip]
	or	eax, DWORD PTR SE_ENTERLAVA[rip]
	or	eax, DWORD PTR SE_HITGROUNDDAMAGE[rip]
	test	eax, edx
	jne	.L16
	test	DWORD PTR SE_HITGROUND[rip], edx
	je	.L17
	xor	r12d, r12d
	mov	edi, DWORD PTR 32[rsp]
	mov	rsi, r12
	call	VectorNormalize2@PLT
	mov	edx, DWORD PTR 32[rbx]
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, r12
	call	BotGapDistance@PLT
	pxor	xmm2, xmm2
	mov	eax, DWORD PTR qfalse[rip]
	comiss	xmm0, xmm2
	ja	.L1
	xor	edi, edi
	mov	edx, DWORD PTR 32[rbx]
	mov	rsi, rdi
	mov	rdi, QWORD PTR 24[rsp]
	call	BotGapDistance@PLT
	pxor	xmm3, xmm3
	mov	eax, DWORD PTR qfalse[rip]
	comiss	xmm0, xmm3
	ja	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 24[rsp]
	xor	r12d, r12d
	mov	rdi, r12
	movsd	xmm0, QWORD PTR [rdx]
	subsd	xmm0, QWORD PTR [rax]
	movsd	QWORD PTR [r12], xmm0
	movsd	xmm0, QWORD PTR 8[rdx]
	subsd	xmm0, QWORD PTR 8[rax]
	mov	QWORD PTR 16[r12], 0x000000000
	movsd	QWORD PTR 8[r12], xmm0
	call	VectorLength@PLT
	movss	xmm1, DWORD PTR 8[rsp]
	mulss	xmm1, DWORD PTR 24[rbx]
	cvtss2sd	xmm0, xmm0
	mov	eax, DWORD PTR qfalse[rip]
	cvtss2sd	xmm1, xmm1
	mulsd	xmm1, QWORD PTR .LC4[rip]
	comisd	xmm1, xmm0
	ja	.L1
	mov	r8d, DWORD PTR 28[rbx]
	test	DWORD PTR MOVE_JUMP[rip], ebp
	jne	.L59
.L23:
	test	DWORD PTR MOVE_CROUCH[rip], ebp
	jne	.L60
.L24:
	xor	edi, edi
	movss	xmm0, DWORD PTR 8[rsp]
	mov	rsi, rdi
	mov	edi, r8d
	call	EA_Move@PLT
	mov	eax, DWORD PTR qtrue[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L54:
	mov	rax, QWORD PTR 16[rbx]
	movsd	xmm0, QWORD PTR .LC6[rip]
	comisd	xmm0, QWORD PTR 16[rax]
	jbe	.L25
	mov	edi, DWORD PTR 28[rbx]
	movss	xmm0, DWORD PTR 8[rsp]
	mov	rsi, r12
	call	EA_Move@PLT
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L58:
	mov	rax, QWORD PTR .LC2[rip]
	mov	edx, 1
	mov	QWORD PTR ds:16, rax
	movsd	xmm0, QWORD PTR PREDICTIONTIME_JUMP[rip]
	divsd	xmm0, QWORD PTR .LC3[rip]
	cvttsd2si	r14d, xmm0
	mov	r12d, DWORD PTR SE_HITGROUND[rip]
	or	r12d, DWORD PTR SE_HITGROUNDDAMAGE[rip]
	or	r12d, DWORD PTR SE_ENTERWATER[rip]
	or	r12d, DWORD PTR SE_ENTERSLIME[rip]
	or	r12d, DWORD PTR SE_ENTERLAVA[rip]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L56:
	mov	r13d, DWORD PTR PRESENCE_CROUCH[rip]
	test	DWORD PTR MOVE_JUMP[rip], ebp
	je	.L8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR qfalse[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L57:
	xor	edi, edi
	mov	edx, DWORD PTR 32[rbx]
	mov	rsi, rdi
	mov	rdi, QWORD PTR [rbx]
	call	BotGapDistance@PLT
	comiss	xmm0, DWORD PTR .LC1[rip]
	jbe	.L10
	or	ebp, DWORD PTR MOVE_JUMP[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L60:
	mov	edi, r8d
	call	EA_Crouch@PLT
	mov	r8d, DWORD PTR 28[rbx]
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L59:
	mov	edi, r8d
	call	EA_Jump@PLT
	mov	r8d, DWORD PTR 28[rbx]
	jmp	.L23
.L55:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	BotWalkInDirection, .-BotWalkInDirection
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	SE_HITGROUNDDAMAGE,4,4
	.comm	SE_HITGROUND,4,4
	.comm	SE_ENTERWATER,4,4
	.comm	SE_ENTERSLIME,4,4
	.comm	SE_ENTERLAVA,4,4
	.comm	PRESENCE_NORMAL,4,4
	.comm	PRESENCE_CROUCH,4,4
	.comm	PREDICTIONTIME_JUMP,8,8
	.comm	MOVE_JUMP,4,4
	.comm	MOVE_CROUCH,4,4
	.comm	MFL_ONGROUND,4,4
	.comm	MFL_BARRIERJUMP,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC1:
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1081671680
	.align 8
.LC3:
	.long	2576980378
	.long	1069128089
	.align 8
.LC4:
	.long	0
	.long	1071644672
	.section	.rodata.cst4
	.align 4
.LC5:
	.long	1036831949
	.section	.rodata.cst8
	.align 8
.LC6:
	.long	0
	.long	1078525952
	.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_BotWalkInDirection.c"
	.text
	.global	__aeabi_fcmpgt
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.global	__aeabi_dadd
	.global	__aeabi_dsub
	.global	__aeabi_f2d
	.global	__aeabi_fmul
	.global	__aeabi_dmul
	.global	__aeabi_dcmplt
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BotWalkInDirection
	.syntax unified
	.arm
	.fpu softvfp
	.type	BotWalkInDirection, %function
BotWalkInDirection:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r3
	ldr	r3, .L63
	mov	r4, r0
	sub	sp, sp, #92
	mov	r8, r1
	mov	r6, r2
	ldr	r1, [r0, #24]
	ldr	r2, [r0, #20]
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [sp, #84]
	mov	r3,#0
	bl	AAS_OnGround
	ldr	r2, .L63+4
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	cmp	r0, #0
	orrne	r3, r2, r3
	andeq	r2, r2, r3
	strne	r3, [r4, #4]
	cmp	r2, #0
	bne	.L56
	ldr	r2, .L63+8
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L57
.L25:
	ldr	r3, .L63+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L63
	ldr	r2, [r3]
	ldr	r3, [sp, #84]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L58
	add	sp, sp, #92
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L57:
	ldr	r1, [r4, #8]
	mov	r2, #0
	add	r1, r1, #16
	ldmia	r1, {r0-r1}
	ldr	r3, .L63+16
	bl	__aeabi_dcmplt
	cmp	r0, #0
	beq	.L25
	mov	r2, r6
	mov	r1, r8
	ldr	r0, [r4, #16]
	bl	EA_Move
	b	.L25
.L56:
	mov	r2, r6
	mov	r1, r8
	mov	r0, r4
	bl	BotCheckBarrierJump
	cmp	r0, #0
	bne	.L25
	ldr	r3, .L63+8
	ldr	r2, .L63+20
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4, #4]
	tst	r5, r2
	bic	r3, r3, r1
	ldr	r7, .L63+24
	str	r3, [r4, #4]
	bne	.L50
.L7:
	ldr	r3, .L63+28
	ldr	r3, [r3]
	str	r3, [sp, #44]
.L8:
	mov	r0, #0
	ldmia	r8, {r2-r3}
	mov	r10, #0
	mov	fp, #0
	stm	r0, {r2-r3}
	add	r3, r8, #8
	ldmia	r3, {r2-r3}
	str	r10, [r0, #16]
	str	fp, [r0, #20]
	str	r2, [r0, #8]
	str	r3, [r0, #12]
	bl	VectorNormalize
	ldr	r3, [r7]
	tst	r5, r3
	beq	.L59
.L10:
	mov	r2, #0
	mov	r1, r6
	mov	r0, r2
	bl	VectorScale
	mov	r1, #0
	ldr	r0, [r4, #8]
	bl	VectorCopy
	ldr	r3, [r7]
	tst	r5, r3
	bne	.L60
	mov	r3, #2
	ldr	r9, .L63+32
	ldr	r2, .L63+36
	ldr	fp, .L63+40
	ldr	r2, [r2]
	ldr	r0, .L63+44
	str	r3, [sp, #52]
	str	r3, [sp, #48]
	ldr	r3, [r9]
	ldr	r1, [fp]
	orr	r3, r3, r2
	ldr	r2, [r0]
	orr	r3, r3, r1
	orr	r3, r3, r2
	str	r0, [sp, #60]
	str	r3, [sp, #56]
.L14:
	mov	r8, #0
	ldr	r0, [r4]
	mov	r1, r8
	bl	VectorCopy
	add	r1, r8, #16
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L63+48
	bl	__aeabi_dadd
	mov	lr, r8
	ldr	r3, [sp, #56]
	str	r0, [r8, #16]
	str	r1, [r8, #20]
	ldr	r10, .L63+52
	str	r3, [sp, #24]
	ldr	r3, [sp, #52]
	mov	r2, r8
	ldr	r8, [sp, #48]
	ldr	r1, [r10]
	str	r3, [sp, #12]
	ldr	r3, .L63+12
	str	r8, [sp, #16]
	ldr	r0, [r3]
	str	r1, [sp, #32]
	ldr	r1, .L63+56
	str	r0, [sp]
	str	lr, [sp, #28]
	str	lr, [sp, #8]
	str	lr, [sp, #4]
	str	r1, [sp, #20]	@ float
	ldr	r3, [sp, #44]
	ldr	r1, [r4, #20]
	add	r0, sp, #68
	bl	AAS_PredictClientMovement
	ldr	r3, [sp, #68]
	cmp	r3, r8
	blt	.L15
	ldr	r3, [r7]
	tst	r5, r3
	bne	.L54
.L15:
	ldr	r2, [sp, #60]
	ldr	r3, [fp]
	ldr	r2, [r2]
	ldr	r1, [r9]
	orr	r3, r3, r2
	ldr	r2, [sp, #72]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L54
	ldr	r3, .L63+60
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L17
	mov	r8, #0
	ldr	r0, [sp, #80]
	mov	r1, r8
	bl	VectorNormalize2
	mov	r1, r8
	ldr	r2, [r4, #20]
	ldr	r0, [sp, #76]
	bl	BotGapDistance
	mov	r1, #0
	bl	__aeabi_fcmpgt
	cmp	r0, r8
	beq	.L51
.L54:
	ldr	r0, [r10]
	b	.L1
.L60:
	mov	ip, #0
	mov	r0, #0
	ldr	lr, .L63+64
	ldr	r1, .L63+68
	ldr	r2, .L63+72
	str	r0, [ip, #16]
	str	r1, [ip, #20]
	ldmia	lr, {r0-r1}
	ldr	r3, .L63+76
	bl	__aeabi_ddiv
	bl	__aeabi_d2iz
	ldr	r9, .L63+32
	ldr	r3, .L63+60
	ldr	r2, .L63+36
	ldr	r1, [r9]
	ldr	r3, [r3]
	ldr	fp, .L63+40
	ldr	r2, [r2]
	ldr	ip, .L63+44
	orr	r3, r3, r1
	ldr	r1, [fp]
	orr	r3, r3, r2
	ldr	r2, [ip]
	orr	r3, r3, r1
	orr	r3, r3, r2
	str	r3, [sp, #56]
	mov	r3, #1
	str	ip, [sp, #60]
	str	r0, [sp, #48]
	str	r3, [sp, #52]
	b	.L14
.L50:
	ldr	r3, [r7]
	tst	r5, r3
	bne	.L7
	ldr	r3, .L63+80
	ldr	r3, [r3]
	str	r3, [sp, #44]
	b	.L8
.L51:
	mov	r1, #0
	ldr	r2, [r4, #20]
	ldr	r0, [sp, #76]
	bl	BotGapDistance
	mov	r1, #0
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	bne	.L54
.L17:
	ldr	r9, [sp, #76]
	ldr	fp, [r4]
	ldmia	r9, {r0-r1}
	ldmia	fp, {r2-r3}
	bl	__aeabi_dsub
	mov	r8, #0
	stm	r8, {r0-r1}
	add	r3, fp, #8
	ldmia	r3, {r2-r3}
	add	r1, r9, #8
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, #0
	mov	r3, #0
	str	r0, [r8, #8]
	str	r1, [r8, #12]
	str	r2, [r8, #16]
	str	r3, [r8, #20]
	mov	r0, r8
	bl	VectorLength
	bl	__aeabi_f2d
	mov	r8, r0
	mov	r9, r1
	mov	r0, r6
	ldr	r1, [r4, #12]	@ float
	bl	__aeabi_fmul
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L63+48
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dcmplt
	cmp	r0, #0
	bne	.L54
	ldr	r3, [r7]
	ldr	r0, [r4, #16]
	tst	r5, r3
	bne	.L61
.L23:
	ldr	r3, .L63+20
	ldr	r3, [r3]
	tst	r5, r3
	bne	.L62
.L24:
	mov	r2, r6
	mov	r1, #0
	bl	EA_Move
	ldr	r3, .L63+12
	ldr	r0, [r3]
	b	.L1
.L59:
	mov	r1, #0
	ldr	r2, [r4, #20]
	ldr	r0, [r4]
	bl	BotGapDistance
	mov	r1, #0
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	ldrne	r3, [r7]
	orrne	r5, r5, r3
	b	.L10
.L62:
	bl	EA_Crouch
	ldr	r0, [r4, #16]
	b	.L24
.L61:
	bl	EA_Jump
	ldr	r0, [r4, #16]
	b	.L23
.L58:
	bl	__stack_chk_fail
.L64:
	.align	2
.L63:
	.word	.LC0
	.word	MFL_ONGROUND
	.word	MFL_BARRIERJUMP
	.word	qtrue
	.word	1078525952
	.word	MOVE_CROUCH
	.word	MOVE_JUMP
	.word	PRESENCE_NORMAL
	.word	SE_HITGROUNDDAMAGE
	.word	SE_ENTERWATER
	.word	SE_ENTERSLIME
	.word	SE_ENTERLAVA
	.word	1071644672
	.word	qfalse
	.word	1036831949
	.word	SE_HITGROUND
	.word	PREDICTIONTIME_JUMP
	.word	1081671680
	.word	-1717986918
	.word	1069128089
	.word	PRESENCE_CROUCH
	.size	BotWalkInDirection, .-BotWalkInDirection
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	SE_HITGROUNDDAMAGE,4,4
	.comm	SE_HITGROUND,4,4
	.comm	SE_ENTERWATER,4,4
	.comm	SE_ENTERSLIME,4,4
	.comm	SE_ENTERLAVA,4,4
	.comm	PRESENCE_NORMAL,4,4
	.comm	PRESENCE_CROUCH,4,4
	.comm	PREDICTIONTIME_JUMP,8,8
	.comm	MOVE_JUMP,4,4
	.comm	MOVE_CROUCH,4,4
	.comm	MFL_ONGROUND,4,4
	.comm	MFL_BARRIERJUMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
