	.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, %r8
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_17
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r13), %rdx
	addq	$8, %rdx
	movq	%rax, (%rdx)
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%ecx, %rax
	addq	$32, %rbx
	cmpq	%rax, %r12
	jge	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	8(%r8), %r14
	movq	%r12, %r13
	shlq	$5, %r13
	cmpq	$0, 24(%r14,%r13)
	jne	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_mapplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14,%r13), %rcx
	movl	(%rax,%rcx,8), %esi
	movl	4(%rax,%rcx,8), %edi
	callq	_BaseWindingForPlane
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%rax, -56(%rbp)
	movl	(%r8), %ecx
	testl	%ecx, %ecx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r15, %rbx
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%r8), %rdx
	movq	(%rdx,%r15), %rsi
	movq	(%rdx,%r13), %rdi
	xorq	$1, %rdi
	cmpq	%rdi, %rsi
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpq	$0, 24(%rdx,%r15)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpq	$0, 16(%rdx,%r15)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	_mapplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorq	$1, %rsi
	movl	(%rax,%rsi,8), %edx
	movl	4(%rax,%rsi,8), %esi
	leaq	-56(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_ChopWindingInPlace
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	(%r8), %ecx
	movq	-56(%rbp), %rax
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	movslq	%ecx, %rdx
	cmpq	%rdx, %r14
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	addq	$32, %r15
	incq	%r14
	testq	%rax, %rax
	jne	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14,%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_FreeWinding
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %rax
	movl	(%r8), %ecx
	jmp	LBB0_15
LBB0_17:
	movq	%r8, %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
.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	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x20, #0
Lloh0:
	adrp	x21, _mapplanes@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mapplanes@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [x22]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	cmp	x20, w9, sxtw
	b.ge	LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x22, [x19, #8]
	add	x8, x22, x20, lsl #5
	ldr	x8, [x8, #24]
	cbnz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	lsl	x23, x20, #5
	ldr	x9, [x22, x23]
	add	x8, x8, x9, lsl #3
	ldp	w1, w0, [x8]
	bl	_BaseWindingForPlane
	str	x0, [sp, #8]
	ldr	w9, [x19]
	cmp	w9, #1
	ccmp	x0, #0, #4, ge
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	mov	x25, #0
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x20, x25
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x10, [x19, #8]
	ldr	x8, [x10, x24]
	ldr	x11, [x10, x23]
	eor	x11, x11, #0x1
	cmp	x8, x11
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x10, x10, x24
	ldr	x11, [x10, #24]
	cbnz	x11, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x10, [x10, #16]
	cbnz	x10, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [x21]
	eor	x8, x8, #0x1
	add	x8, x9, x8, lsl #3
	ldp	w2, w1, [x8]
	add	x0, sp, #8
	mov	w3, #0
	bl	_ChopWindingInPlace
	ldr	w9, [x19]
	ldr	x0, [sp, #8]
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x25, x25, #1
	cmp	x25, w9, sxtw
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=2
	add	x24, x24, #32
	cbnz	x0, LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, x20, lsl #5
	ldr	x8, [x22, #8]!
	cbz	x8, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x8
	bl	_FreeWinding
	ldr	x0, [sp, #8]
	ldr	w9, [x19]
	b	LBB0_2
LBB0_16:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mapplanes,8,3                  ; @mapplanes
.subsections_via_symbols
