LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lapi.c
// Function: lua_concat
LUA_API void lua_concat (lua_State *L, int n) {
  lua_lock(L);
  api_checknelems(L, n);
  if (n >= 2) {
    luaV_concat(L, n);
  }
  else if (n == 0) {  /* push empty string */
    setsvalue2s(L, L->top, luaS_newlstr(L, "", 0));
    api_incr_top(L);
  }
  /* else n == 1; nothing to do */
  luaC_checkGC(L);
  lua_unlock(L);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $0x2, %esi
jl 0x6f6d
movq %rbx, %rdi
callq 0x106d4
jmp 0x6f99
testl %esi, %esi
jne 0x6f99
movq 0x10(%rbx), %r14
leaq 0x1ae6c(%rip), %rsi     # 0x21de8
movq %rbx, %rdi
xorl %edx, %edx
callq 0xe658
movq %rax, (%r14)
movzbl 0x8(%rax), %eax
orl $0x40, %eax
movl %eax, 0x8(%r14)
addq $0x10, 0x10(%rbx)
movq 0x18(%rbx), %rax
cmpq $0x0, 0x18(%rax)
jle 0x6fb3
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x9f05
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lapi.c
// Function: lua_len
LUA_API void lua_len (lua_State *L, int idx) {
  StkId t;
  lua_lock(L);
  t = index2addr(L, idx);
  luaV_objlen(L, L->top, t);
  api_incr_top(L);
  lua_unlock(L);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x5bea
movq 0x10(%rbx), %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x10942
addq $0x10, 0x10(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lapi.c
// Function: lua_newuserdata
LUA_API void *lua_newuserdata (lua_State *L, size_t size) {
  Udata *u;
  lua_lock(L);
  u = luaS_newudata(L, size);
  setuvalue(L, L->top, u);
  api_incr_top(L);
  luaC_checkGC(L);
  lua_unlock(L);
  return getudatamem(u);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0xe8a2
movq %rax, %r14
movq 0x10(%rbx), %rax
movq %r14, (%rax)
movl $0x47, 0x8(%rax)
addq $0x10, 0x10(%rbx)
movq 0x18(%rbx), %rax
cmpq $0x0, 0x18(%rax)
jle 0x7033
movq %rbx, %rdi
callq 0x9f05
addq $0x28, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lapi.c
// Function: lua_getupvalue
LUA_API const char *lua_getupvalue (lua_State *L, int funcindex, int n) {
  const char *name;
  TValue *val = NULL;  /* to avoid warnings */
  lua_lock(L);
  name = aux_upvalue(index2addr(L, funcindex), n, &val, NULL, NULL);
  if (name) {
    setobj2s(L, L->top, val);
    api_incr_top(L);
  }
  lua_unlock(L);
  return name;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rdi, %rbx
leaq 0x8(%rsp), %r14
andq $0x0, (%r14)
callq 0x5bea
movq %rax, %rdi
movl %ebp, %esi
movq %r14, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x7091
testq %rax, %rax
je 0x7088
movq 0x10(%rbx), %rcx
movq 0x8(%rsp), %rdx
movups (%rdx), %xmm0
movups %xmm0, (%rcx)
addq $0x10, 0x10(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lapi.c
// Function: aux_upvalue
static const char *aux_upvalue (StkId fi, int n, TValue **val,
                                CClosure **owner, UpVal **uv) {
  switch (ttype(fi)) {
    case LUA_TCCL: {  /* C closure */
      CClosure *f = clCvalue(fi);
      if (!(1 <= n && n <= f->nupvalues)) return NULL;
      *val = &f->upvalue[n-1];
      if (owner) *owner = f;
      return "";
    }
    case LUA_TLCL: {  /* Lua closure */
      LClosure *f = clLvalue(fi);
      TString *name;
      Proto *p = f->p;
      if (!(1 <= n && n <= p->sizeupvalues)) return NULL;
      *val = f->upvals[n-1]->v;
      if (uv) *uv = f->upvals[n - 1];
      name = p->upvalues[n-1].name;
      return (name == NULL) ? "(*no name)" : getstr(name);
    }
    default: return NULL;  /* not a closure */
  }
}

// Assembly:
movl 0x8(%rdi), %eax
andl $0x3f, %eax
cmpl $0x6, %eax
je 0x70d1
cmpl $0x26, %eax
jne 0x70e1
testl %esi, %esi
jle 0x70e1
movq (%rdi), %rdi
movzbl 0xa(%rdi), %eax
cmpl %esi, %eax
jb 0x70e1
decl %esi
shlq $0x4, %rsi
leaq (%rdi,%rsi), %rax
addq $0x20, %rax
movq %rax, (%rdx)
leaq 0x1ad20(%rip), %rax     # 0x21de8
testq %rcx, %rcx
je 0x711c
movq %rdi, (%rcx)
retq
testl %esi, %esi
jle 0x70e1
movq (%rdi), %rcx
movq 0x18(%rcx), %rax
cmpl %esi, 0x10(%rax)
jge 0x70e4
xorl %eax, %eax
retq
decl %esi
movq 0x20(%rcx,%rsi,8), %rdi
movq (%rdi), %rdi
movq %rdi, (%rdx)
testq %r8, %r8
je 0x70fe
movq 0x20(%rcx,%rsi,8), %rcx
movq %rcx, (%r8)
movq 0x58(%rax), %rax
shlq $0x4, %rsi
movq (%rax,%rsi), %rax
leaq 0x18(%rax), %rcx
testq %rax, %rax
leaq 0x180b8(%rip), %rax     # 0x1f1d0
cmovneq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lapi.c
// Function: lua_setupvalue
LUA_API const char *lua_setupvalue (lua_State *L, int funcindex, int n) {
  const char *name;
  TValue *val = NULL;  /* to avoid warnings */
  CClosure *owner = NULL;
  UpVal *uv = NULL;
  StkId fi;
  lua_lock(L);
  fi = index2addr(L, funcindex);
  api_checknelems(L, 1);
  name = aux_upvalue(fi, n, &val, &owner, &uv);
  if (name) {
    L->top--;
    setobj(L, val, L->top);
    if (owner) { luaC_barrier(L, owner, L->top); }
    else if (uv) { luaC_upvalbarrier(L, uv); }
  }
  lua_unlock(L);
  return name;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebp
movq %rdi, %rbx
leaq 0x18(%rsp), %r14
andq $0x0, (%r14)
leaq 0x10(%rsp), %r15
andq $0x0, (%r15)
leaq 0x8(%rsp), %r12
andq $0x0, (%r12)
callq 0x5bea
movq %rax, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %r15, %rcx
movq %r12, %r8
callq 0x7091
movq %rax, %r14
testq %rax, %rax
je 0x71da
movq 0x10(%rbx), %rax
leaq -0x10(%rax), %rcx
movq %rcx, 0x10(%rbx)
movq 0x18(%rsp), %rcx
movups -0x10(%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x10(%rsp), %rsi
testq %rsi, %rsi
je 0x71af
movq 0x10(%rbx), %rax
testb $0x40, 0x8(%rax)
je 0x71da
testb $0x4, 0x9(%rsi)
je 0x71da
movq (%rax), %rdx
testb $0x3, 0x9(%rdx)
je 0x71da
movq %rbx, %rdi
callq 0x972c
jmp 0x71da
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x71da
movq (%rsi), %rax
movb 0x8(%rax), %cl
shrb $0x6, %cl
leaq 0x10(%rsi), %rdx
cmpq %rdx, %rax
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x71da
movq %rbx, %rdi
callq 0x9838
movq %r14, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lapi.c
// Function: lua_upvalueid
LUA_API void *lua_upvalueid (lua_State *L, int fidx, int n) {
  StkId fi = index2addr(L, fidx);
  switch (ttype(fi)) {
    case LUA_TLCL: {  /* lua closure */
      return *getupvalref(L, fidx, n, NULL);
    }
    case LUA_TCCL: {  /* C closure */
      CClosure *f = clCvalue(fi);
      api_check(L, 1 <= n && n <= f->nupvalues, "invalid upvalue index");
      return &f->upvalue[n - 1];
    }
    default: {
      api_check(L, 0, "closure expected");
      return NULL;
    }
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
callq 0x5bea
movl 0x8(%rax), %ecx
andl $0x3f, %ecx
cmpl $0x26, %ecx
je 0x721d
cmpl $0x6, %ecx
jne 0x7230
movq %r14, %rdi
movl %ebp, %esi
movl %ebx, %edx
xorl %ecx, %ecx
callq 0x7237
movq (%rax), %rax
jmp 0x7232
movq (%rax), %rax
movslq %ebx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
addq $0x10, %rax
jmp 0x7232
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lapi.c
// Function: getupvalref
static UpVal **getupvalref (lua_State *L, int fidx, int n, LClosure **pf) {
  LClosure *f;
  StkId fi = index2addr(L, fidx);
  api_check(L, ttisLclosure(fi), "Lua function expected");
  f = clLvalue(fi);
  api_check(L, (1 <= n && n <= f->p->sizeupvalues), "invalid upvalue index");
  if (pf) *pf = f;
  return &f->upvals[n - 1];  /* get its upvalue pointer */
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
movl %edx, %ebx
callq 0x5bea
movq (%rax), %rax
testq %r14, %r14
je 0x7250
movq %rax, (%r14)
movslq %ebx, %rcx
leaq (%rax,%rcx,8), %rax
addq $0x18, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lapi.c
// Function: lua_upvaluejoin
LUA_API void lua_upvaluejoin (lua_State *L, int fidx1, int n1,
                                            int fidx2, int n2) {
  LClosure *f1;
  UpVal **up1 = getupvalref(L, fidx1, n1, &f1);
  UpVal **up2 = getupvalref(L, fidx2, n2, NULL);
  luaC_upvdeccount(L, *up1);
  *up1 = *up2;
  (*up1)->refcount++;
  if (upisopen(*up1)) (*up1)->u.open.touched = 1;
  luaC_upvalbarrier(L, *up1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %r8d, %ebp
movl %ecx, %r15d
movq %rdi, %rbx
movq %rsp, %rcx
callq 0x7237
movq %rax, %r14
movq %rbx, %rdi
movl %r15d, %esi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x7237
movq %rax, %r15
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x98ad
movq (%r15), %rsi
movq %rsi, (%r14)
incq 0x8(%rsi)
movq (%rsi), %rax
leaq 0x10(%rsi), %rcx
cmpq %rcx, %rax
je 0x72be
movl $0x1, 0x18(%rsi)
movq (%r14), %rsi
movq (%rsi), %rax
testb $0x40, 0x8(%rax)
je 0x72d5
leaq 0x10(%rsi), %rcx
cmpq %rcx, %rax
jne 0x72d5
movq %rbx, %rdi
callq 0x9838
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: lua_getstack
LUA_API int lua_getstack (lua_State *L, int level, lua_Debug *ar) {
  int status;
  CallInfo *ci;
  if (level < 0) return 0;  /* invalid (negative) level */
  lua_lock(L);
  for (ci = L->ci; level > 0 && ci != &L->base_ci; ci = ci->previous)
    level--;
  if (level == 0 && ci != &L->base_ci) {  /* level found? */
    status = 1;
    ar->i_ci = ci;
  }
  else status = 0;  /* no such level */
  lua_unlock(L);
  return status;
}

// Assembly:
xorl %eax, %eax
testl %esi, %esi
js 0x737b
leaq 0x20(%rdi), %rcx
addq $0x60, %rdi
movl %esi, %r8d
movq (%rcx), %rcx
addl $-0x1, %r8d
jae 0x735e
cmpq %rdi, %rcx
je 0x735e
addq $0x10, %rcx
movl %r8d, %esi
jmp 0x7347
cmpq %rdi, %rcx
setne %dil
testl %esi, %esi
sete %sil
andb %dil, %sil
cmpb $0x1, %sil
jne 0x737b
movq %rcx, 0x78(%rdx)
pushq $0x1
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: lua_getlocal
LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n) {
  const char *name;
  lua_lock(L);
  swapextra(L);
  if (ar == NULL) {  /* information about non-active function? */
    if (!isLfunction(L->top - 1))  /* not a Lua function? */
      name = NULL;
    else  /* consider live variables at function start (parameters) */
      name = luaF_getlocalname(clLvalue(L->top - 1)->p, n, 0);
  }
  else {  /* active function; get information through 'ar' */
    StkId pos = NULL;  /* to avoid warnings */
    name = findlocal(L, ar->i_ci, n, &pos);
    if (name) {
      setobj2s(L, L->top, pos);
      api_incr_top(L);
    }
  }
  swapextra(L);
  lua_unlock(L);
  return name;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x7402
testq %r14, %r14
je 0x73cb
leaq 0x8(%rsp), %rcx
andq $0x0, (%rcx)
movq 0x78(%r14), %rsi
movq %rbx, %rdi
movl %ebp, %edx
callq 0x7425
movq %rax, %r14
testq %rax, %rax
je 0x73ee
movq 0x10(%rbx), %rax
movq 0x8(%rsp), %rcx
movups (%rcx), %xmm0
movups %xmm0, (%rax)
addq $0x10, 0x10(%rbx)
jmp 0x73ee
movq 0x10(%rbx), %rax
cmpl $0x46, -0x8(%rax)
jne 0x73eb
movq -0x10(%rax), %rax
movq 0x18(%rax), %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x96f1
movq %rax, %r14
jmp 0x73ee
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x7402
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: swapextra
static void swapextra (lua_State *L) {
  if (L->status == LUA_YIELD) {
    CallInfo *ci = L->ci;  /* get function that yielded */
    StkId temp = ci->func;  /* exchange its 'func' and 'extra' values */
    ci->func = restorestack(L, ci->extra);
    ci->extra = savestack(L, temp);
  }
}

// Assembly:
cmpb $0x1, 0xc(%rdi)
jne 0x7424
movq 0x20(%rdi), %rax
movq 0x38(%rdi), %rcx
movq (%rax), %rdx
movq 0x38(%rax), %rsi
addq %rcx, %rsi
movq %rsi, (%rax)
subq %rcx, %rdx
movq %rdx, 0x38(%rax)
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: findlocal
static const char *findlocal (lua_State *L, CallInfo *ci, int n,
                              StkId *pos) {
  const char *name = NULL;
  StkId base;
  if (isLua(ci)) {
    if (n < 0)  /* access to vararg values? */
      return findvararg(ci, -n, pos);
    else {
      base = ci->u.l.base;
      name = luaF_getlocalname(ci_func(ci)->p, n, currentpc(ci));
    }
  }
  else
    base = ci->func + 1;
  if (name == NULL) {  /* no 'standard' name? */
    StkId limit = (ci == L->ci) ? L->top : ci->next->func;
    if (limit - base >= n && n > 0)  /* is 'n' inside 'ci' stack? */
      name = "(*temporary)";  /* generic name for any valid slot */
    else
      return NULL;  /* no name */
  }
  *pos = base + (n - 1);
  return name;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
testb $0x2, 0x42(%rsi)
movslq %edx, %r13
jne 0x7454
movq (%r15), %rbx
addq $0x10, %rbx
cmpq %r15, 0x20(%r14)
je 0x7489
movq 0x18(%r15), %r14
jmp 0x748d
testl %ebp, %ebp
js 0x74c7
movq (%r15), %rax
movq 0x20(%r15), %rbx
movq (%rax), %rax
movq 0x18(%rax), %r12
movq %r15, %rdi
movq %rcx, (%rsp)
callq 0x7de3
movq %r12, %rdi
movl %ebp, %esi
movl %eax, %edx
callq 0x96f1
movq (%rsp), %rcx
testq %rax, %rax
jne 0x74a9
jmp 0x7448
addq $0x10, %r14
xorl %eax, %eax
testl %ebp, %ebp
jle 0x74b8
movq (%r14), %rdx
subq %rbx, %rdx
sarq $0x4, %rdx
cmpq %r13, %rdx
jl 0x74b8
leaq 0x17eae(%rip), %rax     # 0x1f357
shlq $0x4, %r13
leaq (%rbx,%r13), %rsi
addq $-0x10, %rsi
movq %rsi, (%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
negl %ebp
movq (%r15), %rsi
movq 0x20(%r15), %rdx
movq (%rsi), %rax
movq 0x18(%rax), %rax
movzbl 0xa(%rax), %eax
subq %rsi, %rdx
shrq $0x4, %rdx
subl %eax, %edx
cmpl %ebp, %edx
jle 0x7500
shll $0x4, %eax
movl %ebp, %edx
shlq $0x4, %rdx
addq %rdx, %rsi
addq %rax, %rsi
leaq 0x17e66(%rip), %rax     # 0x1f364
jmp 0x74b5
xorl %eax, %eax
jmp 0x74b8
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: lua_setlocal
LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) {
  StkId pos = NULL;  /* to avoid warnings */
  const char *name;
  lua_lock(L);
  swapextra(L);
  name = findlocal(L, ar->i_ci, n, &pos);
  if (name) {
    setobjs2s(L, pos, L->top - 1);
    L->top--;  /* pop value */
  }
  swapextra(L);
  lua_unlock(L);
  return name;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r15
andq $0x0, (%r15)
callq 0x7402
movq 0x78(%r14), %rsi
movq %rbx, %rdi
movl %ebp, %edx
movq %r15, %rcx
callq 0x7425
movq %rax, %r14
testq %rax, %rax
je 0x754c
movq (%rsp), %rax
movq 0x10(%rbx), %rcx
movups -0x10(%rcx), %xmm0
movups %xmm0, (%rax)
addq $-0x10, 0x10(%rbx)
movq %rbx, %rdi
callq 0x7402
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: luaG_runerror
l_noret luaG_runerror (lua_State *L, const char *fmt, ...) {
  CallInfo *ci = L->ci;
  const char *msg;
  va_list argp;
  va_start(argp, fmt);
  msg = luaO_pushvfstring(L, fmt, argp);  /* format message */
  va_end(argp);
  if (isLua(ci))  /* if Lua function, add source:line information */
    luaG_addinfo(L, msg, ci_func(ci)->p->source, currentline(ci));
  luaG_errormsg(L);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x7991
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq 0x20(%rbx), %r14
movq %rsp, %rdx
movq %rdi, 0x10(%rdx)
leaq 0x100(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
movq %rbx, %rdi
callq 0xb23d
testb $0x2, 0x42(%r14)
je 0x79ed
movq %rax, %r15
movq (%r14), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0x68(%rax), %r12
movq %r14, %rdi
callq 0x7c86
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl %eax, %ecx
callq 0x7bdf
movq %rbx, %rdi
callq 0x7c35
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: varinfo
static const char *varinfo (lua_State *L, const TValue *o) {
  const char *name = NULL;  /* to avoid warnings */
  CallInfo *ci = L->ci;
  const char *kind = NULL;
  if (isLua(ci)) {
    kind = getupvalname(ci, o, &name);  /* check whether 'o' is an upvalue */
    if (!kind && isinstack(ci, o))  /* no? try a register */
      kind = getobjname(ci_func(ci)->p, currentpc(ci),
                        cast_int(o - ci->u.l.base), &name);
  }
  return (kind) ? luaO_pushfstring(L, " (%s '%s')", kind, name) : "";
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
andq $0x0, 0x8(%rsp)
movq %rdi, %rbx
movq 0x20(%rdi), %rdi
testb $0x2, 0x42(%rdi)
jne 0x7a22
leaq 0x1a3d0(%rip), %rax     # 0x21de8
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rsi, %r14
movq (%rdi), %rax
movq (%rax), %rax
movzbl 0xa(%rax), %ecx
shll $0x3, %ecx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x7a49
movq 0x20(%rax,%rdx), %rsi
cmpq %r14, (%rsi)
je 0x7a8c
addq $0x8, %rdx
jmp 0x7a34
movq 0x20(%rdi), %rcx
subq %rcx, %r14
js 0x7a11
movq 0x8(%rdi), %rdx
subq %rcx, %rdx
cmpq %rdx, %r14
jge 0x7a11
movq 0x18(%rax), %r15
callq 0x7de3
shrq $0x4, %r14
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
movl %eax, %esi
movl %r14d, %edx
callq 0x7dfc
testq %rax, %rax
je 0x7a11
movq %rax, %rdx
movq 0x8(%rsp), %rcx
jmp 0x7ab1
movq 0x18(%rax), %rax
movq 0x58(%rax), %rax
movq (%rax,%rdx,2), %rax
leaq 0x18(%rax), %rdx
testq %rax, %rax
leaq 0x178d0(%rip), %rcx     # 0x1f376
cmovneq %rdx, %rcx
leaq 0x1932f(%rip), %rdx     # 0x20de0
leaq 0x178f8(%rip), %rsi     # 0x1f3b0
movq %rbx, %rdi
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0xb593
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: luaG_opinterror
l_noret luaG_opinterror (lua_State *L, const TValue *p1,
                         const TValue *p2, const char *msg) {
  lua_Number temp;
  if (!tonumber(p1, &temp))  /* first operand is wrong? */
    p2 = p1;  /* now second is wrong */
  luaG_typeerror(L, p2, msg);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
cmpl $0x3, 0x8(%rsi)
jne 0x7b0f
movsd (%r12), %xmm0
movsd %xmm0, (%rsp)
jmp 0x7b20
movq %rsp, %rsi
movq %r12, %rdi
callq 0xfe58
testl %eax, %eax
cmoveq %r12, %r14
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x78f2
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: luaG_tointerror
l_noret luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) {
  lua_Integer temp;
  if (!tointeger(p1, &temp))
    p2 = p1;
  luaG_runerror(L, "number%s has no integer representation", varinfo(L, p2));
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
cmpl $0x13, 0x8(%rsi)
jne 0x7b50
movq (%r15), %rax
movq %rax, 0x8(%rsp)
jmp 0x7b65
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0xfed4
testl %eax, %eax
cmoveq %r15, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x79f5
leaq 0x17770(%rip), %rsi     # 0x1f2e7
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x7930
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: luaG_ordererror
l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) {
  const char *t1 = luaT_objtypename(L, p1);
  const char *t2 = luaT_objtypename(L, p2);
  if (strcmp(t1, t2) == 0)
    luaG_runerror(L, "attempt to compare two %s values", t1);
  else
    luaG_runerror(L, "attempt to compare %s with %s", t1, t2);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rdi, %rbx
callq 0xf50b
movq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
callq 0xf50b
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x5270
testl %eax, %eax
jne 0x7bc8
leaq 0x17753(%rip), %rsi     # 0x1f30e
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x7930
leaq 0x17760(%rip), %rsi     # 0x1f32f
movq %rbx, %rdi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x7930
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: luaG_addinfo
const char *luaG_addinfo (lua_State *L, const char *msg, TString *src,
                                        int line) {
  char buff[LUA_IDSIZE];
  if (src)
    luaO_chunkid(buff, getstr(src), LUA_IDSIZE);
  else {  /* no source available; use "?" instead */
    buff[0] = '?'; buff[1] = '\0';
  }
  return luaO_pushfstring(L, "%s:%d: %s", buff, line, msg);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movl %ecx, %ebx
movq %rsi, %r14
movq %rdi, %r15
testq %rdx, %rdx
je 0x7c0c
addq $0x18, %rdx
movq %rsp, %rdi
pushq $0x3c
popq %rax
movq %rdx, %rsi
movq %rax, %rdx
callq 0xb617
jmp 0x7c12
movw $0x3f, (%rsp)
leaq 0x17734(%rip), %rsi     # 0x1f34d
movq %rsp, %rdx
movq %r15, %rdi
movl %ebx, %ecx
movq %r14, %r8
xorl %eax, %eax
callq 0xb593
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: luaG_errormsg
l_noret luaG_errormsg (lua_State *L) {
  if (L->errfunc != 0) {  /* is there an error handling function? */
    StkId errfunc = restorestack(L, L->errfunc);
    setobjs2s(L, L->top, L->top - 1);  /* move argument */
    setobjs2s(L, L->top - 1, errfunc);  /* push function */
    L->top++;  /* assume EXTRA_STACK */
    luaD_callnoyield(L, L->top - 2, 1);  /* call it */
  }
  luaD_throw(L, LUA_ERRRUN);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0xb0(%rdi), %rax
testq %rax, %rax
je 0x7c7b
movq 0x10(%rbx), %rcx
movq 0x38(%rbx), %rdx
movups -0x10(%rcx), %xmm0
movups %xmm0, (%rcx)
movq 0x10(%rbx), %rcx
movups (%rdx,%rax), %xmm0
movups %xmm0, -0x10(%rcx)
movq 0x10(%rbx), %rsi
leaq 0x10(%rsi), %rax
movq %rax, 0x10(%rbx)
addq $-0x10, %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x89f0
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x80fc
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: luaG_traceexec
void luaG_traceexec (lua_State *L) {
  CallInfo *ci = L->ci;
  lu_byte mask = L->hookmask;
  int counthook = (--L->hookcount == 0 && (mask & LUA_MASKCOUNT));
  if (counthook)
    resethookcount(L);  /* reset count */
  else if (!(mask & LUA_MASKLINE))
    return;  /* no line hook and count != 0; nothing to be done */
  if (ci->callstatus & CIST_HOOKYIELD) {  /* called hook last time? */
    ci->callstatus &= ~CIST_HOOKYIELD;  /* erase mark */
    return;  /* do not call hook again (VM yielded, so it did not move) */
  }
  if (counthook)
    luaD_hook(L, LUA_HOOKCOUNT, -1);  /* call count hook */
  if (mask & LUA_MASKLINE) {
    Proto *p = ci_func(ci)->p;
    int npc = pcRel(ci->u.l.savedpc, p);
    int newline = getfuncline(p, npc);
    if (npc == 0 ||  /* call linehook when enter a new function, */
        ci->u.l.savedpc <= L->oldpc ||  /* when jump back (loop), or when */
        newline != getfuncline(p, pcRel(L->oldpc, p)))  /* enter a new line */
      luaD_hook(L, LUA_HOOKLINE, newline);  /* call line hook */
  }
  L->oldpc = ci->u.l.savedpc;
  if (L->status == LUA_YIELD) {  /* did hook yield? */
    if (counthook)
      L->hookcount = 1;  /* undo decrement to zero */
    ci->u.l.savedpc--;  /* undo increment (resume will increment it again) */
    ci->callstatus |= CIST_HOOKYIELD;  /* mark that it yielded */
    ci->func = L->top - 1;  /* protect stack below results */
    luaD_throw(L, LUA_YIELD);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %r14
movl 0xc8(%rdi), %r15d
decl 0xc0(%rdi)
sete %al
movl %r15d, %ebp
andl $0x8, %ebp
shrl $0x3, %ebp
andb %al, %bpl
je 0x7d04
movl 0xbc(%rbx), %eax
movl %eax, 0xc0(%rbx)
movb 0x42(%r14), %al
testb $0x40, %al
jne 0x7d45
pushq $0x3
popq %rsi
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x8475
testb $0x4, %r15b
jne 0x7d16
jmp 0x7d94
testb $0x4, %r15b
je 0x7da2
movb 0x42(%r14), %al
testb $0x40, %al
jne 0x7d45
movq (%r14), %rax
movq 0x28(%r14), %rsi
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0x38(%rax), %rcx
movq 0x48(%rax), %rax
movq %rsi, %rdi
subq %rcx, %rdi
shrq $0x2, %rdi
decl %edi
testq %rax, %rax
je 0x7d50
movslq %edi, %rdx
movl (%rax,%rdx,4), %edx
jmp 0x7d53
addq $0x42, %r14
andb $-0x41, %al
movb %al, (%r14)
jmp 0x7da2
pushq $-0x1
popq %rdx
testl %edi, %edi
je 0x7d89
movq 0x28(%rbx), %rdi
cmpq %rdi, %rsi
jbe 0x7d89
testq %rax, %rax
je 0x7d82
subq %rcx, %rdi
shlq $0x1e, %rdi
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
addq %rdi, %rcx
sarq $0x20, %rcx
movl (%rax,%rcx,4), %eax
jmp 0x7d85
pushq $-0x1
popq %rax
cmpl %eax, %edx
je 0x7d94
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x8475
movq 0x28(%r14), %rax
movq %rax, 0x28(%rbx)
cmpb $0x1, 0xc(%rbx)
je 0x7dad
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
testb %bpl, %bpl
je 0x7dc0
movl $0x1, 0xc0(%rbx)
movq 0x28(%r14), %rax
addq $-0x4, %rax
movq %rax, 0x28(%r14)
orb $0x40, 0x42(%r14)
movq 0x10(%rbx), %rax
addq $-0x10, %rax
movq %rax, (%r14)
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x80fc
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: kname
static void kname (Proto *p, int pc, int c, const char **name) {
  if (ISK(c)) {  /* is 'c' a constant? */
    TValue *kvalue = &p->k[INDEXK(c)];
    if (ttisstring(kvalue)) {  /* literal constant? */
      *name = svalue(kvalue);  /* it is its own name */
      return;
    }
    /* else no reasonable name found */
  }
  else {  /* 'c' is a register */
    const char *what = getobjname(p, pc, c, name); /* search for 'c' */
    if (what && *what == 'c') {  /* found a constant name? */
      return;  /* 'name' already filled */
    }
    /* else no reasonable name found */
  }
  *name = "?";  /* no reasonable name found */
}

// Assembly:
pushq %rbx
movq %rcx, %rbx
btl $0x8, %edx
jb 0x80c8
movq %rbx, %rcx
callq 0x7dfc
leaq 0x172ba(%rip), %rcx     # 0x1f376
testq %rax, %rax
je 0x80f5
cmpb $0x63, (%rax)
jne 0x80f5
jmp 0x80f8
movq 0x30(%rdi), %rax
andl $0xfffffeff, %edx       # imm = 0xFFFFFEFF
shlq $0x4, %rdx
movl 0x8(%rax,%rdx), %ecx
andl $0xf, %ecx
cmpl $0x4, %ecx
jne 0x80ee
addq %rdx, %rax
movq (%rax), %rcx
addq $0x18, %rcx
jmp 0x80f5
leaq 0x17281(%rip), %rcx     # 0x1f376
movq %rcx, (%rbx)
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: luaD_throw
l_noret luaD_throw (lua_State *L, int errcode) {
  if (L->errorJmp) {  /* thread has an error handler? */
    L->errorJmp->status = errcode;  /* set status */
    LUAI_THROW(L, L->errorJmp);  /* jump to it */
  }
  else {  /* thread has no error handler */
    global_State *g = G(L);
    L->status = cast_byte(errcode);  /* mark it as dead */
    if (g->mainthread->errorJmp) {  /* main thread has a handler? */
      setobjs2s(L, g->mainthread->top++, L->top - 1);  /* copy error obj. */
      luaD_throw(g->mainthread, errcode);  /* re-throw in main thread */
    }
    else {  /* no handler at all; abort */
      if (g->panic) {  /* panic function? */
        seterrorobj(L, errcode, L->top);  /* assume EXTRA_STACK */
        if (L->ci->top < L->top)
          L->ci->top = L->top;  /* pushing msg. can break this invariant */
        lua_unlock(L);
        g->panic(L);  /* call panic function (last chance to jump out) */
      }
      abort();
    }
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x58(%rdi), %rdi
testq %rdi, %rdi
jne 0x8159
movq 0x18(%rbx), %r14
movb %sil, 0xc(%rbx)
movq 0xc8(%r14), %rax
cmpq $0x0, 0x58(%rax)
jne 0x816b
cmpq $0x0, 0xc0(%r14)
je 0x8154
movq 0x10(%rbx), %rdx
movq %rbx, %rdi
callq 0x818e
movq 0x10(%rbx), %rax
movq 0x20(%rbx), %rcx
cmpq %rax, 0x8(%rcx)
jae 0x814a
movq %rax, 0x8(%rcx)
movq %rbx, %rdi
callq *0xc0(%r14)
callq 0x5080
movl %esi, 0xd0(%rdi)
addq $0x8, %rdi
pushq $0x1
popq %rsi
callq 0x5400
movq 0x10(%rax), %rcx
leaq 0x10(%rcx), %rdx
movq %rdx, 0x10(%rax)
movq 0x10(%rbx), %rax
movups -0x10(%rax), %xmm0
movups %xmm0, (%rcx)
movq 0xc8(%r14), %rdi
callq 0x80fc
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: seterrorobj
static void seterrorobj (lua_State *L, int errcode, StkId oldtop) {
  switch (errcode) {
    case LUA_ERRMEM: {  /* memory error? */
      setsvalue2s(L, oldtop, G(L)->memerrmsg); /* reuse preregistered msg. */
      break;
    }
    case LUA_ERRERR: {
      setsvalue2s(L, oldtop, luaS_newliteral(L, "error in error handling"));
      break;
    }
    default: {
      setobjs2s(L, oldtop, L->top - 1);  /* error message on current top */
      break;
    }
  }
  L->top = oldtop + 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
cmpl $0x6, %esi
je 0x81af
cmpl $0x4, %esi
jne 0x81d0
movq 0x18(%r14), %rax
movq 0xd8(%rax), %rax
jmp 0x81c1
leaq 0x17259(%rip), %rsi     # 0x1f40f
pushq $0x17
popq %rdx
movq %r14, %rdi
callq 0xe658
movq %rax, (%rbx)
movzbl 0x8(%rax), %eax
orl $0x40, %eax
movl %eax, 0x8(%rbx)
jmp 0x81db
movq 0x10(%r14), %rax
movups -0x10(%rax), %xmm0
movups %xmm0, (%rbx)
addq $0x10, %rbx
movq %rbx, 0x10(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: luaD_reallocstack
void luaD_reallocstack (lua_State *L, int newsize) {
  TValue *oldstack = L->stack;
  int lim = L->stacksize;
  lua_assert(newsize <= LUAI_MAXSTACK || newsize == ERRORSTACKSIZE);
  lua_assert(L->stack_last - L->stack == L->stacksize - EXTRA_STACK);
  luaM_reallocvector(L, L->stack, L->stacksize, newsize, TValue);
  for (; lim < newsize; lim++)
    setnilvalue(L->stack + lim); /* erase new segment */
  L->stacksize = newsize;
  L->stack_last = L->stack + newsize - EXTRA_STACK;
  correctstack(L, oldstack);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x38(%rdi), %r14
movslq 0xb8(%rdi), %r13
movq %r13, %r12
shlq $0x4, %r12
movl %esi, 0x4(%rsp)
movslq %esi, %r15
movq %r15, %rbp
shlq $0x4, %rbp
movq %r14, %rsi
movq %r12, %rdx
movq %rbp, %rcx
callq 0xab76
movq %rax, 0x38(%rbx)
leaq (%r12,%rax), %rcx
addq $0x8, %rcx
cmpq %r15, %r13
jge 0x82b4
andl $0x0, (%rcx)
incq %r13
addq $0x10, %rcx
jmp 0x82a3
movl 0x4(%rsp), %ecx
movl %ecx, 0xb8(%rbx)
leaq (%rax,%rbp), %rcx
addq $-0x50, %rcx
movq %rcx, 0x30(%rbx)
movq 0x10(%rbx), %rcx
subq %r14, %rcx
addq %rax, %rcx
movq %rcx, 0x10(%rbx)
leaq 0x40(%rbx), %rcx
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x82f6
movq (%rcx), %rdx
subq %r14, %rdx
addq %rax, %rdx
movq %rdx, (%rcx)
addq $0x10, %rcx
jmp 0x82dc
leaq 0x20(%rbx), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x833a
movq (%rax), %rdx
movq 0x8(%rax), %rsi
subq %r14, %rsi
movq 0x38(%rbx), %rcx
addq %rcx, %rsi
movq %rsi, 0x8(%rax)
subq %r14, %rdx
addq %rcx, %rdx
movq %rdx, (%rax)
testb $0x2, 0x42(%rax)
je 0x8334
movq 0x20(%rax), %rdx
subq %r14, %rdx
addq %rdx, %rcx
movq %rcx, 0x20(%rax)
addq $0x10, %rax
jmp 0x82fa
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: luaD_growstack
void luaD_growstack (lua_State *L, int n) {
  int size = L->stacksize;
  if (size > LUAI_MAXSTACK)  /* error after extra size? */
    luaD_throw(L, LUA_ERRERR);
  else {
    int needed = cast_int(L->top - L->stack) + n + EXTRA_STACK;
    int newsize = 2 * size;
    if (newsize > LUAI_MAXSTACK) newsize = LUAI_MAXSTACK;
    if (newsize < needed) newsize = needed;
    if (newsize > LUAI_MAXSTACK) {  /* stack overflow? */
      luaD_reallocstack(L, ERRORSTACKSIZE);
      luaG_runerror(L, "stack overflow");
    }
    else
      luaD_reallocstack(L, newsize);
  }
}

// Assembly:
pushq %rbx
movl %esi, %eax
movq %rdi, %rbx
movl 0xb8(%rdi), %esi
cmpl $0xf4241, %esi          # imm = 0xF4241
jge 0x8390
movq 0x10(%rbx), %rcx
subq 0x38(%rbx), %rcx
shrq $0x4, %rcx
addl %eax, %ecx
cmpl $0xf423c, %ecx          # imm = 0xF423C
jge 0x839b
addl $0x5, %ecx
addl %esi, %esi
movl $0xf4240, %eax          # imm = 0xF4240
cmpl %eax, %esi
cmovgel %eax, %esi
cmpl %ecx, %esi
cmovlel %ecx, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x825b
pushq $0x6
popq %rsi
movq %rbx, %rdi
callq 0x80fc
movq %rbx, %rdi
movl $0xf4308, %esi          # imm = 0xF4308
callq 0x825b
leaq 0x1707a(%rip), %rsi     # 0x1f429
movq %rbx, %rdi
xorl %eax, %eax
callq 0x7930
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: luaD_shrinkstack
void luaD_shrinkstack (lua_State *L) {
  int inuse = stackinuse(L);
  int goodsize = inuse + (inuse / 8) + 2*EXTRA_STACK;
  if (goodsize > LUAI_MAXSTACK) goodsize = LUAI_MAXSTACK;
  if (L->stacksize > LUAI_MAXSTACK)  /* was handling stack overflow? */
    luaE_freeCI(L);  /* free all CIs (list grew because of an error) */
  else
    luaE_shrinkCI(L);  /* shrink list */
  if (inuse <= LUAI_MAXSTACK &&  /* not handling stack overflow? */
      goodsize < L->stacksize)  /* trying to shrink? */
    luaD_reallocstack(L, goodsize);  /* shrink it */
  else
    condmovestack(L,,);  /* don't change stack (change only for debugging) */
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %r14
leaq 0x20(%rdi), %rax
movq (%rax), %rax
testq %rax, %rax
je 0x83e1
movq 0x8(%rax), %rcx
cmpq %rcx, %r14
cmovbq %rcx, %r14
addq $0x10, %rax
jmp 0x83c8
subq 0x38(%rbx), %r14
shrq $0x4, %r14
leal 0x1(%r14), %eax
pushq $0x8
popq %rcx
cltd
idivl %ecx
addl %r14d, %eax
incl %eax
movl $0xf4236, %ebp          # imm = 0xF4236
cmpl %ebp, %eax
cmovll %eax, %ebp
cmpl $0xf4241, 0xb8(%rbx)    # imm = 0xF4241
jl 0x8418
movq %rbx, %rdi
callq 0xdef7
jmp 0x8420
movq %rbx, %rdi
callq 0xdf35
cmpl $0xf423f, %r14d         # imm = 0xF423F
jg 0x8442
addl $0xa, %ebp
cmpl 0xb8(%rbx), %ebp
jge 0x8442
movq %rbx, %rdi
movl %ebp, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x825b
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: luaD_hook
void luaD_hook (lua_State *L, int event, int line) {
  lua_Hook hook = L->hook;
  if (hook && L->allowhook) {  /* make sure there is a hook */
    CallInfo *ci = L->ci;
    ptrdiff_t top = savestack(L, L->top);
    ptrdiff_t ci_top = savestack(L, ci->top);
    lua_Debug ar;
    ar.event = event;
    ar.currentline = line;
    ar.i_ci = ci;
    luaD_checkstack(L, LUA_MINSTACK);  /* ensure minimum stack size */
    ci->top = L->top + LUA_MINSTACK;
    lua_assert(ci->top <= L->stack_last);
    L->allowhook = 0;  /* cannot call hooks inside a hook */
    ci->callstatus |= CIST_HOOKED;
    lua_unlock(L);
    (*hook)(L, &ar);
    lua_lock(L);
    lua_assert(!L->allowhook);
    L->allowhook = 1;
    ci->top = restorestack(L, ci_top);
    L->top = restorestack(L, top);
    ci->callstatus &= ~CIST_HOOKED;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq 0xa8(%rdi), %r14
testq %r14, %r14
je 0x8526
movq %rdi, %rbx
cmpb $0x0, 0xcc(%rdi)
je 0x8526
movq 0x10(%rbx), %rax
movq 0x20(%rbx), %r15
movq 0x38(%rbx), %rcx
movq %rax, %r12
subq %rcx, %r12
movq 0x8(%r15), %r13
subq %rcx, %r13
movl %esi, (%rsp)
movl %edx, 0x28(%rsp)
movq %r15, 0x78(%rsp)
movq 0x30(%rbx), %rcx
subq %rax, %rcx
cmpq $0x14f, %rcx            # imm = 0x14F
jg 0x84e9
pushq $0x14
popq %rsi
movq %rbx, %rdi
callq 0x8349
movq 0x10(%rbx), %rax
addq $0x140, %rax            # imm = 0x140
movq %rax, 0x8(%r15)
movb $0x0, 0xcc(%rbx)
orb $0x4, 0x42(%r15)
movq %rsp, %rsi
movq %rbx, %rdi
callq *%r14
movb $0x1, 0xcc(%rbx)
movq 0x38(%rbx), %rax
addq %rax, %r13
movq %r13, 0x8(%r15)
addq %rax, %r12
movq %r12, 0x10(%rbx)
andb $-0x5, 0x42(%r15)
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: luaD_poscall
int luaD_poscall (lua_State *L, CallInfo *ci, StkId firstResult, int nres) {
  StkId res;
  int wanted = ci->nresults;
  if (L->hookmask & (LUA_MASKRET | LUA_MASKLINE)) {
    if (L->hookmask & LUA_MASKRET) {
      ptrdiff_t fr = savestack(L, firstResult);  /* hook may change stack */
      luaD_hook(L, LUA_HOOKRET, -1);
      firstResult = restorestack(L, fr);
    }
    L->oldpc = ci->previous->u.l.savedpc;  /* 'oldpc' for caller function */
  }
  res = ci->func;  /* res == final position of 1st result */
  L->ci = ci->previous;  /* back to caller */
  /* move results to proper place */
  return moveresults(L, firstResult, res, nres, wanted);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %r15d
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movswl 0x40(%rsi), %ebp
movl 0xc8(%rdi), %eax
testb $0x6, %al
je 0x88a4
testb $0x2, %al
je 0x8895
subq 0x38(%rbx), %r14
pushq $0x1
popq %rsi
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x8475
addq 0x38(%rbx), %r14
movq 0x10(%r12), %rdx
movq 0x28(%rdx), %rax
movq %rax, 0x28(%rbx)
jmp 0x88a9
movq 0x10(%r12), %rdx
pushq $0x1
popq %rax
movq (%r12), %rcx
movq %rdx, 0x20(%rbx)
movzwl %bp, %edx
testw %dx, %dx
je 0x897e
cmpl $0x1, %edx
je 0x88f5
cmpl $0xffff, %edx           # imm = 0xFFFF
jne 0x8911
xorl %eax, %eax
testl %r15d, %r15d
movl $0x0, %edx
cmovgl %r15d, %edx
shlq $0x4, %rdx
xorl %esi, %esi
cmpq %rsi, %rdx
je 0x893a
movups (%r14,%rsi), %xmm0
movups %xmm0, (%rcx,%rsi)
addq $0x10, %rsi
jmp 0x88e1
testl %r15d, %r15d
leaq 0x16d71(%rip), %rax     # 0x1f670
cmoveq %rax, %r14
movups (%r14), %xmm0
movups %xmm0, (%rcx)
pushq $0x1
popq %rdx
movl %edx, %eax
jmp 0x897e
xorl %edx, %edx
cmpl %r15d, %ebp
jle 0x893f
testl %r15d, %r15d
cmovlel %edx, %r15d
movq %r15, %rsi
shlq $0x4, %rsi
cmpq %rdx, %rsi
je 0x8961
movups (%r14,%rdx), %xmm0
movups %xmm0, (%rcx,%rdx)
addq $0x10, %rdx
jmp 0x8926
movl %r15d, %edx
jmp 0x897e
testl %ebp, %ebp
movl $0x0, %esi
cmovgl %ebp, %esi
shlq $0x4, %rsi
cmpq %rdx, %rsi
je 0x897c
movups (%r14,%rdx), %xmm0
movups %xmm0, (%rcx,%rdx)
addq $0x10, %rdx
jmp 0x894d
movslq %ebp, %rdx
addq %rcx, %rsi
addq $0x8, %rsi
cmpq %rdx, %r15
jge 0x897c
andl $0x0, (%rsi)
incq %r15
addq $0x10, %rsi
jmp 0x896b
movl %ebp, %edx
movslq %edx, %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
movq %rcx, 0x10(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: luaD_call
void luaD_call (lua_State *L, StkId func, int nResults) {
  if (++L->nCcalls >= LUAI_MAXCCALLS)
    stackerror(L);
  if (!luaD_precall(L, func, nResults))  /* is a Lua function? */
    luaV_execute(L);  /* call it */
  L->nCcalls--;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movzwl 0xc6(%rdi), %eax
incl %eax
movw %ax, 0xc6(%rdi)
cmpw $0xc8, %ax
jb 0x89b7
je 0x89d4
cmpw $0xe1, %ax
jae 0x89e5
movq %rbx, %rdi
callq 0x8537
testl %eax, %eax
jne 0x89cb
movq %rbx, %rdi
callq 0x10bdc
decw 0xc6(%rbx)
popq %rbx
retq
leaq 0x16a4c(%rip), %rsi     # 0x1f427
movq %rbx, %rdi
xorl %eax, %eax
callq 0x7930
pushq $0x6
popq %rsi
movq %rbx, %rdi
callq 0x80fc
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: lua_resume
LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs) {
  int status;
  unsigned short oldnny = L->nny;  /* save "number of non-yieldable" calls */
  lua_lock(L);
  luai_userstateresume(L, nargs);
  L->nCcalls = (from) ? from->nCcalls + 1 : 1;
  L->nny = 0;  /* allow yields */
  api_checknelems(L, (L->status == LUA_OK) ? nargs + 1 : nargs);
  status = luaD_rawrunprotected(L, resume, &nargs);
  if (status == -1)  /* error calling 'lua_resume'? */
    status = LUA_ERRRUN;
  else {  /* continue running after recoverable errors */
    while (errorstatus(status) && recover(L, status)) {
      /* unroll continuation */
      status = luaD_rawrunprotected(L, unroll, &status);
    }
    if (errorstatus(status)) {  /* unrecoverable error? */
      L->status = cast_byte(status);  /* mark thread as 'dead' */
      seterrorobj(L, status, L->top);  /* push error message */
      L->ci->top = L->top;
    }
    else lua_assert(status == L->status);  /* normal end or yield */
  }
  L->nny = oldnny;  /* restore 'nny' */
  L->nCcalls--;
  lua_assert(L->nCcalls == ((from) ? from->nCcalls : 0));
  lua_unlock(L);
  return status;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl %edx, 0xc(%rsp)
testq %rsi, %rsi
je 0x8a2e
movzwl 0xc6(%rsi), %eax
incl %eax
jmp 0x8a32
movw $0x1, %ax
movzwl 0xc4(%rbx), %r13d
movw %ax, 0xc6(%rbx)
andw $0x0, 0xc4(%rbx)
leaq 0x117(%rip), %rsi       # 0x8b67
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
callq 0x81eb
movl %eax, 0x8(%rsp)
cmpl $-0x1, %eax
je 0x8b44
movl %eax, %ebp
leaq 0x20(%rbx), %rax
leaq 0x1ec(%rip), %r12       # 0x8c63
cmpl $0x2, %ebp
jl 0x8b47
movq %rax, %r14
movq (%r14), %r14
testq %r14, %r14
je 0x8b1b
testb $0x10, 0x42(%r14)
jne 0x8a9c
addq $0x10, %r14
jmp 0x8a83
movl %r13d, %r15d
movq %r12, %r13
movq 0x38(%rbx), %r12
addq 0x38(%r14), %r12
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, 0x10(%rsp)
callq 0x95bc
movq %rbx, %rdi
movl %ebp, %esi
movq %r12, %rdx
movq %r13, %r12
movl %r15d, %r13d
leaq 0x8(%rsp), %r15
callq 0x818e
movq %r14, 0x20(%rbx)
movb 0x42(%r14), %al
andb $0x1, %al
movb %al, 0xcc(%rbx)
andw $0x0, 0xc4(%rbx)
movq %rbx, %rdi
callq 0x83b9
movq 0x28(%r14), %rax
movq %rax, 0xb0(%rbx)
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x81eb
movl %eax, %ebp
movq 0x10(%rsp), %rax
movl %ebp, 0x8(%rsp)
jmp 0x8a77
cmpl $0x2, %ebp
jl 0x8b47
movb %bpl, 0xc(%rbx)
movq 0x10(%rbx), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x818e
movq 0x10(%rbx), %rax
movq 0x20(%rbx), %rcx
movq %rax, 0x8(%rcx)
movl 0x8(%rsp), %ebp
jmp 0x8b47
pushq $0x2
popq %rbp
movw %r13w, 0xc4(%rbx)
decw 0xc6(%rbx)
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: resume
static void resume (lua_State *L, void *ud) {
  int nCcalls = L->nCcalls;
  int n = *(cast(int*, ud));  /* number of arguments */
  StkId firstArg = L->top - n;  /* first argument */
  CallInfo *ci = L->ci;
  if (nCcalls >= LUAI_MAXCCALLS)
    resume_error(L, "C stack overflow", firstArg);
  if (L->status == LUA_OK) {  /* may be starting a coroutine */
    if (ci != &L->base_ci)  /* not in base level? */
      resume_error(L, "cannot resume non-suspended coroutine", firstArg);
    /* coroutine is in base level; start running it */
    if (!luaD_precall(L, firstArg - 1, LUA_MULTRET))  /* Lua function? */
      luaV_execute(L);  /* call it */
  }
  else if (L->status != LUA_YIELD)
    resume_error(L, "cannot resume dead coroutine", firstArg);
  else {  /* resuming from previous yield */
    L->status = LUA_OK;  /* mark that it is running (again) */
    ci->func = restorestack(L, ci->extra);
    if (isLua(ci))  /* yielded inside a hook? */
      luaV_execute(L);  /* just continue running Lua code */
    else {  /* 'common' yield */
      if (ci->u.c.k != NULL) {  /* does it have a continuation function? */
        lua_unlock(L);
        n = (*ci->u.c.k)(L, LUA_YIELD, ci->u.c.ctx); /* call continuation */
        lua_lock(L);
        api_checknelems(L, n);
        firstArg = L->top - n;  /* yield results come from continuation */
      }
      luaD_poscall(L, ci, firstArg, n);  /* finish 'luaD_precall' */
    }
    unroll(L, NULL);  /* run continuation */
  }
  lua_assert(nCcalls == L->nCcalls);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq (%rsi), %rcx
movq %rcx, %rdx
shlq $0x4, %rdx
movq 0x10(%rdi), %rax
subq %rdx, %rax
cmpw $0xc8, 0xc6(%rdi)
jae 0x8c3f
movq 0x20(%rbx), %r14
movzbl 0xc(%rbx), %edx
cmpl $0x1, %edx
je 0x8bce
testl %edx, %edx
jne 0x8c48
leaq 0x60(%rbx), %rcx
cmpq %rcx, %r14
jne 0x8c51
addq $-0x10, %rax
pushq $-0x1
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8537
testl %eax, %eax
je 0x8c30
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movb $0x0, 0xc(%rbx)
movq 0x38(%rbx), %rdx
addq 0x38(%r14), %rdx
movq %rdx, (%r14)
testb $0x2, 0x42(%r14)
jne 0x8c1a
movq 0x20(%r14), %r8
testq %r8, %r8
je 0x8c0a
movq 0x30(%r14), %rdx
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq *%r8
movl %eax, %ecx
movq 0x10(%rbx), %rax
movslq %ecx, %rdx
shlq $0x4, %rdx
subq %rdx, %rax
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x8859
jmp 0x8c22
movq %rbx, %rdi
callq 0x10bdc
movq %rbx, %rdi
xorl %esi, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x8c63
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x10bdc
leaq 0x167e1(%rip), %rsi     # 0x1f427
jmp 0x8c58
leaq 0x1680f(%rip), %rsi     # 0x1f45e
jmp 0x8c58
leaq 0x167e0(%rip), %rsi     # 0x1f438
movq %rbx, %rdi
movq %rax, %rdx
callq 0x8f2d
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: unroll
static void unroll (lua_State *L, void *ud) {
  if (ud != NULL)  /* error status? */
    finishCcall(L, *(int *)ud);  /* finish 'lua_pcallk' callee */
  while (L->ci != &L->base_ci) {  /* something in the stack */
    if (!isLua(L->ci))  /* C function? */
      finishCcall(L, LUA_YIELD);  /* complete its execution */
    else {  /* Lua function */
      luaV_finishOp(L);  /* finish interrupted instruction */
      luaV_execute(L);  /* execute down to higher C 'boundary' */
    }
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
testq %rsi, %rsi
je 0x8c79
movl (%rsi), %esi
movq %rbx, %rdi
callq 0x8f5d
leaq 0x60(%rbx), %r14
pushq $0x1
popq %rbp
movq 0x20(%rbx), %rax
cmpq %r14, %rax
je 0x8cad
testb $0x2, 0x42(%rax)
jne 0x8c9b
movq %rbx, %rdi
movl %ebp, %esi
callq 0x8f5d
jmp 0x8c80
movq %rbx, %rdi
callq 0x10ab9
movq %rbx, %rdi
callq 0x10bdc
jmp 0x8c80
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: lua_yieldk
LUA_API int lua_yieldk (lua_State *L, int nresults, lua_KContext ctx,
                        lua_KFunction k) {
  CallInfo *ci = L->ci;
  luai_userstateyield(L, nresults);
  lua_lock(L);
  api_checknelems(L, nresults);
  if (L->nny > 0) {
    if (L != G(L)->mainthread)
      luaG_runerror(L, "attempt to yield across a C-call boundary");
    else
      luaG_runerror(L, "attempt to yield from outside a coroutine");
  }
  L->status = LUA_YIELD;
  ci->extra = savestack(L, ci->func);  /* save current 'func' */
  if (isLua(ci)) {  /* inside a hook? */
    api_check(L, k == NULL, "hooks cannot continue after yielding");
  }
  else {
    if ((ci->u.c.k = k) != NULL)  /* is there a continuation? */
      ci->u.c.ctx = ctx;  /* save context */
    ci->func = L->top - nresults - 1;  /* protect stack below results */
    luaD_throw(L, LUA_YIELD);
  }
  lua_assert(ci->callstatus & CIST_HOOKED);  /* must be inside a hook */
  lua_unlock(L);
  return 0;  /* return to 'luaD_hook' */
}

// Assembly:
pushq %rax
cmpw $0x0, 0xc4(%rdi)
jne 0x8ce8
movq 0x20(%rdi), %rax
movb $0x1, 0xc(%rdi)
movq (%rax), %r8
subq 0x38(%rdi), %r8
movq %r8, 0x38(%rax)
testb $0x2, 0x42(%rax)
je 0x8cfe
xorl %eax, %eax
popq %rcx
retq
movq 0x18(%rdi), %rax
cmpq %rdi, 0xc8(%rax)
jne 0x8d2b
leaq 0x166e9(%rip), %rsi     # 0x1f3e5
jmp 0x8d32
movq %rcx, 0x20(%rax)
testq %rcx, %rcx
je 0x8d0b
movq %rdx, 0x30(%rax)
movq 0x10(%rdi), %rcx
movslq %esi, %rdx
shlq $0x4, %rdx
negq %rdx
addq %rdx, %rcx
addq $-0x10, %rcx
movq %rcx, (%rax)
pushq $0x1
popq %rsi
callq 0x80fc
leaq 0x16689(%rip), %rsi     # 0x1f3bb
xorl %eax, %eax
callq 0x7930