LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x58, %rsp
movb %dl, %al
movb %sil, %cl
leaq 0x80(%rsp), %rdx
movq %rdx, 0x8(%rsp)
leaq 0x60(%rsp), %rdx
movq %rdx, 0x10(%rsp)
movq %rdi, 0x50(%rsp)
movsd %xmm0, 0x48(%rsp)
movsd %xmm1, 0x40(%rsp)
andb $0x1, %cl
movb %cl, 0x3f(%rsp)
andb $0x1, %al
movb %al, 0x3e(%rsp)
movsd %xmm2, 0x30(%rsp)
movsd %xmm3, 0x28(%rsp)
movsd %xmm4, 0x20(%rsp)
callq 0x40e60
movq %rax, %rdi
movq 0x50(%rsp), %rsi
callq 0x3e730
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x43fb7
movq 0x170052(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x11a0d6(%rip), %rsi    # 0x15e066
leaq 0x123e68(%rip), %rdx    # 0x167dff
leaq 0x1247fb(%rip), %rcx    # 0x168799
leaq 0x124407(%rip), %r8     # 0x1683ac
movl $0x247, %r9d            # imm = 0x247
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x43fb9
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xb3b0
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xb320
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdi
movsd 0x48(%rsp), %xmm0
movsd 0x40(%rsp), %xmm1
movsd 0x28(%rsp), %xmm2
movsd 0x20(%rsp), %xmm3
callq 0xb2c0
testb $0x1, 0x3f(%rsp)
je 0x44036
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x10(%rcx), %rdi
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movsd 0x10(%rax), %xmm2
movsd 0x18(%rax), %xmm3
callq 0xb360
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xbc00
testb $0x1, 0x3e(%rsp)
je 0x44085
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdi
movsd 0x30(%rsp), %xmm0
callq 0xb0a0
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x10(%rcx), %rdi
movsd (%rax), %xmm0
movsd 0x8(%rax), %xmm1
movsd 0x10(%rax), %xmm2
movsd 0x18(%rax), %xmm3
callq 0xb360
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xbb80
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xba10
addq $0x58, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x44843
jmp 0x448a8
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
testb $0x1, 0x70(%rax)
jne 0x44866
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xb880
movq 0x8(%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0x44880
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0xb770
movq 0x8(%rsp), %rax
cmpq $0x0, 0x40(%rax)
je 0x4489a
movq 0x8(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x1afc0
movq 0x8(%rsp), %rax
movq 0x78(%rax), %rdi
callq 0xb960
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x68, %rsp
movl %edi, 0x64(%rsp)
movl %esi, 0x60(%rsp)
movl %edx, 0x5c(%rsp)
callq 0x40e60
movq %rax, %rdi
callq 0x3e540
movq %rax, 0x50(%rsp)
callq 0x40e60
movq %rax, %rdi
movq 0x50(%rsp), %rsi
callq 0x3e730
movq %rax, 0x48(%rsp)
movq 0x50(%rsp), %rdi
movl 0x64(%rsp), %esi
movl 0x60(%rsp), %edx
movl 0x5c(%rsp), %ecx
callq 0x410b0
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xb130
movq %rax, %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x78(%rax)
movq 0x48(%rsp), %rax
movq 0x78(%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xbca0
movq 0x48(%rsp), %rax
cmpq $0x0, 0x78(%rax)
jne 0x44e00
movq 0x16f209(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x11928d(%rip), %rsi    # 0x15e066
leaq 0x123b10(%rip), %rdx    # 0x1688f0
leaq 0x123b14(%rip), %rcx    # 0x1688fb
leaq 0x1235be(%rip), %r8     # 0x1683ac
movl $0x321, %r9d            # imm = 0x321
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x44e02
movq %rsp, %rdi
movl $0x40, %esi
leaq 0x123b00(%rip), %rdx    # 0x168911
movl $0x8, %ecx
movb $0x0, %al
callq 0xb9d0
movq %rsp, %rdi
callq 0xbad0
movq %rax, %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x80(%rax)
movq 0x48(%rsp), %rax
movq 0x78(%rax), %rdi
movq 0x48(%rsp), %rax
movq 0x80(%rax), %rsi
callq 0xbc10
movq 0x48(%rsp), %rax
movq 0x80(%rax), %rdi
callq 0xb4a0
movq 0x50(%rsp), %rax
addq $0x68, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movl %esi, 0x5c(%rsp)
movl %edx, 0x58(%rsp)
callq 0x40e60
movq %rax, %rdi
callq 0x3e540
movq %rax, 0x50(%rsp)
callq 0x40e60
movq %rax, %rdi
movq 0x50(%rsp), %rsi
callq 0x3e730
movq %rax, 0x48(%rsp)
movl 0x5c(%rsp), %eax
cvtsi2sd %rax, %xmm0
movq 0x48(%rsp), %rax
movsd %xmm0, 0x68(%rax)
movl 0x58(%rsp), %eax
cvtsi2sd %rax, %xmm0
movq 0x48(%rsp), %rax
movsd %xmm0, 0x60(%rax)
movq 0x48(%rsp), %rax
movsd 0x123443(%rip), %xmm0   # 0x168320
movsd %xmm0, 0x58(%rax)
movq 0x48(%rsp), %rax
movsd 0x123431(%rip), %xmm0   # 0x168320
movsd %xmm0, 0x50(%rax)
movq 0x48(%rsp), %rax
movb $0x1, 0x70(%rax)
movq 0x60(%rsp), %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0xb130
movq %rax, %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x78(%rax)
movq 0x48(%rsp), %rax
movq 0x78(%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xbca0
movq 0x48(%rsp), %rax
cmpq $0x0, 0x78(%rax)
jne 0x44f7c
movq 0x16f08d(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x119111(%rip), %rsi    # 0x15e066
leaq 0x123994(%rip), %rdx    # 0x1688f0
leaq 0x1239b6(%rip), %rcx    # 0x168919
leaq 0x123442(%rip), %r8     # 0x1683ac
movl $0x339, %r9d            # imm = 0x339
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x44f7e
movq %rsp, %rdi
movl $0x40, %esi
leaq 0x123984(%rip), %rdx    # 0x168911
movl $0x8, %ecx
movb $0x0, %al
callq 0xb9d0
movq %rsp, %rdi
callq 0xbad0
movq %rax, %rcx
movq 0x48(%rsp), %rax
movq %rcx, 0x80(%rax)
movq 0x48(%rsp), %rax
movq 0x78(%rax), %rdi
movq 0x48(%rsp), %rax
movq 0x80(%rax), %rsi
callq 0xbc10
movq 0x48(%rsp), %rax
movq 0x80(%rax), %rdi
callq 0xb4a0
movq 0x60(%rsp), %rdi
movl $0x1, %esi
callq 0xb4c0
movq 0x60(%rsp), %rdi
movl $0x1, %esi
callq 0xb340
movq 0x50(%rsp), %rax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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 %rax
movl $0x1, %edi
movl $0x18, %esi
leaq 0x123986(%rip), %rdx    # 0x1689a8
movl $0x26, %ecx
callq 0xd5b0
movq %rax, (%rsp)
movl $0x8, %edi
callq 0x75ab0
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, (%rax)
movq (%rsp), %rax
cmpq $0x0, (%rax)
jne 0x45086
movq 0x16ef83(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x119007(%rip), %rsi    # 0x15e066
leaq 0x123964(%rip), %rdx    # 0x1689ca
leaq 0x123969(%rip), %rcx    # 0x1689d6
leaq 0x123934(%rip), %r8     # 0x1689a8
movl $0x28, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x45088
movq (%rsp), %rax
popq %rcx
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x45106
jmp 0x451a9
movq 0x20(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0x45128
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x10(%rax)
jmp 0x451a9
movq $0x0, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
callq 0x451b0
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
jae 0x45186
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x18(%rsp), %rsi
callq 0x75c80
movq (%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0x47800
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x45131
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x770a0
movq 0x20(%rsp), %rdi
leaq 0x123809(%rip), %rsi    # 0x1689a8
movl $0x41, %edx
callq 0xdab0
addq $0x28, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movl %esi, 0x24(%rsp)
movq %rdx, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x456d6
cmpl $0x0, 0x24(%rsp)
jbe 0x456d6
cmpq $0x0, 0x18(%rsp)
je 0x456d6
cmpq $0x0, 0x10(%rsp)
jne 0x4570e
movq 0x16e8fb(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x11897f(%rip), %rsi    # 0x15e066
leaq 0x12344a(%rip), %rdx    # 0x168b38
leaq 0x123468(%rip), %rcx    # 0x168b5d
leaq 0x12346f(%rip), %r8     # 0x168b6b
movl $0xf4, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x45710
movl 0x24(%rsp), %edi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x457b0
cmpl $0x0, %eax
jge 0x45733
movq $0x0, 0x30(%rsp)
jmp 0x457a3
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
xorl %eax, %eax
movl %eax, %edi
callq 0x4c690
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
jne 0x4575c
movq $0x0, 0x30(%rsp)
jmp 0x457a3
movq 0x28(%rsp), %rdi
movl 0x24(%rsp), %esi
movq 0x18(%rsp), %rdx
movq (%rsp), %rcx
movq 0x10(%rsp), %r8
callq 0x45870
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x45790
movq 0x8(%rsp), %rax
movb $0x1, 0x10(%rax)
jmp 0x45799
movq (%rsp), %rdi
callq 0x4c190
movq 0x8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movl %edi, 0x24(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movsd 0x12333e(%rip), %xmm0   # 0x168b10
movsd %xmm0, (%rsp)
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %r9
leaq 0x1189ae(%rip), %rsi    # 0x15e196
leaq 0x122e79(%rip), %rdx    # 0x168668
movq %rsp, %rcx
xorl %eax, %eax
movl %eax, %r8d
callq 0x49af0
cmpl $0x2, %eax
jne 0x45809
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
cmpl $0x0, 0xc(%rsp)
jne 0x45865
movl 0x24(%rsp), %eax
cvtsi2sd %rax, %xmm0
movsd (%rsp), %xmm1
addsd %xmm1, %xmm1
subsd %xmm1, %xmm0
xorps %xmm1, %xmm1
callq 0x8c360
testb $0x1, %al
jne 0x45834
jmp 0x45865
movq 0x10(%rsp), %rdi
movsd (%rsp), %xmm0
movsd 0x122ae2(%rip), %xmm1   # 0x168328
mulsd (%rsp), %xmm1
movl 0x24(%rsp), %edx
leaq 0x1234cf(%rip), %rsi    # 0x168d25
movb $0x2, %al
callq 0xc0d0
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
movl 0xc(%rsp), %eax
addq $0x28, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
pushq %rax
movq %rdi, (%rsp)
cmpq $0x0, (%rsp)
jne 0x45b91
jmp 0x45c21
movq (%rsp), %rax
movq 0x50(%rax), %rdi
callq 0x1c100
movq (%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x45bc0
movq (%rsp), %rax
testb $0x1, 0x10(%rax)
je 0x45bc0
movq (%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x4c190
movq (%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x86cc0
movq (%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x770a0
movq (%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x45bf2
movq (%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x86cc0
movq (%rsp), %rax
movq 0x50(%rax), %rdi
callq 0x1c1a0
movq (%rsp), %rax
movq 0x50(%rax), %rdi
callq 0x1bfe0
movq (%rsp), %rdi
leaq 0x122f54(%rip), %rsi    # 0x168b6b
movl $0x139, %edx            # imm = 0x139
callq 0xdab0
popq %rax
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/layout.c
// Function: layout_all_tracks
static int layout_all_tracks(GtLayout *layout, GtError *err)
{
  int had_err = 0;
  GtLayoutTraverseInfo lti;
  gt_assert(layout && layout->blocks);
  gt_error_check(err);

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

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movl $0x0, 0x14(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x45e5a
movq 0x20(%rsp), %rax
cmpq $0x0, 0x28(%rax)
jne 0x45e92
movq 0x16e177(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1181fb(%rip), %rsi    # 0x15e066
leaq 0x122f02(%rip), %rdx    # 0x168d74
leaq 0x122f14(%rip), %rcx    # 0x168d8d
leaq 0x122ceb(%rip), %r8     # 0x168b6b
movl $0xb6, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x45e94
jmp 0x45e96
cmpq $0x0, 0x18(%rsp)
je 0x45ee6
movq 0x18(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x45eae
jmp 0x45ee6
movq 0x16e123(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1181a7(%rip), %rsi    # 0x15e066
leaq 0x118782(%rip), %rdx    # 0x15e648
leaq 0x122ec0(%rip), %rcx    # 0x168d8d
leaq 0x122c97(%rip), %r8     # 0x168b6b
movl $0xb7, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x45ee8
movq 0x20(%rsp), %rax
testb $0x1, 0x11(%rax)
jne 0x45f34
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, (%rsp)
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rdi
movq 0x18(%rsp), %rcx
leaq 0x9e1(%rip), %rsi       # 0x46900
movq %rsp, %rdx
callq 0x866f0
movl %eax, 0x14(%rsp)
movq 0x20(%rsp), %rax
movb $0x1, 0x11(%rax)
movl 0x14(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/layout.c
// Function: render_tracks
static int render_tracks(GT_UNUSED void *key, void *value, void *data,
                         GtError *err)
{
  GtRenderTraverseInfo *rti = (GtRenderTraverseInfo*) data;
  GtTrack *track = (GtTrack*) value;
  int had_err = 0;
  gt_assert(rti && track);
  had_err = gt_track_sketch(track, rti->canvas, err);
  return had_err;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x45f84
cmpq $0x0, 0x8(%rsp)
jne 0x45fbc
movq 0x16e04d(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1180d1(%rip), %rsi    # 0x15e066
leaq 0x122e52(%rip), %rdx    # 0x168dee
leaq 0x122e58(%rip), %rcx    # 0x168dfb
leaq 0x122bc1(%rip), %r8     # 0x168b6b
movl $0xc8, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x45fbe
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movq 0x18(%rsp), %rdx
callq 0x4cfa0
movl %eax, 0x4(%rsp)
movl 0x4(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/layout.c
// Function: track_cmp_wrapper
static int track_cmp_wrapper(const void *t1, const void *t2, void *data)
{
  const char *s1 = (const char*) t1, *s2 = (const char*) t2;
  GtLayoutTraverseInfo *lti = (GtLayoutTraverseInfo*) data;
  gt_assert(t1 && t2 && lti && lti->layout);
  return lti->layout->track_ordering_func(s1, s2, lti->layout->t_cmp_data);
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x46045
cmpq $0x0, 0x28(%rsp)
je 0x46045
cmpq $0x0, 0x8(%rsp)
je 0x46045
movq 0x8(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x4607d
movq 0x16df8c(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x118010(%rip), %rsi    # 0x15e066
leaq 0x122dac(%rip), %rdx    # 0x168e09
leaq 0x122dc4(%rip), %rcx    # 0x168e28
leaq 0x122b00(%rip), %r8     # 0x168b6b
movl $0x140, %r9d            # imm = 0x140
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x4607f
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x58(%rax), %rax
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x8(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq 0x68(%rcx), %rdx
callq *%rax
addq $0x38, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/layout.c
// Function: render_custom_tracks
static int render_custom_tracks(GT_UNUSED void *key, void *value, void *data,
                                GtError *err)
{
  GtRenderTraverseInfo *rti = (GtRenderTraverseInfo*) data;
  GtCustomTrack *ctrack = (GtCustomTrack*) value;
  int had_err = 0;
  gt_assert(rti && ctrack);
  had_err = gt_custom_track_sketch(ctrack, rti->canvas, err);
  return had_err;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x460f4
cmpq $0x0, 0x8(%rsp)
jne 0x4612c
movq 0x16dedd(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x117f61(%rip), %rsi    # 0x15e066
leaq 0x122d2e(%rip), %rdx    # 0x168e3a
leaq 0x122d35(%rip), %rcx    # 0x168e48
leaq 0x122a51(%rip), %r8     # 0x168b6b
movl $0xd3, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x4612e
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movq 0x18(%rsp), %rdx
callq 0xb6700
movl %eax, 0x4(%rsp)
movl 0x4(%rsp), %eax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/layout.c
// Function: add_tracklines
static int add_tracklines(GT_UNUSED void *key, void *value,
                          void *data, GtError *err)
{
  GtTracklineInfo *add = (GtTracklineInfo*) data;
  double height;
  if (gt_track_get_height((GtTrack*) value, &height, add->style, err) < 0) {
    return 1;
  }
  add->height += height;
  return 0;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rdx
movq 0x10(%rsp), %rcx
movq %rsp, %rsi
callq 0x4d0d0
cmpl $0x0, %eax
jge 0x4688c
movl $0x1, 0x34(%rsp)
jmp 0x468f1
movsd (%rsp), %xmm1
movq 0x8(%rsp), %rax
movq (%rax), %xmm0
movaps 0x117bdf(%rip), %xmm2   # 0x15e480
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movapd 0x117be3(%rip), %xmm2   # 0x15e490
subpd %xmm2, %xmm0
movaps %xmm0, %xmm2
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rcx
movq %rcx, %rsi
sarq $0x3f, %rsi
movsd 0x121051(%rip), %xmm1   # 0x167928
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rdx
andq %rsi, %rdx
orq %rdx, %rcx
movq %rcx, (%rax)
movl $0x0, 0x34(%rsp)
movl 0x34(%rsp), %eax
addq $0x38, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/layout.c
// Function: blocklist_block_compare
static int blocklist_block_compare(const void *item1, const void *item2,
                                   void *data)
{
  gt_assert(item1 && item2);
  GtLayout *l = (GtLayout*) data;
  return l->block_ordering_func(*(GtBlock**) item1, *(GtBlock**) item2,
                                l->b_cmp_data);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x46d13
cmpq $0x0, 0x18(%rsp)
jne 0x46d4b
movq 0x16d2be(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x117342(%rip), %rsi    # 0x15e066
leaq 0x12209c(%rip), %rdx    # 0x168dc7
leaq 0x1220a4(%rip), %rcx    # 0x168dd6
leaq 0x121e32(%rip), %r8     # 0x168b6b
movl $0x50, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x46d4d
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x60(%rax), %rax
movq 0x20(%rsp), %rcx
movq (%rcx), %rdi
movq 0x18(%rsp), %rcx
movq (%rcx), %rsi
movq 0x8(%rsp), %rcx
movq 0x70(%rcx), %rdx
callq *%rax
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/line_breaker_captions.c
// Function: gt_line_breaker_captions_is_line_occupied
int gt_line_breaker_captions_is_line_occupied(GtLineBreaker* lb, bool *result,
                                              GtLine *line, GtBlock *block,
                                              GtError *err)
{
  GtDrawingRange dr;
  GtLineBreakerCaptions *lbcap;
  int had_err = 0;
  double *num;
  gt_assert(lb && block && line);
  lbcap = gt_line_breaker_captions_cast(lb);
  had_err = calculate_drawing_range(lbcap, &dr, block, err);
  if (!had_err) {
    if (!(num = gt_hashmap_get(lbcap->linepositions, line)))
      *result = false;
    else
      *result = (dr.start <= *num);
  }
  return had_err;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movl $0x0, 0xc(%rsp)
cmpq $0x0, 0x50(%rsp)
je 0x4703d
cmpq $0x0, 0x38(%rsp)
je 0x4703d
cmpq $0x0, 0x40(%rsp)
jne 0x47075
movq 0x16cf94(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x117018(%rip), %rsi    # 0x15e066
leaq 0x121e5a(%rip), %rdx    # 0x168eaf
leaq 0x121e67(%rip), %rcx    # 0x168ec3
leaq 0x121e1f(%rip), %r8     # 0x168e82
movl $0x4b, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x47077
callq 0x47110
movq %rax, %rdi
movq 0x50(%rsp), %rsi
callq 0xb88e0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movq 0x38(%rsp), %rdx
movq 0x30(%rsp), %rcx
leaq 0x18(%rsp), %rsi
callq 0x46d80
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
jne 0x470fa
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rdi
movq 0x40(%rsp), %rsi
callq 0x86470
movq %rax, (%rsp)
cmpq $0x0, %rax
jne 0x470d9
movq 0x48(%rsp), %rax
movb $0x0, (%rax)
jmp 0x470f8
movsd 0x18(%rsp), %xmm1
movq (%rsp), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
setae %cl
movq 0x48(%rsp), %rax
andb $0x1, %cl
movb %cl, (%rax)
jmp 0x470fa
movl 0xc(%rsp), %eax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/line_breaker_captions.c
// Function: gt_line_breaker_captions_class
const GtLineBreakerClass* gt_line_breaker_captions_class(void)
{
  static const GtLineBreakerClass *lbc = NULL;
  gt_class_alloc_lock_enter();
  if (!lbc)
  {
    lbc = gt_line_breaker_class_new(sizeof (GtLineBreakerCaptions),
                                   gt_line_breaker_captions_is_line_occupied,
                                   gt_line_breaker_captions_register_block,
                                   gt_line_breaker_captions_delete);
  }
  gt_class_alloc_lock_leave();
  return lbc;
}

// Assembly:
pushq %rax
callq 0x7b730
cmpq $0x0, 0x16f362(%rip)    # 0x1b6480
jne 0x47146
movl $0x30, %edi
leaq -0x12c(%rip), %rsi      # 0x47000
leaq 0x2d(%rip), %rdx        # 0x47160
leaq 0x146(%rip), %rcx       # 0x47280
callq 0xb8530
movq %rax, 0x16f33a(%rip)    # 0x1b6480
callq 0x7b790
movq 0x16f32e(%rip), %rax    # 0x1b6480
popq %rcx
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/line_breaker_captions.c
// Function: gt_line_breaker_captions_register_block
int gt_line_breaker_captions_register_block(GtLineBreaker *lb,
                                            GtLine *line,
                                            GtBlock *block,
                                            GtError *err)
{
  GtDrawingRange dr;
  GtLineBreakerCaptions *lbcap;
  int had_err = 0;
  double *num;
  gt_assert(lb && block && line);
  lbcap = gt_line_breaker_captions_cast(lb);
  if (!(num = gt_hashmap_get(lbcap->linepositions, line)))
  {
    num = gt_calloc(1, sizeof (double));
    gt_hashmap_add(lbcap->linepositions, line, num);
  }
  had_err = calculate_drawing_range(lbcap, &dr, block, err);
  if (!had_err)
    *num = floor(dr.end);
  return had_err;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movl $0x0, 0x14(%rsp)
cmpq $0x0, 0x50(%rsp)
je 0x47198
cmpq $0x0, 0x40(%rsp)
je 0x47198
cmpq $0x0, 0x48(%rsp)
jne 0x471d0
movq 0x16ce39(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x116ebd(%rip), %rsi    # 0x15e066
leaq 0x121cff(%rip), %rdx    # 0x168eaf
leaq 0x121d36(%rip), %rcx    # 0x168eed
leaq 0x121cc4(%rip), %r8     # 0x168e82
movl $0x60, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x471d2
callq 0x47110
movq %rax, %rdi
movq 0x50(%rsp), %rsi
callq 0xb88e0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rdi
movq 0x48(%rsp), %rsi
callq 0x86470
movq %rax, 0x8(%rsp)
cmpq $0x0, %rax
jne 0x4723f
movl $0x1, %edi
movl $0x8, %esi
leaq 0x121c6a(%rip), %rdx    # 0x168e82
movl $0x64, %ecx
callq 0xd5b0
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rdi
movq 0x48(%rsp), %rsi
movq 0x8(%rsp), %rdx
callq 0x86510
movq 0x18(%rsp), %rdi
movq 0x40(%rsp), %rdx
movq 0x38(%rsp), %rcx
leaq 0x20(%rsp), %rsi
callq 0x46d80
movl %eax, 0x14(%rsp)
cmpl $0x0, 0x14(%rsp)
jne 0x47277
movsd 0x28(%rsp), %xmm0
callq 0xba80
movq 0x8(%rsp), %rax
movsd %xmm0, (%rax)
movl 0x14(%rsp), %eax
addq $0x58, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/line_breaker_captions.c
// Function: gt_line_breaker_captions_new
GtLineBreaker* gt_line_breaker_captions_new(GtLayout *layout,
                                            GtUword width,
                                            GtStyle *style)
{
  GtLineBreakerCaptions *lbcap;
  GtLineBreaker *lb;
  gt_assert(layout);
  lb = gt_line_breaker_create(gt_line_breaker_captions_class());
  lbcap = gt_line_breaker_captions_cast(lb);
  lbcap->layout = layout;
  lbcap->width = width;
  if (!gt_style_get_num(style, "format", "margins", &lbcap->margins,
                        NULL, NULL)) {
    lbcap->margins = MARGINS_DEFAULT;
  }
  lbcap->linepositions = gt_hashmap_new(GT_HASH_DIRECT, NULL, gt_free_func);
  return lb;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x47313
movq 0x16ccf6(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x116d7a(%rip), %rsi    # 0x15e066
leaq 0x1203c8(%rip), %rdx    # 0x1676bb
leaq 0x121c1b(%rip), %rcx    # 0x168f15
leaq 0x121b81(%rip), %r8     # 0x168e82
movl $0x8a, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x47315
callq 0x47110
movq %rax, %rdi
callq 0xb85a0
movq %rax, (%rsp)
callq 0x47110
movq %rax, %rdi
movq (%rsp), %rsi
callq 0xb88e0
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rcx
addq $0x20, %rcx
leaq 0x116e29(%rip), %rsi    # 0x15e196
leaq 0x1212f4(%rip), %rdx    # 0x168668
xorl %eax, %eax
movl %eax, %r9d
movq %r9, %r8
callq 0x49af0
cmpl $0x0, %eax
jne 0x47398
movq 0x8(%rsp), %rax
movsd 0x12177d(%rip), %xmm0   # 0x168b10
movsd %xmm0, 0x20(%rax)
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %esi
leaq -0x39785(%rip), %rdx    # 0xdc20
callq 0x86190
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x28(%rax)
movq (%rsp), %rax
addq $0x28, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/rec_map.c
// Function: gt_rec_map_new
GtRecMap* gt_rec_map_new(double nw_x, double nw_y, double se_x, double se_y,
                         GtFeatureNode *node)
{
  GtRecMap *rm = gt_calloc(1, sizeof (GtRecMap));
  rm->nw_x = nw_x;
  rm->nw_y = nw_y;
  rm->se_x = se_x;
  rm->se_y = se_y;
  rm->fn = (GtFeatureNode*) gt_genome_node_ref((GtGenomeNode*) node);
  rm->has_omitted_children = false;
  return rm;
}

// Assembly:
subq $0x38, %rsp
movsd %xmm0, 0x30(%rsp)
movsd %xmm1, 0x28(%rsp)
movsd %xmm2, 0x20(%rsp)
movsd %xmm3, 0x18(%rsp)
movq %rdi, 0x10(%rsp)
movl $0x1, %edi
movl $0x38, %esi
leaq 0x121b40(%rip), %rdx    # 0x168f32
movl $0x23, %ecx
callq 0xd5b0
movq %rax, 0x8(%rsp)
movsd 0x30(%rsp), %xmm0
movq 0x8(%rsp), %rax
movsd %xmm0, (%rax)
movsd 0x28(%rsp), %xmm0
movq 0x8(%rsp), %rax
movsd %xmm0, 0x8(%rax)
movsd 0x20(%rsp), %xmm0
movq 0x8(%rsp), %rax
movsd %xmm0, 0x10(%rax)
movsd 0x18(%rsp), %xmm0
movq 0x8(%rsp), %rax
movsd %xmm0, 0x18(%rax)
movq 0x10(%rsp), %rdi
callq 0x25140
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x8(%rsp), %rax
movb $0x0, 0x28(%rax)
movq 0x8(%rsp), %rax
addq $0x38, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/rec_map.c
// Function: gt_rec_map_delete
void gt_rec_map_delete(GtRecMap *rm)
{
  if (!rm) return;
  if (rm->reference_count) {
    rm->reference_count--;
    return;
  }
  gt_genome_node_delete((GtGenomeNode*) rm->fn);
  gt_free(rm);
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
cmpq $0x0, (%rsp)
jne 0x4780e
jmp 0x4784d
movq (%rsp), %rax
cmpq $0x0, 0x30(%rax)
je 0x4782b
movq (%rsp), %rax
movq 0x30(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x30(%rax)
jmp 0x4784d
movq (%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x26eb0
movq (%rsp), %rdi
leaq 0x1216ef(%rip), %rsi    # 0x168f32
movl $0x6e, %edx
callq 0xdab0
popq %rax
retq
nop
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/style.c
// Function: gt_style_new
GtStyle* gt_style_new(GtError *err)
{
  GtStyle *sty;
  GtStr *default_formats;
  int had_err = 0;
  gt_error_check(err);

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

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

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movl $0x0, 0x14(%rsp)
cmpq $0x0, 0x28(%rsp)
je 0x478b1
movq 0x28(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x47879
jmp 0x478b1
movq 0x16c758(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1167dc(%rip), %rsi    # 0x15e066
leaq 0x116db7(%rip), %rdx    # 0x15e648
leaq 0x121808(%rip), %rcx    # 0x1690a0
leaq 0x12180e(%rip), %r8     # 0x1690ad
movl $0x81, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x478b3
movl $0x1, %edi
movl $0x30, %esi
leaq 0x1217e9(%rip), %rdx    # 0x1690ad
movl $0x83, %ecx
callq 0xd5b0
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq $0x0, 0x28(%rax)
callq 0x56d80
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq 0x20(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x47932
movq 0x28(%rsp), %rdi
leaq 0x11e306(%rip), %rsi    # 0x165c0d
movb $0x0, %al
callq 0xc0d0
movq 0x20(%rsp), %rdi
leaq 0x121793(%rip), %rsi    # 0x1690ad
movl $0x88, %edx
callq 0xdab0
movq $0x0, 0x30(%rsp)
jmp 0x47a1b
movq 0x20(%rsp), %rax
movq (%rax), %rdi
leaq 0x16a3cf(%rip), %rsi    # 0x1b1d10
callq 0x47a30
callq 0x1bec0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x20(%rsp), %rax
movb $0x0, 0x20(%rax)
callq 0x1bec0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x16cd90(%rip), %rdi    # 0x1b4708
callq 0x18f70
movq %rax, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x47aa0
movl %eax, 0x14(%rsp)
cmpl $0x0, 0x14(%rsp)
jne 0x479b1
movq 0x28(%rsp), %rdi
callq 0xc270
testb $0x1, %al
jne 0x479b1
jmp 0x479e9
movq 0x16c620(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1166a4(%rip), %rsi    # 0x15e066
leaq 0x121701(%rip), %rdx    # 0x1690ca
leaq 0x1216d0(%rip), %rcx    # 0x1690a0
leaq 0x1216d6(%rip), %r8     # 0x1690ad
movl $0x93, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x479eb
movq 0x18(%rsp), %rdi
callq 0x1afc0
cmpl $0x0, 0x14(%rsp)
jne 0x47a08
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x47a11
xorl %eax, %eax
movq %rax, 0x8(%rsp)
jmp 0x47a11
movq 0x8(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/style.c
// Function: luaL_opencustomlibs
static void luaL_opencustomlibs(lua_State *L, const luaL_Reg *lib)
{
  for (; lib->func; lib++) {
    lua_pushcfunction(L, lib->func);
    lua_pushstring(L, lib->name);
    lua_call(L, 1, 0);
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x47a92
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rsi
xorl %edx, %edx
callq 0x51120
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rsi
callq 0x50970
movq 0x10(%rsp), %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x52690
movq 0x8(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x8(%rsp)
jmp 0x47a3e
addq $0x18, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/style.c
// Function: gt_style_new_with_state
GtStyle* gt_style_new_with_state(lua_State *L)
{
  GtStyle *sty;
  gt_assert(L && !lua_gettop(L)); /* make sure the Lua stack is empty */
  sty = gt_calloc(1, sizeof (GtStyle));
  sty->L = L;
  sty->unsafe = true;
  sty->lock = gt_rwlock_new();
  return sty;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x47cb0
movq 0x10(%rsp), %rdi
callq 0x4f0e0
cmpl $0x0, %eax
je 0x47ce8
movq 0x16c321(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1163a5(%rip), %rsi    # 0x15e066
leaq 0x121424(%rip), %rdx    # 0x1690ec
leaq 0x121431(%rip), %rcx    # 0x169100
leaq 0x1213d7(%rip), %r8     # 0x1690ad
movl $0x9b, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x47cea
movl $0x1, %edi
movl $0x30, %esi
leaq 0x1213b2(%rip), %rdx    # 0x1690ad
movl $0x9c, %ecx
callq 0xd5b0
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x8(%rsp), %rax
movb $0x1, 0x20(%rax)
callq 0x1bec0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x8(%rsp), %rax
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/style.c
// Function: gt_style_ref
GtStyle* gt_style_ref(GtStyle *style)
{
  gt_assert(style);
  gt_rwlock_wrlock(style->lock);
  style->reference_count++;
  gt_rwlock_unlock(style->lock);
  return style;
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
cmpq $0x0, (%rsp)
jne 0x47d84
movq 0x16c285(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x116309(%rip), %rsi    # 0x15e066
leaq 0x134d9b(%rip), %rdx    # 0x17caff
leaq 0x1213ad(%rip), %rcx    # 0x169118
leaq 0x12133b(%rip), %r8     # 0x1690ad
movl $0xa5, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x47d86
movq (%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c100
movq (%rsp), %rax
movq 0x8(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x8(%rax)
movq (%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c1a0
movq (%rsp), %rax
popq %rcx
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/style.c
// Function: gt_style_unsafe_mode
void gt_style_unsafe_mode(GtStyle *style)
{
  gt_assert(style);
  gt_rwlock_wrlock(style->lock);
  luaL_opencustomlibs(style->L, luainsecurelibs);
  style->unsafe = true;
  gt_rwlock_unlock(style->lock);
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
cmpq $0x0, (%rsp)
jne 0x47e04
movq 0x16c205(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x116289(%rip), %rsi    # 0x15e066
leaq 0x134d1b(%rip), %rdx    # 0x17caff
leaq 0x12133a(%rip), %rcx    # 0x169125
leaq 0x1212bb(%rip), %r8     # 0x1690ad
movl $0xae, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x47e06
movq (%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c100
movq (%rsp), %rax
movq (%rax), %rdi
leaq 0x169f4f(%rip), %rsi    # 0x1b1d70
callq 0x47a30
movq (%rsp), %rax
movb $0x1, 0x20(%rax)
movq (%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c1a0
popq %rax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/style.c
// Function: gt_style_safe_mode
void gt_style_safe_mode(GtStyle *style)
{
#ifndef NDEBUG
  int stack_size;
#endif
  const luaL_Reg *lib = luainsecurelibs;
  gt_assert(style);
  gt_rwlock_wrlock(style->lock);
#ifndef NDEBUG
  stack_size = lua_gettop(style->L);
#endif
  for (; lib->name; lib++) {
    lua_pushnil(style->L);
    lua_setglobal(style->L, lib->name);
  }
  style->unsafe = false;
  gt_assert(lua_gettop(style->L) == stack_size);
  gt_rwlock_unlock(style->lock);
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
leaq 0x169f20(%rip), %rax    # 0x1b1d70
movq %rax, (%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x47e94
movq 0x16c175(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1161f9(%rip), %rsi    # 0x15e066
leaq 0x134c8b(%rip), %rdx    # 0x17caff
leaq 0x1212bf(%rip), %rcx    # 0x16913a
leaq 0x12122b(%rip), %r8     # 0x1690ad
movl $0xbb, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x47e96
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c100
movq 0x10(%rsp), %rax
movq (%rax), %rdi
callq 0x4f0e0
movl %eax, 0xc(%rsp)
movq (%rsp), %rax
cmpq $0x0, (%rax)
je 0x47ef3
movq 0x10(%rsp), %rax
movq (%rax), %rdi
callq 0x506a0
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq (%rsp), %rax
movq (%rax), %rdx
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
callq 0x51fc0
movq (%rsp), %rax
addq $0x10, %rax
movq %rax, (%rsp)
jmp 0x47eb5
movq 0x10(%rsp), %rax
movb $0x0, 0x20(%rax)
movq 0x10(%rsp), %rax
movq (%rax), %rdi
callq 0x4f0e0
cmpl 0xc(%rsp), %eax
je 0x47f47
movq 0x16c0c2(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x116146(%rip), %rsi    # 0x15e066
leaq 0x121226(%rip), %rdx    # 0x16914d
leaq 0x12120c(%rip), %rcx    # 0x16913a
leaq 0x121178(%rip), %r8     # 0x1690ad
movl $0xc5, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x47f49
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c1a0
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/style.c
// Function: gt_style_is_unsafe
bool gt_style_is_unsafe(GtStyle *sty)
{
#ifndef NDEBUG
  int stack_size;
#endif
  const luaL_Reg *lib = luainsecurelibs;
  bool safe = true;
  gt_assert(sty);
  gt_rwlock_wrlock(sty->lock);
#ifndef NDEBUG
  stack_size = lua_gettop(sty->L);
#endif
  for (; safe && lib->name; lib++) {
    lua_getglobal(sty->L, lib->name);
    if (!lua_isnil(sty->L, -1)) {
      safe = false;
    }
    lua_pop(sty->L, 1);
  }
  gt_assert(lua_gettop(sty->L) == stack_size);
  gt_rwlock_unlock(sty->lock);
  return !safe;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
leaq 0x169e00(%rip), %rax    # 0x1b1d70
movq %rax, 0x10(%rsp)
movb $0x1, 0xf(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x47fba
movq 0x16c04f(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1160d3(%rip), %rsi    # 0x15e066
leaq 0x12ccd6(%rip), %rdx    # 0x174c70
leaq 0x1211cf(%rip), %rcx    # 0x169170
leaq 0x121105(%rip), %r8     # 0x1690ad
movl $0xd0, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x47fbc
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c100
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x4f0e0
movl %eax, 0x1c(%rsp)
xorl %eax, %eax
testb $0x1, 0xf(%rsp)
movb %al, 0xe(%rsp)
je 0x47ff8
movq 0x10(%rsp), %rax
cmpq $0x0, (%rax)
setne %al
movb %al, 0xe(%rsp)
movb 0xe(%rsp), %al
testb $0x1, %al
jne 0x48002
jmp 0x4805a
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rdx
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
callq 0x51640
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4f800
cmpl $0x0, %eax
je 0x48038
movb $0x0, 0xf(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4f100
movq 0x10(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x10(%rsp)
jmp 0x47fdb
jmp 0x4805c
movq 0x20(%rsp), %rax
movq (%rax), %rdi
callq 0x4f0e0
cmpl 0x1c(%rsp), %eax
je 0x480a7
movq 0x16bf62(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x115fe6(%rip), %rsi    # 0x15e066
leaq 0x1210fc(%rip), %rdx    # 0x169183
leaq 0x1210e2(%rip), %rcx    # 0x169170
leaq 0x121018(%rip), %r8     # 0x1690ad
movl $0xdc, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x480a9
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x1c1a0
movb 0xf(%rsp), %al
xorb $-0x1, %al
andb $0x1, %al
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/annotationsketch/style.c
// Function: style_find_section_for_getting
static int style_find_section_for_getting(const GtStyle *sty,
                                          const char *section)
{
  int depth = 0;
  gt_assert(sty && section);
  lua_getglobal(sty->L, "style");
  if (lua_isnil(sty->L, -1)) {
    gt_log_log("'style' is not defined");
    lua_pop(sty->L, 1);
    return -1;
  } else depth++;
  lua_getfield(sty->L, -1, section);
  if (lua_isnil(sty->L, -1) || !lua_istable(sty->L, -1)) {
    lua_pop(sty->L, 2);
    return -1;
  } else depth++;
  return depth;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
cmpq $0x0, 0x18(%rsp)
je 0x48a96
cmpq $0x0, 0x10(%rsp)
jne 0x48ace
movq 0x16b53b(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0x1155bf(%rip), %rsi    # 0x15e066
leaq 0x121204(%rip), %rdx    # 0x169cb2
leaq 0x12120c(%rip), %rcx    # 0x169cc1
leaq 0x1205f1(%rip), %r8     # 0x1690ad
movl $0x12b, %r9d            # imm = 0x12B
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x48ad0
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
leaq 0x13401b(%rip), %rdx    # 0x17caff
callq 0x51640
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4f800
cmpl $0x0, %eax
jne 0x48b2a
leaq 0x1211d9(%rip), %rdi    # 0x169ce0
movb $0x0, %al
callq 0xc930
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x4f100
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x48ba9
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq 0x10(%rsp), %rdx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x51640
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4f800
cmpl $0x0, %eax
je 0x48b7a
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x4f800
cmpl $0x5, %eax
je 0x48b96
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x4f100
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
jmp 0x48ba9
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)