// File: /workspace/github_cpp_makefile_star2_O1/theuni[P]libbtcnet/src/connectionbase.cpp
// Function: ConnectionBase::InitConnection()
void ConnectionBase::Retry(ConnID newId)
{
    m_bev.free();
    m_rate_cfg.free();
    m_bytes_read = 0;
    m_bytes_written = 0;

    m_id = newId;
    DEBUG_PRINT(LOGVERBOSE, "id:", m_id, "queuing reconnect");
    timeval timeout{m_connection.GetOptions().nRetryInterval, 0};
    m_reconnect_func.add(&timeout);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
cmpq $0x0, 0x1a8(%rdi)
je 0xe4ca
movq %rdi, %rbx
leaq 0x18(%rdi), %r15
movq %r15, %rdi
callq 0x701a
movq %rax, %r14
movq %r15, %rdi
callq 0x7022
movq 0x1a8(%rbx), %rdi
testq %rdi, %rdi
je 0xe4ab
movq %rax, %r15
callq 0x41a0
movl %eax, %ebp
movl %eax, %edi
callq 0xe206
movq 0x1a8(%rbx), %rdi
testq %rdi, %rdi
je 0xe4ab
movl $0x6, %esi
callq 0x4510
movq %r14, 0x8(%rsp)
movslq 0x18(%r14), %rax
movq %rax, 0x10(%rsp)
movq $0x0, 0x18(%rsp)
movq 0x1a8(%rbx), %rdi
testq %rdi, %rdi
je 0xe4ab
leaq 0x10(%rsp), %rdx
movq %rdx, %rsi
callq 0x4500
leaq 0x280(%rbx), %r12
movq 0x10(%rbx), %r13
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r14
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
movl $0x18, %edi
callq 0x4350
leaq 0x1d0(%rip), %rcx       # 0xe518
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq %rax, (%r14)
leaq 0xab5(%rip), %rax       # 0xee16
movq %rax, 0x18(%r14)
leaq 0xac6(%rip), %rax       # 0xee32
movq %rax, 0x10(%r14)
movq %r12, %rdi
movq %r13, %rsi
movl %ebp, %edx
movl $0x6, %ecx
movq %r14, %r8
callq 0x11b9c
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0xe39e
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movslq 0x28(%r15), %rdx
testq %rdx, %rdx
movq 0x8(%rsp), %r14
jle 0xe3be
leaq 0x1e5(%rip), %rax       # 0xe598
movq %rax, 0x2a8(%rbx)
xorl %ecx, %ecx
jmp 0xe3f2
cmpl $0x0, 0x8(%r15)
jle 0xe3e3
leaq 0x374(%rip), %rax       # 0xe740
movq %rax, 0x2a8(%rbx)
movslq (%r15), %rax
movslq 0x4(%r15), %rdx
addq %rax, %rdx
movl 0xc(%r15), %ecx
jmp 0xe3f2
movq $0x0, 0x2a8(%rbx)
xorl %ecx, %ecx
xorl %edx, %edx
movq 0x1a8(%rbx), %rdi
testq %rdi, %rdi
je 0xe4ab
movl $0x2, %esi
callq 0x40c0
movq 0x1a8(%rbx), %rdi
testq %rdi, %rdi
je 0xe4ab
movslq 0x1c(%r14), %rdx
movl $0x4, %esi
xorl %ecx, %ecx
callq 0x40c0
movq 0x1a8(%rbx), %rdi
testq %rdi, %rdi
je 0xe4ab
movq 0x2a8(%rbx), %rsi
leaq -0x2c6(%rip), %rcx      # 0xe180
xorl %edx, %edx
movq %rbx, %r8
callq 0x4360
movq 0x1a8(%rbx), %rdi
testq %rdi, %rdi
je 0xe4ab
callq 0x4270
movq 0x1a8(%rbx), %rdi
testq %rdi, %rdi
je 0xe4ab
movq %rax, %r14
callq 0x4130
movq %rax, %r15
leaq 0x57d(%rip), %rsi       # 0xe9fc
movq %r14, %rdi
movq %rbx, %rdx
callq 0x4210
leaq 0x5cd(%rip), %rsi       # 0xea5e
movq %r15, %rdi
movq %rbx, %rdx
callq 0x4210
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4aa1(%rip), %rdi      # 0x12f53
leaq 0x4aab(%rip), %rsi      # 0x12f64
leaq 0x5455(%rip), %rcx      # 0x13915
movl $0x4b, %edx
callq 0x4260
leaq 0x5370(%rip), %rdi      # 0x13841
leaq 0x54bc(%rip), %rsi      # 0x13994
leaq 0x5588(%rip), %rcx      # 0x13a67
movl $0xb7, %edx
callq 0x4260
jmp 0xe50f
movq %rax, %rbx
movq 0x30(%rsp), %rax
testq %rax, %rax
je 0xe507
leaq 0x20(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq %rbx, %rdi
callq 0x4640
movq %rax, %rdi
callq 0xab84
nop