LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/lapi.c
// Function: lua_load
LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
                      const char *chunkname, const char *mode) {
  ZIO z;
  int status;
  lua_lock(L);
  if (!chunkname) chunkname = "?";
  luaZ_init(L, &z, reader, data);
  status = luaD_protectedparser(L, &z, chunkname, mode);
  if (status == LUA_OK) {  /* no errors? */
    LClosure *f = clLvalue(L->top - 1);  /* get newly created function */
    if (f->nupvalues >= 1) {  /* does it have an upvalue? */
      /* get global table from registry */
      Table *reg = hvalue(&G(L)->l_registry);
      const TValue *gt = luaH_getint(reg, LUA_RIDX_GLOBALS);
      /* set global table as 1st upvalue of 'f' (may be LUA_ENV) */
      setobj(L, f->upvals[0]->v, gt);
      luaC_upvalbarrier(L, f->upvals[0]);
    }
  }
  lua_unlock(L);
  return status;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %r8, %r14
movq %rdx, %rax
movq %rsi, %rdx
movq %rdi, %rbx
testq %rcx, %rcx
leaq 0x1a3b6(%rip), %r15     # 0x21366
cmovneq %rcx, %r15
leaq 0x8(%rsp), %r12
movq %r12, %rsi
movq %rax, %rcx
callq 0x13b1f
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x9187
movl %eax, %ebp
testl %eax, %eax
je 0x6fea
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rbx), %rax
movq -0x10(%rax), %r14
cmpb $0x0, 0xa(%r14)
je 0x6fdb
movq 0x18(%rbx), %rax
movq 0x40(%rax), %rdi
movl $0x2, %esi
callq 0xff77
movq 0x20(%r14), %rcx
movq (%rcx), %rcx
movups (%rax), %xmm0
movups %xmm0, (%rcx)
movq 0x20(%r14), %rsi
movq (%rsi), %rax
movb 0x8(%rax), %cl
shrb $0x6, %cl
movq %rsi, %rdx
addq $0x10, %rdx
cmpq %rdx, %rax
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x6fdb
movq %rbx, %rdi
callq 0x9efb
jmp 0x6fdb
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/lapi.c
// Function: lua_next
LUA_API int lua_next (lua_State *L, int idx) {
  StkId t;
  int more;
  lua_lock(L);
  t = index2addr(L, idx);
  api_check(L, ttistable(t), "table expected");
  more = luaH_next(L, hvalue(t), L->top - 1);
  if (more) {
    api_incr_top(L);
  }
  else  /* no more elements */
    L->top -= 1;  /* remove key */
  lua_unlock(L);
  return more;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x5e7d
movq (%rax), %rsi
movq 0x10(%rbx), %rdx
addq $-0x10, %rdx
movq %rbx, %rdi
callq 0xf608
xorl %ecx, %ecx
testl %eax, %eax
setne %cl
movq 0x10(%rbx), %rdx
shll $0x5, %ecx
addq %rdx, %rcx
addq $-0x10, %rcx
movq %rcx, 0x10(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x71e9
movq %rbx, %rdi
callq 0x117a4
jmp 0x7215
testl %esi, %esi
jne 0x7215
movq 0x10(%rbx), %r14
leaq 0x1cad0(%rip), %rsi     # 0x23cc8
movq %rbx, %rdi
xorl %edx, %edx
callq 0xf2f1
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 0x722f
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xa65d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x5e7d
movq 0x10(%rbx), %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x11a4c
addq $0x10, 0x10(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xf5bd
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 0x72af
movq %rbx, %rdi
callq 0xa65d
addq $0x28, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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
movq $0x0, (%r14)
callq 0x5e7d
movq %rax, %rdi
movl %ebp, %esi
movq %r14, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x7310
testq %rax, %rax
je 0x7307
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_O1/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 0x7350
cmpl $0x26, %eax
jne 0x7360
testl %esi, %esi
jle 0x7360
movq (%rdi), %rdi
movzbl 0xa(%rdi), %eax
cmpl %esi, %eax
jl 0x7360
decl %esi
shlq $0x4, %rsi
leaq (%rdi,%rsi), %rax
addq $0x20, %rax
movq %rax, (%rdx)
leaq 0x1c981(%rip), %rax     # 0x23cc8
testq %rcx, %rcx
je 0x739b
movq %rdi, (%rcx)
retq
testl %esi, %esi
jle 0x7360
movq (%rdi), %rcx
movq 0x18(%rcx), %rax
cmpl %esi, 0x10(%rax)
jge 0x7363
xorl %eax, %eax
retq
decl %esi
movq 0x20(%rcx,%rsi,8), %rdi
movq (%rdi), %rdi
movq %rdi, (%rdx)
testq %r8, %r8
je 0x737d
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 0x19e29(%rip), %rax     # 0x211c0
cmovneq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/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
xorl %eax, %eax
leaq 0x18(%rsp), %r14
movq %rax, (%r14)
leaq 0x10(%rsp), %r15
movq %rax, (%r15)
leaq 0x8(%rsp), %r12
movq %rax, (%r12)
callq 0x5e7d
movq %rax, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %r15, %rcx
movq %r12, %r8
callq 0x7310
movq %rax, %r14
testq %rax, %rax
je 0x7458
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 0x742d
movq 0x10(%rbx), %rax
testb $0x40, 0x8(%rax)
je 0x7458
testb $0x4, 0x9(%rsi)
je 0x7458
movq (%rax), %rdx
testb $0x3, 0x9(%rdx)
je 0x7458
movq %rbx, %rdi
callq 0x9ddc
jmp 0x7458
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x7458
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 0x7458
movq %rbx, %rdi
callq 0x9efb
movq %r14, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x5e7d
movl 0x8(%rax), %ecx
andl $0x3f, %ecx
cmpl $0x26, %ecx
je 0x749f
cmpl $0x6, %ecx
jne 0x74b2
movq %r14, %rdi
movl %ebp, %esi
callq 0x5e7d
movq (%rax), %rax
movslq %ebx, %rcx
movq 0x18(%rax,%rcx,8), %rax
jmp 0x74b4
movq (%rax), %rax
movslq %ebx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
addq $0x10, %rax
jmp 0x74b4
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebp
movl %ecx, %r14d
movl %edx, %r15d
movq %rdi, %rbx
callq 0x5e7d
movq (%rax), %r12
movslq %r15d, %r13
leaq -0x1(%r13), %r15
movq %rbx, %rdi
movl %r14d, %esi
callq 0x5e7d
movq (%rax), %r14
movslq %ebp, %rbp
movq 0x18(%r12,%r13,8), %rsi
movq %rbx, %rdi
callq 0x9f70
movq 0x18(%r14,%rbp,8), %rax
movq %rax, 0x18(%r12,%r13,8)
incq 0x8(%rax)
leaq 0x10(%rax), %rcx
cmpq %rcx, (%rax)
je 0x751b
movl $0x1, 0x18(%rax)
movq 0x20(%r12,%r15,8), %rsi
movq (%rsi), %rax
movb 0x8(%rax), %cl
shrb $0x6, %cl
movq %rsi, %rdx
addq $0x10, %rdx
cmpq %rdx, %rax
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x7552
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x9efb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/ldebug.c
// Function: lua_sethook
LUA_API void lua_sethook (lua_State *L, lua_Hook func, int mask, int count) {
  if (func == NULL || mask == 0) {  /* turn off hooks? */
    mask = 0;
    func = NULL;
  }
  if (isLua(L->ci))
    L->oldpc = L->ci->u.l.savedpc;
  L->hook = func;
  L->basehookcount = count;
  resethookcount(L);
  L->hookmask = cast_byte(mask);
}

// Assembly:
movq 0x20(%rdi), %rax
testb $0x2, 0x42(%rax)
je 0x7576
movq 0x28(%rax), %rax
movq %rax, 0x28(%rdi)
xorl %eax, %eax
testl %edx, %edx
movq %rsi, %r8
cmoveq %rax, %r8
testq %rsi, %rsi
movzbl %dl, %edx
movq %r8, 0xa8(%rdi)
movl %ecx, 0xbc(%rdi)
movl %ecx, 0xc0(%rdi)
cmovel %eax, %edx
movl %edx, 0xc8(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x7613
movq 0x20(%rdi), %rcx
addq $0x60, %rdi
testl %esi, %esi
setne %r9b
cmpq %rdi, %rcx
setne %r8b
andb %r8b, %r9b
cmpb $0x1, %r9b
jne 0x75fb
movl %esi, %r9d
leal -0x1(%r9), %esi
movq 0x10(%rcx), %rcx
cmpq %rdi, %rcx
setne %r8b
cmpl $0x2, %r9d
jl 0x75fb
cmpq %rdi, %rcx
jne 0x75de
testl %esi, %esi
sete %sil
andb %r8b, %sil
cmpb $0x1, %sil
jne 0x7613
movq %rcx, 0x78(%rdx)
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpb $0x1, 0xc(%rdi)
jne 0x763e
movq 0x20(%rbx), %rax
movq 0x38(%rbx), %rcx
movq (%rax), %rdi
movq 0x38(%rax), %r8
addq %rcx, %r8
movq %r8, (%rax)
subq %rcx, %rdi
movq %rdi, 0x38(%rax)
testq %rsi, %rsi
je 0x7676
leaq 0x8(%rsp), %rcx
movq $0x0, (%rcx)
movq 0x78(%rsi), %rsi
movq %rbx, %rdi
callq 0x76bd
testq %rax, %rax
je 0x7695
movq 0x10(%rbx), %rcx
movq 0x8(%rsp), %rdx
movups (%rdx), %xmm0
movups %xmm0, (%rcx)
addq $0x10, 0x10(%rbx)
jmp 0x7695
movq 0x10(%rbx), %rax
cmpl $0x46, -0x8(%rax)
jne 0x7693
movq -0x10(%rax), %rax
movq 0x18(%rax), %rdi
movl %edx, %esi
xorl %edx, %edx
callq 0x9d9b
jmp 0x7695
xorl %eax, %eax
cmpb $0x1, 0xc(%rbx)
jne 0x76b7
movq 0x20(%rbx), %rcx
movq 0x38(%rbx), %rdx
movq (%rcx), %rsi
movq 0x38(%rcx), %rdi
addq %rdx, %rdi
movq %rdi, (%rcx)
subq %rdx, %rsi
movq %rsi, 0x38(%rcx)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r12
pushq %rbx
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
testb $0x2, 0x42(%rsi)
jne 0x76e1
movq (%r15), %r12
addq $0x10, %r12
xorl %eax, %eax
jmp 0x7708
testl %ebp, %ebp
js 0x771c
movq (%r15), %rax
movq 0x20(%r15), %r12
movq (%rax), %rax
movq 0x18(%rax), %rdi
movq 0x28(%r15), %rdx
subq 0x38(%rdi), %rdx
shrq $0x2, %rdx
decl %edx
movl %ebp, %esi
callq 0x9d9b
movslq %ebp, %rdx
testq %rax, %rax
jne 0x7782
cmpq %r15, 0x20(%r14)
je 0x7755
movq 0x18(%r15), %r14
jmp 0x7759
negl %ebp
movq (%r15), %rcx
movq 0x20(%r15), %rdx
movq (%rcx), %rax
movq 0x18(%rax), %rax
movzbl 0xa(%rax), %eax
subq %rcx, %rdx
shrq $0x4, %rdx
subl %eax, %edx
cmpl %ebp, %edx
jle 0x77a0
shll $0x4, %eax
movl %ebp, %edx
shlq $0x4, %rdx
addq %rdx, %rcx
addq %rax, %rcx
leaq 0x19c01(%rip), %rax     # 0x21354
jmp 0x778e
addq $0x10, %r14
movq (%r14), %rax
subq %r12, %rax
sarq $0x4, %rax
cmpq %rdx, %rax
setge %sil
testl %ebp, %ebp
setg %dil
leaq 0x19bd0(%rip), %rax     # 0x21347
xorl %ecx, %ecx
testb %sil, %dil
cmoveq %rcx, %rax
je 0x7794
shlq $0x4, %rdx
leaq (%rdx,%r12), %rcx
addq $-0x10, %rcx
movq %rcx, (%rbx)
movq %rax, %rcx
movq %rcx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %ecx, %ecx
jmp 0x7794
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq $0x0, 0x8(%rsp)
cmpb $0x1, 0xc(%rdi)
jne 0x77d7
movq 0x20(%rbx), %rax
movq 0x38(%rbx), %rcx
movq (%rax), %rdi
movq 0x38(%rax), %r8
addq %rcx, %r8
movq %r8, (%rax)
subq %rcx, %rdi
movq %rdi, 0x38(%rax)
movq 0x78(%rsi), %rsi
leaq 0x8(%rsp), %rcx
movq %rbx, %rdi
callq 0x76bd
testq %rax, %rax
je 0x7802
movq 0x8(%rsp), %rcx
movq 0x10(%rbx), %rdx
movups -0x10(%rdx), %xmm0
movups %xmm0, (%rcx)
addq $-0x10, 0x10(%rbx)
cmpb $0x1, 0xc(%rbx)
jne 0x7824
movq 0x20(%rbx), %rcx
movq 0x38(%rbx), %rdx
movq (%rcx), %rsi
movq 0x38(%rcx), %rdi
addq %rdx, %rdi
movq %rdi, (%rcx)
subq %rdx, %rsi
movq %rsi, 0x38(%rcx)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r14
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 0x7d35
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 0xf0(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
movq %rbx, %rdi
callq 0xbb66
testb $0x2, 0x42(%r14)
je 0x7daf
movq (%r14), %rcx
movq (%rcx), %rcx
movq 0x18(%rcx), %rdi
movq 0x48(%rdi), %rsi
movq 0x68(%rdi), %rdx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testq %rsi, %rsi
je 0x7da4
movq 0x28(%r14), %rcx
subq 0x38(%rdi), %rcx
shlq $0x1e, %rcx
movabsq $-0x100000000, %rdi     # imm = 0xFFFFFFFF00000000
addq %rcx, %rdi
sarq $0x20, %rdi
movl (%rsi,%rdi,4), %ecx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7fbf
movq %rbx, %rdi
callq 0x8017
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq $0x0, 0x8(%rsp)
movq 0x20(%rdi), %rcx
testb $0x2, 0x42(%rcx)
jne 0x7dd9
xorl %eax, %eax
jmp 0x7e7b
movq %rsi, %rdx
movq (%rcx), %rax
movq (%rax), %rsi
movzbl 0xa(%rsi), %r8d
movb $0x1, %dil
testq %r8, %r8
je 0x7e0d
shll $0x3, %r8d
xorl %eax, %eax
xorl %r9d, %r9d
movq 0x20(%rsi,%r9), %r10
cmpq %rdx, (%r10)
je 0x7e11
addq $0x8, %r9
cmpq %r9, %r8
jne 0x7df8
jmp 0x7e3d
xorl %eax, %eax
jmp 0x7e3d
movq 0x18(%rsi), %rax
movq 0x58(%rax), %rax
movq (%rax,%r9,2), %rax
leaq 0x18(%rax), %rdi
testq %rax, %rax
leaq 0x1953b(%rip), %rax     # 0x21366
cmovneq %rdi, %rax
movq %rax, 0x8(%rsp)
leaq 0x1ae85(%rip), %rax     # 0x22cc0
xorl %edi, %edi
testb %dil, %dil
je 0x7e7b
movq 0x20(%rcx), %rax
subq %rax, %rdx
js 0x7dd2
movq 0x8(%rcx), %rdi
subq %rax, %rdi
cmpq %rdi, %rdx
jge 0x7dd2
movq 0x18(%rsi), %rdi
movq 0x28(%rcx), %rsi
subq 0x38(%rdi), %rsi
shrq $0x2, %rsi
decl %esi
shrq $0x4, %rdx
leaq 0x8(%rsp), %rcx
callq 0x81a8
testq %rax, %rax
je 0x7e9e
movq 0x8(%rsp), %rcx
leaq 0x19514(%rip), %rsi     # 0x213a0
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
jmp 0xbf04
leaq 0x1be23(%rip), %rax     # 0x23cc8
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x7eef
movsd (%r12), %xmm0
movsd %xmm0, (%rsp)
jmp 0x7f00
movq %rsp, %rsi
movq %r12, %rdi
callq 0x10da8
testl %eax, %eax
cmoveq %r12, %r14
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7c9a
// File: /workspace/github_c_makefile_star2_O1/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 0x7f30
movq (%r15), %rax
movq %rax, 0x8(%rsp)
jmp 0x7f45
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
xorl %edx, %edx
callq 0x10e26
testl %eax, %eax
cmoveq %r15, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7db7
leaq 0x19380(%rip), %rsi     # 0x212d7
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x7cd8
// File: /workspace/github_c_makefile_star2_O1/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 0x1035b
movq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1035b
movq %rax, %r15
movq %r14, %rdi
movq %rax, %rsi
callq 0x5290
testl %eax, %eax
jne 0x7fa8
leaq 0x19363(%rip), %rsi     # 0x212fe
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x7cd8
leaq 0x19370(%rip), %rsi     # 0x2131f
movq %rbx, %rdi
movq %r14, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x7cd8
// File: /workspace/github_c_makefile_star2_O1/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 0x7fee
movq %rdx, %rax
addq $0x18, %rax
movq %rsp, %rdi
movl $0x3c, %edx
movq %rax, %rsi
callq 0xbf88
jmp 0x7ff4
movw $0x3f, (%rsp)
leaq 0x19342(%rip), %rsi     # 0x2133d
movq %rsp, %rdx
movq %r15, %rdi
movl %ebx, %ecx
movq %r14, %r8
xorl %eax, %eax
callq 0xbf04
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x805f
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
movq %rbx, %rdi
movl $0x1, %edx
callq 0x8dac
movq %rbx, %rdi
movl $0x2, %esi
callq 0x848c
// File: /workspace/github_c_makefile_star2_O1/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
cmpb $0x1, %bpl
jne 0x80aa
movl 0xbc(%rbx), %eax
movl %eax, 0xc0(%rbx)
jmp 0x80b4
testb $0x4, %r15b
je 0x816c
movb 0x42(%r14), %al
testb $0x40, %al
jne 0x810c
testb %bpl, %bpl
je 0x80d3
movq %rbx, %rdi
movl $0x3, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x880d
testb $0x4, %r15b
je 0x815e
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 0x8114
movslq %edi, %rdx
movl (%rax,%rdx,4), %edx
jmp 0x8119
andb $-0x41, %al
movb %al, 0x42(%r14)
jmp 0x816c
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
testl %edi, %edi
je 0x8151
movq 0x28(%rbx), %rdi
cmpq %rdi, %rsi
jbe 0x8151
testq %rax, %rax
je 0x8148
subq %rcx, %rdi
shlq $0x1e, %rdi
movabsq $-0x100000000, %rcx     # imm = 0xFFFFFFFF00000000
addq %rdi, %rcx
sarq $0x20, %rcx
movl (%rax,%rcx,4), %eax
jmp 0x814d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %eax, %edx
je 0x815e
movq %rbx, %rdi
movl $0x2, %esi
callq 0x880d
movq 0x28(%r14), %rax
movq %rax, 0x28(%rbx)
cmpb $0x1, 0xc(%rbx)
je 0x8177
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
testb %bpl, %bpl
je 0x8186
movl $0x1, 0xc0(%rbx)
addq $-0x4, 0x28(%r14)
orb $0x40, 0x42(%r14)
movq 0x10(%rbx), %rax
addq $-0x10, %rax
movq %rax, (%r14)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x848c
// File: /workspace/github_c_makefile_star2_O1/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 0x8459
movq %rbx, %rcx
callq 0x81a8
leaq 0x18f19(%rip), %rcx     # 0x21366
testq %rax, %rax
je 0x8486
cmpb $0x63, (%rax)
jne 0x8486
jmp 0x8489
movq 0x30(%rdi), %rax
andl $0xfffffeff, %edx       # imm = 0xFFFFFEFF
shlq $0x4, %rdx
movl 0x8(%rax,%rdx), %ecx
andl $0xf, %ecx
cmpl $0x4, %ecx
jne 0x847f
addq %rdx, %rax
movq (%rax), %rcx
addq $0x18, %rcx
jmp 0x8486
leaq 0x18ee0(%rip), %rcx     # 0x21366
movq %rcx, (%rbx)
popq %rbx
retq
nop
// File: /workspace/github_c_makefile_star2_O1/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 0x84e9
movq 0x18(%rbx), %r14
movb %sil, 0xc(%rbx)
movq 0xc8(%r14), %rax
cmpq $0x0, 0x58(%rax)
jne 0x84fd
cmpq $0x0, 0xc0(%r14)
je 0x84e4
movq 0x10(%rbx), %rdx
movq %rbx, %rdi
callq 0x8520
movq 0x10(%rbx), %rax
movq 0x20(%rbx), %rcx
cmpq %rax, 0x8(%rcx)
jae 0x84da
movq %rax, 0x8(%rcx)
movq %rbx, %rdi
callq *0xc0(%r14)
callq 0x5080
movl %esi, 0xd0(%rdi)
addq $0x8, %rdi
movl $0x1, %esi
callq 0x5420
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 0x848c
// File: /workspace/github_c_makefile_star2_O1/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 0x8541
cmpl $0x4, %esi
jne 0x8564
movq 0x18(%r14), %rax
movq 0xd8(%rax), %rax
jmp 0x8555
leaq 0x18eb7(%rip), %rsi     # 0x213ff
movl $0x17, %edx
movq %r14, %rdi
callq 0xf2f1
movq %rax, (%rbx)
movzbl 0x8(%rax), %eax
orl $0x40, %eax
movl %eax, 0x8(%rbx)
jmp 0x856f
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_O1/tylerneylon[P]APIsWithLua/lua/ldo.c
// Function: luaD_rawrunprotected
int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) {
  unsigned short oldnCcalls = L->nCcalls;
  struct lua_longjmp lj;
  lj.status = LUA_OK;
  lj.previous = L->errorJmp;  /* chain new error handler */
  L->errorJmp = &lj;
  LUAI_TRY(L, &lj,
    (*f)(L, ud);
  );
  L->errorJmp = lj.previous;  /* restore old error handler */
  L->nCcalls = oldnCcalls;
  return lj.status;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movzwl 0xc6(%rdi), %ebp
movq %rsp, %rax
movl $0x0, 0xd0(%rax)
movq 0x58(%rdi), %rcx
movq %rcx, (%rax)
movq %rax, 0x58(%rdi)
leaq 0x8(%rsp), %rdi
callq 0x5280
testl %eax, %eax
jne 0x85cb
movq %rbx, %rdi
movq %r15, %rsi
callq *%r14
movq (%rsp), %rax
movq %rax, 0x58(%rbx)
movw %bp, 0xc6(%rbx)
movl 0xd0(%rsp), %eax
addq $0xd8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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), %rbp
movq %rbp, %r12
shlq $0x4, %r12
movl %esi, 0x4(%rsp)
movslq %esi, %r13
movq %r13, %r15
shlq $0x4, %r15
movq %r14, %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0xb3eb
movq %rax, 0x38(%rbx)
cmpl %r13d, %ebp
jge 0x864e
leaq (%r12,%rax), %rcx
addq $0x8, %rcx
subq %rbp, %r13
movl $0x0, (%rcx)
addq $0x10, %rcx
decq %r13
jne 0x863f
movl 0x4(%rsp), %ecx
movl %ecx, 0xb8(%rbx)
leaq (%rax,%r15), %rcx
addq $-0x50, %rcx
movq %rcx, 0x30(%rbx)
movq 0x10(%rbx), %rdx
movq 0x40(%rbx), %rcx
subq %r14, %rdx
addq %rax, %rdx
movq %rdx, 0x10(%rbx)
testq %rcx, %rcx
je 0x8693
movq (%rcx), %rdx
movq 0x10(%rcx), %rsi
subq %r14, %rdx
addq %rax, %rdx
movq %rdx, (%rcx)
movq %rsi, %rcx
testq %rsi, %rsi
jne 0x867b
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x86d4
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 0x86ce
movq 0x20(%rax), %rdx
subq %r14, %rdx
addq %rdx, %rcx
movq %rcx, 0x20(%rax)
movq 0x10(%rax), %rax
jmp 0x8697
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x872a
movq 0x10(%rbx), %rcx
subq 0x38(%rbx), %rcx
shrq $0x4, %rcx
addl %eax, %ecx
cmpl $0xf423c, %ecx          # imm = 0xF423C
jge 0x8737
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 0x85ef
movq %rbx, %rdi
movl $0x6, %esi
callq 0x848c
movq %rbx, %rdi
movl $0xf4308, %esi          # imm = 0xF4308
callq 0x85ef
leaq 0x18cce(%rip), %rsi     # 0x21419
movq %rbx, %rdi
xorl %eax, %eax
callq 0x7cd8
// File: /workspace/github_c_makefile_star2_O1/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
movq 0x20(%rdi), %rax
testq %rax, %rax
je 0x877a
movq 0x8(%rax), %rcx
movq 0x10(%rax), %rax
cmpq %rcx, %r14
cmovbq %rcx, %r14
jmp 0x8764
subq 0x38(%rbx), %r14
shrq $0x4, %r14
leal 0x1(%r14), %eax
leal 0x8(%r14), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
sarl $0x3, %ecx
leal (%rcx,%r14), %eax
incl %eax
movl $0xf4236, %ebp          # imm = 0xF4236
cmpl %ebp, %eax
cmovll %eax, %ebp
cmpl $0xf4241, 0xb8(%rbx)    # imm = 0xF4241
jl 0x87b8
movq %rbx, %rdi
callq 0xeaf8
jmp 0x87c0
movq %rbx, %rdi
callq 0xeb3b
cmpl $0xf423f, %r14d         # imm = 0xF423F
jg 0x87e2
addl $0xa, %ebp
cmpl 0xb8(%rbx), %ebp
jge 0x87e2
movq %rbx, %rdi
movl %ebp, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x85ef
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x88b8
movq %rdi, %rbx
cmpb $0x0, 0xcc(%rdi)
je 0x88b8
movq 0x10(%rbx), %r13
movq 0x20(%rbx), %r15
movq 0x38(%rbx), %rax
movq 0x8(%r15), %r12
movl %esi, (%rsp)
movl %edx, 0x28(%rsp)
movq %r15, 0x78(%rsp)
movq 0x30(%rbx), %rcx
subq %r13, %rcx
subq %rax, %r13
subq %rax, %r12
cmpq $0x14f, %rcx            # imm = 0x14F
jg 0x8878
movq %rbx, %rdi
movl $0x14, %esi
callq 0x86e3
movl $0x140, %eax            # imm = 0x140
addq 0x10(%rbx), %rax
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, %r12
movq %r12, 0x8(%r15)
addq %rax, %r13
movq %r13, 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_O1/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, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movswl 0x40(%rsi), %r12d
movl 0xc8(%rdi), %eax
testb $0x6, %al
je 0x8c59
testb $0x2, %al
je 0x8c4d
subq 0x38(%rbx), %r14
movq %rbx, %rdi
movl $0x1, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x880d
addq 0x38(%rbx), %r14
movq 0x10(%r15), %rax
movq 0x28(%rax), %rax
movq %rax, 0x28(%rbx)
movq (%r15), %rcx
movq 0x10(%r15), %rax
movq %rax, 0x20(%rbx)
testw %r12w, %r12w
je 0x8d2e
movzwl %r12w, %eax
cmpl $0x1, %eax
je 0x8ca6
cmpl $0xffff, %eax           # imm = 0xFFFF
jne 0x8cbc
testl %ebp, %ebp
jle 0x8c9c
movl %ebp, %eax
shlq $0x4, %rax
xorl %edx, %edx
movups (%r14,%rdx), %xmm0
movups %xmm0, (%rcx,%rdx)
addq $0x10, %rdx
cmpq %rdx, %rax
jne 0x8c8a
movslq %ebp, %rdx
xorl %eax, %eax
jmp 0x8d36
testl %ebp, %ebp
leaq 0x18971(%rip), %rax     # 0x21620
cmoveq %rax, %r14
movups (%r14), %xmm0
movups %xmm0, (%rcx)
jmp 0x8d2e
cmpl %ebp, %r12d
jle 0x8ce2
testl %ebp, %ebp
jle 0x8d05
movl %ebp, %edx
xorl %esi, %esi
xorl %eax, %eax
movups (%r14,%rsi), %xmm0
movups %xmm0, (%rcx,%rsi)
incq %rax
addq $0x10, %rsi
cmpq %rax, %rdx
jne 0x8ccb
jmp 0x8d07
testw %r12w, %r12w
jle 0x8d2e
movl %r12d, %eax
shlq $0x4, %rax
xorl %edx, %edx
movups (%r14,%rdx), %xmm0
movups %xmm0, (%rcx,%rdx)
addq $0x10, %rdx
cmpq %rdx, %rax
jne 0x8cf1
jmp 0x8d2e
xorl %eax, %eax
cmpl %r12d, %eax
jge 0x8d2e
movl %eax, %edx
movl %r12d, %eax
subq %rdx, %rax
shlq $0x4, %rdx
addq %rcx, %rdx
addq $0x8, %rdx
movl $0x0, (%rdx)
addq $0x10, %rdx
decq %rax
jne 0x8d1f
movslq %r12d, %rdx
movl $0x1, %eax
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_O1/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)
movzwl %ax, %eax
cmpl $0xc8, %eax
jb 0x8d71
je 0x8d8e
cmpl $0xe1, %eax
jae 0x8d9f
movq %rbx, %rdi
callq 0x88c9
testl %eax, %eax
jne 0x8d85
movq %rbx, %rdi
callq 0x11cf3
decw 0xc6(%rbx)
popq %rbx
retq
leaq 0x18682(%rip), %rsi     # 0x21417
movq %rbx, %rdi
xorl %eax, %eax
callq 0x7cd8
movq %rbx, %rdi
movl $0x6, %esi
callq 0x848c
// File: /workspace/github_c_makefile_star2_O1/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, 0x14(%rsp)
testq %rsi, %rsi
je 0x8dea
movzwl 0xc6(%rsi), %eax
incl %eax
jmp 0x8dee
movw $0x1, %ax
movzwl 0xc4(%rbx), %ebp
movw %ax, 0xc6(%rbx)
movw $0x0, 0xc4(%rbx)
leaq 0x114(%rip), %rsi       # 0x8f20
leaq 0x14(%rsp), %rdx
movq %rbx, %rdi
callq 0x857f
movl %eax, 0xc(%rsp)
cmpl $-0x1, %eax
je 0x8ef7
movw %bp, 0x12(%rsp)
movl 0xc(%rsp), %ebp
cmpl $0x2, %ebp
jl 0x8ecb
leaq 0x1d9(%rip), %r14       # 0x9018
leaq 0xc(%rsp), %r15
movq 0x20(%rbx), %r13
testq %r13, %r13
je 0x8e5a
testb $0x10, 0x42(%r13)
jne 0x8e5d
movq 0x10(%r13), %r13
jmp 0x8e48
xorl %r13d, %r13d
testq %r13, %r13
je 0x8ecb
movq 0x38(%rbx), %r12
addq 0x38(%r13), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x9c59
movq %rbx, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x8520
movq %r13, 0x20(%rbx)
movb 0x42(%r13), %al
andb $0x1, %al
movb %al, 0xcc(%rbx)
movw $0x0, 0xc4(%rbx)
movq %rbx, %rdi
callq 0x8755
movq 0x28(%r13), %rax
movq %rax, 0xb0(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x857f
movl %eax, %ebp
movl %eax, 0xc(%rsp)
cmpl $0x1, %eax
jg 0x8e44
movl 0xc(%rsp), %esi
cmpl $0x2, %esi
movzwl 0x12(%rsp), %ebp
jl 0x8eff
movb %sil, 0xc(%rbx)
movq 0x10(%rbx), %rdx
movq %rbx, %rdi
callq 0x8520
movq 0x10(%rbx), %rax
movq 0x20(%rbx), %rcx
movq %rax, 0x8(%rcx)
jmp 0x8eff
movl $0x2, 0xc(%rsp)
movw %bp, 0xc4(%rbx)
decw 0xc6(%rbx)
movl 0xc(%rsp), %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq