// File: /workspace/github_cpp_makefile_star2_O1/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r12
movb 0x1(%rdi), %bl
movq 0x386a(%rip), %r14      # 0x6fd0
leaq 0x1b10(%rip), %rsi      # 0x527d
movl $0x8, %edx
movq %r14, %rdi
callq 0x2210
movq 0x8(%r12), %rsi
movq 0x10(%r12), %rdx
movq %r14, %rdi
callq 0x2210
movq %rax, %r15
cmpb $0x1, %bl
jne 0x37a2
leaq 0x1aeb(%rip), %rsi      # 0x5286
movl $0x17, %edx
jmp 0x37ae
leaq 0x1af5(%rip), %rsi      # 0x529e
movl $0x18, %edx
movq %r15, %rdi
callq 0x2210
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x1ad3(%rip), %rsi      # 0x52b7
movl $0x32, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x1adb(%rip), %r15      # 0x52fa
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0x1e, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0xffffff4f, %r13d      # imm = 0xFFFFFF4F
movl 0x18(%r14,%rax), %ecx
andl %r13d, %ecx
movl $0x80, %ebx
orl %ebx, %ecx
movl %ecx, 0x18(%r14,%rax)
leaq 0x19a1(%rip), %rsi      # 0x5205
movl $0xb, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0x13, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %r13d, %ecx
orl %ebx, %ecx
movl %ecx, 0x18(%r14,%rax)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq (%r14), %rax
movl $0x30, %ecx
subl 0x30(%r12), %ecx
movq -0x18(%rax), %rdx
movslq %ecx, %rcx
movq %rcx, 0x10(%r14,%rdx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %r13d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
leaq 0x19eb(%rip), %rsi      # 0x52ea
movl $0xe, %edx
movq %r14, %rdi
callq 0x2210
movq 0x28(%r12), %rsi
movq 0x30(%r12), %rdx
movq %r14, %rdi
callq 0x2210
movq %rax, %r15
leaq 0x19d1(%rip), %rsi      # 0x52f9
movl $0x2, %edx
movq %rax, %rdi
callq 0x2210
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq %r12, -0x30(%rbp)
movl 0x48(%r12), %ebx
movl %ebx, %r15d
negl %r15d
cmovsl %ebx, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0x39c5
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x39bc
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x39c2
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x39c5
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3989
addl $-0x3, %r12d
jmp 0x39c5
addl $-0x2, %r12d
jmp 0x39c5
decl %r12d
shrl $0x1f, %ebx
movl %ebx, %esi
addl %r12d, %esi
leaq -0x40(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x50(%rbp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2220
movq (%r13), %rdi
addq %rbx, %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x3ebe
movq 0x8(%r13), %rax
movq (%r14), %rcx
movq -0x18(%rcx), %rdx
shlq $0x20, %rax
movabsq $0x3000000000, %rsi     # imm = 0x3000000000
subq %rax, %rsi
sarq $0x20, %rsi
movq %rsi, 0x10(%r14,%rdx)
movq -0x18(%rcx), %rax
movl $0xffffff4f, %ecx       # imm = 0xFFFFFF4F
andl 0x18(%r14,%rax), %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
leaq 0x18c2(%rip), %rsi      # 0x52fc
movl $0xa, %edx
movq %r14, %rdi
callq 0x2210
movq -0x30(%rbp), %r12
movl 0x48(%r12), %esi
movq 0x3579(%rip), %r14      # 0x6fd0
movq %r14, %rdi
callq 0x22c0
movq %rax, %r15
leaq 0x1890(%rip), %rsi      # 0x52f9
movl $0x2, %edx
movq %rax, %rdi
callq 0x2210
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3aaf
callq 0x21c0
leaq 0x1801(%rip), %rsi      # 0x52b7
movl $0x32, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
leaq 0x1809(%rip), %r15      # 0x52fa
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0x20, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl $0xffffff4f, %r13d      # imm = 0xFFFFFF4F
movl 0x18(%r14,%rax), %ecx
andl %r13d, %ecx
movl $0x80, %ebx
orl %ebx, %ecx
movl %ecx, 0x18(%r14,%rax)
leaq 0x170e(%rip), %rsi      # 0x5244
movl $0x10, %edx
movq %r14, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rcx
movq $0x11, 0x10(%r14,%rcx)
movq -0x18(%rax), %rax
movl 0x18(%r14,%rax), %ecx
andl %r13d, %ecx
orl %ebx, %ecx
movl %ecx, 0x18(%r14,%rax)
movl $0x1, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq 0x58(%r12), %rax
movq (%r14), %rcx
movq -0x18(%rcx), %rdx
shlq $0x20, %rax
movabsq $0x3000000000, %rsi     # imm = 0x3000000000
subq %rax, %rsi
sarq $0x20, %rsi
movq %rsi, 0x10(%r14,%rdx)
movq -0x18(%rcx), %rax
movl 0x18(%r14,%rax), %ecx
andl %r13d, %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
leaq 0x170c(%rip), %rsi      # 0x52ea
movl $0xe, %edx
movq %r14, %rdi
callq 0x2210
movq 0x50(%r12), %rsi
movq 0x58(%r12), %rdx
movq %r14, %rdi
callq 0x2210
movq %rax, %r15
leaq 0x16f2(%rip), %rsi      # 0x52f9
movl $0x2, %edx
movq %rax, %rdi
callq 0x2210
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movl 0x70(%r12), %ebx
movl %ebx, %r15d
negl %r15d
cmovsl %ebx, %r15d
movl $0x1, %r12d
cmpl $0xa, %r15d
jb 0x3ca0
movl $0x4, %r12d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x3c97
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3c9d
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3ca0
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r12d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3c64
addl $-0x3, %r12d
jmp 0x3ca0
addl $-0x2, %r12d
jmp 0x3ca0
decl %r12d
shrl $0x1f, %ebx
movl %ebx, %esi
addl %r12d, %esi
leaq -0x50(%rbp), %r13
leaq -0x40(%rbp), %rax
movq %rax, (%r13)
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2220
movq (%r13), %rdi
addq %rbx, %rdi
movl %r12d, %esi
movl %r15d, %edx
callq 0x3ebe
movq 0x8(%r13), %rax
movq (%r14), %rcx
movq -0x18(%rcx), %rdx
shlq $0x20, %rax
movabsq $0x3000000000, %rsi     # imm = 0x3000000000
subq %rax, %rsi
sarq $0x20, %rsi
movq %rsi, 0x10(%r14,%rdx)
movq -0x18(%rcx), %rax
movl $0xffffff4f, %ecx       # imm = 0xFFFFFF4F
andl 0x18(%r14,%rax), %ecx
orl $0x20, %ecx
movl %ecx, 0x18(%r14,%rax)
leaq 0x15e7(%rip), %rsi      # 0x52fc
movl $0xa, %edx
movq %r14, %rdi
callq 0x2210
movq -0x30(%rbp), %rax
movl 0x70(%rax), %esi
movq 0x32a0(%rip), %rbx      # 0x6fd0
movq %rbx, %rdi
callq 0x22c0
movq %rax, %r14
leaq 0x15b7(%rip), %rsi      # 0x52f9
movl $0x2, %edx
movq %rax, %rdi
callq 0x2210
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3d88
callq 0x21c0
leaq 0x1528(%rip), %rsi      # 0x52b7
movl $0x32, %edx
movq %rbx, %rdi
callq 0x2210
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2150
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3dd4
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x3de9
callq 0x21c0
movq %rbx, %rdi
callq 0x22f0
nop