// File: /workspace/github_cpp_makefile_star2_O1/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 0xbcd1
movq %r14, %rdi
callq 0x9c12
testb %al, %al
je 0xbeaa
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 0xd8d6
leaq 0x160(%rbx), %rcx
cmpq %rcx, %rax
je 0xbd4b
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xc65e
testb %bpl, %bpl
jne 0xbd33
movq (%rax), %r12
xorl %edi, %edi
callq 0x33b0
cmpq %rax, %r12
jge 0xbeaa
movl 0x20(%r14), %eax
cmpq %rax, %r12
jge 0xbeaa
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xd196
movq %r15, %rdi
movq %rax, %rsi
callq 0xd252
leaq 0x70(%rbx), %r15
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xd016
leaq 0x78(%rbx), %rcx
cmpq %rcx, %rax
je 0xbda5
addq $0x40, %rbx
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xc396
movq %rbx, %rdi
movq %rax, %rsi
callq 0xc2e8
movl 0x20(%r14), %ecx
cmpq %rcx, 0x20(%rax)
jge 0xbd8f
movq %rcx, 0x20(%rax)
testb %bpl, %bpl
je 0xbeaa
movq $0x0, 0x38(%rax)
jmp 0xbeaa
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0xa314
leaq 0xd0(%rsp), %r13
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%r13)
movups %xmm0, -0x38(%r13)
movups %xmm0, -0x48(%r13)
movups %xmm0, -0x58(%r13)
movups %xmm0, -0x68(%r13)
movups %xmm0, -0x78(%r13)
movups %xmm0, 0x18(%r12)
movl $0x0, -0x18(%r13)
movq %r13, -0x10(%r13)
xorl %eax, %eax
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)
movq %rax, -0x1c(%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 0xc2e8
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 0xc396
movl %ebp, (%rax)
leaq 0xf0(%rbx), %rdi
leaq 0xc(%rsp), %rsi
callq 0xcece
incl 0x150(%rbx)
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0xbeaa
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 0xbed1
callq 0x33c0
movq %rbx, %rdi
callq 0x3690
nop