	.file	"extr_soundv.c_VS_SplitWinding.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"WARNING: VS_SplitWinding -> MAX_POINTS_ON_FIXED_WINDING overflowed\n"
	.text
	.p2align 4
	.globl	VS_SplitWinding
	.type	VS_SplitWinding, @function
VS_SplitWinding:
.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	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 1112
	.cfi_def_cfa_offset 1168
	mov	r8d, DWORD PTR [rdi]
	movss	DWORD PTR 8[rsp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1096[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 60[rsp], 0
	mov	QWORD PTR 52[rsp], 0
	test	r8d, r8d
	jle	.L28
	xor	ebx, ebx
	lea	r13, 64[rsp]
	lea	r15, 576[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L37:
	mov	rdx, QWORD PTR SIDE_FRONT[rip]
	mov	DWORD PTR [r15+rbx*4], edx
	movsx	rax, edx
.L5:
	lea	edx, 1[rbx]
	add	DWORD PTR 52[rsp+rax*4], 1
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L2
.L8:
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR [r14]
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	DotProduct@PLT
	subss	xmm0, DWORD PTR 8[r14]
	comiss	xmm0, DWORD PTR 8[rsp]
	movss	DWORD PTR 0[r13+rbx*4], xmm0
	ja	.L37
	movss	xmm1, DWORD PTR 8[rsp]
	xorps	xmm1, XMMWORD PTR .LC0[rip]
	comiss	xmm1, xmm0
	jbe	.L34
	mov	rdx, QWORD PTR SIDE_BACK[rip]
	mov	DWORD PTR [r15+rbx*4], edx
	movsx	rax, edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L34:
	movsx	rax, DWORD PTR SIDE_ON[rip]
	mov	DWORD PTR [r15+rbx*4], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L28:
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR SIDE_BACK[rip]
	mov	rcx, QWORD PTR SIDE_FRONT[rip]
	mov	edi, DWORD PTR 52[rsp+rax*4]
	mov	esi, DWORD PTR 52[rsp+rcx*4]
	test	edi, edi
	jne	.L9
	test	esi, esi
	mov	eax, ecx
	cmove	eax, DWORD PTR SIDE_ON[rip]
.L1:
	mov	rcx, QWORD PTR 1096[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L38
	add	rsp, 1112
	.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
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	test	esi, esi
	je	.L1
	mov	eax, DWORD PTR 576[rsp]
	movsx	rdx, edx
	mov	DWORD PTR [r12], 0
	movss	xmm0, DWORD PTR 64[rsp]
	mov	DWORD PTR 32[rsp], 0
	mov	DWORD PTR 576[rsp+rdx*4], eax
	mov	eax, DWORD PTR 0[rbp]
	movss	DWORD PTR 64[rsp+rdx*4], xmm0
	test	eax, eax
	jle	.L13
	xor	ebx, ebx
	xor	ecx, ecx
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR [rax+rbx*8]
	mov	eax, DWORD PTR MAX_POINTS_ON_FIXED_WINDING[rip]
	cmp	eax, ecx
	jle	.L21
	cmp	eax, DWORD PTR [r12]
	jle	.L21
	lea	r15, 576[rsp]
	lea	edx, 1[rbx]
	mov	r13d, DWORD PTR [r15+rbx*4]
	cmp	r13d, DWORD PTR SIDE_ON[rip]
	je	.L39
	movsx	r8, r13d
	cmp	r8, QWORD PTR SIDE_FRONT[rip]
	je	.L40
.L18:
	cmp	r8, QWORD PTR SIDE_BACK[rip]
	je	.L41
.L19:
	mov	ecx, DWORD PTR 4[r15+rbx*4]
	cmp	DWORD PTR SIDE_ON[rip], ecx
	je	.L17
	cmp	r13d, ecx
	je	.L17
	movsx	rcx, DWORD PTR 32[rsp]
	mov	eax, DWORD PTR MAX_POINTS_ON_FIXED_WINDING[rip]
	cmp	ecx, eax
	jge	.L21
	cmp	eax, DWORD PTR [r12]
	jle	.L21
	mov	eax, edx
	movss	xmm0, DWORD PTR 64[rsp+rbx*4]
	mov	rsi, QWORD PTR [r14]
	cdq
	idiv	DWORD PTR 0[rbp]
	mov	rax, QWORD PTR 8[rbp]
	movaps	xmm1, xmm0
	subss	xmm1, DWORD PTR 68[rsp+rbx*4]
	divss	xmm0, xmm1
	movsx	rdx, edx
	mov	r8, QWORD PTR [rax+rdx*8]
	xor	eax, eax
	movaps	xmm1, xmm0
.L25:
	mov	edx, DWORD PTR [rsi+rax]
	cmp	edx, 1
	je	.L42
	cmp	edx, -1
	je	.L43
	movss	xmm2, DWORD PTR [rdi+rax]
	movss	xmm0, DWORD PTR [r8+rax]
	subss	xmm0, xmm2
	mulss	xmm0, xmm1
	addss	xmm0, xmm2
	movss	DWORD PTR [rax], xmm0
.L23:
	add	rax, 4
	cmp	rax, 12
	jne	.L25
	mov	rax, QWORD PTR 40[rsp]
	xor	r13d, r13d
	mov	rdi, r13
	mov	rsi, QWORD PTR [rax+rcx*8]
	call	VectorCopy@PLT
	movsx	rdx, DWORD PTR [r12]
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, r13
	add	DWORD PTR 32[rsp], 1
	mov	rsi, QWORD PTR [rax+rdx*8]
	call	VectorCopy@PLT
	add	DWORD PTR [r12], 1
.L17:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L13
	movsx	rcx, DWORD PTR 32[rsp]
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L42:
	movss	xmm0, DWORD PTR 8[r14]
	movss	DWORD PTR [rax], xmm0
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L43:
	movss	xmm0, DWORD PTR 8[r14]
	xorps	xmm0, XMMWORD PTR .LC0[rip]
	movss	DWORD PTR [rax], xmm0
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L41:
	movsx	rcx, DWORD PTR [r12]
	mov	rax, QWORD PTR 8[r12]
	mov	DWORD PTR 16[rsp], edx
	mov	QWORD PTR 8[rsp], rdi
	mov	rsi, QWORD PTR [rax+rcx*8]
	call	VectorCopy@PLT
	add	DWORD PTR [r12], 1
	mov	edx, DWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rax, QWORD PTR 40[rsp]
	mov	DWORD PTR 28[rsp], edx
	mov	QWORD PTR 16[rsp], r8
	mov	rsi, QWORD PTR [rax+rcx*8]
	mov	QWORD PTR 8[rsp], rdi
	call	VectorCopy@PLT
	add	DWORD PTR 32[rsp], 1
	mov	edx, DWORD PTR 28[rsp]
	mov	r8, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[rsp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rax, QWORD PTR 40[rsp]
	mov	QWORD PTR 8[rsp], rdi
	mov	rsi, QWORD PTR [rax+rcx*8]
	call	VectorCopy@PLT
	movsx	rdx, DWORD PTR [r12]
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, QWORD PTR 8[rsp]
	add	DWORD PTR 32[rsp], 1
	mov	rsi, QWORD PTR [rax+rdx*8]
	call	VectorCopy@PLT
	add	DWORD PTR [r12], 1
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC1[rip]
	call	_printf@PLT
	mov	eax, DWORD PTR SIDE_FRONT[rip]
	jmp	.L1
.L13:
	lea	rsi, 32[rsp]
	mov	edx, 16
	mov	rdi, rbp
	call	memcpy@PLT
	mov	eax, DWORD PTR SIDE_CROSS[rip]
	jmp	.L1
.L38:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	VS_SplitWinding, .-VS_SplitWinding
	.comm	SIDE_ON,4,4
	.comm	SIDE_FRONT,8,8
	.comm	SIDE_CROSS,4,4
	.comm	SIDE_BACK,8,8
	.comm	MAX_POINTS_ON_FIXED_WINDING,4,4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	2147483648
	.long	0
	.long	0
	.long	0
	.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_soundv.c_VS_SplitWinding.c"
	.text
	.global	__aeabi_fsub
	.global	__aeabi_fcmpgt
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WARNING: VS_SplitWinding -> MAX_POINTS_ON_FIXED_WIN"
	.ascii	"DING overflowed\012\000"
	.global	__aeabi_idivmod
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	VS_SplitWinding
	.syntax unified
	.arm
	.fpu softvfp
	.type	VS_SplitWinding, %function
VS_SplitWinding:
	@ args = 0, pretend = 0, frame = 1080
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r0, #0
	mov	r8, r3
	sub	sp, sp, #1072
	ldr	r3, .L47
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #1076]
	mov	r3,#0
	ldr	r3, .L47+4
	ldr	ip, [r5]
	str	r3, [sp]
	ldr	r3, .L47+8
	cmp	ip, r0
	mov	r7, r1
	mov	fp, r0
	mov	r6, r2
	str	r0, [sp, #48]
	str	r0, [sp, #44]
	str	r0, [sp, #40]
	str	r3, [sp, #8]
	ble	.L2
	add	r3, r8, #-2147483648
	mov	r7, r5
	add	r4, sp, #48
	mov	r5, r3
	add	r9, sp, #564
	str	r1, [sp, #4]
	b	.L8
.L39:
	ldr	r3, [sp]
	ldr	r3, [r3]
	str	r3, [r9, fp, lsl #2]
.L5:
	add	r2, sp, #1072
	add	r2, r2, #8
	add	r3, r2, r3, lsl #2
	ldr	r1, [r3, #-1040]
	ldr	r0, [r7]
	add	fp, fp, #1
	add	r1, r1, #1
	cmp	r0, fp
	str	r1, [r3, #-1040]
	ble	.L38
.L8:
	ldr	r3, [r7, #4]
	ldr	r1, [r6]
	ldr	r0, [r3, fp, lsl #2]
	bl	DotProduct
	ldr	r1, [r6, #4]	@ float
	bl	__aeabi_fsub
	mov	r1, r8
	str	r0, [r4, #4]!	@ float
	mov	r10, r0
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	bne	.L39
	mov	r0, r5
	mov	r1, r10
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	ldrne	r3, [sp, #8]
	ldreq	r3, .L47+12
	ldr	r3, [r3]
	str	r3, [r9, fp, lsl #2]
	b	.L5
.L38:
	mov	r5, r7
	ldr	r7, [sp, #4]
.L2:
	ldr	r2, [sp]
	ldr	r3, [sp, #8]
	ldr	r0, [r2]
	ldr	r3, [r3]
	add	r2, sp, #1072
	add	r2, r2, #8
	add	r1, r2, r3, lsl #2
	ldr	ip, [r1, #-1040]
	add	r1, r2, r0, lsl #2
	cmp	ip, #0
	ldr	r1, [r1, #-1040]
	bne	.L9
	cmp	r1, #0
	beq	.L40
.L1:
	ldr	r3, .L47
	ldr	r2, [r3]
	ldr	r3, [sp, #1076]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L41
	add	sp, sp, #1072
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	cmp	r1, #0
	moveq	r0, r3
	beq	.L1
	mov	r4, #0
	add	r2, sp, #1072
	ldr	r3, [sp, #564]
	str	r4, [r7]
	add	r2, r2, #8
	add	r2, r2, fp, lsl #2
	ldr	r1, [r5]
	str	r3, [r2, #-516]
	ldr	r3, [sp, #52]	@ float
	cmp	r1, r4
	str	r4, [sp, #32]
	str	r3, [r2, #-1028]	@ float
	ble	.L13
	add	r3, sp, #52
	mov	fp, r4
	mov	r8, r3
	ldr	r10, .L47+12
	add	r9, sp, #564
	str	r6, [sp, #12]
	b	.L26
.L17:
	ldr	r2, [r5]
	add	r8, r8, #4
	cmp	r2, fp
	ble	.L13
	ldr	r4, [sp, #32]
.L26:
	ldr	r3, .L47+16
	ldr	r1, [r5, #4]
	ldr	r2, [r3]
	ldr	r3, [r1, fp, lsl #2]
	cmp	r2, r4
	str	r3, [sp, #4]
	ble	.L21
	ldr	r1, [r7]
	cmp	r2, r1
	ble	.L21
	ldr	r6, [r9], #4
	ldr	r2, [r10]
	add	fp, fp, #1
	cmp	r6, r2
	beq	.L42
	ldr	r3, [sp]
	ldr	r2, [r3]
	cmp	r6, r2
	beq	.L43
.L18:
	ldr	r3, [sp, #8]
	ldr	r2, [r3]
	cmp	r6, r2
	beq	.L44
.L19:
	ldr	r4, [r9]
	ldr	r2, [r10]
	cmp	r6, r4
	cmpne	r2, r4
	moveq	r4, #1
	movne	r4, #0
	beq	.L17
	ldr	r2, .L47+16
	ldr	r3, [sp, #32]
	ldr	r2, [r2]
	str	r3, [sp, #24]
	cmp	r3, r2
	bge	.L21
	ldr	r1, [r7]
	cmp	r2, r1
	ble	.L21
	mov	r0, fp
	ldr	r1, [r5]
	bl	__aeabi_idivmod
	ldr	r2, [r5, #4]
	ldr	r6, [r8]	@ float
	ldr	r3, [r2, r1, lsl #2]
	mov	r0, r6
	ldr	r1, [r8, #4]	@ float
	str	r3, [sp, #16]
	bl	__aeabi_fsub
	mov	r1, r0
	mov	r0, r6
	bl	__aeabi_fdiv
	ldr	r3, [sp, #12]
	str	r0, [sp, #20]	@ float
	ldr	r6, [r3]
	str	r5, [sp, #28]
	sub	r6, r6, #4
.L25:
	ldr	r2, [r6, #4]!
	cmp	r2, #1
	beq	.L45
	cmn	r2, #1
	beq	.L46
	ldr	r3, [sp, #4]
	ldr	r5, [r3, r4, lsl #2]	@ float
	ldr	r3, [sp, #16]
	mov	r1, r5
	ldr	r0, [r3, r4, lsl #2]	@ float
	bl	__aeabi_fsub
	ldr	r1, [sp, #20]	@ float
	bl	__aeabi_fmul
	mov	r1, r5
	bl	__aeabi_fadd
	mov	r2, #0
	str	r0, [r2, r4, lsl #2]	@ float
.L23:
	add	r4, r4, #1
	cmp	r4, #3
	bne	.L25
	mov	r4, #0
	ldr	r2, [sp, #36]
	ldr	r6, [sp, #24]
	mov	r0, r4
	ldr	r1, [r2, r6, lsl #2]
	ldr	r5, [sp, #28]
	bl	VectorCopy
	ldr	ip, [r7]
	ldr	r1, [r7, #4]
	add	r2, r6, #1
	mov	r0, r4
	ldr	r1, [r1, ip, lsl #2]
	str	r2, [sp, #32]
	bl	VectorCopy
	ldr	r2, [r7]
	add	r2, r2, #1
	str	r2, [r7]
	b	.L17
.L40:
	ldr	r3, .L47+12
	ldr	r0, [r3]
	b	.L1
.L45:
	mov	r2, #0
	ldr	r3, [sp, #12]
	ldr	r1, [r3, #4]	@ float
	str	r1, [r2, r4, lsl #2]	@ float
	b	.L23
.L46:
	mov	r2, #0
	ldr	r3, [sp, #12]
	ldr	r1, [r3, #4]
	add	r1, r1, #-2147483648
	str	r1, [r2, r4, lsl #2]	@ float
	b	.L23
.L44:
	ldm	r7, {r1, r2}
	ldr	r0, [sp, #4]
	ldr	r1, [r2, r1, lsl #2]
	bl	VectorCopy
	ldr	r2, [r7]
	add	r2, r2, #1
	str	r2, [r7]
	b	.L19
.L43:
	ldr	r2, [sp, #36]
	ldr	r0, [sp, #4]
	ldr	r1, [r2, r4, lsl #2]
	add	r4, r4, #1
	bl	VectorCopy
	str	r4, [sp, #32]
	b	.L18
.L42:
	ldr	r2, [sp, #36]
	ldr	r6, [sp, #4]
	ldr	r1, [r2, r4, lsl #2]
	mov	r0, r6
	bl	VectorCopy
	ldm	r7, {r1, r2}
	mov	r0, r6
	ldr	r1, [r2, r1, lsl #2]
	add	r4, r4, #1
	str	r4, [sp, #32]
	bl	VectorCopy
	ldr	r2, [r7]
	add	r2, r2, #1
	str	r2, [r7]
	b	.L17
.L21:
	ldr	r0, .L47+20
	bl	_printf
	ldr	r3, [sp]
	ldr	r0, [r3]
	b	.L1
.L13:
	mov	r0, r5
	mov	r2, #8
	add	r1, sp, #32
	bl	memcpy
	ldr	r3, .L47+24
	ldr	r0, [r3]
	b	.L1
.L41:
	bl	__stack_chk_fail
.L48:
	.align	2
.L47:
	.word	.LC1
	.word	SIDE_FRONT
	.word	SIDE_BACK
	.word	SIDE_ON
	.word	MAX_POINTS_ON_FIXED_WINDING
	.word	.LC0
	.word	SIDE_CROSS
	.size	VS_SplitWinding, .-VS_SplitWinding
	.comm	SIDE_ON,4,4
	.comm	SIDE_FRONT,4,4
	.comm	SIDE_CROSS,4,4
	.comm	SIDE_BACK,4,4
	.comm	MAX_POINTS_ON_FIXED_WINDING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
