/* Generated by Nim Compiler v1.0.4 */
/*   (c) 2019 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64

#include "nimbase.h"
#include <string.h>
#include <stdio.h>
#undef LANGUAGE_C
#undef MIPSEB
#undef MIPSEL
#undef PPC
#undef R3000
#undef R4000
#undef i386
#undef linux
#undef mips
#undef near
#undef far
#undef powerpc
#undef unix
#define nimfr_(x, y)
#define nimln_(x, y)
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw;
typedef struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA;
typedef struct Exception Exception;
typedef struct RootObj RootObj;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
typedef struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ tySequence__sM4lkSb7zS6F7OVMvW9cffQ;
typedef struct tyTuple__UV3llMMYFckfui8YMBuUZA tyTuple__UV3llMMYFckfui8YMBuUZA;
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
struct TGenericSeq {
NI len;
NI reserved;
};
struct NimStringDesc {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 tySet_tyChar__nmiMWKVIe46vacnhAFrQvw[32];
typedef NI tyArray__9cc9aPiDa8VaWjVcFLabEDZQ[256];
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;
};
struct RootObj {
TNimType* m_type;
};
struct Exception {
  RootObj Sup;
Exception* parent;
NCSTRING name;
NimStringDesc* message;
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
NU raiseId;
Exception* up;
};
struct tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA {
  Exception Sup;
};
struct tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw {
  tyObject_CatchableError__qrLSDoe2oBoAqNtJ9badtnA Sup;
};
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
struct TNimNode {
tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {
NI refcount;
TNimType* typ;
};
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {
void* bottom;
};
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {
NI len;
NI cap;
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
};
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {
tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
};
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {
tyArray__0aOLqZchNi8nWtMTi8ND8w link;
NI key;
NI upperBound;
NI level;
};
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
NI Field1;
};
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {
NI len;
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
};
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {
NI minLargeObj;
NI maxLargeObj;
tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
NU32 flBitmap;
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
NI currMem;
NI maxMem;
NI freeMem;
NI occ;
NI lastSize;
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
NIM_BOOL locked;
NIM_BOOL blockChunkSizeIncrease;
NI nextChunkSize;
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
};
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {
NI stackScans;
NI cycleCollections;
NI maxThreshold;
NI maxStackSize;
NI maxStackCells;
NI cycleTableSize;
NI64 maxPause;
};
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {
NI counter;
NI max;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
};
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {
tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
NI cycleThreshold;
NI zctThreshold;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
NI recGcLock;
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
NI gcThreadId;
};
typedef NimStringDesc* tyArray__nHXaesL0DJZHyVS07ARPRA[1];
struct tyTuple__UV3llMMYFckfui8YMBuUZA {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
typedef NU8 tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ;
typedef NU8 tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA;
typedef NU8 tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw;
typedef NU8 tyEnum_BinaryPrefixMode__nDtrM19b3byM8T9ab2m7BwvA;
typedef NimStringDesc* tyArray__17w6ns39bmjfAZ429aQpCFUA[9];
typedef NU8 tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ;
typedef NIM_CHAR tyArray__9bPFPkkEEeeNM9bKgiV8Q49cg[6];
typedef NIM_CHAR tyArray__Kn8ZOVsorvcNLB4isUeMzQ[2501];
typedef NIM_CHAR tyArray__vB7L5YKNrMfbzoUubCEcYg[3];
typedef NIM_CHAR tyArray__1N75LKnZklmK4NsXtZ9bZiA[2];
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {
NCSTRING procname;
NI line;
NCSTRING filename;
};
struct tySequence__sM4lkSb7zS6F7OVMvW9cffQ {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct tySequence__uB9b75OUPRENsBAu4AnoePA {
  TGenericSeq Sup;
  tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];
};
N_NIMCALL(NimStringDesc*, mnewString)(NI len);
static N_INLINE(NI, subInt)(NI a, NI b);
N_NOINLINE(void, raiseOverflow)(void);
N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
N_LIB_PRIVATE N_NIMCALL(NIM_CHAR, nsuToLowerAsciiChar)(NIM_CHAR c);
static N_INLINE(NI, addInt)(NI a, NI b);
static N_INLINE(NI, chckRange)(NI i, NI a, NI b);
N_NOINLINE(void, raiseRangeError)(NI64 val);
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindChar)(NimStringDesc* s, NIM_CHAR sub, NI start, NI last);
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__2yh9cer0ymNRHlOOg8P7IuA)(NimStringDesc* s, NI first, NI last);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, substr__iGg0RIKceRvsmvq8FUHOEw)(NimStringDesc* s, NI first);
N_LIB_PRIVATE N_NIMCALL(void, nsuInitSkipTable)(NI* a, NimStringDesc* sub);
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindStrA)(tyArray__9cc9aPiDa8VaWjVcFLabEDZQ a, NimStringDesc* s, NimStringDesc* sub, NI start, NI last);
N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newLen);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_LIB_PRIVATE N_NIMCALL(void, nsuAddf)(NimStringDesc** s, NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0);
N_LIB_PRIVATE N_NOINLINE(void, invalidFormatString__8vOMwvNB8blLQSoRXfInAg)(void);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(NI, mulInt)(NI a, NI b);
N_LIB_PRIVATE N_NIMCALL(NI, findNormalized__7LxW6wQxHkQGOeaPw6nEjQ)(NimStringDesc* x, NimStringDesc** inArray, NI inArrayLen_0);
N_LIB_PRIVATE N_NIMCALL(NI, nsuCmpIgnoreStyle)(NimStringDesc* a, NimStringDesc* b);
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindStr)(NimStringDesc* s, NimStringDesc* sub, NI start, NI last);
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_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringDesc* s, NimStringDesc* prefix);
N_LIB_PRIVATE N_NIMCALL(NI, parseHex__5URmSDed0NZg9au720T3U9aA)(NimStringDesc* s, NI* number, NI start, NI maxLen);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuEndsWith)(NimStringDesc* s, NimStringDesc* suffix);
N_NIMCALL(TGenericSeq*, incrSeqV3)(TGenericSeq* s, TNimType* typ);
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindCharSet)(NimStringDesc* s, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars, NI start, NI last);
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuContinuesWith)(NimStringDesc* s, NimStringDesc* substr, NI start);
N_LIB_PRIVATE N_NIMCALL(NI, npuParseInt)(NimStringDesc* s, NI* number, NI start);
static N_INLINE(NI, modInt)(NI a, NI b);
N_NOINLINE(void, raiseDivByZero)(void);
static N_INLINE(NI, divInt)(NI a, NI b);
N_NIMCALL(NimStringDesc*, reprEnum)(NI e, TNimType* typ);
N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size);
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size);
N_NIMCALL(NI, hashString)(NimStringDesc* s);
N_LIB_PRIVATE N_NIMCALL(NI, npuParseFloat)(NimStringDesc* s, NF* number, NI start);
N_LIB_PRIVATE N_NIMCALL(NI, npuParseBiggestInt)(NimStringDesc* s, NI64* number, NI start);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuToHex)(NI64 x, NI len);
N_NIMCALL(void, genericAssign)(void* dest, void* src, TNimType* mt);
static N_INLINE(NI64, divInt64)(NI64 a, NI64 b);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuformatFloat)(NF f, tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ format, NI precision, NIM_CHAR decimalSep);
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuformatBiggestFloat)(NF f, tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ format, NI precision, NIM_CHAR decimalSep);
N_LIB_PRIVATE N_NIMCALL(void, trimZeros__0OVKyF6Hf9aFGirS1iJE8lQ)(NimStringDesc** x);
static N_INLINE(NIM_BOOL, contains__Pa9a8m0kZYH6LC8N1EcZJdQsystem)(NIM_CHAR* a, NI aLen_0, NIM_CHAR item);
static N_INLINE(NI, find__31wM5Ui9c8jnrQ5QD4oPxOQsystem)(NIM_CHAR* a, NI aLen_0, NIM_CHAR item);
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, nsuSplitChar)(NimStringDesc* s, NIM_CHAR sep, NI maxsplit);
extern TNimType NTI__Ie1m0dv1ZHg72IgPRr1cDw_;
extern TNimType NTI__yoNlBGx0D2tRizIdhQuENw_;
extern tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
extern TNimType NTI__sM4lkSb7zS6F7OVMvW9cffQ_;
extern TNimType NTI__01UoAKYz1MxZiuG1X2VhNQ_;
extern TNimType NTI__hGCD9aOrxPvpXn4Ne6W6OVA_;
extern TNimType NTI__tnd4qt9c4xddV8oKV5zyusw_;
extern TNimType NTI__77mFvmsOLKik79ci2hXkHEg_;
TNimType NTI__17w6ns39bmjfAZ429aQpCFUA_;
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_3, "0123456789ABCDEF", 16);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_12, "iterators.nim(207, 11) `len(a) == L` the length of the string c"
"hanged while iterating over it", 93);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_46, "invalid format string", 21);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_78, "strutils.nim(2007, 12) `sub.len > 0` ", 37);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_89, "String does not start with: ", 28);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_96, "\\", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_100, "String does not end in: ", 24);
static NIM_CONST tySet_tyChar__nmiMWKVIe46vacnhAFrQvw TM__JGc9b9bh2D3nTdUR7TGyq8aA_115 = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
;
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_128, "invalid hex integer: ", 21);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_129, "invalid integer: ", 17);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_135, "invalid enum value: ", 20);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_137, "strutils.nim(901, 9) `len > 0` ", 31);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_141, "strutils.nim(926, 9) `len > 0` ", 31);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_147, "y", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_148, "yes", 3);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_149, "true", 4);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_150, "1", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_151, "on", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_152, "n", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_153, "no", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_154, "false", 5);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_155, "0", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_156, "off", 3);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_157, "cannot interpret as a bool: ", 28);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_158, "invalid float: ", 15);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_166, "\\x", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_167, "\\\\", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_168, "\\\'", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_169, "\\\"", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_182, "k", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_183, "M", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_184, "G", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_185, "T", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_186, "P", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_187, "E", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_188, "Z", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_189, "Y", 1);
NIM_CONST tyArray__17w6ns39bmjfAZ429aQpCFUA collPrefixes__biGTDQtLn0RX9aMOaFztEcQ = {((NimStringDesc*) NIM_NIL),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_182),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_183),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_184),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_185),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_186),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_187),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_188),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_189)}
;
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_190, "Ki", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_191, "Mi", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_192, "Gi", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_193, "Ti", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_194, "Pi", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_195, "Ei", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_196, "Zi", 2);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_197, "Yi", 2);
NIM_CONST tyArray__17w6ns39bmjfAZ429aQpCFUA iecPrefixes__sg9cD5AlNYzrrY1lS9aWp9bJA = {((NimStringDesc*) NIM_NIL),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_190),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_191),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_192),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_193),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_194),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_195),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_196),
((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_197)}
;
NIM_CONST tyArray__vB7L5YKNrMfbzoUubCEcYg floatFormatToChar__WVISPus3ZqCVSuP9bzn9cVxw = {103,
102,
101}
;
NIM_CONST tyArray__1N75LKnZklmK4NsXtZ9bZiA TM__JGc9b9bh2D3nTdUR7TGyq8aA_207 = {44,
46}
;
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_209, "e", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_210, " ", 1);
STRING_LITERAL(TM__JGc9b9bh2D3nTdUR7TGyq8aA_211, "B", 1);
static N_INLINE(NI, subInt)(NI a, NI b) {	NI result;
{	result = (NI)0;
	result = (NI)((NU64)(a) - (NU64)(b));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (((NI) 0) <= (NI)(result ^ a));
		if (T3_) goto LA4_;
		T3_ = (((NI) 0) <= (NI)(result ^ (NI)((NU64) ~(b))));
		LA4_: ;
		if (!T3_) goto LA5_;
		goto BeforeRet_;
	}
	LA5_: ;
	raiseOverflow();
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuToHex)(NI64 x, NI len) {	NimStringDesc* result;
	NI64 n;
	result = (NimStringDesc*)0;
	n = x;
	result = mnewString(((NI) (len)));
	{
		NI j;
		NI colontmp_;
		NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_2;
		NI res;
		j = (NI)0;
		colontmp_ = (NI)0;
		TM__JGc9b9bh2D3nTdUR7TGyq8aA_2 = subInt(((NI) (len)), ((NI) 1));
		colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_2);
		res = colontmp_;
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_4;
				if (!(((NI) 0) <= res)) goto LA3;
				j = res;
				if ((NU)(j) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(j,(result ? result->Sup.len : 0)-1);
				if ((NU)((NI64)(n & IL64(15))) >= (NU)(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_3) ? ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_3)->Sup.len : 0)) raiseIndexError2((NI64)(n & IL64(15)),(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_3) ? ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_3)->Sup.len : 0)-1);
				result->data[j] = ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_3)->data[(NI64)(n & IL64(15))];
				n = (NI64)((NI64)(n) >> (NU64)(((NI) 4)));
				{
					NIM_BOOL T6_;
					T6_ = (NIM_BOOL)0;
					T6_ = (n == IL64(0));
					if (!(T6_)) goto LA7_;
					T6_ = (x < IL64(0));
					LA7_: ;
					if (!T6_) goto LA8_;
					n = IL64(-1);
				}
				LA8_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_4 = subInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_4);
			} LA3: ;
		}
	}
	return result;
}
static N_INLINE(NI, addInt)(NI a, NI b) {	NI result;
{	result = (NI)0;
	result = (NI)((NU64)(a) + (NU64)(b));
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (((NI) 0) <= (NI)(result ^ a));
		if (T3_) goto LA4_;
		T3_ = (((NI) 0) <= (NI)(result ^ b));
		LA4_: ;
		if (!T3_) goto LA5_;
		goto BeforeRet_;
	}
	LA5_: ;
	raiseOverflow();
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NI, chckRange)(NI i, NI a, NI b) {	NI result;
{	result = (NI)0;
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (a <= i);
		if (!(T3_)) goto LA4_;
		T3_ = (i <= b);
		LA4_: ;
		if (!T3_) goto LA5_;
		result = i;
		goto BeforeRet_;
	}
	goto LA1_;
	LA5_: ;
	{
		raiseRangeError(((NI64) (i)));
	}
	LA1_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_CHAR, nsuToLowerAsciiChar)(NIM_CHAR c) {	NIM_CHAR result;
	result = (NIM_CHAR)0;
	{
		NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_5;
		if (!(((NU8)(c)) >= ((NU8)(65)) && ((NU8)(c)) <= ((NU8)(90)))) goto LA3_;
		TM__JGc9b9bh2D3nTdUR7TGyq8aA_5 = addInt(((NU8)(c)), ((NI) 32));
		result = ((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_5), ((NI) 0), ((NI) 255)))));
	}
	goto LA1_;
	LA3_: ;
	{
		result = c;
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, nsuCmpIgnoreStyle)(NimStringDesc* a, NimStringDesc* b) {	NI result;
	NI i;
	NI j;
{	result = (NI)0;
	i = ((NI) 0);
	j = ((NI) 0);
	{
		while (1) {
			NIM_CHAR aa;
			NIM_CHAR bb;
			{
				while (1) {
					NIM_BOOL T5_;
					T5_ = (NIM_BOOL)0;
					T5_ = (i < (a ? a->Sup.len : 0));
					if (!(T5_)) goto LA6_;
					T5_ = ((NU8)(a->data[i]) == (NU8)(95));
					LA6_: ;
					if (!T5_) goto LA4;
					i += ((NI) 1);
				} LA4: ;
			}
			{
				while (1) {
					NIM_BOOL T9_;
					T9_ = (NIM_BOOL)0;
					T9_ = (j < (b ? b->Sup.len : 0));
					if (!(T9_)) goto LA10_;
					T9_ = ((NU8)(b->data[j]) == (NU8)(95));
					LA10_: ;
					if (!T9_) goto LA8;
					j += ((NI) 1);
				} LA8: ;
			}
			{
				if (!(i < (a ? a->Sup.len : 0))) goto LA13_;
				aa = nsuToLowerAsciiChar(a->data[i]);
			}
			goto LA11_;
			LA13_: ;
			{
				aa = 0;
			}
			LA11_: ;
			{
				if (!(j < (b ? b->Sup.len : 0))) goto LA18_;
				bb = nsuToLowerAsciiChar(b->data[j]);
			}
			goto LA16_;
			LA18_: ;
			{
				bb = 0;
			}
			LA16_: ;
			result = (NI)(((NU8)(aa)) - ((NU8)(bb)));
			{
				if (!!((result == ((NI) 0)))) goto LA23_;
				goto BeforeRet_;
			}
			LA23_: ;
			{
				if (!((a ? a->Sup.len : 0) <= i)) goto LA27_;
				{
					if (!((b ? b->Sup.len : 0) <= j)) goto LA31_;
					result = ((NI) 0);
					goto BeforeRet_;
				}
				LA31_: ;
				result = ((NI) -1);
				goto BeforeRet_;
			}
			goto LA25_;
			LA27_: ;
			{
				if (!((b ? b->Sup.len : 0) <= j)) goto LA34_;
				result = ((NI) 1);
				goto BeforeRet_;
			}
			goto LA25_;
			LA34_: ;
			LA25_: ;
			i += ((NI) 1);
			j += ((NI) 1);
		}
	}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuEndsWith)(NimStringDesc* s, NimStringDesc* suffix) {	NIM_BOOL result;
	NI i;
	NI j;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_6;
{	result = (NIM_BOOL)0;
	i = ((NI) 0);
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_6 = subInt((s ? s->Sup.len : 0), (suffix ? suffix->Sup.len : 0));
	j = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_6);
	{
		while (1) {
			NIM_BOOL T3_;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_7;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_8;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_10;
			T3_ = (NIM_BOOL)0;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_7 = addInt(i, j);
			T3_ = (((NI) 0) <= (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_7));
			if (!(T3_)) goto LA4_;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_8 = addInt(i, j);
			T3_ = ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_8) < (s ? s->Sup.len : 0));
			LA4_: ;
			if (!T3_) goto LA2;
			{
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_9;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_9 = addInt(i, j);
				if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_9)) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_9),(s ? s->Sup.len : 0)-1);
				if ((NU)(i) >= (NU)(suffix ? suffix->Sup.len : 0)) raiseIndexError2(i,(suffix ? suffix->Sup.len : 0)-1);
				if (!!(((NU8)(s->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_9)]) == (NU8)(suffix->data[i])))) goto LA7_;
				result = NIM_FALSE;
				goto BeforeRet_;
			}
			LA7_: ;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_10 = addInt(i, ((NI) 1));
			i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_10);
		} LA2: ;
	}
	{
		if (!((suffix ? suffix->Sup.len : 0) <= i)) goto LA11_;
		result = NIM_TRUE;
		goto BeforeRet_;
	}
	LA11_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, allCharsInSet__dubrHoRt3C9a0HlJjsxM5ig)(NimStringDesc* s, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw theSet) {	NIM_BOOL result;
{	result = (NIM_BOOL)0;
	{
		NIM_CHAR c;
		NI i;
		NI L;
		c = (NIM_CHAR)0;
		i = ((NI) 0);
		L = (s ? s->Sup.len : 0);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_11;
				if (!(i < L)) goto LA3;
				if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
				c = s->data[i];
				{
					if (!!(((theSet[(NU)(((NU8)(c)))>>3] &(1U<<((NU)(((NU8)(c)))&7U)))!=0))) goto LA6_;
					result = NIM_FALSE;
					goto BeforeRet_;
				}
				LA6_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_11 = addInt(i, ((NI) 1));
				i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_11);
				{
					if (!!(((s ? s->Sup.len : 0) == L))) goto LA10_;
					failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_12));
				}
				LA10_: ;
			} LA3: ;
		}
	}
	result = NIM_TRUE;
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NCSTRING, nimToCStringConv)(NimStringDesc* s) {	NCSTRING result;
	result = (NCSTRING)0;
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = (s == NIM_NIL);
		if (T3_) goto LA4_;
		T3_ = ((*s).Sup.len == ((NI) 0));
		LA4_: ;
		if (!T3_) goto LA5_;
		result = "";
	}
	goto LA1_;
	LA5_: ;
	{
		result = ((NCSTRING) ((*s).data));
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindChar)(NimStringDesc* s, NIM_CHAR sub, NI start, NI last) {	NI result;
	NI last_2;
	NI L;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_13;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_14;
{	result = (NI)0;
	{
		if (!(last == ((NI) 0))) goto LA3_;
		last_2 = ((s ? s->Sup.len : 0)-1);
	}
	goto LA1_;
	LA3_: ;
	{
		last_2 = last;
	}
	LA1_: ;
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_13 = subInt(last_2, ((NI) (start)));
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_14 = addInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_13), ((NI) 1));
	L = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_14);
	{
		void* found;
		if (!(((NI) 0) < L)) goto LA8_;
		if ((NU)(start) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(start,(s ? s->Sup.len : 0)-1);
		found = memchr(((void*) ((&s->data[start]))), sub, L);
		{
			if (!!((found == 0))) goto LA12_;
			result = (NI)((NU64)(((NI) (ptrdiff_t) (found))) - (NU64)(((NI) (nimToCStringConv(s)))));
			goto BeforeRet_;
		}
		LA12_: ;
	}
	LA8_: ;
	result = ((NI) -1);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) {	void* T1_;
	T1_ = (void*)0;
	T1_ = memcpy(dest, source, ((size_t) (size)));
}
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {	nimCopyMem(dest, source, size);
}
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {	{
		if (!!((src == NIM_NIL))) goto LA3_;
		copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
		(*dest).Sup.len += (*src).Sup.len;
	}
	LA3_: ;
}
N_LIB_PRIVATE N_NIMCALL(void, nsuInitSkipTable)(NI* a, NimStringDesc* sub) {	NI m;
	NI i;
	m = (sub ? sub->Sup.len : 0);
	i = ((NI) 0);
	{
		while (1) {
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_17;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_18;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_19;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_20;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_21;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_22;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_23;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_24;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_25;
			if (!(i <= ((NI) 248))) goto LA2;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_17 = addInt(i, ((NI) 0));
			a[(((NU8)(((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_17), ((NI) 0), ((NI) 255))))))))- 0] = m;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_18 = addInt(i, ((NI) 1));
			a[(((NU8)(((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_18), ((NI) 0), ((NI) 255))))))))- 0] = m;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_19 = addInt(i, ((NI) 2));
			a[(((NU8)(((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_19), ((NI) 0), ((NI) 255))))))))- 0] = m;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_20 = addInt(i, ((NI) 3));
			a[(((NU8)(((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_20), ((NI) 0), ((NI) 255))))))))- 0] = m;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_21 = addInt(i, ((NI) 4));
			a[(((NU8)(((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_21), ((NI) 0), ((NI) 255))))))))- 0] = m;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_22 = addInt(i, ((NI) 5));
			a[(((NU8)(((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_22), ((NI) 0), ((NI) 255))))))))- 0] = m;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_23 = addInt(i, ((NI) 6));
			a[(((NU8)(((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_23), ((NI) 0), ((NI) 255))))))))- 0] = m;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_24 = addInt(i, ((NI) 7));
			a[(((NU8)(((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_24), ((NI) 0), ((NI) 255))))))))- 0] = m;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_25 = addInt(i, ((NI) 8));
			i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_25);
		} LA2: ;
	}
	{
		NI i_2;
		NI colontmp_;
		NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_26;
		NI i_3;
		i_2 = (NI)0;
		colontmp_ = (NI)0;
		TM__JGc9b9bh2D3nTdUR7TGyq8aA_26 = subInt(m, ((NI) 1));
		colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_26);
		i_3 = ((NI) 0);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_27;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_28;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_29;
				if (!(i_3 < colontmp_)) goto LA5;
				i_2 = i_3;
				if ((NU)(i_2) >= (NU)(sub ? sub->Sup.len : 0)) raiseIndexError2(i_2,(sub ? sub->Sup.len : 0)-1);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_27 = subInt(m, ((NI) 1));
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_28 = subInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_27), i_2);
				a[(((NU8)(sub->data[i_2])))- 0] = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_28);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_29 = addInt(i_3, ((NI) 1));
				i_3 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_29);
			} LA5: ;
		}
	}
}
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindStrA)(tyArray__9cc9aPiDa8VaWjVcFLabEDZQ a, NimStringDesc* s, NimStringDesc* sub, NI start, NI last) {	NI result;
	NI last_2;
	NI subLast;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_30;
	NI skip;
{	result = (NI)0;
	{
		if (!(last == ((NI) 0))) goto LA3_;
		last_2 = ((s ? s->Sup.len : 0)-1);
	}
	goto LA1_;
	LA3_: ;
	{
		last_2 = last;
	}
	LA1_: ;
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_30 = subInt((sub ? sub->Sup.len : 0), ((NI) 1));
	subLast = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_30);
	{
		if (!(subLast == ((NI) -1))) goto LA8_;
		result = ((NI) (start));
		goto BeforeRet_;
	}
	LA8_: ;
	skip = start;
	{
		while (1) {
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_31;
			NI i;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_34;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_35;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_31 = subInt(last_2, ((NI) (skip)));
			if (!(subLast <= (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_31))) goto LA11;
			i = subLast;
			{
				while (1) {
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_32;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_33;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_32 = addInt(((NI) (skip)), i);
					if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_32)) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_32),(s ? s->Sup.len : 0)-1);
					if ((NU)(i) >= (NU)(sub ? sub->Sup.len : 0)) raiseIndexError2(i,(sub ? sub->Sup.len : 0)-1);
					if (!((NU8)(s->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_32)]) == (NU8)(sub->data[i]))) goto LA13;
					{
						if (!(i == ((NI) 0))) goto LA16_;
						result = ((NI) (skip));
						goto BeforeRet_;
					}
					LA16_: ;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_33 = subInt(i, ((NI) 1));
					i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_33);
				} LA13: ;
			}
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_34 = addInt(((NI) (skip)), subLast);
			if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_34)) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_34),(s ? s->Sup.len : 0)-1);
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_35 = addInt(skip, a[(((NU8)(s->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_34)])))- 0]);
			if (TM__JGc9b9bh2D3nTdUR7TGyq8aA_35 < 0 || TM__JGc9b9bh2D3nTdUR7TGyq8aA_35 > IL64(9223372036854775807)) raiseOverflow();
			skip = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_35);
		} LA11: ;
	}
	result = ((NI) -1);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuReplaceStr)(NimStringDesc* s, NimStringDesc* sub, NimStringDesc* by) {	NimStringDesc* result;
	NI subLen;
	result = (NimStringDesc*)0;
	result = ((NimStringDesc*) NIM_NIL);
	subLen = (sub ? sub->Sup.len : 0);
	{
		if (!(subLen == ((NI) 0))) goto LA3_;
		result = copyString(s);
	}
	goto LA1_;
	LA3_: ;
	{
		NIM_CHAR c;
		NI last;
		NI i;
		NimStringDesc* T15_;
		if (!(subLen == ((NI) 1))) goto LA6_;
		if ((NU)(((NI) 0)) >= (NU)(sub ? sub->Sup.len : 0)) raiseIndexError2(((NI) 0),(sub ? sub->Sup.len : 0)-1);
		c = sub->data[((NI) 0)];
		last = ((s ? s->Sup.len : 0)-1);
		i = ((NI) 0);
		{
			while (1) {
				NI j;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_15;
				NimStringDesc* T14_;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_16;
				j = nsuFindChar(s, c, ((NI)chckRange(i, ((NI) 0), ((NI) IL64(9223372036854775807)))), last);
				{
					if (!(j < ((NI) 0))) goto LA12_;
					goto LA8;
				}
				LA12_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_15 = subInt(j, ((NI) 1));
				T14_ = (NimStringDesc*)0;
				T14_ = substr__2yh9cer0ymNRHlOOg8P7IuA(s, i, (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_15));
				result = resizeString(result, (T14_ ? T14_->Sup.len : 0) + 0);
appendString(result, T14_);
				result = resizeString(result, (by ? by->Sup.len : 0) + 0);
appendString(result, by);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_16 = addInt(j, subLen);
				i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_16);
			}
		} LA8: ;
		T15_ = (NimStringDesc*)0;
		T15_ = substr__iGg0RIKceRvsmvq8FUHOEw(s, i);
		result = resizeString(result, (T15_ ? T15_->Sup.len : 0) + 0);
appendString(result, T15_);
	}
	goto LA1_;
	LA6_: ;
	{
		tyArray__9cc9aPiDa8VaWjVcFLabEDZQ a;
		NI last_2;
		NI i_2;
		NimStringDesc* T24_;
		nsuInitSkipTable(a, sub);
		last_2 = ((s ? s->Sup.len : 0)-1);
		i_2 = ((NI) 0);
		{
			while (1) {
				NI j_2;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_36;
				NimStringDesc* T23_;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_37;
				j_2 = nsuFindStrA(a, s, sub, ((NI)chckRange(i_2, ((NI) 0), ((NI) IL64(9223372036854775807)))), last_2);
				{
					if (!(j_2 < ((NI) 0))) goto LA21_;
					goto LA17;
				}
				LA21_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_36 = subInt(j_2, ((NI) 1));
				T23_ = (NimStringDesc*)0;
				T23_ = substr__2yh9cer0ymNRHlOOg8P7IuA(s, i_2, (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_36));
				result = resizeString(result, (T23_ ? T23_->Sup.len : 0) + 0);
appendString(result, T23_);
				result = resizeString(result, (by ? by->Sup.len : 0) + 0);
appendString(result, by);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_37 = addInt(j_2, subLen);
				i_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_37);
			}
		} LA17: ;
		T24_ = (NimStringDesc*)0;
		T24_ = substr__iGg0RIKceRvsmvq8FUHOEw(s, i_2);
		result = resizeString(result, (T24_ ? T24_->Sup.len : 0) + 0);
appendString(result, T24_);
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s) {	NimStringDesc* result;
	NI j;
	result = (NimStringDesc*)0;
	result = mnewString(((NI)chckRange((s ? s->Sup.len : 0), ((NI) 0), ((NI) IL64(9223372036854775807)))));
	j = ((NI) 0);
	{
		NI i;
		NI colontmp_;
		NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_38;
		NI res;
		i = (NI)0;
		colontmp_ = (NI)0;
		TM__JGc9b9bh2D3nTdUR7TGyq8aA_38 = subInt((s ? s->Sup.len : 0), ((NI) 1));
		colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_38);
		res = ((NI) 0);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_42;
				if (!(res <= colontmp_)) goto LA3;
				i = res;
				{
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_39;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_40;
					if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
					if (!(((NU8)(s->data[i])) >= ((NU8)(65)) && ((NU8)(s->data[i])) <= ((NU8)(90)))) goto LA6_;
					if ((NU)(j) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(j,(result ? result->Sup.len : 0)-1);
					if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_39 = addInt(((NU8)(s->data[i])), ((NI) 32));
					result->data[j] = ((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_39), ((NI) 0), ((NI) 255)))));
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_40 = addInt(j, ((NI) 1));
					j = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_40);
				}
				goto LA4_;
				LA6_: ;
				{
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_41;
					if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
					if (!!(((NU8)(s->data[i]) == (NU8)(95)))) goto LA9_;
					if ((NU)(j) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(j,(result ? result->Sup.len : 0)-1);
					if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
					result->data[j] = s->data[i];
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_41 = addInt(j, ((NI) 1));
					j = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_41);
				}
				goto LA4_;
				LA9_: ;
				LA4_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_42 = addInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_42);
			} LA3: ;
		}
	}
	{
		if (!!((j == (s ? s->Sup.len : 0)))) goto LA13_;
		result = setLengthStr(result, ((NI)chckRange(j, ((NI) 0), ((NI) IL64(9223372036854775807)))));
	}
	LA13_: ;
	return result;
}
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {	addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
}
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {	(*c).refcount = (NI)((NU64)((*c).refcount) - (NU64)(((NI) 8)));
	{
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3_;
		rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
	}
	LA3_: ;
}
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) {	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result;
	result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
	result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) ((NI)((NU64)(((NI) (ptrdiff_t) (usr))) - (NU64)(((NI) 16)))));
	return result;
}
static N_INLINE(void, nimGCunrefNoCycle)(void* p) {	tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
	T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
	T1_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
	decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T1_);
}
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {	(*c).refcount = (NI)((NU64)((*c).refcount) + (NU64)(((NI) 8)));
}
static N_INLINE(void, asgnRef)(void** dest, void* src) {	{
		tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
		if (!!((src == NIM_NIL))) goto LA3_;
		T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
		T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src);
		incRef__AT1eRuflKWyTTBdLjEDZbg_3system(T5_);
	}
	LA3_: ;
	{
		tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
		if (!!(((*dest) == NIM_NIL))) goto LA8_;
		T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
		T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest));
		decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T10_);
	}
	LA8_: ;
	(*dest) = src;
}
N_LIB_PRIVATE N_NOINLINE(void, invalidFormatString__8vOMwvNB8blLQSoRXfInAg)(void) {	tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* eX60gensym290570_;
	NimStringDesc* T1_;
	eX60gensym290570_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
	eX60gensym290570_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
	(*eX60gensym290570_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
	(*eX60gensym290570_).Sup.Sup.name = "ValueError";
	T1_ = (NimStringDesc*)0;
	T1_ = (*eX60gensym290570_).Sup.Sup.message; (*eX60gensym290570_).Sup.Sup.message = copyStringRC1(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_46));
	if (T1_) nimGCunrefNoCycle(T1_);
	asgnRef((void**) (&(*eX60gensym290570_).Sup.Sup.parent), NIM_NIL);
	raiseExceptionEx((Exception*)eX60gensym290570_, "ValueError", "invalidFormatString", "strutils.nim", 2634);
}
N_LIB_PRIVATE N_NIMCALL(NI, findNormalized__7LxW6wQxHkQGOeaPw6nEjQ)(NimStringDesc* x, NimStringDesc** inArray, NI inArrayLen_0) {	NI result;
	NI i;
{	result = (NI)0;
	i = ((NI) 0);
	{
		while (1) {
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_66;
			if (!(i < (inArrayLen_0-1))) goto LA2;
			{
				NI T5_;
				if ((NU)(i) >= (NU)(inArrayLen_0)) raiseIndexError2(i,inArrayLen_0-1);
				T5_ = (NI)0;
				T5_ = nsuCmpIgnoreStyle(x, inArray[i]);
				if (!(T5_ == ((NI) 0))) goto LA6_;
				result = i;
				goto BeforeRet_;
			}
			LA6_: ;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_66 = addInt(i, ((NI) 2));
			i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_66);
		} LA2: ;
	}
	result = ((NI) -1);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, nsuAddf)(NimStringDesc** s, NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0) {	NI i;
	NI num;
	i = ((NI) 0);
	num = ((NI) 0);
	{
		while (1) {
			if (!(i < (formatstr ? formatstr->Sup.len : 0))) goto LA2;
			{
				NIM_BOOL T5_;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_44;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_45;
				T5_ = (NIM_BOOL)0;
				if ((NU)(i) >= (NU)(formatstr ? formatstr->Sup.len : 0)) raiseIndexError2(i,(formatstr ? formatstr->Sup.len : 0)-1);
				T5_ = ((NU8)(formatstr->data[i]) == (NU8)(36));
				if (!(T5_)) goto LA6_;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_44 = addInt(i, ((NI) 1));
				T5_ = ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_44) < (formatstr ? formatstr->Sup.len : 0));
				LA6_: ;
				if (!T5_) goto LA7_;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_45 = addInt(i, ((NI) 1));
				if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_45)) >= (NU)(formatstr ? formatstr->Sup.len : 0)) raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_45),(formatstr ? formatstr->Sup.len : 0)-1);
				switch (((NU8)(formatstr->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_45)]))) {
				case 35:
				{
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_47;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_48;
					{
						if (!((aLen_0-1) < num)) goto LA12_;
						invalidFormatString__8vOMwvNB8blLQSoRXfInAg();
					}
					LA12_: ;
					if ((NU)(num) >= (NU)(aLen_0)) raiseIndexError2(num,aLen_0-1);
					unsureAsgnRef((void**) (&(*s)), resizeString((*s), (a[num] ? a[num]->Sup.len : 0) + 0));
appendString((*s), a[num]);
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_47 = addInt(i, ((NI) 2));
					i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_47);
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_48 = addInt(num, ((NI) 1));
					num = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_48);
				}
				break;
				case 36:
				{
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_49;
					unsureAsgnRef((void**) (&(*s)), addChar((*s), 36));
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_49 = addInt(i, ((NI) 2));
					i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_49);
				}
				break;
				case 49 ... 57:
				case 45:
				{
					NI j;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_50;
					NIM_BOOL negative;
					NI idx;
					j = ((NI) 0);
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_50 = addInt(i, ((NI) 1));
					i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_50);
					if ((NU)(i) >= (NU)(formatstr ? formatstr->Sup.len : 0)) raiseIndexError2(i,(formatstr ? formatstr->Sup.len : 0)-1);
					negative = ((NU8)(formatstr->data[i]) == (NU8)(45));
					{
						NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_51;
						if (!negative) goto LA18_;
						TM__JGc9b9bh2D3nTdUR7TGyq8aA_51 = addInt(i, ((NI) 1));
						i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_51);
					}
					LA18_: ;
					{
						while (1) {
							NIM_BOOL T22_;
							NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_52;
							NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_53;
							NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_54;
							NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_55;
							T22_ = (NIM_BOOL)0;
							T22_ = (i < (formatstr ? formatstr->Sup.len : 0));
							if (!(T22_)) goto LA23_;
							if ((NU)(i) >= (NU)(formatstr ? formatstr->Sup.len : 0)) raiseIndexError2(i,(formatstr ? formatstr->Sup.len : 0)-1);
							T22_ = (((NU8)(formatstr->data[i])) >= ((NU8)(48)) && ((NU8)(formatstr->data[i])) <= ((NU8)(57)));
							LA23_: ;
							if (!T22_) goto LA21;
							TM__JGc9b9bh2D3nTdUR7TGyq8aA_52 = mulInt(j, ((NI) 10));
							if ((NU)(i) >= (NU)(formatstr ? formatstr->Sup.len : 0)) raiseIndexError2(i,(formatstr ? formatstr->Sup.len : 0)-1);
							TM__JGc9b9bh2D3nTdUR7TGyq8aA_53 = addInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_52), ((NU8)(formatstr->data[i])));
							TM__JGc9b9bh2D3nTdUR7TGyq8aA_54 = subInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_53), ((NI) 48));
							j = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_54);
							TM__JGc9b9bh2D3nTdUR7TGyq8aA_55 = addInt(i, ((NI) 1));
							i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_55);
						} LA21: ;
					}
					{
						NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_56;
						if (!!(negative)) goto LA26_;
						TM__JGc9b9bh2D3nTdUR7TGyq8aA_56 = subInt(j, ((NI) 1));
						idx = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_56);
					}
					goto LA24_;
					LA26_: ;
					{
						NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_57;
						TM__JGc9b9bh2D3nTdUR7TGyq8aA_57 = subInt(aLen_0, j);
						idx = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_57);
					}
					LA24_: ;
					{
						NIM_BOOL T31_;
						T31_ = (NIM_BOOL)0;
						T31_ = (idx < ((NI) 0));
						if (T31_) goto LA32_;
						T31_ = ((aLen_0-1) < idx);
						LA32_: ;
						if (!T31_) goto LA33_;
						invalidFormatString__8vOMwvNB8blLQSoRXfInAg();
					}
					LA33_: ;
					if ((NU)(idx) >= (NU)(aLen_0)) raiseIndexError2(idx,aLen_0-1);
					unsureAsgnRef((void**) (&(*s)), resizeString((*s), (a[idx] ? a[idx]->Sup.len : 0) + 0));
appendString((*s), a[idx]);
				}
				break;
				case 123:
				{
					NI j_2;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_58;
					NI k;
					NIM_BOOL negative_2;
					NI isNumber;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_70;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_58 = addInt(i, ((NI) 2));
					j_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_58);
					k = ((NI) 0);
					if ((NU)(j_2) >= (NU)(formatstr ? formatstr->Sup.len : 0)) raiseIndexError2(j_2,(formatstr ? formatstr->Sup.len : 0)-1);
					negative_2 = ((NU8)(formatstr->data[j_2]) == (NU8)(45));
					{
						NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_59;
						if (!negative_2) goto LA38_;
						TM__JGc9b9bh2D3nTdUR7TGyq8aA_59 = addInt(j_2, ((NI) 1));
						j_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_59);
					}
					LA38_: ;
					isNumber = ((NI) 0);
					{
						while (1) {
							NIM_BOOL T42_;
							NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_63;
							T42_ = (NIM_BOOL)0;
							T42_ = (j_2 < (formatstr ? formatstr->Sup.len : 0));
							if (!(T42_)) goto LA43_;
							if ((NU)(j_2) >= (NU)(formatstr ? formatstr->Sup.len : 0)) raiseIndexError2(j_2,(formatstr ? formatstr->Sup.len : 0)-1);
							T42_ = !((((NU8)(formatstr->data[j_2])) == ((NU8)(0)) || ((NU8)(formatstr->data[j_2])) == ((NU8)(125))));
							LA43_: ;
							if (!T42_) goto LA41;
							{
								NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_60;
								NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_61;
								NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_62;
								if ((NU)(j_2) >= (NU)(formatstr ? formatstr->Sup.len : 0)) raiseIndexError2(j_2,(formatstr ? formatstr->Sup.len : 0)-1);
								if (!(((NU8)(formatstr->data[j_2])) >= ((NU8)(48)) && ((NU8)(formatstr->data[j_2])) <= ((NU8)(57)))) goto LA46_;
								TM__JGc9b9bh2D3nTdUR7TGyq8aA_60 = mulInt(k, ((NI) 10));
								if ((NU)(j_2) >= (NU)(formatstr ? formatstr->Sup.len : 0)) raiseIndexError2(j_2,(formatstr ? formatstr->Sup.len : 0)-1);
								TM__JGc9b9bh2D3nTdUR7TGyq8aA_61 = addInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_60), ((NU8)(formatstr->data[j_2])));
								TM__JGc9b9bh2D3nTdUR7TGyq8aA_62 = subInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_61), ((NI) 48));
								k = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_62);
								{
									if (!(isNumber == ((NI) 0))) goto LA50_;
									isNumber = ((NI) 1);
								}
								LA50_: ;
							}
							goto LA44_;
							LA46_: ;
							{
								isNumber = ((NI) -1);
							}
							LA44_: ;
							TM__JGc9b9bh2D3nTdUR7TGyq8aA_63 = addInt(j_2, ((NI) 1));
							j_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_63);
						} LA41: ;
					}
					{
						NI idx_2;
						if (!(isNumber == ((NI) 1))) goto LA55_;
						{
							NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_64;
							if (!!(negative_2)) goto LA59_;
							TM__JGc9b9bh2D3nTdUR7TGyq8aA_64 = subInt(k, ((NI) 1));
							idx_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_64);
						}
						goto LA57_;
						LA59_: ;
						{
							NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_65;
							TM__JGc9b9bh2D3nTdUR7TGyq8aA_65 = subInt(aLen_0, k);
							idx_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_65);
						}
						LA57_: ;
						{
							NIM_BOOL T64_;
							T64_ = (NIM_BOOL)0;
							T64_ = (idx_2 < ((NI) 0));
							if (T64_) goto LA65_;
							T64_ = ((aLen_0-1) < idx_2);
							LA65_: ;
							if (!T64_) goto LA66_;
							invalidFormatString__8vOMwvNB8blLQSoRXfInAg();
						}
						LA66_: ;
						if ((NU)(idx_2) >= (NU)(aLen_0)) raiseIndexError2(idx_2,aLen_0-1);
						unsureAsgnRef((void**) (&(*s)), resizeString((*s), (a[idx_2] ? a[idx_2]->Sup.len : 0) + 0));
appendString((*s), a[idx_2]);
					}
					goto LA53_;
					LA55_: ;
					{
						NI x;
						NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_67;
						NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_68;
						NimStringDesc* T69_;
						TM__JGc9b9bh2D3nTdUR7TGyq8aA_67 = addInt(i, ((NI) 2));
						TM__JGc9b9bh2D3nTdUR7TGyq8aA_68 = subInt(j_2, ((NI) 1));
						T69_ = (NimStringDesc*)0;
						T69_ = substr__2yh9cer0ymNRHlOOg8P7IuA(formatstr, (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_67), (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_68));
						x = findNormalized__7LxW6wQxHkQGOeaPw6nEjQ(T69_, a, aLen_0);
						{
							NIM_BOOL T72_;
							NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_69;
							T72_ = (NIM_BOOL)0;
							T72_ = (((NI) 0) <= x);
							if (!(T72_)) goto LA73_;
							T72_ = (x < (aLen_0-1));
							LA73_: ;
							if (!T72_) goto LA74_;
							TM__JGc9b9bh2D3nTdUR7TGyq8aA_69 = addInt(x, ((NI) 1));
							if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_69)) >= (NU)(aLen_0)) raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_69),aLen_0-1);
							unsureAsgnRef((void**) (&(*s)), resizeString((*s), (a[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_69)] ? a[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_69)]->Sup.len : 0) + 0));
appendString((*s), a[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_69)]);
						}
						goto LA70_;
						LA74_: ;
						{
							invalidFormatString__8vOMwvNB8blLQSoRXfInAg();
						}
						LA70_: ;
					}
					LA53_: ;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_70 = addInt(j_2, ((NI) 1));
					i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_70);
				}
				break;
				case 97 ... 122:
				case 65 ... 90:
				case 128 ... 255:
				case 95:
				{
					NI j_3;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_71;
					NI x_2;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_73;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_74;
					NimStringDesc* T82_;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_71 = addInt(i, ((NI) 1));
					j_3 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_71);
					{
						while (1) {
							NIM_BOOL T80_;
							NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_72;
							T80_ = (NIM_BOOL)0;
							T80_ = (j_3 < (formatstr ? formatstr->Sup.len : 0));
							if (!(T80_)) goto LA81_;
							if ((NU)(j_3) >= (NU)(formatstr ? formatstr->Sup.len : 0)) raiseIndexError2(j_3,(formatstr ? formatstr->Sup.len : 0)-1);
							T80_ = (((NU8)(formatstr->data[j_3])) >= ((NU8)(97)) && ((NU8)(formatstr->data[j_3])) <= ((NU8)(122)) || ((NU8)(formatstr->data[j_3])) >= ((NU8)(65)) && ((NU8)(formatstr->data[j_3])) <= ((NU8)(90)) || ((NU8)(formatstr->data[j_3])) >= ((NU8)(48)) && ((NU8)(formatstr->data[j_3])) <= ((NU8)(57)) || ((NU8)(formatstr->data[j_3])) >= ((NU8)(128)) && ((NU8)(formatstr->data[j_3])) <= ((NU8)(255)) || ((NU8)(formatstr->data[j_3])) == ((NU8)(95)));
							LA81_: ;
							if (!T80_) goto LA79;
							TM__JGc9b9bh2D3nTdUR7TGyq8aA_72 = addInt(j_3, ((NI) 1));
							j_3 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_72);
						} LA79: ;
					}
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_73 = addInt(i, ((NI) 1));
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_74 = subInt(j_3, ((NI) 1));
					T82_ = (NimStringDesc*)0;
					T82_ = substr__2yh9cer0ymNRHlOOg8P7IuA(formatstr, (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_73), (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_74));
					x_2 = findNormalized__7LxW6wQxHkQGOeaPw6nEjQ(T82_, a, aLen_0);
					{
						NIM_BOOL T85_;
						NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_75;
						T85_ = (NIM_BOOL)0;
						T85_ = (((NI) 0) <= x_2);
						if (!(T85_)) goto LA86_;
						T85_ = (x_2 < (aLen_0-1));
						LA86_: ;
						if (!T85_) goto LA87_;
						TM__JGc9b9bh2D3nTdUR7TGyq8aA_75 = addInt(x_2, ((NI) 1));
						if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_75)) >= (NU)(aLen_0)) raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_75),aLen_0-1);
						unsureAsgnRef((void**) (&(*s)), resizeString((*s), (a[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_75)] ? a[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_75)]->Sup.len : 0) + 0));
appendString((*s), a[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_75)]);
					}
					goto LA83_;
					LA87_: ;
					{
						invalidFormatString__8vOMwvNB8blLQSoRXfInAg();
					}
					LA83_: ;
					i = j_3;
				}
				break;
				default:
				{
					invalidFormatString__8vOMwvNB8blLQSoRXfInAg();
				}
				break;
				}
			}
			goto LA3_;
			LA7_: ;
			{
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_76;
				if ((NU)(i) >= (NU)(formatstr ? formatstr->Sup.len : 0)) raiseIndexError2(i,(formatstr ? formatstr->Sup.len : 0)-1);
				unsureAsgnRef((void**) (&(*s)), addChar((*s), formatstr->data[i]));
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_76 = addInt(i, ((NI) 1));
				i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_76);
			}
			LA3_: ;
		} LA2: ;
	}
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatVarargs)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0) {	NimStringDesc* result;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_43;
	result = (NimStringDesc*)0;
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_43 = addInt((formatstr ? formatstr->Sup.len : 0), aLen_0);
	result = rawNewString(((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_43), ((NI) 0), ((NI) IL64(9223372036854775807)))));
	nsuAddf((&result), formatstr, a, aLen_0);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen_0) {	NimStringDesc* result;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_77;
	result = (NimStringDesc*)0;
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_77 = addInt((formatstr ? formatstr->Sup.len : 0), (NI)((NU64)(aLen_0) << (NU64)(((NI) 4))));
	result = rawNewString(((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_77), ((NI) 0), ((NI) IL64(9223372036854775807)))));
	nsuAddf((&result), formatstr, a, aLen_0);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindStr)(NimStringDesc* s, NimStringDesc* sub, NI start, NI last) {	NI result;
	tyArray__9cc9aPiDa8VaWjVcFLabEDZQ a;
{	result = (NI)0;
	{
		if (!((s ? s->Sup.len : 0) < (sub ? sub->Sup.len : 0))) goto LA3_;
		result = ((NI) -1);
		goto BeforeRet_;
	}
	LA3_: ;
	{
		if (!((sub ? sub->Sup.len : 0) == ((NI) 1))) goto LA7_;
		if ((NU)(((NI) 0)) >= (NU)(sub ? sub->Sup.len : 0)) raiseIndexError2(((NI) 0),(sub ? sub->Sup.len : 0)-1);
		result = nsuFindChar(s, sub->data[((NI) 0)], start, last);
		goto BeforeRet_;
	}
	LA7_: ;
	nsuInitSkipTable(a, sub);
	result = nsuFindStrA(a, s, sub, start, last);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, nsuCountString)(NimStringDesc* s, NimStringDesc* sub, NIM_BOOL overlapping) {	NI result;
	NI i;
	result = (NI)0;
	{
		if (!!((((NI) 0) < (sub ? sub->Sup.len : 0)))) goto LA3_;
		failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_78));
	}
	LA3_: ;
	i = ((NI) 0);
	{
		while (1) {
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_81;
			i = nsuFindStr(s, sub, ((NI)chckRange(i, ((NI) 0), ((NI) IL64(9223372036854775807)))), ((NI) 0));
			{
				if (!(i < ((NI) 0))) goto LA9_;
				goto LA5;
			}
			LA9_: ;
			{
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_79;
				if (!overlapping) goto LA13_;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_79 = addInt(i, ((NI) 1));
				i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_79);
			}
			goto LA11_;
			LA13_: ;
			{
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_80;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_80 = addInt(i, (sub ? sub->Sup.len : 0));
				i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_80);
			}
			LA11_: ;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_81 = addInt(result, ((NI) 1));
			result = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_81);
		}
	} LA5: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuRepeatChar)(NIM_CHAR c, NI count) {	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = mnewString(count);
	{
		NI i;
		NI colontmp_;
		NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_82;
		NI res;
		i = (NI)0;
		colontmp_ = (NI)0;
		TM__JGc9b9bh2D3nTdUR7TGyq8aA_82 = subInt(((NI) (count)), ((NI) 1));
		colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_82);
		res = ((NI) 0);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_83;
				if (!(res <= colontmp_)) goto LA3;
				i = res;
				if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(i,(result ? result->Sup.len : 0)-1);
				result->data[i] = c;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_83 = addInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_83);
			} LA3: ;
		}
	}
	return result;
}
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) {	void* T1_;
	T1_ = (void*)0;
	T1_ = memset(a, v, ((size_t) (size)));
}
static N_INLINE(void, nimZeroMem)(void* p, NI size) {	nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a) {	NimStringDesc* result;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_84;
	tyArray__nHXaesL0DJZHyVS07ARPRA T1_;
	result = (NimStringDesc*)0;
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_84 = addInt((formatstr ? formatstr->Sup.len : 0), (a ? a->Sup.len : 0));
	result = rawNewString(((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_84), ((NI) 0), ((NI) IL64(9223372036854775807)))));
	nimZeroMem((void*)T1_, sizeof(tyArray__nHXaesL0DJZHyVS07ARPRA));
	T1_[0] = copyString(a);
	nsuAddf((&result), formatstr, T1_, 1);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringDesc* s, NimStringDesc* prefix) {	NIM_BOOL result;
	NI i;
{	result = (NIM_BOOL)0;
	i = ((NI) 0);
	{
		while (1) {
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_85;
			{
				if (!((prefix ? prefix->Sup.len : 0) <= i)) goto LA5_;
				result = NIM_TRUE;
				goto BeforeRet_;
			}
			LA5_: ;
			{
				NIM_BOOL T9_;
				T9_ = (NIM_BOOL)0;
				T9_ = ((s ? s->Sup.len : 0) <= i);
				if (T9_) goto LA10_;
				if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
				if ((NU)(i) >= (NU)(prefix ? prefix->Sup.len : 0)) raiseIndexError2(i,(prefix ? prefix->Sup.len : 0)-1);
				T9_ = !(((NU8)(s->data[i]) == (NU8)(prefix->data[i])));
				LA10_: ;
				if (!T9_) goto LA11_;
				result = NIM_FALSE;
				goto BeforeRet_;
			}
			LA11_: ;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_85 = addInt(i, ((NI) 1));
			i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_85);
		}
	}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, nsuCmpIgnoreCase)(NimStringDesc* a, NimStringDesc* b) {	NI result;
	NI i;
	NI m;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_88;
{	result = (NI)0;
	i = ((NI) 0);
	m = (((a ? a->Sup.len : 0) <= (b ? b->Sup.len : 0)) ? (a ? a->Sup.len : 0) : (b ? b->Sup.len : 0));
	{
		while (1) {
			NIM_CHAR T3_;
			NIM_CHAR T4_;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_86;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_87;
			if (!(i < m)) goto LA2;
			if ((NU)(i) >= (NU)(a ? a->Sup.len : 0)) raiseIndexError2(i,(a ? a->Sup.len : 0)-1);
			T3_ = (NIM_CHAR)0;
			T3_ = nsuToLowerAsciiChar(a->data[i]);
			if ((NU)(i) >= (NU)(b ? b->Sup.len : 0)) raiseIndexError2(i,(b ? b->Sup.len : 0)-1);
			T4_ = (NIM_CHAR)0;
			T4_ = nsuToLowerAsciiChar(b->data[i]);
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_86 = subInt(((NU8)(T3_)), ((NU8)(T4_)));
			result = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_86);
			{
				if (!!((result == ((NI) 0)))) goto LA7_;
				goto BeforeRet_;
			}
			LA7_: ;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_87 = addInt(i, ((NI) 1));
			i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_87);
		} LA2: ;
	}
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_88 = subInt((a ? a->Sup.len : 0), (b ? b->Sup.len : 0));
	result = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_88);
	}BeforeRet_: ;
	return result;
}
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c) {	(*dest).data[(*dest).Sup.len] = c;
	(*dest).data[(NI)((*dest).Sup.len + ((NI) 1))] = 0;
	(*dest).Sup.len += ((NI) 1);
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuUnescape)(NimStringDesc* s, NimStringDesc* prefix, NimStringDesc* suffix) {	NimStringDesc* result;
	NI i;
	result = (NimStringDesc*)0;
	result = rawNewString(((NI)chckRange((s ? s->Sup.len : 0), ((NI) 0), ((NI) IL64(9223372036854775807)))));
	i = (prefix ? prefix->Sup.len : 0);
	{
		NIM_BOOL T3_;
		tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* eX60gensym288639_;
		NimStringDesc* T6_;
		T3_ = (NIM_BOOL)0;
		T3_ = nsuStartsWith(s, prefix);
		if (!!(T3_)) goto LA4_;
		eX60gensym288639_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
		eX60gensym288639_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
		(*eX60gensym288639_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
		(*eX60gensym288639_).Sup.Sup.name = "ValueError";
		T6_ = (NimStringDesc*)0;
		T6_ = rawNewString((prefix ? prefix->Sup.len : 0) + 28);
appendString(T6_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_89));
appendString(T6_, prefix);
		asgnRef((void**) (&(*eX60gensym288639_).Sup.Sup.message), T6_);
		asgnRef((void**) (&(*eX60gensym288639_).Sup.Sup.parent), NIM_NIL);
		raiseExceptionEx((Exception*)eX60gensym288639_, "ValueError", "unescape", "strutils.nim", 2244);
	}
	LA4_: ;
	{
		while (1) {
			{
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_90;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_90 = subInt((s ? s->Sup.len : 0), (suffix ? suffix->Sup.len : 0));
				if (!((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_90) <= i)) goto LA11_;
				goto LA7;
			}
			LA11_: ;
			{
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_92;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_98;
				if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
				if (!((NU8)(s->data[i]) == (NU8)(92))) goto LA15_;
				{
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_91;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_91 = addInt(i, ((NI) 1));
					if (!((s ? s->Sup.len : 0) <= (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_91))) goto LA19_;
					result = addChar(result, 92);
					goto LA7;
				}
				LA19_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_92 = addInt(i, ((NI) 1));
				if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_92)) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_92),(s ? s->Sup.len : 0)-1);
				switch (((NU8)(s->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_92)]))) {
				case 120:
				{
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_93;
					NI c;
					NI T22_;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_94;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_95;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_93 = addInt(i, ((NI) 2));
					i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_93);
					c = (NI)0;
					T22_ = (NI)0;
					T22_ = parseHex__5URmSDed0NZg9au720T3U9aA(s, (&c), i, ((NI) 2));
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_94 = addInt(i, T22_);
					i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_94);
					result = addChar(result, ((NIM_CHAR) (((NI)chckRange(c, ((NI) 0), ((NI) 255))))));
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_95 = subInt(i, ((NI) 2));
					i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_95);
				}
				break;
				case 92:
				{
					result = addChar(result, 92);
				}
				break;
				case 39:
				{
					result = addChar(result, 39);
				}
				break;
				case 34:
				{
					result = addChar(result, 34);
				}
				break;
				default:
				{
					NimStringDesc* T27_;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_97;
					T27_ = (NimStringDesc*)0;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_97 = addInt(i, ((NI) 1));
					if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_97)) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_97),(s ? s->Sup.len : 0)-1);
					T27_ = rawNewString(2);
appendString(T27_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_96));
appendChar(T27_, s->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_97)]);
					result = resizeString(result, (T27_ ? T27_->Sup.len : 0) + 0);
appendString(result, T27_);
				}
				break;
				}
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_98 = addInt(i, ((NI) 2));
				i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_98);
			}
			goto LA13_;
			LA15_: ;
			{
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_99;
				if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
				result = addChar(result, s->data[i]);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_99 = addInt(i, ((NI) 1));
				i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_99);
			}
			LA13_: ;
		}
	} LA7: ;
	{
		NIM_BOOL T31_;
		tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* eX60gensym288852_;
		NimStringDesc* T34_;
		T31_ = (NIM_BOOL)0;
		T31_ = nsuEndsWith(s, suffix);
		if (!!(T31_)) goto LA32_;
		eX60gensym288852_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
		eX60gensym288852_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
		(*eX60gensym288852_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
		(*eX60gensym288852_).Sup.Sup.name = "ValueError";
		T34_ = (NimStringDesc*)0;
		T34_ = rawNewString((suffix ? suffix->Sup.len : 0) + 24);
appendString(T34_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_100));
appendString(T34_, suffix);
		asgnRef((void**) (&(*eX60gensym288852_).Sup.Sup.message), T34_);
		asgnRef((void**) (&(*eX60gensym288852_).Sup.Sup.parent), NIM_NIL);
		raiseExceptionEx((Exception*)eX60gensym288852_, "ValueError", "unescape", "strutils.nim", 2272);
	}
	LA32_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__KV0xCsBzaN9coqb7PG9au0oQ)(NimStringDesc* s, NimStringDesc* sub) {	NIM_BOOL result;
	NI T1_;
{	result = (NIM_BOOL)0;
	T1_ = (NI)0;
	T1_ = nsuFindStr(s, sub, ((NI) 0), ((NI) 0));
	result = (((NI) 0) <= T1_);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, nsuRFindChar)(NimStringDesc* s, NIM_CHAR sub, NI start, NI last) {	NI result;
	NI last_2;
{	result = (NI)0;
	{
		if (!(last == ((NI) -1))) goto LA3_;
		last_2 = ((s ? s->Sup.len : 0)-1);
	}
	goto LA1_;
	LA3_: ;
	{
		last_2 = last;
	}
	LA1_: ;
	{
		NI i;
		NI colontmp_;
		NI res;
		i = (NI)0;
		colontmp_ = (NI)0;
		colontmp_ = ((NI) (start));
		res = last_2;
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_101;
				if (!(colontmp_ <= res)) goto LA8;
				i = res;
				{
					if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
					if (!((NU8)(sub) == (NU8)(s->data[i]))) goto LA11_;
					result = i;
					goto BeforeRet_;
				}
				LA11_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_101 = subInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_101);
			} LA8: ;
		}
	}
	result = ((NI) -1);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, nsuSplitChar)(NimStringDesc* s, NIM_CHAR sep, NI maxsplit) {	tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result;
	result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
	result = NIM_NIL;
	{
		NimStringDesc* xX60gensym282461_;
		NI lastX60gensym281812_;
		NI splitsX60gensym281813_;
		xX60gensym282461_ = (NimStringDesc*)0;
		lastX60gensym281812_ = ((NI) 0);
		splitsX60gensym281813_ = maxsplit;
		{
			while (1) {
				NI firstX60gensym281814_;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_103;
				NI T12_;
				NimStringDesc* T13_;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_104;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_105;
				if (!(lastX60gensym281812_ <= (s ? s->Sup.len : 0))) goto LA3;
				firstX60gensym281814_ = lastX60gensym281812_;
				{
					while (1) {
						NIM_BOOL T6_;
						NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_102;
						T6_ = (NIM_BOOL)0;
						T6_ = (lastX60gensym281812_ < (s ? s->Sup.len : 0));
						if (!(T6_)) goto LA7_;
						if ((NU)(lastX60gensym281812_) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(lastX60gensym281812_,(s ? s->Sup.len : 0)-1);
						T6_ = !(((NU8)(s->data[lastX60gensym281812_]) == (NU8)(sep)));
						LA7_: ;
						if (!T6_) goto LA5;
						TM__JGc9b9bh2D3nTdUR7TGyq8aA_102 = addInt(lastX60gensym281812_, ((NI) 1));
						lastX60gensym281812_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_102);
					} LA5: ;
				}
				{
					if (!(splitsX60gensym281813_ == ((NI) 0))) goto LA10_;
					lastX60gensym281812_ = (s ? s->Sup.len : 0);
				}
				LA10_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_103 = subInt(lastX60gensym281812_, ((NI) 1));
				xX60gensym282461_ = substr__2yh9cer0ymNRHlOOg8P7IuA(s, firstX60gensym281814_, (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_103));
				result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)(result), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_));
				T12_ = result->Sup.len++;
				T13_ = (NimStringDesc*)0;
				T13_ = result->data[T12_]; result->data[T12_] = copyStringRC1(xX60gensym282461_);
				if (T13_) nimGCunrefNoCycle(T13_);
				{
					if (!(splitsX60gensym281813_ == ((NI) 0))) goto LA16_;
					goto LA2;
				}
				LA16_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_104 = subInt(splitsX60gensym281813_, ((NI) 1));
				splitsX60gensym281813_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_104);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_105 = addInt(lastX60gensym281812_, ((NI) 1));
				lastX60gensym281812_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_105);
			} LA3: ;
		} LA2: ;
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tySequence__sM4lkSb7zS6F7OVMvW9cffQ*, nsuSplitLines)(NimStringDesc* s, NIM_BOOL keepEol) {	tySequence__sM4lkSb7zS6F7OVMvW9cffQ* result;
	result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
	result = NIM_NIL;
	{
		NimStringDesc* xX60gensym282871_;
		NI first;
		NI last;
		NI eolpos;
		xX60gensym282871_ = (NimStringDesc*)0;
		first = ((NI) 0);
		last = ((NI) 0);
		eolpos = ((NI) 0);
		{
			while (1) {
				NI T25_;
				NI T31_;
				NimStringDesc* T32_;
				{
					while (1) {
						NIM_BOOL T6_;
						NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_106;
						T6_ = (NIM_BOOL)0;
						T6_ = (last < (s ? s->Sup.len : 0));
						if (!(T6_)) goto LA7_;
						if ((NU)(last) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(last,(s ? s->Sup.len : 0)-1);
						T6_ = !((((NU8)(s->data[last])) == ((NU8)(13)) || ((NU8)(s->data[last])) == ((NU8)(10))));
						LA7_: ;
						if (!T6_) goto LA5;
						TM__JGc9b9bh2D3nTdUR7TGyq8aA_106 = addInt(last, ((NI) 1));
						last = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_106);
					} LA5: ;
				}
				eolpos = last;
				{
					if (!(last < (s ? s->Sup.len : 0))) goto LA10_;
					{
						NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_107;
						if ((NU)(last) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(last,(s ? s->Sup.len : 0)-1);
						if (!((NU8)(s->data[last]) == (NU8)(10))) goto LA14_;
						TM__JGc9b9bh2D3nTdUR7TGyq8aA_107 = addInt(last, ((NI) 1));
						last = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_107);
					}
					goto LA12_;
					LA14_: ;
					{
						NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_108;
						if ((NU)(last) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(last,(s ? s->Sup.len : 0)-1);
						if (!((NU8)(s->data[last]) == (NU8)(13))) goto LA17_;
						TM__JGc9b9bh2D3nTdUR7TGyq8aA_108 = addInt(last, ((NI) 1));
						last = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_108);
						{
							NIM_BOOL T21_;
							NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_109;
							T21_ = (NIM_BOOL)0;
							T21_ = (last < (s ? s->Sup.len : 0));
							if (!(T21_)) goto LA22_;
							if ((NU)(last) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(last,(s ? s->Sup.len : 0)-1);
							T21_ = ((NU8)(s->data[last]) == (NU8)(10));
							LA22_: ;
							if (!T21_) goto LA23_;
							TM__JGc9b9bh2D3nTdUR7TGyq8aA_109 = addInt(last, ((NI) 1));
							last = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_109);
						}
						LA23_: ;
					}
					goto LA12_;
					LA17_: ;
					LA12_: ;
				}
				LA10_: ;
				T25_ = (NI)0;
				{
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_110;
					if (!keepEol) goto LA28_;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_110 = subInt(last, ((NI) 1));
					T25_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_110);
				}
				goto LA26_;
				LA28_: ;
				{
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_111;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_111 = subInt(eolpos, ((NI) 1));
					T25_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_111);
				}
				LA26_: ;
				xX60gensym282871_ = substr__2yh9cer0ymNRHlOOg8P7IuA(s, first, T25_);
				result = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*) incrSeqV3((TGenericSeq*)(result), (&NTI__sM4lkSb7zS6F7OVMvW9cffQ_));
				T31_ = result->Sup.len++;
				T32_ = (NimStringDesc*)0;
				T32_ = result->data[T31_]; result->data[T31_] = copyStringRC1(xX60gensym282871_);
				if (T32_) nimGCunrefNoCycle(T32_);
				{
					if (!(eolpos == last)) goto LA35_;
					goto LA2;
				}
				LA35_: ;
				first = last;
			}
		} LA2: ;
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, nsuFindCharSet)(NimStringDesc* s, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars, NI start, NI last) {	NI result;
	NI last_2;
{	result = (NI)0;
	{
		if (!(last == ((NI) 0))) goto LA3_;
		last_2 = ((s ? s->Sup.len : 0)-1);
	}
	goto LA1_;
	LA3_: ;
	{
		last_2 = last;
	}
	LA1_: ;
	{
		NI i;
		NI colontmp_;
		NI res;
		i = (NI)0;
		colontmp_ = (NI)0;
		colontmp_ = ((NI) (start));
		res = colontmp_;
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_112;
				if (!(res <= last_2)) goto LA8;
				i = res;
				{
					if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
					if (!((chars[(NU)(((NU8)(s->data[i])))>>3] &(1U<<((NU)(((NU8)(s->data[i])))&7U)))!=0)) goto LA11_;
					result = i;
					goto BeforeRet_;
				}
				LA11_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_112 = addInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_112);
			} LA8: ;
		}
	}
	result = ((NI) -1);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, contains__wAzSnEu9cCHHjvPQlWBZUeQ)(NimStringDesc* s, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars) {	NIM_BOOL result;
	NI T1_;
{	result = (NIM_BOOL)0;
	T1_ = (NI)0;
	T1_ = nsuFindCharSet(s, chars, ((NI) 0), ((NI) 0));
	result = (((NI) 0) <= T1_);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuToLowerAsciiStr)(NimStringDesc* s) {	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = mnewString(((NI)chckRange((s ? s->Sup.len : 0), ((NI) 0), ((NI) IL64(9223372036854775807)))));
	{
		NI iX60gensym281432_;
		NI colontmp_;
		NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_113;
		NI res;
		iX60gensym281432_ = (NI)0;
		colontmp_ = (NI)0;
		TM__JGc9b9bh2D3nTdUR7TGyq8aA_113 = subInt((s ? s->Sup.len : 0), ((NI) 1));
		colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_113);
		res = ((NI) 0);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_114;
				if (!(res <= colontmp_)) goto LA3;
				iX60gensym281432_ = res;
				if ((NU)(iX60gensym281432_) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(iX60gensym281432_,(result ? result->Sup.len : 0)-1);
				if ((NU)(iX60gensym281432_) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(iX60gensym281432_,(s ? s->Sup.len : 0)-1);
				result->data[iX60gensym281432_] = nsuToLowerAsciiChar(s->data[iX60gensym281432_]);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_114 = addInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_114);
			} LA3: ;
		}
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, nsuContinuesWith)(NimStringDesc* s, NimStringDesc* substr, NI start) {	NIM_BOOL result;
	NI i;
{	result = (NIM_BOOL)0;
	i = ((NI) 0);
	{
		while (1) {
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_119;
			{
				if (!((substr ? substr->Sup.len : 0) <= i)) goto LA5_;
				result = NIM_TRUE;
				goto BeforeRet_;
			}
			LA5_: ;
			{
				NIM_BOOL T9_;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_117;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_118;
				T9_ = (NIM_BOOL)0;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_117 = addInt(i, ((NI) (start)));
				T9_ = ((s ? s->Sup.len : 0) <= (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_117));
				if (T9_) goto LA10_;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_118 = addInt(i, ((NI) (start)));
				if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_118)) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_118),(s ? s->Sup.len : 0)-1);
				if ((NU)(i) >= (NU)(substr ? substr->Sup.len : 0)) raiseIndexError2(i,(substr ? substr->Sup.len : 0)-1);
				T9_ = !(((NU8)(s->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_118)]) == (NU8)(substr->data[i])));
				LA10_: ;
				if (!T9_) goto LA11_;
				result = NIM_FALSE;
				goto BeforeRet_;
			}
			LA11_: ;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_119 = addInt(i, ((NI) 1));
			i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_119);
		}
	}
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, multiReplace__bE9ctzdR0d2caO0lr9a9b8Jng)(NimStringDesc* s, tyTuple__UV3llMMYFckfui8YMBuUZA* replacements, NI replacementsLen_0) {	NimStringDesc* result;
	NI i;
	tySet_tyChar__nmiMWKVIe46vacnhAFrQvw fastChk;
	result = (NimStringDesc*)0;
	result = rawNewString(((NI)chckRange((s ? s->Sup.len : 0), ((NI) 0), ((NI) IL64(9223372036854775807)))));
	i = ((NI) 0);
	nimZeroMem((void*)fastChk, sizeof(tySet_tyChar__nmiMWKVIe46vacnhAFrQvw));
	nimCopyMem((void*)fastChk, (NIM_CONST void*)TM__JGc9b9bh2D3nTdUR7TGyq8aA_115, 32);
	{
		NimStringDesc* sub;
		NimStringDesc* by;
		NI i_2;
		sub = (NimStringDesc*)0;
		by = (NimStringDesc*)0;
		i_2 = ((NI) 0);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_116;
				if (!(i_2 < replacementsLen_0)) goto LA3;
				if ((NU)(i_2) >= (NU)(replacementsLen_0)) raiseIndexError2(i_2,replacementsLen_0-1);
				sub = replacements[i_2].Field0;
				if ((NU)(i_2) >= (NU)(replacementsLen_0)) raiseIndexError2(i_2,replacementsLen_0-1);
				by = replacements[i_2].Field1;
				{
					if (!(((NI) 0) < (sub ? sub->Sup.len : 0))) goto LA6_;
					if ((NU)(((NI) 0)) >= (NU)(sub ? sub->Sup.len : 0)) raiseIndexError2(((NI) 0),(sub ? sub->Sup.len : 0)-1);
					fastChk[(NU)(((NU8)(sub->data[((NI) 0)])))>>3] |=(1U<<(((NU8)(sub->data[((NI) 0)]))&7U));
				}
				LA6_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_116 = addInt(i_2, ((NI) 1));
				i_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_116);
			} LA3: ;
		}
	}
	{
		while (1) {
			if (!(i < (s ? s->Sup.len : 0))) goto LA9;
			{
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_122;
				{
					if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
					if (!((fastChk[(NU)(((NU8)(s->data[i])))>>3] &(1U<<((NU)(((NU8)(s->data[i])))&7U)))!=0)) goto LA13_;
					{
						NimStringDesc* sub_2;
						NimStringDesc* by_2;
						NI i_3;
						sub_2 = (NimStringDesc*)0;
						by_2 = (NimStringDesc*)0;
						i_3 = ((NI) 0);
						{
							while (1) {
								NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_121;
								if (!(i_3 < replacementsLen_0)) goto LA17;
								if ((NU)(i_3) >= (NU)(replacementsLen_0)) raiseIndexError2(i_3,replacementsLen_0-1);
								sub_2 = replacements[i_3].Field0;
								if ((NU)(i_3) >= (NU)(replacementsLen_0)) raiseIndexError2(i_3,replacementsLen_0-1);
								by_2 = replacements[i_3].Field1;
								{
									NIM_BOOL T20_;
									NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_120;
									T20_ = (NIM_BOOL)0;
									T20_ = (((NI) 0) < (sub_2 ? sub_2->Sup.len : 0));
									if (!(T20_)) goto LA21_;
									T20_ = nsuContinuesWith(s, sub_2, ((NI)chckRange(i, ((NI) 0), ((NI) IL64(9223372036854775807)))));
									LA21_: ;
									if (!T20_) goto LA22_;
									result = resizeString(result, (by_2 ? by_2->Sup.len : 0) + 0);
appendString(result, by_2);
									TM__JGc9b9bh2D3nTdUR7TGyq8aA_120 = addInt(i, (sub_2 ? sub_2->Sup.len : 0));
									i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_120);
									goto LA10;
								}
								LA22_: ;
								TM__JGc9b9bh2D3nTdUR7TGyq8aA_121 = addInt(i_3, ((NI) 1));
								i_3 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_121);
							} LA17: ;
						}
					}
				}
				LA13_: ;
				if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
				result = addChar(result, s->data[i]);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_122 = addInt(i, ((NI) 1));
				i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_122);
			} LA10: ;
		} LA9: ;
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuJoinSep)(NimStringDesc** a, NI aLen_0, NimStringDesc* sep) {	NimStringDesc* result;
	result = (NimStringDesc*)0;
	{
		NI L;
		NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_123;
		NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_124;
		if (!(((NI) 0) < aLen_0)) goto LA3_;
		TM__JGc9b9bh2D3nTdUR7TGyq8aA_123 = subInt(aLen_0, ((NI) 1));
		TM__JGc9b9bh2D3nTdUR7TGyq8aA_124 = mulInt((sep ? sep->Sup.len : 0), (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_123));
		L = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_124);
		{
			NI i;
			NI colontmp_;
			NI res;
			i = (NI)0;
			colontmp_ = (NI)0;
			colontmp_ = (aLen_0-1);
			res = ((NI) 0);
			{
				while (1) {
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_125;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_126;
					if (!(res <= colontmp_)) goto LA7;
					i = res;
					if ((NU)(i) >= (NU)(aLen_0)) raiseIndexError2(i,aLen_0-1);
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_125 = addInt(L, (a[i] ? a[i]->Sup.len : 0));
					L = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_125);
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_126 = addInt(res, ((NI) 1));
					res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_126);
				} LA7: ;
			}
		}
		result = rawNewString(((NI)chckRange(L, ((NI) 0), ((NI) IL64(9223372036854775807)))));
		if ((NU)(((NI) 0)) >= (NU)(aLen_0)) raiseIndexError2(((NI) 0),aLen_0-1);
		result = resizeString(result, (a[((NI) 0)] ? a[((NI) 0)]->Sup.len : 0) + 0);
appendString(result, a[((NI) 0)]);
		{
			NI i_2;
			NI colontmp__2;
			NI res_2;
			i_2 = (NI)0;
			colontmp__2 = (NI)0;
			colontmp__2 = (aLen_0-1);
			res_2 = ((NI) 1);
			{
				while (1) {
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_127;
					if (!(res_2 <= colontmp__2)) goto LA10;
					i_2 = res_2;
					result = resizeString(result, (sep ? sep->Sup.len : 0) + 0);
appendString(result, sep);
					if ((NU)(i_2) >= (NU)(aLen_0)) raiseIndexError2(i_2,aLen_0-1);
					result = resizeString(result, (a[i_2] ? a[i_2]->Sup.len : 0) + 0);
appendString(result, a[i_2]);
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_127 = addInt(res_2, ((NI) 1));
					res_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_127);
				} LA10: ;
			}
		}
	}
	goto LA1_;
	LA3_: ;
	{
		result = ((NimStringDesc*) NIM_NIL);
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, nsuParseHexInt)(NimStringDesc* s) {	NI result;
	NI L;
	result = (NI)0;
	L = parseHex__5URmSDed0NZg9au720T3U9aA(s, (&result), ((NI) 0), ((NI) 0));
	{
		NIM_BOOL T3_;
		tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* eX60gensym284957_;
		NimStringDesc* T7_;
		T3_ = (NIM_BOOL)0;
		T3_ = !((L == (s ? s->Sup.len : 0)));
		if (T3_) goto LA4_;
		T3_ = (L == ((NI) 0));
		LA4_: ;
		if (!T3_) goto LA5_;
		eX60gensym284957_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
		eX60gensym284957_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
		(*eX60gensym284957_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
		(*eX60gensym284957_).Sup.Sup.name = "ValueError";
		T7_ = (NimStringDesc*)0;
		T7_ = rawNewString((s ? s->Sup.len : 0) + 21);
appendString(T7_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_128));
appendString(T7_, s);
		asgnRef((void**) (&(*eX60gensym284957_).Sup.Sup.message), T7_);
		asgnRef((void**) (&(*eX60gensym284957_).Sup.Sup.parent), NIM_NIL);
		raiseExceptionEx((Exception*)eX60gensym284957_, "ValueError", "parseHexInt", "strutils.nim", 1180);
	}
	LA5_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI, nsuParseInt)(NimStringDesc* s) {	NI result;
	NI L;
	result = (NI)0;
	L = npuParseInt(s, (&result), ((NI) 0));
	{
		NIM_BOOL T3_;
		tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* eX60gensym283448_;
		NimStringDesc* T7_;
		T3_ = (NIM_BOOL)0;
		T3_ = !((L == (s ? s->Sup.len : 0)));
		if (T3_) goto LA4_;
		T3_ = (L == ((NI) 0));
		LA4_: ;
		if (!T3_) goto LA5_;
		eX60gensym283448_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
		eX60gensym283448_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
		(*eX60gensym283448_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
		(*eX60gensym283448_).Sup.Sup.name = "ValueError";
		T7_ = (NimStringDesc*)0;
		T7_ = rawNewString((s ? s->Sup.len : 0) + 17);
appendString(T7_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_129));
appendString(T7_, s);
		asgnRef((void**) (&(*eX60gensym283448_).Sup.Sup.message), T7_);
		asgnRef((void**) (&(*eX60gensym283448_).Sup.Sup.parent), NIM_NIL);
		raiseExceptionEx((Exception*)eX60gensym283448_, "ValueError", "parseInt", "strutils.nim", 1100);
	}
	LA5_: ;
	return result;
}
static N_INLINE(NI, modInt)(NI a, NI b) {	NI result;
{	result = (NI)0;
	{
		if (!(b == ((NI) 0))) goto LA3_;
		raiseDivByZero();
	}
	LA3_: ;
	result = (NI)(a % b);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NI, divInt)(NI a, NI b) {	NI result;
{	result = (NI)0;
	{
		if (!(b == ((NI) 0))) goto LA3_;
		raiseDivByZero();
	}
	LA3_: ;
	{
		NIM_BOOL T7_;
		T7_ = (NIM_BOOL)0;
		T7_ = (a == ((NI) (IL64(-9223372036854775807) - IL64(1))));
		if (!(T7_)) goto LA8_;
		T7_ = (b == ((NI) -1));
		LA8_: ;
		if (!T7_) goto LA9_;
		raiseOverflow();
	}
	LA9_: ;
	result = (NI)(a / b);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuToOctal)(NIM_CHAR c) {	NimStringDesc* result;
	NI val;
	result = (NimStringDesc*)0;
	result = mnewString(((NI) 3));
	val = ((NU8)(c));
	{
		NI i;
		NI res;
		i = (NI)0;
		res = ((NI) 2);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_130;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_131;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_132;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_133;
				if (!(((NI) 0) <= res)) goto LA3;
				i = res;
				if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(i,(result ? result->Sup.len : 0)-1);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_130 = modInt(val, ((NI) 8));
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_131 = addInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_130), ((NI) 48));
				result->data[i] = ((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_131), ((NI) 0), ((NI) 255)))));
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_132 = divInt(val, ((NI) 8));
				val = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_132);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_133 = subInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_133);
			} LA3: ;
		}
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ, parseEnum__qIaeVZYC2IcNaPaw4CHbjg)(NimStringDesc* s) {	tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ result;
	tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* eX60gensym482253_;
	NimStringDesc* T9_;
{	result = (tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ)0;
	{
		tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ e;
		NI res;
		e = (tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ)0;
		res = ((NI) 0);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_134;
				if (!(res <= ((NI) 10))) goto LA3;
				e = ((tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ)chckRange(res, ((tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ) 0), ((tyEnum_Feature__01UoAKYz1MxZiuG1X2VhNQ) 10)));
				{
					NI T6_;
					T6_ = (NI)0;
					T6_ = nsuCmpIgnoreStyle(s, reprEnum((NI)e, (&NTI__01UoAKYz1MxZiuG1X2VhNQ_)));
					if (!(T6_ == ((NI) 0))) goto LA7_;
					result = e;
					goto BeforeRet_;
				}
				LA7_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_134 = addInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_134);
			} LA3: ;
		}
	}
	eX60gensym482253_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
	eX60gensym482253_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
	(*eX60gensym482253_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
	(*eX60gensym482253_).Sup.Sup.name = "ValueError";
	T9_ = (NimStringDesc*)0;
	T9_ = rawNewString((s ? s->Sup.len : 0) + 20);
appendString(T9_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_135));
appendString(T9_, s);
	asgnRef((void**) (&(*eX60gensym482253_).Sup.Sup.message), T9_);
	asgnRef((void**) (&(*eX60gensym482253_).Sup.Sup.parent), NIM_NIL);
	raiseExceptionEx((Exception*)eX60gensym482253_, "ValueError", "parseEnum", "strutils.nim", 1264);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA, parseEnum__JiBTkh7mRNMhfnA62LJ6xA)(NimStringDesc* s) {	tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA result;
	tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* eX60gensym482503_;
	NimStringDesc* T9_;
{	result = (tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA)0;
	{
		tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA e;
		NI res;
		e = (tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA)0;
		res = ((NI) 0);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_136;
				if (!(res <= ((NI) 1))) goto LA3;
				e = ((tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA)chckRange(res, ((tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA) 0), ((tyEnum_LegacyFeature__hGCD9aOrxPvpXn4Ne6W6OVA) 1)));
				{
					NI T6_;
					T6_ = (NI)0;
					T6_ = nsuCmpIgnoreStyle(s, reprEnum((NI)e, (&NTI__hGCD9aOrxPvpXn4Ne6W6OVA_)));
					if (!(T6_ == ((NI) 0))) goto LA7_;
					result = e;
					goto BeforeRet_;
				}
				LA7_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_136 = addInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_136);
			} LA3: ;
		}
	}
	eX60gensym482503_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
	eX60gensym482503_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
	(*eX60gensym482503_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
	(*eX60gensym482503_).Sup.Sup.name = "ValueError";
	T9_ = (NimStringDesc*)0;
	T9_ = rawNewString((s ? s->Sup.len : 0) + 20);
appendString(T9_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_135));
appendString(T9_, s);
	asgnRef((void**) (&(*eX60gensym482503_).Sup.Sup.message), T9_);
	asgnRef((void**) (&(*eX60gensym482503_).Sup.Sup.parent), NIM_NIL);
	raiseExceptionEx((Exception*)eX60gensym482503_, "ValueError", "parseEnum", "strutils.nim", 1264);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuToBin)(NI64 x, NI len) {	NimStringDesc* result;
	NU64 mask;
	NU64 shift;
	result = (NimStringDesc*)0;
	mask = 1ULL;
	shift = 0ULL;
	{
		if (!!((((NI) 0) < ((NI) (len))))) goto LA3_;
		failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_137));
	}
	LA3_: ;
	result = mnewString(((NI) (len)));
	{
		NI j;
		NI colontmp_;
		NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_138;
		NI res;
		j = (NI)0;
		colontmp_ = (NI)0;
		TM__JGc9b9bh2D3nTdUR7TGyq8aA_138 = subInt(((NI) (len)), ((NI) 1));
		colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_138);
		res = colontmp_;
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_139;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_140;
				if (!(((NI) 0) <= res)) goto LA7;
				j = res;
				if ((NU)(j) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(j,(result ? result->Sup.len : 0)-1);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_139 = addInt(((NI)chckRange((NU64)((NU64)((NU64)(((NU64) (x)) & mask)) >> (NU64)(shift)), ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807)))), ((NI) 48));
				result->data[j] = ((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_139), ((NI) 0), ((NI) 255)))));
				shift += ((NI) 1);
				mask = (NU64)((NU64)(mask) << (NU64)(1ULL));
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_140 = subInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_140);
			} LA7: ;
		}
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuToOct)(NI64 x, NI len) {	NimStringDesc* result;
	NU64 mask;
	NU64 shift;
	result = (NimStringDesc*)0;
	mask = 7ULL;
	shift = 0ULL;
	{
		if (!!((((NI) 0) < ((NI) (len))))) goto LA3_;
		failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_141));
	}
	LA3_: ;
	result = mnewString(((NI) (len)));
	{
		NI j;
		NI colontmp_;
		NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_142;
		NI res;
		j = (NI)0;
		colontmp_ = (NI)0;
		TM__JGc9b9bh2D3nTdUR7TGyq8aA_142 = subInt(((NI) (len)), ((NI) 1));
		colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_142);
		res = colontmp_;
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_143;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_144;
				if (!(((NI) 0) <= res)) goto LA7;
				j = res;
				if ((NU)(j) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(j,(result ? result->Sup.len : 0)-1);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_143 = addInt(((NI)chckRange((NU64)((NU64)((NU64)(((NU64) (x)) & mask)) >> (NU64)(shift)), ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807)))), ((NI) 48));
				result->data[j] = ((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_143), ((NI) 0), ((NI) 255)))));
				shift += ((NI) 3);
				mask = (NU64)((NU64)(mask) << (NU64)(3ULL));
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_144 = subInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_144);
			} LA7: ;
		}
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuIntToStr)(NI x, NI minchars) {	NimStringDesc* result;
	result = (NimStringDesc*)0;
	if (x == (IL64(-9223372036854775807) - IL64(1))) raiseOverflow();
	result = nimIntToStr((x > 0? (x) : -(x)));
	{
		NI i;
		NI colontmp_;
		NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_145;
		NI res;
		i = (NI)0;
		colontmp_ = (NI)0;
		TM__JGc9b9bh2D3nTdUR7TGyq8aA_145 = subInt(((NI) (minchars)), (result ? result->Sup.len : 0));
		colontmp_ = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_145);
		res = ((NI) 1);
		{
			while (1) {
				NimStringDesc* T4_;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_146;
				if (!(res <= colontmp_)) goto LA3;
				i = res;
				T4_ = (NimStringDesc*)0;
				T4_ = rawNewString((result ? result->Sup.len : 0) + 1);
appendChar(T4_, 48);
appendString(T4_, result);
				result = T4_;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_146 = addInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_146);
			} LA3: ;
		}
	}
	{
		NimStringDesc* T9_;
		if (!(x < ((NI) 0))) goto LA7_;
		T9_ = (NimStringDesc*)0;
		T9_ = rawNewString((result ? result->Sup.len : 0) + 1);
appendChar(T9_, 45);
appendString(T9_, result);
		result = T9_;
	}
	LA7_: ;
	return result;
}
static N_INLINE(int, nimCmpMem)(void* a, void* b, NI size) {	int result;
	result = (int)0;
	result = memcmp(a, b, ((size_t) (size)));
	return result;
}
static N_INLINE(NIM_BOOL, equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem)(void* a, void* b, NI size) {	NIM_BOOL result;
	int T1_;
	result = (NIM_BOOL)0;
	T1_ = (int)0;
	T1_ = nimCmpMem(a, b, size);
	result = (T1_ == ((NI32) 0));
	return result;
}
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {	NIM_BOOL result;
	NI alen;
	NI blen;
{	result = (NIM_BOOL)0;
	alen = (a ? a->Sup.len : 0);
	blen = (b ? b->Sup.len : 0);
	{
		if (!(alen == blen)) goto LA3_;
		{
			if (!(alen == ((NI) 0))) goto LA7_;
			result = NIM_TRUE;
			goto BeforeRet_;
		}
		LA7_: ;
		result = equalMem__9bGgqEk7RXXl6eqM9c1HdELAsystem(((void*) ((&a->data[((NI) 0)]))), ((void*) ((&b->data[((NI) 0)]))), ((NI) (alen)));
		goto BeforeRet_;
	}
	LA3_: ;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_BOOL, parseBool__Y9cQyzddf88poHkzlcfsPIA)(NimStringDesc* s) {	NIM_BOOL result;
	NimStringDesc* T1_;
	result = (NIM_BOOL)0;
	T1_ = (NimStringDesc*)0;
	T1_ = nsuNormalize(s);
	switch (hashString(T1_) & 15) {
	case 0: 
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_148))) goto LA2_;
break;
	case 1: 
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_152))) goto LA3_;
break;
	case 5: 
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_149))) goto LA2_;
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_153))) goto LA3_;
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_156))) goto LA3_;
break;
	case 8: 
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_147))) goto LA2_;
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_151))) goto LA2_;
break;
	case 9: 
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_150))) goto LA2_;
break;
	case 10: 
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_154))) goto LA3_;
break;
	case 11: 
if (eqStrings(T1_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_155))) goto LA3_;
break;
	}
	goto LA4_;
	LA2_: ;
	{
		result = NIM_TRUE;
	}
	goto LA5_;
	LA3_: ;
	{
		result = NIM_FALSE;
	}
	goto LA5_;
	LA4_: ;
	{
		tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* eX60gensym285436_;
		NimStringDesc* T9_;
		eX60gensym285436_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
		eX60gensym285436_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
		(*eX60gensym285436_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
		(*eX60gensym285436_).Sup.Sup.name = "ValueError";
		T9_ = (NimStringDesc*)0;
		T9_ = rawNewString((s ? s->Sup.len : 0) + 28);
appendString(T9_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_157));
appendString(T9_, s);
		asgnRef((void**) (&(*eX60gensym285436_).Sup.Sup.message), T9_);
		asgnRef((void**) (&(*eX60gensym285436_).Sup.Sup.parent), NIM_NIL);
		raiseExceptionEx((Exception*)eX60gensym285436_, "ValueError", "parseBool", "strutils.nim", 1242);
	}
	LA5_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NF, nsuParseFloat)(NimStringDesc* s) {	NF result;
	NI L;
	result = (NF)0;
	L = npuParseFloat(s, (&result), ((NI) 0));
	{
		NIM_BOOL T3_;
		tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* eX60gensym284231_;
		NimStringDesc* T7_;
		T3_ = (NIM_BOOL)0;
		T3_ = !((L == (s ? s->Sup.len : 0)));
		if (T3_) goto LA4_;
		T3_ = (L == ((NI) 0));
		LA4_: ;
		if (!T3_) goto LA5_;
		eX60gensym284231_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
		eX60gensym284231_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
		(*eX60gensym284231_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
		(*eX60gensym284231_).Sup.Sup.name = "ValueError";
		T7_ = (NimStringDesc*)0;
		T7_ = rawNewString((s ? s->Sup.len : 0) + 15);
appendString(T7_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_158));
appendString(T7_, s);
		asgnRef((void**) (&(*eX60gensym284231_).Sup.Sup.message), T7_);
		asgnRef((void**) (&(*eX60gensym284231_).Sup.Sup.parent), NIM_NIL);
		raiseExceptionEx((Exception*)eX60gensym284231_, "ValueError", "parseFloat", "strutils.nim", 1140);
	}
	LA5_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NI64, nsuParseBiggestInt)(NimStringDesc* s) {	NI64 result;
	NI L;
	result = (NI64)0;
	L = npuParseBiggestInt(s, (&result), ((NI) 0));
	{
		NIM_BOOL T3_;
		tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* eX60gensym283631_;
		NimStringDesc* T7_;
		T3_ = (NIM_BOOL)0;
		T3_ = !((L == (s ? s->Sup.len : 0)));
		if (T3_) goto LA4_;
		T3_ = (L == ((NI) 0));
		LA4_: ;
		if (!T3_) goto LA5_;
		eX60gensym283631_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
		eX60gensym283631_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
		(*eX60gensym283631_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
		(*eX60gensym283631_).Sup.Sup.name = "ValueError";
		T7_ = (NimStringDesc*)0;
		T7_ = rawNewString((s ? s->Sup.len : 0) + 17);
appendString(T7_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_129));
appendString(T7_, s);
		asgnRef((void**) (&(*eX60gensym283631_).Sup.Sup.message), T7_);
		asgnRef((void**) (&(*eX60gensym283631_).Sup.Sup.parent), NIM_NIL);
		raiseExceptionEx((Exception*)eX60gensym283631_, "ValueError", "parseBiggestInt", "strutils.nim", 1109);
	}
	LA5_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NIM_CHAR, nsuToUpperAsciiChar)(NIM_CHAR c) {	NIM_CHAR result;
	result = (NIM_CHAR)0;
	{
		NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_159;
		if (!(((NU8)(c)) >= ((NU8)(97)) && ((NU8)(c)) <= ((NU8)(122)))) goto LA3_;
		TM__JGc9b9bh2D3nTdUR7TGyq8aA_159 = subInt(((NU8)(c)), ((NI) 32));
		result = ((NIM_CHAR) (((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_159), ((NI) 0), ((NI) 255)))));
	}
	goto LA1_;
	LA3_: ;
	{
		result = c;
	}
	LA1_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw, parseEnum__ASE7k7bSFM18MJ5iPda8rQ)(NimStringDesc* s) {	tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw result;
	tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw* eX60gensym933627_;
	NimStringDesc* T9_;
{	result = (tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw)0;
	{
		tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw e;
		NI res;
		e = (tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw)0;
		res = ((NI) 0);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_160;
				if (!(res <= ((NI) 7))) goto LA3;
				e = ((tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw)chckRange(res, ((tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw) 0), ((tyEnum_TPreferedDesc__tnd4qt9c4xddV8oKV5zyusw) 7)));
				{
					NI T6_;
					T6_ = (NI)0;
					T6_ = nsuCmpIgnoreStyle(s, reprEnum((NI)e, (&NTI__tnd4qt9c4xddV8oKV5zyusw_)));
					if (!(T6_ == ((NI) 0))) goto LA7_;
					result = e;
					goto BeforeRet_;
				}
				LA7_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_160 = addInt(res, ((NI) 1));
				res = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_160);
			} LA3: ;
		}
	}
	eX60gensym933627_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*)0;
	eX60gensym933627_ = (tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw*) newObj((&NTI__Ie1m0dv1ZHg72IgPRr1cDw_), sizeof(tyObject_ValueError__yoNlBGx0D2tRizIdhQuENw));
	(*eX60gensym933627_).Sup.Sup.Sup.m_type = (&NTI__yoNlBGx0D2tRizIdhQuENw_);
	(*eX60gensym933627_).Sup.Sup.name = "ValueError";
	T9_ = (NimStringDesc*)0;
	T9_ = rawNewString((s ? s->Sup.len : 0) + 20);
appendString(T9_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_135));
appendString(T9_, s);
	asgnRef((void**) (&(*eX60gensym933627_).Sup.Sup.message), T9_);
	asgnRef((void**) (&(*eX60gensym933627_).Sup.Sup.parent), NIM_NIL);
	raiseExceptionEx((Exception*)eX60gensym933627_, "ValueError", "parseEnum", "strutils.nim", 1264);
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuStrip)(NimStringDesc* s, NIM_BOOL leading, NIM_BOOL trailing, tySet_tyChar__nmiMWKVIe46vacnhAFrQvw chars) {	NimStringDesc* result;
	NI first;
	NI last;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_161;
	result = (NimStringDesc*)0;
	first = ((NI) 0);
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_161 = subInt((s ? s->Sup.len : 0), ((NI) 1));
	last = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_161);
	{
		if (!leading) goto LA3_;
		{
			while (1) {
				NIM_BOOL T7_;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_162;
				T7_ = (NIM_BOOL)0;
				T7_ = (first <= last);
				if (!(T7_)) goto LA8_;
				if ((NU)(first) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(first,(s ? s->Sup.len : 0)-1);
				T7_ = ((chars[(NU)(((NU8)(s->data[first])))>>3] &(1U<<((NU)(((NU8)(s->data[first])))&7U)))!=0);
				LA8_: ;
				if (!T7_) goto LA6;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_162 = addInt(first, ((NI) 1));
				first = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_162);
			} LA6: ;
		}
	}
	LA3_: ;
	{
		if (!trailing) goto LA11_;
		{
			while (1) {
				NIM_BOOL T15_;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_163;
				T15_ = (NIM_BOOL)0;
				T15_ = (((NI) 0) <= last);
				if (!(T15_)) goto LA16_;
				if ((NU)(last) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(last,(s ? s->Sup.len : 0)-1);
				T15_ = ((chars[(NU)(((NU8)(s->data[last])))>>3] &(1U<<((NU)(((NU8)(s->data[last])))&7U)))!=0);
				LA16_: ;
				if (!T15_) goto LA14;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_163 = subInt(last, ((NI) 1));
				last = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_163);
			} LA14: ;
		}
	}
	LA11_: ;
	result = substr__2yh9cer0ymNRHlOOg8P7IuA(s, first, last);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuReplaceChar)(NimStringDesc* s, NIM_CHAR sub, NIM_CHAR by) {	NimStringDesc* result;
	NI i;
	result = (NimStringDesc*)0;
	result = mnewString(((NI)chckRange((s ? s->Sup.len : 0), ((NI) 0), ((NI) IL64(9223372036854775807)))));
	i = ((NI) 0);
	{
		while (1) {
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_164;
			if (!(i < (s ? s->Sup.len : 0))) goto LA2;
			{
				if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
				if (!((NU8)(s->data[i]) == (NU8)(sub))) goto LA5_;
				if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(i,(result ? result->Sup.len : 0)-1);
				result->data[i] = by;
			}
			goto LA3_;
			LA5_: ;
			{
				if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(i,(result ? result->Sup.len : 0)-1);
				if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
				result->data[i] = s->data[i];
			}
			LA3_: ;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_164 = addInt(i, ((NI) 1));
			i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_164);
		} LA2: ;
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuEscape)(NimStringDesc* s, NimStringDesc* prefix, NimStringDesc* suffix) {	NimStringDesc* result;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_165;
	result = (NimStringDesc*)0;
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_165 = addInt((s ? s->Sup.len : 0), (NI)((NI64)((s ? s->Sup.len : 0)) >> (NU64)(((NI) 2))));
	result = rawNewString(((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_165), ((NI) 0), ((NI) IL64(9223372036854775807)))));
	result = resizeString(result, (prefix ? prefix->Sup.len : 0) + 0);
appendString(result, prefix);
	{
		NIM_CHAR c;
		NI i;
		NI L;
		c = (NIM_CHAR)0;
		i = ((NI) 0);
		L = (s ? s->Sup.len : 0);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_170;
				if (!(i < L)) goto LA3;
				if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
				c = s->data[i];
				switch (((NU8)(c))) {
				case 0 ... 31:
				case 127 ... 255:
				{
					NimStringDesc* T5_;
					result = resizeString(result, 2);
appendString(result, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_166));
					T5_ = (NimStringDesc*)0;
					T5_ = nsuToHex(((NI64) (((NU8)(c)))), ((NI) 2));
					result = resizeString(result, (T5_ ? T5_->Sup.len : 0) + 0);
appendString(result, T5_);
				}
				break;
				case 92:
				{
					result = resizeString(result, 2);
appendString(result, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_167));
				}
				break;
				case 39:
				{
					result = resizeString(result, 2);
appendString(result, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_168));
				}
				break;
				case 34:
				{
					result = resizeString(result, 2);
appendString(result, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_169));
				}
				break;
				default:
				{
					result = addChar(result, c);
				}
				break;
				}
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_170 = addInt(i, ((NI) 1));
				i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_170);
				{
					if (!!(((s ? s->Sup.len : 0) == L))) goto LA12_;
					failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_12));
				}
				LA12_: ;
			} LA3: ;
		}
	}
	result = resizeString(result, (suffix ? suffix->Sup.len : 0) + 0);
appendString(result, suffix);
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, nsuDelete)(NimStringDesc** s, NI first, NI last) {	NI i;
	NI j;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_171;
	NI newLen;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_172;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_173;
	i = first;
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_171 = addInt(last, ((NI) 1));
	j = ((((*s) ? (*s)->Sup.len : 0) <= (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_171)) ? ((*s) ? (*s)->Sup.len : 0) : (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_171));
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_172 = subInt(((*s) ? (*s)->Sup.len : 0), j);
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_173 = addInt((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_172), i);
	newLen = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_173);
	{
		while (1) {
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_174;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_175;
			if (!(i < newLen)) goto LA2;
			if ((NU)(i) >= (NU)((*s) ? (*s)->Sup.len : 0)) raiseIndexError2(i,((*s) ? (*s)->Sup.len : 0)-1);
			if ((NU)(j) >= (NU)((*s) ? (*s)->Sup.len : 0)) raiseIndexError2(j,((*s) ? (*s)->Sup.len : 0)-1);
			(*s)->data[i] = (*s)->data[j];
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_174 = addInt(i, ((NI) 1));
			i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_174);
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_175 = addInt(j, ((NI) 1));
			j = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_175);
		} LA2: ;
	}
	unsureAsgnRef((void**) (&(*s)), setLengthStr((*s), ((NI)chckRange(newLen, ((NI) 0), ((NI) IL64(9223372036854775807))))));
}
N_LIB_PRIVATE N_NIMCALL(NI, nsuCountLines)(NimStringDesc* s) {	NI result;
	NI i;
	result = (NI)0;
	result = ((NI) 1);
	i = ((NI) 0);
	{
		while (1) {
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_181;
			if (!(i < (s ? s->Sup.len : 0))) goto LA2;
			if ((NU)(i) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2(i,(s ? s->Sup.len : 0)-1);
			switch (((NU8)(s->data[i]))) {
			case 13:
			{
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_179;
				{
					NIM_BOOL T6_;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_176;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_177;
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_178;
					T6_ = (NIM_BOOL)0;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_176 = addInt(i, ((NI) 1));
					T6_ = ((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_176) < (s ? s->Sup.len : 0));
					if (!(T6_)) goto LA7_;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_177 = addInt(i, ((NI) 1));
					if ((NU)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_177)) >= (NU)(s ? s->Sup.len : 0)) raiseIndexError2((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_177),(s ? s->Sup.len : 0)-1);
					T6_ = ((NU8)(s->data[(NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_177)]) == (NU8)(10));
					LA7_: ;
					if (!T6_) goto LA8_;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_178 = addInt(i, ((NI) 1));
					i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_178);
				}
				LA8_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_179 = addInt(result, ((NI) 1));
				result = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_179);
			}
			break;
			case 10:
			{
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_180;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_180 = addInt(result, ((NI) 1));
				result = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_180);
			}
			break;
			default:
			{
			}
			break;
			}
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_181 = addInt(i, ((NI) 1));
			i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_181);
		} LA2: ;
	}
	return result;
}
static N_INLINE(NI64, divInt64)(NI64 a, NI64 b) {	NI64 result;
{	result = (NI64)0;
	{
		if (!(b == IL64(0))) goto LA3_;
		raiseDivByZero();
	}
	LA3_: ;
	{
		NIM_BOOL T7_;
		T7_ = (NIM_BOOL)0;
		T7_ = (a == (IL64(-9223372036854775807) - IL64(1)));
		if (!(T7_)) goto LA8_;
		T7_ = (b == IL64(-1));
		LA8_: ;
		if (!T7_) goto LA9_;
		raiseOverflow();
	}
	LA9_: ;
	result = (NI64)(a / b);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuformatBiggestFloat)(NF f, tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ format, NI precision, NIM_CHAR decimalSep) {	NimStringDesc* result;
	tyArray__9bPFPkkEEeeNM9bKgiV8Q49cg frmtstr;
	tyArray__Kn8ZOVsorvcNLB4isUeMzQ buf;
	int L;
	result = (NimStringDesc*)0;
	L = (int)0;
	frmtstr[(((NI) 0))- 0] = 37;
	{
		if (!(((NI) 0) <= ((NI) (precision)))) goto LA3_;
		frmtstr[(((NI) 1))- 0] = 35;
		frmtstr[(((NI) 2))- 0] = 46;
		frmtstr[(((NI) 3))- 0] = 42;
		frmtstr[(((NI) 4))- 0] = floatFormatToChar__WVISPus3ZqCVSuP9bzn9cVxw[(format)- 0];
		frmtstr[(((NI) 5))- 0] = 0;
		L = sprintf(((NCSTRING) (buf)), ((NCSTRING) (frmtstr)), precision, f);
	}
	goto LA1_;
	LA3_: ;
	{
		frmtstr[(((NI) 1))- 0] = floatFormatToChar__WVISPus3ZqCVSuP9bzn9cVxw[(format)- 0];
		frmtstr[(((NI) 2))- 0] = 0;
		L = sprintf(((NCSTRING) (buf)), ((NCSTRING) (frmtstr)), f);
	}
	LA1_: ;
	result = mnewString(((NI)chckRange(L, ((NI) 0), ((NI) IL64(9223372036854775807)))));
	{
		NI32 i;
		NI32 res;
		i = (NI32)0;
		res = ((NI32) 0);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_203;
				if (!(res < L)) goto LA8;
				i = res;
				{
					if ((NU)(i) > (NU)(2500)) raiseIndexError2(i, 2500);
					if (!(((NU8)(buf[(i)- 0])) == ((NU8)(46)) || ((NU8)(buf[(i)- 0])) == ((NU8)(44)))) goto LA11_;
					if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(i,(result ? result->Sup.len : 0)-1);
					result->data[i] = decimalSep;
				}
				goto LA9_;
				LA11_: ;
				{
					if ((NU)(i) >= (NU)(result ? result->Sup.len : 0)) raiseIndexError2(i,(result ? result->Sup.len : 0)-1);
					if ((NU)(i) > (NU)(2500)) raiseIndexError2(i, 2500);
					result->data[i] = buf[(i)- 0];
				}
				LA9_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_203 = addInt(res, ((NI) 1));
				if (TM__JGc9b9bh2D3nTdUR7TGyq8aA_203 < (-2147483647 -1) || TM__JGc9b9bh2D3nTdUR7TGyq8aA_203 > 2147483647) raiseOverflow();
				res = (NI32)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_203);
			} LA8: ;
		}
	}
	return result;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nsuformatFloat)(NF f, tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ format, NI precision, NIM_CHAR decimalSep) {	NimStringDesc* result;
	result = (NimStringDesc*)0;
	result = nsuformatBiggestFloat(f, format, precision, decimalSep);
	return result;
}
static N_INLINE(NI, find__31wM5Ui9c8jnrQ5QD4oPxOQsystem)(NIM_CHAR* a, NI aLen_0, NIM_CHAR item) {	NI result;
{	result = (NI)0;
	{
		NIM_CHAR i;
		NI i_2;
		i = (NIM_CHAR)0;
		i_2 = ((NI) 0);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_204;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_205;
				if (!(i_2 < aLen_0)) goto LA3;
				if ((NU)(i_2) >= (NU)(aLen_0)) raiseIndexError2(i_2,aLen_0-1);
				i = a[i_2];
				{
					if (!((NU8)(i) == (NU8)(item))) goto LA6_;
					goto BeforeRet_;
				}
				LA6_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_204 = addInt(result, ((NI) 1));
				result = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_204);
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_205 = addInt(i_2, ((NI) 1));
				i_2 = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_205);
			} LA3: ;
		}
	}
	result = ((NI) -1);
	}BeforeRet_: ;
	return result;
}
static N_INLINE(NIM_BOOL, contains__Pa9a8m0kZYH6LC8N1EcZJdQsystem)(NIM_CHAR* a, NI aLen_0, NIM_CHAR item) {	NIM_BOOL result;
	NI T1_;
{	result = (NIM_BOOL)0;
	T1_ = (NI)0;
	T1_ = find__31wM5Ui9c8jnrQ5QD4oPxOQsystem(a, aLen_0, item);
	result = (((NI) 0) <= T1_);
	goto BeforeRet_;
	}BeforeRet_: ;
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, trimZeros__0OVKyF6Hf9aFGirS1iJE8lQ)(NimStringDesc** x) {	tySequence__sM4lkSb7zS6F7OVMvW9cffQ* spl;
	spl = (tySequence__sM4lkSb7zS6F7OVMvW9cffQ*)0;
	{
		NIM_BOOL T3_;
		T3_ = (NIM_BOOL)0;
		T3_ = contains__Pa9a8m0kZYH6LC8N1EcZJdQsystem((*x)->data, ((*x) ? (*x)->Sup.len : 0), 46);
		if (T3_) goto LA4_;
		T3_ = contains__Pa9a8m0kZYH6LC8N1EcZJdQsystem((*x)->data, ((*x) ? (*x)->Sup.len : 0), 44);
		LA4_: ;
		if (!T3_) goto LA5_;
		{
			NIM_BOOL T9_;
			T9_ = (NIM_BOOL)0;
			T9_ = contains__Pa9a8m0kZYH6LC8N1EcZJdQsystem((*x)->data, ((*x) ? (*x)->Sup.len : 0), 101);
			if (!T9_) goto LA10_;
			spl = nsuSplitChar((*x), 101, ((NI) -1));
			if ((NU)(((NI) 0)) >= (NU)(spl ? spl->Sup.len : 0)) raiseIndexError2(((NI) 0),(spl ? spl->Sup.len : 0)-1);
			unsureAsgnRef((void**) (&(*x)), copyString(spl->data[((NI) 0)]));
		}
		LA10_: ;
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_206;
				if ((NU)((((*x) ? (*x)->Sup.len : 0)-1)) >= (NU)((*x) ? (*x)->Sup.len : 0)) raiseIndexError2((((*x) ? (*x)->Sup.len : 0)-1),((*x) ? (*x)->Sup.len : 0)-1);
				if (!((NU8)((*x)->data[(((*x) ? (*x)->Sup.len : 0)-1)]) == (NU8)(48))) goto LA13;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_206 = subInt(((*x) ? (*x)->Sup.len : 0), ((NI) 1));
				unsureAsgnRef((void**) (&(*x)), setLengthStr((*x), ((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_206), ((NI) 0), ((NI) IL64(9223372036854775807))))));
			} LA13: ;
		}
		{
			NIM_BOOL T16_;
			NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_208;
			if ((NU)((((*x) ? (*x)->Sup.len : 0)-1)) >= (NU)((*x) ? (*x)->Sup.len : 0)) raiseIndexError2((((*x) ? (*x)->Sup.len : 0)-1),((*x) ? (*x)->Sup.len : 0)-1);
			T16_ = (NIM_BOOL)0;
			T16_ = contains__Pa9a8m0kZYH6LC8N1EcZJdQsystem(TM__JGc9b9bh2D3nTdUR7TGyq8aA_207, 2, (*x)->data[(((*x) ? (*x)->Sup.len : 0)-1)]);
			if (!T16_) goto LA17_;
			TM__JGc9b9bh2D3nTdUR7TGyq8aA_208 = subInt(((*x) ? (*x)->Sup.len : 0), ((NI) 1));
			unsureAsgnRef((void**) (&(*x)), setLengthStr((*x), ((NI)chckRange((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_208), ((NI) 0), ((NI) IL64(9223372036854775807))))));
		}
		LA17_: ;
		{
			NI T21_;
			NimStringDesc* T24_;
			T21_ = (spl ? spl->Sup.len : 0);
			if (!(((NI) 0) < T21_)) goto LA22_;
			T24_ = (NimStringDesc*)0;
			if ((NU)(((NI) 1)) >= (NU)(spl ? spl->Sup.len : 0)) raiseIndexError2(((NI) 1),(spl ? spl->Sup.len : 0)-1);
			T24_ = rawNewString((spl->data[((NI) 1)] ? spl->data[((NI) 1)]->Sup.len : 0) + 1);
appendString(T24_, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_209));
appendString(T24_, spl->data[((NI) 1)]);
			unsureAsgnRef((void**) (&(*x)), resizeString((*x), (T24_ ? T24_->Sup.len : 0) + 0));
appendString((*x), T24_);
		}
		LA22_: ;
	}
	LA5_: ;
}
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, formatSize__sJSibvv0Wr8GrWWSB9cNm9aw)(NI64 bytes, NIM_CHAR decimalSep, tyEnum_BinaryPrefixMode__nDtrM19b3byM8T9ab2m7BwvA prefix, NIM_BOOL includeSpace) {	NimStringDesc* result;
	NI64 xb;
	NF fbytes;
	NI64 lastXb;
	NI matchedIndex;
	tyArray__17w6ns39bmjfAZ429aQpCFUA prefixes;
	NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_202;
	result = (NimStringDesc*)0;
	xb = bytes;
	fbytes = (NF)0;
	lastXb = bytes;
	matchedIndex = (NI)0;
	nimZeroMem((void*)prefixes, sizeof(tyArray__17w6ns39bmjfAZ429aQpCFUA));
	{
		if (!(prefix == ((tyEnum_BinaryPrefixMode__nDtrM19b3byM8T9ab2m7BwvA) 1))) goto LA3_;
		genericAssign((void*)prefixes, (void*)collPrefixes__biGTDQtLn0RX9aMOaFztEcQ, (&NTI__17w6ns39bmjfAZ429aQpCFUA_));
	}
	goto LA1_;
	LA3_: ;
	{
		genericAssign((void*)prefixes, (void*)iecPrefixes__sg9cD5AlNYzrrY1lS9aWp9bJA, (&NTI__17w6ns39bmjfAZ429aQpCFUA_));
	}
	LA1_: ;
	{
		NI index;
		NI i;
		index = (NI)0;
		i = ((NI) 1);
		{
			while (1) {
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_198;
				NI64 TM__JGc9b9bh2D3nTdUR7TGyq8aA_199;
				NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_201;
				if (!(i < ((NI) 9))) goto LA8;
				index = i;
				lastXb = xb;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_198 = mulInt(index, ((NI) 10));
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_199 = divInt64(bytes, (NI64)((NU64)(IL64(1)) << (NU64)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_198))));
				xb = (NI64)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_199);
				matchedIndex = index;
				{
					NI TM__JGc9b9bh2D3nTdUR7TGyq8aA_200;
					if (!(xb == IL64(0))) goto LA11_;
					xb = lastXb;
					TM__JGc9b9bh2D3nTdUR7TGyq8aA_200 = subInt(index, ((NI) 1));
					matchedIndex = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_200);
					goto LA6;
				}
				LA11_: ;
				TM__JGc9b9bh2D3nTdUR7TGyq8aA_201 = addInt(i, ((NI) 1));
				i = (NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_201);
			} LA8: ;
		}
	} LA6: ;
	TM__JGc9b9bh2D3nTdUR7TGyq8aA_202 = mulInt(matchedIndex, ((NI) 10));
	fbytes = ((NF)(((NF) (bytes))) / (NF)(((NF) ((NI64)((NU64)(IL64(1)) << (NU64)((NI)(TM__JGc9b9bh2D3nTdUR7TGyq8aA_202)))))));
	result = nsuformatFloat(fbytes, ((tyEnum_FloatFormatMode__pNvEoaqwoxKyoASD11vSgQ) 1), ((NI) 3), decimalSep);
	trimZeros__0OVKyF6Hf9aFGirS1iJE8lQ((&result));
	{
		if (!includeSpace) goto LA15_;
		result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_210));
	}
	LA15_: ;
	if ((NU)(matchedIndex) > (NU)(8)) raiseIndexError2(matchedIndex, 8);
	result = resizeString(result, (prefixes[(matchedIndex)- 0] ? prefixes[(matchedIndex)- 0]->Sup.len : 0) + 0);
appendString(result, prefixes[(matchedIndex)- 0]);
	result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TM__JGc9b9bh2D3nTdUR7TGyq8aA_211));
	return result;
}
N_LIB_PRIVATE N_NIMCALL(void, stdlib_strutilsDatInit000)(void) {
NTI__17w6ns39bmjfAZ429aQpCFUA_.size = sizeof(tyArray__17w6ns39bmjfAZ429aQpCFUA);
NTI__17w6ns39bmjfAZ429aQpCFUA_.kind = 16;
NTI__17w6ns39bmjfAZ429aQpCFUA_.base = (&NTI__77mFvmsOLKik79ci2hXkHEg_);
NTI__17w6ns39bmjfAZ429aQpCFUA_.flags = 2;
}

