// File: /workspace/github_c_makefile_star2_O3/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 $0x28, %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 0xf8bb
cmpl $0x7b, %edx
je 0xf8a9
cmpl $0x28, %edx
jne 0xfa10
cmpl 0x8(%r15), %ebp
jne 0xfa1f
cmpl $0x11f, 0x20(%r15)      # imm = 0x11F
jne 0xf936
leaq 0x18(%r15), %rsi
movq %r15, %rdi
callq 0xc46b
movl %eax, 0x10(%r15)
jmp 0xf94c
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xea61
jmp 0xf98f
movl %ebp, 0xc(%rsp)
movq 0x18(%r15), %rax
leaq 0x10(%rsp), %r12
movq %rax, (%r12)
movl $0x4, %ebp
movl %ebp, 0x8(%r12)
movq %rbx, %rdi
movq %r12, %rsi
movq %r12, %rdx
callq 0xe6dd
movq $-0x1, 0x10(%r12)
movl %ebp, (%r12)
movl %eax, 0x8(%r12)
movl 0x4(%r15), %eax
movl 0x20(%r15), %ecx
movl %eax, 0x8(%r15)
cmpl $0x11f, %ecx            # imm = 0x11F
jne 0xf91c
leaq 0x18(%r15), %rsi
movq %r15, %rdi
callq 0xc46b
movl %eax, 0x10(%r15)
jmp 0xf930
addq $0x20, %r15
movups (%r15), %xmm0
movups %xmm0, (%r13)
movl $0x11f, (%r15)          # imm = 0x11F
movl 0xc(%rsp), %ebp
jmp 0xf98f
leaq 0x20(%r15), %rax
movups (%rax), %xmm0
movups %xmm0, (%r13)
movl $0x11f, (%rax)          # imm = 0x11F
movl (%r13), %eax
cmpl $0x29, %eax
jne 0xf95b
movl $0x0, 0x10(%rsp)
jmp 0xf97b
leaq 0x10(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0xfc7b
movq %rbx, %rdi
movq %r12, %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0xf56f
movq %r15, %rdi
movl $0x29, %esi
movl $0x28, %edx
movl %ebp, %ecx
callq 0xd286
movl 0x8(%r14), %r15d
movl 0x10(%rsp), %ecx
leal -0xd(%rcx), %edx
xorl %eax, %eax
cmpl $0x2, %edx
jb 0xf9bb
testl %ecx, %ecx
je 0xf9b2
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0xe1f0
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 0xe291
movq $-0x1, 0x10(%r14)
movl $0xd, (%r14)
movl %eax, 0x8(%r14)
movq (%rbx), %rax
movslq 0x30(%rbx), %rcx
movq 0x28(%rax), %rax
movl %ebp, -0x4(%rax,%rcx,4)
incl %r15d
movl %r15d, 0x3c(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x62c4(%rip), %rsi      # 0x15cdb
movq %r15, %rdi
callq 0xce64
leaq 0x6284(%rip), %rsi      # 0x15caa
movq %r15, %rdi
movl $0x28, %edx
callq 0xce64