// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rdi
callq 0x50f90
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
imull -0xc(%rbp), %eax
movl $0xa, %ecx
cltd
idivl %ecx
movl %eax, -0x30(%rbp)
movsd 0x45b20(%rip), %xmm0    # 0xe29b8
movsd %xmm0, -0x38(%rbp)
movsd 0x45b13(%rip), %xmm0    # 0xe29b8
movsd %xmm0, -0x40(%rbp)
leaq 0x48647(%rip), %rdi     # 0xe54f8
leaq 0x4b306(%rip), %rsi     # 0xe81be
callq 0x40c0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x9cecd
jmp 0x9d078
movq -0x20(%rbp), %rdi
cvtsi2sdl -0x30(%rbp), %xmm2
movsd -0x38(%rbp), %xmm3
addsd -0x40(%rbp), %xmm3
cvtsi2sdl -0xc(%rbp), %xmm0
mulsd %xmm0, %xmm3
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0x9a5a0
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x9cf57
movq -0x20(%rbp), %rdi
movsd -0x38(%rbp), %xmm1
addsd -0x40(%rbp), %xmm1
cvtsi2sdl -0x28(%rbp), %xmm2
movsd -0x40(%rbp), %xmm0
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
cvtsi2sdl -0x30(%rbp), %xmm2
movsd -0x38(%rbp), %xmm3
addsd -0x40(%rbp), %xmm3
cvtsi2sdl -0x28(%rbp), %xmm4
movsd -0x40(%rbp), %xmm0
mulsd %xmm4, %xmm3
addsd %xmm0, %xmm3
xorps %xmm0, %xmm0
callq 0x9a3e0
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x9cefb
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x9d066
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x4b229(%rip), %rsi     # 0xe81a6
callq 0x40c0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x9cfac
movq -0x8(%rbp), %rax
movslq -0x28(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
leaq 0x45eea(%rip), %rdi     # 0xe2e8a
movb $0x0, %al
callq 0x4030
jmp 0x9d078
jmp 0x9cfae
movq -0x18(%rbp), %rdi
leaq 0x4fc98(%rip), %rsi     # 0xecc51
leaq -0x24(%rbp), %rdx
movb $0x0, %al
callq 0x4070
cmpl $-0x1, %eax
je 0x9d04f
movq -0x20(%rbp), %rdi
cvtsi2sdl -0x24(%rbp), %xmm1
movsd 0x4a6c2(%rip), %xmm0    # 0xe76a0
mulsd %xmm1, %xmm0
movsd -0x38(%rbp), %xmm1
addsd -0x40(%rbp), %xmm1
cvtsi2sdl -0x28(%rbp), %xmm3
movsd -0x40(%rbp), %xmm2
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
movl -0x24(%rbp), %eax
addl $0x1, %eax
cvtsi2sd %eax, %xmm3
movsd 0x4a690(%rip), %xmm2    # 0xe76a0
mulsd %xmm3, %xmm2
movsd -0x38(%rbp), %xmm3
addsd -0x40(%rbp), %xmm3
cvtsi2sdl -0x28(%rbp), %xmm5
movsd -0x40(%rbp), %xmm4
mulsd %xmm5, %xmm3
addsd %xmm4, %xmm3
addsd -0x38(%rbp), %xmm3
movl -0x28(%rbp), %eax
movl $0xc, %ecx
cltd
idivl %ecx
movl $0x4, %esi
callq 0x9a250
jmp 0x9cfae
movq -0x18(%rbp), %rdi
callq 0x4250
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x9cf5e
movq -0x20(%rbp), %rdi
callq 0x9a5f0
movq -0x20(%rbp), %rdi
callq 0x4250
addq $0x40, %rsp
popq %rbp
retq
nop