// File: tenup-coin[P]seeder/netbase.cpp
// Function: Lookup(char const*, std::vector<CService, std::allocator<CService>>&, int, bool, unsigned int)
bool Lookup(const char *pszName, std::vector<CService>& vAddr, int portDefault, bool fAllowLookup, unsigned int nMaxSolutions)
{
    if (pszName[0] == 0)
        return false;
    int port = portDefault;
    std::string hostname = "";
    SplitHostPort(std::string(pszName), port, hostname);

    std::vector<CNetAddr> vIP;
    bool fRet = LookupIntern(hostname.c_str(), vIP, nMaxSolutions, fAllowLookup);
    if (!fRet)
        return false;
    vAddr.resize(vIP.size());
    for (unsigned int i = 0; i < vIP.size(); i++)
        vAddr[i] = CService(vIP[i], port);
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp            # imm = 0x100
movb %cl, %al
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
andb $0x1, %al
movb %al, -0x1d(%rbp)
movl %r8d, -0x24(%rbp)
movq -0x10(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0xfd16
movb $0x0, -0x1(%rbp)
jmp 0xff77
movl -0x1c(%rbp), %eax
movl %eax, -0x28(%rbp)
leaq -0x49(%rbp), %rdi
movq %rdi, -0xc8(%rbp)
callq 0x4800
movq -0xc8(%rbp), %rdx
leaq 0x239eb(%rip), %rsi     # 0x33725
leaq -0x48(%rbp), %rdi
callq 0x4690
jmp 0xfd45
leaq -0x49(%rbp), %rdi
callq 0x4520
movq -0x10(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq -0x81(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x4800
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
leaq -0x80(%rbp), %rdi
callq 0x4690
jmp 0xfd85
leaq -0x80(%rbp), %rdi
leaq -0x28(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0xf680
jmp 0xfd98
leaq -0x80(%rbp), %rdi
callq 0x42f0
leaq -0x81(%rbp), %rdi
callq 0x4520
leaq -0xa0(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x152b0
leaq -0x48(%rbp), %rdi
callq 0x41e0
movq -0xe8(%rbp), %rsi
movq %rax, %rdi
movl -0x24(%rbp), %edx
movzbl -0x1d(%rbp), %ecx
andl $0x1, %ecx
callq 0xf9a0
movb %al, -0xd9(%rbp)
jmp 0xfdea
movb -0xd9(%rbp), %al
andb $0x1, %al
movb %al, -0xa1(%rbp)
testb $0x1, -0xa1(%rbp)
jne 0xfe7f
movb $0x0, -0x1(%rbp)
movl $0x1, -0xa8(%rbp)
jmp 0xff55
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x49(%rbp), %rdi
callq 0x4520
jmp 0xff85
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0xfe51
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x42f0
leaq -0x81(%rbp), %rdi
callq 0x4520
jmp 0xff6c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x153c0
jmp 0xff6c
movq -0x18(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x15360
movq -0xf0(%rbp), %rdi
movq %rax, %rsi
callq 0x152d0
jmp 0xfea7
movl $0x0, -0xac(%rbp)
movl -0xac(%rbp), %eax
movq %rax, -0xf8(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x15360
movq %rax, %rcx
movq -0xf8(%rbp), %rax
cmpq %rcx, %rax
jae 0xff47
movl -0xac(%rbp), %eax
movl %eax, %esi
leaq -0xa0(%rbp), %rdi
callq 0x15380
movq %rax, %rsi
movzwl -0x28(%rbp), %edx
leaq -0xbe(%rbp), %rdi
callq 0x14640
jmp 0xff02
movq -0x18(%rbp), %rdi
movl -0xac(%rbp), %eax
movl %eax, %esi
callq 0x153a0
movq -0xbe(%rbp), %rcx
movq %rcx, (%rax)
movq -0xb6(%rbp), %rcx
movq %rcx, 0x8(%rax)
movw -0xae(%rbp), %cx
movw %cx, 0x10(%rax)
movl -0xac(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xac(%rbp)
jmp 0xfeb1
movb $0x1, -0x1(%rbp)
movl $0x1, -0xa8(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x153c0
leaq -0x48(%rbp), %rdi
callq 0x42f0
jmp 0xff77
leaq -0x48(%rbp), %rdi
callq 0x42f0
jmp 0xff85
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x100, %rsp            # imm = 0x100
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x47f0
nop