// File: supragya[P]DirectorySync/DirectorySync.cpp
// Function: closeallsystems()
void closeallsystems(){
    std::cout<<"NOTICE: You can shutdown the system by typing <shut>"<<std::endl;
    char input[10];
    while(1) {
        std::cin >> input;
        if(strcmp(input, "shut") == 0){
            std::cout<<"****Shutting down DirectorySync*****"<<std::endl;
            message* closerequest = (message*)malloc(sizeof(message));
            closerequest->valid = 0;
            int sent = send(FCsock, closerequest, sizeof(message), 0);
            free(closerequest);
            std::cout<<        "                                 +---------------------+\n";
            std::cout<<        "                                 | I am in sync. Yes   |\n";
            std::cout<<        "                                 +------------------+--+\n";
            std::cout<<        "                                                    |\n";
            std::cout<<        "                                                    |\n";
            std::cout<<        "  _                                                 |\n";
            std::cout<<        "  \\\\                                                |\n";
            std::cout<<        "   \\\\_          _.-._                               |\n";
            std::cout<<        "    X:\\        (_/ \\_)     <------------------------+\n";
            std::cout<<        "    \\::\\       ( ==  )\n";
            std::cout<<        "     \\::\\       \\== /\n";
            std::cout<<        "    /X:::\\   .-./`-'\\.--.\n";
            std::cout<<        "    \\\\/\\::\\ / /     (    l\n";
            std::cout<<        "     ~\\ \\::\\ /      `.   L.\n";
            std::cout<<        "       \\/:::|         `.'  `\n";
            std::cout<<        "       /:/\\:|          (    `.\n";
            std::cout<<        "       \\/`-'`.          >    )\n";
            std::cout<<        "              \\       //  .-'\n";
            std::cout<<        "               |     /(  .'\n";
            std::cout<<        "               `-..-'_ \\  \\\n";
            std::cout<<        "               __||/_ \\ `-'\n";
            std::cout<<        "              / _ \\ #  |\n";
            std::cout<<        "             |  #  |#  |   B-SD3 Security Droid\n";
            std::cout<<        "          LS |  #  |#  |      - Front View -\n";
            exit(0);
        }
        else{
            std::cout<<"(To close, type \"shut\")"<<std::endl;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq 0x6a91(%rip), %rdi      # 0xafd0
leaq 0x35f7(%rip), %rsi      # 0x7b3d
callq 0x21d0
movq %rax, %rdi
movq 0x6a63(%rip), %rsi      # 0xafb8
callq 0x21f0
leaq -0xa(%rbp), %rsi
movq 0x6a7b(%rip), %rdi      # 0xafe0
callq 0x5230
leaq -0xa(%rbp), %rdi
leaq 0x35fd(%rip), %rsi      # 0x7b72
callq 0x2290
cmpl $0x0, %eax
jne 0x47ae
movq 0x6a46(%rip), %rdi      # 0xafd0
leaq 0x35e6(%rip), %rsi      # 0x7b77
callq 0x21d0
movq %rax, %rdi
movq 0x6a18(%rip), %rsi      # 0xafb8
callq 0x21f0
movl $0x400, %edi            # imm = 0x400
callq 0x2260
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl $0x0, (%rax)
movl 0x1fced(%rip), %edi     # 0x242b0
movq -0x18(%rbp), %rsi
movl $0x400, %edx            # imm = 0x400
xorl %ecx, %ecx
callq 0x2100
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rdi
callq 0x2220
movq 0x69ea(%rip), %rdi      # 0xafd0
leaq 0x2de4(%rip), %rsi      # 0x73d1
callq 0x21d0
movq 0x69d7(%rip), %rdi      # 0xafd0
leaq 0x2e0b(%rip), %rsi      # 0x740b
callq 0x21d0
movq 0x69c4(%rip), %rdi      # 0xafd0
leaq 0x2e32(%rip), %rsi      # 0x7445
callq 0x21d0
movq 0x69b1(%rip), %rdi      # 0xafd0
leaq 0x2e59(%rip), %rsi      # 0x747f
callq 0x21d0
movq 0x699e(%rip), %rdi      # 0xafd0
leaq 0x2e46(%rip), %rsi      # 0x747f
callq 0x21d0
movq 0x698b(%rip), %rdi      # 0xafd0
leaq 0x2e6a(%rip), %rsi      # 0x74b6
callq 0x21d0
movq 0x6978(%rip), %rdi      # 0xafd0
leaq 0x2e8e(%rip), %rsi      # 0x74ed
callq 0x21d0
movq 0x6965(%rip), %rdi      # 0xafd0
leaq 0x2eb2(%rip), %rsi      # 0x7524
callq 0x21d0
movq 0x6952(%rip), %rdi      # 0xafd0
leaq 0x2ed6(%rip), %rsi      # 0x755b
callq 0x21d0
movq 0x693f(%rip), %rdi      # 0xafd0
leaq 0x2efa(%rip), %rsi      # 0x7592
callq 0x21d0
movq 0x692c(%rip), %rdi      # 0xafd0
leaq 0x2eff(%rip), %rsi      # 0x75aa
callq 0x21d0
movq 0x6919(%rip), %rdi      # 0xafd0
leaq 0x2f03(%rip), %rsi      # 0x75c1
callq 0x21d0
movq 0x6906(%rip), %rdi      # 0xafd0
leaq 0x2f0b(%rip), %rsi      # 0x75dc
callq 0x21d0
movq 0x68f3(%rip), %rdi      # 0xafd0
leaq 0x2f14(%rip), %rsi      # 0x75f8
callq 0x21d0
movq 0x68e0(%rip), %rdi      # 0xafd0
leaq 0x2f1e(%rip), %rsi      # 0x7615
callq 0x21d0
movq 0x68cd(%rip), %rdi      # 0xafd0
leaq 0x2f29(%rip), %rsi      # 0x7633
callq 0x21d0
movq 0x68ba(%rip), %rdi      # 0xafd0
leaq 0x2f36(%rip), %rsi      # 0x7653
callq 0x21d0
movq 0x68a7(%rip), %rdi      # 0xafd0
leaq 0x2f43(%rip), %rsi      # 0x7673
callq 0x21d0
movq 0x6894(%rip), %rdi      # 0xafd0
leaq 0x2f4f(%rip), %rsi      # 0x7692
callq 0x21d0
movq 0x6881(%rip), %rdi      # 0xafd0
leaq 0x2f59(%rip), %rsi      # 0x76af
callq 0x21d0
movq 0x686e(%rip), %rdi      # 0xafd0
leaq 0x2f63(%rip), %rsi      # 0x76cc
callq 0x21d0
movq 0x685b(%rip), %rdi      # 0xafd0
leaq 0x2f6d(%rip), %rsi      # 0x76e9
callq 0x21d0
movq 0x6848(%rip), %rdi      # 0xafd0
leaq 0x2f74(%rip), %rsi      # 0x7703
callq 0x21d0
movq 0x6835(%rip), %rdi      # 0xafd0
leaq 0x2f92(%rip), %rsi      # 0x7734
callq 0x21d0
xorl %edi, %edi
callq 0x2230
movq 0x681b(%rip), %rdi      # 0xafd0
leaq 0x33e0(%rip), %rsi      # 0x7b9c
callq 0x21d0
movq %rax, %rdi
movq 0x67ed(%rip), %rsi      # 0xafb8
callq 0x21f0
jmp 0x455a
nopw %cs:(%rax,%rax)