	.file	"extr_ai_dmq3.c_BotAlternateRoute.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	BotAlternateRoute
	.type	BotAlternateRoute, @function
BotAlternateRoute:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR [rdi]
	test	rdx, rdx
	je	.L2
	cmp	QWORD PTR 8[rdi], 0
	mov	rbx, rdi
	je	.L15
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	ecx, DWORD PTR 16[rdi]
	mov	esi, DWORD PTR 20[rdi]
	mov	edi, DWORD PTR 24[rdi]
	call	trap_AAS_AreaTravelTimeToGoalArea@PLT
	test	eax, eax
	je	.L3
	cmp	eax, 19
	jg	.L3
	xor	eax, eax
	call	FloatTime@PLT
	mov	QWORD PTR 8[rbx], rax
.L3:
	mov	rsi, rbx
	mov	rdi, r12
	mov	edx, 8
	mov	r12, rbx
	call	memcpy@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	BotAlternateRoute, .-BotAlternateRoute
	.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_dmq3.c_BotAlternateRoute.c"
	.text
	.align	2
	.global	BotAlternateRoute
	.syntax unified
	.arm
	.fpu softvfp
	.type	BotAlternateRoute, %function
BotAlternateRoute:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	push	{r4, r5, r6, lr}
	cmp	r2, #0
	mov	r5, r1
	beq	.L2
	ldr	r3, [r0, #4]
	mov	r4, r0
	cmp	r3, #0
	beq	.L12
.L2:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, [r0, #8]
	ldr	r1, [r0, #12]
	ldr	r0, [r0, #16]
	bl	trap_AAS_AreaTravelTimeToGoalArea
	cmp	r0, #19
	movgt	r3, #0
	movle	r3, #1
	cmp	r0, #0
	moveq	r3, #0
	cmp	r3, #0
	bne	.L13
.L3:
	mov	r0, r5
	mov	r5, r4
	mov	r2, #4
	mov	r1, r4
	bl	memcpy
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	bl	FloatTime
	str	r0, [r4, #4]
	b	.L3
	.size	BotAlternateRoute, .-BotAlternateRoute
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
