// File: /workspace/github_c_makefile_star2_O2/tylerneylon[P]APIsWithLua/lua/lauxlib.c
// Function: luaL_traceback
LUALIB_API void luaL_traceback (lua_State *L, lua_State *L1,
                                const char *msg, int level) {
  lua_Debug ar;
  int top = lua_gettop(L);
  int last = lastlevel(L1);
  int n1 = (last - level > LEVELS1 + LEVELS2) ? LEVELS1 : -1;
  if (msg)
    lua_pushfstring(L, "%s\n", msg);
  luaL_checkstack(L, 10, NULL);
  lua_pushliteral(L, "stack traceback:");
  while (lua_getstack(L1, level++, &ar)) {
    if (n1-- == 0) {  /* too many levels? */
      lua_pushliteral(L, "\n\t...");  /* add a '...' */
      level = last - LEVELS2 + 1;  /* and skip to last ones */
    }
    else {
      lua_getinfo(L1, "Slnt", &ar);
      lua_pushfstring(L, "\n\t%s:", ar.short_src);
      if (ar.currentline > 0)
        lua_pushfstring(L, "%d:", ar.currentline);
      lua_pushliteral(L, " in ");
      pushfuncname(L, &ar);
      if (ar.istailcall)
        lua_pushliteral(L, "\n\t(...tail calls...)");
      lua_concat(L, lua_gettop(L) - top);
    }
  }
  lua_concat(L, lua_gettop(L) - top);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %ecx, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
callq 0x5b1d
movl %eax, 0xc(%rsp)
pushq $0x1
popq %rcx
leaq 0x18(%rsp), %r13
movl %ecx, %r15d
movl %r15d, %ebp
movl %ecx, %r15d
movq %r14, %rdi
movl %ecx, %esi
movq %r13, %rdx
callq 0x7336
leal (%r15,%r15), %ecx
testl %eax, %eax
jne 0x12848
leaq 0x18(%rsp), %r13
cmpl %r15d, %ebp
jge 0x1289c
leal (%r15,%rbp), %eax
cltd
pushq $0x2
popq %rcx
idivl %ecx
movl %eax, %r12d
movq %r14, %rdi
movl %eax, %esi
movq %r13, %rdx
callq 0x7336
leal 0x1(%r12), %ecx
testl %eax, %eax
cmovnel %r15d, %r12d
cmovel %ebp, %ecx
movl %r12d, %r15d
movl %ecx, %ebp
jmp 0x12868
movl 0x8(%rsp), %eax
subl %r15d, %eax
xorl %r12d, %r12d
cmpl $-0x16, %eax
setge %r12b
negl %r12d
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x128cb
leaq 0xd9cf(%rip), %rsi      # 0x20290
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6261
orl $0xa, %r12d
pushq $0xa
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x12a9f
leaq 0xd9b1(%rip), %rsi      # 0x20294
movq %rbx, %rdi
callq 0x61d0
addl $-0xb, %r15d
leaq 0x18(%rsp), %r13
movl 0x8(%rsp), %esi
movq %r14, %rdi
movl %esi, %ebp
movq %r13, %rdx
callq 0x7336
testl %eax, %eax
je 0x12a77
subl $0x1, %r12d
jae 0x12927
movq %rbx, %rdi
leaq 0xd988(%rip), %rsi      # 0x202a5
callq 0x61d0
movl %r15d, %esi
jmp 0x128f8
movq %r14, %rdi
leaq 0xd97a(%rip), %rsi      # 0x202ab
movq %r13, %rdx
callq 0x7562
movq %rbx, %rdi
leaq 0xd96d(%rip), %rsi      # 0x202b0
leaq 0x50(%rsp), %rdx
xorl %eax, %eax
callq 0x6261
movl 0x40(%rsp), %edx
testl %edx, %edx
jle 0x12968
movq %rbx, %rdi
leaq 0xd955(%rip), %rsi      # 0x202b6
xorl %eax, %eax
callq 0x6261
movq %rbx, %rdi
leaq 0xd948(%rip), %rsi      # 0x202ba
callq 0x61d0
movq %rbx, %rdi
movq %r13, %rsi
callq 0x12c8e
testl %eax, %eax
je 0x129d2
movq %rbx, %rdi
pushq $-0x1
popq %rsi
xorl %edx, %edx
callq 0x5fca
movq %rbx, %rdi
leaq 0xdad1(%rip), %rsi      # 0x2046e
movq %rax, %rdx
xorl %eax, %eax
callq 0x6261
movq %rbx, %rdi
movq %r14, %r13
movl %r12d, %r14d
pushq $-0x2
popq %r12
movl %r12d, %esi
pushq $-0x1
popq %rdx
callq 0x5b7f
movq %rbx, %rdi
movl %r12d, %esi
movl %r14d, %r12d
movq %r13, %r14
callq 0x5b31
jmp 0x12a3d
movq 0x28(%rsp), %rdx
cmpb $0x0, (%rdx)
je 0x129f4
movq 0x20(%rsp), %rcx
movq %rbx, %rdi
leaq 0xda91(%rip), %rsi      # 0x2047c
xorl %eax, %eax
callq 0x6261
jmp 0x12a3d
movq 0x30(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x43, %eax
je 0x12a12
cmpl $0x6d, %eax
jne 0x12a23
movq %rbx, %rdi
leaq 0xda74(%rip), %rsi      # 0x20484
jmp 0x12a1c
movq %rbx, %rdi
leaq 0xc95a(%rip), %rsi      # 0x1f376
callq 0x61d0
jmp 0x12a3d
movl 0x44(%rsp), %ecx
movq %rbx, %rdi
leaq 0xda5e(%rip), %rsi      # 0x2048f
leaq 0x50(%rsp), %rdx
xorl %eax, %eax
callq 0x6261
cmpb $0x0, 0x4f(%rsp)
je 0x12a53
movq %rbx, %rdi
leaq 0xd871(%rip), %rsi      # 0x202bf
callq 0x61d0
incl %ebp
movq %rbx, %rdi
callq 0x5b1d
subl 0xc(%rsp), %eax
movq %rbx, %rdi
movl %eax, %esi
callq 0x6f57
movl %ebp, %esi
leaq 0x18(%rsp), %r13
jmp 0x128f8
movq %rbx, %rdi
callq 0x5b1d
subl 0xc(%rsp), %eax
movq %rbx, %rdi
movl %eax, %esi
callq 0x6f57
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq