// File: /workspace/github_c_makefile_star2_O3/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, %r14d
movq %rdx, 0x10(%rsp)
movq %rsi, %rbp
movq %rdi, %rbx
callq 0x5d39
movl %eax, 0xc(%rsp)
movl $0x1, %ecx
leaq 0x18(%rsp), %r13
movl $0x1, %r15d
movl %r15d, %r12d
movl %ecx, %r15d
movq %rbp, %rdi
movl %ecx, %esi
movq %r13, %rdx
callq 0x76f2
leal (%r15,%r15), %ecx
testl %eax, %eax
jne 0x146b4
movq %rbp, %r13
cmpl %r15d, %r12d
jge 0x14703
leal (%r15,%r12), %eax
movl %eax, %ebp
shrl $0x1f, %ebp
addl %eax, %ebp
sarl %ebp
movq %r13, %rdi
movl %ebp, %esi
leaq 0x18(%rsp), %rdx
callq 0x76f2
testl %eax, %eax
je 0x146fe
incl %ebp
movl %ebp, %r12d
jmp 0x146d2
movl %ebp, %r15d
jmp 0x146d2
movl %r14d, %eax
subl %r15d, %eax
xorl %ebp, %ebp
cmpl $-0x16, %eax
setge %r12b
movq 0x10(%rsp), %rdx
testq %rdx, %rdx
je 0x1472d
leaq 0xeb31(%rip), %rsi      # 0x23254
movq %rbx, %rdi
xorl %eax, %eax
callq 0x65ff
movq %rbx, %rdi
movl $0xa, %esi
callq 0x5c18
testl %eax, %eax
jne 0x1474f
leaq 0xdd00(%rip), %rsi      # 0x22445
movq %rbx, %rdi
xorl %eax, %eax
callq 0x14a62
leaq 0xeb02(%rip), %rsi      # 0x23258
movq %rbx, %rdi
callq 0x656b
leaq 0x18(%rsp), %rdx
movq %r13, %rdi
movl %r14d, %esi
callq 0x76f2
testl %eax, %eax
je 0x14901
movb %r12b, %bpl
negl %ebp
orl $0xa, %ebp
addl $-0xb, %r15d
leaq 0x18(%rsp), %r12
subl $0x1, %ebp
jae 0x147a3
movq %rbx, %rdi
leaq 0xead3(%rip), %rsi      # 0x23269
callq 0x656b
movl %r15d, %r12d
jmp 0x148e3
movq %r13, %rdi
leaq 0xeac2(%rip), %rsi      # 0x2326f
movq %r12, %rdx
callq 0x7956
movq %rbx, %rdi
leaq 0xeab5(%rip), %rsi      # 0x23274
leaq 0x50(%rsp), %rdx
xorl %eax, %eax
callq 0x65ff
movl 0x40(%rsp), %edx
testl %edx, %edx
jle 0x147e4
movq %rbx, %rdi
leaq 0xea9d(%rip), %rsi      # 0x2327a
xorl %eax, %eax
callq 0x65ff
movq %rbx, %rdi
leaq 0xea90(%rip), %rsi      # 0x2327e
callq 0x656b
movq %rbx, %rdi
movq %r12, %rsi
callq 0x14b1e
testl %eax, %eax
movl %r14d, %r12d
je 0x14849
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x6359
movq %rbx, %rdi
leaq 0xec14(%rip), %rsi      # 0x23432
movq %rax, %rdx
xorl %eax, %eax
callq 0x65ff
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x5eb2
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d4d
jmp 0x148b4
movq 0x28(%rsp), %rdx
cmpb $0x0, (%rdx)
je 0x1486b
movq 0x20(%rsp), %rcx
movq %rbx, %rdi
leaq 0xebde(%rip), %rsi      # 0x23440
xorl %eax, %eax
callq 0x65ff
jmp 0x148b4
movq 0x30(%rsp), %rax
movzbl (%rax), %eax
cmpl $0x43, %eax
je 0x14889
cmpl $0x6d, %eax
jne 0x1489a
movq %rbx, %rdi
leaq 0xebc1(%rip), %rsi      # 0x23448
jmp 0x14893
movq %rbx, %rdi
leaq 0xdaff(%rip), %rsi      # 0x22392
callq 0x656b
jmp 0x148b4
movl 0x44(%rsp), %ecx
movq %rbx, %rdi
leaq 0xebab(%rip), %rsi      # 0x23453
leaq 0x50(%rsp), %rdx
xorl %eax, %eax
callq 0x65ff
cmpb $0x0, 0x4f(%rsp)
je 0x148ca
movq %rbx, %rdi
leaq 0xe9be(%rip), %rsi      # 0x23283
callq 0x656b
incl %r12d
movq %rbx, %rdi
callq 0x5d39
subl 0xc(%rsp), %eax
movq %rbx, %rdi
movl %eax, %esi
callq 0x7316
movq %r13, %rdi
movl %r12d, %r14d
movl %r12d, %esi
leaq 0x18(%rsp), %r12
movq %r12, %rdx
callq 0x76f2
testl %eax, %eax
jne 0x14787
movq %rbx, %rdi
callq 0x5d39
subl 0xc(%rsp), %eax
movq %rbx, %rdi
movl %eax, %esi
callq 0x7316
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq