// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/pstricks.c
// Function: save_axes_pstricks
void save_axes_pstricks(FILE* myfile)
{
 double xdivision, ydivision;
 char* ticks_none = "none";
 char* ticks_all = "all";
 char* ticks;
 if (img.xaxis.lim.division == 0)
   xdivision = (img.xaxis.lim.max - img.xaxis.lim.min) / 10;
 else
   xdivision = (img.xaxis.lim.max - img.xaxis.lim.min) / img.xaxis.lim.division;
 if (img.yaxis.lim.division == 0)
   ydivision = (img.yaxis.lim.max - img.yaxis.lim.min) / 10;
 else
   ydivision = (img.yaxis.lim.max - img.yaxis.lim.min) / img.yaxis.lim.division;
 if (get_parameter_o("showticks"))
   ticks = ticks_all;
 else
   ticks = ticks_none;
 if (img.xaxis.available && img.yaxis.available)
  {
   switch (img.xaxis.lim.precision)
    {
      case 0:
     default:switch (img.yaxis.lim.precision)
              {
                case 0:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.0f,Dy=%.0f,Ox=%.0f,Oy=%.0f](%.0f,%.0f)(%.0f,%.0f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
               default:break;
                case 1:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.0f,Dy=%.1f,Ox=%.0f,Oy=%.1f](%.0f,%.1f)(%.0f,%.1f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
                       break;
                case 2:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.0f,Dy=%.2f,Ox=%.0f,Oy=%.2f](%.0f,%.2f)(%.0f,%.2f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
                       break;
                case 3:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.0f,Dy=%.3f,Ox=%.0f,Oy=%.3f](%.0f,%.3f)(%.0f,%.3f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
                       break;
               }
             break;
      case 1:switch (img.yaxis.lim.precision)
              {
                case 0:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.1f,Dy=%.0f,Ox=%.1f,Oy=%.0f](%.1f,%.0f)(%.1f,%.0f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
               default:break;
                case 1:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.1f,Dy=%.1f,Ox=%.1f,Oy=%.1f](%.1f,%.1f)(%.1f,%.1f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
                       break;
                case 2:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.1f,Dy=%.2f,Ox=%.1f,Oy=%.2f](%.1f,%.2f)(%.1f,%.2f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
                       break;
                case 3:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.1f,Dy=%.3f,Ox=%.1f,Oy=%.3f](%.1f,%.3f)(%.1f,%.3f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
                       break;
              }
             break;
      case 2:switch (img.yaxis.lim.precision)
              {
                case 0:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.2f,Dy=%.0f,Ox=%.2f,Oy=%.0f](%.2f,%.0f)(%.2f,%.0f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
               default:break;
                case 1:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.2f,Dy=%.1f,Ox=%.2f,Oy=%.1f](%.2f,%.1f)(%.2f,%.1f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
                       break;
                case 2:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.2f,Dy=%.2f,Ox=%.2f,Oy=%.2f](%.2f,%.2f)(%.2f,%.2f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
                       break;
                case 3:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.2f,Dy=%.3f,Ox=%.2f,Oy=%.3f](%.2f,%.3f)(%.2f,%.3f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
                       break;
              }
             break;
      case 3:switch (img.yaxis.lim.precision)
              {
                case 0:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.3f,Dy=%.0f,Ox=%.3f,Oy=%.0f](%.3f,%.0f)(%.3f,%.0f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
               default:break;
                case 1:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.3f,Dy=%.1f,Ox=%.3f,Oy=%.1f](%.3f,%.1f)(%.3f,%.1f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
                       break;
                case 2:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.3f,Dy=%.2f,Ox=%.3f,Oy=%.2f](%.3f,%.2f)(%.3f,%.2f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
                       break;
                case 3:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.3f,Dy=%.3f,Ox=%.3f,Oy=%.3f](%.3f,%.3f)(%.3f,%.3f)\n", ticks, xdivision, ydivision, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.min, img.yaxis.lim.min, img.xaxis.lim.max, img.yaxis.lim.max);
                       break;
              }
             break;
    }
  }
 else
   if (img.xaxis.available)
    {
     switch (img.xaxis.lim.precision)
      {
        case 0:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.0f,Ox=%.0f](%.0f,0)(%.0f,0)\n", ticks, xdivision, img.xaxis.lim.min, img.xaxis.lim.min, img.xaxis.lim.max);
       default:break;
        case 1:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.1f,Ox=%.1f](%.1f,0)(%.1f,0)\n", ticks, xdivision, img.xaxis.lim.min, img.xaxis.lim.min, img.xaxis.lim.max);
               break;
        case 2:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.2f,Ox=%.2f](%.2f,0)(%.2f,0)\n", ticks, xdivision, img.xaxis.lim.min, img.xaxis.lim.min, img.xaxis.lim.max);
               break;
        case 3:fprintf(myfile, "\\psaxes[ticks=%s,Dx=%.3f,Ox=%.3f](%.3f,0)(%.3f,0)\n", ticks, xdivision, img.xaxis.lim.min, img.xaxis.lim.min, img.xaxis.lim.max);
               break;
      }
    }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x344f2b(%rip), %r14    # 0x3aa0b8
movl 0x20(%r14), %eax
movsd 0x18(%r14), %xmm1
movsd 0x32b99(%rip), %xmm3    # 0x97d38
movapd %xmm3, %xmm0
testl %eax, %eax
je 0x651ab
cvtsi2sd %eax, %xmm0
subsd 0x10(%r14), %xmm1
movl 0x90(%r14), %eax
movsd 0x88(%r14), %xmm2
testl %eax, %eax
je 0x651c9
cvtsi2sd %eax, %xmm3
movsd %xmm3, 0x8(%rsp)
subsd 0x80(%r14), %xmm2
movsd %xmm2, 0x10(%rsp)
divsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
leaq 0x32cd3(%rip), %rdi     # 0x97ec1
callq 0x4cff1
testl %eax, %eax
leaq 0x36622(%rip), %rax     # 0x9b81e
leaq 0x35915(%rip), %rdx     # 0x9ab18
cmoveq %rax, %rdx
movl 0x8(%r14), %eax
testl %eax, %eax
je 0x6528d
cmpl $0x0, 0x78(%r14)
je 0x6528d
movsd 0x10(%rsp), %xmm1
divsd 0x8(%rsp), %xmm1
movl 0x24(%r14), %ecx
movl 0x94(%r14), %eax
cmpl $0x1, %ecx
je 0x65315
cmpl $0x2, %ecx
je 0x652d0
cmpl $0x3, %ecx
jne 0x65356
cmpl $0x3, %eax
ja 0x65397
movl %eax, %eax
leaq 0x39a66(%rip), %rcx     # 0x9ecc0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x3a1c9(%rip), %rsi     # 0x9f451
jmp 0x655da
testl %eax, %eax
je 0x65397
movl 0x24(%r14), %eax
cmpq $0x3, %rax
ja 0x65397
leaq 0x399e6(%rip), %rcx     # 0x9ec90
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
movsd (%rsp), %xmm0
jmpq *%rax
movsd 0x10(%r14), %xmm1
movsd 0x18(%r14), %xmm3
leaq 0x3a2aa(%rip), %rsi     # 0x9f575
jmp 0x653dc
cmpl $0x3, %eax
ja 0x65397
movl %eax, %eax
leaq 0x399be(%rip), %rcx     # 0x9eca0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x3a01d(%rip), %rsi     # 0x9f32d
jmp 0x655da
cmpl $0x3, %eax
ja 0x65397
movl %eax, %eax
leaq 0x3998d(%rip), %rcx     # 0x9ecb0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39eb8(%rip), %rsi     # 0x9f209
jmp 0x655da
cmpl $0x3, %eax
ja 0x65397
movl %eax, %eax
leaq 0x3996c(%rip), %rcx     # 0x9ecd0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39d53(%rip), %rsi     # 0x9f0e5
jmp 0x655da
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movsd 0x10(%r14), %xmm1
movsd 0x18(%r14), %xmm3
leaq 0x3a229(%rip), %rsi     # 0x9f5db
jmp 0x653dc
movsd 0x10(%r14), %xmm1
movsd 0x18(%r14), %xmm3
leaq 0x3a247(%rip), %rsi     # 0x9f60e
jmp 0x653dc
movsd 0x10(%r14), %xmm1
movsd 0x18(%r14), %xmm3
leaq 0x3a1cc(%rip), %rsi     # 0x9f5a8
movq %rbx, %rdi
movaps %xmm1, %xmm2
movb $0x4, %al
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x42e0
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39faa(%rip), %rsi     # 0x9f3bf
jmp 0x655da
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39fc9(%rip), %rsi     # 0x9f408
jmp 0x655da
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39e32(%rip), %rsi     # 0x9f29b
jmp 0x655da
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x3a050(%rip), %rsi     # 0x9f4e3
jmp 0x655da
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39eb9(%rip), %rsi     # 0x9f376
jmp 0x655da
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39c90(%rip), %rsi     # 0x9f177
jmp 0x655da
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39dd3(%rip), %rsi     # 0x9f2e4
jmp 0x655da
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39ff1(%rip), %rsi     # 0x9f52c
jmp 0x655da
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39ced(%rip), %rsi     # 0x9f252
jmp 0x655da
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39c34(%rip), %rsi     # 0x9f1c0
jmp 0x655da
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39ee7(%rip), %rsi     # 0x9f49a
jmp 0x655da
movsd 0x80(%r14), %xmm3
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm6
movsd 0x88(%r14), %xmm7
leaq 0x39b54(%rip), %rsi     # 0x9f12e
movq %rbx, %rdi
movsd (%rsp), %xmm0
movaps %xmm2, %xmm4
movaps %xmm3, %xmm5
movb $0x8, %al
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0x42e0