	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_ParseMapEntity              ## -- Begin function Q2_ParseMapEntity
	.p2align	4, 0x90
_Q2_ParseMapEntity:                     ## @Q2_ParseMapEntity
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-192(%rbp), %rsi
	callq	_PS_ReadToken
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-192(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_Error
LBB0_4:
	movq	_num_entities@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_MAX_MAP_ENTITIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_Error
	movq	(%r13), %rax
LBB0_6:
	movq	_entities@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movq	%rax, %r12
	shlq	$5, %r12
	leaq	(%r15,%r12), %r14
	incq	%rax
	movq	%rax, (%r13)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_nummapbrushes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15,%r12)
	leaq	(%r15,%r12), %rax
	addq	$4, %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	%r15, -208(%rbp)                ## 8-byte Spill
	movq	%r12, -200(%rbp)                ## 8-byte Spill
	movl	$0, 4(%r15,%r12)
	leaq	-192(%rbp), %r15
	leaq	L_.str.4(%rip), %r13
	leaq	L_.str(%rip), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	callq	_PS_UnreadLastToken
	movq	%rbx, %rdi
	callq	_ParseEpair
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	movq	20(%rdx), %rcx
	movq	%rcx, (%rax)
	movq	%rax, 20(%rdx)
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_PS_ReadToken
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_Error
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-192(%rbp), %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-192(%rbp), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	movq	%rbx, %rdi
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rsi
	callq	_Q2_ParseBrush
	jmp	LBB0_7
LBB0_13:
	movq	-208(%rbp), %r15                ## 8-byte Reload
	movq	-200(%rbp), %rbx                ## 8-byte Reload
	movq	16(%r15,%rbx), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_GetVectorForKey
	movq	16(%r15,%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_16
## %bb.14:
	cmpq	$0, 8(%rax)
	jne	LBB0_16
## %bb.15:
	cmpq	$0, 16(%rax)
	je	LBB0_22
LBB0_16:
	movq	-184(%rbp), %rax                ## 8-byte Reload
	cmpl	$0, (%rax)
	jle	LBB0_22
## %bb.17:
	movq	-208(%rbp), %rax                ## 8-byte Reload
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx), %r12
	addq	$16, %r12
	xorl	%ecx, %ecx
	movq	_mapplanes@GOTPCREL(%rip), %rbx
	movq	%r14, -224(%rbp)                ## 8-byte Spill
	movq	%r12, -216(%rbp)                ## 8-byte Spill
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_18 Depth=1
	callq	_MakeBrushWindings
	movq	-232(%rbp), %rcx                ## 8-byte Reload
	incl	%ecx
	movq	-184(%rbp), %rax                ## 8-byte Reload
	cmpl	(%rax), %ecx
	movq	-224(%rbp), %r14                ## 8-byte Reload
	jge	LBB0_22
LBB0_18:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movq	_mapbrushes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r14), %rdx
	movq	%rcx, -232(%rbp)                ## 8-byte Spill
	movslq	%ecx, %rcx
	addq	%rdx, %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %rdi
	cmpl	$0, (%rax,%rcx)
	jle	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	addq	%rcx, %rax
	addq	$8, %rax
	movq	%rax, -240(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movq	%rdi, -248(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_18 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-240(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r14
	movq	(%rbx), %rax
	movq	(%r14,%r15), %rcx
	shlq	$4, %rcx
	movq	%rbx, %r12
	movq	8(%rax,%rcx), %rbx
	movl	(%rax,%rcx), %edi
	movq	-216(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rsi
	callq	_DotProduct
	subq	%rax, %rbx
	movq	(%r12), %rax
	movq	(%r14,%r15), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edi
	movq	%rbx, %rsi
	movq	%r12, %rbx
	movq	-216(%rbp), %r12                ## 8-byte Reload
	callq	_FindFloatPlane
	movq	%rax, (%r14,%r15)
	shlq	$4, %rax
	addq	(%rbx), %rax
	movq	%r14, %rsi
	movq	_brushsides@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rsi
	addq	%r15, %rsi
	sarq	$2, %rsi
	movq	_side_brushtextures@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rsi
	movq	(%r12), %rdx
	movq	%rax, %rdi
	callq	_TexinfoForBrushTexture
	movq	-248(%rbp), %rdi                ## 8-byte Reload
	movl	%eax, 8(%r14,%r15)
	incq	%r13
	movslq	(%rdi), %rax
	addq	$16, %r15
	cmpq	%rax, %r13
	jl	LBB0_20
	jmp	LBB0_21
LBB0_22:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_ValueForKey
	leaq	L_.str.6(%rip), %rdi
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_ValueForKey
	leaq	L_.str.8(%rip), %rdi
	movq	%rax, %rsi
	callq	_strcmp
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_28
## %bb.25:
	movq	-184(%rbp), %rax                ## 8-byte Reload
	cmpl	$1, (%rax)
	je	LBB0_27
## %bb.26:
	movq	_num_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_Error
LBB0_27:
	movq	_mapbrushes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_nummapbrushes@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$4, %rcx
	movq	_CONTENTS_AREAPORTAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -12(%rcx,%rax)
	movq	_c_areaportals@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incl	%ecx
	movl	%ecx, (%rax)
	movq	-208(%rbp), %rdx                ## 8-byte Reload
	movq	-200(%rbp), %rsi                ## 8-byte Reload
	movl	%ecx, 8(%rdx,%rsi)
	movl	(%rax), %edx
	leaq	L_.str.10(%rip), %rsi
	leaq	-176(%rbp), %r15
	movq	%r15, %rdi
	callq	_sprintf
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_SetKeyValue
	movq	%r14, %rdi
	callq	_Q2_MoveBrushesToWorld
	jmp	LBB0_28
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_23:
	movq	%r14, %rdi
	callq	_Q2_MoveBrushesToWorld
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movl	$0, (%rax)
	movl	$1, %ebx
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	movl	%ebx, %eax
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{"

L_.str.1:                               ## @.str.1
	.asciz	"ParseEntity: { not found"

	.comm	_num_entities,8,3               ## @num_entities
	.comm	_MAX_MAP_ENTITIES,8,3           ## @MAX_MAP_ENTITIES
L_.str.2:                               ## @.str.2
	.asciz	"num_entities == MAX_MAP_ENTITIES"

	.comm	_nummapbrushes,4,2              ## @nummapbrushes
	.comm	_nummapbrushsides,4,2           ## @nummapbrushsides
	.comm	_entities,8,3                   ## @entities
L_.str.3:                               ## @.str.3
	.asciz	"ParseEntity: EOF without closing brace"

L_.str.4:                               ## @.str.4
	.asciz	"}"

L_.str.5:                               ## @.str.5
	.asciz	"origin"

	.comm	_mapbrushes,8,3                 ## @mapbrushes
	.comm	_mapplanes,8,3                  ## @mapplanes
	.comm	_side_brushtextures,8,3         ## @side_brushtextures
	.comm	_brushsides,8,3                 ## @brushsides
L_.str.6:                               ## @.str.6
	.asciz	"func_group"

L_.str.7:                               ## @.str.7
	.asciz	"classname"

L_.str.8:                               ## @.str.8
	.asciz	"func_areaportal"

L_.str.9:                               ## @.str.9
	.asciz	"Entity %i: func_areaportal can only be a single brush"

	.comm	_CONTENTS_AREAPORTAL,4,2        ## @CONTENTS_AREAPORTAL
	.comm	_c_areaportals,4,2              ## @c_areaportals
L_.str.10:                              ## @.str.10
	.asciz	"%i"

L_.str.11:                              ## @.str.11
	.asciz	"style"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q2_ParseMapEntity              ; -- Begin function Q2_ParseMapEntity
	.p2align	2
_Q2_ParseMapEntity:                     ; @Q2_ParseMapEntity
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x1, sp, #56
	bl	_PS_ReadToken
	cbz	w0, LBB0_28
; %bb.1:
	ldr	x0, [sp, #56]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Error
LBB0_3:
Lloh7:
	adrp	x21, _num_entities@GOTPAGE
Lloh8:
	ldr	x21, [x21, _num_entities@GOTPAGEOFF]
	ldr	x24, [x21]
Lloh9:
	adrp	x8, _MAX_MAP_ENTITIES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_MAP_ENTITIES@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x24, x8
	b.ne	LBB0_5
; %bb.4:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Error
	ldr	x24, [x21]
LBB0_5:
Lloh14:
	adrp	x8, _entities@GOTPAGE
Lloh15:
	ldr	x8, [x8, _entities@GOTPAGEOFF]
Lloh16:
	ldr	x26, [x8]
	add	x19, x26, x24, lsl #5
	add	x8, x24, #1
	str	x8, [x21]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh17:
	adrp	x8, _nummapbrushes@GOTPAGE
Lloh18:
	ldr	x8, [x8, _nummapbrushes@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mov	x25, x19
	str	w8, [x25], #24
	mov	x8, x19
	str	wzr, [x8, #4]!
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
Lloh20:
	adrp	x21, l_.str.3@PAGE
Lloh21:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh22:
	adrp	x22, l_.str.4@PAGE
Lloh23:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh24:
	adrp	x23, l_.str@PAGE
Lloh25:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_PS_UnreadLastToken
	mov	x0, x20
	bl	_ParseEpair
	ldr	x8, [x25]
	str	x8, [x0]
	str	x0, [x25]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #56
	mov	x0, x20
	bl	_PS_ReadToken
	cbnz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_Error
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #56]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #56]
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_Q2_ParseBrush
	b	LBB0_7
LBB0_12:
	stp	x26, x24, [sp, #8]              ; 16-byte Folded Spill
	add	x21, x26, x24, lsl #5
	ldr	x2, [x21, #16]!
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_GetVectorForKey
	ldr	x8, [x21]
	ldr	x9, [x8]
	cbnz	x9, LBB0_15
; %bb.13:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_15
; %bb.14:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_21
LBB0_15:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.16:
	mov	w10, #0
Lloh28:
	adrp	x27, _mapplanes@GOTPAGE
Lloh29:
	ldr	x27, [x27, _mapplanes@GOTPAGEOFF]
Lloh30:
	adrp	x25, _side_brushtextures@GOTPAGE
Lloh31:
	ldr	x25, [x25, _side_brushtextures@GOTPAGEOFF]
Lloh32:
	adrp	x20, _brushsides@GOTPAGE
Lloh33:
	ldr	x20, [x20, _brushsides@GOTPAGEOFF]
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x28
	bl	_MakeBrushWindings
	ldr	w10, [sp, #44]                  ; 4-byte Folded Reload
	add	w10, w10, #1
	ldp	x19, x8, [sp, #24]              ; 16-byte Folded Reload
	ldr	w8, [x8]
	cmp	w10, w8
	b.ge	LBB0_21
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
Lloh34:
	adrp	x8, _mapbrushes@GOTPAGE
Lloh35:
	ldr	x8, [x8, _mapbrushes@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	w9, [x19]
	str	w10, [sp, #44]                  ; 4-byte Folded Spill
	add	w9, w9, w10
	add	x28, x8, w9, sxtw #4
	ldr	w10, [x28]
	cmp	w10, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x24, #0
	mov	x23, #0
	sxtw	x9, w9
	add	x8, x8, x9, lsl #4
	add	x8, x8, #8
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
LBB0_20:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x19, [x8]
	ldr	x8, [x27]
	add	x22, x19, x24
	ldr	x9, [x22]
	add	x8, x8, x9, lsl #4
	mov	x26, x25
	ldr	x25, [x8, #8]
	ldr	w0, [x8]
	ldr	x1, [x21]
	bl	_DotProduct
	sub	x1, x25, x0
	mov	x25, x26
	ldr	x8, [x27]
	ldr	x9, [x22]
	lsl	x9, x9, #4
	ldr	w0, [x8, x9]
	bl	_FindFloatPlane
	str	x0, [x22]
	ldr	x8, [x27]
	add	x0, x8, x0, lsl #4
	ldr	x8, [x26]
	ldr	x9, [x20]
	sub	x9, x19, x9
	add	x9, x24, x9
	add	x1, x8, x9, asr #2
	ldr	x2, [x21]
	bl	_TexinfoForBrushTexture
	str	w0, [x22, #8]
	add	x23, x23, #1
	ldrsw	x8, [x28]
	add	x24, x24, #16
	cmp	x23, x8
	b.lt	LBB0_20
	b	LBB0_17
LBB0_21:
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_ValueForKey
	mov	x1, x0
Lloh39:
	adrp	x0, l_.str.6@PAGE
Lloh40:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_26
; %bb.22:
Lloh41:
	adrp	x1, l_.str.7@PAGE
Lloh42:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_ValueForKey
	mov	x1, x0
Lloh43:
	adrp	x0, l_.str.8@PAGE
Lloh44:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_27
; %bb.23:
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_25
; %bb.24:
Lloh45:
	adrp	x8, _num_entities@GOTPAGE
Lloh46:
	ldr	x8, [x8, _num_entities@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	sub	x8, x8, #1
	str	x8, [sp]
Lloh48:
	adrp	x0, l_.str.9@PAGE
Lloh49:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_Error
LBB0_25:
Lloh50:
	adrp	x8, _mapbrushes@GOTPAGE
Lloh51:
	ldr	x8, [x8, _mapbrushes@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
Lloh53:
	adrp	x9, _CONTENTS_AREAPORTAL@GOTPAGE
Lloh54:
	ldr	x9, [x9, _CONTENTS_AREAPORTAL@GOTPAGEOFF]
Lloh55:
	adrp	x10, _nummapbrushes@GOTPAGE
Lloh56:
	ldr	x10, [x10, _nummapbrushes@GOTPAGEOFF]
Lloh57:
	ldrsw	x10, [x10]
Lloh58:
	ldr	w9, [x9]
	add	x8, x8, x10, lsl #4
	stur	w9, [x8, #-12]
Lloh59:
	adrp	x8, _c_areaportals@GOTPAGE
Lloh60:
	ldr	x8, [x8, _c_areaportals@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x11, x10, [sp, #8]              ; 16-byte Folded Reload
	add	x10, x11, x10, lsl #5
	str	w9, [x10, #8]
	ldr	w2, [x8]
Lloh61:
	adrp	x1, l_.str.10@PAGE
Lloh62:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x0, sp, #64
	bl	_sprintf
Lloh63:
	adrp	x1, l_.str.11@PAGE
Lloh64:
	add	x1, x1, l_.str.11@PAGEOFF
	add	x2, sp, #64
	mov	x0, x19
	bl	_SetKeyValue
	mov	x0, x19
	bl	_Q2_MoveBrushesToWorld
	b	LBB0_27
LBB0_26:
	mov	x0, x19
	bl	_Q2_MoveBrushesToWorld
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	str	wzr, [x8]
LBB0_27:
	mov	w0, #1
LBB0_28:
	ldur	x8, [x29, #-96]
Lloh65:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh66:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.29:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh58
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{"

l_.str.1:                               ; @.str.1
	.asciz	"ParseEntity: { not found"

	.comm	_num_entities,8,3               ; @num_entities
	.comm	_MAX_MAP_ENTITIES,8,3           ; @MAX_MAP_ENTITIES
l_.str.2:                               ; @.str.2
	.asciz	"num_entities == MAX_MAP_ENTITIES"

	.comm	_nummapbrushes,4,2              ; @nummapbrushes
	.comm	_nummapbrushsides,4,2           ; @nummapbrushsides
	.comm	_entities,8,3                   ; @entities
l_.str.3:                               ; @.str.3
	.asciz	"ParseEntity: EOF without closing brace"

l_.str.4:                               ; @.str.4
	.asciz	"}"

l_.str.5:                               ; @.str.5
	.asciz	"origin"

	.comm	_mapbrushes,8,3                 ; @mapbrushes
	.comm	_mapplanes,8,3                  ; @mapplanes
	.comm	_side_brushtextures,8,3         ; @side_brushtextures
	.comm	_brushsides,8,3                 ; @brushsides
l_.str.6:                               ; @.str.6
	.asciz	"func_group"

l_.str.7:                               ; @.str.7
	.asciz	"classname"

l_.str.8:                               ; @.str.8
	.asciz	"func_areaportal"

l_.str.9:                               ; @.str.9
	.asciz	"Entity %i: func_areaportal can only be a single brush"

	.comm	_CONTENTS_AREAPORTAL,4,2        ; @CONTENTS_AREAPORTAL
	.comm	_c_areaportals,4,2              ; @c_areaportals
l_.str.10:                              ; @.str.10
	.asciz	"%i"

l_.str.11:                              ; @.str.11
	.asciz	"style"

.subsections_via_symbols
