// File: /workspace/github_cpp_makefile_star2_O3/theuni[P]libbtcnet/tests/multinet.cpp
// Function: CConnman::OnStartup()
void OnStartup()
    {
        /* Establish the network options. Notice that these are per-connection,
           though they're inherited as necessary. So a DNS Query on a main-net seed
           will return connections with main-net options. A connection manager will
           happily connect to multiple different networks simultaneously. The only
           requirement is that the header structure is similar enough to Bitcoin's
           that it can be expressed in the parameters below.
         */
        CNetworkConfig mainnet_config;
        mainnet_config.header_msg_size_offset = 16;
        mainnet_config.header_msg_size_size = 4;
        mainnet_config.header_size = 24;
        mainnet_config.chunk_size = 0;
        mainnet_config.message_max_size = 1000000 + mainnet_config.header_size;
        mainnet_config.message_start = mainnet_message_start;
        mainnet_config.protocol_version = 70011;
        mainnet_config.protocol_handshake_version = 209;
        mainnet_config.service_flags = 0;

        CNetworkConfig testnet_config = mainnet_config;
        testnet_config.message_start = testnet_message_start;


        /* Establish the connection options. See libbtcnet/connection.h for more. */
        CConnectionOptions myopts;
        myopts.nRetries = 0;
        myopts.doResolve = CConnectionOptions::RESOLVE_CONNECT;
        myopts.nConnTimeout = 1;
        myopts.nFamily = CConnectionOptions::ANY;

        m_connections.emplace_back(myopts, mainnet_config, "seed.bitcoin.sipa.be", 8333);
        m_connections.emplace_back(myopts, testnet_config, "testnet-seed.bitcoin.petertodd.org", 8333);

        m_connections.emplace_back(myopts, mainnet_config, "dnsseed.bluematt.me", 8333);
        m_connections.emplace_back(myopts, testnet_config, "testnet-seed.bluematt.me", 8333);

        m_connections.emplace_back(myopts, mainnet_config, "dnsseed.bitcoin.dashjr.org", 8333);
        m_connections.emplace_back(myopts, testnet_config, "testnet-seed.bitcoin.schildbach.de", 8333);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
xorps %xmm0, %xmm0
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movl $0x0, 0x18(%rdi)
movaps 0xd48f(%rip), %xmm0     # 0x12010
movaps %xmm0, -0x10(%rdi)
leaq 0x17824(%rip), %rsi     # 0x1c3b0
callq 0x4efc
movabsq $0xd10001117b, %rax     # imm = 0xD10001117B
movq %rax, 0x3c(%rsp)
movl $0x0, 0x44(%rsp)
movaps 0x10(%rsp), %xmm0
movaps %xmm0, 0x50(%rsp)
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rsi
movq %rax, %r15
subq %rsi, %r15
je 0x4be7
js 0x4dd3
movq %r15, %rdi
callq 0x4350
movq %rax, %r14
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rax
movq %rax, %r12
subq %rsi, %r12
jmp 0x4bed
xorl %r14d, %r14d
movq %r15, %r12
leaq 0x38(%rsp), %rbp
leaq 0x60(%rsp), %r13
movq %r14, (%r13)
addq %r14, %r15
movq %r15, 0x10(%r13)
cmpq %rsi, %rax
je 0x4c12
movq %r14, %rdi
movq %r12, %rdx
callq 0x45b0
addq %r12, %r14
movq %r14, 0x68(%rsp)
movups (%rbp), %xmm0
movups %xmm0, 0x78(%rsp)
leaq 0x1779e(%rip), %rsi     # 0x1c3c8
movq %r13, %rdi
callq 0x4efc
leaq 0x8c(%rsp), %rdi
callq 0x6724
leaq 0x8c(%rsp), %rsi
movq $0x4, 0x4(%rsi)
movl $0x1, 0xc(%rsi)
movl $0x1e, 0x28(%rsi)
leaq 0x10(%rbx), %r14
leaq 0xc(%rsp), %r8
movl $0x208d, (%r8)          # imm = 0x208D
leaq 0xd3b6(%rip), %rcx      # 0x1202a
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x5082
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
incq 0x20(%rbx)
leaq 0xc(%rsp), %r8
movl $0x208d, (%r8)          # imm = 0x208D
leaq 0xd39c(%rip), %rcx      # 0x1203f
leaq 0x8c(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movq %r14, %rdi
callq 0x5296
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
incq 0x20(%rbx)
leaq 0xc(%rsp), %r8
movl $0x208d, (%r8)          # imm = 0x208D
leaq 0xd388(%rip), %rcx      # 0x12062
leaq 0x8c(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x5414
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
incq 0x20(%rbx)
leaq 0xc(%rsp), %r8
movl $0x208d, (%r8)          # imm = 0x208D
leaq 0xd365(%rip), %rcx      # 0x12076
leaq 0x8c(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movq %r14, %rdi
callq 0x5592
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
incq 0x20(%rbx)
leaq 0xc(%rsp), %r8
movl $0x208d, (%r8)          # imm = 0x208D
leaq 0xd347(%rip), %rcx      # 0x1208f
leaq 0x8c(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x5710
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
incq 0x20(%rbx)
leaq 0xc(%rsp), %r8
movl $0x208d, (%r8)          # imm = 0x208D
leaq 0xd32b(%rip), %rcx      # 0x120aa
leaq 0x8c(%rsp), %rsi
leaq 0x50(%rsp), %rdx
movq %r14, %rdi
callq 0x5296
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
incq 0x20(%rbx)
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x4db2
callq 0x4340
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x4dc1
callq 0x4340
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4140
jmp 0x4de6
jmp 0x4de6
jmp 0x4de6
jmp 0x4de6
jmp 0x4de6
jmp 0x4de6
jmp 0x4de6
movq %rax, %rbx
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x4dff
callq 0x4340
jmp 0x4dff
jmp 0x4dfc
movq %rax, %rbx
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x4e0e
callq 0x4340
movq %rbx, %rdi
callq 0x4640