// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_draw_curve_data
void gt_graphics_cairo_draw_curve_data(GtGraphics *gg, double x, double y,
                                       GtColor color, double data[],
                                       GtUword ndata, GtRange valrange,
                                       GtUword height)
{
  GtUword i, rnglen;
  double xpos;
  GtGraphicsCairo *g;
  g = gt_graphics_cairo_cast(gg);

  xpos = (((double)g->width-2*g->margin_x)/((double)ndata-1));
  rnglen = valrange.end - valrange.start;
  cairo_save(g->cr);
  cairo_move_to(g->cr,
                x,
                y+(1-(data[0]-valrange.start)/(double) rnglen)*height);
  for (i=1;i<ndata;i++)
  {
    double val, pval;
    if (gt_double_smaller_double(data[i], valrange.start)
          || gt_double_smaller_double(valrange.end, data[i]))
      break;
    val  = (double) (data[i]-valrange.start)/(double) rnglen;
    pval = (double) (data[i-1]-valrange.start)/(double) rnglen;
    gt_assert(val <= 1 && val >= 0 && pval >= 0 && pval <= 1);
    cairo_curve_to(g->cr,
                   x + ((i-0.5) * xpos),
                   y + (1-pval)   * height,
                   x + ((i-0.5) * xpos),
                   y + (1-val)    * height,
                   x + (i       * xpos),
                   y + (1-val)    * height);
  }
  cairo_set_source_rgba(g->cr, color.red,
                               color.green,
                               color.blue,
                               color.alpha);
  cairo_stroke(g->cr);
  cairo_restore(g->cr);
}

// Assembly:
subq $0xa8, %rsp
leaq 0xb0(%rsp), %rax
movq %rax, (%rsp)
movq %rcx, 0x98(%rsp)
movq %r8, 0xa0(%rsp)
movq %rdi, 0x90(%rsp)
movsd %xmm0, 0x88(%rsp)
movsd %xmm1, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq %r9, 0x68(%rsp)
callq 0x40e60
movq %rax, %rdi
movq 0x90(%rsp), %rsi
callq 0x3e730
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
movsd 0x50(%rax), %xmm1
movsd 0x68(%rax), %xmm0
addsd %xmm1, %xmm1
subsd %xmm1, %xmm0
movq 0x70(%rsp), %xmm1
movaps 0x119b46(%rip), %xmm2   # 0x15e480
movaps %xmm2, 0x10(%rsp)
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x119b45(%rip), %xmm2   # 0x15e490
movaps %xmm2, 0x20(%rsp)
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
movsd 0x119ea1(%rip), %xmm2   # 0x15e808
movsd %xmm2, 0x8(%rsp)
subsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x50(%rsp)
movq 0x98(%rsp), %rcx
movq 0xa0(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x58(%rsp)
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xb3b0
movsd 0x8(%rsp), %xmm1
movaps 0x10(%rsp), %xmm5
movaps 0x20(%rsp), %xmm4
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rdi
movsd 0x88(%rsp), %xmm0
movsd 0x80(%rsp), %xmm2
movq 0x78(%rsp), %rax
movsd (%rax), %xmm3
movq 0x98(%rsp), %xmm6
punpckldq %xmm5, %xmm6    # xmm6 = xmm6[0],xmm5[0],xmm6[1],xmm5[1]
subpd %xmm4, %xmm6
movaps %xmm6, %xmm7
unpckhpd %xmm6, %xmm6            # xmm6 = xmm6[1,1]
addsd %xmm7, %xmm6
subsd %xmm6, %xmm3
movq 0x58(%rsp), %xmm6
punpckldq %xmm5, %xmm6    # xmm6 = xmm6[0],xmm5[0],xmm6[1],xmm5[1]
subpd %xmm4, %xmm6
movaps %xmm6, %xmm7
unpckhpd %xmm6, %xmm6            # xmm6 = xmm6[1,1]
addsd %xmm7, %xmm6
divsd %xmm6, %xmm3
subsd %xmm3, %xmm1
movq 0x68(%rsp), %xmm3
punpckldq %xmm5, %xmm3    # xmm3 = xmm3[0],xmm5[0],xmm3[1],xmm5[1]
subpd %xmm4, %xmm3
movaps %xmm3, %xmm4
unpckhpd %xmm3, %xmm3            # xmm3 = xmm3[1,1]
addsd %xmm4, %xmm3
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
callq 0xb220
movq $0x1, 0x60(%rsp)
movq 0x60(%rsp), %rax
cmpq 0x70(%rsp), %rax
jae 0x44ced
movq 0x78(%rsp), %rax
movq 0x60(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movaps 0x119a15(%rip), %xmm2   # 0x15e480
movq 0x98(%rsp), %xmm1
punpckldq %xmm2, %xmm1    # xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
movapd 0x119a10(%rip), %xmm2   # 0x15e490
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
callq 0x8c360
testb $0x1, %al
jne 0x44add
movaps 0x1199e1(%rip), %xmm1   # 0x15e480
movq 0xa0(%rsp), %xmm0
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x1199dc(%rip), %xmm1   # 0x15e490
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq 0x78(%rsp), %rax
movq 0x60(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm1
callq 0x8c360
testb $0x1, %al
jne 0x44add
jmp 0x44ae2
jmp 0x44ced
movq 0x78(%rsp), %rax
movq 0x60(%rsp), %rcx
movsd (%rax,%rcx,8), %xmm0
movq 0x98(%rsp), %xmm1
movaps 0x11997f(%rip), %xmm3   # 0x15e480
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
movapd 0x119983(%rip), %xmm2   # 0x15e490
subpd %xmm2, %xmm1
movaps %xmm1, %xmm4
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm4, %xmm1
subsd %xmm1, %xmm0
movq 0x58(%rsp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm4
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm4, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x40(%rsp)
movq 0x78(%rsp), %rax
movq 0x60(%rsp), %rcx
movsd -0x8(%rax,%rcx,8), %xmm0
movq 0x98(%rsp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm4
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm4, %xmm1
subsd %xmm1, %xmm0
movq 0x58(%rsp), %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x38(%rsp)
movsd 0x119c6a(%rip), %xmm0   # 0x15e808
ucomisd 0x40(%rsp), %xmm0
jb 0x44bd4
movsd 0x40(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x44bd4
movsd 0x38(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x44bd4
movsd 0x119c3c(%rip), %xmm0   # 0x15e808
ucomisd 0x38(%rsp), %xmm0
jae 0x44c0c
movq 0x16f3fd(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x119481(%rip), %rsi    # 0x15e066
leaq 0x123d50(%rip), %rdx    # 0x16893c
leaq 0x123d78(%rip), %rcx    # 0x16896b
leaq 0x1237b2(%rip), %r8     # 0x1683ac
movl $0x35b, %r9d            # imm = 0x35B
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x44c0e
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rdi
movsd 0x88(%rsp), %xmm8
movq 0x60(%rsp), %xmm4
movaps 0x119851(%rip), %xmm10  # 0x15e480
punpckldq %xmm10, %xmm4   # xmm4 = xmm4[0],xmm10[0],xmm4[1],xmm10[1]
movapd 0x119854(%rip), %xmm3   # 0x15e490
subpd %xmm3, %xmm4
movaps %xmm4, %xmm0
unpckhpd %xmm4, %xmm4            # xmm4 = xmm4[1,1]
addsd %xmm0, %xmm4
movsd 0x1236ed(%rip), %xmm0   # 0x168340
movaps %xmm4, %xmm2
addsd %xmm0, %xmm2
movsd 0x50(%rsp), %xmm9
mulsd %xmm9, %xmm2
addsd %xmm8, %xmm2
movaps %xmm2, %xmm0
movsd 0x80(%rsp), %xmm6
movsd 0x38(%rsp), %xmm7
movsd 0x119b83(%rip), %xmm5   # 0x15e808
movaps %xmm5, %xmm1
subsd %xmm7, %xmm1
movq 0x68(%rsp), %xmm7
punpckldq %xmm10, %xmm7   # xmm7 = xmm7[0],xmm10[0],xmm7[1],xmm10[1]
subpd %xmm3, %xmm7
movaps %xmm7, %xmm3
unpckhpd %xmm7, %xmm7            # xmm7 = xmm7[1,1]
addsd %xmm3, %xmm7
mulsd %xmm7, %xmm1
addsd %xmm6, %xmm1
movsd 0x40(%rsp), %xmm3
subsd %xmm3, %xmm5
movaps %xmm5, %xmm3
mulsd %xmm7, %xmm3
addsd %xmm6, %xmm3
mulsd %xmm9, %xmm4
addsd %xmm8, %xmm4
mulsd %xmm7, %xmm5
addsd %xmm6, %xmm5
callq 0xb920
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
jmp 0x44a45
movq (%rsp), %rax
movq 0x48(%rsp), %rcx
movq 0x10(%rcx), %rdi
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movsd 0x10(%rax), %xmm2
movsd 0x18(%rax), %xmm3
callq 0xb360
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xbb80
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xba10
addq $0xa8, %rsp
retq
nopw %cs:(%rax,%rax)