// File: /workspace/github_cpp_makefile_star2_O1/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
subq %rax, %rcx
shrq $0x2, %rcx
testl %ecx, %ecx
jle 0x30e6
xorl %r12d, %r12d
xorl %ebp, %ebp
cmpb $0x0, 0x4(%rsp)
jne 0x2fb6
cmpl $0x0, (%rax,%rbp,4)
jne 0x30c4
movq (%r14), %rcx
movq 0x30(%r14), %rdx
movl (%rcx,%rbp,4), %ecx
movl (%rax,%rbp,4), %r8d
movl (%rdx,%rbp,4), %r9d
movq %rbx, %rdi
leaq 0xa161(%rip), %rsi      # 0xd133
movl %ebp, %edx
xorl %eax, %eax
callq 0x21b0
movl $0xb, %esi
movl $0x1, %edx
leaq 0xa16f(%rip), %rdi      # 0xd15b
movq %rbx, %rcx
callq 0x2240
movq 0x48(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
leaq 0xa162(%rip), %rdx      # 0xd167
leaq 0xa542(%rip), %r15      # 0xd54e
movq %r15, %rcx
leaq 0xa154(%rip), %r8       # 0xd16a
callq 0x3b7d
movl $0xd, %esi
movl $0x1, %edx
leaq 0xa142(%rip), %rdi      # 0xd16e
movq %rbx, %rcx
callq 0x2240
movq 0x60(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
leaq 0xa122(%rip), %r13      # 0xd167
movq %r13, %rdx
movq %r15, %rcx
leaq 0xa118(%rip), %r8       # 0xd16a
callq 0x3b7d
movl $0xb, %esi
movl $0x1, %edx
leaq 0xa114(%rip), %rdi      # 0xd17c
movq %rbx, %rcx
callq 0x2240
movq 0x78(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %r15, %rcx
leaq 0xa0e3(%rip), %r8       # 0xd16a
callq 0x3b7d
movl $0xd, %esi
movl $0x1, %edx
leaq 0xa0eb(%rip), %rdi      # 0xd188
movq %rbx, %rcx
callq 0x2240
movq 0x90(%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
movq %r13, %rdx
movq %r15, %rcx
leaq 0xa0d7(%rip), %r8       # 0xd196
callq 0x3b7d
incq %rbp
movq 0x18(%r14), %rax
movq 0x20(%r14), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
movslq %ecx, %rcx
addq $0x18, %r12
cmpq %rcx, %rbp
jl 0x2fa5
leaq 0xa0ac(%rip), %rdi      # 0xd199
movl $0xb, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x2240
movq 0xb0(%r14), %rax
cmpq 0xa8(%r14), %rax
je 0x317f
leaq 0xa080(%rip), %rbp      # 0xd196
movabsq $-0x5555555555555555, %r12 # imm = 0xAAAAAAAAAAAAAAAB
xorl %r13d, %r13d
xorl %r15d, %r15d
movq %rbx, %rdi
leaq 0xa075(%rip), %rsi      # 0xd1a5
movq %r15, %rdx
xorl %eax, %eax
callq 0x21b0
movq 0xa8(%r14), %rsi
addq %r13, %rsi
movq %rbx, %rdi
leaq 0xa019(%rip), %rdx      # 0xd167
leaq 0xa3f9(%rip), %rcx      # 0xd54e
movq %rbp, %r8
callq 0x3b7d
incq %r15
movq 0xb0(%r14), %rax
subq 0xa8(%r14), %rax
sarq $0x3, %rax
imulq %r12, %rax
addq $0x18, %r13
cmpq %rax, %r15
jb 0x3126
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq