// File: /workspace/github_c_makefile_star2_O3/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 0xab9e
movq 0x10(%r13), %rax
incq %r14
movq -0x10(%rax), %rbp
addq $-0x10, %rax
movq %rax, 0x10(%r13)
xorl %r12d, %r12d
jmp 0xabbf
movslq 0x74(%r15), %rax
testq %rax, %rax
je 0xacfa
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 0xacfa
movq %r13, 0x8(%rsp)
leaq 0x38(%r15), %r13
movq %r14, %rbx
leaq 0xae54(%rip), %r14      # 0x15a2f
movq %rbx, 0x10(%rsp)
movzbl (%rbx), %eax
cmpl $0x6d, %eax
jg 0xac0d
cmpl $0x53, %eax
je 0xac28
cmpl $0x6c, %eax
jne 0xac60
testq %r12, %r12
je 0xacb3
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x4c4e
jmp 0xacb8
cmpl $0x6e, %eax
je 0xac4b
cmpl $0x75, %eax
jne 0xacbc
movzbl 0xb(%rbp), %eax
movl %eax, 0x2c(%r15)
jmp 0xacbc
cmpb $0x0, 0xa(%rbp)
je 0xac66
movq %r14, 0x20(%r15)
movl $0xffffffff, 0x30(%r15) # imm = 0xFFFFFFFF
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %r14, %rsi
leaq 0xadeb(%rip), %rcx      # 0x15a34
jmp 0xac9c
leaq 0xacd1(%rip), %rax      # 0x15923
movq %rax, 0x10(%r15)
movq $0x0, 0x8(%r15)
jmp 0xacbc
testl %eax, %eax
jne 0xacbc
jmp 0xacc4
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 0xadaa(%rip), %rcx      # 0x15a3b
leaq 0xad9e(%rip), %rdx      # 0x15a36
cmoveq %rdx, %rcx
movl %eax, 0x34(%r15)
movq %rcx, 0x18(%r15)
movl $0x3c, %edx
movq %r13, %rdi
callq 0x4ca9
jmp 0xacbc
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x28(%r15)
incq %rbx
jmp 0xabe0
movq 0x10(%rsp), %r14
movq %r14, %rdi
movl $0x66, %esi
callq 0x30f0
testq %rax, %rax
je 0xad91
movq 0x8(%rsp), %r13
movq 0x10(%r13), %rax
movq %rbp, (%rax)
movl $0x6, 0x8(%rax)
movq 0x10(%r13), %rax
xorl %ebx, %ebx
jmp 0xad66
leaq 0xac22(%rip), %rax      # 0x15923
movq %rax, 0x10(%r15)
movq %rax, 0x8(%r15)
leaq 0xad0d(%rip), %rax      # 0x15a1d
movq %rax, 0x18(%r15)
movl $0xffffffff, 0x28(%r15) # imm = 0xFFFFFFFF
movq $-0x1, 0x30(%r15)
leaq 0xacf7(%rip), %rsi      # 0x15a22
movq %rsi, 0x20(%r15)
leaq 0x38(%r15), %rdi
movl $0x3c, %edx
callq 0x4ca9
movl $0x0, 0x2c(%r15)
movq %r14, %rdi
movl $0x66, %esi
callq 0x30f0
testq %rax, %rax
je 0xadad
movq 0x10(%r13), %rax
movl $0x0, 0x8(%rax)
movb $0x1, %bl
xorl %ebp, %ebp
movq 0x38(%r13), %rcx
subq %rax, %rcx
cmpq $0x10, %rcx
jg 0xad8a
movl 0x58(%r13), %eax
leal 0x1(%rax), %ecx
leal (%rax,%rax), %esi
testl %eax, %eax
cmovlel %ecx, %esi
movq %r13, %rdi
callq 0x50e7
addq $0x10, 0x10(%r13)
jmp 0xadb1
movq %r14, %rdi
movl $0x4c, %esi
callq 0x30f0
testq %rax, %rax
movq 0x8(%rsp), %r13
jne 0xadcb
jmp 0xae6c
movb $0x1, %bl
xorl %ebp, %ebp
movq %r14, %rdi
movl $0x4c, %esi
callq 0x30f0
testq %rax, %rax
je 0xae6c
testb %bl, %bl
jne 0xadd1
cmpb $0x0, 0xa(%rbp)
je 0xadde
movq 0x10(%r13), %rax
movl $0x0, 0x8(%rax)
jmp 0xae3c
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x40f7
movq %rax, %r14
movq 0x20(%rbp), %rax
cmpl $0x0, 0x54(%rax)
jle 0xae2a
movq 0x28(%rax), %rbx
xorl %r15d, %r15d
movl $0x1, %r12d
movl (%rbx,%r15,4), %edx
movq %r13, %rdi
movq %r14, %rsi
callq 0x77a3
movl %r12d, (%rax)
movl %r12d, 0x8(%rax)
incq %r15
movq 0x20(%rbp), %rax
movslq 0x54(%rax), %rax
cmpq %rax, %r15
jl 0xae04
movq 0x10(%r13), %rax
movq %r14, (%rax)
movl $0x5, 0x8(%rax)
movq 0x10(%r13), %rax
movq 0x38(%r13), %rcx
subq %rax, %rcx
cmpq $0x10, %rcx
jg 0xae64
movl 0x58(%r13), %eax
leal 0x1(%rax), %ecx
leal (%rax,%rax), %esi
testl %eax, %eax
cmovlel %ecx, %esi
movq %r13, %rdi
callq 0x50e7
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