	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AreaRouteToGoalArea        ## -- Begin function AAS_AreaRouteToGoalArea
	.p2align	4, 0x90
_AAS_AreaRouteToGoalArea:               ## @AAS_AreaRouteToGoalArea
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_aasworld@GOTPCREL(%rip), %rax
	cmpl	$0, 56(%rax)
	je	LBB0_54
## %bb.1:
	movq	%r8, %r13
	movl	%edx, %r12d
	movl	%edi, %ebx
	cmpl	%edx, %edi
	jne	LBB0_4
## %bb.2:
	movl	$1, (%r13)
	movl	$0, (%r9)
LBB0_3:
	movq	_qtrue@GOTPCREL(%rip), %rax
	jmp	LBB0_55
LBB0_4:
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_19
## %bb.5:
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	jle	LBB0_19
## %bb.6:
	testl	%r12d, %r12d
	jle	LBB0_22
## %bb.7:
	cmpl	%r12d, %eax
	jle	LBB0_22
## %bb.8:
	movl	%ecx, %r14d
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_AvailableMemory
	cmpl	$1048575, %eax                  ## imm = 0xFFFFF
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	callq	_AAS_FreeOldestCache
	testl	%eax, %eax
	jne	LBB0_9
LBB0_11:
	movl	%ebx, %edi
	callq	_AAS_AreaDoNotEnter
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movl	%r12d, %edi
	callq	_AAS_AreaDoNotEnter
	testq	%rax, %rax
	je	LBB0_35
LBB0_13:
	movq	_TFL_DONOTENTER@GOTPCREL(%rip), %rax
	movl	%r14d, %edx
	orl	(%rax), %edx
	movq	_aasworld@GOTPCREL(%rip), %rcx
LBB0_14:
	movq	24(%rcx), %rax
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rsi,8), %r14d
	movslq	%r12d, %r15
	movl	(%rax,%r15,8), %edi
	testl	%r14d, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jns	LBB0_24
## %bb.15:
	testl	%edi, %edi
	jle	LBB0_24
## %bb.16:
	movq	40(%rcx), %rcx
	movl	%r14d, %eax
	negl	%eax
	leaq	(%rax,%rax,2), %rsi
	movl	%edi, %ebx
	movl	%edi, %eax
	cmpl	%edi, (%rcx,%rsi,4)
	je	LBB0_28
## %bb.17:
	movl	%edi, %ebx
	movl	%edi, %eax
	cmpl	%edi, 4(%rcx,%rsi,4)
	je	LBB0_28
## %bb.18:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r12d, %esi
	callq	_AAS_GetPortalRoutingCache
	movq	_aasworld@GOTPCREL(%rip), %rcx
	movq	%rax, %r8
	jmp	LBB0_58
LBB0_19:
	movq	_bot_developer@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_54
## %bb.20:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
LBB0_21:
	callq	*(%rax)
LBB0_54:
	movq	_qfalse@GOTPCREL(%rip), %rax
LBB0_55:
	movl	(%rax), %eax
LBB0_56:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_bot_developer@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_54
## %bb.23:
	movq	_botimport@GOTPCREL(%rip), %rax
	movq	_PRT_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	jmp	LBB0_21
LBB0_24:
	movl	%r14d, %ebx
	movl	%edi, %eax
	testl	%r14d, %r14d
	jle	LBB0_28
## %bb.25:
	movl	%r14d, %ebx
	movl	%edi, %eax
	testl	%edi, %edi
	jns	LBB0_28
## %bb.26:
	movq	40(%rcx), %rcx
	movl	%edi, %eax
	negl	%eax
	leaq	(%rax,%rax,2), %rsi
	movl	%r14d, %ebx
	movl	%r14d, %eax
	cmpl	%r14d, (%rcx,%rsi,4)
	je	LBB0_28
## %bb.27:
	movl	%r14d, %ebx
	movl	%r14d, %eax
	cmpl	%r14d, 4(%rcx,%rsi,4)
	jne	LBB0_38
LBB0_28:
	testl	%ebx, %ebx
	jle	LBB0_37
## %bb.29:
	testl	%eax, %eax
	jle	LBB0_37
## %bb.30:
	cmpl	%eax, %ebx
	jne	LBB0_37
## %bb.31:
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_AAS_GetAreaRoutingCache
	movq	%rax, %r14
	movl	%ebx, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_AAS_ClusterAreaNum
	movl	%eax, %ecx
	movq	_aasworld@GOTPCREL(%rip), %rdi
	movq	48(%rdi), %rdx
	movl	%ebx, %eax
	leaq	(%rax,%rax,2), %rsi
	xorl	%eax, %eax
	cmpl	(%rdx,%rsi,4), %ecx
	jge	LBB0_56
## %bb.32:
	movq	(%r14), %rax
	movslq	%ecx, %rcx
	cmpl	$0, (%rax,%rcx,4)
	movq	24(%rdi), %rdx
	je	LBB0_36
## %bb.33:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movslq	4(%rdx,%rsi,8), %rsi
	movq	8(%r14), %rdx
	movslq	(%rdx,%rcx,4), %rdx
	addq	%rsi, %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%edx, (%rsi)
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_59
## %bb.34:
	movq	16(%rdi), %rdi
	movl	(%rax,%rcx,4), %ebx
	movl	(%rdi,%rdx,4), %edx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_AAS_AreaTravelTime
	movzwl	%ax, %eax
	addl	%ebx, %eax
	movl	%eax, (%r13)
	jmp	LBB0_3
LBB0_35:
	movq	_aasworld@GOTPCREL(%rip), %rcx
	movl	%r14d, %edx
	jmp	LBB0_14
LBB0_36:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rdx,%rax,8), %r14d
	movl	(%rdx,%r15,8), %edi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_37:
	testl	%edi, %edi
	jns	LBB0_39
LBB0_38:
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	40(%rax), %rax
	negl	%edi
	leaq	(%rdi,%rdi,2), %rcx
	movl	(%rax,%rcx,4), %edi
LBB0_39:
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r12d, %esi
	callq	_AAS_GetPortalRoutingCache
	movq	%rax, %r8
	testl	%r14d, %r14d
	js	LBB0_57
## %bb.40:
	movq	_aasworld@GOTPCREL(%rip), %rbx
	movq	48(%rbx), %rax
	movl	%r14d, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	$0, 4(%rax,%rcx,4)
	jle	LBB0_54
## %bb.41:
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rcx,4), %r9
	addq	$4, %r9
	movl	$-1, -60(%rbp)                  ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	jmp	LBB0_44
LBB0_42:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	_aasworld@GOTPCREL(%rip), %rbx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
LBB0_43:                                ##   in Loop: Header=BB0_44 Depth=1
	incq	%r13
	cmpl	(%r9), %r13d
	movq	-120(%rbp), %r14                ## 8-byte Reload
	jge	LBB0_52
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movslq	4(%r9), %rcx
	addq	%r13, %rcx
	movslq	(%rax,%rcx,4), %r15
	movq	(%r8), %rax
	cmpl	$0, (%rax,%r15,4)
	je	LBB0_43
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=1
	movq	40(%rbx), %rax
	leaq	(%r15,%r15,2), %rcx
	movl	8(%rax,%rcx,4), %esi
	movl	%r14d, %edi
	callq	_AAS_GetAreaRoutingCache
	movq	%rax, %r12
	movl	%r14d, %edi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_AAS_ClusterAreaNum
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	cmpl	-4(%r9), %eax
	jge	LBB0_42
## %bb.46:                              ##   in Loop: Header=BB0_44 Depth=1
	movq	(%r12), %rcx
	cltq
	movl	(%rcx,%rax,4), %r14d
	testl	%r14d, %r14d
	je	LBB0_42
## %bb.47:                              ##   in Loop: Header=BB0_44 Depth=1
	movl	%ebx, %edi
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	(%r8), %rcx
	addl	(%rcx,%r15,4), %r14d
	movq	_aasworld@GOTPCREL(%rip), %rbx
	movq	32(%rbx), %rcx
	addl	(%rcx,%r15,8), %r14d
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_44 Depth=1
	movq	24(%rbx), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movslq	4(%rcx,%rdx,8), %rcx
	movq	8(%r12), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rcx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	16(%rbx), %rcx
	movl	(%rcx,%rax,4), %edx
	callq	_AAS_AreaTravelTime
	movq	-104(%rbp), %r9                 ## 8-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	movq	_aasworld@GOTPCREL(%rip), %rbx
                                        ## kill: def $ax killed $ax def $eax
	addl	%eax, %r14d
LBB0_49:                                ##   in Loop: Header=BB0_44 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpw	$0, -80(%rbp)                   ## 2-byte Folded Reload
	je	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_44 Depth=1
	cmpw	-80(%rbp), %r14w                ## 2-byte Folded Reload
	jae	LBB0_43
LBB0_51:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r14d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_43
LBB0_52:
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	js	LBB0_54
## %bb.53:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	movzwl	-80(%rbp), %eax                 ## 2-byte Folded Reload
	movl	%eax, (%rcx)
	jmp	LBB0_3
LBB0_57:
	movq	_aasworld@GOTPCREL(%rip), %rcx
LBB0_58:
	movq	(%r8), %rax
	negl	%r14d
	movl	(%rax,%r14,4), %eax
	movl	%eax, (%r13)
	movq	24(%rcx), %rax
	movq	8(%r8), %rcx
	movl	(%rcx,%r14,4), %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	addl	4(%rax,%rdx,8), %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	jmp	LBB0_3
LBB0_59:
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%r13)
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,64,3                  ## @aasworld
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_bot_developer,8,3              ## @bot_developer
	.comm	_botimport,8,3                  ## @botimport
	.comm	_PRT_ERROR,4,2                  ## @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AAS_AreaTravelTimeToGoalArea: areanum %d out of range\n"

L_.str.1:                               ## @.str.1
	.asciz	"AAS_AreaTravelTimeToGoalArea: goalareanum %d out of range\n"

	.comm	_TFL_DONOTENTER,4,2             ## @TFL_DONOTENTER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_AreaRouteToGoalArea        ; -- Begin function AAS_AreaRouteToGoalArea
	.p2align	2
_AAS_AreaRouteToGoalArea:               ; @AAS_AreaRouteToGoalArea
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x27, _aasworld@GOTPAGE
Lloh1:
	ldr	x27, [x27, _aasworld@GOTPAGEOFF]
	ldr	w8, [x27, #56]
	cbz	w8, LBB0_22
; %bb.1:
	mov	x20, x5
	mov	x19, x4
	mov	x25, x2
	mov	x21, x0
	cmp	w0, w2
	b.ne	LBB0_4
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
	str	wzr, [x20]
LBB0_3:
Lloh2:
	adrp	x8, _qtrue@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_23
LBB0_4:
	cmp	w21, #1
	b.lt	LBB0_19
; %bb.5:
	ldr	w8, [x27]
	cmp	w8, w21
	b.le	LBB0_19
; %bb.6:
	cmp	w25, #1
	b.lt	LBB0_25
; %bb.7:
	cmp	w8, w25
	b.le	LBB0_25
; %bb.8:
	mov	x23, x3
	mov	x22, x1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	bl	_AvailableMemory
	cmp	w0, #256, lsl #12               ; =1048576
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_AAS_FreeOldestCache
	cbnz	w0, LBB0_9
LBB0_11:
	mov	x0, x21
	bl	_AAS_AreaDoNotEnter
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	cbnz	x0, LBB0_13
; %bb.12:
	mov	x0, x25
	bl	_AAS_AreaDoNotEnter
	cbz	x0, LBB0_14
LBB0_13:
Lloh4:
	adrp	x8, _TFL_DONOTENTER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TFL_DONOTENTER@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_14:
	ldr	x8, [x27, #24]
	sxtw	x28, w21
	sbfiz	x9, x21, #3, #32
	ldr	w24, [x8, x9]
	sbfiz	x9, x25, #3, #32
	ldr	w0, [x8, x9]
	tbz	w24, #31, LBB0_27
; %bb.15:
	cmp	w0, #1
	b.lt	LBB0_27
; %bb.16:
	ldr	x9, [x27, #40]
	neg	w10, w24
	mov	w8, #12
	umull	x8, w10, w8
	ldr	w11, [x9, x8]
	mov	x26, x0
	mov	x8, x0
	cmp	w11, w0
	b.eq	LBB0_31
; %bb.17:
	mov	w8, #12
	madd	x8, x10, x8, x9
	ldr	w9, [x8, #4]
	mov	x26, x0
	mov	x8, x0
	cmp	w9, w0
	b.eq	LBB0_31
; %bb.18:
	mov	x1, x25
	mov	x2, x23
	bl	_AAS_GetPortalRoutingCache
	mov	x22, x0
	b	LBB0_50
LBB0_19:
Lloh7:
	adrp	x8, _bot_developer@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bot_developer@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.20:
Lloh10:
	adrp	x8, _botimport@GOTPAGE
Lloh11:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _PRT_ERROR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PRT_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x9]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
LBB0_21:
	blr	x8
LBB0_22:
Lloh18:
	adrp	x8, _qfalse@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
LBB0_24:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_25:
Lloh20:
	adrp	x8, _bot_developer@GOTPAGE
Lloh21:
	ldr	x8, [x8, _bot_developer@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.26:
Lloh23:
	adrp	x8, _botimport@GOTPAGE
Lloh24:
	ldr	x8, [x8, _botimport@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _PRT_ERROR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PRT_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x9]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x25
	b	LBB0_21
LBB0_27:
	mov	x26, x24
	mov	x8, x0
	cmp	w24, #1
	b.lt	LBB0_31
; %bb.28:
	mov	x26, x24
	mov	x8, x0
	tbz	w0, #31, LBB0_31
; %bb.29:
	ldr	x9, [x27, #40]
	neg	w10, w0
	mov	w8, #12
	umull	x8, w10, w8
	ldr	w11, [x9, x8]
	mov	x26, x24
	mov	x8, x24
	cmp	w11, w24
	b.eq	LBB0_31
; %bb.30:
	mov	w8, #12
	madd	x8, x10, x8, x9
	ldr	w9, [x8, #4]
	mov	x26, x24
	mov	x8, x24
	cmp	w9, w24
	b.ne	LBB0_33
LBB0_31:
	cmp	w26, #1
	ccmp	w8, #1, #8, ge
	ccmp	w26, w8, #0, ge
	b.eq	LBB0_46
; %bb.32:
	tbz	w0, #31, LBB0_34
LBB0_33:
	ldr	x8, [x27, #40]
	neg	w9, w0
	mov	w10, #12
	umull	x9, w9, w10
	ldr	w0, [x8, x9]
LBB0_34:
	mov	x1, x25
	mov	x2, x23
	bl	_AAS_GetPortalRoutingCache
	mov	x22, x0
	tbnz	w24, #31, LBB0_50
; %bb.35:
	ldr	x8, [x27, #48]
	mov	w9, #12
	umaddl	x10, w24, w9, x8
	ldr	w9, [x10, #4]!
	str	x10, [sp, #56]                  ; 8-byte Folded Spill
	cmp	w9, #1
	b.lt	LBB0_22
; %bb.36:
	str	x28, [sp]                       ; 8-byte Folded Spill
	mov	x28, #0
	str	wzr, [sp, #28]                  ; 4-byte Folded Spill
	str	w24, [sp, #44]                  ; 4-byte Folded Spill
	mov	w9, w24
	mov	w10, #12
	madd	x8, x9, x10, x8
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	add	x8, x8, #8
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	mov	w8, #-1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w25, w24
	b	LBB0_39
LBB0_37:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	w8, [x20]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	str	w24, [sp, #28]                  ; 4-byte Folded Spill
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	add	x28, x28, #1
	cmp	w28, w8
	b.ge	LBB0_51
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27, #8]
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldrsw	x9, [x9]
	add	x9, x28, x9
	ldrsw	x24, [x8, x9, lsl #2]
	ldr	x8, [x22]
	ldr	w8, [x8, x24, lsl #2]
	cbz	w8, LBB0_38
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	x8, [x27, #40]
	mov	w9, #12
	madd	x8, x24, x9, x8
	ldr	w1, [x8, #8]
	mov	x0, x25
	mov	x2, x23
	bl	_AAS_GetAreaRoutingCache
	mov	x26, x0
	mov	x0, x25
	mov	x1, x21
	bl	_AAS_ClusterAreaNum
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_38
; %bb.41:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	x8, [x26]
	ldr	w8, [x8, w0, sxtw #2]
	cbz	w8, LBB0_38
; %bb.42:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	x9, [x22]
	ldr	w9, [x9, x24, lsl #2]
	ldr	x10, [x27, #32]
	ldr	x10, [x10, x24, lsl #3]
	add	w8, w9, w8
	add	w24, w10, w8
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	cbz	x1, LBB0_44
; %bb.43:                               ;   in Loop: Header=BB0_39 Depth=1
	sxtw	x8, w0
	ldp	x10, x9, [x27, #16]
	ldr	x11, [sp]                       ; 8-byte Folded Reload
	add	x9, x9, x11, lsl #3
	ldr	w9, [x9, #4]
	ldr	x11, [x26, #8]
	ldr	w8, [x11, x8, lsl #2]
	add	w8, w8, w9
	str	w8, [x20]
	ldr	w2, [x10, w8, sxtw #2]
	mov	x0, x21
	bl	_AAS_AreaTravelTime
	add	w24, w0, w24
LBB0_44:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	tst	w8, #0xffff
	b.eq	LBB0_37
; %bb.45:                               ;   in Loop: Header=BB0_39 Depth=1
	and	w8, w24, #0xffff
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, w9, uxth
	b.hs	LBB0_38
	b	LBB0_37
LBB0_46:
	mov	x0, x26
	mov	x1, x25
	mov	x2, x23
	bl	_AAS_GetAreaRoutingCache
	mov	x24, x0
	mov	x0, x26
	mov	x1, x21
	bl	_AAS_ClusterAreaNum
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x27, #48]
	mov	w9, #12
	umull	x9, w26, w9
	ldr	w8, [x8, x9]
	cmp	w0, w8
	b.ge	LBB0_53
; %bb.47:
	ldr	x8, [x24]
	ldr	w10, [x8, w0, sxtw #2]
	ldr	x9, [x27, #24]
	cbz	w10, LBB0_54
; %bb.48:
	sxtw	x10, w0
	add	x9, x9, x28, lsl #3
	ldr	w9, [x9, #4]
	ldr	x11, [x24, #8]
	ldr	w11, [x11, x10, lsl #2]
	add	w9, w11, w9
	str	w9, [x20]
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	cbz	x1, LBB0_55
; %bb.49:
	ldr	x11, [x27, #16]
	ldr	w20, [x8, x10, lsl #2]
	ldr	w2, [x11, w9, sxtw #2]
	mov	x0, x21
	bl	_AAS_AreaTravelTime
	add	w8, w20, w0
	b	LBB0_56
LBB0_50:
	neg	w8, w24
	lsl	x8, x8, #2
	ldp	x9, x10, [x22]
	ldr	w9, [x9, x8]
	str	w9, [x19]
	ldr	x9, [x27, #24]
	add	x9, x9, x28, lsl #3
	ldr	w8, [x10, x8]
	ldr	w9, [x9, #4]
	add	w8, w8, w9
	str	w8, [x20]
	b	LBB0_3
LBB0_51:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	tbnz	w8, #31, LBB0_22
; %bb.52:
	str	w8, [x20]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	and	w8, w8, #0xffff
	b	LBB0_56
LBB0_53:
	mov	w0, #0
	b	LBB0_24
LBB0_54:
	sxtw	x8, w25
	lsl	x10, x28, #3
	ldr	w24, [x9, x10]
	lsl	x8, x8, #3
	ldr	w0, [x9, x8]
	tbz	w0, #31, LBB0_34
	b	LBB0_33
LBB0_55:
	ldr	w8, [x8, x10, lsl #2]
LBB0_56:
	str	w8, [x19]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,64,3                  ; @aasworld
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_bot_developer,8,3              ; @bot_developer
	.comm	_botimport,8,3                  ; @botimport
	.comm	_PRT_ERROR,4,2                  ; @PRT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AAS_AreaTravelTimeToGoalArea: areanum %d out of range\n"

l_.str.1:                               ; @.str.1
	.asciz	"AAS_AreaTravelTimeToGoalArea: goalareanum %d out of range\n"

	.comm	_TFL_DONOTENTER,4,2             ; @TFL_DONOTENTER
.subsections_via_symbols
