// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaD_precall
static int luaD_precall(lua_State*L,StkId func,int nresults){
LClosure*cl;
ptrdiff_t funcr;
if(!ttisfunction(func))
func=tryfuncTM(L,func);
funcr=savestack(L,func);
cl=&clvalue(func)->l;
L->ci->savedpc=L->savedpc;
if(!cl->isC){
CallInfo*ci;
StkId st,base;
Proto*p=cl->p;
luaD_checkstack(L,p->maxstacksize);
func=restorestack(L,funcr);
if(!p->is_vararg){
base=func+1;
if(L->top>base+p->numparams)
L->top=base+p->numparams;
}
else{
int nargs=cast_int(L->top-func)-1;
base=adjust_varargs(L,p,nargs);
func=restorestack(L,funcr);
}
ci=inc_ci(L);
ci->func=func;
L->base=ci->base=base;
ci->top=L->base+p->maxstacksize;
L->savedpc=p->code;
ci->tailcalls=0;
ci->nresults=nresults;
for(st=L->top;st<ci->top;st++)
setnilvalue(st);
L->top=ci->top;
return 0;
}
else{
CallInfo*ci;
int n;
luaD_checkstack(L,20);
ci=inc_ci(L);
ci->func=restorestack(L,funcr);
L->base=ci->base=ci->func+1;
ci->top=L->top+20;
ci->nresults=nresults;
n=(*curr_func(L)->c.f)(L);
if(n<0)
return 2;
else{
luaD_poscall(L,L->top-n);
return 1;
}
}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movslq 0x8(%rsi), %r12
cmpq $0x6, %r12
jne 0x67d1
movq (%r14), %rdx
jmp 0x6861
movq %rbx, %rdi
movq %r14, %rsi
movl $0x10, %edx
callq 0x5288
cmpl $0x6, 0x8(%rax)
jne 0x6b9c
movq %rax, %r15
movq 0x40(%rbx), %r12
movq 0x10(%rbx), %rax
cmpq %r14, %rax
jbe 0x6818
movq -0x10(%rax), %rcx
movq %rcx, (%rax)
movl -0x8(%rax), %ecx
movl %ecx, 0x8(%rax)
leaq -0x10(%rax), %rcx
movq %rcx, %rax
cmpq %r14, %rcx
ja 0x67fb
movq 0x10(%rbx), %rax
movq 0x38(%rbx), %rcx
subq %rax, %rcx
cmpq $0x10, %rcx
jg 0x683f
movl 0x58(%rbx), %eax
leal 0x1(%rax), %ecx
leal (%rax,%rax), %esi
testl %eax, %eax
cmovlel %ecx, %esi
movq %rbx, %rdi
callq 0x50e7
movq 0x10(%rbx), %rax
subq %r12, %r14
addq $0x10, %rax
movq %rax, 0x10(%rbx)
movq 0x40(%rbx), %rax
movq (%r15), %rdx
movq %rdx, (%rax,%r14)
movl 0x8(%r15), %ecx
movl %ecx, 0x8(%rax,%r14)
addq %rax, %r14
movq 0x40(%rbx), %rax
subq %rax, %r14
movq 0x28(%rbx), %rcx
movq 0x30(%rbx), %rsi
movq %rsi, 0x18(%rcx)
cmpb $0x0, 0xa(%rdx)
je 0x68b8
movq 0x38(%rbx), %rax
subq 0x10(%rbx), %rax
cmpq $0x140, %rax            # imm = 0x140
jg 0x68a5
movl 0x58(%rbx), %eax
leal 0x14(%rax), %ecx
leal (%rax,%rax), %esi
cmpl $0x14, %eax
cmovll %ecx, %esi
movq %rbx, %rdi
callq 0x50e7
movq 0x28(%rbx), %rcx
cmpq 0x48(%rbx), %rcx
je 0x691e
addq $0x28, %rcx
movq %rcx, 0x28(%rbx)
movq %rcx, %rax
jmp 0x692a
movq 0x20(%rdx), %r15
movq 0x38(%rbx), %rdx
subq 0x10(%rbx), %rdx
movzbl 0x73(%r15), %ecx
movl %ecx, %esi
shll $0x4, %esi
cmpq %rsi, %rdx
jg 0x68ed
movl 0x58(%rbx), %eax
leal (%rax,%rcx), %edx
leal (%rax,%rax), %esi
cmpl %ecx, %eax
cmovll %edx, %esi
movq %rbx, %rdi
callq 0x50e7
movq 0x40(%rbx), %rax
leaq (%rax,%r14), %r13
cmpb $0x0, 0x72(%r15)
je 0x698e
movq 0x10(%rbx), %r12
movq %r12, %rdx
subq %r13, %rdx
shrq $0x4, %rdx
movzbl 0x71(%r15), %ecx
cmpl %ecx, %edx
jle 0x69ad
decl %edx
jmp 0x69ca
movq %rbx, %rdi
callq 0x70c2
movq 0x28(%rbx), %rcx
movq 0x40(%rbx), %rdx
leaq (%rdx,%r14), %rsi
movq %rsi, 0x8(%rax)
addq %r14, %rdx
addq $0x10, %rdx
movq %rdx, (%rax)
movq %rdx, 0x18(%rbx)
movl $0x140, %edx            # imm = 0x140
addq 0x10(%rbx), %rdx
movq %rdx, 0x10(%rax)
movl %ebp, 0x20(%rax)
movq 0x8(%rcx), %rax
movq (%rax), %rax
movq %rbx, %rdi
callq *0x20(%rax)
testl %eax, %eax
js 0x6984
movq 0x10(%rbx), %rsi
movl %eax, %eax
shlq $0x4, %rax
subq %rax, %rsi
movq %rbx, %rdi
callq 0x7110
movl $0x1, %eax
jmp 0x6b8d
movl $0x2, %eax
jmp 0x6b8d
leaq 0x10(%r13), %r12
movzbl 0x71(%r15), %eax
shll $0x4, %eax
addq %r13, %rax
addq $0x10, %rax
cmpq %rax, 0x10(%rbx)
jbe 0x6a17
movq %rax, 0x10(%rbx)
jmp 0x6a17
movl %ecx, %esi
subl %edx, %esi
incl %esi
movl $0x0, 0x8(%r12)
addq $0x10, %r12
decl %esi
jne 0x69b3
movq %r12, 0x10(%rbx)
movl %ecx, %edx
testl %ecx, %ecx
je 0x6a11
movl %edx, %edx
shll $0x4, %ecx
shlq $0x4, %rdx
movq %r12, %rax
subq %rdx, %rax
addq $0x8, %rax
xorl %edx, %edx
movq 0x10(%rbx), %rsi
leaq 0x10(%rsi), %rdi
movq %rdi, 0x10(%rbx)
movq -0x8(%rax,%rdx), %rdi
movq %rdi, (%rsi)
movl (%rax,%rdx), %edi
movl %edi, 0x8(%rsi)
movl $0x0, (%rax,%rdx)
addq $0x10, %rdx
cmpq %rdx, %rcx
jne 0x69e3
movq 0x40(%rbx), %rax
addq %r14, %rax
movq %rax, %r13
movq 0x28(%rbx), %rax
cmpq 0x48(%rbx), %rax
je 0x6a2b
addq $0x28, %rax
movq %rax, 0x28(%rbx)
jmp 0x6a33
movq %rbx, %rdi
callq 0x70c2
movq %r13, 0x8(%rax)
movq %r12, (%rax)
movq %r12, 0x18(%rbx)
movzbl 0x73(%r15), %esi
movl %esi, %ecx
shll $0x4, %ecx
addq %r12, %rcx
movq %rcx, 0x10(%rax)
movq 0x18(%r15), %rdx
movq %rdx, 0x30(%rbx)
movl $0x0, 0x24(%rax)
movl %ebp, 0x20(%rax)
movq 0x10(%rbx), %rax
cmpq %rcx, %rax
jae 0x6b87
shll $0x4, %esi
addq %r12, %rsi
leaq 0x10(%rax), %rdx
cmpq %rdx, %rsi
cmovbeq %rdx, %rsi
movq %rax, %rdx
notq %rdx
addq %rsi, %rdx
movq %rdx, %xmm0
shrq $0x4, %rdx
addq $0x4, %rdx
andq $-0x4, %rdx
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
psrlq $0x4, %xmm0
addq $0x38, %rax
xorl %esi, %esi
movdqa 0xe55f(%rip), %xmm1     # 0x15010
movdqa 0xe567(%rip), %xmm2     # 0x15020
movdqa 0xe56f(%rip), %xmm3     # 0x15030
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movq %rsi, %xmm5
pshufd $0x44, %xmm5, %xmm5     # xmm5 = xmm5[0,1,0,1]
movdqa %xmm5, %xmm6
por %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %edi
notl %edi
testb $0x1, %dil
je 0x6b13
movl $0x0, -0x30(%rax)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edi
testb $0x1, %dil
je 0x6b29
movl $0x0, -0x20(%rax)
por %xmm1, %xmm5
pxor %xmm3, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
pxor %xmm4, %xmm5
pextrw $0x0, %xmm5, %edi
testb $0x1, %dil
je 0x6b65
movl $0x0, -0x10(%rax)
pextrw $0x4, %xmm5, %edi
testb $0x1, %dil
je 0x6b76
movl $0x0, (%rax)
addq $0x4, %rsi
addq $0x40, %rax
cmpq %rsi, %rdx
jne 0x6ac9
movq %rcx, 0x10(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x14cbd(%rip), %rax     # 0x1b860
movq (%rax,%r12,8), %rcx
leaq 0xeb12(%rip), %rsi      # 0x156c0
leaq 0xecc6(%rip), %rdx      # 0x1587b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x47e0