nwaku/nimcache/release/chat2/@m..@s..@svendor@snim-libp2p@slibp2p@scrypto@sminasn1.nim.c

3082 lines
207 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@snim-libp2p@slibp2p@scrypto@sminasn1.nim.c.o nimcache/release/chat2/@m..@s..@svendor@snim-libp2p@slibp2p@scrypto@sminasn1.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 TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA;
typedef struct RootObj RootObj;
typedef struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ tySequence__6H5Oh5UUvVCLiakt9aTwtUQ;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg;
typedef struct NimStringDesc NimStringDesc;
typedef struct tyObject_Result__0EVVlocCiIWh0JVzIL7m2A tyObject_Result__0EVVlocCiIWh0JVzIL7m2A;
typedef struct tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg;
typedef struct tyObject_Result__4aYxvuOuzNYZ9avRFK8J8Ow tyObject_Result__4aYxvuOuzNYZ9avRFK8J8Ow;
typedef struct tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg;
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 tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA { RootObj Sup;tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer;
NI offset;
NI length;
};
struct TGenericSeq {NI len;
NI reserved;
};
typedef NU8 tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg;
struct tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg { tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA Sup;tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg tag;
NI idx;
};
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 tyArray__qtqsWM5aXmcpMIVmvq3kAA[16];
typedef NU8 tyArray__cdsir9aPB24hAk6k77P9b9bCA[8];
typedef NU8 tyEnum_Endianness__0BVYNY0K9cz7BUPI3AnbEQw;
typedef NU8 tyArray__cizw9bdTN1Bzer1N9ayP9cHbQ[1];
typedef NU8 tyEnum_Asn1Class__FtwzcKvXucMBl21sNqjtJA;
struct tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg {tyEnum_Asn1Class__FtwzcKvXucMBl21sNqjtJA klass;
NI index;
NI offset;
NI length;
tySequence__6H5Oh5UUvVCLiakt9aTwtUQ* buffer;
tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg kind;
union{
struct {NIM_BOOL vbool;
} _kind_1;
struct {NU64 vint;
} _kind_2;
struct {NI ubits;
} _kind_3;
};
};
typedef NU8 tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA;
struct tyObject_Result__4aYxvuOuzNYZ9avRFK8J8Ow {NIM_BOOL o;
union{
struct {tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA e;
} _o_1;
struct {tyEnum_Asn1Class__FtwzcKvXucMBl21sNqjtJA v;
} _o_2;
};
};
struct tyObject_Result__0EVVlocCiIWh0JVzIL7m2A {NIM_BOOL o;
union{
struct {tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA e;
} _o_1;
struct {tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg v;
} _o_2;
};
};
struct tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg {NIM_BOOL o;
union{
struct {tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA e;
} _o_1;
struct {NU64 v;
} _o_2;
};
};
struct tySequence__6H5Oh5UUvVCLiakt9aTwtUQ { TGenericSeq Sup; NU8 data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
N_LIB_PRIVATE N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, newSeq__DpCWN7DIBuAjgoeQ9c29blYQ)(NI len_0);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeInteger__9coDNY9cflAJKQyrnDKzuiFw)(NU8* dest_0, NI dest_0Len_0, NU8* value_0, NI value_0Len_0);
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);
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeLength__yuWyzcpqAb17CyYKJRi0Pg)(NU8* dest_0, NI dest_0Len_0, NU64 length);
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
static N_INLINE(NU8, code__rh9c12eUUAJJu2OHXVa9cH3Aminasn1)(tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg tag);
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError)(void);
static N_INLINE(void, extend__TCQlKvOyeAaUlrPkcszZtwminasn1)(tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg* abc, NI length);
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen);
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeOctetString__9coDNY9cflAJKQyrnDKzuiFw_2)(NU8* dest_0, NI dest_0Len_0, NU8* value_0, NI value_0Len_0);
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeBitString__z4N8eg5RvApI59a1yFwbpKQ)(NU8* dest_0, NI dest_0Len_0, NU8* value_0, NI value_0Len_0, NI bits);
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeOid__9coDNY9cflAJKQyrnDKzuiFw_3)(NU8* dest_0, NI dest_0Len_0, NU8* value_0, NI value_0Len_0);
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeNull__C0i1MAkqIs7k5WXfyN3NHQ)(NU8* dest_0, NI dest_0Len_0);
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeInteger__b0nIsGKAqw3PwTEvaIOVew)(NU8* dest_0, NI dest_0Len_0, NU64 value_0);
static N_INLINE(void, toBytesBE__4UJPiAxU9aF5p8fYoiHyiAwendians2)(NU64 x_0, tyArray__cdsir9aPB24hAk6k77P9b9bCA Result);
static N_INLINE(void, toBytes__0qTvPujbb0rvktscQDoIiwendians2)(NU64 x_0, tyEnum_Endianness__0BVYNY0K9cz7BUPI3AnbEQw endian, tyArray__cdsir9aPB24hAk6k77P9b9bCA Result);
static N_INLINE(NU64, swapBytes__qpL7n2PWEm1gfdtuNot9b7Qendians2)(NU64 x_0);
static N_INLINE(NI, len__xBvcsTGyo9c9cnQtWyeFZuGwminasn1)(tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg* abc);
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeSequence__9coDNY9cflAJKQyrnDKzuiFw_4)(NU8* dest_0, NI dest_0Len_0, NU8* value_0, NI value_0Len_0);
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeContextTag__QmHA9ay9aHc9aWHn9avnEX9cFHA)(NU8* dest_0, NI dest_0Len_0, NU8* value_0, NI value_0Len_0, NI tag);
static N_INLINE(void, extend__tv7KP1HapBBDHG3i9afYZ1gminasn1)(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA* abc, NI length);
N_LIB_PRIVATE N_NIMCALL(tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*, at___FKhCG9aXnVoTuyjERVXzd2g)(NU8* a, NI aLen_0);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__4aYxvuOuzNYZ9avRFK8J8Ow, getTag__GuDVkGleKO9cQVOdUtnqq9bw)(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA* ab, NI* tag);
N_LIB_PRIVATE N_NOINLINE(void, raiseFieldError)(NimStringDesc* f);
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg, getLength__4gvISqzzLSSgelG1M6QFbg)(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA* ab);
N_LIB_PRIVATE N_NIMCALL(void, genericAssign)(void* dest_0, void* src, TNimType* mt);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, isEqual__WxQYJ8fOGBPO2T0Kv9aJaEA)(NU8* a, NI aLen_0, NU8* b, NI bLen_0);
extern TNimType NTI__ytyiCJqK439aF9cIibuRVpAg_;
N_LIB_PRIVATE TNimType NTI__a5EmYcJjKFxSSJOn8BKx9bA_;
extern TNimType NTI__6H5Oh5UUvVCLiakt9aTwtUQ_;
extern TNimType NTI__rR5Bzr1D5krxoo1NcNyeMA_;
N_LIB_PRIVATE TNimType NTI__nDo9cwlNrRu8ntu170HnAFg_;
N_LIB_PRIVATE TNimType NTI__hBLeLVrzEfHzr0vieTv9ayg_;
STRING_LITERAL(TM__3CYTpBP4MAjRXCQDDh0oow_7, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/cr"
"ypto/minasn1.nim(836, 11) `\012contains({Asn1Tag.Integer, Asn1Tag.O"
"ctetString, Asn1Tag.BitString, Asn1Tag.Oid}, tag)` ", 178);
STRING_LITERAL(TM__3CYTpBP4MAjRXCQDDh0oow_46, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/cr"
"ypto/minasn1.nim(790, 11) `\012contains({Asn1Tag.Null, Asn1Tag.Inte"
"ger, Asn1Tag.BitString, Asn1Tag.OctetString},\012 tag)` ", 188);
STRING_LITERAL(TM__3CYTpBP4MAjRXCQDDh0oow_51, "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/cr"
"ypto/minasn1.nim(858, 11) `\0120 < len(value)` Composite value not "
"finished", 135);
STRING_LITERAL(TM__3CYTpBP4MAjRXCQDDh0oow_62, "\'e\' is not accessible using discriminant \'o\' of type \'Result\'", 61);
STRING_LITERAL(TM__3CYTpBP4MAjRXCQDDh0oow_63, "\'v\' is not accessible using discriminant \'o\' of type \'Result\'", 61);
STRING_LITERAL(TM__3CYTpBP4MAjRXCQDDh0oow_72, "\'vbool\' is not accessible using discriminant \'kind\' of type \'As"
"n1Field\'", 71);
N_LIB_PRIVATE TNimType NTI__AJb9cQQSJ8hA8TA2i9b34qGg_;
N_LIB_PRIVATE TNimType NTI__FtwzcKvXucMBl21sNqjtJA_;
TNimNode* NimDT___AJb9cQQSJ8hA8TA2i9b34qGg_kind[10];
extern TNimType NTI__VaVACK0bpYmqIQ0mKcHfQQ_;
extern TNimType NTI__wMtfD88jmrPZwfzTH9c8e9cA_;
STRING_LITERAL(TM__3CYTpBP4MAjRXCQDDh0oow_82, "\'vint\' is not accessible using discriminant \'kind\' of type \'Asn"
"1Field\'", 70);
extern TNimType* nimTypeRoot;
#line 721 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(void, init__5Ms8XzuU9bg8ecal9ab5MTdA)(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA* Result) {
#line 722 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).buffer, NIM_NIL); (*Result).offset = 0; (*Result).length = 0; (*Result).Sup.m_type = (&NTI__a5EmYcJjKFxSSJOn8BKx9bA_);
#line 723 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 723 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
unsureAsgnRef((void**) (&(*Result).buffer), newSeq__DpCWN7DIBuAjgoeQ9c29blYQ(((NI) 0)));}
#line 725 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(void, init__LR9a2q5Zt539ayB5EKEiJF0g)(tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg tag, tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg* Result) {
#line 726 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).Sup.buffer, NIM_NIL); (*Result).Sup.offset = 0; (*Result).Sup.length = 0; (*Result).tag = 0; (*Result).idx = 0; (*Result).Sup.Sup.m_type = (&NTI__nDo9cwlNrRu8ntu170HnAFg_); (*Result).tag = tag;
#line 727 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 727 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
unsureAsgnRef((void**) (&(*Result).Sup.buffer), newSeq__DpCWN7DIBuAjgoeQ9c29blYQ(((NI) 0)));}
#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 157 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeLength__yuWyzcpqAb17CyYKJRi0Pg)(NU8* dest_0, NI dest_0Len_0, NU64 length) { NI result; result = (NI)0;
#line 158 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 164 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((NU64)(length) < (NU64)(128ULL))) goto LA3_;
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 165 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(((NI) 1) <= dest_0Len_0)) goto LA7_;
if ((NU)(((NI) 0)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 0),dest_0Len_0-1); }
#line 166 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 166 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[((NI) 0)] = ((NU8) ((NU64)(length & 127ULL))); }
LA7_: ;
result = ((NI) 1); }
goto LA1_;
LA3_: ;
{ NU64 res; NU64 z;
#line 169 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
res = 1ULL;
#line 170 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
z = length; {
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
while (1) {
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 171 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!!((z == 0ULL))) goto LA11;
#line 172 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
res += ((NI) 1);
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 173 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
z = (NU64)((NU64)(z) >> (NU64)(((NI) 8))); } LA11: ;
}
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI o;
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 174 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((NU64)(res) <= (NU64)(((NU64) (dest_0Len_0))))) goto LA14_;
if ((NU)(((NI) 0)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 0),dest_0Len_0-1); }
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 175 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[((NI) 0)] = ((NU8) ((NU64)((NU64)((NU64)(128ULL) + (NU64)((NU64)((NU64)(res) - (NU64)(1ULL)))) & 255ULL)));
#line 176 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
o = ((NI) 1); { NU64 j; NU64 colontmp_; NU64 res_2; j = (NU64)0; colontmp_ = (NU64)0;
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
colontmp_ = (NU64)((NU64)(res) - (NU64)(2ULL));
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
res_2 = colontmp_; {
#line 23 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__3CYTpBP4MAjRXCQDDh0oow_11;
#line 23 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!((NU64)(((NI) 0)) <= (NU64)(res_2))) goto LA18;
#line 177 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
j = res_2; if ((NU)(o) >= (NU)(dest_0Len_0)){ raiseIndexError2(o,dest_0Len_0-1); }
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 178 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[o] = ((NU8) ((NU64)((NU64)((NU64)(length) >> (NU64)((NU64)((NU64)(j) << (NU64)(((NI) 3))))) & 255ULL)));
#line 179 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(o, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_11)) { raiseOverflow(); }; o = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_11);
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
{
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(res_2 == ((NI) 0))) goto LA21_;
#line 25 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
goto LA17;
}
LA21_: ;
#line 26 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
res_2 -= ((NI) 1); } LA18: ;
} LA17: ;
}
}
LA14_: ;
if ((NI64)(res) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(res) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(res, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } result = ((NI) (res)); }
LA1_: ;
return result;}
#line 135 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
static N_INLINE(NU8, code__rh9c12eUUAJJu2OHXVa9cH3Aminasn1)(tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg tag) { NU8 result; result = (NU8)0;
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
switch (tag) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 0):
{ result = ((NU8) 0); }
break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
{ result = ((NU8) 1); }
break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
{ result = ((NU8) 2); }
break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
{ result = ((NU8) 3); }
break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 4):
{ result = ((NU8) 4); }
break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 5):
{ result = ((NU8) 5); }
break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 6):
{ result = ((NU8) 6); }
break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 7):
{ result = ((NU8) 48); }
break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 8):
{ result = ((NU8) 160); }
break;
}
return result;}
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
#line 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
nimCopyMem(dest, source, size);
}
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeInteger__9coDNY9cflAJKQyrnDKzuiFw)(NU8* dest_0, NI dest_0Len_0, NU8* value_0, NI value_0Len_0) { NI result; tyArray__qtqsWM5aXmcpMIVmvq3kAA buffer; NI lenlen; NI offset; NI destlen; result = (NI)0;
#line 186 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
nimZeroMem((void*)buffer, sizeof(tyArray__qtqsWM5aXmcpMIVmvq3kAA));
#line 193 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
lenlen = ((NI) 0);
#line 195 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI o;
#line 197 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
o = ((NI) 0); { NI i; NI colontmp_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
colontmp_ = value_0Len_0;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 = ((NI) 0); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__3CYTpBP4MAjRXCQDDh0oow_8; NI TM__3CYTpBP4MAjRXCQDDh0oow_9;
#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 LA4;
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
i = i_2;
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 199 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)(o) >= (NU)(value_0Len_0)){ raiseIndexError2(o,value_0Len_0-1); } if (!!((value_0[o] == ((NU8) 0)))) goto LA7_;
#line 200 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
goto LA2;
}
LA7_: ;
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(o, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_8)) { raiseOverflow(); }; o = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_8);
#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__3CYTpBP4MAjRXCQDDh0oow_9)) { raiseOverflow(); }; i_2 = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_9); } LA4: ;
}
} LA2: ;
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(o < value_0Len_0)) goto LA11_;
offset = o; }
goto LA9_;
LA11_: ;
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_10;
#line 205 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimSubInt(o, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_10)) { raiseOverflow(); }; offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_10); }
LA9_: ;
}
#line 207 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 208 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(((NI) 0) < value_0Len_0)) goto LA16_;
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_12; NI TM__3CYTpBP4MAjRXCQDDh0oow_13; NI TM__3CYTpBP4MAjRXCQDDh0oow_14; NI TM__3CYTpBP4MAjRXCQDDh0oow_15; NI TM__3CYTpBP4MAjRXCQDDh0oow_16; NI TM__3CYTpBP4MAjRXCQDDh0oow_17;
#line 209 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)(offset) >= (NU)(value_0Len_0)){ raiseIndexError2(offset,value_0Len_0-1); } if (!((NU8)(((NU8) 128)) <= (NU8)(value_0[offset]))) goto LA20_;
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimSubInt(value_0Len_0, offset, &TM__3CYTpBP4MAjRXCQDDh0oow_12)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_12), ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_13)) { raiseOverflow(); };
#line 210 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
lenlen = asn1EncodeLength__yuWyzcpqAb17CyYKJRi0Pg(buffer, 16, ((NU64) ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_13))));
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_14)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_14), ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_15)) { raiseOverflow(); };
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 211 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimSubInt(value_0Len_0, offset, &TM__3CYTpBP4MAjRXCQDDh0oow_16)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_15), (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_16), &TM__3CYTpBP4MAjRXCQDDh0oow_17)) { raiseOverflow(); }; destlen = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_17); }
goto LA18_;
LA20_: ;
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_18; NI TM__3CYTpBP4MAjRXCQDDh0oow_19; NI TM__3CYTpBP4MAjRXCQDDh0oow_20; NI TM__3CYTpBP4MAjRXCQDDh0oow_21;
#line 213 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 213 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 213 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimSubInt(value_0Len_0, offset, &TM__3CYTpBP4MAjRXCQDDh0oow_18)) { raiseOverflow(); };
#line 213 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
lenlen = asn1EncodeLength__yuWyzcpqAb17CyYKJRi0Pg(buffer, 16, ((NU64) ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_18))));
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_19)) { raiseOverflow(); };
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 214 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimSubInt(value_0Len_0, offset, &TM__3CYTpBP4MAjRXCQDDh0oow_20)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_19), (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_20), &TM__3CYTpBP4MAjRXCQDDh0oow_21)) { raiseOverflow(); }; destlen = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_21); }
LA18_: ;
}
goto LA14_;
LA16_: ;
{ destlen = ((NI) 2); }
LA14_: ;
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI shift;
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(destlen <= dest_0Len_0)) goto LA26_;
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
shift = ((NI) 1); if ((NU)(((NI) 0)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 0),dest_0Len_0-1); }
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[((NI) 0)] = code__rh9c12eUUAJJu2OHXVa9cH3Aminasn1(((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2));
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)(((NI) 1)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 1),dest_0Len_0-1); } if ((lenlen) < ((NI) 0) || (lenlen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(lenlen, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 221 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&dest_0[((NI) 1)]))), ((void*) ((&buffer[(((NI) 0))- 0]))), ((NI) (lenlen)));
#line 223 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_23; NI TM__3CYTpBP4MAjRXCQDDh0oow_24;
#line 223 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(((NI) 2) < destlen)) goto LA30_;
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_22;
#line 224 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)(offset) >= (NU)(value_0Len_0)){ raiseIndexError2(offset,value_0Len_0-1); } if (!((NU8)(((NU8) 128)) <= (NU8)(value_0[offset]))) goto LA34_;
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_22)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_22)) >= (NU)(dest_0Len_0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_22),dest_0Len_0-1); }
#line 225 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_22)] = ((NU8) 0);
#line 226 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
shift = ((NI) 2); }
LA34_: ;
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(shift, lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_23)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_23)) >= (NU)(dest_0Len_0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_23),dest_0Len_0-1); } if ((NU)(offset) >= (NU)(value_0Len_0)){ raiseIndexError2(offset,value_0Len_0-1); }
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 228 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimSubInt(value_0Len_0, offset, &TM__3CYTpBP4MAjRXCQDDh0oow_24)) { raiseOverflow(); }; if (((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_24)) < ((NI) 0) || ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_24)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_24), ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&dest_0[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_23)]))), ((void*) ((&value_0[offset]))), ((NI) ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_24))));
}
LA30_: ;
}
LA26_: ;
result = destlen; return result;}
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
static N_INLINE(void, extend__TCQlKvOyeAaUlrPkcszZtwminasn1)(tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg* abc, NI length) { NI T1_; NI TM__3CYTpBP4MAjRXCQDDh0oow_25;
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T1_ = ((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0); if (nimAddInt(T1_, length, &TM__3CYTpBP4MAjRXCQDDh0oow_25)) { raiseOverflow(); }; if (((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_25)) < ((NI) 0) || ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_25)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_25), ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*abc).Sup.buffer), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&((*abc).Sup.buffer)->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_25)))));}
#line 267 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeOctetString__9coDNY9cflAJKQyrnDKzuiFw_2)(NU8* dest_0, NI dest_0Len_0, NU8* value_0, NI value_0Len_0) { NI result; tyArray__qtqsWM5aXmcpMIVmvq3kAA buffer; NI lenlen; NI res; NI TM__3CYTpBP4MAjRXCQDDh0oow_26; NI TM__3CYTpBP4MAjRXCQDDh0oow_27; result = (NI)0;
#line 269 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
nimZeroMem((void*)buffer, sizeof(tyArray__qtqsWM5aXmcpMIVmvq3kAA));
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
lenlen = asn1EncodeLength__yuWyzcpqAb17CyYKJRi0Pg(buffer, 16, ((NU64) (value_0Len_0)));
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_26)) { raiseOverflow(); };
#line 277 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_26), value_0Len_0, &TM__3CYTpBP4MAjRXCQDDh0oow_27)) { raiseOverflow(); }; res = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_27);
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 278 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(res <= dest_0Len_0)) goto LA3_;
if ((NU)(((NI) 0)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 0),dest_0Len_0-1); }
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[((NI) 0)] = code__rh9c12eUUAJJu2OHXVa9cH3Aminasn1(((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 4));
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)(((NI) 1)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 1),dest_0Len_0-1); } if ((lenlen) < ((NI) 0) || (lenlen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(lenlen, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&dest_0[((NI) 1)]))), ((void*) ((&buffer[(((NI) 0))- 0]))), ((NI) (lenlen)));
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_28;
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 281 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(((NI) 0) < value_0Len_0)) goto LA7_;
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_28)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_28)) >= (NU)(dest_0Len_0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_28),dest_0Len_0-1); } if ((NU)(((NI) 0)) >= (NU)(value_0Len_0)){ raiseIndexError2(((NI) 0),value_0Len_0-1); }
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((value_0Len_0) < ((NI) 0) || (value_0Len_0) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(value_0Len_0, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 282 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&dest_0[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_28)]))), ((void*) ((&value_0[((NI) 0)]))), ((NI) (value_0Len_0)));
}
LA7_: ;
}
LA3_: ;
result = res; return result;}
#line 285 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeBitString__z4N8eg5RvApI59a1yFwbpKQ)(NU8* dest_0, NI dest_0Len_0, NU8* value_0, NI value_0Len_0, NI bits) { NI result; tyArray__qtqsWM5aXmcpMIVmvq3kAA buffer; NI bitlen; NI bytelen; NI TM__3CYTpBP4MAjRXCQDDh0oow_30; NI unused; NI TM__3CYTpBP4MAjRXCQDDh0oow_31; NU8 mask; NI lenlen; NI TM__3CYTpBP4MAjRXCQDDh0oow_32; NI res; NI TM__3CYTpBP4MAjRXCQDDh0oow_33; NI TM__3CYTpBP4MAjRXCQDDh0oow_34; NI TM__3CYTpBP4MAjRXCQDDh0oow_35; result = (NI)0;
#line 287 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
nimZeroMem((void*)buffer, sizeof(tyArray__qtqsWM5aXmcpMIVmvq3kAA));
#line 297 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 298 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_29;
#line 298 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 298 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!!((bits == ((NI) 0)))) goto LA3_;
#line 299 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 299 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 299 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimSubInt((NI)((NU64)(value_0Len_0) << (NU64)(((NI) 3))), bits, &TM__3CYTpBP4MAjRXCQDDh0oow_29)) { raiseOverflow(); }; bitlen = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_29); }
goto LA1_;
LA3_: ;
{
#line 301 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 301 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
bitlen = (NI)((NU64)(value_0Len_0) << (NU64)(((NI) 3))); }
LA1_: ;
#line 304 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 304 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 304 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(bitlen, ((NI) 7), &TM__3CYTpBP4MAjRXCQDDh0oow_30)) { raiseOverflow(); }; bytelen = (NI)((NI64)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_30)) >> (NU64)(((NI) 3)));
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 306 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimSubInt(((NI) 8), (NI)(bitlen & ((NI) 7)), &TM__3CYTpBP4MAjRXCQDDh0oow_31)) { raiseOverflow(); }; unused = (NI)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_31) & ((NI) 7));
#line 307 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 307 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 307 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 307 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
mask = (NU8)((NU8) ~((NU8)((NU8)((NU8)((NU64)(((NU8) 1)) << (NU64)(unused))) - (NU8)(((NU8) 1)))));
#line 308 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 308 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(bytelen, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_32)) { raiseOverflow(); };
#line 308 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
lenlen = asn1EncodeLength__yuWyzcpqAb17CyYKJRi0Pg(buffer, 16, ((NU64) ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_32))));
#line 309 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 309 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 309 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 309 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_33)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_33), ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_34)) { raiseOverflow(); };
#line 309 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_34), value_0Len_0, &TM__3CYTpBP4MAjRXCQDDh0oow_35)) { raiseOverflow(); }; res = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_35);
#line 310 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_36;
#line 310 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 310 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(res <= dest_0Len_0)) goto LA8_;
if ((NU)(((NI) 0)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 0),dest_0Len_0-1); }
#line 311 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 311 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[((NI) 0)] = code__rh9c12eUUAJJu2OHXVa9cH3Aminasn1(((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3));
#line 312 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)(((NI) 1)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 1),dest_0Len_0-1); } if ((lenlen) < ((NI) 0) || (lenlen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(lenlen, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 312 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&dest_0[((NI) 1)]))), ((void*) ((&buffer[(((NI) 0))- 0]))), ((NI) (lenlen)));
#line 313 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_36)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_36)) >= (NU)(dest_0Len_0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_36),dest_0Len_0-1); }
#line 313 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_36)] = ((NU8) (unused));
#line 314 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NU8 lastbyte; NI TM__3CYTpBP4MAjRXCQDDh0oow_37; NI TM__3CYTpBP4MAjRXCQDDh0oow_38; NI TM__3CYTpBP4MAjRXCQDDh0oow_39; NI TM__3CYTpBP4MAjRXCQDDh0oow_40; NI TM__3CYTpBP4MAjRXCQDDh0oow_41;
#line 314 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(((NI) 0) < bytelen)) goto LA12_;
#line 315 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 315 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimSubInt(bytelen, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_37)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_37)) >= (NU)(value_0Len_0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_37),value_0Len_0-1); } lastbyte = value_0[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_37)];
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 2), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_38)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_38)) >= (NU)(dest_0Len_0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_38),dest_0Len_0-1); } if ((NU)(((NI) 0)) >= (NU)(value_0Len_0)){ raiseIndexError2(((NI) 0),value_0Len_0-1); } if ((bytelen) < ((NI) 0) || (bytelen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(bytelen, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 316 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&dest_0[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_38)]))), ((void*) ((&value_0[((NI) 0)]))), ((NI) (bytelen)));
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 2), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_39)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_39), bytelen, &TM__3CYTpBP4MAjRXCQDDh0oow_40)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_40), ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_41)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_41)) >= (NU)(dest_0Len_0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_41),dest_0Len_0-1); }
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_41)] = (NU8)(lastbyte & mask); }
LA12_: ;
}
LA8_: ;
result = res; return result;}
#line 370 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeOid__9coDNY9cflAJKQyrnDKzuiFw_3)(NU8* dest_0, NI dest_0Len_0, NU8* value_0, NI value_0Len_0) { NI result; tyArray__qtqsWM5aXmcpMIVmvq3kAA buffer; NI lenlen; NI res; NI TM__3CYTpBP4MAjRXCQDDh0oow_42; NI TM__3CYTpBP4MAjRXCQDDh0oow_43; result = (NI)0;
#line 371 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
nimZeroMem((void*)buffer, sizeof(tyArray__qtqsWM5aXmcpMIVmvq3kAA));
#line 381 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 381 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 381 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
lenlen = asn1EncodeLength__yuWyzcpqAb17CyYKJRi0Pg(buffer, 16, ((NU64) (value_0Len_0)));
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_42)) { raiseOverflow(); };
#line 382 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_42), value_0Len_0, &TM__3CYTpBP4MAjRXCQDDh0oow_43)) { raiseOverflow(); }; res = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_43);
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_44;
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(res <= dest_0Len_0)) goto LA3_;
if ((NU)(((NI) 0)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 0),dest_0Len_0-1); }
#line 384 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 384 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[((NI) 0)] = code__rh9c12eUUAJJu2OHXVa9cH3Aminasn1(((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 6));
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)(((NI) 1)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 1),dest_0Len_0-1); } if ((lenlen) < ((NI) 0) || (lenlen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(lenlen, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&dest_0[((NI) 1)]))), ((void*) ((&buffer[(((NI) 0))- 0]))), ((NI) (lenlen)));
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_44)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_44)) >= (NU)(dest_0Len_0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_44),dest_0Len_0-1); } if ((NU)(((NI) 0)) >= (NU)(value_0Len_0)){ raiseIndexError2(((NI) 0),value_0Len_0-1); }
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((value_0Len_0) < ((NI) 0) || (value_0Len_0) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(value_0Len_0, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&dest_0[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_44)]))), ((void*) ((&value_0[((NI) 0)]))), ((NI) (value_0Len_0)));
}
LA3_: ;
result = res; return result;}
#line 827 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(void, write__z4GCG5BGgGHOIZoLtw5rAw)(tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg* abc, tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg tag, NU8* value_0, NI value_0Len_0, NI bits) { NI length; NI TM__3CYTpBP4MAjRXCQDDh0oow_45;
#line 836 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 836 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 836 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!!(((92 &(1U<<((NU)(tag)&15U)))!=0))) goto LA3_;
#line 836 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 836 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_7));
}
LA3_: ;
length = (NI)0;
#line 839 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI T9_; NI T10_; NI T11_;
#line 839 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2))) goto LA7_;
#line 840 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T9_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T9_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T9_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 840 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeInteger__9coDNY9cflAJKQyrnDKzuiFw((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T9_)-((*abc).Sup.offset)+1, value_0, value_0Len_0);
#line 841 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 841 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__TCQlKvOyeAaUlrPkcszZtwminasn1(abc, length);
#line 842 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 842 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T10_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T10_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T10_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 842 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T11_ = (NI)0; T11_ = asn1EncodeInteger__9coDNY9cflAJKQyrnDKzuiFw((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T10_)-((*abc).Sup.offset)+1, value_0, value_0Len_0); (void)(T11_);
}
goto LA5_;
LA7_: ;
{ NI T15_; NI T16_; NI T17_;
#line 843 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 4))) goto LA13_;
#line 844 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T15_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T15_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T15_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 844 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeOctetString__9coDNY9cflAJKQyrnDKzuiFw_2((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T15_)-((*abc).Sup.offset)+1, value_0, value_0Len_0);
#line 845 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 845 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__TCQlKvOyeAaUlrPkcszZtwminasn1(abc, length);
#line 846 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 846 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T16_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T16_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T16_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 846 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T17_ = (NI)0; T17_ = asn1EncodeOctetString__9coDNY9cflAJKQyrnDKzuiFw_2((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T16_)-((*abc).Sup.offset)+1, value_0, value_0Len_0); (void)(T17_);
}
goto LA5_;
LA13_: ;
{ NI T21_; NI T22_; NI T23_;
#line 847 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3))) goto LA19_;
#line 848 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T21_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T21_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T21_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 848 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeBitString__z4N8eg5RvApI59a1yFwbpKQ((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T21_)-((*abc).Sup.offset)+1, value_0, value_0Len_0, bits);
#line 849 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 849 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__TCQlKvOyeAaUlrPkcszZtwminasn1(abc, length);
#line 850 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 850 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T22_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T22_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T22_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 850 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T23_ = (NI)0; T23_ = asn1EncodeBitString__z4N8eg5RvApI59a1yFwbpKQ((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T22_)-((*abc).Sup.offset)+1, value_0, value_0Len_0, bits); (void)(T23_);
}
goto LA5_;
LA19_: ;
{ NI T27_; NI T28_; NI T29_;
#line 851 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 6))) goto LA25_;
#line 852 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T27_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T27_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T27_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 852 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeOid__9coDNY9cflAJKQyrnDKzuiFw_3((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T27_)-((*abc).Sup.offset)+1, value_0, value_0Len_0);
#line 853 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 853 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__TCQlKvOyeAaUlrPkcszZtwminasn1(abc, length);
#line 854 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 854 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T28_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T28_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T28_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 854 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T29_ = (NI)0; T29_ = asn1EncodeOid__9coDNY9cflAJKQyrnDKzuiFw_3((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T28_)-((*abc).Sup.offset)+1, value_0, value_0Len_0); (void)(T29_);
}
goto LA5_;
LA25_: ;
LA5_: ;
#line 855 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*abc).Sup.offset, length, &TM__3CYTpBP4MAjRXCQDDh0oow_45)) { raiseOverflow(); }; (*abc).Sup.offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_45);}
#line 255 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeNull__C0i1MAkqIs7k5WXfyN3NHQ)(NU8* dest_0, NI dest_0Len_0) { NI result; NI res; result = (NI)0;
#line 256 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 261 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
res = ((NI) 2);
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 262 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(res <= dest_0Len_0)) goto LA3_;
if ((NU)(((NI) 0)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 0),dest_0Len_0-1); }
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 263 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[((NI) 0)] = code__rh9c12eUUAJJu2OHXVa9cH3Aminasn1(((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 5)); if ((NU)(((NI) 1)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 1),dest_0Len_0-1); }
#line 264 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[((NI) 1)] = ((NU8) 0); }
LA3_: ;
result = res; return result;}
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
static N_INLINE(NU64, swapBytes__qpL7n2PWEm1gfdtuNot9b7Qendians2)(NU64 x_0) { NU64 result; result = (NU64)0;
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
#line 89 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
result = __builtin_bswap64(x_0); return result;}
#line 93 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
static N_INLINE(void, toBytes__0qTvPujbb0rvktscQDoIiwendians2)(NU64 x_0, tyEnum_Endianness__0BVYNY0K9cz7BUPI3AnbEQw endian, tyArray__cdsir9aPB24hAk6k77P9b9bCA Result) { NU64 v;
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
{
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
if (!(endian == ((tyEnum_Endianness__0BVYNY0K9cz7BUPI3AnbEQw) 0))) goto LA3_;
v = x_0; }
goto LA1_;
LA3_: ;
{
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
v = swapBytes__qpL7n2PWEm1gfdtuNot9b7Qendians2(x_0); }
LA1_: ;
{ NI i; NI i_2; i = (NI)0;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 = ((NI) 0); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__3CYTpBP4MAjRXCQDDh0oow_47; NI TM__3CYTpBP4MAjRXCQDDh0oow_48;
#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 LA8;
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
i = i_2; if ((NU)(i) > (NU)(7)){ raiseIndexError2(i, 7); }
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
#line 103 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
if (nimMulInt(i, ((NI) 8), &TM__3CYTpBP4MAjRXCQDDh0oow_47)) { raiseOverflow(); }; Result[(i)- 0] = ((NU8) ((NU64)((NU64)((NU64)(v) >> (NU64)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_47))) & 255ULL)));
#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__3CYTpBP4MAjRXCQDDh0oow_48)) { raiseOverflow(); }; i_2 = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_48); } LA8: ;
}
}
}
#line 110 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
static N_INLINE(void, toBytesBE__4UJPiAxU9aF5p8fYoiHyiAwendians2)(NU64 x_0, tyArray__cdsir9aPB24hAk6k77P9b9bCA Result) {
#line 112 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
#line 113 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/endians2.nim"
toBytes__0qTvPujbb0rvktscQDoIiwendians2(x_0, ((tyEnum_Endianness__0BVYNY0K9cz7BUPI3AnbEQw) 1), Result);
}
#line 231 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeInteger__b0nIsGKAqw3PwTEvaIOVew)(NU8* dest_0, NI dest_0Len_0, NU64 value_0) { NI result; tyArray__cdsir9aPB24hAk6k77P9b9bCA T1_; result = (NI)0;
#line 233 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
nimZeroMem((void*)T1_, sizeof(tyArray__cdsir9aPB24hAk6k77P9b9bCA)); toBytesBE__4UJPiAxU9aF5p8fYoiHyiAwendians2(value_0, T1_);
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
result = asn1EncodeInteger__9coDNY9cflAJKQyrnDKzuiFw(dest_0, dest_0Len_0, T1_, 8); return result;}
#line 785 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(void, write__DY9aRrcfMuIFKGJyT9aeTZSA)(tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg* abc, tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg tag) { NI length; NI TM__3CYTpBP4MAjRXCQDDh0oow_49;
#line 790 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 790 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 790 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!!(((60 &(1U<<((NU)(tag)&15U)))!=0))) goto LA3_;
#line 790 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 790 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_46));
}
LA3_: ;
length = (NI)0;
#line 793 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI T9_; NI T10_; NI T11_;
#line 793 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 5))) goto LA7_;
#line 794 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T9_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T9_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T9_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 794 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeNull__C0i1MAkqIs7k5WXfyN3NHQ((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T9_)-((*abc).Sup.offset)+1);
#line 795 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 795 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__TCQlKvOyeAaUlrPkcszZtwminasn1(abc, length);
#line 796 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 796 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T10_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T10_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T10_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 796 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T11_ = (NI)0; T11_ = asn1EncodeNull__C0i1MAkqIs7k5WXfyN3NHQ((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T10_)-((*abc).Sup.offset)+1); (void)(T11_);
}
goto LA5_;
LA7_: ;
{ NI T15_; NI T16_; NI T17_;
#line 797 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2))) goto LA13_;
#line 798 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T15_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T15_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T15_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 798 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeInteger__b0nIsGKAqw3PwTEvaIOVew((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T15_)-((*abc).Sup.offset)+1, 0ULL);
#line 799 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 799 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__TCQlKvOyeAaUlrPkcszZtwminasn1(abc, length);
#line 800 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 800 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T16_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T16_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T16_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 800 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T17_ = (NI)0; T17_ = asn1EncodeInteger__b0nIsGKAqw3PwTEvaIOVew((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T16_)-((*abc).Sup.offset)+1, 0ULL); (void)(T17_);
}
goto LA5_;
LA13_: ;
{ tyArray__cizw9bdTN1Bzer1N9ayP9cHbQ tmp; NI T21_; NI T22_; NI T23_;
#line 801 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3))) goto LA19_;
nimZeroMem((void*)tmp, sizeof(tyArray__cizw9bdTN1Bzer1N9ayP9cHbQ));
#line 803 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T21_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T21_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T21_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); } if (((NI) -1)-((NI) 0) != -1 && (((NI) -1)-((NI) 0) < -1 || ((NI) 0) < 0 || ((NI) 0) > 0 || ((NI) -1) < 0 || ((NI) -1) > 0)){ raiseIndexError(); }
#line 803 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeBitString__z4N8eg5RvApI59a1yFwbpKQ((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T21_)-((*abc).Sup.offset)+1, (NU8*)((tmp)+(((NI) 0))), (((NI) -1))-(((NI) 0))+1, ((NI) 0));
#line 804 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 804 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__TCQlKvOyeAaUlrPkcszZtwminasn1(abc, length);
#line 805 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 805 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T22_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T22_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T22_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); } if (((NI) -1)-((NI) 0) != -1 && (((NI) -1)-((NI) 0) < -1 || ((NI) 0) < 0 || ((NI) 0) > 0 || ((NI) -1) < 0 || ((NI) -1) > 0)){ raiseIndexError(); }
#line 805 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T23_ = (NI)0; T23_ = asn1EncodeBitString__z4N8eg5RvApI59a1yFwbpKQ((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T22_)-((*abc).Sup.offset)+1, (NU8*)((tmp)+(((NI) 0))), (((NI) -1))-(((NI) 0))+1, ((NI) 0)); (void)(T23_);
}
goto LA5_;
LA19_: ;
{ tyArray__cizw9bdTN1Bzer1N9ayP9cHbQ tmp_2; NI T27_; NI T28_; NI T29_;
#line 806 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 4))) goto LA25_;
nimZeroMem((void*)tmp_2, sizeof(tyArray__cizw9bdTN1Bzer1N9ayP9cHbQ));
#line 808 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T27_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T27_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T27_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); } if (((NI) -1)-((NI) 0) != -1 && (((NI) -1)-((NI) 0) < -1 || ((NI) 0) < 0 || ((NI) 0) > 0 || ((NI) -1) < 0 || ((NI) -1) > 0)){ raiseIndexError(); }
#line 808 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeOctetString__9coDNY9cflAJKQyrnDKzuiFw_2((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T27_)-((*abc).Sup.offset)+1, (NU8*)((tmp_2)+(((NI) 0))), (((NI) -1))-(((NI) 0))+1);
#line 809 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 809 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__TCQlKvOyeAaUlrPkcszZtwminasn1(abc, length);
#line 810 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 810 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T28_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T28_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T28_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); } if (((NI) -1)-((NI) 0) != -1 && (((NI) -1)-((NI) 0) < -1 || ((NI) 0) < 0 || ((NI) 0) > 0 || ((NI) -1) < 0 || ((NI) -1) > 0)){ raiseIndexError(); }
#line 810 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T29_ = (NI)0; T29_ = asn1EncodeOctetString__9coDNY9cflAJKQyrnDKzuiFw_2((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T28_)-((*abc).Sup.offset)+1, (NU8*)((tmp_2)+(((NI) 0))), (((NI) -1))-(((NI) 0))+1); (void)(T29_);
}
goto LA5_;
LA25_: ;
LA5_: ;
#line 811 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*abc).Sup.offset, length, &TM__3CYTpBP4MAjRXCQDDh0oow_49)) { raiseOverflow(); }; (*abc).Sup.offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_49);}
#line 122 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
static N_INLINE(NI, len__xBvcsTGyo9c9cnQtWyeFZuGwminasn1)(tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg* abc) { NI result; NI T1_; NI TM__3CYTpBP4MAjRXCQDDh0oow_50; result = (NI)0;
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 123 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T1_ = ((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0); if (nimSubInt(T1_, (*abc).Sup.offset, &TM__3CYTpBP4MAjRXCQDDh0oow_50)) { raiseOverflow(); }; result = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_50); return result;}
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeSequence__9coDNY9cflAJKQyrnDKzuiFw_4)(NU8* dest_0, NI dest_0Len_0, NU8* value_0, NI value_0Len_0) { NI result; tyArray__qtqsWM5aXmcpMIVmvq3kAA buffer; NI lenlen; NI res; NI TM__3CYTpBP4MAjRXCQDDh0oow_52; NI TM__3CYTpBP4MAjRXCQDDh0oow_53; result = (NI)0;
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
nimZeroMem((void*)buffer, sizeof(tyArray__qtqsWM5aXmcpMIVmvq3kAA));
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
lenlen = asn1EncodeLength__yuWyzcpqAb17CyYKJRi0Pg(buffer, 16, ((NU64) (value_0Len_0)));
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_52)) { raiseOverflow(); };
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_52), value_0Len_0, &TM__3CYTpBP4MAjRXCQDDh0oow_53)) { raiseOverflow(); }; res = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_53);
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_54;
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(res <= dest_0Len_0)) goto LA3_;
if ((NU)(((NI) 0)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 0),dest_0Len_0-1); }
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 401 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[((NI) 0)] = code__rh9c12eUUAJJu2OHXVa9cH3Aminasn1(((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 7));
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)(((NI) 1)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 1),dest_0Len_0-1); } if ((lenlen) < ((NI) 0) || (lenlen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(lenlen, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&dest_0[((NI) 1)]))), ((void*) ((&buffer[(((NI) 0))- 0]))), ((NI) (lenlen)));
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_54)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_54)) >= (NU)(dest_0Len_0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_54),dest_0Len_0-1); } if ((NU)(((NI) 0)) >= (NU)(value_0Len_0)){ raiseIndexError2(((NI) 0),value_0Len_0-1); }
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((value_0Len_0) < ((NI) 0) || (value_0Len_0) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(value_0Len_0, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&dest_0[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_54)]))), ((void*) ((&value_0[((NI) 0)]))), ((NI) (value_0Len_0)));
}
LA3_: ;
result = res; return result;}
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(NI, asn1EncodeContextTag__QmHA9ay9aHc9aWHn9avnEX9cFHA)(NU8* dest_0, NI dest_0Len_0, NU8* value_0, NI value_0Len_0, NI tag) { NI result; tyArray__qtqsWM5aXmcpMIVmvq3kAA buffer; NI lenlen; NI res; NI TM__3CYTpBP4MAjRXCQDDh0oow_55; NI TM__3CYTpBP4MAjRXCQDDh0oow_56; result = (NI)0;
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
nimZeroMem((void*)buffer, sizeof(tyArray__qtqsWM5aXmcpMIVmvq3kAA));
#line 435 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 435 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 435 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
lenlen = asn1EncodeLength__yuWyzcpqAb17CyYKJRi0Pg(buffer, 16, ((NU64) (value_0Len_0)));
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_55)) { raiseOverflow(); };
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_55), value_0Len_0, &TM__3CYTpBP4MAjRXCQDDh0oow_56)) { raiseOverflow(); }; res = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_56);
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_57;
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(res <= dest_0Len_0)) goto LA3_;
if ((NU)(((NI) 0)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 0),dest_0Len_0-1); }
#line 438 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 438 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 438 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 438 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
dest_0[((NI) 0)] = (NU8)(((NU8) 160) | (NU8)(((NU8) ((NI)(tag & ((NI) 255)))) & ((NU8) 15)));
#line 439 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)(((NI) 1)) >= (NU)(dest_0Len_0)){ raiseIndexError2(((NI) 1),dest_0Len_0-1); } if ((lenlen) < ((NI) 0) || (lenlen) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(lenlen, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 439 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&dest_0[((NI) 1)]))), ((void*) ((&buffer[(((NI) 0))- 0]))), ((NI) (lenlen)));
#line 440 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 440 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(((NI) 1), lenlen, &TM__3CYTpBP4MAjRXCQDDh0oow_57)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_57)) >= (NU)(dest_0Len_0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_57),dest_0Len_0-1); } if ((NU)(((NI) 0)) >= (NU)(value_0Len_0)){ raiseIndexError2(((NI) 0),value_0Len_0-1); }
#line 440 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((value_0Len_0) < ((NI) 0) || (value_0Len_0) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(value_0Len_0, ((NI) 0), ((NI) IL64(9223372036854775807))); }
#line 440 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&dest_0[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_57)]))), ((void*) ((&value_0[((NI) 0)]))), ((NI) (value_0Len_0)));
}
LA3_: ;
result = res; return result;}
#line 857 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(void, write__p2xmP7GdD5UO3rNa9cmx12w)(tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg* abc, tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg* value_0) { NI length; NI TM__3CYTpBP4MAjRXCQDDh0oow_58;
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI T3_;
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T3_ = (NI)0; T3_ = len__xBvcsTGyo9c9cnQtWyeFZuGwminasn1(value_0); if (!!((((NI) 0) < T3_))) goto LA4_;
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_51));
}
LA4_: ;
length = (NI)0;
#line 860 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI T10_; NI T11_; NI T12_;
#line 860 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((*value_0).tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 7))) goto LA8_;
#line 861 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T10_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T10_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T10_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 861 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeSequence__9coDNY9cflAJKQyrnDKzuiFw_4((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T10_)-((*abc).Sup.offset)+1, (*value_0).Sup.buffer->data, ((*value_0).Sup.buffer ? (*value_0).Sup.buffer->Sup.len : 0));
#line 862 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 862 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__TCQlKvOyeAaUlrPkcszZtwminasn1(abc, length);
#line 863 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 863 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T11_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T11_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T11_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 863 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T12_ = (NI)0; T12_ = asn1EncodeSequence__9coDNY9cflAJKQyrnDKzuiFw_4((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T11_)-((*abc).Sup.offset)+1, (*value_0).Sup.buffer->data, ((*value_0).Sup.buffer ? (*value_0).Sup.buffer->Sup.len : 0)); (void)(T12_);
}
goto LA6_;
LA8_: ;
{ NI T16_; NI T17_; NI T18_;
#line 864 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((*value_0).tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3))) goto LA14_;
#line 865 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T16_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T16_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T16_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 865 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeBitString__z4N8eg5RvApI59a1yFwbpKQ((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T16_)-((*abc).Sup.offset)+1, (*value_0).Sup.buffer->data, ((*value_0).Sup.buffer ? (*value_0).Sup.buffer->Sup.len : 0), ((NI) 0));
#line 866 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 866 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__TCQlKvOyeAaUlrPkcszZtwminasn1(abc, length);
#line 867 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 867 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T17_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T17_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T17_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 867 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T18_ = (NI)0; T18_ = asn1EncodeBitString__z4N8eg5RvApI59a1yFwbpKQ((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T17_)-((*abc).Sup.offset)+1, (*value_0).Sup.buffer->data, ((*value_0).Sup.buffer ? (*value_0).Sup.buffer->Sup.len : 0), ((NI) 0)); (void)(T18_);
}
goto LA6_;
LA14_: ;
{ NI T22_; NI T23_; NI T24_;
#line 868 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((*value_0).tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 8))) goto LA20_;
#line 869 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T22_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T22_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T22_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 869 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeContextTag__QmHA9ay9aHc9aWHn9avnEX9cFHA((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T22_)-((*abc).Sup.offset)+1, (*value_0).Sup.buffer->data, ((*value_0).Sup.buffer ? (*value_0).Sup.buffer->Sup.len : 0), (*value_0).idx);
#line 870 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 870 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__TCQlKvOyeAaUlrPkcszZtwminasn1(abc, length);
#line 871 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 871 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 111 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T23_ = (((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0)-1); if (T23_-(*abc).Sup.offset != -1 && ((NU)((*abc).Sup.offset) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0) || (NU)(T23_) >= (NU)((*abc).Sup.buffer ? (*abc).Sup.buffer->Sup.len : 0))){ raiseIndexError(); }
#line 871 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T24_ = (NI)0; T24_ = asn1EncodeContextTag__QmHA9ay9aHc9aWHn9avnEX9cFHA((NU8*)(*abc).Sup.buffer->data+((*abc).Sup.offset), (T23_)-((*abc).Sup.offset)+1, (*value_0).Sup.buffer->data, ((*value_0).Sup.buffer ? (*value_0).Sup.buffer->Sup.len : 0), (*value_0).idx); (void)(T24_);
}
goto LA6_;
LA20_: ;
LA6_: ;
#line 872 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*abc).Sup.offset, length, &TM__3CYTpBP4MAjRXCQDDh0oow_58)) { raiseOverflow(); }; (*abc).Sup.offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_58);}
#line 131 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
static N_INLINE(void, extend__tv7KP1HapBBDHG3i9afYZ1gminasn1)(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA* abc, NI length) { NI T1_; NI TM__3CYTpBP4MAjRXCQDDh0oow_59;
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 133 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T1_ = ((*abc).buffer ? (*abc).buffer->Sup.len : 0); if (nimAddInt(T1_, length, &TM__3CYTpBP4MAjRXCQDDh0oow_59)) { raiseOverflow(); }; if (((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_59)) < ((NI) 0) || ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_59)) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_59), ((NI) 0), ((NI) IL64(9223372036854775807))); } unsureAsgnRef((void**) (&(*abc).buffer), (tySequence__6H5Oh5UUvVCLiakt9aTwtUQ*) setLengthSeqV2(&((*abc).buffer)->Sup, (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_), ((NI) ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_59)))));}
#line 857 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(void, write__HuWLOlu2X16vPWQ3bSZ3nA)(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA* abc, tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg* value_0) { NI length; NI TM__3CYTpBP4MAjRXCQDDh0oow_60;
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI T3_;
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T3_ = (NI)0; T3_ = len__xBvcsTGyo9c9cnQtWyeFZuGwminasn1(value_0); if (!!((((NI) 0) < T3_))) goto LA4_;
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 858 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_51));
}
LA4_: ;
length = (NI)0;
#line 860 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI T10_; NI T11_; NI T12_;
#line 860 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((*value_0).tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 7))) goto LA8_;
#line 861 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T10_ = (((*abc).buffer ? (*abc).buffer->Sup.len : 0)-1); if (T10_-(*abc).offset != -1 && ((NU)((*abc).offset) >= (NU)((*abc).buffer ? (*abc).buffer->Sup.len : 0) || (NU)(T10_) >= (NU)((*abc).buffer ? (*abc).buffer->Sup.len : 0))){ raiseIndexError(); }
#line 861 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeSequence__9coDNY9cflAJKQyrnDKzuiFw_4((NU8*)(*abc).buffer->data+((*abc).offset), (T10_)-((*abc).offset)+1, (*value_0).Sup.buffer->data, ((*value_0).Sup.buffer ? (*value_0).Sup.buffer->Sup.len : 0));
#line 862 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 862 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__tv7KP1HapBBDHG3i9afYZ1gminasn1(abc, length);
#line 863 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 863 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T11_ = (((*abc).buffer ? (*abc).buffer->Sup.len : 0)-1); if (T11_-(*abc).offset != -1 && ((NU)((*abc).offset) >= (NU)((*abc).buffer ? (*abc).buffer->Sup.len : 0) || (NU)(T11_) >= (NU)((*abc).buffer ? (*abc).buffer->Sup.len : 0))){ raiseIndexError(); }
#line 863 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T12_ = (NI)0; T12_ = asn1EncodeSequence__9coDNY9cflAJKQyrnDKzuiFw_4((NU8*)(*abc).buffer->data+((*abc).offset), (T11_)-((*abc).offset)+1, (*value_0).Sup.buffer->data, ((*value_0).Sup.buffer ? (*value_0).Sup.buffer->Sup.len : 0)); (void)(T12_);
}
goto LA6_;
LA8_: ;
{ NI T16_; NI T17_; NI T18_;
#line 864 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((*value_0).tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3))) goto LA14_;
#line 865 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T16_ = (((*abc).buffer ? (*abc).buffer->Sup.len : 0)-1); if (T16_-(*abc).offset != -1 && ((NU)((*abc).offset) >= (NU)((*abc).buffer ? (*abc).buffer->Sup.len : 0) || (NU)(T16_) >= (NU)((*abc).buffer ? (*abc).buffer->Sup.len : 0))){ raiseIndexError(); }
#line 865 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeBitString__z4N8eg5RvApI59a1yFwbpKQ((NU8*)(*abc).buffer->data+((*abc).offset), (T16_)-((*abc).offset)+1, (*value_0).Sup.buffer->data, ((*value_0).Sup.buffer ? (*value_0).Sup.buffer->Sup.len : 0), ((NI) 0));
#line 866 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 866 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__tv7KP1HapBBDHG3i9afYZ1gminasn1(abc, length);
#line 867 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 867 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T17_ = (((*abc).buffer ? (*abc).buffer->Sup.len : 0)-1); if (T17_-(*abc).offset != -1 && ((NU)((*abc).offset) >= (NU)((*abc).buffer ? (*abc).buffer->Sup.len : 0) || (NU)(T17_) >= (NU)((*abc).buffer ? (*abc).buffer->Sup.len : 0))){ raiseIndexError(); }
#line 867 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T18_ = (NI)0; T18_ = asn1EncodeBitString__z4N8eg5RvApI59a1yFwbpKQ((NU8*)(*abc).buffer->data+((*abc).offset), (T17_)-((*abc).offset)+1, (*value_0).Sup.buffer->data, ((*value_0).Sup.buffer ? (*value_0).Sup.buffer->Sup.len : 0), ((NI) 0)); (void)(T18_);
}
goto LA6_;
LA14_: ;
{ NI T22_; NI T23_; NI T24_;
#line 868 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((*value_0).tag == ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 8))) goto LA20_;
#line 869 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T22_ = (((*abc).buffer ? (*abc).buffer->Sup.len : 0)-1); if (T22_-(*abc).offset != -1 && ((NU)((*abc).offset) >= (NU)((*abc).buffer ? (*abc).buffer->Sup.len : 0) || (NU)(T22_) >= (NU)((*abc).buffer ? (*abc).buffer->Sup.len : 0))){ raiseIndexError(); }
#line 869 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = asn1EncodeContextTag__QmHA9ay9aHc9aWHn9avnEX9cFHA((NU8*)(*abc).buffer->data+((*abc).offset), (T22_)-((*abc).offset)+1, (*value_0).Sup.buffer->data, ((*value_0).Sup.buffer ? (*value_0).Sup.buffer->Sup.len : 0), (*value_0).idx);
#line 870 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 870 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
extend__tv7KP1HapBBDHG3i9afYZ1gminasn1(abc, length);
#line 871 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 871 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 108 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T23_ = (((*abc).buffer ? (*abc).buffer->Sup.len : 0)-1); if (T23_-(*abc).offset != -1 && ((NU)((*abc).offset) >= (NU)((*abc).buffer ? (*abc).buffer->Sup.len : 0) || (NU)(T23_) >= (NU)((*abc).buffer ? (*abc).buffer->Sup.len : 0))){ raiseIndexError(); }
#line 871 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T24_ = (NI)0; T24_ = asn1EncodeContextTag__QmHA9ay9aHc9aWHn9avnEX9cFHA((NU8*)(*abc).buffer->data+((*abc).offset), (T23_)-((*abc).offset)+1, (*value_0).Sup.buffer->data, ((*value_0).Sup.buffer ? (*value_0).Sup.buffer->Sup.len : 0), (*value_0).idx); (void)(T24_);
}
goto LA6_;
LA20_: ;
LA6_: ;
#line 872 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*abc).offset, length, &TM__3CYTpBP4MAjRXCQDDh0oow_60)) { raiseOverflow(); }; (*abc).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_60);}
#line 713 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(void, init__FDFzv3pYx3J2sRfYY241sA)(NU8* data_0, NI data_0Len_0, tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA* Result) {
#line 714 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); unsureAsgnRef((void**)&(*Result).buffer, NIM_NIL); (*Result).offset = 0; (*Result).length = 0; (*Result).Sup.m_type = (&NTI__a5EmYcJjKFxSSJOn8BKx9bA_);
#line 715 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 715 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
unsureAsgnRef((void**) (&(*Result).buffer), at___FKhCG9aXnVoTuyjERVXzd2g(data_0, data_0Len_0));}
#line 469 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__4aYxvuOuzNYZ9avRFK8J8Ow, getTag__GuDVkGleKO9cQVOdUtnqq9bw)(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA* ab, NI* tag) { tyObject_Result__4aYxvuOuzNYZ9avRFK8J8Ow result; nimZeroMem((void*)(&result), sizeof(tyObject_Result__4aYxvuOuzNYZ9avRFK8J8Ow));
#line 470 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI T3_; NU8 b; NI c; NI TM__3CYTpBP4MAjRXCQDDh0oow_61;
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 471 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T3_ = ((*ab).buffer ? (*ab).buffer->Sup.len : 0); if (!!((T3_ <= (*ab).offset))) goto LA4_;
#line 473 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)((*ab).offset) >= (NU)((*ab).buffer ? (*ab).buffer->Sup.len : 0)){ raiseIndexError2((*ab).offset,((*ab).buffer ? (*ab).buffer->Sup.len : 0)-1); } b = (*ab).buffer->data[(*ab).offset];
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 474 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
c = ((NI) ((NU8)((NU8)((NU8)(b & ((NU8) 192))) >> (NU64)(((NI) 6)))));
#line 475 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 475 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
(*tag) = ((NI) ((NU8)(b & ((NU8) 63))));
#line 476 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*ab).offset, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_61)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_61);
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NIM_BOOL T8_;
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T8_ = (NIM_BOOL)0;
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T8_ = (((NI) 0) <= c); if (!(T8_)) goto LA9_;
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T8_ = (c < ((NI) 4)); LA9_: ;
if (!T8_) goto LA10_;
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__4aYxvuOuzNYZ9avRFK8J8Ow)); result.o = NIM_TRUE; result._o_2.v = ((tyEnum_Asn1Class__FtwzcKvXucMBl21sNqjtJA) (c)); }
goto LA6_;
LA10_: ;
{ chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__4aYxvuOuzNYZ9avRFK8J8Ow)); result.o = NIM_FALSE; result._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); }
LA6_: ;
}
goto LA1_;
LA4_: ;
{ chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__4aYxvuOuzNYZ9avRFK8J8Ow)); result.o = NIM_FALSE; result._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 1); }
LA1_: ;
return result;}
#line 443 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg, getLength__4gvISqzzLSSgelG1M6QFbg)(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA* ab) { tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg result;{ nimZeroMem((void*)(&result), sizeof(tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg));
#line 445 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI T3_; NU8 b; NU64 octets;
#line 445 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 445 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 117 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T3_ = ((*ab).buffer ? (*ab).buffer->Sup.len : 0); if (!!((T3_ <= (*ab).offset))) goto LA4_;
#line 446 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)((*ab).offset) >= (NU)((*ab).buffer ? (*ab).buffer->Sup.len : 0)){ raiseIndexError2((*ab).offset,((*ab).buffer ? (*ab).buffer->Sup.len : 0)-1); } b = (*ab).buffer->data[(*ab).offset];
#line 447 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NU64 length; NI TM__3CYTpBP4MAjRXCQDDh0oow_64;
#line 447 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 447 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((NU8)(b & ((NU8) 128)) == ((NU8) 0))) goto LA8_;
#line 448 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length = ((NU64) (b));
#line 449 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*ab).offset, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_64)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_64);
#line 450 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 450 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg)); result.o = NIM_TRUE; result._o_2.v = length; goto BeforeRet_;
}
LA8_: ;
#line 451 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 451 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(b == ((NU8) 128))) goto LA12_;
#line 452 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 452 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg)); result.o = NIM_FALSE; result._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 2); goto BeforeRet_;
}
LA12_: ;
#line 453 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 453 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(b == ((NU8) 255))) goto LA16_;
#line 454 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 454 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg)); result.o = NIM_FALSE; result._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); goto BeforeRet_;
}
LA16_: ;
#line 455 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 455 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
octets = ((NU64) ((NU8)(b & ((NU8) 127))));
#line 456 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 456 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((NU64)(8ULL) < (NU64)(octets))) goto LA20_;
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 457 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg)); result.o = NIM_FALSE; result._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 0); goto BeforeRet_;
}
LA20_: ;
#line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_65; NI T24_; NU64 length_2; NI TM__3CYTpBP4MAjRXCQDDh0oow_69; NI TM__3CYTpBP4MAjRXCQDDh0oow_70;
#line 458 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(octets) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(octets) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(octets, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (octets)), &TM__3CYTpBP4MAjRXCQDDh0oow_65)) { raiseOverflow(); };
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T24_ = ((*ab).buffer ? (*ab).buffer->Sup.len : 0); if (!((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_65) <= T24_)) goto LA25_;
#line 459 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
length_2 = 0ULL; { NI i; NI colontmp_; NI i_2; i = (NI)0; colontmp_ = (NI)0;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(octets) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(octets) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(octets, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } colontmp_ = ((NI) (octets));
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 = ((NI) 0); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__3CYTpBP4MAjRXCQDDh0oow_66; NI TM__3CYTpBP4MAjRXCQDDh0oow_67; NI TM__3CYTpBP4MAjRXCQDDh0oow_68;
#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 LA29;
#line 460 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
i = i_2;
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 461 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*ab).offset, i, &TM__3CYTpBP4MAjRXCQDDh0oow_66)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_66), ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_67)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_67)) >= (NU)((*ab).buffer ? (*ab).buffer->Sup.len : 0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_67),((*ab).buffer ? (*ab).buffer->Sup.len : 0)-1); } length_2 = (NU64)((NU64)((NU64)(length_2) << (NU64)(((NI) 8))) | ((NU64) ((*ab).buffer->data[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_67)])));
#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__3CYTpBP4MAjRXCQDDh0oow_68)) { raiseOverflow(); }; i_2 = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_68); } LA29: ;
}
}
#line 462 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 462 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 462 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(octets) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(octets) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(octets, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (octets)), &TM__3CYTpBP4MAjRXCQDDh0oow_69)) { raiseOverflow(); }; if (nimAddInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_69), ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_70)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_70);
#line 463 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 463 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg)); result.o = NIM_TRUE; result._o_2.v = length_2; goto BeforeRet_;
}
goto LA22_;
LA25_: ;
{
#line 465 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 465 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg)); result.o = NIM_FALSE; result._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 1); goto BeforeRet_;
}
LA22_: ;
}
goto LA1_;
LA4_: ;
{
#line 467 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 467 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&result)); nimZeroMem((void*)(&result), sizeof(tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg)); result.o = NIM_FALSE; result._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 1); goto BeforeRet_;
}
LA1_: ;
}BeforeRet_: ;
return result;}
#line 484 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(void, read__pcAQatFetF1EcQU9bJIK9alg)(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA* ab, tyObject_Result__0EVVlocCiIWh0JVzIL7m2A* Result) { tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg field; NI tag; NI ttag; NI offset; NU64 length; NU64 tlength; tyEnum_Asn1Class__FtwzcKvXucMBl21sNqjtJA aclass; NIM_BOOL inclass;{ chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; nimZeroMem((void*)(&field), sizeof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg)); tag = (NI)0; ttag = (NI)0; offset = (NI)0; length = (NU64)0; tlength = (NU64)0; aclass = (tyEnum_Asn1Class__FtwzcKvXucMBl21sNqjtJA)0; inclass = (NIM_BOOL)0;
#line 493 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
inclass = NIM_FALSE; {
#line 494 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
while (1) { tyObject_Result__4aYxvuOuzNYZ9avRFK8J8Ow vX60gensym59745075_;
#line 495 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
offset = (*ab).offset;
#line 496 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 496 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
vX60gensym59745075_ = getTag__GuDVkGleKO9cQVOdUtnqq9bw(ab, (&tag));
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym59745075_.o)) goto LA5_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; if (!(((1 &(1U<<((NU)(vX60gensym59745075_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_62)); } (*Result)._o_1.e = vX60gensym59745075_._o_1.e; goto BeforeRet_;
}
LA5_: ;
if (!(((2 &(1U<<((NU)(vX60gensym59745075_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_63)); } aclass = vX60gensym59745075_._o_2.v;
#line 498 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
switch (aclass) {
case ((tyEnum_Asn1Class__FtwzcKvXucMBl21sNqjtJA) 2):
{
#line 500 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ if (!inclass) goto LA10_;
#line 501 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 501 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); goto BeforeRet_;
}
goto LA8_;
LA10_: ;
{ tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg vX60gensym59765004_;
#line 503 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
inclass = NIM_TRUE;
#line 504 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
ttag = tag;
#line 505 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 505 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
vX60gensym59765004_ = getLength__4gvISqzzLSSgelG1M6QFbg(ab);
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym59765004_.o)) goto LA15_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; if (!(((1 &(1U<<((NU)(vX60gensym59765004_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_62)); } (*Result)._o_1.e = vX60gensym59765004_._o_1.e; goto BeforeRet_;
}
LA15_: ;
if (!(((2 &(1U<<((NU)(vX60gensym59765004_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_63)); } tlength = vX60gensym59765004_._o_2.v; }
LA8_: ;
}
break;
case ((tyEnum_Asn1Class__FtwzcKvXucMBl21sNqjtJA) 0):
{ tyObject_Result__JfzEHQTs1V9c30Td0JlUVkg vX60gensym59775205_;
#line 507 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 507 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
vX60gensym59775205_ = getLength__4gvISqzzLSSgelG1M6QFbg(ab);
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
{
#line 658 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
if (!!(vX60gensym59775205_.o)) goto LA20_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-stew/stew/results.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; if (!(((1 &(1U<<((NU)(vX60gensym59775205_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_62)); } (*Result)._o_1.e = vX60gensym59775205_._o_1.e; goto BeforeRet_;
}
LA20_: ;
if (!(((2 &(1U<<((NU)(vX60gensym59775205_.o)&7U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_63)); } length = vX60gensym59775205_._o_2.v;
#line 509 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ if (!inclass) goto LA24_;
#line 510 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 510 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((NU64)(tlength) <= (NU64)(length))) goto LA28_;
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 511 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); goto BeforeRet_;
}
LA28_: ;
}
LA24_: ;
#line 513 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
switch (((NU8) (tag))) {
case ((NU8) 1):
{ NU8 b; NI TM__3CYTpBP4MAjRXCQDDh0oow_73;
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 516 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!!((length == 1ULL))) goto LA33_;
#line 517 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 517 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); goto BeforeRet_;
}
LA33_: ;
#line 519 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_71; NI T37_;
#line 519 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 519 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_71)) { raiseOverflow(); };
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T37_ = ((*ab).buffer ? (*ab).buffer->Sup.len : 0); if (!!(((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_71) <= T37_))) goto LA38_;
#line 520 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 520 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 1); goto BeforeRet_;
}
LA38_: ;
#line 522 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)((*ab).offset) >= (NU)((*ab).buffer ? (*ab).buffer->Sup.len : 0)){ raiseIndexError2((*ab).offset,((*ab).buffer ? (*ab).buffer->Sup.len : 0)-1); } b = (*ab).buffer->data[(*ab).offset];
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NIM_BOOL T42_;
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T42_ = (NIM_BOOL)0;
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T42_ = !((b == ((NU8) 255))); if (!(T42_)) goto LA43_;
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 523 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T42_ = !((b == ((NU8) 0))); LA43_: ;
if (!T42_) goto LA44_;
#line 524 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 524 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); goto BeforeRet_;
}
LA44_: ;
#line 526 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&field)); nimZeroMem((void*)(&field), sizeof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg)); field.kind = ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1); field.klass = aclass; field.index = ttag; field.offset = (*ab).offset; field.length = ((NI) 1);
#line 529 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
field.buffer = (*ab).buffer; if (!(((2 &(1U<<((NU)(field.kind)&15U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_72)); }
#line 530 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 530 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
field._kind_1.vbool = (b == ((NU8) 255));
#line 531 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*ab).offset, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_73)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_73);
#line 532 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 532 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericAssign((void*)(&(*Result)._o_2.v), (void*)(&field), (&NTI__AJb9cQQSJ8hA8TA2i9b34qGg_)); goto BeforeRet_;
}
break;
case ((NU8) 2):
{ NI zc;
#line 536 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 536 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(length == 0ULL)) goto LA49_;
#line 537 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 537 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); goto BeforeRet_;
}
LA49_: ;
#line 539 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_78; NI T53_;
#line 539 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 539 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_78)) { raiseOverflow(); };
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T53_ = ((*ab).buffer ? (*ab).buffer->Sup.len : 0); if (!!(((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_78) <= T53_))) goto LA54_;
#line 540 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 540 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 1); goto BeforeRet_;
}
LA54_: ;
#line 543 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
zc = ((NI) 0); {
#line 544 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
while (1) { NIM_BOOL T58_; NI TM__3CYTpBP4MAjRXCQDDh0oow_79; NI TM__3CYTpBP4MAjRXCQDDh0oow_80;
#line 544 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T58_ = (NIM_BOOL)0;
#line 544 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } T58_ = (zc < ((NI) (length))); if (!(T58_)) goto LA59_;
#line 544 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 544 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*ab).offset, zc, &TM__3CYTpBP4MAjRXCQDDh0oow_79)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_79)) >= (NU)((*ab).buffer ? (*ab).buffer->Sup.len : 0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_79),((*ab).buffer ? (*ab).buffer->Sup.len : 0)-1); } T58_ = ((*ab).buffer->data[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_79)] == ((NU8) 0)); LA59_: ;
if (!T58_) goto LA57;
#line 545 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt(zc, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_80)) { raiseOverflow(); }; zc = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_80); } LA57: ;
}
#line 547 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 547 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(((NI) 1) < zc)) goto LA62_;
#line 548 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 548 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); goto BeforeRet_;
}
LA62_: ;
#line 550 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_89;
#line 550 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(zc == ((NI) 0))) goto LA66_;
#line 552 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&field)); nimZeroMem((void*)(&field), sizeof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg)); field.kind = ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2); field.klass = aclass; field.index = ttag; field.offset = (*ab).offset; if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } field.length = ((NI) (length));
#line 555 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
field.buffer = (*ab).buffer;
#line 556 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 556 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 556 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)((*ab).offset) >= (NU)((*ab).buffer ? (*ab).buffer->Sup.len : 0)){ raiseIndexError2((*ab).offset,((*ab).buffer ? (*ab).buffer->Sup.len : 0)-1); } if (!((NU8)((*ab).buffer->data[(*ab).offset] & ((NU8) 128)) == ((NU8) 128))) goto LA70_;
#line 558 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 558 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((NU64)(length) <= (NU64)(8ULL))) goto LA74_;
{ NI i; NI i_2; i = (NI)0;
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_2 = ((NI) 0); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__3CYTpBP4MAjRXCQDDh0oow_86;
#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 LA78;
#line 560 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
i = i_2;
#line 561 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_81;
#line 561 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 561 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimSubInt(((NI) 8), ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_81)) { raiseOverflow(); }; if (!(i < (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_81))) goto LA81_;
if (!(((4 &(1U<<((NU)(field.kind)&15U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_82)); }
#line 562 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 562 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 562 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(((4 &(1U<<((NU)(field.kind)&15U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_82)); } field._kind_2.vint = (NU64)((NU64)((NU64)(field._kind_2.vint) << (NU64)(((NI) 8))) | 255ULL); }
goto LA79_;
LA81_: ;
{ NI offset_2; NI TM__3CYTpBP4MAjRXCQDDh0oow_83; NI TM__3CYTpBP4MAjRXCQDDh0oow_84; NI TM__3CYTpBP4MAjRXCQDDh0oow_85;
#line 564 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 564 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 564 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*ab).offset, i, &TM__3CYTpBP4MAjRXCQDDh0oow_83)) { raiseOverflow(); };
#line 564 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimSubInt(((NI) 8), ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_84)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_83), (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_84), &TM__3CYTpBP4MAjRXCQDDh0oow_85)) { raiseOverflow(); }; offset_2 = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_85); if (!(((4 &(1U<<((NU)(field.kind)&15U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_82)); }
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 565 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(((4 &(1U<<((NU)(field.kind)&15U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_82)); } if ((NU)(offset_2) >= (NU)((*ab).buffer ? (*ab).buffer->Sup.len : 0)){ raiseIndexError2(offset_2,((*ab).buffer ? (*ab).buffer->Sup.len : 0)-1); } field._kind_2.vint = (NU64)((NU64)((NU64)(field._kind_2.vint) << (NU64)(((NI) 8))) | ((NU64) ((*ab).buffer->data[offset_2]))); }
LA79_: ;
#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__3CYTpBP4MAjRXCQDDh0oow_86)) { raiseOverflow(); }; i_2 = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_86); } LA78: ;
}
}
}
LA74_: ;
}
goto LA68_;
LA70_: ;
{
#line 568 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 568 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((NU64)(length) <= (NU64)(8ULL))) goto LA87_;
{ NI i_3; NI colontmp_; NI i_4; i_3 = (NI)0; colontmp_ = (NI)0;
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } colontmp_ = ((NI) (length));
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_4 = ((NI) 0); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__3CYTpBP4MAjRXCQDDh0oow_87; NI TM__3CYTpBP4MAjRXCQDDh0oow_88;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_4 < colontmp_)) goto LA91;
#line 569 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
i_3 = i_4; if (!(((4 &(1U<<((NU)(field.kind)&15U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_82)); }
#line 570 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 570 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 570 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(((4 &(1U<<((NU)(field.kind)&15U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_82)); }
#line 571 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*ab).offset, i_3, &TM__3CYTpBP4MAjRXCQDDh0oow_87)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_87)) >= (NU)((*ab).buffer ? (*ab).buffer->Sup.len : 0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_87),((*ab).buffer ? (*ab).buffer->Sup.len : 0)-1); } field._kind_2.vint = (NU64)((NU64)((NU64)(field._kind_2.vint) << (NU64)(((NI) 8))) | ((NU64) ((*ab).buffer->data[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_87)])));
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(i_4, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_88)) { raiseOverflow(); }; i_4 = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_88); } LA91: ;
}
}
}
LA87_: ;
}
LA68_: ;
#line 572 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_89)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_89);
#line 573 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 573 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericAssign((void*)(&(*Result)._o_2.v), (void*)(&field), (&NTI__AJb9cQQSJ8hA8TA2i9b34qGg_)); goto BeforeRet_;
}
goto LA64_;
LA66_: ;
{
#line 575 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_90;
#line 575 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(length == 1ULL)) goto LA95_;
#line 577 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&field)); nimZeroMem((void*)(&field), sizeof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg)); field.kind = ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2); field.klass = aclass; field.index = ttag; field.offset = (*ab).offset; if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } field.length = ((NI) (length)); field._kind_2.vint = 0ULL;
#line 580 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
field.buffer = (*ab).buffer;
#line 581 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_90)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_90);
#line 582 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 582 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericAssign((void*)(&(*Result)._o_2.v), (void*)(&field), (&NTI__AJb9cQQSJ8hA8TA2i9b34qGg_)); goto BeforeRet_;
}
goto LA93_;
LA95_: ;
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_91; NI TM__3CYTpBP4MAjRXCQDDh0oow_92; NI TM__3CYTpBP4MAjRXCQDDh0oow_95;
#line 585 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&field)); nimZeroMem((void*)(&field), sizeof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg)); field.kind = ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2); field.klass = aclass; field.index = ttag;
#line 586 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*ab).offset, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_91)) { raiseOverflow(); }; field.offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_91);
#line 587 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimSubInt(((NI) (length)), ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_92)) { raiseOverflow(); }; field.length = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_92);
#line 588 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
field.buffer = (*ab).buffer;
#line 589 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 589 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((NU64)(length) <= (NU64)(9ULL))) goto LA100_;
{ NI i_5; NI colontmp__2; NI i_6; i_5 = (NI)0; colontmp__2 = (NI)0;
#line 590 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } colontmp__2 = ((NI) (length));
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
i_6 = ((NI) 1); {
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
while (1) { NI TM__3CYTpBP4MAjRXCQDDh0oow_93; NI TM__3CYTpBP4MAjRXCQDDh0oow_94;
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (!(i_6 < colontmp__2)) goto LA104;
#line 590 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
i_5 = i_6; if (!(((4 &(1U<<((NU)(field.kind)&15U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_82)); }
#line 591 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 591 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 591 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(((4 &(1U<<((NU)(field.kind)&15U)))!=0))){ raiseFieldError(((NimStringDesc*) &TM__3CYTpBP4MAjRXCQDDh0oow_82)); }
#line 592 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*ab).offset, i_5, &TM__3CYTpBP4MAjRXCQDDh0oow_93)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_93)) >= (NU)((*ab).buffer ? (*ab).buffer->Sup.len : 0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_93),((*ab).buffer ? (*ab).buffer->Sup.len : 0)-1); } field._kind_2.vint = (NU64)((NU64)((NU64)(field._kind_2.vint) << (NU64)(((NI) 8))) | ((NU64) ((*ab).buffer->data[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_93)])));
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
if (nimAddInt(i_6, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_94)) { raiseOverflow(); }; i_6 = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_94); } LA104: ;
}
}
}
LA100_: ;
#line 593 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_95)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_95);
#line 594 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 594 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericAssign((void*)(&(*Result)._o_2.v), (void*)(&field), (&NTI__AJb9cQQSJ8hA8TA2i9b34qGg_)); goto BeforeRet_;
}
LA93_: ;
}
LA64_: ;
}
break;
case ((NU8) 3):
{
#line 598 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 598 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(length == 0ULL)) goto LA108_;
#line 601 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 601 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); goto BeforeRet_;
}
goto LA106_;
LA108_: ;
{
#line 603 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(length == 1ULL)) goto LA111_;
#line 604 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 604 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 604 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)((*ab).offset) >= (NU)((*ab).buffer ? (*ab).buffer->Sup.len : 0)){ raiseIndexError2((*ab).offset,((*ab).buffer ? (*ab).buffer->Sup.len : 0)-1); } if (!!(((*ab).buffer->data[(*ab).offset] == ((NU8) 0)))) goto LA115_;
#line 605 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 605 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); goto BeforeRet_;
}
goto LA113_;
LA115_: ;
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_96; NI TM__3CYTpBP4MAjRXCQDDh0oow_97;
#line 608 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&field)); nimZeroMem((void*)(&field), sizeof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg)); field.kind = ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3); field.klass = aclass; field.index = ttag;
#line 609 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*ab).offset, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_96)) { raiseOverflow(); }; field.offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_96); field.length = ((NI) 0); field._kind_3.ubits = ((NI) 0);
#line 611 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
field.buffer = (*ab).buffer;
#line 612 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_97)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_97);
#line 613 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 613 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericAssign((void*)(&(*Result)._o_2.v), (void*)(&field), (&NTI__AJb9cQQSJ8hA8TA2i9b34qGg_)); goto BeforeRet_;
}
LA113_: ;
}
goto LA106_;
LA111_: ;
{ NU8 unused; NU8 mask; NI TM__3CYTpBP4MAjRXCQDDh0oow_101; NI TM__3CYTpBP4MAjRXCQDDh0oow_102;
#line 616 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_98; NI T121_;
#line 616 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 616 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_98)) { raiseOverflow(); };
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T121_ = ((*ab).buffer ? (*ab).buffer->Sup.len : 0); if (!!(((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_98) <= T121_))) goto LA122_;
#line 617 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 617 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 1); goto BeforeRet_;
}
LA122_: ;
#line 619 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NU)((*ab).offset) >= (NU)((*ab).buffer ? (*ab).buffer->Sup.len : 0)){ raiseIndexError2((*ab).offset,((*ab).buffer ? (*ab).buffer->Sup.len : 0)-1); } unused = (*ab).buffer->data[(*ab).offset];
#line 620 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 620 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((NU8)(((NU8) 7)) < (NU8)(unused))) goto LA126_;
#line 622 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 622 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); goto BeforeRet_;
}
LA126_: ;
#line 624 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 624 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 624 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
mask = (NU8)((NU8)((NU8)((NU64)(((NU8) 1)) << (NU64)(((NI) (unused))))) - (NU8)(((NU8) 1)));
#line 625 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_99; NI TM__3CYTpBP4MAjRXCQDDh0oow_100;
#line 625 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 625 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 625 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 625 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 625 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_99)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_99), ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_100)) { raiseOverflow(); }; if ((NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_100)) >= (NU)((*ab).buffer ? (*ab).buffer->Sup.len : 0)){ raiseIndexError2((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_100),((*ab).buffer ? (*ab).buffer->Sup.len : 0)-1); } if (!!(((NU8)((*ab).buffer->data[(NI)(TM__3CYTpBP4MAjRXCQDDh0oow_100)] & mask) == ((NU8) 0)))) goto LA130_;
#line 627 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 627 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); goto BeforeRet_;
}
LA130_: ;
#line 629 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&field)); nimZeroMem((void*)(&field), sizeof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg)); field.kind = ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3); field.klass = aclass; field.index = ttag;
#line 630 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*ab).offset, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_101)) { raiseOverflow(); }; field.offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_101);
#line 631 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)((NU64)((NU64)(length) - (NU64)(1ULL))) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)((NU64)((NU64)(length) - (NU64)(1ULL))) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI((NU64)((NU64)(length) - (NU64)(1ULL)), ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } field.length = ((NI) ((NU64)((NU64)(length) - (NU64)(1ULL)))); field._kind_3.ubits = ((NI) (unused));
#line 632 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
field.buffer = (*ab).buffer;
#line 633 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_102)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_102);
#line 634 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 634 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericAssign((void*)(&(*Result)._o_2.v), (void*)(&field), (&NTI__AJb9cQQSJ8hA8TA2i9b34qGg_)); goto BeforeRet_;
}
LA106_: ;
}
break;
case ((NU8) 4):
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_104;
#line 638 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_103; NI T135_;
#line 638 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 638 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_103)) { raiseOverflow(); };
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T135_ = ((*ab).buffer ? (*ab).buffer->Sup.len : 0); if (!!(((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_103) <= T135_))) goto LA136_;
#line 639 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 639 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 1); goto BeforeRet_;
}
LA136_: ;
#line 641 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&field)); nimZeroMem((void*)(&field), sizeof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg)); field.kind = ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 4); field.klass = aclass; field.index = ttag; field.offset = (*ab).offset; if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } field.length = ((NI) (length));
#line 644 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
field.buffer = (*ab).buffer;
#line 645 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_104)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_104);
#line 646 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 646 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericAssign((void*)(&(*Result)._o_2.v), (void*)(&field), (&NTI__AJb9cQQSJ8hA8TA2i9b34qGg_)); goto BeforeRet_;
}
break;
case ((NU8) 5):
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_105;
#line 650 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 650 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 650 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!!((length == 0ULL))) goto LA141_;
#line 651 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 651 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 3); goto BeforeRet_;
}
LA141_: ;
#line 653 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&field)); nimZeroMem((void*)(&field), sizeof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg)); field.kind = ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 5); field.klass = aclass; field.index = ttag; field.offset = (*ab).offset; field.length = ((NI) 0);
#line 655 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
field.buffer = (*ab).buffer;
#line 656 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_105)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_105);
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 657 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericAssign((void*)(&(*Result)._o_2.v), (void*)(&field), (&NTI__AJb9cQQSJ8hA8TA2i9b34qGg_)); goto BeforeRet_;
}
break;
case ((NU8) 6):
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_107;
#line 661 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_106; NI T146_;
#line 661 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 661 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_106)) { raiseOverflow(); };
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T146_ = ((*ab).buffer ? (*ab).buffer->Sup.len : 0); if (!!(((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_106) <= T146_))) goto LA147_;
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 662 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 1); goto BeforeRet_;
}
LA147_: ;
#line 664 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&field)); nimZeroMem((void*)(&field), sizeof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg)); field.kind = ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 6); field.klass = aclass; field.index = ttag; field.offset = (*ab).offset; if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } field.length = ((NI) (length));
#line 667 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
field.buffer = (*ab).buffer;
#line 668 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_107)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_107);
#line 669 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 669 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericAssign((void*)(&(*Result)._o_2.v), (void*)(&field), (&NTI__AJb9cQQSJ8hA8TA2i9b34qGg_)); goto BeforeRet_;
}
break;
case ((NU8) 48):
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_109;
#line 673 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_108; NI T152_;
#line 673 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 673 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_108)) { raiseOverflow(); };
#line 120 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T152_ = ((*ab).buffer ? (*ab).buffer->Sup.len : 0); if (!!(((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_108) <= T152_))) goto LA153_;
#line 674 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 674 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 1); goto BeforeRet_;
}
LA153_: ;
#line 676 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)(&field)); nimZeroMem((void*)(&field), sizeof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg)); field.kind = ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 7); field.klass = aclass; field.index = ttag; field.offset = (*ab).offset; if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } field.length = ((NI) (length));
#line 679 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
field.buffer = (*ab).buffer;
#line 680 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if ((NI64)(length) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(length) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(length, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } if (nimAddInt((*ab).offset, ((NI) (length)), &TM__3CYTpBP4MAjRXCQDDh0oow_109)) { raiseOverflow(); }; (*ab).offset = (NI)(TM__3CYTpBP4MAjRXCQDDh0oow_109);
#line 681 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 681 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_TRUE; genericAssign((void*)(&(*Result)._o_2.v), (void*)(&field), (&NTI__AJb9cQQSJ8hA8TA2i9b34qGg_)); goto BeforeRet_;
}
break;
default:
{
#line 684 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 684 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 4); goto BeforeRet_;
}
break;
}
#line 686 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
inclass = NIM_FALSE;
#line 687 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
ttag = ((NI) 0); }
break;
default:
{
#line 689 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 689 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
chckNil((void*)Result); switch ((*Result).o) {
case NIM_FALSE:
(*Result)._o_1.e = 0; break;
case NIM_TRUE:
(*Result)._o_2.v.klass = 0; (*Result)._o_2.v.index = 0; (*Result)._o_2.v.offset = 0; (*Result)._o_2.v.length = 0; unsureAsgnRef((void**)&(*Result)._o_2.v.buffer, NIM_NIL); switch ((*Result)._o_2.v.kind) {
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 1):
(*Result)._o_2.v._kind_1.vbool = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 2):
(*Result)._o_2.v._kind_2.vint = 0; break;
case ((tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg) 3):
(*Result)._o_2.v._kind_3.ubits = 0; break;
default:
break;
}
(*Result)._o_2.v.kind = 0; break;
}
(*Result).o = 0; (*Result).o = NIM_FALSE; (*Result)._o_1.e = ((tyEnum_Asn1Error__42d3XKMvE9ci9aEfsFxnW0EA) 4); goto BeforeRet_;
}
break;
}
}
}
}BeforeRet_: ;
}
#line 695 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, eqeq___S8lKwyU3mSfHixNjtlBskA)(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg* field, NU8* data_0, NI data_0Len_0) { NIM_BOOL result; NI length; NI T1_; result = (NIM_BOOL)0;
#line 696 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 698 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 698 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T1_ = ((*field).buffer ? (*field).buffer->Sup.len : 0); length = T1_;
#line 699 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NIM_BOOL T4_;
#line 699 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T4_ = (NIM_BOOL)0;
#line 699 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T4_ = (length == ((NI) 0)); if (!(T4_)) goto LA5_;
#line 699 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 699 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
T4_ = (data_0Len_0 == ((NI) 0)); LA5_: ;
if (!T4_) goto LA6_;
result = NIM_TRUE; }
goto LA2_;
LA6_: ;
{
#line 702 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{
#line 702 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!(((NI) 0) < length)) goto LA11_;
#line 703 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
{ NI TM__3CYTpBP4MAjRXCQDDh0oow_110; NI TM__3CYTpBP4MAjRXCQDDh0oow_111; NI TM__3CYTpBP4MAjRXCQDDh0oow_112;
#line 703 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 703 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (!((*field).length == data_0Len_0)) goto LA15_;
#line 704 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 706 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
#line 706 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimAddInt((*field).offset, (*field).length, &TM__3CYTpBP4MAjRXCQDDh0oow_110)) { raiseOverflow(); }; if (nimSubInt((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_110), ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_111)) { raiseOverflow(); }; if ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_111)-(*field).offset != -1 && ((NU)((*field).offset) >= (NU)((*field).buffer ? (*field).buffer->Sup.len : 0) || (NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_111)) >= (NU)((*field).buffer ? (*field).buffer->Sup.len : 0))){ raiseIndexError(); }
#line 707 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
if (nimSubInt((*field).length, ((NI) 1), &TM__3CYTpBP4MAjRXCQDDh0oow_112)) { raiseOverflow(); }; if ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_112)-((NI) 0) != -1 && ((NU)(((NI) 0)) >= (NU)(data_0Len_0) || (NU)((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_112)) >= (NU)(data_0Len_0))){ raiseIndexError(); }
#line 704 "/home/runner/work/nim-waku/nim-waku/vendor/nim-libp2p/libp2p/crypto/minasn1.nim"
result = isEqual__WxQYJ8fOGBPO2T0Kv9aJaEA((NU8*)(*field).buffer->data+((*field).offset), ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_111))-((*field).offset)+1, (NU8*)(data_0)+(((NI) 0)), ((NI)(TM__3CYTpBP4MAjRXCQDDh0oow_112))-(((NI) 0))+1); }
goto LA13_;
LA15_: ;
{ result = NIM_FALSE; }
LA13_: ;
}
goto LA9_;
LA11_: ;
{ result = NIM_FALSE; }
LA9_: ;
}
LA2_: ;
return result;}
N_LIB_PRIVATE N_NIMCALL(void, libp2p_minasn1DatInit000)(void) {
#line 999999 "generated_not_to_break_here"
static TNimNode* TM__3CYTpBP4MAjRXCQDDh0oow_2_3[3];
static TNimNode* TM__3CYTpBP4MAjRXCQDDh0oow_3_2[2];
static TNimNode* TM__3CYTpBP4MAjRXCQDDh0oow_4_9[9];
NI TM__3CYTpBP4MAjRXCQDDh0oow_6;
static char* NIM_CONST TM__3CYTpBP4MAjRXCQDDh0oow_5[9] = {
"NoSupport",
"Boolean",
"Integer",
"BitString",
"OctetString",
"Null",
"Oid",
"Sequence",
"Context"};
static TNimNode* TM__3CYTpBP4MAjRXCQDDh0oow_74_6[6];
static TNimNode* TM__3CYTpBP4MAjRXCQDDh0oow_75_4[4];
NI TM__3CYTpBP4MAjRXCQDDh0oow_77;
static char* NIM_CONST TM__3CYTpBP4MAjRXCQDDh0oow_76[4] = {
"Universal",
"Application",
"ContextSpecific",
"Private"};
static TNimNode TM__3CYTpBP4MAjRXCQDDh0oow_0[33];NTI__a5EmYcJjKFxSSJOn8BKx9bA_.size = sizeof(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA);
NTI__a5EmYcJjKFxSSJOn8BKx9bA_.kind = 17;
NTI__a5EmYcJjKFxSSJOn8BKx9bA_.base = (&NTI__ytyiCJqK439aF9cIibuRVpAg_);
NTI__a5EmYcJjKFxSSJOn8BKx9bA_.name = "Asn1Buffer";
NTI__a5EmYcJjKFxSSJOn8BKx9bA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__a5EmYcJjKFxSSJOn8BKx9bA_;
TM__3CYTpBP4MAjRXCQDDh0oow_2_3[0] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[1];
TM__3CYTpBP4MAjRXCQDDh0oow_0[1].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[1].offset = offsetof(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA, buffer);
TM__3CYTpBP4MAjRXCQDDh0oow_0[1].typ = (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[1].name = "buffer";
TM__3CYTpBP4MAjRXCQDDh0oow_2_3[1] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[2];
TM__3CYTpBP4MAjRXCQDDh0oow_0[2].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[2].offset = offsetof(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA, offset);
TM__3CYTpBP4MAjRXCQDDh0oow_0[2].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[2].name = "offset";
TM__3CYTpBP4MAjRXCQDDh0oow_2_3[2] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[3];
TM__3CYTpBP4MAjRXCQDDh0oow_0[3].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[3].offset = offsetof(tyObject_Asn1Buffer__a5EmYcJjKFxSSJOn8BKx9bA, length);
TM__3CYTpBP4MAjRXCQDDh0oow_0[3].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[3].name = "length";
TM__3CYTpBP4MAjRXCQDDh0oow_0[0].len = 3; TM__3CYTpBP4MAjRXCQDDh0oow_0[0].kind = 2; TM__3CYTpBP4MAjRXCQDDh0oow_0[0].sons = &TM__3CYTpBP4MAjRXCQDDh0oow_2_3[0];
NTI__a5EmYcJjKFxSSJOn8BKx9bA_.node = &TM__3CYTpBP4MAjRXCQDDh0oow_0[0];
NTI__nDo9cwlNrRu8ntu170HnAFg_.size = sizeof(tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg);
NTI__nDo9cwlNrRu8ntu170HnAFg_.kind = 17;
NTI__nDo9cwlNrRu8ntu170HnAFg_.base = (&NTI__a5EmYcJjKFxSSJOn8BKx9bA_);
NTI__nDo9cwlNrRu8ntu170HnAFg_.name = "Asn1Composite";
NTI__nDo9cwlNrRu8ntu170HnAFg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__nDo9cwlNrRu8ntu170HnAFg_;
TM__3CYTpBP4MAjRXCQDDh0oow_3_2[0] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[5];
NTI__hBLeLVrzEfHzr0vieTv9ayg_.size = sizeof(tyEnum_Asn1Tag__hBLeLVrzEfHzr0vieTv9ayg);
NTI__hBLeLVrzEfHzr0vieTv9ayg_.kind = 14;
NTI__hBLeLVrzEfHzr0vieTv9ayg_.base = 0;
NTI__hBLeLVrzEfHzr0vieTv9ayg_.flags = 3;
NTI__hBLeLVrzEfHzr0vieTv9ayg_.name = "Asn1Tag";
NTI__hBLeLVrzEfHzr0vieTv9ayg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__hBLeLVrzEfHzr0vieTv9ayg_;
for (TM__3CYTpBP4MAjRXCQDDh0oow_6 = 0; TM__3CYTpBP4MAjRXCQDDh0oow_6 < 9; TM__3CYTpBP4MAjRXCQDDh0oow_6++) {
TM__3CYTpBP4MAjRXCQDDh0oow_0[TM__3CYTpBP4MAjRXCQDDh0oow_6+6].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[TM__3CYTpBP4MAjRXCQDDh0oow_6+6].offset = TM__3CYTpBP4MAjRXCQDDh0oow_6;
TM__3CYTpBP4MAjRXCQDDh0oow_0[TM__3CYTpBP4MAjRXCQDDh0oow_6+6].name = TM__3CYTpBP4MAjRXCQDDh0oow_5[TM__3CYTpBP4MAjRXCQDDh0oow_6];
TM__3CYTpBP4MAjRXCQDDh0oow_4_9[TM__3CYTpBP4MAjRXCQDDh0oow_6] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[TM__3CYTpBP4MAjRXCQDDh0oow_6+6];
}
TM__3CYTpBP4MAjRXCQDDh0oow_0[15].len = 9; TM__3CYTpBP4MAjRXCQDDh0oow_0[15].kind = 2; TM__3CYTpBP4MAjRXCQDDh0oow_0[15].sons = &TM__3CYTpBP4MAjRXCQDDh0oow_4_9[0];
NTI__hBLeLVrzEfHzr0vieTv9ayg_.node = &TM__3CYTpBP4MAjRXCQDDh0oow_0[15];
TM__3CYTpBP4MAjRXCQDDh0oow_0[5].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[5].offset = offsetof(tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg, tag);
TM__3CYTpBP4MAjRXCQDDh0oow_0[5].typ = (&NTI__hBLeLVrzEfHzr0vieTv9ayg_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[5].name = "tag";
TM__3CYTpBP4MAjRXCQDDh0oow_3_2[1] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[16];
TM__3CYTpBP4MAjRXCQDDh0oow_0[16].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[16].offset = offsetof(tyObject_Asn1Composite__nDo9cwlNrRu8ntu170HnAFg, idx);
TM__3CYTpBP4MAjRXCQDDh0oow_0[16].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[16].name = "idx";
TM__3CYTpBP4MAjRXCQDDh0oow_0[4].len = 2; TM__3CYTpBP4MAjRXCQDDh0oow_0[4].kind = 2; TM__3CYTpBP4MAjRXCQDDh0oow_0[4].sons = &TM__3CYTpBP4MAjRXCQDDh0oow_3_2[0];
NTI__nDo9cwlNrRu8ntu170HnAFg_.node = &TM__3CYTpBP4MAjRXCQDDh0oow_0[4];
NTI__AJb9cQQSJ8hA8TA2i9b34qGg_.size = sizeof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg);
NTI__AJb9cQQSJ8hA8TA2i9b34qGg_.kind = 18;
NTI__AJb9cQQSJ8hA8TA2i9b34qGg_.base = 0;
NTI__AJb9cQQSJ8hA8TA2i9b34qGg_.flags = 2;
NTI__AJb9cQQSJ8hA8TA2i9b34qGg_.name = "Asn1Field";
NTI__AJb9cQQSJ8hA8TA2i9b34qGg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__AJb9cQQSJ8hA8TA2i9b34qGg_;
TM__3CYTpBP4MAjRXCQDDh0oow_74_6[0] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[18];
NTI__FtwzcKvXucMBl21sNqjtJA_.size = sizeof(tyEnum_Asn1Class__FtwzcKvXucMBl21sNqjtJA);
NTI__FtwzcKvXucMBl21sNqjtJA_.kind = 14;
NTI__FtwzcKvXucMBl21sNqjtJA_.base = 0;
NTI__FtwzcKvXucMBl21sNqjtJA_.flags = 3;
NTI__FtwzcKvXucMBl21sNqjtJA_.name = "Asn1Class";
NTI__FtwzcKvXucMBl21sNqjtJA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__FtwzcKvXucMBl21sNqjtJA_;
for (TM__3CYTpBP4MAjRXCQDDh0oow_77 = 0; TM__3CYTpBP4MAjRXCQDDh0oow_77 < 4; TM__3CYTpBP4MAjRXCQDDh0oow_77++) {
TM__3CYTpBP4MAjRXCQDDh0oow_0[TM__3CYTpBP4MAjRXCQDDh0oow_77+19].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[TM__3CYTpBP4MAjRXCQDDh0oow_77+19].offset = TM__3CYTpBP4MAjRXCQDDh0oow_77;
TM__3CYTpBP4MAjRXCQDDh0oow_0[TM__3CYTpBP4MAjRXCQDDh0oow_77+19].name = TM__3CYTpBP4MAjRXCQDDh0oow_76[TM__3CYTpBP4MAjRXCQDDh0oow_77];
TM__3CYTpBP4MAjRXCQDDh0oow_75_4[TM__3CYTpBP4MAjRXCQDDh0oow_77] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[TM__3CYTpBP4MAjRXCQDDh0oow_77+19];
}
TM__3CYTpBP4MAjRXCQDDh0oow_0[23].len = 4; TM__3CYTpBP4MAjRXCQDDh0oow_0[23].kind = 2; TM__3CYTpBP4MAjRXCQDDh0oow_0[23].sons = &TM__3CYTpBP4MAjRXCQDDh0oow_75_4[0];
NTI__FtwzcKvXucMBl21sNqjtJA_.node = &TM__3CYTpBP4MAjRXCQDDh0oow_0[23];
TM__3CYTpBP4MAjRXCQDDh0oow_0[18].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[18].offset = offsetof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg, klass);
TM__3CYTpBP4MAjRXCQDDh0oow_0[18].typ = (&NTI__FtwzcKvXucMBl21sNqjtJA_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[18].name = "klass";
TM__3CYTpBP4MAjRXCQDDh0oow_74_6[1] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[24];
TM__3CYTpBP4MAjRXCQDDh0oow_0[24].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[24].offset = offsetof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg, index);
TM__3CYTpBP4MAjRXCQDDh0oow_0[24].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[24].name = "index";
TM__3CYTpBP4MAjRXCQDDh0oow_74_6[2] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[25];
TM__3CYTpBP4MAjRXCQDDh0oow_0[25].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[25].offset = offsetof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg, offset);
TM__3CYTpBP4MAjRXCQDDh0oow_0[25].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[25].name = "offset";
TM__3CYTpBP4MAjRXCQDDh0oow_74_6[3] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[26];
TM__3CYTpBP4MAjRXCQDDh0oow_0[26].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[26].offset = offsetof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg, length);
TM__3CYTpBP4MAjRXCQDDh0oow_0[26].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[26].name = "length";
TM__3CYTpBP4MAjRXCQDDh0oow_74_6[4] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[27];
TM__3CYTpBP4MAjRXCQDDh0oow_0[27].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[27].offset = offsetof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg, buffer);
TM__3CYTpBP4MAjRXCQDDh0oow_0[27].typ = (&NTI__6H5Oh5UUvVCLiakt9aTwtUQ_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[27].name = "buffer";
TM__3CYTpBP4MAjRXCQDDh0oow_74_6[5] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[28];
TM__3CYTpBP4MAjRXCQDDh0oow_0[28].kind = 3;
TM__3CYTpBP4MAjRXCQDDh0oow_0[28].offset = offsetof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg, kind);
TM__3CYTpBP4MAjRXCQDDh0oow_0[28].typ = (&NTI__hBLeLVrzEfHzr0vieTv9ayg_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[28].name = "kind";
TM__3CYTpBP4MAjRXCQDDh0oow_0[28].sons = &NimDT___AJb9cQQSJ8hA8TA2i9b34qGg_kind[0];
TM__3CYTpBP4MAjRXCQDDh0oow_0[28].len = 9;
TM__3CYTpBP4MAjRXCQDDh0oow_0[29].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[29].offset = offsetof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg, _kind_1.vbool);
TM__3CYTpBP4MAjRXCQDDh0oow_0[29].typ = (&NTI__VaVACK0bpYmqIQ0mKcHfQQ_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[29].name = "vbool";
NimDT___AJb9cQQSJ8hA8TA2i9b34qGg_kind[1] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[29];
TM__3CYTpBP4MAjRXCQDDh0oow_0[30].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[30].offset = offsetof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg, _kind_2.vint);
TM__3CYTpBP4MAjRXCQDDh0oow_0[30].typ = (&NTI__wMtfD88jmrPZwfzTH9c8e9cA_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[30].name = "vint";
NimDT___AJb9cQQSJ8hA8TA2i9b34qGg_kind[2] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[30];
TM__3CYTpBP4MAjRXCQDDh0oow_0[31].kind = 1;
TM__3CYTpBP4MAjRXCQDDh0oow_0[31].offset = offsetof(tyObject_Asn1Field__AJb9cQQSJ8hA8TA2i9b34qGg, _kind_3.ubits);
TM__3CYTpBP4MAjRXCQDDh0oow_0[31].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
TM__3CYTpBP4MAjRXCQDDh0oow_0[31].name = "ubits";
NimDT___AJb9cQQSJ8hA8TA2i9b34qGg_kind[3] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[31];
TM__3CYTpBP4MAjRXCQDDh0oow_0[32].len = 0; TM__3CYTpBP4MAjRXCQDDh0oow_0[32].kind = 2;
NimDT___AJb9cQQSJ8hA8TA2i9b34qGg_kind[9] = &TM__3CYTpBP4MAjRXCQDDh0oow_0[32];
TM__3CYTpBP4MAjRXCQDDh0oow_0[17].len = 6; TM__3CYTpBP4MAjRXCQDDh0oow_0[17].kind = 2; TM__3CYTpBP4MAjRXCQDDh0oow_0[17].sons = &TM__3CYTpBP4MAjRXCQDDh0oow_74_6[0];
NTI__AJb9cQQSJ8hA8TA2i9b34qGg_.node = &TM__3CYTpBP4MAjRXCQDDh0oow_0[17];
}