// File: /workspace/github_c_makefile_star2_O3/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 0x38a4a
movl %eax, %r15d
leaq 0x39063(%rip), %rdi     # 0xa89a8
leaq 0x3c021(%rip), %rsi     # 0xab96d
callq 0x40f0
testq %rax, %rax
je 0x6fb50
movq %rax, %rdi
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 0x3f7dc(%rip), %rsi     # 0xaf163
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
movq %rdi, 0x8(%rsp)
movsd %xmm2, 0x10(%rsp)
movb $0x4, %al
callq 0x42e0
testl %ebp, %ebp
jle 0x6fb2a
leaq 0x3f692(%rip), %r15     # 0xaf042
movl %ebp, %ebx
movq 0x8(%rsp), %r14
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
movsd (%rsp), %xmm1
addsd 0x3634b(%rip), %xmm1    # 0xa5d18
xorpd %xmm0, %xmm0
movq %r14, %rdi
movq %r15, %rsi
movsd 0x10(%rsp), %xmm2
movapd %xmm1, %xmm3
movb $0x4, %al
callq 0x42e0
movsd (%rsp), %xmm0
addsd 0x35b2b(%rip), %xmm0    # 0xa5520
decl %ebx
jne 0x6f9bb
testl %ebp, %ebp
jle 0x6fb2a
movl %ebp, %eax
movq %rax, 0x30(%rsp)
leaq 0x40bd2(%rip), %r13     # 0xb05e1
leaq 0x1c(%rsp), %r14
leaq 0x65895(%rip), %rbp     # 0xd52b0
leaq 0x3f5e8(%rip), %r12     # 0xaf00a
xorl %ebx, %ebx
movq 0x20(%rsp), %rax
movq (%rax,%rbx,8), %rdi
leaq 0x3bf27(%rip), %rsi     # 0xab95b
callq 0x40f0
testq %rax, %rax
je 0x6fb5f
movq %rax, %r15
movq %rbx, 0x28(%rsp)
movq %rax, %rdi
movq %r13, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x4070
cmpl $-0x1, %eax
movsd 0x3b1e3(%rip), %xmm1    # 0xaac48
movq 0x8(%rsp), %r13
je 0x6fb08
movq 0x28(%rsp), %rbx
xorps %xmm2, %xmm2
cvtsi2sd %ebx, %xmm2
movsd 0x36294(%rip), %xmm0    # 0xa5d18
addsd %xmm0, %xmm2
movsd %xmm2, (%rsp)
addsd %xmm0, %xmm2
movsd %xmm2, 0x10(%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 0x1c(%rsp), %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd %xmm1, %xmm0
incl %eax
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
mulsd %xmm1, %xmm2
movq (%rbp,%rbx,8), %rdx
movq %r13, %rdi
movq %r12, %rsi
movsd (%rsp), %xmm1
movsd 0x10(%rsp), %xmm3
movb $0x4, %al
callq 0x42e0
movq %r15, %rdi
leaq 0x40af0(%rip), %rsi     # 0xb05e1
movq %r14, %rdx
xorl %eax, %eax
callq 0x4070
movsd 0x3b145(%rip), %xmm1    # 0xaac48
cmpl $-0x1, %eax
jne 0x6faae
movq %r15, %rdi
callq 0x42a0
movq 0x28(%rsp), %rbx
incq %rbx
cmpq 0x30(%rsp), %rbx
leaq 0x40abd(%rip), %r13     # 0xb05e1
jne 0x6fa24
leaq 0x3f654(%rip), %rdi     # 0xaf185
movl $0x11, %esi
movl $0x1, %edx
movq 0x8(%rsp), %rbx
movq %rbx, %rcx
callq 0x42c0
movq %rbx, %rdi
callq 0x42a0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x20(%rsp), %rax
movq (%rax,%rbx,8), %rsi
leaq 0x3669b(%rip), %rdi     # 0xa620a
xorl %eax, %eax
callq 0x4030
jmp 0x6fb50