	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_UpdatePortalRoutingCache   ## -- Begin function AAS_UpdatePortalRoutingCache
	.p2align	4, 0x90
_AAS_UpdatePortalRoutingCache:          ## @AAS_UpdatePortalRoutingCache
	.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	$40, %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), %rdx
	movq	(%rdx), %rcx
	movq	24(%rdx), %rax
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	movq	8(%rdi), %rsi
	movups	(%rdi), %xmm0
	movups	%xmm0, (%rax,%rcx)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movzwl	16(%rdi), %ebx
	movw	%bx, 16(%rax,%rcx)
	movq	48(%rdx), %rdi
	movl	(%rdi,%rsi,4), %esi
	testl	%esi, %esi
	jns	LBB0_2
## %bb.1:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	24(%rdi), %rdi
	negl	%esi
	movw	%bx, (%rdi,%rsi,2)
LBB0_2:
	leaq	(%rax,%rcx), %r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rax,%rcx)
	movq	%r13, %rcx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rax
	movq	_aasworld@GOTPCREL(%rip), %rdx
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rcx
	testq	%rax, %rax
	je	LBB0_28
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	32(%rcx), %rax
	testq	%rax, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	$0, 40(%rax)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r13d, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rcx)
	movq	40(%rdx), %rbx
	movq	(%rcx), %r12
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	32(%rax), %edx
	movq	%r12, %rdi
	callq	_AAS_GetAreaRoutingCache
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r12,2), %rax
	cmpl	$0, (%rbx,%rax,4)
	jle	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rbx,%rax,4), %r11
	xorl	%ebx, %ebx
	movq	_aasworld@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=2
	leaq	(%r14,%r12,8), %r8
	movq	%rdi, (%rax)
	movq	(%r8), %rdi
	movq	%rdi, 8(%r9,%rsi)
	movq	16(%rdx), %rdi
	addw	(%rdi,%r15,2), %cx
	movw	%cx, 16(%r9,%rsi)
	cmpq	$0, 24(%r9,%rsi)
	je	LBB0_25
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rax
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%rbx
	movq	%rax, %r13
	cmpl	(%r11), %ebx
	jge	LBB0_4
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	4(%r11), %rax
	addq	%rbx, %rax
	movq	8(%rdx), %rcx
	movq	32(%rdx), %r14
	movslq	(%rcx,%rax,4), %r15
	leaq	(%r15,%r15,2), %r12
	movq	(%r14,%r12,8), %rsi
	cmpq	8(%r10), %rsi
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	(%r10), %rdi
	movq	%r11, %r13
	callq	_AAS_ClusterAreaNum
	movq	%r13, %r11
	cmpl	8(%r13), %eax
	jge	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	cltq
	movzwl	(%rcx,%rax,2), %ecx
	testw	%cx, %cx
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	addw	16(%r10), %cx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movzwl	(%rax,%r15,2), %edx
	testw	%dx, %dx
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	cmpw	%cx, %dx
	ja	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rax
	movq	_aasworld@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r13, %rax
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	_aasworld@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=2
	movw	%cx, (%rax,%r15,2)
	movq	_aasworld@GOTPCREL(%rip), %rdx
	movq	24(%rdx), %r9
	movq	%r12, %rsi
	shlq	$4, %rsi
	leaq	(%r9,%rsi), %rax
	movq	8(%r14,%r12,8), %rdi
	cmpq	(%r10), %rdi
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	16(%r14,%r12,8), %rdi
	jmp	LBB0_23
LBB0_25:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	$0, 32(%r9,%rsi)
	movq	%r13, 40(%r9,%rsi)
	movq	%rax, %rcx
	testq	%r13, %r13
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rax, 32(%r13)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_12 Depth=2
	leaq	(%r9,%rsi), %rdi
	addq	$24, %rdi
	movq	_qtrue@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, (%rdi)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_11
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,56,3                  ## @aasworld
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_numportalcacheupdates,4,2      ## @numportalcacheupdates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_UpdatePortalRoutingCache   ; -- Begin function AAS_UpdatePortalRoutingCache
	.p2align	2
_AAS_UpdatePortalRoutingCache:          ; @AAS_UpdatePortalRoutingCache
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, _aasworld@GOTPAGE
Lloh1:
	ldr	x22, [x22, _aasworld@GOTPAGEOFF]
	ldr	x8, [x22, #24]
	ldr	x9, [x22]
	mov	w10, #48
	madd	x28, x9, x10, x8
	ldp	x10, x11, [x0]
	stp	x10, x11, [x28]
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldrh	w10, [x0, #16]
	strh	w10, [x28, #16]
	ldr	x12, [x22, #48]
	ldr	w11, [x12, x11, lsl #2]
	tbz	w11, #31, LBB0_2
; %bb.1:
	ldr	x12, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x12, [x12, #24]
	neg	w11, w11
	strh	w10, [x12, w11, uxtw #1]
LBB0_2:
	mov	w10, #48
	madd	x8, x9, x10, x8
	stp	xzr, xzr, [x8, #32]
	mov	w20, #12
	mov	x27, x28
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x28
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, x8
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	mov	x27, x8
	mov	w20, #12
	cbz	x8, LBB0_24
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x27, #32]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x8, #40]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, #0
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh2:
	adrp	x8, _qfalse@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x27, #24]
	ldr	x19, [x22, #40]
	ldp	x21, x1, [x27]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w2, [x8, #32]
	mov	x0, x21
	bl	_AAS_GetAreaRoutingCache
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	madd	x25, x21, x20, x19
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #12
	mov	x23, #0
	madd	x8, x21, x8, x19
	add	x21, x8, #4
	add	x19, x8, #8
	mov	w15, #24
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x11, [x22, #24]
	mov	w14, #48
	madd	x8, x24, x14, x11
	str	x10, [x8]
	ldr	x12, [x20]
	madd	x10, x24, x14, x11
	ldr	x13, [x10, #24]!
	stur	x12, [x10, #-16]
	ldr	x12, [x22, #16]
	ldrh	w12, [x12, x24, lsl #1]
	add	w9, w12, w9
	sturh	w9, [x10, #-8]
	cbz	x13, LBB0_21
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x8, x28
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	w9, [x25]
	add	x23, x23, #1
	mov	x28, x8
	cmp	w23, w9
	b.ge	LBB0_4
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, #8]
	ldrsw	x9, [x21]
	add	x9, x23, x9
	ldrsw	x24, [x8, x9, lsl #2]
	ldr	x26, [x22, #32]
	madd	x20, x24, x15, x26
	ldr	x1, [x20]
	ldr	x8, [x27, #8]
	cmp	x1, x8
	b.eq	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x0, [x27]
	bl	_AAS_ClusterAreaNum
	ldr	w8, [x19]
	cmp	w0, w8
	b.ge	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #24]
	ldrh	w8, [x8, w0, sxtw #1]
	cbz	w8, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	ldrh	w9, [x27, #16]
	add	w9, w9, w8
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #24]
	ldrh	w10, [x8, x24, lsl #1]
	cbz	w10, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=2
	cmp	w10, w9, uxth
	b.hi	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=2
	mov	x8, x28
	mov	w15, #24
	b	LBB0_12
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=2
	strh	w9, [x8, x24, lsl #1]
	mov	w15, #24
	madd	x8, x24, x15, x26
	ldr	x10, [x8, #8]
	ldr	x8, [x27]
	cmp	x10, x8
	b.ne	LBB0_10
; %bb.20:                               ;   in Loop: Header=BB0_13 Depth=2
	madd	x8, x24, x15, x26
	ldr	x10, [x8, #16]
	b	LBB0_10
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=2
	madd	x9, x24, x14, x11
	stp	xzr, x28, [x9, #32]
	mov	x0, x8
	cbz	x28, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=2
	str	x8, [x28, #32]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=2
Lloh5:
	adrp	x9, _qtrue@GOTPAGE
Lloh6:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	x9, [x10]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_12
LBB0_24:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,56,3                  ; @aasworld
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_numportalcacheupdates,4,2      ; @numportalcacheupdates
.subsections_via_symbols
