	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_FreeMaxBSP                  ## -- Begin function Q2_FreeMaxBSP
	.p2align	4, 0x90
_Q2_FreeMaxBSP:                         ## @Q2_FreeMaxBSP
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_nummodels@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dmodels@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_visdatasize@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dvisdata@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_dvis@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_lightdatasize@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dlightdata@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_entdatasize@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dentdata@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numleafs@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dleafs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numplanes@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dplanes@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numvertexes@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dvertexes@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numnodes@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dnodes@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numfaces@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dfaces@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numedges@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dedges@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numleaffaces@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dleaffaces@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numleafbrushes@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dleafbrushes@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numsurfedges@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dsurfedges@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numbrushes@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dbrushes@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numbrushsides@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dbrushsides@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numareas@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dareas@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	movq	_numareaportals@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dareaportals@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	$0, (%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_Log_Print
	movq	_allocatedbspmem@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_PrintMemorySize
	leaq	L_.str.1(%rip), %rdi
	callq	_Log_Print
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nummodels,8,3                  ## @nummodels
	.comm	_dmodels,8,3                    ## @dmodels
	.comm	_visdatasize,8,3                ## @visdatasize
	.comm	_dvisdata,8,3                   ## @dvisdata
	.comm	_dvis,8,3                       ## @dvis
	.comm	_lightdatasize,8,3              ## @lightdatasize
	.comm	_dlightdata,8,3                 ## @dlightdata
	.comm	_entdatasize,8,3                ## @entdatasize
	.comm	_dentdata,8,3                   ## @dentdata
	.comm	_numleafs,8,3                   ## @numleafs
	.comm	_dleafs,8,3                     ## @dleafs
	.comm	_numplanes,8,3                  ## @numplanes
	.comm	_dplanes,8,3                    ## @dplanes
	.comm	_numvertexes,8,3                ## @numvertexes
	.comm	_dvertexes,8,3                  ## @dvertexes
	.comm	_numnodes,8,3                   ## @numnodes
	.comm	_dnodes,8,3                     ## @dnodes
	.comm	_numfaces,8,3                   ## @numfaces
	.comm	_dfaces,8,3                     ## @dfaces
	.comm	_numedges,8,3                   ## @numedges
	.comm	_dedges,8,3                     ## @dedges
	.comm	_numleaffaces,8,3               ## @numleaffaces
	.comm	_dleaffaces,8,3                 ## @dleaffaces
	.comm	_numleafbrushes,8,3             ## @numleafbrushes
	.comm	_dleafbrushes,8,3               ## @dleafbrushes
	.comm	_numsurfedges,8,3               ## @numsurfedges
	.comm	_dsurfedges,8,3                 ## @dsurfedges
	.comm	_numbrushes,8,3                 ## @numbrushes
	.comm	_dbrushes,8,3                   ## @dbrushes
	.comm	_numbrushsides,8,3              ## @numbrushsides
	.comm	_dbrushsides,8,3                ## @dbrushsides
	.comm	_numareas,8,3                   ## @numareas
	.comm	_dareas,8,3                     ## @dareas
	.comm	_numareaportals,8,3             ## @numareaportals
	.comm	_dareaportals,8,3               ## @dareaportals
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"freed "

	.comm	_allocatedbspmem,8,3            ## @allocatedbspmem
L_.str.1:                               ## @.str.1
	.asciz	" of BSP memory\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_FreeMaxBSP                  ; -- Begin function Q2_FreeMaxBSP
	.p2align	2
_Q2_FreeMaxBSP:                         ; @Q2_FreeMaxBSP
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _nummodels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nummodels@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
Lloh3:
	adrp	x19, _dmodels@GOTPAGE
Lloh4:
	ldr	x19, [x19, _dmodels@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh5:
	adrp	x8, _visdatasize@GOTPAGE
Lloh6:
	ldr	x8, [x8, _visdatasize@GOTPAGEOFF]
Lloh7:
	str	xzr, [x8]
Lloh8:
	adrp	x19, _dvisdata@GOTPAGE
Lloh9:
	ldr	x19, [x19, _dvisdata@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh10:
	adrp	x8, _dvis@GOTPAGE
Lloh11:
	ldr	x8, [x8, _dvis@GOTPAGEOFF]
Lloh12:
	str	xzr, [x8]
Lloh13:
	adrp	x8, _lightdatasize@GOTPAGE
Lloh14:
	ldr	x8, [x8, _lightdatasize@GOTPAGEOFF]
Lloh15:
	str	xzr, [x8]
Lloh16:
	adrp	x19, _dlightdata@GOTPAGE
Lloh17:
	ldr	x19, [x19, _dlightdata@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh18:
	adrp	x8, _entdatasize@GOTPAGE
Lloh19:
	ldr	x8, [x8, _entdatasize@GOTPAGEOFF]
Lloh20:
	str	xzr, [x8]
Lloh21:
	adrp	x19, _dentdata@GOTPAGE
Lloh22:
	ldr	x19, [x19, _dentdata@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh23:
	adrp	x8, _numleafs@GOTPAGE
Lloh24:
	ldr	x8, [x8, _numleafs@GOTPAGEOFF]
Lloh25:
	str	xzr, [x8]
Lloh26:
	adrp	x19, _dleafs@GOTPAGE
Lloh27:
	ldr	x19, [x19, _dleafs@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh28:
	adrp	x8, _numplanes@GOTPAGE
Lloh29:
	ldr	x8, [x8, _numplanes@GOTPAGEOFF]
Lloh30:
	str	xzr, [x8]
Lloh31:
	adrp	x19, _dplanes@GOTPAGE
Lloh32:
	ldr	x19, [x19, _dplanes@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh33:
	adrp	x8, _numvertexes@GOTPAGE
Lloh34:
	ldr	x8, [x8, _numvertexes@GOTPAGEOFF]
Lloh35:
	str	xzr, [x8]
Lloh36:
	adrp	x19, _dvertexes@GOTPAGE
Lloh37:
	ldr	x19, [x19, _dvertexes@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh38:
	adrp	x8, _numnodes@GOTPAGE
Lloh39:
	ldr	x8, [x8, _numnodes@GOTPAGEOFF]
Lloh40:
	str	xzr, [x8]
Lloh41:
	adrp	x19, _dnodes@GOTPAGE
Lloh42:
	ldr	x19, [x19, _dnodes@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh43:
	adrp	x8, _numfaces@GOTPAGE
Lloh44:
	ldr	x8, [x8, _numfaces@GOTPAGEOFF]
Lloh45:
	str	xzr, [x8]
Lloh46:
	adrp	x19, _dfaces@GOTPAGE
Lloh47:
	ldr	x19, [x19, _dfaces@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh48:
	adrp	x8, _numedges@GOTPAGE
Lloh49:
	ldr	x8, [x8, _numedges@GOTPAGEOFF]
Lloh50:
	str	xzr, [x8]
Lloh51:
	adrp	x19, _dedges@GOTPAGE
Lloh52:
	ldr	x19, [x19, _dedges@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh53:
	adrp	x8, _numleaffaces@GOTPAGE
Lloh54:
	ldr	x8, [x8, _numleaffaces@GOTPAGEOFF]
Lloh55:
	str	xzr, [x8]
Lloh56:
	adrp	x19, _dleaffaces@GOTPAGE
Lloh57:
	ldr	x19, [x19, _dleaffaces@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh58:
	adrp	x8, _numleafbrushes@GOTPAGE
Lloh59:
	ldr	x8, [x8, _numleafbrushes@GOTPAGEOFF]
Lloh60:
	str	xzr, [x8]
Lloh61:
	adrp	x19, _dleafbrushes@GOTPAGE
Lloh62:
	ldr	x19, [x19, _dleafbrushes@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh63:
	adrp	x8, _numsurfedges@GOTPAGE
Lloh64:
	ldr	x8, [x8, _numsurfedges@GOTPAGEOFF]
Lloh65:
	str	xzr, [x8]
Lloh66:
	adrp	x19, _dsurfedges@GOTPAGE
Lloh67:
	ldr	x19, [x19, _dsurfedges@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh68:
	adrp	x8, _numbrushes@GOTPAGE
Lloh69:
	ldr	x8, [x8, _numbrushes@GOTPAGEOFF]
Lloh70:
	str	xzr, [x8]
Lloh71:
	adrp	x19, _dbrushes@GOTPAGE
Lloh72:
	ldr	x19, [x19, _dbrushes@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh73:
	adrp	x8, _numbrushsides@GOTPAGE
Lloh74:
	ldr	x8, [x8, _numbrushsides@GOTPAGEOFF]
Lloh75:
	str	xzr, [x8]
Lloh76:
	adrp	x19, _dbrushsides@GOTPAGE
Lloh77:
	ldr	x19, [x19, _dbrushsides@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh78:
	adrp	x8, _numareas@GOTPAGE
Lloh79:
	ldr	x8, [x8, _numareas@GOTPAGEOFF]
Lloh80:
	str	xzr, [x8]
Lloh81:
	adrp	x19, _dareas@GOTPAGE
Lloh82:
	ldr	x19, [x19, _dareas@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh83:
	adrp	x8, _numareaportals@GOTPAGE
Lloh84:
	ldr	x8, [x8, _numareaportals@GOTPAGEOFF]
Lloh85:
	str	xzr, [x8]
Lloh86:
	adrp	x19, _dareaportals@GOTPAGE
Lloh87:
	ldr	x19, [x19, _dareaportals@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_FreeMemory
	str	xzr, [x19]
Lloh88:
	adrp	x0, l_.str@PAGE
Lloh89:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_Print
Lloh90:
	adrp	x19, _allocatedbspmem@GOTPAGE
Lloh91:
	ldr	x19, [x19, _allocatedbspmem@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_PrintMemorySize
Lloh92:
	adrp	x0, l_.str.1@PAGE
Lloh93:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Log_Print
	str	xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGotStr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotStr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotStr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotStr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotStr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotStr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGotStr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotStr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_nummodels,8,3                  ; @nummodels
	.comm	_dmodels,8,3                    ; @dmodels
	.comm	_visdatasize,8,3                ; @visdatasize
	.comm	_dvisdata,8,3                   ; @dvisdata
	.comm	_dvis,8,3                       ; @dvis
	.comm	_lightdatasize,8,3              ; @lightdatasize
	.comm	_dlightdata,8,3                 ; @dlightdata
	.comm	_entdatasize,8,3                ; @entdatasize
	.comm	_dentdata,8,3                   ; @dentdata
	.comm	_numleafs,8,3                   ; @numleafs
	.comm	_dleafs,8,3                     ; @dleafs
	.comm	_numplanes,8,3                  ; @numplanes
	.comm	_dplanes,8,3                    ; @dplanes
	.comm	_numvertexes,8,3                ; @numvertexes
	.comm	_dvertexes,8,3                  ; @dvertexes
	.comm	_numnodes,8,3                   ; @numnodes
	.comm	_dnodes,8,3                     ; @dnodes
	.comm	_numfaces,8,3                   ; @numfaces
	.comm	_dfaces,8,3                     ; @dfaces
	.comm	_numedges,8,3                   ; @numedges
	.comm	_dedges,8,3                     ; @dedges
	.comm	_numleaffaces,8,3               ; @numleaffaces
	.comm	_dleaffaces,8,3                 ; @dleaffaces
	.comm	_numleafbrushes,8,3             ; @numleafbrushes
	.comm	_dleafbrushes,8,3               ; @dleafbrushes
	.comm	_numsurfedges,8,3               ; @numsurfedges
	.comm	_dsurfedges,8,3                 ; @dsurfedges
	.comm	_numbrushes,8,3                 ; @numbrushes
	.comm	_dbrushes,8,3                   ; @dbrushes
	.comm	_numbrushsides,8,3              ; @numbrushsides
	.comm	_dbrushsides,8,3                ; @dbrushsides
	.comm	_numareas,8,3                   ; @numareas
	.comm	_dareas,8,3                     ; @dareas
	.comm	_numareaportals,8,3             ; @numareaportals
	.comm	_dareaportals,8,3               ; @dareaportals
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"freed "

	.comm	_allocatedbspmem,8,3            ; @allocatedbspmem
l_.str.1:                               ; @.str.1
	.asciz	" of BSP memory\n"

.subsections_via_symbols
