	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_ReadRouteCache             ## -- Begin function AAS_ReadRouteCache
	.p2align	4, 0x90
_AAS_ReadRouteCache:                    ## @AAS_ReadRouteCache
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_QPATH@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r15), %esi
	movq	_aasworld@GOTPCREL(%rip), %r15
	movl	40(%r15), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_Com_sprintf
	movq	_botimport@GOTPCREL(%rip), %r12
	movq	_FS_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*16(%r12)
	movl	-52(%rbp), %edx
	movq	_qfalse@GOTPCREL(%rip), %rbx
	testl	%edx, %edx
	je	LBB0_20
## %bb.1:
	leaq	-104(%rbp), %rdi
	movl	$48, %esi
	callq	*8(%r12)
	movq	-104(%rbp), %rax
	movq	_RCID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	-96(%rbp), %rsi
	movq	_RCVERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_4
## %bb.5:
	movl	-88(%rbp), %esi
	cmpl	(%r15), %esi
	jne	LBB0_20
## %bb.6:
	movl	-84(%rbp), %eax
	cmpl	4(%r15), %eax
	jne	LBB0_20
## %bb.7:
	movq	-80(%rbp), %r13
	movq	32(%r15), %rdi
	shll	$2, %esi
	callq	_CRC_ProcessString
	cmpq	%rax, %r13
	jne	LBB0_20
## %bb.8:
	movq	-72(%rbp), %r13
	movq	24(%r15), %rdi
	movl	4(%r15), %esi
	shll	$2, %esi
	callq	_CRC_ProcessString
	cmpq	%rax, %r13
	jne	LBB0_20
## %bb.9:
	cmpl	$0, -64(%rbp)
	jle	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_AAS_Error
	jmp	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, (%rcx,%rdx,8)
	incl	%ebx
	cmpl	-64(%rbp), %ebx
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %edi
	callq	_AAS_ReadCache
	movq	16(%r15), %rcx
	movq	(%rax), %rdx
	movq	(%rcx,%rdx,8), %rsi
	movq	%rsi, 24(%rax)
	movq	$0, 16(%rax)
	movq	(%rcx,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, 16(%rsi)
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_AAS_Error
LBB0_20:
	movl	(%rbx), %eax
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	cmpl	$0, -60(%rbp)
	jle	LBB0_19
## %bb.15:
	xorl	%r13d, %r13d
	jmp	LBB0_16
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, (%rsi,%rax,8)
	incl	%r13d
	cmpl	-60(%rbp), %r13d
	jge	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %edi
	callq	_AAS_ReadCache
	movq	%rax, %rbx
	movq	(%rax), %rsi
	movq	8(%rax), %rdi
	callq	_AAS_ClusterAreaNum
	movq	8(%r15), %rcx
	movq	8(%rbx), %rdx
	movq	(%rcx,%rdx,8), %rsi
	cltq
	movq	(%rsi,%rax,8), %rsi
	movq	%rsi, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	(%rcx,%rdx,8), %rsi
	movq	(%rsi,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, 16(%rdi)
	movq	(%rcx,%rdx,8), %rsi
	jmp	LBB0_18
LBB0_19:
	movl	-52(%rbp), %edi
	callq	*(%r12)
	movq	_qtrue@GOTPCREL(%rip), %rbx
	jmp	LBB0_20
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"maps/%s.rcd"

	.comm	_aasworld,48,3                  ## @aasworld
	.comm	_botimport,24,3                 ## @botimport
	.comm	_FS_READ,4,2                    ## @FS_READ
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_RCID,8,3                       ## @RCID
L_.str.1:                               ## @.str.1
	.asciz	"%s is not a route cache dump\n"

	.comm	_RCVERSION,8,3                  ## @RCVERSION
L_.str.2:                               ## @.str.2
	.asciz	"route cache dump has wrong version %d, should be %d"

	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_ReadRouteCache             ; -- Begin function AAS_ReadRouteCache
	.p2align	2
_AAS_ReadRouteCache:                    ; @AAS_ReadRouteCache
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #64
	mov	x20, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x12, _MAX_QPATH@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAX_QPATH@GOTPAGEOFF]
	ldr	w8, [x12]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	w1, [x12]
Lloh7:
	adrp	x21, _aasworld@GOTPAGE
Lloh8:
	ldr	x21, [x21, _aasworld@GOTPAGEOFF]
	ldr	w3, [x21, #40]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_Com_sprintf
Lloh11:
	adrp	x22, _botimport@GOTPAGE
Lloh12:
	ldr	x22, [x22, _botimport@GOTPAGEOFF]
	ldr	x8, [x22, #16]
Lloh13:
	adrp	x9, _FS_READ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FS_READ@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x9]
	sub	x1, x29, #60
	mov	x0, x19
	blr	x8
	ldur	w2, [x29, #-60]
	cbz	w2, LBB0_14
; %bb.1:
	ldr	x8, [x22, #8]
	sub	x0, x29, #112
	mov	w1, #48
	blr	x8
	ldur	x8, [x29, #-112]
Lloh16:
	adrp	x9, _RCID@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RCID@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	ldur	x8, [x29, #-104]
Lloh19:
	adrp	x9, _RCVERSION@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RCVERSION@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.3:
	ldur	w8, [x29, #-96]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.4:
	ldur	w9, [x29, #-92]
	ldr	w10, [x21, #4]
	cmp	w9, w10
	b.ne	LBB0_14
; %bb.5:
	ldur	x19, [x29, #-88]
	ldr	x0, [x21, #32]
	lsl	w1, w8, #2
	bl	_CRC_ProcessString
	cmp	x19, x0
	b.ne	LBB0_14
; %bb.6:
	ldur	x19, [x29, #-80]
	ldr	x0, [x21, #24]
	ldr	w8, [x21, #4]
	lsl	w1, w8, #2
	bl	_CRC_ProcessString
	cmp	x19, x0
	b.ne	LBB0_14
; %bb.7:
	ldur	w8, [x29, #-72]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.8:
	mov	w19, #0
	b	LBB0_11
LBB0_9:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_AAS_Error
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	str	x0, [x8, x9, lsl #3]
	add	w19, w19, #1
	ldur	w8, [x29, #-72]
	cmp	w19, w8
	b.ge	LBB0_17
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	w0, [x29, #-60]
	bl	_AAS_ReadCache
	ldr	x8, [x21, #16]
	ldr	x9, [x0]
	lsl	x10, x9, #3
	ldr	x11, [x8, x10]
	stp	xzr, x11, [x0, #16]
	ldr	x10, [x8, x10]
	cbz	x10, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	str	x0, [x10, #16]
	b	LBB0_10
LBB0_13:
	stp	x8, x9, [sp, #-16]!
Lloh24:
	adrp	x0, l_.str.2@PAGE
Lloh25:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_AAS_Error
	add	sp, sp, #16
LBB0_14:
Lloh26:
	adrp	x8, _qfalse@GOTPAGE
Lloh27:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	mov	sp, x20
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.16:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldur	w8, [x29, #-68]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.18:
	mov	w23, #0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	sxtw	x8, w0
	str	x19, [x10, x8, lsl #3]
	add	w23, w23, #1
	ldur	w8, [x29, #-68]
	cmp	w23, w8
	b.ge	LBB0_22
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldur	w0, [x29, #-60]
	bl	_AAS_ReadCache
	mov	x19, x0
	ldr	x0, [x0, #8]
	ldr	x1, [x19]
	bl	_AAS_ClusterAreaNum
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x21, #8]
	ldr	x9, [x19, #8]
	lsl	x10, x9, #3
	ldr	x11, [x8, x10]
	sbfiz	x12, x0, #3, #32
	ldr	x11, [x11, x12]
	stp	xzr, x11, [x19, #16]
	ldr	x10, [x8, x10]
	ldr	x11, [x10, x12]
	cbz	x11, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	str	x19, [x11, #16]
	ldr	x10, [x8, x9, lsl #3]
	b	LBB0_19
LBB0_22:
	ldr	x8, [x22]
	ldur	w0, [x29, #-60]
	blr	x8
Lloh31:
	adrp	x8, _qtrue@GOTPAGE
Lloh32:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_15
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"maps/%s.rcd"

	.comm	_aasworld,48,3                  ; @aasworld
	.comm	_botimport,24,3                 ; @botimport
	.comm	_FS_READ,4,2                    ; @FS_READ
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_RCID,8,3                       ; @RCID
l_.str.1:                               ; @.str.1
	.asciz	"%s is not a route cache dump\n"

	.comm	_RCVERSION,8,3                  ; @RCVERSION
l_.str.2:                               ; @.str.2
	.asciz	"route cache dump has wrong version %d, should be %d"

	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
