// File: /workspace/github_cpp_makefile_star2_O3/brianbbsu[P]TCP-Ping/src/client.cpp
// Function: cmd_to_target(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
target cmd_to_target(std::string s){
    int p = -1;
    for(int i = 0;i < s.size();i += 1)if(s[i] == ':'){
        if(p != -1 || i == 0 || i + 1 == s.size())quit("Can not parse target '" + s + "'");
        p = i;
    }
    if(p == -1)quit("Can not parse target '" + s + "', maybe the port number is missing");
    std::string host = s.substr(0, p);
    uint16_t port;
    try{
        int _port = std::stoi(s.substr(p + 1));
        if(_port < 0 || _port > 65535)quit("Invalid port " + s.substr(p + 1) + " in target '" + s + "', shoulde be in [0, 65535]");
        port = _port;
    }catch(const std::invalid_argument& ia){
        quit("Can not parse port '" + s.substr(p + 1) + "' in target '" + s + "'");
    }
    return target(host, port);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movq %rsi, %r14
movq %rdi, 0x90(%rsp)
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x5de7
leaq 0xc8(%rsp), %rbx
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r15d, %r15d
leaq 0x28(%rsp), %r12
leaq 0xb8(%rsp), %rbp
movq (%r14), %rdx
cmpb $0x3a, (%rdx,%r15)
jne 0x5d61
cmpl $-0x1, %ecx
setne %cl
testq %r15, %r15
sete %dl
leaq 0x1(%r15), %r13
cmpq %r13, %rax
sete %sil
orb %cl, %dl
orb %sil, %dl
cmpb $0x1, %dl
jne 0x5dcf
movq %r12, %rdi
leaq 0x9330(%rip), %rsi      # 0xf04e
movq %r14, %rdx
callq 0x84a5
movq %r12, %rdi
leaq 0x9333(%rip), %rsi      # 0xf063
callq 0x5660
movq %rbx, 0xb8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5d69
movq %rdx, 0xb8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc8(%rsp)
jmp 0x5d6f
incq %r15
movq %r15, %r13
jmp 0x5dd2
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0xc0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbp, %rdi
callq 0xe876
movq 0xb8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5daf
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x5dcb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x8(%r14), %rax
movl %r15d, %ecx
movq %r13, %r15
cmpq %r13, %rax
ja 0x5ce5
cmpl $-0x1, %ecx
jne 0x5ea4
leaq 0x9260(%rip), %rsi      # 0xf04e
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x84a5
leaq 0x9260(%rip), %rsi      # 0xf065
movq %r15, %rdi
callq 0x5660
leaq 0x128(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5e3d
movq %rdx, 0x118(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x128(%rsp)
jmp 0x5e43
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0x118(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0xe876
movq 0x118(%rsp), %rdi
cmpq %rbx, %rdi
je 0x5e84
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5e9f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5360
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movslq %ecx, %r15
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
movq %r15, %rcx
callq 0x5380
incl %r15d
movslq %r15d, %rdx
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %rdx, 0x88(%rsp)
movq $-0x1, %rcx
callq 0x5380
movq 0x8(%rsp), %r13
callq 0x5050
movq %rax, %rbp
movl (%rax), %r15d
movl $0x0, (%rax)
leaq 0x48(%rsp), %rbx
movq %r13, %rdi
movq %rbx, %rsi
movl $0xa, %edx
callq 0x54d0
cmpq %r13, (%rbx)
je 0x6207
movq %rax, %r12
movslq %r12d, %rax
cmpq %r12, %rax
jne 0x6213
movl (%rbp), %eax
cmpl $0x22, %eax
je 0x6213
testl %eax, %eax
jne 0x5f32
movl %r15d, (%rbp)
leaq 0x18(%rsp), %rbp
movq -0x10(%rbp), %rdi
cmpq %rbp, %rdi
je 0x5f4d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
movq %r12, %rax
shrq $0x10, %rax
testw %ax, %ax
je 0x6176
leaq 0x98(%rsp), %rdi
movq %r14, %rsi
movq 0x88(%rsp), %rdx
movq $-0x1, %rcx
callq 0x5380
leaq 0x9106(%rip), %rcx      # 0xf089
leaq 0x98(%rsp), %rdi
movl $0xd, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x53c0
leaq 0x78(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5fc1
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x5fc7
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0x68(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x90df(%rip), %rsi      # 0xf0c9
callq 0x5660
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6016
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x601e
movups (%rcx), %xmm0
movups %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x5110
movq %rbp, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6069
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6070
movups (%rcx), %xmm0
movups %xmm0, (%rbp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x9004(%rip), %rsi      # 0xf097
callq 0x5660
leaq 0x108(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x60c8
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x60cf
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0xf8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0xe876
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6110
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6127
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x613e
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6155
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6176
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x148(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
addq %rsi, %rdx
leaq 0x138(%rsp), %rdi
callq 0x9636
movzwl %r12w, %edx
leaq 0x138(%rsp), %rsi
movq 0x90(%rsp), %rdi
callq 0x8602
movq 0x138(%rsp), %rdi
cmpq %rbx, %rdi
je 0x61d2
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x61ed
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x90(%rsp), %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x92f9(%rip), %rdi      # 0xf507
callq 0x51e0
leaq 0x92ed(%rip), %rdi      # 0xf507
callq 0x54f0
movq %rax, %r12
movq 0x118(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6314
movq 0x128(%rsp), %rsi
jmp 0x6307
jmp 0x6311
movq %rdx, (%rsp)
movq %rax, %r12
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6272
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x6272
movq %rdx, (%rsp)
movq %rax, %r12
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6292
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x6292
movq %rdx, (%rsp)
movq %rax, %r12
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x62b2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x62b2
movq %rdx, (%rsp)
movq %rax, %r12
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x62d2
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x62d2
movq %rdx, (%rsp)
movq %rax, %r12
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6357
movq 0xa8(%rsp), %rsi
jmp 0x634f
jmp 0x6322
movq %rax, %r12
movq 0x138(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6314
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x6314
movq %rax, %r12
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x65f2
movq %rdx, (%rsp)
movq %rax, %r12
jmp 0x6357
movq %rdx, (%rsp)
movq %rax, %r12
cmpl $0x0, (%rbp)
jne 0x633c
movl %r15d, (%rbp)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6357
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
cmpl $0x1, (%rsp)
jne 0x6314
movq %r12, %rdi
callq 0x5130
leaq 0x98(%rsp), %rdi
movq %r14, %rsi
movq 0x88(%rsp), %rdx
movq $-0x1, %rcx
callq 0x5380
leaq 0x8d28(%rip), %rsi      # 0xf0b3
leaq 0x68(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0x8587
leaq 0x8d24(%rip), %rsi      # 0xf0c8
leaq 0x68(%rsp), %rdi
callq 0x5660
leaq 0x58(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x63d5
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x63db
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0x852d
leaq 0x8c58(%rip), %rsi      # 0xf063
leaq 0x8(%rsp), %rdi
callq 0x5660
leaq 0xe8(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6445
movq %rdx, 0xd8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe8(%rsp)
jmp 0x644c
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0xd8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0xe876
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x648d
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64a8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x64bf
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64da
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64fb
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x5360
callq 0x5570
jmp 0x6176
jmp 0x6311
movq %rax, %r12
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x652f
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x652f
movq %rax, %r12
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x654f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x654f
movq %rax, %r12
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x656b
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x656b
movq %rax, %r12
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x658b
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x658b
movq %rax, %r12
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65b1
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x65b1
movq %rax, %r12
callq 0x5570
jmp 0x6314
movq %rax, %rdi
callq 0x85f7
movq %rax, %r12
movq 0xb8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x65e8
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x65e8
movq %rax, %r12
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6604
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5360
movq %r12, %rdi
callq 0x55f0