// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5d90
movl %eax, -0xa4(%rbp)
movq -0x10(%rbp), %rdi
callq 0x1f860
movl %eax, -0xa8(%rbp)
movl -0xa8(%rbp), %edx
subl -0x1c(%rbp), %edx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0xa, %ecx
cmpl $0x15, %edx
cmovgl %ecx, %eax
movl %eax, -0xac(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x1f6f4
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x15f23(%rip), %rsi     # 0x35610
movb $0x0, %al
callq 0x6de0
movq -0x8(%rbp), %rdi
movl $0xa, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x1f930
movq -0x8(%rbp), %rdi
leaq 0x15f03(%rip), %rsi     # 0x35614
callq 0x6ce0
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
movl %esi, %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
leaq -0xa0(%rbp), %rdx
callq 0x9070
cmpl $0x0, %eax
je 0x1f826
movl -0xac(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0xac(%rbp)
cmpl $0x0, %eax
jne 0x1f774
movq -0x8(%rbp), %rdi
leaq 0x15eca(%rip), %rsi     # 0x35625
callq 0x6ce0
movl -0xa8(%rbp), %eax
subl $0xb, %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1f821
movq -0x10(%rbp), %rdi
leaq 0x15eac(%rip), %rsi     # 0x3562b
leaq -0xa0(%rbp), %rdx
callq 0x9420
movq -0x8(%rbp), %rdi
leaq -0xa0(%rbp), %rdx
addq $0x38, %rdx
leaq 0x15e8f(%rip), %rsi     # 0x35630
movb $0x0, %al
callq 0x6de0
cmpl $0x0, -0x78(%rbp)
jle 0x1f7c3
movq -0x8(%rbp), %rdi
movl -0x78(%rbp), %edx
leaq 0x15e7a(%rip), %rsi     # 0x35636
movb $0x0, %al
callq 0x6de0
movq -0x8(%rbp), %rdi
leaq 0x15e6c(%rip), %rsi     # 0x3563a
callq 0x6ce0
movq -0x8(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x1f990
cmpb $0x0, -0x69(%rbp)
je 0x1f7f9
movq -0x8(%rbp), %rdi
leaq 0x15e4b(%rip), %rsi     # 0x3563f
callq 0x6ce0
movq -0x8(%rbp), %rax
movq %rax, -0xb8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5d90
movq -0xb8(%rbp), %rdi
movl %eax, %esi
subl -0xa4(%rbp), %esi
callq 0x8820
jmp 0x1f716
movq -0x8(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0x8(%rbp), %rdi
callq 0x5d90
movq -0xc0(%rbp), %rdi
movl %eax, %esi
subl -0xa4(%rbp), %esi
callq 0x8820
addq $0xc0, %rsp
popq %rbp
retq
nopw (%rax,%rax)