// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/custom_track_example.c
// Function: gt_custom_track_example_sketch
int gt_custom_track_example_sketch(GtCustomTrack *ct, GtGraphics *graphics,
                                   unsigned int start_ypos,
                                   GtRange viewrange,
                                   GtStyle *style, GT_UNUSED GtError *err)
{
  int had_err = 0;
  GtCustomTrackExample *cte;
  double margins;
  GtColor color;
  char buffer[BUFSIZ];
  cte = gt_custom_track_example_cast(ct);

  color.red = color.blue = color.green = 0.9;
  color.alpha = 0.3;

  margins = gt_graphics_get_xmargins(graphics);
  gt_graphics_draw_rectangle(graphics,
                             margins,
                             start_ypos,
                             true,
                             color,
                             true,
                             color,
                             1.0,
                             gt_graphics_get_image_width(graphics)
                               - 2*margins,
                             cte->height);

  sprintf(buffer, "Style %p", style);
  gt_graphics_draw_text_centered(graphics,
                            margins+((gt_graphics_get_image_width(graphics)
                              - 2*margins) /2),
                             start_ypos + gt_graphics_get_text_height(graphics),
                             ((const char*) buffer));

  sprintf(buffer, "Range "GT_WU" - "GT_WU"", viewrange.start, viewrange.end);
  gt_graphics_draw_text_centered(graphics,
                           margins+((gt_graphics_get_image_width(graphics)
                             - 2*margins) /2),
                           start_ypos + 2*gt_graphics_get_text_height(graphics),
                           ((const char*) buffer));

  sprintf(buffer, "Start position y=%u", start_ypos);
  gt_graphics_draw_text_centered(graphics,
                           margins+((gt_graphics_get_image_width(graphics)
                             - 2*margins) /2),
                           start_ypos + 3*gt_graphics_get_text_height(graphics),
                           ((const char*) buffer));

  return had_err;
}

// Assembly:
subq $0x2138, %rsp           # imm = 0x2138
movq 0x2140(%rsp), %rax
movq %rcx, 0x2128(%rsp)
movq %r8, 0x2130(%rsp)
movq %rdi, 0x2120(%rsp)
movq %rsi, 0x2118(%rsp)
movl %edx, 0x2114(%rsp)
movq %r9, 0x2108(%rsp)
movl $0x0, 0x2104(%rsp)
callq 0x417da0
movq %rax, %rdi
movq 0x2120(%rsp), %rsi
callq 0x417920
movq %rax, 0x20f8(%rsp)
movabsq $0x3feccccccccccccd, %rax # imm = 0x3FECCCCCCCCCCCCD
movq %rax, 0x20d8(%rsp)
movq %rax, 0x20e0(%rsp)
movq %rax, 0x20d0(%rsp)
movabsq $0x3fd3333333333333, %rax # imm = 0x3FD3333333333333
movq %rax, 0x20e8(%rsp)
movq 0x2118(%rsp), %rdi
callq 0x32610
movsd %xmm0, 0x20f0(%rsp)
movq 0x2118(%rsp), %rdi
movq %rdi, 0x40(%rsp)
movsd 0x20f0(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movl 0x2114(%rsp), %eax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x48(%rsp)
callq 0x315b0
movq 0x40(%rsp), %rdi
movsd 0x48(%rsp), %xmm1
movaps %xmm0, %xmm3
movsd 0x50(%rsp), %xmm0
movsd 0x20f0(%rsp), %xmm2
addsd %xmm2, %xmm2
subsd %xmm2, %xmm3
movq 0x20f8(%rsp), %rax
movq 0x10(%rax), %xmm4
movaps 0xe9824(%rip), %xmm2    # 0x5012e0
punpckldq %xmm2, %xmm4    # xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
movapd 0xe9828(%rip), %xmm2    # 0x5012f0
subpd %xmm2, %xmm4
movaps %xmm4, %xmm2
unpckhpd %xmm4, %xmm4            # xmm4 = xmm4[1,1]
addsd %xmm2, %xmm4
movups 0x20d0(%rsp), %xmm2
movups 0x20e0(%rsp), %xmm5
movq %rsp, %rax
movups %xmm5, 0x30(%rax)
movups %xmm2, 0x20(%rax)
movups %xmm5, 0x10(%rax)
movups %xmm2, (%rax)
movl $0x1, %edx
movsd 0xdeb62(%rip), %xmm2    # 0x4f6668
movl %edx, %esi
callq 0x30a40
movq 0x2108(%rsp), %rdx
leaq 0x15b568(%rip), %rsi    # 0x573084
xorl %eax, %eax
movb %al, 0xa7(%rsp)
leaq 0xd0(%rsp), %rdi
movq %rdi, 0x98(%rsp)
callq 0x31400
movq 0x2118(%rsp), %rdi
movq %rdi, 0x68(%rsp)
movsd 0x20f0(%rsp), %xmm0
movsd %xmm0, 0x58(%rsp)
callq 0x315b0
movaps %xmm0, %xmm1
movsd 0x58(%rsp), %xmm0
movsd 0x20f0(%rsp), %xmm2
addsd %xmm2, %xmm2
subsd %xmm2, %xmm1
movsd 0xdeb3b(%rip), %xmm2    # 0x4f66b8
movsd %xmm2, 0xa8(%rsp)
mulsd %xmm2, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x70(%rsp)
movl 0x2114(%rsp), %eax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x60(%rsp)
movq 0x2118(%rsp), %rdi
callq 0x31500
movsd 0x60(%rsp), %xmm1
movq 0x68(%rsp), %rdi
movq 0x98(%rsp), %rsi
movaps %xmm0, %xmm2
movsd 0x70(%rsp), %xmm0
addsd %xmm2, %xmm1
callq 0x31270
movq 0x98(%rsp), %rdi
movb 0xa7(%rsp), %al
movq 0x2128(%rsp), %rdx
movq 0x2130(%rsp), %rcx
leaq 0x15b48f(%rip), %rsi    # 0x57308d
callq 0x31400
movq 0x2118(%rsp), %rdi
movq %rdi, 0x88(%rsp)
movsd 0x20f0(%rsp), %xmm0
movsd %xmm0, 0x78(%rsp)
callq 0x315b0
movsd 0xa8(%rsp), %xmm2
movaps %xmm0, %xmm1
movsd 0x78(%rsp), %xmm0
movsd 0x20f0(%rsp), %xmm3
addsd %xmm3, %xmm3
subsd %xmm3, %xmm1
mulsd %xmm2, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0x90(%rsp)
movl 0x2114(%rsp), %eax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x80(%rsp)
movq 0x2118(%rsp), %rdi
callq 0x31500
movsd 0x80(%rsp), %xmm2
movq 0x88(%rsp), %rdi
movq 0x98(%rsp), %rsi
movaps %xmm0, %xmm1
movsd 0x90(%rsp), %xmm0
addsd %xmm1, %xmm1
addsd %xmm2, %xmm1
callq 0x31270
movq 0x98(%rsp), %rdi
movb 0xa7(%rsp), %al
movl 0x2114(%rsp), %edx
leaq 0x15b3d1(%rip), %rsi    # 0x57309d
callq 0x31400
movq 0x2118(%rsp), %rdi
movq %rdi, 0xc0(%rsp)
movsd 0x20f0(%rsp), %xmm0
movsd %xmm0, 0xb0(%rsp)
callq 0x315b0
movsd 0xa8(%rsp), %xmm2
movaps %xmm0, %xmm1
movsd 0xb0(%rsp), %xmm0
movsd 0x20f0(%rsp), %xmm3
addsd %xmm3, %xmm3
subsd %xmm3, %xmm1
mulsd %xmm2, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, 0xc8(%rsp)
movl 0x2114(%rsp), %eax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0xb8(%rsp)
movq 0x2118(%rsp), %rdi
callq 0x31500
movsd 0xb8(%rsp), %xmm2
movq 0xc0(%rsp), %rdi
movaps %xmm0, %xmm1
movsd 0xc8(%rsp), %xmm0
movsd 0x156d92(%rip), %xmm3   # 0x56eb08
mulsd %xmm3, %xmm1
addsd %xmm2, %xmm1
leaq 0xd0(%rsp), %rsi
callq 0x31270
movl 0x2104(%rsp), %eax
addq $0x2138, %rsp           # imm = 0x2138
retq
nopw (%rax,%rax)