// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x7a1a0, %rsp          # imm = 0x7A1A0
movq %rdi, -0x8(%rbp)
movsd 0x62f29(%rip), %xmm0    # 0xe2fb0
movsd %xmm0, -0x7a168(%rbp)
movsd 0x62f19(%rip), %xmm0    # 0xe2fb0
movsd %xmm0, -0x7a170(%rbp)
movsd 0x629b9(%rip), %xmm0    # 0xe2a60
movsd %xmm0, -0x7a178(%rbp)
movsd 0x629a9(%rip), %xmm0    # 0xe2a60
movsd %xmm0, -0x7a180(%rbp)
leaq 0x67242(%rip), %rdi     # 0xe7308
callq 0x79440
cmpl $0x0, %eax
jne 0x800d7
movb $0x0, %al
callq 0x41a40
leaq 0x361faa(%rip), %rax    # 0x3e2088
movl $0x1, 0x78(%rax)
movq $0x0, -0x20(%rbp)
movq $0x0, -0x18(%rbp)
movq $0x0, -0x28(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x6809e(%rip), %rsi     # 0xe81a6
callq 0x40c0
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
jne 0x8011d
jmp 0x8045c
movl $0x0, -0x7a184(%rbp)
movq -0x30(%rbp), %rdi
leaq -0x7a150(%rbp), %rdx
leaq 0x67666(%rip), %rsi     # 0xe779f
leaq -0x7a158(%rbp), %rcx
leaq -0x7a160(%rbp), %r8
movb $0x0, %al
callq 0x4070
cmpl $-0x1, %eax
je 0x802c6
movl -0x7a184(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a184(%rbp)
movq -0x28(%rbp), %rdi
movslq -0x7a184(%rbp), %rsi
shlq $0x3, %rsi
movl -0x7a184(%rbp), %edx
callq 0x52d10
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl -0x7a184(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
leaq -0x7a150(%rbp), %rsi
callq 0x54ba0
movq %rax, %rdx
movq -0x28(%rbp), %rax
movl -0x7a184(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x20(%rbp), %rdi
movslq -0x7a184(%rbp), %rsi
shlq $0x3, %rsi
movl -0x7a184(%rbp), %edx
callq 0x52d10
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
movslq -0x7a184(%rbp), %rsi
shlq $0x3, %rsi
movl -0x7a184(%rbp), %edx
callq 0x52d10
movq %rax, -0x18(%rbp)
movsd -0x7a158(%rbp), %xmm0
movq -0x20(%rbp), %rax
movl -0x7a184(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd -0x7a160(%rbp), %xmm0
movq -0x18(%rbp), %rax
movl -0x7a184(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movsd %xmm0, (%rax,%rcx,8)
movsd -0x7a158(%rbp), %xmm0
ucomisd -0x7a178(%rbp), %xmm0
jbe 0x80253
movsd -0x7a158(%rbp), %xmm0
movsd %xmm0, -0x7a178(%rbp)
movsd -0x7a158(%rbp), %xmm1
movsd -0x7a168(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x80279
movsd -0x7a158(%rbp), %xmm0
movsd %xmm0, -0x7a168(%rbp)
movsd -0x7a160(%rbp), %xmm0
ucomisd -0x7a180(%rbp), %xmm0
jbe 0x8029b
movsd -0x7a160(%rbp), %xmm0
movsd %xmm0, -0x7a180(%rbp)
movsd -0x7a160(%rbp), %xmm1
movsd -0x7a170(%rbp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x802c1
movsd -0x7a160(%rbp), %xmm0
movsd %xmm0, -0x7a170(%rbp)
jmp 0x80127
movq -0x30(%rbp), %rdi
callq 0x4250
movsd -0x7a178(%rbp), %xmm0
leaq 0x361daa(%rip), %rax    # 0x3e2088
ucomisd 0x18(%rax), %xmm0
jbe 0x802f9
movsd -0x7a178(%rbp), %xmm0
leaq 0x361d94(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x18(%rax)
movsd -0x7a168(%rbp), %xmm1
leaq 0x361d80(%rip), %rax    # 0x3e2088
movsd 0x10(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x80327
movsd -0x7a168(%rbp), %xmm0
leaq 0x361d66(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x10(%rax)
movsd -0x7a180(%rbp), %xmm0
leaq 0x361d52(%rip), %rax    # 0x3e2088
ucomisd 0x88(%rax), %xmm0
jbe 0x80357
movsd -0x7a180(%rbp), %xmm0
leaq 0x361d39(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x88(%rax)
movsd -0x7a170(%rbp), %xmm1
leaq 0x361d22(%rip), %rax    # 0x3e2088
movsd 0x80(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x8038b
movsd -0x7a170(%rbp), %xmm0
leaq 0x361d05(%rip), %rax    # 0x3e2088
movsd %xmm0, 0x80(%rax)
movl $0x0, -0x7a188(%rbp)
movl -0x7a188(%rbp), %eax
cmpl -0x7a184(%rbp), %eax
jge 0x80434
movq -0x20(%rbp), %rax
movslq -0x7a188(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, -0x7a198(%rbp)
movq -0x18(%rbp), %rax
movslq -0x7a188(%rbp), %rcx
movsd (%rax,%rcx,8), %xmm0
movsd %xmm0, -0x7a190(%rbp)
movq -0x28(%rbp), %rax
movslq -0x7a188(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movsd -0x7a198(%rbp), %xmm0
movsd -0x7a190(%rbp), %xmm1
movsd 0x84c42(%rip), %xmm2    # 0x105040
movsd 0x84c42(%rip), %xmm3    # 0x105048
movsd 0x84c32(%rip), %xmm4    # 0x105040
movsd 0x84c32(%rip), %xmm5    # 0x105048
movl $0x6, %edi
callq 0x3f100
movl -0x7a188(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7a188(%rbp)
jmp 0x80395
movq -0x20(%rbp), %rdi
callq 0x52e80
movq -0x18(%rbp), %rdi
callq 0x52e80
movq -0x28(%rbp), %rdi
movl -0x7a184(%rbp), %esi
callq 0x52e20
movb $0x0, %al
callq 0x42280
addq $0x7a1a0, %rsp          # imm = 0x7A1A0
popq %rbp
retq
nopw %cs:(%rax,%rax)