// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
movq %rax, %rbx
movabsq $0x4000000000000000, %rax # imm = 0x4000000000000000
movq %rax, 0x48(%rsp)
testq %rbx, %rbx
je 0x51403
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 0x7a0a0
testb %al, %al
je 0x5134b
testl %ebp, %ebp
je 0x512b7
cmpl $0x2, %ebp
je 0x51195
cmpl $0x1, %ebp
jne 0x5134b
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
subsd 0x8(%rsp), %xmm0
addsd 0x9953b(%rip), %xmm0    # 0xea6a0
callq 0xbac0
addsd 0x9952e(%rip), %xmm0    # 0xea6a0
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x20(%rsp), %xmm0
jmp 0x512fa
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x20(%rsp)
subsd 0x8(%rsp), %xmm0
addsd 0x994e7(%rip), %xmm0    # 0xea6a0
callq 0xbac0
addsd 0x994da(%rip), %xmm0    # 0xea6a0
movsd %xmm0, 0x38(%rsp)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x20(%rsp), %xmm0
addsd 0x994b4(%rip), %xmm0    # 0xea6a0
callq 0xbac0
movsd 0x994a7(%rip), %xmm2    # 0xea6a0
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 0x9944c(%rip), %xmm0    # 0xea6a0
callq 0xbac0
addsd 0x9943f(%rip), %xmm0    # 0xea6a0
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x99419(%rip), %xmm0    # 0xea6a0
callq 0xbac0
addsd 0x9940c(%rip), %xmm0    # 0xea6a0
movq %r14, %rdi
movsd 0x20(%rsp), %xmm1
callq 0xb770
movq 0x10(%rbx), %rdi
movsd 0x8(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
jmp 0x5133d
movq 0x10(%rbx), %r14
movsd 0x8(%rsp), %xmm0
addsd 0x18(%rsp), %xmm0
addsd 0x993d1(%rip), %xmm0    # 0xea6a0
callq 0xbac0
addsd 0x993c4(%rip), %xmm0    # 0xea6a0
movsd %xmm0, 0x8(%rsp)
movq %r14, %rdi
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x9939e(%rip), %xmm0    # 0xea6a0
callq 0xbac0
movsd 0x99391(%rip), %xmm1    # 0xea6a0
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 0x9932d(%rip), %xmm0    # 0xea6a0
callq 0xbac0
movsd 0x99320(%rip), %xmm1    # 0xea6a0
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 0x992f1(%rip), %xmm1    # 0xea6a0
movq %r14, %rdi
movsd 0x18(%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x30(%rsp), %xmm0
addsd 0x992d1(%rip), %xmm0    # 0xea6a0
callq 0xbac0
addsd 0x992c4(%rip), %xmm0    # 0xea6a0
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 0x16f1c