// File: /workspace/github_c_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2088, %rsp           # imm = 0x2088
movq %r9, %r13
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r12
callq 0x2b8327
movq %rax, %rdi
movq %r12, %rsi
callq 0x2b80e6
movq %rax, %r12
movaps 0xf8834(%rip), %xmm0    # 0x3b0970
movaps %xmm0, 0x60(%rsp)
movaps 0xf8838(%rip), %xmm0    # 0x3b0980
movaps %xmm0, 0x70(%rsp)
movq %rbx, %rdi
callq 0x30590
movsd %xmm0, 0x40(%rsp)
movl %ebp, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x48(%rsp)
movq %rbx, %rdi
callq 0x2f570
movapd %xmm0, %xmm3
movsd 0xd9db1(%rip), %xmm2    # 0x391f30
movsd 0x40(%rsp), %xmm0
mulsd %xmm0, %xmm2
movsd %xmm2, 0x58(%rsp)
movsd 0x10(%r12), %xmm1
unpcklps 0x8a1c3(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x8a1cb(%rip), %xmm1    # 0x342370
addsd %xmm2, %xmm3
movapd %xmm1, %xmm4
unpckhpd %xmm1, %xmm4            # xmm4 = xmm4[1],xmm1[1]
addsd %xmm1, %xmm4
movaps 0x60(%rsp), %xmm2
movaps 0x70(%rsp), %xmm1
movups %xmm1, 0x30(%rsp)
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm2, (%rsp)
movsd 0x7e6ee(%rip), %xmm2    # 0x3368c8
movq %rbx, %rdi
movsd 0x48(%rsp), %xmm1
movl $0x1, %esi
movl $0x1, %edx
callq 0x2ea10
leaq 0xf8797(%rip), %rsi     # 0x3b0990
leaq 0x80(%rsp), %r12
movq %r12, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x2f3c0
movq %rbx, %rdi
callq 0x2f570
addsd 0x58(%rsp), %xmm0
mulsd 0x7e6d4(%rip), %xmm0    # 0x3368f8
addsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movq %rbx, %rdi
callq 0x2f4c0
movapd %xmm0, %xmm1
addsd 0x48(%rsp), %xmm1
movq %rbx, %rdi
movsd 0x50(%rsp), %xmm0
movq %r12, %rsi
callq 0x2f250
leaq 0xf873f(%rip), %rsi     # 0x3b0999
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x2f3c0
movq %rbx, %rdi
callq 0x2f570
addsd 0x58(%rsp), %xmm0
mulsd 0x7e678(%rip), %xmm0    # 0x3368f8
addsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movq %rbx, %rdi
callq 0x2f4c0
movapd %xmm0, %xmm1
addsd %xmm0, %xmm1
addsd 0x48(%rsp), %xmm1
movq %rbx, %rdi
movsd 0x50(%rsp), %xmm0
movq %r12, %rsi
callq 0x2f250
leaq 0xf86ef(%rip), %rsi     # 0x3b09a9
movq %r12, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x2f3c0
movq %rbx, %rdi
callq 0x2f570
addsd 0x58(%rsp), %xmm0
mulsd 0x7e61c(%rip), %xmm0    # 0x3368f8
addsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movq %rbx, %rdi
callq 0x2f4c0
mulsd 0xf43b8(%rip), %xmm0    # 0x3ac6b0
movsd 0x48(%rsp), %xmm1
addsd %xmm0, %xmm1
movq %rbx, %rdi
movsd 0x40(%rsp), %xmm0
movq %r12, %rsi
callq 0x2f250
xorl %eax, %eax
addq $0x2088, %rsp           # imm = 0x2088
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq