	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BrushVolume                    ## -- Begin function BrushVolume
	.p2align	4, 0x90
_BrushVolume:                           ## @BrushVolume
	.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
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rdi, %r14
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.2:
	movq	8(%r14), %rax
	movl	$8, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rbx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	addq	$16, %rbx
	cmpq	%r12, %rcx
	jne	LBB0_3
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_6:
	movq	(%rdx), %rax
	movl	(%rax), %edi
	callq	_VectorCopy
	movl	(%r14), %eax
	xorl	%edx, %edx
	cmpl	%r12d, %eax
	jle	LBB0_11
## %bb.7:
	xorl	%edx, %edx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %rbx
	incl	%r12d
	cmpl	%r12d, %eax
	jle	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx), %r15
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_mapplanes@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	-8(%rcx,%rbx), %r14
	movl	4(%r13,%r14,8), %esi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_DotProduct
	movl	(%r13,%r14,8), %r14d
	subl	%eax, %r14d
	movq	%r15, %rdi
	callq	_WindingArea
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	imull	%r14d, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	addl	%eax, %edx
	movl	(%r14), %eax
	jmp	LBB0_10
LBB0_11:
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	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	_BrushVolume                    ; -- Begin function BrushVolume
	.p2align	2
_BrushVolume:                           ; @BrushVolume
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w21, #0
	mov	x22, #0
	ldr	x8, [x19, #8]
	add	x8, x8, #8
	lsl	x9, x9, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x22]
	cbnz	x10, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #16
	add	w21, w21, #1
	cmp	x9, x22
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #0
	b	LBB0_13
LBB0_6:
	ldr	x8, [x10]
	ldr	w0, [x8]
	bl	_VectorCopy
	ldr	w8, [x19]
	cmp	w8, w21
	b.le	LBB0_11
; %bb.7:
	mov	w23, #0
Lloh0:
	adrp	x24, _mapplanes@GOTPAGE
Lloh1:
	ldr	x24, [x24, _mapplanes@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #16
	add	w21, w21, #1
	cmp	w8, w21
	b.le	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x10, x9, x22
	ldr	x20, [x10, #8]
	cbz	x20, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x9, x22]
	add	x25, x8, x9, lsl #3
	ldr	w1, [x25, #4]
	bl	_DotProduct
	ldr	w8, [x25]
	sub	w25, w8, w0
	mov	x0, x20
	bl	_WindingArea
	madd	w23, w25, w0, w23
	ldr	w8, [x19]
	b	LBB0_8
LBB0_11:
	mov	w23, #0
LBB0_12:
	mov	w8, #21846
	movk	w8, #21845, lsl #16
	smull	x8, w23, w8
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w0, w8, w9
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mapplanes,8,3                  ; @mapplanes
.subsections_via_symbols
