// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lparser.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, ',')) {  /* assignment -> `,' primaryexp assignment */
    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, LUAI_MAXCCALLS - ls->L->nCcalls,
                    "variables in assignment");
    assignment(ls, &nv, nvars+1);
  }
  else {  /* assignment -> `=' explist1 */
    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;  /* 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 $-0x6, %eax
cmpl $0x4, %eax
jae 0x65861
movl %edx, %ebp
movq %rsi, %r15
leaq 0x8(%rsi), %r14
movq %rbx, %rdi
movl $0x2c, %esi
callq 0x62690
testl %eax, %eax
je 0x65789
leaq 0x8(%rsp), %r12
movq %r15, -0x8(%r12)
movq %rbx, %rdi
movq %r12, %rsi
callq 0x6443b
cmpl $0x6, (%r12)
jne 0x6575e
testq %r15, %r15
je 0x6575e
movq 0x30(%rbx), %r12
movl 0x3c(%r12), %eax
xorl %ecx, %ecx
cmpl $0x9, 0x8(%r15)
jne 0x6571f
movl 0x10(%r15), %edx
cmpl 0x10(%rsp), %edx
jne 0x6570c
movl %eax, 0x10(%r15)
movl $0x1, %ecx
movl 0x14(%r15), %edx
cmpl 0x10(%rsp), %edx
jne 0x6571f
movl %eax, 0x14(%r15)
movl $0x1, %ecx
movq (%r15), %r15
testq %r15, %r15
jne 0x656f2
testl %ecx, %ecx
je 0x6575e
movl 0x3c(%r12), %eax
movl 0x10(%rsp), %esi
shll $0x6, %eax
shll $0x17, %esi
orl %eax, %esi
movq 0x18(%r12), %rax
movl 0x8(%rax), %edx
movq %r12, %rdi
callq 0x63675
movq %r12, %rdi
movl $0x1, %esi
callq 0x63cbf
incl 0x3c(%r12)
movq 0x38(%rbx), %rax
movzwl 0x60(%rax), %eax
movl $0xc8, %esi
subl %eax, %esi
cmpl %ebp, %esi
jl 0x65873
incl %ebp
movq %rsp, %rsi
movq %rbx, %rdi
movl %ebp, %edx
callq 0x6568a
jmp 0x6582f
movq %rbx, %rdi
movl $0x3d, %esi
callq 0x62931
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x650eb
movl %eax, %r15d
cmpl %eax, %ebp
jne 0x657db
movq 0x30(%rbx), %rdi
movl (%rsp), %eax
cmpl $0xe, %eax
je 0x657fb
cmpl $0xd, %eax
jne 0x6581f
movl $0xc, (%rsp)
movq (%rdi), %rax
movq 0x18(%rax), %rax
movslq 0x8(%rsp), %rcx
movl (%rax,%rcx,4), %eax
shrl $0x6, %eax
movzbl %al, %eax
movl %eax, 0x8(%rsp)
jmp 0x6581f
movq %rsp, %rcx
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x65522
movl %ebp, %eax
subl %r15d, %eax
jge 0x6582a
movq 0x30(%rbx), %rcx
addl %eax, 0x3c(%rcx)
jmp 0x6582a
movq (%rdi), %rax
movq 0x18(%rax), %rax
movslq 0x8(%rsp), %rcx
movl $0x7fffff, %edx         # imm = 0x7FFFFF
andl (%rax,%rcx,4), %edx
orl $0x1000000, %edx        # imm = 0x1000000
movl %edx, (%rax,%rcx,4)
movl $0xb, (%rsp)
movq %rsp, %rdx
movq %r14, %rsi
callq 0x655a2
cmpl %r15d, %ebp
je 0x65854
movq 0x30(%rbx), %rdi
movl 0x3c(%rdi), %eax
decl %eax
movq %rsp, %rdx
movq $-0x1, 0x10(%rdx)
movl $0xc, (%rdx)
movl %eax, 0x8(%rdx)
movq %r14, %rsi
callq 0x655a2
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl 0x10(%rbx), %edx
leaq 0x88a85(%rip), %rsi     # 0xee2f0
movq %rbx, %rdi
callq 0x62217
movq 0x30(%rbx), %rdi
leaq 0x88a7f(%rip), %rdx     # 0xee2fd
callq 0x64877