	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_UpdateAreaRoutingCache     ## -- Begin function AAS_UpdateAreaRoutingCache
	.p2align	4, 0x90
_AAS_UpdateAreaRoutingCache:            ## @AAS_UpdateAreaRoutingCache
	.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	$344, %rsp                      ## imm = 0x158
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rcx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_aasworld@GOTPCREL(%rip), %rdx
	movq	48(%rdx), %rax
	movq	(%rdi), %rdi
	movl	(%rax,%rdi,4), %ebx
	incl	40(%rdx)
	movl	8(%rcx), %eax
	movl	%eax, -316(%rbp)                ## 4-byte Spill
	movq	%rcx, -328(%rbp)                ## 8-byte Spill
	movl	12(%rcx), %esi
	callq	_AAS_ClusterAreaNum
	movl	%ebx, -348(%rbp)                ## 4-byte Spill
	cmpl	%ebx, %eax
	jge	LBB0_31
## %bb.1:
	movl	%eax, %r12d
	notl	-316(%rbp)                      ## 4-byte Folded Spill
	leaq	-304(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_Com_Memset
	movq	_aasworld@GOTPCREL(%rip), %r8
	movq	16(%r8), %rax
	movslq	%r12d, %rcx
	leaq	(%rcx,%rcx,2), %rdx
	shlq	$4, %rdx
	leaq	(%rax,%rdx), %rbx
	movq	-328(%rbp), %rdi                ## 8-byte Reload
	movl	12(%rdi), %esi
	movl	%esi, (%rax,%rdx)
	movq	%r15, 8(%rax,%rdx)
	movzwl	16(%rdi), %esi
	movw	%si, 16(%rax,%rdx)
	movq	24(%rdi), %rdi
	movw	%si, (%rdi,%rcx,2)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rax,%rdx)
	movq	%rbx, %rdx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdx, %rax
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-344(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, %rbx
	movq	%rax, %rdx
	testq	%rcx, %rcx
	je	LBB0_31
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	32(%rbx), %rax
	testq	%rax, %rax
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, 40(%rax)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	32(%r8), %rax
	movslq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %r14
	testq	%r14, %r14
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, -376(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, -336(%rbp)                ## 8-byte Spill
	movq	%rdx, -312(%rbp)                ## 8-byte Spill
	movslq	(%r14), %rbx
	movq	24(%r8), %r12
	movq	%rbx, %r13
	shlq	$4, %r13
	movl	12(%r12,%r13), %edi
	movq	%r8, %r15
	callq	_AAS_TravelFlagForType_inline
	testl	%eax, -316(%rbp)                ## 4-byte Folded Reload
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_12 Depth=2
	movq	-312(%rbp), %rax                ## 8-byte Reload
	movq	%r15, %r8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	8(%r15), %rax
	movq	(%r12,%r13), %rdi
	leaq	(%rdi,%rdi,2), %rcx
	movq	_AREA_DISABLED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r15, %r8
	movq	-312(%rbp), %rax                ## 8-byte Reload
	jmp	LBB0_10
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r12, %r15
	callq	_AAS_AreaContentsTravelFlags_inline
	testl	%eax, -316(%rbp)                ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-312(%rbp), %rax                ## 8-byte Reload
	movq	_aasworld@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-336(%rbp), %r12                ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	8(%r14), %r14
	addq	$2, %r12
	movq	%rax, %rdx
	testq	%r14, %r14
	jne	LBB0_12
	jmp	LBB0_3
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	4(%r14), %esi
	movq	_aasworld@GOTPCREL(%rip), %r8
	movq	8(%r8), %rax
	movslq	%esi, %rcx
	leaq	(%rcx,%rcx,2), %rdx
	movl	4(%rax,%rdx,4), %edi
	testl	%edi, %edi
	movq	-336(%rbp), %r12                ## 8-byte Reload
	jle	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-328(%rbp), %rax                ## 8-byte Reload
	cmpq	%rdi, (%rax)
	je	LBB0_21
	jmp	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-328(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdi
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%rdx, -360(%rbp)                ## 8-byte Spill
	movq	%rcx, -368(%rbp)                ## 8-byte Spill
	movl	%esi, -352(%rbp)                ## 4-byte Spill
	callq	_AAS_ClusterAreaNum
	cmpl	-348(%rbp), %eax                ## 4-byte Folded Reload
	jge	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-376(%rbp), %rdx                ## 8-byte Reload
	movq	8(%rdx), %rcx
	movzwl	(%rcx,%r12), %ecx
	addw	16(%rdx), %cx
	addw	8(%r15,%r13), %cx
	movq	-328(%rbp), %rdx                ## 8-byte Reload
	movq	24(%rdx), %rdx
	cltq
	movzwl	(%rdx,%rax,2), %esi
	testw	%si, %si
	movq	_aasworld@GOTPCREL(%rip), %r8
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpw	%cx, %si
	jbe	LBB0_19
LBB0_26:                                ##   in Loop: Header=BB0_12 Depth=2
	movw	%cx, (%rdx,%rax,2)
	movq	8(%r8), %r9
	movq	-360(%rbp), %rdi                ## 8-byte Reload
	movl	8(%r9,%rdi,4), %edx
	movl	%ebx, %esi
	subl	%edx, %esi
	movq	-328(%rbp), %rdx                ## 8-byte Reload
	movq	32(%rdx), %rdx
	movl	%esi, (%rdx,%rax,4)
	movq	16(%r8), %rdx
	leaq	(%rax,%rax,2), %rsi
	shlq	$4, %rsi
	movl	-352(%rbp), %eax                ## 4-byte Reload
	movl	%eax, (%rdx,%rsi)
	movw	%cx, 16(%rdx,%rsi)
	movq	(%r8), %rax
	movq	-368(%rbp), %rcx                ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movslq	8(%r9,%rdi,4), %rcx
	subq	%rcx, %rbx
	movq	(%rax,%rbx,8), %rax
	movq	%rax, 8(%rdx,%rsi)
	cmpq	$0, 24(%rdx,%rsi)
	je	LBB0_28
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-312(%rbp), %rax                ## 8-byte Reload
	jmp	LBB0_11
LBB0_25:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-312(%rbp), %rax                ## 8-byte Reload
	movq	_aasworld@GOTPCREL(%rip), %r8
	jmp	LBB0_11
LBB0_28:                                ##   in Loop: Header=BB0_12 Depth=2
	leaq	(%rdx,%rsi), %rax
	movq	$0, 32(%rdx,%rsi)
	movq	-312(%rbp), %rdi                ## 8-byte Reload
	movq	%rdi, 40(%rdx,%rsi)
	movq	%rax, %rcx
	testq	%rdi, %rdi
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rax, 32(%rdi)
	movq	-344(%rbp), %rcx                ## 8-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_12 Depth=2
	addq	%rsi, %rdx
	addq	$24, %rdx
	movq	_qtrue@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, (%rdx)
	movq	%rcx, -344(%rbp)                ## 8-byte Spill
	jmp	LBB0_11
LBB0_31:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.32:
	addq	$344, %rsp                      ## imm = 0x158
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,56,3                  ## @aasworld
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_AREA_DISABLED,4,2              ## @AREA_DISABLED
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_numareacacheupdates,4,2        ## @numareacacheupdates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_UpdateAreaRoutingCache     ; -- Begin function AAS_UpdateAreaRoutingCache
	.p2align	2
_AAS_UpdateAreaRoutingCache:            ; @AAS_UpdateAreaRoutingCache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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
	mov	x9, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x21, _aasworld@GOTPAGE
Lloh4:
	ldr	x21, [x21, _aasworld@GOTPAGEOFF]
	ldr	x8, [x21, #48]
	ldr	x0, [x0]
	ldr	w22, [x8, x0, lsl #2]
	ldr	w8, [x21, #40]
	add	w8, w8, #1
	str	w8, [x21, #40]
	ldp	w19, w1, [x9, #8]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	bl	_AAS_ClusterAreaNum
	str	w22, [sp, #4]                   ; 4-byte Folded Spill
	cmp	w0, w22
	b.ge	LBB0_26
; %bb.1:
	mov	x20, x0
	mvn	w23, w19
	add	x19, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #256
	bl	_Com_Memset
	ldr	x8, [x21, #16]
	mov	w9, #48
	smaddl	x24, w20, w9, x8
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x9, #12]
	str	w8, [x24]
	str	x19, [x24, #8]
	ldrh	w8, [x9, #16]
	strh	w8, [x24, #16]
	ldr	x9, [x9, #24]
	strh	w8, [x9, w20, sxtw #1]
	stp	xzr, xzr, [x24, #32]
	mov	w20, #12
	mov	x25, x24
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x25
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x19
	mov	x25, x8
	cbz	x19, LBB0_26
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x19, [x24, #32]
	cbz	x19, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	xzr, [x19, #40]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh5:
	adrp	x8, _qfalse@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x24, #24]
	ldr	x8, [x21, #32]
	ldrsw	x9, [x24]
	ldr	x26, [x8, x9, lsl #3]
	cbz	x26, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x28, [x26]
	ldr	x27, [x21, #24]
	add	x8, x27, x28, lsl #4
	ldr	w0, [x8, #12]
	bl	_AAS_TravelFlagForType_inline
	tst	w0, w23
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	lsl	x8, x28, #4
	ldr	x0, [x27, x8]
	ldr	x8, [x21, #8]
	mul	x9, x0, x20
	ldr	w8, [x8, x9]
Lloh8:
	adrp	x9, _AREA_DISABLED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AREA_DISABLED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	bl	_AAS_AreaContentsTravelFlags_inline
	tst	w0, w23
	b.eq	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x8, x25
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	x26, [x26, #8]
	add	x22, x22, #2
	mov	x25, x8
	cbnz	x26, LBB0_9
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	w9, #12
	ldr	w20, [x26, #4]
	ldr	x8, [x21, #8]
	smaddl	x8, w20, w9, x8
	ldr	w0, [x8, #4]
	cmp	w0, #0
	b.le	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_17
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x0, [x8]
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x1, x20
	bl	_AAS_ClusterAreaNum
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w0, w8
	b.ge	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=2
	ldrh	w8, [x24, #16]
	ldr	x9, [x24, #8]
	ldrh	w9, [x9, x22]
	add	x10, x27, x28, lsl #4
	ldrh	w10, [x10, #8]
	add	w8, w9, w8
	add	w9, w8, w10
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, #24]
	ldrh	w10, [x8, w0, sxtw #1]
	cbz	w10, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w10, w9, uxth
	b.ls	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=2
	sxtw	x12, w20
	sxtw	x10, w0
	strh	w9, [x8, x10, lsl #1]
	ldr	x8, [x21, #8]
	mov	w11, #12
	madd	x13, x12, x11, x8
	ldr	w8, [x13, #8]
	sub	w8, w28, w8
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x11, [x11, #32]
	str	w8, [x11, x10, lsl #2]
	ldr	x11, [x21, #16]
	mov	w14, #48
	madd	x8, x10, x14, x11
	str	w20, [x8]
	strh	w9, [x8, #16]
	ldr	x9, [x21]
	ldr	x9, [x9, x12, lsl #3]
	ldr	w12, [x13, #8]
	sub	w12, w28, w12
	ldr	x9, [x9, w12, sxtw #3]
	str	x9, [x8, #8]
	mov	x9, x8
	ldr	x12, [x9, #24]!
	cbz	x12, LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x8, x25
LBB0_22:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	w20, #12
	b	LBB0_13
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=2
	madd	x10, x10, x14, x11
	stp	xzr, x25, [x10, #32]
	mov	x0, x8
	cbz	x25, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_9 Depth=2
	str	x8, [x25, #32]
	mov	x0, x19
LBB0_25:                                ;   in Loop: Header=BB0_9 Depth=2
Lloh11:
	adrp	x10, _qtrue@GOTPAGE
Lloh12:
	ldr	x10, [x10, _qtrue@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	str	x10, [x9]
	mov	x19, x0
	b	LBB0_22
LBB0_26:
	ldur	x8, [x29, #-96]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,56,3                  ; @aasworld
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_AREA_DISABLED,4,2              ; @AREA_DISABLED
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_numareacacheupdates,4,2        ; @numareacacheupdates
.subsections_via_symbols
