// File: /workspace/github_c_makefile_star2_O2/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 0x3bb10b(%rip), %rax    # 0x40d838
movslq (%rax), %rcx
leaq 0x304181(%rip), %rdx    # 0x3568b8
movslq (%rdx), %rdx
imulq %rdx, %rcx
shrq $0x10, %rcx
movl %ecx, (%rax)
leaq 0x3bb0f9(%rip), %rax    # 0x40d844
movslq (%rax), %rsi
imulq %rdx, %rsi
shrq $0x10, %rsi
movl %esi, (%rax)
leaq 0x3bd4f5(%rip), %rax    # 0x40fc54
cvtsi2sdl (%rax), %xmm1
movsd 0x1cead(%rip), %xmm3    # 0x6f618
mulsd %xmm3, %xmm1
movsd %xmm1, 0x5a13f1(%rip)   # 0x5f3b68
leaq 0x3bd4da(%rip), %rax    # 0x40fc58
cvtsi2sdl (%rax), %xmm0
mulsd %xmm3, %xmm0
movsd %xmm0, 0x5a13f2(%rip)   # 0x5f3b80
cvtsi2sd %ecx, %xmm4
mulsd %xmm3, %xmm4
movsd %xmm4, 0x5a13d2(%rip)   # 0x5f3b70
cvtsi2sd %esi, %xmm5
movsd 0x1cee6(%rip), %xmm2    # 0x6f690
mulsd %xmm2, %xmm5
leaq 0x3ae837(%rip), %rax    # 0x400fec
cvtsi2sdl (%rax), %xmm6
leaq 0x3ae830(%rip), %rax    # 0x400ff0
cvtsi2sdl (%rax), %xmm7
mulsd %xmm7, %xmm4
mulsd %xmm6, %xmm1
addsd %xmm4, %xmm1
leaq 0x1e1279(%rip), %rax    # 0x233a50
cvtsi2sdl (%rax), %xmm4
movsd %xmm5, 0x5a13a5(%rip)   # 0x5f3b88
mulsd %xmm3, %xmm4
movsd 0x1cd79(%rip), %xmm3    # 0x6f568
mulsd %xmm3, %xmm1
addsd %xmm4, %xmm1
movsd %xmm1, 0x5a1379(%rip)   # 0x5f3b78
mulsd %xmm7, %xmm5
mulsd %xmm6, %xmm0
addsd %xmm5, %xmm0
leaq 0x1e1242(%rip), %rax    # 0x233a54
cvtsi2sdl (%rax), %xmm1
mulsd %xmm2, %xmm1
mulsd %xmm3, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x5a1366(%rip)   # 0x5f3b90
movl %edi, %eax
leaq 0x3ae7cd(%rip), %r12    # 0x401000
movss 0x1cb09(%rip), %xmm0    # 0x6f344
leaq 0x3b27be(%rip), %r13    # 0x405000
testl %eax, %eax
jle 0x5286f
cvtsi2ssl -0x4(%r12,%rax,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, -0x4(%r12,%rax,4)
cvtsi2ssl -0x4(%r13,%rax,4), %xmm1
mulss %xmm0, %xmm1
movss %xmm1, -0x4(%r13,%rax,4)
decq %rax
jmp 0x52842
leaq 0x3b679a(%rip), %rcx    # 0x409010
movzwl (%rcx), %eax
cmpw $0x2400, %ax            # imm = 0x2400
jb 0x52885
andw $0x0, (%rcx)
xorl %eax, %eax
leaq 0x3b6778(%rip), %r15    # 0x409004
movslq (%r15), %rsi
leaq 0x33f24a(%rip), %rcx    # 0x391ae0
cmpq $0x0, (%rcx,%rsi,8)
jne 0x528a3
andl $0x0, (%r15)
xorl %esi, %esi
xorl %edx, %edx
cmpl $0x0, 0x4bc68(%rip)     # 0x9e514
setne %dl
andl $0x0, 0x50(%rsp)
movzwl %ax, %edi
addl %edx, %edx
xorl %ebp, %ebp
xorl %ecx, %ecx
callq 0x5c910
movq %rax, %r14
testq %rax, %rax
je 0x528d8
movq (%r14), %rax
testq %rax, %rax
je 0x528d8
movl (%rax), %eax
movl %eax, 0x50(%rsp)
movl 0x5a116a(%rip), %eax    # 0x5f3a48
movl %eax, 0x54(%rsp)
andl $0x0, 0x58(%rsp)
andl $0x0, 0x7c(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x6c(%rsp)
leaq 0x3baf2d(%rip), %rax    # 0x40d828
leaq 0x3baf2a(%rip), %rcx    # 0x40d82c
movl (%rcx), %ecx
testl %ecx, %ecx
cmovgl %ecx, %ebp
movswl (%rax), %eax
cmpl %eax, %ebp
cmovgel %eax, %ebp
cvtsi2ss %eax, %xmm0
subl %ebp, %eax
cvtsi2ss %eax, %xmm1
divss %xmm0, %xmm1
movss %xmm1, 0x64(%rsp)
movss %xmm1, 0x60(%rsp)
movss %xmm1, 0x8(%rsp)
movss %xmm1, 0x5c(%rsp)
leaq 0x3b66c2(%rip), %rax    # 0x409000
movl (%rax), %eax
shrl $0x7, %eax
andl $0x3, %eax
leaq 0x1cc03(%rip), %rcx     # 0x6f550
movss (%rcx,%rax,4), %xmm0
leaq 0x391c7(%rip), %rcx     # 0x8bb20
movq (%rcx,%rax,8), %rax
movss %xmm0, 0x68(%rsp)
movl $0xbe2, %edi            # imm = 0xBE2
callq *(%rax)
testq %r14, %r14
je 0x529df
testb $0x2, 0x38(%r14)
je 0x529df
movslq (%r15), %rax
movq 0x40(%r14), %rcx
movzbl 0x8(%rcx), %ecx
cmpl %ecx, %eax
je 0x529df
leaq 0x5ef294(%rip), %rcx    # 0x641c20
movd (%rcx,%rax,4), %xmm0
xorps %xmm1, %xmm1
punpcklbw %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3],xmm0[4],xmm1[4],xmm0[5],xmm1[5],xmm0[6],xmm1[6],xmm0[7],xmm1[7]
punpcklwd %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1],xmm0[2],xmm1[2],xmm0[3],xmm1[3]
cvtdq2pd %xmm0, %xmm0
divpd 0x1ca18(%rip), %xmm0    # 0x6f3c0
cvtss2sd 0x8(%rsp), %xmm1
movzbl 0x2(%rcx,%rax,4), %eax
cvtsi2sd %eax, %xmm2
divsd 0x195d9(%rip), %xmm2    # 0x6bf98
mulsd %xmm1, %xmm2
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
mulpd %xmm0, %xmm1
cvtpd2ps %xmm1, %xmm0
movlpd %xmm0, 0x5c(%rsp)
cvtsd2ss %xmm2, %xmm0
movss %xmm0, 0x64(%rsp)
leaq 0x1cd2a(%rip), %rax     # 0x6f710
movq %rax, 0x80(%rsp)
leaq 0x5a10eb(%rip), %rax    # 0x5f3ae0
movq %rax, 0x88(%rsp)
andl $0x0, 0x90(%rsp)
andl $0x0, 0x98(%rsp)
leal 0x10(%rbx), %eax
movq 0x5dd1d9(%rip), %r14    # 0x62fbf0
cmpl 0x5dd1c7(%rip), %eax    # 0x62fbe4
jle 0x52a92
movl %eax, 0x5dd1bf(%rip)    # 0x62fbe4
movq 0x5dd1cc(%rip), %rdi    # 0x62fbf8
movq %r12, %rbp
movl %eax, %r12d
movq %r12, %rsi
shlq $0x4, %rsi
callq 0x6120
movq %rax, 0x5dd1b3(%rip)    # 0x62fbf8
movq 0x5dd19c(%rip), %rdi    # 0x62fbe8
leaq (,%r12,4), %r15
movq %r15, %rsi
callq 0x6120
movq %rax, 0x5dd185(%rip)    # 0x62fbe8
movq %r14, %rdi
movq %r15, %rsi
callq 0x6120
movq %rax, %r14
movq %rax, 0x5dd178(%rip)    # 0x62fbf0
movq 0x5dd181(%rip), %rdi    # 0x62fc00
imulq $0x14, %r12, %rsi
movq %rbp, %r12
callq 0x6120
movq %rax, 0x5dd16e(%rip)    # 0x62fc00
xorl %edx, %edx
testl %ebx, %ebx
movl $0x0, %eax
cmovgl %ebx, %eax
leaq 0x211fcb(%rip), %rcx    # 0x264a70
cmpq %rdx, %rax
je 0x52ab6
movl (%rcx,%rdx,4), %esi
movl %esi, (%r14,%rdx,4)
incq %rdx
jmp 0x52aa5
leal -0x1(%rbx), %edx
xorl %esi, %esi
pushq $0x3
popq %rdi
xorl %r8d, %r8d
movl %ebx, %ebp
cmpl %ebx, %esi
jge 0x52b53
movslq %esi, %r10
cmpl %edx, %esi
movl %r8d, %r9d
cmovll %edi, %r9d
cmpl %esi, (%rcx,%r10,4)
movslq (%r14,%r10,4), %r11
cmovgel %r8d, %r9d
testq %r11, %r11
js 0x52b49
movslq (%r14,%r11,4), %r8
movss (%r12,%r11,4), %xmm1
movss (%r12,%r8,4), %xmm0
subss %xmm1, %xmm0
movaps %xmm1, %xmm2
subss (%r12,%r10,4), %xmm2
movss (%r13,%r8,4), %xmm1
movss (%r13,%r11,4), %xmm3
subss %xmm3, %xmm1
subss (%r13,%r10,4), %xmm3
mulss %xmm2, %xmm1
mulss %xmm3, %xmm0
ucomiss %xmm1, %xmm0
jbe 0x52b31
orl $0x1, %r9d
jmp 0x52b49
ucomiss %xmm0, %xmm1
jbe 0x52b3c
orl $0x2, %r9d
jmp 0x52b49
movl %r8d, (%r14,%r10,4)
orl $-0x1, (%r14,%r11,4)
decl %ebp
decl %esi
incl %esi
movl %r9d, %r8d
jmp 0x52ac3
testl %r8d, %r8d
je 0x53289
movss (%r12), %xmm0
movss %xmm0, 0x5dd0a2(%rip)   # 0x62fc0c
movss %xmm0, 0x5dd096(%rip)   # 0x62fc08
xorl %edx, %edx
movq 0x5dd06d(%rip), %rcx    # 0x62fbe8
movaps %xmm0, %xmm1
xorl %esi, %esi
cmpq %rdx, %rax
je 0x52bbf
cmpl $0x0, (%r14,%rdx,4)
js 0x52bba
movss (%r12,%rdx,4), %xmm2
ucomiss %xmm2, %xmm1
jbe 0x52ba2
movss %xmm2, 0x5dd069(%rip)   # 0x62fc08
movaps %xmm2, %xmm1
ucomiss %xmm0, %xmm2
jbe 0x52bb2
movss %xmm2, 0x5dd05d(%rip)   # 0x62fc0c
movaps %xmm2, %xmm0
movslq %esi, %rdi
incl %esi
movl %edx, (%rcx,%rdi,4)
incq %rdx
jmp 0x52b80
cmpl $0x3, %r8d
jne 0x52c20
movl %ebp, %eax
cmpl $0x1, %eax
jbe 0x52cd3
sarl %eax
movl %ebp, %edx
subl %eax, %edx
xorl %esi, %esi
testl %edx, %edx
cmovlel %esi, %edx
cmpl %edx, %esi
je 0x52bc7
movl %esi, %edi
testl %edi, %edi
js 0x52c1c
movl %edi, %r8d
movslq (%rcx,%r8,4), %r9
movslq (%r14,%r9,4), %rbx
leal (%rax,%rdi), %r10d
movslq %r10d, %r10
movslq (%rcx,%r10,4), %r11
movslq (%r14,%r11,4), %r15
movss (%r13,%r15,4), %xmm0
ucomiss (%r13,%rbx,4), %xmm0
jae 0x52c1c
movl %r11d, (%rcx,%r8,4)
movl %r9d, (%rcx,%r10,4)
subl %eax, %edi
jmp 0x52be3
incl %esi
jmp 0x52bdd
movq 0x5dcfd9(%rip), %rax    # 0x62fc00
xorl %edx, %edx
testl %ebp, %ebp
movl $0x0, %esi
cmovgl %ebp, %esi
imulq $0x14, %rsi, %rsi
cmpq %rdx, %rsi
je 0x53272
movslq (%rcx), %rdi
cvtss2sd (%r12,%rdi,4), %xmm0
cvtss2sd (%r13,%rdi,4), %xmm1
mulsd 0x5a0f18(%rip), %xmm1   # 0x5f3b70
mulsd 0x5a0f08(%rip), %xmm0   # 0x5f3b68
addsd %xmm1, %xmm0
addsd 0x5a0f0c(%rip), %xmm0   # 0x5f3b78
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0xc(%rax,%rdx)
cvtss2sd (%r12,%rdi,4), %xmm0
cvtss2sd (%r13,%rdi,4), %xmm1
mulsd 0x5a0efd(%rip), %xmm1   # 0x5f3b88
mulsd 0x5a0eed(%rip), %xmm0   # 0x5f3b80
addsd %xmm1, %xmm0
addsd 0x5a0ef1(%rip), %xmm0   # 0x5f3b90
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x10(%rax,%rdx)
movss (%r12,%rdi,4), %xmm0
movss %xmm0, (%rax,%rdx)
movss (%r13,%rdi,4), %xmm0
movss %xmm0, 0x4(%rax,%rdx)
andl $0x0, 0x8(%rax,%rdx)
addq $0x14, %rdx
addq $0x4, %rcx
jmp 0x52c37
xorl %edi, %edi
testl %ebp, %ebp
cmovlel %edi, %ebp
movl $0x0, 0x4(%rsp)
movq %rbp, 0x30(%rsp)
cmpq %rbp, %rdi
je 0x53289
movq 0x5dcef1(%rip), %rax    # 0x62fbe8
movl (%rax,%rdi,4), %esi
movq 0x5dceef(%rip), %rax    # 0x62fbf0
movslq %esi, %r11
movl (%rax,%r11,4), %r15d
movss (%r13,%r11,4), %xmm0
movslq %r15d, %rbx
movss (%r13,%rbx,4), %xmm5
ucomiss %xmm5, %xmm0
jne 0x52d24
jnp 0x5326a
movl (%rax,%rbx,4), %r9d
movslq %r9d, %rcx
ucomiss (%r13,%rcx,4), %xmm5
jne 0x52d3e
jp 0x52d3e
movl %r9d, %edx
movl (%rax,%rcx,4), %r9d
jmp 0x52d41
movl %r15d, %edx
leaq (,%rbx,4), %r8
addq %r13, %r8
ucomiss %xmm5, %xmm0
movslq %edx, %r10
movl %edx, 0x8(%rsp)
jbe 0x52dcb
movslq %r9d, %rbp
movss (%r13,%rbp,4), %xmm1
ucomiss (%r13,%r10,4), %xmm1
movq 0x5dce89(%rip), %rax    # 0x62fbf8
jbe 0x52dd8
movl 0x4(%rsp), %esi
movl %esi, %ecx
movl %esi, %r14d
sarl $0x1f, %r14d
andl %esi, %r14d
shlq $0x4, %rcx
leaq (%rax,%rcx), %rdx
addq $-0x10, %rdx
movl %esi, %ecx
testl %ecx, %ecx
jle 0x530c2
movaps %xmm5, %xmm0
subss 0x4(%rdx), %xmm0
mulss 0x8(%rdx), %xmm0
addss (%rdx), %xmm0
movss (%r12,%rbx,4), %xmm1
ucomiss %xmm0, %xmm1
ja 0x530bf
movups (%rdx), %xmm0
movups %xmm0, 0x20(%rdx)
movss (%r8), %xmm5
addq $-0x10, %rdx
decl %ecx
jmp 0x52d8f
movl %esi, 0x14(%rsp)
movq 0x5dce22(%rip), %rax    # 0x62fbf8
jmp 0x52ddc
movl %esi, 0x14(%rsp)
movl 0x4(%rsp), %ecx
testl %ecx, %ecx
movl $0x0, %r14d
cmovgl %ecx, %r14d
cmpl %edx, %r15d
movq %rdi, 0x38(%rsp)
movq %rbx, 0x28(%rsp)
leaq 0xc(%rax), %rcx
je 0x52e1c
xorl %edx, %edx
cmpq %rdx, %r14
je 0x52e34
movl (%rcx), %esi
cmpl %r15d, %esi
je 0x52e31
cmpl 0x8(%rsp), %esi
je 0x52e31
incq %rdx
addq $0x10, %rcx
jmp 0x52e01
xorl %edx, %edx
cmpq %rdx, %r14
je 0x52e34
cmpl %r15d, (%rcx)
je 0x52e31
incq %rdx
addq $0x10, %rcx
jmp 0x52e1e
movl %edx, %r14d
ucomiss %xmm0, %xmm5
movl %r14d, %ebx
movq %r8, 0x40(%rsp)
movl 0x8(%rsp), %ecx
jbe 0x52f2f
movss (%r13,%r10,4), %xmm0
movslq %r9d, %rdx
ucomiss (%r13,%rdx,4), %xmm0
jbe 0x52f32
leal 0x1(%r14), %r12d
movl %ebx, %ebp
andl $-0x2, %ebp
shrl %r14d
shlq $0x5, %r14
orq $0x14, %r14
cmpq %r12, %rbp
ja 0x53082
movss -0x14(%rax,%r14), %xmm0
movss -0x10(%rax,%r14), %xmm2
movaps %xmm5, %xmm3
subss %xmm2, %xmm3
mulss -0xc(%rax,%r14), %xmm3
addss %xmm0, %xmm3
cmpl %ecx, %r15d
jne 0x52eb2
cmpq %rbp, %rbx
jne 0x52eb2
movss -0x4(%rax,%r14), %xmm1
movaps %xmm3, %xmm4
jmp 0x52ecd
movaps %xmm5, %xmm4
subss (%rax,%r14), %xmm4
movss -0x4(%rax,%r14), %xmm1
mulss 0x4(%rax,%r14), %xmm4
addss %xmm1, %xmm4
movss %xmm3, 0x20(%rsp)
movss %xmm4, 0x28(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x552da
movq 0x5dcd0e(%rip), %rax    # 0x62fbf8
movss 0x20(%rsp), %xmm0
movss %xmm0, -0x14(%rax,%r14)
movq 0x40(%rsp), %rcx
movss (%rcx), %xmm0
movss %xmm0, -0x10(%rax,%r14)
movss 0x28(%rsp), %xmm0
movss %xmm0, -0x4(%rax,%r14)
movss (%rcx), %xmm5
movss %xmm5, (%rax,%r14)
addq $0x2, %rbp
addq $0x20, %r14
movl 0x8(%rsp), %ecx
jmp 0x52e73
movslq %r9d, %rdx
movq %rdx, 0x8(%rsp)
movq %r10, 0x48(%rsp)
movl %r9d, 0x18(%rsp)
movl %r14d, %ecx
andl $0x7ffffffe, %ecx       # imm = 0x7FFFFFFE
movl %ecx, %r15d
shlq $0x4, %r15
movss (%rax,%r15), %xmm0
movss 0x4(%rax,%r15), %xmm2
movaps %xmm5, %xmm1
subss %xmm2, %xmm1
mulss 0x8(%rax,%r15), %xmm1
addss %xmm0, %xmm1
movaps %xmm1, %xmm3
movss %xmm1, 0x1c(%rsp)
orl $0x1, %r14d
shlq $0x4, %r14
movaps %xmm5, %xmm4
subss 0x4(%rax,%r14), %xmm4
movss (%rax,%r14), %xmm1
mulss 0x8(%rax,%r14), %xmm4
addss %xmm1, %xmm4
movss %xmm4, 0x20(%rsp)
leaq 0x50(%rsp), %rdi
movq %r11, %rbp
callq 0x552da
movq 0x8(%rsp), %r8
movq 0x40(%rsp), %rdx
movq 0x5dcc38(%rip), %rax    # 0x62fbf8
movss 0x1c(%rsp), %xmm0
movss %xmm0, (%rax,%r15)
movss (%rdx), %xmm0
movss %xmm0, 0x4(%rax,%r15)
movss 0x20(%rsp), %xmm0
movss %xmm0, (%rax,%r14)
movss (%rdx), %xmm0
movss %xmm0, 0x4(%rax,%r14)
movss (%r13,%r8,4), %xmm0
ucomiss (%r13,%rbp,4), %xmm0
jbe 0x53021
movq 0x48(%rsp), %rsi
movss (%r12,%rsi,4), %xmm0
shlq $0x2, %rsi
movq %rbx, %rcx
shlq $0x4, %rcx
movss %xmm0, (%rax,%rcx)
addq %r13, %rsi
movl 0x18(%rsp), %ecx
jmp 0x53042
movq 0x28(%rsp), %rcx
movss (%r12,%rcx,4), %xmm0
movq %rbx, %rcx
shlq $0x4, %rcx
movss %xmm0, (%rax,%rcx)
movq %rdx, %rsi
movl 0x14(%rsp), %ecx
movq %rbp, %r8
movq 0x30(%rsp), %rbp
movss (%rsi), %xmm1
shlq $0x4, %rbx
movss %xmm1, 0x4(%rax,%rbx)
movl %ecx, 0xc(%rax,%rbx)
movss (%r12,%r8,4), %xmm1
subss %xmm0, %xmm1
movss (%r13,%r8,4), %xmm0
subss (%rdx), %xmm0
divss %xmm0, %xmm1
movss %xmm1, 0x8(%rax,%rbx)
movq 0x38(%rsp), %rdi
jmp 0x5326a
movl 0x4(%rsp), %ecx
addl $-0x2, %ecx
movl %ecx, 0x4(%rsp)
movslq %ecx, %rcx
movq %rbx, %rdx
shlq $0x4, %rdx
addq %rdx, %rax
addq $0x20, %rax
leaq 0x3adf5b(%rip), %r12    # 0x401000
movq 0x30(%rsp), %rbp
cmpq %rcx, %rbx
jge 0x53078
movups (%rax), %xmm0
movups %xmm0, -0x20(%rax)
incq %rbx
addq $0x10, %rax
jmp 0x530aa
movl %ecx, %r14d
testb $0x1, %r14b
je 0x53195
movq %rdi, 0x38(%rsp)
movq %rbx, 0x28(%rsp)
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, 0x14(%rsp)
movaps %xmm5, %xmm4
subss 0x4(%rax,%rbx), %xmm4
movss (%rax,%rbx), %xmm1
mulss 0x8(%rax,%rbx), %xmm4
addss %xmm1, %xmm4
movss %xmm4, 0x1c(%rsp)
leaq 0x50(%rsp), %rdi
movq %rbp, 0x40(%rsp)
movq %r8, %rbp
movl %r9d, 0x18(%rsp)
movq %r10, 0x48(%rsp)
movq %r11, 0x20(%rsp)
callq 0x552da
movq 0x20(%rsp), %r11
movq 0x48(%rsp), %r10
movl 0x18(%rsp), %r9d
movq 0x5dcaa0(%rip), %rax    # 0x62fbf8
movss 0x14(%rsp), %xmm0
movss %xmm0, -0x10(%rax,%rbx)
movss (%rbp), %xmm0
movss %xmm0, -0xc(%rax,%rbx)
movss 0x1c(%rsp), %xmm0
movss %xmm0, 0x20(%rbx,%rax)
movss (%rbp), %xmm5
movq 0x40(%rsp), %rbp
movss %xmm5, 0x24(%rbx,%rax)
movq 0x28(%rsp), %rbx
movq 0x38(%rsp), %rdi
movl 0x8(%rsp), %edx
addl $0x2, 0x4(%rsp)
movss (%r12,%rbx,4), %xmm1
movss (%r12,%r10,4), %xmm2
movss (%r12,%rbp,4), %xmm3
movss (%r12,%r11,4), %xmm0
unpcklps %xmm3, %xmm0            # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
ucomiss %xmm2, %xmm1
unpcklps %xmm2, %xmm1            # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
subps %xmm1, %xmm0
movss (%r13,%rbp,4), %xmm1
movss (%r13,%r11,4), %xmm2
unpcklps %xmm1, %xmm2            # xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
movss (%r13,%r10,4), %xmm1
unpcklps %xmm1, %xmm5            # xmm5 = xmm5[0],xmm1[0],xmm5[1],xmm1[1]
subps %xmm5, %xmm2
divps %xmm2, %xmm0
seta %cl
cmpl %edx, %r15d
sete %dl
movaps %xmm0, %xmm1
shufps $0x55, %xmm0, %xmm1     # xmm1 = xmm1[1,1],xmm0[1,1]
ucomiss %xmm1, %xmm0
setae %sil
andb %dl, %sil
orb %cl, %sil
movzbl %sil, %ecx
addl %r14d, %ecx
leal 0x1(,%r14,2), %edx
subl %ecx, %edx
movslq %ecx, %rcx
shlq $0x4, %rcx
movl %r11d, 0xc(%rax,%rcx)
movss %xmm0, 0x8(%rax,%rcx)
movss (%r12,%rbx,4), %xmm0
movss %xmm0, (%rax,%rcx)
movss (%r13,%rbx,4), %xmm0
movss %xmm0, 0x4(%rax,%rcx)
movslq %edx, %rcx
shlq $0x4, %rcx
movl %r9d, 0xc(%rax,%rcx)
movss %xmm1, 0x8(%rax,%rcx)
movss (%r12,%r10,4), %xmm0
movss %xmm0, (%rax,%rcx)
movss (%r13,%r10,4), %xmm0
movss %xmm0, 0x4(%rax,%rcx)
movq 0x30(%rsp), %rbp
incq %rdi
jmp 0x52ce7
leaq 0x50(%rsp), %rsi
movl %ebp, 0x44(%rsi)
movl %ebp, 0x4c(%rsi)
movq %rax, 0x50(%rsi)
pushq $0x6
popq %rdi
callq 0x4727b
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq