// File: /workspace/github_c_makefile_star2_O2/olcaytaner[P]Isell/pstricks.c
// Function: rank_plot_pstricks
void rank_plot_pstricks(char** names, int filecount)
{
 FILE* myfile, *outfile;
 int obs, i, count = file_length(names[0]), barwidth = count * filecount / 10;
 double barheight = 0.5, gap = 0.5;
 outfile = fopen("image.txt", "w");
 if (!outfile)
   return;
 write_image_header_pstricks(outfile, 0, 0, barwidth, (barheight + gap) * filecount);
 for (i = 0; i < filecount; i++)
   write_line_pstricks(outfile, 0, (barheight + gap) * i + gap, barwidth, (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_pstricks(outfile, 0.1 * obs, (barheight + gap) * i + gap, 0.1 * (obs + 1), (barheight + gap) * i + gap + barheight, FILL_COLOR, i % COLORCOUNT);
   fclose(myfile);
  }
 write_image_footer_pstricks(outfile);
 fclose(outfile);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %esi, %ebx
movq %rdi, 0x20(%rsp)
movq (%rdi), %rdi
callq 0x33f62
movl %eax, %ebp
leaq 0x3248e(%rip), %rdi     # 0x98928
leaq 0x353f0(%rip), %rsi     # 0x9b891
callq 0x40f0
testq %rax, %rax
je 0x6662a
movq %rax, %r14
imull %ebx, %ebp
pushq $0xa
popq %rcx
movl %ebp, %eax
cltd
idivl %ecx
cvtsi2sd %eax, %xmm2
cvtsi2sd %ebx, %xmm3
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
xorpd %xmm1, %xmm1
movq %r14, %rdi
movsd %xmm2, 0x10(%rsp)
callq 0x6512f
xorl %ebp, %ebp
testl %ebx, %ebx
cmovgl %ebx, %ebp
movl %ebp, %ebx
subl $0x1, %ebx
jb 0x66529
movsd 0x8(%rsp), %xmm1
addsd 0x2f823(%rip), %xmm1    # 0x95d20
xorpd %xmm0, %xmm0
movq %r14, %rdi
movsd 0x10(%rsp), %xmm2
movapd %xmm1, %xmm3
callq 0x650f6
movsd 0x8(%rsp), %xmm0
addsd 0x2efff(%rip), %xmm0    # 0x95520
movsd %xmm0, 0x8(%rsp)
jmp 0x664ea
movl %ebp, %eax
movq %rax, 0x28(%rsp)
leaq 0x3a00e(%rip), %r12     # 0xa0545
leaq 0x1c(%rsp), %r13
pushq $0x4
popq %r15
xorl %ebp, %ebp
cmpq 0x28(%rsp), %rbp
je 0x66601
movq 0x20(%rsp), %rax
movq (%rax,%rbp,8), %rdi
leaq 0x35322(%rip), %rsi     # 0x9b87f
callq 0x40f0
testq %rax, %rax
je 0x66613
movq %rax, %rbx
cvtsi2sd %ebp, %xmm1
movsd 0x2f7a6(%rip), %xmm0    # 0x95d20
addsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
addsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
movq %rbp, 0x30(%rsp)
movl %ebp, %eax
xorl %edx, %edx
pushq $0xc
popq %rcx
divl %ecx
movl %edx, %ebp
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %eax, %eax
callq 0x4070
cmpl $-0x1, %eax
je 0x665ec
movl 0x1c(%rsp), %eax
cvtsi2sd %eax, %xmm0
movsd 0x345b5(%rip), %xmm1    # 0x9ab78
mulsd %xmm1, %xmm0
incl %eax
cvtsi2sd %eax, %xmm2
mulsd %xmm1, %xmm2
movq %r14, %rdi
movsd 0x8(%rsp), %xmm1
movsd 0x10(%rsp), %xmm3
movl %r15d, %esi
movl %ebp, %edx
callq 0x65087
jmp 0x6659e
movq %rbx, %rdi
callq 0x42a0
movq 0x30(%rsp), %rbp
incq %rbp
jmp 0x66542
movq %r14, %rdi
callq 0x6513d
movq %r14, %rdi
callq 0x42a0
jmp 0x6662a
movq 0x20(%rsp), %rax
movq (%rax,%rbp,8), %rsi
leaq 0x2fbe7(%rip), %rdi     # 0x9620a
xorl %eax, %eax
callq 0x4030
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)