// File: /workspace/github_cpp_makefile_star2_O1/tenup-coin[P]seeder/netbase.cpp
// Function: CNetAddr::SetSpecial(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool CNetAddr::SetSpecial(const std::string &strName)
{
    if (strName.size()>6 && strName.substr(strName.size() - 6, 6) == ".onion") {
        std::vector<unsigned char> vchAddr = DecodeBase32(strName.substr(0, strName.size() - 6).c_str());
        if (vchAddr.size() != 16-sizeof(pchOnionCat))
            return false;
        memcpy(ip, pchOnionCat, sizeof(pchOnionCat));
        for (unsigned int i=0; i<16-sizeof(pchOnionCat); i++)
            ip[i + sizeof(pchOnionCat)] = vchAddr[i];
        return true;
    }
    if (strName.size()>11 && strName.substr(strName.size() - 11, 11) == ".oc.b32.i2p") {
        std::vector<unsigned char> vchAddr = DecodeBase32(strName.substr(0, strName.size() - 11).c_str());
        if (vchAddr.size() != 16-sizeof(pchGarliCat))
            return false;
        memcpy(ip, pchOnionCat, sizeof(pchGarliCat));
        for (unsigned int i=0; i<16-sizeof(pchGarliCat); i++)
            ip[i + sizeof(pchGarliCat)] = vchAddr[i];
        return true;
    }
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x8(%rsi), %r12
cmpq $0x7, %r12
jb 0x90e6
leaq -0x6(%r12), %rdx
leaq 0x60(%rsp), %r15
movl $0x6, %ecx
movq %r15, %rdi
movq %r14, %rsi
callq 0x3410
leaq 0xa311(%rip), %rsi      # 0x133e7
movq %r15, %rdi
callq 0x30e0
testl %eax, %eax
sete %bpl
jmp 0x90e8
xorl %ebp, %ebp
cmpq $0x7, %r12
jb 0x9101
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9101
callq 0x33d0
testb %bpl, %bpl
je 0x9180
movq 0x8(%r14), %rcx
addq $-0x6, %rcx
leaq 0x28(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3410
movq (%r15), %rsi
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x12a76
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9142
callq 0x33d0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rax
subq %rdi, %rax
cmpq $0xa, %rax
sete %bpl
jne 0x924c
movw $0x43eb, 0x4(%rbx)      # imm = 0x43EB
movl $0x7ed887fd, (%rbx)     # imm = 0x7ED887FD
xorl %eax, %eax
movb (%rdi,%rax), %cl
movb %cl, 0x6(%rbx,%rax)
incq %rax
cmpq $0xa, %rax
jne 0x916b
jmp 0x924c
movq 0x8(%r14), %r12
cmpq $0xc, %r12
jb 0x91bb
leaq -0xb(%r12), %rdx
leaq 0x28(%rsp), %r15
movl $0xb, %ecx
movq %r15, %rdi
movq %r14, %rsi
callq 0x3410
leaq 0xa243(%rip), %rsi      # 0x133ee
movq %r15, %rdi
callq 0x30e0
testl %eax, %eax
sete %bpl
jmp 0x91bd
xorl %ebp, %ebp
cmpq $0xc, %r12
jb 0x91d6
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x91d6
callq 0x33d0
testb %bpl, %bpl
je 0x9258
movq 0x8(%r14), %rcx
addq $-0xb, %rcx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3410
movq (%r15), %rsi
leaq 0x48(%rsp), %rdi
xorl %edx, %edx
callq 0x12a76
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9217
callq 0x33d0
movq 0x48(%rsp), %rdi
movq 0x50(%rsp), %rax
subq %rdi, %rax
cmpq $0xa, %rax
sete %bpl
jne 0x924c
movw $0x43eb, 0x4(%rbx)      # imm = 0x43EB
movl $0x7ed887fd, (%rbx)     # imm = 0x7ED887FD
xorl %eax, %eax
movb (%rdi,%rax), %cl
movb %cl, 0x6(%rbx,%rax)
incq %rax
cmpq $0xa, %rax
jne 0x923c
testq %rdi, %rdi
je 0x925a
callq 0x33d0
jmp 0x925a
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
jmp 0x927e
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x928c
callq 0x33d0
movq %rbx, %rdi
callq 0x3650