// File: /workspace/github_c_makefile_star2_O1/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 0x2c2a8b
movq %rax, %rdi
movq %r12, %rsi
callq 0x2c284a
movq %rax, %r12
movaps 0xf7820(%rip), %xmm0    # 0x3ba0c0
movaps %xmm0, 0x60(%rsp)
movaps 0xf7824(%rip), %xmm0    # 0x3ba0d0
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 0xd8bbd(%rip), %xmm2    # 0x39b4a0
movsd 0x40(%rsp), %xmm0
mulsd %xmm0, %xmm2
movsd %xmm2, 0x58(%rsp)
movsd 0x10(%r12), %xmm1
unpcklps 0x88a0f(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x88a17(%rip), %xmm1    # 0x34b320
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 0x7ce7a(%rip), %xmm2    # 0x33f7b8
movq %rbx, %rdi
movsd 0x48(%rsp), %xmm1
movl $0x1, %esi
movl $0x1, %edx
callq 0x2ea10
leaq 0xf7783(%rip), %rsi     # 0x3ba0e0
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 0x7ce60(%rip), %xmm0    # 0x33f7e8
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 0xf772b(%rip), %rsi     # 0x3ba0e9
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x2f3c0
movq %rbx, %rdi
callq 0x2f570
addsd 0x58(%rsp), %xmm0
mulsd 0x7ce04(%rip), %xmm0    # 0x33f7e8
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 0xf76db(%rip), %rsi     # 0x3ba0f9
movq %r12, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x2f3c0
movq %rbx, %rdi
callq 0x2f570
addsd 0x58(%rsp), %xmm0
mulsd 0x7cda8(%rip), %xmm0    # 0x33f7e8
addsd 0x40(%rsp), %xmm0
movsd %xmm0, 0x40(%rsp)
movq %rbx, %rdi
callq 0x2f4c0
mulsd 0xf3314(%rip), %xmm0    # 0x3b5d70
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