// File: /workspace/github_cpp_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb0, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %rdi
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movaps 0xd497(%rip), %xmm0     # 0x12010
movups %xmm0, -0x10(%rdi)
movl $0x0, 0x18(%rdi)
leaq 0x17825(%rip), %rsi     # 0x1c3b0
callq 0x4f02
movabsq $0xd10001117b, %rax     # imm = 0xD10001117B
movq %rax, 0x34(%rsp)
movl $0x0, 0x3c(%rsp)
movups 0x8(%rsp), %xmm0
movaps %xmm0, 0x40(%rsp)
movq 0x20(%rsp), %r14
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
movq $0x0, 0x60(%rsp)
subq 0x18(%rsp), %r14
je 0x4be1
js 0x4dd8
movq %r14, %rdi
callq 0x4350
movq %rax, %r15
jmp 0x4be4
xorl %r15d, %r15d
leaq 0x30(%rsp), %r13
leaq 0x50(%rsp), %r12
movq %r15, (%r12)
movq %r15, 0x8(%r12)
addq %r15, %r14
movq %r14, 0x10(%r12)
movq -0x18(%r13), %rsi
movq -0x10(%r13), %r14
subq %rsi, %r14
je 0x4c17
movq %r15, %rdi
movq %r14, %rdx
callq 0x45b0
addq %r14, %r15
movq %r15, 0x58(%rsp)
movups (%r13), %xmm0
movups %xmm0, 0x68(%rsp)
leaq 0x17798(%rip), %rsi     # 0x1c3c8
movq %r12, %rdi
callq 0x4f02
leaq 0x84(%rsp), %rdi
callq 0x675a
leaq 0x84(%rsp), %rsi
movq $0x4, 0x4(%rsi)
movl $0x1, 0xc(%rsi)
movl $0x1e, 0x28(%rsi)
leaq 0x10(%rbx), %r14
leaq 0x4(%rsp), %r8
movl $0x208d, (%r8)          # imm = 0x208D
leaq 0xd3c0(%rip), %rcx      # 0x1203a
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x5078
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
incq 0x20(%rbx)
leaq 0x4(%rsp), %r8
movl $0x208d, (%r8)          # imm = 0x208D
leaq 0xd3a6(%rip), %rcx      # 0x1204f
leaq 0x84(%rsp), %rsi
leaq 0x40(%rsp), %rdx
movq %r14, %rdi
callq 0x5286
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
incq 0x20(%rbx)
leaq 0x4(%rsp), %r8
movl $0x208d, (%r8)          # imm = 0x208D
leaq 0xd392(%rip), %rcx      # 0x12072
leaq 0x84(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x5404
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
incq 0x20(%rbx)
leaq 0x4(%rsp), %r8
movl $0x208d, (%r8)          # imm = 0x208D
leaq 0xd36f(%rip), %rcx      # 0x12086
leaq 0x84(%rsp), %rsi
leaq 0x40(%rsp), %rdx
movq %r14, %rdi
callq 0x5582
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
incq 0x20(%rbx)
leaq 0x4(%rsp), %r8
movl $0x208d, (%r8)          # imm = 0x208D
leaq 0xd351(%rip), %rcx      # 0x1209f
leaq 0x84(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
callq 0x5700
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
incq 0x20(%rbx)
leaq 0x4(%rsp), %r8
movl $0x208d, (%r8)          # imm = 0x208D
leaq 0xd335(%rip), %rcx      # 0x120ba
leaq 0x84(%rsp), %rsi
leaq 0x40(%rsp), %rdx
movq %r14, %rdi
callq 0x5286
movq %rax, %rdi
movq %r14, %rsi
callq 0x4070
incq 0x20(%rbx)
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x4db8
callq 0x4340
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x4dc7
callq 0x4340
addq $0xb0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
callq 0x4140
jmp 0x4deb
jmp 0x4deb
jmp 0x4deb
jmp 0x4deb
jmp 0x4deb
jmp 0x4deb
jmp 0x4deb
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x4e04
callq 0x4340
jmp 0x4e04
jmp 0x4e01
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x4e13
callq 0x4340
movq %rbx, %rdi
callq 0x4640
nop