	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcessWorldModel              ## -- Begin function ProcessWorldModel
	.p2align	4, 0x90
_ProcessWorldModel:                     ## @ProcessWorldModel
	.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
	xorl	%eax, %eax
	callq	_BeginModel
	movq	_entities@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_PatchMapDrawSurfs
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_MakeStructuralBspFaceList
	movq	%rax, %rdi
	callq	_FaceBSP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_MakeTreePortals
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_FilterStructuralBrushesIntoTree
	movq	%rbx, %rdi
	callq	_FloodEntities
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_FillOutside
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ClipSidesIntoTree
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_MakeVisibleBspFaceList
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_FreeTree
	movq	%r15, %rdi
	callq	_FaceBSP
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_MakeTreePortals
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_FilterStructuralBrushesIntoTree
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %r15
	movq	%r15, %rdi
	callq	__printf
	leaq	L_.str.1(%rip), %rdi
	callq	__printf
	movq	%r15, %rdi
	callq	__printf
	movq	%rbx, %rdi
	callq	_LeakFile
	movq	_leaktest@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_17
## %bb.3:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_ClipSidesIntoTree
LBB0_4:
	movq	%rbx, %rdi
	callq	_NumberClusters
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_WritePortalFile
LBB0_6:
	movq	_glview@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_source@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_WriteGLView
LBB0_8:
	movq	%rbx, %rdi
	callq	_FloodAreas
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_FilterDetailBrushesIntoTree
	movq	%rbx, %rdi
	callq	_AddTriangleModels
	movq	_nofog@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_FogDrawSurfs
LBB0_10:
	movq	_nosubdivide@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SubdivideDrawSurfs
LBB0_12:
	movq	_nomerge@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_MergeSides
LBB0_14:
	movq	_notjunc@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_FixTJunctions
LBB0_16:
	movq	%r14, %rdi
	callq	_AllocateLightmaps
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_FilterDrawsurfsIntoTree
	movl	(%rbx), %edi
	callq	_EndModel
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FreeTree                       ## TAILCALL
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
	callq	__printf
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_entities,8,3                   ## @entities
	.comm	_qfalse,4,2                     ## @qfalse
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"**********************\n"

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

	.comm	_leaktest,8,3                   ## @leaktest
L_.str.2:                               ## @.str.2
	.asciz	"--- MAP LEAKED, ABORTING LEAKTEST ---\n"

	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_glview,8,3                     ## @glview
	.comm	_source,4,2                     ## @source
	.comm	_nofog,4,2                      ## @nofog
	.comm	_nosubdivide,4,2                ## @nosubdivide
	.comm	_nomerge,4,2                    ## @nomerge
	.comm	_notjunc,4,2                    ## @notjunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcessWorldModel              ; -- Begin function ProcessWorldModel
	.p2align	2
_ProcessWorldModel:                     ; @ProcessWorldModel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_BeginModel
Lloh0:
	adrp	x21, _entities@GOTPAGE
Lloh1:
	ldr	x21, [x21, _entities@GOTPAGEOFF]
	ldr	x19, [x21]
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_PatchMapDrawSurfs
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_MakeStructuralBspFaceList
	bl	_FaceBSP
	mov	x20, x0
	bl	_MakeTreePortals
	mov	x0, x19
	mov	x1, x20
	bl	_FilterStructuralBrushesIntoTree
	mov	x0, x20
	bl	_FloodEntities
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_FillOutside
	mov	x0, x19
	mov	x1, x20
	bl	_ClipSidesIntoTree
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_MakeVisibleBspFaceList
	mov	x21, x0
	mov	x0, x20
	bl	_FreeTree
	mov	x0, x21
	bl	_FaceBSP
	mov	x20, x0
	bl	_MakeTreePortals
	mov	x0, x19
	mov	x1, x20
	bl	_FilterStructuralBrushesIntoTree
Lloh2:
	adrp	x8, _qfalse@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x21
	bl	__printf
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__printf
	mov	x0, x21
	bl	__printf
	mov	x0, x20
	bl	_LeakFile
Lloh9:
	adrp	x8, _leaktest@GOTPAGE
Lloh10:
	ldr	x8, [x8, _leaktest@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbnz	x8, LBB0_17
; %bb.3:
Lloh12:
	adrp	x8, _qtrue@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ClipSidesIntoTree
LBB0_4:
	mov	x0, x20
	bl	_NumberClusters
	cbnz	w21, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_WritePortalFile
LBB0_6:
Lloh15:
	adrp	x8, _glview@GOTPAGE
Lloh16:
	ldr	x8, [x8, _glview@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _source@GOTPAGE
Lloh19:
	ldr	x8, [x8, _source@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_WriteGLView
LBB0_8:
	mov	x0, x20
	bl	_FloodAreas
	mov	x0, x19
	mov	x1, x20
	bl	_FilterDetailBrushesIntoTree
	mov	x0, x20
	bl	_AddTriangleModels
Lloh21:
	adrp	x8, _nofog@GOTPAGE
Lloh22:
	ldr	x8, [x8, _nofog@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cbnz	w8, LBB0_10
; %bb.9:
	bl	_FogDrawSurfs
LBB0_10:
Lloh24:
	adrp	x8, _nosubdivide@GOTPAGE
Lloh25:
	ldr	x8, [x8, _nosubdivide@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cbnz	w8, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	bl	_SubdivideDrawSurfs
LBB0_12:
Lloh27:
	adrp	x8, _nomerge@GOTPAGE
Lloh28:
	ldr	x8, [x8, _nomerge@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cbnz	w8, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	bl	_MergeSides
LBB0_14:
Lloh30:
	adrp	x8, _notjunc@GOTPAGE
Lloh31:
	ldr	x8, [x8, _notjunc@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cbnz	w8, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_FixTJunctions
LBB0_16:
	mov	x0, x19
	bl	_AllocateLightmaps
	mov	x0, x19
	mov	x1, x20
	bl	_FilterDrawsurfsIntoTree
	ldr	w0, [x20]
	bl	_EndModel
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_FreeTree
LBB0_17:
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__printf
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_entities,8,3                   ; @entities
	.comm	_qfalse,4,2                     ; @qfalse
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"**********************\n"

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

	.comm	_leaktest,8,3                   ; @leaktest
l_.str.2:                               ; @.str.2
	.asciz	"--- MAP LEAKED, ABORTING LEAKTEST ---\n"

	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_glview,8,3                     ; @glview
	.comm	_source,4,2                     ; @source
	.comm	_nofog,4,2                      ; @nofog
	.comm	_nosubdivide,4,2                ; @nosubdivide
	.comm	_nomerge,4,2                    ; @nomerge
	.comm	_notjunc,4,2                    ; @notjunc
.subsections_via_symbols
