// File: /workspace/github_c_makefile_star2_O2/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: lua_getinfo
static int lua_getinfo(lua_State*L,const char*what,lua_Debug*ar){
int status;
Closure*f=NULL;
CallInfo*ci=NULL;
if(*what=='>'){
StkId func=L->top-1;
luai_apicheck(L,ttisfunction(func));
what++;
f=clvalue(func);
L->top--;
}
else if(ar->i_ci!=0){
ci=L->base_ci+ar->i_ci;
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);
return status;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r13
cmpb $0x3e, (%rsi)
jne 0x97ae
movq 0x10(%r13), %rax
incq %r14
movq -0x10(%rax), %rbx
addq $-0x10, %rax
movq %rax, 0x10(%r13)
xorl %r12d, %r12d
jmp 0x97cf
movslq 0x74(%r15), %rax
testq %rax, %rax
je 0x98c7
movq 0x50(%r13), %rcx
imulq $0x28, %rax, %rax
leaq (%rcx,%rax), %r12
movq 0x8(%rcx,%rax), %rax
movq (%rax), %rbx
testq %rbx, %rbx
je 0x98c7
movq %r13, 0x8(%rsp)
leaq 0x38(%r15), %r13
pushq $-0x1
popq %rbp
movq %r14, 0x10(%rsp)
movzbl (%r14), %eax
cmpl $0x53, %eax
je 0x9847
cmpl $0x6c, %eax
je 0x980e
cmpl $0x6e, %eax
je 0x9835
cmpl $0x75, %eax
je 0x982b
testl %eax, %eax
jne 0x98b1
jmp 0x98b9
movl %ebp, %eax
testq %r12, %r12
je 0x9822
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x4949
movl %eax, 0x28(%r15)
jmp 0x98b1
movzbl 0xb(%rbx), %eax
movl %eax, 0x2c(%r15)
jmp 0x98b1
leaq 0x90e7(%rip), %rax      # 0x12923
movq %rax, 0x10(%r15)
andq $0x0, 0x8(%r15)
jmp 0x98b1
cmpb $0x0, 0xa(%rbx)
je 0x9868
leaq 0x91db(%rip), %rsi      # 0x12a2f
movq %rsi, 0x20(%r15)
orl $-0x1, 0x30(%r15)
movl %ebp, %eax
leaq 0x91ce(%rip), %rcx      # 0x12a34
jmp 0x989e
movq 0x20(%rbx), %rax
movq 0x40(%rax), %rsi
addq $0x18, %rsi
movq %rsi, 0x20(%r15)
movq 0x20(%rbx), %rax
movl 0x60(%rax), %ecx
movl %ecx, 0x30(%r15)
movq 0x20(%rbx), %rax
movl 0x64(%rax), %eax
testl %ecx, %ecx
leaq 0x91a8(%rip), %rcx      # 0x12a3b
leaq 0x919c(%rip), %rdx      # 0x12a36
cmoveq %rdx, %rcx
movl %eax, 0x34(%r15)
movq %rcx, 0x18(%r15)
movq %r13, %rdi
pushq $0x3c
popq %rdx
callq 0x49a2
incq %r14
jmp 0x97e9
xorl %ebp, %ebp
movq 0x8(%rsp), %r13
movq 0x10(%rsp), %r14
jmp 0x990c
leaq 0x9055(%rip), %rax      # 0x12923
movq %rax, 0x10(%r15)
movq %rax, 0x8(%r15)
leaq 0x9140(%rip), %rax      # 0x12a1d
movq %rax, 0x18(%r15)
orl $-0x1, 0x28(%r15)
orq $-0x1, 0x30(%r15)
leaq 0x9130(%rip), %rsi      # 0x12a22
movq %rsi, 0x20(%r15)
leaq 0x38(%r15), %rdi
pushq $0x3c
popq %rdx
callq 0x49a2
andl $0x0, 0x2c(%r15)
movb $0x1, %bpl
xorl %ebx, %ebx
pushq $0x66
popq %rsi
movq %r14, %rdi
callq 0x30f0
testq %rax, %rax
je 0x9956
movq 0x10(%r13), %rax
testb %bpl, %bpl
je 0x992b
andl $0x0, 0x8(%rax)
jmp 0x9939
movq %rbx, (%rax)
movl $0x6, 0x8(%rax)
movq 0x10(%r13), %rax
movq 0x38(%r13), %rcx
subq %rax, %rcx
cmpq $0x10, %rcx
jg 0x9951
pushq $0x1
popq %rsi
movq %r13, %rdi
callq 0x4b6b
addq $0x10, 0x10(%r13)
pushq $0x4c
popq %rsi
movq %r14, %rdi
callq 0x30f0
testq %rax, %rax
je 0x999d
testb %bpl, %bpl
jne 0x9971
cmpb $0x0, 0xa(%rbx)
je 0x99ac
movq 0x10(%r13), %rax
andl $0x0, 0x8(%rax)
movq 0x38(%r13), %rcx
subq %rax, %rcx
cmpq $0x10, %rcx
jg 0x9995
pushq $0x1
popq %rsi
movq %r13, %rdi
callq 0x4b6b
movq 0x10(%r13), %rax
addq $0x10, %rax
movq %rax, 0x10(%r13)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x1
popq %rbp
xorl %r15d, %r15d
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3ebe
movq %rax, %r14
movq 0x20(%rbx), %rax
movq 0x28(%rax), %r12
movslq 0x54(%rax), %rax
cmpq %rax, %r15
jge 0x99ef
movl (%r12,%r15,4), %edx
movq %r13, %rdi
movq %r14, %rsi
callq 0x710a
movl %ebp, (%rax)
movl %ebp, 0x8(%rax)
incq %r15
movq 0x20(%rbx), %rax
jmp 0x99c9
movq 0x10(%r13), %rax
movq %r14, (%rax)
movl $0x5, 0x8(%rax)
movq 0x10(%r13), %rax
jmp 0x9979