// File: /workspace/github_cpp_makefile_star2_O1/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 0x4b6ec(%rip), %rdi     # 0xbffd8
leaq 0x24c1c(%rip), %rsi     # 0x9950f
xorl %edx, %edx
callq 0x52e0
movq 0x18(%rbx), %r13
movq 0x20(%rbx), %rax
movq %rax, 0x188(%rsp)
cmpq %rax, %r13
je 0x75039
leaq 0x58(%rsp), %rbx
leaq 0x38(%rsp), %r14
leaq 0x4cc84(%rip), %r15     # 0xc15a8
leaq 0x190(%rsp), %r12
movq %r12, %rdi
callq 0x7c24c
movq (%r13), %rsi
addq $0x8, %rsi
leaq 0x4ccad(%rip), %rdi     # 0xc15f0
movl $0x1, %edx
movq %r12, %rcx
callq 0x7c7b8
testb %al, %al
jne 0x74b11
movq (%r13), %rax
movq (%rax), %r12
movq %rbx, 0x48(%rsp)
leaq 0x48(%rsp), %rbp
movq %rbp, %rdi
leaq 0x24227(%rip), %rsi     # 0x98b9a
leaq 0x2423b(%rip), %rdx     # 0x98bb5
callq 0x2670a
movq %rbp, %rdi
leaq 0x2466a(%rip), %rsi     # 0x98ff3
callq 0x5420
movq %r14, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x749b1
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x749b8
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 0x74a0e
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x74a14
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 0x245bb(%rip), %rsi     # 0x98ff3
callq 0x5420
leaq 0x98(%rsp), %rsi
movq %rsi, 0x88(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x74a71
movq %rdx, 0x88(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x98(%rsp)
jmp 0x74a77
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x90(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r12, %rdi
leaq 0x88(%rsp), %rsi
callq 0x6be78
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x74ac7
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x74ae3
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x74afa
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x74b11
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5260
cmpl $-0x1, 0x1f0(%rsp)
je 0x74cbd
movq (%r13), %rax
movq (%rax), %r12
movq %rbx, 0x48(%rsp)
leaq 0x48(%rsp), %rbp
movq %rbp, %rdi
leaq 0x23f42(%rip), %rsi     # 0x98a7c
leaq 0x23f5c(%rip), %rdx     # 0x98a9d
callq 0x2670a
movq %rbp, %rdi
leaq 0x244a3(%rip), %rsi     # 0x98ff3
callq 0x5420
movq %r14, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x74b78
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x74b7f
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 0x74bd5
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x74bdb
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 0x243f4(%rip), %rsi     # 0x98ff3
callq 0x5420
leaq 0x78(%rsp), %rsi
movq %rsi, 0x68(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x74c2c
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x74c32
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r12, %rdi
leaq 0x68(%rsp), %rsi
callq 0x6be78
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x74c73
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x74c8f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x74ca6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x74cbd
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0x118(%rsp), %rax
movq %rax, 0x108(%rsp)
leaq 0x108(%rsp), %rdi
leaq 0x2243c(%rip), %rsi     # 0x97118
leaq 0x22436(%rip), %rdx     # 0x97119
callq 0x2670a
movl $0x48, %edi
callq 0x5250
leaq 0x168(%rsp), %rbx
movq %rax, %rbp
movq (%r13), %rax
leaq 0xf8(%rsp), %rcx
movq %rcx, 0xe8(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0xe8(%rsp), %rdi
callq 0x36590
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 0x36590
movq %r15, %r13
movb $0x1, %r14b
movq %rbp, %rdi
leaq 0xe8(%rsp), %rsi
movq %rbx, %rdx
callq 0x7be1c
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 0x36590
movb $0x1, %r14b
movq %rbx, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x7b654
movq %r13, %r15
xorl %r14d, %r14d
movq %r13, %rdi
leaq 0x108(%rsp), %rsi
movq %rbp, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x7b53e
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
movq %r12, %r13
je 0x74e0a
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 0x74e3c
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x74e61
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x74e86
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0xd8(%rsp), %rax
movq %rax, 0xc8(%rsp)
leaq 0xc8(%rsp), %rdi
leaq 0x22287(%rip), %rsi     # 0x9712c
leaq 0x22284(%rip), %rdx     # 0x97130
callq 0x2670a
movl $0x48, %edi
callq 0x5250
movq %rax, %r12
movq (%r13), %rax
leaq 0xb8(%rsp), %rcx
movq %rcx, 0xa8(%rsp)
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
addq %rsi, %rdx
leaq 0xa8(%rsp), %rdi
callq 0x36590
leaq 0x138(%rsp), %rax
movq %rax, 0x128(%rsp)
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x36590
movq %rbx, %rdx
movb $0x1, %bl
movq %r12, %rdi
leaq 0xa8(%rsp), %rsi
callq 0x7be1c
xorl %ebx, %ebx
movq %r15, %rdi
leaq 0xc8(%rsp), %rsi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x7b53e
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x74f69
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
leaq 0x58(%rsp), %rbx
je 0x74f93
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x74fb8
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1d0(%rsp), %rdi
leaq 0x1e0(%rsp), %rax
cmpq %rax, %rdi
je 0x74fdd
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0x75002
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x75027
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x5260
addq $0x8, %r13
cmpq 0x188(%rsp), %r13
jne 0x74924
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x75143
jmp 0x750a3
movq %rax, %r15
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x750ab
movq 0x98(%rsp), %rsi
jmp 0x7508f
jmp 0x7509e
jmp 0x750a8
movq %rax, %r15
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x750ab
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5260
jmp 0x750ab
jmp 0x75143
movq %rax, %r15
jmp 0x750e3
movq %rax, %r15
jmp 0x750c7
movq %rax, %r15
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x750c7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x750e3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x7528f
movq 0x58(%rsp), %rsi
jmp 0x75287
movq %rax, %r15
jmp 0x7526a
movq %rax, %r15
movb $0x1, %bl
jmp 0x75259
movq %rax, %r15
movb $0x1, %bl
jmp 0x75234
jmp 0x75143
movq %rax, %r15
jmp 0x751e9
movq %rax, %r15
movb $0x1, %r14b
jmp 0x751d7
movq %rax, %r15
movb $0x1, %r14b
jmp 0x751b2
movq %rax, %r15
movb $0x1, %r14b
jmp 0x75178
jmp 0x75143
movq %rax, %r15
jmp 0x7528f
movq %rax, %r15
jmp 0x7518d
movq %rax, %r15
movq 0x148(%rsp), %rdi
leaq 0x158(%rsp), %rax
cmpq %rax, %rdi
je 0x75178
movq 0x158(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r14b, %r14b
je 0x7518a
movl $0x48, %esi
movq %rbx, %rdi
callq 0x5260
xorl %r14d, %r14d
movq 0x168(%rsp), %rdi
leaq 0x178(%rsp), %rax
cmpq %rax, %rdi
je 0x751b2
movq 0x178(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xe8(%rsp), %rdi
leaq 0xf8(%rsp), %rax
cmpq %rax, %rdi
je 0x751d7
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r14b, %r14b
je 0x751e9
movl $0x48, %esi
movq %rbp, %rdi
callq 0x5260
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x7528f
movq 0x118(%rsp), %rsi
jmp 0x75287
movq %rax, %r15
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0x75234
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x75259
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x5260
testb %bl, %bl
je 0x7526a
movl $0x48, %esi
movq %r12, %rdi
callq 0x5260
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x7528f
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x5260
leaq 0x190(%rsp), %rdi
callq 0x7bdce
movq %r15, %rdi
callq 0x53d0