// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_draw_dashes
void gt_graphics_cairo_draw_dashes(GtGraphics *gg, double x, double y,
                                   double width, double height,
                                   ArrowStatus arrow_status, double arrow_width,
                                   double stroke_width, GtColor stroke_color)
{
  GtGraphicsCairo *g = gt_graphics_cairo_cast(gg);
  double dashes[] = {2.0};
  gt_assert(g);
  /* save cairo context */
  cairo_save(g->cr);
  cairo_rectangle(g->cr, g->margin_x, g->margin_y,
                  g->width-2*g->margin_x, g->height-2*g->margin_y);
  cairo_clip(g->cr);
  cairo_set_line_width(g->cr, stroke_width);
  cairo_set_source_rgba(g->cr, stroke_color.red,
                               stroke_color.green,
                               stroke_color.blue,
                               stroke_color.alpha);
  /* create arrowhead path */
  if (gt_double_smaller_double(0, width - arrow_width))
  {
    switch (arrow_status)
    {
      case ARROW_RIGHT:
        cairo_move_to(g->cr, rnd_to_nhalf(x + width - arrow_width), y);
        cairo_line_to(g->cr, rnd_to_nhalf(x + width), y + height / 2);
        cairo_line_to(g->cr, rnd_to_nhalf(x + width - arrow_width), y + height);
        /* draw arrowhead */
        cairo_stroke(g->cr);
        break;
      case ARROW_LEFT:
        cairo_move_to(g->cr, rnd_to_nhalf(x + arrow_width), y);
        cairo_line_to(g->cr, rnd_to_nhalf(x), y + height / 2);
        cairo_line_to(g->cr, rnd_to_nhalf(x + arrow_width), y + height);
        /* draw arrowhead */
        cairo_stroke(g->cr);
        break;
      case ARROW_BOTH:
        cairo_move_to(g->cr, rnd_to_nhalf(x + width - arrow_width), y);
        cairo_line_to(g->cr, rnd_to_nhalf(x + width), y + height / 2);
        cairo_line_to(g->cr, rnd_to_nhalf(x + width - arrow_width), y + height);
        cairo_move_to(g->cr, rnd_to_nhalf(x + arrow_width), y);
        cairo_line_to(g->cr, rnd_to_nhalf(x), y + height / 2);
        cairo_line_to(g->cr, rnd_to_nhalf(x + arrow_width), y + height);
        cairo_stroke(g->cr);
        break;
      case ARROW_NONE: break;
    }
  }
  /* draw dashes */
  cairo_set_dash(g->cr, dashes, 1, (double) 0);
  cairo_move_to(g->cr, rnd_to_nhalf(x), rnd_to_nhalf(y+(height/2)));
  cairo_rel_line_to(g->cr, rnd_to_nhalf(width), 0);
  cairo_stroke(g->cr);
  /* restore cairo context */
  cairo_restore(g->cr);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
movsd %xmm5, 0x20(%rsp)
movsd %xmm4, 0x8(%rsp)
movl %esi, %ebp
movsd %xmm3, 0x28(%rsp)
movsd %xmm2, 0x30(%rsp)
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x18(%rsp)
movq %rdi, %rbx
callq 0x2e259
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2c5a1
movq %rax, %rbx
movabsq $0x4000000000000000, %rax # imm = 0x4000000000000000
movq %rax, 0x48(%rsp)
testq %rbx, %rbx
je 0x2fdd2
leaq 0x70(%rsp), %r14
movq 0x10(%rbx), %rdi
callq 0xb3d0
movq 0x10(%rbx), %rdi
movsd 0x50(%rbx), %xmm0
movsd 0x58(%rbx), %xmm1
movsd 0x68(%rbx), %xmm2
movapd %xmm0, %xmm3
addsd %xmm0, %xmm3
subsd %xmm3, %xmm2
movsd 0x60(%rbx), %xmm3
movapd %xmm1, %xmm4
addsd %xmm1, %xmm4
subsd %xmm4, %xmm3
callq 0xb2e0
movq 0x10(%rbx), %rdi
callq 0xbb40
movq 0x10(%rbx), %rdi
movsd 0x20(%rsp), %xmm0
callq 0xb0a0
movq 0x10(%rbx), %rdi
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm3
callq 0xb380
movsd 0x30(%rsp), %xmm1
subsd 0x8(%rsp), %xmm1
xorps %xmm0, %xmm0
callq 0x58dba
testb %al, %al
je 0x2fd1c
testl %ebp, %ebp
je 0x2fc88
cmpl $0x2, %ebp
je 0x2fb66
cmpl $0x1, %ebp
jne 0x2fd1c
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
subsd 0x8(%rsp), %xmm0
addsd 0xa3b0a(%rip), %xmm0    # 0xd3640
callq 0xbab0
addsd 0xa3afd(%rip), %xmm0    # 0xd3640
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x20(%rsp), %xmm0
jmp 0x2fccb
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
subsd 0x8(%rsp), %xmm0
addsd 0xa3ab6(%rip), %xmm0    # 0xd3640
callq 0xbab0
addsd 0xa3aa9(%rip), %xmm0    # 0xd3640
movsd %xmm0, 0x38(%rsp)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x20(%rsp), %xmm0
addsd 0xa3a83(%rip), %xmm0    # 0xd3640
callq 0xbab0
movsd 0xa3a76(%rip), %xmm2    # 0xd3640
addsd %xmm2, %xmm0
movsd 0x28(%rsp), %xmm1
mulsd %xmm2, %xmm1
addsd 0x10(%rsp), %xmm1
movsd %xmm1, 0x20(%rsp)
movq %r14, %rdi
callq 0xb770
movq 0x10(%rbx), %rdi
movsd 0x10(%rsp), %xmm1
addsd 0x28(%rsp), %xmm1
movsd %xmm1, 0x40(%rsp)
movsd 0x38(%rsp), %xmm0
callq 0xb770
movq 0x10(%rbx), %r14
movsd 0x8(%rsp), %xmm0
addsd 0x18(%rsp), %xmm0
addsd 0xa3a1b(%rip), %xmm0    # 0xd3640
callq 0xbab0
addsd 0xa3a0e(%rip), %xmm0    # 0xd3640
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0xa39e8(%rip), %xmm0    # 0xd3640
callq 0xbab0
addsd 0xa39db(%rip), %xmm0    # 0xd3640
movq %r14, %rdi
movsd 0x20(%rsp), %xmm1
callq 0xb770
movq 0x10(%rbx), %rdi
movsd 0x8(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
jmp 0x2fd0e
movq 0x10(%rbx), %r14
movsd 0x8(%rsp), %xmm0
addsd 0x18(%rsp), %xmm0
addsd 0xa39a0(%rip), %xmm0    # 0xd3640
callq 0xbab0
addsd 0xa3993(%rip), %xmm0    # 0xd3640
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0xa396d(%rip), %xmm0    # 0xd3640
callq 0xbab0
movsd 0xa3960(%rip), %xmm1    # 0xd3640
addsd %xmm1, %xmm0
mulsd 0x28(%rsp), %xmm1
addsd 0x10(%rsp), %xmm1
movq %r14, %rdi
callq 0xb770
movq 0x10(%rbx), %rdi
movsd 0x10(%rsp), %xmm1
addsd 0x28(%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
callq 0xb770
movq 0x10(%rbx), %rdi
callq 0xbbb0
movq 0x10(%rbx), %rdi
leaq 0x48(%rsp), %rsi
pushq $0x1
popq %rdx
xorps %xmm0, %xmm0
callq 0xbcb0
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0xa38fe(%rip), %xmm0    # 0xd3640
callq 0xbab0
movsd 0xa38f1(%rip), %xmm1    # 0xd3640
addsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0x28(%rsp), %xmm0
mulsd %xmm1, %xmm0
addsd 0x10(%rsp), %xmm0
addsd %xmm1, %xmm0
callq 0xbab0
movapd %xmm0, %xmm1
addsd 0xa38c2(%rip), %xmm1    # 0xd3640
movq %r14, %rdi
movsd 0x18(%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x30(%rsp), %xmm0
addsd 0xa38a2(%rip), %xmm0    # 0xd3640
callq 0xbab0
addsd 0xa3895(%rip), %xmm0    # 0xd3640
xorpd %xmm1, %xmm1
movq %r14, %rdi
callq 0xb960
movq 0x10(%rbx), %rdi
callq 0xbbb0
movq 0x10(%rbx), %rdi
callq 0xba40
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq 0xfe1df(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x9a283(%rip), %rsi     # 0xca066
leaq 0xa3de5(%rip), %rdx     # 0xd3bcf
leaq 0xa472d(%rip), %rcx     # 0xd451e
leaq 0xa4374(%rip), %r8      # 0xd416c
movl $0x1d0, %r9d            # imm = 0x1D0
xorl %eax, %eax
callq 0xb8c0
callq 0xb300