// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/deps/lua/src/lparser.c
// Function: constructor
static void constructor (LexState *ls, expdesc *t) {
  /* constructor -> ?? */
  FuncState *fs = ls->fs;
  int line = ls->linenumber;
  int pc = luaK_codeABC(fs, OP_NEWTABLE, 0, 0, 0);
  struct ConsControl cc;
  cc.na = cc.nh = cc.tostore = 0;
  cc.t = t;
  init_exp(t, VRELOCABLE, pc);
  init_exp(&cc.v, VVOID, 0);  /* no value (yet) */
  luaK_exp2nextreg(ls->fs, t);  /* fix it at stack top (for gc) */
  checknext(ls, '{');
  do {
    lua_assert(cc.v.k == VVOID || cc.tostore > 0);
    if (ls->t.token == '}') break;
    closelistfield(fs, &cc);
    switch(ls->t.token) {
      case TK_NAME: {  /* may be listfields or recfields */
        luaX_lookahead(ls);
        if (ls->lookahead.token != '=')  /* expression? */
          listfield(ls, &cc);
        else
          recfield(ls, &cc);
        break;
      }
      case '[': {  /* constructor_item -> recfield */
        recfield(ls, &cc);
        break;
      }
      default: {  /* constructor_part -> listfield */
        listfield(ls, &cc);
        break;
      }
    }
  } while (testnext(ls, ',') || testnext(ls, ';'));
  check_match(ls, '}', '{', line);
  lastlistfield(fs, &cc);
  SETARG_B(fs->f->code[pc], luaO_int2fb(cc.na)); /* set initial array size */
  SETARG_C(fs->f->code[pc], luaO_int2fb(cc.nh));  /* set initial table size */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %r15
movq 0x30(%rdi), %rbx
movl 0x4(%rdi), %eax
movl %eax, (%rsp)
pushq $0xa
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x10460
leaq 0x8(%rsp), %r12
andl $0x0, 0x28(%r12)
andq $0x0, 0x20(%r12)
movq %r14, 0x18(%r12)
orq $-0x1, 0x10(%r14)
movl $0xb, (%r14)
movl %eax, 0x4(%rsp)
movl %eax, 0x8(%r14)
orq $-0x1, 0x10(%r12)
andl $0x0, (%r12)
andl $0x0, 0x8(%r12)
movq 0x30(%r15), %rdi
movq %r14, %rsi
callq 0x1092f
pushq $0x7b
popq %rsi
movq %r15, %rdi
callq 0xac0b
pushq $0x2c
popq %r13
pushq $0x3b
popq %r14
pushq $0x32
popq %rbp
movl 0x10(%r15), %eax
cmpl $0x7d, %eax
je 0xb021
cmpl $0x0, 0x8(%rsp)
je 0xafc8
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1092f
andl $0x0, 0x8(%rsp)
cmpl $0x32, 0x30(%rsp)
jne 0xafc4
movq 0x20(%rsp), %rax
movl 0x8(%rax), %esi
movl 0x2c(%rsp), %edx
movq %rbx, %rdi
movl %ebp, %ecx
callq 0x113a5
andl $0x0, 0x30(%rsp)
movl 0x10(%r15), %eax
cmpl $0x5b, %eax
je 0xafe3
cmpl $0x11d, %eax            # imm = 0x11D
jne 0xaff0
movq %r15, %rdi
callq 0x11ff3
cmpl $0x3d, 0x20(%r15)
jne 0xaff0
movq %r15, %rdi
movq %r12, %rsi
callq 0xb4da
jmp 0xaffb
movq %r15, %rdi
movq %r12, %rsi
callq 0xb499
movq %r15, %rdi
movl %r13d, %esi
callq 0xaa8f
testl %eax, %eax
jne 0xaf7e
movq %r15, %rdi
movl %r14d, %esi
callq 0xaa8f
testl %eax, %eax
jne 0xaf7e
pushq $0x7d
popq %rsi
pushq $0x7b
popq %rdx
movq %r15, %rdi
movl (%rsp), %ecx
callq 0xaae0
movl 0x30(%rsp), %ecx
testl %ecx, %ecx
je 0xb0a2
movl 0x8(%rsp), %eax
leal -0xd(%rax), %edx
cmpl $0x2, %edx
jae 0xb076
leaq 0x8(%rsp), %r14
pushq $-0x1
popq %rbp
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x107b6
movq 0x18(%r14), %rax
movl 0x8(%rax), %esi
movl 0x24(%r14), %edx
movq %rbx, %rdi
movl %ebp, %ecx
callq 0x113a5
decl 0x24(%r14)
jmp 0xb0a2
testl %eax, %eax
je 0xb08e
leaq 0x8(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1092f
movl 0x28(%r14), %ecx
movq 0x20(%rsp), %rax
movl 0x8(%rax), %esi
movl 0x2c(%rsp), %edx
movq %rbx, %rdi
callq 0x113a5
movq (%rbx), %rax
movq 0x18(%rax), %rax
movslq 0x4(%rsp), %r14
movl $0x7fffff, %r15d        # imm = 0x7FFFFF
andl (%rax,%r14,4), %r15d
movl 0x2c(%rsp), %edi
callq 0x9804
movl %eax, %ebp
shll $0x17, %ebp
orl %r15d, %ebp
movq (%rbx), %rax
movq 0x18(%rax), %rax
movl %ebp, (%rax,%r14,4)
andl $0xff803fff, %ebp       # imm = 0xFF803FFF
movl 0x28(%rsp), %edi
callq 0x9804
shll $0xe, %eax
andl $0x7fc000, %eax         # imm = 0x7FC000
orl %ebp, %eax
movq (%rbx), %rcx
movq 0x18(%rcx), %rcx
movl %eax, (%rcx,%r14,4)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq