	.file	"extr_ai_dmnet.c_BotNearbyGoal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BotNearbyGoal
	.type	BotNearbyGoal, @function
BotNearbyGoal:
.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	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	movss	DWORD PTR 12[rsp], xmm0
	call	BotGoForAir@PLT
	movss	xmm0, DWORD PTR 12[rsp]
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR qtrue[rip]
	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	rdi, rbx
	movss	DWORD PTR 12[rsp], xmm0
	call	BotCTFCarryingFlag@PLT
	movss	xmm0, DWORD PTR 12[rsp]
	test	rax, rax
	jne	.L10
.L5:
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	r8, rbp
	mov	ecx, r12d
	mov	edx, DWORD PTR [rbx]
	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
	jmp	trap_BotChooseNBGItem@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 16[rbx]
	mov	ecx, DWORD PTR TFL_DEFAULT[rip]
	call	trap_AAS_AreaTravelTimeToGoalArea@PLT
	movss	xmm0, DWORD PTR 12[rsp]
	cmp	eax, 299
	jg	.L5
	movss	xmm0, DWORD PTR .LC0[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	BotNearbyGoal, .-BotNearbyGoal
	.comm	qtrue,4,4
	.comm	TFL_DEFAULT,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1112014848
	.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_ai_dmnet.c_BotNearbyGoal.c"
	.text
	.align	2
	.global	BotNearbyGoal
	.syntax unified
	.arm
	.fpu softvfp
	.type	BotNearbyGoal, %function
BotNearbyGoal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #12
	mov	r4, r0
	mov	r7, r1
	mov	r6, r2
	mov	r5, r3
	bl	BotGoForAir
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L10
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r0, r4
	bl	BotCTFCarryingFlag
	cmp	r0, #0
	bne	.L9
.L5:
	str	r5, [sp, #4]	@ float
	str	r6, [sp]
	mov	r3, r7
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	bl	trap_BotChooseNBGItem
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	ldr	r3, .L10+4
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #16]
	bl	trap_AAS_AreaTravelTimeToGoalArea
	cmp	r0, #300
	ldrlt	r5, .L10+8
	b	.L5
.L11:
	.align	2
.L10:
	.word	qtrue
	.word	TFL_DEFAULT
	.word	1112014848
	.size	BotNearbyGoal, .-BotNearbyGoal
	.comm	qtrue,4,4
	.comm	TFL_DEFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
