	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ParseBrush                     ## -- Begin function ParseBrush
	.p2align	4, 0x90
_ParseBrush:                            ## @ParseBrush
	.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
	xorl	%eax, %eax
	callq	_ParseRawBrush
	movq	_buildBrush@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	movq	$-1, (%rax)
	movq	_num_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	decq	%rax
	movq	%rax, 16(%rdi)
	movq	_entitySourceBrushes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	callq	_RemoveDuplicateBrushPlanes
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rdi
	callq	_SetBrushContents
	movq	_nodetail@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	movq	_CONTENTS_DETAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rdi)
	jne	LBB0_7
LBB0_3:
	movq	_nowater@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	movq	_CONTENTS_LAVA@GOTPCREL(%rip), %rax
	movq	_CONTENTS_SLIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CONTENTS_WATER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ecx, 8(%rdi)
	je	LBB0_5
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_FreeBrush                      ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_FinishBrush                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_buildBrush,8,3                 ## @buildBrush
	.comm	_num_entities,8,3               ## @num_entities
	.comm	_entitySourceBrushes,4,2        ## @entitySourceBrushes
	.comm	_nodetail,8,3                   ## @nodetail
	.comm	_CONTENTS_DETAIL,4,2            ## @CONTENTS_DETAIL
	.comm	_nowater,8,3                    ## @nowater
	.comm	_CONTENTS_LAVA,4,2              ## @CONTENTS_LAVA
	.comm	_CONTENTS_SLIME,4,2             ## @CONTENTS_SLIME
	.comm	_CONTENTS_WATER,4,2             ## @CONTENTS_WATER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ParseBrush                     ; -- Begin function ParseBrush
	.p2align	2
_ParseBrush:                            ; @ParseBrush
	.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
	bl	_ParseRawBrush
Lloh0:
	adrp	x19, _buildBrush@GOTPAGE
Lloh1:
	ldr	x19, [x19, _buildBrush@GOTPAGEOFF]
	ldr	x0, [x19]
	ldr	x8, [x0]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x8]
Lloh2:
	adrp	x8, _num_entities@GOTPAGE
Lloh3:
	ldr	x8, [x8, _num_entities@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	sub	x8, x8, #1
	str	x8, [x0, #16]
Lloh5:
	adrp	x8, _entitySourceBrushes@GOTPAGE
Lloh6:
	ldr	x8, [x8, _entitySourceBrushes@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #12]
	bl	_RemoveDuplicateBrushPlanes
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x0, [x19]
	bl	_SetBrushContents
Lloh8:
	adrp	x8, _nodetail@GOTPAGE
Lloh9:
	ldr	x8, [x8, _nodetail@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x0, [x19]
	ldr	w8, [x0, #8]
Lloh11:
	adrp	x9, _CONTENTS_DETAIL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CONTENTS_DETAIL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _nowater@GOTPAGE
Lloh15:
	ldr	x8, [x8, _nowater@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x0, [x19]
	ldr	w8, [x0, #8]
Lloh17:
	adrp	x9, _CONTENTS_LAVA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CONTENTS_LAVA@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _CONTENTS_SLIME@GOTPAGE
Lloh21:
	ldr	x10, [x10, _CONTENTS_SLIME@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh23:
	adrp	x10, _CONTENTS_WATER@GOTPAGE
Lloh24:
	ldr	x10, [x10, _CONTENTS_WATER@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FreeBrush
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_FinishBrush
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_buildBrush,8,3                 ; @buildBrush
	.comm	_num_entities,8,3               ; @num_entities
	.comm	_entitySourceBrushes,4,2        ; @entitySourceBrushes
	.comm	_nodetail,8,3                   ; @nodetail
	.comm	_CONTENTS_DETAIL,4,2            ; @CONTENTS_DETAIL
	.comm	_nowater,8,3                    ; @nowater
	.comm	_CONTENTS_LAVA,4,2              ; @CONTENTS_LAVA
	.comm	_CONTENTS_SLIME,4,2             ; @CONTENTS_SLIME
	.comm	_CONTENTS_WATER,4,2             ; @CONTENTS_WATER
.subsections_via_symbols
