// File: /workspace/github_cpp_makefile_star2_O3/tenup-coin[P]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.services != addr.nServices)
    {
      ai.lastTry = addr.nTime;
      ai.services |= addr.nServices;
      //printf("%s: updated\n", ToString(addr).c_str());
    }
    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 0xb427
movq %r14, %rdi
callq 0x9450
testb %al, %al
je 0xb613
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 0xd01e
leaq 0x160(%rbx), %rcx
cmpq %rcx, %rax
je 0xb4a1
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xbd90
testb %bpl, %bpl
jne 0xb489
movq (%rax), %r12
xorl %edi, %edi
callq 0x33c0
cmpq %rax, %r12
jge 0xb613
movl 0x20(%r14), %eax
cmpq %rax, %r12
jge 0xb613
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xc8ca
movq %r15, %rdi
movq %rax, %rsi
callq 0xc98c
leaq 0x70(%rbx), %r15
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xc748
leaq 0x78(%rbx), %rcx
cmpq %rcx, %rax
je 0xb4f2
addq $0x40, %rbx
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xbae0
movq %rbx, %rdi
movq %rax, %rsi
callq 0xba30
movl 0x20(%r14), %ecx
cmpq %rcx, 0x20(%rax)
jge 0xb5ee
movq 0x18(%r14), %rsi
movq 0x18(%rax), %rdx
jmp 0xb5fb
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0x9b2a
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 0xba30
movq %rax, %r14
leaq 0xc0(%rsp), %r12
leaq 0x30(%rsp), %rsi
movl $0x8c, %edx
movq %rax, %rdi
callq 0x3350
addq $0x90, %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x3210
movl 0xc(%rsp), %ebp
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xbae0
movl %ebp, (%rax)
leaq 0xf0(%rbx), %rdi
leaq 0xc(%rsp), %rsi
callq 0xc602
incl 0x150(%rbx)
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0xb613
callq 0x33d0
jmp 0xb613
movq 0x18(%rax), %rdx
movq 0x18(%r14), %rsi
cmpq %rsi, %rdx
je 0xb606
orq %rsi, %rdx
movq %rcx, 0x20(%rax)
movq %rdx, 0x18(%rax)
testb %bpl, %bpl
je 0xb613
movq $0x0, 0x38(%rax)
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 0xb63a
callq 0x33d0
movq %rbx, %rdi
callq 0x3650