nwaku/nimcache/release/wakubridge/@m..@s..@svendor@snim-libp2p@slibp2p@sstandard_setup.nim.c

807 lines
57 KiB
C

/* Generated by Nim Compiler v1.2.6 */
/* (c) 2020 Andreas Rumpf */
/* The generated code is subject to the original license. */
/* Compiled for: Linux, amd64, gcc */
/* Command for C compiler:
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/common -o nimcache/release/wakubridge/@m..@s..@svendor@snim-libp2p@slibp2p@sstandard_setup.nim.c.o nimcache/release/wakubridge/@m..@s..@svendor@snim-libp2p@slibp2p@sstandard_setup.nim.c */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <sys/types.h>
#include <pthread.h>
#include <string.h>
#include "bearssl_rand.h"
#include "bearssl_hash.h"
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
#define nimfr_(x, y)
#define nimln_(x, y)
typedef struct tyObject_SwitchcolonObjectType___7ZLs9aF9cnjORzM4m4rpLwfQ tyObject_SwitchcolonObjectType___7ZLs9aF9cnjORzM4m4rpLwfQ;
typedef struct tyObject_Option__8uBInTmNTW8W8bP9ccn8qEA tyObject_Option__8uBInTmNTW8W8bP9ccn8qEA;
typedef struct tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw;
typedef struct tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA;
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
typedef struct tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw;
typedef struct tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg;
typedef struct RootObj RootObj;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
typedef struct Exception Exception;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
typedef struct tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ;
typedef struct tyObject_RsaPrivateKeycolonObjectType___xFWT9bk7KDVd9cMFfRtPM9c9bw tyObject_RsaPrivateKeycolonObjectType___xFWT9bk7KDVd9cMFfRtPM9c9bw;
typedef struct tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA;
typedef struct tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w;
typedef struct tyObject_EcPrivateKeycolonObjectType___OJbV39curmS5TCBXopR7itA tyObject_EcPrivateKeycolonObjectType___OJbV39curmS5TCBXopR7itA;
typedef struct tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg;
typedef struct tyObject_PeerInfocolonObjectType___tniXhe3Zv7xQqYX3AOw9aQw tyObject_PeerInfocolonObjectType___tniXhe3Zv7xQqYX3AOw9aQw;
typedef struct tyObject_MuxerProvidercolonObjectType___6GvwfaQ0wgXWyLWsW5UQUg tyObject_MuxerProvidercolonObjectType___6GvwfaQ0wgXWyLWsW5UQUg;
typedef struct tyObject_MuxercolonObjectType___JOxydw9cjg6kKnENJFu6IVA tyObject_MuxercolonObjectType___JOxydw9cjg6kKnENJFu6IVA;
typedef struct tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg;
typedef struct tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA;
typedef struct tyObject_MplexcolonObjectType___AXodvfAEA9bfAIJ2fkUElhg tyObject_MplexcolonObjectType___AXodvfAEA9bfAIJ2fkUElhg;
typedef struct tyObject_Table__XjARj5fPfOXv4uQ0CZdKyQ tyObject_Table__XjARj5fPfOXv4uQ0CZdKyQ;
typedef struct tySequence__maP5b4juf9aviaIdhhcTZbQ tySequence__maP5b4juf9aviaIdhhcTZbQ;
typedef struct tyObject_Oid__v0fX7UzOqz7toHgI0d87SA tyObject_Oid__v0fX7UzOqz7toHgI0d87SA;
typedef struct tySequence__2cpQyxGfmqpyyfbkB8qrug tySequence__2cpQyxGfmqpyyfbkB8qrug;
typedef struct tyObject_TransportcolonObjectType___VR7hS9cu739a9cPgqYrHtA5kQ tyObject_TransportcolonObjectType___VR7hS9cu739a9cPgqYrHtA5kQ;
typedef struct tyObject_TcpTransportcolonObjectType___CGMVJ5d9c29aQmHhR1V9ccrgQ tyObject_TcpTransportcolonObjectType___CGMVJ5d9c29aQmHhR1V9ccrgQ;
typedef struct tyObject_StreamServercolonObjectType___jsbainH9bqLrWJoHgf3JqYA tyObject_StreamServercolonObjectType___jsbainH9bqLrWJoHgf3JqYA;
typedef struct tySequence__nMSabbtSXhqrQoM9aCboz5w tySequence__nMSabbtSXhqrQoM9aCboz5w;
typedef struct tyObject_StreamTransportcolonObjectType___9c1WMjFEDzw4E49cjaaPU3KA tyObject_StreamTransportcolonObjectType___9c1WMjFEDzw4E49cjaaPU3KA;
typedef struct tyObject_Table__UvSlGqDg4nWNM1wskOFQeg tyObject_Table__UvSlGqDg4nWNM1wskOFQeg;
typedef struct tySequence__9bnMQh9b5oMSxlDf1K9buBp7w tySequence__9bnMQh9b5oMSxlDf1K9buBp7w;
typedef struct tyTuple__rViK9a9bqo0ixcIRVpyPlomg tyTuple__rViK9a9bqo0ixcIRVpyPlomg;
typedef struct tyObject_IdentifycolonObjectType___Ae5XgJgGUXo069bY48WMWJg tyObject_IdentifycolonObjectType___Ae5XgJgGUXo069bY48WMWJg;
typedef struct tySequence__nJo9c3YLgP9bN5eMA24IhFtw tySequence__nJo9c3YLgP9bN5eMA24IhFtw;
typedef struct tyObject_SecurecolonObjectType___rfxdGx6GJLVE9aqiYjwpDKQ tyObject_SecurecolonObjectType___rfxdGx6GJLVE9aqiYjwpDKQ;
typedef struct tyObject_NoisecolonObjectType___9c8eGiIgXq9aArriNxjlYcwg tyObject_NoisecolonObjectType___9c8eGiIgXq9aArriNxjlYcwg;
typedef struct tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tyObject_KeyPair__AP6MVDSfkogZQ9aWJV7aVXQ tyObject_KeyPair__AP6MVDSfkogZQ9aWJV7aVXQ;
typedef struct tyObject_SeciocolonObjectType___IGFWoVQDf54L4RKyNcn39cg tyObject_SeciocolonObjectType___IGFWoVQDf54L4RKyNcn39cg;
typedef struct tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA;
typedef struct tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg;
typedef struct tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA;
typedef struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA;
typedef struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ;
typedef struct tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q;
typedef struct tyObject_ConnManagercolonObjectType___FEOb9a7RRPg9bdDjaEQeMbHA tyObject_ConnManagercolonObjectType___FEOb9a7RRPg9bdDjaEQeMbHA;
typedef struct tySequence__XBkfpmuZfG9b68oBajUS2Rw tySequence__XBkfpmuZfG9b68oBajUS2Rw;
typedef struct tyObject_MultistreamSelectcolonObjectType___9aMecHnUwXpd6X9cjJkHfyig tyObject_MultistreamSelectcolonObjectType___9aMecHnUwXpd6X9cjJkHfyig;
typedef struct tyObject_Table__puwZz39aIr9cdB5WlFICYPgw tyObject_Table__puwZz39aIr9cdB5WlFICYPgw;
typedef struct tySequence__tZ2LP3xqCx8kcPyjrRkSuA tySequence__tZ2LP3xqCx8kcPyjrRkSuA;
typedef struct tySequence__T74QuWwr8h7Al0PS9cMqKwA tySequence__T74QuWwr8h7Al0PS9cMqKwA;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
typedef struct tyTuple__BHXjHcQw9b8D7j48q1Gcwzg tyTuple__BHXjHcQw9b8D7j48q1Gcwzg;
typedef struct tyObject_LPChannelcolonObjectType___tnXRbRRlWnt7UoqCRh9b5Nw tyObject_LPChannelcolonObjectType___tnXRbRRlWnt7UoqCRh9b5Nw;
typedef struct tyTuple__TdADeEae6PBWqr7qsUJvPg tyTuple__TdADeEae6PBWqr7qsUJvPg;
typedef struct tyTuple__lG9artYnG9a6GxqcmhxZJl6g tyTuple__lG9artYnG9a6GxqcmhxZJl6g;
typedef struct tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw;
typedef struct tyObject_AsyncLockcolonObjectType___ylxqsRlnjMa2tcH03hSGnw tyObject_AsyncLockcolonObjectType___ylxqsRlnjMa2tcH03hSGnw;
struct tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer;
NI offset;
};
struct tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw {tyObject_VBuffer__pgrKDkZLiJID3rDHrYm5UA data;
};
typedef NU8 tyEnum_SecureProtocol__mcrVhTE6E4bQ9cnQKTzS7MQ;
typedef NU8 tySet_tyEnum_ServerFlags__H6BFISi2WcGaq7HUYeffKg;
struct tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw {NI64 value;
};
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
struct TNimType {NI size;
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
TNimType* base;
TNimNode* node;
void* finalizer;
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
NCSTRING name;
TNimType* nextType;
NI instances;
NI sizes;
};
struct RootObj {TNimType* m_type;};
struct tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg { RootObj Sup;NI colonstate_;
tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw inTimeout1;
tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw outTimeout2;
};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct TGenericSeq {NI len;
NI reserved;
};
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
};
struct Exception { RootObj Sup;Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
Exception* up;
};
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {NI refcount;
TNimType* typ;
};
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {void* bottom;
};
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {NI len;
NI cap;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
};
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
};
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {tyArray__0aOLqZchNi8nWtMTi8ND8w link;
NI key;
NI upperBound;
NI level;
};
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
NI Field1;
};
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {NI len;
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
};
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {NI minLargeObj;
NI maxLargeObj;
tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
NU32 flBitmap;
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
NI currMem;
NI maxMem;
NI freeMem;
NI occ;
NI lastSize;
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
NIM_BOOL locked;
NIM_BOOL blockChunkSizeIncrease;
NI nextChunkSize;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
NI allocCounter;
NI deallocCounter;
};
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {NI stackScans;
NI cycleCollections;
NI maxThreshold;
NI maxStackSize;
NI maxStackCells;
NI cycleTableSize;
NI64 maxPause;
};
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {NI counter;
NI max;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
};
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
pthread_mutex_t lock;
};
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
NI cycleThreshold;
NI zctThreshold;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
NI recGcLock;
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
NI gcThreadId;
};
typedef NU8 tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg;
typedef NU8 tyArray__w5VB8h5K8DB3oWrO5U2wqg[64];
struct tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA {tyArray__w5VB8h5K8DB3oWrO5U2wqg data;
};
typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32];
struct tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data;
};
struct tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ {tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg scheme;
union{
struct {tyObject_RsaPrivateKeycolonObjectType___xFWT9bk7KDVd9cMFfRtPM9c9bw* rsakey;
} _scheme_1;
struct {tyObject_EdPrivateKey__KumOofCUWyjlYLnvXlcIJA edkey;
} _scheme_2;
struct {tyObject_SkSecretKey__aKiBFtqo69b60sWLnM5A9c3w skkey;
} _scheme_3;
struct {tyObject_EcPrivateKeycolonObjectType___OJbV39curmS5TCBXopR7itA* eckey;
} _scheme_4;
};
};
struct tyObject_Option__8uBInTmNTW8W8bP9ccn8qEA {tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ val;
NIM_BOOL has;
};
typedef NU8 tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw;
struct tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg {NIM_BOOL o;
union{
struct {tyEnum_CryptoError__Z6S5YnPavFcXanJgC9cU1uw e;
} _o_1;
struct {tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ v;
} _o_2;
};
};
typedef tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw tyArray__qWKwCyVMYTcWeN50TZdbAQ[1];
typedef NimStringDesc* tyArray__8ZvwQIddfpj2THRVPsFzIQ[1];
typedef struct {
N_NIMCALL_PTR(tyObject_MuxercolonObjectType___JOxydw9cjg6kKnENJFu6IVA*, ClP_0) (tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg* conn, void* ClE_0);
void* ClE_0;
} tyProc__dngL6hYHZtDTatUnRjlOsw;
typedef struct {
N_NIMCALL_PTR(tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA*, ClP_0) (tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg* conn, void* ClE_0);
void* ClE_0;
} tyProc__z1SP1KQZYjnpZb76SJLOBA;
struct tyObject_MuxercolonObjectType___JOxydw9cjg6kKnENJFu6IVA { RootObj Sup;tyProc__z1SP1KQZYjnpZb76SJLOBA streamHandler;
tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg* connection;
};
struct tyObject_Table__XjARj5fPfOXv4uQ0CZdKyQ {tySequence__maP5b4juf9aviaIdhhcTZbQ* data;
NI counter;
};
typedef tyObject_Table__XjARj5fPfOXv4uQ0CZdKyQ tyArray__9cCn3p57qxsMXzJzTi9ciILw[2];
struct tyObject_Oid__v0fX7UzOqz7toHgI0d87SA {NI32 time;
NI32 fuzz;
NI32 count;
};
struct tyObject_MplexcolonObjectType___AXodvfAEA9bfAIJ2fkUElhg { tyObject_MuxercolonObjectType___JOxydw9cjg6kKnENJFu6IVA Sup;tyArray__9cCn3p57qxsMXzJzTi9ciILw channels;
NU64 currentId;
tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw inChannTimeout;
tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw outChannTimeout;
NIM_BOOL isClosed;
tyObject_Oid__v0fX7UzOqz7toHgI0d87SA oid;
NI maxChannCount;
};
struct tyObject_TransportcolonObjectType___VR7hS9cu739a9cPgqYrHtA5kQ { RootObj Sup;tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw ma;
NI multicodec;
NIM_BOOL running;
};
typedef tySequence__nMSabbtSXhqrQoM9aCboz5w* tyArray__EaQF9acI5aUwL4KlHRnw39bg[2];
struct tyObject_TcpTransportcolonObjectType___CGMVJ5d9c29aQmHhR1V9ccrgQ { tyObject_TransportcolonObjectType___VR7hS9cu739a9cPgqYrHtA5kQ Sup;tyObject_StreamServercolonObjectType___jsbainH9bqLrWJoHgf3JqYA* server;
tyArray__EaQF9acI5aUwL4KlHRnw39bg clients;
tySet_tyEnum_ServerFlags__H6BFISi2WcGaq7HUYeffKg flags;
};
struct tyObject_Table__UvSlGqDg4nWNM1wskOFQeg {tySequence__9bnMQh9b5oMSxlDf1K9buBp7w* data;
NI counter;
};
struct tyTuple__rViK9a9bqo0ixcIRVpyPlomg {
NimStringDesc* Field0;
tyObject_MuxerProvidercolonObjectType___6GvwfaQ0wgXWyLWsW5UQUg* Field1;
};
typedef tyTuple__rViK9a9bqo0ixcIRVpyPlomg tyArray__sX9cx1kU1chN9b9cbOgepM9bfQ[1];
typedef struct {
N_NIMCALL_PTR(tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA*, ClP_0) (tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg* conn, NimStringDesc* proto, void* ClE_0);
void* ClE_0;
} tyProc__Sx7TcXJiI2BS08wYpfOyIg;
struct tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w { RootObj Sup;tySequence__sM4lkSb7zS6F7OVMvW9cffQ* codecs;
tyProc__Sx7TcXJiI2BS08wYpfOyIg handler;
};
struct tyObject_SecurecolonObjectType___rfxdGx6GJLVE9aqiYjwpDKQ { tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w Sup;};
struct tyObject_KeyPair__AP6MVDSfkogZQ9aWJV7aVXQ {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg privateKey;
tyArray__vEOa9c5qaE9ajWxR5R4zwfQg publicKey;
};
struct tyObject_NoisecolonObjectType___9c8eGiIgXq9aArriNxjlYcwg { tyObject_SecurecolonObjectType___rfxdGx6GJLVE9aqiYjwpDKQ Sup;br_hmac_drbg_context* rng;
tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ localPrivateKey;
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* localPublicKey;
tyObject_KeyPair__AP6MVDSfkogZQ9aWJV7aVXQ noiseKeys;
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* commonPrologue;
NIM_BOOL outgoing;
};
struct tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA {tyArray__vEOa9c5qaE9ajWxR5R4zwfQg data;
};
struct tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ {tyArray__w5VB8h5K8DB3oWrO5U2wqg data;
};
struct tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA {tyObject_secp256k1_pubkey__GYc9aFo1e2qOLdmAqUvIikQ data;
};
struct tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA {tyEnum_PKScheme__GeN4EiKxd9aXAvv5y1lfmHg scheme;
union{
struct {tyObject_RsaPublicKeycolonObjectType___cEZIZ6MRRYNM7g7RvdoBpg* rsakey;
} _scheme_1;
struct {tyObject_EdPublicKey__fCTHNrLwOTcb1HatTDTAEA edkey;
} _scheme_2;
struct {tyObject_SkPublicKey__YxxaGK7KOKaWCOaZ44rHMA skkey;
} _scheme_3;
struct {tyObject_EcPublicKeycolonObjectType___2rc9bUkP8wBzp3UeWWgE9b5Q* eckey;
} _scheme_4;
};
};
struct tyObject_SeciocolonObjectType___IGFWoVQDf54L4RKyNcn39cg { tyObject_SecurecolonObjectType___rfxdGx6GJLVE9aqiYjwpDKQ Sup;br_hmac_drbg_context* rng;
tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ localPrivateKey;
tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA localPublicKey;
tyObject_PublicKey__mVKS59bRpscItosS0oN9a4zA remotePublicKey;
};
struct tyObject_Table__puwZz39aIr9cdB5WlFICYPgw {tySequence__tZ2LP3xqCx8kcPyjrRkSuA* data;
NI counter;
};
struct tyObject_SwitchcolonObjectType___7ZLs9aF9cnjORzM4m4rpLwfQ { RootObj Sup;tyObject_PeerInfocolonObjectType___tniXhe3Zv7xQqYX3AOw9aQw* peerInfo;
tyObject_ConnManagercolonObjectType___FEOb9a7RRPg9bdDjaEQeMbHA* connManager;
tySequence__2cpQyxGfmqpyyfbkB8qrug* transports;
tySequence__XBkfpmuZfG9b68oBajUS2Rw* protocols;
tyObject_Table__UvSlGqDg4nWNM1wskOFQeg muxers;
tyObject_MultistreamSelectcolonObjectType___9aMecHnUwXpd6X9cjJkHfyig* ms;
tyObject_IdentifycolonObjectType___Ae5XgJgGUXo069bY48WMWJg* identity;
tyProc__z1SP1KQZYjnpZb76SJLOBA streamHandler;
tySequence__nJo9c3YLgP9bN5eMA24IhFtw* secureManagers;
tyObject_Table__puwZz39aIr9cdB5WlFICYPgw dialLock;
tySequence__T74QuWwr8h7Al0PS9cMqKwA* acceptFuts;
};
typedef unsigned char tyArray__A1SHJCPZVISPTujoygIPEQ[64];
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
NI line;
NCSTRING filename;
};
struct tyTuple__BHXjHcQw9b8D7j48q1Gcwzg {
NI Field0;
NU64 Field1;
tyObject_LPChannelcolonObjectType___tnXRbRRlWnt7UoqCRh9b5Nw* Field2;
};
struct tyTuple__TdADeEae6PBWqr7qsUJvPg {
NI Field0;
NimStringDesc* Field1;
tyObject_MuxerProvidercolonObjectType___6GvwfaQ0wgXWyLWsW5UQUg* Field2;
};
struct tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw {tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* data;
};
struct tyTuple__lG9artYnG9a6GxqcmhxZJl6g {
NI Field0;
tyObject_PeerID__Se8YyoPxzDpFnTeAyeCVCw Field1;
tyObject_AsyncLockcolonObjectType___ylxqsRlnjMa2tcH03hSGnw* Field2;
};
typedef N_CDECL_PTR(void, tyProc__3qI9bVHqiq07sTQRU9bkkkYQ) (br_prng_class** ctx, void* params, void* seed, NI seedLen);
typedef N_CDECL_PTR(void, tyProc__hquUwNr88w4T5ldt8BqLLQ) (br_prng_class** ctx, void* out_0, NI len_0);
typedef N_CDECL_PTR(void, tyProc__bF2JFxTs1q6Lq365NU79a2Q) (br_hash_class** ctx);
typedef N_CDECL_PTR(void, tyProc__Dc9br5a6SHw9cxie3cas0KTA) (br_hash_class** ctx, void* data_0, NI len_0);
typedef N_CDECL_PTR(void, tyProc__JETfgzvEnx6Tz9bYRct9a51g) (br_hash_class** ctx, void* dst);
typedef N_CDECL_PTR(NU64, tyProc__e9bd9aJH2sCZh75q9aAcv7ylg) (br_hash_class** ctx, void* dst);
typedef N_CDECL_PTR(void, tyProc__g9c2vH2tlPaPmvfTZ3PeWQQ) (br_hash_class** ctx, void* stb, NU64 count_0);
struct tySequence__2cpQyxGfmqpyyfbkB8qrug { TGenericSeq Sup; tyObject_TransportcolonObjectType___VR7hS9cu739a9cPgqYrHtA5kQ* data[SEQ_DECL_SIZE];};struct tySequence__nMSabbtSXhqrQoM9aCboz5w { TGenericSeq Sup; tyObject_StreamTransportcolonObjectType___9c1WMjFEDzw4E49cjaaPU3KA* data[SEQ_DECL_SIZE];};struct tySequence__nJo9c3YLgP9bN5eMA24IhFtw { TGenericSeq Sup; tyObject_SecurecolonObjectType___rfxdGx6GJLVE9aqiYjwpDKQ* data[SEQ_DECL_SIZE];};struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};struct tySequence__maP5b4juf9aviaIdhhcTZbQ { TGenericSeq Sup; tyTuple__BHXjHcQw9b8D7j48q1Gcwzg data[SEQ_DECL_SIZE];};struct tySequence__9bnMQh9b5oMSxlDf1K9buBp7w { TGenericSeq Sup; tyTuple__TdADeEae6PBWqr7qsUJvPg data[SEQ_DECL_SIZE];};struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ { TGenericSeq Sup; NimStringDesc* data[SEQ_DECL_SIZE];};struct tySequence__XBkfpmuZfG9b68oBajUS2Rw { TGenericSeq Sup; tyObject_LPProtocolcolonObjectType___5aL02d9bjOYDZmYD0dWxn2w* data[SEQ_DECL_SIZE];};struct tySequence__tZ2LP3xqCx8kcPyjrRkSuA { TGenericSeq Sup; tyTuple__lG9artYnG9a6GxqcmhxZJl6g data[SEQ_DECL_SIZE];};struct tySequence__T74QuWwr8h7Al0PS9cMqKwA { TGenericSeq Sup; tyObject_FuturecolonObjectType___GXFSekg1U8JRoedGa2vBSA* data[SEQ_DECL_SIZE];};static N_NIMCALL(void, Marker_tyRef__pDJ9aJknwMlLtrQ59a7iyRNg)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y);
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
static N_INLINE(void, nimZeroMem)(void* p, NI size);
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
static N_INLINE(void, get__087zLfKZYuYFhjbtL9aFDKgoptions)(tyObject_Option__8uBInTmNTW8W8bP9ccn8qEA* self, tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ* otherwise, tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ* Result);
static N_INLINE(NIM_BOOL, isSome__J0vGvOVE56Am6axAk1OS9cgoptions)(tyObject_Option__8uBInTmNTW8W8bP9ccn8qEA* self);
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
static N_INLINE(void, tryGet__iaUXbL1pr7LRwxKtDchhIQresults)(tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg* self, tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ* Result);
N_LIB_PRIVATE N_NOINLINE(void, raiseResultError__szncB7CMx8NK9cQgqNbYF0Q)(tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg* self) __attribute__((noreturn));
N_LIB_PRIVATE N_NOINLINE(void, raiseFieldError)(NimStringDesc* f);
N_LIB_PRIVATE N_NIMCALL(void, random__h1GDvC2RXM8o0RHDr9adBIQ)(br_hmac_drbg_context* rng_0, NI bits, tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg* Result);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_LIB_PRIVATE N_NIMCALL(tyObject_PeerInfocolonObjectType___tniXhe3Zv7xQqYX3AOw9aQw*, init__PB59cyqPenhYDSnuVdTWYAg)(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ* key_0, tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw* addrs, NI addrsLen_0, NimStringDesc** protocols, NI protocolsLen_0);
N_LIB_PRIVATE N_NIMCALL(void, genericSeqAssign)(void* dest, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(tyObject_MuxerProvidercolonObjectType___6GvwfaQ0wgXWyLWsW5UQUg*, newMuxerProvider__9a8dP9bIi1RftwhBAxrErcCg)(tyProc__dngL6hYHZtDTatUnRjlOsw creator, NimStringDesc* codec);
N_LIB_PRIVATE N_CLOSURE(tyObject_MuxercolonObjectType___JOxydw9cjg6kKnENJFu6IVA*, createMplex__P0u1mxVNebc1fd35c0pqJg)(tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg* conn, void* ClE_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_MplexcolonObjectType___AXodvfAEA9bfAIJ2fkUElhg*, init__RK8uZBG1ntwLYhiFrdF9bDw)(tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg* conn, tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw inTimeout, tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw outTimeout, NI maxChannCount);
N_LIB_PRIVATE N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_LIB_PRIVATE N_NIMCALL(tyObject_TcpTransportcolonObjectType___CGMVJ5d9c29aQmHhR1V9ccrgQ*, init__kQTYB4P1ypdTcaDEy0BPow)(tySet_tyEnum_ServerFlags__H6BFISi2WcGaq7HUYeffKg flags_0);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y);
N_LIB_PRIVATE N_NIMCALL(void, toTable__t08hRJpLxUjAQmB2SFOxVg)(tyTuple__rViK9a9bqo0ixcIRVpyPlomg* pairs, NI pairsLen_0, tyObject_Table__UvSlGqDg4nWNM1wskOFQeg* Result);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(tyObject_IdentifycolonObjectType___Ae5XgJgGUXo069bY48WMWJg*, newIdentify__m68WXRj9aQltVjit9aCB9bbYw)(tyObject_PeerInfocolonObjectType___tniXhe3Zv7xQqYX3AOw9aQw* peerInfo);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
N_LIB_PRIVATE N_NIMCALL(tyObject_NoisecolonObjectType___9c8eGiIgXq9aArriNxjlYcwg*, newNoise__hpL9bZlRlfmKCv9cjzB9bv3WQ)(br_hmac_drbg_context* rng_0, tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ* privateKey, NIM_BOOL outgoing, tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* commonPrologue);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
N_LIB_PRIVATE N_NIMCALL(tyObject_SeciocolonObjectType___IGFWoVQDf54L4RKyNcn39cg*, newSecio__OpL9cdOKdgTAQpRai6kbCjg)(br_hmac_drbg_context* rng_0, tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ* localPrivateKey);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NIMCALL(tyObject_SwitchcolonObjectType___7ZLs9aF9cnjORzM4m4rpLwfQ*, newSwitch__yXfaxHYR8X1UzoRIj5yP6w)(tyObject_PeerInfocolonObjectType___tniXhe3Zv7xQqYX3AOw9aQw* peerInfo, tySequence__2cpQyxGfmqpyyfbkB8qrug* transports, tyObject_IdentifycolonObjectType___Ae5XgJgGUXo069bY48WMWJg* identity, tyObject_Table__UvSlGqDg4nWNM1wskOFQeg muxers, tyObject_SecurecolonObjectType___rfxdGx6GJLVE9aqiYjwpDKQ** secureManagers, NI secureManagersLen_0);
extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_;
N_LIB_PRIVATE TNimType NTI__MLCTu5W6Jyk9a89aa4K8QXCg_;
extern TNimType NTI__xHTZrq9aYs6boc9bCba0JbpQ_;
extern TNimType NTI__Rk1eeZ5K9cdVRk5l7BwOXGw_;
N_LIB_PRIVATE TNimType NTI__pDJ9aJknwMlLtrQ59a7iyRNg_;
extern TNimType NTI__gcKyg9bhR5vWTJg3cREMk0Q_;
extern TNimType NTI__qrLSDoe2oBoAqNtJ9badtnA_;
STRING_LITERAL(TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_3, "Cannot initialize RNG", 21);
extern TNimType NTI__GSDbMQxBVd3KO4qBUjzPKQ_;
STRING_LITERAL(TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_4, "\'v\' is not accessible using discriminant \'o\' of type \'Result\'", 61);
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
STRING_LITERAL(TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_5, "/mplex/6.7.0", 12);
extern TNimType NTI__2cpQyxGfmqpyyfbkB8qrug_;
extern TNimType NTI__nJo9c3YLgP9bN5eMA24IhFtw_;
extern TNimType* nimTypeRoot;
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
static N_NIMCALL(void, Marker_tyRef__pDJ9aJknwMlLtrQ59a7iyRNg)(void* p, NI op) {
tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg* a;
a = (tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg*)p;
}
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; result = (NI)0;
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
#line 441 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); return result;}
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); return result;}
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
}
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
(*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8));
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
{ NIM_BOOL T3_;
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_;
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
}
LA4_: ;
}
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); return result;}
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, nimGCunrefNoCycle)(void* p) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T1_);
}
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
}
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
static N_INLINE(NIM_BOOL, isSome__J0vGvOVE56Am6axAk1OS9cgoptions)(tyObject_Option__8uBInTmNTW8W8bP9ccn8qEA* self) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
result = (*self).has; return result;}
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
static N_INLINE(void, get__087zLfKZYuYFhjbtL9aFDKgoptions)(tyObject_Option__8uBInTmNTW8W8bP9ccn8qEA* self, tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ* otherwise, tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ* Result) {
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
{ NIM_BOOL T3_;
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/options.nim"
T3_ = (NIM_BOOL)0; T3_ = isSome__J0vGvOVE56Am6axAk1OS9cgoptions(self); if (!T3_) goto LA4_;
genericAssign((void*)Result, (void*)(&(*self).val), (&NTI__GSDbMQxBVd3KO4qBUjzPKQ_)); }
goto LA1_;
LA4_: ;
{ genericAssign((void*)Result, (void*)otherwise, (&NTI__GSDbMQxBVd3KO4qBUjzPKQ_)); }
LA1_: ;
}
#line 466 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
static N_INLINE(void, tryGet__iaUXbL1pr7LRwxKtDchhIQresults)(tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg* self, tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ* Result) {
#line 467 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 470 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 470 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!((*self).o)) goto LA3_;
#line 470 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 470 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
raiseResultError__szncB7CMx8NK9cQgqNbYF0Q(self);
}
LA3_: ;
if (!(((2 &(1U<<((NU)((*self).o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_4)); } genericAssign((void*)Result, (void*)(&(*self)._o_2.v), (&NTI__GSDbMQxBVd3KO4qBUjzPKQ_));}
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
N_LIB_PRIVATE N_CLOSURE(tyObject_MuxercolonObjectType___JOxydw9cjg6kKnENJFu6IVA*, createMplex__P0u1mxVNebc1fd35c0pqJg)(tyObject_ConnectioncolonObjectType___crfbBHXu3U647CckYkg9cYg* conn, void* ClE_0) { tyObject_MuxercolonObjectType___JOxydw9cjg6kKnENJFu6IVA* result; tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg* colonenvP_; tyObject_MplexcolonObjectType___AXodvfAEA9bfAIJ2fkUElhg* T1_; result = (tyObject_MuxercolonObjectType___JOxydw9cjg6kKnENJFu6IVA*)0; colonenvP_ = (tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg*) ClE_0;
#line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
T1_ = (tyObject_MplexcolonObjectType___AXodvfAEA9bfAIJ2fkUElhg*)0; T1_ = init__RK8uZBG1ntwLYhiFrdF9bDw(conn, (*colonenvP_).inTimeout1, (*colonenvP_).outTimeout2, ((NI) 200)); result = &T1_->Sup; return result;}
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; result = (NI)0;
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); return result;}
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
(*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8));}
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
static N_INLINE(void, asgnRef)(void** dest, void* src) {
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
if (!!((src == NIM_NIL))) goto LA3_;
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src);
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
incRef__AT1eRuflKWyTTBdLjEDZbg_3system(T5_);
}
LA3_: ;
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
if (!!(((*dest) == NIM_NIL))) goto LA8_;
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest));
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T10_);
}
LA8_: ;
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
(*dest) = src;}
#line 20 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
N_LIB_PRIVATE N_NIMCALL(tyObject_SwitchcolonObjectType___7ZLs9aF9cnjORzM4m4rpLwfQ*, newStandardSwitch__D0BiA50h20sCk433JIJYeA)(tyObject_Option__8uBInTmNTW8W8bP9ccn8qEA* privKey, tyObject_MultiAddress__MntiKgxV52rXueBQXpXCJw address, tyEnum_SecureProtocol__mcrVhTE6E4bQ9cnQKTzS7MQ* secureManagers, NI secureManagersLen_0, tySet_tyEnum_ServerFlags__H6BFISi2WcGaq7HUYeffKg transportFlags, br_hmac_drbg_context* rng_0, tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw inTimeout, tyObject_Duration__Rk1eeZ5K9cdVRk5l7BwOXGw outTimeout) { tyObject_SwitchcolonObjectType___7ZLs9aF9cnjORzM4m4rpLwfQ* result; tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg* colonenv_; tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ seckey; tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg T7_; tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ T8_; tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ T9_; tyObject_PeerInfocolonObjectType___tniXhe3Zv7xQqYX3AOw9aQw* peerInfo; tyArray__qWKwCyVMYTcWeN50TZdbAQ T10_; tyArray__8ZvwQIddfpj2THRVPsFzIQ T11_; tyObject_MuxerProvidercolonObjectType___6GvwfaQ0wgXWyLWsW5UQUg* mplexProvider; tyProc__dngL6hYHZtDTatUnRjlOsw T12_; tySequence__2cpQyxGfmqpyyfbkB8qrug* transports; tyObject_TcpTransportcolonObjectType___CGMVJ5d9c29aQmHhR1V9ccrgQ* T13_; tyObject_Table__UvSlGqDg4nWNM1wskOFQeg muxers; tyArray__sX9cx1kU1chN9b9cbOgepM9bfQ T14_; tyObject_IdentifycolonObjectType___Ae5XgJgGUXo069bY48WMWJg* identify; tySequence__nJo9c3YLgP9bN5eMA24IhFtw* secureManagerInstances; tyObject_SwitchcolonObjectType___7ZLs9aF9cnjORzM4m4rpLwfQ* switch_1;{ result = (tyObject_SwitchcolonObjectType___7ZLs9aF9cnjORzM4m4rpLwfQ*)0; colonenv_ = (tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg*)0;
#line 230 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
colonenv_ = (tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg*) newObj((&NTI__pDJ9aJknwMlLtrQ59a7iyRNg_), sizeof(tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg)); (*colonenv_).Sup.m_type = (&NTI__MLCTu5W6Jyk9a89aa4K8QXCg_);
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
(*colonenv_).inTimeout1 = inTimeout;
#line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
(*colonenv_).outTimeout2 = outTimeout;
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
{ tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA* T5_; NimStringDesc* T6_;
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
if (!(rng_0 == NIM_NIL)) goto LA3_;
T5_ = (tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*)0; T5_ = (tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA*) newObj((&NTI__gcKyg9bhR5vWTJg3cREMk0Q_), sizeof(tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA)); (*T5_).Sup.Sup.m_type = (&NTI__qrLSDoe2oBoAqNtJ9badtnA_); (*T5_).Sup.name = "CatchableError"; T6_ = (NimStringDesc*)0; T6_ = (*T5_).Sup.message; (*T5_).Sup.message = copyStringRC1(((NimStringDesc*) &TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_3)); if (T6_) nimGCunrefNoCycle(T6_);
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
raiseExceptionEx((Exception*)T5_, "CatchableError", "newStandardSwitch", "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/st"
"andard_setup.nim", 38); }
LA3_: ;
nimZeroMem((void*)(&seckey), sizeof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ));
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
nimZeroMem((void*)(&T7_), sizeof(tyObject_Result__9cpMl0dmS1wn9cjv8RBnZaKg)); random__h1GDvC2RXM8o0RHDr9adBIQ(rng_0, ((NI) 3072), (&T7_));
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
nimZeroMem((void*)(&T8_), sizeof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ)); tryGet__iaUXbL1pr7LRwxKtDchhIQresults((&T7_), (&T8_));
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
nimZeroMem((void*)(&T9_), sizeof(tyObject_PrivateKey__GSDbMQxBVd3KO4qBUjzPKQ)); get__087zLfKZYuYFhjbtL9aFDKgoptions(privKey, (&T8_), (&T9_));
nimCopyMem((void*)(&seckey), (NIM_CONST void*)(&T9_), sizeof(seckey));
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
nimZeroMem((void*)T10_, sizeof(tyArray__qWKwCyVMYTcWeN50TZdbAQ)); genericSeqAssign((&T10_[0].data.buffer), address.data.buffer, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); T10_[0].data.offset = address.data.offset; nimZeroMem((void*)T11_, sizeof(tyArray__8ZvwQIddfpj2THRVPsFzIQ));
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
peerInfo = init__PB59cyqPenhYDSnuVdTWYAg((&seckey), T10_, 1, T11_, 0);
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
nimZeroMem((void*)(&T12_), sizeof(tyProc__dngL6hYHZtDTatUnRjlOsw)); T12_.ClP_0 = createMplex__P0u1mxVNebc1fd35c0pqJg; T12_.ClE_0 = colonenv_;
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
mplexProvider = newMuxerProvider__9a8dP9bIi1RftwhBAxrErcCg(T12_, ((NimStringDesc*) &TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_5));
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
transports = (tySequence__2cpQyxGfmqpyyfbkB8qrug*) newSeq((&NTI__2cpQyxGfmqpyyfbkB8qrug_), 1);
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
T13_ = (tyObject_TcpTransportcolonObjectType___CGMVJ5d9c29aQmHhR1V9ccrgQ*)0; T13_ = init__kQTYB4P1ypdTcaDEy0BPow(transportFlags); asgnRef((void**) (&transports->data[0]), &T13_->Sup); nimZeroMem((void*)(&muxers), sizeof(tyObject_Table__UvSlGqDg4nWNM1wskOFQeg));
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
nimZeroMem((void*)T14_, sizeof(tyArray__sX9cx1kU1chN9b9cbOgepM9bfQ)); T14_[0].Field0 = copyString(((NimStringDesc*) &TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_5)); T14_[0].Field1 = mplexProvider;
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
toTable__t08hRJpLxUjAQmB2SFOxVg(T14_, 1, (&muxers));
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
identify = newIdentify__m68WXRj9aQltVjit9aCB9bbYw(peerInfo); secureManagerInstances = (tySequence__nJo9c3YLgP9bN5eMA24IhFtw*)0; { tyEnum_SecureProtocol__mcrVhTE6E4bQ9cnQKTzS7MQ sec; NI i; sec = (tyEnum_SecureProtocol__mcrVhTE6E4bQ9cnQKTzS7MQ)0;
#line 3 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
i = ((NI) 0); {
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
while (1) { NI TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_6;
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
#line 4 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (!(i < secureManagersLen_0)) goto LA17;
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
if ((NU)(i) >= (NU)(secureManagersLen_0)){ raiseIndexError2(i,secureManagersLen_0-1); } sec = secureManagers[i];
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
switch (sec) {
case ((tyEnum_SecureProtocol__mcrVhTE6E4bQ9cnQKTzS7MQ) 0):
{ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* T19_; tyObject_NoisecolonObjectType___9c8eGiIgXq9aArriNxjlYcwg* T20_; tyObject_SecurecolonObjectType___rfxdGx6GJLVE9aqiYjwpDKQ* T21_; NI T22_;
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
T19_ = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0; T19_ = NIM_NIL;
#line 53 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
T20_ = (tyObject_NoisecolonObjectType___9c8eGiIgXq9aArriNxjlYcwg*)0; T20_ = newNoise__hpL9bZlRlfmKCv9cjzB9bv3WQ(rng_0, (&seckey), NIM_TRUE, T19_); T21_ = (tyObject_SecurecolonObjectType___rfxdGx6GJLVE9aqiYjwpDKQ*)0; T21_ = &T20_->Sup; secureManagerInstances = (tySequence__nJo9c3YLgP9bN5eMA24IhFtw*) incrSeqV3((TGenericSeq*)(secureManagerInstances), (&NTI__nJo9c3YLgP9bN5eMA24IhFtw_)); T22_ = secureManagerInstances->Sup.len++; asgnRef((void**) (&secureManagerInstances->data[T22_]), T21_); }
break;
case ((tyEnum_SecureProtocol__mcrVhTE6E4bQ9cnQKTzS7MQ) 1):
{ tyObject_SeciocolonObjectType___IGFWoVQDf54L4RKyNcn39cg* T24_; tyObject_SecurecolonObjectType___rfxdGx6GJLVE9aqiYjwpDKQ* T25_; NI T26_;
#line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
T24_ = (tyObject_SeciocolonObjectType___IGFWoVQDf54L4RKyNcn39cg*)0; T24_ = newSecio__OpL9cdOKdgTAQpRai6kbCjg(rng_0, (&seckey)); T25_ = (tyObject_SecurecolonObjectType___rfxdGx6GJLVE9aqiYjwpDKQ*)0; T25_ = &T24_->Sup; secureManagerInstances = (tySequence__nJo9c3YLgP9bN5eMA24IhFtw*) incrSeqV3((TGenericSeq*)(secureManagerInstances), (&NTI__nJo9c3YLgP9bN5eMA24IhFtw_)); T26_ = secureManagerInstances->Sup.len++; asgnRef((void**) (&secureManagerInstances->data[T26_]), T25_); }
break;
}
#line 6 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators.nim"
if (nimAddInt(i, ((NI) 1), &TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_6)) { raiseOverflow(); }; i = (NI)(TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_6); } LA17: ;
}
}
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
switch_1 = newSwitch__yXfaxHYR8X1UzoRIj5yP6w(peerInfo, transports, identify, muxers, secureManagerInstances->data, (secureManagerInstances ? secureManagerInstances->Sup.len : 0));
#line 64 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
#line 64 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/standard_setup.nim"
result = switch_1; goto BeforeRet_;
}BeforeRet_: ;
return result;}
N_LIB_PRIVATE N_NIMCALL(void, libp2p_standard_setupDatInit000)(void) {
#line 999999 "generated_not_to_break_here"
static TNimNode* TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_2_3[3];
static TNimNode TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[4];NTI__MLCTu5W6Jyk9a89aa4K8QXCg_.size = sizeof(tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg);
NTI__MLCTu5W6Jyk9a89aa4K8QXCg_.kind = 17;
NTI__MLCTu5W6Jyk9a89aa4K8QXCg_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_);
NTI__MLCTu5W6Jyk9a89aa4K8QXCg_.flags = 1;
NTI__MLCTu5W6Jyk9a89aa4K8QXCg_.name = "object";
NTI__MLCTu5W6Jyk9a89aa4K8QXCg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__MLCTu5W6Jyk9a89aa4K8QXCg_;
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_2_3[0] = &TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[1];
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[1].kind = 1;
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[1].offset = offsetof(tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg, colonstate_);
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[1].typ = (&NTI__xHTZrq9aYs6boc9bCba0JbpQ_);
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[1].name = ":state";
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_2_3[1] = &TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[2];
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[2].kind = 1;
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[2].offset = offsetof(tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg, inTimeout1);
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[2].typ = (&NTI__Rk1eeZ5K9cdVRk5l7BwOXGw_);
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[2].name = "inTimeout1";
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_2_3[2] = &TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[3];
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[3].kind = 1;
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[3].offset = offsetof(tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg, outTimeout2);
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[3].typ = (&NTI__Rk1eeZ5K9cdVRk5l7BwOXGw_);
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[3].name = "outTimeout2";
TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[0].len = 3; TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[0].kind = 2; TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[0].sons = &TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_2_3[0];
NTI__MLCTu5W6Jyk9a89aa4K8QXCg_.node = &TM__S9a6d9clBNnr6aBnW9c9bDqn9cg_0[0];
NTI__pDJ9aJknwMlLtrQ59a7iyRNg_.size = sizeof(tyObject_Env_standard_setupdotnim___MLCTu5W6Jyk9a89aa4K8QXCg*);
NTI__pDJ9aJknwMlLtrQ59a7iyRNg_.kind = 22;
NTI__pDJ9aJknwMlLtrQ59a7iyRNg_.base = (&NTI__MLCTu5W6Jyk9a89aa4K8QXCg_);
NTI__pDJ9aJknwMlLtrQ59a7iyRNg_.name = "anon ref object from /home/runner/work/nim-waku/nim-waku/vendor"
"/nim-libp2p/libp2p/standard_setup.nim(43, 38)";
NTI__pDJ9aJknwMlLtrQ59a7iyRNg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__pDJ9aJknwMlLtrQ59a7iyRNg_;
NTI__pDJ9aJknwMlLtrQ59a7iyRNg_.marker = Marker_tyRef__pDJ9aJknwMlLtrQ59a7iyRNg;
}