// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3a8, %rsp            # imm = 0x3A8
cmpq $0x0, (%rsi)
je 0xca3e
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x2d0(%rdi), %r12
movq %r12, %rdi
callq 0xb88a
testb %al, %al
jne 0xca5d
leaq 0x2d8(%r14), %r13
movq %r12, %rdi
callq 0xb886
leaq 0x78(%rsp), %rsi
movq %rax, (%rsi)
movq %r13, %rdi
callq 0xb830
testb %al, %al
je 0xca7c
movq %rbx, 0x38(%rsp)
cmpq $0x0, 0x2e0(%r14)
jne 0xca9b
leaq 0x18(%r14), %rbp
movq %rbp, %rdi
callq 0x6fa8
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups 0x1c(%rax), %xmm2
movaps %xmm0, 0x40(%rsp)
movaps %xmm1, 0x50(%rsp)
movups %xmm2, 0x5c(%rsp)
movq %rbp, %rdi
callq 0x6fb0
movq %rax, %rbx
movups (%rax), %xmm0
leaq 0x200(%rsp), %r15
movaps %xmm0, -0x10(%r15)
leaq 0x10(%rax), %rsi
movq %r15, %rdi
callq 0x4ffe
movups 0x28(%rbx), %xmm0
movups %xmm0, 0x18(%r15)
movq %r13, %rdi
callq 0xb7fc
movq 0x18(%rax), %rbx
movq %r13, %rdi
callq 0xb7fc
movl 0x10(%rax), %ecx
movups 0x5c(%rsp), %xmm0
movups %xmm0, 0x1c(%rsp)
movaps 0x40(%rsp), %xmm0
movaps 0x50(%rsp), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x78(%rsp), %r15
leaq 0x1f0(%rsp), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x6872
movq 0x200(%rsp), %rdi
testq %rdi, %rdi
je 0xc67a
callq 0x4340
movq %r12, %rdi
callq 0xb868
movq %r12, %rdi
callq 0xb886
movq %rax, (%r13)
movq %rbp, %rdi
callq 0x6fa8
movl 0x8(%rax), %eax
movl %eax, 0x2c8(%r14)
leaq 0x240(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x88(%rsp), %rdx
movq -0x10(%rdx), %rcx
cmpq %rdx, %rcx
je 0xc6d7
movq %rcx, 0x230(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x240(%rsp)
jmp 0xc6dd
movups (%rdx), %xmm0
movups %xmm0, (%rax)
leaq 0xc8(%rsp), %rax
movq -0x48(%rax), %rsi
leaq 0x280(%rsp), %rcx
movq %rsi, -0x48(%rcx)
movq %rdx, -0x50(%rax)
xorl %edx, %edx
movq %rdx, -0x48(%rax)
movb $0x0, -0x40(%rax)
movl -0x30(%rax), %esi
movl %esi, -0x30(%rcx)
movb -0x2c(%rax), %sil
movb %sil, -0x2c(%rcx)
movups -0x28(%rax), %xmm0
movups %xmm0, -0x28(%rcx)
movq -0x18(%rax), %rsi
movq %rsi, -0x18(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rax)
movq %rdx, -0x18(%rax)
movq %rcx, -0x10(%rcx)
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0xc753
movq %rdx, 0x270(%rsp)
movq 0xc8(%rsp), %rcx
movq %rcx, 0x280(%rsp)
jmp 0xc759
movups (%rax), %xmm0
movups %xmm0, (%rcx)
leaq 0xe8(%rsp), %rcx
movq -0x28(%rcx), %rdi
movq -0x10(%rcx), %rsi
leaq 0x2a0(%rsp), %rdx
movq %rdi, -0x28(%rdx)
movq %rax, -0x30(%rcx)
movq $0x0, -0x28(%rcx)
movb $0x0, -0x20(%rcx)
movq %rdx, -0x10(%rdx)
cmpq %rcx, %rsi
je 0xc7a8
movq %rsi, 0x290(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x2a0(%rsp)
jmp 0xc7ae
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0xe0(%rsp), %rdx
leaq 0x230(%rsp), %rax
movq %rdx, 0x68(%rax)
movq %rcx, 0xd8(%rsp)
xorl %ecx, %ecx
movq %rcx, 0xe0(%rsp)
movb $0x0, 0xe8(%rsp)
movl 0xf8(%rsp), %edx
movl %edx, 0x80(%rax)
movb 0xfc(%rsp), %dl
movb %dl, 0x84(%rax)
movups 0x100(%rsp), %xmm0
movups %xmm0, 0x88(%rax)
movq 0x110(%rsp), %rdx
movq %rdx, 0x98(%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x100(%rsp)
movq %rcx, 0x110(%rsp)
movl $0xb0, %ecx
leaq (%rax,%rcx), %rdx
movq %rdx, 0xa0(%rax)
movq 0x118(%rsp), %rsi
addq %r15, %rcx
cmpq %rcx, %rsi
je 0xc861
movq %rsi, 0x2d0(%rsp)
movq 0x128(%rsp), %rdx
movq %rdx, 0x2e0(%rsp)
jmp 0xc867
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x120(%rsp), %rsi
movq 0x138(%rsp), %rdx
movq %rsi, 0x2d8(%rsp)
movq %rcx, 0x118(%rsp)
movq $0x0, 0x120(%rsp)
movb $0x0, 0x128(%rsp)
movl $0xd0, %ecx
leaq (%rax,%rcx), %rsi
movq %rsi, 0x2f0(%rsp)
addq %r15, %rcx
cmpq %rcx, %rdx
je 0xc8ce
movq %rdx, 0x2f0(%rsp)
movq 0x148(%rsp), %rdx
movq %rdx, 0x300(%rsp)
jmp 0xc8d4
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x140(%rsp), %rsi
movq 0x158(%rsp), %rdx
movq %rsi, 0x2f8(%rsp)
movq %rcx, 0x138(%rsp)
movq $0x0, 0x140(%rsp)
movb $0x0, 0x148(%rsp)
movl $0xf0, %ecx
addq %rcx, %rax
movq %rax, 0x310(%rsp)
addq %rcx, %r15
cmpq %r15, %rdx
je 0xc93a
movq %rdx, 0x310(%rsp)
movq 0x168(%rsp), %rax
movq %rax, 0x320(%rsp)
jmp 0xc941
movups (%r15), %xmm0
movups %xmm0, (%rax)
movq 0x160(%rsp), %rax
leaq 0x230(%rsp), %rdx
movq %rax, 0xe8(%rdx)
movq %r15, 0x158(%rsp)
xorl %eax, %eax
movq %rax, 0x160(%rsp)
movb $0x0, 0x168(%rsp)
movb 0x178(%rsp), %cl
movb %cl, 0x100(%rdx)
movl 0x180(%rsp), %ecx
movl %ecx, 0x108(%rdx)
movups 0x188(%rsp), %xmm0
movups %xmm0, 0x110(%rdx)
movups 0x198(%rsp), %xmm0
movups %xmm0, 0x120(%rdx)
movups 0x1a4(%rsp), %xmm0
movups %xmm0, 0x12c(%rdx)
movups 0x1b8(%rsp), %xmm0
movups %xmm0, 0x140(%rdx)
movups 0x1c8(%rsp), %xmm0
movups %xmm0, 0x150(%rdx)
movq 0x1d8(%rsp), %rcx
movq %rcx, 0x160(%rdx)
xorps %xmm0, %xmm0
movups %xmm0, 0x1c8(%rsp)
movq %rax, 0x1d8(%rsp)
movups 0x1e0(%rsp), %xmm0
movups %xmm0, 0x168(%rdx)
movq %r14, %rdi
movq 0x38(%rsp), %rsi
callq 0xe91e
leaq 0x230(%rsp), %rdi
callq 0x4e48
leaq 0x78(%rsp), %rdi
callq 0x4e48
addq $0x3a8, %rsp            # imm = 0x3A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6df6(%rip), %rdi      # 0x1383b
leaq 0x6bc5(%rip), %rsi      # 0x13611
leaq 0x6ca3(%rip), %rcx      # 0x136f6
movl $0x53, %edx
callq 0x4260
leaq 0x6cdc(%rip), %rdi      # 0x13740
leaq 0x6ba6(%rip), %rsi      # 0x13611
leaq 0x6c84(%rip), %rcx      # 0x136f6
movl $0x54, %edx
callq 0x4260
leaq 0x6cd1(%rip), %rdi      # 0x13754
leaq 0x6b87(%rip), %rsi      # 0x13611
leaq 0x6c65(%rip), %rcx      # 0x136f6
movl $0x55, %edx
callq 0x4260
leaq 0x6b64(%rip), %rdi      # 0x13606
leaq 0x6b68(%rip), %rsi      # 0x13611
leaq 0x6c46(%rip), %rcx      # 0x136f6
movl $0x56, %edx
callq 0x4260
movq %rax, %rbx
leaq 0x230(%rsp), %rdi
callq 0x4e48
jmp 0xcad1
jmp 0xcace
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x4e48
jmp 0xcaf2
movq %rax, %rbx
movq 0x200(%rsp), %rdi
testq %rdi, %rdi
je 0xcaf2
callq 0x4340
movq %rbx, %rdi
callq 0x4640