	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetBrushContents               ## -- Begin function SetBrushContents
	.p2align	4, 0x90
_SetBrushContents:                      ## @SetBrushContents
	.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
	movq	%rdi, %r15
	movq	32(%rdi), %r8
	movl	(%r8), %r13d
	movl	8(%r8), %eax
	movl	%eax, 40(%rdi)
	movq	_qfalse@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rdi), %r9d
	cmpl	$2, %r9d
	jl	LBB0_12
## %bb.1:
	movl	%r9d, %ecx
	movq	_qtrue@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	decq	%r9
	cmpl	$2, %ecx
	jne	LBB0_3
## %bb.2:
	movl	$1, %edi
LBB0_9:
	testb	$1, %r9b
	je	LBB0_12
## %bb.10:
	leaq	(%rdi,%rdi,2), %rcx
	cmpl	$0, 8(%r8,%rcx,4)
	je	LBB0_12
## %bb.11:
	cmpl	%r13d, (%r8,%rcx,4)
	cmovneq	%rdx, %rax
LBB0_12:
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	24(%r15), %edx
	movl	28(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_qprintf
LBB0_14:
	movq	_CONTENTS_DETAIL@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%r13d, %eax
	je	LBB0_17
## %bb.15:
	movq	_CONTENTS_STRUCTURAL@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	_num_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	movq	_entitySourceBrushes@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	callq	__printf
	movl	(%r12), %eax
	movl	%eax, %ecx
	notl	%ecx
	andl	%ecx, %r13d
LBB0_17:
	movq	_fulldetail@GOTPCREL(%rip), %rdx
	movl	%eax, %esi
	xorl	%ecx, %ecx
	cmpq	$1, (%rdx)
	notl	%esi
	sbbl	%ecx, %ecx
	orl	%esi, %ecx
	andl	%r13d, %ecx
	movq	_CONTENTS_TRANSLUCENT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, %ecx
	je	LBB0_19
## %bb.18:
	movq	_CONTENTS_STRUCTURAL@GOTPCREL(%rip), %rsi
	orl	%eax, %r13d
	testl	%ecx, (%rsi)
	cmovel	%r13d, %ecx
LBB0_19:
	testl	%eax, %ecx
	jne	LBB0_20
## %bb.21:
	movq	_c_structural@GOTPCREL(%rip), %rsi
	jmp	LBB0_22
LBB0_20:
	movq	_c_detail@GOTPCREL(%rip), %rsi
LBB0_22:
	incl	(%rsi)
	movq	_qtrue@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, %rdi
	testl	%eax, %ecx
	jne	LBB0_24
## %bb.23:
	movq	(%r14), %rdi
LBB0_24:
	movq	%rdi, 16(%r15)
	testl	%edx, %ecx
	je	LBB0_26
## %bb.25:
	movq	(%r14), %rsi
LBB0_26:
	movq	%rsi, 8(%r15)
	movq	_CONTENTS_AREAPORTAL@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_28
## %bb.27:
	movq	_c_areaportals@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_28:
	movl	%ecx, 4(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	32(%r8), %rcx
	movq	%r9, %rsi
	andq	$-2, %rsi
	negq	%rsi
	movl	$1, %edi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$24, %rcx
	leaq	(%rsi,%rdi), %rbx
	addq	$2, %rbx
	addq	$2, %rdi
	cmpq	$1, %rbx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -12(%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r13d, -20(%rcx)
	cmovneq	%rdx, %rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, (%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r13d, -8(%rcx)
	cmovneq	%rdx, %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_qtrue,8,3                      ## @qtrue
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entity %i, Brush %i: mixed face contents\n"

	.comm	_CONTENTS_DETAIL,4,2            ## @CONTENTS_DETAIL
	.comm	_CONTENTS_STRUCTURAL,4,2        ## @CONTENTS_STRUCTURAL
L_.str.1:                               ## @.str.1
	.asciz	"Entity %i, Brush %i: mixed CONTENTS_DETAIL and CONTENTS_STRUCTURAL\n"

	.comm	_num_entities,8,3               ## @num_entities
	.comm	_entitySourceBrushes,4,2        ## @entitySourceBrushes
	.comm	_fulldetail,8,3                 ## @fulldetail
	.comm	_CONTENTS_TRANSLUCENT,4,2       ## @CONTENTS_TRANSLUCENT
	.comm	_c_detail,4,2                   ## @c_detail
	.comm	_c_structural,4,2               ## @c_structural
	.comm	_CONTENTS_AREAPORTAL,4,2        ## @CONTENTS_AREAPORTAL
	.comm	_c_areaportals,4,2              ## @c_areaportals
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetBrushContents               ; -- Begin function SetBrushContents
	.p2align	2
_SetBrushContents:                      ; @SetBrushContents
	.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
	mov	x19, x0
	ldr	x10, [x0, #32]
	ldr	w22, [x10]
	ldr	w8, [x10, #8]
Lloh0:
	adrp	x20, _qfalse@GOTPAGE
Lloh1:
	ldr	x20, [x20, _qfalse@GOTPAGEOFF]
	str	w8, [x0, #40]
	ldr	x8, [x20]
	ldr	w11, [x0]
Lloh2:
	adrp	x21, _qtrue@GOTPAGE
Lloh3:
	ldr	x21, [x21, _qtrue@GOTPAGEOFF]
	cmp	w11, #2
	b.lt	LBB0_5
; %bb.1:
	ldr	x9, [x21]
	add	x10, x10, #20
	sub	x11, x11, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #12
	subs	x11, x11, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10]
	cbz	w12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	w12, [x10, #-8]
	cmp	w12, w22
	csel	x8, x8, x9, eq
	b	LBB0_2
LBB0_5:
	cbz	x8, LBB0_7
; %bb.6:
	ldp	w2, w1, [x19, #24]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_qprintf
LBB0_7:
Lloh6:
	adrp	x24, _CONTENTS_DETAIL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CONTENTS_DETAIL@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh8:
	adrp	x23, _CONTENTS_STRUCTURAL@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CONTENTS_STRUCTURAL@GOTPAGEOFF]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.8:
	ldr	w9, [x23]
	tst	w9, w22
	b.eq	LBB0_10
; %bb.9:
Lloh10:
	adrp	x8, _num_entities@GOTPAGE
Lloh11:
	ldr	x8, [x8, _num_entities@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	sub	x1, x8, #1
Lloh13:
	adrp	x8, _entitySourceBrushes@GOTPAGE
Lloh14:
	ldr	x8, [x8, _entitySourceBrushes@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__printf
	ldr	w8, [x24]
	bic	w22, w22, w8
LBB0_10:
Lloh18:
	adrp	x9, _fulldetail@GOTPAGE
Lloh19:
	ldr	x9, [x9, _fulldetail@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, #0
	mov	w9, #-1
	csinv	w9, w9, w8, eq
	and	w9, w9, w22
Lloh21:
	adrp	x10, _CONTENTS_TRANSLUCENT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _CONTENTS_TRANSLUCENT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w9, w10
	b.eq	LBB0_12
; %bb.11:
	ldr	w11, [x23]
	orr	w12, w8, w22
	tst	w11, w9
	csel	w9, w12, w9, eq
LBB0_12:
Lloh24:
	adrp	x11, _c_detail@GOTPAGE
Lloh25:
	ldr	x11, [x11, _c_detail@GOTPAGEOFF]
Lloh26:
	adrp	x12, _c_structural@GOTPAGE
Lloh27:
	ldr	x12, [x12, _c_structural@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x12, x11, eq
	ldr	w11, [x8]
	add	w11, w11, #1
	str	w11, [x8]
	ldr	x8, [x21]
	ldr	x11, [x20]
	csel	x12, x11, x8, eq
	tst	w9, w10
	csel	x8, x8, x11, eq
	stp	x8, x12, [x19, #8]
Lloh28:
	adrp	x8, _CONTENTS_AREAPORTAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CONTENTS_AREAPORTAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_14
; %bb.13:
Lloh31:
	adrp	x8, _c_areaportals@GOTPAGE
Lloh32:
	ldr	x8, [x8, _c_areaportals@GOTPAGEOFF]
	ldr	w10, [x8]
	add	w10, w10, #1
	str	w10, [x8]
LBB0_14:
	str	w9, [x19, #4]
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_qtrue,8,3                      ; @qtrue
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entity %i, Brush %i: mixed face contents\n"

	.comm	_CONTENTS_DETAIL,4,2            ; @CONTENTS_DETAIL
	.comm	_CONTENTS_STRUCTURAL,4,2        ; @CONTENTS_STRUCTURAL
l_.str.1:                               ; @.str.1
	.asciz	"Entity %i, Brush %i: mixed CONTENTS_DETAIL and CONTENTS_STRUCTURAL\n"

	.comm	_num_entities,8,3               ; @num_entities
	.comm	_entitySourceBrushes,4,2        ; @entitySourceBrushes
	.comm	_fulldetail,8,3                 ; @fulldetail
	.comm	_CONTENTS_TRANSLUCENT,4,2       ; @CONTENTS_TRANSLUCENT
	.comm	_c_detail,4,2                   ; @c_detail
	.comm	_c_structural,4,2               ; @c_structural
	.comm	_CONTENTS_AREAPORTAL,4,2        ; @CONTENTS_AREAPORTAL
	.comm	_c_areaportals,4,2              ; @c_areaportals
.subsections_via_symbols
