// File: /workspace/github_cpp_makefile_star2_O3/sighingnow[P]compile-pascal/pl0_tac_gen.cpp
// Function: pl0_tac_var_stmt(pl0_ast_var_stmt const*)
void pl0_tac_var_stmt(pl0_ast_var_stmt const *stmts) {
    cout << __func__;
    if (!stmts) { return; }
    for (auto && s: stmts->stmt) {
        for (auto && var: s->ids) {
            // validate.
            if (!scope.empty() && var->id == scope.back()) {
                pl0_ast_error(var->loc, string("duplicate identifier ") + "\"" + var->id + "\"");
            }
            else if (valtb.find(var->id, false) || vartb.find(var->id, false)) {
                pl0_ast_error(var->loc, string("redefinition of ") + "\"" + var->id + "\"");
            }
            else {
                string t = s->type->type->type + (s->type->len == -1 ? "" : "array");
                vartb.push(variable(var->id, s->type->type->type, t, s->type->len)); // update symbol table.
                irb.emit("def", new Value(var->id, s->type->type->type), new Value(t, "string"), new Value(s->type->len, "integer"));
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
movq %rdi, %rbx
movq 0x53343(%rip), %rdi     # 0xb9fd8
leaq 0x2c873(%rip), %rsi     # 0x9350f
xorl %edx, %edx
callq 0x52e0
testq %rbx, %rbx
je 0x6755a
movq 0x8(%rbx), %rax
movq 0x10(%rbx), %rcx
movq %rcx, 0x218(%rsp)
cmpq %rcx, %rax
je 0x6755a
leaq 0x40(%rsp), %r12
leaq 0x10(%rsp), %r15
leaq 0xe0(%rsp), %rbp
movq %rax, 0x20(%rsp)
movq (%rax), %rax
movq 0x10(%rax), %r13
movq 0x18(%rax), %rax
movq %rax, 0x220(%rsp)
cmpq %rax, %r13
je 0x67543
movq 0x548e1(%rip), %rax     # 0xbb5e0
movq (%r13), %rbx
cmpq %rax, 0x548ce(%rip)     # 0xbb5d8
je 0x66d34
movq 0x10(%rbx), %rdx
cmpq -0x18(%rax), %rdx
jne 0x66d34
testq %rdx, %rdx
je 0x6736e
movq -0x20(%rax), %rsi
movq 0x8(%rbx), %rdi
callq 0x5280
testl %eax, %eax
je 0x6736e
addq $0x8, %rbx
leaq 0x548e1(%rip), %rdi     # 0xbb620
movq %rbx, %rsi
xorl %edx, %edx
callq 0x761f8
testb %al, %al
jne 0x66d6b
movq (%r13), %rsi
addq $0x8, %rsi
leaq 0x54894(%rip), %rdi     # 0xbb5f0
xorl %edx, %edx
callq 0x7635e
testb %al, %al
je 0x66ee9
movq (%r13), %rax
movq (%rax), %r14
movq %r12, 0x30(%rsp)
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
leaq 0x2bbe4(%rip), %rsi     # 0x9296a
leaq 0x2bbed(%rip), %rdx     # 0x9297a
callq 0x253d0
movq %rbx, %rdi
leaq 0x2c257(%rip), %rsi     # 0x92ff3
callq 0x5420
movq %r15, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x66dc2
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x66dc9
movups (%rcx), %xmm0
movups %xmm0, (%r15)
leaq 0x100(%rsp), %rbx
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r13), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %rsp, %rdi
callq 0x50d0
movq %rbx, 0xf0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x66e29
movq %rdx, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0x66e2f
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
leaq 0xf0(%rsp), %rdi
movq 0x8(%rax), %rdx
movq %rdx, 0xf8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2c19a(%rip), %rsi     # 0x92ff3
callq 0x5420
leaq 0xa0(%rsp), %rsi
movq %rsi, 0x90(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x66e92
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x66e98
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x98(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r14, %rdi
leaq 0x90(%rsp), %rsi
callq 0x65f40
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x674e7
movq 0xa0(%rsp), %rsi
jmp 0x674df
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
cmpl $-0x1, 0x10(%rax)
movq 0x8(%rax), %rax
leaq 0x2bb6e(%rip), %rbx     # 0x92a72
leaq 0x2c604(%rip), %rcx     # 0x9350f
cmoveq %rcx, %rbx
movq %r15, (%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0x351dc
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5420
movq (%r13), %rax
movq %rbp, 0xd0(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0xd0(%rsp), %rdi
callq 0x351dc
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
leaq 0x188(%rsp), %rcx
movq %rcx, 0x178(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0x178(%rsp), %rdi
callq 0x351dc
leaq 0x100(%rsp), %rbx
leaq 0x208(%rsp), %rax
movq %rax, 0x1f8(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x1f8(%rsp), %r12
movq %r12, %rdi
callq 0x351dc
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %r8d
leaq 0xf0(%rsp), %r14
movq %r14, %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x178(%rsp), %rdx
movq %r12, %rcx
callq 0x63788
leaq 0x545f2(%rip), %rdi     # 0xbb5f0
movq %r14, %rsi
callq 0x7821a
movq 0x130(%rsp), %rdi
leaq 0x140(%rsp), %rax
cmpq %rax, %rdi
je 0x6702b
movq 0x140(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x110(%rsp), %rdi
leaq 0x120(%rsp), %rax
cmpq %rax, %rdi
je 0x67050
movq 0x120(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xf0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6706d
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
leaq 0x1d8(%rsp), %rbx
je 0x6709a
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x670bf
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xd0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x670dc
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0x168(%rsp), %rax
movq %rax, 0x158(%rsp)
leaq 0x158(%rsp), %rdi
leaq 0x2b880(%rip), %rsi     # 0x9297b
leaq 0x2b87c(%rip), %rdx     # 0x9297e
callq 0x253d0
movq 0x20(%rsp), %rbp
movl $0x48, %edi
callq 0x5250
movq %rax, %r14
movq (%r13), %rax
leaq 0x80(%rsp), %rcx
movq %rcx, 0x70(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0x70(%rsp), %rdi
callq 0x351dc
movq (%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
leaq 0x1e8(%rsp), %rcx
movq %rcx, 0x1d8(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x351dc
movq %rbx, %rdx
movb $0x1, %bl
movq %r14, %rdi
leaq 0x70(%rsp), %rsi
callq 0x7653e
xorl %ebx, %ebx
movl $0x48, %edi
callq 0x5250
movq %rax, 0x28(%rsp)
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x351dc
leaq 0x1c8(%rsp), %rax
movq %rax, 0x1b8(%rsp)
leaq 0x1b8(%rsp), %rbx
movq %rbx, %rdi
leaq 0x2c0a5(%rip), %rsi     # 0x93278
leaq 0x2c0a4(%rip), %rdx     # 0x9327e
callq 0x253d0
movb $0x1, %r15b
movq 0x28(%rsp), %rdi
leaq 0x50(%rsp), %rsi
movq %rbx, %rdx
callq 0x7653e
xorl %r15d, %r15d
movl $0x48, %edi
callq 0x5250
movq %rax, %rbx
movq (%rbp), %rax
movq 0x8(%rax), %rax
movl 0x10(%rax), %r15d
leaq 0x1a8(%rsp), %rax
movq %rax, 0x198(%rsp)
leaq 0x198(%rsp), %r12
movq %r12, %rdi
leaq 0x29edd(%rip), %rsi     # 0x9110f
leaq 0x29edd(%rip), %rdx     # 0x91116
callq 0x253d0
movb $0x1, %bpl
movq %rbx, %rdi
movl %r15d, %esi
movq %r12, %rdx
movq %r14, %r15
callq 0x75d42
xorl %ebp, %ebp
leaq 0x5434d(%rip), %rdi     # 0xbb5a8
leaq 0x158(%rsp), %rsi
movq %r15, %rdx
movq 0x28(%rsp), %rcx
movq %rbx, %r8
callq 0x75c2c
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rax
cmpq %rax, %rdi
leaq 0x10(%rsp), %r15
leaq 0xe0(%rsp), %rbp
je 0x672a5
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
leaq 0x40(%rsp), %r12
je 0x672cf
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x672eb
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1d8(%rsp), %rdi
leaq 0x1e8(%rsp), %rax
cmpq %rax, %rdi
je 0x67310
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x67332
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x67357
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x5260
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x67531
movq 0x10(%rsp), %rsi
jmp 0x67529
movq (%rbx), %r14
movq %r12, 0x30(%rsp)
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
leaq 0x2b5cf(%rip), %rsi     # 0x92954
leaq 0x2b5dd(%rip), %rdx     # 0x92969
callq 0x253d0
movq %rbx, %rdi
leaq 0x2bc58(%rip), %rsi     # 0x92ff3
callq 0x5420
leaq 0x100(%rsp), %rbx
movq %r15, (%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x673c9
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x673d0
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r13), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq %rsp, %rdi
callq 0x50d0
movq %rbx, 0xf0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
leaq 0xf0(%rsp), %rdi
je 0x67430
movq %rdx, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0x67436
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0xf8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x2bb9b(%rip), %rsi     # 0x92ff3
callq 0x5420
leaq 0xc0(%rsp), %rsi
movq %rsi, 0xb0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x67491
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x67497
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xb8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r14, %rdi
leaq 0xb0(%rsp), %rsi
callq 0x65f40
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x674e7
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xf0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x67504
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x5260
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6751a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x67531
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5260
addq $0x8, %r13
cmpq 0x220(%rsp), %r13
jne 0x66cf8
movq 0x20(%rsp), %rax
addq $0x8, %rax
cmpq 0x218(%rsp), %rax
jne 0x66cd7
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r13
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x67594
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0x100(%rsp), %rbx
jmp 0x675a1
movq %rax, %r13
movq 0xf0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x675be
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0x10(%rsp), %r15
leaq 0x40(%rsp), %r12
jmp 0x67889
jmp 0x67835
jmp 0x67830
jmp 0x6783f
movq %rax, %r13
jmp 0x676d5
jmp 0x67657
movq %rax, %r13
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x67780
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x67780
jmp 0x67657
movq %rax, %r13
jmp 0x67785
movq %rax, %r13
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6763d
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0x10(%rsp), %r15
jmp 0x677ea
movq %rax, %r13
jmp 0x677ea
movq %rax, %r13
jmp 0x677f7
movq %rax, %r13
jmp 0x6781c
movq %rax, %r13
leaq 0xf0(%rsp), %rdi
callq 0x764f0
jmp 0x67674
movq %rax, %r13
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0x67699
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0x10(%rsp), %r15
leaq 0xe0(%rsp), %rbp
jmp 0x676b0
movq %rax, %r13
jmp 0x67720
movq %rax, %r13
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0x676d5
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xd0(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6781c
movq 0xe0(%rsp), %rsi
jmp 0x67814
movq %rax, %r13
movq 0x198(%rsp), %rdi
leaq 0x1a8(%rsp), %rax
cmpq %rax, %rdi
je 0x6771b
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x5260
testb %bpl, %bpl
je 0x6772d
movl $0x48, %esi
movq %rbx, %rdi
callq 0x5260
xorl %r15d, %r15d
jmp 0x6773a
movq %rax, %r13
jmp 0x6779f
movq %rax, %r13
movq 0x1b8(%rsp), %rdi
leaq 0x1c8(%rsp), %rax
cmpq %rax, %rdi
je 0x6775f
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6777b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r15b, %r15b
je 0x67798
leaq 0x10(%rsp), %r15
movl $0x48, %esi
movq 0x28(%rsp), %rdi
callq 0x5260
xorl %ebx, %ebx
jmp 0x6779f
xorl %ebx, %ebx
leaq 0x10(%rsp), %r15
movq 0x1d8(%rsp), %rdi
leaq 0x1e8(%rsp), %rax
cmpq %rax, %rdi
je 0x677c4
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x677e6
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5260
testb %bl, %bl
je 0x677f7
movl $0x48, %esi
movq %r14, %rdi
callq 0x5260
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x6781c
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x5260
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x678b6
movq 0x10(%rsp), %rsi
jmp 0x678ae
movq %rax, %r13
jmp 0x6789f
movq %rax, %r13
jmp 0x67889
movq %rax, %r13
jmp 0x6786c
movq %rax, %r13
jmp 0x678b6
movq %rax, %r13
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x6786c
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xf0(%rsp), %rdi
cmpq %rbx, %rdi
je 0x67889
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x5260
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x6789f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x30(%rsp), %rdi
cmpq %r12, %rdi
je 0x678b6
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5260
movq %r13, %rdi
callq 0x53d0