// File: /workspace/github_c_makefile_star2_O1/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, %ebp
movq %rdi, 0x20(%rsp)
movq (%rdi), %rdi
callq 0x37e22
movl %eax, %r15d
leaq 0x37747(%rip), %rdi     # 0xa5930
leaq 0x3a6b1(%rip), %rsi     # 0xa88a1
callq 0x40f0
testq %rax, %rax
je 0x6e3f8
movq %rax, %r14
imull %ebp, %r15d
movslq %r15d, %rax
imulq $0x66666667, %rax, %rax # imm = 0x66666667
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x22, %rax
addl %ecx, %eax
cvtsi2sd %eax, %xmm2
cvtsi2sd %ebp, %xmm3
leaq 0x3de60(%rip), %rsi     # 0xac08b
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %r14, %rdi
movsd %xmm2, 0x8(%rsp)
movb $0x4, %al
callq 0x42e0
xorpd %xmm0, %xmm0
testl %ebp, %ebp
jle 0x6e292
leaq 0x3dd18(%rip), %r15     # 0xabf6a
movl %ebp, %ebx
movsd %xmm0, (%rsp)
movsd (%rsp), %xmm1
addsd 0x34ab2(%rip), %xmm1    # 0xa2d18
xorpd %xmm0, %xmm0
movq %r14, %rdi
movq %r15, %rsi
movsd 0x8(%rsp), %xmm2
movapd %xmm1, %xmm3
movb $0x4, %al
callq 0x42e0
movsd (%rsp), %xmm0
addsd 0x34292(%rip), %xmm0    # 0xa2520
decl %ebx
jne 0x6e254
movq %r14, 0x18(%rsp)
testl %ebp, %ebp
jle 0x6e3b9
movl %ebp, %eax
movq %rax, 0x30(%rsp)
leaq 0x3f29c(%rip), %rbp     # 0xad549
leaq 0x14(%rsp), %r14
leaq 0x63ff7(%rip), %r12     # 0xd22b0
xorl %ebx, %ebx
movq 0x18(%rsp), %r13
movq 0x20(%rsp), %rax
movq (%rax,%rbx,8), %rdi
leaq 0x3a5bf(%rip), %rsi     # 0xa888f
callq 0x40f0
testq %rax, %rax
je 0x6e3e1
movq %rax, %r15
movq %rbx, 0x28(%rsp)
movq %rax, %rdi
movq %rbp, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4070
cmpl $-0x1, %eax
movsd 0x39897(%rip), %xmm1    # 0xa7b98
je 0x6e39e
movq 0x28(%rsp), %rbx
xorps %xmm2, %xmm2
cvtsi2sd %ebx, %xmm2
movsd 0x349fd(%rip), %xmm0    # 0xa2d18
addsd %xmm0, %xmm2
movsd %xmm2, (%rsp)
addsd %xmm0, %xmm2
movsd %xmm2, 0x8(%rsp)
movl %ebx, %eax
movl $0xaaaaaaab, %ecx       # imm = 0xAAAAAAAB
imulq %rcx, %rax
shrq $0x23, %rax
shll $0x2, %eax
leal (%rax,%rax,2), %eax
subl %eax, %ebx
movl 0x14(%rsp), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
incl %eax
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
mulsd %xmm1, %xmm2
movq (%r12,%rbx,8), %rdx
movq %r13, %rdi
leaq 0x3dbc3(%rip), %rsi     # 0xabf32
movsd (%rsp), %xmm1
movsd 0x8(%rsp), %xmm3
movb $0x4, %al
callq 0x42e0
movq %r15, %rdi
movq %rbp, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4070
movsd 0x397ff(%rip), %xmm1    # 0xa7b98
cmpl $-0x1, %eax
jne 0x6e345
movq %r15, %rdi
callq 0x42a0
movq 0x28(%rsp), %rbx
incq %rbx
cmpq 0x30(%rsp), %rbx
jne 0x6e2c0
leaq 0x3dced(%rip), %rdi     # 0xac0ad
movl $0x11, %esi
movl $0x1, %edx
movq 0x18(%rsp), %rbx
movq %rbx, %rcx
callq 0x42c0
movq %rbx, %rdi
callq 0x42a0
jmp 0x6e3f8
movq 0x20(%rsp), %rax
movq (%rax,%rbx,8), %rsi
leaq 0x34e19(%rip), %rdi     # 0xa320a
xorl %eax, %eax
callq 0x4030
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop