// File: /workspace/github_c_makefile_star2_O1/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 0x341f9e(%rip), %rbp    # 0x3af0b8
cmpl $0x0, 0x28(%rbp)
je 0x6d129
cmpl $0x0, 0x98(%rbp)
jne 0x6d130
xorl %eax, %eax
callq 0x2d4df
leaq 0x3b76a(%rip), %rsi     # 0xa88a1
movq %rbx, %rdi
callq 0x40f0
testq %rax, %rax
je 0x6dcb9
movq %rax, %rbx
movsd 0x35c55(%rip), %xmm2    # 0xa2da8
movsd 0x10(%rbp), %xmm0
addsd %xmm2, %xmm0
movsd 0x80(%rbp), %xmm1
addsd %xmm2, %xmm1
movsd 0x353b0(%rip), %xmm4    # 0xa2520
movsd 0x18(%rbp), %xmm2
addsd %xmm4, %xmm2
movsd 0x88(%rbp), %xmm3
addsd %xmm4, %xmm3
leaq 0x3eeff(%rip), %rsi     # 0xac08b
movq %rax, %rdi
movb $0x4, %al
callq 0x42e0
movsd 0x18(%rbp), %xmm0
subsd 0x10(%rbp), %xmm0
movsd %xmm0, 0x40(%rsp)
movsd 0x88(%rbp), %xmm0
subsd 0x80(%rbp), %xmm0
movsd %xmm0, 0x38(%rsp)
movq 0x650ed(%rip), %rdx     # 0xd22b0
leaq 0x3ef0d(%rip), %r14     # 0xac0d7
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x42e0
movq %rbx, %rdi
callq 0x6cc30
movq 0x650ca(%rip), %rdx     # 0xd22b0
movq %rbx, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x42e0
movq 0x128(%rbp), %rdi
movslq 0x124(%rbp), %rsi
leaq -0x33b92(%rip), %rcx    # 0x39676
movl $0x60, %edx
callq 0x4240
movslq 0xa8(%rbp), %rdi
leaq 0x37c46(%rip), %rdx     # 0xa4e66
movl $0x4, %esi
movl $0x12, %ecx
callq 0x39210
movq %rax, 0x50(%rsp)
cmpl $0x0, 0x124(%rbp)
jle 0x6dc8e
movsd 0x377c7(%rip), %xmm0    # 0xa4a10
movsd 0x40(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x40(%rsp)
movsd 0x38(%rsp), %xmm1
divsd %xmm0, %xmm1
movl $0x38, %r15d
movsd 0x3eae7(%rip), %xmm0    # 0xabd58
movsd %xmm1, 0x38(%rsp)
mulsd %xmm1, %xmm0
movsd %xmm0, 0x58(%rsp)
xorl %r12d, %r12d
movq %rbx, 0x60(%rsp)
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 0x2dd45
movq %rbp, %rcx
movl %eax, %ebp
movq 0x128(%rcx), %rax
movl (%rax,%r13), %esi
cmpq $0x8, %rsi
ja 0x6da60
leaq (%rax,%r13), %rcx
leaq 0x3ea15(%rip), %rdi     # 0xabcf0
movslq (%rdi,%rsi,4), %rdx
addq %rdi, %rdx
jmpq *%rdx
testq %r12, %r12
leaq 0x341dca(%rip), %rbp    # 0x3af0b8
je 0x6d316
leaq (%r12,%r12,2), %rdx
shlq $0x5, %rdx
movl 0x18(%rax,%rdx), %esi
cmpl -0x48(%rcx), %esi
jne 0x6d316
addq %rax, %rdx
addq $0x8, %rdx
movsd 0x8(%rdx), %xmm0
ucomisd -0x50(%rcx), %xmm0
jne 0x6d316
jnp 0x6d356
movslq 0x18(%rax,%r13), %rax
leaq 0x64f8e(%rip), %rcx     # 0xd22b0
movq (%rcx,%rax,8), %rdx
movq %rbx, %rdi
leaq 0x3eda7(%rip), %rsi     # 0xac0d7
xorl %eax, %eax
callq 0x42e0
movq 0x128(%rbp), %rax
movsd 0x10(%rax,%r13), %xmm0
movq %rbx, %rdi
leaq 0x3ed70(%rip), %rsi     # 0xac0bf
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 %rbx, %rdi
leaq 0x3ea38(%rip), %rsi     # 0xabdb8
jmp 0x6d66b
leaq 0x341d2c(%rip), %rax    # 0x3af0b8
movl 0x120(%rax), %eax
leaq 0x64f17(%rip), %rdx     # 0xd22b0
testl %eax, %eax
je 0x6daba
cmpl $0x2, %eax
je 0x6da8d
cmpl $0x1, %eax
jne 0x6dace
movslq 0x20(%rcx), %rax
jmp 0x6da91
testq %r12, %r12
leaq 0x341cf2(%rip), %rbp    # 0x3af0b8
je 0x6d3de
movl 0x18(%rcx), %edx
cmpl -0x48(%rcx), %edx
jne 0x6d3de
movsd 0x10(%rcx), %xmm0
ucomisd -0x50(%rcx), %xmm0
jne 0x6d3de
jnp 0x6d41e
movslq 0x18(%rax,%r13), %rax
leaq 0x64ec6(%rip), %rcx     # 0xd22b0
movq (%rcx,%rax,8), %rdx
movq %rbx, %rdi
leaq 0x3ecdf(%rip), %rsi     # 0xac0d7
xorl %eax, %eax
callq 0x42e0
movq 0x128(%rbp), %rax
movsd 0x10(%rax,%r13), %xmm0
movq %rbx, %rdi
leaq 0x3eca8(%rip), %rsi     # 0xac0bf
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 %rbx, %rdi
testl %esi, %esi
je 0x6da7a
callq 0x6cbb4
jmp 0x6dc77
testq %r12, %r12
je 0x6d471
movsd 0x10(%rcx), %xmm0
ucomisd -0x50(%rcx), %xmm0
jne 0x6d471
jnp 0x6d490
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
movsd 0x10(%rax,%rcx), %xmm0
movq %rbx, %rdi
leaq 0x3ec36(%rip), %rsi     # 0xac0bf
movb $0x1, %al
callq 0x42e0
leal 0x2(%rbp), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
leaq 0x341c17(%rip), %rdx    # 0x3af0b8
movq 0x128(%rdx), %rax
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
movq %rdx, %rbp
mulsd 0x383af(%rip), %xmm0    # 0xa5880
addsd %xmm2, %xmm0
movsd 0x383ab(%rip), %xmm4    # 0xa5888
divsd %xmm0, %xmm4
movsd 0x383a7(%rip), %xmm2    # 0xa5890
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 %rbx, %rdi
xorl %edx, %edx
callq 0x6cb37
jmp 0x6dc77
testq %r12, %r12
leaq 0x341b6f(%rip), %rbp    # 0x3af0b8
je 0x6d561
movl 0x18(%rcx), %edx
cmpl -0x48(%rcx), %edx
jne 0x6d561
movsd 0x10(%rcx), %xmm0
ucomisd -0x50(%rcx), %xmm0
jne 0x6d561
jnp 0x6d5a1
movslq 0x18(%rax,%r13), %rax
leaq 0x64d43(%rip), %rcx     # 0xd22b0
movq (%rcx,%rax,8), %rdx
movq %rbx, %rdi
leaq 0x3eb5c(%rip), %rsi     # 0xac0d7
xorl %eax, %eax
callq 0x42e0
movq 0x128(%rbp), %rax
movsd 0x10(%rax,%r13), %xmm0
movq %rbx, %rdi
leaq 0x3eb25(%rip), %rsi     # 0xac0bf
movb $0x1, %al
callq 0x42e0
movq 0x128(%rbp), %rax
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
movsd 0x28(%rax,%rcx), %xmm2
movsd %xmm2, 0x10(%rsp)
movsd 0x30(%rax,%rcx), %xmm3
movsd %xmm3, 0x20(%rsp)
movq 0x38(%rax,%rcx), %r14
movapd %xmm2, %xmm1
movsd 0x40(%rsp), %xmm5
subsd %xmm5, %xmm1
movapd %xmm1, %xmm0
movsd %xmm1, 0x8(%rsp)
movapd %xmm3, %xmm1
movsd 0x38(%rsp), %xmm4
subsd %xmm4, %xmm1
movsd %xmm1, (%rsp)
addsd %xmm2, %xmm5
movsd %xmm5, 0x48(%rsp)
addsd %xmm3, %xmm4
movsd %xmm4, 0x68(%rsp)
movq %rbx, %rdi
leaq 0x3e954(%rip), %r13     # 0xabf6a
movq %r13, %rsi
movapd %xmm5, %xmm2
movapd %xmm4, %xmm3
movb $0x4, %al
callq 0x42e0
movq %rbx, %rdi
movq %r13, %rsi
movsd 0x8(%rsp), %xmm0
movsd 0x68(%rsp), %xmm1
movsd 0x48(%rsp), %xmm2
movsd (%rsp), %xmm3
movb $0x4, %al
callq 0x42e0
movsd 0x20(%rsp), %xmm1
addsd 0x58(%rsp), %xmm1
movq %rbx, %rdi
leaq 0x3e756(%rip), %rsi     # 0xabdb8
movsd 0x10(%rsp), %xmm0
movq %r14, %rdx
movb $0x2, %al
callq 0x42e0
jmp 0x6dc77
leal 0x2(%rbp), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
addl $-0x2, %ebp
xorps %xmm1, %xmm1
cvtsi2sd %ebp, %xmm1
mulsd 0x381ed(%rip), %xmm0    # 0xa5880
addsd %xmm1, %xmm0
movsd 0x381e9(%rip), %xmm1    # 0xa5888
divsd %xmm0, %xmm1
movsd 0x381e5(%rip), %xmm4    # 0xa5890
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 0x37665(%rip), %xmm1    # 0xa4d40
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, 0x20(%rsp)
leaq 0x64b8a(%rip), %rax     # 0xd22b0
movq 0x8(%rax,%rdx,8), %rdx
movq %rbx, %rdi
leaq 0x3e7fd(%rip), %rsi     # 0xabf32
movb $0x4, %al
callq 0x42e0
leaq 0x341975(%rip), %rbp    # 0x3af0b8
movq 0x128(%rbp), %rax
movsd 0x28(%rax,%r13), %xmm1
movq %rbx, %rdi
leaq 0x3e80f(%rip), %rsi     # 0xabf6a
movapd 0x10(%rsp), %xmm0
movapd 0x20(%rsp), %xmm2
movaps %xmm1, %xmm3
movb $0x4, %al
callq 0x42e0
movq 0x128(%rbp), %rax
movsd 0x30(%rax,%r13), %xmm1
movsd 0x40(%rax,%r13), %xmm3
ucomisd %xmm3, %xmm1
jbe 0x6d7ea
movsd (%rsp), %xmm0
mulsd 0x3557f(%rip), %xmm0    # 0xa2d18
addsd 0x10(%rsp), %xmm0
movq %rbx, %rdi
leaq 0x3e895(%rip), %rsi     # 0xac03e
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 %rbx, %rdi
leaq 0x3e797(%rip), %rsi     # 0xabf6a
movapd 0x10(%rsp), %xmm0
movapd 0x20(%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 0x6dc77
movsd (%rsp), %xmm0
mulsd 0x354fa(%rip), %xmm0    # 0xa2d18
addsd 0x10(%rsp), %xmm0
movq %rbx, %rdi
leaq 0x3e810(%rip), %rsi     # 0xac03e
movapd %xmm0, %xmm2
movb $0x4, %al
callq 0x42e0
movq 0x128(%rbp), %rax
movsd 0x48(%rax,%r14), %xmm1
movq %rbx, %rdi
leaq 0x3e719(%rip), %rsi     # 0xabf6a
movapd 0x10(%rsp), %xmm0
movapd 0x20(%rsp), %xmm2
movapd %xmm1, %xmm3
jmp 0x6da81
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 0x3e6ce(%rip), %rsi     # 0xabf6a
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, (%rsp)
movapd %xmm0, %xmm2
movb $0x4, %al
callq 0x42e0
movq 0x50(%rsp), %rax
cmpl $0x0, (%rax,%rbp,4)
jne 0x6d98f
movq %rbp, 0x48(%rsp)
xorl %ebp, %ebp
xorpd %xmm2, %xmm2
leaq 0x375ac(%rip), %r14     # 0xa4e7f
leaq 0x3417de(%rip), %rdx    # 0x3af0b8
movl 0x94(%rdx), %eax
leaq (%r12,%r12,2), %rcx
shlq $0x5, %rcx
movq 0x128(%rdx), %rdx
movsd 0x28(%rdx,%rcx), %xmm1
movsd 0x30(%rdx,%rcx), %xmm0
subsd %xmm1, %xmm0
divsd 0x37429(%rip), %xmm0    # 0xa4d30
movq %r14, %rsi
cmpq $0x3, %rax
ja 0x6d91e
leaq 0x3e429(%rip), %rcx     # 0xabd40
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, 0x20(%rsp)
callq 0x41b0
xorps %xmm1, %xmm1
cvtsi2sd %ebp, %xmm1
addsd 0x10(%rsp), %xmm1
xorpd %xmm0, %xmm0
movq %rbx, %rdi
leaq 0x3e490(%rip), %rsi     # 0xabde6
movq %r13, %rdx
movb $0x2, %al
callq 0x42e0
movsd 0x20(%rsp), %xmm2
addsd 0x34bb2(%rip), %xmm2    # 0xa2520
incl %ebp
cmpl $0xb, %ebp
jne 0x6d8d3
movq 0x50(%rsp), %rax
movq 0x48(%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
xorl %r13d, %r13d
leaq 0x3416ff(%rip), %rbp    # 0x3af0b8
movq 0x128(%rbp), %rax
addq %r15, %rax
movl (%rax,%r13,4), %eax
testl %eax, %eax
jle 0x6da30
xorps %xmm1, %xmm1
cvtsi2sd %r13d, %xmm1
movsd 0x10(%rsp), %xmm4
addsd %xmm4, %xmm1
addsd 0x34b3b(%rip), %xmm1    # 0xa2520
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
mulsd 0x3e35c(%rip), %xmm2    # 0xabd50
leal 0x1(%r13), %eax
xorps %xmm3, %xmm3
cvtsi2sd %eax, %xmm3
movsd (%rsp), %xmm0
addsd %xmm0, %xmm2
addsd %xmm4, %xmm3
addsd 0x35394(%rip), %xmm3    # 0xa2da8
leaq 0x64895(%rip), %rax     # 0xd22b0
movq (%rax,%r14,8), %rdx
movq %rbx, %rdi
leaq 0x3e509(%rip), %rsi     # 0xabf32
movb $0x4, %al
callq 0x42e0
incq %r13
cmpq $0xa, %r13
jne 0x6d9b9
jmp 0x6dc77
movsd 0x28(%rcx), %xmm0
movsd 0x30(%rcx), %xmm1
movsd 0x38(%rcx), %xmm2
movq %rbx, %rdi
leaq 0x3e61e(%rip), %rsi     # 0xac075
movb $0x3, %al
callq 0x42e0
jmp 0x6da6e
leaq 0x37427(%rip), %rdi     # 0xa4e8e
xorl %eax, %eax
callq 0x4030
leaq 0x341643(%rip), %rbp    # 0x3af0b8
jmp 0x6dc77
leaq 0x3e4e9(%rip), %rsi     # 0xabf6a
movb $0x4, %al
callq 0x42e0
jmp 0x6dc77
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 0x647fa(%rip), %rcx     # 0xd22b0
leaq (%rcx,%rax,8), %rdx
movq (%rdx), %rdx
movq %rbx, %rdi
leaq 0x3e610(%rip), %rsi     # 0xac0d7
xorl %eax, %eax
callq 0x42e0
leal 0x2(%rbp), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
addl $-0x2, %ebp
xorps %xmm1, %xmm1
cvtsi2sd %ebp, %xmm1
mulsd 0x37d96(%rip), %xmm0    # 0xa5880
addsd %xmm1, %xmm0
movsd 0x37d92(%rip), %xmm1    # 0xa5888
divsd %xmm0, %xmm1
movsd 0x37d8e(%rip), %xmm2    # 0xa5890
divsd %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
addsd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x8(%rsp), %xmm1
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
mulsd 0x351ed(%rip), %xmm2    # 0xa2d18
addsd %xmm1, %xmm2
movsd %xmm2, 0x10(%rsp)
leaq 0x34157c(%rip), %rbp    # 0x3af0b8
movq 0x128(%rbp), %rax
movsd 0x28(%rax,%r13), %xmm3
movsd 0x58(%rsp), %xmm1
addsd %xmm3, %xmm1
subsd 0x30(%rax,%r13), %xmm3
movq 0x60(%rsp), %r14
movq %r14, %rdi
leaq 0x3e400(%rip), %rbx     # 0xabf6a
movq %rbx, %rsi
movapd %xmm2, %xmm0
movb $0x4, %al
callq 0x42e0
movq 0x128(%rbp), %rax
movsd 0x28(%rax,%r13), %xmm3
movsd 0x38(%rsp), %xmm1
movsd 0x35254(%rip), %xmm0    # 0xa2de8
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 0x40(%rsp), %xmm3
movapd %xmm3, %xmm0
mulsd 0x371cd(%rip), %xmm0    # 0xa4d98
movq 0x128(%rbp), %rax
movsd 0x28(%rax,%r13), %xmm1
subsd 0x30(%rax,%r13), %xmm1
movsd 0x10(%rsp), %xmm2
addsd %xmm2, %xmm0
movsd %xmm0, 0x20(%rsp)
mulsd 0x371a8(%rip), %xmm3    # 0xa4da0
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(%rbp), %rax
movsd 0x28(%rax,%r13), %xmm1
addsd 0x30(%rax,%r13), %xmm1
movq %r14, %rdi
movq %rbx, %rsi
movsd 0x20(%rsp), %xmm0
movsd (%rsp), %xmm2
movapd %xmm1, %xmm3
movb $0x4, %al
callq 0x42e0
movq 0x128(%rbp), %rax
movsd 0x28(%rax,%r13), %xmm1
movq %r14, %rdi
leaq 0x3e416(%rip), %rsi     # 0xac075
movsd 0x10(%rsp), %xmm0
movsd 0x3517b(%rip), %xmm2    # 0xa2de8
movb $0x3, %al
callq 0x42e0
movq %r14, %rbx
incq %r12
movslq 0x124(%rbp), %rax
addq $0x60, %r15
cmpq %rax, %r12
jl 0x6d289
movq 0x50(%rsp), %rdi
callq 0x39194
leaq 0x3e40e(%rip), %rdi     # 0xac0ad
movl $0x11, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x42c0
movq %rbx, %rdi
callq 0x42a0
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq