// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/lparser.c
// Function: assignment
static void assignment (LexState *ls, struct LHS_assign *lh, int nvars) {
  expdesc e;
  check_condition(ls, vkisvar(lh->v.k), "syntax error");
  if (testnext(ls, ',')) {  /* assignment -> ',' suffixedexp assignment */
    struct LHS_assign nv;
    nv.prev = lh;
    suffixedexp(ls, &nv.v);
    if (nv.v.k != VINDEXED)
      check_conflict(ls, lh, &nv.v);
    checklimit(ls->fs, nvars + ls->L->nCcalls, LUAI_MAXCCALLS,
                    "C levels");
    assignment(ls, &nv, nvars+1);
  }
  else {  /* assignment -> '=' explist */
    int nexps;
    checknext(ls, '=');
    nexps = explist(ls, &e);
    if (nexps != nvars) {
      adjust_assign(ls, nvars, nexps, &e);
      if (nexps > nvars)
        ls->fs->freereg -= nexps - nvars;  /* remove extra values */
    }
    else {
      luaK_setoneret(ls->fs, &e);  /* close last expression */
      luaK_storevar(ls->fs, &lh->v, &e);
      return;  /* avoid default */
    }
  }
  init_exp(&e, VNONRELOC, ls->fs->freereg-1);  /* default assignment */
  luaK_storevar(ls->fs, &lh->v, &e);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movl 0x8(%rsi), %eax
addl $-0x8, %eax
cmpl $0x3, %eax
jae 0xea7d
movl %edx, %ebp
movq %rsi, %r15
leaq 0x8(%rsi), %r14
cmpl $0x2c, 0x10(%rbx)
jne 0xe9e8
movq %rbx, %rdi
callq 0x16f0a
leaq 0x8(%rsp), %r12
movq %r15, -0x8(%r12)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xdcb1
movl (%r12), %eax
cmpl $0xa, %eax
je 0xe9bf
testq %r15, %r15
je 0xe9bf
movq 0x30(%rbx), %r12
movb 0x3c(%r12), %cl
movzbl %cl, %edx
xorl %esi, %esi
cmpl $0xa, 0x8(%r15)
jne 0xe98c
movzbl 0x13(%r15), %edi
cmpl %edi, %eax
jne 0xe972
movzbl 0x12(%r15), %edi
cmpl %edi, 0x10(%rsp)
jne 0xe972
movb $0x8, 0x13(%r15)
movb %cl, 0x12(%r15)
movl $0x1, %esi
cmpl $0x8, %eax
jne 0xe98c
movswl 0x10(%r15), %edi
cmpl %edi, 0x10(%rsp)
jne 0xe98c
movw %dx, 0x10(%r15)
movl $0x1, %esi
movq (%r15), %r15
testq %r15, %r15
jne 0xe949
testl %esi, %esi
je 0xe9bf
xorl %ecx, %ecx
cmpl $0x8, %eax
setne %cl
leal (%rcx,%rcx,4), %esi
movl 0x10(%rsp), %ecx
movq %r12, %rdi
xorl %r8d, %r8d
callq 0x156de
movq %r12, %rdi
movl $0x1, %esi
callq 0x15a12
movq 0x38(%rbx), %rax
movzwl 0xc6(%rax), %eax
addl %ebp, %eax
cmpl $0xc9, %eax
jge 0xea8c
incl %ebp
movq %rsp, %rsi
movq %rbx, %rdi
movl %ebp, %edx
callq 0xe8d7
jmp 0xea4a
movq %rbx, %rdi
movl $0x3d, %esi
callq 0xd1f5
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xe3df
movl %eax, %r15d
cmpl %eax, %ebp
jne 0xea27
movq 0x30(%rbx), %rdi
movq %rsp, %r12
movq %r12, %rsi
callq 0x15c45
movq 0x30(%rbx), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x16000
jmp 0xea45
movq %rsp, %rcx
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0xe85b
movl %ebp, %eax
subl %r15d, %eax
jge 0xea45
movq 0x30(%rbx), %rcx
addb %al, 0x3c(%rcx)
cmpl %r15d, %ebp
je 0xea70
movq 0x30(%rbx), %rdi
movzbl 0x3c(%rdi), %eax
decl %eax
movq %rsp, %rdx
movq $-0x1, 0x10(%rdx)
movl $0x7, (%rdx)
movl %eax, 0x8(%rdx)
movq %r14, %rsi
callq 0x16000
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1317a(%rip), %rsi     # 0x21bfe
movq %rbx, %rdi
callq 0x16d86
movq 0x30(%rbx), %rdi
leaq 0x12f85(%rip), %rdx     # 0x21a1c
movl $0xc8, %esi
callq 0xc567
nopl (%rax)