nwaku/nimcache/release/chat2/@m..@s..@svendor@snimcrypto@snimcrypto@sutils.nim.c

609 lines
34 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-bearssl/bearssl/certs -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/examples/v2 -o nimcache/release/chat2/@m..@s..@svendor@snimcrypto@snimcrypto@sutils.nim.c.o nimcache/release/chat2/@m..@s..@svendor@snimcrypto@snimcrypto@sutils.nim.c */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <string.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
#define nimfr_(x, y)
#define nimln_(x, y)
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
typedef struct TGenericSeq TGenericSeq;
typedef struct NimStringDesc NimStringDesc;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef NU8 tySet_tyEnum_HexFlags__1Frk6a29aEzIs9cJdkfOVHJQ;
typedef NU8 tyEnum_HexFlags__1Frk6a29aEzIs9cJdkfOVHJQ;
struct TGenericSeq {NI len;
NI reserved;
};
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
struct TNimType {NI size;
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
TNimType* base;
TNimNode* node;
void* finalizer;
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
NCSTRING name;
TNimType* nextType;
NI instances;
NI sizes;
};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};static N_INLINE(void, zeroMem__FsvhfMqbswETmyMWtamDewsystem)(void* p, NI size);
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, raiseOverflow)(void);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
N_LIB_PRIVATE N_NIMCALL(NIM_CHAR, hexDigit__Lyvq1NMWkut7zkpg3iCkeg)(NI x_0, NIM_BOOL lowercase);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorU)(NU64 i, NU64 a, NU64 b);
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(NI, hexToBytes__TJuaHeRnyEqaoK8gnIntkg)(NIM_CHAR* src, NI srcLen_0, NU8* dst, NI dstLen_0, tySet_tyEnum_HexFlags__1Frk6a29aEzIs9cJdkfOVHJQ flags_0);
N_LIB_PRIVATE N_NIMCALL(NI, hexValue__mGC9bOcCWkXkUL8AHftRBsA)(NIM_CHAR c);
static N_INLINE(NU32, minus___E47t3KQSSXuYH1ICXOzAsgutils)(NU32 x_0);
static N_INLINE(NU32, LT__eDgvmZB9cRzV9b0cYlLZ9c9buwutils)(NU32 x_0, NU32 y_0);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen);
N_LIB_PRIVATE N_NIMCALL(void, genericSeqAssign)(void* dest_0, void* src, TNimType* mt);
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
#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 2108 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(void, zeroMem__FsvhfMqbswETmyMWtamDewsystem)(void* p, NI size) {
#line 2109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
nimZeroMem(p, size);
}
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
N_LIB_PRIVATE N_NIMCALL(void, burnMem__haAOjkJjOuRy8ux9bV57dXw)(void* p_0, NI size) { NU8* volatile sp; NI c;
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
sp = ((NU8*) (p_0));
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
c = size;
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!!((sp == 0))) goto LA3_;
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
zeroMem__FsvhfMqbswETmyMWtamDewsystem(p_0, size);
{
#line 179 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
while (1) { NI TM__RUsT2D9cH9arTP36NVQJf7xQ_2;
#line 179 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!(((NI) 0) < ((NI) (c)))) goto LA6;
#line 180 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
(*sp) = ((NU8) 0);
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 181 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
sp = ((NU8*) ((NU)((NU64)(((NU) (ptrdiff_t) (sp))) + (NU64)(((NU) 1)))));
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimSubInt(c, ((NI) 1), &TM__RUsT2D9cH9arTP36NVQJf7xQ_2)) { raiseOverflow(); }; if (TM__RUsT2D9cH9arTP36NVQJf7xQ_2 < 0 || TM__RUsT2D9cH9arTP36NVQJf7xQ_2 > IL64(9223372036854775807)){ raiseOverflow(); } c = (NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_2); } LA6: ;
}
}
LA3_: ;
}
#line 54 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_CHAR, hexDigit__Lyvq1NMWkut7zkpg3iCkeg)(NI x_0, NIM_BOOL lowercase) { NIM_CHAR result; NU32 off; result = (NIM_CHAR)0;
#line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 55 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
off = ((NU32) 7);
#line 56 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{ if (!lowercase) goto LA3_;
#line 57 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
off += ((NI) 32); }
LA3_: ;
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 58 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((NI64)((NU32)((NU32)((NU32)((NU32)(((NU32) 48)) + (NU32)(((NU32) (x_0))))) + (NU32)((NU32)(off & (NU32)((NU32) ~((NU32)((NU32)((NU32)((NU32)(((NU32) (x_0))) - (NU32)(((NU32) 10)))) >> (NU64)(((NI) 8))))))))) < 0 || (NI64)((NU32)((NU32)((NU32)((NU32)(((NU32) 48)) + (NU32)(((NU32) (x_0))))) + (NU32)((NU32)(off & (NU32)((NU32) ~((NU32)((NU32)((NU32)((NU32)(((NU32) (x_0))) - (NU32)(((NU32) 10)))) >> (NU64)(((NI) 8))))))))) > 255){ raiseRangeErrorU((NU32)((NU32)((NU32)((NU32)(((NU32) 48)) + (NU32)(((NU32) (x_0))))) + (NU32)((NU32)(off & (NU32)((NU32) ~((NU32)((NU32)((NU32)((NU32)(((NU32) (x_0))) - (NU32)(((NU32) 10)))) >> (NU64)(((NI) 8)))))))), 0, 255); } result = ((NIM_CHAR) ((NU32)((NU32)((NU32)((NU32)(((NU32) 48)) + (NU32)(((NU32) (x_0))))) + (NU32)((NU32)(off & (NU32)((NU32) ~((NU32)((NU32)((NU32)((NU32)(((NU32) (x_0))) - (NU32)(((NU32) 10)))) >> (NU64)(((NI) 8)))))))))); return result;}
#line 60 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, bytesToHex__TSuuVF9b8JuBk8cjfFOyavA)(NU8* src, NI srcLen_0, NIM_CHAR* dst, NI dstLen_0, tySet_tyEnum_HexFlags__1Frk6a29aEzIs9cJdkfOVHJQ flags_0) { NI result; result = (NI)0;
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 62 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!(dstLen_0 == ((NI) 0))) goto LA3_;
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 63 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
result = (NI)((NU64)(srcLen_0) << (NU64)(((NI) 1))); }
goto LA1_;
LA3_: ;
{ NIM_BOOL halflast; NI dstlen; NI srclen; NIM_BOOL lowercase; NI k;
#line 65 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
halflast = NIM_FALSE;
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 66 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
dstlen = dstLen_0;
#line 67 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 67 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
srclen = srcLen_0;
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 69 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!(dstlen < (NI)((NU64)(srclen) << (NU64)(((NI) 1))))) goto LA8_;
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{ NI TM__RUsT2D9cH9arTP36NVQJf7xQ_3;
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 70 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!((NI)(dstlen & ((NI) 1)) == ((NI) 1))) goto LA12_;
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 71 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimSubInt(dstlen, ((NI) 1), &TM__RUsT2D9cH9arTP36NVQJf7xQ_3)) { raiseOverflow(); }; srclen = (NI)((NI64)((NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_3)) >> (NU64)(((NI) 1)));
#line 72 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
halflast = NIM_TRUE; }
goto LA10_;
LA12_: ;
{
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
srclen = (NI)((NI64)(dstlen) >> (NU64)(((NI) 1))); }
LA10_: ;
}
LA8_: ;
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
lowercase = ((flags_0 &(1U<<((NU)(((tyEnum_HexFlags__1Frk6a29aEzIs9cJdkfOVHJQ) 0))&7U)))!=0);
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
k = ((NI) 0); { NI i; NI i_2; i = (NI)0;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 = ((NI) 0); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI x_1; NI TM__RUsT2D9cH9arTP36NVQJf7xQ_4; NI TM__RUsT2D9cH9arTP36NVQJf7xQ_5; NI TM__RUsT2D9cH9arTP36NVQJf7xQ_6; NI TM__RUsT2D9cH9arTP36NVQJf7xQ_7;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_2 < srclen)) goto LA17;
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
i = i_2;
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((NU)(i) >= (NU)(srcLen_0)){ raiseIndexError2(i,srcLen_0-1); } x_1 = ((NI) (src[i]));
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimAddInt(k, ((NI) 0), &TM__RUsT2D9cH9arTP36NVQJf7xQ_4)) { raiseOverflow(); }; if ((NU)((NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_4)) >= (NU)(dstLen_0)){ raiseIndexError2((NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_4),dstLen_0-1); }
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 81 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
dst[(NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_4)] = hexDigit__Lyvq1NMWkut7zkpg3iCkeg((NI)((NI64)(x_1) >> (NU64)(((NI) 4))), lowercase);
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimAddInt(k, ((NI) 1), &TM__RUsT2D9cH9arTP36NVQJf7xQ_5)) { raiseOverflow(); }; if ((NU)((NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_5)) >= (NU)(dstLen_0)){ raiseIndexError2((NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_5),dstLen_0-1); }
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 82 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
dst[(NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_5)] = hexDigit__Lyvq1NMWkut7zkpg3iCkeg((NI)(x_1 & ((NI) 15)), lowercase);
#line 83 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimAddInt(k, ((NI) 2), &TM__RUsT2D9cH9arTP36NVQJf7xQ_6)) { raiseOverflow(); }; k = (NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_6);
#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__RUsT2D9cH9arTP36NVQJf7xQ_7)) { raiseOverflow(); }; i_2 = (NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_7); } LA17: ;
}
}
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{ NI x_2; NI TM__RUsT2D9cH9arTP36NVQJf7xQ_8; NI TM__RUsT2D9cH9arTP36NVQJf7xQ_9; if (!halflast) goto LA20_;
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((NU)(srclen) >= (NU)(srcLen_0)){ raiseIndexError2(srclen,srcLen_0-1); } x_2 = ((NI) (src[srclen]));
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimAddInt(k, ((NI) 0), &TM__RUsT2D9cH9arTP36NVQJf7xQ_8)) { raiseOverflow(); }; if ((NU)((NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_8)) >= (NU)(dstLen_0)){ raiseIndexError2((NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_8),dstLen_0-1); }
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 87 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
dst[(NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_8)] = hexDigit__Lyvq1NMWkut7zkpg3iCkeg((NI)((NI64)(x_2) >> (NU64)(((NI) 4))), lowercase);
#line 88 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimAddInt(k, ((NI) 1), &TM__RUsT2D9cH9arTP36NVQJf7xQ_9)) { raiseOverflow(); }; k = (NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_9); }
LA20_: ;
result = k; }
LA1_: ;
return result;}
#line 38 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
static N_INLINE(NU32, minus___E47t3KQSSXuYH1ICXOzAsgutils)(NU32 x_0) { NU32 result; result = (NU32)0;
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 39 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
result = (NU32)((NU32)((NU32)((NU32)(((NU32) IL64(4294967295))) - (NU32)(x_0))) + (NU32)(((NU32) 1))); return result;}
#line 41 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
static N_INLINE(NU32, LT__eDgvmZB9cRzV9b0cYlLZ9c9buwutils)(NU32 x_0, NU32 y_0) { NU32 result; NU32 z; result = (NU32)0;
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 42 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
z = (NU32)((NU32)(x_0) - (NU32)(y_0));
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 43 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
result = (NU32)((NU32)((NU32)(z ^ (NU32)((NU32)(y_0 ^ x_0) & (NU32)(y_0 ^ z)))) >> (NU64)(((NI) 31))); return result;}
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, hexValue__mGC9bOcCWkXkUL8AHftRBsA)(NIM_CHAR c) { NI result; NU32 x_1; NU32 y_1; NU32 z; NU32 r; NU32 T1_; NU32 T2_; NU32 T3_; NU32 T4_; NU32 T5_; NU32 T6_; NI TM__RUsT2D9cH9arTP36NVQJf7xQ_10; result = (NI)0;
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
x_1 = (NU32)((NU32)(((NU32) (((NU8)(c))))) - (NU32)(((NU32) 48)));
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
y_1 = (NU32)((NU32)(((NU32) (((NU8)(c))))) - (NU32)(((NU32) 65)));
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
z = (NU32)((NU32)(((NU32) (((NU8)(c))))) - (NU32)(((NU32) 97)));
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T1_ = (NU32)0; T1_ = LT__eDgvmZB9cRzV9b0cYlLZ9c9buwutils(x_1, ((NU32) 10));
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T2_ = (NU32)0; T2_ = minus___E47t3KQSSXuYH1ICXOzAsgutils(T1_);
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T3_ = (NU32)0; T3_ = LT__eDgvmZB9cRzV9b0cYlLZ9c9buwutils(y_1, ((NU32) 6));
#line 50 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T4_ = (NU32)0; T4_ = minus___E47t3KQSSXuYH1ICXOzAsgutils(T3_);
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T5_ = (NU32)0; T5_ = LT__eDgvmZB9cRzV9b0cYlLZ9c9buwutils(z, ((NU32) 6));
#line 51 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T6_ = (NU32)0; T6_ = minus___E47t3KQSSXuYH1ICXOzAsgutils(T5_); r = (NU32)((NU32)((NU32)((NU32)((NU32)(x_1) + (NU32)(((NU32) 1))) & T2_) | (NU32)((NU32)((NU32)(y_1) + (NU32)(((NU32) 11))) & T4_)) | (NU32)((NU32)((NU32)(z) + (NU32)(((NU32) 11))) & T6_));
#line 52 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimSubInt(((NI) (r)), ((NI) 1), &TM__RUsT2D9cH9arTP36NVQJf7xQ_10)) { raiseOverflow(); }; result = (NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_10); return result;}
#line 92 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
N_LIB_PRIVATE N_NIMCALL(NI, hexToBytes__TJuaHeRnyEqaoK8gnIntkg)(NIM_CHAR* src, NI srcLen_0, NU8* dst, NI dstLen_0, tySet_tyEnum_HexFlags__1Frk6a29aEzIs9cJdkfOVHJQ flags_0) { NI result; NIM_BOOL halfbyte; NU8 acc; NI v; NI offset;{ result = (NI)0;
#line 94 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
halfbyte = NIM_FALSE; acc = (NU8)0;
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
v = ((NI) 0);
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{ NI srclen;
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!((flags_0 &(1U<<((NU)(((tyEnum_HexFlags__1Frk6a29aEzIs9cJdkfOVHJQ) 3))&7U)))!=0)) goto LA3_;
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
srclen = srcLen_0;
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{
#line 100 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!(((NI) 1) < srclen)) goto LA7_;
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{ NIM_BOOL T11_;
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T11_ = (NIM_BOOL)0;
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((NU)(((NI) 0)) >= (NU)(srcLen_0)){ raiseIndexError2(((NI) 0),srcLen_0-1); } T11_ = ((NU8)(src[((NI) 0)]) == (NU8)(48)); if (!(T11_)) goto LA12_;
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((NU)(((NI) 1)) >= (NU)(srcLen_0)){ raiseIndexError2(((NI) 1),srcLen_0-1); } T11_ = (((NU8)(src[((NI) 1)])) == ((NU8)(120)) || ((NU8)(src[((NI) 1)])) == ((NU8)(88))); LA12_: ;
if (!T11_) goto LA13_;
offset = ((NI) 2); }
goto LA9_;
LA13_: ;
{
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((NU)(((NI) 0)) >= (NU)(srcLen_0)){ raiseIndexError2(((NI) 0),srcLen_0-1); } if (!(((NU8)(src[((NI) 0)])) == ((NU8)(120)) || ((NU8)(src[((NI) 0)])) == ((NU8)(88)))) goto LA16_;
offset = ((NI) 1); }
goto LA9_;
LA16_: ;
{ offset = ((NI) 0); }
LA9_: ;
}
goto LA5_;
LA7_: ;
{ offset = ((NI) 0); }
LA5_: ;
}
goto LA1_;
LA3_: ;
{ offset = ((NI) 0); }
LA1_: ;
{ NI i; NI colontmp_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
colontmp_ = srcLen_0;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 = offset; {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__RUsT2D9cH9arTP36NVQJf7xQ_13;
#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 LA23;
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
i = i_2; { NU8 c; NI d;
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((NU)(i) >= (NU)(srcLen_0)){ raiseIndexError2(i,srcLen_0-1); } c = ((NU8) (((NU8)(src[i]))));
#line 114 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((NU)(i) >= (NU)(srcLen_0)){ raiseIndexError2(i,srcLen_0-1); }
#line 114 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
d = hexValue__mGC9bOcCWkXkUL8AHftRBsA(src[i]);
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{
#line 116 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!(d < ((NI) 0))) goto LA27_;
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{ NIM_BOOL T31_;
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T31_ = (NIM_BOOL)0;
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T31_ = ((flags_0 &(1U<<((NU)(((tyEnum_HexFlags__1Frk6a29aEzIs9cJdkfOVHJQ) 2))&7U)))!=0); if (!(T31_)) goto LA32_;
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T31_ = ((NU8)(c) <= (NU8)(((NU8) 32))); LA32_: ;
if (!T31_) goto LA33_;
#line 118 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
goto LA24;
}
LA33_: ;
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{ NIM_BOOL T37_; NI TM__RUsT2D9cH9arTP36NVQJf7xQ_11;
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T37_ = (NIM_BOOL)0;
#line 119 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
T37_ = ((flags_0 &(1U<<((NU)(((tyEnum_HexFlags__1Frk6a29aEzIs9cJdkfOVHJQ) 1))&7U)))!=0); if (!(T37_)) goto LA38_;
T37_ = halfbyte; LA38_: ;
if (!T37_) goto LA39_;
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!(v < dstLen_0)) goto LA43_;
if ((NU)(v) >= (NU)(dstLen_0)){ raiseIndexError2(v,dstLen_0-1); }
#line 121 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
dst[v] = acc; }
LA43_: ;
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimAddInt(v, ((NI) 1), &TM__RUsT2D9cH9arTP36NVQJf7xQ_11)) { raiseOverflow(); }; v = (NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_11); }
LA39_: ;
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
result = v; goto BeforeRet_;
}
LA27_: ;
#line 125 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{ NI TM__RUsT2D9cH9arTP36NVQJf7xQ_12; if (!halfbyte) goto LA47_;
#line 126 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{
#line 126 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 126 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!(v < dstLen_0)) goto LA51_;
if ((NU)(v) >= (NU)(dstLen_0)){ raiseIndexError2(v,dstLen_0-1); }
#line 127 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 127 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
dst[v] = (NU8)((NU8)(acc) + (NU8)(((NU8) (d)))); }
LA51_: ;
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimAddInt(v, ((NI) 1), &TM__RUsT2D9cH9arTP36NVQJf7xQ_12)) { raiseOverflow(); }; v = (NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_12); }
goto LA45_;
LA47_: ;
{
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!(v == dstLen_0)) goto LA56_;
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
result = v; goto BeforeRet_;
}
LA56_: ;
#line 132 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 132 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
acc = (NU8)((NU64)(((NU8) (d))) << (NU64)(((NI) 4))); }
LA45_: ;
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
halfbyte = !(halfbyte); } LA24: ;
#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__RUsT2D9cH9arTP36NVQJf7xQ_13)) { raiseOverflow(); }; i_2 = (NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_13); } LA23: ;
}
}
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{ if (!halfbyte) goto LA60_;
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{ NI TM__RUsT2D9cH9arTP36NVQJf7xQ_14;
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!((flags_0 &(1U<<((NU)(((tyEnum_HexFlags__1Frk6a29aEzIs9cJdkfOVHJQ) 1))&7U)))!=0)) goto LA64_;
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
{
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (!(v < dstLen_0)) goto LA68_;
if ((NU)(v) >= (NU)(dstLen_0)){ raiseIndexError2(v,dstLen_0-1); }
#line 139 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
dst[v] = acc; }
LA68_: ;
#line 140 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (nimAddInt(v, ((NI) 1), &TM__RUsT2D9cH9arTP36NVQJf7xQ_14)) { raiseOverflow(); }; v = (NI)(TM__RUsT2D9cH9arTP36NVQJf7xQ_14); }
goto LA62_;
LA64_: ;
{
#line 142 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 142 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
result = v; goto BeforeRet_;
}
LA62_: ;
}
LA60_: ;
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
result = v; goto BeforeRet_;
}BeforeRet_: ;
return result;}
#line 161 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, fromHex__iyeB7uE6rSrjr3EdSifz9cg)(NimStringDesc* a) { tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* result; tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buf_1; NI res; result = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*)0;
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if (((NI)((NI64)((a ? a->Sup.len : 0)) >> (NU64)(((NI) 1)))) < ((NI) 0) || ((NI)((NI64)((a ? a->Sup.len : 0)) >> (NU64)(((NI) 1)))) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)((NI64)((a ? a->Sup.len : 0)) >> (NU64)(((NI) 1))), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 162 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
buf_1 = newSeq__DpCWN7DIBuAjgoeQ9c29blYQ(((NI) ((NI)((NI64)((a ? a->Sup.len : 0)) >> (NU64)(((NI) 1))))));
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
#line 163 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
res = hexToBytes__TJuaHeRnyEqaoK8gnIntkg(a->data, (a ? a->Sup.len : 0), buf_1->data, (buf_1 ? buf_1->Sup.len : 0), 10);
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nimcrypto/nimcrypto/utils.nim"
if ((res) < ((NI) 0) || (res) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(res, ((NI) 0), ((NI) IL64(9223372036854775807))); } buf_1 = (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&(buf_1)->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) (res))); genericSeqAssign((&result), buf_1, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_)); return result;}