// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/eps.c
// Function: write_rectangle
void write_rectangle(FILE* myfile, int corner1x, int corner1y, int corner2x, int corner2y, FILL_TYPE filltype, int color)
{
 /*!Last Changed 18.09.2006*/
 switch (filltype)
  {
   case FILL_NONE      :fprintf(myfile, "%d %d %d %d drawrect\n", corner1x, corner1y, corner2x, corner2y);
                        break;
   case FILL_FLOOD     :fprintf(myfile, "0.0 %d %d %d %d fillrectgray\n", corner1x, corner1y, corner2x, corner2y);
                        break;
   case FILL_GRAY      :fprintf(myfile, "0.5 %d %d %d %d fillrectgray\n", corner1x, corner1y, corner2x, corner2y);
                        break;
   case FILL_VERTICAL  :fprintf(myfile, "4 %d %d %d %d verticalfill\n", corner1x, corner1y, corner2x, corner2y);
                        break;
   case FILL_HORIZONTAL:fprintf(myfile, "4 %d %d %d %d horizontalfill\n", corner1x, corner1y, corner2x, corner2y);
                        break;
   case FILL_SQUARE    :fprintf(myfile, "4 %d %d %d %d squarefill\n", corner1x, corner1y, corner2x, corner2y);
                        break;
   case FILL_COLOR     :fprintf(myfile, "%.3f %.3f %.3f %d %d %d %d fillrectcolor\n", availablecolors[color][0], availablecolors[color][1], availablecolors[color][2], corner1x, corner1y, corner2x, corner2y);
                        break;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movl %r9d, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq %rax, -0x28(%rbp)
subq $0x6, %rax
ja 0x32eb4
movq -0x28(%rbp), %rax
leaq 0xb1c58(%rip), %rcx     # 0xe49c4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
movl -0x14(%rbp), %r8d
movl -0x18(%rbp), %r9d
leaq 0xb1e58(%rip), %rsi     # 0xe4be6
movb $0x0, %al
callq 0x4280
jmp 0x32eb4
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
movl -0x14(%rbp), %r8d
movl -0x18(%rbp), %r9d
leaq 0xb1e49(%rip), %rsi     # 0xe4bfc
movb $0x0, %al
callq 0x4280
jmp 0x32eb4
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
movl -0x14(%rbp), %r8d
movl -0x18(%rbp), %r9d
leaq 0xb1e42(%rip), %rsi     # 0xe4c1a
movb $0x0, %al
callq 0x4280
jmp 0x32eb4
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
movl -0x14(%rbp), %r8d
movl -0x18(%rbp), %r9d
leaq 0xb1e3b(%rip), %rsi     # 0xe4c38
movb $0x0, %al
callq 0x4280
jmp 0x32eb4
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
movl -0x14(%rbp), %r8d
movl -0x18(%rbp), %r9d
leaq 0xb1e32(%rip), %rsi     # 0xe4c54
movb $0x0, %al
callq 0x4280
jmp 0x32eb4
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
movl -0x14(%rbp), %r8d
movl -0x18(%rbp), %r9d
leaq 0xb1e2b(%rip), %rsi     # 0xe4c72
movb $0x0, %al
callq 0x4280
jmp 0x32eb4
movq -0x8(%rbp), %rdi
movslq 0x10(%rbp), %rcx
leaq 0xd1d31(%rip), %rax     # 0x104b90
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd (%rax), %xmm0
movslq 0x10(%rbp), %rcx
leaq 0xd1d1b(%rip), %rax     # 0x104b90
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd 0x8(%rax), %xmm1
movslq 0x10(%rbp), %rcx
leaq 0xd1d04(%rip), %rax     # 0x104b90
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movsd 0x10(%rax), %xmm2
movl -0xc(%rbp), %edx
movl -0x10(%rbp), %ecx
movl -0x14(%rbp), %r8d
movl -0x18(%rbp), %r9d
leaq 0xb1ddf(%rip), %rsi     # 0xe4c8c
movb $0x3, %al
callq 0x4280
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)