// File: /workspace/github_cpp_makefile_star2_O3/CoinBlack[P]blackcoin-seeder/db.cpp
// Function: CAddrDb::Add_(CAddress const&, bool)
void CAddrDb::Add_(const CAddress &addr, bool force) {
  if (!force && !addr.IsRoutable())
    return;
  CService ipp(addr);
  if (banned.count(ipp)) {
    time_t bantime = banned[ipp];
    if (force || (bantime < time(NULL) && addr.nTime > bantime))
      banned.erase(ipp);
    else
      return;
  }
  if (ipToId.count(ipp)) {
    CAddrInfo &ai = idToInfo[ipToId[ipp]];
    if (addr.nTime > ai.lastTry) ai.lastTry = addr.nTime;
    // Do not update ai.nServices (data from VERSION from the peer itself is better than random ADDR rumours).
    if (force) {
      ai.ignoreTill = 0;
    }
    return;
  }
  CAddrInfo ai;
  ai.ip = ipp;
  ai.services = addr.nServices;
  ai.lastTry = addr.nTime;
  ai.ourLastTry = 0;
  ai.total = 0;
  ai.success = 0;
  int id = nId++;
  idToInfo[id] = ai;
  ipToId[ipp] = id;
//  printf("%s: added\n", ToString(ipp).c_str(), ipToId[ipp]);
  unkId.insert(id);
  nDirty++;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
testl %edx, %edx
jne 0xba3f
movq %r14, %rdi
callq 0x9a20
testb %al, %al
je 0xbc0d
movzwl 0x10(%r14), %eax
leaq 0x10(%rsp), %rsi
movw %ax, 0x10(%rsi)
movups (%r14), %xmm0
movaps %xmm0, (%rsi)
leaq 0x158(%rbx), %r15
movq %r15, %rdi
callq 0xd632
leaq 0x160(%rbx), %rcx
cmpq %rcx, %rax
je 0xbab9
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xc3a4
testb %bpl, %bpl
jne 0xbaa1
movq (%rax), %r12
xorl %edi, %edi
callq 0x33b0
cmpq %rax, %r12
jge 0xbc0d
movl 0x20(%r14), %eax
cmpq %rax, %r12
jge 0xbc0d
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xcede
movq %r15, %rdi
movq %rax, %rsi
callq 0xcfa0
leaq 0x70(%rbx), %r15
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xcd5c
leaq 0x78(%rbx), %rcx
cmpq %rcx, %rax
je 0xbb13
addq $0x40, %rbx
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xc0da
movq %rbx, %rdi
movq %rax, %rsi
callq 0xc02a
movl 0x20(%r14), %ecx
cmpq %rcx, 0x20(%rax)
jge 0xbafd
movq %rcx, 0x20(%rax)
testb %bpl, %bpl
je 0xbc0d
movq $0x0, 0x38(%rax)
jmp 0xbc0d
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0xa0fa
leaq 0xd0(%rsp), %r13
xorl %eax, %eax
movq %rax, -0x20(%r13)
xorps %xmm0, %xmm0
movaps %xmm0, -0x30(%r13)
movaps %xmm0, -0x40(%r13)
movaps %xmm0, -0x50(%r13)
movaps %xmm0, -0x60(%r13)
movaps %xmm0, -0x70(%r13)
movq %r13, -0x10(%r13)
movq %rax, -0x8(%r13)
movb $0x0, (%r13)
movaps 0x10(%rsp), %xmm0
movaps %xmm0, (%r12)
movzwl 0x20(%rsp), %ecx
movw %cx, 0x10(%r12)
movq 0x18(%r14), %rcx
movq %rcx, 0x18(%r12)
movl 0x20(%r14), %ecx
movq %rcx, -0x80(%r13)
movq %rax, -0x78(%r13)
movl $0x0, -0x18(%r13)
movl 0x38(%rbx), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x38(%rbx)
leaq 0xc(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x40(%rbx), %rdi
callq 0xc02a
movq %rax, %r14
leaq 0xc0(%rsp), %r12
leaq 0x30(%rsp), %rsi
movl $0x8c, %edx
movq %rax, %rdi
callq 0x3340
addq $0x90, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x3200
movl 0xc(%rsp), %ebp
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xc0da
movl %ebp, (%rax)
leaq 0xf0(%rbx), %rdi
leaq 0xc(%rsp), %rsi
callq 0xcc16
incl 0x150(%rbx)
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0xbc0d
callq 0x33c0
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0xbc34
callq 0x33c0
movq %rbx, %rdi
callq 0x3690