	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function WindingArea
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_WindingArea
	.p2align	4, 0x90
_WindingArea:                           ## @WindingArea
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$3, (%rdi)
	jl	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	$2, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	-4(%rax,%rbx,4), %edi
	movl	(%rax), %esi
	callq	_VectorSubtract
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movl	(%rax), %esi
	callq	_VectorSubtract
	callq	_CrossProduct
	callq	_VectorLength
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r15, %xmm1
	mulsd	LCPI0_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %r15
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r15d, %r15d
LBB0_4:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_WindingArea                    ; -- Begin function WindingArea
	.p2align	2
_WindingArea:                           ; @WindingArea
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	ldr	w8, [x0]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	mov	x20, #0
	fmov	d8, #0.50000000
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x22, x21, #2
	add	x9, x8, x22
	ldr	w0, [x9, #4]
	ldr	w1, [x8]
	bl	_VectorSubtract
	ldr	x8, [x19, #8]
	add	x9, x8, x22
	ldr	w0, [x9, #8]
	ldr	w1, [x8]
	bl	_VectorSubtract
	bl	_CrossProduct
	bl	_VectorLength
	scvtf	d1, x20
	fmadd	d0, d0, d8, d1
	fcvtzs	x20, d0
	ldrsw	x8, [x19]
	add	x9, x21, #3
	add	x21, x21, #1
	cmp	x9, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
