// File: /workspace/github_cpp_makefile_star2_O1/FreeSlave[P]vhlt/hlrad/qradutil.cpp
// Function: FindFacePositions(int)
void FindFacePositions (int facenum)
	// this function must be called after g_face_offset and g_face_centroids and g_edgeshare have been calculated
{
	dface_t *f;
	positionmap_t *map;
	texinfo_t *ti;
	vec3_t v;
	const vec3_t v_up = {0, 0, 1};
	vec_t density;
	vec_t texmins[2], texmaxs[2];
	int imins[2], imaxs[2];
	int is, it;
	int x;
	int k;

	f = &g_dfaces[facenum];
	map = &g_face_positions[facenum];
	map->valid = true;
	map->facenum = facenum;
	map->facewinding = NULL;
	map->facewindingwithoffset = NULL;
	map->texwinding = NULL;
	map->grid = NULL;
	
	ti = &g_texinfo[f->texinfo];
	if (ti->flags & TEX_SPECIAL)
	{
		map->valid = false;
		return;
	}

	VectorCopy (g_face_offset[facenum], map->face_offset);
	VectorCopy (g_face_centroids[facenum], map->face_centroid);
	TranslateWorldToTex (facenum, map->worldtotex);
	if (!InvertMatrix (map->worldtotex, map->textoworld))
	{
		map->valid = false;
		return;
	}
	
	map->facewinding = new Winding (*f);
	map->faceplane = *getPlaneFromFace (f);
	map->facewindingwithoffset = new Winding (map->facewinding->m_NumPoints);
	for (x = 0; x < map->facewinding->m_NumPoints; x++)
	{
		VectorAdd (map->facewinding->m_Points[x], map->face_offset, map->facewindingwithoffset->m_Points[x]);
	}
	map->faceplanewithoffset = map->faceplane;
	map->faceplanewithoffset.dist = map->faceplane.dist + DotProduct (map->face_offset, map->faceplane.normal);

	map->texwinding = new Winding (map->facewinding->m_NumPoints);
	for (x = 0; x < map->facewinding->m_NumPoints; x++)
	{
		ApplyMatrix (map->worldtotex, map->facewinding->m_Points[x], map->texwinding->m_Points[x]);
		map->texwinding->m_Points[x][2] = 0.0;
	}
	map->texwinding->RemoveColinearPoints ();
	VectorCopy (v_up, map->texplane.normal);
	if (CalcMatrixSign (map->worldtotex) < 0.0)
	{
		map->texplane.normal[2] *= -1;
	}
	map->texplane.dist = 0.0;
	if (map->texwinding->m_NumPoints == 0)
	{
		delete map->facewinding;
		map->facewinding = NULL;
		delete map->facewindingwithoffset;
		map->facewindingwithoffset = NULL;
		delete map->texwinding;
		map->texwinding = NULL;
		map->valid = false;
		return;
	}
	VectorSubtract (map->face_centroid, map->face_offset, v);
	ApplyMatrix (map->worldtotex, v, map->texcentroid);
	map->texcentroid[2] = 0.0;

	for (x = 0; x < map->texwinding->m_NumPoints; x++)
	{
		for (k = 0; k < 2; k++)
		{
			if (x == 0 || map->texwinding->m_Points[x][k] < texmins[k])
				texmins[k] = map->texwinding->m_Points[x][k];
			if (x == 0 || map->texwinding->m_Points[x][k] > texmaxs[k])
				texmaxs[k] = map->texwinding->m_Points[x][k];
		}
	}
	density = 3.0;
#ifdef HLRAD_FASTMODE
	if (g_fastmode)
	{
		density = 1.0;
	}
#endif
	map->step[0] = (vec_t)TEXTURE_STEP / density;
	map->step[1] = (vec_t)TEXTURE_STEP / density;
	map->step[2] = 1.0;
	for (k = 0; k < 2; k++)
	{
		imins[k] = (int)floor (texmins[k] / map->step[k] + 0.5 - ON_EPSILON);
		imaxs[k] = (int)ceil (texmaxs[k] / map->step[k] - 0.5 + ON_EPSILON);
	}
	map->start[0] = (imins[0] - 0.5) * map->step[0];
	map->start[1] = (imins[1] - 0.5) * map->step[1];
	map->start[2] = 0.0;
	map->w = imaxs[0] - imins[0] + 1;
	map->h = imaxs[1] - imins[1] + 1;
	if (map->w <= 0 || map->h <= 0 || (double)map->w * (double)map->h > 99999999)
	{
		delete map->facewinding;
		map->facewinding = NULL;
		delete map->facewindingwithoffset;
		map->facewindingwithoffset = NULL;
		delete map->texwinding;
		map->texwinding = NULL;
		map->valid = false;
		return;
	}

	map->grid = (position_t *)malloc (map->w * map->h * sizeof (position_t));
	hlassume (map->grid != NULL, assume_NoMemory);

	for (it = 0; it < map->h; it++)
	{
		for (is = 0; is < map->w; is++)
		{
			CalcSinglePosition (map, is, it);
		}
	}

	return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movslq %edi, %rdi
leaq (%rdi,%rdi,4), %r15
leaq 0x1b8042f(%rip), %r12   # 0x1bb1400
imulq $0x110, %rdi, %rax      # imm = 0x110
leaq 0x55c9bf1(%rip), %rcx   # 0x55fabd0
leaq (%rcx,%rax), %rbx
movb $0x1, (%rax,%rcx)
movl %edi, 0x4(%rax,%rcx)
xorl %edx, %edx
movq %rdx, 0x80(%rax,%rcx)
movq %rdx, 0xa0(%rax,%rcx)
movq %rdx, 0xc0(%rax,%rcx)
movq %rdx, 0x108(%rax,%rcx)
movswq 0xa(%r12,%r15,4), %rax
leaq (%rax,%rax,4), %rax
leaq 0x11803d2(%rip), %rcx   # 0x11b13f0
testb $0x1, 0x24(%rcx,%rax,8)
jne 0x315ab
leaq (,%rdi,4), %rax
leaq (%rax,%rax,2), %rax
leaq 0x54079b4(%rip), %rcx   # 0x54389f0
movsd 0x4(%rcx,%rax), %xmm0
leaq 0x4c138c7(%rip), %rdx   # 0x4c44910
movss (%rcx,%rax), %xmm1
movlhps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
movss (%rdx,%rax), %xmm2
shufps $0xd4, %xmm0, %xmm2     # xmm2 = xmm2[0,1],xmm0[1,3]
shufps $0x28, %xmm2, %xmm1     # xmm1 = xmm1[0,2],xmm2[2,0]
movups %xmm1, 0x8(%rbx)
movsd 0x4(%rdx,%rax), %xmm0
movsd %xmm0, 0x18(%rbx)
leaq 0x20(%rbx), %r14
movq %r14, %rsi
callq 0x30c1e
leaq 0x50(%rbx), %rsi
movq %r14, %rdi
callq 0x30cbc
testb %al, %al
je 0x315ab
leaq (%r12,%r15,4), %r12
movl $0x20, %edi
callq 0x42f0
movq %rax, %r15
movss 0xa9de(%rip), %xmm0     # 0x3ba84
movq %rax, %rdi
movq %r12, %rsi
callq 0xc700
movq %r15, 0x80(%rbx)
cmpw $0x0, 0x2(%r12)
movzwl (%r12), %eax
leaq (%rax,%rax,4), %rax
jne 0x310d3
leaq 0xb0031f(%rip), %rcx    # 0xb313f0
jmp 0x310da
leaq 0x5529af6(%rip), %rcx   # 0x555abd0
movl 0x10(%rcx,%rax,4), %edx
movl %edx, 0x98(%rbx)
movups (%rcx,%rax,4), %xmm0
movups %xmm0, 0x88(%rbx)
movl $0x20, %edi
callq 0x42f0
movq %rax, %r12
movl 0x8(%r15), %esi
movq %rax, %rdi
callq 0xc372
leaq 0x88(%rbx), %rax
movq %r12, 0xa0(%rbx)
movq 0x80(%rbx), %r12
cmpl $0x0, 0x8(%r12)
je 0x311b6
xorl %ecx, %ecx
xorl %edx, %edx
movq 0x10(%r12), %rsi
movss (%rsi,%rcx), %xmm0
addss 0x8(%rbx), %xmm0
movq 0xa0(%rbx), %rsi
movq 0x10(%rsi), %rsi
movss %xmm0, (%rsi,%rcx)
movq 0x80(%rbx), %rsi
movq 0x10(%rsi), %rsi
movss 0x4(%rsi,%rcx), %xmm0
addss 0xc(%rbx), %xmm0
movq 0xa0(%rbx), %rsi
movq 0x10(%rsi), %rsi
movss %xmm0, 0x4(%rsi,%rcx)
movq 0x80(%rbx), %rsi
movq 0x10(%rsi), %rsi
movss 0x8(%rsi,%rcx), %xmm0
addss 0x10(%rbx), %xmm0
movq 0xa0(%rbx), %rsi
movq 0x10(%rsi), %rsi
movss %xmm0, 0x8(%rsi,%rcx)
incq %rdx
movq 0x80(%rbx), %r12
movl 0x8(%r12), %esi
addq $0xc, %rcx
cmpq %rsi, %rdx
jb 0x3112d
movups (%rax), %xmm0
movups %xmm0, 0xa8(%rbx)
movl 0x10(%rax), %eax
movl %eax, 0xb8(%rbx)
movss 0x8(%rbx), %xmm0
movss 0xc(%rbx), %xmm1
mulss 0x8c(%rbx), %xmm1
mulss 0x88(%rbx), %xmm0
addss %xmm1, %xmm0
movss 0x10(%rbx), %xmm1
mulss 0x90(%rbx), %xmm1
addss %xmm0, %xmm1
addss 0x94(%rbx), %xmm1
movss %xmm1, 0xb4(%rbx)
movl $0x20, %edi
callq 0x42f0
movq %rax, %r15
movl 0x8(%r12), %esi
movq %rax, %rdi
callq 0xc372
movq %r15, 0xc0(%rbx)
movq 0x80(%rbx), %rax
cmpl $0x0, 0x8(%rax)
je 0x31283
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x10(%rax), %rsi
addq %r15, %rsi
movq 0xc0(%rbx), %rax
movq 0x10(%rax), %rdx
addq %r15, %rdx
movq %r14, %rdi
callq 0x30943
movq 0xc0(%rbx), %rax
movq 0x10(%rax), %rax
movl $0x0, 0x8(%rax,%r15)
incq %r12
movq 0x80(%rbx), %rax
movl 0x8(%rax), %ecx
addq $0xc, %r15
cmpq %rcx, %r12
jb 0x3123c
movq 0xc0(%rbx), %rdi
movss 0xa7f2(%rip), %xmm0     # 0x3ba84
callq 0xc7de
movq $0x0, 0xc8(%rbx)
movl $0x3f800000, 0xd0(%rbx) # imm = 0x3F800000
movss 0x20(%rbx), %xmm0
movss 0x24(%rbx), %xmm3
movss 0x34(%rbx), %xmm4
movss 0x28(%rbx), %xmm2
movss 0x30(%rbx), %xmm5
movaps %xmm3, %xmm1
mulss %xmm4, %xmm1
mulss %xmm0, %xmm4
mulss %xmm5, %xmm0
mulss %xmm2, %xmm5
subss %xmm5, %xmm1
movss 0x2c(%rbx), %xmm5
mulss %xmm5, %xmm2
subss %xmm4, %xmm2
mulss %xmm3, %xmm5
mulss 0x3c(%rbx), %xmm2
mulss 0x38(%rbx), %xmm1
subss %xmm5, %xmm0
addss %xmm2, %xmm1
mulss 0x40(%rbx), %xmm0
addss %xmm1, %xmm0
xorps %xmm1, %xmm1
ucomiss %xmm0, %xmm1
jbe 0x3131a
movl $0xbf800000, 0xd0(%rbx) # imm = 0xBF800000
movl $0x0, 0xd4(%rbx)
movq 0xc0(%rbx), %rax
cmpl $0x0, 0x8(%rax)
je 0x31554
movsd 0x8(%rbx), %xmm0
movsd 0x14(%rbx), %xmm1
subps %xmm0, %xmm1
leaq 0xe8(%rsp), %rsi
movlps %xmm1, (%rsi)
movss 0x1c(%rbx), %xmm0
subss 0x10(%rbx), %xmm0
movss %xmm0, 0x8(%rsi)
leaq 0xdc(%rbx), %rdx
movq %r14, %rdi
callq 0x30943
movl $0x0, 0xe4(%rbx)
movq 0xc0(%rbx), %rax
movl 0x8(%rax), %ecx
testq %rcx, %rcx
je 0x313f8
xorl %edx, %edx
xorl %esi, %esi
xorl %edi, %edi
testq %rsi, %rsi
je 0x313a3
movq 0x10(%rax), %r8
addq %rdx, %r8
movss 0x70(%rsp,%rdi), %xmm0
ucomiss (%rdi,%r8), %xmm0
jbe 0x313b6
movq 0x10(%rax), %r8
addq %rdx, %r8
movss (%rdi,%r8), %xmm0
movss %xmm0, 0x70(%rsp,%rdi)
testq %rsi, %rsi
je 0x313cf
movq 0x10(%rax), %r8
addq %rdx, %r8
movss (%rdi,%r8), %xmm0
ucomiss 0x68(%rsp,%rdi), %xmm0
jbe 0x313e2
movq 0x10(%rax), %r8
addq %rdx, %r8
movss (%rdi,%r8), %xmm0
movss %xmm0, 0x68(%rsp,%rdi)
addq $0x4, %rdi
cmpq $0x4, %rdi
je 0x3138a
incq %rsi
addq $0xc, %rdx
cmpq %rcx, %rsi
jne 0x31388
leaq 0x52475d1(%rip), %rax   # 0x52789d0
cmpb $0x0, (%rax)
jne 0x3140e
movss 0xe588(%rip), %xmm0     # 0x3f994
jmp 0x31416
movss 0xa696(%rip), %xmm0     # 0x3baac
movss %xmm0, 0xf4(%rbx)
movss %xmm0, 0xf8(%rbx)
movl $0x3f800000, 0xfc(%rbx) # imm = 0x3F800000
movsd 0x70(%rsp), %xmm0
movsd 0xf4(%rbx), %xmm1
movaps %xmm1, 0x50(%rsp)
divps %xmm1, %xmm0
cvtps2pd %xmm0, %xmm0
addpd 0xb16f(%rip), %xmm0     # 0x3c5c0
addpd 0xa2c7(%rip), %xmm0     # 0x3b720
movapd %xmm0, 0x30(%rsp)
callq 0x4580
movapd %xmm0, 0x40(%rsp)
movapd 0x30(%rsp), %xmm0
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
callq 0x4580
movapd 0x40(%rsp), %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
cvttpd2dq %xmm1, %xmm0
movapd %xmm0, 0x40(%rsp)
movsd 0x68(%rsp), %xmm0
divps 0x50(%rsp), %xmm0
cvtps2pd %xmm0, %xmm0
addpd 0xa26d(%rip), %xmm0     # 0x3b710
addpd 0xa6a5(%rip), %xmm0     # 0x3bb50
movapd %xmm0, 0x20(%rsp)
callq 0x4090
movapd %xmm0, 0x30(%rsp)
movapd 0x20(%rsp), %xmm0
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
callq 0x4090
movapd 0x30(%rsp), %xmm1
unpcklpd %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0]
cvttpd2dq %xmm1, %xmm0
movdqa 0x40(%rsp), %xmm3
cvtdq2pd %xmm3, %xmm1
addpd 0xa225(%rip), %xmm1     # 0x3b710
cvtps2pd 0x50(%rsp), %xmm2
mulpd %xmm1, %xmm2
cvtpd2ps %xmm2, %xmm1
movlpd %xmm1, 0xe8(%rbx)
movl $0x0, 0xf0(%rbx)
psubd %xmm3, %xmm0
pcmpeqd %xmm1, %xmm1
pshufd $0x50, %xmm0, %xmm2     # xmm2 = xmm0[0,0,1,1]
psubd %xmm1, %xmm0
movq %xmm0, 0x100(%rbx)
movmskpd %xmm2, %eax
testl %eax, %eax
jne 0x31554
movd %xmm0, %ecx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
pshufd $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
movd %xmm0, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
ucomisd 0xe3ee(%rip), %xmm0     # 0x3f940
jbe 0x315c0
movq 0x80(%rbx), %rdi
testq %rdi, %rdi
je 0x31566
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x80(%rbx)
movq 0xa0(%rbx), %rdi
testq %rdi, %rdi
je 0x31583
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0xa0(%rbx)
movq 0xc0(%rbx), %rdi
testq %rdi, %rdi
je 0x315a0
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0xc0(%rbx)
movb $0x0, (%rbx)
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
imull %ecx, %eax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rdi
callq 0x4410
movq %rax, 0x108(%rbx)
xorl %edi, %edi
testq %rax, %rax
setne %dil
movl $0x1, %esi
callq 0xa7c9
cmpl $0x0, 0x104(%rbx)
jle 0x315ae
leaq 0xc8(%rbx), %rax
movq %rax, 0x50(%rsp)
movq $0x0, 0x20(%rsp)
movl 0x100(%rbx), %eax
testl %eax, %eax
jle 0x31980
movq 0x20(%rsp), %rdx
xorps %xmm0, %xmm0
cvtsi2ss %edx, %xmm0
movss %xmm0, 0x1c(%rsp)
leal 0x1(%rdx), %ecx
xorps %xmm0, %xmm0
cvtsi2ss %ecx, %xmm0
movss %xmm0, 0x18(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
addsd 0x9cb9(%rip), %xmm0     # 0x3b300
movapd %xmm0, 0xd0(%rsp)
xorl %r13d, %r13d
movq 0x108(%rbx), %r14
imull 0x20(%rsp), %eax
addl %r13d, %eax
cltq
leaq (%rax,%rax,2), %r15
xorps %xmm0, %xmm0
cvtsi2ss %r13d, %xmm0
movss 0xf4(%rbx), %xmm1
mulss %xmm1, %xmm0
movss 0xe8(%rbx), %xmm2
movss 0xec(%rbx), %xmm3
leal 0x1(%r13), %ebp
xorps %xmm4, %xmm4
cvtsi2ss %ebp, %xmm4
addss %xmm2, %xmm0
mulss %xmm1, %xmm4
addss %xmm2, %xmm4
movss 0xf8(%rbx), %xmm1
movss 0x1c(%rsp), %xmm2
mulss %xmm1, %xmm2
addss %xmm3, %xmm2
mulss 0x18(%rsp), %xmm1
addss %xmm3, %xmm1
movss 0x6a6d(%rip), %xmm3     # 0x38138
movlps %xmm3, 0x80(%rsp)
movl $0x0, %eax
movl %eax, 0x88(%rsp)
movss %xmm0, 0x8c(%rsp)
movsd 0xa570(%rip), %xmm0     # 0x3bc60
movsd %xmm0, 0x94(%rsp)
movl $0x80000000, %ecx       # imm = 0x80000000
movl %ecx, 0x9c(%rsp)
movaps 0x6984(%rip), %xmm0     # 0x38090
xorps %xmm0, %xmm4
movss %xmm4, 0xa0(%rsp)
movq 0xa420(%rip), %xmm3     # 0x3bb40
movq %xmm3, 0xa8(%rsp)
movl %eax, 0xb0(%rsp)
movss %xmm2, 0xb4(%rsp)
movsd 0xa52f(%rip), %xmm2     # 0x3bc70
movsd %xmm2, 0xbc(%rsp)
movl %ecx, 0xc4(%rsp)
xorps %xmm0, %xmm1
movss %xmm1, 0xc8(%rsp)
movb $0x1, 0x1(%r14,%r15,8)
movl $0x20, %edi
callq 0x42f0
movq %rax, %r12
movq 0xc0(%rbx), %rsi
movq %rax, %rdi
callq 0xc3be
leaq (%r14,%r15,8), %r14
xorl %r15d, %r15d
cmpl $0x0, 0x8(%r12)
je 0x317b5
leaq (%rsp,%r15), %rsi
addq $0x80, %rsi
movq %r12, %rdi
xorl %edx, %edx
movss 0xa2de(%rip), %xmm0     # 0x3ba84
callq 0xd0d2
addq $0x14, %r15
cmpq $0x50, %r15
jne 0x31786
cmpl $0x0, 0x8(%r12)
je 0x3193d
xorps %xmm0, %xmm0
cvtsi2sd %r13d, %xmm0
addsd 0x9b2f(%rip), %xmm0     # 0x3b300
unpcklpd 0xd0(%rsp), %xmm0       # xmm0 = xmm0[0],mem[0]
cvtps2pd 0xe8(%rbx), %xmm1
cvtps2pd 0xf4(%rbx), %xmm2
mulpd %xmm0, %xmm2
addpd %xmm1, %xmm2
cvtpd2ps %xmm2, %xmm0
movb $0x0, (%r14)
movapd %xmm0, 0x40(%rsp)
movlpd %xmm0, 0x8(%rsp)
movl $0x0, 0x10(%rsp)
movq %r12, %rdi
movq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdx
callq 0x25961
leaq 0xc(%r14), %r13
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x32344
testb %al, %al
je 0x31855
movw $0x1, (%r14)
movss 0x8(%rsp), %xmm0
movss %xmm0, 0x4(%r14)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x8(%r14)
movl %ebp, 0x30(%rsp)
cmpb $0x0, (%r14)
jne 0x3189d
movq %r12, %rdi
leaq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0xbcc8
movq %rbx, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x32344
testb %al, %al
je 0x3189d
movb $0x1, (%r14)
movss 0x8(%rsp), %xmm0
movss %xmm0, 0x4(%r14)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x8(%r14)
movq %r14, 0x78(%rsp)
cmpb $0x0, (%r14)
jne 0x31961
leaq 0x524711d(%rip), %rax   # 0x52789d0
cmpb $0x0, (%rax)
jne 0x31961
movl $0x8, %r15d
leaq 0xe1c7(%rip), %rax      # 0x3fa90
movss (%r15,%rax), %xmm0
mulss 0xfc(%rbx), %xmm0
movss %xmm0, 0x10(%rsp)
movsd -0x8(%r15,%rax), %xmm1
movsd 0xf4(%rbx), %xmm2
mulps %xmm1, %xmm2
addps 0x40(%rsp), %xmm2
movlps %xmm2, 0x8(%rsp)
addss 0x6843(%rip), %xmm0     # 0x38144
movss %xmm0, 0x10(%rsp)
movq %r12, %rdi
movq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdx
callq 0x25961
movq %rbx, %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x32344
testb %al, %al
jne 0x31943
addq $0xc, %r15
cmpq $0x98, %r15
jne 0x318c2
jmp 0x31961
movb $0x0, (%r14)
jmp 0x31965
movq 0x78(%rsp), %rax
movb $0x1, (%rax)
movss 0x8(%rsp), %xmm0
movss %xmm0, 0x4(%rax)
movss 0xc(%rsp), %xmm0
movss %xmm0, 0x8(%rax)
movl 0x30(%rsp), %ebp
movq (%r12), %rax
movq %r12, %rdi
callq *0x8(%rax)
movl 0x100(%rbx), %eax
movl %ebp, %r13d
cmpl %eax, %ebp
jl 0x31653
movq 0x20(%rsp), %rax
incl %eax
movq %rax, 0x20(%rsp)
cmpl 0x104(%rbx), %eax
jl 0x31608
jmp 0x315ae
jmp 0x319a7
movq %rax, %rbx
movq %r12, %r15
jmp 0x319aa
movq %rax, %rbx
movl $0x20, %esi
movq %r15, %rdi
jmp 0x319bf
movq %rax, %rbx
movl $0x20, %esi
movq %r12, %rdi
callq 0x4300
movq %rbx, %rdi
callq 0x4590