	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResetMapLoading                ## -- Begin function ResetMapLoading
	.p2align	4, 0x90
_ResetMapLoading:                       ## @ResetMapLoading
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_Q2_ResetMapLoading
	xorl	%eax, %eax
	callq	_Sin_ResetMapLoading
	movq	_nummapbrushsides@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movl	$8, %r15d
	xorl	%ebx, %ebx
	movq	_brushsides@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	addq	$16, %r15
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_FreeWinding
	movl	(%r14), %eax
	jmp	LBB0_4
LBB0_5:
	movq	_nummapbrushes@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_mapbrushes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_MAX_MAPFILE_BRUSHES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	$0, (%r14)
	movq	_brushsides@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_MAX_MAPFILE_BRUSHSIDES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_side_brushtextures@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rbx), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_nummapplanes@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_mapplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_MAX_MAPFILE_PLANES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_planehash@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_PLANE_HASHES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$3, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_map_texinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_MAX_MAPFILE_TEXINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_map_numtexinfo@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_map_mins@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VectorClear
	movq	_map_maxs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VectorClear
	movq	_c_boxbevels@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_c_edgebevels@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_c_areaportals@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_c_clipbrushes@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_c_writtenbrushes@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_num_entities@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.6:
	xorl	%r15d, %r15d
	movq	_entities@GOTPCREL(%rip), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_11
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	(%r12), %rcx
	movq	%r15, %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rdi
	movq	16(%rbx), %r13
	callq	_FreeMemory
	movq	(%rbx), %rdi
	callq	_FreeMemory
	movq	%rbx, %rdi
	callq	_FreeMemory
	movq	%r13, %rbx
	testq	%r13, %r13
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_10
LBB0_11:
	movl	$0, (%r14)
	movq	_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_MAX_MAP_ENTITIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nummapbrushsides,4,2           ## @nummapbrushsides
	.comm	_brushsides,8,3                 ## @brushsides
	.comm	_nummapbrushes,8,3              ## @nummapbrushes
	.comm	_mapbrushes,8,3                 ## @mapbrushes
	.comm	_MAX_MAPFILE_BRUSHES,4,2        ## @MAX_MAPFILE_BRUSHES
	.comm	_MAX_MAPFILE_BRUSHSIDES,4,2     ## @MAX_MAPFILE_BRUSHSIDES
	.comm	_side_brushtextures,8,3         ## @side_brushtextures
	.comm	_nummapplanes,8,3               ## @nummapplanes
	.comm	_mapplanes,8,3                  ## @mapplanes
	.comm	_MAX_MAPFILE_PLANES,4,2         ## @MAX_MAPFILE_PLANES
	.comm	_planehash,8,3                  ## @planehash
	.comm	_PLANE_HASHES,4,2               ## @PLANE_HASHES
	.comm	_map_texinfo,8,3                ## @map_texinfo
	.comm	_MAX_MAPFILE_TEXINFO,4,2        ## @MAX_MAPFILE_TEXINFO
	.comm	_map_numtexinfo,8,3             ## @map_numtexinfo
	.comm	_map_mins,4,2                   ## @map_mins
	.comm	_map_maxs,4,2                   ## @map_maxs
	.comm	_c_boxbevels,8,3                ## @c_boxbevels
	.comm	_c_edgebevels,8,3               ## @c_edgebevels
	.comm	_c_areaportals,8,3              ## @c_areaportals
	.comm	_c_clipbrushes,8,3              ## @c_clipbrushes
	.comm	_c_writtenbrushes,8,3           ## @c_writtenbrushes
	.comm	_num_entities,4,2               ## @num_entities
	.comm	_entities,8,3                   ## @entities
	.comm	_MAX_MAP_ENTITIES,4,2           ## @MAX_MAP_ENTITIES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResetMapLoading                ; -- Begin function ResetMapLoading
	.p2align	2
_ResetMapLoading:                       ; @ResetMapLoading
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	bl	_Q2_ResetMapLoading
	bl	_Sin_ResetMapLoading
Lloh0:
	adrp	x19, _nummapbrushsides@GOTPAGE
Lloh1:
	ldr	x19, [x19, _nummapbrushsides@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh2:
	adrp	x20, _brushsides@GOTPAGE
Lloh3:
	ldr	x20, [x20, _brushsides@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	mov	w22, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	add	x22, x22, #16
	cmp	x21, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	ldr	x0, [x9, x22]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_FreeWinding
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
Lloh4:
	adrp	x8, _nummapbrushes@GOTPAGE
Lloh5:
	ldr	x8, [x8, _nummapbrushes@GOTPAGEOFF]
Lloh6:
	adrp	x9, _mapbrushes@GOTPAGE
Lloh7:
	ldr	x9, [x9, _mapbrushes@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
Lloh9:
	ldr	x0, [x9]
Lloh10:
	adrp	x8, _MAX_MAPFILE_BRUSHES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX_MAPFILE_BRUSHES@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	str	wzr, [x19]
	ldr	x0, [x20]
Lloh13:
	adrp	x19, _MAX_MAPFILE_BRUSHSIDES@GOTPAGE
Lloh14:
	ldr	x19, [x19, _MAX_MAPFILE_BRUSHSIDES@GOTPAGEOFF]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
Lloh15:
	adrp	x8, _side_brushtextures@GOTPAGE
Lloh16:
	ldr	x8, [x8, _side_brushtextures@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
Lloh18:
	adrp	x8, _nummapplanes@GOTPAGE
Lloh19:
	ldr	x8, [x8, _nummapplanes@GOTPAGEOFF]
Lloh20:
	adrp	x9, _mapplanes@GOTPAGE
Lloh21:
	ldr	x9, [x9, _mapplanes@GOTPAGEOFF]
Lloh22:
	str	xzr, [x8]
Lloh23:
	ldr	x0, [x9]
Lloh24:
	adrp	x8, _MAX_MAPFILE_PLANES@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAX_MAPFILE_PLANES@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
Lloh27:
	adrp	x8, _planehash@GOTPAGE
Lloh28:
	ldr	x8, [x8, _planehash@GOTPAGEOFF]
Lloh29:
	ldr	x0, [x8]
Lloh30:
	adrp	x8, _PLANE_HASHES@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PLANE_HASHES@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
Lloh33:
	adrp	x8, _map_texinfo@GOTPAGE
Lloh34:
	ldr	x8, [x8, _map_texinfo@GOTPAGEOFF]
Lloh35:
	ldr	x0, [x8]
Lloh36:
	adrp	x8, _MAX_MAPFILE_TEXINFO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MAX_MAPFILE_TEXINFO@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
Lloh39:
	adrp	x8, _map_numtexinfo@GOTPAGE
Lloh40:
	ldr	x8, [x8, _map_numtexinfo@GOTPAGEOFF]
Lloh41:
	str	xzr, [x8]
Lloh42:
	adrp	x8, _map_mins@GOTPAGE
Lloh43:
	ldr	x8, [x8, _map_mins@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_VectorClear
Lloh45:
	adrp	x8, _map_maxs@GOTPAGE
Lloh46:
	ldr	x8, [x8, _map_maxs@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_VectorClear
Lloh48:
	adrp	x8, _c_boxbevels@GOTPAGE
Lloh49:
	ldr	x8, [x8, _c_boxbevels@GOTPAGEOFF]
Lloh50:
	str	xzr, [x8]
Lloh51:
	adrp	x8, _c_edgebevels@GOTPAGE
Lloh52:
	ldr	x8, [x8, _c_edgebevels@GOTPAGEOFF]
Lloh53:
	str	xzr, [x8]
Lloh54:
	adrp	x8, _c_areaportals@GOTPAGE
Lloh55:
	ldr	x8, [x8, _c_areaportals@GOTPAGEOFF]
Lloh56:
	str	xzr, [x8]
Lloh57:
	adrp	x8, _c_clipbrushes@GOTPAGE
Lloh58:
	ldr	x8, [x8, _c_clipbrushes@GOTPAGEOFF]
Lloh59:
	str	xzr, [x8]
Lloh60:
	adrp	x8, _c_writtenbrushes@GOTPAGE
Lloh61:
	ldr	x8, [x8, _c_writtenbrushes@GOTPAGEOFF]
Lloh62:
	str	xzr, [x8]
Lloh63:
	adrp	x20, _num_entities@GOTPAGE
Lloh64:
	ldr	x20, [x20, _num_entities@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh65:
	adrp	x21, _entities@GOTPAGE
Lloh66:
	ldr	x21, [x21, _entities@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.6:
	mov	x22, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_11
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x9, [x21]
	lsl	x10, x22, #4
	ldr	x19, [x9, x10]
	cbz	x19, LBB0_7
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x0, x23, [x19, #8]
	bl	_FreeMemory
	ldr	x0, [x19]
	bl	_FreeMemory
	mov	x0, x19
	bl	_FreeMemory
	mov	x19, x23
	cbnz	x23, LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20]
	b	LBB0_7
LBB0_11:
	str	wzr, [x20]
Lloh67:
	adrp	x8, _MAX_MAP_ENTITIES@GOTPAGE
Lloh68:
	ldr	x8, [x8, _MAX_MAP_ENTITIES@GOTPAGEOFF]
	ldr	x0, [x21]
Lloh69:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memset
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotStr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotStr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotStr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotStr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh8
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_nummapbrushsides,4,2           ; @nummapbrushsides
	.comm	_brushsides,8,3                 ; @brushsides
	.comm	_nummapbrushes,8,3              ; @nummapbrushes
	.comm	_mapbrushes,8,3                 ; @mapbrushes
	.comm	_MAX_MAPFILE_BRUSHES,4,2        ; @MAX_MAPFILE_BRUSHES
	.comm	_MAX_MAPFILE_BRUSHSIDES,4,2     ; @MAX_MAPFILE_BRUSHSIDES
	.comm	_side_brushtextures,8,3         ; @side_brushtextures
	.comm	_nummapplanes,8,3               ; @nummapplanes
	.comm	_mapplanes,8,3                  ; @mapplanes
	.comm	_MAX_MAPFILE_PLANES,4,2         ; @MAX_MAPFILE_PLANES
	.comm	_planehash,8,3                  ; @planehash
	.comm	_PLANE_HASHES,4,2               ; @PLANE_HASHES
	.comm	_map_texinfo,8,3                ; @map_texinfo
	.comm	_MAX_MAPFILE_TEXINFO,4,2        ; @MAX_MAPFILE_TEXINFO
	.comm	_map_numtexinfo,8,3             ; @map_numtexinfo
	.comm	_map_mins,4,2                   ; @map_mins
	.comm	_map_maxs,4,2                   ; @map_maxs
	.comm	_c_boxbevels,8,3                ; @c_boxbevels
	.comm	_c_edgebevels,8,3               ; @c_edgebevels
	.comm	_c_areaportals,8,3              ; @c_areaportals
	.comm	_c_clipbrushes,8,3              ; @c_clipbrushes
	.comm	_c_writtenbrushes,8,3           ; @c_writtenbrushes
	.comm	_num_entities,4,2               ; @num_entities
	.comm	_entities,8,3                   ; @entities
	.comm	_MAX_MAP_ENTITIES,4,2           ; @MAX_MAP_ENTITIES
.subsections_via_symbols
