// File: /workspace/github_c_makefile_star2_O2/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 0x2679a7
movq %rax, %rdi
movq %r12, %rsi
callq 0x26773b
movq %rax, %r12
movaps 0xec5fc(%rip), %xmm0    # 0x353dc0
movaps %xmm0, 0x60(%rsp)
movaps 0xec600(%rip), %xmm0    # 0x353dd0
movaps %xmm0, 0x70(%rsp)
movq %rbx, %rdi
callq 0x315f0
movsd %xmm0, 0x40(%rsp)
movl %ebp, %eax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x48(%rsp)
movq %rbx, %rdi
callq 0x305a0
movapd %xmm0, %xmm3
movsd 0xcda94(%rip), %xmm2    # 0x335298
movsd 0x40(%rsp), %xmm0
mulsd %xmm0, %xmm2
movsd %xmm2, 0x58(%rsp)
movsd 0x10(%r12), %xmm1
unpcklps 0x7da0e(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x7da16(%rip), %xmm1    # 0x2e5240
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)
pushq $0x1
popq %rdx
movsd 0x71ff6(%rip), %xmm2    # 0x2d9858
movq %rbx, %rdi
movsd 0x48(%rsp), %xmm1
movl %edx, %esi
callq 0x2fa20
leaq 0xec567(%rip), %rsi     # 0x353de0
leaq 0x80(%rsp), %r12
movq %r12, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x303f0
movq %rbx, %rdi
callq 0x305a0
addsd 0x58(%rsp), %xmm0
mulsd 0x71ffc(%rip), %xmm0    # 0x2d98a0
addsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movq %rbx, %rdi
callq 0x304f0
movapd %xmm0, %xmm1
addsd 0x48(%rsp), %xmm1
movq %rbx, %rdi
movsd 0x50(%rsp), %xmm0
movq %r12, %rsi
callq 0x30260
leaq 0xec50f(%rip), %rsi     # 0x353de9
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x303f0
movq %rbx, %rdi
callq 0x305a0
addsd 0x58(%rsp), %xmm0
mulsd 0x71fa0(%rip), %xmm0    # 0x2d98a0
addsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x50(%rsp)
movq %rbx, %rdi
callq 0x304f0
movapd %xmm0, %xmm1
addsd %xmm0, %xmm1
addsd 0x48(%rsp), %xmm1
movq %rbx, %rdi
movsd 0x50(%rsp), %xmm0
movq %r12, %rsi
callq 0x30260
leaq 0xec4bf(%rip), %rsi     # 0x353df9
movq %r12, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x303f0
movq %rbx, %rdi
callq 0x305a0
addsd 0x58(%rsp), %xmm0
mulsd 0x71f44(%rip), %xmm0    # 0x2d98a0
addsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movq %rbx, %rdi
callq 0x304f0
mulsd 0xe8190(%rip), %xmm0    # 0x34fb08
movsd 0x48(%rsp), %xmm1
addsd %xmm0, %xmm1
movq %rbx, %rdi
movsd 0x40(%rsp), %xmm0
movq %r12, %rsi
callq 0x30260
xorl %eax, %eax
addq $0x2088, %rsp           # imm = 0x2088
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq