// File: /workspace/github_cpp_makefile_star2_O1/sighingnow[P]compile-pascal/pl0_opt.cpp
// Function: BasicBlock::releaseLeaf(std::vector<TAC, std::allocator<TAC>>&, Value*)
void BasicBlock::releaseLeaf(std::vector<TAC> & irs, Value *item) {
    auto iter = G.begin();
    while (iter != G.end()) {
        DAGNode & node = *iter; // reference.
        if (node.leaf && record[*item] != node.no) {
            if (node.item == item && !node.items.empty()) {
                auto i_iter = node.items.begin();
                node.item = *i_iter;
                node.items.erase(i_iter);
                releaseLeaf(irs, node.item);
                if (node.item->str() != item->str()) {
                    irs.push_back(TAC("=", node.item, item));
                }
            }
        }
        iter++;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, (%rsp)
movq 0x60(%rdi), %rbp
cmpq 0x68(%rdi), %rbp
je 0x80cd7
movq %rdx, %rbx
movq %rdi, %r15
leaq 0x78(%rdi), %rax
movq %rax, 0x30(%rsp)
leaq 0x48(%rsp), %r13
leaq 0x38(%rsp), %rax
cmpb $0x1, 0x9(%rbp)
jne 0x80b28
movq 0x30(%rsp), %rdi
movq %rbx, %rsi
movq %rax, %r12
callq 0x81e26
movl (%rax), %eax
cmpl (%rbp), %eax
movq %r12, %rax
je 0x80b28
cmpq %rbx, 0x10(%rbp)
je 0x80b37
addq $0x58, %rbp
cmpq 0x68(%r15), %rbp
jne 0x80b02
jmp 0x80cd7
movq 0x18(%rbp), %rdi
movq 0x20(%rbp), %rdx
cmpq %rdx, %rdi
je 0x80b28
movq (%rdi), %rax
movq %rax, 0x10(%rbp)
leaq 0x8(%rdi), %rsi
cmpq %rdx, %rsi
je 0x80b5c
subq %rsi, %rdx
callq 0x53a0
movq %r13, %r14
addq $-0x8, 0x20(%rbp)
movq 0x10(%rbp), %rdx
movq %r15, %rdi
movq (%rsp), %rsi
callq 0x80ac6
movq 0x10(%rbp), %rsi
movq %r12, %rdi
callq 0x687b0
leaq 0x88(%rsp), %rdi
movq %rbx, %rsi
callq 0x687b0
movq 0x40(%rsp), %rdx
movb $0x1, %r13b
cmpq 0x90(%rsp), %rdx
jne 0x80bc4
testq %rdx, %rdx
je 0x80bc1
movq 0x88(%rsp), %rsi
movq 0x38(%rsp), %rdi
callq 0x5280
testl %eax, %eax
setne %r13b
jmp 0x80bc4
xorl %r13d, %r13d
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rax
cmpq %rax, %rdi
je 0x80be9
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x80c00
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x5260
testb %r13b, %r13b
movq %r14, %r13
movq %r12, %rax
je 0x80b28
leaq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
leaq 0x164f3(%rip), %rsi     # 0x97118
leaq 0x164ed(%rip), %rdx     # 0x97119
callq 0x2670a
movq 0x10(%rbp), %rax
movq %rax, 0x28(%rsp)
movq %r14, 0x38(%rsp)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %r13
movq %r12, %rdi
callq 0x36590
movq 0x28(%rsp), %rax
movq %rax, 0x58(%rsp)
movq %rbx, 0x60(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%r14)
movups %xmm0, 0x20(%r14)
movq (%rsp), %rdi
movq %r13, %rsi
callq 0x7d292
movq %r14, %r13
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x80c9c
movq 0x80(%rsp), %rsi
subq %rdi, %rsi
callq 0x5260
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0x80cb3
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x5260
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x80ccf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5260
movq %r12, %rax
jmp 0x80b28
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0x6afce
jmp 0x80cfb
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x80d30
movq 0x18(%rsp), %rsi
jmp 0x80d28
movq %rax, %rbx
jmp 0x80d30
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %r14, %rdi
je 0x80d30
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x5260
movq %rbx, %rdi
callq 0x53d0