nwaku/nimcache/release/example/stdlib_heapqueue.nim.c

600 lines
42 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/examples/v1 -o nimcache/release/example/stdlib_heapqueue.nim.c.o nimcache/release/example/stdlib_heapqueue.nim.c */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <sys/types.h>
#include <pthread.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_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g;
typedef struct tySequence__1NTQzTCcFfRb3vxE0NIfzQ tySequence__1NTQzTCcFfRb3vxE0NIfzQ;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg;
typedef struct tyObject_Moment__p19adwOigsIe5d3NlfPJOEw tyObject_Moment__p19adwOigsIe5d3NlfPJOEw;
typedef struct tyObject_AsyncCallback__Swoy2e9aGWZSpT0Jm9aqp3Zw tyObject_AsyncCallback__Swoy2e9aGWZSpT0Jm9aqp3Zw;
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_HeapQueue__mgfFdry9aKsRMW9au5u9bSpOQ tyObject_HeapQueue__mgfFdry9aKsRMW9au5u9bSpOQ;
typedef struct tySequence__oKfdUHDH0q5oP14wOM6kug tySequence__oKfdUHDH0q5oP14wOM6kug;
typedef struct tyTuple__5aoVPIWYzahUyBc9bMm0M5w tyTuple__5aoVPIWYzahUyBc9bMm0M5w;
typedef struct tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w;
typedef struct tyObject_FuturecolonObjectType___te3W2Tqi7xuJ7rlPtg9al5w tyObject_FuturecolonObjectType___te3W2Tqi7xuJ7rlPtg9al5w;
struct tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g {tySequence__1NTQzTCcFfRb3vxE0NIfzQ* data;
};
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;
};
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 tyObject_Moment__p19adwOigsIe5d3NlfPJOEw {NI64 value;
};
typedef struct {
N_NIMCALL_PTR(void, ClP_0) (void* arg, void* ClE_0);
void* ClE_0;
} tyProc__9bqx36VxQxXejdrF09bFARDQ;
struct tyObject_AsyncCallback__Swoy2e9aGWZSpT0Jm9aqp3Zw {tyProc__9bqx36VxQxXejdrF09bFARDQ function;
void* udata;
};
struct tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg {tyObject_Moment__p19adwOigsIe5d3NlfPJOEw finishAt;
tyObject_AsyncCallback__Swoy2e9aGWZSpT0Jm9aqp3Zw function;
};
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;
};
struct tyObject_HeapQueue__mgfFdry9aKsRMW9au5u9bSpOQ {tySequence__oKfdUHDH0q5oP14wOM6kug* data;
};
struct tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w {NI64 ticks;
};
struct tyTuple__5aoVPIWYzahUyBc9bMm0M5w {
tyObject_MonoTime__FEvFMlkqJiSSGVO6HgTv8w Field0;
tyObject_FuturecolonObjectType___te3W2Tqi7xuJ7rlPtg9al5w* Field1;
};
struct tySequence__1NTQzTCcFfRb3vxE0NIfzQ { TGenericSeq Sup; tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* data[SEQ_DECL_SIZE];};struct tySequence__oKfdUHDH0q5oP14wOM6kug { TGenericSeq Sup; tyTuple__5aoVPIWYzahUyBc9bMm0M5w data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
static N_NIMCALL(void, Marker_tySequence__1NTQzTCcFfRb3vxE0NIfzQ)(void* p, NI op);
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
static N_INLINE(tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg*, pop__sj9cLmdZeW9apM4wCT0CT9bBAsystem)(tySequence__1NTQzTCcFfRb3vxE0NIfzQ** s);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen);
static N_INLINE(NI, len__TGrDBpR3dFXYmSlNuxAfWAheapqueue)(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g heap);
static N_INLINE(tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg*, X5BX5D___pUFW4FSLKtb8EGv9c3Z1vYQheapqueue)(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g heap, NI i);
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);
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
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);
N_LIB_PRIVATE N_NIMCALL(void, siftup__yIIBimZrQrO9b9c9cy9byOt9aGw)(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g* heap, NI p);
static N_INLINE(NIM_BOOL, heapCmp__eDR18QKvniQJvHNS07fgJAheapqueue)(tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* x, tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* y);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, lt___yMJ9azman8MdK28t9b89as89bw)(tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* a, tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* b);
N_LIB_PRIVATE N_NIMCALL(void, siftdown__LTziRtsZ9b4MgxoaeaQepFg)(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g* heap, NI startpos, NI p);
static N_NIMCALL(void, Marker_tySequence__oKfdUHDH0q5oP14wOM6kug)(void* p, NI op);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
N_LIB_PRIVATE TNimType NTI__WyEcSLXuBvf9bdu5FRrK11g_;
extern TNimType NTI__ED0EOsvBy9btMwgApDxfjNQ_;
N_LIB_PRIVATE TNimType NTI__1NTQzTCcFfRb3vxE0NIfzQ_;
N_LIB_PRIVATE TNimType NTI__mgfFdry9aKsRMW9au5u9bSpOQ_;
extern TNimType NTI__5aoVPIWYzahUyBc9bMm0M5w_;
N_LIB_PRIVATE TNimType NTI__oKfdUHDH0q5oP14wOM6kug_;
extern TNimType* nimTypeRoot;
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
static N_NIMCALL(void, Marker_tySequence__1NTQzTCcFfRb3vxE0NIfzQ)(void* p, NI op) {
tySequence__1NTQzTCcFfRb3vxE0NIfzQ* a;
NI T1_; a = (tySequence__1NTQzTCcFfRb3vxE0NIfzQ*)p;
T1_ = (NI)0; for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
nimGCvisit((void*)a->data[T1_], op); }
}
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
N_LIB_PRIVATE N_NIMCALL(void, initHeapQueue__cKBj0b2B2OTVQ9cARn02WuA)(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g* Result) { chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).data, NIM_NIL);}
#line 1770 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg*, pop__sj9cLmdZeW9apM4wCT0CT9bBAsystem)(tySequence__1NTQzTCcFfRb3vxE0NIfzQ** s) { tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* result; NI L; NI T1_; NI TM__f2bNHCHm2LvO7iSrwQtdiQ_2; result = (tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg*)0;
#line 1779 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 1779 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 1779 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
T1_ = ((*s) ? (*s)->Sup.len : 0); if (nimSubInt(T1_, ((NI) 1), &TM__f2bNHCHm2LvO7iSrwQtdiQ_2)) { raiseOverflow(); }; L = (NI)(TM__f2bNHCHm2LvO7iSrwQtdiQ_2);
#line 1784 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
if ((NU)(L) >= (NU)((*s) ? (*s)->Sup.len : 0)){ raiseIndexError2(L,((*s) ? (*s)->Sup.len : 0)-1); } result = (*s)->data[L];
#line 1785 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
if ((L) < ((NI) 0) || (L) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(L, ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*s)), (tySequence__1NTQzTCcFfRb3vxE0NIfzQ*) setLengthSeqV2(&((*s))->Sup, (&NTI__1NTQzTCcFfRb3vxE0NIfzQ_), ((NI) (L)))); return result;}
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
static N_INLINE(NI, len__TGrDBpR3dFXYmSlNuxAfWAheapqueue)(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g heap) { NI result; NI T1_; result = (NI)0;
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 64 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
T1_ = (heap.data ? heap.data->Sup.len : 0); result = T1_; return result;}
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
static N_INLINE(tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg*, X5BX5D___pUFW4FSLKtb8EGv9c3Z1vYQheapqueue)(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g heap, NI i) { tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* result; result = (tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg*)0;
#line 67 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if ((NU)(i) >= (NU)(heap.data ? heap.data->Sup.len : 0)){ raiseIndexError2(i,(heap.data ? heap.data->Sup.len : 0)-1); } result = heap.data->data[i]; 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 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 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 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 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 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
static N_INLINE(NIM_BOOL, heapCmp__eDR18QKvniQJvHNS07fgJAheapqueue)(tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* x, tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* y) { NIM_BOOL result;{ result = (NIM_BOOL)0;
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
result = lt___yMJ9azman8MdK28t9b89as89bw(x, y); goto BeforeRet_;
}BeforeRet_: ;
return result;}
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
N_LIB_PRIVATE N_NIMCALL(void, siftdown__LTziRtsZ9b4MgxoaeaQepFg)(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g* heap, NI startpos, NI p) { NI pos; tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* newitem;
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
pos = p;
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if ((pos) < ((NI) 0) || (pos) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(pos, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
newitem = X5BX5D___pUFW4FSLKtb8EGv9c3Z1vYQheapqueue((*heap), ((NI) (pos))); {
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
while (1) { NI parentpos; NI TM__f2bNHCHm2LvO7iSrwQtdiQ_8; tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* parent;
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if (!(startpos < pos)) goto LA2;
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if (nimSubInt(pos, ((NI) 1), &TM__f2bNHCHm2LvO7iSrwQtdiQ_8)) { raiseOverflow(); }; parentpos = (NI)((NI64)((NI)(TM__f2bNHCHm2LvO7iSrwQtdiQ_8)) >> (NU64)(((NI) 1)));
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if ((parentpos) < ((NI) 0) || (parentpos) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(parentpos, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
parent = X5BX5D___pUFW4FSLKtb8EGv9c3Z1vYQheapqueue((*heap), ((NI) (parentpos)));
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
{ NIM_BOOL T5_;
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
T5_ = (NIM_BOOL)0; T5_ = heapCmp__eDR18QKvniQJvHNS07fgJAheapqueue(newitem, parent); if (!T5_) goto LA6_;
if ((NU)(pos) >= (NU)((*heap).data ? (*heap).data->Sup.len : 0)){ raiseIndexError2(pos,((*heap).data ? (*heap).data->Sup.len : 0)-1); }
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
asgnRef((void**) (&(*heap).data->data[pos]), parent);
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
pos = parentpos; }
goto LA3_;
LA6_: ;
{
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
goto LA1;
}
LA3_: ;
} LA2: ;
} LA1: ;
if ((NU)(pos) >= (NU)((*heap).data ? (*heap).data->Sup.len : 0)){ raiseIndexError2(pos,((*heap).data ? (*heap).data->Sup.len : 0)-1); }
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
asgnRef((void**) (&(*heap).data->data[pos]), newitem);}
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
N_LIB_PRIVATE N_NIMCALL(void, siftup__yIIBimZrQrO9b9c9cy9byOt9aGw)(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g* heap, NI p) { NI endpos; NI pos; NI startpos; tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* newitem; NI childpos; NI TM__f2bNHCHm2LvO7iSrwQtdiQ_3; NI TM__f2bNHCHm2LvO7iSrwQtdiQ_4;
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
endpos = len__TGrDBpR3dFXYmSlNuxAfWAheapqueue((*heap));
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
pos = p;
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
startpos = pos;
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if ((pos) < ((NI) 0) || (pos) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(pos, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
newitem = X5BX5D___pUFW4FSLKtb8EGv9c3Z1vYQheapqueue((*heap), ((NI) (pos)));
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if (nimMulInt(((NI) 2), pos, &TM__f2bNHCHm2LvO7iSrwQtdiQ_3)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__f2bNHCHm2LvO7iSrwQtdiQ_3), ((NI) 1), &TM__f2bNHCHm2LvO7iSrwQtdiQ_4)) { raiseOverflow(); }; childpos = (NI)(TM__f2bNHCHm2LvO7iSrwQtdiQ_4); {
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
while (1) { NI rightpos; NI TM__f2bNHCHm2LvO7iSrwQtdiQ_5; NI TM__f2bNHCHm2LvO7iSrwQtdiQ_6; NI TM__f2bNHCHm2LvO7iSrwQtdiQ_7;
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if (!(childpos < endpos)) goto LA2;
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if (nimAddInt(childpos, ((NI) 1), &TM__f2bNHCHm2LvO7iSrwQtdiQ_5)) { raiseOverflow(); }; rightpos = (NI)(TM__f2bNHCHm2LvO7iSrwQtdiQ_5);
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
{ NIM_BOOL T5_; tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* T7_; tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* T8_; NIM_BOOL T9_;
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
T5_ = (NIM_BOOL)0;
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
T5_ = (rightpos < endpos); if (!(T5_)) goto LA6_;
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if ((childpos) < ((NI) 0) || (childpos) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(childpos, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
T7_ = (tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg*)0; T7_ = X5BX5D___pUFW4FSLKtb8EGv9c3Z1vYQheapqueue((*heap), ((NI) (childpos)));
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if ((rightpos) < ((NI) 0) || (rightpos) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(rightpos, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
T8_ = (tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg*)0; T8_ = X5BX5D___pUFW4FSLKtb8EGv9c3Z1vYQheapqueue((*heap), ((NI) (rightpos)));
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
T9_ = (NIM_BOOL)0; T9_ = heapCmp__eDR18QKvniQJvHNS07fgJAheapqueue(T7_, T8_); T5_ = !(T9_); LA6_: ;
if (!T5_) goto LA10_;
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
childpos = rightpos; }
LA10_: ;
if ((NU)(pos) >= (NU)((*heap).data ? (*heap).data->Sup.len : 0)){ raiseIndexError2(pos,((*heap).data ? (*heap).data->Sup.len : 0)-1); }
#line 104 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if ((childpos) < ((NI) 0) || (childpos) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(childpos, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 104 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
asgnRef((void**) (&(*heap).data->data[pos]), X5BX5D___pUFW4FSLKtb8EGv9c3Z1vYQheapqueue((*heap), ((NI) (childpos))));
#line 105 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
pos = childpos;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
if (nimMulInt(((NI) 2), pos, &TM__f2bNHCHm2LvO7iSrwQtdiQ_6)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__f2bNHCHm2LvO7iSrwQtdiQ_6), ((NI) 1), &TM__f2bNHCHm2LvO7iSrwQtdiQ_7)) { raiseOverflow(); }; childpos = (NI)(TM__f2bNHCHm2LvO7iSrwQtdiQ_7); } LA2: ;
}
if ((NU)(pos) >= (NU)((*heap).data ? (*heap).data->Sup.len : 0)){ raiseIndexError2(pos,((*heap).data ? (*heap).data->Sup.len : 0)-1); }
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
asgnRef((void**) (&(*heap).data->data[pos]), newitem);
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
siftdown__LTziRtsZ9b4MgxoaeaQepFg(heap, startpos, pos);
}
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
N_LIB_PRIVATE N_NIMCALL(tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg*, pop__W69bkDeQ4NXaEoohIq2Pafw)(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g* heap) { tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* result; tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* lastelt; result = (tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg*)0;
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
lastelt = pop__sj9cLmdZeW9apM4wCT0CT9bBAsystem((&(*heap).data));
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
{ NI T3_;
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
T3_ = (NI)0; T3_ = len__TGrDBpR3dFXYmSlNuxAfWAheapqueue((*heap)); if (!(((NI) 0) < T3_)) goto LA4_;
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
result = X5BX5D___pUFW4FSLKtb8EGv9c3Z1vYQheapqueue((*heap), ((NI) 0)); if ((NU)(((NI) 0)) >= (NU)((*heap).data ? (*heap).data->Sup.len : 0)){ raiseIndexError2(((NI) 0),((*heap).data ? (*heap).data->Sup.len : 0)-1); }
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
asgnRef((void**) (&(*heap).data->data[((NI) 0)]), lastelt);
#line 124 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 124 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
siftup__yIIBimZrQrO9b9c9cy9byOt9aGw(heap, ((NI) 0));
}
goto LA1_;
LA4_: ;
{
#line 126 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
result = lastelt; }
LA1_: ;
return result;}
static N_NIMCALL(void, Marker_tySequence__oKfdUHDH0q5oP14wOM6kug)(void* p, NI op) {
tySequence__oKfdUHDH0q5oP14wOM6kug* a;
NI T1_; a = (tySequence__oKfdUHDH0q5oP14wOM6kug*)p;
T1_ = (NI)0; for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
nimGCvisit((void*)a->data[T1_].Field1, op); }
}
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
N_LIB_PRIVATE N_NIMCALL(void, push__QxEkphHPRLig8gK82I6UQw)(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g* heap, tyObject_TimerCallbackcolonObjectType___6iVKh5lmJXxGN5aEgyB0Rg* item) { NI T1_; NI T2_; NI TM__f2bNHCHm2LvO7iSrwQtdiQ_9;
#line 114 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
unsureAsgnRef((void**) (&(*heap).data), (tySequence__1NTQzTCcFfRb3vxE0NIfzQ*) incrSeqV3((TGenericSeq*)((*heap).data), (&NTI__1NTQzTCcFfRb3vxE0NIfzQ_))); T1_ = (*heap).data->Sup.len++; asgnRef((void**) (&(*heap).data->data[T1_]), item);
#line 115 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 115 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 115 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
#line 115 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
T2_ = (NI)0; T2_ = len__TGrDBpR3dFXYmSlNuxAfWAheapqueue((*heap)); if (nimSubInt(T2_, ((NI) 1), &TM__f2bNHCHm2LvO7iSrwQtdiQ_9)) { raiseOverflow(); };
#line 115 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/collections/heapqueue.nim"
siftdown__LTziRtsZ9b4MgxoaeaQepFg(heap, ((NI) 0), (NI)(TM__f2bNHCHm2LvO7iSrwQtdiQ_9));
}
N_LIB_PRIVATE N_NIMCALL(void, stdlib_heapqueueDatInit000)(void) {
#line 999999 "generated_not_to_break_here"
static TNimNode TM__f2bNHCHm2LvO7iSrwQtdiQ_0[2];NTI__WyEcSLXuBvf9bdu5FRrK11g_.size = sizeof(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g);
NTI__WyEcSLXuBvf9bdu5FRrK11g_.kind = 18;
NTI__WyEcSLXuBvf9bdu5FRrK11g_.base = 0;
NTI__WyEcSLXuBvf9bdu5FRrK11g_.name = "HeapQueue[asyncloop.TimerCallback]";
NTI__WyEcSLXuBvf9bdu5FRrK11g_.nextType = nimTypeRoot; nimTypeRoot=&NTI__WyEcSLXuBvf9bdu5FRrK11g_;
NTI__1NTQzTCcFfRb3vxE0NIfzQ_.size = sizeof(tySequence__1NTQzTCcFfRb3vxE0NIfzQ*);
NTI__1NTQzTCcFfRb3vxE0NIfzQ_.kind = 24;
NTI__1NTQzTCcFfRb3vxE0NIfzQ_.base = (&NTI__ED0EOsvBy9btMwgApDxfjNQ_);
NTI__1NTQzTCcFfRb3vxE0NIfzQ_.name = "seq[TimerCallback]";
NTI__1NTQzTCcFfRb3vxE0NIfzQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__1NTQzTCcFfRb3vxE0NIfzQ_;
NTI__1NTQzTCcFfRb3vxE0NIfzQ_.marker = Marker_tySequence__1NTQzTCcFfRb3vxE0NIfzQ;
TM__f2bNHCHm2LvO7iSrwQtdiQ_0[0].kind = 1;
TM__f2bNHCHm2LvO7iSrwQtdiQ_0[0].offset = offsetof(tyObject_HeapQueue__WyEcSLXuBvf9bdu5FRrK11g, data);
TM__f2bNHCHm2LvO7iSrwQtdiQ_0[0].typ = (&NTI__1NTQzTCcFfRb3vxE0NIfzQ_);
TM__f2bNHCHm2LvO7iSrwQtdiQ_0[0].name = "data";
NTI__WyEcSLXuBvf9bdu5FRrK11g_.node = &TM__f2bNHCHm2LvO7iSrwQtdiQ_0[0];
NTI__mgfFdry9aKsRMW9au5u9bSpOQ_.size = sizeof(tyObject_HeapQueue__mgfFdry9aKsRMW9au5u9bSpOQ);
NTI__mgfFdry9aKsRMW9au5u9bSpOQ_.kind = 18;
NTI__mgfFdry9aKsRMW9au5u9bSpOQ_.base = 0;
NTI__mgfFdry9aKsRMW9au5u9bSpOQ_.name = "HeapQueue[tuple[finishAt: MonoTime, fut: Future[system.void]]]";
NTI__mgfFdry9aKsRMW9au5u9bSpOQ_.nextType = nimTypeRoot; nimTypeRoot=&NTI__mgfFdry9aKsRMW9au5u9bSpOQ_;
NTI__oKfdUHDH0q5oP14wOM6kug_.size = sizeof(tySequence__oKfdUHDH0q5oP14wOM6kug*);
NTI__oKfdUHDH0q5oP14wOM6kug_.kind = 24;
NTI__oKfdUHDH0q5oP14wOM6kug_.base = (&NTI__5aoVPIWYzahUyBc9bMm0M5w_);
NTI__oKfdUHDH0q5oP14wOM6kug_.name = "seq[tuple[finishAt: MonoTime, fut: Future[system.void]]]";
NTI__oKfdUHDH0q5oP14wOM6kug_.nextType = nimTypeRoot; nimTypeRoot=&NTI__oKfdUHDH0q5oP14wOM6kug_;
NTI__oKfdUHDH0q5oP14wOM6kug_.marker = Marker_tySequence__oKfdUHDH0q5oP14wOM6kug;
TM__f2bNHCHm2LvO7iSrwQtdiQ_0[1].kind = 1;
TM__f2bNHCHm2LvO7iSrwQtdiQ_0[1].offset = offsetof(tyObject_HeapQueue__mgfFdry9aKsRMW9au5u9bSpOQ, data);
TM__f2bNHCHm2LvO7iSrwQtdiQ_0[1].typ = (&NTI__oKfdUHDH0q5oP14wOM6kug_);
TM__f2bNHCHm2LvO7iSrwQtdiQ_0[1].name = "data";
NTI__mgfFdry9aKsRMW9au5u9bSpOQ_.node = &TM__f2bNHCHm2LvO7iSrwQtdiQ_0[1];
}