// File: XuhuiSun95[P]Ticket-Booking-Service/server/ServerInterface.cpp
// Function: ServerInterface::PrintStatus()
void ServerInterface::PrintStatus() {

    if(mServer)
        std::cout << "Server [" << mServerName << "] is current running..." << std::endl;
    else
        std::cout << "Server [" << mServerName << "] is waiting for host..." << std::endl;

    std::cout << "--------------------------------------------------" << std::endl;
    std::cout << "|" 
              << std::setw(30) << std::right << "Server INFO"
              << std::setw(19) << std::right << "|" << std::endl;
    std::cout << std::setw(48 - mServerInfo.first.length()) 
              << std::left << "| ip address: " << mServerInfo.first
              << " |" << std::endl;
    std::cout << std::setw(48 - std::to_string(mServerInfo.second).length()) 
              << std::left << "| port #: " << mServerInfo.second
              << " |" << std::endl;
    std::cout << "--------------------------------------------------" << std::endl;
    std::cout << "|" 
              << std::setw(32) << std::right << "Pair Server INFO"
              << std::setw(17) << std::right << "|" << std::endl;
    std::cout << std::setw(48 - mPairInfo.first.length()) 
              << std::left << "| ip address: " << mPairInfo.first
              << " |" << std::endl;
    std::cout << std::setw(48 - std::to_string(mPairInfo.second).length()) 
              << std::left << "| port #: " << mPairInfo.second
              << " |" << std::endl;
    std::cout << "--------------------------------------------------" << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
testb $0x1, 0x1(%rax)
je 0x46e0
movq 0x5924(%rip), %rdi      # 0x9fc8
leaq 0x1ba8(%rip), %rsi      # 0x6253
callq 0x21f0
movq -0x80(%rbp), %rsi
movq %rax, %rdi
addq $0x8, %rsi
callq 0x21c0
movq %rax, %rdi
leaq 0x1b92(%rip), %rsi      # 0x625c
callq 0x21f0
movq %rax, %rdi
movq 0x58d7(%rip), %rsi      # 0x9fb0
callq 0x2220
jmp 0x4721
movq 0x58e1(%rip), %rdi      # 0x9fc8
leaq 0x1b65(%rip), %rsi      # 0x6253
callq 0x21f0
movq -0x80(%rbp), %rsi
movq %rax, %rdi
addq $0x8, %rsi
callq 0x21c0
movq %rax, %rdi
leaq 0x1b67(%rip), %rsi      # 0x6274
callq 0x21f0
movq %rax, %rdi
movq 0x5894(%rip), %rsi      # 0x9fb0
callq 0x2220
movq 0x58a0(%rip), %rdi      # 0x9fc8
movq %rdi, -0xa8(%rbp)
leaq 0x1b57(%rip), %rsi      # 0x628d
callq 0x21f0
movq %rax, %rdi
movq 0x586b(%rip), %rsi      # 0x9fb0
movq %rsi, -0x98(%rbp)
callq 0x2220
movq -0xa8(%rbp), %rdi
leaq 0x1b71(%rip), %rsi      # 0x62d0
movq %rsi, -0xb0(%rbp)
callq 0x21f0
movq %rax, -0xc8(%rbp)
movl $0x1e, %edi
callq 0x4d10
movq -0xc8(%rbp), %rdi
movl %eax, -0xc(%rbp)
movl -0xc(%rbp), %esi
callq 0x2250
movq %rax, %rdi
leaq 0x598(%rip), %rsi       # 0x4d30
movq %rsi, -0xb8(%rbp)
callq 0x20c0
movq %rax, %rdi
leaq 0x1a2d(%rip), %rsi      # 0x61db
callq 0x21f0
movq %rax, -0xc0(%rbp)
movl $0x13, %edi
callq 0x4d10
movq -0xc0(%rbp), %rdi
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %esi
callq 0x2250
movq -0xb8(%rbp), %rsi
movq %rax, %rdi
callq 0x20c0
movq -0xb0(%rbp), %rsi
movq %rax, %rdi
callq 0x21f0
movq -0x98(%rbp), %rsi
movq %rax, %rdi
callq 0x2220
movq -0x80(%rbp), %rdi
addq $0x28, %rdi
movq %rdi, -0xa0(%rbp)
callq 0x22e0
movl $0x30, %edi
movl %edi, -0x88(%rbp)
subl %eax, %edi
callq 0x4d10
movq -0xa8(%rbp), %rdi
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %esi
callq 0x2250
movq %rax, %rdi
leaq 0x51b(%rip), %rsi       # 0x4d60
callq 0x20c0
movq %rax, %rdi
leaq 0x1a6c(%rip), %rsi      # 0x62c0
callq 0x21f0
movq -0xa0(%rbp), %rsi
movq %rax, %rdi
callq 0x21c0
movq %rax, %rdi
leaq 0x1a5d(%rip), %rsi      # 0x62cf
callq 0x21f0
movq -0x98(%rbp), %rsi
movq %rax, %rdi
callq 0x2220
movq -0x80(%rbp), %rax
movl 0x48(%rax), %esi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x4e10
movq -0x90(%rbp), %rdi
callq 0x22e0
movl -0x88(%rbp), %edi
subl %eax, %edi
callq 0x4d10
movl %eax, -0x84(%rbp)
jmp 0x48be
movl -0x84(%rbp), %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %esi
movq 0x56f7(%rip), %rdi      # 0x9fc8
callq 0x2250
movq %rax, -0xd0(%rbp)
jmp 0x48df
movq -0xd0(%rbp), %rdi
leaq 0x473(%rip), %rsi       # 0x4d60
callq 0x20c0
movq %rax, -0xd8(%rbp)
jmp 0x48fb
movq -0xd8(%rbp), %rdi
leaq 0x19c9(%rip), %rsi      # 0x62d2
callq 0x21f0
movq %rax, -0xe0(%rbp)
jmp 0x4917
movq -0xe0(%rbp), %rdi
movq -0x80(%rbp), %rax
movl 0x48(%rax), %esi
callq 0x2330
movq %rax, -0xe8(%rbp)
jmp 0x4933
movq -0xe8(%rbp), %rdi
leaq 0x198e(%rip), %rsi      # 0x62cf
callq 0x21f0
movq %rax, -0xf0(%rbp)
jmp 0x494f
movq -0xf0(%rbp), %rdi
movq 0x5653(%rip), %rsi      # 0x9fb0
callq 0x2220
jmp 0x4964
leaq -0x38(%rbp), %rdi
callq 0x2150
movq 0x5654(%rip), %rdi      # 0x9fc8
movq %rdi, -0x118(%rbp)
leaq 0x190b(%rip), %rsi      # 0x628d
callq 0x21f0
movq %rax, %rdi
movq 0x561f(%rip), %rsi      # 0x9fb0
movq %rsi, -0x108(%rbp)
callq 0x2220
movq -0x118(%rbp), %rdi
leaq 0x1925(%rip), %rsi      # 0x62d0
movq %rsi, -0x120(%rbp)
callq 0x21f0
movq %rax, -0x138(%rbp)
movl $0x20, %edi
callq 0x4d10
movq -0x138(%rbp), %rdi
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %esi
callq 0x2250
movq %rax, %rdi
leaq 0x34c(%rip), %rsi       # 0x4d30
movq %rsi, -0x128(%rbp)
callq 0x20c0
movq %rax, %rdi
leaq 0x1820(%rip), %rsi      # 0x621a
callq 0x21f0
movq %rax, -0x130(%rbp)
movl $0x11, %edi
callq 0x4d10
movq -0x130(%rbp), %rdi
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %esi
callq 0x2250
movq -0x128(%rbp), %rsi
movq %rax, %rdi
callq 0x20c0
movq -0x120(%rbp), %rsi
movq %rax, %rdi
callq 0x21f0
movq -0x108(%rbp), %rsi
movq %rax, %rdi
callq 0x2220
movq -0x80(%rbp), %rdi
addq $0x50, %rdi
movq %rdi, -0x110(%rbp)
callq 0x22e0
movl $0x30, %edi
movl %edi, -0xf8(%rbp)
subl %eax, %edi
callq 0x4d10
movq -0x118(%rbp), %rdi
movl %eax, -0x50(%rbp)
movl -0x50(%rbp), %esi
callq 0x2250
movq %rax, %rdi
leaq 0x2cf(%rip), %rsi       # 0x4d60
callq 0x20c0
movq %rax, %rdi
leaq 0x1820(%rip), %rsi      # 0x62c0
callq 0x21f0
movq -0x110(%rbp), %rsi
movq %rax, %rdi
callq 0x21c0
movq %rax, %rdi
leaq 0x1811(%rip), %rsi      # 0x62cf
callq 0x21f0
movq -0x108(%rbp), %rsi
movq %rax, %rdi
callq 0x2220
movq -0x80(%rbp), %rax
movl 0x70(%rax), %esi
leaq -0x78(%rbp), %rdi
movq %rdi, -0x100(%rbp)
callq 0x4e10
movq -0x100(%rbp), %rdi
callq 0x22e0
movl -0xf8(%rbp), %edi
subl %eax, %edi
callq 0x4d10
movl %eax, -0xf4(%rbp)
jmp 0x4b0a
movl -0xf4(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %esi
movq 0x54ab(%rip), %rdi      # 0x9fc8
callq 0x2250
movq %rax, -0x140(%rbp)
jmp 0x4b2b
movq -0x140(%rbp), %rdi
leaq 0x227(%rip), %rsi       # 0x4d60
callq 0x20c0
movq %rax, -0x148(%rbp)
jmp 0x4b47
movq -0x148(%rbp), %rdi
leaq 0x177d(%rip), %rsi      # 0x62d2
callq 0x21f0
movq %rax, -0x150(%rbp)
jmp 0x4b63
movq -0x150(%rbp), %rdi
movq -0x80(%rbp), %rax
movl 0x70(%rax), %esi
callq 0x2330
movq %rax, -0x158(%rbp)
jmp 0x4b7f
movq -0x158(%rbp), %rdi
leaq 0x1742(%rip), %rsi      # 0x62cf
callq 0x21f0
movq %rax, -0x160(%rbp)
jmp 0x4b9b
movq -0x160(%rbp), %rdi
movq 0x5407(%rip), %rsi      # 0x9fb0
callq 0x2220
jmp 0x4bb0
leaq -0x78(%rbp), %rdi
callq 0x2150
movq 0x5408(%rip), %rdi      # 0x9fc8
leaq 0x16c6(%rip), %rsi      # 0x628d
callq 0x21f0
movq %rax, %rdi
movq 0x53da(%rip), %rsi      # 0x9fb0
callq 0x2220
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x2150
jmp 0x4c10
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x2150
movq -0x40(%rbp), %rdi
callq 0x2350
nopl (%rax)