LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/annotationsketch/text_width_calculator_cairo.c
// Function: gt_text_width_calculator_cairo_get_text_width
double gt_text_width_calculator_cairo_get_text_width(GtTextWidthCalculator *twc,
                                                     const char *text,
                                                     GT_UNUSED GtError *err)
{
  GtTextWidthCalculatorCairo *twcc;
  PangoRectangle rect;
  gt_assert(twc && text);
  twcc = gt_text_width_calculator_cairo_cast(twc);

  /* redo layout */
  pango_layout_set_text(twcc->layout, text, -1);

  /* get extents */
  pango_layout_get_pixel_extents(twcc->layout, &rect, NULL);

  if (twcc->style)
    cairo_restore(twcc->context);
  gt_assert(gt_double_smaller_double(0, rect.width));
  return rect.width;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x55f2e
movq %rsi, %r14
testq %rsi, %rsi
je 0x55f2e
movq %rdi, %rbx
callq 0x55f38
movq %rax, %rdi
movq %rbx, %rsi
callq 0x55e7b
movq %rax, %rbx
movq 0x28(%rax), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xb1a0
movq 0x28(%rbx), %rdi
leaq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0xb3c0
cmpq $0x0, 0x10(%rbx)
je 0x55f0b
movq 0x18(%rbx), %rdi
callq 0xba50
cvtsi2sdl 0x10(%rsp), %xmm1
xorps %xmm0, %xmm0
callq 0x7a0a0
testb %al, %al
je 0x55f33
xorps %xmm0, %xmm0
cvtsi2sdl 0x10(%rsp), %xmm0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
callq 0x18998
callq 0x189cf
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/annotationsketch/text_width_calculator_cairo.c
// Function: gt_text_width_calculator_cairo_class
const GtTextWidthCalculatorClass* gt_text_width_calculator_cairo_class(void)
{
  static const GtTextWidthCalculatorClass *twcc = NULL;
  gt_class_alloc_lock_enter();
  if (!twcc)
  {
    twcc = gt_text_width_calculator_class_new(
                                  sizeof (GtTextWidthCalculatorCairo),
                                  gt_text_width_calculator_cairo_get_text_width,
                                  gt_text_width_calculator_cairo_delete);
  }
  gt_class_alloc_lock_leave();
  return twcc;
}

// Assembly:
pushq %rax
callq 0x71d9b
cmpq $0x0, 0xfcc62(%rip)     # 0x152ba8
jne 0x55f67
leaq -0x9f(%rip), %rsi       # 0x55eb0
leaq 0x1f(%rip), %rdx        # 0x55f75
movl $0x40, %edi
callq 0x55cac
movq %rax, 0xfcc41(%rip)     # 0x152ba8
callq 0x71db1
movq 0xfcc35(%rip), %rax     # 0x152ba8
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/annotationsketch/text_width_calculator_cairo.c
// Function: gt_text_width_calculator_cairo_delete
void gt_text_width_calculator_cairo_delete(GtTextWidthCalculator *twc)
{
  GtTextWidthCalculatorCairo *twcc;
  if (!twc) return;
  twcc = gt_text_width_calculator_cairo_cast(twc);
  g_object_unref(twcc->layout);
  if (twcc->style)
    gt_style_delete(twcc->style);
  if (twcc->own_context)
  {
    cairo_destroy(twcc->context);
    cairo_surface_destroy(twcc->mysurf);
  }
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x55fc1
movq %rdi, %rbx
callq 0x55f38
movq %rax, %rdi
movq %rbx, %rsi
callq 0x55e7b
movq %rax, %rbx
movq 0x28(%rax), %rdi
callq 0xb9a0
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x55fa8
callq 0x54be4
cmpb $0x1, 0x38(%rbx)
jne 0x55fc1
movq 0x18(%rbx), %rdi
callq 0xb8c0
movq 0x20(%rbx), %rdi
popq %rbx
jmp 0xb7a0
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/annotationsketch/track.c
// Function: gt_track_new
GtTrack* gt_track_new(GtStr *title, GtUword max_num_lines,
                      bool split_lines, GtLineBreaker *lb)
{
  GtTrack *track;
  gt_assert(title && lb);
  track = gt_calloc(1, sizeof (GtTrack));
  gt_assert(track);
  track->title = gt_str_ref(title);
  track->lines = gt_array_new(sizeof (GtLine*));
  track->max_num_lines = max_num_lines;
  track->split = split_lines;
  track->lb = lb;
  track->y_index = GT_UNDEF_UWORD;
  return track;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x561d3
movq %rcx, %rbx
testq %rcx, %rcx
je 0x561d3
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
leaq 0x96bb9(%rip), %rdx     # 0xecd31
movl $0x1, %edi
movl $0x38, %esi
movl $0x2d, %ecx
callq 0x3601f
testq %rax, %rax
je 0x561d8
movq %rax, %r12
movq %r15, %rdi
callq 0x3c561
movq %rax, (%r12)
movl $0x8, %edi
callq 0x6e93c
movq %rax, 0x30(%r12)
movq %r14, 0x8(%r12)
movb %bpl, 0x20(%r12)
movq %rbx, 0x18(%r12)
movq $-0x1, 0x28(%r12)
movq %r12, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x18a06
callq 0x18a3d
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/annotationsketch/track.c
// Function: gt_track_insert_block
int gt_track_insert_block(GtTrack *track, GtBlock *block, GtError *err)
{
  GtLine *line = NULL;
  int had_err = 0;

  gt_assert(track && block);
  had_err = get_next_free_line(track, &line, block, err);
  if (!had_err)
  {
    if (line) {
      block = gt_block_ref(block);
      gt_line_insert_block(line, block);
      had_err = gt_line_breaker_register_block(track->lb, line, block, err);
    }
  }
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x56385
movq %rsi, %r15
testq %rsi, %rsi
je 0x56385
movq %rdx, %rbx
movq %rdi, %r14
movq 0x30(%rdi), %rdi
callq 0x6ecda
testq %rax, %rax
je 0x5628e
xorl %r12d, %r12d
leaq 0xf(%rsp), %r13
movq 0x30(%r14), %rdi
movq %r12, %rsi
callq 0x6e9fa
movq (%rax), %rdx
movq %rdx, 0x10(%rsp)
movq 0x18(%r14), %rdi
movq %r13, %rsi
movq %r15, %rcx
movq %rbx, %r8
callq 0x8f7a3
testl %eax, %eax
jne 0x56292
cmpb $0x0, 0xf(%rsp)
je 0x562da
incq %r12
movq 0x30(%r14), %rdi
callq 0x6ecda
cmpq %rax, %r12
jb 0x5624c
xorl %ebp, %ebp
jmp 0x56294
movl %eax, %ebp
testl %ebp, %ebp
jne 0x56333
cmpq $-0x1, 0x8(%r14)
je 0x562b6
movq 0x30(%r14), %rdi
callq 0x6ecda
cmpq 0x8(%r14), %rax
jne 0x562b6
incq 0x10(%r14)
cmpb $0x0, 0x20(%r14)
je 0x562de
callq 0x8eacc
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq 0x30(%r14), %rdi
movl $0x8, %edx
callq 0x6ec0e
jmp 0x5632b
xorl %ebp, %ebp
jmp 0x56333
movq 0x30(%r14), %rdi
callq 0x6ecda
testq %rax, %rax
je 0x56301
movq 0x30(%r14), %rdi
xorl %esi, %esi
callq 0x6e9fa
movq (%rax), %rax
movq %rax, 0x10(%rsp)
jmp 0x5631c
callq 0x8eacc
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movq 0x30(%r14), %rdi
movl $0x8, %edx
callq 0x6ec0e
movq 0x30(%r14), %rdi
callq 0x6ecda
cmpq $0x1, %rax
jne 0x5638f
cmpq $0x0, 0x10(%rsp)
je 0x5638a
movq 0x10(%rsp), %r12
testl %ebp, %ebp
sete %al
testq %r12, %r12
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x56374
movq %r15, %rdi
callq 0x8ac73
movq %rax, %r15
movq %r12, %rdi
movq %rax, %rsi
callq 0x8eb01
movq 0x18(%r14), %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x8f7f7
movl %eax, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x18b19
callq 0x18b89
callq 0x18b52
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/annotationsketch/track.c
// Function: gt_track_sketch
int gt_track_sketch(GtTrack* track, GtCanvas *canvas, GtError *err)
{
  int i = 0, had_err = 0;
  gt_assert(track && canvas);
  had_err = gt_canvas_visit_track_pre(canvas, track, err);
  if (!had_err) {
    for (i = 0; i < gt_array_size(track->lines); i++) {
      had_err = gt_line_sketch(*(GtLine**) gt_array_get(track->lines, i),
                               canvas,
                               err);
      if (had_err)
        break;
    }
  }
  if (!had_err)
    had_err = gt_canvas_visit_track_post(canvas, track, err);
  return had_err;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x56445
movq %rsi, %r15
testq %rsi, %rsi
je 0x56445
movq %rdx, %rbx
movq %rdi, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0x4cb89
testl %eax, %eax
jne 0x5641c
movq 0x30(%r14), %rdi
callq 0x6ecda
testq %rax, %rax
je 0x5641a
xorl %r12d, %r12d
movq 0x30(%r14), %rdi
movq %r12, %rsi
callq 0x6e9fa
movq (%rax), %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x8eb69
testl %eax, %eax
jne 0x5641c
incq %r12
movq 0x30(%r14), %rdi
callq 0x6ecda
cmpq %r12, %rax
ja 0x563eb
xorl %eax, %eax
testl %eax, %eax
je 0x5642c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4cbb2
callq 0x18bf9
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/annotationsketch/track.c
// Function: gt_track_delete
void gt_track_delete(GtTrack *track)
{
  GtUword i;
  if (!track) return;
  if (track->lb)
    gt_line_breaker_delete(track->lb);
  for (i = 0; i < gt_array_size(track->lines); i++)
    gt_line_delete(*(GtLine**) gt_array_get(track->lines, i));
  gt_array_delete(track->lines);
  gt_str_delete(track->title);
  gt_free(track);
}

// Assembly:
testq %rdi, %rdi
je 0x57639
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x575d7
callq 0x8f737
movq 0x30(%rbx), %rdi
callq 0x6ecda
testq %rax, %rax
je 0x5760d
xorl %r14d, %r14d
movq 0x30(%rbx), %rdi
movq %r14, %rsi
callq 0x6e9fa
movq (%rax), %rdi
callq 0x8f624
incq %r14
movq 0x30(%rbx), %rdi
callq 0x6ecda
cmpq %rax, %r14
jb 0x575e8
movq 0x30(%rbx), %rdi
callq 0x6f134
movq (%rbx), %rdi
callq 0x3d1eb
leaq 0x9570c(%rip), %rsi     # 0xecd31
movq %rbx, %rdi
movl $0x19e, %edx            # imm = 0x19E
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x362a0
retq
nop
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_checkstack
LUA_API int lua_checkstack (lua_State *L, int size) {
  int res = 1;
  lua_lock(L);
  if (size > LUAI_MAXCSTACK || (L->top - L->base + size) > LUAI_MAXCSTACK)
    res = 0;  /* stack overflow */
  else if (size > 0) {
    luaD_checkstack(L, size);
    if (L->ci->top < L->top + size)
      L->ci->top = L->top + size;
  }
  lua_unlock(L);
  return res;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
xorl %ebx, %ebx
cmpl $0x1f40, %esi           # imm = 0x1F40
jg 0x576a4
movq %rdi, %r14
movq 0x10(%rdi), %rax
movq %rax, %rcx
subq 0x18(%rdi), %rcx
sarq $0x4, %rcx
movslq %esi, %r15
addq %r15, %rcx
cmpq $0x1f40, %rcx           # imm = 0x1F40
jg 0x576a4
movl $0x1, %ebx
testl %esi, %esi
jle 0x576a4
movq 0x38(%r14), %rcx
subq %rax, %rcx
movl %esi, %eax
shll $0x4, %eax
cmpq %rax, %rcx
jg 0x5768e
movq %r14, %rdi
callq 0x576ac
movq 0x28(%r14), %rax
shlq $0x4, %r15
addq 0x10(%r14), %r15
cmpq %r15, 0x10(%rax)
jae 0x576a4
movq %r15, 0x10(%rax)
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_xmove
LUA_API void lua_xmove (lua_State *from, lua_State *to, int n) {
  int i;
  if (from == to) return;
  lua_lock(to);
  api_checknelems(from, n);
  api_check(from, G(from) == G(to));
  api_check(from, to->ci->top - to->top >= n);
  from->top -= n;
  for (i = 0; i < n; i++) {
    setobj2s(to, to->top++, from->top + i);
  }
  lua_unlock(to);
}

// Assembly:
cmpq %rsi, %rdi
je 0x57708
movslq %edx, %rax
movq %rax, %rcx
shlq $0x4, %rcx
subq %rcx, 0x10(%rdi)
testl %eax, %eax
jle 0x57708
movl %edx, %eax
shlq $0x4, %rax
xorl %ecx, %ecx
movq 0x10(%rdi), %rdx
movq 0x10(%rsi), %r8
leaq 0x10(%r8), %r9
movq %r9, 0x10(%rsi)
movq (%rdx,%rcx), %r9
movq %r9, (%r8)
movl 0x8(%rdx,%rcx), %edx
movl %edx, 0x8(%r8)
addq $0x10, %rcx
cmpq %rcx, %rax
jne 0x576e0
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_newthread
LUA_API lua_State *lua_newthread (lua_State *L) {
  lua_State *L1;
  lua_lock(L);
  luaC_checkGC(L);
  L1 = luaE_newthread(L);
  setthvalue(L, L->top, L1);
  api_incr_top(L);
  lua_unlock(L);
  luai_userstatethread(L, L1);
  return L1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %rax
movq 0x78(%rax), %rcx
cmpq 0x70(%rax), %rcx
jb 0x57743
movq %rbx, %rdi
callq 0x57814
xorl %r15d, %r15d
movl $0xb8, %ecx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5d2f2
movq %rax, %r14
movq 0x20(%rbx), %rax
movq 0x28(%rax), %rcx
movq %rcx, (%r14)
movq %r14, 0x28(%rax)
movb 0x20(%rax), %al
andb $0x3, %al
movb %al, 0x9(%r14)
movb $0x8, 0x8(%r14)
movq 0x20(%rbx), %rax
movq %rax, 0x20(%r14)
movq %r15, 0x40(%r14)
movl %r15d, 0x58(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0xa8(%r14)
movw $0x100, 0x64(%r14)      # imm = 0x100
movups %xmm0, 0x68(%r14)
movq %r15, 0x98(%r14)
movb $0x0, 0xa(%r14)
movq %r15, 0x50(%r14)
movl %r15d, 0x80(%r14)
movups %xmm0, 0x28(%r14)
movq %r15, 0x5c(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x66dae
movq 0x78(%rbx), %rax
movq %rax, 0x78(%r14)
movl 0x80(%rbx), %eax
movl %eax, 0x80(%r14)
movb 0x64(%rbx), %al
movb %al, 0x64(%r14)
movl 0x68(%rbx), %eax
movl %eax, 0x68(%r14)
movq 0x70(%rbx), %rcx
movq %rcx, 0x70(%r14)
movl %eax, 0x6c(%r14)
movq 0x10(%rbx), %rax
movq %r14, (%rax)
movl $0x8, 0x8(%rax)
addq $0x10, 0x10(%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lgc.c
// Function: luaC_step
void luaC_step (lua_State *L) {
  global_State *g = G(L);
  l_mem lim = (GCSTEPSIZE/100) * g->gcstepmul;
  if (lim == 0)
    lim = (MAX_LUMEM-1)/2;  /* no limit */
  g->gcdept += g->totalbytes - g->GCthreshold;
  do {
    lim -= singlestep(L);
    if (g->gcstate == GCSpause)
      break;
  } while (lim > 0);
  if (g->gcstate != GCSpause) {
    if (g->gcdept < GCSTEPSIZE)
      g->GCthreshold = g->totalbytes + GCSTEPSIZE;  /* - lim/g->gcstepmul;*/
    else {
      g->gcdept -= GCSTEPSIZE;
      g->GCthreshold = g->totalbytes;
    }
  }
  else {
    setthreshold(g);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %r14
movl 0x94(%r14), %eax
addl %eax, %eax
leal (%rax,%rax,4), %eax
testl %eax, %eax
movabsq $0x7ffffffffffffffe, %r15 # imm = 0x7FFFFFFFFFFFFFFE
cmovneq %rax, %r15
movq 0x78(%r14), %rax
subq 0x70(%r14), %rax
addq %rax, 0x88(%r14)
movq %rbx, %rdi
callq 0x65c8b
movb 0x21(%r14), %cl
testb %cl, %cl
je 0x57863
subq %rax, %r15
testq %r15, %r15
jg 0x5784b
testb %cl, %cl
je 0x57881
movq 0x88(%r14), %rax
cmpq $0x3ff, %rax            # imm = 0x3FF
ja 0x578aa
movl $0x400, %eax            # imm = 0x400
addq 0x78(%r14), %rax
jmp 0x578bb
movq 0x80(%r14), %rax
shrq $0x2, %rax
movabsq $0x28f5c28f5c28f5c3, %rcx # imm = 0x28F5C28F5C28F5C3
mulq %rcx
shrq $0x2, %rdx
movslq 0x90(%r14), %rax
imulq %rdx, %rax
jmp 0x578bb
addq $-0x400, %rax           # imm = 0xFC00
movq %rax, 0x88(%r14)
movq 0x78(%r14), %rax
movq %rax, 0x70(%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_settop
LUA_API void lua_settop (lua_State *L, int idx) {
  lua_lock(L);
  if (idx >= 0) {
    api_check(L, idx <= L->stack_last - L->base);
    while (L->top < L->base + idx)
      setnilvalue(L->top++);
    L->top = L->base + idx;
  }
  else {
    api_check(L, -(idx+1) <= (L->top - L->base));
    L->top += idx+1;  /* `subtract' index (index is negative) */
  }
  lua_unlock(L);
}

// Assembly:
testl %esi, %esi
js 0x578ff
movl %esi, %eax
shlq $0x4, %rax
addq 0x18(%rdi), %rax
movq 0x10(%rdi), %rcx
cmpq %rax, %rcx
jae 0x57911
movl $0x0, 0x8(%rcx)
addq $0x10, %rcx
cmpq %rax, %rcx
jb 0x578e9
movq %rcx, 0x10(%rdi)
jmp 0x57911
movq 0x10(%rdi), %rax
movslq %esi, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
addq $0x10, %rax
movq %rax, 0x10(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_remove
LUA_API void lua_remove (lua_State *L, int idx) {
  StkId p;
  lua_lock(L);
  p = index2adr(L, idx);
  api_checkvalidindex(L, p);
  while (++p < L->top) setobjs2s(L, p-1, p);
  L->top--;
  lua_unlock(L);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x57945
addq $0x10, %rax
movq 0x10(%rbx), %rcx
cmpq %rcx, %rax
jae 0x5793b
movq (%rax), %rcx
movq %rcx, -0x10(%rax)
movl 0x8(%rax), %ecx
movl %ecx, -0x8(%rax)
jmp 0x5791f
addq $-0x10, %rcx
movq %rcx, 0x10(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: index2adr
static TValue *index2adr (lua_State *L, int idx) {
  if (idx > 0) {
    TValue *o = L->base + (idx - 1);
    api_check(L, idx <= L->ci->top - L->base);
    if (o >= L->top) return cast(TValue *, luaO_nilobject);
    else return o;
  }
  else if (idx > LUA_REGISTRYINDEX) {
    api_check(L, idx != 0 && -idx <= L->top - L->base);
    return L->top + idx;
  }
  else switch (idx) {  /* pseudo-indices */
    case LUA_REGISTRYINDEX: return registry(L);
    case LUA_ENVIRONINDEX: {
      Closure *func = curr_func(L);
      sethvalue(L, &L->env, func->c.env);
      return &L->env;
    }
    case LUA_GLOBALSINDEX: return gt(L);
    default: {
      Closure *func = curr_func(L);
      idx = LUA_GLOBALSINDEX - idx;
      return (idx <= func->c.nupvalues)
                ? &func->c.upvalue[idx-1]
                : cast(TValue *, luaO_nilobject);
    }
  }
}

// Assembly:
testl %esi, %esi
jle 0x5796c
movq 0x18(%rdi), %rax
movl %esi, %ecx
shlq $0x4, %rcx
addq %rcx, %rax
addq $-0x10, %rax
cmpq 0x10(%rdi), %rax
jb 0x57a05
leaq 0x95da5(%rip), %rax     # 0xed710
retq
cmpl $0xffffd8f1, %esi       # imm = 0xFFFFD8F1
jl 0x57980
movslq %esi, %rax
shlq $0x4, %rax
addq 0x10(%rdi), %rax
retq
cmpl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
je 0x579ca
cmpl $0xffffd8ef, %esi       # imm = 0xFFFFD8EF
je 0x579a2
cmpl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
jne 0x579d2
movl $0xa0, %eax
addq 0x20(%rdi), %rax
retq
movq 0x28(%rdi), %rax
movq 0x8(%rax), %rax
movq (%rax), %rcx
leaq 0x88(%rdi), %rax
movq 0x18(%rcx), %rcx
movq %rcx, 0x88(%rdi)
movl $0x5, 0x90(%rdi)
retq
addq $0x78, %rdi
movq %rdi, %rax
retq
movq 0x28(%rdi), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movl $0xffffd8ee, %ecx       # imm = 0xFFFFD8EE
subl %esi, %ecx
movzbl 0xb(%rax), %edx
cmpl %edx, %ecx
jg 0x57964
movl $0xffffd8ed, %ecx       # imm = 0xFFFFD8ED
subl %esi, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
addq $0x28, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_insert
LUA_API void lua_insert (lua_State *L, int idx) {
  StkId p;
  StkId q;
  lua_lock(L);
  p = index2adr(L, idx);
  api_checkvalidindex(L, p);
  for (q = L->top; q>p; q--) setobjs2s(L, q, q-1);
  setobjs2s(L, p, L->top);
  lua_unlock(L);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x57945
movq 0x10(%rbx), %rcx
cmpq %rax, %rcx
jbe 0x57a31
movq -0x10(%rcx), %rdx
movq %rdx, (%rcx)
movl -0x8(%rcx), %edx
movl %edx, 0x8(%rcx)
leaq -0x10(%rcx), %rdx
movq %rdx, %rcx
cmpq %rax, %rdx
ja 0x57a18
movq 0x10(%rbx), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movl 0x8(%rcx), %ecx
movl %ecx, 0x8(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_replace
LUA_API void lua_replace (lua_State *L, int idx) {
  StkId o;
  lua_lock(L);
  /* explicit test for incompatible code */
  if (idx == LUA_ENVIRONINDEX && L->ci == L->base_ci)
    luaG_runerror(L, "no calling environment");
  api_checknelems(L, 1);
  o = index2adr(L, idx);
  api_checkvalidindex(L, o);
  if (idx == LUA_ENVIRONINDEX) {
    Closure *func = curr_func(L);
    api_check(L, ttistable(L->top - 1));
    func->c.env = hvalue(L->top - 1);
    luaC_barrier(L, func, L->top - 1);
  }
  else {
    setobj(L, o, L->top - 1);
    if (idx < LUA_GLOBALSINDEX)  /* function upvalue? */
      luaC_barrier(L, curr_func(L), L->top - 1);
  }
  L->top--;
  lua_unlock(L);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
cmpl $0xffffd8ef, %esi       # imm = 0xFFFFD8EF
jne 0x57a61
movq 0x28(%rbx), %rax
cmpq 0x50(%rbx), %rax
je 0x57b0b
movq %rbx, %rdi
movl %ebp, %esi
callq 0x57945
cmpl $0xffffd8ef, %ebp       # imm = 0xFFFFD8EF
jne 0x57aa0
movq 0x10(%rbx), %rcx
movq 0x28(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movq -0x10(%rcx), %rcx
movq %rcx, 0x18(%rax)
movq 0x10(%rbx), %rcx
cmpl $0x4, -0x8(%rcx)
jl 0x57aff
movq -0x10(%rcx), %rsi
testb $0x3, 0x9(%rsi)
jne 0x57ad8
jmp 0x57aff
movq 0x10(%rbx), %rcx
movq -0x10(%rcx), %rdx
movq %rdx, (%rax)
movl -0x8(%rcx), %ecx
movl %ecx, 0x8(%rax)
cmpl $0xffffd8ed, %ebp       # imm = 0xFFFFD8ED
jg 0x57aff
movq 0x10(%rbx), %rax
cmpl $0x4, -0x8(%rax)
jl 0x57aff
movq -0x10(%rax), %rsi
testb $0x3, 0x9(%rsi)
je 0x57aff
movq 0x28(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movb 0x9(%rax), %cl
testb $0x4, %cl
je 0x57aff
movq 0x20(%rbx), %rdi
cmpb $0x1, 0x21(%rdi)
jne 0x57af1
callq 0x66a62
jmp 0x57aff
andb $-0x8, %cl
movb 0x20(%rdi), %dl
andb $0x3, %dl
orb %cl, %dl
movb %dl, 0x9(%rax)
addq $-0x10, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x95e86(%rip), %rsi     # 0xed998
movq %rbx, %rdi
xorl %eax, %eax
callq 0x57b1c
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lvm.c
// Function: luaV_tonumber
const TValue *luaV_tonumber (const TValue *obj, TValue *n) {
  lua_Number num;
  if (ttisnumber(obj)) return obj;
  if (ttisstring(obj) && luaO_str2d(svalue(obj), &num)) {
    setnvalue(n, num);
    return n;
  }
  else
    return NULL;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl 0x8(%rdi), %eax
cmpl $0x3, %eax
je 0x57d24
cmpl $0x4, %eax
jne 0x57d20
movq %rsi, %rbx
movq (%rdi), %rdi
addq $0x18, %rdi
leaq 0x8(%rsp), %rsi
callq 0x625dd
testl %eax, %eax
je 0x57d20
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rbx)
movl $0x3, 0x8(%rbx)
jmp 0x57d27
xorl %ebx, %ebx
jmp 0x57d27
movq %rdi, %rbx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_rawequal
LUA_API int lua_rawequal (lua_State *L, int index1, int index2) {
  StkId o1 = index2adr(L, index1);
  StkId o2 = index2adr(L, index2);
  return (o1 == luaO_nilobject || o2 == luaO_nilobject) ? 0
         : luaO_rawequalObj(o1, o2);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rdi, %r14
callq 0x57945
movq %rax, %rbx
movq %r14, %rdi
movl %ebp, %esi
callq 0x57945
leaq 0x9597f(%rip), %rcx     # 0xed710
cmpq %rcx, %rbx
sete %dl
cmpq %rcx, %rax
sete %cl
orb %dl, %cl
je 0x57da8
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
movq %rax, %rsi
popq %rbx
popq %r14
popq %rbp
jmp 0x57db4
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lobject.c
// Function: luaO_rawequalObj
int luaO_rawequalObj (const TValue *t1, const TValue *t2) {
  if (ttype(t1) != ttype(t2)) return 0;
  else switch (ttype(t1)) {
    case LUA_TNIL:
      return 1;
    case LUA_TNUMBER:
      return luai_numeq(nvalue(t1), nvalue(t2));
    case LUA_TBOOLEAN:
      return bvalue(t1) == bvalue(t2);  /* boolean true must be 1 !! */
    case LUA_TLIGHTUSERDATA:
      return pvalue(t1) == pvalue(t2);
    default:
      lua_assert(iscollectable(t1));
      return gcvalue(t1) == gcvalue(t2);
  }
}

// Assembly:
movl 0x8(%rdi), %eax
cmpl 0x8(%rsi), %eax
jne 0x57dd7
cmpl $0x3, %eax
ja 0x57ddb
movl %eax, %eax
leaq 0x95356(%rip), %rcx     # 0xed120
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x1, %al
jmp 0x57dfd
xorl %eax, %eax
jmp 0x57dfd
movq (%rdi), %rax
cmpq (%rsi), %rax
jmp 0x57de7
movl (%rdi), %eax
cmpl (%rsi), %eax
sete %al
jmp 0x57dfd
movsd (%rsi), %xmm0
cmpeqsd (%rdi), %xmm0
movq %xmm0, %rax
andl $0x1, %eax
movzbl %al, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_equal
LUA_API int lua_equal (lua_State *L, int index1, int index2) {
  StkId o1, o2;
  int i;
  lua_lock(L);  /* may call tag method */
  o1 = index2adr(L, index1);
  o2 = index2adr(L, index2);
  i = (o1 == luaO_nilobject || o2 == luaO_nilobject) ? 0 : equalobj(L, o1, o2);
  lua_unlock(L);
  return i;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rdi, %rbx
callq 0x57945
movq %rax, %r14
movq %rbx, %rdi
movl %ebp, %esi
callq 0x57945
leaq 0x958ed(%rip), %rcx     # 0xed710
cmpq %rcx, %r14
sete %dl
cmpq %rcx, %rax
sete %cl
orb %dl, %cl
jne 0x57e4b
movl 0x8(%r14), %ecx
cmpl 0x8(%rax), %ecx
jne 0x57e4b
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
popq %rbx
popq %r14
popq %rbp
jmp 0x57e52
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lvm.c
// Function: luaV_equalval
int luaV_equalval (lua_State *L, const TValue *t1, const TValue *t2) {
  const TValue *tm;
  lua_assert(ttype(t1) == ttype(t2));
  switch (ttype(t1)) {
    case LUA_TNIL: return 1;
    case LUA_TNUMBER: return luai_numeq(nvalue(t1), nvalue(t2));
    case LUA_TBOOLEAN: return bvalue(t1) == bvalue(t2);  /* true must be 1 !! */
    case LUA_TLIGHTUSERDATA: return pvalue(t1) == pvalue(t2);
    case LUA_TUSERDATA: {
      if (uvalue(t1) == uvalue(t2)) return 1;
      tm = get_compTM(L, uvalue(t1)->metatable, uvalue(t2)->metatable,
                         TM_EQ);
      break;  /* will try TM */
    }
    case LUA_TTABLE: {
      if (hvalue(t1) == hvalue(t2)) return 1;
      tm = get_compTM(L, hvalue(t1)->metatable, hvalue(t2)->metatable, TM_EQ);
      break;  /* will try TM */
    }
    default: return gcvalue(t1) == gcvalue(t2);
  }
  if (tm == NULL) return 0;  /* no TM? */
  callTMres(L, L->top, tm, t1, t2);  /* call TM */
  return !l_isfalse(L->top);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movl 0x8(%rsi), %eax
cmpq $0x7, %rax
ja 0x57ecd
movq %rdi, %r15
movb $0x1, %r12b
leaq 0x952ba(%rip), %rcx     # 0xed130
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%r14), %rax
movq (%rbx), %rcx
cmpq %rcx, %rax
je 0x57ef8
movq 0x10(%rax), %rsi
movq 0x10(%rcx), %rdx
movq %r15, %rdi
callq 0x66e3d
testq %rax, %rax
je 0x57ef5
movq 0x10(%r15), %rsi
movq %r15, %rdi
movq %rax, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x5fb65
movq 0x10(%r15), %rax
movl 0x8(%rax), %ecx
testl %ecx, %ecx
je 0x57ef5
cmpl $0x1, %ecx
jne 0x57ef8
cmpl $0x0, (%rax)
setne %r12b
jmp 0x57ef8
movq (%r14), %rax
cmpq (%rbx), %rax
jmp 0x57eda
movl (%r14), %eax
cmpl (%rbx), %eax
sete %r12b
jmp 0x57ef8
movsd (%rbx), %xmm0
cmpeqsd (%r14), %xmm0
movq %xmm0, %r12
andl $0x1, %r12d
jmp 0x57ef8
xorl %r12d, %r12d
movzbl %r12b, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_lessthan
LUA_API int lua_lessthan (lua_State *L, int index1, int index2) {
  StkId o1, o2;
  int i;
  lua_lock(L);  /* may call tag method */
  o1 = index2adr(L, index1);
  o2 = index2adr(L, index2);
  i = (o1 == luaO_nilobject || o2 == luaO_nilobject) ? 0
       : luaV_lessthan(L, o1, o2);
  lua_unlock(L);
  return i;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rdi, %rbx
callq 0x57945
movq %rax, %r14
movq %rbx, %rdi
movl %ebp, %esi
callq 0x57945
leaq 0x957e6(%rip), %rcx     # 0xed710
cmpq %rcx, %r14
sete %dl
cmpq %rcx, %rax
sete %cl
orb %dl, %cl
je 0x57f41
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
popq %rbx
popq %r14
popq %rbp
jmp 0x57f50
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lvm.c
// Function: luaV_lessthan
int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r) {
  int res;
  if (ttype(l) != ttype(r))
    return luaG_ordererror(L, l, r);
  else if (ttisnumber(l))
    return luai_numlt(nvalue(l), nvalue(r));
  else if (ttisstring(l))
    return l_strcmp(rawtsvalue(l), rawtsvalue(r)) < 0;
  else if ((res = call_orderTM(L, l, r, TM_LT)) != -1)
    return res;
  return luaG_ordererror(L, l, r);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0x8(%rsi), %eax
cmpl 0x8(%rdx), %eax
jne 0x57fa8
cmpl $0x4, %eax
je 0x57f80
cmpl $0x3, %eax
jne 0x57f90
movsd (%rbx), %xmm0
xorl %eax, %eax
ucomisd (%r14), %xmm0
seta %al
jmp 0x57fb8
movq (%r14), %rdi
movq (%rbx), %rsi
callq 0x5fc42
shrl $0x1f, %eax
jmp 0x57fb8
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0xd, %ecx
callq 0x5fcc2
cmpl $-0x1, %eax
jne 0x57fb8
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x5fc03
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_tonumber
LUA_API lua_Number lua_tonumber (lua_State *L, int idx) {
  TValue n;
  const TValue *o = index2adr(L, idx);
  if (tonumber(o, &n))
    return nvalue(o);
  else
    return 0;
}

// Assembly:
subq $0x18, %rsp
callq 0x57945
cmpl $0x3, 0x8(%rax)
je 0x57fdf
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x57ce3
testq %rax, %rax
je 0x57fe8
movsd (%rax), %xmm0
addq $0x18, %rsp
retq
xorps %xmm0, %xmm0
jmp 0x57fe3
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_tointeger
LUA_API lua_Integer lua_tointeger (lua_State *L, int idx) {
  TValue n;
  const TValue *o = index2adr(L, idx);
  if (tonumber(o, &n)) {
    lua_Integer res;
    lua_Number num = nvalue(o);
    lua_number2integer(res, num);
    return res;
  }
  else
    return 0;
}

// Assembly:
subq $0x18, %rsp
callq 0x57945
cmpl $0x3, 0x8(%rax)
je 0x5800e
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x57ce3
testq %rax, %rax
je 0x58018
cvttsd2si (%rax), %rax
addq $0x18, %rsp
retq
xorl %eax, %eax
jmp 0x58013
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_tolstring
LUA_API const char *lua_tolstring (lua_State *L, int idx, size_t *len) {
  StkId o = index2adr(L, idx);
  if (!(ttisstring(o))) {
    lua_lock(L);  /* `luaV_tostring' may create a new string */
    if (!luaV_tostring(L, o)) {  /* conversion failed? */
      if (len != NULL) *len = 0;
      lua_unlock(L);
      return NULL;
    }
    luaC_checkGC(L);
    o = index2adr(L, idx);  /* previous call may reallocate the stack */
    lua_unlock(L);
  }
  if (len != NULL) *len = tsvalue(o)->len;
  return svalue(o);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x57945
cmpl $0x4, 0x8(%rax)
je 0x58088
movq %r14, %rdi
movq %rax, %rsi
callq 0x580b3
testl %eax, %eax
je 0x580a3
movq 0x20(%r14), %rax
movq 0x78(%rax), %rcx
cmpq 0x70(%rax), %rcx
jb 0x5807e
movq %r14, %rdi
callq 0x57814
movq %r14, %rdi
movl %ebp, %esi
callq 0x57945
testq %rbx, %rbx
je 0x58097
movq (%rax), %rcx
movq 0x10(%rcx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rax
addq $0x18, %rax
popq %rbx
popq %r14
popq %rbp
retq
testq %rbx, %rbx
je 0x580af
movq $0x0, (%rbx)
xorl %eax, %eax
jmp 0x5809e
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lvm.c
// Function: luaV_tostring
int luaV_tostring (lua_State *L, StkId obj) {
  if (!(ttisnumber(obj)))
    return 0;
  else {
    char s[LUAI_MAXNUMBER2STR];
    lua_Number n = nvalue(obj);
    lua_number2str(s, n);
    setsvalue2s(L, obj, luaS_new(L, s));
    return 1;
  }
}

// Assembly:
xorl %eax, %eax
cmpl $0x3, 0x8(%rsi)
jne 0x58110
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movsd (%rsi), %xmm0
leaq 0x962ee(%rip), %rsi     # 0xee3c3
movq %rsp, %r15
movq %r15, %rdi
movb $0x1, %al
callq 0xb110
movq %r15, %rdi
callq 0xb260
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x583e8
movq %rax, (%rbx)
movl $0x4, 0x8(%rbx)
movl $0x1, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_objlen
LUA_API size_t lua_objlen (lua_State *L, int idx) {
  StkId o = index2adr(L, idx);
  switch (ttype(o)) {
    case LUA_TSTRING: return tsvalue(o)->len;
    case LUA_TUSERDATA: return uvalue(o)->len;
    case LUA_TTABLE: return luaH_getn(hvalue(o));
    case LUA_TNUMBER: {
      size_t l;
      lua_lock(L);  /* `luaV_tostring' may create a new string */
      l = (luaV_tostring(L, o) ? tsvalue(o)->len : 0);
      lua_unlock(L);
      return l;
    }
    default: return 0;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x57945
movq %rax, %rbx
movl 0x8(%rax), %ecx
xorl %eax, %eax
addl $-0x3, %ecx
cmpl $0x4, %ecx
ja 0x5816c
leaq 0x9501c(%rip), %rdx     # 0xed150
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x580b3
testl %eax, %eax
je 0x5816a
movq (%rbx), %rax
movq 0x10(%rax), %rax
jmp 0x5816c
movq (%rbx), %rdi
callq 0x58174
cltq
jmp 0x5816c
movq (%rbx), %rax
movq 0x20(%rax), %rax
jmp 0x5816c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_touserdata
LUA_API void *lua_touserdata (lua_State *L, int idx) {
  StkId o = index2adr(L, idx);
  switch (ttype(o)) {
    case LUA_TUSERDATA: return (rawuvalue(o) + 1);
    case LUA_TLIGHTUSERDATA: return pvalue(o);
    default: return NULL;
  }
}

// Assembly:
pushq %rax
callq 0x57945
movl 0x8(%rax), %ecx
cmpl $0x2, %ecx
je 0x582ce
cmpl $0x7, %ecx
jne 0x582d3
movq (%rax), %rax
addq $0x28, %rax
jmp 0x582d5
movq (%rax), %rax
jmp 0x582d5
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_topointer
LUA_API const void *lua_topointer (lua_State *L, int idx) {
  StkId o = index2adr(L, idx);
  switch (ttype(o)) {
    case LUA_TTABLE: return hvalue(o);
    case LUA_TFUNCTION: return clvalue(o);
    case LUA_TTHREAD: return thvalue(o);
    case LUA_TUSERDATA:
    case LUA_TLIGHTUSERDATA:
      return lua_touserdata(L, idx);
    default: return NULL;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
callq 0x57945
movq %rax, %rcx
movl 0x8(%rax), %edx
xorl %eax, %eax
addl $-0x2, %edx
cmpl $0x6, %edx
ja 0x5831d
leaq 0x94e53(%rip), %rsi     # 0xed164
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
movq (%rcx), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
movl %ebx, %esi
callq 0x57945
movl 0x8(%rax), %ecx
cmpl $0x2, %ecx
je 0x58345
cmpl $0x7, %ecx
jne 0x5834a
movq (%rax), %rax
addq $0x28, %rax
jmp 0x5831d
movq (%rax), %rax
jmp 0x5831d
xorl %eax, %eax
jmp 0x5831d
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_pushlstring
LUA_API void lua_pushlstring (lua_State *L, const char *s, size_t len) {
  lua_lock(L);
  luaC_checkGC(L);
  setsvalue2s(L, L->top, luaS_newlstr(L, s, len));
  api_incr_top(L);
  lua_unlock(L);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x20(%rdi), %rax
movq 0x78(%rax), %rcx
cmpq 0x70(%rax), %rcx
jb 0x583b8
movq %rbx, %rdi
callq 0x57814
movq 0x10(%rbx), %r12
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x583e8
movq %rax, (%r12)
movl $0x4, 0x8(%r12)
addq $0x10, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lstring.c
// Function: luaS_newlstr
TString *luaS_newlstr (lua_State *L, const char *str, size_t l) {
  GCObject *o;
  unsigned int h = cast(unsigned int, l);  /* seed */
  size_t step = (l>>5)+1;  /* if string is too long, don't hash all its chars */
  size_t l1;
  for (l1=l; l1>=step; l1-=step)  /* compute hash */
    h = h ^ ((h<<5)+(h>>2)+cast(unsigned char, str[l1-1]));
  for (o = G(L)->strt.hash[lmod(h, G(L)->strt.size)];
       o != NULL;
       o = o->gch.next) {
    TString *ts = rawgco2ts(o);
    if (ts->tsv.len == l && (memcmp(str, getstr(ts), l) == 0)) {
      /* string may be dead */
      if (isdead(G(L), o)) changewhite(o);
      return ts;
    }
  }
  return newlstr(L, str, l, h);  /* not found */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
testq %rdx, %rdx
je 0x58435
movq %r14, %rax
shrq $0x5, %rax
movq %rax, %rcx
notq %rcx
movq %r14, %rdx
movl %r14d, %ebp
movl %ebp, %esi
shll $0x5, %esi
movl %ebp, %r8d
shrl $0x2, %r8d
addl %esi, %r8d
movzbl -0x1(%r15,%rdx), %esi
addl %r8d, %esi
xorl %esi, %ebp
addq %rcx, %rdx
cmpq %rax, %rdx
ja 0x58411
jmp 0x58438
movl %r14d, %ebp
movq %rdi, (%rsp)
movq 0x20(%rdi), %rax
movslq 0xc(%rax), %rcx
decq %rcx
movslq %ebp, %r13
andq %rcx, %r13
shlq $0x3, %r13
addq (%rax), %r13
movq (%r13), %r13
testq %r13, %r13
je 0x584a4
movb $0x1, %bl
cmpq %r14, 0x10(%r13)
jne 0x5849b
leaq 0x18(%r13), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0xb6b0
testl %eax, %eax
jne 0x5849b
movb 0x9(%r13), %al
movq (%rsp), %rcx
movq 0x20(%rcx), %rcx
movb 0x20(%rcx), %cl
notb %cl
andb %al, %cl
testb $0x3, %cl
je 0x58496
xorb $0x3, %al
movb %al, 0x9(%r13)
xorl %ebx, %ebx
movq %r13, %r12
testb %bl, %bl
jne 0x58454
jmp 0x58544
leaq 0x1b(%r14), %rax
cmpq $0x19, %rax
jbe 0x58556
leaq 0x19(%r14), %rcx
xorl %ebx, %ebx
movq (%rsp), %r13
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x5d2f2
movq %rax, %r12
movq %r14, 0x10(%rax)
movl %ebp, 0xc(%rax)
movq 0x20(%r13), %rax
movb 0x20(%rax), %al
andb $0x3, %al
movb %al, 0x9(%r12)
movb $0x4, 0x8(%r12)
movb %bl, 0xa(%r12)
leaq 0x18(%r12), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0xb520
movb %bl, 0x18(%r12,%r14)
movq 0x20(%r13), %rax
movl 0xc(%rax), %ecx
decl %ecx
andl %ebp, %ecx
movq (%rax), %rdx
movq (%rdx,%rcx,8), %rdx
movq %rdx, (%r12)
movq (%rax), %rdx
movq %r12, (%rdx,%rcx,8)
movl 0x8(%rax), %ecx
movl 0xc(%rax), %esi
incl %ecx
cmpl %esi, %ecx
setbe %dl
movl %ecx, 0x8(%rax)
cmpl $0x3fffffff, %esi       # imm = 0x3FFFFFFF
setge %al
orb %dl, %al
jne 0x58544
addl %esi, %esi
movq %r13, %rdi
callq 0x66c7b
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x95871(%rip), %rsi     # 0xeddce
movq (%rsp), %rdi
xorl %eax, %eax
callq 0x57b1c
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_pushstring
LUA_API void lua_pushstring (lua_State *L, const char *s) {
  if (s == NULL)
    lua_pushnil(L);
  else
    lua_pushlstring(L, s, strlen(s));
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x58594
movq %rsi, %r14
movq %rsi, %rdi
callq 0xb260
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x58391
movq 0x10(%rbx), %rax
movl $0x0, 0x8(%rax)
addq $0x10, %rax
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_pushcclosure
LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n) {
  Closure *cl;
  lua_lock(L);
  luaC_checkGC(L);
  api_checknelems(L, n);
  cl = luaF_newCclosure(L, n, getcurrenv(L));
  cl->c.f = fn;
  L->top -= n;
  while (n--)
    setobj2n(L, &cl->c.upvalue[n], L->top+n);
  setclvalue(L, L->top, cl);
  lua_assert(iswhite(obj2gco(cl)));
  api_incr_top(L);
  lua_unlock(L);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rdi), %rax
movq 0x78(%rax), %rcx
cmpq 0x70(%rax), %rcx
jb 0x58952
movq %rbx, %rdi
callq 0x57814
movq 0x28(%rbx), %rax
cmpq 0x50(%rbx), %rax
je 0x58969
movq 0x8(%rax), %rax
movq (%rax), %rax
addq $0x18, %rax
jmp 0x5896d
leaq 0x78(%rbx), %rax
movq (%rax), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x589c7
movq %r14, 0x20(%rax)
movslq %ebp, %rcx
movq %rcx, %rdx
shlq $0x4, %rdx
subq %rdx, 0x10(%rbx)
testl %ecx, %ecx
je 0x589af
movq 0x10(%rbx), %rsi
movq -0x10(%rsi,%rdx), %rdi
movq %rdi, 0x18(%rax,%rdx)
movl -0x8(%rsi,%rdx), %esi
movl %esi, 0x20(%rax,%rdx)
addq $-0x10, %rdx
decq %rcx
jne 0x58990
movq 0x10(%rbx), %rcx
movq %rax, (%rcx)
movl $0x6, 0x8(%rcx)
addq $0x10, 0x10(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lfunc.c
// Function: luaF_newCclosure
Closure *luaF_newCclosure (lua_State *L, int nelems, Table *e) {
  Closure *c = cast(Closure *, luaM_malloc(L, sizeCclosure(nelems)));
  luaC_link(L, obj2gco(c), LUA_TFUNCTION);
  c->c.isC = 1;
  c->c.env = e;
  c->c.nupvalues = cast_byte(nelems);
  return c;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movl %esi, %eax
shll $0x4, %eax
addl $0x28, %eax
movslq %eax, %rcx
xorl %esi, %esi
xorl %edx, %edx
callq 0x5d2f2
movq 0x20(%r14), %rcx
movq 0x28(%rcx), %rdx
movq %rdx, (%rax)
movq %rax, 0x28(%rcx)
movb 0x20(%rcx), %cl
andb $0x3, %cl
movb %cl, 0x9(%rax)
movb $0x6, 0x8(%rax)
movb $0x1, 0xa(%rax)
movq %rbx, 0x18(%rax)
movb %bpl, 0xb(%rax)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lvm.c
// Function: luaV_gettable
void luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val) {
  int loop;
  for (loop = 0; loop < MAXTAGLOOP; loop++) {
    const TValue *tm;
    if (ttistable(t)) {  /* `t' is a table? */
      Table *h = hvalue(t);
      const TValue *res = luaH_get(h, key); /* do a primitive get */
      if (!ttisnil(res) ||  /* result is no nil? */
          (tm = fasttm(L, h->metatable, TM_INDEX)) == NULL) { /* or no TM? */
        setobj2s(L, val, res);
        return;
      }
      /* else will try the tag method */
    }
    else if (ttisnil(tm = luaT_gettmbyobj(L, t, TM_INDEX)))
      luaG_typeerror(L, t, "index");
    if (ttisfunction(tm)) {
      callTMres(L, val, tm, t, key);
      return;
    }
    t = tm;  /* else repeat with `tm' */
  }
  luaG_runerror(L, "loop in gettable");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq %rsi, %r12
movq %rdi, %r14
movl $0x64, %ebx
cmpl $0x5, 0x8(%r12)
jne 0x58adf
movq (%r12), %r15
movq %r15, %rdi
movq 0x10(%rsp), %rsi
callq 0x58c18
movq %rax, %r13
cmpl $0x0, 0x8(%rax)
je 0x58b09
movq (%r13), %rax
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
movl 0x8(%r13), %eax
movl %eax, 0x8(%rcx)
xorl %eax, %eax
jmp 0x58b38
movq %r14, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5f010
movq %rax, %rbp
cmpl $0x0, 0x8(%rax)
jne 0x58b3c
movq %r14, %rdi
movq %r12, %rsi
leaq 0x96317(%rip), %rdx     # 0xeee19
callq 0x5f08c
jmp 0x58b3c
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x58b2f
testb $0x1, 0xa(%rdi)
jne 0x58b2f
movq 0x20(%r14), %rax
movq 0x128(%rax), %rdx
xorl %esi, %esi
callq 0x66b52
movq %rax, %rbp
jmp 0x58b31
xorl %ebp, %ebp
movb $0x1, %al
testq %rbp, %rbp
je 0x58b71
testb %al, %al
je 0x58b5c
movb $0x1, %al
cmpl $0x6, 0x8(%rbp)
jne 0x58b60
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %rbp, %rdx
movq %r12, %rcx
movq 0x10(%rsp), %r8
callq 0x5fb65
xorl %eax, %eax
jmp 0x58b63
movq %rbp, %r12
testb %al, %al
je 0x58b78
decl %ebx
jne 0x58aa6
jmp 0x58b87
xorl %ebp, %ebp
jmp 0x58ac8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9583b(%rip), %rsi     # 0xee3c9
movq %r14, %rdi
xorl %eax, %eax
callq 0x57b1c
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_getfield
LUA_API void lua_getfield (lua_State *L, int idx, const char *k) {
  StkId t;
  TValue key;
  lua_lock(L);
  t = index2adr(L, idx);
  api_checkvalidindex(L, t);
  setsvalue(L, &key, luaS_new(L, k));
  luaV_gettable(L, t, &key, L->top);
  api_incr_top(L);
  lua_unlock(L);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rdi, %r14
callq 0x57945
movq %rax, %r15
movq %rbx, %rdi
callq 0xb260
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x583e8
movq %rsp, %rdx
movq %rax, (%rdx)
movl $0x4, 0x8(%rdx)
movq 0x10(%r14), %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x58a83
addq $0x10, 0x10(%r14)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/ltable.c
// Function: luaH_get
const TValue *luaH_get (Table *t, const TValue *key) {
  switch (ttype(key)) {
    case LUA_TNIL: return luaO_nilobject;
    case LUA_TSTRING: return luaH_getstr(t, rawtsvalue(key));
    case LUA_TNUMBER: {
      int k;
      lua_Number n = nvalue(key);
      lua_number2int(k, n);
      if (luai_numeq(cast_num(k), nvalue(key))) /* index is int? */
        return luaH_getnum(t, k);  /* use specialized version */
      /* else go through */
    }
    default: {
      Node *n = mainposition(t, key);
      do {  /* check whether `key' is somewhere in the chain */
        if (luaO_rawequalObj(key2tval(n), key))
          return gval(n);  /* that's it */
        else n = gnext(n);
      } while (n);
      return luaO_nilobject;
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl 0x8(%rsi), %eax
leaq 0x94ae3(%rip), %r12     # 0xed710
testl %eax, %eax
je 0x58ce4
movq %rsi, %rbx
movq %rdi, %r15
cmpl $0x3, %eax
je 0x58c7c
cmpl $0x4, %eax
jne 0x58cbd
movb 0xb(%r15), %cl
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
shll %cl, %edx
movq (%rbx), %rax
notl %edx
andl 0xc(%rax), %edx
leaq (%rdx,%rdx,4), %r14
shlq $0x3, %r14
addq 0x20(%r15), %r14
cmpl $0x4, 0x18(%r14)
jne 0x58c71
cmpq %rax, 0x10(%r14)
je 0x58ce7
movq 0x20(%r14), %r14
testq %r14, %r14
jne 0x58c64
jmp 0x58ce4
movsd (%rbx), %xmm1
cvttpd2dq %xmm1, %xmm0
cvtdq2pd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x58cb5
jp 0x58cb5
cvttsd2si %xmm1, %esi
movq %r15, %rdi
movapd %xmm1, 0x10(%rsp)
movapd %xmm0, (%rsp)
callq 0x58d2b
movapd (%rsp), %xmm0
movapd 0x10(%rsp), %xmm1
movq %rax, %r14
ucomisd %xmm0, %xmm1
jne 0x58cbd
jnp 0x58ce7
movq %r15, %rdi
movq %rbx, %rsi
callq 0x5f454
movq %rax, %r14
leaq 0x10(%r14), %rdi
movq %rbx, %rsi
callq 0x57db4
testl %eax, %eax
jne 0x58ce7
movq 0x20(%r14), %r14
testq %r14, %r14
jne 0x58ccb
movq %r12, %r14
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_rawgeti
LUA_API void lua_rawgeti (lua_State *L, int idx, int n) {
  StkId o;
  lua_lock(L);
  o = index2adr(L, idx);
  api_check(L, ttistable(o));
  setobj2s(L, L->top, luaH_getnum(hvalue(o), n));
  api_incr_top(L);
  lua_unlock(L);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rdi, %r14
callq 0x57945
movq (%rax), %rdi
movl %ebx, %esi
callq 0x58d2b
movq 0x10(%r14), %rcx
movq (%rax), %rdx
movq %rdx, (%rcx)
movl 0x8(%rax), %eax
movl %eax, 0x8(%rcx)
addq $0x10, 0x10(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lapi.c
// Function: lua_createtable
LUA_API void lua_createtable (lua_State *L, int narray, int nrec) {
  lua_lock(L);
  luaC_checkGC(L);
  sethvalue(L, L->top, luaH_new(L, narray, nrec));
  api_incr_top(L);
  lua_unlock(L);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movq 0x20(%rdi), %rax
movq 0x78(%rax), %rcx
cmpq 0x70(%rax), %rcx
jb 0x58dc5
movq %rbx, %rdi
callq 0x57814
movq 0x10(%rbx), %r15
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x58df1
movq %rax, (%r15)
movl $0x5, 0x8(%r15)
addq $0x10, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq