// File: /workspace/github_cpp_makefile_star2_O1/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, 0xd0(%rsp)
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x5dd8
leaq 0xc0(%rsp), %r15
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
xorl %r13d, %r13d
leaq 0x28(%rsp), %r12
leaq 0xb0(%rsp), %rbp
movq (%r14), %rcx
cmpb $0x3a, (%rcx,%r13)
jne 0x5dc6
cmpl $-0x1, %ebx
setne %cl
testq %r13, %r13
sete %dl
leaq 0x1(%r13), %rsi
cmpq %rax, %rsi
sete %al
orb %cl, %dl
orb %al, %dl
je 0x5dc3
movq %r12, %rdi
leaq 0x9331(%rip), %rsi      # 0xf04e
movq %r14, %rdx
callq 0x84cf
movq %r12, %rdi
leaq 0x9334(%rip), %rsi      # 0xf063
callq 0x5660
movq %r15, 0xb0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5d60
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0x5d67
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0xb8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %rbp, %rdi
callq 0xe98e
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x5da7
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x5dc3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5360
movl %r13d, %ebx
incq %r13
movq 0x8(%r14), %rax
cmpq %r13, %rax
ja 0x5ce5
jmp 0x5ddd
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $-0x1, %ebx
jne 0x5e9f
leaq 0x9261(%rip), %rsi      # 0xf04e
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r14, %rdx
callq 0x84cf
leaq 0x9261(%rip), %rsi      # 0xf065
movq %r15, %rdi
callq 0x5660
leaq 0x128(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x5e3c
movq %rdx, 0x118(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x128(%rsp)
jmp 0x5e43
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x118(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
callq 0xe98e
movq 0x118(%rsp), %rdi
cmpq %r15, %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
movslq %ebx, %rcx
leaq 0x28(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x5380
incl %ebx
movslq %ebx, %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 0x61fc
movq %rax, %r12
movslq %r12d, %rax
cmpq %r12, %rax
jne 0x6208
movl (%rbp), %eax
cmpl $0x22, %eax
je 0x6208
testl %eax, %eax
jne 0x5f29
movl %r15d, (%rbp)
leaq 0x18(%rsp), %rbp
movq -0x10(%rbp), %rdi
cmpq %rbp, %rdi
je 0x5f44
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
movq %r12, %rax
shrq $0x10, %rax
testw %ax, %ax
je 0x616d
leaq 0x90(%rsp), %rdi
movq %r14, %rsi
movq 0x88(%rsp), %rdx
movq $-0x1, %rcx
callq 0x5380
leaq 0x910f(%rip), %rcx      # 0xf089
leaq 0x90(%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 0x5fb8
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x5fbe
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 0x90e8(%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 0x600d
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x6015
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 0x6060
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6067
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 0x900d(%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 0x60bf
movq %rdx, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x60c6
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 0xe98e
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6107
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x611e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x6135
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x614c
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x616d
movq 0xa0(%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 0x965a
movzwl %r12w, %edx
leaq 0x138(%rsp), %rsi
movq 0xd0(%rsp), %r14
movq %r14, %rdi
callq 0x862c
movq 0x138(%rsp), %rdi
cmpq %rbx, %rdi
je 0x61cc
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x61e7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5360
movq %r14, %rax
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9304(%rip), %rdi      # 0xf507
callq 0x51e0
leaq 0x92f8(%rip), %rdi      # 0xf507
callq 0x54f0
movq %rax, %r12
movq 0x118(%rsp), %rdi
cmpq %r15, %rdi
je 0x6309
movq 0x128(%rsp), %rsi
jmp 0x62fc
jmp 0x6306
movq %rdx, (%rsp)
movq %rax, %r12
movq 0xf8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6267
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x6267
movq %rdx, (%rsp)
movq %rax, %r12
movq 0x8(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6287
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x6287
movq %rdx, (%rsp)
movq %rax, %r12
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0x62a7
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x62a7
movq %rdx, (%rsp)
movq %rax, %r12
movq 0x68(%rsp), %rdi
cmpq %rbx, %rdi
je 0x62c7
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x62c7
movq %rdx, (%rsp)
movq %rax, %r12
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x634c
movq 0xa0(%rsp), %rsi
jmp 0x6344
jmp 0x6317
movq %rax, %r12
movq 0x138(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6309
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x6309
movq %rax, %r12
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x65e7
movq %rdx, (%rsp)
movq %rax, %r12
jmp 0x634c
movq %rdx, (%rsp)
movq %rax, %r12
cmpl $0x0, (%rbp)
jne 0x6331
movl %r15d, (%rbp)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x634c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
cmpl $0x1, (%rsp)
jne 0x6309
movq %r12, %rdi
callq 0x5130
leaq 0x90(%rsp), %rdi
movq %r14, %rsi
movq 0x88(%rsp), %rdx
movq $-0x1, %rcx
callq 0x5380
leaq 0x8d33(%rip), %rsi      # 0xf0b3
leaq 0x68(%rsp), %rdi
leaq 0x90(%rsp), %rdx
callq 0x85b1
leaq 0x8d2f(%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 0x63ca
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x63d0
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 0x8557
leaq 0x8c63(%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 0x643a
movq %rdx, 0xd8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe8(%rsp)
jmp 0x6441
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 0xe98e
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6482
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x649d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x64b4
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64cf
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5360
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x64f0
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5360
callq 0x5570
jmp 0x616d
jmp 0x6306
movq %rax, %r12
movq 0xd8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6524
movq 0xe8(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x6524
movq %rax, %r12
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6544
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x6544
movq %rax, %r12
movq 0x48(%rsp), %rdi
cmpq %rbx, %rdi
je 0x6560
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x6560
movq %rax, %r12
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6580
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x6580
movq %rax, %r12
leaq 0xa0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x65a6
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x65a6
movq %rax, %r12
callq 0x5570
jmp 0x6309
movq %rax, %rdi
callq 0x8621
movq %rax, %r12
movq 0xb0(%rsp), %rdi
cmpq %r15, %rdi
je 0x65dd
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x5360
jmp 0x65dd
movq %rax, %r12
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x65f9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x5360
movq %r12, %rdi
callq 0x55f0