LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
movq %rbx, %rdx
callq 0x64f4
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jne 0x12f13
pushq $-0x2
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
callq 0x5b31
pushq $0x2
popq %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x665a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x61d0
leaq 0xcf1a(%rip), %rdx      # 0x1fe05
movq %r14, %rdi
movl %ebp, %esi
callq 0x68b9
pushq $-0x1
popq %rsi
movq %r14, %rdi
callq 0x5cee
movq %r14, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
movq %rbx, %rdx
callq 0x68b9
pushq $0x1
popq %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x60b5
testq %rax, %rax
je 0x12f92
movq %rax, %rbx
movq %r14, %rdi
movl %ebp, %esi
callq 0x66b9
testl %eax, %eax
je 0x12f92
movq %r14, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
movq %r15, %rdx
callq 0x64f4
pushq $-0x1
popq %rsi
pushq $-0x2
popq %rdx
movq %r14, %rdi
callq 0x5dc3
xorl %ecx, %ecx
testl %eax, %eax
cmoveq %rcx, %rbx
pushq $-0x3
popq %rsi
movq %r14, %rdi
callq 0x5b31
jmp 0x12f94
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0xce18(%rip), %rdx      # 0x1fe05
callq 0x13a27
cmpl $0x4, %eax
jne 0x13006
pushq $-0x1
popq %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0x5fca
jmp 0x13032
movq %r14, %rdi
movl %ebx, %esi
callq 0x5d12
cmpl $0x2, %eax
jne 0x1301e
leaq 0xd484(%rip), %rcx      # 0x204a0
jmp 0x13035
movq %r14, %rdi
movl %ebx, %esi
callq 0x5d12
movq %r14, %rdi
movl %eax, %esi
callq 0x5d31
movq %rax, %rcx
leaq 0xd473(%rip), %rsi      # 0x204af
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x6261
movq %r14, %rdi
movl %ebx, %esi
movq %rax, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x12af2
// File: /workspace/github_c_makefile_star2_O2/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 0x1307a
xorl %ecx, %ecx
callq 0x130d8
jmp 0x13081
xorl %edx, %edx
callq 0x13131
movq %rax, %r12
xorl %r13d, %r13d
movq (%r15,%r13,8), %rdi
testq %rdi, %rdi
je 0x130a1
movq %r12, %rsi
callq 0x5270
testl %eax, %eax
je 0x130cb
incq %r13
jmp 0x13087
leaq 0xd28e(%rip), %rsi      # 0x20336
movq %r14, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0x6261
movq %r14, %rdi
movl %ebx, %esi
movq %rax, %rdx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x12af2
movl %r13d, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5d12
testl %eax, %eax
jle 0x1310a
movq %r15, %rdi
movl %ebp, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x13131
testq %rbx, %rbx
je 0x13123
testq %r14, %r14
je 0x1311e
movq %r14, %rdi
callq 0x5140
jmp 0x13120
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_O2/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 0x5f0b
cmpl $0x0, (%r15)
jne 0x13213
pushq $0x3
popq %rdx
movq %r14, %rdi
movl %ebx, %esi
movsd %xmm0, (%rsp)
callq 0x13184
movsd (%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5f59
movq %rax, %rbx
cmpl $0x0, (%r15)
jne 0x132a2
movq %r14, %rdi
movl %ebp, %esi
callq 0x5d70
testl %eax, %eax
je 0x13295
leaq 0xd23a(%rip), %rdx      # 0x204c3
movq %r14, %rdi
movl %ebp, %esi
callq 0x12af2
jmp 0x132a2
pushq $0x3
popq %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x13184
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x13353
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 0x13337
leaq 0xd040(%rip), %rsi      # 0x2036d
movq %r15, %rdi
xorl %eax, %eax
callq 0x12bd6
leaq 0x20(%rbx), %rax
cmpq %rax, (%rbx)
je 0x13358
pushq $-0x1
popq %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x133de
movq %rax, %r15
jmp 0x133ca
movq (%rbx), %r15
jmp 0x133d5
pushq $0x10
popq %rsi
movq %r15, %rdi
callq 0x6ffe
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0xd1a0(%rip), %rsi      # 0x20510
movq %r15, %rdi
callq 0x12ea0
testl %eax, %eax
je 0x1339f
leaq 0xd7c(%rip), %rsi       # 0x140ff
movq %r15, %rdi
xorl %edx, %edx
callq 0x630a
leaq 0xc9e8(%rip), %rdx      # 0x1fd7c
pushq $-0x2
popq %rsi
movq %r15, %rdi
callq 0x68b9
pushq $-0x2
popq %rsi
movq %r15, %rdi
callq 0x6ad0
pushq $-0x1
popq %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x133de
movq %rax, %r15
movq (%rbx), %rsi
movq 0x10(%rbx), %rdx
movq %rax, %rdi
callq 0x5300
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_O2/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 0x6fda
movq %rax, %r13
movq %r14, %rdi
movl %ebp, %esi
callq 0x60b5
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 0x13447
testq %r12, %r12
jne 0x13447
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x133de
leaq 0xd0ab(%rip), %rsi      # 0x204e8
movq %r14, %rdi
xorl %eax, %eax
callq 0x12bd6
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_O2/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 0x13492
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
movq %rdx, %rsi
callq 0x132de
movq %rax, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x5300
addq %rbx, 0x10(%r14)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rbx
movq (%rdi), %rsi
movq 0x10(%rdi), %rdx
movq %rbx, %rdi
callq 0x616f
leaq 0x20(%r14), %rax
cmpq %rax, (%r14)
je 0x13507
pushq $-0x2
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x133de
pushq $-0x1
popq %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5b7f
movq %rbx, %rdi
movl %ebp, %esi
popq %rbx
popq %r14
popq %rbp
jmp 0x5b31
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x18(%rdi), %rbx
pushq $-0x1
popq %rsi
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x5fca
movq %rax, %r15
leaq 0x20(%r14), %r12
cmpq %r12, (%r14)
je 0x1354c
pushq $-0x2
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x5b7f
movq (%rsp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x13460
xorl %esi, %esi
cmpq %r12, (%r14)
sete %sil
orl $-0x2, %esi
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x5b7f
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x5b31
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_buffinit
LUALIB_API void luaL_buffinit (lua_State *L, luaL_Buffer *B) {
  B->L = L;
  B->b = B->initb;
  B->n = 0;
  B->size = LUAL_BUFFERSIZE;
}

// Assembly:
movq %rdi, 0x18(%rsi)
leaq 0x20(%rsi), %rax
movq %rax, (%rsi)
andq $0x0, 0x10(%rsi)
movq $0x2000, 0x8(%rsi)      # imm = 0x2000
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $-0x1
popq %r14
movl %r14d, %esi
callq 0x5d12
testl %eax, %eax
je 0x13631
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5afc
movl %eax, %ebp
movq %rbx, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0x65cf
pushq $-0x1
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x5f59
movq %rax, %r14
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x5b31
testl %r14d, %r14d
je 0x1363e
movslq %r14d, %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x65cf
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x69fb
jmp 0x1364e
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x5b31
jmp 0x1365b
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6047
movq %rax, %r14
incl %r14d
movslq %r14d, %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x69fb
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x136ba
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rdi, %rbx
callq 0x5afc
movl %eax, %r14d
movq %rbx, %rdi
movl %eax, %esi
xorl %edx, %edx
callq 0x65cf
movl %ebp, %r15d
movq %rbx, %rdi
movl %r14d, %esi
movq %r15, %rdx
callq 0x69fb
movq %rbx, %rdi
movq %r15, %rsi
callq 0x615b
movq %rbx, %rdi
movl %r14d, %esi
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x69fb
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x54b0
movq %rax, %r15
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x5fca
leaq 0x1(%rax), %rcx
leaq 0xcc7d(%rip), %rsi      # 0x20517
movq %rbx, %rdi
movq %r14, %rdx
movq %r15, %r8
xorl %eax, %eax
callq 0x6261
pushq $-0x1
popq %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5b7f
pushq $-0x2
popq %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5b31
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
andl $0x0, (%rdi)
xorl %r15d, %r15d
pushq $-0x1
popq %rbp
leaq 0xcc3b(%rip), %r12      # 0x20528
xorl %r13d, %r13d
movq 0x8(%r14), %rdi
callq 0x54d0
cmpl $-0x1, %eax
je 0x13958
movzbl (%r13,%r12), %ecx
cmpl %ecx, %eax
jne 0x1392c
incq %r13
movslq (%r14), %rcx
leal 0x1(%rcx), %edx
movl %edx, (%r14)
movb %al, 0x10(%r14,%rcx)
cmpq $0x3, %r13
jne 0x138f0
andl $0x0, (%r14)
movq 0x8(%r14), %rdi
callq 0x54d0
movl %eax, (%rbx)
xorl %r15d, %r15d
cmpl $0x23, %eax
jne 0x1395a
movq 0x8(%r14), %rdi
callq 0x54d0
cmpl $0xa, %eax
je 0x13949
cmpl $-0x1, %eax
jne 0x13936
movq 0x8(%r14), %rdi
callq 0x54d0
movl %eax, %ebp
pushq $0x1
popq %r15
movl %ebp, (%rbx)
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/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 0x1398a
movq %rax, (%r14)
andl $0x0, (%rbx)
addq $0x10, %rbx
jmp 0x13999
movq 0x8(%rbx), %rdi
callq 0x52c0
testl %eax, %eax
je 0x139a4
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x10(%rbx), %rdi
movq 0x8(%rbx), %rcx
pushq $0x1
popq %rsi
movl $0x2000, %edx           # imm = 0x2000
callq 0x50d0
movq %rax, (%r14)
jmp 0x13984
// File: /workspace/github_c_makefile_star2_O2/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         # 0x139e2
movq %rax, %rdx
callq 0x6d1c
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x139f7
movq %rax, (%rdx)
andq $0x0, 0x8(%rsi)
movq (%rsi), %rax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x66b9
testl %eax, %eax
je 0x13a6a
movq %rbx, %rdi
movq %r14, %rsi
callq 0x61d0
pushq $-0x2
popq %r14
movq %rbx, %rdi
movl %r14d, %esi
callq 0x6599
testl %eax, %eax
je 0x13a6e
movl %eax, %ebp
pushq $-0x1
popq %rdx
movq %rbx, %rdi
movl %r14d, %esi
callq 0x5b7f
jmp 0x13a74
xorl %ebp, %ebp
jmp 0x13a7f
xorl %ebp, %ebp
pushq $-0x3
popq %r14
movq %rbx, %rdi
movl %r14d, %esi
callq 0x5b31
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5afc
movl %eax, %ebp
movq %rbx, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x13a27
testl %eax, %eax
je 0x13ac8
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5cee
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
movl %ebp, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x6bb0
jmp 0x13aca
xorl %ebp, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x6fbb
pushq $-0x1
popq %rsi
leaq 0xc(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rdx
callq 0x5f59
movq %rax, %r14
cmpl $0x0, (%r15)
jne 0x13b0f
leaq 0xc88e(%rip), %rsi      # 0x20393
movq %rbx, %rdi
xorl %eax, %eax
callq 0x12bd6
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x5b31
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0xc876(%rip), %rdx      # 0x203b3
callq 0x13a86
testl %eax, %eax
je 0x13b5e
pushq $-0x1
popq %rsi
movq %r14, %rdi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5fca
movq %r14, %rdi
movl %ebp, %esi
callq 0x5d12
cmpl $0x4, %eax
ja 0x13bfa
movl %eax, %eax
leaq 0xc702(%rip), %rcx      # 0x2027c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xc185(%rip), %rsi      # 0x1fd0f
jmp 0x13bde
movq %r14, %rdi
movl %ebp, %esi
callq 0x5d5d
movq %r14, %rdi
movl %ebp, %esi
xorl %edx, %edx
testl %eax, %eax
je 0x13c37
callq 0x5f59
leaq 0xc80d(%rip), %rsi      # 0x203be
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x6261
jmp 0x13b46
movq %r14, %rdi
movl %ebp, %esi
callq 0x5fa6
testl %eax, %eax
leaq 0xc7f3(%rip), %rax      # 0x203c6
leaq 0xc7e7(%rip), %rsi      # 0x203c1
cmoveq %rax, %rsi
movq %r14, %rdi
callq 0x61d0
jmp 0x13b46
movq %r14, %rdi
movl %ebp, %esi
callq 0x5cee
jmp 0x13b46
movq %r14, %rdi
movl %ebp, %esi
callq 0x5d12
movq %r14, %rdi
movl %eax, %esi
callq 0x5d31
movq %rax, %r15
movq %r14, %rdi
movl %ebp, %esi
callq 0x60f2
leaq 0xc7aa(%rip), %rsi      # 0x203cc
movq %r14, %rdi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x6261
jmp 0x13b46
callq 0x5f0b
leaq 0xc828(%rip), %rsi      # 0x2046b
movq %r14, %rdi
movb $0x1, %al
callq 0x6261
jmp 0x13b46
// File: /workspace/github_c_makefile_star2_O2/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, %r13d
movq %rsi, %r15
movq %rdi, %r14
leaq 0xc766(%rip), %rdx      # 0x203d3
movl %r13d, %esi
callq 0x12a9f
movl %r13d, %ebp
negl %ebp
pushq $-0x2
popq %rax
subl %r13d, %eax
movl %eax, 0x4(%rsp)
xorl %ebx, %ebx
testl %r13d, %r13d
movl %r13d, %r12d
cmovgl %r13d, %ebx
cmpq $0x0, (%r15)
je 0x13ccf
movl %ebx, %r13d
subl $0x1, %r13d
jb 0x13cab
movq %r14, %rdi
movl %ebp, %esi
callq 0x5cee
jmp 0x13c99
movq 0x8(%r15), %rsi
movq %r14, %rdi
movl %r12d, %edx
callq 0x630a
movq (%r15), %rdx
movq %r14, %rdi
movl 0x4(%rsp), %esi
callq 0x68b9
addq $0x10, %r15
jmp 0x13c90
notl %r12d
movq %r14, %rdi
movl %r12d, %esi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5b31
// File: /workspace/github_c_makefile_star2_O2/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, %ebp
movq %rdi, %r14
callq 0x64f4
cmpl $0x5, %eax
jne 0x13d09
pushq $0x1
popq %rbp
jmp 0x13d48
pushq $-0x2
popq %rsi
movq %r14, %rdi
callq 0x5b31
movq %r14, %rdi
movl %ebp, %esi
callq 0x5afc
movl %eax, %r15d
xorl %ebp, %ebp
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x665a
pushq $-0x1
popq %rsi
movq %r14, %rdi
callq 0x5cee
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0x68b9
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_requiref
LUALIB_API void luaL_requiref (lua_State *L, const char *modname,
                               lua_CFunction openf, int glb) {
  luaL_getsubtable(L, LUA_REGISTRYINDEX, "_LOADED");
  lua_getfield(L, -1, modname);  /* _LOADED[modname] */
  if (!lua_toboolean(L, -1)) {  /* package not already loaded? */
    lua_pop(L, 1);  /* remove field */
    lua_pushcfunction(L, openf);
    lua_pushstring(L, modname);  /* argument to open function */
    lua_call(L, 1, 1);  /* call 'openf' to open module */
    lua_pushvalue(L, -1);  /* make copy of module (call result) */
    lua_setfield(L, -3, modname);  /* _LOADED[modname] = module */
  }
  lua_remove(L, -2);  /* remove _LOADED table */
  if (glb) {
    lua_pushvalue(L, -1);  /* copy of module */
    lua_setglobal(L, modname);  /* _G[modname] = module */
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xc676(%rip), %rdx      # 0x203e5
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x13ceb
pushq $-0x1
popq %r12
movq %r14, %rdi
movl %r12d, %esi
movq %rbx, %rdx
callq 0x64f4
movq %r14, %rdi
movl %r12d, %esi
callq 0x5fa6
testl %eax, %eax
jne 0x13de8
pushq $-0x2
popq %rsi
movq %r14, %rdi
callq 0x5b31
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x630a
movq %r14, %rdi
movq %rbx, %rsi
callq 0x61d0
pushq $0x1
popq %rdx
movq %r14, %rdi
movl %edx, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x6bb0
pushq $-0x1
popq %rsi
movq %r14, %rdi
callq 0x5cee
pushq $-0x3
popq %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x68b9
pushq $-0x2
popq %r15
pushq $-0x1
popq %rdx
movq %r14, %rdi
movl %r15d, %esi
callq 0x5b7f
movq %r14, %rdi
movl %r15d, %esi
callq 0x5b31
testl %ebp, %ebp
je 0x13e27
pushq $-0x1
popq %rsi
movq %r14, %rdi
callq 0x5cee
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x6749
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_gsub
LUALIB_API const char *luaL_gsub (lua_State *L, const char *s, const char *p,
                                                               const char *r) {
  const char *wild;
  size_t l = strlen(p);
  luaL_Buffer b;
  luaL_buffinit(L, &b);
  while ((wild = strstr(s, p)) != NULL) {
    luaL_addlstring(&b, s, wild - s);  /* push prefix */
    luaL_addstring(&b, r);  /* push replacement in place of pattern */
    s = wild + l;  /* continue after 'p' */
  }
  luaL_addstring(&b, s);  /* push last suffix */
  luaL_pushresult(&b);
  return lua_tostring(L, -1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2028, %rsp           # imm = 0x2028
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r12
movq %rdx, %rdi
callq 0x5140
leaq 0x28(%rsp), %rcx
movq %r12, (%rsp)
movq %r12, -0x8(%rcx)
movq %rcx, -0x20(%rcx)
andq $0x0, -0x10(%rcx)
movq %rax, %r13
movq $0x2000, -0x18(%rcx)    # imm = 0x2000
leaq 0x8(%rsp), %rbp
movq %rbx, %rdi
movq %r15, %rsi
callq 0x54e0
testq %rax, %rax
je 0x13eb2
movq %rax, %r12
movq %rax, %rdx
subq %rbx, %rdx
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x13460
movq %rbp, %rdi
movq %r14, %rsi
callq 0x13493
addq %r13, %r12
movq %r12, %rbx
jmp 0x13e7b
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13493
movq %r14, %rdi
callq 0x134ba
pushq $-0x1
popq %rsi
movq (%rsp), %rdi
xorl %edx, %edx
callq 0x5fca
addq $0x2028, %rsp           # imm = 0x2028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: l_alloc
static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {
  (void)ud; (void)osize;  /* not used */
  if (nsize == 0) {
    free(ptr);
    return NULL;
  }
  else
    return realloc(ptr, nsize);
}

// Assembly:
movq %rsi, %rdi
testq %rcx, %rcx
je 0x13f25
movq %rcx, %rsi
jmp 0x53d0
pushq %rax
callq 0x5050
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_checkversion_
LUALIB_API void luaL_checkversion_ (lua_State *L, lua_Number ver, size_t sz) {
  const lua_Number *v = lua_version(L);
  if (sz != LUAL_NUMSIZES)  /* check numeric types */
    luaL_error(L, "core and library have incompatible numeric types");
  if (v != lua_version(NULL))
    luaL_error(L, "multiple Lua VMs detected");
  else if (*v != ver)
    luaL_error(L, "version mismatch: app. needs %f, Lua core provides %f",
                  ver, *v);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
callq 0x5ae3
movq %rax, %r14
cmpq $0x88, %r15
je 0x13fa4
leaq 0xc453(%rip), %rsi      # 0x203ed
movq %rbx, %rdi
xorl %eax, %eax
callq 0x12bd6
xorl %edi, %edi
callq 0x5ae3
cmpq %rax, %r14
je 0x13fca
leaq 0xc467(%rip), %rsi      # 0x2041e
movq %rbx, %rdi
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x12bd6
movsd (%r14), %xmm1
movsd 0x8(%rsp), %xmm0
ucomisd %xmm0, %xmm1
jne 0x13fdd
jnp 0x13ff7
leaq 0xc454(%rip), %rsi      # 0x20438
movq %rbx, %rdi
movb $0x2, %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x12bd6
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: findfield
static int findfield (lua_State *L, int objidx, int level) {
  if (level == 0 || !lua_istable(L, -1))
    return 0;  /* not found */
  lua_pushnil(L);  /* start 'next' loop */
  while (lua_next(L, -2)) {  /* for each pair in table */
    if (lua_type(L, -2) == LUA_TSTRING) {  /* ignore non-string keys */
      if (lua_rawequal(L, objidx, -1)) {  /* found object? */
        lua_pop(L, 1);  /* remove value (but keep name) */
        return 1;
      }
      else if (findfield(L, objidx, level - 1)) {  /* try recursively */
        lua_remove(L, -2);  /* remove table (but keep name) */
        lua_pushliteral(L, ".");
        lua_insert(L, -2);  /* place '.' between the two names */
        lua_concat(L, 3);
        return 1;
      }
    }
    lua_pop(L, 1);  /* remove value */
  }
  return 0;  /* not found */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %ebp, %ebp
testl %edx, %edx
je 0x140ee
movl %edx, %r14d
movl %esi, %r15d
movq %rdi, %rbx
pushq $-0x1
popq %rsi
callq 0x5d12
cmpl $0x5, %eax
jne 0x140ee
movq %rbx, %rdi
callq 0x6135
decl %r14d
pushq $-0x2
popq %r12
pushq $-0x1
popq %r13
movq %rbx, %rdi
movl %r12d, %esi
callq 0x6f20
testl %eax, %eax
je 0x140ee
movq %rbx, %rdi
movl %r12d, %esi
callq 0x5d12
cmpl $0x4, %eax
jne 0x1408a
movq %rbx, %rdi
movl %r15d, %esi
movl %r13d, %edx
callq 0x5dc3
testl %eax, %eax
jne 0x14097
movq %rbx, %rdi
movl %r15d, %esi
movl %r14d, %edx
callq 0x14001
testl %eax, %eax
jne 0x140a7
movq %rbx, %rdi
movl %r12d, %esi
callq 0x5b31
jmp 0x14043
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x5b31
pushq $0x1
popq %rbp
jmp 0x140ee
pushq $-0x2
popq %r14
pushq $-0x1
popq %rdx
movq %rbx, %rdi
movl %r14d, %esi
callq 0x5b7f
movq %rbx, %rdi
movl %r14d, %esi
callq 0x5b31
leaq 0xc1de(%rip), %rsi      # 0x202a9
movq %rbx, %rdi
callq 0x61d0
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
callq 0x5b7f
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x6f57
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/linit.c
// Function: luaL_openlibs
LUALIB_API void luaL_openlibs (lua_State *L) {
  const luaL_Reg *lib;
  /* "require" functions from 'loadedlibs' and set results to global table */
  for (lib = loadedlibs; lib->func; lib++) {
    luaL_requiref(L, lib->name, lib->func, 1);
    lua_pop(L, 1);  /* remove lib */
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1a027(%rip), %r15     # 0x2e148
pushq $0x1
popq %rbp
pushq $-0x2
popq %r14
movq (%r15), %rdx
testq %rdx, %rdx
je 0x1414f
movq -0x8(%r15), %rsi
movq %rbx, %rdi
movl %ebp, %ecx
callq 0x13d55
movq %rbx, %rdi
movl %r14d, %esi
callq 0x5b31
addq $0x10, %r15
jmp 0x14128
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lcode.c
// Function: luaK_nil
void luaK_nil (FuncState *fs, int from, int n) {
  Instruction *previous;
  int l = from + n - 1;  /* last register to set nil */
  if (fs->pc > fs->lasttarget) {  /* no jumps to current position? */
    previous = &fs->f->code[fs->pc-1];
    if (GET_OPCODE(*previous) == OP_LOADNIL) {  /* previous is LOADNIL? */
      int pfrom = GETARG_A(*previous);  /* get previous range */
      int pl = pfrom + GETARG_B(*previous);
      if ((pfrom <= from && from <= pl + 1) ||
          (from <= pfrom && pfrom <= l + 1)) {  /* can connect both? */
        if (pfrom < from) from = pfrom;  /* from = min(from, pfrom) */
        if (pl > l) l = pl;  /* l = max(l, pl) */
        SETARG_A(*previous, from);
        SETARG_B(*previous, l - from);
        return;
      }
    }  /* else go through */
  }
  luaK_codeABC(fs, OP_LOADNIL, from, n - 1, 0);  /* else no optimization */
}

// Assembly:
pushq %rbp
pushq %rbx
movl %edx, %ecx
movl %esi, %edx
movslq 0x20(%rdi), %rax
cmpl 0x24(%rdi), %eax
jle 0x141c7
movq (%rdi), %rsi
movq 0x38(%rsi), %rsi
movl -0x4(%rsi,%rax,4), %r8d
movl %r8d, %r9d
andl $0x3f, %r9d
cmpl $0x4, %r9d
jne 0x141c7
leal (%rcx,%rdx), %r10d
movl %r8d, %r9d
shrl $0x6, %r9d
movzbl %r9b, %r11d
movl %r8d, %r9d
shrl $0x17, %r9d
cmpl %edx, %r11d
setg %bl
leal (%r11,%r9), %ebp
incl %ebp
cmpl %edx, %ebp
setl %bpl
orb %bl, %bpl
cmpb $0x1, %bpl
jne 0x141d8
cmpl %edx, %r11d
setl %bl
cmpl %r10d, %r11d
setg %bpl
orb %bl, %bpl
je 0x141d8
decl %ecx
movl $0x4, %esi
xorl %r8d, %r8d
popq %rbx
popq %rbp
jmp 0x14213
addl %edx, %ecx
addl $0x1ff, %ecx            # imm = 0x1FF
addl %r11d, %r9d
cmpl %edx, %r11d
cmovll %r11d, %edx
cmpl %r10d, %r9d
cmovll %ecx, %r9d
andl $0x7fc004, %r8d         # imm = 0x7FC004
movzbl %dl, %ecx
shll $0x6, %ecx
orl %r8d, %ecx
subl %edx, %r9d
shll $0x17, %r9d
orl %ecx, %r9d
movl %r9d, -0x4(%rsi,%rax,4)
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lcode.c
// Function: luaK_concat
void luaK_concat (FuncState *fs, int *l1, int l2) {
  if (l2 == NO_JUMP) return;  /* nothing to concatenate? */
  else if (*l1 == NO_JUMP)  /* no original list? */
    *l1 = l2;  /* 'l1' points to 'l2' */
  else {
    int list = *l1;
    int next;
    while ((next = getjump(fs, list)) != NO_JUMP)  /* find last element */
      list = next;
    fixjump(fs, list, l2);  /* last element links to 'l2' */
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
cmpl $-0x1, %edx
je 0x1425f
movl %edx, %ebx
movl (%rsi), %eax
cmpl $-0x1, %eax
je 0x1425d
movq %rdi, %r14
movl %eax, %ebp
movq %r14, %rdi
movl %eax, %esi
callq 0x14264
cmpl $-0x1, %eax
jne 0x1423f
movq %r14, %rdi
movl %ebp, %esi
movl %ebx, %edx
popq %rbx
popq %r14
popq %rbp
jmp 0x14288
movl %ebx, (%rsi)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lcode.c
// Function: fixjump
static void fixjump (FuncState *fs, int pc, int dest) {
  Instruction *jmp = &fs->f->code[pc];
  int offset = dest - (pc + 1);
  lua_assert(dest != NO_JUMP);
  if (abs(offset) > MAXARG_sBx)
    luaX_syntaxerror(fs->ls, "control structure too long");
  SETARG_sBx(*jmp, offset);
}

// Assembly:
movl %esi, %eax
notl %eax
addl %edx, %eax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
cmpl $0x20000, %ecx          # imm = 0x20000
jae 0x142bd
movq (%rdi), %rcx
movq 0x38(%rcx), %rcx
movslq %esi, %rdx
movl $0x3fff, %esi           # imm = 0x3FFF
andl (%rcx,%rdx,4), %esi
shll $0xe, %eax
addl %esi, %eax
addl $0x7fffc000, %eax       # imm = 0x7FFFC000
movl %eax, (%rcx,%rdx,4)
retq
pushq %rax
movq 0x10(%rdi), %rdi
leaq 0xc41f(%rip), %rsi      # 0x206e8
callq 0x15676
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lcode.c
// Function: luaK_jump
int luaK_jump (FuncState *fs) {
  int jpc = fs->jpc;  /* save list of jumps to here */
  int j;
  fs->jpc = NO_JUMP;  /* no more jumps to here */
  j = luaK_codeAsBx(fs, OP_JMP, 0, NO_JUMP);
  luaK_concat(fs, &j, jpc);  /* keep them on hold */
  return j;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl 0x28(%rdi), %ebp
orl $-0x1, 0x28(%rdi)
movl $0x7fff801e, %esi       # imm = 0x7FFF801E
callq 0x143fd
leaq 0xc(%rsp), %r14
movl %eax, (%r14)
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x1422a
movl (%r14), %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lcode.c
// Function: patchlistaux
static void patchlistaux (FuncState *fs, int list, int vtarget, int reg,
                          int dtarget) {
  while (list != NO_JUMP) {
    int next = getjump(fs, list);
    if (patchtestreg(fs, list, reg))
      fixjump(fs, list, vtarget);
    else
      fixjump(fs, list, dtarget);  /* jump to default target */
    list = next;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movl %ecx, %ebp
movl %edx, %r14d
movl %esi, %r12d
movq %rdi, %r15
cmpl $-0x1, %r12d
je 0x143aa
movq %r15, %rdi
movl %r12d, %esi
callq 0x14264
movl %eax, %r13d
movq %r15, %rdi
movl %r12d, %esi
movl %ebp, %edx
callq 0x15361
testl %eax, %eax
movl %r14d, %edx
cmovel %ebx, %edx
movq %r15, %rdi
movl %r12d, %esi
callq 0x14288
movl %r13d, %r12d
jmp 0x14371
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lcode.c
// Function: luaK_patchclose
void luaK_patchclose (FuncState *fs, int list, int level) {
  level++;  /* argument is +1 to reserve 0 as non-op */
  for (; list != NO_JUMP; list = getjump(fs, list)) {
    lua_assert(GET_OPCODE(fs->f->code[list]) == OP_JMP &&
                (GETARG_A(fs->f->code[list]) == 0 ||
                 GETARG_A(fs->f->code[list]) >= level));
    SETARG_A(fs->f->code[list], level);
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rdi, %r14
shll $0x6, %ebx
addl $0x40, %ebx
andl $0x3fc0, %ebx           # imm = 0x3FC0
movl $0xffffc03f, %ebp       # imm = 0xFFFFC03F
cmpl $-0x1, %esi
je 0x143f8
movq (%r14), %rax
movq 0x38(%rax), %rax
movslq %esi, %rcx
movl (%rax,%rcx,4), %edx
andl %ebp, %edx
orl %ebx, %edx
movl %edx, (%rax,%rcx,4)
movq %r14, %rdi
callq 0x14264
movl %eax, %esi
jmp 0x143d3
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lcode.c
// Function: luaK_code
static int luaK_code (FuncState *fs, Instruction i) {
  Proto *f = fs->f;
  dischargejpc(fs);  /* 'pc' will change */
  /* put new instruction in code array */
  luaM_growvector(fs->ls->L, f->code, fs->pc, f->sizecode, Instruction,
                  MAX_INT, "opcodes");
  f->code[fs->pc] = i;
  /* save corresponding line information */
  luaM_growvector(fs->ls->L, f->lineinfo, fs->pc, f->sizelineinfo, int,
                  MAX_INT, "opcodes");
  f->lineinfo[fs->pc] = fs->ls->lastline;
  return fs->pc++;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq (%rdi), %r14
movl 0x28(%rdi), %esi
movl 0x20(%rdi), %edx
movl $0xff, %ecx
movl %edx, %r8d
callq 0x14358
orl $-0x1, 0x28(%rbx)
movl 0x20(%rbx), %ecx
cmpl 0x18(%r14), %ecx
jge 0x1442f
movq 0x38(%r14), %rax
jmp 0x1445b
leaq 0x18(%r14), %rdx
movq 0x10(%rbx), %rax
movq 0x38(%rax), %rdi
movq 0x38(%r14), %rsi
leaq 0xc2bd(%rip), %r9       # 0x20703
pushq $0x4
popq %rcx
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
callq 0xab14
movq %rax, 0x38(%r14)
movl 0x20(%rbx), %ecx
movslq %ecx, %rcx
movl %ebp, (%rax,%rcx,4)
movl 0x20(%rbx), %ecx
cmpl 0x1c(%r14), %ecx
jge 0x14470
movq 0x48(%r14), %rax
jmp 0x1449c
leaq 0x1c(%r14), %rdx
movq 0x10(%rbx), %rax
movq 0x38(%rax), %rdi
movq 0x48(%r14), %rsi
leaq 0xc27c(%rip), %r9       # 0x20703
pushq $0x4
popq %rcx
movl $0x7fffffff, %r8d       # imm = 0x7FFFFFFF
callq 0xab14
movq %rax, 0x48(%r14)
movl 0x20(%rbx), %ecx
movq 0x10(%rbx), %rdx
movl 0x8(%rdx), %edx
movslq %ecx, %rcx
movl %edx, (%rax,%rcx,4)
movl 0x20(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x20(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lcode.c
// Function: luaK_codek
int luaK_codek (FuncState *fs, int reg, int k) {
  if (k <= MAXARG_Bx)
    return luaK_codeABx(fs, OP_LOADK, reg, k);
  else {
    int p = luaK_codeABx(fs, OP_LOADKX, reg, 0);
    codeextraarg(fs, k);
    return p;
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebx
movl %esi, %edx
movq %rdi, %r14
cmpl $0x3ffff, %ebx          # imm = 0x3FFFF
jg 0x144db
pushq $0x1
popq %rsi
movq %r14, %rdi
movl %ebx, %ecx
popq %rbx
popq %r14
popq %rbp
jmp 0x1430b
shll $0x6, %edx
orl $0x2, %edx
movq %r14, %rdi
movl %edx, %esi
callq 0x143fd
movl %eax, %ebp
movq %r14, %rdi
movl %ebx, %esi
callq 0x144fe
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lcode.c
// Function: luaK_checkstack
void luaK_checkstack (FuncState *fs, int n) {
  int newstack = fs->freereg + n;
  if (newstack > fs->f->maxstacksize) {
    if (newstack >= MAXREGS)
      luaX_syntaxerror(fs->ls,
        "function or expression needs too many registers");
    fs->f->maxstacksize = cast_byte(newstack);
  }
}

// Assembly:
movzbl 0x3c(%rdi), %eax
addl %esi, %eax
movq (%rdi), %rcx
movzbl 0xc(%rcx), %edx
cmpl %edx, %eax
jle 0x14524
cmpl $0xff, %eax
jae 0x14525
movb %al, 0xc(%rcx)
retq
pushq %rax
movq 0x10(%rdi), %rdi
leaq 0xc187(%rip), %rsi      # 0x206b8
callq 0x15676