// File: /workspace/github_c_makefile_star2_O1/generot[P]VM-0/src/lang/vc.cc
// Function: decl(lexer&)
void decl(lexer& lx) {
    string ident = lx.accept();

    if(ident != "var") {
        lx.unaccept();
        return;
    }

    while(ident != ";") {
        ident = lx.accept();
        symbol_table[ident] = { SYM_VARIABLE, ident, var_num };

        var_num++;
        if(EXPECT(",") || EXPECT(";"))
            ident = lx.accept();
        else
            ISSUE_ERROR("Expected separator or end of statement, got \"%s\" instead.", 
                lx.accept().c_str());
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdi, %r12
leaq 0x38(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x4c32
leaq 0x454a(%rip), %rsi      # 0x17fc1
movq %r14, %rdi
callq 0x40a0
testl %eax, %eax
je 0x13a90
movq %r12, %rdi
callq 0x4b32
jmp 0x13c82
leaq 0x456e(%rip), %rsi      # 0x18005
leaq 0x38(%rsp), %rdi
callq 0x40a0
testl %eax, %eax
je 0x13c82
leaq 0x18(%rsp), %r15
leaq 0x20(%rsp), %rbp
leaq 0x8(%rsp), %r14
leaq 0x38(%rsp), %rbx
movq %r12, (%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x4c32
movq %rbx, %rdi
movq %r14, %rsi
callq 0x43a0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x13aee
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %r14, %r12
movl $0x0, 0x8(%rsp)
movq %rbp, 0x10(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x585e
movq 0xdbbc(%rip), %rax      # 0x216d8
movq %rax, 0x30(%rsp)
leaq 0xdc00(%rip), %rdi      # 0x21728
leaq 0x38(%rsp), %rsi
callq 0x160b6
movq %rax, %r14
movl 0x8(%rsp), %eax
movl %eax, (%r14)
movq %r14, %rdi
addq $0x8, %rdi
leaq 0x10(%rsp), %rsi
callq 0x43a0
movq 0x30(%rsp), %rax
movq %rax, 0x28(%r14)
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x13b6d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
incq 0xdb64(%rip)            # 0x216d8
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
leaq 0x78(%rsp), %rbx
movq %rbx, %rdi
leaq 0x4477(%rip), %rsi      # 0x18007
leaq 0x4471(%rip), %rdx      # 0x18008
callq 0x59ce
movq (%rsp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x4ab4
movl %eax, %r14d
movb $0x1, %r13b
testb %al, %al
jne 0x13bea
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
leaq 0x4438(%rip), %rsi      # 0x18005
leaq 0x4432(%rip), %rdx      # 0x18006
callq 0x59ce
movq (%rsp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x4ab4
movl %eax, %r13d
testb %r14b, %r14b
jne 0x13c0b
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x13c0b
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
movq %r12, %r14
je 0x13c30
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x42d0
testb %r13b, %r13b
leaq 0x38(%rsp), %rbx
je 0x13caf
movq %r14, %rdi
movq (%rsp), %r12
movq %r12, %rsi
callq 0x4c32
movq %rbx, %rdi
movq %r14, %rsi
callq 0x43a0
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x13c6b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
leaq 0x4390(%rip), %rsi      # 0x18005
callq 0x40a0
testl %eax, %eax
jne 0x13ac1
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13c9d
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xd30a(%rip), %rax      # 0x20fc0
movq (%rax), %r14
leaq 0x8(%rsp), %rdi
movq (%rsp), %rsi
callq 0x4c32
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x4750
jmp 0x13d3c
jmp 0x13d15
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x13d18
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x13d18
jmp 0x13d3c
jmp 0x13d3c
jmp 0x13d3c
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %rbp, %rdi
je 0x13d3f
movq 0x20(%rsp), %rsi
jmp 0x13d32
jmp 0x13d3c
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x13d3f
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x13d3f
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13d5a
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x44e0