// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/src/lparser.c
// Function: primaryexp
static void primaryexp (LexState *ls, expdesc *v) {
  /* primaryexp ->
        prefixexp { `.' NAME | `[' exp `]' | `:' NAME funcargs | funcargs } */
  FuncState *fs = ls->fs;
  prefixexp(ls, v);
  for (;;) {
    switch (ls->t.token) {
      case '.': {  /* field */
        field(ls, v);
        break;
      }
      case '[': {  /* `[' exp1 `]' */
        expdesc key;
        luaK_exp2anyreg(fs, v);
        yindex(ls, &key);
        luaK_indexed(fs, v, &key);
        break;
      }
      case ':': {  /* `:' NAME funcargs */
        expdesc key;
        luaX_next(ls);
        checkname(ls, &key);
        luaK_self(fs, v, &key);
        funcargs(ls, v);
        break;
      }
      case '(': case TK_STRING: case '{': {  /* funcargs */
        luaK_exp2nextreg(fs, v);
        funcargs(ls, v);
        break;
      }
      default: return;
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x30(%rdi), %r15
leaq 0x10(%rdi), %r12
movl 0x10(%rdi), %edx
cmpl $0x11d, %edx            # imm = 0x11D
je 0x6448c
cmpl $0x28, %edx
jne 0x64695
movl 0x4(%rbx), %ebp
movl 0x20(%rbx), %eax
movl %ebp, 0x8(%rbx)
cmpl $0x11f, %eax            # imm = 0x11F
jne 0x64499
leaq 0x18(%rbx), %rsi
movq %rbx, %rdi
callq 0x617cb
movl %eax, 0x10(%rbx)
jmp 0x644ab
movq %rbx, %rdi
movq %r14, %rsi
callq 0x64eb2
jmp 0x644d8
leaq 0x20(%rbx), %rax
movups (%rax), %xmm0
movups %xmm0, (%r12)
movl $0x11f, (%rax)          # imm = 0x11F
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x629ed
movq %rbx, %rdi
movl $0x29, %esi
movl $0x28, %edx
movl %ebp, %ecx
callq 0x62717
movq 0x30(%rbx), %rdi
movq %r14, %rsi
callq 0x63409
leaq 0x20(%rbx), %rax
movq %rax, 0x20(%rsp)
leaq 0x18(%rbx), %rax
movq %rax, 0x18(%rsp)
movl (%r12), %eax
cmpl $0x5a, %eax
jg 0x6452d
cmpl $0x28, %eax
je 0x64542
cmpl $0x2e, %eax
je 0x64586
cmpl $0x3a, %eax
jne 0x64686
movl 0x4(%rbx), %eax
movl 0x20(%rbx), %ecx
movl %eax, 0x8(%rbx)
cmpl $0x11f, %ecx            # imm = 0x11F
jne 0x64596
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
callq 0x617cb
movl %eax, 0x10(%rbx)
jmp 0x645a9
cmpl $0x5b, %eax
je 0x64552
cmpl $0x7b, %eax
je 0x64542
cmpl $0x11e, %eax            # imm = 0x11E
jne 0x64686
movq %r15, %rdi
movq %r14, %rsi
callq 0x635d4
jmp 0x64676
movq %r15, %rdi
movq %r14, %rsi
callq 0x631f7
movq %rbx, %rdi
movq %rsp, %r13
movq %r13, %rsi
callq 0x648bf
movq %r15, %rdi
movq %r13, %rsi
callq 0x63cee
movl %eax, 0xc(%r14)
movl $0x9, (%r14)
jmp 0x644ea
movq %rbx, %rdi
movq %r14, %rsi
callq 0x64c2f
jmp 0x644ea
movq 0x20(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, (%r12)
movl $0x11f, (%rax)          # imm = 0x11F
movq %rbx, %rdi
callq 0x6492c
movq 0x30(%rbx), %rdi
movq %rax, (%rsp)
movl $0x4, %ebp
movl %ebp, 0x8(%rsp)
movq %rsp, %rdx
movq %rdx, %rsi
callq 0x63ac5
movq $-0x1, 0x10(%rsp)
movl %ebp, (%rsp)
movl %eax, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x631f7
cmpl $0xc, (%r14)
jne 0x64605
movl 0x8(%r14), %eax
btl $0x8, %eax
jb 0x64605
movzbl 0x4a(%r15), %ecx
cmpl %ecx, %eax
jl 0x64605
decl 0x3c(%r15)
movl 0x3c(%r15), %r13d
movq %r15, %rdi
movl $0x2, %esi
callq 0x63cbf
addl $0x2, 0x3c(%r15)
movl 0x8(%r14), %ebp
movq %r15, %rdi
movq %rsp, %rsi
callq 0x63cee
movl %r13d, %ecx
shll $0x6, %ecx
shll $0x17, %ebp
orl %ecx, %ebp
shll $0xe, %eax
orl %eax, %ebp
orl $0xb, %ebp
movq 0x18(%r15), %rax
movl 0x8(%rax), %edx
movq %r15, %rdi
movl %ebp, %esi
callq 0x63675
cmpl $0xc, (%rsp)
jne 0x6466b
movl 0x8(%rsp), %eax
btl $0x8, %eax
jb 0x6466b
movzbl 0x4a(%r15), %ecx
cmpl %ecx, %eax
jl 0x6466b
decl 0x3c(%r15)
movl %r13d, 0x8(%r14)
movl $0xc, (%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x64cd9
jmp 0x644ea
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x89b42(%rip), %rsi     # 0xee1de
movq %rbx, %rdi
callq 0x62217