// File: /workspace/github_c_makefile_star2_O3/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, %rbx
leaq 0x38(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4c32
leaq 0x4564(%rip), %rsi      # 0x17fc1
movq %r14, %rdi
callq 0x40a0
testl %eax, %eax
je 0x13a76
movq %rbx, %rdi
callq 0x4b32
jmp 0x13c58
leaq 0x4588(%rip), %rsi      # 0x18005
leaq 0x38(%rsp), %rdi
callq 0x40a0
testl %eax, %eax
je 0x13c58
leaq 0x18(%rsp), %r14
leaq 0x8(%rsp), %r12
leaq 0x78(%rsp), %r15
leaq 0x58(%rsp), %rbp
movq %r12, %rdi
movq %rbx, %rsi
callq 0x4c32
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
callq 0x43a0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13ad2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
movl $0x0, 0x8(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rdi
callq 0x5834
movq 0xdbd6(%rip), %rax      # 0x216d8
movq %rax, 0x30(%rsp)
leaq 0xdc1a(%rip), %rdi      # 0x21728
leaq 0x38(%rsp), %rsi
callq 0x15f9a
movq %rax, %r13
movl 0x8(%rsp), %eax
movl %eax, (%r13)
movq %r13, %rdi
addq $0x8, %rdi
leaq 0x10(%rsp), %rsi
callq 0x43a0
movq 0x30(%rsp), %rax
movq %rax, 0x28(%r13)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x13b59
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x42d0
incq 0xdb78(%rip)            # 0x216d8
leaq 0x88(%rsp), %rax
movq %rax, 0x78(%rsp)
movq %r15, %r13
movq %r15, %rdi
leaq 0x448d(%rip), %rsi      # 0x18007
leaq 0x4487(%rip), %rdx      # 0x18008
callq 0x59aa
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x4ab4
movb $0x1, %r13b
testb %al, %al
jne 0x13be9
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
movq %rbp, %r13
movq %rbp, %rdi
leaq 0x4454(%rip), %rsi      # 0x18005
leaq 0x444e(%rip), %rdx      # 0x18006
callq 0x59aa
movq %rbx, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x4ab4
movl %eax, %r13d
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x13be9
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x42d0
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x13c0b
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x42d0
testb %r13b, %r13b
je 0x13c85
movq %r12, %rdi
movq %rbx, %rsi
callq 0x4c32
leaq 0x38(%rsp), %rdi
movq %r12, %rsi
callq 0x43a0
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x13c3f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42d0
leaq 0x38(%rsp), %rdi
leaq 0x43ba(%rip), %rsi      # 0x18005
callq 0x40a0
testl %eax, %eax
jne 0x13aa3
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13c73
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 0xd334(%rip), %rax      # 0x20fc0
movq (%rax), %r14
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x4c32
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x474e
jmp 0x13d16
jmp 0x13cef
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x13cf2
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x13cf2
jmp 0x13d16
jmp 0x13d16
jmp 0x13d16
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x13d19
movq 0x20(%rsp), %rsi
jmp 0x13d0c
jmp 0x13d16
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0x13d19
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x42d0
jmp 0x13d19
movq %rax, %rbx
leaq 0x48(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13d34
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x42d0
movq %rbx, %rdi
callq 0x44e0