// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/pstricks.c
// Function: export_image_as_pstricks
void export_image_as_pstricks(char* fname)
{
 char st[100];
 FILE* myfile;
 int i, j, posy, xgroupcount, xgroupwidth, ygroupcount, ygroupwidth, diff, groupindex, index, elementcount;
 double posx, posy2, barwidth, barheight, epsilonx, epsilony;
 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_pstricks(myfile, img.xaxis.lim.min - 1, img.yaxis.lim.min - 1, img.xaxis.lim.max + 1, img.yaxis.lim.max + 1);
 epsilonx = (img.xaxis.lim.max - img.xaxis.lim.min) / 200;
 epsilony = (img.yaxis.lim.max - img.yaxis.lim.min) / 200;
 set_color_pstricks(myfile, BLACK);
 save_axes_pstricks(myfile);
 set_color_pstricks(myfile, BLACK);
 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)
                                 {
                                  set_color_pstricks(myfile, img.objects[i].fnt.fontcolor);
                                  set_line_width_pstricks(myfile, img.objects[i].fnt.fontsize);
                                 }
                                l = img.objects[i].obje.li;
                                if (img.objects[i].fnt.dashedtype == SOLID_LINE)
                                  write_line_pstricks(myfile, l.upleft.x, l.upleft.y, l.downright.x, l.downright.y);
                                else
                                  write_dashed_line_pstricks(myfile, l.upleft.x, l.upleft.y, l.downright.x, l.downright.y, img.objects[i].fnt.dashedtype);
                                break;
         case OBJECT_CIRCLE    :ci = img.objects[i].obje.ci;
                                write_circle_pstricks(myfile, ci.center.x, ci.center.y, ci.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)
                                 {
                                  set_color_pstricks(myfile, img.objects[i].fnt.fontcolor);
                                  set_line_width_pstricks(myfile, img.objects[i].fnt.fontsize);
                                 }
                                s = img.objects[i].obje.st;
                                write_string_pstricks(myfile, s.p.x, s.p.y, 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)
                                 {
                                  set_color_pstricks(myfile, img.objects[i].fnt.fontcolor);
                                  set_line_width_pstricks(myfile, img.objects[i].fnt.fontsize);
                                 }
                                s = img.objects[i].obje.st;
                                write_line_pstricks(myfile, s.p.x - epsilonx, s.p.y - epsilony, s.p.x + epsilonx, s.p.y + epsilony);
                                write_line_pstricks(myfile, s.p.x - epsilonx, s.p.y + epsilony, s.p.x + epsilonx, s.p.y - epsilony);
                                write_string_pstricks(myfile, s.p.x, s.p.y - 4 * epsilony, s.st, ALIGN_CENTER);
                                break;
         case OBJECT_RECTANGLE :if (i == 0 || img.objects[i].fnt.fontsize != img.objects[i - 1].fnt.fontsize)
                                  set_line_width_pstricks(myfile, img.objects[i].fnt.fontsize);
                                r = img.objects[i].obje.re;
                                posx = position_in_multi_plot_pstricks(groupindex, index, xgroupcount, elementcount, &barwidth);
                                write_rectangle_pstricks(myfile, posx, r.upleft.y, posx + barwidth, r.downright.y, index % MAX_FILL_TYPE, BLACK);
                                break;
         case OBJECT_MVBOX     :switch (img.groupcoloring)
                                 {
                                  case        ALL_SAME:set_color_pstricks(myfile, BLACK);
                                                       break;
                                  case      GROUP_SAME:set_color_pstricks(myfile, img.objects[i].groupindex % COLORCOUNT);
                                                       break;
                                  case INDIVIDUAL_SAME:set_color_pstricks(myfile, img.objects[i].index % COLORCOUNT);
                                                       break;
                                 }
                                posx = position_in_multi_plot_pstricks(groupindex, index, xgroupcount, elementcount, &barwidth) + barwidth / 2;
                                write_line_pstricks(myfile, posx, img.objects[i].obje.mv.mean - 4 * epsilony, posx, img.objects[i].obje.mv.mean - img.objects[i].obje.mv.variance);
                                write_line_pstricks(myfile, posx, img.objects[i].obje.mv.mean + 4 * epsilony, posx, img.objects[i].obje.mv.mean + img.objects[i].obje.mv.variance);
                                write_line_pstricks(myfile, posx - 5 * epsilonx, img.objects[i].obje.mv.mean - img.objects[i].obje.mv.variance, posx + 5 * epsilonx, img.objects[i].obje.mv.mean - img.objects[i].obje.mv.variance);
                                write_line_pstricks(myfile, posx - 5 * epsilonx, img.objects[i].obje.mv.mean + img.objects[i].obje.mv.variance, posx + 5 * epsilonx, img.objects[i].obje.mv.mean + img.objects[i].obje.mv.variance);
                                write_circle_pstricks(myfile, posx, img.objects[i].obje.mv.mean, 4);
                                break;
         case OBJECT_BOXPLOT   :posx = position_in_multi_plot_pstricks(groupindex, index, xgroupcount, elementcount, &barwidth);
                                diff = barwidth / 8;
                                posx = posx + diff;
                                barwidth -= 2 * diff;
                                write_rectangle_pstricks(myfile, posx, img.objects[i].obje.box.p75, posx + barwidth, img.objects[i].obje.box.p25, FILL_COLOR, index + 1);
                                write_line_pstricks(myfile, posx, img.objects[i].obje.box.median, posx + barwidth, img.objects[i].obje.box.median);
                                if (img.objects[i].obje.box.swhisker < img.objects[i].obje.box.p25)
                                 {
                                  write_dashed_line_pstricks(myfile, posx + barwidth / 2, img.objects[i].obje.box.p25, posx + barwidth / 2, img.objects[i].obje.box.swhisker, 4);
                                  write_line_pstricks(myfile, posx, img.objects[i].obje.box.swhisker, posx + barwidth, img.objects[i].obje.box.swhisker);
                                 }
                                if (img.objects[i].obje.box.lwhisker > img.objects[i].obje.box.p75)
                                 {
                                  write_dashed_line_pstricks(myfile, posx + barwidth / 2, img.objects[i].obje.box.p75, posx + barwidth / 2, img.objects[i].obje.box.lwhisker, 4);
                                  write_line_pstricks(myfile, posx, img.objects[i].obje.box.lwhisker, posx + barwidth, img.objects[i].obje.box.lwhisker);
                                 }
                                break;
     case OBJECT_ERRORHISTOGRAM:xgroupwidth = 1;
                                ygroupwidth = ygroupcount * 10;
                                barheight = 1.0;
                                barwidth = xgroupwidth / 30.0;
                                posx = index * xgroupwidth;
                                posy = groupindex * 10;
                                posy2 = (groupindex + 1) * 10;
                                write_line_pstricks(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_pstricks(myfile, 0, 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_pstricks(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_pstricks(myfile);
 fclose(myfile);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x3438ee(%rip), %rbp    # 0x3b20b8
cmpl $0x0, 0x28(%rbp)
je 0x6e7d9
cmpl $0x0, 0x98(%rbp)
jne 0x6e7e0
xorl %eax, %eax
callq 0x2dd71
leaq 0x3d186(%rip), %rsi     # 0xab96d
movq %rbx, %rdi
callq 0x40f0
testq %rax, %rax
je 0x6f3e5
movq %rax, %r13
movsd 0x375a5(%rip), %xmm2    # 0xa5da8
movsd 0x10(%rbp), %xmm0
addsd %xmm2, %xmm0
movsd 0x80(%rbp), %xmm1
addsd %xmm2, %xmm1
movsd 0x36d00(%rip), %xmm4    # 0xa5520
movsd 0x18(%rbp), %xmm2
addsd %xmm4, %xmm2
movsd 0x88(%rbp), %xmm3
addsd %xmm4, %xmm3
leaq 0x40927(%rip), %rsi     # 0xaf163
movq %rax, %rdi
movb $0x4, %al
callq 0x42e0
movsd 0x18(%rbp), %xmm0
subsd 0x10(%rbp), %xmm0
movsd %xmm0, 0x48(%rsp)
movsd 0x88(%rbp), %xmm0
subsd 0x80(%rbp), %xmm0
movsd %xmm0, 0x28(%rsp)
movq 0x66a3d(%rip), %rdx     # 0xd52b0
leaq 0x40935(%rip), %r14     # 0xaf1af
movq %r13, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x42e0
movq %r13, %rdi
callq 0x6e2e0
movq 0x66a1a(%rip), %rdx     # 0xd52b0
movq %r13, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x42e0
movq 0x128(%rbp), %rdi
movslq 0x124(%rbp), %rsi
leaq -0x34236(%rip), %rcx    # 0x3a682
movl $0x60, %edx
callq 0x4240
movslq 0xa8(%rbp), %rdi
leaq 0x395ee(%rip), %rdx     # 0xa7ebe
movl $0x4, %esi
movl $0x12, %ecx
callq 0x3a1fc
movq %rax, 0x58(%rsp)
cmpl $0x0, 0x124(%rbp)
jle 0x6f3ba
movsd 0x391cf(%rip), %xmm0    # 0xa7ac8
movsd 0x48(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x48(%rsp)
movsd 0x28(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x28(%rsp)
xorl %r12d, %r12d
movq %r13, 0x60(%rsp)
movq %r13, %rbx
movq 0x128(%rbp), %rax
movq %r12, %rcx
shlq $0x5, %rcx
leaq (%rcx,%rcx,2), %r13
movl (%rax,%r13), %edi
movl 0x20(%rax,%r13), %r14d
movslq 0x24(%rax,%r13), %rax
movq %rax, 0x8(%rsp)
movl %r14d, %esi
callq 0x2e5df
movq %rbp, %rcx
movl %eax, %ebp
movq %rcx, %r15
movq 0x128(%rcx), %rax
movl (%rax,%r13), %esi
cmpq $0x8, %rsi
ja 0x6ee9d
leaq (%rax,%r13), %rcx
leaq 0x40443(%rip), %rdi     # 0xaedbc
movslq (%rdi,%rsi,4), %rdx
addq %rdi, %rdx
jmpq *%rdx
testq %r12, %r12
je 0x6eeb6
leaq (%r12,%r12,2), %rsi
shlq $0x5, %rsi
movl 0x18(%rax,%rsi), %edx
cmpl -0x48(%rcx), %edx
movq %r15, %rbp
movq %rbx, %r13
jne 0x6eebf
addq %rax, %rsi
addq $0x8, %rsi
movsd 0x8(%rsi), %xmm0
ucomisd -0x50(%rcx), %xmm0
leaq 0x668f2(%rip), %rcx     # 0xd52b0
jne 0x6eec6
jp 0x6eec6
jmp 0x6ef0b
movl 0x120(%r15), %eax
leaq 0x668d3(%rip), %rdx     # 0xd52b0
testl %eax, %eax
je 0x6f1e6
cmpl $0x2, %eax
je 0x6f1b9
cmpl $0x1, %eax
jne 0x6f1fa
movslq 0x20(%rcx), %rax
jmp 0x6f1bd
testq %r12, %r12
je 0x6ef33
movl 0x18(%rcx), %edx
cmpl -0x48(%rcx), %edx
movq %r15, %rbp
movq %rbx, %r13
jne 0x6ef3c
movsd 0x10(%rcx), %xmm0
ucomisd -0x50(%rcx), %xmm0
leaq 0x66884(%rip), %rcx     # 0xd52b0
jne 0x6ef43
jp 0x6ef43
jmp 0x6ef88
testq %r12, %r12
je 0x6efd0
movsd 0x10(%rcx), %xmm0
ucomisd -0x50(%rcx), %xmm0
movq %rbx, %r13
jne 0x6efd8
jp 0x6efd8
jmp 0x6eff0
testq %r12, %r12
je 0x6f091
movl 0x18(%rcx), %edx
cmpl -0x48(%rcx), %edx
movq %r15, %rbp
movq %rbx, %r13
jne 0x6f09a
movsd 0x10(%rcx), %xmm0
ucomisd -0x50(%rcx), %xmm0
leaq 0x66820(%rip), %rcx     # 0xd52b0
jne 0x6f0a1
jp 0x6f0a1
jmp 0x6f0e6
leal 0x2(%rbp), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
addl $-0x2, %ebp
xorps %xmm1, %xmm1
cvtsi2sd %ebp, %xmm1
mulsd 0x39e1b(%rip), %xmm0    # 0xa88d8
addsd %xmm1, %xmm0
movsd 0x39e17(%rip), %xmm1    # 0xa88e0
divsd %xmm0, %xmm1
movsd 0x4034b(%rip), %xmm4    # 0xaee20
xorps %xmm2, %xmm2
cvtsi2sd %r14d, %xmm2
divsd %xmm0, %xmm4
addsd %xmm1, %xmm2
movq 0x8(%rsp), %rdx
xorps %xmm3, %xmm3
cvtsi2sd %edx, %xmm3
mulsd %xmm4, %xmm3
addsd %xmm2, %xmm3
movapd %xmm4, %xmm1
mulsd 0x392c3(%rip), %xmm1    # 0xa7dc8
cvttsd2si %xmm1, %ecx
cvttpd2dq %xmm1, %xmm1
cvtdq2pd %xmm1, %xmm0
addsd %xmm3, %xmm0
movapd %xmm0, 0x10(%rsp)
addl %ecx, %ecx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
subsd %xmm1, %xmm4
movsd 0x30(%rax,%r13), %xmm3
movsd 0x38(%rax,%r13), %xmm1
movapd %xmm0, %xmm2
movsd %xmm4, (%rsp)
addsd %xmm4, %xmm2
movapd %xmm2, 0x30(%rsp)
leaq 0x66760(%rip), %rax     # 0xd52b0
movq 0x8(%rax,%rdx,8), %rdx
movq %rbx, %rdi
leaq 0x404ab(%rip), %rsi     # 0xaf00a
movb $0x4, %al
callq 0x42e0
movq %r15, %rbp
movq 0x128(%r15), %rax
movsd 0x28(%rax,%r13), %xmm1
movq %rbx, %rdi
leaq 0x404c1(%rip), %rsi     # 0xaf042
movapd 0x10(%rsp), %xmm0
movapd 0x30(%rsp), %xmm2
movaps %xmm1, %xmm3
movb $0x4, %al
callq 0x42e0
movq 0x128(%r15), %rax
movsd 0x30(%rax,%r13), %xmm1
movsd 0x40(%rax,%r13), %xmm3
movq %rbx, %r13
ucomisd %xmm3, %xmm1
jbe 0x6ec1a
movsd (%rsp), %xmm0
mulsd 0x37156(%rip), %xmm0    # 0xa5d18
addsd 0x10(%rsp), %xmm0
movq %r13, %rdi
leaq 0x40544(%rip), %rsi     # 0xaf116
movapd %xmm0, %xmm2
movb $0x4, %al
callq 0x42e0
movq 0x128(%rbp), %rax
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
movsd 0x40(%rax,%rcx), %xmm1
movq %r13, %rdi
leaq 0x40446(%rip), %rsi     # 0xaf042
movapd 0x10(%rsp), %xmm0
movapd 0x30(%rsp), %xmm2
movapd %xmm1, %xmm3
movb $0x4, %al
callq 0x42e0
movq 0x128(%rbp), %rax
leaq (%r12,%r12,2), %r14
shlq $0x5, %r14
movsd 0x38(%rax,%r14), %xmm1
movsd 0x48(%rax,%r14), %xmm3
ucomisd %xmm1, %xmm3
jbe 0x6f3a7
movsd (%rsp), %xmm0
mulsd 0x370d1(%rip), %xmm0    # 0xa5d18
addsd 0x10(%rsp), %xmm0
movq %r13, %rdi
leaq 0x404bf(%rip), %rsi     # 0xaf116
movapd %xmm0, %xmm2
movb $0x4, %al
callq 0x42e0
movq 0x128(%rbp), %rax
movsd 0x48(%rax,%r14), %xmm1
movq %r13, %rdi
leaq 0x403c8(%rip), %rsi     # 0xaf042
movapd 0x10(%rsp), %xmm0
movapd 0x30(%rsp), %xmm2
movapd %xmm1, %xmm3
jmp 0x6efc4
movq 0x8(%rsp), %r13
xorps %xmm0, %xmm0
cvtsi2sd %r13d, %xmm0
movslq %r14d, %rbp
addl %r14d, %r14d
leal (%r14,%r14,4), %eax
leal (%r14,%r14,4), %ecx
addl $0xa, %ecx
xorps %xmm3, %xmm3
cvtsi2sd %ecx, %xmm3
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movq %rbx, %rdi
leaq 0x4037d(%rip), %rsi     # 0xaf042
movsd %xmm1, 0x30(%rsp)
movsd %xmm0, (%rsp)
movapd %xmm0, %xmm2
movb $0x4, %al
callq 0x42e0
movq 0x58(%rsp), %rax
cmpl $0x0, (%rax,%rbp,4)
jne 0x6edb1
movq %rbp, 0x50(%rsp)
xorpd %xmm2, %xmm2
movl $0xb, %ebp
leaq 0x391d8(%rip), %r14     # 0xa7ed7
movl 0x94(%r15), %eax
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
movq 0x128(%r15), %rdx
movsd 0x28(%rdx,%rcx), %xmm1
movsd 0x30(%rdx,%rcx), %xmm0
subsd %xmm1, %xmm0
divsd 0x3908b(%rip), %xmm0    # 0xa7db8
movq %r14, %rsi
cmpq $0x3, %rax
ja 0x6ed44
leaq 0x400cf(%rip), %rcx     # 0xaee0c
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
leaq 0x70(%rsp), %r13
movq %r13, %rdi
movb $0x1, %al
movsd %xmm2, 0x10(%rsp)
callq 0x41b0
movsd 0x10(%rsp), %xmm1
addsd 0x30(%rsp), %xmm1
xorpd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0x40143(%rip), %rsi     # 0xaeebe
movq %r13, %rdx
movb $0x2, %al
callq 0x42e0
movsd 0x10(%rsp), %xmm2
addsd 0x3678d(%rip), %xmm2    # 0xa5520
decl %ebp
jne 0x6ecff
movq 0x58(%rsp), %rax
movq 0x50(%rsp), %rcx
movl $0x1, (%rax,%rcx,4)
movq 0x8(%rsp), %r13
imulq $0x2aaaaaab, %r13, %rax # imm = 0x2AAAAAAB
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x21, %rax
addl %ecx, %eax
shll $0x2, %eax
leal (%rax,%rax,2), %eax
subl %eax, %r13d
movslq %r13d, %r14
movq %r15, %rbp
movq 0x128(%r15), %rax
xorl %r15d, %r15d
movq %rbx, %r13
leaq 0x664c8(%rip), %rbx     # 0xd52b0
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
addq %rax, %rcx
movl 0x38(%rcx,%r15,4), %ecx
testl %ecx, %ecx
jle 0x6ee63
xorps %xmm1, %xmm1
cvtsi2sd %r15d, %xmm1
movsd 0x30(%rsp), %xmm4
addsd %xmm4, %xmm1
addsd 0x3670a(%rip), %xmm1    # 0xa5520
xorps %xmm2, %xmm2
cvtsi2sd %ecx, %xmm2
mulsd 0x40003(%rip), %xmm2    # 0xaee28
incq %r15
xorps %xmm3, %xmm3
cvtsi2sd %r15d, %xmm3
movsd (%rsp), %xmm0
addsd %xmm0, %xmm2
addsd %xmm4, %xmm3
addsd 0x36f63(%rip), %xmm3    # 0xa5da8
movq (%rbx,%r14,8), %rdx
movq %r13, %rdi
leaq 0x401b7(%rip), %rsi     # 0xaf00a
movb $0x4, %al
callq 0x42e0
movq 0x128(%rbp), %rax
jmp 0x6ee66
incq %r15
cmpq $0xa, %r15
jne 0x6ede8
jmp 0x6f3a7
movsd 0x28(%rcx), %xmm0
movsd 0x30(%rcx), %xmm1
movsd 0x38(%rcx), %xmm2
movq %rbx, %r13
movq %rbx, %rdi
leaq 0x402bc(%rip), %rsi     # 0xaf14d
movb $0x3, %al
callq 0x42e0
jmp 0x6f089
leaq 0x39042(%rip), %rdi     # 0xa7ee6
xorl %eax, %eax
callq 0x4030
movq %r15, %rbp
movq %rbx, %r13
jmp 0x6f3a7
movl 0x18(%rax), %edx
movq %r15, %rbp
movq %rbx, %r13
leaq 0x663ea(%rip), %rcx     # 0xd52b0
movslq %edx, %rax
movq (%rcx,%rax,8), %rdx
movq %r13, %rdi
leaq 0x402d8(%rip), %rsi     # 0xaf1af
xorl %eax, %eax
callq 0x42e0
movq 0x128(%rbp), %rax
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
movsd 0x10(%rax,%rcx), %xmm0
movq %r13, %rdi
leaq 0x4029a(%rip), %rsi     # 0xaf197
movb $0x1, %al
callq 0x42e0
movq 0x128(%rbp), %rax
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
movsd 0x28(%rax,%rcx), %xmm0
movsd 0x30(%rax,%rcx), %xmm1
movq 0x38(%rax,%rcx), %rdx
movq %r13, %rdi
leaq 0x3ff62(%rip), %rsi     # 0xaee90
jmp 0x6f1ad
movl 0x18(%rax), %edx
movq %r15, %rbp
movq %rbx, %r13
leaq 0x6636d(%rip), %rcx     # 0xd52b0
movslq %edx, %rax
movq (%rcx,%rax,8), %rdx
movq %r13, %rdi
leaq 0x4025b(%rip), %rsi     # 0xaf1af
xorl %eax, %eax
callq 0x42e0
movq 0x128(%rbp), %rax
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
movsd 0x10(%rax,%rcx), %xmm0
movq %r13, %rdi
leaq 0x4021d(%rip), %rsi     # 0xaf197
movb $0x1, %al
callq 0x42e0
movq 0x128(%rbp), %rax
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
movsd 0x28(%rax,%rcx), %xmm0
movsd 0x30(%rax,%rcx), %xmm1
movsd 0x38(%rax,%rcx), %xmm2
movsd 0x40(%rax,%rcx), %xmm3
movl 0x1c(%rax,%rcx), %esi
movq %r13, %rdi
testl %esi, %esi
je 0x6efbd
callq 0x6e264
jmp 0x6f3a7
leaq 0x4007e(%rip), %rsi     # 0xaf042
movb $0x4, %al
callq 0x42e0
jmp 0x6f3a7
movsd 0x10(%rax), %xmm0
movq %rbx, %r13
movq %r13, %rdi
leaq 0x401b5(%rip), %rsi     # 0xaf197
movb $0x1, %al
callq 0x42e0
movq 0x128(%r15), %rax
leal 0x2(%rbp), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
movsd 0x30(%rax,%rcx), %xmm1
movsd 0x40(%rax,%rcx), %xmm3
addl $-0x2, %ebp
xorps %xmm2, %xmm2
cvtsi2sd %ebp, %xmm2
mulsd 0x398b8(%rip), %xmm0    # 0xa88d8
addsd %xmm2, %xmm0
movsd 0x398b4(%rip), %xmm4    # 0xa88e0
divsd %xmm0, %xmm4
movsd 0x3fde8(%rip), %xmm2    # 0xaee20
divsd %xmm0, %xmm2
cvtsi2sd %r14d, %xmm5
addsd %xmm4, %xmm5
movq 0x8(%rsp), %rcx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm5, %xmm0
addsd %xmm0, %xmm2
imulq $-0x6db6db6d, %rcx, %rsi # imm = 0x92492493
shrq $0x20, %rsi
addl %ecx, %esi
movl %esi, %eax
shrl $0x1f, %eax
sarl $0x2, %esi
addl %eax, %esi
leal (,%rsi,8), %eax
subl %eax, %esi
addl %ecx, %esi
movq %r13, %rdi
xorl %edx, %edx
callq 0x6e1e7
movq %r15, %rbp
jmp 0x6f3a7
movl 0x18(%rax), %edx
movq %r15, %rbp
movq %rbx, %r13
leaq 0x6620f(%rip), %rcx     # 0xd52b0
movslq %edx, %rax
movq (%rcx,%rax,8), %rdx
movq %r13, %rdi
leaq 0x400fd(%rip), %rsi     # 0xaf1af
xorl %eax, %eax
callq 0x42e0
movq 0x128(%rbp), %rax
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
movsd 0x10(%rax,%rcx), %xmm0
movq %r13, %rdi
leaq 0x400bf(%rip), %rsi     # 0xaf197
movb $0x1, %al
callq 0x42e0
movq 0x128(%rbp), %rax
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
movsd 0x28(%rax,%rcx), %xmm4
movsd %xmm4, 0x10(%rsp)
movsd 0x30(%rax,%rcx), %xmm2
movsd %xmm2, 0x30(%rsp)
movq 0x38(%rax,%rcx), %r14
movapd %xmm4, %xmm1
movsd 0x48(%rsp), %xmm5
subsd %xmm5, %xmm1
movapd %xmm1, %xmm0
movsd %xmm1, 0x8(%rsp)
movapd %xmm2, %xmm1
movsd 0x28(%rsp), %xmm3
subsd %xmm3, %xmm1
movsd %xmm1, (%rsp)
addsd %xmm4, %xmm5
movsd %xmm5, 0x50(%rsp)
addsd %xmm2, %xmm3
movsd %xmm3, 0x68(%rsp)
movq %r13, %rdi
leaq 0x3feee(%rip), %rbx     # 0xaf042
movq %rbx, %rsi
movapd %xmm5, %xmm2
movb $0x4, %al
callq 0x42e0
movq %r13, %rdi
movq %rbx, %rsi
movsd 0x8(%rsp), %xmm0
movsd 0x68(%rsp), %xmm1
movsd 0x50(%rsp), %xmm2
movsd (%rsp), %xmm3
movb $0x4, %al
callq 0x42e0
movsd 0x28(%rsp), %xmm1
mulsd 0x3fc9c(%rip), %xmm1    # 0xaee30
addsd 0x30(%rsp), %xmm1
movq %r13, %rdi
leaq 0x3fcec(%rip), %rsi     # 0xaee90
movsd 0x10(%rsp), %xmm0
movq %r14, %rdx
movb $0x2, %al
callq 0x42e0
jmp 0x6f3a7
movslq 0x24(%rcx), %rax
imulq $0x2aaaaaab, %rax, %rcx # imm = 0x2AAAAAAB
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x21, %rcx
addl %edx, %ecx
shll $0x2, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
cltq
leaq 0x660ce(%rip), %rcx     # 0xd52b0
leaq (%rcx,%rax,8), %rdx
movq (%rdx), %rdx
movq %rbx, %rdi
leaq 0x3ffbc(%rip), %rsi     # 0xaf1af
xorl %eax, %eax
callq 0x42e0
leal 0x2(%rbp), %eax
xorps %xmm3, %xmm3
cvtsi2sd %eax, %xmm3
addl $-0x2, %ebp
xorps %xmm1, %xmm1
cvtsi2sd %ebp, %xmm1
mulsd 0x396c2(%rip), %xmm3    # 0xa88d8
addsd %xmm1, %xmm3
movsd 0x396be(%rip), %xmm1    # 0xa88e0
divsd %xmm3, %xmm1
movsd 0x3fbf2(%rip), %xmm0    # 0xaee20
divsd %xmm3, %xmm0
xorps %xmm3, %xmm3
cvtsi2sd %r14d, %xmm3
xorps %xmm2, %xmm2
cvtsi2sdl 0x8(%rsp), %xmm2
addsd %xmm1, %xmm3
mulsd %xmm0, %xmm2
addsd %xmm3, %xmm2
mulsd 0x36ac1(%rip), %xmm0    # 0xa5d18
addsd %xmm2, %xmm0
movsd %xmm0, 0x10(%rsp)
movq %r15, %rbp
movq 0x128(%r15), %rax
movsd 0x28(%rax,%r13), %xmm3
movsd 0x28(%rsp), %xmm1
mulsd 0x3fbb0(%rip), %xmm1    # 0xaee30
addsd %xmm3, %xmm1
subsd 0x30(%rax,%r13), %xmm3
movq 0x60(%rsp), %r14
movq %r14, %rdi
leaq 0x3fda8(%rip), %rbx     # 0xaf042
movq %rbx, %rsi
movapd %xmm0, %xmm2
movb $0x4, %al
callq 0x42e0
movq 0x128(%r15), %rax
movsd 0x28(%rax,%r13), %xmm3
movsd 0x28(%rsp), %xmm1
movsd 0x36b24(%rip), %xmm0    # 0xa5de8
mulsd %xmm0, %xmm1
addsd %xmm3, %xmm1
addsd 0x30(%rax,%r13), %xmm3
movq %r14, %rdi
movq %rbx, %rsi
movsd 0x10(%rsp), %xmm0
movaps %xmm0, %xmm2
movb $0x4, %al
callq 0x42e0
movsd 0x48(%rsp), %xmm3
movapd %xmm3, %xmm0
mulsd 0x38b25(%rip), %xmm0    # 0xa7e20
movq 0x128(%r15), %rax
movsd 0x28(%rax,%r13), %xmm1
subsd 0x30(%rax,%r13), %xmm1
movsd 0x10(%rsp), %xmm2
addsd %xmm2, %xmm0
movsd %xmm0, 0x30(%rsp)
mulsd 0x38b00(%rip), %xmm3    # 0xa7e28
addsd %xmm2, %xmm3
movsd %xmm3, (%rsp)
movq %r14, %rdi
movq %rbx, %rsi
movapd %xmm3, %xmm2
movapd %xmm1, %xmm3
movb $0x4, %al
callq 0x42e0
movq 0x128(%r15), %rax
movsd 0x28(%rax,%r13), %xmm1
addsd 0x30(%rax,%r13), %xmm1
movq %r14, %rdi
movq %rbx, %rsi
movsd 0x30(%rsp), %xmm0
movsd (%rsp), %xmm2
movapd %xmm1, %xmm3
movb $0x4, %al
callq 0x42e0
movq 0x128(%r15), %rax
movsd 0x28(%rax,%r13), %xmm1
movq %r14, %rdi
leaq 0x3fdbe(%rip), %rsi     # 0xaf14d
movsd 0x10(%rsp), %xmm0
movsd 0x36a4b(%rip), %xmm2    # 0xa5de8
movb $0x3, %al
callq 0x42e0
movq %r14, %r13
incq %r12
movslq 0x124(%rbp), %rax
cmpq %rax, %r12
jl 0x6e921
movq 0x58(%rsp), %rdi
callq 0x3a180
leaq 0x3fdba(%rip), %rdi     # 0xaf185
movl $0x11, %esi
movl $0x1, %edx
movq %r13, %rcx
callq 0x42c0
movq %r13, %rdi
callq 0x42a0
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq