// File: /workspace/github_cpp_makefile_star2_O1/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 0xb60d
movq %r14, %rdi
callq 0x9596
testb %al, %al
je 0xb7f8
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 0xd20a
leaq 0x160(%rbx), %rcx
cmpq %rcx, %rax
je 0xb687
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xbf92
testb %bpl, %bpl
jne 0xb66f
movq (%rax), %r12
xorl %edi, %edi
callq 0x33c0
cmpq %rax, %r12
jge 0xb7f8
movl 0x20(%r14), %eax
cmpq %rax, %r12
jge 0xb7f8
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xcaca
movq %r15, %rdi
movq %rax, %rsi
callq 0xcb86
leaq 0x70(%rbx), %r15
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xc94a
leaq 0x78(%rbx), %rcx
cmpq %rcx, %rax
je 0xb6f3
addq $0x40, %rbx
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0xbce4
movq %rbx, %rdi
movq %rax, %rsi
callq 0xbc36
movl 0x20(%r14), %ecx
cmpq %rcx, 0x20(%rax)
jl 0xb6d1
movq 0x18(%rax), %rdx
cmpq 0x18(%r14), %rdx
je 0xb6dd
movq %rcx, 0x20(%rax)
movq 0x18(%r14), %rcx
orq %rcx, 0x18(%rax)
testb %bpl, %bpl
je 0xb7f8
movq $0x0, 0x38(%rax)
jmp 0xb7f8
leaq 0x30(%rsp), %r12
movq %r12, %rdi
callq 0x9c98
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 0xbc36
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 0xbce4
movl %ebp, (%rax)
leaq 0xf0(%rbx), %rdi
leaq 0xc(%rsp), %rsi
callq 0xc802
incl 0x150(%rbx)
movq 0xc0(%rsp), %rdi
cmpq %r13, %rdi
je 0xb7f8
callq 0x33d0
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 0xb81f
callq 0x33d0
movq %rbx, %rdi
callq 0x3650
nop