	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_LoadAASFile                ## -- Begin function AAS_LoadAASFile
	.p2align	4, 0x90
_AAS_LoadAASFile:                       ## @AAS_LoadAASFile
	.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	%rdi, %rbx
	movq	_botimport@GOTPCREL(%rip), %r15
	movq	_PRT_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	*24(%r15)
	xorl	%eax, %eax
	callq	_AAS_DumpAASData
	movq	_FS_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*16(%r15)
	movl	-44(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	leaq	-80(%rbp), %rdi
	movl	$32, %esi
	callq	*8(%r15)
	movl	$32, -48(%rbp)
	movq	-80(%rbp), %rdi
	callq	_LittleLong
	movq	%rax, -80(%rbp)
	movq	_AASID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	-72(%rbp), %rdi
	callq	_LittleLong
	movq	%rax, -72(%rbp)
	movq	_AASVERSION_OLD@GOTPCREL(%rip), %rdx
	movq	_AASVERSION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	jne	LBB0_5
## %bb.7:
	cmpq	%rcx, %rax
	je	LBB0_8
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_AAS_Error
	movq	_BLERR_CANNOTOPENAASFILE@GOTPCREL(%rip), %r13
	jmp	LBB0_41
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_AAS_Error
	movl	-44(%rbp), %edi
	callq	*(%r15)
	movq	_BLERR_WRONGAASFILEID@GOTPCREL(%rip), %r13
	jmp	LBB0_41
LBB0_5:
	cmpq	%rcx, %rax
	jne	LBB0_6
LBB0_8:
	leaq	-72(%rbp), %rdi
	movl	$24, %esi
	callq	_AAS_DData
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	callq	_LibVarGetString
	movl	%eax, %edi
	callq	_atoi
	movq	_aasworld@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	movq	-64(%rbp), %rdi
	callq	_LittleLong
	cmpq	(%r12), %rax
	jne	LBB0_10
## %bb.12:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_BBOXES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 176(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 8(%r12)
	movq	_BLERR_CANNOTREADAASLUMP@GOTPCREL(%rip), %r13
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.13:
	testq	%rax, %rax
	je	LBB0_41
LBB0_14:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_VERTEXES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 168(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 12(%r12)
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.15:
	testq	%rax, %rax
	je	LBB0_41
LBB0_16:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_PLANES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 160(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 16(%r12)
	testl	%ecx, %ecx
	je	LBB0_18
## %bb.17:
	testq	%rax, %rax
	je	LBB0_41
LBB0_18:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_EDGES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 152(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 20(%r12)
	testl	%ecx, %ecx
	je	LBB0_20
## %bb.19:
	testq	%rax, %rax
	je	LBB0_41
LBB0_20:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_EDGEINDEX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 144(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 24(%r12)
	testl	%ecx, %ecx
	je	LBB0_22
## %bb.21:
	testq	%rax, %rax
	je	LBB0_41
LBB0_22:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_FACES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 136(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 28(%r12)
	testl	%ecx, %ecx
	je	LBB0_24
## %bb.23:
	testq	%rax, %rax
	je	LBB0_41
LBB0_24:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_FACEINDEX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 128(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 32(%r12)
	testl	%ecx, %ecx
	je	LBB0_26
## %bb.25:
	testq	%rax, %rax
	je	LBB0_41
LBB0_26:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_AREAS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 120(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 36(%r12)
	testl	%ecx, %ecx
	je	LBB0_28
## %bb.27:
	testq	%rax, %rax
	je	LBB0_41
LBB0_28:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_AREASETTINGS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 112(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 40(%r12)
	testl	%ecx, %ecx
	je	LBB0_30
## %bb.29:
	testq	%rax, %rax
	je	LBB0_41
LBB0_30:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_REACHABILITY@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 104(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 44(%r12)
	testl	%ecx, %ecx
	je	LBB0_32
## %bb.31:
	testq	%rax, %rax
	je	LBB0_41
LBB0_32:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_NODES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 96(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 48(%r12)
	testl	%ecx, %ecx
	je	LBB0_34
## %bb.33:
	testq	%rax, %rax
	je	LBB0_41
LBB0_34:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_PORTALS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 88(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 52(%r12)
	testl	%ecx, %ecx
	je	LBB0_36
## %bb.35:
	testq	%rax, %rax
	je	LBB0_41
LBB0_36:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_PORTALINDEX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 80(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 56(%r12)
	testl	%ecx, %ecx
	je	LBB0_38
## %bb.37:
	testq	%rax, %rax
	je	LBB0_41
LBB0_38:
	movq	-56(%rbp), %rax
	movq	_AASLUMP_CLUSTERS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %r14
	movq	-56(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	$4, %r8d
	callq	_AAS_LoadAASLump
	movq	%rax, 72(%r12)
	movslq	%ebx, %rcx
	shrq	$2, %rcx
	movl	%ecx, 60(%r12)
	testl	%ecx, %ecx
	je	LBB0_40
## %bb.39:
	testq	%rax, %rax
	je	LBB0_41
LBB0_40:
	xorl	%eax, %eax
	callq	_AAS_SwapAASData
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movl	-44(%rbp), %edi
	callq	*(%r15)
	movq	_BLERR_NOERROR@GOTPCREL(%rip), %r13
	jmp	LBB0_41
LBB0_10:
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_AAS_Error
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_AAS_Error
LBB0_11:
	movl	-44(%rbp), %edi
	callq	*(%r15)
	movq	_BLERR_WRONGAASFILEVERSION@GOTPCREL(%rip), %r13
LBB0_41:
	movl	(%r13), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_botimport,32,3                 ## @botimport
	.comm	_PRT_MESSAGE,4,2                ## @PRT_MESSAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trying to load %s\n"

	.comm	_FS_READ,4,2                    ## @FS_READ
L_.str.1:                               ## @.str.1
	.asciz	"can't open %s\n"

	.comm	_BLERR_CANNOTOPENAASFILE,4,2    ## @BLERR_CANNOTOPENAASFILE
	.comm	_AASID,8,3                      ## @AASID
L_.str.2:                               ## @.str.2
	.asciz	"%s is not an AAS file\n"

	.comm	_BLERR_WRONGAASFILEID,4,2       ## @BLERR_WRONGAASFILEID
	.comm	_AASVERSION_OLD,8,3             ## @AASVERSION_OLD
	.comm	_AASVERSION,8,3                 ## @AASVERSION
L_.str.3:                               ## @.str.3
	.asciz	"aas file %s is version %i, not %i\n"

	.comm	_BLERR_WRONGAASFILEVERSION,4,2  ## @BLERR_WRONGAASFILEVERSION
L_.str.4:                               ## @.str.4
	.asciz	"sv_mapChecksum"

	.comm	_aasworld,184,3                 ## @aasworld
L_.str.5:                               ## @.str.5
	.asciz	"aas file %s is out of date\n"

	.comm	_AASLUMP_BBOXES,8,3             ## @AASLUMP_BBOXES
	.comm	_BLERR_CANNOTREADAASLUMP,4,2    ## @BLERR_CANNOTREADAASLUMP
	.comm	_AASLUMP_VERTEXES,8,3           ## @AASLUMP_VERTEXES
	.comm	_AASLUMP_PLANES,8,3             ## @AASLUMP_PLANES
	.comm	_AASLUMP_EDGES,8,3              ## @AASLUMP_EDGES
	.comm	_AASLUMP_EDGEINDEX,8,3          ## @AASLUMP_EDGEINDEX
	.comm	_AASLUMP_FACES,8,3              ## @AASLUMP_FACES
	.comm	_AASLUMP_FACEINDEX,8,3          ## @AASLUMP_FACEINDEX
	.comm	_AASLUMP_AREAS,8,3              ## @AASLUMP_AREAS
	.comm	_AASLUMP_AREASETTINGS,8,3       ## @AASLUMP_AREASETTINGS
	.comm	_AASLUMP_REACHABILITY,8,3       ## @AASLUMP_REACHABILITY
	.comm	_AASLUMP_NODES,8,3              ## @AASLUMP_NODES
	.comm	_AASLUMP_PORTALS,8,3            ## @AASLUMP_PORTALS
	.comm	_AASLUMP_PORTALINDEX,8,3        ## @AASLUMP_PORTALINDEX
	.comm	_AASLUMP_CLUSTERS,8,3           ## @AASLUMP_CLUSTERS
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_BLERR_NOERROR,4,2              ## @BLERR_NOERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_LoadAASFile                ; -- Begin function AAS_LoadAASFile
	.p2align	2
_AAS_LoadAASFile:                       ; @AAS_LoadAASFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _botimport@GOTPAGE
Lloh1:
	ldr	x21, [x21, _botimport@GOTPAGEOFF]
	ldr	x8, [x21, #24]
Lloh2:
	adrp	x9, _PRT_MESSAGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PRT_MESSAGE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	blr	x8
	bl	_AAS_DumpAASData
	ldr	x8, [x21, #16]
Lloh7:
	adrp	x9, _FS_READ@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FS_READ@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x9]
	sub	x1, x29, #36
	mov	x0, x19
	blr	x8
	ldur	w2, [x29, #-36]
	cbz	w2, LBB0_4
; %bb.1:
	ldr	x8, [x21, #8]
	add	x20, sp, #24
	mov	w22, #32
	add	x0, sp, #24
	mov	w1, #32
	blr	x8
	str	w22, [sp, #20]
	ldr	x0, [sp, #24]
	bl	_LittleLong
	str	x0, [sp, #24]
Lloh10:
	adrp	x8, _AASID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AASID@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [sp, #32]
	bl	_LittleLong
Lloh13:
	adrp	x8, _AASVERSION_OLD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AASVERSION_OLD@GOTPAGEOFF]
	str	x0, [sp, #32]
Lloh15:
	ldr	x9, [x8]
Lloh16:
	adrp	x8, _AASVERSION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AASVERSION@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x9
	b.ne	LBB0_6
; %bb.3:
	cmp	x0, x8
	b.eq	LBB0_7
	b	LBB0_8
LBB0_4:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_AAS_Error
Lloh21:
	adrp	x8, _BLERR_CANNOTOPENAASFILE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BLERR_CANNOTOPENAASFILE@GOTPAGEOFF]
	b	LBB0_41
LBB0_5:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_AAS_Error
	ldr	x8, [x21]
	ldur	w0, [x29, #-36]
	blr	x8
Lloh25:
	adrp	x8, _BLERR_WRONGAASFILEID@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BLERR_WRONGAASFILEID@GOTPAGEOFF]
	b	LBB0_41
LBB0_6:
	cmp	x0, x8
	b.ne	LBB0_39
LBB0_7:
	add	x0, x20, #8
	mov	w1, #24
	bl	_AAS_DData
LBB0_8:
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_LibVarGetString
	bl	_atoi
Lloh29:
	adrp	x22, _aasworld@GOTPAGE
Lloh30:
	ldr	x22, [x22, _aasworld@GOTPAGEOFF]
	str	x0, [x22]
	ldr	x0, [sp, #40]
	bl	_LittleLong
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_38
; %bb.9:
	ldr	x8, [sp, #48]
Lloh31:
	adrp	x20, _AASLUMP_BBOXES@GOTPAGE
Lloh32:
	ldr	x20, [x20, _AASLUMP_BBOXES@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #176]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #8]
	cbz	w8, LBB0_11
; %bb.10:
	cbz	x0, LBB0_37
LBB0_11:
	ldr	x8, [sp, #48]
Lloh33:
	adrp	x20, _AASLUMP_VERTEXES@GOTPAGE
Lloh34:
	ldr	x20, [x20, _AASLUMP_VERTEXES@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #168]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #12]
	cbz	w8, LBB0_13
; %bb.12:
	cbz	x0, LBB0_37
LBB0_13:
	ldr	x8, [sp, #48]
Lloh35:
	adrp	x20, _AASLUMP_PLANES@GOTPAGE
Lloh36:
	ldr	x20, [x20, _AASLUMP_PLANES@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #160]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #16]
	cbz	w8, LBB0_15
; %bb.14:
	cbz	x0, LBB0_37
LBB0_15:
	ldr	x8, [sp, #48]
Lloh37:
	adrp	x20, _AASLUMP_EDGES@GOTPAGE
Lloh38:
	ldr	x20, [x20, _AASLUMP_EDGES@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #152]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #20]
	cbz	w8, LBB0_17
; %bb.16:
	cbz	x0, LBB0_37
LBB0_17:
	ldr	x8, [sp, #48]
Lloh39:
	adrp	x20, _AASLUMP_EDGEINDEX@GOTPAGE
Lloh40:
	ldr	x20, [x20, _AASLUMP_EDGEINDEX@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #144]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #24]
	cbz	w8, LBB0_19
; %bb.18:
	cbz	x0, LBB0_37
LBB0_19:
	ldr	x8, [sp, #48]
Lloh41:
	adrp	x20, _AASLUMP_FACES@GOTPAGE
Lloh42:
	ldr	x20, [x20, _AASLUMP_FACES@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #136]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #28]
	cbz	w8, LBB0_21
; %bb.20:
	cbz	x0, LBB0_37
LBB0_21:
	ldr	x8, [sp, #48]
Lloh43:
	adrp	x20, _AASLUMP_FACEINDEX@GOTPAGE
Lloh44:
	ldr	x20, [x20, _AASLUMP_FACEINDEX@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #128]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #32]
	cbz	w8, LBB0_23
; %bb.22:
	cbz	x0, LBB0_37
LBB0_23:
	ldr	x8, [sp, #48]
Lloh45:
	adrp	x20, _AASLUMP_AREAS@GOTPAGE
Lloh46:
	ldr	x20, [x20, _AASLUMP_AREAS@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #120]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #36]
	cbz	w8, LBB0_25
; %bb.24:
	cbz	x0, LBB0_37
LBB0_25:
	ldr	x8, [sp, #48]
Lloh47:
	adrp	x20, _AASLUMP_AREASETTINGS@GOTPAGE
Lloh48:
	ldr	x20, [x20, _AASLUMP_AREASETTINGS@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #112]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #40]
	cbz	w8, LBB0_27
; %bb.26:
	cbz	x0, LBB0_37
LBB0_27:
	ldr	x8, [sp, #48]
Lloh49:
	adrp	x20, _AASLUMP_REACHABILITY@GOTPAGE
Lloh50:
	ldr	x20, [x20, _AASLUMP_REACHABILITY@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #104]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #44]
	cbz	w8, LBB0_29
; %bb.28:
	cbz	x0, LBB0_37
LBB0_29:
	ldr	x8, [sp, #48]
Lloh51:
	adrp	x20, _AASLUMP_NODES@GOTPAGE
Lloh52:
	ldr	x20, [x20, _AASLUMP_NODES@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #96]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #48]
	cbz	w8, LBB0_31
; %bb.30:
	cbz	x0, LBB0_37
LBB0_31:
	ldr	x8, [sp, #48]
Lloh53:
	adrp	x20, _AASLUMP_PORTALS@GOTPAGE
Lloh54:
	ldr	x20, [x20, _AASLUMP_PORTALS@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #88]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #52]
	cbz	w8, LBB0_33
; %bb.32:
	cbz	x0, LBB0_37
LBB0_33:
	ldr	x8, [sp, #48]
Lloh55:
	adrp	x20, _AASLUMP_PORTALINDEX@GOTPAGE
Lloh56:
	ldr	x20, [x20, _AASLUMP_PORTALINDEX@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #80]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #56]
	cbz	w8, LBB0_35
; %bb.34:
	cbz	x0, LBB0_37
LBB0_35:
	ldr	x8, [sp, #48]
Lloh57:
	adrp	x20, _AASLUMP_CLUSTERS@GOTPAGE
Lloh58:
	ldr	x20, [x20, _AASLUMP_CLUSTERS@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	mov	x19, x0
	ldr	x8, [sp, #48]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldur	w0, [x29, #-36]
	add	x3, sp, #20
	mov	x1, x19
	mov	x2, x20
	mov	w4, #4
	bl	_AAS_LoadAASLump
	str	x0, [x22, #72]
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x22, #60]
	cbz	w8, LBB0_42
; %bb.36:
	cbnz	x0, LBB0_42
LBB0_37:
Lloh59:
	adrp	x8, _BLERR_CANNOTREADAASLUMP@GOTPAGE
Lloh60:
	ldr	x8, [x8, _BLERR_CANNOTREADAASLUMP@GOTPAGEOFF]
	b	LBB0_41
LBB0_38:
Lloh61:
	adrp	x0, l_.str.5@PAGE
Lloh62:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_40
LBB0_39:
	stp	x0, x8, [sp]
Lloh63:
	adrp	x0, l_.str.3@PAGE
Lloh64:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_40:
	mov	x1, x19
	bl	_AAS_Error
	ldr	x8, [x21]
	ldur	w0, [x29, #-36]
	blr	x8
Lloh65:
	adrp	x8, _BLERR_WRONGAASFILEVERSION@GOTPAGE
Lloh66:
	ldr	x8, [x8, _BLERR_WRONGAASFILEVERSION@GOTPAGEOFF]
LBB0_41:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_42:
	bl	_AAS_SwapAASData
Lloh67:
	adrp	x8, _qtrue@GOTPAGE
Lloh68:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	str	w8, [x22, #64]
	ldr	x8, [x21]
	ldur	w0, [x29, #-36]
	blr	x8
Lloh70:
	adrp	x8, _BLERR_NOERROR@GOTPAGE
Lloh71:
	ldr	x8, [x8, _BLERR_NOERROR@GOTPAGEOFF]
	b	LBB0_41
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_botimport,32,3                 ; @botimport
	.comm	_PRT_MESSAGE,4,2                ; @PRT_MESSAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trying to load %s\n"

	.comm	_FS_READ,4,2                    ; @FS_READ
l_.str.1:                               ; @.str.1
	.asciz	"can't open %s\n"

	.comm	_BLERR_CANNOTOPENAASFILE,4,2    ; @BLERR_CANNOTOPENAASFILE
	.comm	_AASID,8,3                      ; @AASID
l_.str.2:                               ; @.str.2
	.asciz	"%s is not an AAS file\n"

	.comm	_BLERR_WRONGAASFILEID,4,2       ; @BLERR_WRONGAASFILEID
	.comm	_AASVERSION_OLD,8,3             ; @AASVERSION_OLD
	.comm	_AASVERSION,8,3                 ; @AASVERSION
l_.str.3:                               ; @.str.3
	.asciz	"aas file %s is version %i, not %i\n"

	.comm	_BLERR_WRONGAASFILEVERSION,4,2  ; @BLERR_WRONGAASFILEVERSION
l_.str.4:                               ; @.str.4
	.asciz	"sv_mapChecksum"

	.comm	_aasworld,184,3                 ; @aasworld
l_.str.5:                               ; @.str.5
	.asciz	"aas file %s is out of date\n"

	.comm	_AASLUMP_BBOXES,8,3             ; @AASLUMP_BBOXES
	.comm	_BLERR_CANNOTREADAASLUMP,4,2    ; @BLERR_CANNOTREADAASLUMP
	.comm	_AASLUMP_VERTEXES,8,3           ; @AASLUMP_VERTEXES
	.comm	_AASLUMP_PLANES,8,3             ; @AASLUMP_PLANES
	.comm	_AASLUMP_EDGES,8,3              ; @AASLUMP_EDGES
	.comm	_AASLUMP_EDGEINDEX,8,3          ; @AASLUMP_EDGEINDEX
	.comm	_AASLUMP_FACES,8,3              ; @AASLUMP_FACES
	.comm	_AASLUMP_FACEINDEX,8,3          ; @AASLUMP_FACEINDEX
	.comm	_AASLUMP_AREAS,8,3              ; @AASLUMP_AREAS
	.comm	_AASLUMP_AREASETTINGS,8,3       ; @AASLUMP_AREASETTINGS
	.comm	_AASLUMP_REACHABILITY,8,3       ; @AASLUMP_REACHABILITY
	.comm	_AASLUMP_NODES,8,3              ; @AASLUMP_NODES
	.comm	_AASLUMP_PORTALS,8,3            ; @AASLUMP_PORTALS
	.comm	_AASLUMP_PORTALINDEX,8,3        ; @AASLUMP_PORTALINDEX
	.comm	_AASLUMP_CLUSTERS,8,3           ; @AASLUMP_CLUSTERS
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_BLERR_NOERROR,4,2              ; @BLERR_NOERROR
.subsections_via_symbols
