// File: /workspace/github_cpp_makefile_star2_O3/sharmaeklavya2[P]ddos-on-anycast/src/lib/network.cpp
// Function: Network::print(_IO_FILE*, bool) const
void Network::print(FILE* fp, bool print_virtual) const {
    for(int u=0; u<size(); ++u) {
        if(print_virtual || netsize[u] == 0) {
            fprintf(fp, "%d:\n  nid: %d, netsize: %d, depth: %d,\n", u, nid[u], netsize[u], depth[u]);
            fprintf(fp, "  in_nbrs: ");
            print_icont(fp, in_nbrs[u], ", ", "[", "],\n");
            fprintf(fp, "  side_nbrs: ");
            print_icont(fp, side_nbrs[u], ", ", "[", "],\n");
            fprintf(fp, "  up_nbrs: ");
            print_icont(fp, up_nbrs[u], ", ", "[", "],\n");
            fprintf(fp, "  down_nbrs: ");
            print_icont(fp, down_nbrs[u], ", ", "[", "]\n");
        }
    }
    fprintf(fp, "depthwise:\n");
    for(size_t i=0; i<depthwise.size(); ++i) {
        fprintf(fp, "  %zd: ", i);
        print_icont(fp, depthwise[i], ", ", "[", "]\n");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, 0x4(%rsp)
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rax
movq 0x20(%rdi), %rcx
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x2, %rdx
testl %edx, %edx
jle 0x3012
xorl %r12d, %r12d
xorl %ebp, %ebp
movl (%rax,%rbp,4), %r8d
cmpb $0x0, 0x4(%rsp)
jne 0x2ee3
testl %r8d, %r8d
jne 0x2ff5
xorl %r8d, %r8d
movq (%r14), %rax
movq 0x30(%r14), %rdx
movl (%rax,%rbp,4), %ecx
movl (%rdx,%rbp,4), %r9d
movq %rbx, %rdi
leaq 0x9238(%rip), %rsi      # 0xc133
movl %ebp, %edx
xorl %eax, %eax
callq 0x21b0
movl $0xb, %esi
movl $0x1, %edx
leaq 0x9246(%rip), %rdi      # 0xc15b
movq %rbx, %rcx
callq 0x2240
movq 0x48(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
leaq 0x9239(%rip), %rdx      # 0xc167
leaq 0x9619(%rip), %r15      # 0xc54e
movq %r15, %rcx
leaq 0x922b(%rip), %r8       # 0xc16a
callq 0x3a73
movl $0xd, %esi
movl $0x1, %edx
leaq 0x9219(%rip), %rdi      # 0xc16e
movq %rbx, %rcx
callq 0x2240
movq 0x60(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
leaq 0x91f9(%rip), %r13      # 0xc167
movq %r13, %rdx
movq %r15, %rcx
leaq 0x91ef(%rip), %r8       # 0xc16a
callq 0x3a73
movl $0xb, %esi
movl $0x1, %edx
leaq 0x91eb(%rip), %rdi      # 0xc17c
movq %rbx, %rcx
callq 0x2240
movq 0x78(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %r15, %rcx
leaq 0x91ba(%rip), %r8       # 0xc16a
callq 0x3a73
movl $0xd, %esi
movl $0x1, %edx
leaq 0x91c2(%rip), %rdi      # 0xc188
movq %rbx, %rcx
callq 0x2240
movq 0x90(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %r15, %rcx
leaq 0x91ae(%rip), %r8       # 0xc196
callq 0x3a73
movq 0x18(%r14), %rax
movq 0x20(%r14), %rcx
incq %rbp
movq %rcx, %rdx
subq %rax, %rdx
shrq $0x2, %rdx
movslq %edx, %rdx
addq $0x18, %r12
cmpq %rdx, %rbp
jl 0x2ecc
leaq 0x9180(%rip), %rdi      # 0xc199
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2240
movq 0xb0(%r14), %rax
cmpq 0xa8(%r14), %rax
je 0x30ab
leaq 0x9154(%rip), %rbp      # 0xc196
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
xorl %r13d, %r13d
xorl %r15d, %r15d
movq %rbx, %rdi
leaq 0x9149(%rip), %rsi      # 0xc1a5
movq %r15, %rdx
xorl %eax, %eax
callq 0x21b0
movq 0xa8(%r14), %rsi
addq %r13, %rsi
movq %rbx, %rdi
leaq 0x90ed(%rip), %rdx      # 0xc167
leaq 0x94cd(%rip), %rcx      # 0xc54e
movq %rbp, %r8
callq 0x3a73
incq %r15
movq 0xb0(%r14), %rax
subq 0xa8(%r14), %rax
sarq $0x3, %rax
imulq %r12, %rax
addq $0x18, %r13
cmpq %rax, %r15
jb 0x3052
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq