// File: /workspace/github_c_makefile_star2_O1/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
pushq %rax
movq %rdx, %r15
movq %rdi, %r14
cmpb $0x3e, (%rsi)
jne 0xa2a8
movq 0x10(%r14), %rax
incq %rsi
movq -0x10(%rax), %rbp
addq $-0x10, %rax
movq %rax, 0x10(%r14)
xorl %r12d, %r12d
jmp 0xa2cc
movslq 0x74(%r15), %rax
testq %rax, %rax
je 0xa2c7
movq 0x50(%r14), %rcx
leaq (%rax,%rax,4), %rax
leaq (%rcx,%rax,8), %r12
movq 0x8(%r12), %rax
movq (%rax), %rbp
jmp 0xa2cc
xorl %r12d, %r12d
xorl %ebp, %ebp
testq %rbp, %rbp
movq %rsi, (%rsp)
je 0xa3c8
leaq 0x38(%r15), %r13
movq %rsi, %rbx
movzbl (%rbx), %eax
cmpl $0x6d, %eax
jg 0xa30b
cmpl $0x53, %eax
je 0xa326
cmpl $0x6c, %eax
jne 0xa35d
testq %r12, %r12
je 0xa3b7
movq %r14, %rdi
movq %r12, %rsi
callq 0x4af0
jmp 0xa3bc
cmpl $0x6e, %eax
je 0xa348
cmpl $0x75, %eax
jne 0xa3c0
movzbl 0xb(%rbp), %eax
movl %eax, 0x2c(%r15)
jmp 0xa3c0
cmpb $0x0, 0xa(%rbp)
je 0xa366
leaq 0xa6d4(%rip), %rax      # 0x14a07
movq %rax, 0x20(%r15)
movq $-0x1, 0x30(%r15)
leaq 0xa6c6(%rip), %rax      # 0x14a0c
jmp 0xa3a0
leaq 0xa5ac(%rip), %rax      # 0x148fb
movq %rax, 0x10(%r15)
movq $0x0, 0x8(%r15)
jmp 0xa3c0
testl %eax, %eax
jne 0xa3c0
jmp 0xa413
movq 0x20(%rbp), %rax
movq 0x40(%rax), %rax
addq $0x18, %rax
movq %rax, 0x20(%r15)
movq 0x20(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, 0x30(%r15)
movq 0x20(%rbp), %rcx
movl 0x64(%rcx), %ecx
movl %ecx, 0x34(%r15)
testl %eax, %eax
leaq 0xa67e(%rip), %rax      # 0x14a13
leaq 0xa672(%rip), %rcx      # 0x14a0e
cmoveq %rcx, %rax
movq %rax, 0x18(%r15)
movq 0x20(%r15), %rsi
movl $0x3c, %edx
movq %r13, %rdi
callq 0x4b52
jmp 0xa3c0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %eax, 0x28(%r15)
incq %rbx
jmp 0xa2e0
leaq 0xa52c(%rip), %rax      # 0x148fb
movq %rax, 0x10(%r15)
movq %rax, 0x8(%r15)
leaq 0xa617(%rip), %rax      # 0x149f5
movq %rax, 0x18(%r15)
movl $0xffffffff, 0x28(%r15) # imm = 0xFFFFFFFF
movq $-0x1, 0x30(%r15)
leaq 0xa601(%rip), %rsi      # 0x149fa
movq %rsi, 0x20(%r15)
leaq 0x38(%r15), %rdi
movl $0x3c, %edx
callq 0x4b52
movl $0x0, 0x2c(%r15)
movq (%rsp), %rbx
movq %rbx, %rdi
movl $0x66, %esi
callq 0x30f0
testq %rax, %rax
movq %r14, %r13
je 0xa464
movq 0x10(%r13), %rax
testq %rbp, %rbp
je 0xa43f
movq %rbp, (%rax)
movl $0x6, %ecx
jmp 0xa441
xorl %ecx, %ecx
movl %ecx, 0x8(%rax)
movq 0x38(%r13), %rax
subq 0x10(%r13), %rax
cmpq $0x10, %rax
jg 0xa45f
movq %r13, %rdi
movl $0x1, %esi
callq 0x4d13
addq $0x10, 0x10(%r13)
movq %rbx, %rdi
movl $0x4c, %esi
callq 0x30f0
testq %rax, %rax
je 0xa508
testq %rbp, %rbp
je 0xa485
cmpb $0x0, 0xa(%rbp)
je 0xa48d
movq 0x10(%r13), %rax
xorl %ecx, %ecx
jmp 0xa4e5
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3fc8
movq %rax, %r14
movq 0x20(%rbp), %rax
cmpl $0x0, 0x54(%rax)
jle 0xa4d9
movq 0x28(%rax), %rbx
xorl %r15d, %r15d
movl $0x1, %r12d
movl (%rbx,%r15,4), %edx
movq %r13, %rdi
movq %r14, %rsi
callq 0x74cb
movl %r12d, (%rax)
movl %r12d, 0x8(%rax)
incq %r15
movq 0x20(%rbp), %rax
movslq 0x54(%rax), %rax
cmpq %rax, %r15
jl 0xa4b3
movq 0x10(%r13), %rax
movq %r14, (%rax)
movl $0x5, %ecx
movl %ecx, 0x8(%rax)
movq 0x38(%r13), %rax
subq 0x10(%r13), %rax
cmpq $0x10, %rax
jg 0xa503
movq %r13, %rdi
movl $0x1, %esi
callq 0x4d13
addq $0x10, 0x10(%r13)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq