	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_AAS_DumpAASData
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_fseek
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_AAS_Error
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_AAS_Error
	jmp	LBB0_34
LBB0_5:
	leaq	-72(%rbp), %rdi
	movl	$32, %esi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_fread
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.8:
	movq	-72(%rbp), %rdi
	callq	_LittleLong
	movq	%rax, -72(%rbp)
	movq	_AASID@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_9
## %bb.10:
	movq	-64(%rbp), %rdi
	callq	_LittleLong
	movq	%rax, -64(%rbp)
	movq	_AASVERSION_OLD@GOTPCREL(%rip), %rdx
	movq	_AASVERSION@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rax, (%rdx)
	jne	LBB0_11
## %bb.13:
	cmpq	%rax, %rcx
	je	LBB0_14
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
LBB0_7:
	xorl	%r14d, %r14d
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_AAS_Error
LBB0_4:
	movq	%r12, %rdi
	callq	_fclose
LBB0_34:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	cmpq	%rax, %rcx
	jne	LBB0_12
LBB0_14:
	leaq	-64(%rbp), %rdi
	movl	$24, %esi
	callq	_AAS_DData
LBB0_15:
	movq	-56(%rbp), %rdi
	callq	_LittleLong
	movq	_aasworld@GOTPCREL(%rip), %r13
	movq	%rax, 176(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_BBOXES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r14d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	168(%r13), %rcx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 168(%r13)
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_34
## %bb.16:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, (%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_VERTEXES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r13d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	160(%rax), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	_aasworld@GOTPCREL(%rip), %r13
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 160(%r13)
	testq	%rax, %rax
	je	LBB0_34
## %bb.17:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, 4(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_PLANES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r13d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	152(%rax), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	_aasworld@GOTPCREL(%rip), %r13
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 152(%r13)
	testq	%rax, %rax
	je	LBB0_34
## %bb.18:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, 8(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_EDGES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r13d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	144(%rax), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	_aasworld@GOTPCREL(%rip), %r13
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 144(%r13)
	testq	%rax, %rax
	je	LBB0_34
## %bb.19:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, 12(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_EDGEINDEX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r13d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	136(%rax), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	_aasworld@GOTPCREL(%rip), %r13
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 136(%r13)
	testq	%rax, %rax
	je	LBB0_34
## %bb.20:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, 16(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_FACES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r13d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	128(%rax), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	_aasworld@GOTPCREL(%rip), %r13
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 128(%r13)
	testq	%rax, %rax
	je	LBB0_34
## %bb.21:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, 20(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_FACEINDEX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r13d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	120(%rax), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	_aasworld@GOTPCREL(%rip), %r13
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 120(%r13)
	testq	%rax, %rax
	je	LBB0_34
## %bb.22:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, 24(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_AREAS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r13d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	112(%rax), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	_aasworld@GOTPCREL(%rip), %r13
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 112(%r13)
	testq	%rax, %rax
	je	LBB0_34
## %bb.23:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, 28(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_AREASETTINGS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r13d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	104(%rax), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	_aasworld@GOTPCREL(%rip), %r13
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 104(%r13)
	testq	%rax, %rax
	je	LBB0_34
## %bb.24:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, 32(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_REACHABILITY@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r13d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	96(%rax), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	_aasworld@GOTPCREL(%rip), %r13
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 96(%r13)
	testl	%ebx, %ebx
	je	LBB0_26
## %bb.25:
	testq	%rax, %rax
	je	LBB0_34
LBB0_26:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, 36(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_NODES@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r13d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	88(%rax), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	_aasworld@GOTPCREL(%rip), %r13
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 88(%r13)
	testq	%rax, %rax
	je	LBB0_34
## %bb.27:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, 40(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_PORTALS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r13d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	80(%rax), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	_aasworld@GOTPCREL(%rip), %r13
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 80(%r13)
	testl	%ebx, %ebx
	je	LBB0_29
## %bb.28:
	testq	%rax, %rax
	je	LBB0_34
LBB0_29:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, 44(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_PORTALINDEX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	leal	(%rax,%r15), %r13d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	_aasworld@GOTPCREL(%rip), %rax
	movq	72(%rax), %rcx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	_aasworld@GOTPCREL(%rip), %r13
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 72(%r13)
	testl	%ebx, %ebx
	je	LBB0_31
## %bb.30:
	testq	%rax, %rax
	je	LBB0_34
LBB0_31:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movl	%eax, 48(%r13)
	movq	-48(%rbp), %rax
	movq	_AASLUMP_CLUSTERS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rdi
	callq	_LittleLong
	addl	%eax, %r15d
	movq	-48(%rbp), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	callq	_LittleLong
	movq	%rax, %rbx
	movq	64(%r13), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_AAS_LoadAASLump
	movq	%rax, 64(%r13)
	testl	%ebx, %ebx
	je	LBB0_33
## %bb.32:
	testq	%rax, %rax
	je	LBB0_34
LBB0_33:
	movslq	%ebx, %rax
	shrq	$2, %rax
	movq	_aasworld@GOTPCREL(%rip), %rbx
	movl	%eax, 52(%rbx)
	xorl	%eax, %eax
	callq	_AAS_SwapAASData
	movl	$1, 56(%rbx)
	movq	%r12, %rdi
	callq	_fclose
	movl	$1, %r14d
	jmp	LBB0_34
LBB0_12:
	leaq	L_.str.5(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_AAS_Error
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

L_.str.1:                               ## @.str.1
	.asciz	"can't open %s\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.2:                               ## @.str.2
	.asciz	"can't seek to file %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"can't read header of file %s\n"

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

	.comm	_AASVERSION_OLD,8,3             ## @AASVERSION_OLD
	.comm	_AASVERSION,8,3                 ## @AASVERSION
L_.str.5:                               ## @.str.5
	.asciz	"%s is version %i, not %i\n"

	.comm	_aasworld,184,3                 ## @aasworld
	.comm	_AASLUMP_BBOXES,8,3             ## @AASLUMP_BBOXES
	.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
.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, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x1
	mov	x21, x0
	bl	_AAS_DumpAASData
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_fopen
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_fseek
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_32
LBB0_3:
	str	x21, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_AAS_Error
	b	LBB0_33
LBB0_4:
	add	x0, sp, #32
	mov	w1, #32
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.5:
	ldr	x0, [sp, #32]
	bl	_LittleLong
	str	x0, [sp, #32]
Lloh9:
	adrp	x8, _AASID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AASID@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_9
; %bb.6:
	ldr	x0, [sp, #40]
	bl	_LittleLong
Lloh12:
	adrp	x8, _AASVERSION_OLD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AASVERSION_OLD@GOTPAGEOFF]
	str	x0, [sp, #40]
Lloh14:
	ldr	x9, [x8]
Lloh15:
	adrp	x8, _AASVERSION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AASVERSION@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x9, x0
	b.ne	LBB0_10
; %bb.7:
	cmp	x8, x0
	b.eq	LBB0_11
	b	LBB0_12
LBB0_8:
	str	x21, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_32
LBB0_9:
	str	x21, [sp]
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_32
LBB0_10:
	cmp	x8, x0
	b.ne	LBB0_31
LBB0_11:
	add	x8, sp, #32
	add	x0, x8, #8
	mov	w1, #24
	bl	_AAS_DData
LBB0_12:
	ldr	x0, [sp, #48]
	bl	_LittleLong
Lloh22:
	adrp	x23, _aasworld@GOTPAGE
Lloh23:
	ldr	x23, [x23, _aasworld@GOTPAGEOFF]
	str	x0, [x23, #176]
	ldr	x8, [sp, #56]
Lloh24:
	adrp	x21, _AASLUMP_BBOXES@GOTPAGE
Lloh25:
	ldr	x21, [x21, _AASLUMP_BBOXES@GOTPAGEOFF]
	ldr	x9, [x21]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w22, w0, w20
	ldr	x8, [sp, #56]
	ldr	x9, [x21]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x21, x0
	ldr	x3, [x23, #168]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_AAS_LoadAASLump
	str	x0, [x23, #168]
	cbz	x0, LBB0_33
; %bb.13:
	sxtw	x22, w20
	sxtw	x8, w21
	lsr	x8, x8, #2
	str	w8, [x23]
	ldr	x8, [sp, #56]
Lloh26:
	adrp	x20, _AASLUMP_VERTEXES@GOTPAGE
Lloh27:
	ldr	x20, [x20, _AASLUMP_VERTEXES@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #160]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #160]
	cbz	x0, LBB0_33
; %bb.14:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #4]
	ldr	x8, [sp, #56]
Lloh28:
	adrp	x20, _AASLUMP_PLANES@GOTPAGE
Lloh29:
	ldr	x20, [x20, _AASLUMP_PLANES@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #152]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #152]
	cbz	x0, LBB0_33
; %bb.15:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #8]
	ldr	x8, [sp, #56]
Lloh30:
	adrp	x20, _AASLUMP_EDGES@GOTPAGE
Lloh31:
	ldr	x20, [x20, _AASLUMP_EDGES@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #144]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #144]
	cbz	x0, LBB0_33
; %bb.16:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #12]
	ldr	x8, [sp, #56]
Lloh32:
	adrp	x20, _AASLUMP_EDGEINDEX@GOTPAGE
Lloh33:
	ldr	x20, [x20, _AASLUMP_EDGEINDEX@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #136]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #136]
	cbz	x0, LBB0_33
; %bb.17:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #16]
	ldr	x8, [sp, #56]
Lloh34:
	adrp	x20, _AASLUMP_FACES@GOTPAGE
Lloh35:
	ldr	x20, [x20, _AASLUMP_FACES@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #128]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #128]
	cbz	x0, LBB0_33
; %bb.18:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #20]
	ldr	x8, [sp, #56]
Lloh36:
	adrp	x20, _AASLUMP_FACEINDEX@GOTPAGE
Lloh37:
	ldr	x20, [x20, _AASLUMP_FACEINDEX@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #120]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #120]
	cbz	x0, LBB0_33
; %bb.19:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #24]
	ldr	x8, [sp, #56]
Lloh38:
	adrp	x20, _AASLUMP_AREAS@GOTPAGE
Lloh39:
	ldr	x20, [x20, _AASLUMP_AREAS@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #112]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #112]
	cbz	x0, LBB0_33
; %bb.20:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #28]
	ldr	x8, [sp, #56]
Lloh40:
	adrp	x20, _AASLUMP_AREASETTINGS@GOTPAGE
Lloh41:
	ldr	x20, [x20, _AASLUMP_AREASETTINGS@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #104]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #104]
	cbz	x0, LBB0_33
; %bb.21:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #32]
	ldr	x8, [sp, #56]
Lloh42:
	adrp	x20, _AASLUMP_REACHABILITY@GOTPAGE
Lloh43:
	ldr	x20, [x20, _AASLUMP_REACHABILITY@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #96]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #96]
	cbz	w20, LBB0_23
; %bb.22:
	cbz	x0, LBB0_33
LBB0_23:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #36]
	ldr	x8, [sp, #56]
Lloh44:
	adrp	x20, _AASLUMP_NODES@GOTPAGE
Lloh45:
	ldr	x20, [x20, _AASLUMP_NODES@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #88]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #88]
	cbz	x0, LBB0_33
; %bb.24:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #40]
	ldr	x8, [sp, #56]
Lloh46:
	adrp	x20, _AASLUMP_PORTALS@GOTPAGE
Lloh47:
	ldr	x20, [x20, _AASLUMP_PORTALS@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #80]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #80]
	cbz	w20, LBB0_26
; %bb.25:
	cbz	x0, LBB0_33
LBB0_26:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #44]
	ldr	x8, [sp, #56]
Lloh48:
	adrp	x20, _AASLUMP_PORTALINDEX@GOTPAGE
Lloh49:
	ldr	x20, [x20, _AASLUMP_PORTALINDEX@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #72]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #72]
	cbz	w20, LBB0_28
; %bb.27:
	cbz	x0, LBB0_33
LBB0_28:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #48]
	ldr	x8, [sp, #56]
Lloh50:
	adrp	x20, _AASLUMP_CLUSTERS@GOTPAGE
Lloh51:
	ldr	x20, [x20, _AASLUMP_CLUSTERS@GOTPAGEOFF]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	ldr	x0, [x8, x9]
	bl	_LittleLong
	add	w21, w0, w22
	ldr	x8, [sp, #56]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x0, [x8, #8]
	bl	_LittleLong
	mov	x20, x0
	ldr	x3, [x23, #64]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_AAS_LoadAASLump
	str	x0, [x23, #64]
	cbz	w20, LBB0_30
; %bb.29:
	cbz	x0, LBB0_33
LBB0_30:
	sxtw	x8, w20
	lsr	x8, x8, #2
	str	w8, [x23, #52]
	bl	_AAS_SwapAASData
	mov	w20, #1
	str	w20, [x23, #56]
	mov	x0, x19
	bl	_fclose
	b	LBB0_34
LBB0_31:
	stp	x0, x8, [sp, #8]
	str	x21, [sp]
Lloh52:
	adrp	x0, l_.str.5@PAGE
Lloh53:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_32:
	bl	_AAS_Error
	mov	x0, x19
	bl	_fclose
LBB0_33:
	mov	w20, #0
LBB0_34:
	mov	x0, x20
	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
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

l_.str.1:                               ; @.str.1
	.asciz	"can't open %s\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.2:                               ; @.str.2
	.asciz	"can't seek to file %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"can't read header of file %s\n"

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

	.comm	_AASVERSION_OLD,8,3             ; @AASVERSION_OLD
	.comm	_AASVERSION,8,3                 ; @AASVERSION
l_.str.5:                               ; @.str.5
	.asciz	"%s is version %i, not %i\n"

	.comm	_aasworld,184,3                 ; @aasworld
	.comm	_AASLUMP_BBOXES,8,3             ; @AASLUMP_BBOXES
	.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
.subsections_via_symbols
