/* Generated by Nim Compiler v0.12.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 Tcgen509038 Tcgen509038;
typedef struct Tllstream213204 Tllstream213204;
typedef struct Tbaselexer214024 Tbaselexer214024;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tidtable225859 Tidtable225859;
typedef struct Tidobj198015 Tidobj198015;
typedef struct Ttype225847 Ttype225847;
typedef struct Ttypeseq225843 Ttypeseq225843;
typedef struct Tnode225809 Tnode225809;
typedef struct Tsym225841 Tsym225841;
typedef struct Tloc225823 Tloc225823;
typedef struct Ropeobj176009 Ropeobj176009;
typedef struct Tpasscontext277005 Tpasscontext277005;
typedef struct Tidpairseq225857 Tidpairseq225857;
typedef struct Intset222056 Intset222056;
typedef struct Trunk222052 Trunk222052;
typedef struct Trunkseq222054 Trunkseq222054;
typedef struct Tlinkedlist140028 Tlinkedlist140028;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct Tcproc509034 Tcproc509034;
typedef struct Tnodetable225871 Tnodetable225871;
typedef struct Tnodepairseq225869 Tnodepairseq225869;
typedef struct Tsymseq225811 Tsymseq225811;
typedef struct Tlineinfo190352 Tlineinfo190352;
typedef struct Tnodeseq225803 Tnodeseq225803;
typedef struct TY190365 TY190365;
typedef struct TY509106 TY509106;
typedef struct Tblock509032 Tblock509032;
typedef struct Tmergesections510857 Tmergesections510857;
typedef struct Cell48947 Cell48947;
typedef struct Cellseq48963 Cellseq48963;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48959 Cellset48959;
typedef struct Pagedesc48955 Pagedesc48955;
typedef struct Memregion30891 Memregion30891;
typedef struct Smallchunk30843 Smallchunk30843;
typedef struct Llchunk30885 Llchunk30885;
typedef struct Bigchunk30845 Bigchunk30845;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30889 Avlnode30889;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Tidpair225855 Tidpair225855;
typedef struct Tident198021 Tident198021;
typedef struct Tscope225835 Tscope225835;
typedef struct TY225944 TY225944;
typedef struct Tstrtable225813 Tstrtable225813;
typedef struct Tlib225827 Tlib225827;
typedef struct Tnodepair225867 Tnodepair225867;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tinstantiation225831 Tinstantiation225831;
typedef struct TY225932 TY225932;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef N_NIMCALL_PTR(void, TY3889) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3894) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3889 marker;
TY3894 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tbaselexer214024  {
  TNimObject Sup;
NI bufpos;
NCSTRING buf;
NI buflen;
Tllstream213204* stream;
NI linenumber;
NI sentinel;
NI linestart;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tidobj198015  {
  TNimObject Sup;
NI id;
};
struct  Tloc225823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype225847* t;
Ropeobj176009* r;
Ropeobj176009* heaproot;
};
struct  Ttype225847  {
  Tidobj198015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq225843* sons;
Tnode225809* n;
Tsym225841* owner;
Tsym225841* sym;
Tsym225841* destructor;
Tsym225841* deepcopy;
Tsym225841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc225823 loc;
};
struct  Tpasscontext277005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
typedef Ropeobj176009* Tcfilesections509022[18];
struct  Tidtable225859  {
NI counter;
Tidpairseq225857* data;
};
struct  Intset222056  {
NI counter;
NI max;
Trunk222052* head;
Trunkseq222054* data;
};
struct  Tlinkedlist140028  {
Tlistentry140022* head;
Tlistentry140022* tail;
NI counter;
};
struct  Tnodetable225871  {
NI counter;
Tnodepairseq225869* data;
};
typedef Ropeobj176009* TY509144[10];
struct  Tcgen509038  {
  Tpasscontext277005 Sup;
Tsym225841* module;
NimStringDesc* filename;
Tcfilesections509022 s;
NIM_BOOL preventstacktrace;
NIM_BOOL usesthreadvars;
NIM_BOOL framedeclared;
NIM_BOOL isheaderfile;
NIM_BOOL includesstringh;
NIM_BOOL objhaskidsvalid;
NimStringDesc* cfilename;
Tidtable225859 typecache;
Tidtable225859 forwtypecache;
Intset222056 declaredthings;
Intset222056 declaredprotos;
Tlinkedlist140028 headerfiles;
Intset222056 typeinfomarker;
Tcproc509034* initproc;
Tcproc509034* postinitproc;
Tcproc509034* preinitproc;
Ttypeseq225843* typestack;
Tnodetable225871 datacache;
Tsymseq225811* forwardedprocs;
NI typenodes;
NI nimtypes;
Ropeobj176009* typenodesname;
Ropeobj176009* nimtypesname;
NI labels;
TY509144 extensionloaders;
Ropeobj176009* injectstmt;
};
struct  Tlineinfo190352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tcproc509034  {
Tsym225841* prc;
NIM_BOOL beforeretneeded;
NIM_BOOL threadvaraccessed;
Tlineinfo190352 lastlineinfo;
Tnodeseq225803* nestedtrystmts;
NI inexceptblock;
TY190365* finallysafepoints;
NI labels;
TY509106* blocks;
NI breakidx;
NU32 options;
NI maxframelen;
Tcgen509038* module;
NI withinloop;
NI splitdecls;
NI gcframeid;
Ropeobj176009* gcframetype;
};
typedef Ropeobj176009* Tcprocsections509026[3];
struct  Tblock509032  {
NI id;
Ropeobj176009* label;
Tcprocsections509026 sections;
NIM_BOOL isloop;
NI16 nestedtrystmts;
NI16 nestedexceptstmts;
NI16 framelen;
};
struct  Tmergesections510857  {
Tcfilesections509022 f;
Tcprocsections509026 p;
};
typedef NimStringDesc* TY510015[18];
typedef NimStringDesc* TY510021[3];
struct  Cell48947  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48963  {
NI len;
NI cap;
Cell48947** d;
};
struct  Cellset48959  {
NI counter;
NI max;
Pagedesc48955* head;
Pagedesc48955** data;
};
typedef Smallchunk30843* TY30906[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30891  {
NI minlargeobj;
NI maxlargeobj;
TY30906 freesmallchunks;
Llchunk30885* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30845* freechunkslist;
Intset30817 chunkstarts;
Avlnode30889* root;
Avlnode30889* deleted;
Avlnode30889* last;
Avlnode30889* freeavlnodes;
};
struct  Gcstat51014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51018  {
Gcstack51016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq48963 zct;
Cellseq48963 decstack;
Cellset48959 cycleroots;
Cellseq48963 tempstack;
NI recgclock;
Memregion30891 region;
Gcstat51014 stat;
};
struct  Tidpair225855  {
Tidobj198015* key;
TNimObject* val;
};
typedef NI TY30822[8];
struct  Trunk222052  {
Trunk222052* next;
NI key;
TY30822 bits;
};
struct  Tllstream213204  {
  TNimObject Sup;
NU8 kind;
FILE* f;
NimStringDesc* s;
NI rd;
NI wr;
NI lineoffset;
};
struct  Tnode225809  {
Ttype225847* typ;
Tlineinfo190352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym225841* sym;
} S4;
struct {Tident198021* ident;
} S5;
struct {Tnodeseq225803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tstrtable225813  {
NI counter;
Tsymseq225811* data;
};
struct  Tsym225841  {
  Tidobj198015 Sup;
NU8 kind;
union{
struct {Ttypeseq225843* typeinstcache;
Tscope225835* typscope;
} S1;
struct {TY225944* procinstcache;
Tsym225841* gcunsafetyreason;
} S2;
struct {TY225944* usedgenerics;
Tstrtable225813 tab;
} S3;
struct {Tsym225841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype225847* typ;
Tident198021* name;
Tlineinfo190352 info;
Tsym225841* owner;
NU32 flags;
Tnode225809* ast;
NU32 options;
NI position;
NI offset;
Tloc225823 loc;
Tlib225827* annex;
Tnode225809* constraint;
};
struct  Ropeobj176009  {
  TNimObject Sup;
Ropeobj176009* left;
Ropeobj176009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tnodepair225867  {
NI h;
Tnode225809* key;
NI val;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
struct  Pagedesc48955  {
Pagedesc48955* next;
NI key;
TY30822 bits;
};
struct  Basechunk30841  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30843  {
  Basechunk30841 Sup;
Smallchunk30843* next;
Smallchunk30843* prev;
Freecell30833* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30885  {
NI size;
NI acc;
Llchunk30885* next;
};
struct  Bigchunk30845  {
  Basechunk30841 Sup;
Bigchunk30845* next;
Bigchunk30845* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30822 bits;
};
typedef Avlnode30889* TY30896[2];
struct  Avlnode30889  {
TY30896 link;
NI key;
NI upperbound;
NI level;
};
struct  Tident198021  {
  Tidobj198015 Sup;
NimStringDesc* s;
Tident198021* next;
NI h;
};
struct  Tscope225835  {
NI depthlevel;
Tstrtable225813 symbols;
Tnodeseq225803* usingsyms;
Tscope225835* parent;
};
struct  Tlib225827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj176009* name;
Tnode225809* path;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct  Tinstantiation225831  {
Tsym225841* sym;
Ttypeseq225843* concretetypes;
TY225932* usedby;
NI compilesid;
};
struct Ttypeseq225843 {
  TGenericSeq Sup;
  Ttype225847* data[SEQ_DECL_SIZE];
};
struct Tidpairseq225857 {
  TGenericSeq Sup;
  Tidpair225855 data[SEQ_DECL_SIZE];
};
struct Trunkseq222054 {
  TGenericSeq Sup;
  Trunk222052* data[SEQ_DECL_SIZE];
};
struct Tnodepairseq225869 {
  TGenericSeq Sup;
  Tnodepair225867 data[SEQ_DECL_SIZE];
};
struct Tsymseq225811 {
  TGenericSeq Sup;
  Tsym225841* data[SEQ_DECL_SIZE];
};
struct Tnodeseq225803 {
  TGenericSeq Sup;
  Tnode225809* data[SEQ_DECL_SIZE];
};
struct TY190365 {
  TGenericSeq Sup;
  Ropeobj176009* data[SEQ_DECL_SIZE];
};
struct TY509106 {
  TGenericSeq Sup;
  Tblock509032 data[SEQ_DECL_SIZE];
};
struct TY225944 {
  TGenericSeq Sup;
  Tinstantiation225831* data[SEQ_DECL_SIZE];
};
struct TY225932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Tllstream213204*, llstreamopen_213256)(NimStringDesc* filename, NU8 mode);
N_NIMCALL(void, openbaselexer_214035)(Tbaselexer214024* L, Tllstream213204* inputstream, NI buflen);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_NIMCALL(void, skipuntilcmd_510353)(Tbaselexer214024* L);
N_NIMCALL(NI, handlecr_214066)(Tbaselexer214024* L, NI pos);
N_NIMCALL(NI, handlelf_214074)(Tbaselexer214024* L, NI pos);
N_NIMCALL(void, readkey_510466)(Tbaselexer214024* L, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newlen);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(void, internalerror_196191)(NimStringDesc* errmsg);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(void, processmergeinfo_510613)(Tbaselexer214024* L, Tcgen509038* m);
N_NIMCALL(void, skipwhite_510326)(Tbaselexer214024* L);
N_NIMCALL(void, readtypecache_510524)(Tbaselexer214024* L, Tidtable225859* result);
N_NIMCALL(NI, decodevint_232356)(NCSTRING s, NI* pos);
N_NIMCALL(NimStringDesc*, decodestr_232154)(NCSTRING s, NI* pos);
N_NIMCALL(void, idtableput_233196)(Tidtable225859* t, Tidobj198015* key, TNimObject* val);
N_NIMCALL(Ttype225847*, newfaketype_510506)(NI id);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(Ropeobj176009*, rope_176322)(NimStringDesc* s);
N_NIMCALL(void, readintset_510574)(Tbaselexer214024* L, Intset222056* result);
N_NIMCALL(void, incl_222856)(Intset222056* s, NI key);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(void, closebaselexer_214045)(Tbaselexer214024* L);
static N_INLINE(Ropeobj176009**, s_509184)(Tcproc509034* p, NU8 s);
N_NIMCALL(void, readmergesections_510863)(NimStringDesc* cfilename, Tmergesections510857* m);
N_NIMCALL(Ropeobj176009*, readverbatimsection_510426)(Tbaselexer214024* L);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(NIM_BOOL, atendmark_510398)(NCSTRING buf, NI pos);
static N_INLINE(NI, find_510902)(TY510015 a, NimStringDesc* item);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
static N_INLINE(NI, find_510995)(TY510021 a, NimStringDesc* item);
N_NIMCALL(Ropeobj176009*, HEX26_176436)(Ropeobj176009* a, Ropeobj176009* b);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell48947*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48947* c);
N_NOINLINE(void, addzct_52617)(Cellseq48963* s, Cell48947* c);
N_NIMCALL(void, add_176545)(Ropeobj176009** a, NimStringDesc* b);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(void, writetypecache_510184)(Tidtable225859 a, NimStringDesc** s);
N_NIMCALL(void, encodevint_232294)(NI x, NimStringDesc** result);
N_NIMCALL(void, encodestr_232039)(NimStringDesc* s, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, HEX24_177132)(Ropeobj176009* r);
N_NIMCALL(void, writeintset_510230)(Intset222056* a, NimStringDesc** s);
STRING_LITERAL(TMP4450, "ccgmerge: \':\' expected", 22);
STRING_LITERAL(TMP4451, "NIM_merge_INFO", 14);
STRING_LITERAL(TMP4452, "typeCache", 9);
STRING_LITERAL(TMP4453, "declared", 8);
STRING_LITERAL(TMP4454, "typeInfo", 8);
STRING_LITERAL(TMP4455, "labels", 6);
STRING_LITERAL(TMP4456, "hasframe", 8);
STRING_LITERAL(TMP4457, "ccgmerge: \'{\' expected", 22);
STRING_LITERAL(TMP4458, "ccgmerge: unknown key: ", 23);
STRING_LITERAL(TMP4526, "ccgmerge: expected: /*\011NIM_merge_END:*/", 39);
STRING_LITERAL(TMP4527, "/*\011NIM_merge_END:*/", 19);
STRING_LITERAL(TMP4528, "", 0);
STRING_LITERAL(TMP4529, "NIM_merge_HEADERS", 17);
STRING_LITERAL(TMP4530, "NIM_merge_FORWARD_TYPES", 23);
STRING_LITERAL(TMP4531, "NIM_merge_TYPES", 15);
STRING_LITERAL(TMP4532, "NIM_merge_SEQ_TYPES", 19);
STRING_LITERAL(TMP4533, "NIM_merge_FIELD_INFO", 20);
STRING_LITERAL(TMP4534, "NIM_merge_TYPE_INFO", 19);
STRING_LITERAL(TMP4535, "NIM_merge_PROC_HEADERS", 22);
STRING_LITERAL(TMP4536, "NIM_merge_DATA", 14);
STRING_LITERAL(TMP4537, "NIM_merge_VARS", 14);
STRING_LITERAL(TMP4538, "NIM_merge_PROCS", 15);
STRING_LITERAL(TMP4539, "NIM_merge_INIT_PROC", 19);
STRING_LITERAL(TMP4540, "NIM_merge_TYPE_INIT1", 20);
STRING_LITERAL(TMP4541, "NIM_merge_TYPE_INIT2", 20);
STRING_LITERAL(TMP4542, "NIM_merge_TYPE_INIT3", 20);
STRING_LITERAL(TMP4543, "NIM_merge_DEBUG_INIT", 20);
STRING_LITERAL(TMP4544, "NIM_merge_DYNLIB_INIT", 21);
STRING_LITERAL(TMP4545, "NIM_merge_DYNLIB_DEINIT", 23);
NIM_CONST TY510015 Cfilesectionnames_510012 = {((NimStringDesc*) &TMP4528),
((NimStringDesc*) &TMP4529),
((NimStringDesc*) &TMP4530),
((NimStringDesc*) &TMP4531),
((NimStringDesc*) &TMP4532),
((NimStringDesc*) &TMP4533),
((NimStringDesc*) &TMP4534),
((NimStringDesc*) &TMP4535),
((NimStringDesc*) &TMP4536),
((NimStringDesc*) &TMP4537),
((NimStringDesc*) &TMP4538),
((NimStringDesc*) &TMP4539),
((NimStringDesc*) &TMP4540),
((NimStringDesc*) &TMP4541),
((NimStringDesc*) &TMP4542),
((NimStringDesc*) &TMP4543),
((NimStringDesc*) &TMP4544),
((NimStringDesc*) &TMP4545)}
;
STRING_LITERAL(TMP4546, "NIM_merge_PROC_LOCALS", 21);
STRING_LITERAL(TMP4547, "NIM_merge_PROC_INIT", 19);
STRING_LITERAL(TMP4548, "NIM_merge_PROC_BODY", 19);
NIM_CONST TY510021 Cprocsectionnames_510018 = {((NimStringDesc*) &TMP4546),
((NimStringDesc*) &TMP4547),
((NimStringDesc*) &TMP4548)}
;
STRING_LITERAL(TMP4549, "ccgmerge: unknown section: ", 27);
STRING_LITERAL(TMP4550, "ccgmerge: \'*/\' expected", 23);
STRING_LITERAL(TMP4554, "/*\011", 3);
STRING_LITERAL(TMP4555, ":*/", 3);
STRING_LITERAL(TMP4563, "/*\011NIM_merge_INFO:", 18);
STRING_LITERAL(TMP4564, "typeCache:{", 11);
STRING_LITERAL(TMP4565, "declared:{", 10);
STRING_LITERAL(TMP4566, "typeInfo:{", 10);
STRING_LITERAL(TMP4567, "labels:", 7);
STRING_LITERAL(TMP4568, " hasframe:", 10);
STRING_LITERAL(TMP4569, "*/", 2);
extern TNimType NTI214024; /* TBaseLexer */
extern TNimType NTI225805; /* PType */
extern TNimType NTI225847; /* TType */
extern NimStringDesc* tnl_174654;
extern Gcheap51018 gch_51059;
extern NU32 gglobaloptions_167132;

N_NIMCALL(void, skipuntilcmd_510353)(Tbaselexer214024* L) {
	NI pos;
	pos = (*L).bufpos;
	{
		while (1) {
			switch (((NU8)((*L).buf[pos]))) {
			case 13:
			{
				pos = handlecr_214066(L, pos);
			}
			break;
			case 10:
			{
				pos = handlelf_214074(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_510466)(Tbaselexer214024* 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_196191(((NimStringDesc*) &TMP4450));
	}
	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_510326)(Tbaselexer214024* L) {
	NI pos;
	pos = (*L).bufpos;
	{
		while (1) {
			switch (((NU8)((*L).buf[pos]))) {
			case 13:
			{
				pos = handlecr_214066(L, pos);
			}
			break;
			case 10:
			{
				pos = handlelf_214074(L, pos);
			}
			break;
			case 32:
			{
				pos += ((NI) 1);
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
		}
	} LA1: ;
	(*L).bufpos = pos;
}

N_NIMCALL(Ttype225847*, newfaketype_510506)(NI id) {
	Ttype225847* result;
	result = 0;
	result = (Ttype225847*) newObj((&NTI225805), sizeof(Ttype225847));
	(*result).Sup.Sup.m_type = (&NTI225847);
	(*result).Sup.id = id;
	return result;
}

N_NIMCALL(void, readtypecache_510524)(Tbaselexer214024* L, Tidtable225859* result) {
	{
		if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(123)))) goto LA3;
		internalerror_196191(((NimStringDesc*) &TMP4457));
	}
	LA3: ;
	(*L).bufpos += ((NI) 1);
	{
		while (1) {
			NI key;
			NimStringDesc* value;
			Ttype225847* LOC11;
			Tidobj198015* LOC12;
			Ropeobj176009* LOC13;
			TNimObject* LOC14;
			if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(125)))) goto LA6;
			skipwhite_510326(L);
			key = decodevint_232356((*L).buf, (&(*L).bufpos));
			{
				if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(58)))) goto LA9;
				internalerror_196191(((NimStringDesc*) &TMP4450));
			}
			LA9: ;
			(*L).bufpos += ((NI) 1);
			value = decodestr_232154((*L).buf, (&(*L).bufpos));
			LOC11 = 0;
			LOC11 = newfaketype_510506(key);
			LOC12 = 0;
			LOC12 = &LOC11->Sup;
			LOC13 = 0;
			LOC13 = rope_176322(value);
			LOC14 = 0;
			LOC14 = &LOC13->Sup;
			idtableput_233196(result, LOC12, LOC14);
		} LA6: ;
	}
	(*L).bufpos += ((NI) 1);
}

N_NIMCALL(void, readintset_510574)(Tbaselexer214024* L, Intset222056* result) {
	{
		if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(123)))) goto LA3;
		internalerror_196191(((NimStringDesc*) &TMP4457));
	}
	LA3: ;
	(*L).bufpos += ((NI) 1);
	{
		while (1) {
			NI key;
			if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(125)))) goto LA6;
			skipwhite_510326(L);
			key = decodevint_232356((*L).buf, (&(*L).bufpos));
			incl_222856(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_510613)(Tbaselexer214024* L, Tcgen509038* m) {
	NimStringDesc* k;
	k = rawNewString(((NI) 9));
	{
		while (1) {
			skipwhite_510326(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_510466(L, (&k));
			if (eqStrings(k, ((NimStringDesc*) &TMP4452))) goto LA9;
			if (eqStrings(k, ((NimStringDesc*) &TMP4453))) goto LA10;
			if (eqStrings(k, ((NimStringDesc*) &TMP4454))) goto LA11;
			if (eqStrings(k, ((NimStringDesc*) &TMP4455))) goto LA12;
			if (eqStrings(k, ((NimStringDesc*) &TMP4456))) goto LA13;
			goto LA14;
			LA9: ;
			{
				readtypecache_510524(L, (&(*m).typecache));
			}
			goto LA15;
			LA10: ;
			{
				readintset_510574(L, (&(*m).declaredthings));
			}
			goto LA15;
			LA11: ;
			{
				readintset_510574(L, (&(*m).typeinfomarker));
			}
			goto LA15;
			LA12: ;
			{
				NI LOC20;
				LOC20 = 0;
				LOC20 = decodevint_232356((*L).buf, (&(*L).bufpos));
				(*m).labels = ((NI) (LOC20));
			}
			goto LA15;
			LA13: ;
			{
				NI LOC22;
				LOC22 = 0;
				LOC22 = decodevint_232356((*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*) &TMP4458));
appendString(LOC24, k);
				internalerror_196191(LOC24);
			}
			LA15: ;
		}
	} LA1: ;
}

N_NIMCALL(void, readmergeinfo_510816)(NimStringDesc* cfilename, Tcgen509038* m) {
	Tllstream213204* s_510821;
	Tbaselexer214024 L;
	NimStringDesc* k;
{	s_510821 = llstreamopen_213256(cfilename, ((NU8) 0));
	{
		if (!(s_510821 == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&L), 0, sizeof(L));
	L.Sup.m_type = (&NTI214024);
	openbaselexer_214035((&L), s_510821, ((NI) 8192));
	k = rawNewString(((NI) 23));
	{
		while (1) {
			skipuntilcmd_510353((&L));
			{
				if (!((NU8)(L.buf[L.bufpos]) == (NU8)(0))) goto LA9;
				goto LA5;
			}
			LA9: ;
			readkey_510466((&L), (&k));
			{
				if (!eqStrings(k, ((NimStringDesc*) &TMP4451))) goto LA13;
				processmergeinfo_510613((&L), m);
				goto LA5;
			}
			LA13: ;
		}
	} LA5: ;
	closebaselexer_214045((&L));
	}BeforeRet: ;
}

static N_INLINE(Ropeobj176009**, s_509184)(Tcproc509034* p, NU8 s) {
	Ropeobj176009** 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_511106)(Tcgen509038* m) {
	NIM_BOOL result;
{	result = 0;
	{
		NU8 i_511223;
		NI res_511439;
		i_511223 = 0;
		res_511439 = ((NI) 1);
		{
			while (1) {
				if (!(res_511439 <= ((NI) 10))) goto LA3;
				i_511223 = ((NU8) (res_511439));
				{
					if (!!(((*m).s[(i_511223)- 0] == NIM_NIL))) goto LA6;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA6: ;
				res_511439 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NU8 i_511423;
		NI res_511447;
		i_511423 = 0;
		res_511447 = ((NI) 0);
		{
			while (1) {
				if (!(res_511447 <= ((NI) 2))) goto LA10;
				i_511423 = ((NU8) (res_511447));
				{
					Ropeobj176009** LOC13;
					LOC13 = 0;
					LOC13 = s_509184((*m).initproc, i_511423);
					if (!!(((*LOC13) == NIM_NIL))) goto LA14;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA14: ;
				res_511447 += ((NI) 1);
			} LA10: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, atendmark_510398)(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*) &TMP4527)->data[s]));
			LA4: ;
			if (!LOC3) goto LA2;
			s += ((NI) 1);
		} LA2: ;
	}
	result = (s == ((NI) 19));
	return result;
}

N_NIMCALL(Ropeobj176009*, readverbatimsection_510426)(Tbaselexer214024* L) {
	Ropeobj176009* 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_214066(L, pos);
				buf = (*L).buf;
				r = resizeString(r, tnl_174654->Sup.len + 0);
appendString(r, tnl_174654);
			}
			break;
			case 10:
			{
				pos = handlelf_214074(L, pos);
				buf = (*L).buf;
				r = resizeString(r, tnl_174654->Sup.len + 0);
appendString(r, tnl_174654);
			}
			break;
			case 0:
			{
				internalerror_196191(((NimStringDesc*) &TMP4526));
				goto LA1;
			}
			break;
			default:
			{
				{
					NIM_BOOL LOC9;
					LOC9 = 0;
					LOC9 = atendmark_510398(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_176322(r);
	return result;
}

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

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

N_NIMCALL(void, readmergesections_510863)(NimStringDesc* cfilename, Tmergesections510857* m) {
	Tllstream213204* s_510869;
	Tbaselexer214024 L;
	NimStringDesc* k;
{	s_510869 = llstreamopen_213256(cfilename, ((NU8) 0));
	{
		if (!(s_510869 == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&L), 0, sizeof(L));
	L.Sup.m_type = (&NTI214024);
	openbaselexer_214035((&L), s_510869, ((NI) 8192));
	k = rawNewString(((NI) 23));
	{
		while (1) {
			skipuntilcmd_510353((&L));
			{
				if (!((NU8)(L.buf[L.bufpos]) == (NU8)(0))) goto LA9;
				goto LA5;
			}
			LA9: ;
			readkey_510466((&L), (&k));
			{
				if (!eqStrings(k, ((NimStringDesc*) &TMP4451))) goto LA13;
			}
			goto LA11;
			LA13: ;
			{
				NIM_BOOL LOC16;
				Ropeobj176009* 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_510326((&L));
				verbatim = readverbatimsection_510426((&L));
				skipwhite_510326((&L));
				sectiona = find_510902(Cfilesectionnames_510012, 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_510995(Cprocsectionnames_510018, 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*) &TMP4549));
appendString(LOC34, k);
						internalerror_196191(LOC34);
					}
					LA27: ;
				}
				LA20: ;
			}
			goto LA11;
			LA18: ;
			{
				internalerror_196191(((NimStringDesc*) &TMP4550));
			}
			LA11: ;
		}
	} LA5: ;
	closebaselexer_214045((&L));
	}BeforeRet: ;
}

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

static N_INLINE(void, rtladdzct_54204)(Cell48947* c) {
	addzct_52617((&gch_51059.zct), c);
}

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

N_NIMCALL(void, mergefiles_511474)(NimStringDesc* cfilename, Tcgen509038* m) {
	Tmergesections510857 old;
	memset((void*)(&old), 0, sizeof(old));
	readmergesections_510863(cfilename, (&old));
	{
		NU8 i_511492;
		NI res_511512;
		i_511492 = 0;
		res_511512 = ((NI) 0);
		{
			while (1) {
				if (!(res_511512 <= ((NI) 17))) goto LA3;
				i_511492 = ((NU8) (res_511512));
				asgnRefNoCycle((void**) (&(*m).s[(i_511492)- 0]), HEX26_176436(old.f[(i_511492)- 0], (*m).s[(i_511492)- 0]));
				res_511512 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NU8 i_511505;
		NI res_511520;
		i_511505 = 0;
		res_511520 = ((NI) 0);
		{
			while (1) {
				Ropeobj176009** LOC7;
				Ropeobj176009** LOC8;
				if (!(res_511520 <= ((NI) 2))) goto LA6;
				i_511505 = ((NU8) (res_511520));
				LOC7 = 0;
				LOC7 = s_509184((*m).initproc, i_511505);
				LOC8 = 0;
				LOC8 = s_509184((*m).initproc, i_511505);
				unsureAsgnRef((void**) (&(*LOC7)), HEX26_176436(old.p[(i_511505)- 0], (*LOC8)));
				res_511520 += ((NI) 1);
			} LA6: ;
		}
	}
}

N_NIMCALL(Ropeobj176009*, gensectionstart_510106)(NU8 ps) {
	Ropeobj176009* result;
	result = 0;
	{
		if (!!(((49152 & gglobaloptions_167132) == 0))) goto LA3;
		result = rope_176322(tnl_174654);
		add_176545(&result, ((NimStringDesc*) &TMP4554));
		add_176545(&result, Cprocsectionnames_510018[(ps)- 0]);
		add_176545(&result, ((NimStringDesc*) &TMP4555));
		add_176545(&result, tnl_174654);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj176009*, gensectionend_510147)(NU8 ps) {
	Ropeobj176009* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!(((49152 & gglobaloptions_167132) == 0))) goto LA3;
		LOC5 = 0;
		LOC5 = rawNewString(tnl_174654->Sup.len + 19);
appendString(LOC5, ((NimStringDesc*) &TMP4527));
appendString(LOC5, tnl_174654);
		result = rope_176322(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj176009*, gensectionstart_510028)(NU8 fs) {
	Ropeobj176009* result;
	result = 0;
	{
		if (!!(((49152 & gglobaloptions_167132) == 0))) goto LA3;
		result = rope_176322(tnl_174654);
		add_176545(&result, ((NimStringDesc*) &TMP4554));
		add_176545(&result, Cfilesectionnames_510012[(fs)- 0]);
		add_176545(&result, ((NimStringDesc*) &TMP4555));
		add_176545(&result, tnl_174654);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj176009*, gensectionend_510069)(NU8 fs) {
	Ropeobj176009* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!(((49152 & gglobaloptions_167132) == 0))) goto LA3;
		LOC5 = 0;
		LOC5 = rawNewString(tnl_174654->Sup.len + 19);
appendString(LOC5, ((NimStringDesc*) &TMP4527));
appendString(LOC5, tnl_174654);
		result = rope_176322(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, writetypecache_510184)(Tidtable225859 a, NimStringDesc** s) {
	NI i;
	i = ((NI) 0);
	{
		NI id_510190;
		TNimObject* value_510191;
		id_510190 = 0;
		value_510191 = 0;
		{
			NI i_510205;
			NI HEX3Atmp_510207;
			NI res_510209;
			i_510205 = 0;
			HEX3Atmp_510207 = 0;
			HEX3Atmp_510207 = (a.data ? (a.data->Sup.len-1) : -1);
			res_510209 = ((NI) 0);
			{
				while (1) {
					if (!(res_510209 <= HEX3Atmp_510207)) goto LA4;
					i_510205 = res_510209;
					{
						NimStringDesc* LOC14;
						if (!!((a.data->data[i_510205].key == NIM_NIL))) goto LA7;
						id_510190 = (*a.data->data[i_510205].key).id;
						value_510191 = a.data->data[i_510205].val;
						{
							if (!(i == ((NI) 10))) goto LA11;
							i = ((NI) 0);
							(*s) = resizeString((*s), tnl_174654->Sup.len + 0);
appendString((*s), tnl_174654);
						}
						goto LA9;
						LA11: ;
						{
							(*s) = addChar((*s), 32);
						}
						LA9: ;
						encodevint_232294(id_510190, s);
						(*s) = addChar((*s), 58);
						LOC14 = 0;
						LOC14 = HEX24_177132(((Ropeobj176009*) (value_510191)));
						encodestr_232039(LOC14, s);
						i += ((NI) 1);
					}
					LA7: ;
					res_510209 += ((NI) 1);
				} LA4: ;
			}
		}
	}
	(*s) = addChar((*s), 125);
}

N_NIMCALL(void, writeintset_510230)(Intset222056* a, NimStringDesc** s) {
	NI i;
	i = ((NI) 0);
	{
		NI x_510236;
		Trunk222052* r_510251;
		x_510236 = 0;
		r_510251 = (*a).head;
		{
			while (1) {
				NI i_510253;
				if (!!((r_510251 == NIM_NIL))) goto LA3;
				i_510253 = ((NI) 0);
				{
					while (1) {
						NI w_510255;
						NI j_510257;
						if (!(i_510253 <= ((NI) 7))) goto LA5;
						w_510255 = (*r_510251).bits[(i_510253)- 0];
						j_510257 = ((NI) 0);
						{
							while (1) {
								if (!!((w_510255 == ((NI) 0)))) goto LA7;
								{
									if (!!((((NI) ((NI)(w_510255 & ((NI) 1)))) == ((NI) 0)))) goto LA10;
									x_510236 = (NI)((NI)((NU64)((*r_510251).key) << (NU64)(((NI) 9))) | (NI)((NU64)((NI)((NU64)(i_510253) << (NU64)(((NI) 6)))) + (NU64)(j_510257)));
									{
										if (!(i == ((NI) 10))) goto LA14;
										i = ((NI) 0);
										(*s) = resizeString((*s), tnl_174654->Sup.len + 0);
appendString((*s), tnl_174654);
									}
									goto LA12;
									LA14: ;
									{
										(*s) = addChar((*s), 32);
									}
									LA12: ;
									encodevint_232294(x_510236, s);
									i += ((NI) 1);
								}
								LA10: ;
								j_510257 += ((NI) 1);
								w_510255 = (NI)((NU64)(w_510255) >> (NU64)(((NI) 1)));
							} LA7: ;
						}
						i_510253 += ((NI) 1);
					} LA5: ;
				}
				r_510251 = (*r_510251).next;
			} LA3: ;
		}
	}
	(*s) = addChar((*s), 125);
}

N_NIMCALL(Ropeobj176009*, genmergeinfo_510285)(Tcgen509038* m) {
	Ropeobj176009* result;
	NimStringDesc* s;
{	result = 0;
	{
		if (!!(((gglobaloptions_167132 &(1<<((((NU8) 14))&31)))!=0))) goto LA3;
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	s = copyString(((NimStringDesc*) &TMP4563));
	s = resizeString(s, tnl_174654->Sup.len + 0);
appendString(s, tnl_174654);
	s = resizeString(s, 11);
appendString(s, ((NimStringDesc*) &TMP4564));
	writetypecache_510184((*m).typecache, (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4565));
	writeintset_510230((&(*m).declaredthings), (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4566));
	writeintset_510230((&(*m).typeinfomarker), (&s));
	s = resizeString(s, 7);
appendString(s, ((NimStringDesc*) &TMP4567));
	encodevint_232294(((NI) ((*m).labels)), (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4568));
	encodevint_232294(((NI) ((*m).framedeclared)), (&s));
	s = resizeString(s, tnl_174654->Sup.len + 0);
appendString(s, tnl_174654);
	s = resizeString(s, 2);
appendString(s, ((NimStringDesc*) &TMP4569));
	result = rope_176322(s);
	}BeforeRet: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_ccgmergeInit000)(void) {
}

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

