nwaku/nimcache/release/example/@m..@s..@svendor@snim-stew@sstew@sbyteutils.nim.c

613 lines
39 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/@m..@s..@svendor@snim-stew@sstew@sbyteutils.nim.c.o nimcache/release/example/@m..@s..@svendor@snim-stew@sstew@sbyteutils.nim.c */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <sys/types.h>
#include <pthread.h>
#include <string.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 NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
typedef struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
typedef struct Exception Exception;
typedef struct RootObj RootObj;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
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_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
struct TGenericSeq {NI len;
NI reserved;
};
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
};
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 Exception { RootObj Sup;Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
Exception* up;
};
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
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_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
NI line;
NCSTRING filename;
};
struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};N_NIMCALL(NimStringDesc*, mnewString)(NI len);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
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);
N_LIB_PRIVATE N_NOINLINE(void, raiseDivByZero)(void);
static N_INLINE(NIM_BOOL, nimDivInt)(NI a, NI b, NI* res);
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, newSeq__DpCWN7DIBuAjgoeQ9c29blYQ)(NI len_0);
static N_INLINE(NU8, readHexChar__buQRCPc4zFRUPE9cRnaDtngbyteutils)(NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimCharToStr)(NIM_CHAR x_0);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
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);
STRING_LITERAL(TM__oR0h53fhlgDVU6iPp0VfRQ_4, "0123456789abcdef", 16);
extern TNimType NTI__Ie1m0dv1ZHg72IgPRr1cDw_;
extern TNimType NTI__yoNlBGx0D2tRizIdhQuENw_;
STRING_LITERAL(TM__oR0h53fhlgDVU6iPp0VfRQ_8, "hex string must have even length", 32);
STRING_LITERAL(TM__oR0h53fhlgDVU6iPp0VfRQ_16, " is not a hexademical character", 31);
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, toHexAux__mTF3iGytPXR76nCDQ9aqz9cw)(NU8* ba, NI baLen_0) { NimStringDesc* result; NI sz; NI TM__oR0h53fhlgDVU6iPp0VfRQ_2; result = (NimStringDesc*)0;
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
sz = baLen_0;
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if (nimMulInt(((NI) 2), sz, &TM__oR0h53fhlgDVU6iPp0VfRQ_2)) { raiseOverflow(); }; if (((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_2)) < ((NI) 0) || ((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_2)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_2), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
result = mnewString(((NI) ((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_2)))); { NI i; NI i_2; i = (NI)0;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 = ((NI) 0); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__oR0h53fhlgDVU6iPp0VfRQ_3; NI TM__oR0h53fhlgDVU6iPp0VfRQ_5; NI TM__oR0h53fhlgDVU6iPp0VfRQ_6; NI TM__oR0h53fhlgDVU6iPp0VfRQ_7;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_2 < sz)) goto LA3;
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
i = i_2;
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if (nimMulInt(((NI) 2), i, &TM__oR0h53fhlgDVU6iPp0VfRQ_3)) { raiseOverflow(); }; if ((NU)((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_3)) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_3),(result ? result->Sup.len : 0)-1); }
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if ((NU)(i) >= (NU)(baLen_0)){ raiseIndexError2(i,baLen_0-1); } if ((NU)((NU8)((NU8)((NU8)(ba[i]) >> (NU64)(((NI) 4))) & ((NU8) 15))) >= (NU)(((NimStringDesc*) &TM__oR0h53fhlgDVU6iPp0VfRQ_4) ? ((NimStringDesc*) &TM__oR0h53fhlgDVU6iPp0VfRQ_4)->Sup.len : 0)){ raiseIndexError2((NU8)((NU8)((NU8)(ba[i]) >> (NU64)(((NI) 4))) & ((NU8) 15)),(((NimStringDesc*) &TM__oR0h53fhlgDVU6iPp0VfRQ_4) ? ((NimStringDesc*) &TM__oR0h53fhlgDVU6iPp0VfRQ_4)->Sup.len : 0)-1); } result->data[(NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_3)] = ((NimStringDesc*) &TM__oR0h53fhlgDVU6iPp0VfRQ_4)->data[(NU8)((NU8)((NU8)(ba[i]) >> (NU64)(((NI) 4))) & ((NU8) 15))];
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if (nimMulInt(((NI) 2), i, &TM__oR0h53fhlgDVU6iPp0VfRQ_5)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_5), ((NI) 1), &TM__oR0h53fhlgDVU6iPp0VfRQ_6)) { raiseOverflow(); }; if ((NU)((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_6)) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_6),(result ? result->Sup.len : 0)-1); }
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if ((NU)(i) >= (NU)(baLen_0)){ raiseIndexError2(i,baLen_0-1); } if ((NU)((NU8)(ba[i] & ((NU8) 15))) >= (NU)(((NimStringDesc*) &TM__oR0h53fhlgDVU6iPp0VfRQ_4) ? ((NimStringDesc*) &TM__oR0h53fhlgDVU6iPp0VfRQ_4)->Sup.len : 0)){ raiseIndexError2((NU8)(ba[i] & ((NU8) 15)),(((NimStringDesc*) &TM__oR0h53fhlgDVU6iPp0VfRQ_4) ? ((NimStringDesc*) &TM__oR0h53fhlgDVU6iPp0VfRQ_4)->Sup.len : 0)-1); } result->data[(NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_6)] = ((NimStringDesc*) &TM__oR0h53fhlgDVU6iPp0VfRQ_4)->data[(NU8)(ba[i] & ((NU8) 15))];
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(i_2, ((NI) 1), &TM__oR0h53fhlgDVU6iPp0VfRQ_7)) { raiseOverflow(); }; i_2 = (NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_7); } LA3: ;
}
}
return result;}
#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 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
static N_INLINE(NIM_BOOL, nimDivInt)(NI a, NI b, NI* res) { NIM_BOOL result; result = (NIM_BOOL)0;
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
{ NIM_BOOL T3_;
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
T3_ = (NIM_BOOL)0;
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
T3_ = (a == ((NI) (IL64(-9223372036854775807) - IL64(1)))); if (!(T3_)) goto LA4_;
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
T3_ = (b == ((NI) -1)); LA4_: ;
if (!T3_) goto LA5_;
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
result = NIM_TRUE; }
goto LA1_;
LA5_: ;
{
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/integerops.nim"
(*res) = (NI)(a / b); }
LA1_: ;
return result;}
#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 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
nimCopyMem(dest, source, size);
}
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
{
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
if (!!((src == NIM_NIL))) goto LA3_;
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
(*dest).Sup.len += (*src).Sup.len; }
LA3_: ;
}
#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 24 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
static N_INLINE(NU8, readHexChar__buQRCPc4zFRUPE9cRnaDtngbyteutils)(NIM_CHAR c) { NU8 result; result = (NU8)0;
#line 27 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
switch (((NU8)(c))) {
case 48 ... 57:
{ NI TM__oR0h53fhlgDVU6iPp0VfRQ_11;
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if (nimSubInt(((NU8)(c)), ((NI) 48), &TM__oR0h53fhlgDVU6iPp0VfRQ_11)) { raiseOverflow(); }; result = ((NU8) ((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_11))); }
break;
case 97 ... 102:
{ NI TM__oR0h53fhlgDVU6iPp0VfRQ_12; NI TM__oR0h53fhlgDVU6iPp0VfRQ_13;
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if (nimSubInt(((NU8)(c)), ((NI) 97), &TM__oR0h53fhlgDVU6iPp0VfRQ_12)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_12), ((NI) 10), &TM__oR0h53fhlgDVU6iPp0VfRQ_13)) { raiseOverflow(); }; result = ((NU8) ((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_13))); }
break;
case 65 ... 70:
{ NI TM__oR0h53fhlgDVU6iPp0VfRQ_14; NI TM__oR0h53fhlgDVU6iPp0VfRQ_15;
#line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 30 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if (nimSubInt(((NU8)(c)), ((NI) 65), &TM__oR0h53fhlgDVU6iPp0VfRQ_14)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_14), ((NI) 10), &TM__oR0h53fhlgDVU6iPp0VfRQ_15)) { raiseOverflow(); }; result = ((NU8) ((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_15))); }
break;
default:
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T5_; NimStringDesc* T6_; NimStringDesc* T7_; T5_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T5_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T5_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T5_).Sup.Sup.name = "ValueError";
#line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
T6_ = (NimStringDesc*)0;
#line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
T7_ = (NimStringDesc*)0; T7_ = nimCharToStr(c); T6_ = rawNewString((T7_ ? T7_->Sup.len : 0) + 31);appendString(T6_, T7_);appendString(T6_, ((NimStringDesc*) &TM__oR0h53fhlgDVU6iPp0VfRQ_16)); asgnRef((void**) (&(*T5_).Sup.Sup.message), T6_); asgnRef((void**) (&(*T5_).Sup.Sup.parent), NIM_NIL);
#line 32 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
raiseExceptionEx((Exception*)T5_, "ValueError", "readHexChar", "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteut"
"ils.nim", 32); }
break;
}
return result;}
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, hexToSeqByte__akACBxcnU7FJ5inYjc39aPw)(NimStringDesc* hexStr) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; NI skip; NI N; NI TM__oR0h53fhlgDVU6iPp0VfRQ_9; NI TM__oR0h53fhlgDVU6iPp0VfRQ_10; result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
{ tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* T5_; NimStringDesc* T6_;
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if (!((NI)((hexStr ? hexStr->Sup.len : 0) & ((NI) 1)) == ((NI) 1))) goto LA3_;
T5_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0; T5_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw)); (*T5_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_); (*T5_).Sup.Sup.name = "ValueError"; T6_ = (NimStringDesc*)0; T6_ = (*T5_).Sup.Sup.message; (*T5_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__oR0h53fhlgDVU6iPp0VfRQ_8)); if (T6_) nimGCunrefNoCycle(T6_);
#line 104 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
raiseExceptionEx((Exception*)T5_, "ValueError", "hexToSeqByte", "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteut"
"ils.nim", 104); }
LA3_: ;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
{ NIM_BOOL T9_; NIM_BOOL T10_;
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
T9_ = (NIM_BOOL)0;
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
T10_ = (NIM_BOOL)0;
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
T10_ = (((NI) 1) < (hexStr ? hexStr->Sup.len : 0)); if (!(T10_)) goto LA11_;
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if ((NU)(((NI) 0)) >= (NU)(hexStr ? hexStr->Sup.len : 0)){ raiseIndexError2(((NI) 0),(hexStr ? hexStr->Sup.len : 0)-1); } T10_ = ((NU8)(hexStr->data[((NI) 0)]) == (NU8)(48)); LA11_: ;
T9_ = T10_; if (!(T9_)) goto LA12_;
#line 37 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if ((NU)(((NI) 1)) >= (NU)(hexStr ? hexStr->Sup.len : 0)){ raiseIndexError2(((NI) 1),(hexStr ? hexStr->Sup.len : 0)-1); } T9_ = (((NU8)(hexStr->data[((NI) 1)])) == ((NU8)(120)) || ((NU8)(hexStr->data[((NI) 1)])) == ((NU8)(88))); LA12_: ;
if (!T9_) goto LA13_;
skip = ((NI) 2); }
goto LA7_;
LA13_: ;
{ skip = ((NI) 0); }
LA7_: ;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if (nimSubInt((hexStr ? hexStr->Sup.len : 0), skip, &TM__oR0h53fhlgDVU6iPp0VfRQ_9)) { raiseOverflow(); }; if (((NI) 2) == 0){ raiseDivByZero(); } if (nimDivInt((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_9), ((NI) 2), &TM__oR0h53fhlgDVU6iPp0VfRQ_10)) { raiseOverflow(); }; N = (NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_10);
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if ((N) < ((NI) 0) || (N) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(N, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
result = newSeq__DpCWN7DIBuAjgoeQ9c29blYQ(((NI) (N))); { NI i; NI i_2; i = (NI)0;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 = ((NI) 0); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__oR0h53fhlgDVU6iPp0VfRQ_17; NI TM__oR0h53fhlgDVU6iPp0VfRQ_18; NU8 T19_; NI TM__oR0h53fhlgDVU6iPp0VfRQ_19; NI TM__oR0h53fhlgDVU6iPp0VfRQ_20; NI TM__oR0h53fhlgDVU6iPp0VfRQ_21; NU8 T20_; NI TM__oR0h53fhlgDVU6iPp0VfRQ_22;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_2 < N)) goto LA18;
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
i = i_2; if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(i,(result ? result->Sup.len : 0)-1); }
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if (nimMulInt(((NI) 2), i, &TM__oR0h53fhlgDVU6iPp0VfRQ_17)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_17), skip, &TM__oR0h53fhlgDVU6iPp0VfRQ_18)) { raiseOverflow(); }; if ((NU)((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_18)) >= (NU)(hexStr ? hexStr->Sup.len : 0)){ raiseIndexError2((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_18),(hexStr ? hexStr->Sup.len : 0)-1); }
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
T19_ = (NU8)0; T19_ = readHexChar__buQRCPc4zFRUPE9cRnaDtngbyteutils(hexStr->data[(NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_18)]);
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if (nimMulInt(((NI) 2), i, &TM__oR0h53fhlgDVU6iPp0VfRQ_19)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_19), ((NI) 1), &TM__oR0h53fhlgDVU6iPp0VfRQ_20)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_20), skip, &TM__oR0h53fhlgDVU6iPp0VfRQ_21)) { raiseOverflow(); }; if ((NU)((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_21)) >= (NU)(hexStr ? hexStr->Sup.len : 0)){ raiseIndexError2((NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_21),(hexStr ? hexStr->Sup.len : 0)-1); }
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
T20_ = (NU8)0; T20_ = readHexChar__buQRCPc4zFRUPE9cRnaDtngbyteutils(hexStr->data[(NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_21)]); result->data[i] = (NU8)((NU8)((NU64)(T19_) << (NU64)(((NI) 4))) | T20_);
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(i_2, ((NI) 1), &TM__oR0h53fhlgDVU6iPp0VfRQ_22)) { raiseOverflow(); }; i_2 = (NI)(TM__oR0h53fhlgDVU6iPp0VfRQ_22); } LA18: ;
}
}
return result;}
#line 149 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, fromBytes__8BnFOC9aFtdsJGRrW6pG5kQ)(NU8* v, NI vLen_0) { NimStringDesc* result; result = (NimStringDesc*)0;
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
{
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if (!(((NI) 0) < vLen_0)) goto LA3_;
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if ((vLen_0) < ((NI) 0) || (vLen_0) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(vLen_0, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
result = mnewString(((NI) (vLen_0)));
#line 156 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if ((NU)(((NI) 0)) >= (NU)(result ? result->Sup.len : 0)){ raiseIndexError2(((NI) 0),(result ? result->Sup.len : 0)-1); } if ((NU)(((NI) 0)) >= (NU)(vLen_0)){ raiseIndexError2(((NI) 0),vLen_0-1); }
#line 156 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
if ((vLen_0) < ((NI) 0) || (vLen_0) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(vLen_0, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 156 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/byteutils.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&result->data[((NI) 0)]))), ((void*) ((&v[((NI) 0)]))), ((NI) (vLen_0)));
}
LA3_: ;
return result;}