// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/polymost.c
// Function: polymost_fillpolygon
void polymost_fillpolygon (int npoints)
{
	PTHead *pth;
	int i;
	unsigned short ptflags = 0;
	struct polymostdrawpolycall draw;

	globalx1 = mulscale16(globalx1,xyaspect);
	globaly2 = mulscale16(globaly2,xyaspect);
	gux = ((double)asm1)*(1.0/4294967296.0);
	gvx = ((double)asm2)*(1.0/4294967296.0);
	guy = ((double)globalx1)*(1.0/4294967296.0);
	gvy = ((double)globaly2)*(-1.0/4294967296.0);
	guo = (((double)xdim)*gux + ((double)ydim)*guy)*-.5 + ((double)globalposx)*(1.0/4294967296.0);
	gvo = (((double)xdim)*gvx + ((double)ydim)*gvy)*-.5 - ((double)globalposy)*(1.0/4294967296.0);

		//Convert int to float (in-place)
	for(i=npoints-1;i>=0;i--)
	{
		((float *)rx1)[i] = ((float)rx1[i])/4096.0;
		((float *)ry1)[i] = ((float)ry1[i])/4096.0;
	}

	if ((unsigned int)globalpicnum >= MAXTILES) globalpicnum = 0;
	if (!palookup[globalpal]) globalpal = 0;

	if (usehightile) ptflags |= PTH_HIGHTILE;

	draw.texture0 = 0;
	pth = PT_GetHead(globalpicnum, globalpal, ptflags, 0);
	if (pth && pth->pic[PTHPIC_BASE]) {
		draw.texture0 = pth->pic[ PTHPIC_BASE ]->glpic;
	}
	draw.texture1 = nulltexture;
	draw.alphacut = 0.f;
	draw.fogcolour.r = draw.fogcolour.g = draw.fogcolour.b = draw.fogcolour.a = 0.f;
	draw.fogdensity = 0.f;

	draw.colour.r = draw.colour.g = draw.colour.b =
		((float)(numpalookups-min(max(globalshade,0),numpalookups)))/((float)numpalookups);
	switch ((globalorientation>>7)&3) {
		case 0:
		case 1: draw.colour.a = 1.0; glfunc.glDisable(GL_BLEND); break;
		case 2: draw.colour.a = 0.66; glfunc.glEnable(GL_BLEND); break;
		case 3: draw.colour.a = 0.33; glfunc.glEnable(GL_BLEND); break;
	}
	if (pth && (pth->flags & PTH_HIGHTILE) && (globalpal != pth->repldef->palnum)) {
		// apply tinting for replaced textures
		draw.colour.r *= (float)hictinting[globalpal].r / 255.0;
		draw.colour.g *= (float)hictinting[globalpal].g / 255.0;
		draw.colour.b *= (float)hictinting[globalpal].b / 255.0;
	}

	draw.modelview = &gidentitymat[0][0];
	draw.projection = &gorthoprojmat[0][0];

	draw.indexbuffer = 0;
	draw.elementbuffer = 0;
	tessectrap((float *)rx1,(float *)ry1,xb1,npoints,&draw);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %edi, %ebx
leaq 0x3b8fdc(%rip), %rax    # 0x413838
movslq (%rax), %rcx
leaq 0x302052(%rip), %rdx    # 0x35c8b8
movslq (%rdx), %rdx
imulq %rdx, %rcx
shrq $0x10, %rcx
movl %ecx, (%rax)
leaq 0x3b8fca(%rip), %rax    # 0x413844
movslq (%rax), %rsi
imulq %rdx, %rsi
shrq $0x10, %rsi
movl %esi, (%rax)
leaq 0x3bb3c6(%rip), %rax    # 0x415c54
cvtsi2sdl (%rax), %xmm1
movsd 0x1eb2e(%rip), %xmm3    # 0x793c8
mulsd %xmm3, %xmm1
movsd %xmm1, 0x59f2c2(%rip)   # 0x5f9b68
leaq 0x3bb3ab(%rip), %rax    # 0x415c58
cvtsi2sdl (%rax), %xmm0
mulsd %xmm3, %xmm0
movsd %xmm0, 0x59f2c3(%rip)   # 0x5f9b80
cvtsi2sd %ecx, %xmm4
mulsd %xmm3, %xmm4
movsd %xmm4, 0x59f2a3(%rip)   # 0x5f9b70
cvtsi2sd %esi, %xmm5
movsd 0x1eb77(%rip), %xmm2    # 0x79450
leaq 0x3ac70c(%rip), %rax    # 0x406fec
cvtsi2sdl (%rax), %xmm6
mulsd %xmm2, %xmm5
leaq 0x3ac701(%rip), %rax    # 0x406ff0
cvtsi2sdl (%rax), %xmm7
movsd %xmm5, 0x59f28d(%rip)   # 0x5f9b88
mulsd %xmm7, %xmm4
mulsd %xmm6, %xmm1
addsd %xmm4, %xmm1
leaq 0x1df142(%rip), %rax    # 0x239a50
xorps %xmm4, %xmm4
cvtsi2sdl (%rax), %xmm4
mulsd %xmm3, %xmm4
movsd 0x1e9cf(%rip), %xmm3    # 0x792f0
mulsd %xmm3, %xmm1
addsd %xmm4, %xmm1
movsd %xmm1, 0x59f247(%rip)   # 0x5f9b78
mulsd %xmm7, %xmm5
mulsd %xmm6, %xmm0
addsd %xmm5, %xmm0
leaq 0x1df110(%rip), %rax    # 0x239a54
xorps %xmm1, %xmm1
cvtsi2sdl (%rax), %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm3, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x59f231(%rip)   # 0x5f9b90
movl %edi, %r15d
testl %edi, %edi
jle 0x5a9af
leaq 0x1(%r15), %rax
leaq 0x3ac68f(%rip), %rcx    # 0x407000
movss 0x1e96b(%rip), %xmm0    # 0x792e4
leaq 0x3b0680(%rip), %rdx    # 0x40b000
xorps %xmm1, %xmm1
cvtsi2ssl -0x8(%rcx,%rax,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, -0x8(%rcx,%rax,4)
xorps %xmm1, %xmm1
cvtsi2ssl -0x8(%rdx,%rax,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, -0x8(%rdx,%rax,4)
decq %rax
cmpq $0x1, %rax
jg 0x5a980
leaq 0x3b465a(%rip), %rax    # 0x40f010
cmpw $0x2400, (%rax)         # imm = 0x2400
jb 0x5a9c2
movw $0x0, (%rax)
leaq 0x3b463b(%rip), %r12    # 0x40f004
movslq (%r12), %rcx
leaq 0x33d10c(%rip), %rdx    # 0x397ae0
cmpq $0x0, (%rdx,%rcx,8)
jne 0x5a9e3
movl $0x0, (%r12)
xorl %edx, %edx
cmpl $0x0, 0x49b28(%rip)     # 0xa4514
setne %dl
movl $0x0, 0x50(%rsp)
movswl (%rax), %edi
movl (%r12), %esi
addl %edx, %edx
xorl %ebp, %ebp
xorl %ecx, %ecx
callq 0x657d2
movq %rax, %r14
testq %rax, %rax
je 0x5aa1f
movq (%r14), %rax
testq %rax, %rax
je 0x5aa1f
movl (%rax), %eax
movl %eax, 0x50(%rsp)
movl 0x59f023(%rip), %eax    # 0x5f9a48
movl %eax, 0x54(%rsp)
movl %ebp, 0x58(%rsp)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x6c(%rsp)
movl %ebp, 0x7c(%rsp)
leaq 0x3b8de6(%rip), %rax    # 0x413828
leaq 0x3b8de3(%rip), %rcx    # 0x41382c
movl (%rcx), %ecx
testl %ecx, %ecx
cmovgl %ecx, %ebp
movswl (%rax), %eax
cmpl %eax, %ebp
cmovgel %eax, %ebp
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
subl %ebp, %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
divss %xmm0, %xmm1
movss %xmm1, 0x64(%rsp)
movss %xmm1, 0x60(%rsp)
movss %xmm1, 0x10(%rsp)
movss %xmm1, 0x5c(%rsp)
leaq 0x3b4575(%rip), %rax    # 0x40f000
movl (%rax), %eax
shrl $0x7, %eax
andl $0x3, %eax
leaq 0x1ea46(%rip), %rcx     # 0x794e0
movss (%rcx,%rax,4), %xmm0
leaq 0x37062(%rip), %rcx     # 0x91b08
movq (%rcx,%rax,8), %rax
movss %xmm0, 0x68(%rsp)
movl $0xbe2, %edi            # imm = 0xBE2
callq *(%rax)
testq %r14, %r14
je 0x5ab45
testb $0x2, 0x38(%r14)
je 0x5ab45
movslq (%r12), %rax
movq 0x40(%r14), %rcx
movzbl 0x8(%rcx), %ecx
cmpl %ecx, %eax
je 0x5ab45
leaq 0x5ed152(%rip), %rcx    # 0x647c30
movzbl (%rcx,%rax,4), %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movsd 0x1b467(%rip), %xmm1    # 0x75f58
divsd %xmm1, %xmm0
cvtss2sd 0x10(%rsp), %xmm2
mulsd %xmm2, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x5c(%rsp)
movzbl 0x1(%rcx,%rax,4), %edx
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
divsd %xmm1, %xmm0
mulsd %xmm2, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x60(%rsp)
movzbl 0x2(%rcx,%rax,4), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd %xmm1, %xmm0
mulsd %xmm2, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x64(%rsp)
leaq 0x1ea04(%rip), %rax     # 0x79550
movq %rax, 0x80(%rsp)
leaq 0x59ef85(%rip), %rax    # 0x5f9ae0
movq %rax, 0x88(%rsp)
xorl %ebp, %ebp
movl %ebp, 0x90(%rsp)
movl %ebp, 0x98(%rsp)
leal 0x10(%rbx), %eax
cmpl 0x5db078(%rip), %eax    # 0x635bf4
jle 0x5abe8
movl %eax, 0x5db070(%rip)    # 0x635bf4
movq 0x5db07d(%rip), %rdi    # 0x635c08
movl %eax, %r14d
movq %r14, %rsi
shlq $0x4, %rsi
callq 0x6120
movq %rax, 0x5db067(%rip)    # 0x635c08
movq 0x5db050(%rip), %rdi    # 0x635bf8
shlq $0x2, %r14
movq %r14, %rsi
callq 0x6120
movq %rax, 0x5db03d(%rip)    # 0x635bf8
movq 0x5db03e(%rip), %rdi    # 0x635c00
movq %r14, %rsi
callq 0x6120
movq %rax, 0x5db02f(%rip)    # 0x635c00
movq 0x5db038(%rip), %rdi    # 0x635c10
leaq (%r14,%r14,4), %rsi
callq 0x6120
movq %rax, 0x5db028(%rip)    # 0x635c10
movl %ebx, %eax
testl %ebx, %ebx
jle 0x5acce
movq 0x5db007(%rip), %rax    # 0x635c00
xorl %edx, %edx
leaq 0x20fe6e(%rip), %rcx    # 0x26aa70
movl (%rcx,%rdx,4), %esi
movl %esi, (%rax,%rdx,4)
incq %rdx
cmpq %rdx, %r15
jne 0x5ac02
testl %ebx, %ebx
jle 0x5acca
movq 0x5dafe1(%rip), %rdx    # 0x635c00
leal -0x1(%rbx), %esi
xorl %ebp, %ebp
movl $0x3, %edi
leaq 0x3ac3d0(%rip), %r8     # 0x407000
leaq 0x3b03c9(%rip), %r9     # 0x40b000
movl %ebx, %eax
xorl %r10d, %r10d
movl %ebp, %r12d
movslq %r10d, %r11
cmpl %esi, %r11d
cmovll %edi, %ebp
cmpl %r11d, (%rcx,%r11,4)
movslq (%rdx,%r11,4), %r14
cmovgel %r12d, %ebp
testq %r14, %r14
js 0x5acbc
movslq (%rdx,%r14,4), %r12
movss (%r8,%r14,4), %xmm1
movss (%r8,%r12,4), %xmm0
subss %xmm1, %xmm0
movaps %xmm1, %xmm2
subss (%r8,%r11,4), %xmm2
movss (%r9,%r12,4), %xmm1
movss (%r9,%r14,4), %xmm3
subss %xmm3, %xmm1
subss (%r9,%r11,4), %xmm3
mulss %xmm2, %xmm1
mulss %xmm3, %xmm0
ucomiss %xmm1, %xmm0
jbe 0x5ac9e
orl $0x1, %ebp
jmp 0x5acbc
ucomiss %xmm0, %xmm1
jbe 0x5aca8
orl $0x2, %ebp
jmp 0x5acbc
movl %r12d, (%rdx,%r11,4)
movl $0xffffffff, (%rdx,%r14,4) # imm = 0xFFFFFFFF
decl %eax
decl %r11d
movl %r11d, %r10d
incl %r10d
cmpl %ebx, %r10d
jl 0x5ac3c
jmp 0x5acce
xorl %ebp, %ebp
movl %ebx, %eax
testl %ebp, %ebp
je 0x5b4c7
leaq 0x3ac323(%rip), %r10    # 0x407000
movss (%r10), %xmm0
movss %xmm0, 0x5daf32(%rip)   # 0x635c1c
movss %xmm0, 0x5daf26(%rip)   # 0x635c18
testl %ebx, %ebx
jle 0x5ad48
movq 0x5daf03(%rip), %rcx    # 0x635c00
movq 0x5daef4(%rip), %rdx    # 0x635bf8
xorl %esi, %esi
xorl %edi, %edi
movaps %xmm0, %xmm1
cmpl $0x0, (%rcx,%rsi,4)
js 0x5ad40
movss (%r10,%rsi,4), %xmm2
ucomiss %xmm2, %xmm0
jbe 0x5ad27
movss %xmm2, 0x5daef4(%rip)   # 0x635c18
movaps %xmm2, %xmm0
ucomiss %xmm1, %xmm2
jbe 0x5ad37
movss %xmm2, 0x5daee8(%rip)   # 0x635c1c
movaps %xmm2, %xmm1
movslq %edi, %r8
incl %edi
movl %esi, (%rdx,%r8,4)
incq %rsi
cmpq %rsi, %r15
jne 0x5ad0b
cmpl $0x3, %ebp
jne 0x5b3e4
cmpl $0x2, %eax
jb 0x5adbf
movq 0x5daea3(%rip), %rcx    # 0x635c00
movq 0x5dae94(%rip), %rdx    # 0x635bf8
leaq 0x3b0295(%rip), %rsi    # 0x40b000
movl %eax, %edi
sarl %edi
movl %eax, %r8d
subl %edi, %r8d
jle 0x5adba
xorl %r9d, %r9d
movl %r9d, %ebx
movl %ebx, %r10d
movslq (%rdx,%r10,4), %r11
movslq (%rcx,%r11,4), %r15
addl %edi, %ebx
movslq %ebx, %rbx
movslq (%rdx,%rbx,4), %r14
movslq (%rcx,%r14,4), %r12
movss (%rsi,%r12,4), %xmm0
ucomiss (%rsi,%r15,4), %xmm0
jae 0x5adb2
movl %r14d, (%rdx,%r10,4)
movl %r11d, (%rdx,%rbx,4)
subl %edi, %r10d
movl %r10d, %ebx
jns 0x5ad7d
incl %r9d
cmpl %r8d, %r9d
jne 0x5ad7a
cmpl $0x2, %edi
jae 0x5ad6d
testl %eax, %eax
leaq 0x3ac238(%rip), %rdi    # 0x407000
jle 0x5b4c7
movl %eax, %esi
xorl %r12d, %r12d
leaq 0x3b0226(%rip), %r8     # 0x40b000
xorl %r9d, %r9d
movq %rsi, 0x40(%rsp)
movq 0x5dae0f(%rip), %rax    # 0x635bf8
movl (%rax,%r12,4), %ebx
movq 0x5dae0c(%rip), %rax    # 0x635c00
movslq %ebx, %r13
movl (%rax,%r13,4), %r15d
movss (%r8,%r13,4), %xmm0
movslq %r15d, %rbp
movss (%r8,%rbp,4), %xmm5
ucomiss %xmm5, %xmm0
jne 0x5ae15
jnp 0x5b3d3
movl (%rax,%rbp,4), %edx
movslq %edx, %rcx
ucomiss (%r8,%rcx,4), %xmm5
jne 0x5ae2c
jp 0x5ae2c
movl %edx, %r11d
movl (%rax,%rcx,4), %edx
jmp 0x5ae2f
movl %r15d, %r11d
movl %r9d, %eax
leaq (%r8,%rbp,4), %r10
ucomiss %xmm5, %xmm0
movslq %edx, %r14
jbe 0x5aebb
movslq %r11d, %rcx
movss (%r8,%r14,4), %xmm1
movq %rcx, 0x30(%rsp)
ucomiss (%r8,%rcx,4), %xmm1
jbe 0x5aebb
movq %r14, 0x10(%rsp)
movl %r9d, %r14d
testl %r9d, %r9d
jle 0x5b22f
movq 0x5dad9d(%rip), %rcx    # 0x635c08
movq %rax, %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
addq $-0x10, %rcx
movss (%r8,%rbp,4), %xmm0
subss 0x4(%rcx), %xmm0
mulss 0x8(%rcx), %xmm0
addss (%rcx), %xmm0
movss (%rdi,%rbp,4), %xmm1
ucomiss %xmm0, %xmm1
ja 0x5b22c
movups (%rcx), %xmm0
movups %xmm0, 0x20(%rcx)
leaq -0x1(%rax), %rdx
addq $-0x10, %rcx
cmpq $0x1, %rax
movq %rdx, %rax
jg 0x5ae79
xorl %r14d, %r14d
jmp 0x5b22f
cmpl %r11d, %r15d
movl %edx, 0x20(%rsp)
movl %ebx, 0x1c(%rsp)
je 0x5aef4
testl %r9d, %r9d
jle 0x5af1b
movq 0x5dad34(%rip), %rcx    # 0x635c08
addq $0xc, %rcx
xorl %ebx, %ebx
movl (%rcx), %edx
cmpl %r15d, %edx
je 0x5af1d
cmpl %r11d, %edx
je 0x5af1d
incq %rbx
addq $0x10, %rcx
cmpq %rbx, %rax
jne 0x5aeda
jmp 0x5af17
testl %r9d, %r9d
jle 0x5af1b
movq 0x5dad08(%rip), %rcx    # 0x635c08
addq $0xc, %rcx
xorl %ebx, %ebx
cmpl %r15d, (%rcx)
je 0x5af1d
incq %rbx
addq $0x10, %rcx
cmpq %rbx, %rax
jne 0x5af06
movl %eax, %ebx
jmp 0x5af1d
xorl %ebx, %ebx
movl %r9d, 0xc(%rsp)
movl %ebx, %eax
andl $0x7ffffffe, %eax       # imm = 0x7FFFFFFE
ucomiss %xmm0, %xmm5
jbe 0x5b097
movslq %r11d, %rcx
movss (%r8,%rcx,4), %xmm0
ucomiss (%r8,%r14,4), %xmm0
jbe 0x5b097
movq %r12, 0x20(%rsp)
leal 0x1(%rbx), %ecx
cmpl %ecx, %eax
ja 0x5b042
movl %eax, %r13d
movl %ebx, %eax
movq %rax, 0x28(%rsp)
movl %ecx, %eax
movq %rax, 0x30(%rsp)
movl %ebx, %r14d
shrl %r14d
andl $0x3fffffff, %r14d      # imm = 0x3FFFFFFF
shlq $0x5, %r14
orq $0x14, %r14
movq %r10, %rbp
movss (%r10), %xmm5
movq 0x5dac7d(%rip), %rax    # 0x635c08
movss -0x14(%rax,%r14), %xmm0
movss -0x10(%rax,%r14), %xmm2
movaps %xmm5, %xmm3
subss %xmm2, %xmm3
mulss -0xc(%rax,%r14), %xmm3
addss %xmm0, %xmm3
movl %r11d, %r12d
cmpl %r11d, %r15d
jne 0x5afbd
movaps %xmm3, %xmm4
cmpq %r13, 0x28(%rsp)
je 0x5afd4
movaps %xmm5, %xmm4
subss (%rax,%r14), %xmm4
mulss 0x4(%rax,%r14), %xmm4
addss -0x4(%rax,%r14), %xmm4
movss -0x4(%rax,%r14), %xmm1
movss %xmm3, 0x38(%rsp)
movss %xmm4, 0x10(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x5d74b
movq 0x5dac10(%rip), %rax    # 0x635c08
movss 0x38(%rsp), %xmm0
movss %xmm0, -0x14(%rax,%r14)
movq %rbp, %r10
movss (%rbp), %xmm0
movss %xmm0, -0x10(%rax,%r14)
movss 0x10(%rsp), %xmm0
movss %xmm0, -0x4(%rax,%r14)
movss (%rbp), %xmm0
movss %xmm0, (%rax,%r14)
addq $0x2, %r13
addq $0x20, %r14
cmpq 0x30(%rsp), %r13
movl %r12d, %r11d
jbe 0x5af7c
movl 0xc(%rsp), %r9d
addl $-0x2, %r9d
cmpl %r9d, %ebx
jge 0x5b20f
movq 0x5dabad(%rip), %rax    # 0x635c08
movl %ebx, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
addq $0x20, %rax
leaq 0x3abf91(%rip), %rdi    # 0x407000
movq 0x40(%rsp), %rsi
leaq 0x3aff85(%rip), %r8     # 0x40b000
movq 0x20(%rsp), %r12
movups (%rax), %xmm0
movups %xmm0, -0x20(%rax)
incl %ebx
addq $0x10, %rax
cmpl %ebx, %r9d
jg 0x5b080
jmp 0x5b3d3
movl %r11d, 0x4c(%rsp)
movq 0x5dab65(%rip), %rcx    # 0x635c08
movq %r14, 0x10(%rsp)
movl %eax, %r14d
shlq $0x4, %r14
movss 0x4(%rcx,%r14), %xmm2
movaps %xmm5, %xmm1
subss %xmm2, %xmm1
mulss 0x8(%rcx,%r14), %xmm1
movss (%rcx,%r14), %xmm0
addss %xmm0, %xmm1
movaps %xmm1, %xmm3
movss %xmm1, 0x28(%rsp)
movl %ebx, %r15d
orl $0x1, %r15d
shlq $0x4, %r15
movaps %xmm5, %xmm4
subss 0x4(%rcx,%r15), %xmm4
movss (%rcx,%r15), %xmm1
mulss 0x8(%rcx,%r15), %xmm4
addss %xmm1, %xmm4
movss %xmm4, 0x30(%rsp)
leaq 0x50(%rsp), %rdi
movq %r13, 0x38(%rsp)
movq %r10, %r13
callq 0x5d74b
leaq 0x3afee4(%rip), %r8     # 0x40b000
movq 0x5daae5(%rip), %rax    # 0x635c08
movss 0x28(%rsp), %xmm0
movss %xmm0, (%rax,%r14)
movss (%r13), %xmm0
movss %xmm0, 0x4(%rax,%r14)
movss 0x30(%rsp), %xmm0
movss %xmm0, (%rax,%r15)
movss (%r13), %xmm0
movss %xmm0, 0x4(%rax,%r15)
movq 0x10(%rsp), %rcx
movss (%r8,%rcx,4), %xmm0
movq 0x38(%rsp), %rcx
ucomiss (%r8,%rcx,4), %xmm0
movl %ebx, %ecx
jbe 0x5b1a1
movslq 0x4c(%rsp), %rdx
leaq 0x3abe86(%rip), %rdi    # 0x407000
movss (%rdi,%rdx,4), %xmm0
shlq $0x2, %rdx
movq %rcx, %rsi
shlq $0x4, %rsi
movss %xmm0, (%rax,%rsi)
addq %r8, %rdx
movq %rcx, %rsi
movl 0xc(%rsp), %r9d
movl 0x20(%rsp), %r11d
jmp 0x5b1c9
leaq 0x3abe58(%rip), %rdi    # 0x407000
movss (%rdi,%rbp,4), %xmm0
movq %rcx, %rdx
shlq $0x4, %rdx
movss %xmm0, (%rax,%rdx)
movq %r13, %rdx
movq %rcx, %rsi
movl 0x1c(%rsp), %r11d
movl 0xc(%rsp), %r9d
movss (%rdx), %xmm0
shlq $0x4, %rsi
movss %xmm0, 0x4(%rax,%rsi)
movl %r11d, 0xc(%rax,%rsi)
shlq $0x4, %rcx
movslq 0xc(%rax,%rcx), %rdx
movss (%rdi,%rdx,4), %xmm0
subss (%rax,%rcx), %xmm0
movss (%r8,%rdx,4), %xmm1
subss (%r13), %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x8(%rax,%rcx)
movq 0x40(%rsp), %rsi
jmp 0x5b3d3
leaq 0x3abdea(%rip), %rdi    # 0x407000
movq 0x40(%rsp), %rsi
leaq 0x3afdde(%rip), %r8     # 0x40b000
movq 0x20(%rsp), %r12
jmp 0x5b3d3
movl %eax, %r14d
testb $0x1, %r14b
je 0x5b30b
movss (%r10), %xmm5
movq 0x5da9c3(%rip), %rax    # 0x635c08
movslq %r14d, %rbx
shlq $0x4, %rbx
movss -0x10(%rax,%rbx), %xmm0
movss -0xc(%rax,%rbx), %xmm2
movaps %xmm5, %xmm1
subss %xmm2, %xmm1
mulss -0x8(%rax,%rbx), %xmm1
addss %xmm0, %xmm1
movaps %xmm1, %xmm3
movss %xmm1, 0x1c(%rsp)
movaps %xmm5, %xmm4
subss 0x4(%rax,%rbx), %xmm4
movss (%rax,%rbx), %xmm1
mulss 0x8(%rax,%rbx), %xmm4
addss %xmm1, %xmm4
movss %xmm4, 0x28(%rsp)
leaq 0x50(%rsp), %rdi
movl %r9d, 0xc(%rsp)
movq %r13, 0x38(%rsp)
movq %r10, %r13
movq %r12, 0x20(%rsp)
movl %r11d, %r12d
callq 0x5d74b
movl %r12d, %r11d
movq 0x20(%rsp), %r12
movl 0xc(%rsp), %r9d
leaq 0x3afd3d(%rip), %r8     # 0x40b000
movq 0x40(%rsp), %rsi
leaq 0x3abd31(%rip), %rdi    # 0x407000
movq 0x5da932(%rip), %rax    # 0x635c08
movss 0x1c(%rsp), %xmm0
movss %xmm0, -0x10(%rax,%rbx)
movss (%r13), %xmm0
movss %xmm0, -0xc(%rax,%rbx)
movss 0x28(%rsp), %xmm0
movss %xmm0, 0x20(%rbx,%rax)
movss (%r13), %xmm0
movq 0x38(%rsp), %r13
movss %xmm0, 0x24(%rbx,%rax)
addl $0x2, %r9d
movss (%rdi,%r13,4), %xmm0
movss (%rdi,%rbp,4), %xmm2
subss %xmm2, %xmm0
movss (%r8,%r13,4), %xmm1
subss (%r8,%rbp,4), %xmm1
divss %xmm1, %xmm0
movq 0x10(%rsp), %r10
movss (%rdi,%r10,4), %xmm1
movq 0x30(%rsp), %rbx
movss (%rdi,%rbx,4), %xmm3
subss %xmm3, %xmm1
movss (%r8,%r10,4), %xmm4
subss (%r8,%rbx,4), %xmm4
divss %xmm4, %xmm1
ucomiss %xmm3, %xmm2
seta %al
cmpl %r11d, %r15d
sete %cl
ucomiss %xmm1, %xmm0
setae %dl
andb %cl, %dl
orb %al, %dl
movzbl %dl, %eax
addl %r14d, %eax
leal 0x1(,%r14,2), %ecx
subl %eax, %ecx
movq 0x5da884(%rip), %rdx    # 0x635c08
cltq
shlq $0x4, %rax
movl %r13d, 0xc(%rdx,%rax)
movss %xmm0, 0x8(%rdx,%rax)
movss (%rdi,%rbp,4), %xmm0
movss %xmm0, (%rdx,%rax)
movss (%r8,%rbp,4), %xmm0
movss %xmm0, 0x4(%rdx,%rax)
movslq %ecx, %rax
shlq $0x4, %rax
movl %r10d, 0xc(%rdx,%rax)
movss %xmm1, 0x8(%rdx,%rax)
movss (%rdi,%rbx,4), %xmm0
movss %xmm0, (%rdx,%rax)
movss (%r8,%rbx,4), %xmm0
movss %xmm0, 0x4(%rdx,%rax)
incq %r12
cmpq %rsi, %r12
jne 0x5ade2
jmp 0x5b4c7
testl %eax, %eax
jle 0x5b4a7
movq 0x5da805(%rip), %rcx    # 0x635bf8
movq 0x5da816(%rip), %rdx    # 0x635c10
movl %eax, %esi
addq $0x10, %rdx
xorl %edi, %edi
leaq 0x3afbf7(%rip), %r8     # 0x40b000
movslq (%rcx,%rdi,4), %r9
xorps %xmm0, %xmm0
cvtss2sd (%r10,%r9,4), %xmm0
xorps %xmm1, %xmm1
cvtss2sd (%r8,%r9,4), %xmm1
mulsd 0x59e749(%rip), %xmm1   # 0x5f9b70
mulsd 0x59e739(%rip), %xmm0   # 0x5f9b68
addsd %xmm1, %xmm0
addsd 0x59e73d(%rip), %xmm0   # 0x5f9b78
cvtsd2ss %xmm0, %xmm0
movss %xmm0, -0x4(%rdx)
xorps %xmm0, %xmm0
cvtss2sd (%r10,%r9,4), %xmm0
xorps %xmm1, %xmm1
cvtss2sd (%r8,%r9,4), %xmm1
mulsd 0x59e72a(%rip), %xmm1   # 0x5f9b88
mulsd 0x59e71a(%rip), %xmm0   # 0x5f9b80
addsd %xmm1, %xmm0
addsd 0x59e71e(%rip), %xmm0   # 0x5f9b90
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%rdx)
movss (%r10,%r9,4), %xmm0
movss %xmm0, -0x10(%rdx)
movss (%r8,%r9,4), %xmm0
movss %xmm0, -0xc(%rdx)
movl $0x0, -0x8(%rdx)
incq %rdi
addq $0x14, %rdx
cmpq %rdi, %rsi
jne 0x5b409
leaq 0x50(%rsp), %rsi
movl %eax, 0x44(%rsi)
movl %eax, 0x4c(%rsi)
movq 0x5da757(%rip), %rax    # 0x635c10
movq %rax, 0x50(%rsi)
movl $0x6, %edi
callq 0x4e5ea
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq