	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_Create                     ## -- Begin function AAS_Create
	.p2align	4, 0x90
_AAS_Create:                            ## @AAS_Create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_source@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_strcpy
	movl	(%rbx), %edi
	callq	_StripExtension
	xorl	%eax, %eax
	callq	_I_FloatTime
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_ThreadSetDefault
	movq	_entity_num@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	movq	(%rax), %rsi
	addq	%rdi, %rsi
	callq	_ProcessWorldBrushes
	movq	%rax, %rbx
	movq	_cancelconversion@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	jne	LBB0_8
## %bb.1:
	xorl	%eax, %eax
	callq	_I_FloatTime
	subsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	leaq	L_.str(%rip), %rdi
	callq	_Log_Print
	movl	(%rbx), %edi
	callq	_Tree_PruneNodes
	cmpq	$0, (%r15)
	jne	LBB0_8
## %bb.2:
	movq	%rbx, %rdi
	callq	_MakeTreePortals
	cmpq	$0, (%r15)
	je	LBB0_3
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Tree_Free                      ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	callq	_FloodEntities
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	(%rbx), %edi
	callq	_FillOutside
	xorl	%eax, %eax
	callq	_AAS_InitTmpAAS
	movl	(%rbx), %edi
	callq	_AAS_CreateAreas
	movq	_freetree@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_Tree_Free
LBB0_6:
	xorl	%eax, %eax
	callq	_AAS_MergeAreaFaces
	xorl	%eax, %eax
	callq	_AAS_GravitationalSubdivision
	xorl	%eax, %eax
	callq	_AAS_MergeAreaFaces
	xorl	%eax, %eax
	callq	_AAS_RemoveAreaFaceColinearPoints
	xorl	%eax, %eax
	callq	_AAS_MergeAreas
	xorl	%eax, %eax
	callq	_AAS_PruneNodes
	xorl	%eax, %eax
	callq	_AAS_FlipSharedFaces
	xorl	%eax, %eax
	callq	_AAS_RemoveAreaFaceColinearPoints
	xorl	%eax, %eax
	callq	_AAS_MergeAreaFaces
	xorl	%eax, %eax
	callq	_AAS_MergeAreaPlaneFaces
	xorl	%eax, %eax
	callq	_AAS_LadderSubdivision
	xorl	%eax, %eax
	callq	_AAS_MeltAreaFaceWindings
	xorl	%eax, %eax
	callq	_AAS_RemoveTinyFaces
	xorl	%eax, %eax
	callq	_AAS_CreateAreaSettings
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.10:
	movq	%rbx, %rdi
	callq	_Tree_Free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AAS_FreeTmpAAS                 ## TAILCALL
LBB0_9:
	movq	%rbx, %rdi
	callq	_LeakFile
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Error                          ## TAILCALL
LBB0_7:
	movq	%r14, %rdi
	callq	_AAS_StoreFile
	xorl	%eax, %eax
	callq	_AAS_FreeTmpAAS
	xorl	%eax, %eax
	callq	_I_FloatTime
	subsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	leaq	L_.str.2(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Log_Print                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_source,4,2                     ## @source
	.comm	_entity_num,8,3                 ## @entity_num
	.comm	_entities,8,3                   ## @entities
	.comm	_cancelconversion,8,3           ## @cancelconversion
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BSP tree created in %5.0f seconds\n"

L_.str.1:                               ## @.str.1
	.asciz	"**** leaked ****\n"

	.comm	_freetree,8,3                   ## @freetree
L_.str.2:                               ## @.str.2
	.asciz	"\nAAS created in %5.0f seconds\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_Create                     ; -- Begin function AAS_Create
	.p2align	2
_AAS_Create:                            ; @AAS_Create
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
Lloh0:
	adrp	x20, _source@GOTPAGE
Lloh1:
	ldr	x20, [x20, _source@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_strcpy
	ldr	w0, [x20]
	bl	_StripExtension
	bl	_I_FloatTime
	fmov	d8, d0
	bl	_ThreadSetDefault
Lloh2:
	adrp	x8, _entity_num@GOTPAGE
Lloh3:
	ldr	x8, [x8, _entity_num@GOTPAGEOFF]
Lloh4:
	str	xzr, [x8]
Lloh5:
	adrp	x8, _entities@GOTPAGE
Lloh6:
	ldr	x8, [x8, _entities@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldp	x8, x0, [x8]
	add	x1, x8, x0
	bl	_ProcessWorldBrushes
	mov	x20, x0
Lloh8:
	adrp	x21, _cancelconversion@GOTPAGE
Lloh9:
	ldr	x21, [x21, _cancelconversion@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_3
; %bb.1:
	bl	_I_FloatTime
	fsub	d0, d0, d8
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_Print
	ldr	w0, [x20]
	bl	_Tree_PruneNodes
	ldr	x8, [x21]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_MakeTreePortals
	ldr	x8, [x21]
	cbz	x8, LBB0_4
LBB0_3:
	mov	x0, x20
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_Tree_Free
LBB0_4:
	mov	x0, x20
	bl	_FloodEntities
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w0, [x20]
	bl	_FillOutside
	bl	_AAS_InitTmpAAS
	ldr	w0, [x20]
	bl	_AAS_CreateAreas
Lloh12:
	adrp	x8, _freetree@GOTPAGE
Lloh13:
	ldr	x8, [x8, _freetree@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_Tree_Free
LBB0_7:
	bl	_AAS_MergeAreaFaces
	bl	_AAS_GravitationalSubdivision
	bl	_AAS_MergeAreaFaces
	bl	_AAS_RemoveAreaFaceColinearPoints
	bl	_AAS_MergeAreas
	bl	_AAS_PruneNodes
	bl	_AAS_FlipSharedFaces
	bl	_AAS_RemoveAreaFaceColinearPoints
	bl	_AAS_MergeAreaFaces
	bl	_AAS_MergeAreaPlaneFaces
	bl	_AAS_LadderSubdivision
	bl	_AAS_MeltAreaFaceWindings
	bl	_AAS_RemoveTinyFaces
	bl	_AAS_CreateAreaSettings
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_Tree_Free
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_AAS_FreeTmpAAS
LBB0_9:
	mov	x0, x20
	bl	_LeakFile
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_Error
LBB0_10:
	mov	x0, x19
	bl	_AAS_StoreFile
	bl	_AAS_FreeTmpAAS
	bl	_I_FloatTime
	fsub	d0, d0, d8
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_Log_Print
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_source,4,2                     ; @source
	.comm	_entity_num,8,3                 ; @entity_num
	.comm	_entities,8,3                   ; @entities
	.comm	_cancelconversion,8,3           ; @cancelconversion
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BSP tree created in %5.0f seconds\n"

l_.str.1:                               ; @.str.1
	.asciz	"**** leaked ****\n"

	.comm	_freetree,8,3                   ; @freetree
l_.str.2:                               ; @.str.2
	.asciz	"\nAAS created in %5.0f seconds\n"

.subsections_via_symbols
