	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateBrushWindings            ## -- Begin function CreateBrushWindings
	.p2align	4, 0x90
_CreateBrushWindings:                   ## @CreateBrushWindings
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_11
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, 16(%rdx,%rsi,8)
	incq	%r14
	addq	$24, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	8(%r15), %r12
	movq	_mapplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r14,%r14,2), %r13
	movq	(%r12,%r13,8), %rcx
	movl	(%rax,%rcx,8), %esi
	movl	4(%rax,%rcx,8), %edi
	callq	_BaseWindingForPlane
	movq	%rax, -48(%rbp)
	movslq	(%r15), %rcx
	testq	%rcx, %rcx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r12d
	xorl	%r13d, %r13d
	movl	%ecx, %edx
	movq	_SFL_BEVEL@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r13, %rbx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%r15), %rcx
	movl	(%rdi), %esi
	testl	%esi, 8(%rcx,%r13)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_mapplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%r13), %rcx
	xorq	$1, %rcx
	movl	(%rax,%rcx,8), %edx
	movl	4(%rax,%rcx,8), %esi
	leaq	-48(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_ChopWindingInPlace
	movq	_SFL_BEVEL@GOTPCREL(%rip), %rdi
	movl	(%r15), %edx
	movq	-48(%rbp), %rax
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movslq	%edx, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	addq	$24, %r13
	incq	%r12
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	callq	_BoundBrush
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mapplanes,8,3                  ## @mapplanes
	.comm	_SFL_BEVEL,4,2                  ## @SFL_BEVEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateBrushWindings            ; -- Begin function CreateBrushWindings
	.p2align	2
_CreateBrushWindings:                   ; @CreateBrushWindings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x20, #0
Lloh0:
	adrp	x21, _mapplanes@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mapplanes@GOTPAGEOFF]
	mov	w22, #24
Lloh2:
	adrp	x23, _SFL_BEVEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SFL_BEVEL@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x20, x22, x24
	str	x0, [x8, #16]
	add	x20, x20, #1
	cmp	x20, x9
	b.ge	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x24, [x19, #8]
	ldr	x8, [x21]
	mul	x9, x20, x22
	ldr	x9, [x24, x9]
	add	x8, x8, x9, lsl #3
	ldp	w1, w0, [x8]
	bl	_BaseWindingForPlane
	str	x0, [sp, #8]
	ldr	w8, [x19]
	sxtw	x9, w8
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, #0
	mov	x26, #0
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x20, x26
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x9, [x19, #8]
	add	x10, x9, x25
	ldr	w10, [x10, #8]
	ldr	w11, [x23]
	tst	w11, w10
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x21]
	ldr	x9, [x9, x25]
	eor	x9, x9, #0x1
	add	x8, x8, x9, lsl #3
	ldp	w2, w1, [x8]
	add	x0, sp, #8
	mov	w3, #0
	bl	_ChopWindingInPlace
	ldr	w8, [x19]
	ldr	x0, [sp, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x26, x26, #1
	sxtw	x9, w8
	cmp	x26, x9
	b.ge	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	add	x25, x25, #24
	cbnz	x0, LBB0_6
	b	LBB0_2
LBB0_11:
	mov	x0, x19
	bl	_BoundBrush
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mapplanes,8,3                  ; @mapplanes
	.comm	_SFL_BEVEL,4,2                  ; @SFL_BEVEL
.subsections_via_symbols
