// File: /workspace/github_cpp_makefile_star2_O3/Luthaf[P]zeopp/channel.cc
// Function: CHANNEL::print(std::ostream&, bool)
void CHANNEL::print(ostream &out, bool dispNodeInfo){
    out << "Channel info:" << "\n";
    out << "     # Nodes: " << nodes.size() << "\n";
    
    if(dispNodeInfo){
        out << "     Original Node IDs: ";
        for(unsigned int i = 0; i < nodes.size(); i++){
            out << reverseIDMappings.find(i)->second << " ";
        }
        out << "\n";
        
        out << "     New Node IDs: ";
        for(unsigned int i = 0; i < nodes.size(); i++){
            out << i << " ";
        }
        out << "\n";
        
        out << "  New Node info: " << "\n";
        for(unsigned int i = 0; i< nodes.size(); i++){
            nodes.at(i).print();
        }
    }
    
    out << "     # Unit cells:" << unitCells.size() << "\n";
    
    for(unsigned int i = 0; i < unitCells.size(); i++){
        DELTA_POS position = unitCells.at(i);
        vector<int> ucNode = ucNodes.at(i);
        out << "       Unit cell #: " << i  << "\n"
        << "          Displacement: " << position.x << " " << position.y << " " << position.z << "\n"
        << "          New Node ids: ";
        for(unsigned int j = 0; j < ucNode.size(); j++){
            out << ucNode.at(j) << " ";
        }
        out << "\n";
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r15
leaq 0xe2922(%rip), %rsi     # 0x154949
movl $0xd, %edx
movq %rbx, %rdi
callq 0x44e0
leaq 0xe15e3(%rip), %r14     # 0x15361e
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe2905(%rip), %rsi     # 0x154957
movl $0xe, %edx
movq %rbx, %rdi
callq 0x44e0
movq 0x68(%r15), %rsi
subq 0x60(%r15), %rsi
sarq $0x3, %rsi
movabsq $-0x71c71c71c71c71c7, %r12 # imm = 0x8E38E38E38E38E39
imulq %r12, %rsi
movq %rbx, %rdi
callq 0x42b0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
testl %ebp, %ebp
je 0x72227
leaq 0xe28c6(%rip), %rsi     # 0x154966
movl $0x18, %edx
movq %rbx, %rdi
callq 0x44e0
movq 0x68(%r15), %rax
cmpq 0x60(%r15), %rax
movq %r15, %rbp
je 0x72134
leaq 0x38(%rbp), %r14
xorl %r13d, %r13d
leaq 0xe350e(%rip), %r15     # 0x1555d6
movq 0x40(%rbp), %rcx
movq %r14, %rdx
testq %rcx, %rcx
je 0x72101
movq %r14, %rax
xorl %edx, %edx
cmpl %r13d, 0x20(%rcx)
setl %dl
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rdx,8), %rcx
testq %rcx, %rcx
jne 0x720d7
movq %r14, %rdx
cmpq %r14, %rax
je 0x72101
cmpl 0x20(%rax), %r13d
cmovlq %r14, %rax
movq %rax, %rdx
movl 0x24(%rdx), %esi
movq %rbx, %rdi
callq 0x4750
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x44e0
movq 0x68(%rbp), %rax
subq 0x60(%rbp), %rax
incl %r13d
sarq $0x3, %rax
imulq %r12, %rax
cmpq %r13, %rax
ja 0x720c8
leaq 0xe14e3(%rip), %rsi     # 0x15361e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
leaq 0xe2830(%rip), %rsi     # 0x15497f
movl $0x13, %edx
movq %rbx, %rdi
callq 0x44e0
movq 0x68(%rbp), %rax
cmpq 0x60(%rbp), %rax
movq %rbp, %r15
je 0x721a8
movl $0x1, %ebp
xorl %esi, %esi
leaq 0xe345f(%rip), %r14     # 0x1555d6
movq %rbx, %rdi
callq 0x42b0
movl $0x1, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x44e0
movl %ebp, %esi
movq 0x68(%r15), %rax
subq 0x60(%r15), %rax
sarq $0x3, %rax
imulq %r12, %rax
incl %ebp
cmpq %rsi, %rax
ja 0x72177
leaq 0xe146f(%rip), %r14     # 0x15361e
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe27cd(%rip), %rsi     # 0x154993
movl $0x11, %edx
movq %rbx, %rdi
callq 0x44e0
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
movq 0x60(%r15), %rax
cmpq %rax, 0x68(%r15)
je 0x72227
movl $0x1, %ebp
xorl %ecx, %ecx
movq 0x122dc5(%rip), %r14    # 0x194fc0
leaq (%rcx,%rcx,8), %rcx
leaq (%rax,%rcx,8), %rdi
movq %r14, %rsi
callq 0x50970
movl %ebp, %ecx
movq 0x60(%r15), %rax
movq 0x68(%r15), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %r12, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x721fb
leaq 0xe2777(%rip), %rsi     # 0x1549a5
movl $0x12, %edx
movq %rbx, %rdi
callq 0x44e0
movq 0x98(%r15), %rsi
subq 0x90(%r15), %rsi
sarq $0x2, %rsi
movabsq $-0x5555555555555555, %r14 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r14, %rsi
movq %rbx, %rdi
callq 0x42b0
leaq 0xe13b4(%rip), %rsi     # 0x15361e
movl $0x1, %edx
movq %rax, %rdi
callq 0x44e0
movq 0x90(%r15), %rax
cmpq %rax, 0x98(%r15)
je 0x72444
movq %r15, %rdx
xorl %r15d, %r15d
leaq 0xe333e(%rip), %r13     # 0x1555d6
movq %rdx, 0x20(%rsp)
movq 0xa8(%rdx), %rcx
movq 0xb0(%rdx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
imulq %r14, %rdx
cmpq %r15, %rdx
jbe 0x72453
leaq (%r15,%r15,2), %rdx
movl (%rax,%rdx,4), %r14d
movl 0x4(%rax,%rdx,4), %ebp
movl 0x8(%rax,%rdx,4), %eax
movl %eax, 0x4(%rsp)
leaq (%rcx,%rdx,8), %rsi
leaq 0x8(%rsp), %rdi
callq 0xe8f8
movl $0x14, %edx
movq %rbx, %rdi
leaq 0xe26c8(%rip), %rsi     # 0x1549b8
callq 0x44e0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x42b0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0xe130c(%rip), %rsi     # 0x15361e
callq 0x44e0
movl $0x18, %edx
movq %r12, %rdi
leaq 0xe26a7(%rip), %rsi     # 0x1549cd
callq 0x44e0
movq %r12, %rdi
movl %r14d, %esi
callq 0x4750
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44e0
movq %r14, %rdi
movl %ebp, %esi
callq 0x4750
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44e0
movq %r14, %rdi
movl 0x4(%rsp), %esi
callq 0x4750
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0xe129a(%rip), %rsi     # 0x15361e
callq 0x44e0
movl $0x18, %edx
movq %r14, %rdi
leaq 0xe264e(%rip), %rsi     # 0x1549e6
callq 0x44e0
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x723e5
movl $0x1, %ebp
xorl %ecx, %ecx
movl (%rax,%rcx,4), %esi
movq %rbx, %rdi
callq 0x4750
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x44e0
movl %ebp, %ecx
movq 0x8(%rsp), %rax
movq 0x10(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x723b0
movl $0x1, %edx
movq %rbx, %rdi
leaq 0xe122a(%rip), %rsi     # 0x15361e
callq 0x44e0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x72410
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
incl %r15d
movq 0x20(%rsp), %rdx
movq 0x90(%rdx), %rax
movq 0x98(%rdx), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
movabsq $-0x5555555555555555, %r14 # imm = 0xAAAAAAAAAAAAAAAB
imulq %r14, %rcx
cmpq %r15, %rcx
ja 0x7229d
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xdb29b(%rip), %rdi     # 0x14d6f5
movq %r15, %rsi
xorl %eax, %eax
callq 0x4630
jmp 0x72466
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x72480
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4780