// File: /workspace/github_cpp_makefile_star2_O1/nurseiit[P]cpp-server/server.cpp
// Function: main
int main(int argc, const char *argv[]) {
  if (argc != 2) {
    std::cout << "Usage: " << argv[0] << " <port>\n";
    std::cout << "Examples:\n";
    std::cout << "  " << argv[0] << " 8080\n";
    return EXIT_FAILURE;
  }

  int PORT = std::atoi(argv[1]);

  asio::io_service io_service;
  tcp::acceptor acceptor(io_service, tcp::endpoint(tcp::v4(), PORT));

  acceptor.listen();
  accept_and_run(acceptor, io_service);

  io_service.run();
  return EXIT_SUCCESS;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x70, %rsp
movq %rsi, %rbx
cmpl $0x2, %edi
jne 0x62b2
movq 0x8(%rbx), %rdi
callq 0x5530
movl %eax, %ebx
movq %rsp, %r14
movq %r14, %rdi
callq 0x6950
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdx
movaps %xmm0, (%rdx)
movups %xmm0, 0xc(%rdx)
movw $0x2, (%rdx)
rolw $0x8, %bx
movw %bx, 0x2(%rdx)
movl $0x0, 0x4(%rdx)
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x6a86
leaq 0x40(%rsp), %rdi
movl $0x1000, %esi           # imm = 0x1000
callq 0x6c44
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq 0x5f1c
leaq 0x10(%rsp), %rbx
movl $0x0, (%rbx)
callq 0x5220
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x7bbc
movl 0x10(%rsp), %esi
testl %esi, %esi
je 0x628c
movq 0x18(%rsp), %rdx
leaq 0x20(%rsp), %rdi
callq 0x8722
leaq 0x20(%rsp), %rdi
callq 0x7455
leaq 0x20(%rsp), %rdi
callq 0x56a0
leaq 0x40(%rsp), %rdi
callq 0xa59e
movq (%rsp), %rax
movq 0x38(%rax), %rbx
testq %rbx, %rbx
je 0x62f1
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq 0x20(%rbx), %rbx
jmp 0x629e
movq 0x12cef(%rip), %r14     # 0x18fa8
leaq 0xad80(%rip), %rsi      # 0x11040
movl $0x7, %edx
movq %r14, %rdi
callq 0x53b0
movq (%rbx), %r15
testq %r15, %r15
je 0x6335
movq %r15, %rdi
callq 0x51b0
movq 0x12cc4(%rip), %rdi     # 0x18fa8
movq %r15, %rsi
movq %rax, %rdx
callq 0x53b0
jmp 0x634d
movq (%rsp), %rbx
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x6314
movq (%rdi), %rax
movq 0x20(%rdi), %r14
callq *0x8(%rax)
movq %r14, 0x38(%rbx)
movq %r14, %rdi
testq %r14, %r14
jne 0x62fe
movq (%rsp), %rbx
testq %rbx, %rbx
je 0x632e
leaq 0x8(%rbx), %rdi
callq 0x53d0
movq %rbx, %rdi
callq 0x5340
xorl %eax, %eax
jmp 0x63e9
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x55a0
movq 0x12c54(%rip), %r14     # 0x18fa8
leaq 0xaced(%rip), %rsi      # 0x11048
movl $0x8, %edx
movq %r14, %rdi
callq 0x53b0
leaq 0xace2(%rip), %rsi      # 0x11051
movl $0xa, %edx
movq %r14, %rdi
callq 0x53b0
leaq 0xacd9(%rip), %rsi      # 0x1105c
movl $0x2, %edx
movq %r14, %rdi
callq 0x53b0
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x63b4
movq %rbx, %rdi
callq 0x51b0
movq 0x12c01(%rip), %rdi     # 0x18fa8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x53b0
jmp 0x63cc
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x55a0
movq 0x12bd5(%rip), %rdi     # 0x18fa8
leaq 0xac85(%rip), %rsi      # 0x1105f
movl $0x6, %edx
callq 0x53b0
movl $0x1, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x56a0
jmp 0x640a
movq %rax, %rbx
jmp 0x6414
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xa59e
movq %rsp, %rdi
callq 0x6cce
movq %rbx, %rdi
callq 0x55d0
movq %rax, %rdi
callq 0x6e80