// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: assignment
static void assignment(LexState*ls,struct LHS_assign*lh,int nvars){
expdesc e;
check_condition(ls,VLOCAL<=lh->v.k&&lh->v.k<=VINDEXED,
"syntax error");
if(testnext(ls,',')){
struct LHS_assign nv;
nv.prev=lh;
primaryexp(ls,&nv.v);
if(nv.v.k==VLOCAL)
check_conflict(ls,lh,&nv.v);
luaY_checklimit(ls->fs,nvars,200-ls->L->nCcalls,
"variables in assignment");
assignment(ls,&nv,nvars+1);
}
else{
int nexps;
checknext(ls,'=');
nexps=explist1(ls,&e);
if(nexps!=nvars){
adjust_assign(ls,nvars,nexps,&e);
if(nexps>nvars)
ls->fs->freereg-=nexps-nvars;
}
else{
luaK_setoneret(ls->fs,&e);
luaK_storevar(ls->fs,&lh->v,&e);
return;
}
}
init_exp(&e,VNONRELOC,ls->fs->freereg-1);
luaK_storevar(ls->fs,&lh->v,&e);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movl 0x8(%rsi), %eax
addl $-0x6, %eax
cmpl $0x4, %eax
jae 0x10417
movl %edx, %ebp
movq %rsi, %rbx
movq %r14, %rdi
movl $0x2c, %esi
callq 0xd1ff
testl %eax, %eax
je 0x10378
leaq 0x10(%rsp), %r15
movq %rbx, -0x8(%r15)
movq %r14, %rdi
movq %r15, %rsi
callq 0xf027
cmpl $0x6, (%r15)
jne 0x10316
movq 0x30(%r14), %r15
movl 0x3c(%r15), %eax
xorl %edx, %edx
movq %rbx, %rcx
cmpl $0x9, 0x8(%rcx)
jne 0x102da
movl 0x18(%rsp), %esi
cmpl %esi, 0x10(%rcx)
jne 0x102c3
movl %eax, 0x10(%rcx)
movl $0x1, %edx
movl 0x18(%rsp), %esi
cmpl %esi, 0x14(%rcx)
jne 0x102da
movl %eax, 0x14(%rcx)
movq (%rcx), %rcx
movl $0x1, %edx
testq %rcx, %rcx
jne 0x102a8
jmp 0x102ea
movq (%rcx), %rcx
testq %rcx, %rcx
jne 0x102a8
testl %edx, %edx
je 0x10316
movl 0x18(%rsp), %esi
movl 0x3c(%r15), %eax
shll $0x6, %eax
shll $0x17, %esi
orl %eax, %esi
movq 0x18(%r15), %rax
movl 0x8(%rax), %edx
movq %r15, %rdi
callq 0xe291
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8d1
incl 0x3c(%r15)
movq 0x38(%r14), %rax
movzwl 0x60(%rax), %eax
movl $0xc8, %esi
subl %eax, %esi
cmpl %ebp, %esi
jl 0x1042a
incl %ebp
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x1024b
movq 0x30(%r14), %rdi
movl 0x3c(%rdi), %eax
decl %eax
movq $-0x1, 0x18(%rsp)
movl $0xc, 0x8(%rsp)
movl %eax, 0x10(%rsp)
addq $0x8, %rbx
leaq 0x8(%rsp), %rdx
movq %rbx, %rsi
callq 0x10163
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movl $0x3d, %esi
callq 0xd49c
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0xfc7b
movq 0x30(%r14), %rdi
cmpl %eax, %ebp
jne 0x103c7
movl 0x8(%rsp), %eax
cmpl $0xe, %eax
je 0x103ed
cmpl $0xd, %eax
jne 0x1035c
movl $0xc, 0x8(%rsp)
movq (%rdi), %rax
movq 0x18(%rax), %rax
movslq 0x10(%rsp), %rcx
movl (%rax,%rcx,4), %eax
shrl $0x6, %eax
movzbl %al, %eax
jmp 0x10358
movl %eax, %r15d
leaq 0x8(%rsp), %rcx
movl %ebp, %esi
movl %eax, %edx
callq 0x100e4
subl %r15d, %ebp
jge 0x1033e
movq 0x30(%r14), %rax
addl %ebp, 0x3c(%rax)
jmp 0x1033e
movq (%rdi), %rax
movq 0x18(%rax), %rax
movslq 0x10(%rsp), %rcx
movl $0x7fffff, %edx         # imm = 0x7FFFFF
andl (%rax,%rcx,4), %edx
orl $0x1000000, %edx        # imm = 0x1000000
movl %edx, (%rax,%rcx,4)
movl $0xb, 0x8(%rsp)
jmp 0x1035c
movl 0x10(%r14), %edx
leaq 0x597f(%rip), %rsi      # 0x15da1
movq %r14, %rdi
callq 0xce64
movq 0x30(%r14), %rdi
leaq 0x5979(%rip), %rdx      # 0x15dae
callq 0xf45a