// File: /workspace/github_cpp_makefile_star2_O1/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 0xcbdf
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x2d0(%rdi), %r12
movq %r12, %rdi
callq 0xba0e
testb %al, %al
jne 0xcbfe
leaq 0x2d8(%r14), %r13
movq %r12, %rdi
callq 0xba0a
leaq 0x78(%rsp), %rsi
movq %rax, (%rsi)
movq %r13, %rdi
callq 0xb9b4
testb %al, %al
je 0xcc1d
movq %rbx, 0x38(%rsp)
cmpq $0x0, 0x2e0(%r14)
jne 0xcc3c
leaq 0x18(%r14), %rbp
movq %rbp, %rdi
callq 0x701a
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 0x7022
movq %rax, %rbx
movups (%rax), %xmm0
leaq 0x200(%rsp), %r15
movaps %xmm0, -0x10(%r15)
leaq 0x10(%rax), %rsi
movq %r15, %rdi
callq 0x4ff4
movups 0x28(%rbx), %xmm0
movups %xmm0, 0x18(%r15)
movq %r13, %rdi
callq 0xb980
movq 0x18(%rax), %rbx
movq %r13, %rdi
callq 0xb980
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 0x68a8
movq 0x200(%rsp), %rdi
testq %rdi, %rdi
je 0xc80c
callq 0x4340
movq %r12, %rdi
callq 0xb9ec
movq %r12, %rdi
callq 0xba0a
movq %rax, (%r13)
movq %rbp, %rdi
callq 0x701a
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 0xc869
movq %rcx, 0x230(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0x240(%rsp)
jmp 0xc86f
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)
movq -0x28(%rax), %rsi
movq %rsi, -0x28(%rcx)
movups -0x20(%rax), %xmm0
movups %xmm0, -0x20(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, -0x28(%rax)
movq %rdx, -0x18(%rax)
movq %rcx, -0x10(%rcx)
movq -0x10(%rax), %rdx
cmpq %rax, %rdx
je 0xc8e5
movq %rdx, 0x270(%rsp)
movq 0xc8(%rsp), %rcx
movq %rcx, 0x280(%rsp)
jmp 0xc8eb
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 0xc93a
movq %rsi, 0x290(%rsp)
movq 0xe8(%rsp), %rax
movq %rax, 0x2a0(%rsp)
jmp 0xc940
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)
movq 0x100(%rsp), %rdx
movq %rdx, 0x88(%rax)
movups 0x108(%rsp), %xmm0
movups %xmm0, 0x90(%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 0xc9f3
movq %rsi, 0x2d0(%rsp)
movq 0x128(%rsp), %rdx
movq %rdx, 0x2e0(%rsp)
jmp 0xc9f9
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 0xca60
movq %rdx, 0x2f0(%rsp)
movq 0x148(%rsp), %rdx
movq %rdx, 0x300(%rsp)
jmp 0xca66
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 0xcacc
movq %rdx, 0x310(%rsp)
movq 0x168(%rsp), %rax
movq %rax, 0x320(%rsp)
jmp 0xcad3
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)
movq 0x1c8(%rsp), %rcx
movq %rcx, 0x150(%rdx)
movq 0x1d0(%rsp), %rcx
movq 0x1d8(%rsp), %rsi
movq %rcx, 0x158(%rdx)
movq %rsi, 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 0xeac0
leaq 0x230(%rsp), %rdi
callq 0x4e4e
leaq 0x78(%rsp), %rdi
callq 0x4e4e
addq $0x3a8, %rsp            # imm = 0x3A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6c5d(%rip), %rdi      # 0x13843
leaq 0x6a2c(%rip), %rsi      # 0x13619
leaq 0x6b0a(%rip), %rcx      # 0x136fe
movl $0x53, %edx
callq 0x4260
leaq 0x6b43(%rip), %rdi      # 0x13748
leaq 0x6a0d(%rip), %rsi      # 0x13619
leaq 0x6aeb(%rip), %rcx      # 0x136fe
movl $0x54, %edx
callq 0x4260
leaq 0x6b38(%rip), %rdi      # 0x1375c
leaq 0x69ee(%rip), %rsi      # 0x13619
leaq 0x6acc(%rip), %rcx      # 0x136fe
movl $0x55, %edx
callq 0x4260
leaq 0x69cb(%rip), %rdi      # 0x1360e
leaq 0x69cf(%rip), %rsi      # 0x13619
leaq 0x6aad(%rip), %rcx      # 0x136fe
movl $0x56, %edx
callq 0x4260
movq %rax, %rbx
leaq 0x230(%rsp), %rdi
callq 0x4e4e
jmp 0xcc72
jmp 0xcc6f
movq %rax, %rbx
leaq 0x78(%rsp), %rdi
callq 0x4e4e
jmp 0xcc93
movq %rax, %rbx
movq 0x200(%rsp), %rdi
testq %rdi, %rdi
je 0xcc93
callq 0x4340
movq %rbx, %rdi
callq 0x4640
nop