// File: /workspace/github_c_makefile_star2_O3/olcaytaner[P]Isell/eps.c
// Function: rank_plot
void rank_plot(char** names, int filecount)
{
 FILE* myfile, *outfile;
 int obs, i, barheight = MARGIN, bargap = SMALLMARGIN, gap = SMALLMARGIN, count = file_length(names[0]), barwidth = epsaxis / (count * filecount) - bargap;
 outfile = fopen("image.eps", "w");
 if (!outfile)
   return; 
 write_image_header(outfile, 2 * MARGIN + epsaxis, (barheight + gap) * filecount + gap);
 for (i = 0; i < filecount; i++)
   write_line(outfile, MARGIN, (barheight + gap) * i + gap, epsaxis + MARGIN, (barheight + gap) * i + gap);
 for (i = 0; i < filecount; i++)
  {
   myfile = fopen(names[i], "r");
   if (!myfile)
    { 
     printf(m1274, names[i]);
     return;
    }
   while (fscanf(myfile, "%d\n", &obs) != EOF)
     write_rectangle(outfile, MARGIN + (barwidth + bargap) * (obs - 1), (barheight + gap) * i + gap, MARGIN + (barwidth + bargap) * (obs - 1) + barwidth, (barheight + gap) * i + 0.75 * barheight, FILL_COLOR, i % COLORCOUNT);
   fclose(myfile);
  }  
 write_image_footer(outfile);
 fclose(outfile);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, %ebx
movq %rdi, 0x18(%rsp)
movq (%rdi), %rdi
callq 0x38a4a
movl %eax, %ecx
imull %ebx, %ecx
movl $0x1f4, %eax            # imm = 0x1F4
xorl %edx, %edx
idivl %ecx
movl %eax, %r15d
leaq 0x81d2a(%rip), %rdi     # 0xa7f0b
leaq 0x85785(%rip), %rsi     # 0xab96d
callq 0x40f0
testq %rax, %rax
je 0x263b9
movq %rax, %r14
movq %r15, 0x10(%rsp)
imull $0x55, %ebx, %edx
addl $0x5, %edx
movq %rax, %rdi
movl $0x294, %esi            # imm = 0x294
callq 0x22a5c
testl %ebx, %ebx
jle 0x2637f
movq 0x10(%rsp), %rax
leal -0x5(%rax), %r12d
movl $0x5, %ebp
leaq 0x81e2c(%rip), %r15     # 0xa805a
movl %ebx, %r13d
movq %r14, %rdi
movq %r15, %rsi
movl $0x50, %edx
movl %ebp, %ecx
movl $0x244, %r8d            # imm = 0x244
movl %ebp, %r9d
xorl %eax, %eax
callq 0x42e0
addl $0x55, %ebp
decl %r13d
jne 0x26231
testl %ebx, %ebx
jle 0x2637f
movl %ebx, %eax
movq %rax, 0x28(%rsp)
leaq 0x8a375(%rip), %r13     # 0xb05e1
leaq 0xc(%rsp), %r15
xorl %ecx, %ecx
movq %r12, 0x30(%rsp)
movq %r14, 0x20(%rsp)
movq 0x18(%rsp), %rax
movq %rcx, (%rsp)
movq (%rax,%rcx,8), %rdi
leaq 0x856ca(%rip), %rsi     # 0xab95b
callq 0x40f0
testq %rax, %rax
je 0x263c8
movq %rax, %rbx
movq %rax, %rdi
movq %r13, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x4070
cmpl $-0x1, %eax
movq 0x10(%rsp), %r14
je 0x26359
movq (%rsp), %rdx
imull $0x55, %edx, %r12d
addl $0x3c, %r12d
movl %edx, %eax
movl $0xaaaaaaab, %ecx       # imm = 0xAAAAAAAB
imulq %rcx, %rax
shrq $0x23, %rax
shll $0x2, %eax
leal (%rax,%rax,2), %eax
imull $0x55, %edx, %r13d
movl %edx, %ecx
subl %eax, %ecx
leaq (%rcx,%rcx,2), %rax
leaq 0xae8cc(%rip), %rcx     # 0xd4bc0
leaq (%rcx,%rax,8), %rbp
addl $0x5, %r13d
movl 0xc(%rsp), %eax
decl %eax
imull %r14d, %eax
movq 0x30(%rsp), %rcx
leal (%rcx,%rax), %r8d
addl $0x50, %r8d
movl %eax, %edx
addl $0x50, %edx
movsd (%rbp), %xmm0
movsd 0x8(%rbp), %xmm1
movsd 0x10(%rbp), %xmm2
movq 0x20(%rsp), %rdi
leaq 0x81e11(%rip), %rsi     # 0xa8144
movl %r13d, %ecx
movl %r12d, %r9d
movb $0x3, %al
callq 0x42e0
movq %rbx, %rdi
leaq 0x8a297(%rip), %rsi     # 0xb05e1
movq %r15, %rdx
xorl %eax, %eax
callq 0x4070
cmpl $-0x1, %eax
jne 0x262fc
movq %rbx, %rdi
callq 0x42a0
movq (%rsp), %rcx
incq %rcx
cmpq 0x28(%rsp), %rcx
movq 0x20(%rsp), %r14
leaq 0x8a268(%rip), %r13     # 0xb05e1
jne 0x2627d
leaq 0x81b30(%rip), %rdi     # 0xa7eb6
movl $0x7, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
leaq 0x81c77(%rip), %rdi     # 0xa8016
movl $0x9, %esi
movl $0x1, %edx
movq %r14, %rcx
callq 0x42c0
movq %r14, %rdi
callq 0x42a0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x18(%rsp), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x7fe2e(%rip), %rdi     # 0xa620a
xorl %eax, %eax
callq 0x4030
jmp 0x263b9