// File: /workspace/github_cpp_makefile_star2_O3/sighingnow[P]compile-pascal/pl0_opt.cpp
// Function: BasicBlock::trans(std::vector<TAC, std::allocator<TAC>>&, int)
void BasicBlock::trans(std::vector<TAC> & irs, int nno) {
    if (G[nno].op == "=") {
        irs.emplace_back(TAC(G[nno].op, G[nno].item, G[G[nno].lhs].item));
    }
    else if (G[nno].op == "read") {
        while (!this->IOBuf.empty()) {
            if (this->IOBuf[0].first < G[nno].rhs) {
                irs.emplace_back(this->IOBuf[0].second);
                this->IOBuf.erase(IOBuf.begin());
            }
            else {
                break;
            }
        }
        irs.emplace_back(TAC("read", G[G[nno].lhs].item));
    }
    else if (G[nno].op == "write_e") {
        while (!this->IOBuf.empty()) {
            if (this->IOBuf[0].first < G[nno].rhs) {
                irs.emplace_back(this->IOBuf[0].second);
                this->IOBuf.erase(IOBuf.begin());
            }
            else {
                break;
            }
        }
        irs.emplace_back(TAC("write_e", G[G[nno].lhs].item));
    }
    else {
        irs.emplace_back(TAC(G[nno].op, G[nno].item, G[G[nno].lhs].item, G[G[nno].rhs].item));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movslq %edx, %rax
movq 0x60(%rdi), %rcx
imulq $0x58, %rax, %r12
leaq (%rcx,%r12), %rdi
addq $0x30, %rdi
leaq 0x15c47(%rip), %rsi     # 0x91118
callq 0x50c0
testl %eax, %eax
je 0x7b5fa
movq 0x60(%r14), %rax
leaq (%rax,%r12), %rdi
addq $0x30, %rdi
leaq 0x15c3b(%rip), %rsi     # 0x9112c
callq 0x50c0
testl %eax, %eax
je 0x7b6c7
movq 0x60(%r14), %rax
leaq (%rax,%r12), %rdi
addq $0x30, %rdi
leaq 0x177da(%rip), %rsi     # 0x92ceb
callq 0x50c0
testl %eax, %eax
je 0x7b7e5
movq 0x60(%r14), %rax
leaq 0x68(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq 0x30(%rax,%r12), %rsi
movq 0x38(%rax,%r12), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %r15
movq %r15, %rdi
callq 0x351dc
movq 0x60(%r14), %rax
movq 0x10(%rax,%r12), %rbp
movslq 0x50(%rax,%r12), %rcx
imulq $0x58, %rcx, %rcx
movq 0x10(%rax,%rcx), %r13
movslq 0x54(%rax,%r12), %rcx
imulq $0x58, %rcx, %rcx
movq 0x10(%rax,%rcx), %r12
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x351dc
leaq 0x8(%rsp), %rsi
movq %rbp, 0x20(%rsi)
movq %r13, 0x28(%rsi)
movq %r12, 0x30(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x38(%rsi)
movq $0x0, 0x48(%rsi)
movq %rbx, %rdi
callq 0x779d8
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x7b5c6
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x5260
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7b5dd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x7b8f9
movq 0x68(%rsp), %rsi
jmp 0x7b8f1
movq 0x60(%r14), %rax
leaq 0xc8(%rsp), %r13
movq %r13, -0x10(%r13)
movq 0x30(%rax,%r12), %rsi
movq 0x38(%rax,%r12), %rdx
addq %rsi, %rdx
leaq 0xb8(%rsp), %r15
movq %r15, %rdi
callq 0x351dc
movq 0x60(%r14), %rax
movq 0x10(%rax,%r12), %rbp
movslq 0x50(%rax,%r12), %rcx
imulq $0x58, %rcx, %rcx
movq 0x10(%rax,%rcx), %r12
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x351dc
leaq 0x8(%rsp), %rsi
movq %rbp, 0x20(%rsi)
movq %r12, 0x28(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rsi)
movups %xmm0, 0x40(%rsi)
movq %rbx, %rdi
callq 0x779d8
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x7b692
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x5260
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7b6a9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7b8f9
movq 0xc8(%rsp), %rsi
jmp 0x7b8f1
movq 0xa8(%r14), %rsi
cmpq 0xb0(%r14), %rsi
je 0x7b716
leaq 0xa8(%r14), %r15
movl (%rsi), %eax
movq 0x60(%r14), %rcx
cmpl 0x54(%rcx,%r12), %eax
jge 0x7b716
addq $0x8, %rsi
movq %rbx, %rdi
callq 0x7c2b4
movq 0xa8(%r14), %rsi
movq %r15, %rdi
callq 0x7e540
movq 0xa8(%r14), %rsi
cmpq 0xb0(%r14), %rsi
jne 0x7b6de
leaq 0xa8(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x15a03(%rip), %rsi     # 0x9112c
leaq 0x15a00(%rip), %rdx     # 0x91130
leaq 0x98(%rsp), %rdi
callq 0x253d0
movq 0x60(%r14), %rax
movslq 0x50(%rax,%r12), %rcx
imulq $0x58, %rcx, %rcx
movq 0x10(%rax,%rcx), %r12
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x351dc
leaq 0x8(%rsp), %rsi
movq %r12, 0x20(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rsi)
movups %xmm0, 0x38(%rsi)
movq $0x0, 0x48(%rsi)
movq %rbx, %rdi
callq 0x779d8
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x7b7b0
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x5260
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7b7c7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b8f9
movq 0xa8(%rsp), %rsi
jmp 0x7b8f1
movq 0xa8(%r14), %rsi
cmpq 0xb0(%r14), %rsi
je 0x7b834
leaq 0xa8(%r14), %r15
movl (%rsi), %eax
movq 0x60(%r14), %rcx
cmpl 0x54(%rcx,%r12), %eax
jge 0x7b834
addq $0x8, %rsi
movq %rbx, %rdi
callq 0x7c2b4
movq 0xa8(%r14), %rsi
movq %r15, %rdi
callq 0x7e540
movq 0xa8(%r14), %rsi
cmpq 0xb0(%r14), %rsi
jne 0x7b7fc
leaq 0x88(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x174a4(%rip), %rsi     # 0x92ceb
leaq 0x174a4(%rip), %rdx     # 0x92cf2
leaq 0x78(%rsp), %rdi
callq 0x253d0
movq 0x60(%r14), %rax
movslq 0x50(%rax,%r12), %rcx
imulq $0x58, %rcx, %rcx
movq 0x10(%rax,%rcx), %r12
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x78(%rsp), %rsi
movq 0x80(%rsp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rdi
callq 0x351dc
leaq 0x8(%rsp), %rsi
movq %r12, 0x20(%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rsi)
movups %xmm0, 0x38(%rsi)
movq $0x0, 0x48(%rsi)
movq %rbx, %rdi
callq 0x779d8
movq 0x40(%rsp), %rdi
testq %rdi, %rdi
je 0x7b8c8
movq 0x50(%rsp), %rsi
subq %rdi, %rsi
callq 0x5260
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7b8df
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b8f9
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x5260
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x650f6
jmp 0x7b91d
movq %rax, %rbx
movq 0x78(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b9bc
movq 0x88(%rsp), %rsi
jmp 0x7b9b4
jmp 0x7b960
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x650f6
jmp 0x7b949
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r15, %rdi
je 0x7b9bc
movq 0xa8(%rsp), %rsi
jmp 0x7b9b4
movq %rax, %rbx
jmp 0x7b9bc
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x650f6
jmp 0x7b977
movq %rax, %rbx
movq 0x58(%rsp), %rdi
leaq 0x68(%rsp), %rax
cmpq %rax, %rdi
je 0x7b9bc
movq 0x68(%rsp), %rsi
jmp 0x7b9b4
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x650f6
jmp 0x7b99f
movq %rax, %rbx
movq 0xb8(%rsp), %rdi
cmpq %r13, %rdi
je 0x7b9bc
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x5260
movq %rbx, %rdi
callq 0x53d0