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

#include "nimbase.h"
#include <string.h>
#include <stdio.h>
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tcgen469026 Tcgen469026;
typedef struct Tllstream202204 Tllstream202204;
typedef struct Tbaselexer203015 Tbaselexer203015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tidtable214840 Tidtable214840;
typedef struct Tidobj189006 Tidobj189006;
typedef struct Ttype214828 Ttype214828;
typedef struct Ttypeseq214824 Ttypeseq214824;
typedef struct Tnode214790 Tnode214790;
typedef struct Tsym214822 Tsym214822;
typedef struct Tloc214804 Tloc214804;
typedef struct Ropeobj169006 Ropeobj169006;
typedef struct Tpasscontext261002 Tpasscontext261002;
typedef struct Tidpairseq214838 Tidpairseq214838;
typedef struct Intset211035 Intset211035;
typedef struct Trunk211031 Trunk211031;
typedef struct Trunkseq211033 Trunkseq211033;
typedef struct Tlinkedlist135016 Tlinkedlist135016;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct Tcproc469022 Tcproc469022;
typedef struct Tnodetable214852 Tnodetable214852;
typedef struct Tnodepairseq214850 Tnodepairseq214850;
typedef struct Tsymseq214792 Tsymseq214792;
typedef struct Tlineinfo182337 Tlineinfo182337;
typedef struct Tnodeseq214784 Tnodeseq214784;
typedef struct TY182350 TY182350;
typedef struct TY469094 TY469094;
typedef struct Tblock469020 Tblock469020;
typedef struct Tmergesections470642 Tmergesections470642;
typedef struct Cell47505 Cell47505;
typedef struct Cellseq47521 Cellseq47521;
typedef struct Gcheap49818 Gcheap49818;
typedef struct Gcstack49816 Gcstack49816;
typedef struct Cellset47517 Cellset47517;
typedef struct Pagedesc47513 Pagedesc47513;
typedef struct Memregion29688 Memregion29688;
typedef struct Smallchunk29640 Smallchunk29640;
typedef struct Llchunk29682 Llchunk29682;
typedef struct Bigchunk29642 Bigchunk29642;
typedef struct Intset29614 Intset29614;
typedef struct Trunk29610 Trunk29610;
typedef struct Avlnode29686 Avlnode29686;
typedef struct Gcstat49814 Gcstat49814;
typedef struct Tidpair214836 Tidpair214836;
typedef struct Tident189012 Tident189012;
typedef struct Tscope214816 Tscope214816;
typedef struct TY214925 TY214925;
typedef struct Tstrtable214794 Tstrtable214794;
typedef struct Tlib214808 Tlib214808;
typedef struct Tnodepair214848 Tnodepair214848;
typedef struct Basechunk29638 Basechunk29638;
typedef struct Freecell29630 Freecell29630;
typedef struct Tinstantiation214812 Tinstantiation214812;
typedef struct TY214913 TY214913;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef N_NIMCALL_PTR(void, TY3489) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3494) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3489 marker;
TY3494 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tbaselexer203015  {
  TNimObject Sup;
NI bufpos;
NCSTRING buf;
NI buflen;
Tllstream202204* stream;
NI linenumber;
NI sentinel;
NI linestart;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tidobj189006  {
  TNimObject Sup;
NI id;
};
struct  Tloc214804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype214828* t;
Ropeobj169006* r;
Ropeobj169006* heaproot;
};
struct  Ttype214828  {
  Tidobj189006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq214824* sons;
Tnode214790* n;
Tsym214822* owner;
Tsym214822* sym;
Tsym214822* destructor;
Tsym214822* deepcopy;
Tsym214822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc214804 loc;
};
struct  Tpasscontext261002  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
typedef Ropeobj169006* Tcfilesections469010[18];
struct  Tidtable214840  {
NI counter;
Tidpairseq214838* data;
};
struct  Intset211035  {
NI counter;
NI max;
Trunk211031* head;
Trunkseq211033* data;
};
struct  Tlinkedlist135016  {
Tlistentry135010* head;
Tlistentry135010* tail;
NI counter;
};
struct  Tnodetable214852  {
NI counter;
Tnodepairseq214850* data;
};
typedef Ropeobj169006* TY469132[10];
struct  Tcgen469026  {
  Tpasscontext261002 Sup;
Tsym214822* module;
NimStringDesc* filename;
Tcfilesections469010 s;
NIM_BOOL preventstacktrace;
NIM_BOOL usesthreadvars;
NIM_BOOL framedeclared;
NIM_BOOL isheaderfile;
NIM_BOOL includesstringh;
NIM_BOOL objhaskidsvalid;
NimStringDesc* cfilename;
Tidtable214840 typecache;
Tidtable214840 forwtypecache;
Intset211035 declaredthings;
Intset211035 declaredprotos;
Tlinkedlist135016 headerfiles;
Intset211035 typeinfomarker;
Tcproc469022* initproc;
Tcproc469022* postinitproc;
Tcproc469022* preinitproc;
Ttypeseq214824* typestack;
Tnodetable214852 datacache;
Tsymseq214792* forwardedprocs;
NI typenodes;
NI nimtypes;
Ropeobj169006* typenodesname;
Ropeobj169006* nimtypesname;
NI labels;
TY469132 extensionloaders;
Ropeobj169006* injectstmt;
};
struct  Tlineinfo182337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tcproc469022  {
Tsym214822* prc;
NIM_BOOL beforeretneeded;
NIM_BOOL threadvaraccessed;
Tlineinfo182337 lastlineinfo;
Tnodeseq214784* nestedtrystmts;
NI inexceptblock;
TY182350* finallysafepoints;
NI labels;
TY469094* blocks;
NI breakidx;
NU32 options;
NI maxframelen;
Tcgen469026* module;
NI withinloop;
NI splitdecls;
NI gcframeid;
Ropeobj169006* gcframetype;
};
typedef Ropeobj169006* Tcprocsections469014[3];
struct  Tblock469020  {
NI id;
Ropeobj169006* label;
Tcprocsections469014 sections;
NIM_BOOL isloop;
NI16 nestedtrystmts;
NI16 nestedexceptstmts;
NI16 framelen;
};
struct  Tmergesections470642  {
Tcfilesections469010 f;
Tcprocsections469014 p;
};
typedef NimStringDesc* TY470006[18];
typedef NimStringDesc* TY470012[3];
struct  Cell47505  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47521  {
NI len;
NI cap;
Cell47505** d;
};
struct  Cellset47517  {
NI counter;
NI max;
Pagedesc47513* head;
Pagedesc47513** data;
};
typedef Smallchunk29640* TY29703[512];
typedef Trunk29610* Trunkbuckets29612[256];
struct  Intset29614  {
Trunkbuckets29612 data;
};
struct  Memregion29688  {
NI minlargeobj;
NI maxlargeobj;
TY29703 freesmallchunks;
Llchunk29682* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29642* freechunkslist;
Intset29614 chunkstarts;
Avlnode29686* root;
Avlnode29686* deleted;
Avlnode29686* last;
Avlnode29686* freeavlnodes;
};
struct  Gcstat49814  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap49818  {
Gcstack49816* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47521 zct;
Cellseq47521 decstack;
Cellset47517 cycleroots;
Cellseq47521 tempstack;
NI recgclock;
Memregion29688 region;
Gcstat49814 stat;
};
struct  Tidpair214836  {
Tidobj189006* key;
TNimObject* val;
};
typedef NI TY29619[8];
struct  Trunk211031  {
Trunk211031* next;
NI key;
TY29619 bits;
};
struct  Tllstream202204  {
  TNimObject Sup;
NU8 kind;
FILE* f;
NimStringDesc* s;
NI rd;
NI wr;
NI lineoffset;
};
struct  Tnode214790  {
Ttype214828* typ;
Tlineinfo182337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym214822* sym;
} S4;
struct {Tident189012* ident;
} S5;
struct {Tnodeseq214784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tstrtable214794  {
NI counter;
Tsymseq214792* data;
};
struct  Tsym214822  {
  Tidobj189006 Sup;
NU8 kind;
union{
struct {Ttypeseq214824* typeinstcache;
Tscope214816* typscope;
} S1;
struct {TY214925* procinstcache;
Tsym214822* gcunsafetyreason;
} S2;
struct {TY214925* usedgenerics;
Tstrtable214794 tab;
} S3;
struct {Tsym214822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype214828* typ;
Tident189012* name;
Tlineinfo182337 info;
Tsym214822* owner;
NU32 flags;
Tnode214790* ast;
NU32 options;
NI position;
NI offset;
Tloc214804 loc;
Tlib214808* annex;
Tnode214790* constraint;
};
struct  Ropeobj169006  {
  TNimObject Sup;
Ropeobj169006* left;
Ropeobj169006* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Tnodepair214848  {
NI h;
Tnode214790* key;
NI val;
};
struct  Gcstack49816  {
Gcstack49816* prev;
Gcstack49816* next;
void* starts;
void* pos;
NI maxstacksize;
};
struct  Pagedesc47513  {
Pagedesc47513* next;
NI key;
TY29619 bits;
};
struct  Basechunk29638  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29640  {
  Basechunk29638 Sup;
Smallchunk29640* next;
Smallchunk29640* prev;
Freecell29630* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29682  {
NI size;
NI acc;
Llchunk29682* next;
};
struct  Bigchunk29642  {
  Basechunk29638 Sup;
Bigchunk29642* next;
Bigchunk29642* prev;
NI align;
NF data;
};
struct  Trunk29610  {
Trunk29610* next;
NI key;
TY29619 bits;
};
typedef Avlnode29686* TY29693[2];
struct  Avlnode29686  {
TY29693 link;
NI key;
NI upperbound;
NI level;
};
struct  Tident189012  {
  Tidobj189006 Sup;
NimStringDesc* s;
Tident189012* next;
NI h;
};
struct  Tscope214816  {
NI depthlevel;
Tstrtable214794 symbols;
Tnodeseq214784* usingsyms;
Tscope214816* parent;
};
struct  Tlib214808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj169006* name;
Tnode214790* path;
};
struct  Freecell29630  {
Freecell29630* next;
NI zerofield;
};
struct  Tinstantiation214812  {
Tsym214822* sym;
Ttypeseq214824* concretetypes;
TY214913* usedby;
NI compilesid;
};
struct Ttypeseq214824 {
  TGenericSeq Sup;
  Ttype214828* data[SEQ_DECL_SIZE];
};
struct Tidpairseq214838 {
  TGenericSeq Sup;
  Tidpair214836 data[SEQ_DECL_SIZE];
};
struct Trunkseq211033 {
  TGenericSeq Sup;
  Trunk211031* data[SEQ_DECL_SIZE];
};
struct Tnodepairseq214850 {
  TGenericSeq Sup;
  Tnodepair214848 data[SEQ_DECL_SIZE];
};
struct Tsymseq214792 {
  TGenericSeq Sup;
  Tsym214822* data[SEQ_DECL_SIZE];
};
struct Tnodeseq214784 {
  TGenericSeq Sup;
  Tnode214790* data[SEQ_DECL_SIZE];
};
struct TY182350 {
  TGenericSeq Sup;
  Ropeobj169006* data[SEQ_DECL_SIZE];
};
struct TY469094 {
  TGenericSeq Sup;
  Tblock469020 data[SEQ_DECL_SIZE];
};
struct TY214925 {
  TGenericSeq Sup;
  Tinstantiation214812* data[SEQ_DECL_SIZE];
};
struct TY214913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Tllstream202204*, llstreamopen_202241)(NimStringDesc* filename, NU8 mode);
N_NIMCALL(void, openbaselexer_203023)(Tbaselexer203015* L, Tllstream202204* inputstream, NI buflen);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_NIMCALL(void, skipuntilcmd_470251)(Tbaselexer203015* L);
N_NIMCALL(NI, handlecr_203042)(Tbaselexer203015* L, NI pos);
N_NIMCALL(NI, handlelf_203047)(Tbaselexer203015* L, NI pos);
N_NIMCALL(void, readkey_470328)(Tbaselexer203015* L, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newlen);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(void, internalerror_187113)(NimStringDesc* errmsg);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(void, processmergeinfo_470433)(Tbaselexer203015* L, Tcgen469026* m);
N_NIMCALL(void, skipwhite_470236)(Tbaselexer203015* L);
N_NIMCALL(void, readtypecache_470368)(Tbaselexer203015* L, Tidtable214840* result);
N_NIMCALL(NI, decodevint_220265)(NCSTRING s, NI* pos);
N_NIMCALL(NimStringDesc*, decodestr_220111)(NCSTRING s, NI* pos);
N_NIMCALL(void, idtableput_221115)(Tidtable214840* t, Tidobj189006* key, TNimObject* val);
N_NIMCALL(Ttype214828*, newfaketype_470356)(NI id);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(Ropeobj169006*, rope_169277)(NimStringDesc* s);
N_NIMCALL(void, readintset_470406)(Tbaselexer203015* L, Intset211035* result);
N_NIMCALL(void, incl_211832)(Intset211035* s, NI key);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(void, closebaselexer_203030)(Tbaselexer203015* L);
static N_INLINE(Ropeobj169006**, s_469166)(Tcproc469022* p, NU8 s);
N_NIMCALL(void, readmergesections_470645)(NimStringDesc* cfilename, Tmergesections470642* m);
N_NIMCALL(Ropeobj169006*, readverbatimsection_470300)(Tbaselexer203015* L);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(NIM_BOOL, atendmark_470284)(NCSTRING buf, NI pos);
static N_INLINE(NI, find_470684)(TY470006 a, NimStringDesc* item);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
static N_INLINE(NI, find_470755)(TY470012 a, NimStringDesc* item);
N_NIMCALL(Ropeobj169006*, HEX26_169418)(Ropeobj169006* a, Ropeobj169006* b);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell47505*, usrtocell_51440)(void* usr);
static N_INLINE(void, rtladdzct_53001)(Cell47505* c);
N_NOINLINE(void, addzct_51417)(Cellseq47521* s, Cell47505* c);
N_NIMCALL(void, add_169487)(Ropeobj169006** a, NimStringDesc* b);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(void, writetypecache_470148)(Tidtable214840 a, NimStringDesc** s);
N_NIMCALL(void, encodevint_220212)(NI x, NimStringDesc** result);
N_NIMCALL(void, encodestr_220018)(NimStringDesc* s, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, HEX24_169856)(Ropeobj169006* r);
N_NIMCALL(void, writeintset_470176)(Intset211035* a, NimStringDesc** s);
STRING_LITERAL(TMP4464, "ccgmerge: \':\' expected", 22);
STRING_LITERAL(TMP4465, "NIM_merge_INFO", 14);
STRING_LITERAL(TMP4466, "typeCache", 9);
STRING_LITERAL(TMP4467, "declared", 8);
STRING_LITERAL(TMP4468, "typeInfo", 8);
STRING_LITERAL(TMP4469, "labels", 6);
STRING_LITERAL(TMP4470, "hasframe", 8);
STRING_LITERAL(TMP4471, "ccgmerge: \'{\' expected", 22);
STRING_LITERAL(TMP4472, "ccgmerge: unknown key: ", 23);
STRING_LITERAL(TMP4540, "ccgmerge: expected: /*\011NIM_merge_END:*/", 39);
STRING_LITERAL(TMP4541, "/*\011NIM_merge_END:*/", 19);
STRING_LITERAL(TMP4542, "", 0);
STRING_LITERAL(TMP4543, "NIM_merge_HEADERS", 17);
STRING_LITERAL(TMP4544, "NIM_merge_FORWARD_TYPES", 23);
STRING_LITERAL(TMP4545, "NIM_merge_TYPES", 15);
STRING_LITERAL(TMP4546, "NIM_merge_SEQ_TYPES", 19);
STRING_LITERAL(TMP4547, "NIM_merge_FIELD_INFO", 20);
STRING_LITERAL(TMP4548, "NIM_merge_TYPE_INFO", 19);
STRING_LITERAL(TMP4549, "NIM_merge_PROC_HEADERS", 22);
STRING_LITERAL(TMP4550, "NIM_merge_DATA", 14);
STRING_LITERAL(TMP4551, "NIM_merge_VARS", 14);
STRING_LITERAL(TMP4552, "NIM_merge_PROCS", 15);
STRING_LITERAL(TMP4553, "NIM_merge_INIT_PROC", 19);
STRING_LITERAL(TMP4554, "NIM_merge_TYPE_INIT1", 20);
STRING_LITERAL(TMP4555, "NIM_merge_TYPE_INIT2", 20);
STRING_LITERAL(TMP4556, "NIM_merge_TYPE_INIT3", 20);
STRING_LITERAL(TMP4557, "NIM_merge_DEBUG_INIT", 20);
STRING_LITERAL(TMP4558, "NIM_merge_DYNLIB_INIT", 21);
STRING_LITERAL(TMP4559, "NIM_merge_DYNLIB_DEINIT", 23);
NIM_CONST TY470006 Cfilesectionnames_470003 = {((NimStringDesc*) &TMP4542),
((NimStringDesc*) &TMP4543),
((NimStringDesc*) &TMP4544),
((NimStringDesc*) &TMP4545),
((NimStringDesc*) &TMP4546),
((NimStringDesc*) &TMP4547),
((NimStringDesc*) &TMP4548),
((NimStringDesc*) &TMP4549),
((NimStringDesc*) &TMP4550),
((NimStringDesc*) &TMP4551),
((NimStringDesc*) &TMP4552),
((NimStringDesc*) &TMP4553),
((NimStringDesc*) &TMP4554),
((NimStringDesc*) &TMP4555),
((NimStringDesc*) &TMP4556),
((NimStringDesc*) &TMP4557),
((NimStringDesc*) &TMP4558),
((NimStringDesc*) &TMP4559)}
;
STRING_LITERAL(TMP4560, "NIM_merge_PROC_LOCALS", 21);
STRING_LITERAL(TMP4561, "NIM_merge_PROC_INIT", 19);
STRING_LITERAL(TMP4562, "NIM_merge_PROC_BODY", 19);
NIM_CONST TY470012 Cprocsectionnames_470009 = {((NimStringDesc*) &TMP4560),
((NimStringDesc*) &TMP4561),
((NimStringDesc*) &TMP4562)}
;
STRING_LITERAL(TMP4563, "ccgmerge: unknown section: ", 27);
STRING_LITERAL(TMP4564, "ccgmerge: \'*/\' expected", 23);
STRING_LITERAL(TMP4568, "/*\011", 3);
STRING_LITERAL(TMP4569, ":*/", 3);
STRING_LITERAL(TMP4577, "/*\011NIM_merge_INFO:", 18);
STRING_LITERAL(TMP4578, "typeCache:{", 11);
STRING_LITERAL(TMP4579, "declared:{", 10);
STRING_LITERAL(TMP4580, "typeInfo:{", 10);
STRING_LITERAL(TMP4581, "labels:", 7);
STRING_LITERAL(TMP4582, " hasframe:", 10);
STRING_LITERAL(TMP4583, "*/", 2);
extern TNimType NTI203015; /* TBaseLexer */
extern TNimType NTI214786; /* PType */
extern TNimType NTI214828; /* TType */
extern NimStringDesc* tnl_167618;
extern Gcheap49818 gch_49859;
extern NU32 gglobaloptions_160121;

N_NIMCALL(void, skipuntilcmd_470251)(Tbaselexer203015* L) {
	NI pos;
	pos = (*L).bufpos;
	{
		while (1) {
			switch (((NU8)((*L).buf[pos]))) {
			case 13:
			{
				pos = handlecr_203042(L, pos);
			}
			break;
			case 10:
			{
				pos = handlelf_203047(L, pos);
			}
			break;
			case 0:
			{
				goto LA1;
			}
			break;
			case 47:
			{
				{
					NIM_BOOL LOC9;
					LOC9 = 0;
					LOC9 = ((NU8)((*L).buf[(NI)(pos + ((NI) 1))]) == (NU8)(42));
					if (!(LOC9)) goto LA10;
					LOC9 = ((NU8)((*L).buf[(NI)(pos + ((NI) 2))]) == (NU8)(9));
					LA10: ;
					if (!LOC9) goto LA11;
					pos += ((NI) 3);
					goto LA1;
				}
				LA11: ;
				pos += ((NI) 1);
			}
			break;
			default:
			{
				pos += ((NI) 1);
			}
			break;
			}
		}
	} LA1: ;
	(*L).bufpos = pos;
}

N_NIMCALL(void, readkey_470328)(Tbaselexer203015* L, NimStringDesc** result) {
	NI pos;
	NCSTRING buf;
	pos = (*L).bufpos;
	buf = (*L).buf;
	(*result) = setLengthStr((*result), ((NI) 0));
	{
		while (1) {
			if (!(((NU8)(buf[pos])) >= ((NU8)(97)) && ((NU8)(buf[pos])) <= ((NU8)(122)) || ((NU8)(buf[pos])) >= ((NU8)(65)) && ((NU8)(buf[pos])) <= ((NU8)(90)) || ((NU8)(buf[pos])) >= ((NU8)(48)) && ((NU8)(buf[pos])) <= ((NU8)(57)) || ((NU8)(buf[pos])) == ((NU8)(95)))) goto LA2;
			(*result) = addChar((*result), buf[pos]);
			pos += ((NI) 1);
		} LA2: ;
	}
	{
		if (!!(((NU8)(buf[pos]) == (NU8)(58)))) goto LA5;
		internalerror_187113(((NimStringDesc*) &TMP4464));
	}
	LA5: ;
	(*L).bufpos = (NI)(pos + ((NI) 1));
}

static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {
	NIM_BOOL result;
	NIM_BOOL LOC11;
	int LOC13;
{	result = 0;
	{
		if (!(a == b)) goto LA3;
		result = NIM_TRUE;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = (a == NIM_NIL);
		if (LOC7) goto LA8;
		LOC7 = (b == NIM_NIL);
		LA8: ;
		if (!LOC7) goto LA9;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA9: ;
	LOC11 = 0;
	LOC11 = ((*a).Sup.len == (*b).Sup.len);
	if (!(LOC11)) goto LA12;
	LOC13 = 0;
	LOC13 = memcmp(((NCSTRING) ((*a).data)), ((NCSTRING) ((*b).data)), (*a).Sup.len);
	LOC11 = (LOC13 == ((NI32) 0));
	LA12: ;
	result = LOC11;
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, skipwhite_470236)(Tbaselexer203015* L) {
	NI pos;
	pos = (*L).bufpos;
	{
		while (1) {
			switch (((NU8)((*L).buf[pos]))) {
			case 13:
			{
				pos = handlecr_203042(L, pos);
			}
			break;
			case 10:
			{
				pos = handlelf_203047(L, pos);
			}
			break;
			case 32:
			{
				pos += ((NI) 1);
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
		}
	} LA1: ;
	(*L).bufpos = pos;
}

N_NIMCALL(Ttype214828*, newfaketype_470356)(NI id) {
	Ttype214828* result;
	result = 0;
	result = (Ttype214828*) newObj((&NTI214786), sizeof(Ttype214828));
	(*result).Sup.Sup.m_type = (&NTI214828);
	(*result).Sup.id = id;
	return result;
}

N_NIMCALL(void, readtypecache_470368)(Tbaselexer203015* L, Tidtable214840* result) {
	{
		if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(123)))) goto LA3;
		internalerror_187113(((NimStringDesc*) &TMP4471));
	}
	LA3: ;
	(*L).bufpos += ((NI) 1);
	{
		while (1) {
			NI key;
			NimStringDesc* value;
			Ttype214828* LOC11;
			Tidobj189006* LOC12;
			Ropeobj169006* LOC13;
			TNimObject* LOC14;
			if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(125)))) goto LA6;
			skipwhite_470236(L);
			key = decodevint_220265((*L).buf, (&(*L).bufpos));
			{
				if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(58)))) goto LA9;
				internalerror_187113(((NimStringDesc*) &TMP4464));
			}
			LA9: ;
			(*L).bufpos += ((NI) 1);
			value = decodestr_220111((*L).buf, (&(*L).bufpos));
			LOC11 = 0;
			LOC11 = newfaketype_470356(key);
			LOC12 = 0;
			LOC12 = &LOC11->Sup;
			LOC13 = 0;
			LOC13 = rope_169277(value);
			LOC14 = 0;
			LOC14 = &LOC13->Sup;
			idtableput_221115(result, LOC12, LOC14);
		} LA6: ;
	}
	(*L).bufpos += ((NI) 1);
}

N_NIMCALL(void, readintset_470406)(Tbaselexer203015* L, Intset211035* result) {
	{
		if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(123)))) goto LA3;
		internalerror_187113(((NimStringDesc*) &TMP4471));
	}
	LA3: ;
	(*L).bufpos += ((NI) 1);
	{
		while (1) {
			NI key;
			if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(125)))) goto LA6;
			skipwhite_470236(L);
			key = decodevint_220265((*L).buf, (&(*L).bufpos));
			incl_211832(result, key);
		} LA6: ;
	}
	(*L).bufpos += ((NI) 1);
}

static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	memcpy(((NCSTRING) ((&(*dest).data[((*dest).Sup.len)- 0]))), ((NCSTRING) ((*src).data)), (NI)((*src).Sup.len + ((NI) 1)));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(void, processmergeinfo_470433)(Tbaselexer203015* L, Tcgen469026* m) {
	NimStringDesc* k;
	k = rawNewString(((NI) 9));
	{
		while (1) {
			skipwhite_470236(L);
			{
				NIM_BOOL LOC5;
				LOC5 = 0;
				LOC5 = ((NU8)((*L).buf[(*L).bufpos]) == (NU8)(42));
				if (!(LOC5)) goto LA6;
				LOC5 = ((NU8)((*L).buf[(NI)((*L).bufpos + ((NI) 1))]) == (NU8)(47));
				LA6: ;
				if (!LOC5) goto LA7;
				(*L).bufpos += ((NI) 2);
				goto LA1;
			}
			LA7: ;
			readkey_470328(L, (&k));
			if (eqStrings(k, ((NimStringDesc*) &TMP4466))) goto LA9;
			if (eqStrings(k, ((NimStringDesc*) &TMP4467))) goto LA10;
			if (eqStrings(k, ((NimStringDesc*) &TMP4468))) goto LA11;
			if (eqStrings(k, ((NimStringDesc*) &TMP4469))) goto LA12;
			if (eqStrings(k, ((NimStringDesc*) &TMP4470))) goto LA13;
			goto LA14;
			LA9: ;
			{
				readtypecache_470368(L, (&(*m).typecache));
			}
			goto LA15;
			LA10: ;
			{
				readintset_470406(L, (&(*m).declaredthings));
			}
			goto LA15;
			LA11: ;
			{
				readintset_470406(L, (&(*m).typeinfomarker));
			}
			goto LA15;
			LA12: ;
			{
				NI LOC20;
				LOC20 = 0;
				LOC20 = decodevint_220265((*L).buf, (&(*L).bufpos));
				(*m).labels = ((NI) (LOC20));
			}
			goto LA15;
			LA13: ;
			{
				NI LOC22;
				LOC22 = 0;
				LOC22 = decodevint_220265((*L).buf, (&(*L).bufpos));
				(*m).framedeclared = !((LOC22 == ((NI) 0)));
			}
			goto LA15;
			LA14: ;
			{
				NimStringDesc* LOC24;
				LOC24 = 0;
				LOC24 = rawNewString(k->Sup.len + 23);
appendString(LOC24, ((NimStringDesc*) &TMP4472));
appendString(LOC24, k);
				internalerror_187113(LOC24);
			}
			LA15: ;
		}
	} LA1: ;
}

N_NIMCALL(void, readmergeinfo_470613)(NimStringDesc* cfilename, Tcgen469026* m) {
	Tllstream202204* s_470618;
	Tbaselexer203015 L;
	NimStringDesc* k;
{	s_470618 = llstreamopen_202241(cfilename, ((NU8) 0));
	{
		if (!(s_470618 == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&L), 0, sizeof(L));
	L.Sup.m_type = (&NTI203015);
	openbaselexer_203023((&L), s_470618, ((NI) 8192));
	k = rawNewString(((NI) 23));
	{
		while (1) {
			skipuntilcmd_470251((&L));
			{
				if (!((NU8)(L.buf[L.bufpos]) == (NU8)(0))) goto LA9;
				goto LA5;
			}
			LA9: ;
			readkey_470328((&L), (&k));
			{
				if (!eqStrings(k, ((NimStringDesc*) &TMP4465))) goto LA13;
				processmergeinfo_470433((&L), m);
				goto LA5;
			}
			LA13: ;
		}
	} LA5: ;
	closebaselexer_203030((&L));
	}BeforeRet: ;
}

static N_INLINE(Ropeobj169006**, s_469166)(Tcproc469022* p, NU8 s) {
	Ropeobj169006** result;
	result = 0;
	result = &(*p).blocks->data[(NI)(((*p).blocks ? (*p).blocks->Sup.len : 0) - ((NI) 1))].sections[(s)- 0];
	return result;
}

N_NIMCALL(NIM_BOOL, mergerequired_470832)(Tcgen469026* m) {
	NIM_BOOL result;
{	result = 0;
	{
		NU8 i_471014;
		NI res_471230;
		i_471014 = 0;
		res_471230 = ((NI) 1);
		{
			while (1) {
				if (!(res_471230 <= ((NI) 10))) goto LA3;
				i_471014 = ((NU8) (res_471230));
				{
					if (!!(((*m).s[(i_471014)- 0] == NIM_NIL))) goto LA6;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA6: ;
				res_471230 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NU8 i_471214;
		NI res_471238;
		i_471214 = 0;
		res_471238 = ((NI) 0);
		{
			while (1) {
				if (!(res_471238 <= ((NI) 2))) goto LA10;
				i_471214 = ((NU8) (res_471238));
				{
					Ropeobj169006** LOC13;
					LOC13 = 0;
					LOC13 = s_469166((*m).initproc, i_471214);
					if (!!(((*LOC13) == NIM_NIL))) goto LA14;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA14: ;
				res_471238 += ((NI) 1);
			} LA10: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, atendmark_470284)(NCSTRING buf, NI pos) {
	NIM_BOOL result;
	NI s;
	result = 0;
	s = ((NI) 0);
	{
		while (1) {
			NIM_BOOL LOC3;
			LOC3 = 0;
			LOC3 = (s < ((NI) 19));
			if (!(LOC3)) goto LA4;
			LOC3 = ((NU8)(buf[(NI)(pos + s)]) == (NU8)(((NimStringDesc*) &TMP4541)->data[s]));
			LA4: ;
			if (!LOC3) goto LA2;
			s += ((NI) 1);
		} LA2: ;
	}
	result = (s == ((NI) 19));
	return result;
}

N_NIMCALL(Ropeobj169006*, readverbatimsection_470300)(Tbaselexer203015* L) {
	Ropeobj169006* result;
	NI pos;
	NCSTRING buf;
	NimStringDesc* r;
	result = 0;
	pos = (*L).bufpos;
	buf = (*L).buf;
	r = rawNewString(((NI) 30000));
	{
		while (1) {
			switch (((NU8)(buf[pos]))) {
			case 13:
			{
				pos = handlecr_203042(L, pos);
				buf = (*L).buf;
				r = resizeString(r, tnl_167618->Sup.len + 0);
appendString(r, tnl_167618);
			}
			break;
			case 10:
			{
				pos = handlelf_203047(L, pos);
				buf = (*L).buf;
				r = resizeString(r, tnl_167618->Sup.len + 0);
appendString(r, tnl_167618);
			}
			break;
			case 0:
			{
				internalerror_187113(((NimStringDesc*) &TMP4540));
				goto LA1;
			}
			break;
			default:
			{
				{
					NIM_BOOL LOC9;
					LOC9 = 0;
					LOC9 = atendmark_470284(buf, pos);
					if (!LOC9) goto LA10;
					pos += ((NI) 19);
					goto LA1;
				}
				LA10: ;
				r = addChar(r, buf[pos]);
				pos += ((NI) 1);
			}
			break;
			}
		}
	} LA1: ;
	(*L).bufpos = pos;
	result = rope_169277(r);
	return result;
}

static N_INLINE(NI, find_470684)(TY470006 a, NimStringDesc* item) {
	NI result;
{	result = 0;
	{
		NimStringDesc* i_470737;
		NU8 i_470750;
		i_470737 = 0;
		i_470750 = ((NU8) 0);
		{
			if (!(i_470750 <= ((NU8) 17))) goto LA4;
			{
				while (1) {
					i_470737 = a[(i_470750)- 0];
					{
						if (!eqStrings(i_470737, item)) goto LA10;
						goto BeforeRet;
					}
					LA10: ;
					result += ((NI) 1);
					{
						if (!(((NU8) 17) <= i_470750)) goto LA14;
						goto LA6;
					}
					LA14: ;
					i_470750 += ((NI) 1);
				}
			} LA6: ;
		}
		LA4: ;
	}
	result = ((NI) -1);
	}BeforeRet: ;
	return result;
}

static N_INLINE(NI, find_470755)(TY470012 a, NimStringDesc* item) {
	NI result;
{	result = 0;
	{
		NimStringDesc* i_470808;
		NU8 i_470821;
		i_470808 = 0;
		i_470821 = ((NU8) 0);
		{
			if (!(i_470821 <= ((NU8) 2))) goto LA4;
			{
				while (1) {
					i_470808 = a[(i_470821)- 0];
					{
						if (!eqStrings(i_470808, item)) goto LA10;
						goto BeforeRet;
					}
					LA10: ;
					result += ((NI) 1);
					{
						if (!(((NU8) 2) <= i_470821)) goto LA14;
						goto LA6;
					}
					LA14: ;
					i_470821 += ((NI) 1);
				}
			} LA6: ;
		}
		LA4: ;
	}
	result = ((NI) -1);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, readmergesections_470645)(NimStringDesc* cfilename, Tmergesections470642* m) {
	Tllstream202204* s_470651;
	Tbaselexer203015 L;
	NimStringDesc* k;
{	s_470651 = llstreamopen_202241(cfilename, ((NU8) 0));
	{
		if (!(s_470651 == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&L), 0, sizeof(L));
	L.Sup.m_type = (&NTI203015);
	openbaselexer_203023((&L), s_470651, ((NI) 8192));
	k = rawNewString(((NI) 23));
	{
		while (1) {
			skipuntilcmd_470251((&L));
			{
				if (!((NU8)(L.buf[L.bufpos]) == (NU8)(0))) goto LA9;
				goto LA5;
			}
			LA9: ;
			readkey_470328((&L), (&k));
			{
				if (!eqStrings(k, ((NimStringDesc*) &TMP4465))) goto LA13;
			}
			goto LA11;
			LA13: ;
			{
				NIM_BOOL LOC16;
				Ropeobj169006* verbatim;
				NI sectiona;
				LOC16 = 0;
				LOC16 = ((NU8)(L.buf[L.bufpos]) == (NU8)(42));
				if (!(LOC16)) goto LA17;
				LOC16 = ((NU8)(L.buf[(NI)(L.bufpos + ((NI) 1))]) == (NU8)(47));
				LA17: ;
				if (!LOC16) goto LA18;
				L.bufpos += ((NI) 2);
				skipwhite_470236((&L));
				verbatim = readverbatimsection_470300((&L));
				skipwhite_470236((&L));
				sectiona = find_470684(Cfilesectionnames_470003, k);
				{
					NIM_BOOL LOC22;
					LOC22 = 0;
					LOC22 = (((NI) 0) < sectiona);
					if (!(LOC22)) goto LA23;
					LOC22 = (sectiona <= ((NI) 17));
					LA23: ;
					if (!LOC22) goto LA24;
					unsureAsgnRef((void**) (&(*m).f[(sectiona)- 0]), verbatim);
				}
				goto LA20;
				LA24: ;
				{
					NI sectionb;
					sectionb = find_470755(Cprocsectionnames_470009, k);
					{
						NIM_BOOL LOC29;
						LOC29 = 0;
						LOC29 = (((NI) 0) <= sectionb);
						if (!(LOC29)) goto LA30;
						LOC29 = (sectionb <= ((NI) 2));
						LA30: ;
						if (!LOC29) goto LA31;
						unsureAsgnRef((void**) (&(*m).p[(sectionb)- 0]), verbatim);
					}
					goto LA27;
					LA31: ;
					{
						NimStringDesc* LOC34;
						LOC34 = 0;
						LOC34 = rawNewString(k->Sup.len + 27);
appendString(LOC34, ((NimStringDesc*) &TMP4563));
appendString(LOC34, k);
						internalerror_187113(LOC34);
					}
					LA27: ;
				}
				LA20: ;
			}
			goto LA11;
			LA18: ;
			{
				internalerror_187113(((NimStringDesc*) &TMP4564));
			}
			LA11: ;
		}
	} LA5: ;
	closebaselexer_203030((&L));
	}BeforeRet: ;
}

static N_INLINE(Cell47505*, usrtocell_51440)(void* usr) {
	Cell47505* result;
	result = 0;
	result = ((Cell47505*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((NI)sizeof(Cell47505))))));
	return result;
}

static N_INLINE(void, rtladdzct_53001)(Cell47505* c) {
	addzct_51417((&gch_49859.zct), c);
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell47505* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_51440(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell47505* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_51440((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA11;
			rtladdzct_53001(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(void, mergefiles_471241)(NimStringDesc* cfilename, Tcgen469026* m) {
	Tmergesections470642 old;
	memset((void*)(&old), 0, sizeof(old));
	readmergesections_470645(cfilename, (&old));
	{
		NU8 i_471258;
		NI res_471277;
		i_471258 = 0;
		res_471277 = ((NI) 0);
		{
			while (1) {
				if (!(res_471277 <= ((NI) 17))) goto LA3;
				i_471258 = ((NU8) (res_471277));
				asgnRefNoCycle((void**) (&(*m).s[(i_471258)- 0]), HEX26_169418(old.f[(i_471258)- 0], (*m).s[(i_471258)- 0]));
				res_471277 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NU8 i_471270;
		NI res_471285;
		i_471270 = 0;
		res_471285 = ((NI) 0);
		{
			while (1) {
				Ropeobj169006** LOC7;
				Ropeobj169006** LOC8;
				if (!(res_471285 <= ((NI) 2))) goto LA6;
				i_471270 = ((NU8) (res_471285));
				LOC7 = 0;
				LOC7 = s_469166((*m).initproc, i_471270);
				LOC8 = 0;
				LOC8 = s_469166((*m).initproc, i_471270);
				unsureAsgnRef((void**) (&(*LOC7)), HEX26_169418(old.p[(i_471270)- 0], (*LOC8)));
				res_471285 += ((NI) 1);
			} LA6: ;
		}
	}
}

N_NIMCALL(Ropeobj169006*, gensectionstart_470082)(NU8 ps) {
	Ropeobj169006* result;
	result = 0;
	{
		if (!!(((49152 & gglobaloptions_160121) == 0))) goto LA3;
		result = rope_169277(tnl_167618);
		add_169487(&result, ((NimStringDesc*) &TMP4568));
		add_169487(&result, Cprocsectionnames_470009[(ps)- 0]);
		add_169487(&result, ((NimStringDesc*) &TMP4569));
		add_169487(&result, tnl_167618);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj169006*, gensectionend_470117)(NU8 ps) {
	Ropeobj169006* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!(((49152 & gglobaloptions_160121) == 0))) goto LA3;
		LOC5 = 0;
		LOC5 = rawNewString(tnl_167618->Sup.len + 19);
appendString(LOC5, ((NimStringDesc*) &TMP4541));
appendString(LOC5, tnl_167618);
		result = rope_169277(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj169006*, gensectionstart_470016)(NU8 fs) {
	Ropeobj169006* result;
	result = 0;
	{
		if (!!(((49152 & gglobaloptions_160121) == 0))) goto LA3;
		result = rope_169277(tnl_167618);
		add_169487(&result, ((NimStringDesc*) &TMP4568));
		add_169487(&result, Cfilesectionnames_470003[(fs)- 0]);
		add_169487(&result, ((NimStringDesc*) &TMP4569));
		add_169487(&result, tnl_167618);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj169006*, gensectionend_470051)(NU8 fs) {
	Ropeobj169006* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!(((49152 & gglobaloptions_160121) == 0))) goto LA3;
		LOC5 = 0;
		LOC5 = rawNewString(tnl_167618->Sup.len + 19);
appendString(LOC5, ((NimStringDesc*) &TMP4541));
appendString(LOC5, tnl_167618);
		result = rope_169277(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, writetypecache_470148)(Tidtable214840 a, NimStringDesc** s) {
	NI i;
	i = ((NI) 0);
	{
		NI id_470154;
		TNimObject* value_470155;
		id_470154 = 0;
		value_470155 = 0;
		{
			NI i_470169;
			NI HEX3Atmp_470171;
			NI res_470173;
			i_470169 = 0;
			HEX3Atmp_470171 = 0;
			HEX3Atmp_470171 = (a.data ? (a.data->Sup.len-1) : -1);
			res_470173 = ((NI) 0);
			{
				while (1) {
					if (!(res_470173 <= HEX3Atmp_470171)) goto LA4;
					i_470169 = res_470173;
					{
						NimStringDesc* LOC14;
						if (!!((a.data->data[i_470169].key == NIM_NIL))) goto LA7;
						id_470154 = (*a.data->data[i_470169].key).id;
						value_470155 = a.data->data[i_470169].val;
						{
							if (!(i == ((NI) 10))) goto LA11;
							i = ((NI) 0);
							(*s) = resizeString((*s), tnl_167618->Sup.len + 0);
appendString((*s), tnl_167618);
						}
						goto LA9;
						LA11: ;
						{
							(*s) = addChar((*s), 32);
						}
						LA9: ;
						encodevint_220212(id_470154, s);
						(*s) = addChar((*s), 58);
						LOC14 = 0;
						LOC14 = HEX24_169856(((Ropeobj169006*) (value_470155)));
						encodestr_220018(LOC14, s);
						i += ((NI) 1);
					}
					LA7: ;
					res_470173 += ((NI) 1);
				} LA4: ;
			}
		}
	}
	(*s) = addChar((*s), 125);
}

N_NIMCALL(void, writeintset_470176)(Intset211035* a, NimStringDesc** s) {
	NI i;
	i = ((NI) 0);
	{
		NI x_470182;
		Trunk211031* r_470197;
		x_470182 = 0;
		r_470197 = (*a).head;
		{
			while (1) {
				NI i_470199;
				if (!!((r_470197 == NIM_NIL))) goto LA3;
				i_470199 = ((NI) 0);
				{
					while (1) {
						NI w_470201;
						NI j_470203;
						if (!(i_470199 <= ((NI) 7))) goto LA5;
						w_470201 = (*r_470197).bits[(i_470199)- 0];
						j_470203 = ((NI) 0);
						{
							while (1) {
								if (!!((w_470201 == ((NI) 0)))) goto LA7;
								{
									if (!!((((NI) ((NI)(w_470201 & ((NI) 1)))) == ((NI) 0)))) goto LA10;
									x_470182 = (NI)((NI)((NU64)((*r_470197).key) << (NU64)(((NI) 9))) | (NI)((NU64)((NI)((NU64)(i_470199) << (NU64)(((NI) 6)))) + (NU64)(j_470203)));
									{
										if (!(i == ((NI) 10))) goto LA14;
										i = ((NI) 0);
										(*s) = resizeString((*s), tnl_167618->Sup.len + 0);
appendString((*s), tnl_167618);
									}
									goto LA12;
									LA14: ;
									{
										(*s) = addChar((*s), 32);
									}
									LA12: ;
									encodevint_220212(x_470182, s);
									i += ((NI) 1);
								}
								LA10: ;
								j_470203 += ((NI) 1);
								w_470201 = (NI)((NU64)(w_470201) >> (NU64)(((NI) 1)));
							} LA7: ;
						}
						i_470199 += ((NI) 1);
					} LA5: ;
				}
				r_470197 = (*r_470197).next;
			} LA3: ;
		}
	}
	(*s) = addChar((*s), 125);
}

N_NIMCALL(Ropeobj169006*, genmergeinfo_470204)(Tcgen469026* m) {
	Ropeobj169006* result;
	NimStringDesc* s;
{	result = 0;
	{
		if (!!(((gglobaloptions_160121 &(1U<<((NU)(((NU8) 14))&31U)))!=0))) goto LA3;
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	s = copyString(((NimStringDesc*) &TMP4577));
	s = resizeString(s, tnl_167618->Sup.len + 0);
appendString(s, tnl_167618);
	s = resizeString(s, 11);
appendString(s, ((NimStringDesc*) &TMP4578));
	writetypecache_470148((*m).typecache, (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4579));
	writeintset_470176((&(*m).declaredthings), (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4580));
	writeintset_470176((&(*m).typeinfomarker), (&s));
	s = resizeString(s, 7);
appendString(s, ((NimStringDesc*) &TMP4581));
	encodevint_220212(((NI) ((*m).labels)), (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4582));
	encodevint_220212(((NI) ((*m).framedeclared)), (&s));
	s = resizeString(s, tnl_167618->Sup.len + 0);
appendString(s, tnl_167618);
	s = resizeString(s, 2);
appendString(s, ((NimStringDesc*) &TMP4583));
	result = rope_169277(s);
	}BeforeRet: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_ccgmergeInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_ccgmergeDatInit000)(void) {
}

