LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_draw_colored_text
void gt_graphics_cairo_draw_colored_text(GtGraphics *gg, double x, double y,
                                         GtColor color, const char *text)
{
  GtGraphicsCairo *g = gt_graphics_cairo_cast(gg);
  gt_assert(g && text && g->layout);

  pango_layout_set_text(g->layout, text, -1);

  cairo_set_source_rgb(g->cr, color.red, color.green, color.blue);
  cairo_move_to(g->cr, x, y-g->font_height);
  pango_cairo_show_layout(g->cr, g->layout);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, (%rsp)
movq %rdi, %rbx
callq 0x2e259
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2c5a1
testq %r14, %r14
je 0x2eaac
movq %rax, %rbx
testq %rax, %rax
je 0x2eaac
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x2eaac
leaq 0x30(%rsp), %r15
pushq $-0x1
popq %rdx
movq %r14, %rsi
callq 0xb1a0
movq 0x10(%rbx), %rdi
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movsd 0x10(%r15), %xmm2
callq 0xb3e0
movq 0x10(%rbx), %rdi
cvtsi2sdl 0x88(%rbx), %xmm0
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd (%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %rdi
movq 0x78(%rbx), %rsi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xbc00
movq 0xff505(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x9b5a9(%rip), %rsi     # 0xca066
leaq 0xa580c(%rip), %rdx     # 0xd42d0
leaq 0xa58a0(%rip), %rcx     # 0xd436b
leaq 0xa569a(%rip), %r8      # 0xd416c
movl $0xfa, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_set_margins
void gt_graphics_cairo_set_margins(GtGraphics *gg, double margin_x,
                                   double margin_y)
{
  GtGraphicsCairo *g = gt_graphics_cairo_cast(gg);
  gt_assert(g);
  g->margin_x = margin_x;
  g->margin_y = margin_y;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, (%rsp)
movq %rdi, %rbx
callq 0x2e259
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2c5a1
testq %rax, %rax
je 0x2ec87
movsd (%rsp), %xmm0
movsd %xmm0, 0x50(%rax)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x58(%rax)
addq $0x10, %rsp
popq %rbx
retq
movq 0xff32a(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x9b3ce(%rip), %rsi     # 0xca066
leaq 0xa4f30(%rip), %rdx     # 0xd3bcf
leaq 0xa576c(%rip), %rcx     # 0xd4412
leaq 0xa54bf(%rip), %r8      # 0xd416c
movl $0x123, %r9d            # imm = 0x123
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_draw_line
void gt_graphics_cairo_draw_line(GtGraphics *gg, double x, double y,
                                 double xto, double yto, GtColor color,
                                 double stroke_width)
{
  GtGraphicsCairo *g = gt_graphics_cairo_cast(gg);
  gt_assert(g);
  cairo_save(g->cr);
  cairo_move_to(g->cr, x, rnd_to_nhalf(y));
  cairo_line_to(g->cr, xto, rnd_to_nhalf(yto));
  cairo_set_line_width(g->cr, stroke_width);
  cairo_set_source_rgba(g->cr, color.red, color.green, color.blue, color.alpha);
  cairo_stroke(g->cr);
  cairo_restore(g->cr);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movsd %xmm4, 0x28(%rsp)
movsd %xmm3, 0x18(%rsp)
movsd %xmm2, 0x20(%rsp)
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, 0x10(%rsp)
movq %rdi, %rbx
callq 0x2e259
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2c5a1
testq %rax, %rax
je 0x2edbf
movq %rax, %rbx
leaq 0x50(%rsp), %r15
movq 0x10(%rax), %rdi
callq 0xb3d0
movq 0x10(%rbx), %r14
movsd 0x8(%rsp), %xmm0
addsd 0xa491b(%rip), %xmm0    # 0xd3640
callq 0xbab0
movapd %xmm0, %xmm1
addsd 0xa490a(%rip), %xmm1    # 0xd3640
movq %r14, %rdi
movsd 0x10(%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0xa48ea(%rip), %xmm0    # 0xd3640
callq 0xbab0
movsd 0xa48dd(%rip), %xmm1    # 0xd3640
addsd %xmm0, %xmm1
movq %r14, %rdi
movsd 0x20(%rsp), %xmm0
callq 0xb770
movq 0x10(%rbx), %rdi
movsd 0x28(%rsp), %xmm0
callq 0xb0a0
movq 0x10(%rbx), %rdi
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movsd 0x10(%r15), %xmm2
movsd 0x18(%r15), %xmm3
callq 0xb380
movq 0x10(%rbx), %rdi
callq 0xbbb0
movq 0x10(%rbx), %rdi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xba40
movq 0xff1f2(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x9b296(%rip), %rsi     # 0xca066
leaq 0xa4df8(%rip), %rdx     # 0xd3bcf
leaq 0xa5652(%rip), %rcx     # 0xd4430
leaq 0xa5387(%rip), %r8      # 0xd416c
movl $0x12d, %r9d            # imm = 0x12D
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_draw_horizontal_line
void gt_graphics_cairo_draw_horizontal_line(GtGraphics *gg, double x, double y,
                                            GtColor color, double width,
                                            double stroke_width)
{
  GtGraphicsCairo *g = gt_graphics_cairo_cast(gg);
  gt_assert(g);
  cairo_save(g->cr);
  cairo_set_line_width(g->cr, 1);
  cairo_move_to(g->cr, x, rnd_to_nhalf(y));
  cairo_rel_line_to(g->cr, width, 0);
  cairo_set_line_width(g->cr, stroke_width);
  cairo_set_source_rgba(g->cr, color.red, color.green, color.blue, color.alpha);
  cairo_stroke(g->cr);
  cairo_restore(g->cr);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movsd %xmm3, 0x18(%rsp)
movsd %xmm2, 0x10(%rsp)
movsd %xmm1, (%rsp)
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
callq 0x2e259
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2c5a1
testq %rax, %rax
je 0x2eee2
movq %rax, %rbx
leaq 0x40(%rsp), %r15
movq 0x10(%rax), %rdi
callq 0xb3d0
movq 0x10(%rbx), %rdi
movsd 0x9baa0(%rip), %xmm0    # 0xca8f0
callq 0xb0a0
movq 0x10(%rbx), %r14
movsd (%rsp), %xmm0
addsd 0xa47da(%rip), %xmm0    # 0xd3640
callq 0xbab0
movsd 0xa47cd(%rip), %xmm1    # 0xd3640
addsd %xmm0, %xmm1
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %rdi
xorpd %xmm1, %xmm1
movsd 0x10(%rsp), %xmm0
callq 0xb960
movq 0x10(%rbx), %rdi
movsd 0x18(%rsp), %xmm0
callq 0xb0a0
movq 0x10(%rbx), %rdi
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movsd 0x10(%r15), %xmm2
movsd 0x18(%r15), %xmm3
callq 0xb380
movq 0x10(%rbx), %rdi
callq 0xbbb0
movq 0x10(%rbx), %rdi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xba40
movq 0xff0cf(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x9b173(%rip), %rsi     # 0xca066
leaq 0xa4cd5(%rip), %rdx     # 0xd3bcf
leaq 0xa554b(%rip), %rcx     # 0xd444c
leaq 0xa5264(%rip), %r8      # 0xd416c
movl $0x13c, %r9d            # imm = 0x13C
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_draw_vertical_line
void gt_graphics_cairo_draw_vertical_line(GtGraphics *gg, double x, double y,
                                          GtColor color, double length,
                                          double stroke_width)
{
  GtGraphicsCairo *g = gt_graphics_cairo_cast(gg);
  gt_assert(g);
  cairo_save(g->cr);
  cairo_move_to(g->cr, rnd_to_nhalf(x), rnd_to_nhalf(y));
  cairo_set_line_width(g->cr, 1);
  cairo_rel_line_to(g->cr, 0, floor(length));
  cairo_set_line_width(g->cr, stroke_width);
  cairo_set_source_rgba(g->cr, color.red, color.green, color.blue, color.alpha);
  cairo_stroke(g->cr);
  cairo_restore(g->cr);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movsd %xmm3, 0x18(%rsp)
movsd %xmm2, 0x10(%rsp)
movsd %xmm1, 0x8(%rsp)
movsd %xmm0, (%rsp)
movq %rdi, %rbx
callq 0x2e259
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2c5a1
testq %rax, %rax
je 0x2f02e
movq %rax, %rbx
leaq 0x40(%rsp), %r15
movq 0x10(%rax), %rdi
callq 0xb3d0
movq 0x10(%rbx), %r14
movsd (%rsp), %xmm0
addsd 0xa46c8(%rip), %xmm0    # 0xd3640
callq 0xbab0
movsd 0xa46bb(%rip), %xmm1    # 0xd3640
addsd %xmm1, %xmm0
movsd %xmm0, (%rsp)
movsd 0x8(%rsp), %xmm0
addsd %xmm1, %xmm0
callq 0xbab0
movsd 0xa469b(%rip), %xmm1    # 0xd3640
addsd %xmm0, %xmm1
movq %r14, %rdi
movsd (%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %rdi
movsd 0x9b92e(%rip), %xmm0    # 0xca8f0
callq 0xb0a0
movq 0x10(%rbx), %r14
movsd 0x10(%rsp), %xmm0
callq 0xbab0
movaps %xmm0, %xmm1
xorps %xmm0, %xmm0
movq %r14, %rdi
callq 0xb960
movq 0x10(%rbx), %rdi
movsd 0x18(%rsp), %xmm0
callq 0xb0a0
movq 0x10(%rbx), %rdi
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movsd 0x10(%r15), %xmm2
movsd 0x18(%r15), %xmm3
callq 0xb380
movq 0x10(%rbx), %rdi
callq 0xbbb0
movq 0x10(%rbx), %rdi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xba40
movq 0xfef83(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x9b027(%rip), %rsi     # 0xca066
leaq 0xa4b89(%rip), %rdx     # 0xd3bcf
leaq 0xa5426(%rip), %rcx     # 0xd4473
leaq 0xa5118(%rip), %r8      # 0xd416c
movl $0x14c, %r9d            # imm = 0x14C
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_get_text_width
double gt_graphics_cairo_get_text_width(GtGraphics *gg, const char* text)
{
  PangoRectangle rect;
  GtGraphicsCairo *g = gt_graphics_cairo_cast(gg);
  gt_assert(g && text && g->layout);

  pango_layout_set_text(g->layout, text, -1);
  /* get text extents */

  pango_layout_get_pixel_extents(g->layout, &rect, NULL);

  gt_assert(gt_double_smaller_double(0, rect.width));
  return rect.width;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x2e259
movq %rax, %rdi
movq %r14, %rsi
callq 0x2c5a1
testq %rbx, %rbx
je 0x2f0d6
movq %rax, %r14
testq %rax, %rax
je 0x2f0d6
movq 0x78(%r14), %rdi
testq %rdi, %rdi
je 0x2f0d6
pushq $-0x1
popq %rdx
movq %rbx, %rsi
callq 0xb1a0
movq 0x78(%r14), %rdi
leaq 0x8(%rsp), %rbx
movq %rbx, %rsi
xorl %edx, %edx
callq 0xb3c0
cvtsi2sdl 0x8(%rbx), %xmm1
xorps %xmm0, %xmm0
callq 0x58dba
testb %al, %al
je 0x2f104
cvtsi2sdl 0x10(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq 0xfeedb(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x9af7f(%rip), %rsi     # 0xca066
leaq 0xa51e2(%rip), %rdx     # 0xd42d0
leaq 0xa53a3(%rip), %rcx     # 0xd4498
leaq 0xa5070(%rip), %r8      # 0xd416c
movl $0x15b, %r9d            # imm = 0x15B
jmp 0x2f130
movq 0xfeead(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x9af51(%rip), %rsi     # 0xca066
leaq 0xa539d(%rip), %rdx     # 0xd44b9
leaq 0xa5375(%rip), %rcx     # 0xd4498
leaq 0xa5042(%rip), %r8      # 0xd416c
movl $0x162, %r9d            # imm = 0x162
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_draw_rectangle
void gt_graphics_cairo_draw_rectangle(GtGraphics *gg, double x, double y,
                                      bool filled, GtColor fill_color,
                                      bool outlined, GtColor outline_color,
                                      double outline_width, double width,
                                      double height)
{
  GtGraphicsCairo *g = gt_graphics_cairo_cast(gg);
  gt_assert(g);

  /* save cairo context */
  cairo_save(g->cr);
  cairo_new_path(g->cr);
  cairo_rectangle(g->cr, x, y, width, height);
  if (filled) {
    cairo_set_source_rgba(g->cr, fill_color.red,
                                 fill_color.green,
                                 fill_color.blue,
                                 fill_color.alpha);
    cairo_fill_preserve(g->cr);
  }
  if (outlined) {
    cairo_set_line_width(g->cr, outline_width);
    cairo_set_source_rgba(g->cr, outline_color.red,
                                 outline_color.green,
                                 outline_color.blue,
                                 outline_color.alpha);
    cairo_stroke(g->cr);
  }
  /* restore cairo context */
  cairo_restore(g->cr);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movsd %xmm4, 0x28(%rsp)
movsd %xmm3, 0x20(%rsp)
movsd %xmm2, 0x8(%rsp)
movl %edx, %ebp
movl %esi, %r14d
movsd %xmm1, 0x18(%rsp)
movsd %xmm0, 0x10(%rsp)
movq %rdi, %rbx
callq 0x2e259
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2c5a1
testq %rax, %rax
je 0x3028c
movq %rax, %rbx
movq 0x10(%rax), %rdi
callq 0xb3d0
movq 0x10(%rbx), %rdi
callq 0xb340
movq 0x10(%rbx), %rdi
movsd 0x10(%rsp), %xmm0
movsd 0x18(%rsp), %xmm1
movsd 0x20(%rsp), %xmm2
movsd 0x28(%rsp), %xmm3
callq 0xb2e0
testb %r14b, %r14b
je 0x30239
leaq 0x50(%rsp), %rax
movq 0x10(%rbx), %rdi
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movsd 0x10(%rax), %xmm2
movsd 0x18(%rax), %xmm3
callq 0xb380
movq 0x10(%rbx), %rdi
callq 0xbc30
testb %bpl, %bpl
je 0x3027b
leaq 0x70(%rsp), %r14
movq 0x10(%rbx), %rdi
movsd 0x8(%rsp), %xmm0
callq 0xb0a0
movq 0x10(%rbx), %rdi
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm3
callq 0xb380
movq 0x10(%rbx), %rdi
callq 0xbbb0
movq 0x10(%rbx), %rdi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0xba40
movq 0xfdd25(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x99dc9(%rip), %rsi     # 0xca066
leaq 0xa392b(%rip), %rdx     # 0xd3bcf
leaq 0xa42ae(%rip), %rcx     # 0xd4559
leaq 0xa3eba(%rip), %r8      # 0xd416c
movl $0x247, %r9d            # imm = 0x247
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_draw_arrowhead
void gt_graphics_cairo_draw_arrowhead(GtGraphics *gg, double x, double y,
                                      GtColor color, ArrowStatus arrow_status)
{
  GtGraphicsCairo *g = gt_graphics_cairo_cast(gg);
  double arrow_height = 8, arrow_width = 5;
  gt_assert(g);
  /* save cairo context */
  cairo_save(g->cr);
  cairo_reset_clip(g->cr);
  cairo_set_source_rgb(g->cr, color.red, color.green, color.blue);
  switch (arrow_status)
  {
    case ARROW_LEFT:
      cairo_move_to(g->cr, x+arrow_width, y);
      cairo_line_to(g->cr, x, y+(arrow_height/2));
      cairo_line_to(g->cr, x+arrow_width, y+arrow_height);
      cairo_close_path(g->cr);
      /* fill area */
      cairo_fill_preserve(g->cr);
      cairo_stroke(g->cr);
      break;
    case ARROW_RIGHT:
      cairo_move_to(g->cr, x, y);
      cairo_line_to(g->cr, x+arrow_width, y+(arrow_height/2));
      cairo_line_to(g->cr, x, y+arrow_height);
      cairo_close_path(g->cr);
      /* fill area */
      cairo_fill_preserve(g->cr);
      cairo_stroke(g->cr);
      break;
    case ARROW_BOTH: /* XXX */
    case ARROW_NONE: break;
  }
  /* restore cairo context */
  cairo_restore(g->cr);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebp
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
callq 0x2e259
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2c5a1
testq %rax, %rax
je 0x30402
movq %rax, %rbx
leaq 0x40(%rsp), %r14
movq 0x10(%rax), %rdi
callq 0xb3d0
movq 0x10(%rbx), %rdi
callq 0xb540
movq 0x10(%rbx), %rdi
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movsd 0x10(%r14), %xmm2
callq 0xb3e0
cmpl $0x1, %ebp
je 0x3037f
testl %ebp, %ebp
movsd 0x10(%rsp), %xmm1
jne 0x303f1
movq 0x10(%rbx), %rdi
movsd 0xa3dbf(%rip), %xmm0    # 0xd4108
addsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
callq 0xb240
movq 0x10(%rbx), %rdi
movsd 0xa3daa(%rip), %xmm1    # 0xd4110
addsd 0x10(%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
callq 0xb770
movsd 0x18(%rsp), %xmm0
jmp 0x303bf
movq 0x10(%rbx), %rdi
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %rdi
movsd 0xa3d68(%rip), %xmm0    # 0xd4108
addsd 0x8(%rsp), %xmm0
movsd 0xa3d62(%rip), %xmm1    # 0xd4110
addsd 0x10(%rsp), %xmm1
callq 0xb770
movsd 0x8(%rsp), %xmm0
movq 0x10(%rbx), %rdi
movsd 0x10(%rsp), %xmm1
addsd 0xa3d47(%rip), %xmm1    # 0xd4118
callq 0xb770
movq 0x10(%rbx), %rdi
callq 0xba30
movq 0x10(%rbx), %rdi
callq 0xbc30
movq 0x10(%rbx), %rdi
callq 0xbbb0
movq 0x10(%rbx), %rdi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0xba40
movq 0xfdbaf(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x99c53(%rip), %rsi     # 0xca066
leaq 0xa37b5(%rip), %rdx     # 0xd3bcf
leaq 0xa4159(%rip), %rcx     # 0xd457a
leaq 0xa3d44(%rip), %r8      # 0xd416c
movl $0x265, %r9d            # imm = 0x265
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_delete
void gt_graphics_cairo_delete(GtGraphics *gg)
{
  GtGraphicsCairo *g;
  if (!gg) return;
  g = (GtGraphicsCairo*) gg;
  if (!g->from_context) /* do not attempt to destroy foreign contexts */
    cairo_destroy(g->cr);
  if (g->surf)
    cairo_surface_destroy(g->surf); /* reference counted */
  if (g->outbuf)
    gt_str_delete(g->outbuf);
  g_object_unref(g->layout);
}

// Assembly:
testq %rdi, %rdi
je 0x3083b
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x70(%rdi)
jne 0x30815
movq 0x10(%rbx), %rdi
callq 0xb8b0
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x30823
callq 0xb7a0
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x30831
callq 0x152db
movq 0x78(%rbx), %rdi
popq %rbx
jmp 0xb990
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_new
GtGraphics* gt_graphics_cairo_new(GtGraphicsOutType type,
                                  unsigned int width,
                                  unsigned int height)
{
  GtGraphics *g;
  GtGraphicsCairo *gc;
  char buf[64];
  g = gt_graphics_create(gt_graphics_cairo_class());
  gc = gt_graphics_cairo_cast(g);
  gt_graphics_cairo_initialize(g, type, width, height);
  gc->layout = pango_cairo_create_layout(gc->cr);
  pango_layout_set_width(gc->layout, -1);
  gt_assert(gc->layout);
  snprintf(buf, 64, "Sans %d", TEXT_SIZE_DEFAULT);
  gc->desc = pango_font_description_from_string(buf);
  pango_layout_set_font_description(gc->layout, gc->desc);
  pango_font_description_free(gc->desc);
  return g;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %edx, %ebp
movl %esi, %r15d
movl %edi, %r12d
callq 0x2e259
movq %rax, %rdi
callq 0x2c422
movq %rax, %rbx
callq 0x2e259
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2c5a1
movq %rax, %r14
movq %rbx, %rdi
movl %r12d, %esi
movl %r15d, %edx
movl %ebp, %ecx
callq 0x2e355
movq 0x10(%r14), %rdi
callq 0xb150
movq %rax, 0x78(%r14)
pushq $-0x1
popq %rsi
movq %rax, %rdi
callq 0xbcd0
cmpq $0x0, 0x78(%r14)
je 0x30c0f
leaq 0xa3b0c(%rip), %rdx     # 0xd46d1
movq %rsp, %r15
pushq $0x40
popq %rsi
pushq $0x8
popq %rcx
movq %r15, %rdi
xorl %eax, %eax
callq 0xba00
movq %r15, %rdi
callq 0xbb00
movq %rax, 0x80(%r14)
movq 0x78(%r14), %rdi
movq %rax, %rsi
callq 0xbc40
movq 0x80(%r14), %rdi
callq 0xb4c0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0xfd3a2(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x99446(%rip), %rsi     # 0xca066
leaq 0xa3a89(%rip), %rdx     # 0xd46b0
leaq 0xa3a8d(%rip), %rcx     # 0xd46bb
leaq 0xa3537(%rip), %r8      # 0xd416c
movl $0x321, %r9d            # imm = 0x321
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_new_from_context
GtGraphics* gt_graphics_cairo_new_from_context(cairo_t *context,
                                               unsigned int width,
                                               unsigned int height)
{
  GtGraphics *g;
  GtGraphicsCairo *gc;
  char buf[64];
  g = gt_graphics_create(gt_graphics_cairo_class());
  gc = gt_graphics_cairo_cast(g);
  gc->width = width;
  gc->height = height;
  gc->margin_x = gc->margin_y = 20;
  gc->from_context = true;
  gc->cr = context;
  gc->layout = pango_cairo_create_layout(gc->cr);
  pango_layout_set_width(gc->layout, -1);
  gt_assert(gc->layout);
  snprintf(buf, 64, "Sans %d", TEXT_SIZE_DEFAULT);
  gc->desc = pango_font_description_from_string(buf);
  pango_layout_set_font_description(gc->layout, gc->desc);
  pango_font_description_free(gc->desc);
  cairo_set_line_join(context, CAIRO_LINE_JOIN_ROUND);
  cairo_set_line_cap(context, CAIRO_LINE_CAP_ROUND);
  return g;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %edx, %ebp
movl %esi, %r12d
movq %rdi, %rbx
callq 0x2e259
movq %rax, %rdi
callq 0x2c422
movq %rax, %r14
callq 0x2e259
movq %rax, %rdi
movq %r14, %rsi
callq 0x2c5a1
movq %rax, %r15
movl %r12d, %eax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x68(%r15)
movl %ebp, %eax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x60(%r15)
movaps 0xa3450(%rip), %xmm0    # 0xd40f0
movups %xmm0, 0x50(%r15)
movb $0x1, 0x70(%r15)
movq %rbx, 0x10(%r15)
movq %rbx, %rdi
callq 0xb150
movq %rax, 0x78(%r15)
pushq $-0x1
popq %rsi
movq %rax, %rdi
callq 0xbcd0
cmpq $0x0, 0x78(%r15)
je 0x30d34
leaq 0xa39fe(%rip), %rdx     # 0xd46d1
movq %rsp, %r12
pushq $0x40
popq %rsi
pushq $0x8
popq %rcx
movq %r12, %rdi
xorl %eax, %eax
callq 0xba00
movq %r12, %rdi
callq 0xbb00
movq %rax, 0x80(%r15)
movq 0x78(%r15), %rdi
movq %rax, %rsi
callq 0xbc40
movq 0x80(%r15), %rdi
callq 0xb4c0
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0xb4e0
movq %rbx, %rdi
movl %ebp, %esi
callq 0xb360
movq %r14, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0xfd27d(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x99321(%rip), %rsi     # 0xca066
leaq 0xa3964(%rip), %rdx     # 0xd46b0
leaq 0xa3986(%rip), %rcx     # 0xd46d9
leaq 0xa3412(%rip), %r8      # 0xd416c
movl $0x339, %r9d            # imm = 0x339
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/image_info.c
// Function: gt_image_info_new
GtImageInfo* gt_image_info_new()
{
  GtImageInfo *ii;
  ii = gt_calloc(1, sizeof (GtImageInfo));
  ii->recmaps = gt_array_new(sizeof (GtRecMap*));
  gt_assert(ii->recmaps);
  return ii;
}

// Assembly:
pushq %rbx
leaq 0xa39f4(%rip), %rdx     # 0xd4768
pushq $0x1
popq %rdi
pushq $0x18
popq %rsi
pushq $0x26
popq %rcx
callq 0xce9a
movq %rax, %rbx
pushq $0x8
popq %rdi
callq 0x4b380
movq %rax, (%rbx)
testq %rax, %rax
je 0x30d9a
movq %rbx, %rax
popq %rbx
retq
movq 0xfd217(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x992bb(%rip), %rsi     # 0xca066
leaq 0xa39d8(%rip), %rdx     # 0xd478a
leaq 0xa39dd(%rip), %rcx     # 0xd4796
leaq 0xa39a8(%rip), %r8      # 0xd4768
pushq $0x28
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/image_info.c
// Function: gt_image_info_delete
void gt_image_info_delete(GtImageInfo *image_info)
{
  GtUword i;
  if (!image_info) return;
  if (image_info->reference_count) {
    image_info->reference_count--;
    return;
  }
  for (i=0;i<gt_image_info_num_of_rec_maps(image_info);i++)
  {
    GtRecMap *rm = *(GtRecMap**) gt_array_get(image_info->recmaps, i);
    gt_rec_map_delete(rm);
  }
  gt_array_delete(image_info->recmaps);
  gt_free(image_info);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x30e30
movq %rdi, %rbx
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x30e38
decq %rax
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x30e7e
movq (%rbx), %rdi
cmpq %rax, %r14
jae 0x30e60
movq %r14, %rsi
callq 0x4b48e
movq (%rax), %rdi
callq 0x32809
incq %r14
jmp 0x30e3b
callq 0x4c19d
leaq 0xa38fc(%rip), %rsi     # 0xd4768
pushq $0x41
popq %rdx
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xd249
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/layout.c
// Function: gt_layout_new
GtLayout* gt_layout_new(GtDiagram *diagram,
                        unsigned int width,
                        GtStyle *style,
                        GtError *err)
{
  GtLayout *layout;
  GtTextWidthCalculator *twc;
  gt_assert(diagram && width > 0 && style && err);
  if (check_width(width, style, err) < 0)
    return NULL;
  twc = gt_text_width_calculator_cairo_new(NULL, style, err);
  if (!twc)
    return NULL;
  layout = gt_layout_new_with_twc(diagram, width, style, twc, err);
  if (layout)
    layout->own_twc = true;
  else
    gt_text_width_calculator_delete(twc);
  return layout;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x31288
movl %esi, %ebp
testl %esi, %esi
je 0x31288
movq %rdx, %r14
testq %rdx, %rdx
je 0x31288
movq %rcx, %rbx
testq %rcx, %rcx
je 0x31288
movq %rdi, %r15
movl %ebp, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x312c0
testl %eax, %eax
js 0x31273
xorl %r12d, %r12d
xorl %edi, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x35d92
testq %rax, %rax
je 0x31276
movq %rax, %r13
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rax, %rcx
movq %rbx, %r8
callq 0x31358
testq %rax, %rax
je 0x3126b
movq %rax, %r12
movb $0x1, 0x10(%rax)
jmp 0x31276
movq %r13, %rdi
callq 0x35a0b
xorl %r12d, %r12d
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xfcd29(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x98dcd(%rip), %rsi     # 0xca066
leaq 0xa3640(%rip), %rdx     # 0xd48e0
leaq 0xa365e(%rip), %rcx     # 0xd4905
leaq 0xa3665(%rip), %r8      # 0xd4913
movl $0xf4, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/layout.c
// Function: check_width
static int check_width(unsigned int width, GtStyle *style, GtError *err)
{
  int had_err = 0;
  double margins = MARGINS_DEFAULT;
  if (gt_style_get_num(style,
                       "format", "margins",
                       &margins, NULL, err) == GT_STYLE_QUERY_ERROR) {
    had_err = -1;
  }
  if (!had_err && gt_double_smaller_double(width - 2*margins, 0))
  {
    gt_error_set(err, "layout width must at least be twice the x-margin size "
                      "(2*%.1f=%.1f) but was %u",
                      margins,
                      2*margins,
                      width);
    had_err = -1;
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rax
movl %edi, %ebx
movabsq $0x403e000000000000, %rdx # imm = 0x403E000000000000
movq %rsp, %rcx
movq %rdx, (%rcx)
leaq 0x98eb0(%rip), %rsi     # 0xca196
leaq 0xa313b(%rip), %rdx     # 0xd4428
xorl %r15d, %r15d
movq %rax, %rdi
xorl %r8d, %r8d
movq %r14, %r9
callq 0x33ff8
pushq $-0x1
popq %rbp
cmpl $0x2, %eax
je 0x31347
movl %ebx, %eax
cvtsi2sd %rax, %xmm0
movsd (%rsp), %xmm1
addsd %xmm1, %xmm1
subsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
callq 0x58dba
testb %al, %al
je 0x3134a
movsd (%rsp), %xmm0
movapd %xmm0, %xmm1
addsd %xmm0, %xmm1
leaq 0xa3792(%rip), %rsi     # 0xd4acd
movq %r14, %rdi
movl %ebx, %edx
movb $0x2, %al
callq 0xc007
movl %ebp, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/layout.c
// Function: gt_layout_delete
void gt_layout_delete(GtLayout *layout)
{
  if (!layout) return;
  gt_rwlock_wrlock(layout->lock);
  if (layout->twc && layout->own_twc)
    gt_text_width_calculator_delete(layout->twc);
  gt_hashmap_delete(layout->tracks);
  gt_array_delete(layout->custom_tracks);
  if (layout->blocks)
    gt_hashmap_delete(layout->blocks);
  gt_rwlock_unlock(layout->lock);
  gt_rwlock_delete(layout->lock);
  gt_free(layout);
}

// Assembly:
testq %rdi, %rdi
je 0x315c8
pushq %rbx
movq %rdi, %rbx
movq 0x50(%rdi), %rdi
callq 0x15e99
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x31581
cmpb $0x1, 0x10(%rbx)
jne 0x31581
callq 0x35a0b
movq 0x20(%rbx), %rdi
callq 0x563a7
movq 0x18(%rbx), %rdi
callq 0x4c19d
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x315a1
callq 0x563a7
movq 0x50(%rbx), %rdi
callq 0x15f0a
movq 0x50(%rbx), %rdi
callq 0x15dd5
leaq 0xa3359(%rip), %rsi     # 0xd4913
movq %rbx, %rdi
movl $0x139, %edx            # imm = 0x139
popq %rbx
jmp 0xd249
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/layout.c
// Function: gt_layout_sketch
int gt_layout_sketch(GtLayout *layout, GtCanvas *target_canvas, GtError *err)
{
  int had_err = 0;
  GtUword i;
  GtRenderTraverseInfo rti;
  gt_assert(layout && target_canvas);

  had_err = layout_all_tracks(layout, err);
  if (!had_err) {
    rti.layout = layout;
    rti.canvas = target_canvas;
    had_err = gt_canvas_visit_layout_pre(target_canvas, layout, err);
    if (had_err) return had_err;

    if (layout->track_ordering_func == NULL) {
      had_err = gt_hashmap_foreach_in_key_order(layout->tracks, render_tracks,
                                                &rti, err);
    } else {
      had_err = gt_hashmap_foreach_ordered(layout->tracks, render_tracks,
                                           &rti, (GtCompare) track_cmp_wrapper,
                                           err);
    }
    if (had_err) return had_err;
    had_err = gt_canvas_visit_layout_post(target_canvas, layout, err);
    if (had_err) return had_err;
    for (i=0;i<gt_array_size(layout->custom_tracks);i++)
    {
      GtCustomTrack *ct = *(GtCustomTrack**) gt_array_get(layout->custom_tracks,
                                                          i);
      had_err = render_custom_tracks(NULL, ct, &rti, err);
    }
  }
  return had_err ? -1 : 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x316be
movq %rsi, %r15
testq %rsi, %rsi
je 0x316be
movq %rdx, %rbx
movq %rdi, %r14
movq %rdx, %rsi
callq 0x31724
testl %eax, %eax
je 0x31603
pushq $-0x1
popq %rax
jmp 0x316b2
movq %r14, 0x10(%rsp)
movq %r15, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2a08e
testl %eax, %eax
jne 0x316b2
cmpq $0x0, 0x58(%r14)
movq 0x20(%r14), %rdi
leaq 0x1b3(%rip), %rsi       # 0x317e6
je 0x3164b
leaq 0x1fe(%rip), %rcx       # 0x3183a
leaq 0x8(%rsp), %rdx
movq %rbx, %r8
callq 0x55f80
jmp 0x31658
leaq 0x8(%rsp), %rdx
movq %rbx, %rcx
callq 0x56009
testl %eax, %eax
jne 0x316b2
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2a0e2
testl %eax, %eax
jne 0x316b2
xorl %r12d, %r12d
xorl %r15d, %r15d
movq 0x18(%r14), %rdi
callq 0x4b988
cmpq %rax, %r15
jae 0x316ab
movq 0x18(%r14), %rdi
movq %r15, %rsi
callq 0x4b48e
movq (%rax), %rdi
testq %rdi, %rdi
je 0x316ec
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x6f162
movl %eax, %r12d
incq %r15
jmp 0x31674
xorl %eax, %eax
negl %r12d
sbbl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0xfc8f3(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x98997(%rip), %rsi     # 0xca066
leaq 0xa3272(%rip), %rdx     # 0xd4948
leaq 0xa3283(%rip), %rcx     # 0xd4960
leaq 0xa322f(%rip), %r8      # 0xd4913
movl $0x149, %r9d            # imm = 0x149
jmp 0x31718
movq 0xfc8c5(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x98969(%rip), %rsi     # 0xca066
leaq 0xa34de(%rip), %rdx     # 0xd4be2
leaq 0xa34e5(%rip), %rcx     # 0xd4bf0
leaq 0xa3201(%rip), %r8      # 0xd4913
movl $0xd3, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/layout.c
// Function: layout_all_tracks
static int layout_all_tracks(GtLayout *layout, GtError *err)
{
  int had_err = 0;
  GtLayoutTraverseInfo lti;
  gt_assert(layout && layout->blocks);
  gt_error_check(err);

  if (!layout->layout_done) {
    lti.layout = layout;
    lti.twc = layout->twc;
    had_err = gt_hashmap_foreach(layout->blocks, layout_tracks, &lti, err);
    layout->layout_done = true;
  }
  return had_err;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
cmpq $0x0, 0x28(%rdi)
je 0x31780
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
je 0x31749
movq %r14, %rdi
callq 0xc103
testb %al, %al
jne 0x317ae
xorl %eax, %eax
cmpb $0x0, 0x11(%rbx)
jne 0x31778
leaq 0x8(%rsp), %rdx
movq %rbx, 0x8(%rdx)
movq 0x8(%rbx), %rax
movq %rax, (%rdx)
movq 0x28(%rbx), %rdi
leaq 0x66d(%rip), %rsi       # 0x31dd9
movq %r14, %rcx
callq 0x55fe2
movb $0x1, 0x11(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq 0xfc831(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x988d5(%rip), %rsi     # 0xca066
leaq 0xa3384(%rip), %rdx     # 0xd4b1c
leaq 0xa3396(%rip), %rcx     # 0xd4b35
leaq 0xa316d(%rip), %r8      # 0xd4913
movl $0xb6, %r9d
jmp 0x317da
movq 0xfc803(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x988a7(%rip), %rsi     # 0xca066
leaq 0x98e93(%rip), %rdx     # 0xca659
leaq 0xa3368(%rip), %rcx     # 0xd4b35
leaq 0xa313f(%rip), %r8      # 0xd4913
movl $0xb7, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/layout.c
// Function: blocklist_block_compare
static int blocklist_block_compare(const void *item1, const void *item2,
                                   void *data)
{
  gt_assert(item1 && item2);
  GtLayout *l = (GtLayout*) data;
  return l->block_ordering_func(*(GtBlock**) item1, *(GtBlock**) item2,
                                l->b_cmp_data);
}

// Assembly:
testq %rdi, %rdi
je 0x3204f
testq %rsi, %rsi
je 0x3204f
movq (%rdi), %rdi
movq (%rsi), %rsi
movq 0x60(%rdx), %rax
movq 0x70(%rdx), %rdx
jmpq *%rax
pushq %rax
movq 0xfbf61(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x98005(%rip), %rsi     # 0xca066
leaq 0xa2b07(%rip), %rdx     # 0xd4b6f
leaq 0xa2b0f(%rip), %rcx     # 0xd4b7e
leaq 0xa289d(%rip), %r8      # 0xd4913
pushq $0x50
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
nop
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/line_breaker_captions.c
// Function: calculate_drawing_range
int calculate_drawing_range(GtLineBreakerCaptions *lbc, GtDrawingRange *rng,
                            GtBlock* block, GtError *err)
{
  double textwidth = 0.0;
  GtDrawingRange drange;
  gt_assert(block && lbc);
  drange = gt_coords_calc_generic_range(gt_block_get_range(block),
                                        gt_layout_get_range(lbc->layout));
  drange.start *= lbc->width-2*lbc->margins;
  drange.end *= lbc->width-2*lbc->margins;
  if (gt_block_get_caption(block))
  {
    textwidth = gt_text_width_calculator_get_text_width(
                                      gt_layout_get_twc(lbc->layout),
                                      gt_str_get(gt_block_get_caption(block)),
                                      err);
    if (gt_double_smaller_double(textwidth, 0))
      return -1;
    if (gt_double_smaller_double(gt_drawing_range_length(drange), textwidth))
      drange.end = drange.start + textwidth;
  }
  rng->start = drange.start;
  rng->end = drange.end;
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, 0x38(%rsp)
testq %rdi, %rdi
je 0x321e7
movq %rdx, %r15
testq %rdx, %rdx
je 0x321e7
movq %rcx, %r14
movq %rdi, %r12
movq %r15, %rdi
callq 0x6b254
movq %rax, %r13
movq %rdx, %rbp
movq 0x10(%r12), %rdi
callq 0x319bf
movq %rdx, %r8
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
movq %rax, %rcx
callq 0x6eef0
movsd 0x18(%r12), %xmm0
unpcklps 0x9838b(%rip), %xmm0    # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x98393(%rip), %xmm0    # 0xca490
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd 0x20(%r12), %xmm0
addsd %xmm0, %xmm0
subsd %xmm0, %xmm1
unpcklpd %xmm1, %xmm1            # xmm1 = xmm1[0,0]
mulpd (%rbx), %xmm1
movapd %xmm1, 0x20(%rsp)
movapd %xmm1, (%rbx)
movq %r15, %rdi
callq 0x6b29b
testq %rax, %rax
je 0x3217a
movq 0x10(%r12), %rdi
callq 0x31a06
movq %rax, %rbx
movq %r15, %rdi
callq 0x6b29b
movq %rax, %rdi
callq 0x143d2
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x35adb
xorpd %xmm1, %xmm1
movapd %xmm0, 0x20(%rsp)
callq 0x58dba
testb %al, %al
je 0x3218a
pushq $-0x1
popq %rax
jmp 0x321d8
movapd 0x20(%rsp), %xmm1
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
jmp 0x321c8
movq 0x50(%rsp), %rax
movq %rax, 0x10(%rsp)
movaps 0x40(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x6f3c4
movaps 0x20(%rsp), %xmm1
callq 0x58dba
movsd 0x40(%rsp), %xmm1
testb %al, %al
je 0x321c2
movapd 0x20(%rsp), %xmm0
addsd %xmm1, %xmm0
jmp 0x321c8
movsd 0x48(%rsp), %xmm0
movq 0x38(%rsp), %rax
movsd %xmm1, (%rax)
movsd %xmm0, 0x8(%rax)
xorl %eax, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xfbdca(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x97e6e(%rip), %rsi     # 0xca066
leaq 0xa2a06(%rip), %rdx     # 0xd4c05
leaq 0xa2a0c(%rip), %rcx     # 0xd4c12
leaq 0xa2a1d(%rip), %r8      # 0xd4c2a
pushq $0x2e
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/line_breaker_captions.c
// Function: gt_line_breaker_captions_is_line_occupied
int gt_line_breaker_captions_is_line_occupied(GtLineBreaker* lb, bool *result,
                                              GtLine *line, GtBlock *block,
                                              GtError *err)
{
  GtDrawingRange dr;
  GtLineBreakerCaptions *lbcap;
  int had_err = 0;
  double *num;
  gt_assert(lb && block && line);
  lbcap = gt_line_breaker_captions_cast(lb);
  had_err = calculate_drawing_range(lbcap, &dr, block, err);
  if (!had_err) {
    if (!(num = gt_hashmap_get(lbcap->linepositions, line)))
      *result = false;
    else
      *result = (dr.start <= *num);
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdx, %rdx
je 0x322a7
movq %rdi, %r13
testq %rdi, %rdi
je 0x322a7
movq %rcx, %r12
testq %rcx, %rcx
je 0x322a7
movq %r8, %r15
movq %rdx, %r14
movq %rsi, %rbx
callq 0x322dd
movq %rax, %rdi
movq %r13, %rsi
callq 0x70921
movq %rax, %r13
movq %rsp, %rsi
movq %rax, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x32088
movl %eax, %ebp
testl %eax, %eax
jne 0x32296
movq 0x28(%r13), %rdi
movq %r14, %rsi
callq 0x55ef6
testq %rax, %rax
je 0x32292
movsd (%rax), %xmm0
ucomisd (%rsp), %xmm0
setae %al
jmp 0x32294
xorl %eax, %eax
movb %al, (%rbx)
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xfbd0a(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x97dae(%rip), %rsi     # 0xca066
leaq 0xa2998(%rip), %rdx     # 0xd4c57
leaq 0xa29a5(%rip), %rcx     # 0xd4c6b
leaq 0xa295d(%rip), %r8      # 0xd4c2a
pushq $0x4b
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/line_breaker_captions.c
// Function: gt_line_breaker_captions_class
const GtLineBreakerClass* gt_line_breaker_captions_class(void)
{
  static const GtLineBreakerClass *lbc = NULL;
  gt_class_alloc_lock_enter();
  if (!lbc)
  {
    lbc = gt_line_breaker_class_new(sizeof (GtLineBreakerCaptions),
                                   gt_line_breaker_captions_is_line_occupied,
                                   gt_line_breaker_captions_register_block,
                                   gt_line_breaker_captions_delete);
  }
  gt_class_alloc_lock_leave();
  return lbc;
}

// Assembly:
pushq %rax
callq 0x4f21f
cmpq $0x0, 0xfd8a5(%rip)     # 0x12fb90
jne 0x32311
leaq -0xd7(%rip), %rsi       # 0x3221d
leaq 0x24(%rip), %rdx        # 0x3231f
leaq 0x110(%rip), %rcx       # 0x32412
pushq $0x30
popq %rdi
callq 0x706a0
movq %rax, 0xfd87f(%rip)     # 0x12fb90
callq 0x4f266
movq 0xfd873(%rip), %rax     # 0x12fb90
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/line_breaker_captions.c
// Function: gt_line_breaker_captions_register_block
int gt_line_breaker_captions_register_block(GtLineBreaker *lb,
                                            GtLine *line,
                                            GtBlock *block,
                                            GtError *err)
{
  GtDrawingRange dr;
  GtLineBreakerCaptions *lbcap;
  int had_err = 0;
  double *num;
  gt_assert(lb && block && line);
  lbcap = gt_line_breaker_captions_cast(lb);
  if (!(num = gt_hashmap_get(lbcap->linepositions, line)))
  {
    num = gt_calloc(1, sizeof (double));
    gt_hashmap_add(lbcap->linepositions, line, num);
  }
  had_err = calculate_drawing_range(lbcap, &dr, block, err);
  if (!had_err)
    *num = floor(dr.end);
  return had_err;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
testq %rsi, %rsi
je 0x323dc
movq %rdi, %r12
testq %rdi, %rdi
je 0x323dc
movq %rdx, %r14
testq %rdx, %rdx
je 0x323dc
movq %rcx, %rbx
movq %rsi, %r15
callq 0x322dd
movq %rax, %rdi
movq %r12, %rsi
callq 0x70921
movq %rax, %r12
movq 0x28(%rax), %rdi
movq %r15, %rsi
callq 0x55ef6
movq %rax, %r13
testq %rax, %rax
jne 0x323a2
leaq 0xa28a9(%rip), %rdx     # 0xd4c2a
pushq $0x1
popq %rdi
pushq $0x8
popq %rsi
pushq $0x64
popq %rcx
callq 0xce9a
movq %rax, %r13
movq 0x28(%r12), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x55f31
leaq 0x8(%rsp), %rsi
movq %r12, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x32088
movl %eax, %ebx
testl %eax, %eax
jne 0x323cc
movsd 0x10(%rsp), %xmm0
callq 0xbab0
movsd %xmm0, (%r13)
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0xfbbd5(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x97c79(%rip), %rsi     # 0xca066
leaq 0xa2863(%rip), %rdx     # 0xd4c57
leaq 0xa289a(%rip), %rcx     # 0xd4c95
leaq 0xa2828(%rip), %r8      # 0xd4c2a
pushq $0x60
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/line_breaker_captions.c
// Function: gt_line_breaker_captions_new
GtLineBreaker* gt_line_breaker_captions_new(GtLayout *layout,
                                            GtUword width,
                                            GtStyle *style)
{
  GtLineBreakerCaptions *lbcap;
  GtLineBreaker *lb;
  gt_assert(layout);
  lb = gt_line_breaker_create(gt_line_breaker_captions_class());
  lbcap = gt_line_breaker_captions_cast(lb);
  lbcap->layout = layout;
  lbcap->width = width;
  if (!gt_style_get_num(style, "format", "margins", &lbcap->margins,
                        NULL, NULL)) {
    lbcap->margins = MARGINS_DEFAULT;
  }
  lbcap->linepositions = gt_hashmap_new(GT_HASH_DIRECT, NULL, gt_free_func);
  return lb;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x324d5
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
callq 0x322dd
movq %rax, %rdi
callq 0x706d7
movq %rax, %rbx
callq 0x322dd
movq %rax, %rdi
movq %rbx, %rsi
callq 0x70921
movq %rax, %r14
movq %r13, 0x10(%rax)
movq %r12, 0x18(%rax)
movq %rax, %r12
addq $0x20, %r12
leaq 0x97d0c(%rip), %rsi     # 0xca196
leaq 0xa1f97(%rip), %rdx     # 0xd4428
movq %r15, %rdi
movq %r12, %rcx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x33ff8
testl %eax, %eax
jne 0x324b4
movabsq $0x403e000000000000, %rax # imm = 0x403E000000000000
movq %rax, (%r12)
leaq -0x2512c(%rip), %rdx    # 0xd38f
xorl %edi, %edi
xorl %esi, %esi
callq 0x55da4
movq %rax, 0x28(%r14)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq 0xfbadc(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x97b80(%rip), %rsi     # 0xca066
leaq 0xa0fe6(%rip), %rdx     # 0xd34d3
leaq 0xa27c9(%rip), %rcx     # 0xd4cbd
leaq 0xa272f(%rip), %r8      # 0xd4c2a
movl $0x8a, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/rec_map.c
// Function: gt_rec_map_new
GtRecMap* gt_rec_map_new(double nw_x, double nw_y, double se_x, double se_y,
                         GtFeatureNode *node)
{
  GtRecMap *rm = gt_calloc(1, sizeof (GtRecMap));
  rm->nw_x = nw_x;
  rm->nw_y = nw_y;
  rm->se_x = se_x;
  rm->se_y = se_y;
  rm->fn = (GtFeatureNode*) gt_genome_node_ref((GtGenomeNode*) node);
  rm->has_omitted_children = false;
  return rm;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movsd %xmm3, 0x20(%rsp)
movsd %xmm2, 0x18(%rsp)
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
leaq 0xa27a1(%rip), %rdx     # 0xd4cda
pushq $0x1
popq %rdi
pushq $0x38
popq %rsi
pushq $0x23
popq %rcx
callq 0xce9a
movq %rax, %r14
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rax)
movsd 0x10(%rsp), %xmm0
movsd %xmm0, 0x8(%rax)
movsd 0x18(%rsp), %xmm0
movsd %xmm0, 0x10(%rax)
movsd 0x20(%rsp), %xmm0
movsd %xmm0, 0x18(%rax)
movq %rbx, %rdi
callq 0x1bec8
movq %rax, 0x20(%r14)
movb $0x0, 0x28(%r14)
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/rec_map.c
// Function: gt_rec_map_delete
void gt_rec_map_delete(GtRecMap *rm)
{
  if (!rm) return;
  if (rm->reference_count) {
    rm->reference_count--;
    return;
  }
  gt_genome_node_delete((GtGenomeNode*) rm->fn);
  gt_free(rm);
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x32822
movq %rdi, %rbx
movq 0x30(%rdi), %rax
testq %rax, %rax
je 0x32824
decq %rax
movq %rax, 0x30(%rbx)
popq %rbx
retq
movq 0x20(%rbx), %rdi
callq 0x1d1e3
leaq 0xa24a6(%rip), %rsi     # 0xd4cda
pushq $0x6e
popq %rdx
movq %rbx, %rdi
popq %rbx
jmp 0xd249
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/style.c
// Function: gt_style_new
GtStyle* gt_style_new(GtError *err)
{
  GtStyle *sty;
  GtStr *default_formats;
  int had_err = 0;
  gt_error_check(err);

  sty = gt_calloc(1, sizeof (GtStyle));
  sty->filename = NULL;
  sty->L = luaL_newstate();
  if (!sty->L) {
    gt_error_set(err, "out of memory (cannot create new Lua state)");
    gt_free(sty);
    return NULL;
  }
  else
    luaL_opencustomlibs(sty->L, luasecurelibs);
  sty->lock = gt_rwlock_new();
  sty->unsafe = false;
  sty->clone_lock = gt_rwlock_new();

  default_formats = gt_str_new_cstr(gt_default_format_style);
  had_err = gt_style_load_str(sty, default_formats, err);
  gt_assert(!had_err && !gt_error_is_set(err)); /* default style must run */
  gt_str_delete(default_formats);
  return (!had_err ? sty : NULL);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
testq %rdi, %rdi
je 0x3285d
movq %r14, %rdi
callq 0xc103
testb %al, %al
jne 0x32943
leaq 0xa2631(%rip), %rdx     # 0xd4e95
pushq $0x1
popq %rdi
pushq $0x30
popq %rsi
movl $0x83, %ecx
callq 0xce9a
movq %rax, %rbx
andq $0x0, 0x28(%rax)
callq 0x3ba0a
movq %rax, (%rbx)
testq %rax, %rax
je 0x328e5
leaq 0xf9060(%rip), %rsi     # 0x12b8f0
movq %rax, %rdi
callq 0x3297b
callq 0x15d09
movq %rax, 0x10(%rbx)
movb $0x0, 0x20(%rbx)
callq 0x15d09
movq %rax, 0x18(%rbx)
leaq 0xa2ec6(%rip), %rdi     # 0xd577b
callq 0x13da9
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x329c1
testl %eax, %eax
jne 0x32915
movq %r14, %rdi
callq 0xc103
testb %al, %al
jne 0x32915
movq %r15, %rdi
callq 0x152db
jmp 0x3290c
leaq 0x9f185(%rip), %rsi     # 0xd1a71
movq %r14, %rdi
xorl %eax, %eax
callq 0xc007
leaq 0xa2598(%rip), %rsi     # 0xd4e95
movq %rbx, %rdi
movl $0x88, %edx
callq 0xd249
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0xfb69c(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x97740(%rip), %rsi     # 0xca066
leaq 0xa2585(%rip), %rdx     # 0xd4eb2
leaq 0xa2554(%rip), %rcx     # 0xd4e88
leaq 0xa255a(%rip), %r8      # 0xd4e95
movl $0x93, %r9d
jmp 0x3296f
movq 0xfb66e(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x97712(%rip), %rsi     # 0xca066
leaq 0x97cfe(%rip), %rdx     # 0xca659
leaq 0xa2526(%rip), %rcx     # 0xd4e88
leaq 0xa252c(%rip), %r8      # 0xd4e95
movl $0x81, %r9d
xorl %eax, %eax
callq 0xb8c0
callq 0xb300
// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/annotationsketch/style.c
// Function: luaL_opencustomlibs
static void luaL_opencustomlibs(lua_State *L, const luaL_Reg *lib)
{
  for (; lib->func; lib++) {
    lua_pushcfunction(L, lib->func);
    lua_pushstring(L, lib->name);
    lua_call(L, 1, 0);
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
addq $0x8, %rbx
pushq $0x1
popq %rbp
movq (%rbx), %rsi
testq %rsi, %rsi
je 0x329bc
movq %r14, %rdi
xorl %edx, %edx
callq 0x38814
movq -0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x38431
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x39262
addq $0x10, %rbx
jmp 0x3298c
popq %rbx
popq %r14
popq %rbp
retq