	.file	"extr_l_poly.c_PointOnWinding.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	PointOnWinding
	.type	PointOnWinding, @function
PointOnWinding:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	edi, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR [rcx], 0
	mov	QWORD PTR 24[rsp], rcx
	movss	DWORD PTR 8[rsp], xmm0
	call	DotProduct@PLT
	movss	xmm1, DWORD PTR 8[rsp]
	cvtss2sd	xmm1, xmm1
	subsd	xmm0, xmm1
	movss	xmm1, DWORD PTR MELT_ON_EPSILON[rip]
	movaps	xmm2, xmm1
	xorps	xmm2, XMMWORD PTR .LC0[rip]
	cvtsd2ss	xmm0, xmm0
	comiss	xmm2, xmm0
	ja	.L2
	comiss	xmm0, xmm1
	ja	.L2
	mov	esi, DWORD PTR 0[rbp]
	test	esi, esi
	jle	.L2
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L6:
	lea	eax, 1[r12]
	mov	rdi, QWORD PTR 8[rbp]
	xor	r9d, r9d
	xor	r15d, r15d
	cdq
	mov	DWORD PTR 20[rsp], eax
	lea	rcx, 0[0+r12*4]
	idiv	esi
	mov	esi, DWORD PTR [rdi+r12*4]
	mov	QWORD PTR 8[rsp], rcx
	movsx	rbx, edx
	mov	edx, r9d
	mov	edi, DWORD PTR [rdi+rbx*4]
	call	VectorSubtract@PLT
	xor	r9d, r9d
	mov	edx, r15d
	mov	edi, r14d
	mov	esi, r9d
	call	CrossProduct@PLT
	mov	edi, r15d
	call	VectorNormalize@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, r15d
	mov	esi, DWORD PTR [rax+r12*4]
	call	DotProduct@PLT
	mov	esi, r15d
	mov	edi, r13d
	movsd	QWORD PTR 8[rsp], xmm0
	call	DotProduct@PLT
	movsd	xmm1, QWORD PTR 8[rsp]
	cvtsd2ss	xmm1, xmm1
	cvtss2sd	xmm1, xmm1
	subsd	xmm0, xmm1
	movss	xmm1, DWORD PTR MELT_ON_EPSILON[rip]
	movaps	xmm2, xmm1
	xorps	xmm2, XMMWORD PTR .LC0[rip]
	cvtsd2ss	xmm0, xmm0
	comiss	xmm2, xmm0
	ja	.L3
	comiss	xmm0, xmm1
	ja	.L3
	mov	rax, QWORD PTR 8[rbp]
	lea	rcx, 0[0+r12*4]
	mov	edx, r15d
	mov	edi, r13d
	mov	esi, DWORD PTR [rax+rcx]
	call	VectorSubtract@PLT
	mov	rax, QWORD PTR 8[rbp]
	xor	edx, edx
	mov	edi, r13d
	mov	esi, DWORD PTR [rax+rbx*4]
	call	VectorSubtract@PLT
	mov	edi, r15d
	call	VectorNormalize@PLT
	movsd	xmm3, QWORD PTR .LC1[rip]
	comisd	xmm3, xmm0
	ja	.L2
	xor	edx, edx
	mov	edi, edx
	call	VectorNormalize@PLT
	movsd	xmm4, QWORD PTR .LC1[rip]
	comisd	xmm4, xmm0
	ja	.L2
	xor	edx, edx
	mov	edi, r15d
	mov	esi, edx
	call	DotProduct@PLT
	movsd	xmm5, QWORD PTR .LC2[rip]
	comisd	xmm5, xmm0
	ja	.L11
.L3:
	mov	esi, DWORD PTR 0[rbp]
	add	r12, 1
	cmp	esi, r12d
	jg	.L6
.L2:
	xor	eax, eax
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rsp]
	mov	ebx, DWORD PTR 20[rsp]
	mov	DWORD PTR [rax], ebx
	mov	eax, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	PointOnWinding, .-PointOnWinding
	.comm	MELT_ON_EPSILON,4,4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	2147483648
	.long	0
	.long	0
	.long	0
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1071644672
	.align 8
.LC2:
	.long	2061584302
	.long	-1074811372
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_l_poly.c_PointOnWinding.c"
	.text
	.global	__aeabi_f2d
	.global	__aeabi_dsub
	.global	__aeabi_d2f
	.global	__aeabi_fcmpgt
	.global	__aeabi_fcmplt
	.global	__aeabi_idivmod
	.global	__aeabi_dcmplt
	.align	2
	.global	PointOnWinding
	.syntax unified
	.arm
	.fpu softvfp
	.type	PointOnWinding, %function
PointOnWinding:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r8, r3
	mov	r6, r0
	mov	r0, r3
	ldr	r3, [sp, #48]
	mov	r5, r2
	str	ip, [r3]
	str	r1, [sp, #4]
	bl	DotProduct
	mov	r2, r0
	mov	r0, r5
	mov	r4, r2
	mov	r5, r1
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	bl	__aeabi_d2f
	ldr	r3, .L12
	mov	r1, r0
	ldr	r5, [r3]	@ float
	mov	r4, r0
	add	r0, r5, #-2147483648
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	bne	.L2
	mov	r1, r4
	mov	r0, r5
	bl	__aeabi_fcmplt
	subs	r7, r0, #0
	bne	.L2
	ldr	r1, [r6]
	cmp	r1, #0
	ble	.L2
	mov	r5, r8
.L6:
	add	r7, r7, #1
	mov	r0, r7
	bl	__aeabi_idivmod
	mov	r9, #0
	mov	r2, r1
	ldr	r3, [r6, #4]
	lsl	r4, r7, #2
	sub	r4, r4, #4
	ldr	r1, [r3, r4]
	ldr	r0, [r3, r2, lsl #2]
	str	r2, [sp]
	mov	r2, r9
	bl	VectorSubtract
	mov	r2, r9
	mov	r1, r9
	ldr	r0, [sp, #4]
	bl	CrossProduct
	mov	r0, r9
	bl	VectorNormalize
	ldr	r3, [r6, #4]
	mov	r0, r9
	ldr	r1, [r3, r4]
	bl	DotProduct
	mov	r10, r0
	mov	fp, r1
	mov	r0, r5
	mov	r1, r9
	bl	DotProduct
	mov	r8, r0
	mov	r9, r1
	mov	r0, r10
	mov	r1, fp
	bl	__aeabi_d2f
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dsub
	bl	__aeabi_d2f
	ldr	r3, .L12
	mov	r1, r0
	ldr	r9, [r3]	@ float
	mov	r8, r0
	add	r0, r9, #-2147483648
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	bne	.L3
	mov	r1, r8
	mov	r0, r9
	bl	__aeabi_fcmplt
	cmp	r0, #0
	bne	.L3
	mov	r8, #0
	ldr	r3, [r6, #4]
	mov	r2, r8
	ldr	r1, [r3, r4]
	mov	r0, r5
	bl	VectorSubtract
	ldr	r3, [r6, #4]
	ldr	r1, [sp]
	mov	r2, r8
	ldr	r1, [r3, r1, lsl #2]
	mov	r0, r5
	bl	VectorSubtract
	mov	r0, r8
	bl	VectorNormalize
	mov	r2, #0
	ldr	r3, .L12+4
	bl	__aeabi_dcmplt
	cmp	r0, r8
	bne	.L2
	mov	r0, r8
	bl	VectorNormalize
	mov	r2, #0
	ldr	r3, .L12+4
	bl	__aeabi_dcmplt
	cmp	r0, r8
	bne	.L2
	mov	r1, r8
	mov	r0, r8
	bl	DotProduct
	ldr	r2, .L12+8
	ldr	r3, .L12+12
	bl	__aeabi_dcmplt
	cmp	r0, r8
	bne	.L11
.L3:
	ldr	r1, [r6]
	cmp	r7, r1
	blt	.L6
.L2:
	mov	r0, #0
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r3, [sp, #48]
	mov	r0, #1
	str	r7, [r3]
	b	.L1
.L13:
	.align	2
.L12:
	.word	MELT_ON_EPSILON
	.word	1071644672
	.word	2061584302
	.word	-1074811372
	.size	PointOnWinding, .-PointOnWinding
	.comm	MELT_ON_EPSILON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
