// File: /workspace/github_c_makefile_star2_O1/olcaytaner[P]Isell/plot.c
// Function: plotxynames
void plotxynames(char* names)
{
 /*!Last Changed 04.02.2008*/
 double* observations[2];
 char** obsnames;
 FILE* myfile;
 char st[READLINELENGTH];
 double obs1, obs2, minobsx = +LONG_MAX, minobsy = +LONG_MAX, maxobsx = -LONG_MAX, maxobsy = -LONG_MAX;
 int counts, j;
 Point p1;
 if (!get_parameter_o("hold"))
   clear_image();
 img.yaxis.available = YES;
 observations[0] = NULL;
 observations[1] = NULL;
 obsnames = NULL;
 myfile = fopen(names, "r");
 if (!myfile)
   return;
 counts = 0;
 while (fscanf(myfile, "%s %lf %lf\n", st, &obs1, &obs2) != EOF)
  {
   counts++;
   obsnames = alloc(obsnames, counts * sizeof(char *), counts);
   obsnames[counts - 1] = strcopy(obsnames[counts - 1], st);
   observations[0] = alloc(observations[0], counts * sizeof(double), counts);
   observations[1] = alloc(observations[1], counts * sizeof(double), counts);
   observations[0][counts - 1] = obs1;
   observations[1][counts - 1] = obs2;
   if (obs1 > maxobsx)
     maxobsx = obs1;
   if (obs1 < minobsx)
     minobsx = obs1;
   if (obs2 > maxobsy)
     maxobsy = obs2;
   if (obs2 < minobsy)
     minobsy = obs2;
  }
 fclose(myfile);
 if (maxobsx > img.xaxis.lim.max)
   img.xaxis.lim.max = maxobsx;
 if (minobsx < img.xaxis.lim.min)
   img.xaxis.lim.min = minobsx;
 if (maxobsy > img.yaxis.lim.max)
   img.yaxis.lim.max = maxobsy;
 if (minobsy < img.yaxis.lim.min)
   img.yaxis.lim.min = minobsy;
 for (j = 0; j < counts; j++)
  {
   p1.x = (double) observations[0][j];
   p1.y = (double) observations[1][j];
   add_object(OBJECT_NAMEDPOINT, p1, dummyp, dummyp, obsnames[j]);
  }
 safe_free(observations[0]);
 safe_free(observations[1]);
 free_2d((void **)obsnames, counts);
 export_image();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7a168, %rsp          # imm = 0x7A168
movq %rdi, %rbx
leaq 0x4effc(%rip), %rdi     # 0xa7715
callq 0x536e7
testl %eax, %eax
jne 0x58729
xorl %eax, %eax
callq 0x2da74
leaq 0x356988(%rip), %rbp    # 0x3af0b8
movl $0x1, 0x78(%rbp)
leaq 0x50151(%rip), %rsi     # 0xa888f
movq %rbx, %rdi
callq 0x40f0
testq %rax, %rax
je 0x589ab
movq %rax, %rbx
leaq 0x4f52c(%rip), %rsi     # 0xa7c85
xorl %r13d, %r13d
leaq 0x40(%rsp), %rdx
leaq 0x30(%rsp), %rcx
leaq 0x28(%rsp), %r8
movq %rax, %rdi
xorl %eax, %eax
callq 0x4070
cmpl $-0x1, %eax
je 0x588b2
movsd 0x4abaa(%rip), %xmm0    # 0xa3330
movsd 0x4a63a(%rip), %xmm1    # 0xa2dc8
movl $0x8, %ebp
xorl %r13d, %r13d
xorl %r15d, %r15d
xorl %r12d, %r12d
movsd %xmm1, 0x20(%rsp)
movaps %xmm0, %xmm2
xorl %r14d, %r14d
movq %rbx, 0x38(%rsp)
movsd %xmm2, 0x8(%rsp)
movsd %xmm0, 0x18(%rsp)
movsd %xmm1, 0x10(%rsp)
movq %r13, %rbx
incq %r13
movq %r14, %rdi
movq %rbp, %rsi
movl %r13d, %edx
callq 0x390c8
movq %rax, %r14
movq (%rax,%rbx,8), %rdi
leaq 0x40(%rsp), %rsi
callq 0x3a404
movq %rax, (%r14,%rbx,8)
movq %r12, %rdi
movq %rbp, %rsi
movl %r13d, %edx
callq 0x390c8
movq %rax, %r12
movq %r15, %rdi
movq %rbp, %rsi
movl %r13d, %edx
callq 0x390c8
movq %rax, %r15
movsd 0x30(%rsp), %xmm0
movsd %xmm0, (%r12,%rbx,8)
movsd 0x28(%rsp), %xmm0
movsd %xmm0, (%rax,%rbx,8)
movq 0x38(%rsp), %rbx
movsd 0x30(%rsp), %xmm1
movapd %xmm1, %xmm0
maxsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
minsd 0x8(%rsp), %xmm1
movsd %xmm1, 0x8(%rsp)
movsd 0x28(%rsp), %xmm0
movapd %xmm0, %xmm1
maxsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x10(%rsp)
minsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
movq %rbx, %rdi
leaq 0x4f411(%rip), %rsi     # 0xa7c85
leaq 0x40(%rsp), %rdx
leaq 0x30(%rsp), %rcx
leaq 0x28(%rsp), %r8
xorl %eax, %eax
callq 0x4070
movsd 0x8(%rsp), %xmm2
movsd 0x10(%rsp), %xmm1
movsd 0x18(%rsp), %xmm0
addq $0x8, %rbp
cmpl $-0x1, %eax
jne 0x587ad
leaq 0x356808(%rip), %rbp    # 0x3af0b8
jmp 0x588e3
movsd 0x4a50e(%rip), %xmm1    # 0xa2dc8
movsd 0x4aa6e(%rip), %xmm0    # 0xa3330
xorl %r14d, %r14d
movsd %xmm0, 0x8(%rsp)
movsd %xmm0, 0x18(%rsp)
movsd %xmm1, 0x20(%rsp)
movsd %xmm1, 0x10(%rsp)
xorl %r12d, %r12d
xorl %r15d, %r15d
movq %rbx, %rdi
callq 0x42a0
movsd 0x20(%rsp), %xmm0
ucomisd 0x18(%rbp), %xmm0
jbe 0x588fd
movsd %xmm0, 0x18(%rbp)
movsd 0x10(%rbp), %xmm0
movsd 0x8(%rsp), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x58913
movsd %xmm1, 0x10(%rbp)
movsd 0x10(%rsp), %xmm0
ucomisd 0x88(%rbp), %xmm0
jbe 0x5892b
movsd %xmm0, 0x88(%rbp)
movsd 0x80(%rbp), %xmm0
movsd 0x18(%rsp), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x58947
movsd %xmm1, 0x80(%rbp)
testl %r13d, %r13d
je 0x58989
movl %r13d, %ebx
xorl %ebp, %ebp
movsd (%r12,%rbp,8), %xmm0
movsd (%r15,%rbp,8), %xmm1
movq (%r14,%rbp,8), %rsi
movsd 0x79707(%rip), %xmm2    # 0xd2070
movsd 0x79707(%rip), %xmm3    # 0xd2078
movl $0x6, %edi
movaps %xmm2, %xmm4
movaps %xmm3, %xmm5
callq 0x2c3cc
incq %rbp
cmpq %rbp, %rbx
jne 0x58951
movq %r12, %rdi
callq 0x39194
movq %r15, %rdi
callq 0x39194
movq %r14, %rdi
movl %r13d, %esi
callq 0x3915f
xorl %eax, %eax
callq 0x2de4a
addq $0x7a168, %rsp          # imm = 0x7A168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq