LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/annotationsketch/graphics.c
// Function: gt_graphics_draw_vertical_line_p
void gt_graphics_draw_vertical_line_p(GtGraphics *g,
                                      GraphicsDrawLineFuncParams *params)
{
  gt_assert(g && g->c_class && params);
  gt_rwlock_wrlock(g->pvt->lock);
  g->c_class->draw_vertical_line(g, params->x, params->y, params->color,
                                 params->len, params->stroke_width);
  gt_rwlock_unlock(g->pvt->lock);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
testq %rdi, %rdi
je 0x4f826
movq %rsi, %r14
testq %rsi, %rsi
je 0x4f826
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x4f826
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3d934
movq (%rbx), %rax
movsd (%r14), %xmm0
movsd 0x8(%r14), %xmm1
movsd 0x30(%r14), %xmm2
movsd 0x38(%r14), %xmm3
movups 0x10(%r14), %xmm4
movups 0x20(%r14), %xmm5
movups %xmm5, 0x10(%rsp)
movups %xmm4, (%rsp)
movq %rbx, %rdi
callq *0x80(%rax)
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
addq $0x28, %rsp
popq %rbx
popq %r14
jmp 0x3d94f
callq 0x16874
// File: /workspace/github_c_makefile_star2_O1/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 0x4f8db
movq %rsi, %r14
testq %rsi, %rsi
je 0x4f8db
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x4f8db
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3d934
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 0x3d94f
callq 0x168ad
// File: /workspace/github_c_makefile_star2_O1/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 0x4f964
movq %rsi, %r14
testq %rsi, %rsi
je 0x4f964
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x4f964
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3d934
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 0x3d94f
callq 0x168e6
// File: /workspace/github_c_makefile_star2_O1/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 0x4fa93
movq %rsi, %r14
testq %rsi, %rsi
je 0x4fa93
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x4fa93
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3d934
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 0x3d94f
callq 0x16958
// File: /workspace/github_c_makefile_star2_O1/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 0x4fb04
movq %rsi, %r14
testq %rsi, %rsi
je 0x4fb04
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x4fb04
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3d934
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 0x3d94f
callq 0x16991
// File: /workspace/github_c_makefile_star2_O1/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 0x4fba0
movq %rsi, %rbp
testq %rsi, %rsi
je 0x4fba0
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x4fba0
movq %r9, %r15
movq %rcx, %r12
movq %rdx, %r13
movq 0x60(%rsp), %r14
movq 0x8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3d934
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 0x3d94f
callq 0x169ca
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %r14, %r14
je 0x4fc81
movq %rax, %rbx
testq %rax, %rax
je 0x4fc81
cmpq $0x0, 0x78(%rbx)
je 0x4fc81
cmpl $0x1, %r15d
leaq 0x9b5fd(%rip), %r8      # 0xeb1fe
leaq 0x9ef77(%rip), %rax     # 0xeeb7f
cmovneq %rax, %r8
cmpl $0x1, %ebp
leaq 0x9b5ef(%rip), %r9      # 0xeb205
cmovneq %rax, %r9
cvttsd2si 0x8(%rsp), %ebp
movl %ebp, (%rsp)
leaq 0x9b5c8(%rip), %rdx     # 0xeb1f2
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 0x4fc86
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 0x16a3a
callq 0x16a03
// File: /workspace/github_c_makefile_star2_O1/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 0x4ff20
movl %edx, %edx
callq 0x3c185
xorl %eax, %eax
popq %rcx
retq
callq 0x16ae3
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %rax, %rax
je 0x4ff63
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmpl $0x1, 0x48(%rax)
jne 0x4ff5f
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 0x16b1a
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %r14, %r14
je 0x5003c
movq %rax, %rbx
testq %rax, %rax
je 0x5003c
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x5003c
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 0x7a0a0
testb %al, %al
jne 0x50034
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 0x16b53
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %r14, %r14
je 0x50136
movq %rax, %rbx
testq %rax, %rax
je 0x50136
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x50136
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 0x16b8c
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %r14, %r14
je 0x50211
movq %rax, %rbx
testq %rax, %rax
je 0x50211
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x50211
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 0x9af82(%rip), %xmm0    # 0xeb160
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 0x16bc5
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %r14, %r14
je 0x502e1
movq %rax, %rbx
testq %rax, %rax
je 0x502e1
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x502e1
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 0x9aeb2(%rip), %xmm0    # 0xeb160
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 0x16bfe
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %r14, %r14
je 0x5038b
movq %rax, %rbx
testq %rax, %rax
je 0x5038b
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x5038b
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 0x16c37
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %rax, %rax
je 0x50467
movsd (%rsp), %xmm0
movsd %xmm0, 0x50(%rax)
movsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x58(%rax)
addq $0x10, %rsp
popq %rbx
retq
callq 0x16d54
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %rax, %rax
je 0x5056c
movq %rax, %rbx
leaq 0x50(%rsp), %r15
movq 0x10(%rax), %rdi
callq 0xb3d0
movq 0x10(%rbx), %r14
movsd 0x8(%rsp), %xmm0
addsd 0x9a1ce(%rip), %xmm0    # 0xea6a0
callq 0xbac0
movapd %xmm0, %xmm1
addsd 0x9a1bd(%rip), %xmm1    # 0xea6a0
movq %r14, %rdi
movsd 0x10(%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %r14
movsd 0x18(%rsp), %xmm0
addsd 0x9a19d(%rip), %xmm0    # 0xea6a0
callq 0xbac0
movsd 0x9a190(%rip), %xmm1    # 0xea6a0
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 0x16d8d
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %rax, %rax
je 0x5065c
movq %rax, %rbx
leaq 0x40(%rsp), %r15
movq 0x10(%rax), %rdi
callq 0xb3d0
movq 0x10(%rbx), %rdi
movsd 0x91326(%rip), %xmm0    # 0xe18f0
callq 0xb0a0
movq 0x10(%rbx), %r14
movsd (%rsp), %xmm0
addsd 0x9a0c0(%rip), %xmm0    # 0xea6a0
callq 0xbac0
movsd 0x9a0b3(%rip), %xmm1    # 0xea6a0
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 0x16dc6
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %rax, %rax
je 0x50775
movq %rax, %rbx
leaq 0x40(%rsp), %r15
movq 0x10(%rax), %rdi
callq 0xb3d0
movq 0x10(%rbx), %r14
movsd (%rsp), %xmm0
addsd 0x99fe1(%rip), %xmm0    # 0xea6a0
callq 0xbac0
movsd 0x99fd4(%rip), %xmm1    # 0xea6a0
addsd %xmm1, %xmm0
movsd %xmm0, (%rsp)
movsd 0x8(%rsp), %xmm0
addsd %xmm1, %xmm0
callq 0xbac0
movsd 0x99fb4(%rip), %xmm1    # 0xea6a0
addsd %xmm0, %xmm1
movq %r14, %rdi
movsd (%rsp), %xmm0
callq 0xb240
movq 0x10(%rbx), %rdi
movsd 0x911e7(%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 0x16dff
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %r14, %rsi
callq 0x4e8a3
testq %rbx, %rbx
je 0x507ef
movq %rax, %r14
testq %rax, %rax
je 0x507ef
movq 0x78(%r14), %rdi
testq %rdi, %rdi
je 0x507ef
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 0x7a0a0
testb %al, %al
je 0x507f4
xorps %xmm0, %xmm0
cvtsi2sdl 0x10(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
callq 0x16e71
callq 0x16e38
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %rax, %rax
je 0x51857
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 0x51804
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 0x51846
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 0x16f8e
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
testq %rax, %rax
je 0x5199a
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 0x51917
testl %ebp, %ebp
movsd 0x10(%rsp), %xmm1
jne 0x51989
movq 0x10(%rbx), %rdi
movsd 0x99887(%rip), %xmm0    # 0xeb168
addsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x18(%rsp)
callq 0xb240
movq 0x10(%rbx), %rdi
movsd 0x99872(%rip), %xmm1    # 0xeb170
addsd 0x10(%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
callq 0xb770
movsd 0x18(%rsp), %xmm0
jmp 0x51957
movq 0x10(%rbx), %rdi
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
callq 0xb240
movq 0x10(%rbx), %rdi
movsd 0x99830(%rip), %xmm0    # 0xeb168
addsd 0x8(%rsp), %xmm0
movsd 0x9982a(%rip), %xmm1    # 0xeb170
addsd 0x10(%rsp), %xmm1
callq 0xb770
movsd 0x8(%rsp), %xmm0
movq 0x10(%rbx), %rdi
movsd 0x10(%rsp), %xmm1
addsd 0x9980f(%rip), %xmm1    # 0xeb178
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 0x16fc7
// File: /workspace/github_c_makefile_star2_O1/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 0x51c47
movq %rsi, %rbx
testq %rsi, %rsi
je 0x51c47
movq %rdi, %r14
cmpb $0x0, 0x70(%rdi)
jne 0x51c3b
cmpl $0x1, 0x48(%r14)
jne 0x51bff
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 -0x1cc6(%rip), %rsi     # 0x4ff0f
movq %r15, %rdi
movq %rbx, %rdx
callq 0xbba0
testl %eax, %eax
jne 0x51c4c
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 0x3c49c
movq 0x40(%r14), %rsi
movq %rbx, %rdi
callq 0x3c12b
movq %rbx, %rdi
callq 0x3c434
testq %rax, %rax
je 0x51c51
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x170ab
callq 0x1711d
callq 0x170e4
// File: /workspace/github_c_makefile_star2_O1/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 0x51c94
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x70(%rdi)
jne 0x51c6e
movq 0x10(%rbx), %rdi
callq 0xb8c0
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x51c7c
callq 0xb7a0
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x51c8a
callq 0x3d1eb
movq 0x78(%rbx), %rdi
popq %rbx
jmp 0xb9a0
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
callq 0x4e793
movq %rax, %rbx
callq 0x4fc8b
movq %rax, %rdi
movq %rbx, %rsi
callq 0x4e8a3
movq %rax, %r14
movq %rbx, %rdi
movl %r12d, %esi
movl %r15d, %edx
movl %ebp, %ecx
callq 0x4fd8f
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 0x52058
leaq 0x99727(%rip), %rdx     # 0xeb731
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 0x1718f
// File: /workspace/github_c_makefile_star2_O1/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 0x4fc8b
movq %rax, %rdi
callq 0x4e793
movq %rax, %r14
callq 0x4fc8b
movq %rax, %rdi
movq %r14, %rsi
callq 0x4e8a3
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 0x99097(%rip), %xmm0    # 0xeb150
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 0x52156
leaq 0x99643(%rip), %rdx     # 0xeb731
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 0x171c8
nop
// File: /workspace/github_c_makefile_star2_O1/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 0x99664(%rip), %rdx     # 0xeb7c8
movl $0x1, %edi
movl $0x18, %esi
movl $0x26, %ecx
callq 0x3601f
movq %rax, %rbx
movl $0x8, %edi
callq 0x6e93c
movq %rax, (%rbx)
testq %rax, %rax
je 0x52192
movq %rbx, %rax
popq %rbx
retq
callq 0x17201
// File: /workspace/github_c_makefile_star2_O1/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 0x521c6
movq %rdi, %rbx
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x521ce
decq %rax
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq (%rbx), %rdi
callq 0x6ecda
testq %rax, %rax
je 0x52201
xorl %r14d, %r14d
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x6e9fa
movq (%rax), %rdi
callq 0x5344e
incq %r14
movq (%rbx), %rdi
callq 0x6ecda
cmpq %rax, %r14
jb 0x521de
movq (%rbx), %rdi
callq 0x6f134
leaq 0x995b8(%rip), %rsi     # 0xeb7c8
movq %rbx, %rdi
movl $0x41, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x362a0
// File: /workspace/github_c_makefile_star2_O1/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 0x524df
movl %esi, %ebp
testl %esi, %esi
je 0x524df
movq %rdx, %r14
testq %rdx, %rdx
je 0x524df
movq %rcx, %rbx
testq %rcx, %rcx
je 0x524df
movq %rdi, %r15
movl %ebp, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x524e4
xorl %r12d, %r12d
testl %eax, %eax
js 0x524cd
xorl %edi, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x55fc3
testq %rax, %rax
je 0x524cd
movq %rax, %r13
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rax, %rcx
movq %rbx, %r8
callq 0x52581
movq %rax, %r12
testq %rax, %rax
je 0x524c5
movb $0x1, 0x10(%r12)
jmp 0x524cd
movq %r13, %rdi
callq 0x55d6e
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x173f0
// File: /workspace/github_c_makefile_star2_O1/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 0x8ec88(%rip), %rsi     # 0xe1196
leaq 0x98f73(%rip), %rdx     # 0xeb488
xorl %r15d, %r15d
movq %rax, %rdi
xorl %r8d, %r8d
movq %r14, %r9
callq 0x545d2
cmpl $0x2, %eax
je 0x5256e
movl %ebx, %eax
cvtsi2sd %rax, %xmm0
movsd 0x8(%rsp), %xmm1
addsd %xmm1, %xmm1
subsd %xmm1, %xmm0
xorpd %xmm1, %xmm1
callq 0x7a0a0
testb %al, %al
je 0x52574
movsd 0x8(%rsp), %xmm0
movapd %xmm0, %xmm1
addsd %xmm0, %xmm1
leaq 0x995cb(%rip), %rsi     # 0xebb2d
movq %r14, %rdi
movl %ebx, %edx
movb $0x2, %al
callq 0x3559f
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movl %r15d, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x526c6
movq %rdx, %r12
testq %rdx, %rdx
je 0x526cb
movq %rcx, %r13
testq %rcx, %rcx
je 0x526d0
movq %r8, %rbx
testq %r8, %r8
je 0x526d5
movl %esi, %ebp
movq %rdi, %r15
movl %esi, %edi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x524e4
testl %eax, %eax
js 0x526b1
leaq 0x99399(%rip), %rdx     # 0xeb973
movl $0x1, %edi
movl $0x78, %esi
movl $0x110, %ecx            # imm = 0x110
callq 0x3601f
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 0x4d0e2
movq %rax, 0x30(%r14)
movq %rdx, 0x38(%r14)
movq %r12, 0x40(%r14)
movq %r12, 0x58(%r14)
leaq 0x38593(%rip), %rax     # 0x8abb4
movq %rax, 0x60(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x68(%r14)
callq 0x3d8a7
movq %rax, 0x50(%r14)
movw $0x0, 0x10(%r14)
movq %r15, %rdi
callq 0x4d362
movq %rax, %rdi
callq 0x6e9eb
movq %rax, 0x18(%r14)
leaq -0x1c2f9(%rip), %rsi    # 0x3635f
leaq 0x4f5e(%rip), %rdx      # 0x575bd
movl $0x1, %edi
callq 0x76f28
movq %rax, 0x20(%r14)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4d21c
testq %rax, %rax
je 0x5268b
movq %rax, %rdi
callq 0x77104
movq %rax, 0x28(%r14)
jmp 0x526b4
movq 0x18(%r14), %rdi
callq 0x6f134
movq 0x20(%r14), %rdi
callq 0x77675
leaq 0x992cf(%rip), %rsi     # 0xeb973
movq %r14, %rdi
movl $0x126, %edx            # imm = 0x126
callq 0x362a0
xorl %r14d, %r14d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x174d4
callq 0x1749b
callq 0x17462
callq 0x17429
// File: /workspace/github_c_makefile_star2_O1/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 0x52747
pushq %rbx
movq %rdi, %rbx
movq 0x50(%rdi), %rdi
callq 0x3d934
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x52700
cmpb $0x1, 0x10(%rbx)
jne 0x52700
callq 0x55d6e
movq 0x20(%rbx), %rdi
callq 0x77675
movq 0x18(%rbx), %rdi
callq 0x6f134
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x52720
callq 0x77675
movq 0x50(%rbx), %rdi
callq 0x3d94f
movq 0x50(%rbx), %rdi
callq 0x3d8f7
leaq 0x9923a(%rip), %rsi     # 0xeb973
movq %rbx, %rdi
movl $0x139, %edx            # imm = 0x139
popq %rbx
jmp 0x362a0
retq