// File: Couragewang[P]50_clss/TcpServer.cc
// Function: main
int main(int argc, char *argv[])
{
    if(argc != 2){
        Usage(argv[0]);
        exit(1);
    }

    dict.insert(std::pair<std::string, std::string>("apple", "苹果"));
    dict.insert(std::pair<std::string, std::string>("banana", "香蕉"));
    dict.insert(std::pair<std::string, std::string>("peach", "桃子"));
    dict.insert(std::pair<std::string, std::string>("lemon", "柠檬"));

    int port = atoi(argv[1]);
    TcpServer *tsp = new TcpServer(port);
    tsp->InitServer();
    tsp->Start();
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x210, %rsp            # imm = 0x210
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpl $0x2, -0x8(%rbp)
je 0x25e2
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x1a8(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x1a0(%rbp)
callq 0x2320
movq -0x1a8(%rbp), %rsi
movq -0x1a0(%rbp), %rdx
leaq -0x30(%rbp), %rdi
callq 0x2250
jmp 0x258a
leaq -0x30(%rbp), %rdi
callq 0x24d0
jmp 0x2595
leaq -0x30(%rbp), %rdi
callq 0x2120
leaq -0x31(%rbp), %rdi
callq 0x2200
movl $0x1, %edi
callq 0x2240
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x25d4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x2120
leaq -0x31(%rbp), %rdi
callq 0x2200
jmp 0x286e
leaq 0x3a29(%rip), %rsi      # 0x6012
leaq 0x3a28(%rip), %rdx      # 0x6018
leaq -0x88(%rbp), %rdi
movq %rdi, -0x1c0(%rbp)
callq 0x2900
movq -0x1c0(%rbp), %rsi
leaq 0x7bc7(%rip), %rdi      # 0xa1d8
callq 0x28c0
movb %dl, -0x1b1(%rbp)
movq %rax, -0x1b0(%rbp)
jmp 0x2625
movb -0x1b1(%rbp), %al
movq -0x1b0(%rbp), %rcx
movq %rcx, -0x98(%rbp)
movb %al, -0x90(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x29e0
leaq 0x39cd(%rip), %rsi      # 0x601f
leaq 0x39cd(%rip), %rdx      # 0x6026
leaq -0xd8(%rbp), %rdi
movq %rdi, -0x1d8(%rbp)
callq 0x2a10
movq -0x1d8(%rbp), %rsi
leaq 0x7b5e(%rip), %rdi      # 0xa1d8
callq 0x28c0
movb %dl, -0x1c9(%rbp)
movq %rax, -0x1c8(%rbp)
jmp 0x268e
movb -0x1c9(%rbp), %al
movq -0x1c8(%rbp), %rcx
movq %rcx, -0xe8(%rbp)
movb %al, -0xe0(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x29e0
leaq 0x3972(%rip), %rsi      # 0x602d
leaq 0x3971(%rip), %rdx      # 0x6033
leaq -0x128(%rbp), %rdi
movq %rdi, -0x1f0(%rbp)
callq 0x2900
movq -0x1f0(%rbp), %rsi
leaq 0x7af5(%rip), %rdi      # 0xa1d8
callq 0x28c0
movb %dl, -0x1e1(%rbp)
movq %rax, -0x1e0(%rbp)
jmp 0x26f7
movb -0x1e1(%rbp), %al
movq -0x1e0(%rbp), %rcx
movq %rcx, -0x138(%rbp)
movb %al, -0x130(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x29e0
leaq 0x3916(%rip), %rsi      # 0x603a
leaq 0x3915(%rip), %rdx      # 0x6040
leaq -0x178(%rbp), %rdi
movq %rdi, -0x208(%rbp)
callq 0x2900
movq -0x208(%rbp), %rsi
leaq 0x7a8c(%rip), %rdi      # 0xa1d8
callq 0x28c0
movb %dl, -0x1f9(%rbp)
movq %rax, -0x1f8(%rbp)
jmp 0x2760
movb -0x1f9(%rbp), %al
movq -0x1f8(%rbp), %rcx
movq %rcx, -0x188(%rbp)
movb %al, -0x180(%rbp)
leaq -0x178(%rbp), %rdi
callq 0x29e0
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x22c0
movl %eax, -0x18c(%rbp)
movl $0xb8, %edi
callq 0x21d0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x210(%rbp)
movl -0x18c(%rbp), %esi
callq 0x2af0
jmp 0x27bd
movq -0x210(%rbp), %rax
movq %rax, -0x198(%rbp)
movq -0x198(%rbp), %rdi
callq 0x2b30
movq -0x198(%rbp), %rdi
callq 0x2c90
xorl %eax, %eax
addq $0x210, %rsp            # imm = 0x210
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x88(%rbp), %rdi
callq 0x29e0
jmp 0x286e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x29e0
jmp 0x286e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x128(%rbp), %rdi
callq 0x29e0
jmp 0x286e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x178(%rbp), %rdi
callq 0x29e0
jmp 0x286e
movq -0x210(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
callq 0x21b0
movq -0x40(%rbp), %rdi
callq 0x2310
nopw (%rax,%rax)