mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-16 01:45:40 +00:00
1161 lines
63 KiB
C
1161 lines
63 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-stew@sstew@sbase58.nim.c.o nimcache/release/wakubridge/@m..@s..@svendor@snim-stew@sstew@sbase58.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <string.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 tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct tyObject_Base58Alphabet__9bGalHBlKepA9aKkGYwYJRIQ tyObject_Base58Alphabet__9bGalHBlKepA9aKkGYwYJRIQ;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct tySequence__9bAGqSvkAaFL9bWjsEPslrFA tySequence__9bAGqSvkAaFL9bWjsEPslrFA;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct tyObject_Base58Error__SvQLECaJB0ksJHUr659aRzA tyObject_Base58Error__SvQLECaJB0ksJHUr659aRzA;
|
|
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
|
|
typedef struct Exception Exception;
|
|
typedef struct RootObj RootObj;
|
|
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;
|
|
typedef NU8 tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ;
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
typedef NI8 tyArray__RhzX5YfZKYEbPWKjnZn9b0w[128];
|
|
typedef NU8 tyArray__Abk9bwVaNW9c0Hy9bdJ0vYyow[58];
|
|
struct tyObject_Base58Alphabet__9bGalHBlKepA9aKkGYwYJRIQ {tyArray__RhzX5YfZKYEbPWKjnZn9b0w decode;
|
|
tyArray__Abk9bwVaNW9c0Hy9bdJ0vYyow encode;
|
|
};
|
|
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;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
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_Base58Error__SvQLECaJB0ksJHUr659aRzA { tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA 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;
|
|
};
|
|
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
|
|
NI line;
|
|
NCSTRING filename;
|
|
};
|
|
struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};struct tySequence__9bAGqSvkAaFL9bWjsEPslrFA { TGenericSeq Sup; NU32 data[SEQ_DECL_SIZE];};struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
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);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE N_NIMCALL(tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ, decode__IzTRj9bovOsguCT5qhRtpOg)(NIM_CHAR* instr, NI instrLen_0, NU8* outbytes, NI outbytesLen_0, NI* outlen);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__9bAGqSvkAaFL9bWjsEPslrFA*, newSeq__4g9cmvwewbrdtpBMV5P3thg)(NI len_0);
|
|
static N_INLINE(void, moveMem__i80o3k0SgEI5gTRCzYdyWA_2system)(void* dest_0, void* source, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen);
|
|
N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
|
|
static N_NIMCALL(void, Marker_tyRef__c8hfKKbmR2HhUThblB9aF0A)(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);
|
|
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, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
|
|
static NIM_CONST tyObject_Base58Alphabet__9bGalHBlKepA9aKkGYwYJRIQ TM__YeF19ckwbYcADkHjcxd0xYg_15 = {{((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) 0),
|
|
((NI8) 1),
|
|
((NI8) 2),
|
|
((NI8) 3),
|
|
((NI8) 4),
|
|
((NI8) 5),
|
|
((NI8) 6),
|
|
((NI8) 7),
|
|
((NI8) 8),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) 9),
|
|
((NI8) 10),
|
|
((NI8) 11),
|
|
((NI8) 12),
|
|
((NI8) 13),
|
|
((NI8) 14),
|
|
((NI8) 15),
|
|
((NI8) 16),
|
|
((NI8) -1),
|
|
((NI8) 17),
|
|
((NI8) 18),
|
|
((NI8) 19),
|
|
((NI8) 20),
|
|
((NI8) 21),
|
|
((NI8) -1),
|
|
((NI8) 22),
|
|
((NI8) 23),
|
|
((NI8) 24),
|
|
((NI8) 25),
|
|
((NI8) 26),
|
|
((NI8) 27),
|
|
((NI8) 28),
|
|
((NI8) 29),
|
|
((NI8) 30),
|
|
((NI8) 31),
|
|
((NI8) 32),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) 33),
|
|
((NI8) 34),
|
|
((NI8) 35),
|
|
((NI8) 36),
|
|
((NI8) 37),
|
|
((NI8) 38),
|
|
((NI8) 39),
|
|
((NI8) 40),
|
|
((NI8) 41),
|
|
((NI8) 42),
|
|
((NI8) 43),
|
|
((NI8) -1),
|
|
((NI8) 44),
|
|
((NI8) 45),
|
|
((NI8) 46),
|
|
((NI8) 47),
|
|
((NI8) 48),
|
|
((NI8) 49),
|
|
((NI8) 50),
|
|
((NI8) 51),
|
|
((NI8) 52),
|
|
((NI8) 53),
|
|
((NI8) 54),
|
|
((NI8) 55),
|
|
((NI8) 56),
|
|
((NI8) 57),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1),
|
|
((NI8) -1)}
|
|
, {((NU8) 49),
|
|
((NU8) 50),
|
|
((NU8) 51),
|
|
((NU8) 52),
|
|
((NU8) 53),
|
|
((NU8) 54),
|
|
((NU8) 55),
|
|
((NU8) 56),
|
|
((NU8) 57),
|
|
((NU8) 65),
|
|
((NU8) 66),
|
|
((NU8) 67),
|
|
((NU8) 68),
|
|
((NU8) 69),
|
|
((NU8) 70),
|
|
((NU8) 71),
|
|
((NU8) 72),
|
|
((NU8) 74),
|
|
((NU8) 75),
|
|
((NU8) 76),
|
|
((NU8) 77),
|
|
((NU8) 78),
|
|
((NU8) 80),
|
|
((NU8) 81),
|
|
((NU8) 82),
|
|
((NU8) 83),
|
|
((NU8) 84),
|
|
((NU8) 85),
|
|
((NU8) 86),
|
|
((NU8) 87),
|
|
((NU8) 88),
|
|
((NU8) 89),
|
|
((NU8) 90),
|
|
((NU8) 97),
|
|
((NU8) 98),
|
|
((NU8) 99),
|
|
((NU8) 100),
|
|
((NU8) 101),
|
|
((NU8) 102),
|
|
((NU8) 103),
|
|
((NU8) 104),
|
|
((NU8) 105),
|
|
((NU8) 106),
|
|
((NU8) 107),
|
|
((NU8) 109),
|
|
((NU8) 110),
|
|
((NU8) 111),
|
|
((NU8) 112),
|
|
((NU8) 113),
|
|
((NU8) 114),
|
|
((NU8) 115),
|
|
((NU8) 116),
|
|
((NU8) 117),
|
|
((NU8) 118),
|
|
((NU8) 119),
|
|
((NU8) 120),
|
|
((NU8) 121),
|
|
((NU8) 122)}
|
|
}
|
|
;
|
|
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
|
|
extern TNimType NTI__qrLSDoe2oBoAqNtJ9badtnA_;
|
|
N_LIB_PRIVATE TNimType NTI__SvQLECaJB0ksJHUr659aRzA_;
|
|
N_LIB_PRIVATE TNimType NTI__c8hfKKbmR2HhUThblB9aF0A_;
|
|
STRING_LITERAL(TM__YeF19ckwbYcADkHjcxd0xYg_42, "Incorrect base58 string", 23);
|
|
extern TNimType* nimTypeRoot;
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
|
|
#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 60 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ, encode__fq4Bf0r5u8qQnebhPGRCtQ)(NU8* inbytes, NI inbytesLen_0, NIM_CHAR* outstr, NI outstrLen_0, NI* outlen) { tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ result; NI binsz; NI zcount; NI size; NI TM__YeF19ckwbYcADkHjcxd0xYg_3; NI TM__YeF19ckwbYcADkHjcxd0xYg_4; NI TM__YeF19ckwbYcADkHjcxd0xYg_5; NI TM__YeF19ckwbYcADkHjcxd0xYg_6; tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer_1; NI hi; NI TM__YeF19ckwbYcADkHjcxd0xYg_7; NI i; NI j; NI TM__YeF19ckwbYcADkHjcxd0xYg_8; NI needed; NI TM__YeF19ckwbYcADkHjcxd0xYg_13; NI TM__YeF19ckwbYcADkHjcxd0xYg_14; result = (tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ)0;
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
binsz = inbytesLen_0;
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
zcount = ((NI) 0); {
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
while (1) { NIM_BOOL T3_; NI TM__YeF19ckwbYcADkHjcxd0xYg_2;
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
T3_ = (NIM_BOOL)0;
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
T3_ = (zcount < binsz); if (!(T3_)) goto LA4_;
|
|
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(zcount) >= (NU)(inbytesLen_0)){ raiseIndexError2(zcount,inbytesLen_0-1); } T3_ = (inbytes[zcount] == ((NU8) 0)); LA4_: ;
|
|
if (!T3_) goto LA2;
|
|
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(zcount, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_2)) { raiseOverflow(); }; zcount = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_2); } LA2: ;
|
|
}
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimSubInt(binsz, zcount, &TM__YeF19ckwbYcADkHjcxd0xYg_3)) { raiseOverflow(); }; if (nimMulInt((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_3), ((NI) 138), &TM__YeF19ckwbYcADkHjcxd0xYg_4)) { raiseOverflow(); }; if (((NI) 100) == 0){ raiseDivByZero(); } if (nimDivInt((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_4), ((NI) 100), &TM__YeF19ckwbYcADkHjcxd0xYg_5)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_5), ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_6)) { raiseOverflow(); }; size = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_6);
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((size) < ((NI) 0) || (size) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(size, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
buffer_1 = newSeq__DpCWN7DIBuAjgoeQ9c29blYQ(((NI) (size)));
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimSubInt(size, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_7)) { raiseOverflow(); }; hi = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_7);
|
|
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
i = zcount;
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimSubInt(size, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_8)) { raiseOverflow(); }; j = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_8); {
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
while (1) { NU32 carry; NI TM__YeF19ckwbYcADkHjcxd0xYg_9; NI TM__YeF19ckwbYcADkHjcxd0xYg_11;
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(i < binsz)) goto LA6;
|
|
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(i) >= (NU)(inbytesLen_0)){ raiseIndexError2(i,inbytesLen_0-1); } carry = ((NU32) (inbytes[i]));
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimSubInt(size, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_9)) { raiseOverflow(); }; j = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_9); {
|
|
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
while (1) { NIM_BOOL T9_; NI TM__YeF19ckwbYcADkHjcxd0xYg_10;
|
|
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
T9_ = (NIM_BOOL)0;
|
|
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
T9_ = (hi < j); if (T9_) goto LA10_;
|
|
|
|
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
T9_ = !((carry == ((NU32) 0))); LA10_: ;
|
|
if (!T9_) goto LA8;
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(j) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(j,(buffer_1 ? buffer_1->Sup.len : 0)-1); } carry = (NU32)((NU32)(carry) + (NU32)((NU32)((NU32)(((NU32) 256)) * (NU32)(((NU32) (buffer_1->data[j])))))); if ((NU)(j) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(j,(buffer_1 ? buffer_1->Sup.len : 0)-1); }
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
buffer_1->data[j] = ((NU8) ((NU32)((NU32)(carry) % (NU32)(((NU32) 58)))));
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
carry = (NU32)((NU32)(carry) / (NU32)(((NU32) 58)));
|
|
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimSubInt(j, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_10)) { raiseOverflow(); }; j = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_10); } LA8: ;
|
|
}
|
|
|
|
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
hi = j;
|
|
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_11)) { raiseOverflow(); }; i = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_11); } LA6: ;
|
|
}
|
|
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
j = ((NI) 0); {
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
while (1) { NIM_BOOL T13_; NI TM__YeF19ckwbYcADkHjcxd0xYg_12;
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
T13_ = (NIM_BOOL)0;
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
T13_ = (j < size); if (!(T13_)) goto LA14_;
|
|
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(j) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(j,(buffer_1 ? buffer_1->Sup.len : 0)-1); } T13_ = (buffer_1->data[j] == ((NU8) 0)); LA14_: ;
|
|
if (!T13_) goto LA12;
|
|
|
|
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(j, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_12)) { raiseOverflow(); }; j = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_12); } LA12: ;
|
|
}
|
|
|
|
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(zcount, size, &TM__YeF19ckwbYcADkHjcxd0xYg_13)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_13), j, &TM__YeF19ckwbYcADkHjcxd0xYg_14)) { raiseOverflow(); }; needed = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_14);
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
(*outlen) = needed;
|
|
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{
|
|
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(outstrLen_0 < needed)) goto LA17_;
|
|
|
|
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
result = ((tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ) 3); }
|
|
goto LA15_;
|
|
LA17_: ;
|
|
{ { NI k; NI i_2; k = (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__YeF19ckwbYcADkHjcxd0xYg_16;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < zcount)) goto LA22;
|
|
|
|
#line 105 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
k = i_2; if ((NU)(k) >= (NU)(outstrLen_0)){ raiseIndexError2(k,outstrLen_0-1); }
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
outstr[k] = ((NIM_CHAR) (TM__YeF19ckwbYcADkHjcxd0xYg_15.encode[(((NI) 0))- 0]));
|
|
#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__YeF19ckwbYcADkHjcxd0xYg_16)) { raiseOverflow(); }; i_2 = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_16); } LA22: ;
|
|
}
|
|
}
|
|
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
i = zcount; {
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
while (1) { NI TM__YeF19ckwbYcADkHjcxd0xYg_17; NI TM__YeF19ckwbYcADkHjcxd0xYg_18;
|
|
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(j < size)) goto LA24;
|
|
if ((NU)(i) >= (NU)(outstrLen_0)){ raiseIndexError2(i,outstrLen_0-1); }
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(j) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(j,(buffer_1 ? buffer_1->Sup.len : 0)-1); } if ((NU)(buffer_1->data[j]) > (NU)(57)){ raiseIndexError2(buffer_1->data[j], 57); } outstr[i] = ((NIM_CHAR) (TM__YeF19ckwbYcADkHjcxd0xYg_15.encode[(buffer_1->data[j])- 0]));
|
|
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(j, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_17)) { raiseOverflow(); }; j = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_17);
|
|
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_18)) { raiseOverflow(); }; i = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_18); } LA24: ;
|
|
}
|
|
|
|
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
result = ((tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ) 1); }
|
|
LA15_: ;
|
|
return result;}
|
|
|
|
#line 2116 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(void, moveMem__i80o3k0SgEI5gTRCzYdyWA_2system)(void* dest_0, void* source, NI size) { void* T1_;
|
|
#line 2117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2117 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
T1_ = (void*)0; T1_ = memmove(dest_0, source, ((size_t) (size)));}
|
|
|
|
#line 126 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ, decode__IzTRj9bovOsguCT5qhRtpOg)(NIM_CHAR* instr, NI instrLen_0, NU8* outbytes, NI outbytesLen_0, NI* outlen) { tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ result; NI binsz; NI TM__YeF19ckwbYcADkHjcxd0xYg_20; NI bytesleft; NI TM__YeF19ckwbYcADkHjcxd0xYg_21; NU32 zeromask; NI size; NI TM__YeF19ckwbYcADkHjcxd0xYg_23; NI TM__YeF19ckwbYcADkHjcxd0xYg_24; tySequence__9bAGqSvkAaFL9bWjsEPslrFA* buffer_1; NI zcount; NI boffset; NI joffset; NI m; NI TM__YeF19ckwbYcADkHjcxd0xYg_41;{ result = (tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ)0;
|
|
#line 146 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{
|
|
#line 146 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 146 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(instrLen_0 == ((NI) 0))) goto LA3_;
|
|
|
|
#line 147 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
(*outlen) = ((NI) 0);
|
|
#line 148 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 148 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
result = ((tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ) 1); goto BeforeRet_;
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 150 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(instrLen_0, ((NI) 4), &TM__YeF19ckwbYcADkHjcxd0xYg_20)) { raiseOverflow(); }; binsz = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_20);
|
|
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{
|
|
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 151 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(outbytesLen_0 < binsz)) goto LA7_;
|
|
|
|
#line 152 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
(*outlen) = binsz;
|
|
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
result = ((tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ) 3); goto BeforeRet_;
|
|
}
|
|
LA7_: ;
|
|
|
|
#line 155 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 155 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (((NI) 4) == 0){ raiseDivByZero(); } if (nimModInt(binsz, ((NI) 4), &TM__YeF19ckwbYcADkHjcxd0xYg_21)) { raiseOverflow(); }; bytesleft = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_21); zeromask = (NU32)0;
|
|
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{ NI TM__YeF19ckwbYcADkHjcxd0xYg_22;
|
|
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!!((bytesleft == ((NI) 0)))) goto LA11_;
|
|
|
|
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimMulInt(bytesleft, ((NI) 8), &TM__YeF19ckwbYcADkHjcxd0xYg_22)) { raiseOverflow(); }; zeromask = ((NU32) ((NU32)((NU64)(((NU32) IL64(4294967295))) << (NU64)((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_22))))); }
|
|
LA11_: ;
|
|
|
|
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 160 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(binsz, ((NI) 3), &TM__YeF19ckwbYcADkHjcxd0xYg_23)) { raiseOverflow(); }; if (((NI) 4) == 0){ raiseDivByZero(); } if (nimDivInt((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_23), ((NI) 4), &TM__YeF19ckwbYcADkHjcxd0xYg_24)) { raiseOverflow(); }; size = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_24);
|
|
#line 161 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((size) < ((NI) 0) || (size) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(size, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 161 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
buffer_1 = newSeq__4g9cmvwewbrdtpBMV5P3thg(((NI) (size)));
|
|
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
zcount = ((NI) 0); {
|
|
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
while (1) { NIM_BOOL T15_; NI TM__YeF19ckwbYcADkHjcxd0xYg_25;
|
|
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
T15_ = (NIM_BOOL)0;
|
|
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
T15_ = (zcount < instrLen_0); if (!(T15_)) goto LA16_;
|
|
|
|
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(zcount) >= (NU)(instrLen_0)){ raiseIndexError2(zcount,instrLen_0-1); } T15_ = ((NU8)(instr[zcount]) == (NU8)(((NIM_CHAR) (TM__YeF19ckwbYcADkHjcxd0xYg_15.encode[(((NI) 0))- 0])))); LA16_: ;
|
|
if (!T15_) goto LA14;
|
|
|
|
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(zcount, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_25)) { raiseOverflow(); }; zcount = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_25); } LA14: ;
|
|
}
|
|
{ NI i; NI colontmp_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
|
|
#line 167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
colontmp_ = instrLen_0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = zcount; {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI8 ch; NU32 c; NI TM__YeF19ckwbYcADkHjcxd0xYg_28;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < colontmp_)) goto LA19;
|
|
|
|
#line 167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
i = i_2;
|
|
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{
|
|
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(i) >= (NU)(instrLen_0)){ raiseIndexError2(i,instrLen_0-1); } if (!!(((NU8)(((NU8) (((NU8)(instr[i])))) & ((NU8) 128)) == ((NU8) 0)))) goto LA22_;
|
|
|
|
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
(*outlen) = ((NI) 0);
|
|
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
result = ((tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ) 2);
|
|
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA22_: ;
|
|
|
|
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(i) >= (NU)(instrLen_0)){ raiseIndexError2(i,instrLen_0-1); } if ((((NU8)(instr[i]))) < ((NI8) -128) || (((NU8)(instr[i]))) > ((NI8) 127)){ raiseRangeErrorI(((NU8)(instr[i])), ((NI8) -128), ((NI8) 127)); } if ((NU)(((NI8) (((NU8)(instr[i]))))) > (NU)(127)){ raiseIndexError2(((NI8) (((NU8)(instr[i])))), 127); } ch = TM__YeF19ckwbYcADkHjcxd0xYg_15.decode[(((NI8) (((NU8)(instr[i])))))- 0];
|
|
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{
|
|
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(ch == ((NI8) -1))) goto LA26_;
|
|
|
|
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
(*outlen) = ((NI) 0);
|
|
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
result = ((tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ) 2);
|
|
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA26_: ;
|
|
|
|
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
c = ((NU32) (ch)); { NI j; NI colontmp__2; NI TM__YeF19ckwbYcADkHjcxd0xYg_26; NI res; j = (NI)0; colontmp__2 = (NI)0;
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimSubInt(size, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_26)) { raiseOverflow(); }; colontmp__2 = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_26);
|
|
#line 28 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
res = colontmp__2; {
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NU64 t; NI TM__YeF19ckwbYcADkHjcxd0xYg_27;
|
|
#line 29 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(((NI) 0) <= res)) goto LA30;
|
|
|
|
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
j = res;
|
|
#line 179 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 179 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 179 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(j) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(j,(buffer_1 ? buffer_1->Sup.len : 0)-1); } t = (NU64)((NU64)((NU64)((NU64)(((NU64) (buffer_1->data[j]))) * (NU64)(58ULL))) + (NU64)(((NU64) (c))));
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
c = ((NU32) ((NU64)((NU64)((NU64)(t & 270582939648ULL)) >> (NU64)(((NI) 32))))); if ((NU)(j) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(j,(buffer_1 ? buffer_1->Sup.len : 0)-1); }
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
buffer_1->data[j] = ((NU32) ((NU64)(t & 4294967295ULL)));
|
|
#line 31 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimSubInt(res, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_27)) { raiseOverflow(); }; res = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_27); } LA30: ;
|
|
}
|
|
}
|
|
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!!((c == ((NU32) 0)))) goto LA33_;
|
|
|
|
#line 183 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
(*outlen) = ((NI) 0);
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
result = ((tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ) 2);
|
|
#line 185 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA33_: ;
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(((NI) 0)) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(((NI) 0),(buffer_1 ? buffer_1->Sup.len : 0)-1); } if (!!(((NU32)(buffer_1->data[((NI) 0)] & zeromask) == ((NU32) 0)))) goto LA37_;
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
(*outlen) = ((NI) 0);
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
result = ((tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ) 2);
|
|
#line 189 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA37_: ;
|
|
|
|
#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__YeF19ckwbYcADkHjcxd0xYg_28)) { raiseOverflow(); }; i_2 = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_28); } LA19: ;
|
|
}
|
|
}
|
|
|
|
#line 191 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
boffset = ((NI) 0);
|
|
#line 192 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
joffset = ((NI) 0);
|
|
#line 193 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{ NI TM__YeF19ckwbYcADkHjcxd0xYg_29;
|
|
#line 193 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(bytesleft == ((NI) 3))) goto LA41_;
|
|
if ((NU)(boffset) >= (NU)(outbytesLen_0)){ raiseIndexError2(boffset,outbytesLen_0-1); }
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(((NI) 0)) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(((NI) 0),(buffer_1 ? buffer_1->Sup.len : 0)-1); } outbytes[boffset] = ((NU8) ((NU32)((NU32)((NU32)(buffer_1->data[((NI) 0)] & ((NU32) 16711680))) >> (NU64)(((NI) 16)))));
|
|
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(boffset, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_29)) { raiseOverflow(); }; boffset = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_29);
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
bytesleft = ((NI) 2); }
|
|
LA41_: ;
|
|
|
|
#line 197 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{ NI TM__YeF19ckwbYcADkHjcxd0xYg_30;
|
|
#line 197 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(bytesleft == ((NI) 2))) goto LA45_;
|
|
if ((NU)(boffset) >= (NU)(outbytesLen_0)){ raiseIndexError2(boffset,outbytesLen_0-1); }
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(((NI) 0)) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(((NI) 0),(buffer_1 ? buffer_1->Sup.len : 0)-1); } outbytes[boffset] = ((NU8) ((NU32)((NU32)((NU32)(buffer_1->data[((NI) 0)] & ((NU32) 65280))) >> (NU64)(((NI) 8)))));
|
|
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(boffset, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_30)) { raiseOverflow(); }; boffset = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_30);
|
|
#line 200 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
bytesleft = ((NI) 1); }
|
|
LA45_: ;
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{ NI TM__YeF19ckwbYcADkHjcxd0xYg_31;
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(bytesleft == ((NI) 1))) goto LA49_;
|
|
if ((NU)(boffset) >= (NU)(outbytesLen_0)){ raiseIndexError2(boffset,outbytesLen_0-1); }
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(((NI) 0)) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(((NI) 0),(buffer_1 ? buffer_1->Sup.len : 0)-1); } outbytes[boffset] = ((NU8) ((NU32)(buffer_1->data[((NI) 0)] & ((NU32) 255))));
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(boffset, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_31)) { raiseOverflow(); }; boffset = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_31);
|
|
#line 204 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
joffset = ((NI) 1); }
|
|
LA49_: ;
|
|
{
|
|
#line 206 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
while (1) { NI TM__YeF19ckwbYcADkHjcxd0xYg_32; NI TM__YeF19ckwbYcADkHjcxd0xYg_33; NI TM__YeF19ckwbYcADkHjcxd0xYg_34; NI TM__YeF19ckwbYcADkHjcxd0xYg_35; NI TM__YeF19ckwbYcADkHjcxd0xYg_36; NI TM__YeF19ckwbYcADkHjcxd0xYg_37;
|
|
#line 206 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(joffset < size)) goto LA52;
|
|
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(boffset, ((NI) 0), &TM__YeF19ckwbYcADkHjcxd0xYg_32)) { raiseOverflow(); }; if ((NU)((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_32)) >= (NU)(outbytesLen_0)){ raiseIndexError2((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_32),outbytesLen_0-1); }
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(joffset) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(joffset,(buffer_1 ? buffer_1->Sup.len : 0)-1); } outbytes[(NI)(TM__YeF19ckwbYcADkHjcxd0xYg_32)] = ((NU8) ((NU32)((NU32)((NU32)(buffer_1->data[joffset]) >> (NU64)(((NI) 24))) & ((NU32) 255))));
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(boffset, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_33)) { raiseOverflow(); }; if ((NU)((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_33)) >= (NU)(outbytesLen_0)){ raiseIndexError2((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_33),outbytesLen_0-1); }
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(joffset) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(joffset,(buffer_1 ? buffer_1->Sup.len : 0)-1); } outbytes[(NI)(TM__YeF19ckwbYcADkHjcxd0xYg_33)] = ((NU8) ((NU32)((NU32)((NU32)(buffer_1->data[joffset]) >> (NU64)(((NI) 16))) & ((NU32) 255))));
|
|
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(boffset, ((NI) 2), &TM__YeF19ckwbYcADkHjcxd0xYg_34)) { raiseOverflow(); }; if ((NU)((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_34)) >= (NU)(outbytesLen_0)){ raiseIndexError2((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_34),outbytesLen_0-1); }
|
|
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(joffset) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(joffset,(buffer_1 ? buffer_1->Sup.len : 0)-1); } outbytes[(NI)(TM__YeF19ckwbYcADkHjcxd0xYg_34)] = ((NU8) ((NU32)((NU32)((NU32)(buffer_1->data[joffset]) >> (NU64)(((NI) 8))) & ((NU32) 255))));
|
|
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(boffset, ((NI) 3), &TM__YeF19ckwbYcADkHjcxd0xYg_35)) { raiseOverflow(); }; if ((NU)((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_35)) >= (NU)(outbytesLen_0)){ raiseIndexError2((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_35),outbytesLen_0-1); }
|
|
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(joffset) >= (NU)(buffer_1 ? buffer_1->Sup.len : 0)){ raiseIndexError2(joffset,(buffer_1 ? buffer_1->Sup.len : 0)-1); } outbytes[(NI)(TM__YeF19ckwbYcADkHjcxd0xYg_35)] = ((NU8) ((NU32)(buffer_1->data[joffset] & ((NU32) 255))));
|
|
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(boffset, ((NI) 4), &TM__YeF19ckwbYcADkHjcxd0xYg_36)) { raiseOverflow(); }; boffset = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_36);
|
|
#line 212 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(joffset, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_37)) { raiseOverflow(); }; joffset = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_37); } LA52: ;
|
|
}
|
|
|
|
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
(*outlen) = binsz;
|
|
#line 215 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
m = ((NI) 0); {
|
|
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
while (1) { NI TM__YeF19ckwbYcADkHjcxd0xYg_38; NI TM__YeF19ckwbYcADkHjcxd0xYg_39;
|
|
#line 216 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(m < binsz)) goto LA54;
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(m) >= (NU)(outbytesLen_0)){ raiseIndexError2(m,outbytesLen_0-1); } if (!!((outbytes[m] == ((NU8) 0)))) goto LA57_;
|
|
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(m < zcount)) goto LA61_;
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
result = ((tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ) 3);
|
|
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
goto BeforeRet_;
|
|
}
|
|
LA61_: ;
|
|
|
|
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
goto LA53;
|
|
}
|
|
LA57_: ;
|
|
|
|
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt(m, ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_38)) { raiseOverflow(); }; m = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_38);
|
|
#line 223 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimSubInt((*outlen), ((NI) 1), &TM__YeF19ckwbYcADkHjcxd0xYg_39)) { raiseOverflow(); }; (*outlen) = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_39); } LA54: ;
|
|
} LA53: ;
|
|
|
|
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{ NI TM__YeF19ckwbYcADkHjcxd0xYg_40;
|
|
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(m < binsz)) goto LA65_;
|
|
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((NU)(zcount) >= (NU)(outbytesLen_0)){ raiseIndexError2(zcount,outbytesLen_0-1); }
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimSubInt(binsz, (*outlen), &TM__YeF19ckwbYcADkHjcxd0xYg_40)) { raiseOverflow(); }; if ((NU)((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_40)) >= (NU)(outbytesLen_0)){ raiseIndexError2((NI)(TM__YeF19ckwbYcADkHjcxd0xYg_40),outbytesLen_0-1); } if (((*outlen)) < ((NI) 0) || ((*outlen)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((*outlen), ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
moveMem__i80o3k0SgEI5gTRCzYdyWA_2system(((void*) ((&outbytes[zcount]))), ((void*) ((&outbytes[(NI)(TM__YeF19ckwbYcADkHjcxd0xYg_40)]))), ((NI) ((*outlen))));
|
|
}
|
|
LA65_: ;
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt((*outlen), zcount, &TM__YeF19ckwbYcADkHjcxd0xYg_41)) { raiseOverflow(); }; (*outlen) = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_41);
|
|
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
result = ((tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ) 1); }BeforeRet_: ;
|
|
return result;}
|
|
static N_NIMCALL(void, Marker_tyRef__c8hfKKbmR2HhUThblB9aF0A)(void* p, NI op) {
|
|
tyObject_Base58Error__SvQLECaJB0ksJHUr659aRzA* a;
|
|
a = (tyObject_Base58Error__SvQLECaJB0ksJHUr659aRzA*)p;
|
|
nimGCvisit((void*)(*a).Sup.Sup.parent, op); nimGCvisit((void*)(*a).Sup.Sup.message, op); nimGCvisit((void*)(*a).Sup.Sup.trace, op); nimGCvisit((void*)(*a).Sup.Sup.up, op);}
|
|
|
|
#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 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 230 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, decode__uzJ09bVFacYeuhBGXei5Wmw)(NimStringDesc* instr) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
|
|
#line 232 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{ NI size; NI TM__YeF19ckwbYcADkHjcxd0xYg_19;
|
|
#line 232 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 232 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (!(((NI) 0) < (instr ? instr->Sup.len : 0))) goto LA3_;
|
|
|
|
#line 233 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 233 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 233 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if (nimAddInt((instr ? instr->Sup.len : 0), ((NI) 4), &TM__YeF19ckwbYcADkHjcxd0xYg_19)) { raiseOverflow(); }; size = (NI)(TM__YeF19ckwbYcADkHjcxd0xYg_19);
|
|
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((size) < ((NI) 0) || (size) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(size, ((NI) 0), ((NI) IL64(9223372036854775807))); }
|
|
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
result = newSeq__DpCWN7DIBuAjgoeQ9c29blYQ(((NI) (size)));
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
{ tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ T7_;
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
T7_ = (tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ)0; T7_ = decode__IzTRj9bovOsguCT5qhRtpOg(instr->data, (instr ? instr->Sup.len : 0), result->data, (result ? result->Sup.len : 0), (&size)); if (!(T7_ == ((tyEnum_Base58Status__se9cnHdBD9c9aAL7v4fWxriBQ) 1))) goto LA8_;
|
|
|
|
#line 236 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
if ((size) < ((NI) 0) || (size) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(size, ((NI) 0), ((NI) IL64(9223372036854775807))); } result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&(result)->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) (size))); }
|
|
goto LA5_;
|
|
LA8_: ;
|
|
{ tyObject_Base58Error__SvQLECaJB0ksJHUr659aRzA* T11_; NimStringDesc* T12_; T11_ = (tyObject_Base58Error__SvQLECaJB0ksJHUr659aRzA*)0; T11_ = (tyObject_Base58Error__SvQLECaJB0ksJHUr659aRzA*) newObj((&NTI__c8hfKKbmR2HhUThblB9aF0A_), sizeof(tyObject_Base58Error__SvQLECaJB0ksJHUr659aRzA)); (*T11_).Sup.Sup.Sup.m_type = (&NTI__SvQLECaJB0ksJHUr659aRzA_); (*T11_).Sup.Sup.name = "Base58Error"; T12_ = (NimStringDesc*)0; T12_ = (*T11_).Sup.Sup.message; (*T11_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__YeF19ckwbYcADkHjcxd0xYg_42)); if (T12_) nimGCunrefNoCycle(T12_); asgnRef((void**) (&(*T11_).Sup.Sup.parent), NIM_NIL);
|
|
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58.nim"
|
|
raiseExceptionEx((Exception*)T11_, "Base58Error", "decode", "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base58"
|
|
".nim", 238); }
|
|
LA5_: ;
|
|
}
|
|
LA3_: ;
|
|
return result;}
|
|
N_LIB_PRIVATE N_NIMCALL(void, stew_base58DatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode TM__YeF19ckwbYcADkHjcxd0xYg_0[1];NTI__SvQLECaJB0ksJHUr659aRzA_.size = sizeof(tyObject_Base58Error__SvQLECaJB0ksJHUr659aRzA);
|
|
NTI__SvQLECaJB0ksJHUr659aRzA_.kind = 17;
|
|
NTI__SvQLECaJB0ksJHUr659aRzA_.base = (&NTI__qrLSDoe2oBoAqNtJ9badtnA_);
|
|
NTI__SvQLECaJB0ksJHUr659aRzA_.name = "Base58Error";
|
|
NTI__SvQLECaJB0ksJHUr659aRzA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__SvQLECaJB0ksJHUr659aRzA_;
|
|
TM__YeF19ckwbYcADkHjcxd0xYg_0[0].len = 0; TM__YeF19ckwbYcADkHjcxd0xYg_0[0].kind = 2;
|
|
NTI__SvQLECaJB0ksJHUr659aRzA_.node = &TM__YeF19ckwbYcADkHjcxd0xYg_0[0];
|
|
NTI__c8hfKKbmR2HhUThblB9aF0A_.size = sizeof(tyObject_Base58Error__SvQLECaJB0ksJHUr659aRzA*);
|
|
NTI__c8hfKKbmR2HhUThblB9aF0A_.kind = 22;
|
|
NTI__c8hfKKbmR2HhUThblB9aF0A_.base = (&NTI__SvQLECaJB0ksJHUr659aRzA_);
|
|
NTI__c8hfKKbmR2HhUThblB9aF0A_.name = "ref Base58Error";
|
|
NTI__c8hfKKbmR2HhUThblB9aF0A_.nextType = nimTypeRoot; nimTypeRoot=&NTI__c8hfKKbmR2HhUThblB9aF0A_;
|
|
NTI__c8hfKKbmR2HhUThblB9aF0A_.marker = Marker_tyRef__c8hfKKbmR2HhUThblB9aF0A;
|
|
}
|
|
|