// File: theuni[P]libbtcnet/src/dnsconn.cpp
// Function: CDNSConnection::OnConnectSuccess(event_type<bufferevent>&&)
void CDNSConnection::OnConnectSuccess(event_type<bufferevent>&& bev)
{
    assert(bev);
    assert(!m_resolved.empty());
    assert(m_iter != m_resolved.end());
    assert(!m_request);

    CConnection resolved(m_connection.GetOptions(), m_connection.GetNetConfig(), m_iter->ai_addr, m_iter->ai_addrlen);
    m_resolved.clear();
    m_iter = m_resolved.end();
    m_retries = m_connection.GetOptions().nRetries;
    OnOutgoingConnected(std::move(bev), std::move(resolved));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x410, %rsp            # imm = 0x410
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x390(%rbp)
movq -0x10(%rbp), %rdi
callq 0x19d80
testb $0x1, %al
jne 0x1958d
jmp 0x1958f
jmp 0x195ae
leaq 0xd28f(%rip), %rdi      # 0x26825
leaq 0xd05e(%rip), %rsi      # 0x265fb
movl $0x53, %edx
leaq 0xd137(%rip), %rcx      # 0x266e0
callq 0x52e0
movq -0x390(%rbp), %rdi
addq $0x2d0, %rdi            # imm = 0x2D0
callq 0x180f0
xorb $-0x1, %al
testb $0x1, %al
jne 0x195c9
jmp 0x195cb
jmp 0x195ea
leaq 0xd158(%rip), %rdi      # 0x2672a
leaq 0xd022(%rip), %rsi      # 0x265fb
movl $0x54, %edx
leaq 0xd0fb(%rip), %rcx      # 0x266e0
callq 0x52e0
movq -0x390(%rbp), %rdi
movq %rdi, %rax
addq $0x2d8, %rax            # imm = 0x2D8
movq %rax, -0x398(%rbp)
addq $0x2d0, %rdi            # imm = 0x2D0
callq 0x180c0
movq -0x398(%rbp), %rdi
movq %rax, -0x18(%rbp)
leaq -0x18(%rbp), %rsi
callq 0x17fb0
testb $0x1, %al
jne 0x19627
jmp 0x19629
jmp 0x19648
leaq 0xd10e(%rip), %rdi      # 0x2673e
leaq 0xcfc4(%rip), %rsi      # 0x265fb
movl $0x55, %edx
leaq 0xd09d(%rip), %rcx      # 0x266e0
callq 0x52e0
movq -0x390(%rbp), %rdi
addq $0x2e0, %rdi            # imm = 0x2E0
callq 0x19d10
testb $0x1, %al
jne 0x19661
jmp 0x19663
jmp 0x19682
leaq 0xcf86(%rip), %rdi      # 0x265f0
leaq 0xcf8a(%rip), %rsi      # 0x265fb
movl $0x56, %edx
leaq 0xd063(%rip), %rcx      # 0x266e0
callq 0x52e0
movq -0x390(%rbp), %rdi
addq $0x18, %rdi
movq %rdi, -0x3a8(%rbp)
callq 0xa9c0
movq -0x3a8(%rbp), %rdi
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x1c(%rax), %xmm2
movups %xmm2, -0x1a4(%rbp)
movaps %xmm1, -0x1b0(%rbp)
movaps %xmm0, -0x1c0(%rbp)
callq 0xa9e0
movq %rax, %rsi
leaq -0x1f8(%rbp), %rdi
callq 0x6fb0
movq -0x390(%rbp), %rdi
addq $0x2d8, %rdi            # imm = 0x2D8
callq 0x17f30
movq %rax, -0x3a0(%rbp)
jmp 0x196f0
movq -0x390(%rbp), %rdi
movq -0x3a0(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x3b8(%rbp)
addq $0x2d8, %rdi            # imm = 0x2D8
callq 0x17f30
movq %rax, -0x3b0(%rbp)
jmp 0x1971e
movq -0x3b8(%rbp), %rdx
movq -0x3b0(%rbp), %rax
movl 0x10(%rax), %ecx
movups -0x1a4(%rbp), %xmm0
movq %rsp, %rax
movups %xmm0, 0x1c(%rax)
movaps -0x1c0(%rbp), %xmm0
movaps -0x1b0(%rbp), %xmm1
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq -0x190(%rbp), %rdi
leaq -0x1f8(%rbp), %rsi
callq 0xa6b0
jmp 0x19767
leaq -0x1f8(%rbp), %rdi
callq 0x6930
movq -0x390(%rbp), %rdi
addq $0x2d0, %rdi            # imm = 0x2D0
callq 0x18050
jmp 0x19788
movq -0x390(%rbp), %rdi
addq $0x2d0, %rdi            # imm = 0x2D0
callq 0x180c0
movq %rax, -0x3c0(%rbp)
jmp 0x197a4
movq -0x390(%rbp), %rdi
movq -0x3c0(%rbp), %rax
movq %rax, -0x210(%rbp)
movq -0x210(%rbp), %rax
movq %rax, 0x2d8(%rdi)
addq $0x18, %rdi
callq 0xa9c0
movq %rax, -0x3c8(%rbp)
jmp 0x197d9
movq -0x390(%rbp), %rax
movq -0x3c8(%rbp), %rcx
movl 0x8(%rcx), %ecx
movl %ecx, 0x2c8(%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x3d8(%rbp)
leaq -0x388(%rbp), %rdi
movq %rdi, -0x3d0(%rbp)
leaq -0x190(%rbp), %rsi
callq 0x11a70
movq -0x390(%rbp), %rdi
movq -0x3d8(%rbp), %rsi
movq -0x3d0(%rbp), %rdx
callq 0x1c110
jmp 0x19831
leaq -0x388(%rbp), %rdi
callq 0x68f0
leaq -0x190(%rbp), %rdi
callq 0x68f0
addq $0x410, %rsp            # imm = 0x410
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
leaq -0x1f8(%rbp), %rdi
callq 0x6930
jmp 0x198b0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
jmp 0x198a4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x200(%rbp)
movl %eax, -0x204(%rbp)
leaq -0x388(%rbp), %rdi
callq 0x68f0
leaq -0x190(%rbp), %rdi
callq 0x68f0
movq -0x200(%rbp), %rdi
callq 0x5710
nopl (%rax)