// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: funcargs
static void funcargs(LexState*ls,expdesc*f){
FuncState*fs=ls->fs;
expdesc args;
int base,nparams;
int line=ls->linenumber;
switch(ls->t.token){
case'(':{
if(line!=ls->lastline)
luaX_syntaxerror(ls,"ambiguous syntax (function call x new statement)");
luaX_next(ls);
if(ls->t.token==')')
args.k=VVOID;
else{
explist1(ls,&args);
luaK_setmultret(fs,&args);
}
check_match(ls,')','(',line);
break;
}
case'{':{
constructor(ls,&args);
break;
}
case TK_STRING:{
codestring(ls,&args,ls->t.seminfo.ts);
luaX_next(ls);
break;
}
default:{
luaX_syntaxerror(ls,"function arguments expected");
return;
}
}
base=f->u.s.info;
if(hasmultret(args.k))
nparams=(-1);
else{
if(args.k!=VVOID)
luaK_exp2nextreg(fs,&args);
nparams=fs->freereg-(base+1);
}
init_exp(f,VCALL,luaK_codeABC(fs,OP_CALL,base,nparams+1,2));
luaK_fixline(fs,line);
fs->freereg=base+1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %r15
movq 0x30(%rdi), %rbx
movl 0x4(%rdi), %ebp
movl 0x10(%rdi), %edx
leaq 0x10(%rdi), %r13
cmpl $0x11e, %edx            # imm = 0x11E
je 0xed55
cmpl $0x7b, %edx
je 0xed45
cmpl $0x28, %edx
jne 0xee9d
cmpl 0x8(%r15), %ebp
jne 0xeea6
movl %ebp, 0x8(%r15)
cmpl $0x11f, 0x20(%r15)      # imm = 0x11F
jne 0xedcb
leaq 0x18(%r15), %rsi
movq %r15, %rdi
callq 0xbabb
movl %eax, 0x10(%r15)
jmp 0xeddd
movq %rsp, %rsi
movq %r15, %rdi
callq 0xdf73
jmp 0xee1f
movq 0x18(%r15), %rax
movq %rsp, %r12
movq %rax, (%r12)
movl $0x4, %eax
movl %eax, 0x8(%r12)
movq %rbx, %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0xdc8d
movq $-0x1, 0x10(%r12)
movl $0x4, %ecx
movl %ecx, (%r12)
movl %eax, 0x8(%r12)
movl 0x4(%r15), %eax
movl 0x20(%r15), %ecx
movl %eax, 0x8(%r15)
cmpl $0x11f, %ecx            # imm = 0x11F
jne 0xedb5
leaq 0x18(%r15), %rsi
movq %r15, %rdi
callq 0xbabb
movl %eax, 0x10(%r15)
jmp 0xee1f
addq $0x20, %r15
movups (%r15), %xmm0
movups %xmm0, (%r13)
movl $0x11f, (%r15)          # imm = 0x11F
jmp 0xee1f
leaq 0x20(%r15), %rax
movups (%rax), %xmm0
movups %xmm0, (%r13)
movl $0x11f, (%rax)          # imm = 0x11F
cmpl $0x29, (%r13)
jne 0xeded
movl $0x0, (%rsp)
jmp 0xee0b
movq %rsp, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xf0ee
movq %rbx, %rdi
movq %r12, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xea3a
movq %r15, %rdi
movl $0x29, %esi
movl $0x28, %edx
movl %ebp, %ecx
callq 0xc8df
movl 0x8(%r14), %r15d
movl (%rsp), %ecx
leal -0xd(%rcx), %edx
xorl %eax, %eax
cmpl $0x2, %edx
jb 0xee48
testl %ecx, %ecx
je 0xee3f
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xd79c
movl 0x3c(%rbx), %eax
subl %r15d, %eax
shll $0x17, %eax
movl %r15d, %esi
shll $0x6, %esi
orl %eax, %esi
orl $0x801c, %esi           # imm = 0x801C
movq 0x18(%rbx), %rax
movl 0x8(%rax), %edx
movq %rbx, %rdi
callq 0xd83d
movq $-0x1, 0x10(%r14)
movl $0xd, (%r14)
movl %eax, 0x8(%r14)
movq (%rbx), %rax
movq 0x28(%rax), %rax
movslq 0x30(%rbx), %rcx
movl %ebp, -0x4(%rax,%rcx,4)
incl %r15d
movl %r15d, 0x3c(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5e0f(%rip), %rsi      # 0x14cb3
jmp 0xeead
leaq 0x5dd5(%rip), %rsi      # 0x14c82
movq %r15, %rdi
callq 0xc4a9