LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/loslib.c
// Function: setallfields
static void setallfields (lua_State *L, struct tm *stm) {
  setfield(L, "sec", stm->tm_sec);
  setfield(L, "min", stm->tm_min);
  setfield(L, "hour", stm->tm_hour);
  setfield(L, "day", stm->tm_mday);
  setfield(L, "month", stm->tm_mon + 1);
  setfield(L, "year", stm->tm_year + 1900);
  setfield(L, "wday", stm->tm_wday + 1);
  setfield(L, "yday", stm->tm_yday + 1);
  setboolfield(L, "isdst", stm->tm_isdst);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl (%rsi), %edx
leaq 0x6fd6(%rip), %rsi      # 0x21247
callq 0x1a337
movl 0x4(%r14), %edx
leaq 0x6ede(%rip), %rsi      # 0x2115f
movq %rbx, %rdi
callq 0x1a337
movl 0x8(%r14), %edx
leaq 0x6fb7(%rip), %rsi      # 0x2124b
movq %rbx, %rdi
callq 0x1a337
movl 0xc(%r14), %edx
leaq 0x6fb5(%rip), %rsi      # 0x2125c
movq %rbx, %rdi
callq 0x1a337
movl 0x10(%r14), %edx
incl %edx
leaq 0x6f94(%rip), %rsi      # 0x21250
movq %rbx, %rdi
callq 0x1a337
movl $0x76c, %edx            # imm = 0x76C
addl 0x14(%r14), %edx
leaq 0x6f82(%rip), %rsi      # 0x21256
movq %rbx, %rdi
callq 0x1a337
movl 0x18(%r14), %edx
incl %edx
leaq 0x6f72(%rip), %rsi      # 0x2125b
movq %rbx, %rdi
callq 0x1a337
movl 0x1c(%r14), %edx
incl %edx
leaq 0x6f62(%rip), %rsi      # 0x21260
movq %rbx, %rdi
callq 0x1a337
movl 0x20(%r14), %esi
testl %esi, %esi
js 0x1a32f
movq %rbx, %rdi
callq 0x6386
leaq 0x6f48(%rip), %rdx      # 0x21265
pushq $-0x2
popq %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x68b9
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/loslib.c
// Function: getfield
static int getfield (lua_State *L, const char *key, int d, int delta) {
  int isnum;
  int t = lua_getfield(L, -1, key);  /* get field and its type */
  lua_Integer res = lua_tointegerx(L, -1, &isnum);
  if (!isnum) {  /* field is not an integer? */
    if (t != LUA_TNIL)  /* some other value? */
      return luaL_error(L, "field '%s' is not an integer", key);
    else if (d < 0)  /* absent field; no default? */
      return luaL_error(L, "field '%s' missing in date table", key);
    res = d;
  }
  else {
    if (!(-L_MAXDATEFIELD <= res && res <= L_MAXDATEFIELD))
      return luaL_error(L, "field '%s' is out-of-bound", key);
    res -= delta;
  }
  lua_pop(L, 1);
  return (int)res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, (%rsp)
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
pushq $-0x1
popq %r13
movl %r13d, %esi
movq %r14, %rdx
callq 0x64f4
movl %eax, %r12d
leaq 0x4(%rsp), %r15
movq %rbx, %rdi
movl %r13d, %esi
movq %r15, %rdx
callq 0x5f59
cmpl $0x0, (%r15)
je 0x1a3b6
leaq 0x3fffffff(%rax), %rcx
cmpq $0x7fffffff, %rcx       # imm = 0x7FFFFFFF
jae 0x1a3c4
subl (%rsp), %eax
movl %eax, %ebp
jmp 0x1a3e0
testl %r12d, %r12d
je 0x1a3dc
leaq 0x6f3a(%rip), %rsi      # 0x212fc
jmp 0x1a3cb
leaq 0x6f6f(%rip), %rsi      # 0x2133a
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x12bd6
movl %eax, %ebp
jmp 0x1a3eb
testl %ebp, %ebp
js 0x1a3fc
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x5b31
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6f16(%rip), %rsi      # 0x21319
jmp 0x1a3cb
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: str_byte
static int str_byte (lua_State *L) {
  size_t l;
  const char *s = luaL_checklstring(L, 1, &l);
  lua_Integer posi = posrelat(luaL_optinteger(L, 2, 1), l);
  lua_Integer pose = posrelat(luaL_optinteger(L, 3, posi), l);
  int n, i;
  if (posi < 1) posi = 1;
  if (pose > (lua_Integer)l) pose = l;
  if (posi > pose) return 0;  /* empty interval; return no values */
  if (pose - posi >= INT_MAX)  /* arithmetic overflow? */
    return luaL_error(L, "string slice too long");
  n = (int)(pose -  posi) + 1;
  luaL_checkstack(L, n, "string slice too long");
  for (i=0; i<n; i++)
    lua_pushinteger(L, uchar(s[posi+i-1]));
  return n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
pushq $0x1
popq %rsi
movq %rsp, %rdx
callq 0x13131
movq %rax, %r14
pushq $0x2
popq %rsi
pushq $0x1
popq %r15
movq %rbx, %rdi
movq %r15, %rdx
callq 0x132b0
movq %rax, %r12
testq %rax, %rax
jns 0x1a501
movq (%rsp), %rax
movq %r12, %rcx
negq %rcx
cmpq %rcx, %rax
jae 0x1a4fb
xorl %r12d, %r12d
jmp 0x1a501
addq %rax, %r12
incq %r12
pushq $0x3
popq %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0x132b0
movq (%rsp), %r13
testq %rax, %rax
jns 0x1a52d
movq %rax, %rcx
negq %rcx
cmpq %rcx, %r13
jae 0x1a527
xorl %eax, %eax
jmp 0x1a52d
addq %r13, %rax
incq %rax
cmpq $0x2, %r12
cmovgeq %r12, %r15
cmpq %r13, %rax
cmovlq %rax, %r13
xorl %ebp, %ebp
subq %r15, %r13
jl 0x1a55f
cmpq $0x7fffffff, %r13       # imm = 0x7FFFFFFF
jl 0x1a570
leaq 0x7051(%rip), %rsi      # 0x215a4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x12bd6
movl %eax, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leal 0x1(%r13), %ebp
leaq 0x7029(%rip), %rdx      # 0x215a4
movq %rbx, %rdi
movl %ebp, %esi
callq 0x12a9f
addq %r15, %r14
decq %r14
movslq %r13d, %r15
xorl %r12d, %r12d
cmpq %r15, %r12
jg 0x1a55f
movzbl (%r14,%r12), %esi
movq %rbx, %rdi
callq 0x615b
incq %r12
jmp 0x1a591
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: str_char
static int str_char (lua_State *L) {
  int n = lua_gettop(L);  /* number of arguments */
  int i;
  luaL_Buffer b;
  char *p = luaL_buffinitsize(L, &b, n);
  for (i=1; i<=n; i++) {
    lua_Integer c = luaL_checkinteger(L, i);
    luaL_argcheck(L, uchar(c) == c, i, "value out of range");
    p[i - 1] = uchar(c);
  }
  luaL_pushresultsize(&b, n);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2028, %rsp           # imm = 0x2028
movq %rdi, %rbx
callq 0x5b1d
movslq %eax, %r13
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r13, %rdx
callq 0x135a2
movq %rax, %r15
xorl %r14d, %r14d
testl %r13d, %r13d
movl $0x0, %r12d
movq %r13, (%rsp)
cmovgl %r13d, %r12d
cmpq %r14, %r12
je 0x1a625
leaq 0x1(%r14), %r13
movq %rbx, %rdi
movl %r13d, %esi
callq 0x13252
movq %rax, %rbp
cmpq $0x100, %rax            # imm = 0x100
jb 0x1a61c
movq %rbx, %rdi
movl %r13d, %esi
leaq 0x6fa3(%rip), %rdx      # 0x215ba
callq 0x12af2
movb %bpl, (%r15,%r14)
movq %r13, %r14
jmp 0x1a5eb
leaq 0x8(%rsp), %rdi
movq (%rsp), %rsi
callq 0x1350c
pushq $0x1
popq %rax
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/lstrlib.c
// Function: str_dump
static int str_dump (lua_State *L) {
  luaL_Buffer b;
  int strip = lua_toboolean(L, 2);
  luaL_checktype(L, 1, LUA_TFUNCTION);
  lua_settop(L, 1);
  luaL_buffinit(L,&b);
  if (lua_dump(L, writer, &b, strip) != 0)
    return luaL_error(L, "unable to dump given function");
  luaL_pushresult(&b);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x2028, %rsp           # imm = 0x2028
movq %rdi, %rbx
pushq $0x2
popq %rsi
callq 0x5fa6
movl %eax, %r14d
pushq $0x1
popq %rbp
pushq $0x6
popq %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1315e
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5b31
leaq 0x8(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x13589
leaq 0x1609(%rip), %rsi      # 0x1bc9d
movq %rbx, %rdi
movq %r15, %rdx
movl %r14d, %ecx
callq 0x6dce
testl %eax, %eax
je 0x1a6bb
leaq 0x6f20(%rip), %rsi      # 0x215cd
movq %rbx, %rdi
xorl %eax, %eax
callq 0x12bd6
movl %eax, %ebp
jmp 0x1a6c5
leaq 0x8(%rsp), %rdi
callq 0x134ba
movl %ebp, %eax
addq $0x2028, %rsp           # imm = 0x2028
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: gmatch
static int gmatch (lua_State *L) {
  size_t ls, lp;
  const char *s = luaL_checklstring(L, 1, &ls);
  const char *p = luaL_checklstring(L, 2, &lp);
  GMatchState *gm;
  lua_settop(L, 2);  /* keep them on closure to avoid being collected */
  gm = (GMatchState *)lua_newuserdata(L, sizeof(GMatchState));
  prepstate(&gm->ms, L, s, ls, p, lp);
  gm->src = s; gm->p = p; gm->lastmatch = NULL;
  lua_pushcclosure(L, gmatch_aux, 3);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r14
pushq $0x1
popq %rsi
leaq 0x10(%rsp), %r12
movq %r12, %rdx
callq 0x13131
movq %rax, %r15
pushq $0x2
popq %rbp
leaq 0x8(%rsp), %r13
movq %r14, %rdi
movl %ebp, %esi
movq %r13, %rdx
callq 0x13131
movq %rax, %rbx
movq %r14, %rdi
movl %ebp, %esi
callq 0x5b31
movl $0x240, %esi            # imm = 0x240
movq %r14, %rdi
callq 0x6ffe
movq (%r12), %rcx
addq %r15, %rcx
movq (%r13), %rdx
addq %rbx, %rdx
movq %r14, 0x30(%rax)
movl $0xc8, 0x38(%rax)
movq %r15, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq %rdx, 0x28(%rax)
movq %r15, (%rax)
movq %rbx, 0x8(%rax)
andq $0x0, 0x10(%rax)
leaq 0x19c3(%rip), %rsi      # 0x1c78c
pushq $0x3
popq %rdx
movq %r14, %rdi
callq 0x630a
pushq $0x1
popq %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: str_len
static int str_len (lua_State *L) {
  size_t l;
  luaL_checklstring(L, 1, &l);
  lua_pushinteger(L, (lua_Integer)l);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rbp
leaq 0x8(%rsp), %r14
movl %ebp, %esi
movq %r14, %rdx
callq 0x13131
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x615b
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: str_lower
static int str_lower (lua_State *L) {
  size_t l;
  size_t i;
  luaL_Buffer b;
  const char *s = luaL_checklstring(L, 1, &l);
  char *p = luaL_buffinitsize(L, &b, l);
  for (i=0; i<l; i++)
    p[i] = tolower(uchar(s[i]));
  luaL_pushresultsize(&b, l);
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x2030, %rsp           # imm = 0x2030
movq %rdi, %r14
pushq $0x1
popq %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdx
callq 0x13131
movq %rax, %rbx
movq (%r15), %rdx
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x135a2
movq %rax, %r14
xorl %r15d, %r15d
movq 0x8(%rsp), %rsi
cmpq %rsi, %r15
jae 0x1b29d
callq 0x5510
movq (%rax), %rax
movzbl (%rbx,%r15), %ecx
movb (%rax,%rcx,4), %al
movb %al, (%r14,%r15)
incq %r15
jmp 0x1b27a
leaq 0x10(%rsp), %rdi
callq 0x1350c
pushq $0x1
popq %rax
addq $0x2030, %rsp           # imm = 0x2030
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: str_rep
static int str_rep (lua_State *L) {
  size_t l, lsep;
  const char *s = luaL_checklstring(L, 1, &l);
  lua_Integer n = luaL_checkinteger(L, 2);
  const char *sep = luaL_optlstring(L, 3, "", &lsep);
  if (n <= 0) lua_pushliteral(L, "");
  else if (l + lsep < l || l + lsep > MAXSIZE / n)  /* may overflow? */
    return luaL_error(L, "resulting string too large");
  else {
    size_t totallen = (size_t)n * l + (size_t)(n - 1) * lsep;
    luaL_Buffer b;
    char *p = luaL_buffinitsize(L, &b, totallen);
    while (n-- > 1) {  /* first n-1 copies (followed by separator) */
      memcpy(p, s, l * sizeof(char)); p += l;
      if (lsep > 0) {  /* empty 'memcpy' is not that cheap */
        memcpy(p, sep, lsep * sizeof(char));
        p += lsep;
      }
    }
    memcpy(p, s, l * sizeof(char));  /* last copy (not followed by separator) */
    luaL_pushresultsize(&b, totallen);
  }
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2038, %rsp           # imm = 0x2038
movq %rdi, %rbp
pushq $0x1
popq %rbx
leaq 0x10(%rsp), %rdx
movl %ebx, %esi
callq 0x13131
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbp, %rdi
callq 0x13252
movq %rax, %r15
leaq 0x6aef(%rip), %rdx      # 0x21de8
pushq $0x3
popq %rsi
leaq 0x8(%rsp), %rcx
movq %rbp, %rdi
callq 0x130d8
testq %r15, %r15
jle 0x1b347
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %r13
movq %r13, %rsi
addq %rcx, %rsi
jb 0x1b332
movq %rax, %r12
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edx, %edx
divq %r15
cmpq %rax, %rsi
jbe 0x1b358
leaq 0x64e1(%rip), %rsi      # 0x2181a
movq %rbp, %rdi
xorl %eax, %eax
callq 0x12bd6
movl %eax, %ebx
jmp 0x1b3c3
leaq 0x6a9a(%rip), %rsi      # 0x21de8
movq %rbp, %rdi
callq 0x61d0
jmp 0x1b3c3
imulq %r15, %rcx
movq %r15, %rax
decq %rax
imulq %rax, %r13
addq %rcx, %r13
leaq 0x18(%rsp), %rsi
movq %rbp, %rdi
movq %r13, %rdx
callq 0x135a2
movq %rax, %rbp
movq 0x10(%rsp), %rdx
movq %rbp, %rdi
movq %r14, %rsi
callq 0x5300
cmpq $0x2, %r15
jl 0x1b3b6
addq 0x10(%rsp), %rbp
movq 0x8(%rsp), %rdx
testq %rdx, %rdx
je 0x1b3b1
movq %rbp, %rdi
movq %r12, %rsi
callq 0x5300
addq 0x8(%rsp), %rbp
decq %r15
jmp 0x1b37c
leaq 0x18(%rsp), %rdi
movq %r13, %rsi
callq 0x1350c
movl %ebx, %eax
addq $0x2038, %rsp           # imm = 0x2038
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: str_reverse
static int str_reverse (lua_State *L) {
  size_t l, i;
  luaL_Buffer b;
  const char *s = luaL_checklstring(L, 1, &l);
  char *p = luaL_buffinitsize(L, &b, l);
  for (i = 0; i < l; i++)
    p[i] = s[l - i - 1];
  luaL_pushresultsize(&b, l);
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x2030, %rsp           # imm = 0x2030
movq %rdi, %r14
pushq $0x1
popq %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdx
callq 0x13131
movq %rax, %rbx
movq (%r15), %rdx
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x135a2
decq %rbx
xorl %ecx, %ecx
movq 0x8(%rsp), %rsi
cmpq %rsi, %rcx
jae 0x1b426
movb (%rbx,%rsi), %dl
movb %dl, (%rax,%rcx)
incq %rcx
decq %rbx
jmp 0x1b40e
leaq 0x10(%rsp), %rdi
callq 0x1350c
pushq $0x1
popq %rax
addq $0x2030, %rsp           # imm = 0x2030
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: str_sub
static int str_sub (lua_State *L) {
  size_t l;
  const char *s = luaL_checklstring(L, 1, &l);
  lua_Integer start = posrelat(luaL_checkinteger(L, 2), l);
  lua_Integer end = posrelat(luaL_optinteger(L, 3, -1), l);
  if (start < 1) start = 1;
  if (end > (lua_Integer)l) end = l;
  if (start <= end)
    lua_pushlstring(L, s + start - 1, (size_t)(end - start) + 1);
  else lua_pushliteral(L, "");
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
pushq $0x1
popq %rsi
leaq 0x8(%rsp), %rdx
callq 0x13131
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x13252
movq %rax, %r15
testq %rax, %rax
jns 0x1b48a
movq 0x8(%rsp), %rax
movq %r15, %rcx
negq %rcx
cmpq %rcx, %rax
jae 0x1b484
xorl %r15d, %r15d
jmp 0x1b48a
addq %rax, %r15
incq %r15
pushq $0x3
popq %rsi
pushq $-0x1
popq %rdx
movq %rbx, %rdi
callq 0x132b0
movq 0x8(%rsp), %rdx
testq %rax, %rax
jns 0x1b4b7
movq %rax, %rcx
negq %rcx
cmpq %rcx, %rdx
jae 0x1b4b1
xorl %eax, %eax
jmp 0x1b4b7
addq %rdx, %rax
incq %rax
cmpq $0x2, %r15
pushq $0x1
popq %rcx
cmovgeq %r15, %rcx
cmpq %rdx, %rax
cmovlq %rax, %rdx
subq %rcx, %rdx
jge 0x1b4df
leaq 0x6913(%rip), %rsi      # 0x21de8
movq %rbx, %rdi
callq 0x61d0
jmp 0x1b4f1
leaq (%r14,%rcx), %rsi
decq %rsi
incq %rdx
movq %rbx, %rdi
callq 0x616f
pushq $0x1
popq %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: str_upper
static int str_upper (lua_State *L) {
  size_t l;
  size_t i;
  luaL_Buffer b;
  const char *s = luaL_checklstring(L, 1, &l);
  char *p = luaL_buffinitsize(L, &b, l);
  for (i=0; i<l; i++)
    p[i] = toupper(uchar(s[i]));
  luaL_pushresultsize(&b, l);
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x2030, %rsp           # imm = 0x2030
movq %rdi, %r14
pushq $0x1
popq %rsi
leaq 0x8(%rsp), %r15
movq %r15, %rdx
callq 0x13131
movq %rax, %rbx
movq (%r15), %rdx
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x135a2
movq %rax, %r14
xorl %r15d, %r15d
movq 0x8(%rsp), %rsi
cmpq %rsi, %r15
jae 0x1b559
callq 0x5030
movq (%rax), %rax
movzbl (%rbx,%r15), %ecx
movb (%rax,%rcx,4), %al
movb %al, (%r14,%r15)
incq %r15
jmp 0x1b536
leaq 0x10(%rsp), %rdi
callq 0x1350c
pushq $0x1
popq %rax
addq $0x2030, %rsp           # imm = 0x2030
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: str_packsize
static int str_packsize (lua_State *L) {
  Header h;
  const char *fmt = luaL_checkstring(L, 1);  /* format string */
  size_t totalsize = 0;  /* accumulate total size of result */
  initheader(L, &h);
  while (*fmt != '\0') {
    int size, ntoalign;
    KOption opt = getdetails(&h, totalsize, &fmt, &size, &ntoalign);
    size += ntoalign;  /* total space used by option */
    luaL_argcheck(L, totalsize <= MAXSIZE - size, 1,
                     "format result too large");
    totalsize += size;
    switch (opt) {
      case Kstring:  /* strings with length count */
      case Kzstr:    /* zero-terminated string */
        luaL_argerror(L, 1, "variable-length format");
        /* call never return, but to avoid warnings: *//* FALLTHROUGH */
      default:  break;
    }
  }
  lua_pushinteger(L, (lua_Integer)totalsize);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorl %r14d, %r14d
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x13131
leaq 0x10(%rsp), %rcx
movq %rax, (%rcx)
leaq 0x18(%rsp), %r12
movq %rbx, (%r12)
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x8(%r12)
leaq 0x8(%rsp), %rbp
cmpb $0x0, (%rax)
je 0x1ba28
movq %r12, %rdi
movq %r14, %rsi
leaq 0x10(%rsp), %rdx
leaq 0xc(%rsp), %rcx
movq %rbp, %r8
callq 0x1c7f7
movl %eax, %r15d
movslq 0x8(%rsp), %rax
movslq 0xc(%rsp), %r13
addq %rax, %r13
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subq %r13, %rax
cmpq %rax, %r14
jbe 0x1ba02
movq %rbx, %rdi
pushq $0x1
popq %rsi
leaq 0x5f54(%rip), %rdx      # 0x21951
callq 0x12af2
andl $0xe, %r15d
cmpl $0x4, %r15d
jne 0x1ba1e
movq %rbx, %rdi
pushq $0x1
popq %rsi
leaq 0x5f50(%rip), %rdx      # 0x21969
callq 0x12af2
addq %r13, %r14
movq 0x10(%rsp), %rax
jmp 0x1b9b6
movq %rbx, %rdi
movq %r14, %rsi
callq 0x615b
pushq $0x1
popq %rax
addq $0x28, %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/lstrlib.c
// Function: push_captures
static int push_captures (MatchState *ms, const char *s, const char *e) {
  int i;
  int nlevels = (ms->level == 0 && s) ? 1 : ms->level;
  luaL_checkstack(ms->L, nlevels, "too many captures");
  for (i = 0; i < nlevels; i++)
    push_onecapture(ms, i, s, e);
  return nlevels;  /* number of strings pushed */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movzbl 0x24(%rdi), %eax
testl %eax, %eax
pushq $0x1
popq %rbp
cmovnel %eax, %ebp
testq %rsi, %rsi
cmovel %eax, %ebp
movq 0x18(%rdi), %rdi
leaq 0x52c5(%rip), %rdx      # 0x2162d
movl %ebp, %esi
callq 0x12a9f
xorl %r12d, %r12d
cmpl %r12d, %ebp
je 0x1c38d
movq %r15, %rdi
movl %r12d, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1c6a2
incl %r12d
jmp 0x1c372
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: start_capture
static const char *start_capture (MatchState *ms, const char *s,
                                    const char *p, int what) {
  const char *res;
  int level = ms->level;
  if (level >= LUA_MAXCAPTURES) luaL_error(ms->L, "too many captures");
  ms->capture[level].init = s;
  ms->capture[level].len = what;
  ms->level = level+1;
  if ((res=match(ms, s, p)) == NULL)  /* match failed? */
    ms->level--;  /* undo capture */
  return res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movzbl 0x24(%rdi), %r12d
cmpq $0x20, %r12
jb 0x1c3c8
movq 0x18(%rbx), %rdi
leaq 0x526c(%rip), %rsi      # 0x2162d
xorl %eax, %eax
callq 0x12bd6
movl %r12d, %eax
shll $0x4, %eax
movq %r15, 0x28(%rbx,%rax)
movslq %ebp, %rcx
movq %rcx, 0x30(%rbx,%rax)
leal 0x1(%r12), %eax
movb %al, 0x24(%rbx)
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1bf5a
testq %rax, %rax
jne 0x1c3f9
decb 0x24(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: classend
static const char *classend (MatchState *ms, const char *p) {
  switch (*p++) {
    case L_ESC: {
      if (p == ms->p_end)
        luaL_error(ms->L, "malformed pattern (ends with '%%')");
      return p+1;
    }
    case '[': {
      if (*p == '^') p++;
      do {  /* look for a ']' */
        if (p == ms->p_end)
          luaL_error(ms->L, "malformed pattern (missing ']')");
        if (*(p++) == L_ESC && p < ms->p_end)
          p++;  /* skip escapes (e.g. '%]') */
      } while (*p != ']');
      return p+1;
    }
    default: {
      return p;
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x1(%rsi), %rbx
movzbl (%rsi), %eax
cmpl $0x5b, %eax
je 0x1c43f
cmpl $0x25, %eax
jne 0x1c487
cmpq 0x10(%r14), %rbx
jne 0x1c436
movq 0x18(%r14), %rdi
leaq 0x5257(%rip), %rsi      # 0x21686
xorl %eax, %eax
callq 0x12bd6
addq $0x2, %r15
movq %r15, %rbx
jmp 0x1c487
cmpb $0x5e, 0x1(%r15)
leaq 0x2(%r15), %rax
cmoveq %rax, %rbx
leaq 0x5256(%rip), %r15      # 0x216a9
cmpq 0x10(%r14), %rbx
jne 0x1c467
movq 0x18(%r14), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x12bd6
leaq 0x1(%rbx), %rax
cmpb $0x25, (%rbx)
jne 0x1c476
cmpq 0x10(%r14), %rax
jb 0x1c47b
movq %rax, %rbx
jmp 0x1c47f
addq $0x2, %rbx
cmpb $0x5d, (%rbx)
jne 0x1c453
incq %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: matchbracketclass
static int matchbracketclass (int c, const char *p, const char *ec) {
  int sig = 1;
  if (*(p+1) == '^') {
    sig = 0;
    p++;  /* skip the '^' */
  }
  while (++p < ec) {
    if (*p == L_ESC) {
      p++;
      if (match_class(c, uchar(*p)))
        return sig;
    }
    else if ((*(p+1) == '-') && (p+2 < ec)) {
      p+=2;
      if (uchar(*(p-2)) <= c && c <= uchar(*p))
        return sig;
    }
    else if (uchar(*p) == c) return sig;
  }
  return !sig;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %rbx
movl %edi, %ebp
leaq 0x1(%rsi), %r12
cmpb $0x5e, 0x1(%rsi)
sete %r14b
setne %r15b
cmovneq %rsi, %r12
leaq 0x1(%r12), %rax
cmpq %rbx, %rax
jae 0x1c504
movzbl 0x1(%r12), %ecx
movzbl 0x2(%r12), %esi
cmpl $0x25, %ecx
jne 0x1c4dd
addq $0x2, %r12
movl %ebp, %edi
callq 0x1c54f
testl %eax, %eax
je 0x1c4b1
jmp 0x1c501
cmpl $0x2d, %esi
jne 0x1c4fa
addq $0x3, %r12
cmpq %rbx, %r12
jae 0x1c4fa
cmpl %ebp, %ecx
jg 0x1c4b1
movzbl (%r12), %eax
cmpl %ebp, %eax
jb 0x1c4b1
jmp 0x1c501
movq %rax, %r12
cmpl %ebp, %ecx
jne 0x1c4b1
movl %r15d, %r14d
movzbl %r14b, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: singlematch
static int singlematch (MatchState *ms, const char *s, const char *p,
                        const char *ep) {
  if (s >= ms->src_end)
    return 0;
  else {
    int c = uchar(*s);
    switch (*p) {
      case '.': return 1;  /* matches any char */
      case L_ESC: return match_class(c, uchar(*(p+1)));
      case '[': return matchbracketclass(c, p, ep-1);
      default:  return (uchar(*p) == c);
    }
  }
}

// Assembly:
xorl %eax, %eax
cmpq %rsi, 0x8(%rdi)
jbe 0x1c54e
movzbl (%rsi), %edi
movzbl (%rdx), %esi
cmpl $0x5b, %esi
je 0x1c538
cmpl $0x2e, %esi
je 0x1c534
cmpl $0x25, %esi
jne 0x1c546
movzbl 0x1(%rdx), %esi
jmp 0x1c54f
pushq $0x1
popq %rax
retq
decq %rcx
movq %rdx, %rsi
movq %rcx, %rdx
jmp 0x1c490
xorl %eax, %eax
cmpb %dil, %sil
sete %al
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: match_class
static int match_class (int c, int cl) {
  int res;
  switch (tolower(cl)) {
    case 'a' : res = isalpha(c); break;
    case 'c' : res = iscntrl(c); break;
    case 'd' : res = isdigit(c); break;
    case 'g' : res = isgraph(c); break;
    case 'l' : res = islower(c); break;
    case 'p' : res = ispunct(c); break;
    case 's' : res = isspace(c); break;
    case 'u' : res = isupper(c); break;
    case 'w' : res = isalnum(c); break;
    case 'x' : res = isxdigit(c); break;
    case 'z' : res = (c == 0); break;  /* deprecated option */
    default: return (cl == c);
  }
  return (islower(cl) ? res : !res);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movl %edi, %ebp
movl %esi, %edi
callq 0x5330
addl $-0x61, %eax
cmpl $0x19, %eax
ja 0x1c699
leaq 0x4ee7(%rip), %rcx      # 0x21458
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x5520
movq (%rax), %rcx
movl %ebp, %edx
movzwl (%rcx,%rdx,2), %r14d
andl $0x400, %r14d           # imm = 0x400
jmp 0x1c67e
xorl %r14d, %r14d
testl %ebp, %ebp
sete %r14b
callq 0x5520
jmp 0x1c67e
callq 0x5520
movq (%rax), %rcx
movl %ebp, %edx
movzwl (%rcx,%rdx,2), %r14d
andl $0x200, %r14d           # imm = 0x200
jmp 0x1c67e
callq 0x5520
movq (%rax), %rcx
movl %ebp, %edx
movzwl (%rcx,%rdx,2), %r14d
andl $0x4, %r14d
jmp 0x1c67e
callq 0x5520
movq (%rax), %rcx
movl %ebp, %edx
movzwl (%rcx,%rdx,2), %r14d
andl $0x8000, %r14d          # imm = 0x8000
jmp 0x1c67e
callq 0x5520
movq (%rax), %rcx
movl %ebp, %edx
movzwl (%rcx,%rdx,2), %r14d
andl $0x800, %r14d           # imm = 0x800
jmp 0x1c67e
callq 0x5520
movq (%rax), %rcx
movl %ebp, %edx
movzwl (%rcx,%rdx,2), %r14d
andl $0x2, %r14d
jmp 0x1c67e
callq 0x5520
movq (%rax), %rcx
movl %ebp, %edx
movzwl (%rcx,%rdx,2), %r14d
andl $0x2000, %r14d          # imm = 0x2000
jmp 0x1c67e
callq 0x5520
movq (%rax), %rcx
movl %ebp, %edx
movzwl (%rcx,%rdx,2), %r14d
andl $0x100, %r14d           # imm = 0x100
jmp 0x1c67e
callq 0x5520
movq (%rax), %rcx
movl %ebp, %edx
movzwl (%rcx,%rdx,2), %r14d
andl $0x1000, %r14d          # imm = 0x1000
jmp 0x1c67e
callq 0x5520
movq (%rax), %rcx
movl %ebp, %edx
movzwl (%rcx,%rdx,2), %r14d
andl $0x8, %r14d
movq (%rax), %rcx
movl %ebx, %edx
xorl %eax, %eax
testl %r14d, %r14d
sete %al
testb $0x2, 0x1(%rcx,%rdx,2)
cmovnel %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
xorl %eax, %eax
cmpl %ebp, %ebx
sete %al
jmp 0x1c694
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: push_onecapture
static void push_onecapture (MatchState *ms, int i, const char *s,
                                                    const char *e) {
  if (i >= ms->level) {
    if (i == 0)  /* ms->level == 0, too */
      lua_pushlstring(ms->L, s, e - s);  /* add whole match */
    else
      luaL_error(ms->L, "invalid capture index %%%d", i + 1);
  }
  else {
    ptrdiff_t l = ms->capture[i].len;
    if (l == CAP_UNFINISHED) luaL_error(ms->L, "unfinished capture");
    if (l == CAP_POSITION)
      lua_pushinteger(ms->L, (ms->capture[i].init - ms->src_init) + 1);
    else
      lua_pushlstring(ms->L, ms->capture[i].init, l);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %eax
movq %rdi, %rbx
movzbl 0x24(%rdi), %esi
cmpl %eax, %esi
jle 0x1c6f0
cltq
shlq $0x4, %rax
leaq (%rbx,%rax), %r15
addq $0x28, %r15
movq 0x8(%r15), %r14
cmpq $-0x2, %r14
je 0x1c722
cmpq $-0x1, %r14
jne 0x1c6e4
movq 0x18(%rbx), %rdi
leaq 0x5007(%rip), %rsi      # 0x216e4
xorl %eax, %eax
callq 0x12bd6
movq 0x18(%rbx), %rdi
movq (%r15), %rsi
movq %r14, %rdx
jmp 0x1c718
movq 0x18(%rbx), %rdi
testl %eax, %eax
je 0x1c70f
incl %eax
leaq 0x4fc8(%rip), %rsi      # 0x216c9
movl %eax, %edx
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x12bd6
subq %rdx, %rcx
movq %rdx, %rsi
movq %rcx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x616f
movq (%r15), %rsi
subq (%rbx), %rsi
movq 0x18(%rbx), %rdi
incq %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x615b
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: addlenmod
static void addlenmod (char *form, const char *lenmod) {
  size_t l = strlen(form);
  size_t lm = strlen(lenmod);
  char spec = form[l - 1];
  strcpy(form + l - 1, lenmod);
  form[l + lm - 1] = spec;
  form[l + lm] = '\0';
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x5140
movq %rax, %r15
movq %rbx, %rdi
callq 0x5140
movq %rax, %r12
leaq (%r14,%r15), %r13
leaq (%r14,%r15), %rdi
decq %rdi
movb (%rdi), %bpl
movq %rbx, %rsi
callq 0x50b0
movb %bpl, -0x1(%r12,%r13)
movb $0x0, (%r12,%r13)
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/lstrlib.c
// Function: gmatch_aux
static int gmatch_aux (lua_State *L) {
  GMatchState *gm = (GMatchState *)lua_touserdata(L, lua_upvalueindex(3));
  const char *src;
  gm->ms.L = L;
  for (src = gm->src; src <= gm->ms.src_end; src++) {
    const char *e;
    reprepstate(&gm->ms);
    if ((e = match(&gm->ms, src, gm->p)) != NULL && e != gm->lastmatch) {
      gm->src = gm->lastmatch = e;
      return push_captures(&gm->ms, src, e);
    }
  }
  return 0;  /* not found */
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r15
movl $0xfff0b9d5, %esi       # imm = 0xFFF0B9D5
callq 0x60b5
movq %rax, %rbx
leaq 0x18(%rax), %r14
movq %r15, 0x30(%rax)
movq (%rax), %r15
cmpq 0x20(%rbx), %r15
ja 0x1c7d5
movb $0x0, 0x3c(%rbx)
movq 0x8(%rbx), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x1bf5a
testq %rax, %rax
je 0x1c7d0
cmpq 0x10(%rbx), %rax
jne 0x1c7dd
incq %r15
jmp 0x1c7ac
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
movq %rax, 0x10(%rbx)
movq %rax, (%rbx)
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x1c33a
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: getdetails
static KOption getdetails (Header *h, size_t totalsize,
                           const char **fmt, int *psize, int *ntoalign) {
  KOption opt = getoption(h, fmt, psize);
  int align = *psize;  /* usually, alignment follows size */
  if (opt == Kpaddalign) {  /* 'X' gets alignment from following option */
    if (**fmt == '\0' || getoption(h, fmt, &align) == Kchar || align == 0)
      luaL_argerror(h->L, 1, "invalid next option for option 'X'");
  }
  if (align <= 1 || opt == Kchar)  /* need no alignment? */
    *ntoalign = 0;
  else {
    if (align > h->maxalign)  /* enforce maximum alignment */
      align = h->maxalign;
    if ((align & (align - 1)) != 0)  /* is 'align' not a power of 2? */
      luaL_argerror(h->L, 1, "format asks for alignment not power of 2");
    *ntoalign = (align - (int)(totalsize & (align - 1))) & (align - 1);
  }
  return opt;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r13
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, %rsi
movq %rcx, %rdx
callq 0x1c99c
movl %eax, %ebp
movl (%r13), %r13d
movl %r13d, 0x4(%rsp)
cmpl $0x7, %eax
jne 0x1c871
movq (%r12), %rax
cmpb $0x0, (%rax)
je 0x1c85f
leaq 0x4(%rsp), %r13
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x1c99c
cmpl $0x3, %eax
sete %al
movl (%r13), %r13d
testl %r13d, %r13d
sete %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x1c871
movq (%r15), %rdi
leaq 0x5036(%rip), %rdx      # 0x2189f
pushq $0x1
popq %rsi
callq 0x12af2
cmpl $0x2, %r13d
setl %al
cmpl $0x3, %ebp
sete %cl
xorl %r12d, %r12d
orb %al, %cl
jne 0x1c8b5
movl 0xc(%r15), %r12d
cmpl %r12d, %r13d
cmovll %r13d, %r12d
leal -0x1(%r12), %r13d
testl %r13d, %r12d
je 0x1c8ac
movq (%r15), %rdi
leaq 0x501e(%rip), %rdx      # 0x218c2
pushq $0x1
popq %rsi
callq 0x12af2
andl %r13d, %r14d
subl %r14d, %r12d
andl %r13d, %r12d
movl %r12d, (%rbx)
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/lstrlib.c
// Function: packint
static void packint (luaL_Buffer *b, lua_Unsigned n,
                     int islittle, int size, int neg) {
  char *buff = luaL_prepbuffsize(b, size);
  int i;
  buff[islittle ? 0 : size - 1] = (char)(n & MC);  /* first byte */
  for (i = 1; i < size; i++) {
    n >>= NB;
    buff[islittle ? i : size - 1 - i] = (char)(n & MC);
  }
  if (neg && size > SZINT) {  /* negative number need sign extension? */
    for (i = SZINT; i < size; i++)  /* correct extra bytes */
      buff[islittle ? i : size - 1 - i] = (char)MC;
  }
  luaL_addsize(b, size);  /* add result to buffer */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %r12d
movl %ecx, %ebx
movl %edx, %ebp
movq %rsi, %r13
movq %rdi, %r14
movslq %ecx, %r15
movq %r15, %rsi
callq 0x132de
leal -0x1(%r15), %ecx
xorl %edx, %edx
testl %ebp, %ebp
cmovel %ecx, %edx
movslq %edx, %rcx
movb %r13b, (%rax,%rcx)
leal -0x2(%r15), %ecx
pushq $0x1
popq %rdx
cmpl %ebx, %edx
jge 0x1c921
shrq $0x8, %r13
testl %ebp, %ebp
movl %edx, %esi
cmovel %ecx, %esi
movslq %esi, %rsi
movb %r13b, (%rax,%rsi)
incl %edx
decl %ecx
jmp 0x1c905
testl %r12d, %r12d
sete %cl
cmpl $0x9, %ebx
setl %dl
orb %cl, %dl
jne 0x1c950
addl $-0x9, %ebx
pushq $0x8
popq %rcx
cmpl $-0x1, %ebx
je 0x1c950
testl %ebp, %ebp
movl %ecx, %edx
cmovel %ebx, %edx
movslq %edx, %rdx
movb $-0x1, (%rax,%rdx)
incl %ecx
decl %ebx
jmp 0x1c937
addq %r15, 0x10(%r14)
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/lstrlib.c
// Function: copywithendian
static void copywithendian (volatile char *dest, volatile const char *src,
                            int size, int islittle) {
  if (islittle == nativeendian.little) {
    while (size-- != 0)
      *(dest++) = *(src++);
  }
  else {
    dest += size - 1;
    while (size-- != 0)
      *(dest--) = *(src++);
  }
}

// Assembly:
cmpl $0x1, %ecx
jne 0x1c97b
movl %edx, %eax
xorl %ecx, %ecx
cmpl %ecx, %eax
je 0x1c99b
movb (%rsi,%rcx), %dl
movb %dl, (%rdi,%rcx)
incq %rcx
jmp 0x1c96c
movslq %edx, %rcx
movl %ecx, %eax
addq %rdi, %rcx
decq %rcx
xorl %edx, %edx
cmpl %edx, %eax
je 0x1c99b
movb (%rsi,%rdx), %dil
movb %dil, (%rcx)
incq %rdx
decq %rcx
jmp 0x1c988
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: getnumlimit
static int getnumlimit (Header *h, const char **fmt, int df) {
  int sz = getnum(fmt, df);
  if (sz > MAXINTSIZE || sz <= 0)
    luaL_error(h->L, "integral size (%d) out of limits [1,%d]",
                     sz, MAXINTSIZE);
  return sz;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movq %rsi, %rdi
movl %edx, %esi
callq 0x1cb43
movl %eax, %ebx
addl $-0x11, %eax
cmpl $-0x11, %eax
ja 0x1cb39
movq (%r14), %rdi
leaq 0x4dfc(%rip), %rsi      # 0x21929
pushq $0x10
popq %rcx
movl %ebx, %edx
xorl %eax, %eax
callq 0x12bd6
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: getnum
static int getnum (const char **fmt, int df) {
  if (!digit(**fmt))  /* no number? */
    return df;  /* return default value */
  else {
    int a = 0;
    do {
      a = a*10 + (*((*fmt)++) - '0');
    } while (digit(**fmt) && a <= ((int)MAXSIZE - 9)/10);
    return a;
  }
}

// Assembly:
movl %esi, %eax
movq (%rdi), %rcx
movsbl (%rcx), %edx
addl $-0x3a, %edx
cmpl $-0xa, %edx
jb 0x1cb7c
incq %rcx
xorl %eax, %eax
imull $0xa, %eax, %eax
movq %rcx, (%rdi)
movsbl -0x1(%rcx), %edx
addl %edx, %eax
addl $-0x30, %eax
movsbl (%rcx), %edx
addl $-0x30, %edx
cmpl $0x9, %edx
ja 0x1cb7c
incq %rcx
cmpl $0xccccccc, %eax        # imm = 0xCCCCCCC
jl 0x1cb58
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lstrlib.c
// Function: unpackint
static lua_Integer unpackint (lua_State *L, const char *str,
                              int islittle, int size, int issigned) {
  lua_Unsigned res = 0;
  int i;
  int limit = (size  <= SZINT) ? size : SZINT;
  for (i = limit - 1; i >= 0; i--) {
    res <<= NB;
    res |= (lua_Unsigned)(unsigned char)str[islittle ? i : size - 1 - i];
  }
  if (size < SZINT) {  /* real size smaller than lua_Integer? */
    if (issigned) {  /* needs sign extension? */
      lua_Unsigned mask = (lua_Unsigned)1 << (size*NB - 1);
      res = ((res ^ mask) - mask);  /* do sign extension */
    }
  }
  else if (size > SZINT) {  /* must check unread bytes */
    int mask = (!issigned || (lua_Integer)res >= 0) ? 0 : MC;
    for (i = limit; i < size; i++) {
      if ((unsigned char)str[islittle ? i : size - 1 - i] != mask)
        luaL_error(L, "%d-byte integer does not fit into Lua Integer", size);
    }
  }
  return (lua_Integer)res;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r12d
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, 0x10(%rsp)
cmpl $0x8, %ecx
pushq $0x8
popq %rsi
cmovll %ecx, %esi
movl %ecx, %eax
subl %esi, %eax
xorl %ebx, %ebx
movl %esi, %ecx
testl %ecx, %ecx
jle 0x1cbc9
decl %ecx
shlq $0x8, %rbx
testl %ebp, %ebp
movl %ecx, %edx
cmovel %eax, %edx
movslq %edx, %rdx
movzbl (%r15,%rdx), %edx
orq %rdx, %rbx
incl %eax
jmp 0x1cba9
cmpl $0x7, %r12d
jg 0x1cbed
testl %r8d, %r8d
je 0x1cbf3
shll $0x3, %r12d
decb %r12b
pushq $0x1
popq %rax
movl %r12d, %ecx
shlq %cl, %rax
btcq %r12, %rbx
subq %rax, %rbx
jmp 0x1cbf3
cmpl $0x8, %r12d
jne 0x1cc05
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
testq %rbx, %rbx
movl $0xff, %r14d
cmovnsl %eax, %r14d
testl %r8d, %r8d
cmovel %r8d, %r14d
movl %esi, %r13d
notl %r13d
addl %r12d, %r13d
cmpl $-0x1, %r13d
je 0x1cbf3
testl %ebp, %ebp
movl %esi, %eax
cmovel %r13d, %eax
cltq
movzbl (%r15,%rax), %eax
cmpl %eax, %r14d
je 0x1cc5c
movq 0x10(%rsp), %rdi
movl %esi, 0xc(%rsp)
leaq 0x4d78(%rip), %rsi      # 0x219c6
movl %r12d, %edx
xorl %eax, %eax
callq 0x12bd6
movl 0xc(%rsp), %esi
incl %esi
decl %r13d
jmp 0x1cc24
nop
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ltablib.c
// Function: luaopen_table
LUAMOD_API int luaopen_table (lua_State *L) {
  luaL_newlib(L, tab_funcs);
#if defined(LUA_COMPAT_UNPACK)
  /* _G.unpack = table.unpack */
  lua_getfield(L, -1, "unpack");
  lua_setglobal(L, "unpack");
#endif
  return 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movsd 0x40b0(%rip), %xmm0     # 0x20d20
movl $0x88, %esi
callq 0x13f6d
pushq $0x7
popq %rdx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x665a
leaq 0x11f82(%rip), %rsi     # 0x2ec10
movq %rbx, %rdi
xorl %edx, %edx
callq 0x13c52
pushq $0x1
popq %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ltablib.c
// Function: tconcat
static int tconcat (lua_State *L) {
  luaL_Buffer b;
  lua_Integer last = aux_getn(L, 1, TAB_R);
  size_t lsep;
  const char *sep = luaL_optlstring(L, 2, "", &lsep);
  lua_Integer i = luaL_optinteger(L, 3, 1);
  last = luaL_optinteger(L, 4, last);
  luaL_buffinit(L, &b);
  for (; i < last; i++) {
    addfield(L, &b, i);
    luaL_addlstring(&b, sep, lsep);
  }
  if (i == last)  /* add last value (if interval was not empty) */
    addfield(L, &b, i);
  luaL_pushresult(&b);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2028, %rsp           # imm = 0x2028
movq %rdi, %rbx
pushq $0x1
popq %rbp
pushq $0x5
popq %rdx
movl %ebp, %esi
callq 0x1d229
movq %rbx, %rdi
movl %ebp, %esi
callq 0x13ad1
movq %rax, %r12
leaq 0x5116(%rip), %rdx      # 0x21de8
pushq $0x2
popq %rsi
movq %rsp, %rcx
movq %rbx, %rdi
callq 0x130d8
movq %rax, %r14
pushq $0x3
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rdi
callq 0x132b0
movq %rax, %r15
pushq $0x4
popq %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0x132b0
movq %rax, %r12
leaq 0x8(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x13589
cmpq %r12, %r15
jge 0x1cd3c
movq %rbx, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x1d2ee
movq (%rsp), %rdx
movq %r13, %rdi
movq %r14, %rsi
callq 0x13460
incq %r15
jmp 0x1cd15
jne 0x1cd4e
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
movq %r12, %rdx
callq 0x1d2ee
leaq 0x8(%rsp), %rdi
callq 0x134ba
pushq $0x1
popq %rax
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/ltablib.c
// Function: tinsert
static int tinsert (lua_State *L) {
  lua_Integer e = aux_getn(L, 1, TAB_RW) + 1;  /* first empty element */
  lua_Integer pos;  /* where to insert new element */
  switch (lua_gettop(L)) {
    case 2: {  /* called with only 2 arguments */
      pos = e;  /* insert new element at the end */
      break;
    }
    case 3: {
      lua_Integer i;
      pos = luaL_checkinteger(L, 2);  /* 2nd argument is the position */
      luaL_argcheck(L, 1 <= pos && pos <= e, 2, "position out of bounds");
      for (i = e; i > pos; i--) {  /* move up elements */
        lua_geti(L, 1, i - 1);
        lua_seti(L, 1, i);  /* t[i] = t[i - 1] */
      }
      break;
    }
    default: {
      return luaL_error(L, "wrong number of arguments to 'insert'");
    }
  }
  lua_seti(L, 1, pos);  /* t[pos] = v */
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rbp
pushq $0x7
popq %rdx
movl %ebp, %esi
callq 0x1d229
movq %rbx, %rdi
movl %ebp, %esi
callq 0x13ad1
movq %rax, %r14
incq %r14
movq %rbx, %rdi
callq 0x5b1d
cmpl $0x2, %eax
je 0x1ce08
cmpl $0x3, %eax
jne 0x1ce21
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x13252
movq %rax, %r15
testq %rax, %rax
setle %al
cmpq %r14, %r15
setg %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x1cdda
leaq 0x4c66(%rip), %rdx      # 0x21a35
pushq $0x2
popq %rsi
movq %rbx, %rdi
callq 0x12af2
pushq $0x1
popq %rbp
cmpq %r15, %r14
jle 0x1ce05
leaq -0x1(%r14), %r12
movq %rbx, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x6518
movq %rbx, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x68dd
movq %r12, %r14
jmp 0x1cddd
movq %r15, %r14
pushq $0x1
popq %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x68dd
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4c24(%rip), %rsi      # 0x21a4c
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x12bd6
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ltablib.c
// Function: pack
static int pack (lua_State *L) {
  int i;
  int n = lua_gettop(L);  /* number of elements to pack */
  lua_createtable(L, n, 1);  /* create result table */
  lua_insert(L, 1);  /* put it at index 1 */
  for (i = n; i >= 1; i--)  /* assign elements */
    lua_seti(L, 1, i);
  lua_pushinteger(L, n);
  lua_setfield(L, 1, "n");  /* t.n = number of elements */
  return 1;  /* return table */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x5b1d
movl %eax, %r14d
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %eax, %esi
movl %ebp, %edx
callq 0x665a
movq %rbx, %rdi
movl %ebp, %esi
movl %ebp, %edx
callq 0x5b7f
movl %r14d, %r15d
movq %r15, %r14
testl %r14d, %r14d
jle 0x1ce84
movq %rbx, %rdi
movl %ebp, %esi
movq %r14, %rdx
callq 0x68dd
decq %r14
jmp 0x1ce6d
movslq %r15d, %rsi
movq %rbx, %rdi
callq 0x615b
leaq 0x2ec4(%rip), %rdx      # 0x1fd5a
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
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/ltablib.c
// Function: unpack
static int unpack (lua_State *L) {
  lua_Unsigned n;
  lua_Integer i = luaL_optinteger(L, 2, 1);
  lua_Integer e = luaL_opt(L, luaL_checkinteger, 3, luaL_len(L, 1));
  if (i > e) return 0;  /* empty range */
  n = (lua_Unsigned)e - i;  /* number of elements minus 1 (avoid overflows) */
  if (n >= (unsigned int)INT_MAX  || !lua_checkstack(L, (int)(++n)))
    return luaL_error(L, "too many results to unpack");
  for (; i < e; i++) {  /* push arg[i..e - 1] (to avoid overflows) */
    lua_geti(L, 1, i);
  }
  lua_geti(L, 1, e);  /* push last element */
  return (int)n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
callq 0x132b0
movq %rax, %r14
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x5d12
testl %eax, %eax
jle 0x1cee5
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x13252
jmp 0x1cef0
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x13ad1
movq %rax, %r15
xorl %ebp, %ebp
subq %r14, %rax
jl 0x1cf57
cmpq $0x7ffffffe, %rax       # imm = 0x7FFFFFFE
ja 0x1cf30
movl %eax, %ebp
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5a04
testl %eax, %eax
je 0x1cf30
pushq $0x1
popq %r12
cmpq %r14, %r15
je 0x1cf49
movq %rbx, %rdi
movl %r12d, %esi
movq %r14, %rdx
callq 0x6518
incq %r14
jmp 0x1cf18
leaq 0x4b3b(%rip), %rsi      # 0x21a72
movq %rbx, %rdi
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x12bd6
pushq $0x1
popq %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x6518
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/ltablib.c
// Function: tremove
static int tremove (lua_State *L) {
  lua_Integer size = aux_getn(L, 1, TAB_RW);
  lua_Integer pos = luaL_optinteger(L, 2, size);
  if (pos != size)  /* validate 'pos' if given */
    luaL_argcheck(L, 1 <= pos && pos <= size + 1, 1, "position out of bounds");
  lua_geti(L, 1, pos);  /* result = t[pos] */
  for ( ; pos < size; pos++) {
    lua_geti(L, 1, pos + 1);
    lua_seti(L, 1, pos);  /* t[pos] = t[pos + 1] */
  }
  lua_pushnil(L);
  lua_seti(L, 1, pos);  /* t[pos] = nil */
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
pushq $0x1
popq %rbp
pushq $0x7
popq %rdx
movl %ebp, %esi
callq 0x1d229
movq %rbx, %rdi
movl %ebp, %esi
callq 0x13ad1
movq %rax, %r14
pushq $0x2
popq %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x132b0
movq %rax, %r15
cmpq %r14, %rax
je 0x1cfc6
testq %r15, %r15
setle %al
leaq 0x1(%r14), %rcx
cmpq %rcx, %r15
setg %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x1cfc6
leaq 0x4a7a(%rip), %rdx      # 0x21a35
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x12af2
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x6518
cmpq %r14, %r15
jge 0x1cffe
leaq 0x1(%r15), %r12
movq %rbx, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x6518
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x68dd
movq %r12, %r15
jmp 0x1cfd6
movq %rbx, %rdi
callq 0x6135
pushq $0x1
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x68dd
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq