	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q3_BrushContents               ## -- Begin function Q3_BrushContents
	.p2align	4, 0x90
_Q3_BrushContents:                      ## @Q3_BrushContents
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	movl	(%r15), %r12d
	movl	(%rdi), %r8d
	cmpl	$1, %r8d
	jle	LBB0_1
## %bb.4:
	movl	%r8d, %ecx
	movq	_SURF_HINT@GOTPCREL(%rip), %rdx
	movq	_SURF_SKIP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r9d
	orl	(%rdx), %r9d
	decq	%r8
	cmpl	$2, %ecx
	jne	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	movl	$1, %edi
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_1:
	movq	_CONTENTS_LADDER@GOTPCREL(%rip), %rax
	movq	_CONTENTS_FOG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r12d
LBB0_2:
	movq	_CONTENTS_STRUCTURAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	notl	%r15d
	andl	%r12d, %r15d
	cmovnel	%r12d, %r15d
	movq	_CONTENTS_DONOTENTER@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_19
## %bb.3:
	movl	8(%r14), %esi
	leaq	L_.str.4(%rip), %rdi
	movl	%r15d, %edx
	callq	_Log_Print
	jmp	LBB0_19
LBB0_6:
	movq	%r8, %r11
	andq	$-2, %r11
	negq	%r11
	xorl	%esi, %esi
	movl	$1, %edi
	movl	$1, %r10d
	xorl	%edx, %edx
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rdi,8), %r12d
	movl	8(%r15,%rdi,8), %ecx
	movl	%r12d, %eax
	xorl	%ebx, %eax
	orl	%ebx, %r12d
	movl	%ecx, %ebx
	xorl	%r12d, %ebx
	orl	%eax, %ebx
	cmovnel	%r10d, %edx
	movl	12(%r15,%rdi,8), %eax
	orl	4(%r15,%rdi,8), %eax
	testl	%eax, %r9d
	cmovnel	%r10d, %esi
	orl	%ecx, %r12d
	leaq	(%r11,%rdi), %rax
	addq	$2, %rax
	addq	$2, %rdi
	movl	%r12d, %ebx
	cmpq	$1, %rax
	jne	LBB0_7
LBB0_8:
	testb	$1, %r8b
	je	LBB0_10
## %bb.9:
	movl	(%r15,%rdi,8), %eax
	cmpl	%r12d, %eax
	movl	$1, %ecx
	cmovnel	%ecx, %edx
	testl	%r9d, 4(%r15,%rdi,8)
	cmovnel	%ecx, %esi
	orl	%eax, %r12d
LBB0_10:
	testl	%esi, %esi
	je	LBB0_14
## %bb.11:
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.13:
	leaq	L_.str(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_Log_Write
	movl	%r12d, %edi
	callq	_PrintContents
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_Log_Write
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_Write
	movl	4(%r14), %edi
	callq	_PrintContents
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_Log_Write
	jmp	LBB0_19
LBB0_14:
	movq	_CONTENTS_LADDER@GOTPCREL(%rip), %rax
	movq	_CONTENTS_FOG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r12d
	testl	%edx, %edx
	je	LBB0_2
## %bb.15:
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_Write
	movl	%r12d, %edi
	callq	_PrintContents
	leaq	L_.str.1(%rip), %r15
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_Log_Write
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_Write
	movl	4(%r14), %edi
	callq	_PrintContents
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_Log_Write
	movq	_CONTENTS_DONOTENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r12d, %r15d
	jne	LBB0_19
## %bb.16:
	movq	_CONTENTS_LAVA@GOTPCREL(%rip), %rax
	movq	_CONTENTS_SLIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_CONTENTS_WATER@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	andl	%r12d, %r15d
	jne	LBB0_19
## %bb.17:
	movq	_CONTENTS_PLAYERCLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%r12d, %r15d
	jne	LBB0_19
## %bb.18:
	movq	_CONTENTS_SOLID@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movl	%r12d, %r15d
	jmp	LBB0_19
LBB0_12:
	xorl	%r15d, %r15d
LBB0_19:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SURF_HINT,4,2                  ## @SURF_HINT
	.comm	_SURF_SKIP,4,2                  ## @SURF_SKIP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: hint brush with contents: "

L_.str.1:                               ## @.str.1
	.asciz	"\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"brush contents is: "

	.comm	_CONTENTS_LADDER,4,2            ## @CONTENTS_LADDER
	.comm	_CONTENTS_FOG,4,2               ## @CONTENTS_FOG
L_.str.3:                               ## @.str.3
	.asciz	"Entity %i, Brush %i: mixed face contents "

	.comm	_CONTENTS_DONOTENTER,4,2        ## @CONTENTS_DONOTENTER
	.comm	_CONTENTS_LAVA,4,2              ## @CONTENTS_LAVA
	.comm	_CONTENTS_SLIME,4,2             ## @CONTENTS_SLIME
	.comm	_CONTENTS_WATER,4,2             ## @CONTENTS_WATER
	.comm	_CONTENTS_PLAYERCLIP,4,2        ## @CONTENTS_PLAYERCLIP
	.comm	_CONTENTS_SOLID,4,2             ## @CONTENTS_SOLID
	.comm	_CONTENTS_STRUCTURAL,4,2        ## @CONTENTS_STRUCTURAL
L_.str.4:                               ## @.str.4
	.asciz	"brush %i is a donotenter brush, c = %X\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Q3_BrushContents               ; -- Begin function Q3_BrushContents
	.p2align	2
_Q3_BrushContents:                      ; @Q3_BrushContents
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x11, [x0, #16]
	ldr	w20, [x11]
	ldr	w12, [x0]
	cmp	w12, #1
	b.le	LBB0_7
; %bb.1:
	mov	w9, #0
	mov	w8, #0
Lloh0:
	adrp	x10, _SURF_HINT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SURF_HINT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x13, _SURF_SKIP@GOTPAGE
Lloh4:
	ldr	x13, [x13, _SURF_SKIP@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x13]
	orr	w10, w13, w10
	add	x11, x11, #12
	sub	x12, x12, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w13, w14, [x11, #-4]
	cmp	w13, w20
	csinc	w8, w8, wzr, eq
	tst	w10, w14
	csinc	w9, w9, wzr, eq
	orr	w20, w13, w20
	add	x11, x11, #8
	subs	x12, x12, #1
	b.ne	LBB0_2
; %bb.3:
	cbz	w9, LBB0_11
; %bb.4:
	cbz	w20, LBB0_6
; %bb.5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_Write
	mov	x0, x20
	bl	_PrintContents
Lloh8:
	adrp	x20, l_.str.1@PAGE
Lloh9:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_Log_Write
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Log_Write
	ldr	w0, [x19, #4]
	bl	_PrintContents
	mov	x0, x20
	bl	_Log_Write
LBB0_6:
	mov	w21, #0
	b	LBB0_10
LBB0_7:
Lloh12:
	adrp	x8, _CONTENTS_LADDER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONTENTS_LADDER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _CONTENTS_FOG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CONTENTS_FOG@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w20, w20, w8
LBB0_8:
Lloh18:
	adrp	x8, _CONTENTS_STRUCTURAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CONTENTS_STRUCTURAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bics	wzr, w20, w8
	csel	w21, wzr, w20, eq
Lloh21:
	adrp	x8, _CONTENTS_DONOTENTER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CONTENTS_DONOTENTER@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w1, [x19, #8]
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x2, x21
	bl	_Log_Print
LBB0_10:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_11:
Lloh26:
	adrp	x9, _CONTENTS_LADDER@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CONTENTS_LADDER@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
Lloh29:
	adrp	x10, _CONTENTS_FOG@GOTPAGE
Lloh30:
	ldr	x10, [x10, _CONTENTS_FOG@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w20, w20, w9
	cbz	w8, LBB0_8
; %bb.12:
	ldp	w9, w8, [x19, #8]
	stp	x8, x9, [sp]
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_Log_Write
	mov	x0, x20
	bl	_PrintContents
Lloh34:
	adrp	x21, l_.str.1@PAGE
Lloh35:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_Log_Write
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_Log_Write
	ldr	w0, [x19, #4]
	bl	_PrintContents
	mov	x0, x21
	bl	_Log_Write
Lloh38:
	adrp	x8, _CONTENTS_DONOTENTER@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CONTENTS_DONOTENTER@GOTPAGEOFF]
Lloh40:
	ldr	w21, [x8]
	tst	w21, w20
	b.ne	LBB0_10
; %bb.13:
Lloh41:
	adrp	x8, _CONTENTS_LAVA@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CONTENTS_LAVA@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _CONTENTS_SLIME@GOTPAGE
Lloh45:
	ldr	x9, [x9, _CONTENTS_SLIME@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh47:
	adrp	x9, _CONTENTS_WATER@GOTPAGE
Lloh48:
	ldr	x9, [x9, _CONTENTS_WATER@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ands	w21, w8, w20
	b.ne	LBB0_10
; %bb.14:
Lloh50:
	adrp	x8, _CONTENTS_PLAYERCLIP@GOTPAGE
Lloh51:
	ldr	x8, [x8, _CONTENTS_PLAYERCLIP@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	ands	w21, w8, w20
	b.ne	LBB0_10
; %bb.15:
Lloh53:
	adrp	x8, _CONTENTS_SOLID@GOTPAGE
Lloh54:
	ldr	x8, [x8, _CONTENTS_SOLID@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	and	w21, w8, w20
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_SURF_HINT,4,2                  ; @SURF_HINT
	.comm	_SURF_SKIP,4,2                  ; @SURF_SKIP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: hint brush with contents: "

l_.str.1:                               ; @.str.1
	.asciz	"\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"brush contents is: "

	.comm	_CONTENTS_LADDER,4,2            ; @CONTENTS_LADDER
	.comm	_CONTENTS_FOG,4,2               ; @CONTENTS_FOG
l_.str.3:                               ; @.str.3
	.asciz	"Entity %i, Brush %i: mixed face contents "

	.comm	_CONTENTS_DONOTENTER,4,2        ; @CONTENTS_DONOTENTER
	.comm	_CONTENTS_LAVA,4,2              ; @CONTENTS_LAVA
	.comm	_CONTENTS_SLIME,4,2             ; @CONTENTS_SLIME
	.comm	_CONTENTS_WATER,4,2             ; @CONTENTS_WATER
	.comm	_CONTENTS_PLAYERCLIP,4,2        ; @CONTENTS_PLAYERCLIP
	.comm	_CONTENTS_SOLID,4,2             ; @CONTENTS_SOLID
	.comm	_CONTENTS_STRUCTURAL,4,2        ; @CONTENTS_STRUCTURAL
l_.str.4:                               ; @.str.4
	.asciz	"brush %i is a donotenter brush, c = %X\n"

.subsections_via_symbols
