// File: /workspace/github_c_makefile_star2_O3/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, %r14
movq %rdi, %r13
cmpb $0x3e, (%rsi)
jne 0x69fe
movq 0x10(%r13), %rax
incq %r14
movq -0x10(%rax), %rbp
addq $-0x10, %rax
movq %rax, 0x10(%r13)
xorl %r12d, %r12d
jmp 0x6a1f
movslq 0x74(%r15), %rax
testq %rax, %rax
je 0x6c78
movq 0x50(%r13), %rcx
leaq (%rax,%rax,4), %rax
leaq (%rcx,%rax,8), %r12
movq 0x8(%r12), %rax
movq (%rax), %rbp
testq %rbp, %rbp
je 0x6c78
movq %r13, 0x8(%rsp)
leaq 0x8(%r15), %rax
movq %rax, 0x20(%rsp)
leaq -0x28(%r12), %rax
movq %rax, 0x18(%rsp)
leaq 0x38(%r15), %r13
movl $0x1, 0x4(%rsp)
movq %r14, 0x10(%rsp)
movzbl (%r14), %eax
cmpl $0x6b, %eax
jg 0x6a6f
cmpl $0x52, %eax
jle 0x6a8f
cmpl $0x53, %eax
je 0x6aad
cmpl $0x66, %eax
je 0x6c35
jmp 0x6aa0
cmpl $0x6c, %eax
je 0x6adb
cmpl $0x6e, %eax
je 0x6b21
cmpl $0x75, %eax
jne 0x6aa0
movzbl 0xb(%rbp), %eax
movl %eax, 0x2c(%r15)
jmp 0x6c35
cmpl $0x4c, %eax
je 0x6c35
testl %eax, %eax
je 0x6c3d
movl $0x0, 0x4(%rsp)
jmp 0x6c35
cmpb $0x0, 0xa(%rbp)
je 0x6bc1
leaq 0x14a5e(%rip), %rsi     # 0x1b51c
movq %rsi, 0x20(%r15)
movl $0xffffffff, 0x30(%r15) # imm = 0xFFFFFFFF
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
leaq 0x14a4b(%rip), %rcx     # 0x1b521
jmp 0x6bf7
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %r12, %r12
je 0x6c10
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x78d6
testl %eax, %eax
js 0x6c10
movq 0x8(%r12), %rcx
movq (%rcx), %rcx
movq 0x20(%rcx), %rcx
movq 0x28(%rcx), %rcx
testq %rcx, %rcx
je 0x6c0e
movl %eax, %eax
movl (%rcx,%rax,4), %ebx
jmp 0x6c10
testq %r12, %r12
je 0x6c22
movq 0x8(%r12), %rax
cmpl $0x6, 0x8(%rax)
jne 0x6b42
movq (%rax), %rax
cmpb $0x0, 0xa(%rax)
je 0x6c16
movq -0x20(%r12), %rax
cmpl $0x6, 0x8(%rax)
jne 0x6c22
movq (%rax), %rax
cmpb $0x0, 0xa(%rax)
jne 0x6c22
movq 0x20(%rax), %rax
movq 0x18(%rax), %rbx
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x78d6
cltq
movl (%rbx,%rax,4), %eax
movl %eax, %ecx
andl $0x3f, %ecx
cmpl $0x21, %ecx
ja 0x6c22
movabsq $0x230000000, %rdx      # imm = 0x230000000
btq %rcx, %rdx
jae 0x6c22
shrl $0x6, %eax
movzbl %al, %edx
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rcx
callq 0x74f7
movq %rax, 0x10(%r15)
testq %rax, %rax
jne 0x6c35
jmp 0x6c22
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 0x1493c(%rip), %rcx     # 0x1b528
leaq 0x14930(%rip), %rdx     # 0x1b523
cmoveq %rdx, %rcx
movl %eax, 0x34(%r15)
movq %rcx, 0x18(%r15)
movl $0x3c, %edx
movq %r13, %rdi
callq 0xa76f
jmp 0x6c35
xorl %ebx, %ebx
movl %ebx, 0x28(%r15)
jmp 0x6c35
cmpl $0x0, 0x24(%r12)
jle 0x6b42
leaq 0x16579(%rip), %rax     # 0x1d1a2
movq %rax, 0x10(%r15)
movq $0x0, 0x8(%r15)
incq %r14
jmp 0x6a51
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movl $0x66, %esi
callq 0x4160
testq %rax, %rax
je 0x6d10
movq 0x8(%rsp), %r13
movq 0x10(%r13), %rax
movq %rbp, (%rax)
movl $0x6, 0x8(%rax)
movq 0x10(%r13), %rax
xorl %r14d, %r14d
movl 0x4(%rsp), %ebx
jmp 0x6cef
leaq 0x16523(%rip), %rax     # 0x1d1a2
movq %rax, 0x10(%r15)
movq %rax, 0x8(%r15)
leaq 0x1487c(%rip), %rax     # 0x1b50a
movq %rax, 0x18(%r15)
movl $0xffffffff, 0x28(%r15) # imm = 0xFFFFFFFF
movq $-0x1, 0x30(%r15)
leaq 0x14866(%rip), %rsi     # 0x1b50f
movq %rsi, 0x20(%r15)
leaq 0x38(%r15), %rdi
movl $0x3c, %edx
callq 0xa76f
movl $0x0, 0x2c(%r15)
movq %r14, 0x10(%rsp)
movq %r14, %rdi
movl $0x66, %esi
callq 0x4160
testq %rax, %rax
je 0x6d30
movq 0x10(%r13), %rax
movl $0x0, 0x8(%rax)
movl $0x1, %ebx
movb $0x1, %r14b
xorl %ebp, %ebp
movq 0x38(%r13), %rcx
subq %rax, %rcx
cmpq $0x10, %rcx
jg 0x6d09
movq %r13, %rdi
movl $0x1, %esi
callq 0x7c11
addq $0x10, 0x10(%r13)
jmp 0x6d3a
movq %rbx, %rdi
movl $0x4c, %esi
callq 0x4160
testq %rax, %rax
movq 0x8(%rsp), %r13
movl 0x4(%rsp), %ebx
jne 0x6d57
jmp 0x6df3
movb $0x1, %r14b
movl $0x1, %ebx
xorl %ebp, %ebp
movq 0x10(%rsp), %rdi
movl $0x4c, %esi
callq 0x4160
testq %rax, %rax
je 0x6df3
testb %r14b, %r14b
jne 0x6d5d
cmpb $0x0, 0xa(%rbp)
je 0x6d6a
movq 0x10(%r13), %rax
movl $0x0, 0x8(%rax)
jmp 0x6dcd
movl %ebx, 0x4(%rsp)
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xd77c
movq %rax, %r14
movq 0x20(%rbp), %rax
cmpl $0x0, 0x54(%rax)
jle 0x6db7
movq 0x28(%rax), %r15
xorl %r12d, %r12d
movl $0x1, %ebx
movl (%r15,%r12,4), %edx
movq %r13, %rdi
movq %r14, %rsi
callq 0xdf96
movl %ebx, (%rax)
movl %ebx, 0x8(%rax)
incq %r12
movq 0x20(%rbp), %rax
movslq 0x54(%rax), %rax
cmpq %rax, %r12
jl 0x6d93
movq 0x10(%r13), %rax
movq %r14, (%rax)
movl $0x5, 0x8(%rax)
movq 0x10(%r13), %rax
movl 0x4(%rsp), %ebx
movq 0x38(%r13), %rcx
subq %rax, %rcx
cmpq $0x10, %rcx
jg 0x6deb
movq %r13, %rdi
movl $0x1, %esi
callq 0x7c11
movq 0x10(%r13), %rax
addq $0x10, %rax
movq %rax, 0x10(%r13)
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq