// File: /workspace/github_c_makefile_star2_O3/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 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
movq %rax, %rbx
movabsq $0x4000000000000000, %rax # imm = 0x4000000000000000
movq %rax, 0x48(%rsp)
testq %rbx, %rbx
je 0x5077c
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 0xbb50
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 0x7a42f
testb %al, %al
je 0x506c4
testl %ebp, %ebp
je 0x50630
cmpl $0x2, %ebp
je 0x5050e
cmpl $0x1, %ebp
jne 0x506c4
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
subsd 0x8(%rsp), %xmm0
addsd 0x9a172(%rip), %xmm0    # 0xea650
callq 0xbac0
addsd 0x9a165(%rip), %xmm0    # 0xea650
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x20(%rsp), %xmm0
jmp 0x50673
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
subsd 0x8(%rsp), %xmm0
addsd 0x9a11e(%rip), %xmm0    # 0xea650
callq 0xbac0
addsd 0x9a111(%rip), %xmm0    # 0xea650
movsd %xmm0, 0x38(%rsp)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x20(%rsp), %xmm0
addsd 0x9a0eb(%rip), %xmm0    # 0xea650
callq 0xbac0
movsd 0x9a0de(%rip), %xmm2    # 0xea650
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 0x9a083(%rip), %xmm0    # 0xea650
callq 0xbac0
addsd 0x9a076(%rip), %xmm0    # 0xea650
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x9a050(%rip), %xmm0    # 0xea650
callq 0xbac0
addsd 0x9a043(%rip), %xmm0    # 0xea650
movq %r14, %rdi
movsd 0x20(%rsp), %xmm1
callq 0xb770
movq 0x10(%rbx), %rdi
movsd 0x8(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
jmp 0x506b6
movq 0x10(%rbx), %r14
movsd 0x8(%rsp), %xmm0
addsd 0x18(%rsp), %xmm0
addsd 0x9a008(%rip), %xmm0    # 0xea650
callq 0xbac0
addsd 0x99ffb(%rip), %xmm0    # 0xea650
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x99fd5(%rip), %xmm0    # 0xea650
callq 0xbac0
movsd 0x99fc8(%rip), %xmm1    # 0xea650
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 0xbbc0
movq 0x10(%rbx), %rdi
leaq 0x48(%rsp), %rsi
xorps %xmm0, %xmm0
movl $0x1, %edx
callq 0xbcc0
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x99f64(%rip), %xmm0    # 0xea650
callq 0xbac0
movsd 0x99f57(%rip), %xmm1    # 0xea650
addsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
movsd 0x28(%rsp), %xmm0
mulsd %xmm1, %xmm0
addsd 0x10(%rsp), %xmm0
addsd %xmm1, %xmm0
callq 0xbac0
movapd %xmm0, %xmm1
addsd 0x99f28(%rip), %xmm1    # 0xea650
movq %r14, %rdi
movsd 0x18(%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x30(%rsp), %xmm0
addsd 0x99f08(%rip), %xmm0    # 0xea650
callq 0xbac0
addsd 0x99efb(%rip), %xmm0    # 0xea650
xorpd %xmm1, %xmm1
movq %r14, %rdi
callq 0xb970
movq 0x10(%rbx), %rdi
callq 0xbbc0
movq 0x10(%rbx), %rdi
callq 0xba50
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
callq 0x16dca