// File: /workspace/github_cpp_makefile_star2_O3/sighingnow[P]compile-pascal/pl0_tac_gen.cpp
// Function: pl0_tac_read_stmt(pl0_ast_read_stmt const*)
void pl0_tac_read_stmt(pl0_ast_read_stmt const *stmt) {
    cout << __func__;
    for (auto && id: stmt->ids) {
        // validate.
        variable var;
        if (vartb.find(id->id, true, var) == false) {
            pl0_ast_error(id->loc, string("use of undeclared variable ") + "\"" + id->id + "\"");
        }
        if (var.len != -1) {
            pl0_ast_error(id->loc, string("expected an non-array identifier ") + "\"" + id->id + "\"");
        }
        irb.emit("=", new Value(id->id, var.dt), new Value(0, var.dt));
        irb.emit("read", new Value(id->id, var.dt));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp            # imm = 0x1F8
movq %rdi, %rbx
movq 0x4b22c(%rip), %rdi     # 0xb9fd8
leaq 0x2475c(%rip), %rsi     # 0x9350f
xorl %edx, %edx
callq 0x52e0
movq 0x18(%rbx), %r13
movq 0x20(%rbx), %rax
movq %rax, 0x188(%rsp)
cmpq %rax, %r13
je 0x6f4ff
leaq 0x58(%rsp), %rbx
leaq 0x38(%rsp), %r14
leaq 0x4c7c4(%rip), %r15     # 0xbb5a8
leaq 0x190(%rsp), %r12
movq %r12, %rdi
callq 0x76996
movq (%r13), %rsi
addq $0x8, %rsi
leaq 0x4c7ed(%rip), %rdi     # 0xbb5f0
movl $0x1, %edx
movq %r12, %rcx
callq 0x76ef2
testb %al, %al
jne 0x6efd1
movq (%r13), %rax
movq (%rax), %r12
movq %rbx, 0x48(%rsp)
leaq 0x48(%rsp), %rbp
movq %rbp, %rdi
leaq 0x23d67(%rip), %rsi     # 0x92b9a
leaq 0x23d7b(%rip), %rdx     # 0x92bb5
callq 0x253d0
movq %rbp, %rdi
leaq 0x241aa(%rip), %rsi     # 0x92ff3
callq 0x5420
movq %r14, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6ee71
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x6ee78
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r13), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
leaq 0x28(%rsp), %rdi
callq 0x50d0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6eece
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6eed4
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8(%rsp), %rdi
leaq 0x240fb(%rip), %rsi     # 0x92ff3
callq 0x5420
leaq 0xd8(%rsp), %rsi
movq %rsi, 0xc8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6ef31
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x6ef37
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xd0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r12, %rdi
leaq 0xc8(%rsp), %rsi
callq 0x65f40
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x6ef87
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6efa3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x6efba
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6efd1
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5260
cmpl $-0x1, 0x1f0(%rsp)
je 0x6f198
movq (%r13), %rax
movq (%rax), %r12
movq %rbx, 0x48(%rsp)
leaq 0x48(%rsp), %rbp
movq %rbp, %rdi
leaq 0x23a82(%rip), %rsi     # 0x92a7c
leaq 0x23a9c(%rip), %rdx     # 0x92a9d
callq 0x253d0
movq %rbp, %rdi
leaq 0x23fe3(%rip), %rsi     # 0x92ff3
callq 0x5420
movq %r14, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6f038
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x6f03f
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r13), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
leaq 0x28(%rsp), %rdi
callq 0x50d0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6f095
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6f09b
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8(%rsp), %rdi
leaq 0x23f34(%rip), %rsi     # 0x92ff3
callq 0x5420
leaq 0xb8(%rsp), %rsi
movq %rsi, 0xa8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6f0f8
movq %rdx, 0xa8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xb8(%rsp)
jmp 0x6f0fe
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xb0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r12, %rdi
leaq 0xa8(%rsp), %rsi
callq 0x65f40
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6f14e
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6f16a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x6f181
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6f198
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0x118(%rsp), %rax
movq %rax, 0x108(%rsp)
leaq 0x108(%rsp), %rdi
leaq 0x21f61(%rip), %rsi     # 0x91118
leaq 0x21f5b(%rip), %rdx     # 0x91119
callq 0x253d0
movl $0x48, %edi
callq 0x5250
leaq 0x168(%rsp), %rbx
movq %rax, %rbp
movq (%r13), %rax
leaq 0x98(%rsp), %rcx
movq %rcx, 0x88(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0x88(%rsp), %rdi
callq 0x351dc
movq %r13, %r12
leaq 0x178(%rsp), %rax
movq %rax, 0x168(%rsp)
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x351dc
movq %r15, %r13
movb $0x1, %r14b
movq %rbp, %rdi
leaq 0x88(%rsp), %rsi
movq %rbx, %rdx
callq 0x7653e
xorl %r14d, %r14d
movl $0x48, %edi
callq 0x5250
movq %rax, %rbx
leaq 0x158(%rsp), %rax
movq %rax, 0x148(%rsp)
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x148(%rsp), %r15
movq %r15, %rdi
callq 0x351dc
movb $0x1, %r14b
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x75d42
movq %r13, %r15
xorl %r14d, %r14d
movq %r13, %rdi
leaq 0x108(%rsp), %rsi
movq %rbp, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x75c2c
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
movq %r12, %r13
je 0x6f2e5
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
leaq 0x38(%rsp), %r14
leaq 0x128(%rsp), %rbx
je 0x6f317
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x6f33c
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x6f361
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0xf8(%rsp), %rax
movq %rax, 0xe8(%rsp)
leaq 0xe8(%rsp), %rdi
leaq 0x21dac(%rip), %rsi     # 0x9112c
leaq 0x21da9(%rip), %rdx     # 0x91130
callq 0x253d0
movl $0x48, %edi
callq 0x5250
movq %rax, %r12
movq (%r13), %rax
leaq 0x78(%rsp), %rcx
movq %rcx, 0x68(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0x68(%rsp), %rdi
callq 0x351dc
leaq 0x138(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x351dc
movq %rbx, %rdx
movb $0x1, %bl
movq %r12, %rdi
leaq 0x68(%rsp), %rsi
callq 0x7653e
xorl %ebx, %ebx
movq %r15, %rdi
leaq 0xe8(%rsp), %rsi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x75c2c
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x6f438
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
leaq 0x58(%rsp), %rbx
je 0x6f459
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x6f47e
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x6f4a3
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x6f4c8
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x6f4ed
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x5260
addq $0x8, %r13
cmpq 0x188(%rsp), %r13
jne 0x6ede4
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6f651
jmp 0x6f572
movq %rax, %r15
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x6f57a
movq 0xd8(%rsp), %rsi
jmp 0x6f55e
jmp 0x6f56d
jmp 0x6f577
movq %rax, %r15
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x6f57a
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x6f57a
jmp 0x6f651
movq %rax, %r15
jmp 0x6f5b2
movq %rax, %r15
jmp 0x6f596
movq %rax, %r15
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6f596
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6f5b2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x6f794
movq 0x58(%rsp), %rsi
jmp 0x6f78c
movq %rax, %r15
jmp 0x6f76f
movq %rax, %r15
jmp 0x6f762
movq %rax, %r15
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x6f762
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x6f762
jmp 0x6f651
movq %rax, %r15
jmp 0x6f6f7
movq %rax, %r15
jmp 0x6f6ea
movq %rax, %r15
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x6f6ea
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x6f6ea
movq %rax, %r15
jmp 0x6f68b
jmp 0x6f651
movq %rax, %r15
jmp 0x6f794
movq %rax, %r15
jmp 0x6f69b
movq %rax, %r15
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x6f686
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r14b, %r14b
je 0x6f698
movl $0x48, %esi
movq %rbx, %rdi
callq 0x5260
xorl %r14d, %r14d
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x6f6c0
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x6f6e5
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r14b, %r14b
je 0x6f6f7
movl $0x48, %esi
movq %rbp, %rdi
callq 0x5260
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x6f794
movq 0x118(%rsp), %rsi
jmp 0x6f78c
movq %rax, %r15
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x6f742
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x6f75e
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5260
testb %bl, %bl
je 0x6f76f
movl $0x48, %esi
movq %r12, %rdi
callq 0x5260
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x6f794
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0x190(%rsp), %rdi
callq 0x764f0
movq %r15, %rdi
callq 0x53d0