// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/ldebug.c
// Function: lua_getinfo
LUA_API int lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) {
  int status;
  Closure *f = NULL;
  CallInfo *ci = NULL;
  lua_lock(L);
  if (*what == '>') {
    StkId func = L->top - 1;
    luai_apicheck(L, ttisfunction(func));
    what++;  /* skip the '>' */
    f = clvalue(func);
    L->top--;  /* pop function */
  }
  else if (ar->i_ci != 0) {  /* no tail call? */
    ci = L->base_ci + ar->i_ci;
    lua_assert(ttisfunction(ci->func));
    f = clvalue(ci->func);
  }
  status = auxgetinfo(L, what, ar, f, ci);
  if (strchr(what, 'f')) {
    if (f == NULL) setnilvalue(L->top);
    else setclvalue(L, L->top, f);
    incr_top(L);
  }
  if (strchr(what, 'L'))
    collectvalidlines(L, f);
  lua_unlock(L);
  return status;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbp
cmpb $0x3e, (%rsi)
jne 0x5a2a4
movq 0x10(%rbp), %rax
incq %r14
movq -0x10(%rax), %r13
addq $-0x10, %rax
movq %rax, 0x10(%rbp)
xorl %r12d, %r12d
jmp 0x5a2c9
movslq 0x74(%r15), %rax
testq %rax, %rax
je 0x5a2c3
movq 0x50(%rbp), %rcx
leaq (%rax,%rax,4), %rax
leaq (%rcx,%rax,8), %r12
movq 0x8(%r12), %rax
movq (%rax), %r13
jmp 0x5a2c9
xorl %r12d, %r12d
xorl %r13d, %r13d
testq %r13, %r13
je 0x5a4fc
movq %rbp, (%rsp)
leaq 0x8(%r15), %rax
movq %rax, 0x20(%rsp)
leaq -0x28(%r12), %rax
movq %rax, 0x10(%rsp)
leaq 0x38(%r15), %rax
movq %rax, 0x8(%rsp)
movq %r14, %rbp
movl $0x1, %r14d
movq %rbp, 0x18(%rsp)
movzbl (%rbp), %eax
cmpl $0x6b, %eax
jg 0x5a31e
cmpl $0x52, %eax
jle 0x5a33f
cmpl $0x53, %eax
je 0x5a358
cmpl $0x66, %eax
je 0x5a4e6
jmp 0x5a350
cmpl $0x6c, %eax
je 0x5a382
cmpl $0x6e, %eax
je 0x5a3c7
cmpl $0x75, %eax
jne 0x5a350
movzbl 0xb(%r13), %eax
movl %eax, 0x2c(%r15)
jmp 0x5a4e6
cmpl $0x4c, %eax
je 0x5a4e6
testl %eax, %eax
je 0x5a4ee
xorl %r14d, %r14d
jmp 0x5a4e6
cmpb $0x0, 0xa(%r13)
je 0x5a461
leaq 0x93a54(%rip), %rax     # 0xeddbe
movq %rax, 0x20(%r15)
movq $-0x1, 0x30(%r15)
leaq 0x9a403(%rip), %rax     # 0xf4780
jmp 0x5a49b
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %r12, %r12
je 0x5a4b6
movq (%rsp), %rdi
movq %r12, %rsi
callq 0x5c87a
testl %eax, %eax
js 0x5a4b6
movq 0x8(%r12), %rcx
movq (%rcx), %rcx
movq 0x20(%rcx), %rcx
movq 0x28(%rcx), %rcx
testq %rcx, %rcx
je 0x5a4b4
movl %eax, %eax
movl (%rcx,%rax,4), %ebx
jmp 0x5a4b6
testq %r12, %r12
je 0x5a4c8
movq 0x8(%r12), %rax
cmpl $0x6, 0x8(%rax)
jne 0x5a3e8
movq (%rax), %rax
cmpb $0x0, 0xa(%rax)
je 0x5a4bc
movq -0x20(%r12), %rax
cmpl $0x6, 0x8(%rax)
jne 0x5a4c8
movq (%rax), %rax
cmpb $0x0, 0xa(%rax)
jne 0x5a4c8
movq 0x20(%rax), %rax
movq 0x18(%rax), %rbx
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x5c87a
cltq
movl (%rbx,%rax,4), %ecx
movl %ecx, %eax
andl $0x3f, %eax
cmpl $0x21, %eax
ja 0x5a4c8
movabsq $0x230000000, %rdx      # imm = 0x230000000
btq %rax, %rdx
movl $0x0, %eax
jae 0x5a4ca
shrl $0x6, %ecx
movzbl %cl, %edx
movq (%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x20(%rsp), %rcx
callq 0x5c99e
jmp 0x5a4ca
movq 0x20(%r13), %rax
movq 0x40(%rax), %rax
addq $0x18, %rax
movq %rax, 0x20(%r15)
movq 0x20(%r13), %rax
movl 0x60(%rax), %eax
movl %eax, 0x30(%r15)
movq 0x20(%r13), %rcx
movl 0x64(%rcx), %ecx
movl %ecx, 0x34(%r15)
testl %eax, %eax
leaq 0x93933(%rip), %rax     # 0xeddc3
leaq 0x87d6c(%rip), %rcx     # 0xe2203
cmoveq %rcx, %rax
movq %rax, 0x18(%r15)
movq 0x20(%r15), %rsi
movl $0x3c, %edx
movq 0x8(%rsp), %rdi
callq 0x5c8b7
jmp 0x5a4e6
xorl %ebx, %ebx
movl %ebx, 0x28(%r15)
jmp 0x5a4e6
cmpl $0x0, 0x24(%r12)
jle 0x5a3e8
xorl %eax, %eax
movq %rax, 0x10(%r15)
testq %rax, %rax
jne 0x5a4e6
leaq 0x946a5(%rip), %rax     # 0xeeb7f
movq %rax, 0x10(%r15)
movq $0x0, 0x8(%r15)
incq %rbp
jmp 0x5a300
movq (%rsp), %rbp
movl %r14d, %ebx
movq 0x18(%rsp), %r14
jmp 0x5a54c
leaq 0x9467c(%rip), %rax     # 0xeeb7f
movq %rax, 0x10(%r15)
movq %rax, 0x8(%r15)
leaq 0x8d45f(%rip), %rax     # 0xe7971
movq %rax, 0x18(%r15)
movl $0xffffffff, 0x28(%r15) # imm = 0xFFFFFFFF
movq $-0x1, 0x30(%r15)
leaq 0x93874(%rip), %rsi     # 0xedda1
movq %rsi, 0x20(%r15)
leaq 0x38(%r15), %rdi
movl $0x3c, %edx
callq 0x5c8b7
movl $0x0, 0x2c(%r15)
movl $0x1, %ebx
movq %r14, %rdi
movl $0x66, %esi
callq 0xb210
testq %rax, %rax
je 0x5a596
movq 0x10(%rbp), %rax
testq %r13, %r13
je 0x5a571
movq %r13, (%rax)
movl $0x6, %ecx
jmp 0x5a573
xorl %ecx, %ecx
movl %ecx, 0x8(%rax)
movq 0x38(%rbp), %rax
subq 0x10(%rbp), %rax
cmpq $0x10, %rax
jg 0x5a591
movq %rbp, %rdi
movl $0x1, %esi
callq 0x576ac
addq $0x10, 0x10(%rbp)
movq %r14, %rdi
movl $0x4c, %esi
callq 0xb210
testq %rax, %rax
je 0x5a640
testq %r13, %r13
je 0x5a5b8
cmpb $0x0, 0xa(%r13)
je 0x5a5c0
movq 0x10(%rbp), %rax
xorl %ecx, %ecx
jmp 0x5a61d
movl %ebx, 0x8(%rsp)
movq %rbp, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x58df1
movq %rax, %r14
movq 0x20(%r13), %rax
cmpl $0x0, 0x54(%rax)
jle 0x5a60d
movq 0x28(%rax), %r15
xorl %r12d, %r12d
movl $0x1, %ebx
movl (%r15,%r12,4), %edx
movq %rbp, %rdi
movq %r14, %rsi
callq 0x592ee
movl %ebx, (%rax)
movl %ebx, 0x8(%rax)
incq %r12
movq 0x20(%r13), %rax
movslq 0x54(%rax), %rax
cmpq %rax, %r12
jl 0x5a5e9
movq 0x10(%rbp), %rax
movq %r14, (%rax)
movl $0x5, %ecx
movl 0x8(%rsp), %ebx
movl %ecx, 0x8(%rax)
movq 0x38(%rbp), %rax
subq 0x10(%rbp), %rax
cmpq $0x10, %rax
jg 0x5a63b
movq %rbp, %rdi
movl $0x1, %esi
callq 0x576ac
addq $0x10, 0x10(%rbp)
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq