LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/ldump.c
// Function: DumpString
static void DumpString(const TString* s, DumpState* D)
{
 if (s==NULL)
 {
  size_t size=0;
  DumpVar(size,D);
 }
 else
 {
  size_t size=s->tsv.len+1;		/* include trailing '\0' */
  DumpVar(size,D);
  DumpBlock(getstr(s),size*sizeof(char),D);
 }
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x122e5
movq $0x0, 0x10(%rsp)
movq 0x18(%rsp), %rdx
leaq 0x10(%rsp), %rdi
movl $0x8, %esi
callq 0x11de0
jmp 0x12327
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdx
leaq 0x8(%rsp), %rdi
movl $0x8, %esi
callq 0x11de0
movq 0x20(%rsp), %rdi
addq $0x18, %rdi
movq 0x8(%rsp), %rsi
shlq $0x0, %rsi
movq 0x18(%rsp), %rdx
callq 0x11de0
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lfunc.c
// Function: luaF_newLclosure
Closure *luaF_newLclosure (lua_State *L, int n) {
  Closure *c = &luaC_newobj(L, LUA_TLCL, sizeLclosure(n), NULL, 0)->cl;
  c->l.p = NULL;
  c->l.nupvalues = cast_byte(n);
  while (n--) c->l.upvals[n] = NULL;
  return c;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %eax
subl $0x1, %eax
cltq
shlq $0x3, %rax
addl $0x28, %eax
movslq %eax, %rdx
movl $0x6, %esi
xorl %eax, %eax
movl %eax, %ecx
xorl %r8d, %r8d
callq 0x12f60
movq %rax, (%rsp)
movq (%rsp), %rax
movq $0x0, 0x18(%rax)
movl 0xc(%rsp), %eax
movb %al, %cl
movq (%rsp), %rax
movb %cl, 0xa(%rax)
movl 0xc(%rsp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, 0xc(%rsp)
cmpl $0x0, %eax
je 0x123f9
movq (%rsp), %rax
movslq 0xc(%rsp), %rcx
movq $0x0, 0x20(%rax,%rcx,8)
jmp 0x123d3
movq (%rsp), %rax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lfunc.c
// Function: luaF_newupval
UpVal *luaF_newupval (lua_State *L) {
  UpVal *uv = &luaC_newobj(L, LUA_TUPVAL, sizeof(UpVal), NULL, 0)->uv;
  uv->v = &uv->u.value;
  setnilvalue(uv->v);
  return uv;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0xa, %esi
movl $0x28, %edx
xorl %eax, %eax
movl %eax, %ecx
xorl %r8d, %r8d
callq 0x12f60
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rcx
addq $0x18, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movl $0x0, 0x8(%rax)
movq 0x8(%rsp), %rax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lfunc.c
// Function: luaF_findupval
UpVal *luaF_findupval (lua_State *L, StkId level) {
  global_State *g = G(L);
  GCObject **pp = &L->openupval;
  UpVal *p;
  UpVal *uv;
  while (*pp != NULL && (p = gco2uv(*pp))->v >= level) {
    GCObject *o = obj2gco(p);
    lua_assert(p->v != &p->u.value);
    lua_assert(!isold(o) || isold(obj2gco(L)));
    if (p->v == level) {  /* found a corresponding upvalue? */
      if (isdead(g, o))  /* is it dead? */
        changewhite(o);  /* resurrect it */
      return p;
    }
    pp = &p->next;
  }
  /* not found: create a new one */
  uv = &luaC_newobj(L, LUA_TUPVAL, sizeof(UpVal), pp, 0)->uv;
  uv->v = level;  /* current value lives in the stack */
  uv->u.l.prev = &g->uvhead;  /* double link it in `uvhead' list */
  uv->u.l.next = g->uvhead.u.l.next;
  uv->u.l.next->u.l.prev = uv;
  g->uvhead.u.l.next = uv;
  lua_assert(uv->u.l.next->u.l.prev == uv && uv->u.l.prev->u.l.next == uv);
  return uv;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rax
addq $0x60, %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rcx
xorl %eax, %eax
cmpq $0x0, (%rcx)
movb %al, 0x7(%rsp)
je 0x124c8
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rax), %rax
cmpq 0x30(%rsp), %rax
setae %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
testb $0x1, %al
jne 0x124d2
jmp 0x12538
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x30(%rsp), %rax
jne 0x12529
movq 0x8(%rsp), %rax
movzbl 0x9(%rax), %eax
xorl $0x3, %eax
movq 0x28(%rsp), %rcx
movzbl 0x54(%rcx), %ecx
xorl $0x3, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0x1251a
movq 0x8(%rsp), %rax
movzbl 0x9(%rax), %ecx
xorl $0x3, %ecx
movb %cl, 0x9(%rax)
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0x125be
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x1249a
movq 0x38(%rsp), %rdi
movq 0x20(%rsp), %rcx
movl $0xa, %esi
movl $0x28, %edx
xorl %r8d, %r8d
callq 0x12f60
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x28(%rsp), %rcx
addq $0xb0, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x28(%rsp), %rax
movq 0xd0(%rax), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x10(%rsp), %rcx
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rax
movq %rcx, 0x18(%rax)
movq 0x10(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0xd0(%rax)
movq 0x10(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lfunc.c
// Function: luaF_close
void luaF_close (lua_State *L, StkId level) {
  UpVal *uv;
  global_State *g = G(L);
  while (L->openupval != NULL && (uv = gco2uv(L->openupval))->v >= level) {
    GCObject *o = obj2gco(uv);
    lua_assert(!isblack(o) && uv->v != &uv->u.value);
    L->openupval = uv->next;  /* remove from `open' list */
    if (isdead(g, o))
      luaF_freeupval(L, uv);  /* free upvalue */
    else {
      unlinkupval(uv);  /* remove upvalue from 'uvhead' list */
      setobj(L, &uv->u.value, uv->v);  /* move value to upvalue slot */
      uv->v = &uv->u.value;  /* now current value lives here */
      gch(o)->next = g->allgc;  /* link upvalue into 'allgc' list */
      g->allgc = o;
      luaC_checkupvalcolor(g, uv);
    }
  }
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x40(%rsp), %rcx
xorl %eax, %eax
cmpq $0x0, 0x60(%rcx)
movb %al, 0xf(%rsp)
je 0x126ac
movq 0x40(%rsp), %rax
movq 0x60(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x10(%rax), %rax
cmpq 0x38(%rsp), %rax
setae %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x126b9
jmp 0x12792
movq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq (%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x60(%rax)
movq 0x20(%rsp), %rax
movzbl 0x9(%rax), %eax
xorl $0x3, %eax
movq 0x28(%rsp), %rcx
movzbl 0x54(%rcx), %ecx
xorl $0x3, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0x12707
movq 0x40(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x125d0
jmp 0x1278d
movq 0x30(%rsp), %rdi
callq 0x12620
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
movq 0x18(%rsp), %rax
movl 0x8(%rax), %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x30(%rsp), %rcx
addq $0x18, %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x28(%rsp), %rax
movq 0x60(%rax), %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x60(%rax)
movq 0x28(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x12e80
jmp 0x1267c
addq $0x48, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lfunc.c
// Function: luaF_newproto
Proto *luaF_newproto (lua_State *L) {
  Proto *f = &luaC_newobj(L, LUA_TPROTO, sizeof(Proto), NULL, 0)->p;
  f->k = NULL;
  f->sizek = 0;
  f->p = NULL;
  f->sizep = 0;
  f->code = NULL;
  f->cache = NULL;
  f->sizecode = 0;
  f->lineinfo = NULL;
  f->sizelineinfo = 0;
  f->upvalues = NULL;
  f->sizeupvalues = 0;
  f->numparams = 0;
  f->is_vararg = 0;
  f->maxstacksize = 0;
  f->locvars = NULL;
  f->sizelocvars = 0;
  f->linedefined = 0;
  f->lastlinedefined = 0;
  f->source = NULL;
  return f;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
movl $0x9, %esi
movl $0x80, %edx
xorl %eax, %eax
movl %eax, %ecx
xorl %r8d, %r8d
callq 0x12f60
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x8(%rsp), %rax
movl $0x0, 0x54(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x20(%rax)
movq 0x8(%rsp), %rax
movl $0x0, 0x60(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x40(%rax)
movq 0x8(%rsp), %rax
movl $0x0, 0x58(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x28(%rax)
movq 0x8(%rsp), %rax
movl $0x0, 0x5c(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x38(%rax)
movq 0x8(%rsp), %rax
movl $0x0, 0x50(%rax)
movq 0x8(%rsp), %rax
movb $0x0, 0x78(%rax)
movq 0x8(%rsp), %rax
movb $0x0, 0x79(%rax)
movq 0x8(%rsp), %rax
movb $0x0, 0x7a(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x30(%rax)
movq 0x8(%rsp), %rax
movl $0x0, 0x64(%rax)
movq 0x8(%rsp), %rax
movl $0x0, 0x68(%rax)
movq 0x8(%rsp), %rax
movl $0x0, 0x6c(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x48(%rax)
movq 0x8(%rsp), %rax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: luaC_barrier_
void luaC_barrier_ (lua_State *L, GCObject *o, GCObject *v) {
  global_State *g = G(L);
  lua_assert(isblack(o) && iswhite(v) && !isdead(g, v) && !isdead(g, o));
  lua_assert(g->gcstate != GCSpause);
  lua_assert(gch(o)->tt != LUA_TTABLE);
  if (keepinvariantout(g))  /* must keep invariant? */
    reallymarkobject(g, v);  /* restore invariant */
  else {  /* sweep phase */
    lua_assert(issweepphase(g));
    makewhite(g, o);  /* mark main obj. as white to avoid other barriers */
  }
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movzbl 0x55(%rax), %eax
cmpl $0x1, %eax
jg 0x12ae0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x12b10
jmp 0x12b07
movq 0x18(%rsp), %rax
movzbl 0x9(%rax), %eax
andl $-0x48, %eax
movq 0x8(%rsp), %rcx
movzbl 0x54(%rcx), %ecx
andl $0x3, %ecx
movzbl %cl, %ecx
orl %ecx, %eax
movb %al, %cl
movq 0x18(%rsp), %rax
movb %cl, 0x9(%rax)
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: luaC_barrierback_
void luaC_barrierback_ (lua_State *L, GCObject *o) {
  global_State *g = G(L);
  lua_assert(isblack(o) && !isdead(g, o) && gch(o)->tt == LUA_TTABLE);
  black2gray(o);  /* make object gray (again) */
  gco2t(o)->gclist = g->grayagain;
  g->grayagain = o;
}

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq -0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rsp)
movq -0x10(%rsp), %rax
movzbl 0x9(%rax), %ecx
andl $0xfb, %ecx
movb %cl, 0x9(%rax)
movq -0x18(%rsp), %rax
movq 0x88(%rax), %rcx
movq -0x10(%rsp), %rax
movq %rcx, 0x30(%rax)
movq -0x10(%rsp), %rcx
movq -0x18(%rsp), %rax
movq %rcx, 0x88(%rax)
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: luaC_barrierproto_
LUAI_FUNC void luaC_barrierproto_ (lua_State *L, Proto *p, Closure *c) {
  global_State *g = G(L);
  lua_assert(isblack(obj2gco(p)));
  if (p->cache == NULL) {  /* first time? */
    luaC_objbarrier(L, p, c);
  }
  else {  /* use a backward barrier */
    black2gray(obj2gco(p));  /* make prototype gray (again) */
    p->gclist = g->grayagain;
    g->grayagain = obj2gco(p);
  }
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
cmpq $0x0, 0x40(%rax)
jne 0x12e35
movq 0x10(%rsp), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x12e33
movq 0x18(%rsp), %rax
movzbl 0x9(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x12e33
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x12aa0
jmp 0x12e6d
movq 0x18(%rsp), %rax
movzbl 0x9(%rax), %ecx
andl $0xfb, %ecx
movb %cl, 0x9(%rax)
movq 0x8(%rsp), %rax
movq 0x88(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x70(%rax)
movq 0x18(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x88(%rax)
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: luaC_checkupvalcolor
void luaC_checkupvalcolor (global_State *g, UpVal *uv) {
  GCObject *o = obj2gco(uv);
  lua_assert(!isblack(o));  /* open upvalues are never black */
  if (isgray(o)) {
    if (keepinvariant(g)) {
      resetoldbit(o);  /* see MOVE OLD rule */
      gray2black(o);  /* it is being visited now */
      markvalue(g, uv->v);
    }
    else {
      lua_assert(issweepphase(g));
      makewhite(g, o);
    }
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movzbl 0x9(%rax), %eax
andl $0x7, %eax
cmpl $0x0, %eax
jne 0x12f51
movq 0x10(%rsp), %rax
movzbl 0x56(%rax), %eax
cmpl $0x2, %eax
je 0x12ec7
movq 0x10(%rsp), %rax
movzbl 0x55(%rax), %eax
cmpl $0x1, %eax
jg 0x12f2a
movq (%rsp), %rax
movzbl 0x9(%rax), %ecx
andl $0xbf, %ecx
movb %cl, 0x9(%rax)
movq (%rsp), %rax
movzbl 0x9(%rax), %ecx
orl $0x4, %ecx
movb %cl, 0x9(%rax)
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movl 0x8(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x12f28
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x12f28
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rsi
callq 0x12b10
jmp 0x12f4f
movq (%rsp), %rax
movzbl 0x9(%rax), %eax
andl $-0x48, %eax
movq 0x10(%rsp), %rcx
movzbl 0x54(%rcx), %ecx
andl $0x3, %ecx
movzbl %cl, %ecx
orl %ecx, %eax
movb %al, %cl
movq (%rsp), %rax
movb %cl, 0x9(%rax)
jmp 0x12f51
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: luaC_newobj
GCObject *luaC_newobj (lua_State *L, int tt, size_t sz, GCObject **list,
                       int offset) {
  global_State *g = G(L);
  char *raw = cast(char *, luaM_newobject(L, novariant(tt), sz));
  GCObject *o = obj2gco(raw + offset);
  if (list == NULL)
    list = &g->allgc;  /* standard list for collectable objects */
  gch(o)->marked = luaC_white(g);
  gch(o)->tt = tt;
  gch(o)->next = *list;
  *list = o;
  return o;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl %esi, 0x3c(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movl %r8d, 0x24(%rsp)
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x40(%rsp), %rdi
movl 0x3c(%rsp), %eax
andl $0xf, %eax
movslq %eax, %rdx
movq 0x30(%rsp), %rcx
xorl %eax, %eax
movl %eax, %esi
callq 0x18170
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movslq 0x24(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x12fd4
movq 0x18(%rsp), %rax
addq $0x60, %rax
movq %rax, 0x28(%rsp)
movq 0x18(%rsp), %rax
movzbl 0x54(%rax), %eax
andl $0x3, %eax
movb %al, %cl
movq 0x8(%rsp), %rax
movb %cl, 0x9(%rax)
movl 0x3c(%rsp), %eax
movb %al, %cl
movq 0x8(%rsp), %rax
movb %cl, 0x8(%rax)
movq 0x28(%rsp), %rax
movq (%rax), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x8(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, (%rax)
movq 0x8(%rsp), %rax
addq $0x48, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: sweeptolive
static GCObject **sweeptolive (lua_State *L, GCObject **p, int *n) {
  GCObject ** old = p;
  int i = 0;
  do {
    i++;
    p = sweeplist(L, p, 1);
  } while (p == old);
  if (n) *n += i;
  return p;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl $0x1, %edx
callq 0x135d0
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x8(%rsp), %rax
je 0x131f5
cmpq $0x0, 0x10(%rsp)
je 0x1323a
movl 0x4(%rsp), %ecx
movq 0x10(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movq 0x18(%rsp), %rax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: luaC_changemode
void luaC_changemode (lua_State *L, int mode) {
  global_State *g = G(L);
  if (mode == g->gckind) return;  /* nothing to change */
  if (mode == KGC_GEN) {  /* change to generational mode */
    /* make sure gray lists are consistent */
    luaC_runtilstate(L, bitmask(GCSpropagate));
    g->GCestimate = gettotalbytes(g);
    g->gckind = KGC_GEN;
  }
  else {  /* change to incremental mode */
    /* sweep all objects to turn them back to white
       (as white has not changed, nothing extra will be collected) */
    g->gckind = KGC_NORMAL;
    entersweep(L);
    luaC_runtilstate(L, ~sweepphases);
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, (%rsp)
movl 0xc(%rsp), %eax
movq (%rsp), %rcx
movzbl 0x56(%rcx), %ecx
cmpl %ecx, %eax
jne 0x1327c
jmp 0x132d5
cmpl $0x2, 0xc(%rsp)
jne 0x132b4
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0x132e0
movq (%rsp), %rax
movq 0x10(%rax), %rcx
movq (%rsp), %rax
addq 0x18(%rax), %rcx
movq (%rsp), %rax
movq %rcx, 0x28(%rax)
movq (%rsp), %rax
movb $0x2, 0x56(%rax)
jmp 0x132d5
movq (%rsp), %rax
movb $0x0, 0x56(%rax)
movq 0x10(%rsp), %rdi
callq 0x13330
movq 0x10(%rsp), %rdi
movl $0xffffffe3, %esi       # imm = 0xFFFFFFE3
callq 0x132e0
addq $0x18, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: entersweep
static int entersweep (lua_State *L) {
  global_State *g = G(L);
  int n = 0;
  g->gcstate = GCSsweepstring;
  lua_assert(g->sweepgc == NULL && g->sweepfin == NULL);
  /* prepare to sweep strings, finalizable objects, and regular objects */
  g->sweepstrgc = 0;
  g->sweepfin = sweeptolive(L, &g->finobj, &n);
  g->sweepgc = sweeptolive(L, &g->allgc, &n);
  return n;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
movq 0x8(%rsp), %rax
movb $0x2, 0x55(%rax)
movq 0x8(%rsp), %rax
movl $0x0, 0x58(%rax)
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
addq $0x68, %rsi
leaq 0x4(%rsp), %rdx
callq 0x131d0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x78(%rax)
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
addq $0x60, %rsi
leaq 0x4(%rsp), %rdx
callq 0x131d0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x70(%rax)
movl 0x4(%rsp), %eax
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: luaC_freeallobjects
void luaC_freeallobjects (lua_State *L) {
  global_State *g = G(L);
  int i;
  separatetobefnz(L, 1);  /* separate all objects with finalizers */
  lua_assert(g->finobj == NULL);
  callallpendingfinalizers(L, 0);
  g->currentwhite = WHITEBITS; /* this "white" makes all objects look dead */
  g->gckind = KGC_NORMAL;
  sweepwholelist(L, &g->finobj);  /* finalizers can create objs. in 'finobj' */
  sweepwholelist(L, &g->allgc);
  for (i = 0; i < g->strt.size; i++)  /* free all string lists */
    sweepwholelist(L, &g->strt.hash[i]);
  lua_assert(g->strt.nuse == 0);
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0x13490
movq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x13570
movq 0x8(%rsp), %rax
movb $0x3, 0x54(%rax)
movq 0x8(%rsp), %rax
movb $0x0, 0x56(%rax)
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
addq $0x68, %rsi
movq $-0x3, %rdx
callq 0x135d0
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
addq $0x60, %rsi
movq $-0x3, %rdx
callq 0x135d0
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
movq 0x8(%rsp), %rcx
cmpl 0x3c(%rcx), %eax
jge 0x13481
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rsi
movslq 0x4(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rsi
movq $-0x3, %rdx
callq 0x135d0
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x13440
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: separatetobefnz
static void separatetobefnz (lua_State *L, int all) {
  global_State *g = G(L);
  GCObject **p = &g->finobj;
  GCObject *curr;
  GCObject **lastnext = &g->tobefnz;
  /* find last 'next' field in 'tobefnz' list (to add elements in its end) */
  while (*lastnext != NULL)
    lastnext = &gch(*lastnext)->next;
  while ((curr = *p) != NULL) {  /* traverse all finalizable objects */
    lua_assert(!isfinalized(curr));
    lua_assert(testbit(gch(curr)->marked, SEPARATED));
    if (!(iswhite(curr) || all))  /* not being collected? */
      p = &gch(curr)->next;  /* don't bother with it */
    else {
      l_setbit(gch(curr)->marked, FINALIZEDBIT); /* won't be finalized again */
      *p = gch(curr)->next;  /* remove 'curr' from 'finobj' list */
      gch(curr)->next = *lastnext;  /* link at the end of 'tobefnz' list */
      *lastnext = curr;
      lastnext = &gch(curr)->next;
    }
  }
}

// Assembly:
movq %rdi, -0x8(%rsp)
movl %esi, -0xc(%rsp)
movq -0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x18(%rsp)
movq -0x18(%rsp), %rax
addq $0x68, %rax
movq %rax, -0x20(%rsp)
movq -0x18(%rsp), %rax
addq $0xa8, %rax
movq %rax, -0x30(%rsp)
movq -0x30(%rsp), %rax
cmpq $0x0, (%rax)
je 0x134df
movq -0x30(%rsp), %rax
movq (%rax), %rax
movq %rax, -0x30(%rsp)
jmp 0x134c5
jmp 0x134e1
movq -0x20(%rsp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rsp)
cmpq $0x0, %rax
je 0x13560
movq -0x28(%rsp), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
jne 0x13518
cmpl $0x0, -0xc(%rsp)
jne 0x13518
movq -0x28(%rsp), %rax
movq %rax, -0x20(%rsp)
jmp 0x1355e
movq -0x28(%rsp), %rax
movzbl 0x9(%rax), %ecx
orl $0x8, %ecx
movb %cl, 0x9(%rax)
movq -0x28(%rsp), %rax
movq (%rax), %rcx
movq -0x20(%rsp), %rax
movq %rcx, (%rax)
movq -0x30(%rsp), %rax
movq (%rax), %rcx
movq -0x28(%rsp), %rax
movq %rcx, (%rax)
movq -0x28(%rsp), %rcx
movq -0x30(%rsp), %rax
movq %rcx, (%rax)
movq -0x28(%rsp), %rax
movq %rax, -0x30(%rsp)
jmp 0x134e1
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: callallpendingfinalizers
static void callallpendingfinalizers (lua_State *L, int propagateerrors) {
  global_State *g = G(L);
  while (g->tobefnz) {
    resetoldbit(g->tobefnz);
    GCTM(L, propagateerrors);
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
cmpq $0x0, 0xa8(%rax)
je 0x135c0
movq (%rsp), %rax
movq 0xa8(%rax), %rax
movzbl 0x9(%rax), %ecx
andl $0xbf, %ecx
movb %cl, 0x9(%rax)
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %esi
callq 0x13d30
jmp 0x1358a
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: luaC_forcestep
void luaC_forcestep (lua_State *L) {
  global_State *g = G(L);
  int i;
  if (isgenerational(g)) generationalcollection(L);
  else incstep(L);
  /* run a few finalizers (or all of them at the end of a collect cycle) */
  for (i = 0; g->tobefnz && (i < GCFINALIZENUM || g->gcstate == GCSpause); i++)
    GCTM(L, 1);  /* call one finalizer */
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movzbl 0x56(%rax), %eax
cmpl $0x2, %eax
jne 0x13a51
movq 0x10(%rsp), %rdi
callq 0x13ad0
jmp 0x13a5b
movq 0x10(%rsp), %rdi
callq 0x13bd0
movl $0x0, 0x4(%rsp)
movq 0x8(%rsp), %rcx
xorl %eax, %eax
cmpq $0x0, 0xa8(%rcx)
movb %al, 0x3(%rsp)
je 0x13aa0
movb $0x1, %al
cmpl $0x4, 0x4(%rsp)
movb %al, 0x2(%rsp)
jl 0x13a98
movq 0x8(%rsp), %rax
movzbl 0x55(%rax), %eax
cmpl $0x5, %eax
sete %al
movb %al, 0x2(%rsp)
movb 0x2(%rsp), %al
movb %al, 0x3(%rsp)
movb 0x3(%rsp), %al
testb $0x1, %al
jne 0x13aaa
jmp 0x13ac6
movq 0x10(%rsp), %rdi
movl $0x1, %esi
callq 0x13d30
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x13a63
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: generationalcollection
static void generationalcollection (lua_State *L) {
  global_State *g = G(L);
  lua_assert(g->gcstate == GCSpropagate);
  if (g->GCestimate == 0) {  /* signal for another major collection? */
    luaC_fullgc(L, 0);  /* perform a full regular collection */
    g->GCestimate = gettotalbytes(g);  /* update control */
  }
  else {
    lu_mem estimate = g->GCestimate;
    luaC_runtilstate(L, bitmask(GCSpause));  /* run complete (minor) cycle */
    g->gcstate = GCSpropagate;  /* skip restart */
    if (gettotalbytes(g) > (estimate / 100) * g->gcmajorinc)
      g->GCestimate = 0;  /* signal for a major collection */
    else
      g->GCestimate = estimate;  /* keep estimate from last major coll. */

  }
  setpause(g, gettotalbytes(g));
  lua_assert(g->gcstate == GCSpropagate);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq $0x0, 0x28(%rax)
jne 0x13b1f
movq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x13fe0
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x18(%rsp), %rax
addq 0x18(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x28(%rax)
jmp 0x13ba7
movq 0x18(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movl $0x20, %esi
callq 0x132e0
movq 0x18(%rsp), %rax
movb $0x0, 0x55(%rax)
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x18(%rsp), %rcx
addq 0x18(%rcx), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
movl $0x64, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rdx
movslq 0xf4(%rdx), %rdx
imulq %rdx, %rcx
cmpq %rcx, %rax
jbe 0x13b97
movq 0x18(%rsp), %rax
movq $0x0, 0x28(%rax)
jmp 0x13ba5
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x28(%rax)
jmp 0x13ba7
movq 0x18(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rsp), %rax
addq 0x18(%rax), %rsi
callq 0x140e0
addq $0x28, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: incstep
static void incstep (lua_State *L) {
  global_State *g = G(L);
  l_mem debt = g->GCdebt;
  int stepmul = g->gcstepmul;
  if (stepmul < 40) stepmul = 40;  /* avoid ridiculous low values (and 0) */
  /* convert debt from Kb to 'work units' (avoid zero debt and overflows) */
  debt = (debt / STEPMULADJ) + 1;
  debt = (debt < MAX_LMEM / stepmul) ? debt * stepmul : MAX_LMEM;
  do {  /* always perform at least one single step */
    lu_mem work = singlestep(L);  /* do some work */
    debt -= work;
  } while (debt > -GCSTEPSIZE && g->gcstate != GCSpause);
  if (g->gcstate == GCSpause)
    setpause(g, g->GCestimate);  /* pause until next cycle */
  else {
    debt = (debt / stepmul) * STEPMULADJ;  /* convert 'work units' to Kb */
    luaE_setdebt(g, debt);
  }
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rax
movl 0xf8(%rax), %eax
movl %eax, 0x2c(%rsp)
cmpl $0x28, 0x2c(%rsp)
jge 0x13c13
movl $0x28, 0x2c(%rsp)
movq 0x30(%rsp), %rax
movl $0xc8, %ecx
cqto
idivq %rcx
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x18(%rsp)
movslq 0x2c(%rsp), %rcx
movabsq $0x7ffffffffffffffc, %rax # imm = 0x7FFFFFFFFFFFFFFC
cqto
idivq %rcx
movq %rax, %rcx
movq 0x18(%rsp), %rax
cmpq %rcx, %rax
jge 0x13c6b
movq 0x30(%rsp), %rax
movslq 0x2c(%rsp), %rcx
imulq %rcx, %rax
movq %rax, 0x10(%rsp)
jmp 0x13c7c
movabsq $0x7ffffffffffffffc, %rax # imm = 0x7FFFFFFFFFFFFFFC
movq %rax, 0x10(%rsp)
jmp 0x13c7c
movq 0x10(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x40(%rsp), %rdi
callq 0x13760
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rcx
movq 0x30(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x30(%rsp)
xorl %eax, %eax
cmpq $-0x960, 0x30(%rsp)     # imm = 0xF6A0
movb %al, 0xf(%rsp)
jle 0x13ccb
movq 0x38(%rsp), %rax
movzbl 0x55(%rax), %eax
cmpl $0x5, %eax
setne %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x13c86
movq 0x38(%rsp), %rax
movzbl 0x55(%rax), %eax
cmpl $0x5, %eax
jne 0x13cf6
movq 0x38(%rsp), %rdi
movq 0x38(%rsp), %rax
movq 0x28(%rax), %rsi
callq 0x140e0
jmp 0x13d20
movq 0x30(%rsp), %rax
movslq 0x2c(%rsp), %rcx
cqto
idivq %rcx
imulq $0xc8, %rax, %rax
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x1f880
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: luaC_fullgc
void luaC_fullgc (lua_State *L, int isemergency) {
  global_State *g = G(L);
  int origkind = g->gckind;
  lua_assert(origkind != KGC_EMERGENCY);
  if (isemergency)  /* do not run finalizers during emergency GC */
    g->gckind = KGC_EMERGENCY;
  else {
    g->gckind = KGC_NORMAL;
    callallpendingfinalizers(L, 1);
  }
  if (keepinvariant(g)) {  /* may there be some black objects? */
    /* must sweep all objects to turn them back to white
       (as white has not changed, nothing will be collected) */
    entersweep(L);
  }
  /* finish any pending sweep phase to start a new cycle */
  luaC_runtilstate(L, bitmask(GCSpause));
  luaC_runtilstate(L, ~bitmask(GCSpause));  /* start new collection */
  luaC_runtilstate(L, bitmask(GCSpause));  /* run entire collection */
  if (origkind == KGC_GEN) {  /* generational mode? */
    /* generational mode must be kept in propagate phase */
    luaC_runtilstate(L, bitmask(GCSpropagate));
  }
  g->gckind = origkind;
  setpause(g, gettotalbytes(g));
  if (!isemergency)   /* do not run finalizers during emergency GC */
    callallpendingfinalizers(L, 1);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movzbl 0x56(%rax), %eax
movl %eax, 0xc(%rsp)
cmpl $0x0, 0x1c(%rsp)
je 0x1401a
movq 0x10(%rsp), %rax
movb $0x1, 0x56(%rax)
jmp 0x14032
movq 0x10(%rsp), %rax
movb $0x0, 0x56(%rax)
movq 0x20(%rsp), %rdi
movl $0x1, %esi
callq 0x13570
movq 0x10(%rsp), %rax
movzbl 0x56(%rax), %eax
cmpl $0x2, %eax
je 0x1404e
movq 0x10(%rsp), %rax
movzbl 0x55(%rax), %eax
cmpl $0x1, %eax
jg 0x14058
movq 0x20(%rsp), %rdi
callq 0x13330
movq 0x20(%rsp), %rdi
movl $0x20, %esi
callq 0x132e0
movq 0x20(%rsp), %rdi
movl $0xffffffdf, %esi       # imm = 0xFFFFFFDF
callq 0x132e0
movq 0x20(%rsp), %rdi
movl $0x20, %esi
callq 0x132e0
cmpl $0x2, 0xc(%rsp)
jne 0x1409b
movq 0x20(%rsp), %rdi
movl $0x1, %esi
callq 0x132e0
movl 0xc(%rsp), %eax
movb %al, %cl
movq 0x10(%rsp), %rax
movb %cl, 0x56(%rax)
movq 0x10(%rsp), %rdi
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rsi
movq 0x10(%rsp), %rax
addq 0x18(%rax), %rsi
callq 0x140e0
cmpl $0x0, 0x1c(%rsp)
jne 0x140db
movq 0x20(%rsp), %rdi
movl $0x1, %esi
callq 0x13570
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: setpause
static void setpause (global_State *g, l_mem estimate) {
  l_mem debt, threshold;
  estimate = estimate / PAUSEADJ;  /* adjust 'estimate' */
  threshold = (g->gcpause < MAX_LMEM / estimate)  /* overflow? */
            ? estimate * g->gcpause  /* no overflow */
            : MAX_LMEM;  /* overflow; truncate to maximum */
  debt = -cast(l_mem, threshold - gettotalbytes(g));
  luaE_setdebt(g, debt);
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x28(%rsp), %rax
movl $0x64, %ecx
cqto
idivq %rcx
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rax
movslq 0xf0(%rax), %rax
movq %rax, 0x10(%rsp)
movabsq $0x7ffffffffffffffc, %rax # imm = 0x7FFFFFFFFFFFFFFC
cqto
idivq 0x28(%rsp)
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
jge 0x1414d
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
movslq 0xf0(%rcx), %rcx
imulq %rcx, %rax
movq %rax, 0x8(%rsp)
jmp 0x1415e
movabsq $0x7ffffffffffffffc, %rax # imm = 0x7FFFFFFFFFFFFFFC
movq %rax, 0x8(%rsp)
jmp 0x1415e
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rcx
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x30(%rsp), %rdx
addq 0x18(%rdx), %rax
subq %rax, %rcx
xorl %eax, %eax
subq %rcx, %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x1f880
addq $0x38, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: freeobj
static void freeobj (lua_State *L, GCObject *o) {
  switch (gch(o)->tt) {
    case LUA_TPROTO: luaF_freeproto(L, gco2p(o)); break;
    case LUA_TLCL: {
      luaM_freemem(L, o, sizeLclosure(gco2lcl(o)->nupvalues));
      break;
    }
    case LUA_TCCL: {
      luaM_freemem(L, o, sizeCclosure(gco2ccl(o)->nupvalues));
      break;
    }
    case LUA_TUPVAL: luaF_freeupval(L, gco2uv(o)); break;
    case LUA_TTABLE: luaH_free(L, gco2t(o)); break;
    case LUA_TTHREAD: luaE_freethread(L, gco2th(o)); break;
    case LUA_TUSERDATA: luaM_freemem(L, o, sizeudata(gco2u(o))); break;
    case LUA_TSHRSTR:
      G(L)->strt.nuse--;
      /* go through */
    case LUA_TLNGSTR: {
      luaM_freemem(L, o, sizestring(gco2ts(o)));
      break;
    }
    default: lua_assert(0);
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x8(%rsp), %rax
movzbl 0x8(%rax), %eax
addl $-0x4, %eax
movl %eax, %ecx
movq %rcx, (%rsp)
subl $0x22, %eax
ja 0x142e5
movq (%rsp), %rax
leaq 0x21988(%rip), %rcx     # 0x35b5c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x128c0
jmp 0x142e7
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x8(%rsp), %rax
movzbl 0xa(%rax), %eax
subl $0x1, %eax
cltq
shlq $0x3, %rax
addl $0x28, %eax
movslq %eax, %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x18170
jmp 0x142e7
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x8(%rsp), %rax
movzbl 0xa(%rax), %eax
subl $0x1, %eax
cltq
shlq $0x4, %rax
addl $0x30, %eax
movslq %eax, %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x18170
jmp 0x142e7
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x125d0
jmp 0x142e7
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x249f0
jmp 0x142e7
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x1fc80
jmp 0x142e7
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rdx
addq $0x28, %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x18170
jmp 0x142e7
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movl 0x38(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x38(%rax)
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rdx
addq $0x1, %rdx
shlq $0x0, %rdx
addq $0x18, %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x18170
jmp 0x142e7
jmp 0x142e7
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: sweepthread
static void sweepthread (lua_State *L, lua_State *L1) {
  if (L1->stack == NULL) return;  /* stack not completely built yet */
  sweepwholelist(L, &L1->openupval);  /* sweep open upvalues */
  luaE_freeCI(L1);  /* free extra CallInfo slots */
  /* should not change the stack during an emergency gc cycle */
  if (G(L)->gckind != KGC_EMERGENCY)
    luaD_shrinkstack(L1);
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq $0x0, 0x38(%rax)
jne 0x1430c
jmp 0x1434c
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
addq $0x60, %rsi
movq $-0x3, %rdx
callq 0x135d0
movq 0x8(%rsp), %rdi
callq 0x1f920
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movzbl 0x56(%rax), %eax
cmpl $0x1, %eax
je 0x1434c
movq 0x8(%rsp), %rdi
callq 0x10310
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: checkSizes
static void checkSizes (lua_State *L) {
  global_State *g = G(L);
  if (g->gckind != KGC_EMERGENCY) {  /* do not change sizes in emergency */
    int hs = g->strt.size / 2;  /* half the size of the string table */
    if (g->strt.nuse < cast(lu_int32, hs))  /* using less than that half? */
      luaS_resize(L, hs);  /* halve its size */
    luaZ_freebuffer(L, &g->buff);  /* free concatenation buffer */
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movzbl 0x56(%rax), %eax
cmpl $0x1, %eax
je 0x148ce
movq 0x8(%rsp), %rax
movl 0x3c(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, 0x4(%rsp)
movq 0x8(%rsp), %rax
movl 0x38(%rax), %eax
cmpl 0x4(%rsp), %eax
jae 0x14885
movq 0x10(%rsp), %rdi
movl 0x4(%rsp), %esi
callq 0x20560
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0xd8(%rax), %rsi
movq 0x8(%rsp), %rax
movq 0xe8(%rax), %rdx
shlq $0x0, %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x18170
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0xd8(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0xe8(%rax)
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: markbeingfnz
static void markbeingfnz (global_State *g) {
  GCObject *o;
  for (o = g->tobefnz; o != NULL; o = gch(o)->next) {
    makewhite(g, o);
    reallymarkobject(g, o);
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x149c7
movq 0x8(%rsp), %rax
movzbl 0x9(%rax), %eax
andl $-0x48, %eax
movq 0x10(%rsp), %rcx
movzbl 0x54(%rcx), %ecx
andl $0x3, %ecx
movzbl %cl, %ecx
orl %ecx, %eax
movb %al, %cl
movq 0x8(%rsp), %rax
movb %cl, 0x9(%rax)
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x12b10
movq 0x8(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
jmp 0x1497a
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: traversetable
static lu_mem traversetable (global_State *g, Table *h) {
  const char *weakkey, *weakvalue;
  const TValue *mode = gfasttm(g, h->metatable, TM_MODE);
  markobject(g, h->metatable);
  if (mode && ttisstring(mode) &&  /* is there a weak mode? */
      ((weakkey = strchr(svalue(mode), 'k')),
       (weakvalue = strchr(svalue(mode), 'v')),
       (weakkey || weakvalue))) {  /* is really weak? */
    black2gray(obj2gco(h));  /* keep table gray */
    if (!weakkey)  /* strong keys? */
      traverseweakvalue(g, h);
    else if (!weakvalue)  /* strong values? */
      traverseephemeron(g, h);
    else  /* all weak */
      linktable(h, &g->allweak);  /* nothing to traverse now */
  }
  else  /* not weak */
    traversestrongtable(g, h);
  return sizeof(Table) + sizeof(TValue) * h->sizearray +
                         sizeof(Node) * cast(size_t, sizenode(h));
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq 0x38(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x149f3
xorl %eax, %eax
movq %rax, 0x18(%rsp)
jmp 0x14a3f
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movzbl 0xa(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x14a11
xorl %eax, %eax
movq %rax, 0x10(%rsp)
jmp 0x14a35
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x40(%rsp), %rax
movq 0x138(%rax), %rdx
movl $0x3, %esi
callq 0x264d0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x38(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0x14a7d
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x14a7d
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x12b10
cmpq $0x0, 0x20(%rsp)
je 0x14b66
movq 0x20(%rsp), %rax
movl 0x8(%rax), %eax
andl $0xf, %eax
cmpl $0x4, %eax
jne 0x14b66
movq 0x20(%rsp), %rax
movq (%rax), %rdi
addq $0x18, %rdi
movl $0x6b, %esi
callq 0x7190
movq %rax, 0x30(%rsp)
movq 0x20(%rsp), %rax
movq (%rax), %rdi
addq $0x18, %rdi
movl $0x76, %esi
callq 0x7190
movq %rax, 0x28(%rsp)
movb $0x1, %al
cmpq $0x0, 0x30(%rsp)
movb %al, 0xf(%rsp)
jne 0x14aee
cmpq $0x0, 0x28(%rsp)
setne %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x14af8
jmp 0x14b66
movq 0x38(%rsp), %rax
movzbl 0x9(%rax), %ecx
andl $0xfb, %ecx
movb %cl, 0x9(%rax)
cmpq $0x0, 0x30(%rsp)
jne 0x14b23
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x15190
jmp 0x14b64
cmpq $0x0, 0x28(%rsp)
jne 0x14b3c
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x152e0
jmp 0x14b62
movq 0x40(%rsp), %rax
movq 0xa0(%rax), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0xa0(%rax)
jmp 0x14b64
jmp 0x14b75
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0x15540
movq 0x38(%rsp), %rax
movslq 0x38(%rax), %rax
shlq $0x4, %rax
addq $0x40, %rax
movq 0x38(%rsp), %rcx
movzbl 0xb(%rcx), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
movslq %ecx, %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
addq $0x48, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: traverseLclosure
static lu_mem traverseLclosure (global_State *g, LClosure *cl) {
  int i;
  markobject(g, cl->p);  /* mark its prototype */
  for (i = 0; i < cl->nupvalues; i++)  /* mark its upvalues */
    markobject(g, cl->upvals[i]);
  return sizeLclosure(cl->nupvalues);
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0x14bf2
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x14bf2
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rsi
callq 0x12b10
movl $0x0, 0x4(%rsp)
movl 0x4(%rsp), %eax
movq 0x8(%rsp), %rcx
movzbl 0xa(%rcx), %ecx
cmpl %ecx, %eax
jge 0x14c60
movq 0x8(%rsp), %rax
movslq 0x4(%rsp), %rcx
cmpq $0x0, 0x20(%rax,%rcx,8)
je 0x14c51
movq 0x8(%rsp), %rax
movslq 0x4(%rsp), %rcx
movq 0x20(%rax,%rcx,8), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x14c51
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movslq 0x4(%rsp), %rcx
movq 0x20(%rax,%rcx,8), %rsi
callq 0x12b10
jmp 0x14c53
movl 0x4(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x4(%rsp)
jmp 0x14bfa
movq 0x8(%rsp), %rax
movzbl 0xa(%rax), %eax
subl $0x1, %eax
cltq
shlq $0x3, %rax
addl $0x28, %eax
cltq
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: traversestack
static lu_mem traversestack (global_State *g, lua_State *th) {
  int n = 0;
  StkId o = th->stack;
  if (o == NULL)
    return 1;  /* stack not completely built yet */
  for (; o < th->top; o++)  /* mark live elements in the stack */
    markvalue(g, o);
  if (g->gcstate == GCSatomic) {  /* final traversal? */
    StkId lim = th->stack + th->stacksize;  /* real end of stack */
    for (; o < lim; o++)  /* clear not-marked stack slice */
      setnilvalue(o);
  }
  else {  /* count call infos to compute size */
    CallInfo *ci;
    for (ci = &th->base_ci; ci != th->ci; ci = ci->next)
      n++;
  }
  return sizeof(lua_State) + sizeof(TValue) * th->stacksize +
         sizeof(CallInfo) * n;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movl $0x0, 0x1c(%rsp)
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
jne 0x14d7a
movq $0x1, 0x30(%rsp)
jmp 0x14e87
jmp 0x14d7c
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jae 0x14dd4
movq 0x10(%rsp), %rax
movl 0x8(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x14dc2
movq 0x10(%rsp), %rax
movq (%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x14dc2
movq 0x28(%rsp), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rsi
callq 0x12b10
jmp 0x14dc4
movq 0x10(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x10(%rsp)
jmp 0x14d7c
movq 0x28(%rsp), %rax
movzbl 0x55(%rax), %eax
cmpl $0x1, %eax
jne 0x14e2a
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x20(%rsp), %rcx
movslq 0x40(%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x8(%rsp), %rax
jae 0x14e28
movq 0x10(%rsp), %rax
movl $0x0, 0x8(%rax)
movq 0x10(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x10(%rsp)
jmp 0x14e00
jmp 0x14e63
movq 0x20(%rsp), %rax
addq $0x80, %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq 0x20(%rcx), %rax
je 0x14e61
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
movq (%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, (%rsp)
jmp 0x14e39
jmp 0x14e63
movq 0x20(%rsp), %rax
movslq 0x40(%rax), %rax
shlq $0x4, %rax
addq $0xd0, %rax
movslq 0x1c(%rsp), %rcx
imulq $0x50, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: traverseweakvalue
static void traverseweakvalue (global_State *g, Table *h) {
  Node *n, *limit = gnodelast(h);
  /* if there is array part, assume it may have white values (do not
     traverse it just to check) */
  int hasclears = (h->sizearray > 0);
  for (n = gnode(h, 0); n < limit; n++) {
    checkdeadkey(n);
    if (ttisnil(gval(n)))  /* entry is empty? */
      removeentry(n);  /* remove it */
    else {
      lua_assert(!ttisnil(gkey(n)));
      markvalue(g, gkey(n));  /* mark key */
      if (!hasclears && iscleared(g, gval(n)))  /* is there a white value? */
        hasclears = 1;  /* table will have to be cleared */
    }
  }
  if (hasclears)
    linktable(h, &g->weak);  /* has to be cleared later */
  else  /* no white values */
    linktable(h, &g->grayagain);  /* no need to clean */
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rsp), %rcx
movzbl 0xb(%rcx), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
movslq %ecx, %rcx
imulq $0x28, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
cmpl $0x0, 0x38(%rax)
setg %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, 0x4(%rsp)
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x8(%rsp), %rax
jae 0x15284
movq 0x10(%rsp), %rax
cmpl $0x0, 0x8(%rax)
jne 0x15212
movq 0x10(%rsp), %rdi
callq 0x156d0
jmp 0x1526f
movq 0x10(%rsp), %rax
movl 0x18(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x1524a
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x1524a
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x12b10
cmpl $0x0, 0x4(%rsp)
jne 0x1526d
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x15710
cmpl $0x0, %eax
je 0x1526d
movl $0x1, 0x4(%rsp)
jmp 0x1526f
jmp 0x15271
movq 0x10(%rsp), %rax
addq $0x28, %rax
movq %rax, 0x10(%rsp)
jmp 0x151eb
cmpl $0x0, 0x4(%rsp)
je 0x152b3
movq 0x20(%rsp), %rax
movq 0x90(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x90(%rax)
jmp 0x152d9
movq 0x20(%rsp), %rax
movq 0x88(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x88(%rax)
addq $0x28, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lgc.c
// Function: iscleared
static int iscleared (global_State *g, const TValue *o) {
  if (!iscollectable(o)) return 0;
  else if (ttisstring(o)) {
    markobject(g, rawtsvalue(o));  /* strings are `values', so are never weak */
    return 0;
  }
  else return iswhite(gcvalue(o));
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
movq %rsi, (%rsp)
movq (%rsp), %rax
movl 0x8(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
jne 0x15736
movl $0x0, 0x14(%rsp)
jmp 0x1578f
movq (%rsp), %rax
movl 0x8(%rax), %eax
andl $0xf, %eax
cmpl $0x4, %eax
jne 0x1577d
movq (%rsp), %rax
cmpq $0x0, (%rax)
je 0x15773
movq (%rsp), %rax
movq (%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x15773
movq 0x8(%rsp), %rdi
movq (%rsp), %rax
movq (%rax), %rsi
callq 0x12b10
movl $0x0, 0x14(%rsp)
jmp 0x1578f
movq (%rsp), %rax
movq (%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
addq $0x18, %rsp
retq
nopl (%rax,%rax)