	.file	"extr_be_ai_move.c_BotOnTopOfEntity.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BotOnTopOfEntity
	.type	BotOnTopOfEntity, @function
BotOnTopOfEntity:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR 8[rdi]
	mov	rsi, QWORD PTR [rsp]
	mov	edx, DWORD PTR 8[rsp]
	mov	QWORD PTR 36[rsp], 0
	mov	rcx, QWORD PTR 12[rsp]
	mov	r8d, DWORD PTR 20[rsp]
	mov	DWORD PTR 44[rsp], 1
	call	AAS_PresenceTypeBoundingBox@PLT
	mov	ecx, DWORD PTR 44[rsp]
	mov	r8, QWORD PTR 24[rsp]
	mov	esi, -3
	mov	r9d, DWORD PTR 32[rsp]
	mov	rdx, QWORD PTR 36[rsp]
	mov	edi, DWORD PTR 4[rbx]
	call	VectorMA@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	edi, DWORD PTR 4[rbx]
	mov	r9d, DWORD PTR [rbx]
	mov	eax, DWORD PTR CONTENTS_SOLID[rip]
	or	eax, DWORD PTR CONTENTS_PLAYERCLIP[rip]
	push	rax
	.cfi_def_cfa_offset 80
	sub	rsp, 16
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 56[rsp]
	mov	rcx, QWORD PTR 44[rsp]
	mov	r8d, DWORD PTR 52[rsp]
	mov	rsi, QWORD PTR 32[rsp]
	mov	QWORD PTR [rsp], rax
	mov	edx, DWORD PTR 40[rsp]
	mov	eax, DWORD PTR 64[rsp]
	mov	DWORD PTR 8[rsp], eax
	call	AAS_Trace@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 64
	test	edx, edx
	jne	.L4
	cmp	QWORD PTR ENTITYNUM_WORLD[rip], rax
	je	.L4
	cmp	QWORD PTR ENTITYNUM_NONE[rip], rax
	mov	edx, -1
	cmove	eax, edx
.L2:
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	BotOnTopOfEntity, .-BotOnTopOfEntity
	.comm	ENTITYNUM_WORLD,8,8
	.comm	ENTITYNUM_NONE,8,8
	.comm	CONTENTS_SOLID,4,4
	.comm	CONTENTS_PLAYERCLIP,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_BotOnTopOfEntity.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BotOnTopOfEntity
	.syntax unified
	.arm
	.fpu softvfp
	.type	BotOnTopOfEntity, %function
BotOnTopOfEntity:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	ip, #0
	mov	r4, r0
	mov	lr, #1
	sub	sp, sp, #104
	add	r6, sp, #64
	ldm	r6, {r0, r1, r2}
	stm	sp, {r0, r1, r2}
	ldr	r5, .L9
	add	r8, sp, #52
	ldr	r5, [r5]
	str	r5, [sp, #100]
	mov	r5,#0
	ldm	r8, {r1, r2, r3}
	str	lr, [sp, #96]
	str	ip, [sp, #88]
	str	ip, [sp, #92]
	add	r7, sp, #76
	add	r5, sp, #4
	ldr	r0, [r4, #8]
	bl	AAS_PresenceTypeBoundingBox
	ldm	r7, {r0, r1, r2}
	ldr	ip, [sp, #96]
	stm	r5, {r0, r1, r2}
	mvn	r1, #2
	ldr	r3, [sp, #92]
	ldr	r0, [r4, #4]
	ldr	r2, [sp, #88]
	str	ip, [sp]
	bl	VectorMA
	ldm	r7, {r0, r1, r2}
	ldr	r3, .L9+4
	ldr	ip, .L9+8
	ldr	lr, [r3]
	ldr	ip, [ip]
	ldr	r3, [r4]
	orr	ip, ip, lr
	str	r3, [sp, #28]
	add	r3, sp, #16
	str	ip, [sp, #32]
	ldr	lr, [sp, #60]
	stm	r3, {r0, r1, r2}
	ldm	r6, {r0, r1, r2}
	stm	r5, {r0, r1, r2}
	add	r0, sp, #44
	ldm	r8, {r2, r3}
	ldr	r1, [r4, #4]
	str	lr, [sp]
	bl	AAS_Trace
	ldr	r3, [sp, #48]
	ldr	r0, [sp, #44]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L9+12
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L5
	ldr	r3, .L9+16
	ldr	r3, [r3]
	cmp	r3, r0
	mvneq	r0, #0
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #100]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #104
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mvn	r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	CONTENTS_PLAYERCLIP
	.word	CONTENTS_SOLID
	.word	ENTITYNUM_WORLD
	.word	ENTITYNUM_NONE
	.size	BotOnTopOfEntity, .-BotOnTopOfEntity
	.comm	ENTITYNUM_WORLD,4,4
	.comm	ENTITYNUM_NONE,4,4
	.comm	CONTENTS_SOLID,4,4
	.comm	CONTENTS_PLAYERCLIP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
