LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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, %r13
movl $0x1, %ebp
leaq 0x8(%rsp), %rdx
movl $0x1, %esi
callq 0x14535
movq %rax, %rbx
movq %r13, %rdi
movl $0x2, %esi
callq 0x1465a
movq %rax, %r14
leaq 0x6e47(%rip), %rdx      # 0x23cc8
leaq 0x10(%rsp), %rcx
movq %r13, %rdi
movl $0x3, %esi
callq 0x144dc
testq %r14, %r14
jle 0x1ced4
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r15
movq %r15, %rsi
addq %rcx, %rsi
jb 0x1cebc
movq %rax, %r12
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %edx, %edx
divq %r14
cmpq %rax, %rsi
jbe 0x1cee8
leaq 0x6837(%rip), %rsi      # 0x236fa
movq %r13, %rdi
xorl %eax, %eax
callq 0x13f8e
movl %eax, %ebp
jmp 0x1cf6d
leaq 0x6ded(%rip), %rsi      # 0x23cc8
movq %r13, %rdi
callq 0x645b
jmp 0x1cf6d
imulq %r14, %rcx
leaq -0x1(%r14), %rax
imulq %rax, %r15
addq %rcx, %r15
leaq 0x18(%rsp), %rsi
movq %r13, %rdi
movq %r15, %rdx
callq 0x14a13
movq %rax, %r13
cmpq $0x1, %r14
je 0x1cf4b
incq %r14
movq 0x8(%rsp), %rdx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x5320
addq 0x8(%rsp), %r13
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x1cf42
movq %r13, %rdi
movq %r12, %rsi
callq 0x5320
addq 0x10(%rsp), %r13
decq %r14
cmpq $0x2, %r14
jg 0x1cf13
movq 0x8(%rsp), %rdx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x5320
leaq 0x18(%rsp), %rdi
movq %r15, %rsi
callq 0x1494f
movl $0x1, %ebp
movl %ebp, %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_O1/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
leaq 0x8(%rsp), %r15
movl $0x1, %esi
movq %r15, %rdx
callq 0x14535
movq %rax, %rbx
movq (%r15), %rdx
leaq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x14a13
movq (%r15), %rsi
testq %rsi, %rsi
je 0x1cfd8
decq %rbx
xorl %ecx, %ecx
movb (%rbx,%rsi), %dl
movb %dl, (%rax,%rcx)
incq %rcx
movq 0x8(%rsp), %rsi
decq %rbx
cmpq %rsi, %rcx
jb 0x1cfc2
leaq 0x10(%rsp), %rdi
callq 0x1494f
movl $0x1, %eax
addq $0x2030, %rsp           # imm = 0x2030
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
leaq 0x8(%rsp), %rdx
movl $0x1, %esi
callq 0x14535
movq %rax, %r14
movq %rbx, %rdi
movl $0x2, %esi
callq 0x1465a
movq %rax, %r15
testq %rax, %rax
jns 0x1d042
movq 0x8(%rsp), %rax
movq %r15, %rcx
negq %rcx
cmpq %rcx, %rax
jae 0x1d03c
xorl %r15d, %r15d
jmp 0x1d042
addq %rax, %r15
incq %r15
movq %rbx, %rdi
movl $0x3, %esi
movq $-0x1, %rdx
callq 0x146c5
movq 0x8(%rsp), %rdx
testq %rax, %rax
jns 0x1d075
movq %rax, %rcx
negq %rcx
cmpq %rcx, %rdx
jae 0x1d06f
xorl %eax, %eax
jmp 0x1d075
addq %rdx, %rax
incq %rax
cmpq $0x2, %r15
movl $0x1, %ecx
cmovgeq %r15, %rcx
cmpq %rdx, %rax
cmovlq %rax, %rdx
subq %rcx, %rdx
jge 0x1d09f
leaq 0x6c33(%rip), %rsi      # 0x23cc8
movq %rbx, %rdi
callq 0x645b
jmp 0x1d0b1
leaq (%r14,%rcx), %rsi
decq %rsi
incq %rdx
movq %rbx, %rdi
callq 0x63fa
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x1, %esi
xorl %edx, %edx
callq 0x14535
movq %rax, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
movabsq $0x100000001, %rcx      # imm = 0x100000001
movq %rcx, 0x20(%rsp)
cmpb $0x0, (%rax)
je 0x1d654
xorl %r14d, %r14d
leaq 0x8(%rsp), %r13
leaq 0xc(%rsp), %rbp
leaq 0x18(%rsp), %rdi
movq %r14, %rsi
leaq 0x10(%rsp), %rdx
movq %r13, %rcx
movq %rbp, %r8
callq 0x1e526
movl %eax, %r15d
movslq 0xc(%rsp), %rax
movslq 0x8(%rsp), %r12
addq %rax, %r12
movl %r12d, 0x8(%rsp)
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
subq %r12, %rax
cmpq %rax, %r14
jbe 0x1d629
movq %rbx, %rdi
movl $0x1, %esi
leaq 0x620d(%rip), %rdx      # 0x23831
callq 0x13ea8
andl $0xe, %r15d
cmpl $0x4, %r15d
jne 0x1d647
movq %rbx, %rdi
movl $0x1, %esi
leaq 0x6207(%rip), %rdx      # 0x23849
callq 0x13ea8
addq %r12, %r14
movq 0x10(%rsp), %rax
cmpb $0x0, (%rax)
jne 0x1d5db
movq %rbx, %rdi
movq %r14, %rsi
callq 0x63e6
movl $0x1, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/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
movl $0x1, %ebp
cmovnel %eax, %ebp
testq %rsi, %rsi
cmovel %eax, %ebp
movq 0x18(%rdi), %rdi
leaq 0x54a3(%rip), %rdx      # 0x2350d
movl %ebp, %esi
callq 0x13e55
testl %ebp, %ebp
je 0x1e091
xorl %r12d, %r12d
movq %r15, %rdi
movl %r12d, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x1e3b8
incl %r12d
cmpl %r12d, %ebp
jne 0x1e078
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1e0cc
movq 0x18(%rbx), %rdi
leaq 0x5448(%rip), %rsi      # 0x2350d
xorl %eax, %eax
callq 0x13f8e
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 0x1dbdd
testq %rax, %rax
jne 0x1e0fd
decb 0x24(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1e143
cmpl $0x25, %eax
jne 0x1e18b
cmpq 0x10(%r14), %rbx
jne 0x1e13a
movq 0x18(%r14), %rdi
leaq 0x5433(%rip), %rsi      # 0x23566
xorl %eax, %eax
callq 0x13f8e
addq $0x2, %r15
movq %r15, %rbx
jmp 0x1e18b
cmpb $0x5e, 0x1(%r15)
leaq 0x2(%r15), %rax
cmoveq %rax, %rbx
leaq 0x5432(%rip), %r15      # 0x23589
cmpq 0x10(%r14), %rbx
jne 0x1e16b
movq 0x18(%r14), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x13f8e
leaq 0x1(%rbx), %rax
cmpb $0x25, (%rbx)
jne 0x1e17a
cmpq 0x10(%r14), %rax
jb 0x1e17f
movq %rax, %rbx
jmp 0x1e183
addq $0x2, %rbx
cmpb $0x5d, (%rbx)
jne 0x1e157
incq %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
leaq 0x1(%rsi), %r12
cmpb $0x5e, 0x1(%rsi)
sete %r14b
setne %r15b
cmovneq %rsi, %r12
leaq 0x1(%r12), %rax
cmpq %rdx, %rax
jae 0x1e218
movq %rdx, %rbx
movl %edi, %ebp
movzbl 0x1(%r12), %ecx
movzbl 0x2(%r12), %esi
cmpl $0x25, %ecx
jne 0x1e1e4
movl %ebp, %edi
callq 0x1e265
testl %eax, %eax
jne 0x1e215
addq $0x2, %r12
movq %r12, %rax
jmp 0x1e208
cmpl $0x2d, %esi
jne 0x1e204
addq $0x3, %r12
cmpq %rbx, %r12
jae 0x1e204
cmpl %ebp, %ecx
jg 0x1e1df
movzbl (%r12), %ecx
movq %r12, %rax
cmpl %ebp, %ecx
jl 0x1e208
jmp 0x1e215
cmpl %ebp, %ecx
je 0x1e215
movq %rax, %r12
incq %rax
cmpq %rbx, %rax
jb 0x1e1bf
jmp 0x1e218
movl %r15d, %r14d
movzbl %r14b, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1e264
movzbl (%rsi), %edi
movzbl (%rdx), %esi
cmpl $0x5b, %esi
je 0x1e24e
cmpl $0x2e, %esi
je 0x1e248
cmpl $0x25, %esi
jne 0x1e25c
movzbl 0x1(%rdx), %esi
jmp 0x1e265
movl $0x1, %eax
retq
decq %rcx
movq %rdx, %rsi
movq %rcx, %rdx
jmp 0x1e194
xorl %eax, %eax
cmpb %dil, %sil
sete %al
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x5350
addl $-0x61, %eax
cmpl $0x19, %eax
ja 0x1e3af
leaq 0x50b1(%rip), %rcx      # 0x23338
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x5540
movq (%rax), %rax
movl %ebp, %ecx
movzwl (%rax,%rcx,2), %r14d
andl $0x400, %r14d           # imm = 0x400
jmp 0x1e38f
xorl %r14d, %r14d
testl %ebp, %ebp
sete %r14b
jmp 0x1e38f
callq 0x5540
movq (%rax), %rax
movl %ebp, %ecx
movzwl (%rax,%rcx,2), %r14d
andl $0x200, %r14d           # imm = 0x200
jmp 0x1e38f
callq 0x5540
movq (%rax), %rax
movl %ebp, %ecx
movzwl (%rax,%rcx,2), %r14d
andl $0x4, %r14d
jmp 0x1e38f
callq 0x5540
movq (%rax), %rax
movl %ebp, %ecx
movzwl (%rax,%rcx,2), %r14d
andl $0x8000, %r14d          # imm = 0x8000
jmp 0x1e38f
callq 0x5540
movq (%rax), %rax
movl %ebp, %ecx
movzwl (%rax,%rcx,2), %r14d
andl $0x800, %r14d           # imm = 0x800
jmp 0x1e38f
callq 0x5540
movq (%rax), %rax
movl %ebp, %ecx
movzwl (%rax,%rcx,2), %r14d
andl $0x2, %r14d
jmp 0x1e38f
callq 0x5540
movq (%rax), %rax
movl %ebp, %ecx
movzwl (%rax,%rcx,2), %r14d
andl $0x2000, %r14d          # imm = 0x2000
jmp 0x1e38f
callq 0x5540
movq (%rax), %rax
movl %ebp, %ecx
movzwl (%rax,%rcx,2), %r14d
andl $0x100, %r14d           # imm = 0x100
jmp 0x1e38f
callq 0x5540
movq (%rax), %rax
movl %ebp, %ecx
movzwl (%rax,%rcx,2), %r14d
andl $0x1000, %r14d          # imm = 0x1000
jmp 0x1e38f
callq 0x5540
movq (%rax), %rax
movl %ebp, %ecx
movzwl (%rax,%rcx,2), %r14d
andl $0x8, %r14d
callq 0x5540
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 0x1e3aa
// File: /workspace/github_c_makefile_star2_O1/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 0x1e406
cltq
shlq $0x4, %rax
leaq (%rbx,%rax), %r15
addq $0x28, %r15
movq 0x8(%r15), %r14
cmpq $-0x2, %r14
je 0x1e438
cmpq $-0x1, %r14
jne 0x1e3fa
movq 0x18(%rbx), %rdi
leaq 0x51d1(%rip), %rsi      # 0x235c4
xorl %eax, %eax
callq 0x13f8e
movq 0x18(%rbx), %rdi
movq (%r15), %rsi
movq %r14, %rdx
jmp 0x1e42e
movq 0x18(%rbx), %rdi
testl %eax, %eax
je 0x1e425
incl %eax
leaq 0x5192(%rip), %rsi      # 0x235a9
movl %eax, %edx
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
jmp 0x13f8e
subq %rdx, %rcx
movq %rdx, %rsi
movq %rcx, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x63fa
movq (%r15), %rsi
subq (%rbx), %rsi
movq 0x18(%rbx), %rdi
incq %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x63e6
// File: /workspace/github_c_makefile_star2_O1/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 0x5150
movq %rax, %r15
movq %rbx, %rdi
callq 0x5150
movq %rax, %r12
leaq (%r14,%r15), %r13
leaq (%r14,%r15), %rdi
decq %rdi
movb (%rdi), %bpl
movq %rbx, %rsi
callq 0x50c0
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_O1/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0xfff0b9d5, %esi       # imm = 0xFFF0B9D5
callq 0x633d
movq %rbx, 0x30(%rax)
movq (%rax), %r15
xorl %ebx, %ebx
cmpq 0x20(%rax), %r15
ja 0x1e51b
movq %rax, %r14
movq %rax, %r12
addq $0x18, %r12
movb $0x0, 0x3c(%r14)
movq 0x8(%r14), %rdx
movq %r12, %rdi
movq %r15, %rsi
callq 0x1dbdd
movb $0x1, %cl
testq %rax, %rax
je 0x1e50a
cmpq 0x10(%r14), %rax
je 0x1e50a
movq %rax, 0x10(%r14)
movq %rax, (%r14)
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1e03a
movl %eax, %ebp
xorl %ecx, %ecx
testb %cl, %cl
je 0x1e519
incq %r15
cmpq 0x20(%r14), %r15
jbe 0x1e4d0
jmp 0x1e51b
movl %ebp, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1e692
movl %eax, %ebp
movl (%r13), %eax
movl %eax, 0x4(%rsp)
cmpl $0x7, %ebp
jne 0x1e593
movq (%r12), %rax
cmpb $0x0, (%rax)
je 0x1e57f
leaq 0x4(%rsp), %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x1e692
cmpl $0x3, %eax
je 0x1e57f
cmpl $0x0, 0x4(%rsp)
jne 0x1e593
movq (%r15), %rdi
leaq 0x51f6(%rip), %rdx      # 0x2377f
movl $0x1, %esi
callq 0x13ea8
movl 0x4(%rsp), %eax
cmpl $0x2, %eax
setl %cl
cmpl $0x3, %ebp
sete %dl
xorl %r12d, %r12d
orb %cl, %dl
jne 0x1e5e2
movl 0xc(%r15), %ecx
cmpl %ecx, %eax
jle 0x1e5b6
movl %ecx, 0x4(%rsp)
movl 0x4(%rsp), %r12d
leal -0x1(%r12), %r13d
testl %r13d, %r12d
je 0x1e5d9
movq (%r15), %rdi
leaq 0x51d3(%rip), %rdx      # 0x237a2
movl $0x1, %esi
callq 0x13ea8
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_O1/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 0x146f3
leal -0x1(%r15), %ecx
xorl %edx, %edx
testl %ebp, %ebp
cmovel %ecx, %edx
movslq %edx, %rcx
movb %r13b, (%rax,%rcx)
cmpl $0x2, %r15d
jl 0x1e652
leal -0x2(%rbx), %ecx
movl $0x1, %edx
shrq $0x8, %r13
testl %ebp, %ebp
movl %edx, %esi
cmovel %ecx, %esi
movslq %esi, %rsi
movb %r13b, (%rax,%rsi)
incl %edx
addl $-0x1, %ecx
jb 0x1e639
testl %r12d, %r12d
sete %cl
cmpl $0x9, %ebx
setl %dl
orb %cl, %dl
jne 0x1e67f
addl $-0x9, %ebx
movl $0x8, %ecx
testl %ebp, %ebp
movl %ecx, %edx
cmovel %ebx, %edx
movslq %edx, %rdx
movb $-0x1, (%rax,%rdx)
incl %ecx
addl $-0x1, %ebx
jb 0x1e66a
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_O1/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 %rbx
movl %edx, %ebx
movq (%rsi), %rax
movsbl (%rax), %ecx
addl $-0x3a, %ecx
cmpl $-0xa, %ecx
jb 0x1e89a
incq %rax
xorl %ebx, %ebx
leal (%rbx,%rbx,4), %ecx
movq %rax, (%rsi)
movsbl -0x1(%rax), %edx
leal (%rdx,%rcx,2), %ebx
addl $-0x30, %ebx
movsbl (%rax), %ecx
addl $-0x30, %ecx
cmpl $0x9, %ecx
ja 0x1e89a
incq %rax
cmpl $0xccccccc, %ebx        # imm = 0xCCCCCCC
jl 0x1e874
leal -0x11(%rbx), %eax
cmpl $-0x11, %eax
ja 0x1e8ba
movq (%rdi), %rdi
leaq 0x4f5d(%rip), %rsi      # 0x23809
movl %ebx, %edx
movl $0x10, %ecx
xorl %eax, %eax
callq 0x13f8e
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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, %ebp
movl %edx, %r15d
movq %rdi, 0x10(%rsp)
cmpl $0x8, %ecx
movl $0x8, %r13d
cmovll %ecx, %r13d
testl %ecx, %ecx
jle 0x1e915
leal 0x1(%r13), %eax
movl %ebp, %ecx
subl %r13d, %ecx
xorl %r14d, %r14d
leal -0x2(%rax), %edx
shlq $0x8, %r14
testl %r15d, %r15d
cmovel %ecx, %edx
movslq %edx, %rdx
movzbl (%rsi,%rdx), %edx
orq %rdx, %r14
decl %eax
incl %ecx
cmpl $0x1, %eax
jg 0x1e8f3
jmp 0x1e918
xorl %r14d, %r14d
cmpl $0x7, %ebp
jg 0x1e93b
testl %r8d, %r8d
je 0x1e99b
shll $0x3, %ebp
decb %bpl
movl $0x1, %eax
movl %ebp, %ecx
shlq %cl, %rax
btcq %rbp, %r14
subq %rax, %r14
jmp 0x1e99b
cmpl $0x8, %ebp
je 0x1e99b
xorl %eax, %eax
testq %r14, %r14
movl $0xff, %ebx
cmovnsl %eax, %ebx
testl %r8d, %r8d
cmovel %r8d, %ebx
movl %r13d, %r12d
notl %r12d
addl %ebp, %r12d
movq %rsi, 0x8(%rsp)
testl %r15d, %r15d
movl %r13d, %eax
cmovel %r12d, %eax
cltq
movzbl (%rsi,%rax), %eax
cmpl %eax, %ebx
je 0x1e990
movq 0x10(%rsp), %rdi
leaq 0x4f24(%rip), %rsi      # 0x238a6
movl %ebp, %edx
xorl %eax, %eax
callq 0x13f8e
movq 0x8(%rsp), %rsi
incl %r13d
decl %r12d
cmpl %ebp, %r13d
jl 0x1e962
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2030, %rsp           # imm = 0x2030
movq %rdi, %rbx
movl $0x1, %esi
movl $0x5, %edx
callq 0x1f022
movq %rbx, %rdi
movl $0x1, %esi
callq 0x14f6c
movq %rax, %r12
leaq 0x52a2(%rip), %rdx      # 0x23cc8
leaq 0x8(%rsp), %rcx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x144dc
movq %rax, %r15
movl $0x1, %edx
movq %rbx, %rdi
movl $0x3, %esi
callq 0x146c5
movq %rax, %r14
movq %rbx, %rdi
movl $0x4, %esi
movq %r12, %rdx
callq 0x146c5
movq %rax, %r12
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x149f7
cmpq %r12, %r14
jge 0x1eaa3
leaq 0x10(%rsp), %r13
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x1f10d
movq 0x8(%rsp), %rdx
movq %r13, %rdi
movq %r15, %rsi
callq 0x1487e
incq %r14
cmpq %r14, %r12
jne 0x1ea7a
movq %r12, %r14
cmpq %r12, %r14
jne 0x1eab8
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x1f10d
leaq 0x10(%rsp), %rdi
callq 0x148ef
movl $0x1, %eax
addq $0x2030, %rsp           # imm = 0x2030
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
movl $0x7, %edx
callq 0x1f022
movq %rbx, %rdi
movl $0x1, %esi
callq 0x14f6c
movq %rax, %r14
leaq 0x1(%rax), %r12
movq %rbx, %rdi
callq 0x5d3d
cmpl $0x2, %eax
je 0x1eb8b
cmpl $0x3, %eax
jne 0x1eba9
movq %rbx, %rdi
movl $0x2, %esi
callq 0x1465a
movq %rax, %r15
testq %rax, %rax
setle %al
cmpq %r12, %r15
setg %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x1eb53
leaq 0x4dcf(%rip), %rdx      # 0x23915
movq %rbx, %rdi
movl $0x2, %esi
callq 0x13ea8
cmpq %r15, %r14
jl 0x1eb88
leaq 0x1(%r14), %r12
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x679b
movq %rbx, %rdi
movl $0x1, %esi
movq %r12, %rdx
callq 0x6b63
leaq -0x1(%r14), %rax
cmpq %r15, %r14
movq %rax, %r14
jg 0x1eb58
movq %r15, %r12
movq %rbx, %rdi
movl $0x1, %esi
movq %r12, %rdx
callq 0x6b63
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x4d7c(%rip), %rsi      # 0x2392c
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x13f8e
// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
movq %rdi, %rbx
callq 0x5d3d
movl %eax, %ebp
movq %rbx, %rdi
movl %eax, %esi
movl $0x1, %edx
callq 0x68d6
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x5da2
testl %ebp, %ebp
jle 0x1ec18
movl %ebp, %r14d
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x6b63
leaq -0x1(%r14), %rax
cmpq $0x1, %r14
movq %rax, %r14
jg 0x1ebfb
movslq %ebp, %rsi
movq %rbx, %rdi
callq 0x63e6
leaq 0x3098(%rip), %rdx      # 0x21cc2
movq %rbx, %rdi
movl $0x1, %esi
callq 0x6b3f
movl $0x1, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %edx
movl $0x2, %esi
callq 0x146c5
movq %rax, %r14
movq %rbx, %rdi
movl $0x3, %esi
callq 0x5f7f
movq %rbx, %rdi
testl %eax, %eax
jle 0x1ec7d
movl $0x3, %esi
callq 0x1465a
jmp 0x1ec87
movl $0x1, %esi
callq 0x14f6c
movq %rax, %r15
xorl %ebp, %ebp
subq %r14, %rax
jl 0x1ecd8
cmpq $0x7ffffffe, %rax       # imm = 0x7FFFFFFE
ja 0x1ece5
movl %eax, %ebp
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5c28
testl %eax, %eax
je 0x1ece5
cmpq %r14, %r15
jle 0x1ecc8
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x679b
incq %r14
cmpq %r14, %r15
jne 0x1ecb0
movq %rbx, %rdi
movl $0x1, %esi
movq %r15, %rdx
callq 0x679b
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4c66(%rip), %rsi      # 0x23952
movq %rbx, %rdi
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x13f8e
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
movl $0x7, %edx
callq 0x1f022
movq %rbx, %rdi
movl $0x1, %esi
callq 0x14f6c
movq %rax, %r15
movq %rbx, %rdi
movl $0x2, %esi
movq %rax, %rdx
callq 0x146c5
movq %rax, %r14
cmpq %r15, %rax
je 0x1ed6d
testq %r14, %r14
setle %al
leaq 0x1(%r15), %rcx
cmpq %rcx, %r14
setg %cl
orb %al, %cl
cmpb $0x1, %cl
jne 0x1ed6d
leaq 0x4bb5(%rip), %rdx      # 0x23915
movq %rbx, %rdi
movl $0x1, %esi
callq 0x13ea8
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x679b
cmpq %r15, %r14
jge 0x1edb1
leaq 0x1(%r14), %r12
movq %rbx, %rdi
movl $0x1, %esi
movq %r12, %rdx
callq 0x679b
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x6b63
movq %r12, %r14
cmpq %r12, %r15
jne 0x1ed82
movq %r15, %r14
movq %rbx, %rdi
callq 0x63bd
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x6b63
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/ltablib.c
// Function: tmove
static int tmove (lua_State *L) {
  lua_Integer f = luaL_checkinteger(L, 2);
  lua_Integer e = luaL_checkinteger(L, 3);
  lua_Integer t = luaL_checkinteger(L, 4);
  int tt = !lua_isnoneornil(L, 5) ? 5 : 1;  /* destination table */
  checktab(L, 1, TAB_R);
  checktab(L, tt, TAB_W);
  if (e >= f) {  /* otherwise, nothing to move */
    lua_Integer n, i;
    luaL_argcheck(L, f > 0 || e < LUA_MAXINTEGER + f, 3,
                  "too many elements to move");
    n = e - f + 1;  /* number of elements to move */
    luaL_argcheck(L, t <= LUA_MAXINTEGER - n + 1, 4,
                  "destination wrap around");
    if (t > e || t <= f || (tt != 1 && !lua_compare(L, 1, tt, LUA_OPEQ))) {
      for (i = 0; i < n; i++) {
        lua_geti(L, 1, f + i);
        lua_seti(L, tt, t + i);
      }
    }
    else {
      for (i = n - 1; i >= 0; i--) {
        lua_geti(L, 1, f + i);
        lua_seti(L, tt, t + i);
      }
    }
  }
  lua_pushvalue(L, tt);  /* return destination table */
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x2, %esi
callq 0x1465a
movq %rax, %r15
movq %rbx, %rdi
movl $0x3, %esi
callq 0x1465a
movq %rax, %r14
movq %rbx, %rdi
movl $0x4, %esi
callq 0x1465a
movq %rax, %r12
movq %rbx, %rdi
movl $0x5, %esi
callq 0x5f7f
movl %eax, %r13d
xorl %eax, %eax
testl %r13d, %r13d
setg %al
leal 0x1(,%rax,4), %ebp
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x1f022
movq %rbx, %rdi
movl %ebp, %esi
movl $0x2, %edx
callq 0x1f022
movq %r14, %rdx
subq %r15, %rdx
jl 0x1ef70
movl %r13d, 0x14(%rsp)
movabsq $0x7fffffffffffffff, %r13 # imm = 0x7FFFFFFFFFFFFFFF
testq %r15, %r15
setg %al
leaq (%r15,%r13), %rcx
cmpq %rcx, %r14
setl %cl
orb %al, %cl
jne 0x1eea5
movq %rdx, 0x8(%rsp)
leaq 0x4ada(%rip), %rdx      # 0x2396d
movq %rbx, %rdi
movl $0x3, %esi
callq 0x13ea8
movq 0x8(%rsp), %rdx
subq %rdx, %r13
cmpq %r13, %r12
jle 0x1eec7
movq %rdx, %r13
leaq 0x4ad0(%rip), %rdx      # 0x23987
movq %rbx, %rdi
movl $0x4, %esi
callq 0x13ea8
movq %r13, %rdx
cmpq %r14, %r12
setle %al
movq %r12, %r13
subq %r15, %r13
setg %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x1ef40
cmpl $0x0, 0x14(%rsp)
jle 0x1ef03
movq %rbx, %rdi
movl $0x1, %esi
movq %rdx, 0x8(%rsp)
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x60c4
movq 0x8(%rsp), %rdx
testl %eax, %eax
je 0x1ef40
testq %rdx, %rdx
js 0x1ef70
movl $0x1, %r12d
subq %r15, %r12
movq %rbx, %rdi
movl $0x1, %esi
movq %r14, %rdx
callq 0x679b
leaq (%r14,%r13), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6b63
leaq (%r12,%r14), %rax
decq %rax
decq %r14
testq %rax, %rax
jg 0x1ef11
jmp 0x1ef70
testq %rdx, %rdx
js 0x1ef70
incq %r14
movq %rbx, %rdi
movl $0x1, %esi
movq %r15, %rdx
callq 0x679b
movq %rbx, %rdi
movl %ebp, %esi
movq %r12, %rdx
callq 0x6b63
incq %r15
incq %r12
cmpq %r15, %r14
jne 0x1ef48
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5f5b
movl $0x1, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/ltablib.c
// Function: sort
static int sort (lua_State *L) {
  lua_Integer n = aux_getn(L, 1, TAB_RW);
  if (n > 1) {  /* non-trivial interval? */
    luaL_argcheck(L, n < INT_MAX, 1, "array too big");
    if (!lua_isnoneornil(L, 2))  /* is there a 2nd argument? */
      luaL_checktype(L, 2, LUA_TFUNCTION);  /* must be a function */
    lua_settop(L, 2);  /* make sure there are two arguments */
    auxsort(L, 1, (IdxT)n, 0);
  }
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
movl $0x7, %edx
callq 0x1f022
movq %rbx, %rdi
movl $0x1, %esi
callq 0x14f6c
cmpq $0x2, %rax
jl 0x1f018
movq %rax, %r14
cmpq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
jl 0x1efd6
leaq 0x49d6(%rip), %rdx      # 0x2399f
movq %rbx, %rdi
movl $0x1, %esi
callq 0x13ea8
movq %rbx, %rdi
movl $0x2, %esi
callq 0x5f7f
testl %eax, %eax
jle 0x1eff9
movq %rbx, %rdi
movl $0x2, %esi
movl $0x6, %edx
callq 0x1456f
movq %rbx, %rdi
movl $0x2, %esi
callq 0x5d51
movq %rbx, %rdi
movl $0x1, %esi
movl %r14d, %edx
xorl %ecx, %ecx
callq 0x1f171
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/ltablib.c
// Function: checktab
static void checktab (lua_State *L, int arg, int what) {
  if (lua_type(L, arg) != LUA_TTABLE) {  /* is it not a table? */
    int n = 1;  /* number of elements to pop */
    if (lua_getmetatable(L, arg) &&  /* must have metatable */
        (!(what & TAB_R) || checkfield(L, "__index", ++n)) &&
        (!(what & TAB_W) || checkfield(L, "__newindex", ++n)) &&
        (!(what & TAB_L) || checkfield(L, "__len", ++n))) {
      lua_pop(L, n);  /* pop metatable and tested metamethods */
    }
    else
      luaL_checktype(L, arg, LUA_TTABLE);  /* force an error */
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
callq 0x5f7f
cmpl $0x5, %eax
jne 0x1f046
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6935
testl %eax, %eax
je 0x1f0f4
movl $0x1, %r15d
testb $0x1, %r14b
je 0x1f08a
leaq 0x2c66(%rip), %rsi      # 0x21cd1
movq %rbx, %rdi
callq 0x645b
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x6815
movl $0x2, %r15d
testl %eax, %eax
je 0x1f0f4
testb $0x2, %r14b
je 0x1f0b3
leaq 0x2c42(%rip), %rsi      # 0x21cd9
movq %rbx, %rdi
callq 0x645b
movl %r15d, %esi
notl %esi
movq %rbx, %rdi
callq 0x6815
testl %eax, %eax
je 0x1f0f4
incl %r15d
testb $0x4, %r14b
je 0x1f0dc
leaq 0x2c30(%rip), %rsi      # 0x21cf0
movq %rbx, %rdi
callq 0x645b
movl %r15d, %esi
notl %esi
movq %rbx, %rdi
callq 0x6815
testl %eax, %eax
je 0x1f0f4
incl %r15d
notl %r15d
movq %rbx, %rdi
movl %r15d, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5d51
movq %rbx, %rdi
movl %ebp, %esi
movl $0x5, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1456f
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/ltablib.c
// Function: addfield
static void addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) {
  lua_geti(L, 1, i);
  if (!lua_isstring(L, -1))
    luaL_error(L, "invalid value (%s) at index %d in table for 'concat'",
                  luaL_typename(L, -1), i);
  luaL_addvalue(b);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movl $0x1, %esi
callq 0x679b
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x6008
testl %eax, %eax
jne 0x1f164
movq %r15, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x5f7f
movq %r15, %rdi
movl %eax, %esi
callq 0x5fa0
leaq 0x478c(%rip), %rsi      # 0x238e0
movq %r15, %rdi
movq %rax, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x13f8e
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x14958
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/ltablib.c
// Function: sort_comp
static int sort_comp (lua_State *L, int a, int b) {
  if (lua_isnil(L, 2))  /* no function? */
    return lua_compare(L, a, b, LUA_OPLT);  /* a < b */
  else {  /* function */
    int res;
    lua_pushvalue(L, 2);    /* push function */
    lua_pushvalue(L, a-1);  /* -1 to compensate function */
    lua_pushvalue(L, b-2);  /* -2 to compensate function and 'a' */
    lua_call(L, 2, 1);      /* call function */
    res = lua_toboolean(L, -1);  /* get result */
    lua_pop(L, 1);          /* pop result */
    return res;
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
movl $0x2, %esi
callq 0x5f7f
testl %eax, %eax
je 0x1f5ad
movq %rbx, %rdi
movl $0x2, %esi
callq 0x5f5b
decl %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x5f5b
addl $-0x2, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x5f5b
movq %rbx, %rdi
movl $0x2, %esi
movl $0x1, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x6e22
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x6223
movl %eax, %ebp
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d51
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
movl %r14d, %esi
movl %ebp, %edx
movl $0x1, %ecx
popq %rbx
popq %r14
popq %rbp
jmp 0x60c4
nop
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/lutf8lib.c
// Function: luaopen_utf8
LUAMOD_API int luaopen_utf8 (lua_State *L) {
  luaL_newlib(L, funcs);
  lua_pushlstring(L, UTF8PATT, sizeof(UTF8PATT)/sizeof(char) - 1);
  lua_setfield(L, -2, "charpattern");
  return 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movsd 0x3630(%rip), %xmm0     # 0x22c00
movl $0x88, %esi
callq 0x1540b
movq %rbx, %rdi
xorl %esi, %esi
movl $0x6, %edx
callq 0x68d6
leaq 0xf6a0(%rip), %rsi      # 0x2ec90
movq %rbx, %rdi
xorl %edx, %edx
callq 0x150f3
leaq 0x43cf(%rip), %rsi      # 0x239d0
movl $0xe, %edx
movq %rbx, %rdi
callq 0x63fa
leaq 0x43ca(%rip), %rdx      # 0x239df
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x6b3f
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/lutf8lib.c
// Function: codepoint
static int codepoint (lua_State *L) {
  size_t len;
  const char *s = luaL_checklstring(L, 1, &len);
  lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len);
  lua_Integer pose = u_posrelat(luaL_optinteger(L, 3, posi), len);
  int n;
  const char *se;
  luaL_argcheck(L, posi >= 1, 2, "out of range");
  luaL_argcheck(L, pose <= (lua_Integer)len, 3, "out of range");
  if (posi > pose) return 0;  /* empty interval; return no values */
  if (pose - posi >= INT_MAX)  /* (lua_Integer -> int) overflow? */
    return luaL_error(L, "string slice too long");
  n = (int)(pose -  posi) + 1;
  luaL_checkstack(L, n, "string slice too long");
  n = 0;
  se = s + pose;
  for (s += posi - 1; s < se;) {
    int code;
    s = utf8_decode(s, &code);
    if (s == NULL)
      return luaL_error(L, "invalid UTF-8 code");
    lua_pushinteger(L, code);
    n++;
  }
  return n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdx
movl $0x1, %esi
callq 0x14535
movq %rax, %r13
movl $0x1, %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x146c5
movq %rax, %r12
testq %rax, %rax
jns 0x1f82a
movq 0x8(%rsp), %rax
movq %r12, %rcx
negq %rcx
cmpq %rcx, %rax
jae 0x1f824
xorl %r12d, %r12d
jmp 0x1f82a
addq %rax, %r12
incq %r12
movq %rbx, %rdi
movl $0x3, %esi
movq %r12, %rdx
callq 0x146c5
movq %rax, %r14
testq %rax, %rax
jns 0x1f85d
movq 0x8(%rsp), %rax
movq %r14, %rcx
negq %rcx
cmpq %rcx, %rax
jae 0x1f857
xorl %r14d, %r14d
jmp 0x1f85d
addq %rax, %r14
incq %r14
testq %r12, %r12
jg 0x1f876
leaq 0x3363(%rip), %rdx      # 0x22bcc
movq %rbx, %rdi
movl $0x2, %esi
callq 0x13ea8
cmpq 0x8(%rsp), %r14
jle 0x1f891
leaq 0x3348(%rip), %rdx      # 0x22bcc
movq %rbx, %rdi
movl $0x3, %esi
callq 0x13ea8
xorl %r15d, %r15d
movq %r14, %rsi
subq %r12, %rsi
jl 0x1f927
cmpq $0x7fffffff, %rsi       # imm = 0x7FFFFFFF
jl 0x1f8bf
leaq 0x3bd4(%rip), %rsi      # 0x23484
movq %rbx, %rdi
xorl %eax, %eax
callq 0x13f8e
movl %eax, %r15d
jmp 0x1f927
incl %esi
leaq 0x3bbc(%rip), %rdx      # 0x23484
movq %rbx, %rdi
callq 0x13e55
addq %r13, %r14
addq %r12, %r13
decq %r13
leaq 0x14(%rsp), %r12
xorl %ebp, %ebp
cmpq %r14, %r13
jae 0x1f924
movq %r13, %rdi
movq %r12, %rsi
callq 0x1fb2f
movq %rax, %r13
testq %rax, %rax
je 0x1f909
movslq 0x14(%rsp), %rsi
movq %rbx, %rdi
callq 0x63e6
incl %ebp
jmp 0x1f91d
movq %rbx, %rdi
leaq 0x4127(%rip), %rsi      # 0x23a3a
xorl %eax, %eax
callq 0x13f8e
movl %eax, %r15d
testq %r13, %r13
jne 0x1f8e0
jmp 0x1f927
movl %ebp, %r15d
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/lutf8lib.c
// Function: utfchar
static int utfchar (lua_State *L) {
  int n = lua_gettop(L);  /* number of arguments */
  if (n == 1)  /* optimize common case of single char */
    pushutfchar(L, 1);
  else {
    int i;
    luaL_Buffer b;
    luaL_buffinit(L, &b);
    for (i = 1; i <= n; i++) {
      pushutfchar(L, i);
      luaL_addvalue(&b);
    }
    luaL_pushresult(&b);
  }
  return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x2028, %rsp           # imm = 0x2028
movq %rdi, %rbx
callq 0x5d3d
cmpl $0x1, %eax
jne 0x1f963
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1fbd7
jmp 0x1f9b6
movl %eax, %r14d
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x149f7
testl %r14d, %r14d
jle 0x1f9ac
negl %r14d
movl $0x1, %r12d
leaq 0x8(%rsp), %r15
movq %rbx, %rdi
movl %r12d, %esi
callq 0x1fbd7
movq %r15, %rdi
callq 0x14958
leal (%r14,%r12), %eax
incl %eax
movl %r12d, %ecx
incl %ecx
movl %ecx, %r12d
cmpl $0x1, %eax
jne 0x1f986
leaq 0x8(%rsp), %rdi
callq 0x148ef
movl $0x1, %eax
addq $0x2028, %rsp           # imm = 0x2028
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/lutf8lib.c
// Function: utflen
static int utflen (lua_State *L) {
  int n = 0;
  size_t len;
  const char *s = luaL_checklstring(L, 1, &len);
  lua_Integer posi = u_posrelat(luaL_optinteger(L, 2, 1), len);
  lua_Integer posj = u_posrelat(luaL_optinteger(L, 3, -1), len);
  luaL_argcheck(L, 1 <= posi && --posi <= (lua_Integer)len, 2,
                   "initial position out of string");
  luaL_argcheck(L, --posj < (lua_Integer)len, 3,
                   "final position out of string");
  while (posi <= posj) {
    const char *s1 = utf8_decode(s + posi, NULL);
    if (s1 == NULL) {  /* conversion error? */
      lua_pushnil(L);  /* return nil ... */
      lua_pushinteger(L, posi + 1);  /* ... and current position */
      return 2;
    }
    posi = s1 - s;
    n++;
  }
  lua_pushinteger(L, n);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %rdx
movl $0x1, %esi
callq 0x14535
movq %rax, %r14
movl $0x1, %edx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x146c5
movq %rax, %r15
testq %rax, %rax
jns 0x1fa1c
movq (%rsp), %rax
movq %r15, %rcx
negq %rcx
cmpq %rcx, %rax
jae 0x1fa16
xorl %r15d, %r15d
jmp 0x1fa1c
addq %rax, %r15
incq %r15
movq %rbx, %rdi
movl $0x3, %esi
movq $-0x1, %rdx
callq 0x146c5
movq %rax, %r12
movq (%rsp), %rax
testq %r12, %r12
jns 0x1fa52
movq %r12, %rcx
negq %rcx
cmpq %rcx, %rax
jae 0x1fa4c
xorl %r12d, %r12d
jmp 0x1fa52
addq %rax, %r12
incq %r12
testq %r15, %r15
jle 0x1fa5f
decq %r15
cmpq %rax, %r15
jle 0x1fa73
leaq 0x3dfa(%rip), %rdx      # 0x23860
movq %rbx, %rdi
movl $0x2, %esi
callq 0x13ea8
cmpq (%rsp), %r12
jle 0x1fa8d
leaq 0x3fd0(%rip), %rdx      # 0x23a50
movq %rbx, %rdi
movl $0x3, %esi
callq 0x13ea8
xorl %ebp, %ebp
cmpq %r12, %r15
jge 0x1fad1
leaq (%r14,%r15), %rdi
xorl %esi, %esi
callq 0x1fb2f
movq %rax, %r13
testq %rax, %rax
je 0x1fab1
movq %r13, %r15
subq %r14, %r15
incl %ebp
jmp 0x1fac5
movq %rbx, %rdi
callq 0x63bd
leaq 0x1(%r15), %rsi
movq %rbx, %rdi
callq 0x63e6
testq %r13, %r13
jne 0x1fa8f
movl $0x2, %eax
jmp 0x1fae1
movslq %ebp, %rsi
movq %rbx, %rdi
callq 0x63e6
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq