// File: /workspace/github_cpp_makefile_star2_O3/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 0x62d7
movq 0x8(%rbx), %rdi
callq 0x5530
movl %eax, %ebx
movq %rsp, %r14
movq %r14, %rdi
callq 0x692a
xorl %eax, %eax
leaq 0x20(%rsp), %rdx
movl %eax, 0x18(%rdx)
xorps %xmm0, %xmm0
rolw $0x8, %bx
movups %xmm0, 0x8(%rdx)
movw $0x2, (%rdx)
movw %bx, 0x2(%rdx)
movl %eax, 0x4(%rdx)
leaq 0x40(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
xorl %r8d, %r8d
callq 0x6a5e
leaq 0x40(%rsp), %rdi
movl $0x1000, %esi           # imm = 0x1000
callq 0x6c1c
leaq 0x40(%rsp), %rdi
movq %rsp, %rsi
callq 0x5edc
leaq 0x10(%rsp), %rbx
movl $0x0, (%rbx)
callq 0x5220
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x7bae
movl 0x10(%rsp), %esi
testl %esi, %esi
je 0x6266
movq 0x18(%rsp), %rdx
leaq 0x20(%rsp), %rdi
callq 0x86c8
leaq 0x20(%rsp), %rdi
callq 0x7441
leaq 0x20(%rsp), %rdi
callq 0x56a0
leaq 0x40(%rsp), %rdi
callq 0xa46a
movq (%rsp), %rbx
movq 0x38(%rbx), %r14
testq %r14, %r14
je 0x62bf
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq 0x20(%r14), %r14
testq %r14, %r14
jne 0x627d
movq (%rsp), %rbx
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x62bf
movq (%rdi), %rax
movq 0x20(%rdi), %r14
callq *0x8(%rax)
movq %r14, 0x38(%rbx)
movq %r14, %rdi
testq %r14, %r14
jne 0x629c
movq (%rsp), %rbx
testq %rbx, %rbx
je 0x63d4
leaq 0x8(%rbx), %rdi
callq 0x53d0
movq %rbx, %rdi
callq 0x5340
xorl %eax, %eax
jmp 0x63ca
movq 0x12cca(%rip), %r14     # 0x18fa8
leaq 0xad5b(%rip), %rsi      # 0x11040
movl $0x7, %edx
movq %r14, %rdi
callq 0x53b0
movq (%rbx), %r15
testq %r15, %r15
je 0x6316
movq %r15, %rdi
callq 0x51b0
movq 0x12c9f(%rip), %rdi     # 0x18fa8
movq %r15, %rsi
movq %rax, %rdx
callq 0x53b0
jmp 0x632e
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x55a0
movq 0x12c73(%rip), %r14     # 0x18fa8
leaq 0xad0c(%rip), %rsi      # 0x11048
movl $0x8, %edx
movq %r14, %rdi
callq 0x53b0
leaq 0xad01(%rip), %rsi      # 0x11051
movl $0xa, %edx
movq %r14, %rdi
callq 0x53b0
leaq 0xacf8(%rip), %rsi      # 0x1105c
movl $0x2, %edx
movq %r14, %rdi
callq 0x53b0
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x6395
movq %rbx, %rdi
callq 0x51b0
movq 0x12c20(%rip), %rdi     # 0x18fa8
movq %rbx, %rsi
movq %rax, %rdx
callq 0x53b0
jmp 0x63ad
movq (%r14), %rax
movq -0x18(%rax), %rax
leaq (%r14,%rax), %rdi
movl 0x20(%r14,%rax), %esi
orl $0x1, %esi
callq 0x55a0
movq 0x12bf4(%rip), %rdi     # 0x18fa8
leaq 0xaca4(%rip), %rsi      # 0x1105f
movl $0x6, %edx
callq 0x53b0
movl $0x1, %eax
addq $0x70, %rsp
popq %rbx
popq %r14
popq %r15
retq
xorl %ebx, %ebx
jmp 0x62c8
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x56a0
jmp 0x63f2
movq %rax, %rbx
jmp 0x63fc
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0xa46a
movq %rsp, %rdi
callq 0x6ca6
movq %rbx, %rdi
callq 0x55d0
movq %rax, %rdi
callq 0x6e5b