	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MarkVisibleBrushSides          ## -- Begin function MarkVisibleBrushSides
	.p2align	4, 0x90
_MarkVisibleBrushSides:                 ## @MarkVisibleBrushSides
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.1:
	movq	16(%rdi), %r14
	movq	_dfaces@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_dplanes2mapplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%eax, %eax
	movq	_SFL_BEVEL@GOTPCREL(%rip), %r9
	movq	_SFL_VISIBLE@GOTPCREL(%rip), %r10
	movq	_numfaces@GOTPCREL(%rip), %r11
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	(%r10), %ebx
	movl	%ebx, (%r14,%rax,8)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%r8, %rax
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%r14,%rax,8), %ebx
	testl	%ebx, (%r9)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rdi)
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r10), %ecx
	notl	%ecx
	andl	%ecx, %ebx
	movl	%ebx, (%r14,%rax,8)
	movl	(%r11), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14,%rax,8), %r13d
	xorl	%esi, %esi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	incq	%rsi
	movslq	%ecx, %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_10
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15,%rsi,8), %rdx
	movl	(%r12,%rdx,4), %edx
	xorl	%r13d, %edx
	cmpl	$1, %edx
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	orl	(%r10), %ebx
	movl	%ebx, (%r14,%rax,8)
	movl	(%r11), %ecx
	jmp	LBB0_9
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SFL_BEVEL,4,2                  ## @SFL_BEVEL
	.comm	_SFL_VISIBLE,4,2                ## @SFL_VISIBLE
	.comm	_numfaces,4,2                   ## @numfaces
	.comm	_dfaces,8,3                     ## @dfaces
	.comm	_dplanes2mapplanes,8,3          ## @dplanes2mapplanes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MarkVisibleBrushSides          ; -- Begin function MarkVisibleBrushSides
	.p2align	2
_MarkVisibleBrushSides:                 ; @MarkVisibleBrushSides
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0, #16]
Lloh0:
	adrp	x11, _dfaces@GOTPAGE
Lloh1:
	ldr	x11, [x11, _dfaces@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
Lloh3:
	adrp	x12, _dplanes2mapplanes@GOTPAGE
Lloh4:
	ldr	x12, [x12, _dplanes2mapplanes@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
Lloh6:
	adrp	x13, _SFL_BEVEL@GOTPAGE
Lloh7:
	ldr	x13, [x13, _SFL_BEVEL@GOTPAGEOFF]
Lloh8:
	adrp	x14, _SFL_VISIBLE@GOTPAGE
Lloh9:
	ldr	x14, [x14, _SFL_VISIBLE@GOTPAGEOFF]
Lloh10:
	adrp	x15, _numfaces@GOTPAGE
Lloh11:
	ldr	x15, [x15, _numfaces@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x14]
	orr	w17, w1, w17
	str	w17, [x16]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	add	x16, x10, x9, lsl #3
	ldr	w17, [x16]
	ldr	w1, [x13]
	tst	w1, w17
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x0, #8]
	tbnz	x1, #63, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x14]
	bic	w17, w17, w1
	str	w17, [x16]
	ldr	w2, [x15]
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, #0
	add	x3, x10, x9, lsl #3
	ldr	w3, [x3, #4]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x1, x1, #1
	cmp	x1, w2, sxtw
	b.ge	LBB0_3
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x4, [x11, x1, lsl #3]
	ldr	w4, [x12, x4, lsl #2]
	eor	w4, w3, w4
	cmp	w4, #1
	b.hi	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w2, [x14]
	orr	w17, w17, w2
	str	w17, [x16]
	ldr	w2, [x15]
	b	LBB0_8
LBB0_11:
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SFL_BEVEL,4,2                  ; @SFL_BEVEL
	.comm	_SFL_VISIBLE,4,2                ; @SFL_VISIBLE
	.comm	_numfaces,4,2                   ; @numfaces
	.comm	_dfaces,8,3                     ; @dfaces
	.comm	_dplanes2mapplanes,8,3          ; @dplanes2mapplanes
.subsections_via_symbols
