// File: /workspace/github_c_makefile_star2_O0/olcaytaner[P]Isell/pstricks.c
// Function: write_rectangle_pstricks
void write_rectangle_pstricks(FILE* myfile, double corner1x, double corner1y, double corner2x, double corner2y, FILL_TYPE filltype, int color)
{
 switch (filltype)
  {
   case FILL_NONE      :fprintf(myfile, "\\psframe(%f, %f)(%f, %f)\n", corner1x, corner1y, corner2x, corner2y);
                        break;
   case FILL_FLOOD     :fprintf(myfile, "\\psframe[fillstyle=solid,fillcolor=black](%f, %f)(%f, %f)\n", corner1x, corner1y, corner2x, corner2y);
                        break;
   case FILL_GRAY      :fprintf(myfile, "\\psframe[fillstyle=solid,fillcolor=lightgray](%f, %f)(%f, %f)\n", corner1x, corner1y, corner2x, corner2y);
                        break;
   case FILL_VERTICAL  :fprintf(myfile, "\\psframe[fillstyle=vlines](%f, %f)(%f, %f)\n", corner1x, corner1y, corner2x, corner2y);
                        break;
   case FILL_HORIZONTAL:fprintf(myfile, "\\psframe[fillstyle=hlines](%f, %f)(%f, %f)\n", corner1x, corner1y, corner2x, corner2y);
                        break;
   case FILL_SQUARE    :fprintf(myfile, "\\psframe[fillstyle=crosshatch](%f, %f)(%f, %f)\n", corner1x, corner1y, corner2x, corner2y);
                        break;
   case FILL_COLOR     :fprintf(myfile, "\\psframe[fillstyle=solid,fillcolor=%s](%f, %f)(%f, %f)\n", pstrickscolors[color], corner1x, corner1y, corner2x, corner2y);
                        break;
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
movsd %xmm1, -0x18(%rbp)
movsd %xmm2, -0x20(%rbp)
movsd %xmm3, -0x28(%rbp)
movl %esi, -0x2c(%rbp)
movl %edx, -0x30(%rbp)
movl -0x2c(%rbp), %eax
movq %rax, -0x38(%rbp)
subq $0x6, %rax
ja 0x9a3cc
movq -0x38(%rbp), %rax
leaq 0x51206(%rip), %rcx     # 0xeb498
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
movsd -0x20(%rbp), %xmm2
movsd -0x28(%rbp), %xmm3
leaq 0x51344(%rip), %rsi     # 0xeb5fe
movb $0x4, %al
callq 0x4280
jmp 0x9a3cc
movq -0x8(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
movsd -0x20(%rbp), %xmm2
movsd -0x28(%rbp), %xmm3
leaq 0x51333(%rip), %rsi     # 0xeb618
movb $0x4, %al
callq 0x4280
jmp 0x9a3cc
movq -0x8(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
movsd -0x20(%rbp), %xmm2
movsd -0x28(%rbp), %xmm3
leaq 0x51343(%rip), %rsi     # 0xeb653
movb $0x4, %al
callq 0x4280
jmp 0x9a3cc
movq -0x8(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
movsd -0x20(%rbp), %xmm2
movsd -0x28(%rbp), %xmm3
leaq 0x51357(%rip), %rsi     # 0xeb692
movb $0x4, %al
callq 0x4280
jmp 0x9a3cc
movq -0x8(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
movsd -0x20(%rbp), %xmm2
movsd -0x28(%rbp), %xmm3
leaq 0x51358(%rip), %rsi     # 0xeb6be
movb $0x4, %al
callq 0x4280
jmp 0x9a3cc
movq -0x8(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
movsd -0x20(%rbp), %xmm2
movsd -0x28(%rbp), %xmm3
leaq 0x5135c(%rip), %rsi     # 0xeb6ea
movb $0x4, %al
callq 0x4280
jmp 0x9a3cc
movq -0x8(%rbp), %rdi
movslq -0x30(%rbp), %rcx
leaq 0x6aeda(%rip), %rax     # 0x105280
movq (%rax,%rcx,8), %rdx
movsd -0x10(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
movsd -0x20(%rbp), %xmm2
movsd -0x28(%rbp), %xmm3
leaq 0x51355(%rip), %rsi     # 0xeb71a
movb $0x4, %al
callq 0x4280
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)