// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: primaryexp
static void primaryexp(LexState*ls,expdesc*v){
FuncState*fs=ls->fs;
prefixexp(ls,v);
for(;;){
switch(ls->t.token){
case'.':{
field(ls,v);
break;
}
case'[':{
expdesc key;
luaK_exp2anyreg(fs,v);
yindex(ls,&key);
luaK_indexed(fs,v,&key);
break;
}
case':':{
expdesc key;
luaX_next(ls);
checkname(ls,&key);
luaK_self(fs,v,&key);
funcargs(ls,v);
break;
}
case'(':case TK_STRING:case'{':{
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 0xf078
cmpl $0x28, %edx
jne 0xf281
movl 0x4(%rbx), %ebp
movl 0x20(%rbx), %eax
movl %ebp, 0x8(%rbx)
cmpl $0x11f, %eax            # imm = 0x11F
jne 0xf085
leaq 0x18(%rbx), %rsi
movq %rbx, %rdi
callq 0xc46b
movl %eax, 0x10(%rbx)
jmp 0xf097
movq %rbx, %rdi
movq %r14, %rsi
callq 0xfa33
jmp 0xf0c4
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 0xd5a1
movq %rbx, %rdi
movl $0x29, %esi
movl $0x28, %edx
movl %ebp, %ecx
callq 0xd286
movq 0x30(%rbx), %rdi
movq %r14, %rsi
callq 0xe021
leaq 0x20(%rbx), %rax
movq %rax, 0x20(%rsp)
leaq 0x18(%rbx), %rax
movq %rax, 0x18(%rsp)
movl (%r12), %eax
cmpl $0x5a, %eax
jg 0xf119
cmpl $0x28, %eax
je 0xf12e
cmpl $0x2e, %eax
je 0xf172
cmpl $0x3a, %eax
jne 0xf272
movl 0x4(%rbx), %eax
movl 0x20(%rbx), %ecx
movl %eax, 0x8(%rbx)
cmpl $0x11f, %ecx            # imm = 0x11F
jne 0xf182
movq %rbx, %rdi
movq 0x18(%rsp), %rsi
callq 0xc46b
movl %eax, 0x10(%rbx)
jmp 0xf195
cmpl $0x5b, %eax
je 0xf13e
cmpl $0x7b, %eax
je 0xf12e
cmpl $0x11e, %eax            # imm = 0x11E
jne 0xf272
movq %r15, %rdi
movq %r14, %rsi
callq 0xe1f0
jmp 0xf262
movq %r15, %rdi
movq %r14, %rsi
callq 0xde0f
movq %rbx, %rdi
movq %rsp, %r13
movq %r13, %rsi
callq 0xf4a2
movq %r15, %rdi
movq %r13, %rsi
callq 0xe900
movl %eax, 0xc(%r14)
movl $0x9, (%r14)
jmp 0xf0d6
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf79a
jmp 0xf0d6
movq 0x20(%rsp), %rax
movups (%rax), %xmm0
movups %xmm0, (%r12)
movl $0x11f, (%rax)          # imm = 0x11F
movq %rbx, %rdi
callq 0xf50f
movq 0x30(%rbx), %rdi
movq %rax, (%rsp)
movl $0x4, %ebp
movl %ebp, 0x8(%rsp)
movq %rsp, %rdx
movq %rdx, %rsi
callq 0xe6dd
movq $-0x1, 0x10(%rsp)
movl %ebp, (%rsp)
movl %eax, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0xde0f
cmpl $0xc, (%r14)
jne 0xf1f1
movl 0x8(%r14), %eax
btl $0x8, %eax
jb 0xf1f1
movzbl 0x4a(%r15), %ecx
cmpl %ecx, %eax
jl 0xf1f1
decl 0x3c(%r15)
movl 0x3c(%r15), %r13d
movq %r15, %rdi
movl $0x2, %esi
callq 0xe8d1
addl $0x2, 0x3c(%r15)
movl 0x8(%r14), %ebp
movq %r15, %rdi
movq %rsp, %rsi
callq 0xe900
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 0xe291
cmpl $0xc, (%rsp)
jne 0xf257
movl 0x8(%rsp), %eax
btl $0x8, %eax
jb 0xf257
movzbl 0x4a(%r15), %ecx
cmpl %ecx, %eax
jl 0xf257
decl 0x3c(%r15)
movl %r13d, 0x8(%r14)
movl $0xc, (%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xf844
jmp 0xf0d6
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6a07(%rip), %rsi      # 0x15c8f
movq %rbx, %rdi
callq 0xce64