// File: /workspace/github_cpp_makefile_star2_O1/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 0xe3b12(%rip), %rsi     # 0x156831
movl $0xd, %edx
movq %rbx, %rdi
callq 0x44e0
leaq 0xe27fb(%rip), %r14     # 0x15552e
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe3af5(%rip), %rsi     # 0x15683f
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 0x72f1f
leaq 0xe3ab6(%rip), %rsi     # 0x15684e
movl $0x18, %edx
movq %rbx, %rdi
callq 0x44e0
movq 0x68(%r15), %rax
cmpq 0x60(%r15), %rax
movq %r15, %rbp
je 0x72e2c
leaq 0x38(%rbp), %r14
xorl %r13d, %r13d
leaq 0xe46c6(%rip), %r15     # 0x157486
movq 0x40(%rbp), %rcx
movq %r14, %rax
testq %rcx, %rcx
je 0x72de6
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 0x72dcf
movq %r14, %rcx
cmpq %r14, %rax
je 0x72df9
cmpl 0x20(%rax), %r13d
cmovlq %r14, %rax
movq %rax, %rcx
movl 0x24(%rcx), %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 0x72dc0
leaq 0xe26fb(%rip), %rsi     # 0x15552e
movl $0x1, %edx
movq %rbx, %rdi
callq 0x44e0
leaq 0xe3a20(%rip), %rsi     # 0x156867
movl $0x13, %edx
movq %rbx, %rdi
callq 0x44e0
movq 0x68(%rbp), %rax
cmpq 0x60(%rbp), %rax
movq %rbp, %r15
je 0x72ea0
movl $0x1, %ebp
xorl %esi, %esi
leaq 0xe4617(%rip), %r14     # 0x157486
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 0x72e6f
leaq 0xe2687(%rip), %r14     # 0x15552e
movl $0x1, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x44e0
leaq 0xe39bd(%rip), %rsi     # 0x15687b
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 0x72f1f
movl $0x1, %ebp
xorl %ecx, %ecx
movq 0x1240cd(%rip), %r14    # 0x196fc0
leaq (%rcx,%rcx,8), %rcx
leaq (%rax,%rcx,8), %rdi
movq %r14, %rsi
callq 0x50cfc
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 0x72ef3
leaq 0xe3967(%rip), %rsi     # 0x15688d
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 0xe25cc(%rip), %rsi     # 0x15552e
movl $0x1, %edx
movq %rax, %rdi
callq 0x44e0
movq 0x90(%r15), %rax
cmpq %rax, 0x98(%r15)
je 0x7313c
movq %r15, %rdx
xorl %r15d, %r15d
leaq 0xe44f6(%rip), %r13     # 0x157486
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 0x7314b
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 0xe886
movl $0x14, %edx
movq %rbx, %rdi
leaq 0xe38b8(%rip), %rsi     # 0x1568a0
callq 0x44e0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x42b0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0xe2524(%rip), %rsi     # 0x15552e
callq 0x44e0
movl $0x18, %edx
movq %r12, %rdi
leaq 0xe3897(%rip), %rsi     # 0x1568b5
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 0xe24b2(%rip), %rsi     # 0x15552e
callq 0x44e0
movl $0x18, %edx
movq %r14, %rdi
leaq 0xe383e(%rip), %rsi     # 0x1568ce
callq 0x44e0
movq 0x8(%rsp), %rax
cmpq %rax, 0x10(%rsp)
je 0x730dd
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 0x730a8
movl $0x1, %edx
movq %rbx, %rdi
leaq 0xe2442(%rip), %rsi     # 0x15552e
callq 0x44e0
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x73108
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 0x72f95
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xdc553(%rip), %rdi     # 0x14f6a5
movq %r15, %rsi
xorl %eax, %eax
callq 0x4630
jmp 0x7315e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x73178
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4470
movq %rbx, %rdi
callq 0x4780