nwaku/nimcache/release/start_network2/@m..@s..@s..@svendor@snim-stew@sstew@sbase32.nim.c

1306 lines
76 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-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-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 -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/v2/node -o nimcache/release/start_network2/@m..@s..@s..@svendor@snim-stew@sstew@sbase32.nim.c.o nimcache/release/start_network2/@m..@s..@s..@svendor@snim-stew@sstew@sbase32.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_Base32Alphabet__oe5AmQKuqlIsDny8HPAMOw tyObject_Base32Alphabet__oe5AmQKuqlIsDny8HPAMOw;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tyObject_Base32Error__Foclilv14NjyN8TA9bUvkHA tyObject_Base32Error__Foclilv14NjyN8TA9bUvkHA;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
typedef struct Exception Exception;
typedef struct RootObj RootObj;
typedef struct NimStringDesc NimStringDesc;
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;
};
typedef NU8 tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA;
typedef NU8 tyArray__cdsir9aPB24hAk6k77P9b9bCA[8];
typedef NI8 tyArray__RhzX5YfZKYEbPWKjnZn9b0w[128];
typedef NU8 tyArray__vEOa9c5qaE9ajWxR5R4zwfQg[32];
struct tyObject_Base32Alphabet__oe5AmQKuqlIsDny8HPAMOw {tyArray__RhzX5YfZKYEbPWKjnZn9b0w decode;
tyArray__vEOa9c5qaE9ajWxR5R4zwfQg encode;
};
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 NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
};
struct Exception { RootObj Sup;Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
Exception* up;
};
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA { Exception Sup;};
struct tyObject_Base32Error__Foclilv14NjyN8TA9bUvkHA { 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__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, newSeq__DpCWN7DIBuAjgoeQ9c29blYQ)(NI len_0);
N_LIB_PRIVATE N_NIMCALL(NI, decodedLength__m3cTL6IX2e0seVeom9bYNiQ)(NI length);
N_LIB_PRIVATE N_NOINLINE(void, raiseDivByZero)(void);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
static N_INLINE(NIM_BOOL, nimDivInt)(NI a, NI b, NI* res);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
N_LIB_PRIVATE N_NIMCALL(tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA, decode__2XmPIQbzbSh4rbfBs9aIfLQ)(NIM_CHAR* instr, NI instrLen_0, NU8* outbytes, NI outbytesLen_0, NI* outlen);
static N_INLINE(void, nimZeroMem)(void* p, NI size);
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
static N_INLINE(NI, convert8to5__clfr1HnsS4SZsjgZkwICJwbase32)(NU8* inbytes, NI inbytesLen_0, NU8* outbytes, NI outbytesLen_0, NI length);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError)(void);
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__FHg9aNZ1UC04yWT3TrGSVmg)(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);
N_LIB_PRIVATE N_NIMCALL(NI, encodedLength__m3cTL6IX2e0seVeom9bYNiQ_2)(NI length);
static N_INLINE(NI, convert5to8__iiXdiUkBXz1NDEaTjiTr9cAbase32)(NU8* inbytes, NI inbytesLen_0, NIM_CHAR* outbytes, NI outbytesLen_0, NI length);
static NIM_CONST tyObject_Base32Alphabet__oe5AmQKuqlIsDny8HPAMOw TM__g6ug0HuhP9as5f9bFm6XEOUw_11 = {{((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) -1),
((NI8) 26),
((NI8) 27),
((NI8) 28),
((NI8) 29),
((NI8) 30),
((NI8) 31),
((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) 9),
((NI8) 10),
((NI8) 11),
((NI8) 12),
((NI8) 13),
((NI8) 14),
((NI8) 15),
((NI8) 16),
((NI8) 17),
((NI8) 18),
((NI8) 19),
((NI8) 20),
((NI8) 21),
((NI8) 22),
((NI8) 23),
((NI8) 24),
((NI8) 25),
((NI8) -1),
((NI8) -1),
((NI8) -1),
((NI8) -1),
((NI8) -1)}
, {((NU8) 97),
((NU8) 98),
((NU8) 99),
((NU8) 100),
((NU8) 101),
((NU8) 102),
((NU8) 103),
((NU8) 104),
((NU8) 105),
((NU8) 106),
((NU8) 107),
((NU8) 108),
((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),
((NU8) 50),
((NU8) 51),
((NU8) 52),
((NU8) 53),
((NU8) 54),
((NU8) 55)}
}
;
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
extern TNimType NTI__qrLSDoe2oBoAqNtJ9badtnA_;
N_LIB_PRIVATE TNimType NTI__Foclilv14NjyN8TA9bUvkHA_;
N_LIB_PRIVATE TNimType NTI__FHg9aNZ1UC04yWT3TrGSVmg_;
STRING_LITERAL(TM__g6ug0HuhP9as5f9bFm6XEOUw_23, "Incorrect base32 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 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
N_LIB_PRIVATE N_NIMCALL(NI, decodedLength__m3cTL6IX2e0seVeom9bYNiQ)(NI length) { NI result; NI reminder; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_2; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_3; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_4; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_5; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_6; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_7; result = (NI)0;
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (((NI) 8) == 0){ raiseDivByZero(); } if (nimModInt(length, ((NI) 8), &TM__g6ug0HuhP9as5f9bFm6XEOUw_2)) { raiseOverflow(); }; reminder = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_2);
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (((NI) 8) == 0){ raiseDivByZero(); } if (nimDivInt(length, ((NI) 8), &TM__g6ug0HuhP9as5f9bFm6XEOUw_3)) { raiseOverflow(); }; if (nimMulInt((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_3), ((NI) 5), &TM__g6ug0HuhP9as5f9bFm6XEOUw_4)) { raiseOverflow(); };
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimMulInt(reminder, ((NI) 5), &TM__g6ug0HuhP9as5f9bFm6XEOUw_5)) { raiseOverflow(); }; if (((NI) 8) == 0){ raiseDivByZero(); } if (nimDivInt((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_5), ((NI) 8), &TM__g6ug0HuhP9as5f9bFm6XEOUw_6)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_4), (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_6), &TM__g6ug0HuhP9as5f9bFm6XEOUw_7)) { raiseOverflow(); }; result = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_7); return result;}
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
}
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
static N_INLINE(NI, convert8to5__clfr1HnsS4SZsjgZkwICJwbase32)(NU8* inbytes, NI inbytesLen_0, NU8* outbytes, NI outbytesLen_0, NI length) { NI result; result = (NI)0;
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(((NI) 2) <= length)) goto LA3_;
if ((NU)(((NI) 0)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 0),outbytesLen_0-1); }
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 0)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 0),inbytesLen_0-1); } outbytes[((NI) 0)] = (NU8)((NU64)(inbytes[((NI) 0)]) << (NU64)(((NI) 3))); if ((NU)(((NI) 0)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 0),outbytesLen_0-1); }
#line 114 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 114 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 0)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 0),outbytesLen_0-1); }
#line 114 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 1)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 1),inbytesLen_0-1); } outbytes[((NI) 0)] = (NU8)(outbytes[((NI) 0)] | (NU8)((NU8)(inbytes[((NI) 1)]) >> (NU64)(((NI) 2))));
#line 115 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((NI) 1); }
LA3_: ;
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(((NI) 4) <= length)) goto LA7_;
if ((NU)(((NI) 1)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 1),outbytesLen_0-1); }
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 1)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 1),inbytesLen_0-1); } outbytes[((NI) 1)] = (NU8)((NU64)((NU8)(inbytes[((NI) 1)] & ((NU8) 3))) << (NU64)(((NI) 6))); if ((NU)(((NI) 1)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 1),outbytesLen_0-1); }
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 1)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 1),outbytesLen_0-1); }
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 2)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 2),inbytesLen_0-1); } outbytes[((NI) 1)] = (NU8)(outbytes[((NI) 1)] | (NU8)((NU64)(inbytes[((NI) 2)]) << (NU64)(((NI) 1)))); if ((NU)(((NI) 1)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 1),outbytesLen_0-1); }
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 1)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 1),outbytesLen_0-1); }
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 3)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 3),inbytesLen_0-1); } outbytes[((NI) 1)] = (NU8)(outbytes[((NI) 1)] | (NU8)((NU8)(inbytes[((NI) 3)]) >> (NU64)(((NI) 4))));
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((NI) 2); }
LA7_: ;
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(((NI) 5) <= length)) goto LA11_;
if ((NU)(((NI) 2)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 2),outbytesLen_0-1); }
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 3)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 3),inbytesLen_0-1); } outbytes[((NI) 2)] = (NU8)((NU64)((NU8)(inbytes[((NI) 3)] & ((NU8) 15))) << (NU64)(((NI) 4))); if ((NU)(((NI) 2)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 2),outbytesLen_0-1); }
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 2)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 2),outbytesLen_0-1); }
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 4)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 4),inbytesLen_0-1); } outbytes[((NI) 2)] = (NU8)(outbytes[((NI) 2)] | (NU8)((NU8)(inbytes[((NI) 4)]) >> (NU64)(((NI) 1))));
#line 124 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((NI) 3); }
LA11_: ;
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(((NI) 7) <= length)) goto LA15_;
if ((NU)(((NI) 3)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 3),outbytesLen_0-1); }
#line 126 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 126 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 126 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 4)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 4),inbytesLen_0-1); } outbytes[((NI) 3)] = (NU8)((NU64)((NU8)(inbytes[((NI) 4)] & ((NU8) 1))) << (NU64)(((NI) 7))); if ((NU)(((NI) 3)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 3),outbytesLen_0-1); }
#line 127 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 127 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 3)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 3),outbytesLen_0-1); }
#line 127 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 5)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 5),inbytesLen_0-1); } outbytes[((NI) 3)] = (NU8)(outbytes[((NI) 3)] | (NU8)((NU64)(inbytes[((NI) 5)]) << (NU64)(((NI) 2)))); if ((NU)(((NI) 3)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 3),outbytesLen_0-1); }
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 3)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 3),outbytesLen_0-1); }
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 6)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 6),inbytesLen_0-1); } outbytes[((NI) 3)] = (NU8)(outbytes[((NI) 3)] | (NU8)((NU8)(inbytes[((NI) 6)]) >> (NU64)(((NI) 3))));
#line 129 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((NI) 4); }
LA15_: ;
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(((NI) 8) <= length)) goto LA19_;
if ((NU)(((NI) 4)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 4),outbytesLen_0-1); }
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 6)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 6),inbytesLen_0-1); } outbytes[((NI) 4)] = (NU8)((NU64)((NU8)(inbytes[((NI) 6)] & ((NU8) 7))) << (NU64)(((NI) 5))); if ((NU)(((NI) 4)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 4),outbytesLen_0-1); }
#line 132 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 132 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 4)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 4),outbytesLen_0-1); }
#line 132 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 7)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 7),inbytesLen_0-1); } outbytes[((NI) 4)] = (NU8)(outbytes[((NI) 4)] | (NU8)(inbytes[((NI) 7)] & ((NU8) 31)));
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((NI) 5); }
LA19_: ;
return result;}
#line 200 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA, decode__2XmPIQbzbSh4rbfBs9aIfLQ)(NIM_CHAR* instr, NI instrLen_0, NU8* outbytes, NI outbytesLen_0, NI* outlen) { tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA result; NI length; NI inlen; NI reminder; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_8; NI limit; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_9; tyArray__cdsir9aPB24hAk6k77P9b9bCA buffer; NI i; NI k; NI left; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_22;{ result = (tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA)0;
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(instrLen_0 == ((NI) 0))) goto LA3_;
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
(*outlen) = ((NI) 0);
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA) 1); goto BeforeRet_;
}
LA3_: ;
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 222 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
length = decodedLength__m3cTL6IX2e0seVeom9bYNiQ(instrLen_0);
#line 223 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 223 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 223 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(outbytesLen_0 < length)) goto LA7_;
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
(*outlen) = length;
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA) 3); goto BeforeRet_;
}
LA7_: ;
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
inlen = instrLen_0;
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 234 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (((NI) 8) == 0){ raiseDivByZero(); } if (nimModInt(inlen, ((NI) 8), &TM__g6ug0HuhP9as5f9bFm6XEOUw_8)) { raiseOverflow(); }; reminder = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_8);
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimSubInt(inlen, reminder, &TM__g6ug0HuhP9as5f9bFm6XEOUw_9)) { raiseOverflow(); }; limit = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_9); nimZeroMem((void*)buffer, sizeof(tyArray__cdsir9aPB24hAk6k77P9b9bCA)); i = (NI)0; k = (NI)0; {
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
while (1) { NI TM__g6ug0HuhP9as5f9bFm6XEOUw_14; NI T22_; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_15; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_16;
#line 238 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(i < limit)) goto LA10;
{ NI j; NI i_2; j = (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) { NI8 ch; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_12; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_13;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_2 < ((NI) 8))) goto LA13;
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
j = i_2;
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{ NI TM__g6ug0HuhP9as5f9bFm6XEOUw_10;
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(i, j, &TM__g6ug0HuhP9as5f9bFm6XEOUw_10)) { raiseOverflow(); }; if ((NU)((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_10)) >= (NU)(instrLen_0)){ raiseIndexError2((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_10),instrLen_0-1); } if (!!(((NU8)(((NU8) (((NU8)(instr[(NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_10)])))) & ((NU8) 128)) == ((NU8) 0)))) goto LA16_;
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
(*outlen) = ((NI) 0);
#line 242 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 242 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA) 2); goto BeforeRet_;
}
LA16_: ;
#line 243 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 243 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(i, j, &TM__g6ug0HuhP9as5f9bFm6XEOUw_12)) { raiseOverflow(); }; if ((NU)((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_12)) >= (NU)(instrLen_0)){ raiseIndexError2((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_12),instrLen_0-1); } if ((NU)(((NI8) (((NU8)(instr[(NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_12)]))))) > (NU)(127)){ raiseIndexError2(((NI8) (((NU8)(instr[(NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_12)])))), 127); } ch = TM__g6ug0HuhP9as5f9bFm6XEOUw_11.decode[(((NI8) (((NU8)(instr[(NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_12)])))))- 0];
#line 244 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 244 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(ch == ((NI8) -1))) goto LA20_;
#line 245 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
(*outlen) = ((NI) 0);
#line 246 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 246 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA) 2); goto BeforeRet_;
}
LA20_: ;
if ((NU)(j) > (NU)(7)){ raiseIndexError2(j, 7); }
#line 247 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
buffer[(j)- 0] = ((NU8) (ch));
#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__g6ug0HuhP9as5f9bFm6XEOUw_13)) { raiseOverflow(); }; i_2 = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_13); } LA13: ;
}
}
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(k, ((NI) 4), &TM__g6ug0HuhP9as5f9bFm6XEOUw_14)) { raiseOverflow(); }; if ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_14)-k != -1 && ((NU)(k) >= (NU)(outbytesLen_0) || (NU)((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_14)) >= (NU)(outbytesLen_0))){ raiseIndexError(); }
#line 248 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
T22_ = (NI)0; T22_ = convert8to5__clfr1HnsS4SZsjgZkwICJwbase32(buffer, 8, (NU8*)(outbytes)+(k), ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_14))-(k)+1, ((NI) 8)); (void)(T22_);
#line 249 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(k, ((NI) 5), &TM__g6ug0HuhP9as5f9bFm6XEOUw_15)) { raiseOverflow(); }; k = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_15);
#line 250 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(i, ((NI) 8), &TM__g6ug0HuhP9as5f9bFm6XEOUw_16)) { raiseOverflow(); }; i = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_16); } LA10: ;
}
#line 252 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
left = ((NI) 0);
#line 253 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{ NI TM__g6ug0HuhP9as5f9bFm6XEOUw_20; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_21;
#line 253 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 253 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!!((reminder == ((NI) 0)))) goto LA25_;
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{ NIM_BOOL T29_; NIM_BOOL T30_;
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
T29_ = (NIM_BOOL)0;
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
T30_ = (NIM_BOOL)0;
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
T30_ = (reminder == ((NI) 1)); if (T30_) goto LA31_;
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
T30_ = (reminder == ((NI) 3)); LA31_: ;
T29_ = T30_; if (T29_) goto LA32_;
#line 254 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
T29_ = (reminder == ((NI) 6)); LA32_: ;
if (!T29_) goto LA33_;
#line 255 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
(*outlen) = ((NI) 0);
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA) 2); goto BeforeRet_;
}
LA33_: ;
{ NI j_2; NI i_3; j_2 = (NI)0;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_3 = ((NI) 0); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI8 ch_2; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_18; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_19;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_3 < reminder)) goto LA37;
#line 257 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
j_2 = i_3;
#line 258 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{ NI TM__g6ug0HuhP9as5f9bFm6XEOUw_17;
#line 258 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 258 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 258 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 258 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(i, j_2, &TM__g6ug0HuhP9as5f9bFm6XEOUw_17)) { raiseOverflow(); }; if ((NU)((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_17)) >= (NU)(instrLen_0)){ raiseIndexError2((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_17),instrLen_0-1); } if (!!(((NU8)(((NU8) (((NU8)(instr[(NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_17)])))) & ((NU8) 128)) == ((NU8) 0)))) goto LA40_;
#line 259 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
(*outlen) = ((NI) 0);
#line 260 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA) 2);
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
goto BeforeRet_;
}
LA40_: ;
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(i, j_2, &TM__g6ug0HuhP9as5f9bFm6XEOUw_18)) { raiseOverflow(); }; if ((NU)((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_18)) >= (NU)(instrLen_0)){ raiseIndexError2((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_18),instrLen_0-1); } if ((NU)(((NI8) (((NU8)(instr[(NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_18)]))))) > (NU)(127)){ raiseIndexError2(((NI8) (((NU8)(instr[(NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_18)])))), 127); } ch_2 = TM__g6ug0HuhP9as5f9bFm6XEOUw_11.decode[(((NI8) (((NU8)(instr[(NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_18)])))))- 0];
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(ch_2 == ((NI8) -1))) goto LA44_;
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
(*outlen) = ((NI) 0);
#line 265 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA) 2);
#line 266 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
goto BeforeRet_;
}
LA44_: ;
if ((NU)(j_2) > (NU)(7)){ raiseIndexError2(j_2, 7); }
#line 267 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
buffer[(j_2)- 0] = ((NU8) (ch_2));
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(i_3, ((NI) 1), &TM__g6ug0HuhP9as5f9bFm6XEOUw_19)) { raiseOverflow(); }; i_3 = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_19); } LA37: ;
}
}
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimSubInt(reminder, ((NI) 1), &TM__g6ug0HuhP9as5f9bFm6XEOUw_20)) { raiseOverflow(); }; if ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_20)-((NI) 0) != -1 && ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_20)-((NI) 0) < -1 || ((NI) 0) < 0 || ((NI) 0) > 7 || (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_20) < 0 || (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_20) > 7)){ raiseIndexError(); }
#line 269 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimSubInt(length, ((NI) 1), &TM__g6ug0HuhP9as5f9bFm6XEOUw_21)) { raiseOverflow(); }; if ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_21)-k != -1 && ((NU)(k) >= (NU)(outbytesLen_0) || (NU)((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_21)) >= (NU)(outbytesLen_0))){ raiseIndexError(); }
#line 268 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
left = convert8to5__clfr1HnsS4SZsjgZkwICJwbase32((NU8*)((buffer)+(((NI) 0))), ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_20))-(((NI) 0))+1, (NU8*)(outbytes)+(k), ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_21))-(k)+1, reminder); }
LA25_: ;
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 270 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(k, left, &TM__g6ug0HuhP9as5f9bFm6XEOUw_22)) { raiseOverflow(); }; (*outlen) = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_22);
#line 271 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA) 1); }BeforeRet_: ;
return result;}
static N_NIMCALL(void, Marker_tyRef__FHg9aNZ1UC04yWT3TrGSVmg)(void* p, NI op) {
tyObject_Base32Error__Foclilv14NjyN8TA9bUvkHA* a;
a = (tyObject_Base32Error__Foclilv14NjyN8TA9bUvkHA*)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 273 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, decode__09aruTOgLmeUBkiI1WeFzWw)(NIM_CHAR* instr, NI instrLen_0) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(instrLen_0 == ((NI) 0))) goto LA3_;
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = newSeq__DpCWN7DIBuAjgoeQ9c29blYQ(((NI) 0)); }
goto LA1_;
LA3_: ;
{ NI length; NI T6_;
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
length = ((NI) 0);
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
T6_ = (NI)0; T6_ = decodedLength__m3cTL6IX2e0seVeom9bYNiQ(instrLen_0); if ((T6_) < ((NI) 0) || (T6_) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(T6_, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = newSeq__DpCWN7DIBuAjgoeQ9c29blYQ(((NI) (T6_)));
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{ tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA T9_;
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
T9_ = (tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA)0; T9_ = decode__2XmPIQbzbSh4rbfBs9aIfLQ(instr, instrLen_0, result->data, (result ? result->Sup.len : 0), (&length)); if (!(T9_ == ((tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA) 1))) goto LA10_;
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((length) < ((NI) 0) || (length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) 0), ((NI) IL64(9223372036854775807))); } result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&(result)->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) (length))); }
goto LA7_;
LA10_: ;
{ tyObject_Base32Error__Foclilv14NjyN8TA9bUvkHA* T13_; NimStringDesc* T14_; T13_ = (tyObject_Base32Error__Foclilv14NjyN8TA9bUvkHA*)0; T13_ = (tyObject_Base32Error__Foclilv14NjyN8TA9bUvkHA*) newObj((&NTI__FHg9aNZ1UC04yWT3TrGSVmg_), sizeof(tyObject_Base32Error__Foclilv14NjyN8TA9bUvkHA)); (*T13_).Sup.Sup.Sup.m_type = (&NTI__Foclilv14NjyN8TA9bUvkHA_); (*T13_).Sup.Sup.name = "Base32Error"; T14_ = (NimStringDesc*)0; T14_ = (*T13_).Sup.Sup.message; (*T13_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__g6ug0HuhP9as5f9bFm6XEOUw_23)); if (T14_) nimGCunrefNoCycle(T14_); asgnRef((void**) (&(*T13_).Sup.Sup.parent), NIM_NIL);
#line 284 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
raiseExceptionEx((Exception*)T13_, "Base32Error", "decode", "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32"
".nim", 284); }
LA7_: ;
}
LA1_: ;
return result;}
#line 68 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
N_LIB_PRIVATE N_NIMCALL(NI, encodedLength__m3cTL6IX2e0seVeom9bYNiQ_2)(NI length) { NI result; NI reminder; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_24; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_25; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_26; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_27; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_28; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_29; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_30; result = (NI)0;
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (((NI) 5) == 0){ raiseDivByZero(); } if (nimModInt(length, ((NI) 5), &TM__g6ug0HuhP9as5f9bFm6XEOUw_24)) { raiseOverflow(); }; reminder = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_24);
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (((NI) 5) == 0){ raiseDivByZero(); } if (nimDivInt(length, ((NI) 5), &TM__g6ug0HuhP9as5f9bFm6XEOUw_25)) { raiseOverflow(); }; if (nimMulInt((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_25), ((NI) 8), &TM__g6ug0HuhP9as5f9bFm6XEOUw_26)) { raiseOverflow(); };
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 73 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimMulInt(reminder, ((NI) 8), &TM__g6ug0HuhP9as5f9bFm6XEOUw_27)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_27), ((NI) 4), &TM__g6ug0HuhP9as5f9bFm6XEOUw_28)) { raiseOverflow(); }; if (((NI) 5) == 0){ raiseDivByZero(); } if (nimDivInt((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_28), ((NI) 5), &TM__g6ug0HuhP9as5f9bFm6XEOUw_29)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_26), (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_29), &TM__g6ug0HuhP9as5f9bFm6XEOUw_30)) { raiseOverflow(); }; result = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_30); return result;}
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
static N_INLINE(NI, convert5to8__iiXdiUkBXz1NDEaTjiTr9cAbase32)(NU8* inbytes, NI inbytesLen_0, NIM_CHAR* outbytes, NI outbytesLen_0, NI length) { NI result; result = (NI)0;
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(((NI) 1) <= length)) goto LA3_;
if ((NU)(((NI) 0)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 0),outbytesLen_0-1); }
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 0)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 0),inbytesLen_0-1); } outbytes[((NI) 0)] = ((NIM_CHAR) (((NI) ((NU8)((NU8)(inbytes[((NI) 0)]) >> (NU64)(((NI) 3))))))); if ((NU)(((NI) 1)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 1),outbytesLen_0-1); }
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 0)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 0),inbytesLen_0-1); } outbytes[((NI) 1)] = ((NIM_CHAR) (((NI) ((NU8)((NU64)((NU8)(inbytes[((NI) 0)] & ((NU8) 7))) << (NU64)(((NI) 2)))))));
#line 90 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((NI) 2); }
LA3_: ;
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 91 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(((NI) 2) <= length)) goto LA7_;
if ((NU)(((NI) 1)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 1),outbytesLen_0-1); }
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 1)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 1),outbytesLen_0-1); }
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 1)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 1),inbytesLen_0-1); } outbytes[((NI) 1)] = ((NIM_CHAR) (((NI) ((NU8)(((NU8) (((NU8)(outbytes[((NI) 1)])))) | ((NU8) ((NU8)((NU8)(inbytes[((NI) 1)]) >> (NU64)(((NI) 6)))))))))); if ((NU)(((NI) 2)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 2),outbytesLen_0-1); }
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 1)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 1),inbytesLen_0-1); } outbytes[((NI) 2)] = ((NIM_CHAR) (((NI) ((NU8)((NU8)((NU8)(inbytes[((NI) 1)]) >> (NU64)(((NI) 1))) & ((NU8) 31)))))); if ((NU)(((NI) 3)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 3),outbytesLen_0-1); }
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 1)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 1),inbytesLen_0-1); } outbytes[((NI) 3)] = ((NIM_CHAR) (((NI) ((NU8)((NU64)((NU8)(inbytes[((NI) 1)] & ((NU8) 1))) << (NU64)(((NI) 4)))))));
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((NI) 4); }
LA7_: ;
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(((NI) 3) <= length)) goto LA11_;
if ((NU)(((NI) 3)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 3),outbytesLen_0-1); }
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 3)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 3),outbytesLen_0-1); }
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 2)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 2),inbytesLen_0-1); } outbytes[((NI) 3)] = ((NIM_CHAR) (((NI) ((NU8)(((NU8) (((NU8)(outbytes[((NI) 3)])))) | (NU8)((NU8)(inbytes[((NI) 2)]) >> (NU64)(((NI) 4)))))))); if ((NU)(((NI) 4)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 4),outbytesLen_0-1); }
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 2)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 2),inbytesLen_0-1); } outbytes[((NI) 4)] = ((NIM_CHAR) (((NI) ((NU8)((NU64)((NU8)(inbytes[((NI) 2)] & ((NU8) 15))) << (NU64)(((NI) 1)))))));
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((NI) 5); }
LA11_: ;
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(((NI) 4) <= length)) goto LA15_;
if ((NU)(((NI) 4)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 4),outbytesLen_0-1); }
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 4)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 4),outbytesLen_0-1); }
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 3)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 3),inbytesLen_0-1); } outbytes[((NI) 4)] = ((NIM_CHAR) (((NI) ((NU8)(((NU8) (((NU8)(outbytes[((NI) 4)])))) | (NU8)((NU8)(inbytes[((NI) 3)]) >> (NU64)(((NI) 7)))))))); if ((NU)(((NI) 5)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 5),outbytesLen_0-1); }
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 3)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 3),inbytesLen_0-1); } outbytes[((NI) 5)] = ((NIM_CHAR) (((NI) ((NU8)((NU8)((NU8)(inbytes[((NI) 3)]) >> (NU64)(((NI) 2))) & ((NU8) 31)))))); if ((NU)(((NI) 6)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 6),outbytesLen_0-1); }
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 3)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 3),inbytesLen_0-1); } outbytes[((NI) 6)] = ((NIM_CHAR) (((NI) ((NU8)((NU64)((NU8)(inbytes[((NI) 3)] & ((NU8) 3))) << (NU64)(((NI) 3)))))));
#line 104 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((NI) 7); }
LA15_: ;
#line 105 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 105 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(((NI) 5) <= length)) goto LA19_;
if ((NU)(((NI) 6)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 6),outbytesLen_0-1); }
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 6)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 6),outbytesLen_0-1); }
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 4)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 4),inbytesLen_0-1); } outbytes[((NI) 6)] = ((NIM_CHAR) (((NI) ((NU8)(((NU8) (((NU8)(outbytes[((NI) 6)])))) | (NU8)((NU8)(inbytes[((NI) 4)]) >> (NU64)(((NI) 5)))))))); if ((NU)(((NI) 7)) >= (NU)(outbytesLen_0)){ raiseIndexError2(((NI) 7),outbytesLen_0-1); }
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(((NI) 4)) >= (NU)(inbytesLen_0)){ raiseIndexError2(((NI) 4),inbytesLen_0-1); } outbytes[((NI) 7)] = ((NIM_CHAR) (((NI) ((NU8)(inbytes[((NI) 4)] & ((NU8) 31))))));
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((NI) 8); }
LA19_: ;
return result;}
#line 135 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
N_LIB_PRIVATE N_NIMCALL(tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA, encode__qa2aRapDqxQ8S77hwJ9aeQQ)(NU8* inbytes, NI inbytesLen_0, NIM_CHAR* outstr, NI outstrLen_0, NI* outlen) { tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA result; NI length; NI reminder; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_31; NI limit; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_32; NI i; NI k;{ result = (tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA)0;
#line 152 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 152 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 152 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(inbytesLen_0 == ((NI) 0))) goto LA3_;
#line 153 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
(*outlen) = ((NI) 0);
#line 154 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 154 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA) 1); goto BeforeRet_;
}
LA3_: ;
#line 156 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 156 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 156 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
length = encodedLength__m3cTL6IX2e0seVeom9bYNiQ_2(inbytesLen_0);
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 157 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(outstrLen_0 < length)) goto LA7_;
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
(*outlen) = length;
#line 159 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 159 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA) 3); goto BeforeRet_;
}
LA7_: ;
#line 161 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 161 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 161 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (((NI) 5) == 0){ raiseDivByZero(); } if (nimModInt(inbytesLen_0, ((NI) 5), &TM__g6ug0HuhP9as5f9bFm6XEOUw_31)) { raiseOverflow(); }; reminder = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_31);
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimSubInt(inbytesLen_0, reminder, &TM__g6ug0HuhP9as5f9bFm6XEOUw_32)) { raiseOverflow(); }; limit = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_32); i = (NI)0; k = (NI)0; {
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
while (1) { NI TM__g6ug0HuhP9as5f9bFm6XEOUw_33; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_34; NI T11_; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_38; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_39;
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!(i < limit)) goto LA10;
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(i, ((NI) 4), &TM__g6ug0HuhP9as5f9bFm6XEOUw_33)) { raiseOverflow(); }; if ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_33)-i != -1 && ((NU)(i) >= (NU)(inbytesLen_0) || (NU)((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_33)) >= (NU)(inbytesLen_0))){ raiseIndexError(); }
#line 166 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(k, ((NI) 7), &TM__g6ug0HuhP9as5f9bFm6XEOUw_34)) { raiseOverflow(); }; if ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_34)-k != -1 && ((NU)(k) >= (NU)(outstrLen_0) || (NU)((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_34)) >= (NU)(outstrLen_0))){ raiseIndexError(); }
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
T11_ = (NI)0; T11_ = convert5to8__iiXdiUkBXz1NDEaTjiTr9cAbase32((NU8*)(inbytes)+(i), ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_33))-(i)+1, (NIM_CHAR*)(outstr)+(k), ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_34))-(k)+1, ((NI) 5)); (void)(T11_);
{ NI j; NI res; j = (NI)0;
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
res = ((NI) 0); {
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__g6ug0HuhP9as5f9bFm6XEOUw_35; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_36; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_37;
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(res <= ((NI) 7))) goto LA14;
#line 167 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
j = res;
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(k, j, &TM__g6ug0HuhP9as5f9bFm6XEOUw_35)) { raiseOverflow(); }; if ((NU)((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_35)) >= (NU)(outstrLen_0)){ raiseIndexError2((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_35),outstrLen_0-1); }
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 168 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(k, j, &TM__g6ug0HuhP9as5f9bFm6XEOUw_36)) { raiseOverflow(); }; if ((NU)((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_36)) >= (NU)(outstrLen_0)){ raiseIndexError2((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_36),outstrLen_0-1); } if ((NU)(((NU8)(outstr[(NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_36)]))) > (NU)(31)){ raiseIndexError2(((NU8)(outstr[(NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_36)])), 31); } outstr[(NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_35)] = ((NIM_CHAR) (((NI) (TM__g6ug0HuhP9as5f9bFm6XEOUw_11.encode[(((NU8)(outstr[(NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_36)])))- 0]))));
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(res, ((NI) 1), &TM__g6ug0HuhP9as5f9bFm6XEOUw_37)) { raiseOverflow(); }; res = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_37); } LA14: ;
}
}
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(k, ((NI) 8), &TM__g6ug0HuhP9as5f9bFm6XEOUw_38)) { raiseOverflow(); }; k = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_38);
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(i, ((NI) 5), &TM__g6ug0HuhP9as5f9bFm6XEOUw_39)) { raiseOverflow(); }; i = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_39); } LA10: ;
}
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
{ NI left; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_40; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_41; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_42;
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (!!((reminder == ((NI) 0)))) goto LA17_;
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(i, reminder, &TM__g6ug0HuhP9as5f9bFm6XEOUw_40)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_40), ((NI) 1), &TM__g6ug0HuhP9as5f9bFm6XEOUw_41)) { raiseOverflow(); }; if ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_41)-i != -1 && ((NU)(i) >= (NU)(inbytesLen_0) || (NU)((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_41)) >= (NU)(inbytesLen_0))){ raiseIndexError(); }
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimSubInt(length, ((NI) 1), &TM__g6ug0HuhP9as5f9bFm6XEOUw_42)) { raiseOverflow(); }; if ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_42)-k != -1 && ((NU)(k) >= (NU)(outstrLen_0) || (NU)((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_42)) >= (NU)(outstrLen_0))){ raiseIndexError(); }
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
left = convert5to8__iiXdiUkBXz1NDEaTjiTr9cAbase32((NU8*)(inbytes)+(i), ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_41))-(i)+1, (NIM_CHAR*)(outstr)+(k), ((NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_42))-(k)+1, reminder); { NI j_2; NI colontmp_; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_43; NI res_2; j_2 = (NI)0; colontmp_ = (NI)0;
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimSubInt(left, ((NI) 1), &TM__g6ug0HuhP9as5f9bFm6XEOUw_43)) { raiseOverflow(); }; colontmp_ = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_43);
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
res_2 = ((NI) 0); {
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__g6ug0HuhP9as5f9bFm6XEOUw_44; NI TM__g6ug0HuhP9as5f9bFm6XEOUw_45;
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(res_2 <= colontmp_)) goto LA21;
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
j_2 = res_2; if ((NU)(k) >= (NU)(outstrLen_0)){ raiseIndexError2(k,outstrLen_0-1); }
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if ((NU)(k) >= (NU)(outstrLen_0)){ raiseIndexError2(k,outstrLen_0-1); } if ((NU)(((NU8)(outstr[k]))) > (NU)(31)){ raiseIndexError2(((NU8)(outstr[k])), 31); } outstr[k] = ((NIM_CHAR) (((NI) (TM__g6ug0HuhP9as5f9bFm6XEOUw_11.encode[(((NU8)(outstr[k])))- 0]))));
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
if (nimAddInt(k, ((NI) 1), &TM__g6ug0HuhP9as5f9bFm6XEOUw_44)) { raiseOverflow(); }; k = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_44);
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(res_2, ((NI) 1), &TM__g6ug0HuhP9as5f9bFm6XEOUw_45)) { raiseOverflow(); }; res_2 = (NI)(TM__g6ug0HuhP9as5f9bFm6XEOUw_45); } LA21: ;
}
}
}
LA17_: ;
#line 183 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
(*outlen) = k;
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/base32.nim"
result = ((tyEnum_Base32Status__B9a9ac0a6A0le9c8A6QD1rcWA) 1); }BeforeRet_: ;
return result;}
N_LIB_PRIVATE N_NIMCALL(void, stew_base32DatInit000)(void) {
#line 999999 "generated_not_to_break_here"
static TNimNode TM__g6ug0HuhP9as5f9bFm6XEOUw_0[1];NTI__Foclilv14NjyN8TA9bUvkHA_.size = sizeof(tyObject_Base32Error__Foclilv14NjyN8TA9bUvkHA);
NTI__Foclilv14NjyN8TA9bUvkHA_.kind = 17;
NTI__Foclilv14NjyN8TA9bUvkHA_.base = (&NTI__qrLSDoe2oBoAqNtJ9badtnA_);
NTI__Foclilv14NjyN8TA9bUvkHA_.name = "Base32Error";
NTI__Foclilv14NjyN8TA9bUvkHA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__Foclilv14NjyN8TA9bUvkHA_;
TM__g6ug0HuhP9as5f9bFm6XEOUw_0[0].len = 0; TM__g6ug0HuhP9as5f9bFm6XEOUw_0[0].kind = 2;
NTI__Foclilv14NjyN8TA9bUvkHA_.node = &TM__g6ug0HuhP9as5f9bFm6XEOUw_0[0];
NTI__FHg9aNZ1UC04yWT3TrGSVmg_.size = sizeof(tyObject_Base32Error__Foclilv14NjyN8TA9bUvkHA*);
NTI__FHg9aNZ1UC04yWT3TrGSVmg_.kind = 22;
NTI__FHg9aNZ1UC04yWT3TrGSVmg_.base = (&NTI__Foclilv14NjyN8TA9bUvkHA_);
NTI__FHg9aNZ1UC04yWT3TrGSVmg_.name = "ref Base32Error";
NTI__FHg9aNZ1UC04yWT3TrGSVmg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__FHg9aNZ1UC04yWT3TrGSVmg_;
NTI__FHg9aNZ1UC04yWT3TrGSVmg_.marker = Marker_tyRef__FHg9aNZ1UC04yWT3TrGSVmg;
}