// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/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, %r12
movq %rdi, %r14
cmpb $0x3e, (%rsi)
pushq $0x1
popq %r13
jne 0x65a9
movq 0x10(%r14), %rax
incq %r12
movq %r12, 0x8(%rsp)
movq -0x10(%rax), %rbp
addq $-0x10, %rax
movq %rax, 0x10(%r14)
xorl %r12d, %r12d
jmp 0x65cf
movslq 0x74(%r15), %rax
testq %rax, %rax
je 0x67c2
movq %r12, 0x8(%rsp)
movq 0x50(%r14), %rcx
imulq $0x28, %rax, %rax
leaq (%rcx,%rax), %r12
movq 0x8(%rcx,%rax), %rax
movq (%rax), %rbp
testq %rbp, %rbp
je 0x67bd
leaq 0x8(%r15), %rax
movq %rax, 0x18(%rsp)
leaq -0x28(%r12), %rax
movq %rax, 0x10(%rsp)
leaq 0x38(%r15), %rax
movq %rax, 0x20(%rsp)
pushq $0x1
popq %rax
movl %eax, 0x4(%rsp)
movq 0x8(%rsp), %rbx
movzbl (%rbx), %eax
cmpl $0x4c, %eax
je 0x67a7
cmpl $0x53, %eax
je 0x671c
cmpl $0x66, %eax
je 0x67a7
cmpl $0x6c, %eax
je 0x66f3
cmpl $0x6e, %eax
je 0x664a
cmpl $0x75, %eax
je 0x670f
testl %eax, %eax
je 0x67af
movl $0x0, 0x4(%rsp)
jmp 0x67a7
testq %r12, %r12
je 0x6797
movq 0x8(%r12), %rax
cmpl $0x6, 0x8(%rax)
jne 0x666b
movq (%rax), %rax
cmpb $0x0, 0xa(%rax)
je 0x678b
movq -0x20(%r12), %rax
cmpl $0x6, 0x8(%rax)
jne 0x6797
movq (%rax), %rax
cmpb $0x0, 0xa(%rax)
jne 0x6797
movq 0x20(%rax), %rax
movq 0x18(%rax), %r13
movq %r14, %rdi
movq 0x10(%rsp), %rsi
callq 0x73bc
cltq
movl (%r13,%rax,4), %eax
pushq $0x1
popq %r13
movl %eax, %ecx
andl $0x3f, %ecx
cmpl $0x21, %ecx
ja 0x6797
movabsq $0x230000000, %rdx      # imm = 0x230000000
btq %rcx, %rdx
jae 0x6797
shrl $0x6, %eax
movzbl %al, %edx
movq %r14, %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rcx
callq 0x6ff8
movq %rax, 0x10(%r15)
testq %rax, %rax
jne 0x67a7
jmp 0x6797
pushq $-0x1
popq %rax
testq %r12, %r12
je 0x6706
movq %r14, %rdi
movq %r12, %rsi
callq 0x73f9
movl %eax, 0x28(%r15)
jmp 0x67a7
movzbl 0xb(%rbp), %eax
movl %eax, 0x2c(%r15)
jmp 0x67a7
cmpb $0x0, 0xa(%rbp)
je 0x673e
leaq 0x12dd3(%rip), %rsi     # 0x194fc
movq %rsi, 0x20(%r15)
orl $-0x1, 0x30(%r15)
pushq $-0x1
popq %rax
leaq 0x12dc5(%rip), %rcx     # 0x19501
jmp 0x6774
movq 0x20(%rbp), %rax
movq 0x40(%rax), %rsi
addq $0x18, %rsi
movq %rsi, 0x20(%r15)
movq 0x20(%rbp), %rax
movl 0x60(%rax), %ecx
movl %ecx, 0x30(%r15)
movq 0x20(%rbp), %rax
movl 0x64(%rax), %eax
testl %ecx, %ecx
leaq 0x12d9f(%rip), %rcx     # 0x19508
leaq 0x12d93(%rip), %rdx     # 0x19503
cmoveq %rdx, %rcx
movl %eax, 0x34(%r15)
movq %rcx, 0x18(%r15)
movq 0x20(%rsp), %rdi
pushq $0x3c
popq %rdx
callq 0x9cf2
jmp 0x67a7
cmpl $0x0, 0x24(%r12)
jle 0x666b
leaq 0x149dc(%rip), %rax     # 0x1b17a
movq %rax, 0x10(%r15)
andq $0x0, 0x8(%r15)
incq %rbx
jmp 0x6600
xorl %ebx, %ebx
movl 0x4(%rsp), %r15d
movq 0x8(%rsp), %r12
jmp 0x6809
movq 0x8(%rsp), %r12
leaq 0x149b1(%rip), %rax     # 0x1b17a
movq %rax, 0x10(%r15)
movq %rax, 0x8(%r15)
leaq 0x12d12(%rip), %rax     # 0x194ea
movq %rax, 0x18(%r15)
orl $-0x1, 0x28(%r15)
orq $-0x1, 0x30(%r15)
leaq 0x12d02(%rip), %rsi     # 0x194ef
movq %rsi, 0x20(%r15)
leaq 0x38(%r15), %rdi
pushq $0x3c
popq %rdx
callq 0x9cf2
andl $0x0, 0x2c(%r15)
movb $0x1, %bl
xorl %ebp, %ebp
movl %r13d, %r15d
pushq $0x66
popq %rsi
movq %r12, %rdi
callq 0x4160
testq %rax, %rax
je 0x6852
movq 0x10(%r14), %rax
testb %bl, %bl
je 0x6827
andl $0x0, 0x8(%rax)
jmp 0x6835
movq %rbp, (%rax)
movl $0x6, 0x8(%rax)
movq 0x10(%r14), %rax
movq 0x38(%r14), %rcx
subq %rax, %rcx
cmpq $0x10, %rcx
jg 0x684d
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x7732
addq $0x10, 0x10(%r14)
pushq $0x4c
popq %rsi
movq %r12, %rdi
callq 0x4160
testq %rax, %rax
je 0x6898
testb %bl, %bl
jne 0x686c
cmpb $0x0, 0xa(%rbp)
je 0x68aa
movq 0x10(%r14), %rax
andl $0x0, 0x8(%rax)
movq 0x38(%r14), %rcx
subq %rax, %rcx
cmpq $0x10, %rcx
jg 0x6890
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x7732
movq 0x10(%r14), %rax
addq $0x10, %rax
movq %rax, 0x10(%r14)
movl %r15d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %r15d, 0x4(%rsp)
xorl %ebx, %ebx
movq %r14, %r12
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xc90c
movq %rax, %r14
movq 0x20(%rbp), %rax
movq 0x28(%rax), %r15
movslq 0x54(%rax), %rax
cmpq %rax, %rbx
jge 0x68f3
movl (%r15,%rbx,4), %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0xcf9d
movl %r13d, (%rax)
movl %r13d, 0x8(%rax)
incq %rbx
movq 0x20(%rbp), %rax
jmp 0x68cb
movq 0x10(%r12), %rax
movq %r14, (%rax)
movq %r12, %r14
movl $0x5, 0x8(%rax)
movq 0x10(%r12), %rax
movl 0x4(%rsp), %r15d
jmp 0x6874