// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/eps.c
// Function: export_image_as_eps
void export_image_as_eps(char* fname)
{
 /*!Last Changed 04.02.2008 added namedpoint*/
 /*!Last Changed 27.12.2007 added error_histogram_plot*/
 /*!Last Changed 20.09.2006 added save_legend and save_axes*/
 /*!Last Changed 14.09.2006*/
 /*!Last Changed 11.07.2005 added mean variance plot and boxplot*/
 /*!Last Changed 23.01.2005*/
 char st[100];
 FILE* myfile;
 int i, j, posx, posx2, posy, posy2, posy3, posy4, posy5, xgroupcount, xgroupwidth, ygroupcount, ygroupwidth, diff, groupindex, index, elementcount, radius;
 double barwidth, barheight;
 int* groupdone;
 Line l;
 String s;
 Rectangle r;
 Circle ci;
 if (!img.xaxis.limitsset || !img.yaxis.limitsset)
   check_axis_ranges();
 myfile = fopen(fname, "w");
 if (!myfile)
   return;
 write_image_header(myfile, img.width, img.height);
 setcolor(myfile, BLACK);
 save_axes(myfile);
 setcolor(myfile, BLACK);
 save_legend(myfile);
 fprintf(myfile, "stroke\n");
 qsort(img.objects, img.objectcount, sizeof(Object), sort_function_image_object_ascending);
 xgroupcount = img.xaxis.namesavailable;
 ygroupcount = img.yaxis.namesavailable;
 groupdone = safecalloc(ygroupcount, sizeof(int), "export_image_as_eps", 18);
 for (i = 0; i < img.objectcount; i++)
  {   
   groupindex = img.objects[i].groupindex;
   index = img.objects[i].index;
   elementcount = object_count(img.objects[i].type, groupindex);
   switch (img.objects[i].type)
    {
     case OBJECT_LINE      :if (i == 0 || img.objects[i].fnt.fontcolor != img.objects[i - 1].fnt.fontcolor || img.objects[i].fnt.fontsize != img.objects[i - 1].fnt.fontsize)
                             {
                              setcolor(myfile, img.objects[i].fnt.fontcolor);
                              setlinewidth(myfile, img.objects[i].fnt.fontsize);
                             }
                            l = img.objects[i].obje.li;
                            posx = return_pos(l.upleft.x, MARGIN, epsaxis + MARGIN, img.xaxis.lim.min, img.xaxis.lim.max);
                            posy = return_pos(l.upleft.y, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            posx2 = return_pos(l.downright.x, MARGIN, epsaxis + MARGIN, img.xaxis.lim.min, img.xaxis.lim.max);
                            posy2 = return_pos(l.downright.y, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            if (img.objects[i].fnt.dashedtype == SOLID_LINE)
                              write_line(myfile, posx, posy, posx2, posy2);
                            else
                              write_dashed_line(myfile, posx, posy, posx2, posy2, img.objects[i].fnt.dashedtype);
                            break;
     case OBJECT_CIRCLE    :ci = img.objects[i].obje.ci;
                            posx = return_pos(ci.center.x, MARGIN, epsaxis + MARGIN, img.xaxis.lim.min, img.xaxis.lim.max);
                            posy = return_pos(ci.center.y, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            radius = ci.radius;
                            write_circle(myfile, posx, posy, radius);
                            break;
     case OBJECT_POINT     :
     case OBJECT_STRING    :if (i == 0 || img.objects[i].fnt.fontcolor != img.objects[i - 1].fnt.fontcolor || img.objects[i].fnt.fontsize != img.objects[i - 1].fnt.fontsize)
                              setfont(myfile, img.objects[i].fnt);
                            s = img.objects[i].obje.st;
                            posx = return_pos(s.p.x, MARGIN, epsaxis + MARGIN, img.xaxis.lim.min, img.xaxis.lim.max);
                            if (img.yaxis.available)
                              posy = return_pos(s.p.y, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            else
                              posy = MARGIN;
                            write_string(myfile, posx, posy, s.st, ALIGN_CENTER);
                            break;
     case OBJECT_NAMEDPOINT:if (i == 0 || img.objects[i].fnt.fontcolor != img.objects[i - 1].fnt.fontcolor || img.objects[i].fnt.fontsize != img.objects[i - 1].fnt.fontsize)
                              setfont(myfile, img.objects[i].fnt);
                            s = img.objects[i].obje.st;
                            posx = return_pos(s.p.x, MARGIN, epsaxis + MARGIN, img.xaxis.lim.min, img.xaxis.lim.max);
                            posy = return_pos(s.p.y, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            write_line(myfile, posx - 2, posy - 2, posx + 2, posy + 2);
                            write_line(myfile, posx - 2, posy + 2, posx + 2, posy - 2);
                            write_string(myfile, posx, posy - 2 * SMALLMARGIN, s.st, ALIGN_CENTER);
                            break;
     case OBJECT_RECTANGLE :if (i == 0 || img.objects[i].fnt.fontsize != img.objects[i - 1].fnt.fontsize)
                              setlinewidth(myfile, img.objects[i].fnt.fontsize);
                            r = img.objects[i].obje.re;
                            posx = position_in_multi_plot(groupindex, index, xgroupcount, elementcount, &barwidth);
                            posy = return_pos(r.downright.y, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            write_rectangle(myfile, posx, (int) r.upleft.y, (int)(posx + barwidth), posy, index % MAX_FILL_TYPE, BLACK);
                            break;
     case OBJECT_MVBOX     :switch (img.groupcoloring)
                             {
                              case        ALL_SAME:setcolor(myfile, BLACK);
                                                   break;
                              case      GROUP_SAME:setcolor(myfile, img.objects[i].groupindex % COLORCOUNT);
                                                   break;
                              case INDIVIDUAL_SAME:setcolor(myfile, img.objects[i].index % COLORCOUNT);
                                                   break;
                             }
                            posy = return_pos(img.objects[i].obje.mv.mean, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            posy2 = return_pos(img.objects[i].obje.mv.mean - img.objects[i].obje.mv.variance, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            posy3 = return_pos(img.objects[i].obje.mv.mean + img.objects[i].obje.mv.variance, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            posx = position_in_multi_plot(groupindex, index, xgroupcount, elementcount, &barwidth);
                            posx = (int) (posx + barwidth / 2);
                            write_line(myfile, posx, posy - 4, posx, posy2);
                            write_line(myfile, posx, posy + 4, posx, posy3);
                            write_line(myfile, posx - 5, posy2, posx + 5, posy2);
                            write_line(myfile, posx - 5, posy3, posx + 5, posy3);
                            write_circle(myfile, posx, posy, 4);
                            break;
     case OBJECT_BOXPLOT   :posy = return_pos(img.objects[i].obje.box.median, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            posy2 = return_pos(img.objects[i].obje.box.p25, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            posy3 = return_pos(img.objects[i].obje.box.p75, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            posy4 = return_pos(img.objects[i].obje.box.swhisker, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            posy5 = return_pos(img.objects[i].obje.box.lwhisker, MARGIN, epsaxis + MARGIN, img.yaxis.lim.min, img.yaxis.lim.max);
                            posx = position_in_multi_plot(groupindex, index, xgroupcount, elementcount, &barwidth);
                            diff = (int)(barwidth / 8);
                            posx = posx + diff;
                            barwidth -= 2 * diff;                           
                            write_rectangle(myfile, posx, posy3, (int) (posx + barwidth), posy2, FILL_COLOR, index + 1);
                            write_line(myfile, posx, posy, (int) (posx + barwidth), posy);
                            if (posy4 < posy2)
                             {
                              write_dashed_line(myfile, (int) (posx + barwidth / 2), posy2, (int) (posx + barwidth / 2), posy4, 4);
                              write_line(myfile, posx, posy4, (int) (posx + barwidth), posy4);
                             }
                            if (posy5 > posy3)
                             {
                              write_dashed_line(myfile, (int) (posx + barwidth / 2), posy3, (int) (posx + barwidth / 2), posy5, 4);
                              write_line(myfile, posx, posy5, (int) (posx + barwidth), posy5);
                             }
                            break;
     case OBJECT_ERRORHISTOGRAM:xgroupwidth = (epsaxis / elementcount);
                                ygroupwidth = (epsaxis / ygroupcount);
                                barheight = (ygroupwidth - 2 * SMALLMARGIN) / 10.0;
                                barwidth = (xgroupwidth - 2 * SMALLMARGIN) / 30.0;
                                posx = MARGIN + index * xgroupwidth + SMALLMARGIN;
                                posy = MARGIN + groupindex * ygroupwidth + SMALLMARGIN;
                                posy2 = MARGIN + (groupindex + 1) * ygroupwidth - SMALLMARGIN;
                                write_line(myfile, posx, posy, posx, posy2);
                                if (!groupdone[groupindex])
                                 {
                                  for (j = 0; j <= 10; j++)
                                   {                                                                  
                                    if (img.yaxis.lim.precision == 0)
                                      sprintf(st, "%.0f", img.objects[i].obje.errorhist.min + ((img.objects[i].obje.errorhist.max - img.objects[i].obje.errorhist.min) / 10) * j);
                                    else
                                      switch (img.yaxis.lim.precision)
                                       {
                                        case  1:sprintf(st, "%.1f", img.objects[i].obje.errorhist.min + ((img.objects[i].obje.errorhist.max - img.objects[i].obje.errorhist.min) / 10) * j);
                                                break;
                                        case  2:sprintf(st, "%.2f", img.objects[i].obje.errorhist.min + ((img.objects[i].obje.errorhist.max - img.objects[i].obje.errorhist.min) / 10) * j);
                                                break;
                                        case  3:sprintf(st, "%.3f", img.objects[i].obje.errorhist.min + ((img.objects[i].obje.errorhist.max - img.objects[i].obje.errorhist.min) / 10) * j);
                                                break;
                                        default:sprintf(st, "%.1f", img.objects[i].obje.errorhist.min + ((img.objects[i].obje.errorhist.max - img.objects[i].obje.errorhist.min) / 10) * j);
                                                break;
                                       }     
                                    write_string(myfile, MARGIN - 5, posy + barheight * j, st, ALIGN_RIGHT);
                                   }
                                  groupdone[groupindex] = YES;
                                 }
                                for (j = 0; j < 10; j++)
                                  if (img.objects[i].obje.errorhist.counts[j] > 0)
                                    write_rectangle(myfile, posx, posy + barheight * j + 1, posx + barwidth * img.objects[i].obje.errorhist.counts[j], posy + barheight * (j + 1) - 1, FILL_COLOR, index % COLORCOUNT);
                                break;
     default               :printf(m1233, img.objects[i].type);
                            break;
    }
  }
 safe_free(groupdone);
 write_image_footer(myfile);
 fclose(myfile);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x38acb9(%rip), %r15    # 0x3aa0b8
cmpl $0x0, 0x28(%r15)
je 0x1f410
cmpl $0x0, 0x98(%r15)
jne 0x1f417
xorl %eax, %eax
callq 0x29f54
leaq 0x7c473(%rip), %rsi     # 0x9b891
movq %rbx, %rdi
callq 0x40f0
testq %rax, %rax
je 0x1ffba
movq %rax, %rbx
movl (%r15), %edx
movl 0x4(%r15), %esi
movq %rax, %rdi
callq 0x1ffcc
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2004b
movq %rbx, %rdi
callq 0x20077
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2004b
movq %rbx, %rdi
callq 0x20525
leaq 0x789ca(%rip), %rdi     # 0x97e36
pushq $0x7
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x42c0
movq 0x128(%r15), %rdi
movslq 0x124(%r15), %rsi
leaq 0x15fb7(%rip), %rcx     # 0x35446
pushq $0x60
popq %rdx
callq 0x4240
movl 0x38(%r15), %eax
movl %eax, 0x4c(%rsp)
movl 0xa8(%r15), %eax
movl %eax, 0x68(%rsp)
movslq %eax, %rdi
leaq 0x7898a(%rip), %rdx     # 0x97e3e
pushq $0x4
popq %rsi
pushq $0x12
popq %rcx
callq 0x35067
movq %rax, 0x60(%rsp)
xorl %ecx, %ecx
movq %rbx, 0x20(%rsp)
movslq 0x124(%r15), %rax
cmpq %rax, %rcx
jge 0x1ffa0
movq 0x128(%r15), %rax
movq %rcx, 0x50(%rsp)
imulq $0x60, %rcx, %r13
movl (%rax,%r13), %edi
movl 0x20(%rax,%r13), %ebp
movl 0x24(%rax,%r13), %ebx
movl %ebp, %esi
callq 0x2a770
movl %eax, %r12d
movq 0x128(%r15), %rax
movl (%rax,%r13), %esi
cmpq $0x8, %rsi
ja 0x1fb8c
movl %ebx, 0x34(%rsp)
leaq (%rax,%r13), %rcx
leaq 0x78889(%rip), %rdi     # 0x97db0
movslq (%rdi,%rsi,4), %rdx
addq %rdi, %rdx
pushq $0x50
popq %rbx
jmpq *%rdx
cmpq $0x0, 0x50(%rsp)
je 0x1f55b
movl 0x18(%rax,%r13), %edx
cmpl -0x48(%rcx), %edx
jne 0x1f55b
leaq (%rax,%r13), %rdx
addq $0x8, %rdx
movsd 0x8(%rdx), %xmm0
ucomisd -0x50(%rcx), %xmm0
jne 0x1f55b
jnp 0x1f582
movq 0x18(%rax,%r13), %rcx
movq %rcx, 0x10(%rsp)
movupd 0x8(%rax,%r13), %xmm0
movupd %xmm0, (%rsp)
movq 0x20(%rsp), %rdi
callq 0x208eb
movq 0x128(%r15), %rax
movsd 0x28(%rax,%r13), %xmm0
movsd 0x30(%rax,%r13), %xmm1
movsd %xmm1, 0x18(%rsp)
movq 0x38(%rax,%r13), %r14
movsd 0x10(%r15), %xmm1
movsd 0x18(%r15), %xmm2
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, %ebp
cmpl $0x0, 0x78(%r15)
movl %ebx, %edx
je 0x1f5e4
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movsd 0x18(%rsp), %xmm0
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, %edx
movq 0x20(%rsp), %rdi
movl %ebp, %esi
movq %r14, %rcx
pushq $0x2
popq %r8
callq 0x20944
jmp 0x1ff84
movl 0x120(%r15), %esi
testl %esi, %esi
je 0x1fe35
cmpl $0x2, %esi
je 0x1fe2a
cmpl $0x1, %esi
movq 0x20(%rsp), %r14
jne 0x1fe42
movl 0x20(%rcx), %eax
jmp 0x1fe2d
cmpq $0x0, 0x50(%rsp)
je 0x1fb9f
movl 0x18(%rcx), %esi
cmpl -0x48(%rcx), %esi
movq 0x20(%rsp), %rbx
jne 0x1fba7
movsd 0x10(%rcx), %xmm0
ucomisd -0x50(%rcx), %xmm0
jne 0x1fba7
jp 0x1fba7
jmp 0x1fbcc
cmpq $0x0, 0x50(%rsp)
je 0x1fcca
movsd 0x10(%rcx), %xmm0
ucomisd -0x50(%rcx), %xmm0
movq 0x20(%rsp), %r14
movl 0x34(%rsp), %ebx
jne 0x1fcd8
jp 0x1fcd8
jmp 0x1fce7
movq %r15, %rbp
cmpq $0x0, 0x50(%rsp)
je 0x1f6b7
movl 0x18(%rcx), %edx
cmpl -0x48(%rcx), %edx
jne 0x1f6b7
movsd 0x10(%rcx), %xmm0
ucomisd -0x50(%rcx), %xmm0
jne 0x1f6b7
jnp 0x1ff96
movq 0x18(%rax,%r13), %rcx
movq %rcx, 0x10(%rsp)
movupd 0x8(%rax,%r13), %xmm0
movupd %xmm0, (%rsp)
movq 0x20(%rsp), %rdi
movq %rdi, %r15
callq 0x208eb
movq 0x128(%rbp), %rax
movsd 0x28(%rax,%r13), %xmm0
movsd 0x30(%rax,%r13), %xmm1
movsd %xmm1, 0x40(%rsp)
movq 0x38(%rax,%r13), %rax
movq %rax, 0x18(%rsp)
movsd 0x10(%rbp), %xmm1
movsd 0x18(%rbp), %xmm2
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, %r14d
movsd 0x80(%rbp), %xmm1
movsd 0x88(%rbp), %xmm2
movsd 0x40(%rsp), %xmm0
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, %r12d
movq %r14, 0x38(%rsp)
leal -0x2(%r14), %r13d
leal -0x2(%r12), %edx
movl %edx, 0x40(%rsp)
addl $0x2, %r14d
leal 0x2(%r12), %ebx
movq %r15, %rdi
movl %r13d, %esi
movl %r14d, %ecx
movl %ebx, %r8d
callq 0x20866
movq %r15, %rdi
movl %r13d, %esi
movl %ebx, %edx
movl %r14d, %ecx
movl 0x40(%rsp), %r8d
callq 0x20866
addl $-0xa, %r12d
movq %r15, %rdi
movq 0x38(%rsp), %rsi
movl %r12d, %edx
movq 0x18(%rsp), %rcx
pushq $0x2
popq %r8
callq 0x20944
movq %rbp, %r15
jmp 0x1ff84
movsd 0x28(%rcx), %xmm0
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, 0x38(%rsp)
movq 0x128(%r15), %rax
movsd 0x30(%rax,%r13), %xmm0
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, 0x58(%rsp)
movq 0x128(%r15), %rax
movsd 0x38(%rax,%r13), %xmm0
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, 0x6c(%rsp)
movq 0x128(%r15), %rax
movsd 0x40(%rax,%r13), %xmm0
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %ebx, %edi
movl %eax, %ebx
movq 0x128(%r15), %rax
movsd 0x48(%rax,%r13), %xmm0
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, 0x40(%rsp)
movl %ebp, %edi
movl 0x34(%rsp), %r14d
movl %r14d, %esi
movl 0x4c(%rsp), %edx
movl %r12d, %ecx
movl 0x6c(%rsp), %r12d
leaq 0x28(%rsp), %r8
callq 0x2a7cc
movl %eax, %ebp
movsd 0x28(%rsp), %xmm0
movapd %xmm0, %xmm1
mulsd 0x7848c(%rip), %xmm1    # 0x97d48
cvttsd2si %xmm1, %eax
addl %eax, %ebp
addl %eax, %eax
cvtsi2sd %eax, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x28(%rsp)
cvtsi2sd %ebp, %xmm1
movsd %xmm1, 0x18(%rsp)
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
incl %r14d
movl %r14d, (%rsp)
movq 0x20(%rsp), %r14
movq %r14, %rdi
movl %ebp, %esi
movl %r12d, %edx
movl 0x58(%rsp), %r13d
movl %r13d, %r8d
pushq $0x4
popq %r9
callq 0x209ea
movsd 0x28(%rsp), %xmm0
addsd 0x18(%rsp), %xmm0
cvttsd2si %xmm0, %ecx
movq %r14, %rdi
movl %ebp, %esi
movl 0x38(%rsp), %edx
movl %edx, %r8d
callq 0x20866
cmpl %r13d, %ebx
jge 0x1f97f
movsd 0x28(%rsp), %xmm0
mulsd 0x763e3(%rip), %xmm0    # 0x95d20
addsd 0x18(%rsp), %xmm0
cvttsd2si %xmm0, %ecx
movq 0x20(%rsp), %r14
movq %r14, %rdi
movl %ecx, %esi
movl %r13d, %edx
movl %ebx, %r8d
pushq $0x4
popq %r9
callq 0x2087e
movsd 0x28(%rsp), %xmm0
addsd 0x18(%rsp), %xmm0
cvttsd2si %xmm0, %ecx
movq %r14, %rdi
movl %ebp, %esi
movl %ebx, %edx
movl %ebx, %r8d
callq 0x20866
movl 0x40(%rsp), %r14d
cmpl %r12d, %r14d
jle 0x1ff84
movsd 0x28(%rsp), %xmm0
mulsd 0x76385(%rip), %xmm0    # 0x95d20
addsd 0x18(%rsp), %xmm0
cvttsd2si %xmm0, %ecx
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
movl %ecx, %esi
movl %r12d, %edx
movl %r14d, %r8d
pushq $0x4
popq %r9
callq 0x2087e
movsd 0x18(%rsp), %xmm0
addsd 0x28(%rsp), %xmm0
cvttsd2si %xmm0, %ecx
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
movl %r14d, %r8d
jmp 0x1fcc0
movslq %ebp, %rax
movq %rax, 0x58(%rsp)
movl $0x1f4, %eax            # imm = 0x1F4
xorl %edx, %edx
idivl %r12d
movl %eax, %r12d
movl $0x1f4, %eax            # imm = 0x1F4
xorl %edx, %edx
idivl 0x68(%rsp)
leal -0xa(%rax), %ecx
cvtsi2sd %ecx, %xmm0
divsd 0x7832b(%rip), %xmm0    # 0x97d38
movsd %xmm0, 0x38(%rsp)
leal -0xa(%r12), %ecx
cvtsi2sd %ecx, %xmm0
divsd 0x7831c(%rip), %xmm0    # 0x97d40
movsd %xmm0, 0x28(%rsp)
movl 0x34(%rsp), %r14d
imull %r14d, %r12d
addl $0x55, %r12d
movl %eax, %ebx
imull %ebp, %ebx
addl $0x55, %ebx
incl %ebp
imull %eax, %ebp
addl $0x4b, %ebp
movq 0x20(%rsp), %rdi
movl %r12d, %esi
movl %ebx, %edx
movl %r12d, %ecx
movl %ebp, %r8d
callq 0x20866
movq 0x60(%rsp), %rax
movq 0x58(%rsp), %rcx
cmpl $0x0, (%rax,%rcx,4)
cvtsi2sd %ebx, %xmm0
movsd %xmm0, 0x40(%rsp)
jne 0x1fd81
xorpd %xmm2, %xmm2
pushq $0xb
popq %rbx
movq 0x20(%rsp), %rbp
subl $0x1, %ebx
jb 0x1fd6b
movl 0x94(%r15), %eax
movq 0x128(%r15), %rcx
movsd 0x28(%rcx,%r13), %xmm1
movsd 0x30(%rcx,%r13), %xmm0
subsd %xmm1, %xmm0
divsd 0x78281(%rip), %xmm0    # 0x97d38
leaq 0x78399(%rip), %rsi     # 0x97e57
cmpq $0x3, %rax
ja 0x1facf
leaq 0xac2ad(%rip), %rcx     # 0xcbd78
movq (%rcx,%rax,8), %rsi
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
leaq 0x70(%rsp), %r14
movq %r14, %rdi
movb $0x1, %al
movsd %xmm2, 0x18(%rsp)
callq 0x41b0
movsd 0x38(%rsp), %xmm0
mulsd 0x18(%rsp), %xmm0
addsd 0x40(%rsp), %xmm0
cvttsd2si %xmm0, %edx
movq %rbp, %rdi
pushq $0x4b
popq %rsi
movq %r14, %rcx
pushq $0x1
popq %r8
callq 0x20944
movsd 0x18(%rsp), %xmm2
addsd 0x759fe(%rip), %xmm2    # 0x95520
jmp 0x1fa86
movsd 0x28(%rcx), %xmm0
movsd 0x30(%rcx), %xmm1
movsd %xmm1, 0x18(%rsp)
movsd 0x10(%r15), %xmm1
movsd 0x18(%r15), %xmm2
cvttsd2si 0x38(%rcx), %ebp
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, %r14d
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movsd 0x18(%rsp), %xmm0
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movq 0x20(%rsp), %rdi
movl %r14d, %esi
movl %eax, %edx
movl %ebp, %ecx
jmp 0x1ff7f
leaq 0x782d3(%rip), %rdi     # 0x97e66
xorl %eax, %eax
callq 0x4030
jmp 0x1ff84
movl 0x18(%rax), %esi
movq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x2004b
movq 0x128(%r15), %rax
movsd 0x10(%rax,%r13), %xmm0
movq %rbx, %rdi
callq 0x20858
movq 0x128(%r15), %rax
movsd 0x28(%rax,%r13), %xmm0
movsd 0x30(%rax,%r13), %xmm1
movsd %xmm1, 0x40(%rsp)
movsd 0x38(%rax,%r13), %xmm1
movsd %xmm1, 0x38(%rsp)
movsd 0x40(%rax,%r13), %xmm1
movsd %xmm1, 0x18(%rsp)
movsd 0x10(%r15), %xmm1
movsd 0x18(%r15), %xmm2
pushq $0x50
popq %r12
movl %r12d, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, %ebp
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movsd 0x40(%rsp), %xmm0
movl %r12d, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, %r14d
movsd 0x10(%r15), %xmm1
movsd 0x18(%r15), %xmm2
movsd 0x38(%rsp), %xmm0
movl %r12d, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, %ebx
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movsd 0x18(%rsp), %xmm0
movl %r12d, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movq 0x128(%r15), %rcx
movl 0x1c(%rcx,%r13), %r9d
testl %r9d, %r9d
je 0x1fcb1
movq 0x20(%rsp), %rdi
movl %ebp, %esi
movl %r14d, %edx
movl %ebx, %ecx
movl %eax, %r8d
callq 0x2087e
jmp 0x1ff84
movq 0x20(%rsp), %rdi
movl %ebp, %esi
movl %r14d, %edx
movl %ebx, %ecx
movl %eax, %r8d
callq 0x20866
jmp 0x1ff84
movsd 0x10(%rax), %xmm0
movq 0x20(%rsp), %r14
movl 0x34(%rsp), %ebx
movq %r14, %rdi
callq 0x20858
movq 0x128(%r15), %rax
movsd 0x40(%rax,%r13), %xmm0
movsd %xmm0, 0x18(%rsp)
cvttsd2si 0x30(%rax,%r13), %r13d
movl %ebp, %edi
movl %ebx, %esi
movl 0x4c(%rsp), %edx
movl %r12d, %ecx
leaq 0x28(%rsp), %r8
callq 0x2a7cc
movl %ebx, %ebp
movl %eax, %ebx
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movsd 0x18(%rsp), %xmm0
pushq $0x50
popq %rdi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, %r8d
cvtsi2sd %ebx, %xmm0
addsd 0x28(%rsp), %xmm0
cvttsd2si %xmm0, %ecx
movl %ebp, %eax
cltd
pushq $0x7
popq %rsi
idivl %esi
movl %edx, %r9d
andl $0x0, (%rsp)
movq %r14, %rdi
movl %ebx, %esi
movl %r13d, %edx
callq 0x209ea
jmp 0x1ff84
movq 0x60(%rsp), %rax
movq 0x58(%rsp), %rcx
movl $0x1, (%rax,%rcx,4)
movl 0x34(%rsp), %r14d
cvtsi2sd %r12d, %xmm0
movsd %xmm0, 0x18(%rsp)
movl %r14d, %eax
cltd
pushq $0xc
popq %rcx
idivl %ecx
movl %edx, %ebp
xorl %ebx, %ebx
cmpq $0xa, %rbx
je 0x1ff84
movq 0x128(%r15), %rax
addq %r13, %rax
movl 0x38(%rax,%rbx,4), %eax
testl %eax, %eax
jle 0x1fe22
cvtsi2sd %ebx, %xmm0
movsd 0x38(%rsp), %xmm1
mulsd %xmm1, %xmm0
movsd 0x40(%rsp), %xmm2
addsd %xmm2, %xmm0
addsd 0x7574b(%rip), %xmm0    # 0x95520
cvttsd2si %xmm0, %edx
cvtsi2sd %eax, %xmm0
mulsd 0x28(%rsp), %xmm0
addsd 0x18(%rsp), %xmm0
cvttsd2si %xmm0, %ecx
incq %rbx
cvtsi2sd %ebx, %xmm0
mulsd %xmm1, %xmm0
addsd %xmm2, %xmm0
addsd 0x75fac(%rip), %xmm0    # 0x95db0
cvttsd2si %xmm0, %r8d
movl %ebp, (%rsp)
movq 0x20(%rsp), %rdi
movl %r12d, %esi
pushq $0x4
popq %r9
callq 0x209ea
jmp 0x1fd99
incq %rbx
jmp 0x1fd99
movl 0x24(%rcx), %eax
cltd
pushq $0xc
popq %rcx
idivl %ecx
movl %edx, %esi
movq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x2004b
movq 0x128(%r15), %rax
movsd 0x28(%rax,%r13), %xmm0
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movq %rax, 0x38(%rsp)
movq 0x128(%r15), %rax
movsd 0x28(%rax,%r13), %xmm0
subsd 0x30(%rax,%r13), %xmm0
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, 0x18(%rsp)
movq 0x128(%r15), %rax
movsd 0x28(%rax,%r13), %xmm0
addsd 0x30(%rax,%r13), %xmm0
movsd 0x80(%r15), %xmm1
movsd 0x88(%r15), %xmm2
movl %ebx, %edi
movl $0x244, %esi            # imm = 0x244
callq 0x2a83b
movl %eax, %r13d
movl %ebp, %edi
movl 0x34(%rsp), %esi
movl 0x4c(%rsp), %edx
movl %r12d, %ecx
leaq 0x28(%rsp), %r8
callq 0x2a7cc
cvtsi2sd %eax, %xmm0
movsd 0x28(%rsp), %xmm1
mulsd 0x75e17(%rip), %xmm1    # 0x95d20
addsd %xmm0, %xmm1
movq %r14, %r12
cvttsd2si %xmm1, %r14d
movq 0x38(%rsp), %rbx
leal -0x4(%rbx), %edx
movq %r12, %rdi
movl %r14d, %esi
movl %r14d, %ecx
movl 0x18(%rsp), %r8d
callq 0x20866
leal 0x4(%rbx), %edx
movq %r12, %rdi
movl %r14d, %esi
movl %r14d, %ecx
movl %r13d, %r8d
callq 0x20866
leal -0x5(%r14), %ebx
leal 0x5(%r14), %ebp
movq %r12, %rdi
movl %ebx, %esi
movl 0x18(%rsp), %edx
movl %ebp, %ecx
movl %edx, %r8d
callq 0x20866
movq %r12, %rdi
movl %ebx, %esi
movl %r13d, %edx
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x20866
movq %r12, %rdi
movl %r14d, %esi
movq 0x38(%rsp), %rdx
pushq $0x4
popq %rcx
callq 0x208a3
movq 0x50(%rsp), %rcx
incq %rcx
movq 0x20(%rsp), %rbx
jmp 0x1f4cb
movq 0x20(%rsp), %r15
jmp 0x1f6e1
movq 0x60(%rsp), %rdi
callq 0x34ff7
movq %rbx, %rdi
callq 0x20a81
movq %rbx, %rdi
callq 0x42a0
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq