LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lvm.c
// Function: luaV_lessequal
int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r) {
  int res;
  if (ttisnumber(l) && ttisnumber(r))  /* both operands are numbers? */
    return LEnum(l, r);
  else if (ttisstring(l) && ttisstring(r))  /* both are strings? */
    return l_strcmp(tsvalue(l), tsvalue(r)) <= 0;
  else if ((res = luaT_callorderTM(L, l, r, TM_LE)) >= 0)  /* try 'le' */
    return res;
  else {  /* try 'lt': */
    L->ci->callstatus |= CIST_LEQ;  /* mark it is doing 'lt' for 'le' */
    res = luaT_callorderTM(L, r, l, TM_LT);
    L->ci->callstatus ^= CIST_LEQ;  /* clear mark */
    if (res < 0)
      luaG_ordererror(L, l, r);
    return !res;  /* result is negated */
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0x8(%rsi), %eax
movl %eax, %ecx
andl $0xf, %ecx
cmpl $0x4, %ecx
je 0x11c99
cmpl $0x3, %ecx
jne 0x11cbd
movl 0x8(%rbx), %edx
movl %edx, %ecx
andl $0xf, %ecx
cmpl $0x3, %ecx
jne 0x11cbd
cmpl $0x13, %eax
jne 0x11d0e
movq (%r14), %rcx
cmpl $0x13, %edx
jne 0x11d22
cmpq (%rbx), %rcx
setle %al
jmp 0x11dd4
movl 0x8(%rbx), %eax
andl $0xf, %eax
cmpl $0x4, %eax
jne 0x11cbd
movq (%r14), %rdi
movq (%rbx), %rsi
callq 0x11bc1
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
setle %al
jmp 0x11dd7
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x15, %ecx
callq 0x10bf9
testl %eax, %eax
jns 0x11dd7
movq 0x20(%r15), %rax
orb $-0x80, 0x42(%rax)
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
movl $0x14, %ecx
callq 0x10bf9
movq 0x20(%r15), %rcx
xorb $-0x80, 0x42(%rcx)
testl %eax, %eax
js 0x11ddd
sete %al
movzbl %al, %eax
jmp 0x11dd7
movsd (%r14), %xmm0
cmpl $0x3, %edx
jne 0x11d53
movsd (%rbx), %xmm1
ucomisd %xmm0, %xmm1
jmp 0x11d4b
movsd (%rbx), %xmm0
movabsq $0x20000000000000, %rax # imm = 0x20000000000000
addq %rcx, %rax
movabsq $0x40000000000001, %rdx # imm = 0x40000000000001
cmpq %rdx, %rax
jae 0x11d86
cvtsi2sd %rcx, %xmm1
ucomisd %xmm1, %xmm0
setae %al
jmp 0x11dd4
ucomisd %xmm0, %xmm0
jp 0x11d9c
movq (%rbx), %rcx
movabsq $0x20000000000000, %rax # imm = 0x20000000000000
addq %rcx, %rax
movabsq $0x40000000000001, %rdx # imm = 0x40000000000001
cmpq %rdx, %rax
jae 0x11da0
cvtsi2sd %rcx, %xmm1
ucomisd %xmm1, %xmm0
seta %al
jmp 0x11dd2
movb $0x1, %al
ucomisd 0x10f10(%rip), %xmm0    # 0x22ca0
jae 0x11dd4
ucomisd 0x10efe(%rip), %xmm0    # 0x22c98
jae 0x11dc3
xorl %eax, %eax
jmp 0x11dd4
movb $0x1, %al
ucomisd 0x10ef6(%rip), %xmm0    # 0x22ca0
jae 0x11dd2
ucomisd 0x10ee4(%rip), %xmm0    # 0x22c98
jbe 0x11dd0
cvttsd2si %xmm0, %rax
cmpq %rax, %rcx
setl %al
jmp 0x11dd2
cvttsd2si %xmm0, %rax
cmpq %rax, %rcx
jmp 0x11c91
xorl %eax, %eax
xorb $0x1, %al
movzbl %al, %eax
popq %rbx
popq %r14
popq %r15
retq
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x803c
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lvm.c
// Function: luaV_objlen
void luaV_objlen (lua_State *L, StkId ra, const TValue *rb) {
  const TValue *tm;
  switch (ttype(rb)) {
    case LUA_TTABLE: {
      Table *h = hvalue(rb);
      tm = fasttm(L, h->metatable, TM_LEN);
      if (tm) break;  /* metamethod? break switch to call it */
      setivalue(ra, luaH_getn(h));  /* else primitive len */
      return;
    }
    case LUA_TSHRSTR: {
      setivalue(ra, tsvalue(rb)->shrlen);
      return;
    }
    case LUA_TLNGSTR: {
      setivalue(ra, tsvalue(rb)->u.lnglen);
      return;
    }
    default: {  /* try metamethod */
      tm = luaT_gettmbyobj(L, rb, TM_LEN);
      if (ttisnil(tm))  /* no metamethod? */
        luaG_typeerror(L, rb, "get length of");
      break;
    }
  }
  luaT_callTM(L, tm, rb, rb, ra, 1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movl 0x8(%rdx), %eax
andl $0x3f, %eax
cmpl $0x4, %eax
je 0x12328
cmpl $0x14, %eax
je 0x1231f
movq %rdi, %r15
cmpl $0x5, %eax
jne 0x12345
movq (%r14), %r12
movq 0x28(%r12), %rdi
testq %rdi, %rdi
je 0x12313
testb $0x10, 0xa(%rdi)
jne 0x12313
movq 0x18(%r15), %rax
movq 0x100(%rax), %rdx
movl $0x4, %esi
callq 0x10949
testq %rax, %rax
jne 0x1235b
movq %r12, %rdi
callq 0x107a2
cltq
jmp 0x1232f
movq (%r14), %rax
movq 0x10(%rax), %rax
jmp 0x1232f
movq (%r14), %rax
movzbl 0xb(%rax), %eax
movq %rax, (%rbx)
movl $0x13, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r15, %rdi
movq %r14, %rsi
movl $0x4, %edx
callq 0x10974
cmpl $0x0, 0x8(%rax)
je 0x12380
movq %r15, %rdi
movq %rax, %rsi
movq %r14, %rdx
movq %r14, %rcx
movq %rbx, %r8
movl $0x1, %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x10a4a
leaq 0x10e17(%rip), %rdx     # 0x2319e
movq %r15, %rdi
movq %r14, %rsi
callq 0x7d95
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lvm.c
// Function: luaV_div
lua_Integer luaV_div (lua_State *L, lua_Integer m, lua_Integer n) {
  if (l_castS2U(n) + 1u <= 1u) {  /* special cases: -1 or 0 */
    if (n == 0)
      luaG_runerror(L, "attempt to divide by zero");
    return intop(-, 0, m);   /* n==-1; avoid overflow with 0x80000...//-1 */
  }
  else {
    lua_Integer q = m / n;  /* perform C division */
    if ((m ^ n) < 0 && m % n != 0)  /* 'm/n' would be negative non-integer? */
      q -= 1;  /* correct result for different rounding */
    return q;
  }
}

// Assembly:
movq %rdx, %rcx
leaq 0x1(%rdx), %rax
cmpq $0x1, %rax
ja 0x123ab
testq %rcx, %rcx
je 0x123c2
negq %rsi
movq %rsi, %rax
retq
movq %rsi, %rax
cqto
idivq %rcx
xorq %rsi, %rcx
js 0x123b9
retq
cmpq $0x1, %rdx
adcq $-0x1, %rax
retq
pushq %rax
leaq 0x10de2(%rip), %rsi     # 0x231ac
xorl %eax, %eax
callq 0x7dd3
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lvm.c
// Function: luaV_mod
lua_Integer luaV_mod (lua_State *L, lua_Integer m, lua_Integer n) {
  if (l_castS2U(n) + 1u <= 1u) {  /* special cases: -1 or 0 */
    if (n == 0)
      luaG_runerror(L, "attempt to perform 'n%%0'");
    return 0;   /* m % -1 == 0; avoid overflow with 0x80000...%-1 */
  }
  else {
    lua_Integer r = m % n;
    if (r != 0 && (m ^ n) < 0)  /* 'm/n' would be non-integer negative? */
      r += n;  /* correct result for different rounding */
    return r;
  }
}

// Assembly:
movq %rdx, %rcx
leaq 0x1(%rdx), %rax
cmpq $0x1, %rax
ja 0x123f2
testq %rcx, %rcx
jne 0x12410
pushq %rax
leaq 0x10ddb(%rip), %rsi     # 0x231c6
xorl %eax, %eax
callq 0x7dd3
movq %rsi, %rax
cqto
idivq %rcx
testq %rdx, %rdx
je 0x12410
movq %rdx, %rax
xorq %rcx, %rsi
sarq $0x3f, %rsi
andq %rcx, %rsi
addq %rsi, %rax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lvm.c
// Function: luaV_shiftl
lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) {
  if (y < 0) {  /* shift right? */
    if (y <= -NBITS) return 0;
    else return intop(>>, x, -y);
  }
  else {  /* shift left */
    if (y >= NBITS) return 0;
    else return intop(<<, x, y);
  }
}

// Assembly:
movq %rdi, %rax
testq %rsi, %rsi
js 0x1242b
movl %esi, %ecx
shlq %cl, %rax
xorl %ecx, %ecx
cmpq $0x40, %rsi
cmovaeq %rcx, %rax
retq
cmpq $-0x3f, %rsi
jae 0x12434
xorl %eax, %eax
retq
negb %sil
movl %esi, %ecx
shrq %cl, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lzio.c
// Function: luaZ_read
size_t luaZ_read (ZIO *z, void *b, size_t n) {
  while (n) {
    size_t m;
    if (z->n == 0) {  /* no bytes in buffer? */
      if (luaZ_fill(z) == EOZ)  /* try to read more */
        return n;  /* no more input; return number of missing bytes */
      else {
        z->n++;  /* luaZ_fill consumed first byte; put it back */
        z->p--;
      }
    }
    m = (n <= z->n) ? n : z->n;  /* min. between n and z->n */
    memcpy(b, z->p, m);
    z->n -= m;
    z->p += m;
    b = (char *)b + m;
    n -= m;
  }
  return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdx, %rdx
je 0x14669
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %r12
testq %r12, %r12
je 0x1461e
movq 0x8(%r15), %rsi
jmp 0x1463f
movq %r15, %rdi
callq 0x14598
cmpl $-0x1, %eax
je 0x1466b
movq (%r15), %r12
movq 0x8(%r15), %rsi
incq %r12
movq %r12, (%r15)
decq %rsi
movq %rsi, 0x8(%r15)
cmpq %r12, %rbx
cmovbq %rbx, %r12
movq %r14, %rdi
movq %r12, %rdx
callq 0x5310
movq (%r15), %rax
subq %r12, %rax
movq %rax, (%r15)
addq %r12, 0x8(%r15)
addq %r12, %r14
subq %r12, %rbx
movq %rax, %r12
jne 0x14613
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_checkstack
LUALIB_API void luaL_checkstack (lua_State *L, int space, const char *msg) {
  if (!lua_checkstack(L, space)) {
    if (msg)
      luaL_error(L, "stack overflow (%s)", msg);
    else
      luaL_error(L, "stack overflow");
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
callq 0x5c18
testl %eax, %eax
je 0x14944
addq $0x8, %rsp
popq %rbx
popq %r14
retq
testq %r14, %r14
je 0x14964
leaq 0xe9be(%rip), %rsi      # 0x2330e
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x14a62
leaq 0xdada(%rip), %rsi      # 0x22445
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x14a62
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_argerror
LUALIB_API int luaL_argerror (lua_State *L, int arg, const char *extramsg) {
  lua_Debug ar;
  if (!lua_getstack(L, 0, &ar))  /* no stack frame? */
    return luaL_error(L, "bad argument #%d (%s)", arg, extramsg);
  lua_getinfo(L, "n", &ar);
  if (strcmp(ar.namewhat, "method") == 0) {
    arg--;  /* do not count 'self' */
    if (arg == 0)  /* error is in the self argument itself? */
      return luaL_error(L, "calling '%s' on bad self (%s)",
                           ar.name, extramsg);
  }
  if (ar.name == NULL)
    ar.name = (pushglobalfuncname(L, &ar)) ? lua_tostring(L, -1) : "?";
  return luaL_error(L, "bad argument #%d to '%s' (%s)",
                        arg, ar.name, extramsg);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
leaq 0x8(%rsp), %rdx
xorl %esi, %esi
callq 0x76f2
testl %eax, %eax
je 0x149ff
leaq 0xe38a(%rip), %rsi      # 0x22d32
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rdx
callq 0x7956
movq 0x10(%r15), %rdi
leaq 0xd9e7(%rip), %rsi      # 0x223aa
callq 0x5280
testl %eax, %eax
jne 0x149d0
decl %ebp
je 0x14a17
movq 0x10(%rsp), %rcx
testq %rcx, %rcx
jne 0x14a3e
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x14b1e
testl %eax, %eax
je 0x14a32
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x6359
movq %rax, %rcx
jmp 0x14a39
leaq 0xe892(%rip), %rsi      # 0x23298
movq %r14, %rdi
movl %ebp, %edx
movq %rbx, %rcx
xorl %eax, %eax
callq 0x14a62
jmp 0x14a54
movq 0x10(%rsp), %rdx
leaq 0xe88b(%rip), %rsi      # 0x232ae
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x14a62
jmp 0x14a54
leaq 0xd959(%rip), %rcx      # 0x22392
movq %rcx, 0x10(%rsp)
leaq 0xe887(%rip), %rsi      # 0x232cc
movq %r14, %rdi
movl %ebp, %edx
movq %rbx, %r8
xorl %eax, %eax
callq 0x14a62
addq $0x88, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_error
LUALIB_API int luaL_error (lua_State *L, const char *fmt, ...) {
  va_list argp;
  va_start(argp, fmt);
  luaL_where(L, 1);
  lua_pushvfstring(L, fmt, argp);
  va_end(argp);
  lua_concat(L, 2);
  return lua_error(L);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xd0, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x20(%rsp), %rsi
movq %rdx, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r8, 0x20(%rsi)
movq %r9, 0x28(%rsi)
testb %al, %al
je 0x14ac4
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 %rsp, %r15
movq %rsi, 0x10(%r15)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%r15)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%r15)
movl $0x1, %esi
callq 0x14bf4
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x65d2
movq %r14, %rdi
movl $0x2, %esi
callq 0x7316
movq %r14, %rdi
callq 0x72d9
addq $0xd0, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: pushglobalfuncname
static int pushglobalfuncname (lua_State *L, lua_Debug *ar) {
  int top = lua_gettop(L);
  lua_getinfo(L, "f", ar);  /* push function */
  lua_getfield(L, LUA_REGISTRYINDEX, "_LOADED");
  if (findfield(L, top + 1, 2)) {
    const char *name = lua_tostring(L, -1);
    if (strncmp(name, "_G.", 3) == 0) {  /* name start with '_G.'? */
      lua_pushstring(L, name + 3);  /* push name without prefix */
      lua_remove(L, -2);  /* remove original name */
    }
    lua_copy(L, -1, top + 1);  /* move name to proper place */
    lua_pop(L, 2);  /* remove pushed values */
    return 1;
  }
  else {
    lua_settop(L, top);  /* remove function and global table */
    return 0;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
callq 0x5d39
movl %eax, %r14d
leaq 0xe8f6(%rip), %rsi      # 0x23430
movq %rbx, %rdi
movq %r15, %rdx
callq 0x7956
leaq 0xe85d(%rip), %rdx      # 0x233a9
movq %rbx, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x6895
leal 0x1(%r14), %ebp
movq %rbx, %rdi
movl %ebp, %esi
movl $0x2, %edx
callq 0x15f8a
testl %eax, %eax
je 0x14bda
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x6359
cmpb $0x5f, (%rax)
jne 0x14bbe
cmpb $0x47, 0x1(%rax)
jne 0x14bbe
cmpb $0x2e, 0x2(%rax)
jne 0x14bbe
addq $0x3, %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x656b
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x5eb2
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d4d
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl %ebp, %edx
callq 0x6010
movl $0x1, %ebp
movl $0xfffffffd, %r14d      # imm = 0xFFFFFFFD
jmp 0x14bdc
xorl %ebp, %ebp
movq %rbx, %rdi
movl %r14d, %esi
callq 0x5d4d
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_where
LUALIB_API void luaL_where (lua_State *L, int level) {
  lua_Debug ar;
  if (lua_getstack(L, level, &ar)) {  /* check function at level */
    lua_getinfo(L, "Sl", &ar);  /* get info about it */
    if (ar.currentline > 0) {  /* is there info? */
      lua_pushfstring(L, "%s:%d: ", ar.short_src, ar.currentline);
      return;
    }
  }
  lua_pushfstring(L, "");  /* else, no information available... */
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdx
callq 0x76f2
testl %eax, %eax
je 0x14c46
leaq 0xe6d4(%rip), %rsi      # 0x232ea
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x7956
movl 0x28(%r14), %ecx
testl %ecx, %ecx
jle 0x14c46
leaq 0x40(%rsp), %rdx
leaq 0xe6b3(%rip), %rsi      # 0x232ed
movq %rbx, %rdi
xorl %eax, %eax
callq 0x65ff
jmp 0x14c57
leaq 0x1013b(%rip), %rsi     # 0x24d88
movq %rbx, %rdi
xorl %eax, %eax
callq 0x65ff
addq $0x88, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_fileresult
LUALIB_API int luaL_fileresult (lua_State *L, int stat, const char *fname) {
  int en = errno;  /* calls to Lua API may change this value */
  if (stat) {
    lua_pushboolean(L, 1);
    return 1;
  }
  else {
    lua_pushnil(L);
    if (fname)
      lua_pushfstring(L, "%s: %s", fname, strerror(en));
    else
      lua_pushstring(L, strerror(en));
    lua_pushinteger(L, en);
    return 3;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
callq 0x5090
testl %ebp, %ebp
je 0x14c8e
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x6725
jmp 0x14cda
movslq (%rax), %r14
movq %rbx, %rdi
callq 0x64cd
movl %r14d, %edi
callq 0x54c0
testq %r15, %r15
je 0x14cbf
leaq 0xe838(%rip), %rsi      # 0x234e5
movq %rbx, %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x65ff
jmp 0x14cca
movq %rbx, %rdi
movq %rax, %rsi
callq 0x656b
movq %rbx, %rdi
movq %r14, %rsi
callq 0x64f6
movl $0x3, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_execresult
LUALIB_API int luaL_execresult (lua_State *L, int stat) {
  const char *what = "exit";  /* type of termination */
  if (stat == -1)  /* error? */
    return luaL_fileresult(L, 0, NULL);
  else {
    l_inspectstat(stat, what);  /* interpret result */
    if (*what == 'e' && stat == 0)  /* successful termination? */
      lua_pushboolean(L, 1);
    else
      lua_pushnil(L);
    lua_pushstring(L, what);
    lua_pushinteger(L, stat);
    return 3;  /* return true/nil,what,code */
  }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
testl %esi, %esi
je 0x14d0a
cmpl $-0x1, %ebp
jne 0x14d19
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x14c62
movq %rbx, %rdi
movl $0x1, %esi
callq 0x6725
jmp 0x14d21
movq %rbx, %rdi
callq 0x64cd
leaq 0xe5cd(%rip), %rsi      # 0x232f5
movq %rbx, %rdi
callq 0x656b
movslq %ebp, %rsi
movq %rbx, %rdi
callq 0x64f6
movl $0x3, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_newmetatable
LUALIB_API int luaL_newmetatable (lua_State *L, const char *tname) {
  if (luaL_getmetatable(L, tname) != LUA_TNIL)  /* name already in use? */
    return 0;  /* leave previous value on top, but return 0 */
  lua_pop(L, 1);
  lua_createtable(L, 0, 2);  /* create metatable */
  lua_pushstring(L, tname);
  lua_setfield(L, -2, "__name");  /* metatable.__name = tname */
  lua_pushvalue(L, -1);
  lua_setfield(L, LUA_REGISTRYINDEX, tname);  /* registry.name = metatable */
  return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
movq %rbx, %rdx
callq 0x6895
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jne 0x14dc3
movq %r14, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d4d
movq %r14, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x69fb
movq %r14, %rdi
movq %rbx, %rsi
callq 0x656b
leaq 0xe049(%rip), %rdx      # 0x22ddd
movq %r14, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x6c66
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x606b
movq %r14, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
movq %rbx, %rdx
callq 0x6c66
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_testudata
LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) {
  void *p = lua_touserdata(L, ud);
  if (p != NULL) {  /* value is a userdata? */
    if (lua_getmetatable(L, ud)) {  /* does it have a metatable? */
      luaL_getmetatable(L, tname);  /* get correct metatable */
      if (!lua_rawequal(L, -1, -2))  /* not the same? */
        p = NULL;  /* value is a userdata with wrong metatable */
      lua_pop(L, 2);  /* remove both metatables */
      return p;
    }
  }
  return NULL;  /* value is not a userdata with a metatable */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r14
callq 0x644d
testq %rax, %rax
je 0x14e4d
movq %rax, %rbx
movq %r14, %rdi
movl %ebp, %esi
callq 0x6a5a
testl %eax, %eax
je 0x14e4d
movq %r14, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
movq %r15, %rdx
callq 0x6895
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0xfffffffe, %edx       # imm = 0xFFFFFFFE
callq 0x6146
xorl %ecx, %ecx
testl %eax, %eax
cmoveq %rcx, %rbx
movq %r14, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x5d4d
jmp 0x14e4f
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: typeerror
static int typeerror (lua_State *L, int arg, const char *tname) {
  const char *msg;
  const char *typearg;  /* name for the type of the actual argument */
  if (luaL_getmetafield(L, arg, "__name") == LUA_TSTRING)
    typearg = lua_tostring(L, -1);  /* use the given type name */
  else if (lua_type(L, arg) == LUA_TLIGHTUSERDATA)
    typearg = "light userdata";  /* special name for messages */
  else
    typearg = luaL_typename(L, arg);  /* standard name */
  msg = lua_pushfstring(L, "%s expected, got %s", tname, typearg);
  return luaL_argerror(L, arg, msg);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
leaq 0xdf35(%rip), %rdx      # 0x22ddd
callq 0x1599b
movq %r14, %rdi
cmpl $0x4, %eax
jne 0x14ec3
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x6359
jmp 0x14eec
movl %ebx, %esi
callq 0x608f
cmpl $0x2, %eax
jne 0x14ed8
leaq 0xe58e(%rip), %rcx      # 0x23464
jmp 0x14eef
movq %r14, %rdi
movl %ebx, %esi
callq 0x608f
movq %r14, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %rcx
leaq 0xe57d(%rip), %rsi      # 0x23473
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x65ff
movq %r14, %rdi
movl %ebx, %esi
movq %rax, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x1497c
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_checkoption
LUALIB_API int luaL_checkoption (lua_State *L, int arg, const char *def,
                                 const char *const lst[]) {
  const char *name = (def) ? luaL_optstring(L, arg, def) :
                             luaL_checkstring(L, arg);
  int i;
  for (i=0; lst[i]; i++)
    if (strcmp(lst[i], name) == 0)
      return i;
  return luaL_argerror(L, arg,
                       lua_pushfstring(L, "invalid option '%s'", name));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r15
movl %esi, %ebx
movq %rdi, %r14
testq %rdx, %rdx
je 0x14f3c
movq %rdx, %r12
movq %r14, %rdi
movl %ebx, %esi
callq 0x608f
testl %eax, %eax
jle 0x14f4b
movq %r14, %rdi
movl %ebx, %esi
xorl %edx, %edx
callq 0x14fff
movq %rax, %r12
movq (%r15), %rdi
testq %rdi, %rdi
je 0x14f6f
xorl %r13d, %r13d
movq %r12, %rsi
callq 0x5280
testl %eax, %eax
je 0x14f99
movq 0x8(%r15,%r13,8), %rdi
incq %r13
testq %rdi, %rdi
jne 0x14f56
leaq 0xe384(%rip), %rsi      # 0x232fa
movq %r14, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x65ff
movq %r14, %rdi
movl %ebx, %esi
movq %rax, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1497c
movl %r13d, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_optlstring
LUALIB_API const char *luaL_optlstring (lua_State *L, int arg,
                                        const char *def, size_t *len) {
  if (lua_isnoneornil(L, arg)) {
    if (len)
      *len = (def ? strlen(def) : 0);
    return def;
  }
  else return luaL_checklstring(L, arg, len);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %r15
callq 0x608f
testl %eax, %eax
jle 0x14fd8
movq %r15, %rdi
movl %ebp, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x14fff
testq %rbx, %rbx
je 0x14ff1
testq %r14, %r14
je 0x14fec
movq %r14, %rdi
callq 0x5140
jmp 0x14fee
xorl %eax, %eax
movq %rax, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_checknumber
LUALIB_API lua_Number luaL_checknumber (lua_State *L, int arg) {
  int isnum;
  lua_Number d = lua_tonumberx(L, arg, &isnum);
  if (!isnum)
    tag_error(L, arg, LUA_TNUMBER);
  return d;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
leaq 0xc(%rsp), %r15
movq %r15, %rdx
callq 0x628e
cmpl $0x0, (%r15)
jne 0x150e5
movq %r14, %rdi
movl $0x3, %esi
movsd %xmm0, (%rsp)
callq 0x60b0
movq %r14, %rdi
movl %ebx, %esi
movq %rax, %rdx
callq 0x14e94
movsd (%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_checkinteger
LUALIB_API lua_Integer luaL_checkinteger (lua_State *L, int arg) {
  int isnum;
  lua_Integer d = lua_tointegerx(L, arg, &isnum);
  if (!isnum) {
    interror(L, arg);
  }
  return d;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %r14
leaq 0x4(%rsp), %r15
movq %r15, %rdx
callq 0x62e1
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x15181
movq %r14, %rdi
movl %ebp, %esi
callq 0x60ef
testl %eax, %eax
je 0x15167
leaq 0xe32c(%rip), %rdx      # 0x23487
movq %r14, %rdi
movl %ebp, %esi
callq 0x1497c
jmp 0x15181
movq %r14, %rdi
movl $0x3, %esi
callq 0x60b0
movq %r14, %rdi
movl %ebp, %esi
movq %rax, %rdx
callq 0x14e94
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_prepbuffsize
LUALIB_API char *luaL_prepbuffsize (luaL_Buffer *B, size_t sz) {
  lua_State *L = B->L;
  if (B->size - B->n < sz) {  /* not enough space? */
    char *newbuff;
    size_t newsize = B->size * 2;  /* double buffer size */
    if (newsize - B->n < sz)  /* not big enough? */
      newsize = B->n + sz;
    if (newsize < B->n || newsize - B->n < sz)
      luaL_error(L, "buffer too large");
    /* create larger buffer */
    if (buffonstack(B))
      newbuff = (char *)resizebox(L, -1, newsize);
    else {  /* no buffer yet */
      newbuff = (char *)newbox(L, newsize);
      memcpy(newbuff, B->b, B->n * sizeof(char));  /* copy original content */
    }
    B->b = newbuff;
    B->size = newsize;
  }
  return &B->b[B->n];
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
movq 0x10(%rdi), %rax
movq %rcx, %rdx
subq %rax, %rdx
cmpq %rsi, %rdx
jae 0x15237
addq %rcx, %rcx
movq %rcx, %rdx
subq %rax, %rdx
leaq (%rax,%rsi), %r14
cmpq %rsi, %rdx
cmovaeq %rcx, %r14
movq 0x18(%rbx), %r15
movq %r14, %rcx
subq %rax, %rcx
setb %al
notb %al
cmpq %rsi, %rcx
setae %cl
testb %cl, %al
jne 0x15216
leaq 0xe125(%rip), %rsi      # 0x23331
movq %r15, %rdi
xorl %eax, %eax
callq 0x14a62
leaq 0x20(%rbx), %rax
cmpq %rax, (%rbx)
je 0x1523f
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r14, %rdx
callq 0x152cd
movq %rax, %r15
jmp 0x152b9
movq (%rbx), %r15
jmp 0x152c4
movl $0x10, %esi
movq %r15, %rdi
callq 0x73bd
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0xe27b(%rip), %rsi      # 0x234d4
movq %r15, %rdi
callq 0x14d47
testl %eax, %eax
je 0x1528a
leaq 0xe36(%rip), %rsi       # 0x160a2
movq %r15, %rdi
xorl %edx, %edx
callq 0x66a8
leaq 0xdad7(%rip), %rdx      # 0x22d54
movq %r15, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x6c66
movq %r15, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x6e85
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r14, %rdx
callq 0x152cd
movq %rax, %r15
movq (%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %rax, %rdi
callq 0x5310
movq %r15, (%rbx)
movq %r14, 0x8(%rbx)
movq 0x10(%rbx), %rax
addq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: resizebox
static void *resizebox (lua_State *L, int idx, size_t newsize) {
  void *ud;
  lua_Alloc allocf = lua_getallocf(L, &ud);
  UBox *box = (UBox *)lua_touserdata(L, idx);
  void *temp = allocf(ud, box->box, box->bsize, newsize);
  if (temp == NULL && newsize > 0) {  /* allocation error? */
    resizebox(L, idx, 0);  /* free buffer */
    luaL_error(L, "not enough memory for buffer allocation");
  }
  box->box = temp;
  box->bsize = newsize;
  return temp;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
movq %rsp, %r12
movq %r12, %rsi
callq 0x7399
movq %rax, %r13
movq %r14, %rdi
movl %ebp, %esi
callq 0x644d
movq %rax, %r15
movq (%r12), %rdi
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rcx
callq *%r13
movq %rax, %r12
testq %rbx, %rbx
je 0x15336
testq %r12, %r12
jne 0x15336
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x152cd
leaq 0xe180(%rip), %rsi      # 0x234ac
movq %r14, %rdi
xorl %eax, %eax
callq 0x14a62
movq %r12, (%r15)
movq %rbx, 0x8(%r15)
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_addlstring
LUALIB_API void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l) {
  if (l > 0) {  /* avoid 'memcpy' when 's' can be NULL */
    char *b = luaL_prepbuffsize(B, l);
    memcpy(b, s, l * sizeof(char));
    luaL_addsize(B, l);
  }
}

// Assembly:
testq %rdx, %rdx
je 0x15381
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rdx, %rsi
callq 0x151bd
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x5310
addq %rbx, 0x10(%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_pushresult
LUALIB_API void luaL_pushresult (luaL_Buffer *B) {
  lua_State *L = B->L;
  lua_pushlstring(L, B->b, B->n);
  if (buffonstack(B)) {
    resizebox(L, -2, 0);  /* delete old buffer */
    lua_remove(L, -2);  /* remove its header from the stack */
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x18(%rdi), %rbx
movq (%rdi), %rsi
movq 0x10(%rdi), %rdx
movq %rbx, %rdi
callq 0x650a
leaq 0x20(%r14), %rax
cmpq %rax, (%r14)
je 0x15418
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
xorl %edx, %edx
callq 0x152cd
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x5eb2
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5d4d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_addvalue
LUALIB_API void luaL_addvalue (luaL_Buffer *B) {
  lua_State *L = B->L;
  size_t l;
  const char *s = lua_tolstring(L, -1, &l);
  if (buffonstack(B))
    lua_insert(L, -2);  /* put value below buffer */
  luaL_addlstring(B, s, l);
  lua_remove(L, (buffonstack(B)) ? -2 : -1);  /* remove value */
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
movq 0x18(%rdi), %rbx
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x6359
movq %rax, %r15
leaq 0x20(%r14), %r13
cmpq %r13, (%r14)
je 0x1546d
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl $0x1, %edx
callq 0x5eb2
movq 0x8(%rsp), %r12
testq %r12, %r12
je 0x15494
movq %r14, %rdi
movq %r12, %rsi
callq 0x151bd
movq %rax, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x5310
addq %r12, 0x10(%r14)
xorl %esi, %esi
cmpq %r13, (%r14)
sete %sil
orl $-0x2, %esi
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x5eb2
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d4d
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_ref
LUALIB_API int luaL_ref (lua_State *L, int t) {
  int ref;
  if (lua_isnil(L, -1)) {
    lua_pop(L, 1);  /* remove from stack */
    return LUA_REFNIL;  /* 'nil' has a unique fixed reference */
  }
  t = lua_absindex(L, t);
  lua_rawgeti(L, t, freelist);  /* get first free element */
  ref = (int)lua_tointeger(L, -1);  /* ref = t[freelist] */
  lua_pop(L, 1);  /* remove it from stack */
  if (ref != 0) {  /* any free element? */
    lua_rawgeti(L, t, ref);  /* remove it from list */
    lua_rawseti(L, t, freelist);  /* (t[freelist] = t[ref]) */
  }
  else  /* no free elements */
    ref = (int)lua_rawlen(L, t) + 1;  /* get a new reference */
  lua_rawseti(L, t, ref);
  return ref;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x608f
testl %eax, %eax
je 0x1557e
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5d18
movl %eax, %ebp
movq %rbx, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0x6970
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x62e1
movq %rax, %r14
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d4d
testl %r14d, %r14d
je 0x1558d
movslq %r14d, %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6970
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x6db0
jmp 0x1559d
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d4d
jmp 0x155aa
movq %rbx, %rdi
movl %ebp, %esi
callq 0x63d9
movq %rax, %r14
incl %r14d
movslq %r14d, %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6db0
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_unref
LUALIB_API void luaL_unref (lua_State *L, int t, int ref) {
  if (ref >= 0) {
    t = lua_absindex(L, t);
    lua_rawgeti(L, t, freelist);
    lua_rawseti(L, t, ref);  /* t[ref] = t[freelist] */
    lua_pushinteger(L, ref);
    lua_rawseti(L, t, freelist);  /* t[freelist] = ref */
  }
}

// Assembly:
testl %edx, %edx
js 0x15609
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rdi, %rbx
callq 0x5d18
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0x6970
movl %ebp, %r15d
movq %rbx, %rdi
movl %r14d, %esi
movq %r15, %rdx
callq 0x6db0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x64f6
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6db0
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: errfile
static int errfile (lua_State *L, const char *what, int fnameindex) {
  const char *serr = strerror(errno);
  const char *filename = lua_tostring(L, fnameindex) + 1;
  lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr);
  lua_remove(L, fnameindex);
  return LUA_ERRFILE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x5090
movl (%rax), %edi
callq 0x54c0
movq %rax, %r15
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x6359
leaq 0x1(%rax), %rcx
leaq 0xdced(%rip), %rsi      # 0x234db
movq %rbx, %rdi
movq %r14, %rdx
movq %r15, %r8
xorl %eax, %eax
callq 0x65ff
movq %rbx, %rdi
movl %ebp, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x5eb2
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5d4d
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: skipcomment
static int skipcomment (LoadF *lf, int *cp) {
  int c = *cp = skipBOM(lf);
  if (c == '#') {  /* first line is a comment (Unix exec. file)? */
    do {  /* skip first line */
      c = getc(lf->f);
    } while (c != EOF && c != '\n');
    *cp = getc(lf->f);  /* skip end-of-line, if present */
    return 1;  /* there was a comment */
  }
  else return 0;  /* no comment */
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x0, (%rdi)
xorl %r15d, %r15d
leaq 0xdca9(%rip), %r12      # 0x234ec
xorl %r13d, %r13d
movq 0x8(%r14), %rdi
callq 0x54e0
cmpl $-0x1, %eax
je 0x158b3
movzbl (%r13,%r12), %ecx
cmpl %ecx, %eax
jne 0x15885
incq %r13
movslq (%r14), %rcx
leal 0x1(%rcx), %edx
movl %edx, (%r14)
movb %al, 0x10(%r14,%rcx)
cmpq $0x3, %r13
jne 0x15846
movl $0x0, (%r14)
movq 0x8(%r14), %rdi
callq 0x54e0
movl %eax, (%rbx)
xorl %r15d, %r15d
cmpl $0x23, %eax
jne 0x158ba
movq 0x8(%r14), %rdi
callq 0x54e0
cmpl $0xa, %eax
je 0x158a2
cmpl $-0x1, %eax
jne 0x1588f
movq 0x8(%r14), %rdi
callq 0x54e0
movl $0x1, %r15d
jmp 0x158b8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, (%rbx)
movl %r15d, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: getF
static const char *getF (lua_State *L, void *ud, size_t *size) {
  LoadF *lf = (LoadF *)ud;
  (void)L;  /* not used */
  if (lf->n > 0) {  /* are there pre-read characters to be read? */
    *size = lf->n;  /* return them (chars already in buffer) */
    lf->n = 0;  /* no more pre-read characters */
  }
  else {  /* read a block from file */
    /* 'fread' can return > 0 *and* set the EOF flag. If next call to
       'getF' called 'fread', it might still wait for user input.
       The next check avoids this problem. */
    if (feof(lf->f)) return NULL;
    *size = fread(lf->buff, 1, sizeof(lf->buff), lf->f);  /* read block */
  }
  return lf->buff;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movslq (%rsi), %rax
testq %rax, %rax
jle 0x158e8
movq %rax, (%r14)
movl $0x0, (%rbx)
addq $0x10, %rbx
jmp 0x158f7
movq 0x8(%rbx), %rdi
callq 0x52d0
testl %eax, %eax
je 0x15902
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x10(%rbx), %rdi
movq 0x8(%rbx), %rcx
movl $0x1, %esi
movl $0x2000, %edx           # imm = 0x2000
callq 0x50d0
movq %rax, (%r14)
jmp 0x158e2
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_loadbufferx
LUALIB_API int luaL_loadbufferx (lua_State *L, const char *buff, size_t size,
                                 const char *name, const char *mode) {
  LoadS ls;
  ls.s = buff;
  ls.size = size;
  return lua_load(L, getS, &ls, name, mode);
}

// Assembly:
subq $0x18, %rsp
leaq 0x8(%rsp), %rax
movq %rsi, (%rax)
movq %rdx, 0x8(%rax)
leaq 0xd(%rip), %rsi         # 0x15942
movq %rax, %rdx
callq 0x70d3
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: getS
static const char *getS (lua_State *L, void *ud, size_t *size) {
  LoadS *ls = (LoadS *)ud;
  (void)L;  /* not used */
  if (ls->size == 0) return NULL;
  *size = ls->size;
  ls->size = 0;
  return ls->s;
}

// Assembly:
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x1595a
movq %rax, (%rdx)
movq $0x0, 0x8(%rsi)
movq (%rsi), %rax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_getmetafield
LUALIB_API int luaL_getmetafield (lua_State *L, int obj, const char *event) {
  if (!lua_getmetatable(L, obj))  /* no metatable? */
    return LUA_TNIL;
  else {
    int tt;
    lua_pushstring(L, event);
    tt = lua_rawget(L, -2);
    if (tt == LUA_TNIL)  /* is metafield nil? */
      lua_pop(L, 2);  /* remove metatable and metafield */
    else
      lua_remove(L, -2);  /* remove only metatable */
    return tt;  /* return metafield type */
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
callq 0x6a5a
testl %eax, %eax
je 0x159e6
movq %rbx, %rdi
movq %r14, %rsi
callq 0x656b
movl $0xfffffffe, %r14d      # imm = 0xFFFFFFFE
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x693a
testl %eax, %eax
je 0x159ea
movl %eax, %ebp
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x5eb2
jmp 0x159f2
xorl %ebp, %ebp
jmp 0x159fd
xorl %ebp, %ebp
movl $0xfffffffd, %r14d      # imm = 0xFFFFFFFD
movq %rbx, %rdi
movl %r14d, %esi
callq 0x5d4d
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_callmeta
LUALIB_API int luaL_callmeta (lua_State *L, int obj, const char *event) {
  obj = lua_absindex(L, obj);
  if (luaL_getmetafield(L, obj, event) == LUA_TNIL)  /* no metafield? */
    return 0;
  lua_pushvalue(L, obj);
  lua_call(L, 1, 1);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rdi, %rbx
callq 0x5d18
movl %eax, %ebp
movq %rbx, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x1599b
testl %eax, %eax
je 0x15a4e
movq %rbx, %rdi
movl %ebp, %esi
callq 0x606b
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x6f67
jmp 0x15a50
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_len
LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) {
  lua_Integer l;
  int isnum;
  lua_len(L, idx);
  l = lua_tointegerx(L, -1, &isnum);
  if (!isnum)
    luaL_error(L, "object length is not an integer");
  lua_pop(L, 1);  /* remove object */
  return l;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x737a
leaq 0xc(%rsp), %r15
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %r15, %rdx
callq 0x62e1
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x15a97
leaq 0xd8ca(%rip), %rsi      # 0x23357
movq %rbx, %rdi
xorl %eax, %eax
callq 0x14a62
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d4d
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_tolstring
LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) {
  if (!luaL_callmeta(L, idx, "__tostring")) {  /* no metafield? */
    switch (lua_type(L, idx)) {
      case LUA_TNUMBER: {
        if (lua_isinteger(L, idx))
          lua_pushfstring(L, "%I", lua_tointeger(L, idx));
        else
          lua_pushfstring(L, "%f", lua_tonumber(L, idx));
        break;
      }
      case LUA_TSTRING:
        lua_pushvalue(L, idx);
        break;
      case LUA_TBOOLEAN:
        lua_pushstring(L, (lua_toboolean(L, idx) ? "true" : "false"));
        break;
      case LUA_TNIL:
        lua_pushliteral(L, "nil");
        break;
      default:
        lua_pushfstring(L, "%s: %p", luaL_typename(L, idx),
                                            lua_topointer(L, idx));
        break;
    }
  }
  return lua_tolstring(L, -1, len);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
leaq 0xd8b0(%rip), %rdx      # 0x23377
callq 0x15a04
testl %eax, %eax
je 0x15aea
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6359
movq %r14, %rdi
movl %ebp, %esi
callq 0x608f
cmpl $0x4, %eax
ja 0x15b86
movl %eax, %eax
leaq 0xd73a(%rip), %rcx      # 0x23240
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xd1d1(%rip), %rsi      # 0x22ce7
jmp 0x15b6a
movq %r14, %rdi
movl %ebp, %esi
callq 0x60dc
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
testl %eax, %eax
je 0x15bc3
callq 0x62e1
leaq 0xd845(%rip), %rsi      # 0x23382
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x65ff
jmp 0x15ad0
movq %r14, %rdi
movl %ebp, %esi
callq 0x6333
testl %eax, %eax
leaq 0xd82b(%rip), %rax      # 0x2338a
leaq 0xd81f(%rip), %rsi      # 0x23385
cmoveq %rax, %rsi
movq %r14, %rdi
callq 0x656b
jmp 0x15ad0
movq %r14, %rdi
movl %ebp, %esi
callq 0x606b
jmp 0x15ad0
movq %r14, %rdi
movl %ebp, %esi
callq 0x608f
movq %r14, %rdi
movl %eax, %esi
callq 0x60b0
movq %rax, %r15
movq %r14, %rdi
movl %ebp, %esi
callq 0x648a
leaq 0xd7e2(%rip), %rsi      # 0x23390
movq %r14, %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x65ff
jmp 0x15ad0
callq 0x628e
leaq 0xd860(%rip), %rsi      # 0x2342f
movq %r14, %rdi
movb $0x1, %al
callq 0x65ff
jmp 0x15ad0
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_setfuncs
LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) {
  luaL_checkstack(L, nup, "too many upvalues");
  for (; l->name != NULL; l++) {  /* fill the table with given functions */
    int i;
    for (i = 0; i < nup; i++)  /* copy upvalues to the top */
      lua_pushvalue(L, -nup);
    lua_pushcclosure(L, l->func, nup);  /* closure with those upvalues */
    lua_setfield(L, -(nup + 2), l->name);
  }
  lua_pop(L, nup);  /* remove upvalues */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r15
movq %rdi, %r14
leaq 0xd79f(%rip), %rdx      # 0x23397
movl %ebx, %esi
callq 0x14929
cmpq $0x0, (%r15)
je 0x15c4f
movl %ebx, %ebp
negl %ebp
movl $0xfffffffe, %r12d      # imm = 0xFFFFFFFE
subl %ebx, %r12d
testl %ebx, %ebx
jle 0x15c28
movl %ebx, %r13d
movq %r14, %rdi
movl %ebp, %esi
callq 0x606b
decl %r13d
jne 0x15c19
movq 0x8(%r15), %rsi
movq %r14, %rdi
movl %ebx, %edx
callq 0x66a8
movq (%r15), %rdx
movq %r14, %rdi
movl %r12d, %esi
callq 0x6c66
cmpq $0x0, 0x10(%r15)
leaq 0x10(%r15), %r15
jne 0x15c12
notl %ebx
movq %r14, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5d4d
// File: /workspace/github_c_makefile_star2_O3/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_getsubtable
LUALIB_API int luaL_getsubtable (lua_State *L, int idx, const char *fname) {
  if (lua_getfield(L, idx, fname) == LUA_TTABLE)
    return 1;  /* table already there */
  else {
    lua_pop(L, 1);  /* remove previous result */
    idx = lua_absindex(L, idx);
    lua_newtable(L);
    lua_pushvalue(L, -1);  /* copy to be left at top */
    lua_setfield(L, idx, fname);  /* assign new table to field */
    return 0;  /* false, because did not find table there */
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %r15d
movq %rdi, %r14
callq 0x6895
movl $0x1, %ebp
cmpl $0x5, %eax
je 0x15ccc
movq %r14, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d4d
movq %r14, %rdi
movl %r15d, %esi
callq 0x5d18
movl %eax, %r15d
xorl %ebp, %ebp
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x69fb
movq %r14, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x606b
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x6c66
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq