	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MarkBrushBevels                ## -- Begin function MarkBrushBevels
	.p2align	4, 0x90
_MarkBrushBevels:                       ## @MarkBrushBevels
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_18
## %bb.1:
	movq	%rdi, %rbx
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	(%rax)
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	(%rbx), %rax
	addq	$24, %r12
	cmpq	%rax, %r14
	jge	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %r15
	movl	16(%r15,%r12), %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_WindingIsTiny
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_SFL_BEVEL@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	%eax, (%r15,%r12)
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_Write
	movq	%r13, %rcx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_Log_Write
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r15,%r12), %edi
	callq	_WindingError
	movq	_WE_NOTENOUGHPOINTS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	_SFL_BEVEL@GOTPCREL(%rip), %rcx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_WE_SMALLAREA@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_WE_POINTBOGUSRANGE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %r13d
	xorl	%eax, %eax
	callq	_WindingErrorString
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_Log_Write
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_SFL_BEVEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	orl	%eax, (%r15,%r12)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15,%r12), %eax
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_SFL_VISIBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r15,%r12)
	movq	8(%r15,%r12), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_nummapplanes@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_mapplanes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$3, (%rcx,%rax,4)
	movq	_c_edgebevels@GOTPCREL(%rip), %rax
	jge	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_c_boxbevels@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MarkBrushBevels: brush %d no winding"

	.comm	_SFL_BEVEL,4,2                  ## @SFL_BEVEL
L_.str.1:                               ## @.str.1
	.asciz	"MarkBrushBevels: brush %d tiny winding"

	.comm	_WE_NOTENOUGHPOINTS,4,2         ## @WE_NOTENOUGHPOINTS
	.comm	_WE_SMALLAREA,4,2               ## @WE_SMALLAREA
	.comm	_WE_POINTBOGUSRANGE,4,2         ## @WE_POINTBOGUSRANGE
L_.str.2:                               ## @.str.2
	.asciz	"MarkBrushBevels: brush %d %s"

	.comm	_SFL_VISIBLE,4,2                ## @SFL_VISIBLE
	.comm	_nummapplanes,8,3               ## @nummapplanes
	.comm	_mapplanes,8,3                  ## @mapplanes
	.comm	_c_boxbevels,4,2                ## @c_boxbevels
	.comm	_c_edgebevels,4,2               ## @c_edgebevels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MarkBrushBevels                ; -- Begin function MarkBrushBevels
	.p2align	2
_MarkBrushBevels:                       ; @MarkBrushBevels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x0
	mov	x24, #0
	mov	x25, #0
Lloh0:
	adrp	x26, _SFL_BEVEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SFL_BEVEL@GOTPAGEOFF]
Lloh2:
	adrp	x27, _SFL_VISIBLE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _SFL_VISIBLE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _nummapplanes@GOTPAGE
Lloh5:
	ldr	x28, [x28, _nummapplanes@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19]
	add	x24, x24, #24
	cmp	x25, x8
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19, #8]
	add	x23, x21, x24
	ldr	w0, [x23, #16]
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_WindingIsTiny
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	ldr	w9, [x21, x24]
	orr	w8, w9, w8
	str	w8, [x21, x24]
	ldr	w1, [x19, #4]
	mov	x0, x22
	bl	_Log_Write
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x19, #4]
	mov	x0, x20
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23, #16]
	bl	_WindingError
Lloh10:
	adrp	x8, _WE_NOTENOUGHPOINTS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WE_NOTENOUGHPOINTS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _WE_SMALLAREA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WE_SMALLAREA@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _WE_POINTBOGUSRANGE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _WE_POINTBOGUSRANGE@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	ccmp	w0, w10, #4, ne
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w23, [x19, #4]
	bl	_WindingErrorString
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_Log_Write
	ldr	w8, [x26]
	ldr	w9, [x21, x24]
	orr	w8, w9, w8
	str	w8, [x21, x24]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21, x24]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x27]
	bic	w8, w8, w9
	add	x9, x21, x24
	str	w8, [x9]
	ldr	x8, [x9, #8]
	ldr	x9, [x28]
	cmp	x8, #0
	ccmp	x8, x9, #2, ne
	b.hs	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh21:
	adrp	x9, _mapplanes@GOTPAGE
Lloh22:
	ldr	x9, [x9, _mapplanes@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	cmp	w8, #3
Lloh24:
	adrp	x8, _c_edgebevels@GOTPAGE
Lloh25:
	ldr	x8, [x8, _c_edgebevels@GOTPAGEOFF]
Lloh26:
	adrp	x9, _c_boxbevels@GOTPAGE
Lloh27:
	ldr	x9, [x9, _c_boxbevels@GOTPAGEOFF]
	csel	x8, x9, x8, lt
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_2
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MarkBrushBevels: brush %d no winding"

	.comm	_SFL_BEVEL,4,2                  ; @SFL_BEVEL
l_.str.1:                               ; @.str.1
	.asciz	"MarkBrushBevels: brush %d tiny winding"

	.comm	_WE_NOTENOUGHPOINTS,4,2         ; @WE_NOTENOUGHPOINTS
	.comm	_WE_SMALLAREA,4,2               ; @WE_SMALLAREA
	.comm	_WE_POINTBOGUSRANGE,4,2         ; @WE_POINTBOGUSRANGE
l_.str.2:                               ; @.str.2
	.asciz	"MarkBrushBevels: brush %d %s"

	.comm	_SFL_VISIBLE,4,2                ; @SFL_VISIBLE
	.comm	_nummapplanes,8,3               ; @nummapplanes
	.comm	_mapplanes,8,3                  ; @mapplanes
	.comm	_c_boxbevels,4,2                ; @c_boxbevels
	.comm	_c_edgebevels,4,2               ; @c_edgebevels
.subsections_via_symbols
