LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics.c
// Function: gt_graphics_draw_box_p
void gt_graphics_draw_box_p(GtGraphics *g, GraphicsDrawBoxFuncParams *params)
{
  gt_assert(g && g->c_class && params);
  gt_rwlock_wrlock(g->pvt->lock);
  g->c_class->draw_box(g, params->x, params->y, params->width, params->height,
                       params->fill_color, params->arrow_status,
                       params->arrow_width, params->stroke_width,
                       params->stroke_color, params->dashed);
  gt_rwlock_unlock(g->pvt->lock);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
testq %rdi, %rdi
je 0x4ec2f
movq %rsi, %r14
testq %rsi, %rsi
je 0x4ec2f
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x4ec2f
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3cfc0
movq (%rbx), %rax
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm3
movl 0x74(%r14), %esi
movsd 0x40(%r14), %xmm4
movsd 0x48(%r14), %xmm5
xorl %edx, %edx
cmpl $0x0, 0x70(%r14)
setne %dl
movups 0x20(%r14), %xmm6
movups 0x30(%r14), %xmm7
movups 0x50(%r14), %xmm8
movups 0x60(%r14), %xmm9
movups %xmm9, 0x30(%rsp)
movups %xmm8, 0x20(%rsp)
movups %xmm7, 0x10(%rsp)
movups %xmm6, (%rsp)
movq %rbx, %rdi
callq *0x90(%rax)
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x48, %rsp
popq %rbx
popq %r14
jmp 0x3cfdb
callq 0x1675b
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics.c
// Function: gt_graphics_draw_dashes_p
void gt_graphics_draw_dashes_p(GtGraphics *g,
                               GraphicsDrawSimpleFuncParams *params)
{
  gt_assert(g && g->c_class && params);
  gt_rwlock_wrlock(g->pvt->lock);
  g->c_class->draw_dashes(g, params->x, params->y, params->width,
                          params->height, params->arrow_status,
                          params->arrow_width, params->stroke_width,
                          params->stroke_color);
  gt_rwlock_unlock(g->pvt->lock);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
je 0x4ecb8
movq %rsi, %r14
testq %rsi, %rsi
je 0x4ecb8
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x4ecb8
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3cfc0
movq (%rbx), %rax
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movsd 0x10(%r14), %xmm2
movsd 0x18(%r14), %xmm3
movl 0x50(%r14), %esi
movsd 0x20(%r14), %xmm4
movsd 0x28(%r14), %xmm5
movups 0x30(%r14), %xmm6
movups 0x40(%r14), %xmm7
movups %xmm7, 0x10(%rsp)
movups %xmm6, (%rsp)
movq %rbx, %rdi
callq *0x98(%rax)
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x28, %rsp
popq %rbx
popq %r14
jmp 0x3cfdb
callq 0x16794
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics.c
// Function: gt_graphics_draw_rectangle_p
void gt_graphics_draw_rectangle_p(GtGraphics *g,
                                  GraphicsDrawRectFuncParams *params)
{
  gt_assert(g && g->c_class && params);
  gt_rwlock_wrlock(g->pvt->lock);
  g->c_class->draw_rectangle(g, params->x, params->y, params->filled,
                             params->fill_color, params->outlined,
                             params->outline_color, params->outline_width,
                             params->width, params->height);
  gt_rwlock_unlock(g->pvt->lock);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
testq %rdi, %rdi
je 0x4ede7
movq %rsi, %r14
testq %rsi, %rsi
je 0x4ede7
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x4ede7
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3cfc0
movq (%rbx), %rax
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movzbl 0x68(%r14), %esi
movzbl 0x69(%r14), %edx
movsd 0x50(%r14), %xmm2
movsd 0x58(%r14), %xmm3
movsd 0x60(%r14), %xmm4
movups 0x10(%r14), %xmm5
movups 0x20(%r14), %xmm6
movups 0x30(%r14), %xmm7
movups 0x40(%r14), %xmm8
movups %xmm8, 0x30(%rsp)
movups %xmm7, 0x20(%rsp)
movups %xmm6, 0x10(%rsp)
movups %xmm5, (%rsp)
movq %rbx, %rdi
callq *0xa8(%rax)
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x48, %rsp
popq %rbx
popq %r14
jmp 0x3cfdb
callq 0x16806
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics.c
// Function: gt_graphics_draw_arrowhead_p
void gt_graphics_draw_arrowhead_p(GtGraphics *g,
                                  GraphicsDrawArrowheadFuncParams *params)
{
  gt_assert(g && g->c_class && params);
  gt_rwlock_wrlock(g->pvt->lock);
  g->c_class->draw_arrowhead(g, params->x, params->y, params->col,
                             params->arrow_status);
  gt_rwlock_unlock(g->pvt->lock);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
je 0x4ee58
movq %rsi, %r14
testq %rsi, %rsi
je 0x4ee58
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x4ee58
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3cfc0
movq (%rbx), %rax
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movl 0x30(%r14), %esi
movups 0x10(%r14), %xmm2
movups 0x20(%r14), %xmm3
movups %xmm3, 0x10(%rsp)
movups %xmm2, (%rsp)
movq %rbx, %rdi
callq *0xb0(%rax)
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x28, %rsp
popq %rbx
popq %r14
jmp 0x3cfdb
callq 0x1683f
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics.c
// Function: gt_graphics_draw_curve_data_p
void gt_graphics_draw_curve_data_p(GtGraphics *g,
                                   GraphicsDrawCurveFuncParams *params,
                                   double *data,
                                   GtUword rngstart,
                                   GtUword rngend,
                                   GtUword ndata,
                                   GtUword height)
{
  GtRange rng;
  gt_assert(g && g->c_class && params);
  gt_rwlock_wrlock(g->pvt->lock);
  rng.start = rngstart;
  rng.end = rngend;
  g->c_class->draw_curve(g, params->x, params->y, params->color, data,
                         ndata, rng, height);
  gt_rwlock_unlock(g->pvt->lock);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, 0x20(%rsp)
testq %rdi, %rdi
je 0x4eef4
movq %rsi, %rbp
testq %rsi, %rsi
je 0x4eef4
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x4eef4
movq %r9, %r15
movq %rcx, %r12
movq %rdx, %r13
movq 0x60(%rsp), %r14
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3cfc0
movq (%rbx), %rax
movsd (%rbp), %xmm0
movsd 0x8(%rbp), %xmm1
movups 0x10(%rbp), %xmm2
movups 0x20(%rbp), %xmm3
movups %xmm3, 0x10(%rsp)
movups %xmm2, (%rsp)
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq 0x20(%rsp), %r8
movq %r14, %r9
callq *0xb8(%rax)
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3cfdb
callq 0x16878
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_set_font
void gt_graphics_cairo_set_font(GtGraphics *gg, const char *family,
                                FontSlant slant, FontWeight weight, double size)
{
  char buf[BUFSIZ];
  GtGraphicsCairo *g = gt_graphics_cairo_cast(gg);
  gt_assert(g && family && g->layout);

  snprintf(buf, BUFSIZ, "%s %s %s %d",
           family,
           (slant == SLANT_ITALIC) ? "Italic" : "",
           (weight == WEIGHT_BOLD) ? "Bold" : "",
           (int) size);
  g->desc = pango_font_description_from_string(buf);
  gt_assert(g->desc);
  pango_layout_set_font_description(g->layout, g->desc);
  pango_font_description_free(g->desc);
  g->font_height = (int) size;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x2018, %rsp           # imm = 0x2018
movsd %xmm0, 0x8(%rsp)
movl %ecx, %ebp
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
callq 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %r14, %r14
je 0x4efd5
movq %rax, %rbx
testq %rax, %rax
je 0x4efd5
cmpq $0x0, 0x78(%rbx)
je 0x4efd5
cmpl $0x1, %r15d
leaq 0x9c259(%rip), %r8      # 0xeb1ae
leaq 0x9fbdb(%rip), %rax     # 0xeeb37
cmovneq %rax, %r8
cmpl $0x1, %ebp
leaq 0x9c24b(%rip), %r9      # 0xeb1b5
cmovneq %rax, %r9
cvttsd2si 0x8(%rsp), %ebp
movl %ebp, (%rsp)
leaq 0x9c224(%rip), %rdx     # 0xeb1a2
leaq 0x10(%rsp), %r15
movl $0x2000, %esi           # imm = 0x2000
movq %r15, %rdi
movq %r14, %rcx
xorl %eax, %eax
callq 0xba10
movq %r15, %rdi
callq 0xbb10
movq %rax, 0x80(%rbx)
testq %rax, %rax
je 0x4efda
movq 0x78(%rbx), %rdi
movq %rax, %rsi
callq 0xbc50
movq 0x80(%rbx), %rdi
callq 0xb4c0
movl %ebp, 0x88(%rbx)
addq $0x2018, %rsp           # imm = 0x2018
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x168e8
callq 0x168b1
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: str_write_func
static cairo_status_t str_write_func(void *closure, const unsigned char *data,
                                     unsigned int length)
{
  GtStr *stream = closure;
  gt_assert(stream);
  gt_str_append_cstr_nt(stream, (char*) data, length);
  return CAIRO_STATUS_SUCCESS;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x4f26f
movl %edx, %edx
callq 0x3b8d7
xorl %eax, %eax
popq %rcx
retq
callq 0x16991
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_set_background_color
int gt_graphics_cairo_set_background_color(GtGraphics *gg, GtColor color)
{
  GtGraphicsCairo *g = gt_graphics_cairo_cast(gg);
  gt_assert(g);
  if (g->type != GT_GRAPHICS_PNG)
  {
    /* blending with a background is only supported with image output type */
    return -1;
  }
  else
  {
    g->bg_color.red = color.red;
    g->bg_color.green = color.green;
    g->bg_color.blue = color.blue;
    g->bg_color.alpha = color.alpha;
    return 0;
  }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %rax, %rax
je 0x4f2b2
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl $0x1, 0x48(%rax)
jne 0x4f2ae
leaq 0x10(%rsp), %rcx
movups (%rcx), %xmm0
movups %xmm0, 0x20(%rax)
movups 0x10(%rcx), %xmm0
movups %xmm0, 0x30(%rax)
xorl %ecx, %ecx
movl %ecx, %eax
popq %rbx
retq
callq 0x169c8
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_draw_text
void gt_graphics_cairo_draw_text(GtGraphics *gg, double x, double y,
                                 const char *text)
{
  PangoRectangle ink;
  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, &ink, NULL);

  if (gt_double_smaller_double(g->width, x+ink.width))
    return;

  cairo_set_source_rgb(g->cr, 0, 0, 0);
  cairo_move_to(g->cr, x, y-g->font_height);
  pango_cairo_show_layout(g->cr, g->layout);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
callq 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %r14, %r14
je 0x4f38b
movq %rax, %rbx
testq %rax, %rax
je 0x4f38b
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x4f38b
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xb1a0
movq 0x78(%rbx), %rdi
leaq 0x18(%rsp), %r14
movq %r14, %rsi
xorl %edx, %edx
callq 0xb3c0
movsd 0x68(%rbx), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x8(%r14), %xmm1
addsd 0x8(%rsp), %xmm1
callq 0x7a42f
testb %al, %al
jne 0x4f383
movq 0x10(%rbx), %rdi
xorps %xmm0, %xmm0
xorpd %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0xb3e0
movq 0x10(%rbx), %rdi
xorps %xmm0, %xmm0
cvtsi2sdl 0x88(%rbx), %xmm0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %rdi
movq 0x78(%rbx), %rsi
callq 0xbc10
addq $0x28, %rsp
popq %rbx
popq %r14
retq
callq 0x16a01
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_draw_text_clip
void gt_graphics_cairo_draw_text_clip(GtGraphics *gg, double x, double y,
                                      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_save(g->cr);
  cairo_rectangle(g->cr,
                  g->margin_x,
                  g->margin_y,
                  g->width-2*g->margin_x,
                  g->height-2*g->margin_y);
  cairo_clip(g->cr);
  cairo_set_source_rgb(g->cr, 0, 0, 0);
  cairo_move_to(g->cr, x, y-g->font_height);
  pango_cairo_show_layout(g->cr, g->layout);
  cairo_restore(g->cr);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
callq 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %r14, %r14
je 0x4f485
movq %rax, %rbx
testq %rax, %rax
je 0x4f485
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x4f485
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xb1a0
movq 0x10(%rbx), %rdi
callq 0xb3d0
movq 0x10(%rbx), %rdi
movsd 0x50(%rbx), %xmm0
movsd 0x58(%rbx), %xmm1
movsd 0x68(%rbx), %xmm2
movapd %xmm0, %xmm3
addsd %xmm0, %xmm3
subsd %xmm3, %xmm2
movsd 0x60(%rbx), %xmm3
movapd %xmm1, %xmm4
addsd %xmm1, %xmm4
subsd %xmm4, %xmm3
callq 0xb2e0
movq 0x10(%rbx), %rdi
callq 0xbb50
movq 0x10(%rbx), %rdi
xorpd %xmm0, %xmm0
xorpd %xmm1, %xmm1
xorpd %xmm2, %xmm2
callq 0xb3e0
movq 0x10(%rbx), %rdi
xorps %xmm0, %xmm0
cvtsi2sdl 0x88(%rbx), %xmm0
movsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %rdi
movq 0x78(%rbx), %rsi
callq 0xbc10
movq 0x10(%rbx), %rdi
addq $0x18, %rsp
popq %rbx
popq %r14
jmp 0xba50
callq 0x16a3a
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_draw_text_centered
void gt_graphics_cairo_draw_text_centered(GtGraphics *gg, double x, double y,
                                          const char *text)
{
  PangoRectangle ink;
  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, &ink, NULL);

  cairo_set_source_rgb(g->cr, 0, 0, 0);
  /* draw text w/ its center at the given coords */
  cairo_move_to(g->cr, x-(ink.width/2)-1, y-g->font_height);
  pango_cairo_show_layout(g->cr, g->layout);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
callq 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %r14, %r14
je 0x4f560
movq %rax, %rbx
testq %rax, %rax
je 0x4f560
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x4f560
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xb1a0
movq 0x78(%rbx), %rdi
leaq 0x18(%rsp), %r14
movq %r14, %rsi
xorl %edx, %edx
callq 0xb3c0
movq 0x10(%rbx), %rdi
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0xb3e0
movl 0x8(%r14), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
movsd 0x8(%rsp), %xmm0
subsd %xmm1, %xmm0
addsd 0x9bbe3(%rip), %xmm0    # 0xeb110
movq 0x10(%rbx), %rdi
xorps %xmm2, %xmm2
cvtsi2sdl 0x88(%rbx), %xmm2
movsd 0x10(%rsp), %xmm1
subsd %xmm2, %xmm1
callq 0xb240
movq 0x10(%rbx), %rdi
movq 0x78(%rbx), %rsi
callq 0xbc10
addq $0x28, %rsp
popq %rbx
popq %r14
retq
callq 0x16a73
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_draw_text_right
void gt_graphics_cairo_draw_text_right(GtGraphics *gg, double x, double y,
                                       const char *text)
{
  PangoRectangle ink;
  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, &ink, NULL);

  cairo_set_source_rgb(g->cr, 0, 0, 0);
  /* draw text w/ its right end at the given coords */
  cairo_move_to(g->cr, x-(ink.width)-1, y-g->font_height);
  pango_cairo_show_layout(g->cr, g->layout);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
callq 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %r14, %r14
je 0x4f630
movq %rax, %rbx
testq %rax, %rax
je 0x4f630
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x4f630
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xb1a0
movq 0x78(%rbx), %rdi
leaq 0x18(%rsp), %r14
movq %r14, %rsi
xorl %edx, %edx
callq 0xb3c0
movq 0x10(%rbx), %rdi
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorps %xmm2, %xmm2
callq 0xb3e0
xorps %xmm1, %xmm1
cvtsi2sdl 0x8(%r14), %xmm1
movsd 0x8(%rsp), %xmm0
subsd %xmm1, %xmm0
addsd 0x9bb13(%rip), %xmm0    # 0xeb110
movq 0x10(%rbx), %rdi
xorps %xmm2, %xmm2
cvtsi2sdl 0x88(%rbx), %xmm2
movsd 0x10(%rsp), %xmm1
subsd %xmm2, %xmm1
callq 0xb240
movq 0x10(%rbx), %rdi
movq 0x78(%rbx), %rsi
callq 0xbc10
addq $0x28, %rsp
popq %rbx
popq %r14
retq
callq 0x16aac
// File: /workspace/github_c_makefile_star2_O3/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 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %r14, %r14
je 0x4f6da
movq %rax, %rbx
testq %rax, %rax
je 0x4f6da
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x4f6da
leaq 0x30(%rsp), %r15
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xb1a0
movq 0x10(%rbx), %rdi
movsd (%r15), %xmm0
movsd 0x8(%r15), %xmm1
movsd 0x10(%r15), %xmm2
callq 0xb3e0
movq 0x10(%rbx), %rdi
xorps %xmm0, %xmm0
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 0xbc10
callq 0x16ae5
// File: /workspace/github_c_makefile_star2_O3/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 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %rax, %rax
je 0x4f7b6
movsd (%rsp), %xmm0
movsd %xmm0, 0x50(%rax)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x58(%rax)
addq $0x10, %rsp
popq %rbx
retq
callq 0x16c02
// File: /workspace/github_c_makefile_star2_O3/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 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %rax, %rax
je 0x4f8bb
movq %rax, %rbx
leaq 0x50(%rsp), %r15
movq 0x10(%rax), %rdi
callq 0xb3d0
movq 0x10(%rbx), %r14
movsd 0x8(%rsp), %xmm0
addsd 0x9ae2f(%rip), %xmm0    # 0xea650
callq 0xbac0
movapd %xmm0, %xmm1
addsd 0x9ae1e(%rip), %xmm1    # 0xea650
movq %r14, %rdi
movsd 0x10(%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x9adfe(%rip), %xmm0    # 0xea650
callq 0xbac0
movsd 0x9adf1(%rip), %xmm1    # 0xea650
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 0xbbc0
movq 0x10(%rbx), %rdi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xba50
callq 0x16c3b
// File: /workspace/github_c_makefile_star2_O3/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 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %rax, %rax
je 0x4f9ab
movq %rax, %rbx
leaq 0x40(%rsp), %r15
movq 0x10(%rax), %rdi
callq 0xb3d0
movq 0x10(%rbx), %rdi
movsd 0x91fd7(%rip), %xmm0    # 0xe18f0
callq 0xb0a0
movq 0x10(%rbx), %r14
movsd (%rsp), %xmm0
addsd 0x9ad21(%rip), %xmm0    # 0xea650
callq 0xbac0
movsd 0x9ad14(%rip), %xmm1    # 0xea650
addsd %xmm0, %xmm1
movq %r14, %rdi
movsd 0x8(%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %rdi
xorpd %xmm1, %xmm1
movsd 0x10(%rsp), %xmm0
callq 0xb970
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 0xbbc0
movq 0x10(%rbx), %rdi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xba50
callq 0x16c74
// File: /workspace/github_c_makefile_star2_O3/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 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %rax, %rax
je 0x4fac4
movq %rax, %rbx
leaq 0x40(%rsp), %r15
movq 0x10(%rax), %rdi
callq 0xb3d0
movq 0x10(%rbx), %r14
movsd (%rsp), %xmm0
addsd 0x9ac42(%rip), %xmm0    # 0xea650
callq 0xbac0
movsd 0x9ac35(%rip), %xmm1    # 0xea650
addsd %xmm1, %xmm0
movsd %xmm0, (%rsp)
movsd 0x8(%rsp), %xmm0
addsd %xmm1, %xmm0
callq 0xbac0
movsd 0x9ac15(%rip), %xmm1    # 0xea650
addsd %xmm0, %xmm1
movq %r14, %rdi
movsd (%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %rdi
movsd 0x91e98(%rip), %xmm0    # 0xe18f0
callq 0xb0a0
movq 0x10(%rbx), %r14
movsd 0x10(%rsp), %xmm0
callq 0xbac0
movaps %xmm0, %xmm1
xorps %xmm0, %xmm0
movq %r14, %rdi
callq 0xb970
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 0xbbc0
movq 0x10(%rbx), %rdi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xba50
callq 0x16cad
// File: /workspace/github_c_makefile_star2_O3/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 0x4efdf
movq %rax, %rdi
movq %r14, %rsi
callq 0x4dbf7
testq %rbx, %rbx
je 0x4fb3e
movq %rax, %r14
testq %rax, %rax
je 0x4fb3e
movq 0x78(%r14), %rdi
testq %rdi, %rdi
je 0x4fb3e
movq %rbx, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
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 0x7a42f
testb %al, %al
je 0x4fb43
xorps %xmm0, %xmm0
cvtsi2sdl 0x10(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
callq 0x16d1f
callq 0x16ce6
// File: /workspace/github_c_makefile_star2_O3/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 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %rax, %rax
je 0x50bd0
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 0x50b7d
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 0xbc40
testb %bpl, %bpl
je 0x50bbf
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 0xbbc0
movq 0x10(%rbx), %rdi
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0xba50
callq 0x16e3c
// File: /workspace/github_c_makefile_star2_O3/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 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
testq %rax, %rax
je 0x50d13
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 0x50c90
testl %ebp, %ebp
movsd 0x10(%rsp), %xmm1
jne 0x50d02
movq 0x10(%rbx), %rdi
movsd 0x9a4be(%rip), %xmm0    # 0xeb118
addsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
callq 0xb240
movq 0x10(%rbx), %rdi
movsd 0x9a4a9(%rip), %xmm1    # 0xeb120
addsd 0x10(%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
callq 0xb770
movsd 0x18(%rsp), %xmm0
jmp 0x50cd0
movq 0x10(%rbx), %rdi
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %rdi
movsd 0x9a467(%rip), %xmm0    # 0xeb118
addsd 0x8(%rsp), %xmm0
movsd 0x9a461(%rip), %xmm1    # 0xeb120
addsd 0x10(%rsp), %xmm1
callq 0xb770
movsd 0x8(%rsp), %xmm0
movq 0x10(%rbx), %rdi
movsd 0x10(%rsp), %xmm1
addsd 0x9a446(%rip), %xmm1    # 0xeb128
callq 0xb770
movq 0x10(%rbx), %rdi
callq 0xba40
movq 0x10(%rbx), %rdi
callq 0xbc40
movq 0x10(%rbx), %rdi
callq 0xbbc0
movq 0x10(%rbx), %rdi
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0xba50
callq 0x16e75
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/graphics_cairo.c
// Function: gt_graphics_cairo_save_to_stream
void gt_graphics_cairo_save_to_stream(const GtGraphics *gg, GtStr *stream)
{
  const GtGraphicsCairo *g = (const GtGraphicsCairo*) gg;
  GT_UNUSED cairo_status_t rval;
  cairo_surface_t *bgsurf = NULL;
  cairo_t *bgc = NULL;
  gt_assert(g && stream);

  /* do nothing if no surface was created */
  if (g->from_context)
    return;
  switch (g->type)
  {
    case GT_GRAPHICS_PNG:
      /* blend rendered image with background color */
      bgsurf = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, g->width,
                                          g->height);
      bgc = cairo_create(bgsurf);
      cairo_set_source_rgba(bgc, g->bg_color.red, g->bg_color.green,
                                 g->bg_color.blue, g->bg_color.alpha);
      cairo_paint(bgc);
      cairo_set_source_surface(bgc, g->surf, 0, 0);
      cairo_paint(bgc);
      rval = cairo_surface_write_to_png_stream(bgsurf, str_write_func, stream);
      gt_assert(rval == CAIRO_STATUS_SUCCESS); /* str_write_func() is sane */
      cairo_destroy(bgc);
      cairo_surface_destroy(bgsurf);
      break;
    default:
      cairo_show_page(g->cr);
      cairo_surface_flush(g->surf);
      cairo_surface_finish(g->surf);
      gt_str_reset(stream);
      gt_str_append_str(stream, g->outbuf);
      gt_assert(gt_str_length(stream) > 0);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x50fc0
movq %rsi, %rbx
testq %rsi, %rsi
je 0x50fc0
movq %rdi, %r14
cmpb $0x0, 0x70(%rdi)
jne 0x50fb4
cmpl $0x1, 0x48(%r14)
jne 0x50f78
cvttsd2si 0x68(%r14), %esi
cvttsd2si 0x60(%r14), %edx
xorl %edi, %edi
callq 0xb850
movq %rax, %r15
movq %rax, %rdi
callq 0xb1e0
movq %rax, %r12
movsd 0x20(%r14), %xmm0
movsd 0x28(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movq %rax, %rdi
callq 0xb380
movq %r12, %rdi
callq 0xba80
movq 0x18(%r14), %rsi
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
movq %r12, %rdi
callq 0xbbe0
movq %r12, %rdi
callq 0xba80
leaq -0x1cf0(%rip), %rsi     # 0x4f25e
movq %r15, %rdi
movq %rbx, %rdx
callq 0xbba0
testl %eax, %eax
jne 0x50fc5
movq %r12, %rdi
callq 0xb8c0
movq %r15, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0xb7a0
movq 0x10(%r14), %rdi
callq 0xb4a0
movq 0x18(%r14), %rdi
callq 0xbaf0
movq 0x18(%r14), %rdi
callq 0xb230
movq %rbx, %rdi
callq 0x3bbee
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x3b87d
movq %rbx, %rdi
callq 0x3bb86
testq %rax, %rax
je 0x50fca
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x16f59
callq 0x16fcb
callq 0x16f92
// File: /workspace/github_c_makefile_star2_O3/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 0x5100d
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x70(%rdi)
jne 0x50fe7
movq 0x10(%rbx), %rdi
callq 0xb8c0
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x50ff5
callq 0xb7a0
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x51003
callq 0x3c87b
movq 0x78(%rbx), %rdi
popq %rbx
jmp 0xb9a0
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x4efdf
movq %rax, %rdi
callq 0x4dae7
movq %rax, %rbx
callq 0x4efdf
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4dbf7
movq %rax, %r14
movq %rbx, %rdi
movl %r12d, %esi
movl %r15d, %edx
movl %ebp, %ecx
callq 0x4f0db
movq 0x10(%r14), %rdi
callq 0xb150
movq %rax, 0x78(%r14)
movq %rax, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xbce0
cmpq $0x0, 0x78(%r14)
je 0x513d1
leaq 0x9a35e(%rip), %rdx     # 0xeb6e1
movq %rsp, %r15
movl $0x40, %esi
movq %r15, %rdi
movl $0x8, %ecx
xorl %eax, %eax
callq 0xba10
movq %r15, %rdi
callq 0xbb10
movq %rax, 0x80(%r14)
movq 0x78(%r14), %rdi
movq %rax, %rsi
callq 0xbc50
movq 0x80(%r14), %rdi
callq 0xb4c0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x1703d
// File: /workspace/github_c_makefile_star2_O3/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 0x4efdf
movq %rax, %rdi
callq 0x4dae7
movq %rax, %r14
callq 0x4efdf
movq %rax, %rdi
movq %r14, %rsi
callq 0x4dbf7
movq %rax, %r15
movl %r12d, %eax
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x68(%r15)
movl %ebp, %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
movsd %xmm0, 0x60(%r15)
movaps 0x99cce(%rip), %xmm0    # 0xeb100
movups %xmm0, 0x50(%r15)
movb $0x1, 0x70(%r15)
movq %rbx, 0x10(%r15)
movq %rbx, %rdi
callq 0xb150
movq %rax, 0x78(%r15)
movq %rax, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xbce0
cmpq $0x0, 0x78(%r15)
je 0x514cf
leaq 0x9a27a(%rip), %rdx     # 0xeb6e1
movq %rsp, %r12
movl $0x40, %esi
movq %r12, %rdi
movl $0x8, %ecx
xorl %eax, %eax
callq 0xba10
movq %r12, %rdi
callq 0xbb10
movq %rax, 0x80(%r15)
movq 0x78(%r15), %rdi
movq %rax, %rsi
callq 0xbc50
movq 0x80(%r15), %rdi
callq 0xb4c0
movq %rbx, %rdi
movl $0x1, %esi
callq 0xb4e0
movq %rbx, %rdi
movl $0x1, %esi
callq 0xb360
movq %r14, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x17076
// File: /workspace/github_c_makefile_star2_O3/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 0x9a29c(%rip), %rdx     # 0xeb778
movl $0x1, %edi
movl $0x18, %esi
movl $0x26, %ecx
callq 0x359a6
movq %rax, %rbx
movl $0x8, %edi
callq 0x6ef7c
movq %rax, (%rbx)
testq %rax, %rax
je 0x5150a
movq %rbx, %rax
popq %rbx
retq
callq 0x170af
// File: /workspace/github_c_makefile_star2_O3/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 0x5153e
movq %rdi, %rbx
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x51546
decq %rax
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq (%rbx), %rdi
callq 0x6f310
testq %rax, %rax
je 0x51579
xorl %r14d, %r14d
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x6f037
movq (%rax), %rdi
callq 0x527d6
incq %r14
movq (%rbx), %rdi
callq 0x6f310
cmpq %rax, %r14
jb 0x51556
movq (%rbx), %rdi
callq 0x6f768
leaq 0x9a1f0(%rip), %rsi     # 0xeb778
movq %rbx, %rdi
movl $0x41, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x35c27
// File: /workspace/github_c_makefile_star2_O3/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 0x51864
movl %esi, %ebp
testl %esi, %esi
je 0x51864
movq %rdx, %r14
testq %rdx, %rdx
je 0x51864
movq %rcx, %rbx
testq %rcx, %rcx
je 0x51864
movq %rdi, %r15
movl %ebp, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x51869
testl %eax, %eax
js 0x5184f
xorl %r12d, %r12d
xorl %edi, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x551fb
testq %rax, %rax
je 0x51852
movq %rax, %r13
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rax, %rcx
movq %rbx, %r8
callq 0x51906
testq %rax, %rax
je 0x51847
movq %rax, %r12
movb $0x1, 0x10(%rax)
jmp 0x51852
movq %r13, %rdi
callq 0x54fa6
xorl %r12d, %r12d
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1729e
// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %rax
movl %edi, %ebx
movabsq $0x403e000000000000, %rdx # imm = 0x403E000000000000
leaq 0x8(%rsp), %rcx
movq %rdx, (%rcx)
leaq 0x8f903(%rip), %rsi     # 0xe1196
leaq 0x99b9e(%rip), %rdx     # 0xeb438
xorl %r15d, %r15d
movq %rax, %rdi
xorl %r8d, %r8d
movq %r14, %r9
callq 0x5393e
cmpl $0x2, %eax
je 0x518f3
movl %ebx, %eax
cvtsi2sd %rax, %xmm0
movsd 0x8(%rsp), %xmm1
addsd %xmm1, %xmm1
subsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
callq 0x7a42f
testb %al, %al
je 0x518f9
movsd 0x8(%rsp), %xmm0
movapd %xmm0, %xmm1
addsd %xmm0, %xmm1
leaq 0x9a1f6(%rip), %rsi     # 0xebadd
movq %r14, %rdi
movl %ebx, %edx
movb $0x2, %al
callq 0x34f1f
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movl %r15d, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/annotationsketch/layout.c
// Function: gt_layout_new_with_twc
GtLayout* gt_layout_new_with_twc(GtDiagram *diagram,
                                 unsigned int width,
                                 GtStyle *style,
                                 GtTextWidthCalculator *twc,
                                 GtError *err)
{
  GtLayout *layout;
  GtHashmap *blocks;
  gt_assert(diagram);
  gt_assert(style);
  gt_assert(twc);
  gt_assert(err);
  if (check_width(width, style, err) < 0)
    return NULL;
  layout = gt_calloc(1, sizeof (GtLayout));
  layout->twc = twc;
  layout->style = style;
  layout->width = width;
  layout->blocks = NULL;
  layout->viewrange = gt_diagram_get_range(diagram);
  layout->nof_tracks = 0;
  layout->track_ordering_func = NULL;
  layout->block_ordering_func = gt_block_compare;
  layout->t_cmp_data = NULL;
  layout->b_cmp_data = NULL;
  layout->lock = gt_rwlock_new();
  layout->own_twc = false;
  layout->layout_done = false;
  layout->custom_tracks = gt_array_ref(gt_diagram_get_custom_tracks(diagram));
  /* XXX: use other container type here! */
  layout->tracks = gt_hashmap_new(GT_HASH_STRING, gt_free_func,
                                  (GtFree) gt_track_delete);
  blocks = gt_diagram_get_blocks(diagram, err);
  if (!blocks) {
    gt_array_delete(layout->custom_tracks);
    gt_hashmap_delete(layout->tracks);
    gt_free(layout);
    return NULL;
  } else
    layout->blocks = gt_hashmap_ref(blocks);
  return layout;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x51a4b
movq %rdx, %r12
testq %rdx, %rdx
je 0x51a50
movq %rcx, %r13
testq %rcx, %rcx
je 0x51a55
movq %r8, %rbx
testq %r8, %r8
je 0x51a5a
movl %esi, %ebp
movq %rdi, %r15
movl %esi, %edi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x51869
testl %eax, %eax
js 0x51a36
leaq 0x99fc4(%rip), %rdx     # 0xeb923
movl $0x1, %edi
movl $0x78, %esi
movl $0x110, %ecx            # imm = 0x110
callq 0x359a6
movq %rax, %r14
movq %r13, 0x8(%rax)
movq %r12, (%rax)
movl %ebp, 0x48(%rax)
xorl %r12d, %r12d
movq %r12, 0x28(%rax)
movq %r15, %rdi
callq 0x4c452
movq %rax, 0x30(%r14)
movq %rdx, 0x38(%r14)
movq %r12, 0x40(%r14)
movq %r12, 0x58(%r14)
leaq 0x38cf2(%rip), %rax     # 0x8a698
movq %rax, 0x60(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%r14)
callq 0x3cf33
movq %rax, 0x50(%r14)
movw $0x0, 0x10(%r14)
movq %r15, %rdi
callq 0x4c6d0
movq %rax, %rdi
callq 0x6f02b
movq %rax, 0x18(%r14)
leaq -0x1bcf7(%rip), %rsi    # 0x35ce6
leaq 0x4e12(%rip), %rdx      # 0x567f6
movl $0x1, %edi
callq 0x7740c
movq %rax, 0x20(%r14)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4c58c
testq %rax, %rax
je 0x51a10
movq %rax, %rdi
callq 0x775e8
movq %rax, 0x28(%r14)
jmp 0x51a39
movq 0x18(%r14), %rdi
callq 0x6f768
movq 0x20(%r14), %rdi
callq 0x77bab
leaq 0x99efa(%rip), %rsi     # 0xeb923
movq %r14, %rdi
movl $0x126, %edx            # imm = 0x126
callq 0x35c27
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x17382
callq 0x17349
callq 0x17310
callq 0x172d7
// File: /workspace/github_c_makefile_star2_O3/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 0x51acc
pushq %rbx
movq %rdi, %rbx
movq 0x50(%rdi), %rdi
callq 0x3cfc0
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x51a85
cmpb $0x1, 0x10(%rbx)
jne 0x51a85
callq 0x54fa6
movq 0x20(%rbx), %rdi
callq 0x77bab
movq 0x18(%rbx), %rdi
callq 0x6f768
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x51aa5
callq 0x77bab
movq 0x50(%rbx), %rdi
callq 0x3cfdb
movq 0x50(%rbx), %rdi
callq 0x3cf83
leaq 0x99e65(%rip), %rsi     # 0xeb923
movq %rbx, %rdi
movl $0x139, %edx            # imm = 0x139
popq %rbx
jmp 0x35c27
retq