/* 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 Tcgen507038 Tcgen507038;
typedef struct Tllstream211204 Tllstream211204;
typedef struct Tbaselexer212024 Tbaselexer212024;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tidtable223859 Tidtable223859;
typedef struct Tidobj196015 Tidobj196015;
typedef struct Ttype223847 Ttype223847;
typedef struct Ttypeseq223843 Ttypeseq223843;
typedef struct Tnode223809 Tnode223809;
typedef struct Tsym223841 Tsym223841;
typedef struct Tloc223823 Tloc223823;
typedef struct Ropeobj174009 Ropeobj174009;
typedef struct Tpasscontext275005 Tpasscontext275005;
typedef struct Tidpairseq223857 Tidpairseq223857;
typedef struct Intset220056 Intset220056;
typedef struct Trunk220052 Trunk220052;
typedef struct Trunkseq220054 Trunkseq220054;
typedef struct Tlinkedlist139028 Tlinkedlist139028;
typedef struct Tlistentry139022 Tlistentry139022;
typedef struct Tcproc507034 Tcproc507034;
typedef struct Tnodetable223871 Tnodetable223871;
typedef struct Tnodepairseq223869 Tnodepairseq223869;
typedef struct Tsymseq223811 Tsymseq223811;
typedef struct Tlineinfo188352 Tlineinfo188352;
typedef struct Tnodeseq223803 Tnodeseq223803;
typedef struct TY188365 TY188365;
typedef struct TY507106 TY507106;
typedef struct Tblock507032 Tblock507032;
typedef struct Tmergesections508857 Tmergesections508857;
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 Tidpair223855 Tidpair223855;
typedef struct Tident196021 Tident196021;
typedef struct Tscope223835 Tscope223835;
typedef struct TY223944 TY223944;
typedef struct Tstrtable223813 Tstrtable223813;
typedef struct Tlib223827 Tlib223827;
typedef struct Tnodepair223867 Tnodepair223867;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tinstantiation223831 Tinstantiation223831;
typedef struct TY223932 TY223932;
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  Tbaselexer212024  {
  TNimObject Sup;
NI bufpos;
NCSTRING buf;
NI buflen;
Tllstream211204* stream;
NI linenumber;
NI sentinel;
NI linestart;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tidobj196015  {
  TNimObject Sup;
NI id;
};
struct  Tloc223823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype223847* t;
Ropeobj174009* r;
Ropeobj174009* heaproot;
};
struct  Ttype223847  {
  Tidobj196015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq223843* sons;
Tnode223809* n;
Tsym223841* owner;
Tsym223841* sym;
Tsym223841* destructor;
Tsym223841* deepcopy;
Tsym223841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc223823 loc;
};
struct  Tpasscontext275005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
typedef Ropeobj174009* Tcfilesections507022[18];
struct  Tidtable223859  {
NI counter;
Tidpairseq223857* data;
};
struct  Intset220056  {
NI counter;
NI max;
Trunk220052* head;
Trunkseq220054* data;
};
struct  Tlinkedlist139028  {
Tlistentry139022* head;
Tlistentry139022* tail;
NI counter;
};
struct  Tnodetable223871  {
NI counter;
Tnodepairseq223869* data;
};
typedef Ropeobj174009* TY507144[10];
struct  Tcgen507038  {
  Tpasscontext275005 Sup;
Tsym223841* module;
NimStringDesc* filename;
Tcfilesections507022 s;
NIM_BOOL preventstacktrace;
NIM_BOOL usesthreadvars;
NIM_BOOL framedeclared;
NIM_BOOL isheaderfile;
NIM_BOOL includesstringh;
NIM_BOOL objhaskidsvalid;
NimStringDesc* cfilename;
Tidtable223859 typecache;
Tidtable223859 forwtypecache;
Intset220056 declaredthings;
Intset220056 declaredprotos;
Tlinkedlist139028 headerfiles;
Intset220056 typeinfomarker;
Tcproc507034* initproc;
Tcproc507034* postinitproc;
Tcproc507034* preinitproc;
Ttypeseq223843* typestack;
Tnodetable223871 datacache;
Tsymseq223811* forwardedprocs;
NI typenodes;
NI nimtypes;
Ropeobj174009* typenodesname;
Ropeobj174009* nimtypesname;
NI labels;
TY507144 extensionloaders;
Ropeobj174009* injectstmt;
};
struct  Tlineinfo188352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tcproc507034  {
Tsym223841* prc;
NIM_BOOL beforeretneeded;
NIM_BOOL threadvaraccessed;
Tlineinfo188352 lastlineinfo;
Tnodeseq223803* nestedtrystmts;
NI inexceptblock;
TY188365* finallysafepoints;
NI labels;
TY507106* blocks;
NI breakidx;
NU32 options;
NI maxframelen;
Tcgen507038* module;
NI withinloop;
NI splitdecls;
NI gcframeid;
Ropeobj174009* gcframetype;
};
typedef Ropeobj174009* Tcprocsections507026[3];
struct  Tblock507032  {
NI id;
Ropeobj174009* label;
Tcprocsections507026 sections;
NIM_BOOL isloop;
NI16 nestedtrystmts;
NI16 nestedexceptstmts;
NI16 framelen;
};
struct  Tmergesections508857  {
Tcfilesections507022 f;
Tcprocsections507026 p;
};
typedef NimStringDesc* TY508015[18];
typedef NimStringDesc* TY508021[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  Tidpair223855  {
Tidobj196015* key;
TNimObject* val;
};
typedef NI TY30822[8];
struct  Trunk220052  {
Trunk220052* next;
NI key;
TY30822 bits;
};
struct  Tllstream211204  {
  TNimObject Sup;
NU8 kind;
FILE* f;
NimStringDesc* s;
NI rd;
NI wr;
NI lineoffset;
};
struct  Tnode223809  {
Ttype223847* typ;
Tlineinfo188352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym223841* sym;
} S4;
struct {Tident196021* ident;
} S5;
struct {Tnodeseq223803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tstrtable223813  {
NI counter;
Tsymseq223811* data;
};
struct  Tsym223841  {
  Tidobj196015 Sup;
NU8 kind;
union{
struct {Ttypeseq223843* typeinstcache;
Tscope223835* typscope;
} S1;
struct {TY223944* procinstcache;
Tsym223841* gcunsafetyreason;
} S2;
struct {TY223944* usedgenerics;
Tstrtable223813 tab;
} S3;
struct {Tsym223841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype223847* typ;
Tident196021* name;
Tlineinfo188352 info;
Tsym223841* owner;
NU32 flags;
Tnode223809* ast;
NU32 options;
NI position;
NI offset;
Tloc223823 loc;
Tlib223827* annex;
Tnode223809* constraint;
};
struct  Ropeobj174009  {
  TNimObject Sup;
Ropeobj174009* left;
Ropeobj174009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry139022  {
  TNimObject Sup;
Tlistentry139022* prev;
Tlistentry139022* next;
};
struct  Tnodepair223867  {
NI h;
Tnode223809* 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  Tident196021  {
  Tidobj196015 Sup;
NimStringDesc* s;
Tident196021* next;
NI h;
};
struct  Tscope223835  {
NI depthlevel;
Tstrtable223813 symbols;
Tnodeseq223803* usingsyms;
Tscope223835* parent;
};
struct  Tlib223827  {
  Tlistentry139022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj174009* name;
Tnode223809* path;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct  Tinstantiation223831  {
Tsym223841* sym;
Ttypeseq223843* concretetypes;
TY223932* usedby;
NI compilesid;
};
struct Ttypeseq223843 {
  TGenericSeq Sup;
  Ttype223847* data[SEQ_DECL_SIZE];
};
struct Tidpairseq223857 {
  TGenericSeq Sup;
  Tidpair223855 data[SEQ_DECL_SIZE];
};
struct Trunkseq220054 {
  TGenericSeq Sup;
  Trunk220052* data[SEQ_DECL_SIZE];
};
struct Tnodepairseq223869 {
  TGenericSeq Sup;
  Tnodepair223867 data[SEQ_DECL_SIZE];
};
struct Tsymseq223811 {
  TGenericSeq Sup;
  Tsym223841* data[SEQ_DECL_SIZE];
};
struct Tnodeseq223803 {
  TGenericSeq Sup;
  Tnode223809* data[SEQ_DECL_SIZE];
};
struct TY188365 {
  TGenericSeq Sup;
  Ropeobj174009* data[SEQ_DECL_SIZE];
};
struct TY507106 {
  TGenericSeq Sup;
  Tblock507032 data[SEQ_DECL_SIZE];
};
struct TY223944 {
  TGenericSeq Sup;
  Tinstantiation223831* data[SEQ_DECL_SIZE];
};
struct TY223932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Tllstream211204*, llstreamopen_211256)(NimStringDesc* filename, NU8 mode);
N_NIMCALL(void, openbaselexer_212035)(Tbaselexer212024* L, Tllstream211204* inputstream, NI buflen);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_NIMCALL(void, skipuntilcmd_508353)(Tbaselexer212024* L);
N_NIMCALL(NI, handlecr_212066)(Tbaselexer212024* L, NI pos);
N_NIMCALL(NI, handlelf_212074)(Tbaselexer212024* L, NI pos);
N_NIMCALL(void, readkey_508466)(Tbaselexer212024* L, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newlen);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(void, internalerror_194191)(NimStringDesc* errmsg);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(void, processmergeinfo_508613)(Tbaselexer212024* L, Tcgen507038* m);
N_NIMCALL(void, skipwhite_508326)(Tbaselexer212024* L);
N_NIMCALL(void, readtypecache_508524)(Tbaselexer212024* L, Tidtable223859* result);
N_NIMCALL(NI, decodevint_230356)(NCSTRING s, NI* pos);
N_NIMCALL(NimStringDesc*, decodestr_230154)(NCSTRING s, NI* pos);
N_NIMCALL(void, idtableput_231196)(Tidtable223859* t, Tidobj196015* key, TNimObject* val);
N_NIMCALL(Ttype223847*, newfaketype_508506)(NI id);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(Ropeobj174009*, rope_174322)(NimStringDesc* s);
N_NIMCALL(void, readintset_508574)(Tbaselexer212024* L, Intset220056* result);
N_NIMCALL(void, incl_220856)(Intset220056* s, NI key);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(void, closebaselexer_212045)(Tbaselexer212024* L);
static N_INLINE(Ropeobj174009**, s_507184)(Tcproc507034* p, NU8 s);
N_NIMCALL(void, readmergesections_508863)(NimStringDesc* cfilename, Tmergesections508857* m);
N_NIMCALL(Ropeobj174009*, readverbatimsection_508426)(Tbaselexer212024* L);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(NIM_BOOL, atendmark_508398)(NCSTRING buf, NI pos);
static N_INLINE(NI, find_508902)(TY508015 a, NimStringDesc* item);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
static N_INLINE(NI, find_508995)(TY508021 a, NimStringDesc* item);
N_NIMCALL(Ropeobj174009*, HEX26_174436)(Ropeobj174009* a, Ropeobj174009* 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_174545)(Ropeobj174009** a, NimStringDesc* b);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(void, writetypecache_508184)(Tidtable223859 a, NimStringDesc** s);
N_NIMCALL(void, encodevint_230294)(NI x, NimStringDesc** result);
N_NIMCALL(void, encodestr_230039)(NimStringDesc* s, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, HEX24_175132)(Ropeobj174009* r);
N_NIMCALL(void, writeintset_508230)(Intset220056* a, NimStringDesc** s);
STRING_LITERAL(TMP4448, "ccgmerge: \':\' expected", 22);
STRING_LITERAL(TMP4449, "NIM_merge_INFO", 14);
STRING_LITERAL(TMP4450, "typeCache", 9);
STRING_LITERAL(TMP4451, "declared", 8);
STRING_LITERAL(TMP4452, "typeInfo", 8);
STRING_LITERAL(TMP4453, "labels", 6);
STRING_LITERAL(TMP4454, "hasframe", 8);
STRING_LITERAL(TMP4455, "ccgmerge: \'{\' expected", 22);
STRING_LITERAL(TMP4456, "ccgmerge: unknown key: ", 23);
STRING_LITERAL(TMP4524, "ccgmerge: expected: /*\011NIM_merge_END:*/", 39);
STRING_LITERAL(TMP4525, "/*\011NIM_merge_END:*/", 19);
STRING_LITERAL(TMP4526, "", 0);
STRING_LITERAL(TMP4527, "NIM_merge_HEADERS", 17);
STRING_LITERAL(TMP4528, "NIM_merge_FORWARD_TYPES", 23);
STRING_LITERAL(TMP4529, "NIM_merge_TYPES", 15);
STRING_LITERAL(TMP4530, "NIM_merge_SEQ_TYPES", 19);
STRING_LITERAL(TMP4531, "NIM_merge_FIELD_INFO", 20);
STRING_LITERAL(TMP4532, "NIM_merge_TYPE_INFO", 19);
STRING_LITERAL(TMP4533, "NIM_merge_PROC_HEADERS", 22);
STRING_LITERAL(TMP4534, "NIM_merge_DATA", 14);
STRING_LITERAL(TMP4535, "NIM_merge_VARS", 14);
STRING_LITERAL(TMP4536, "NIM_merge_PROCS", 15);
STRING_LITERAL(TMP4537, "NIM_merge_INIT_PROC", 19);
STRING_LITERAL(TMP4538, "NIM_merge_TYPE_INIT1", 20);
STRING_LITERAL(TMP4539, "NIM_merge_TYPE_INIT2", 20);
STRING_LITERAL(TMP4540, "NIM_merge_TYPE_INIT3", 20);
STRING_LITERAL(TMP4541, "NIM_merge_DEBUG_INIT", 20);
STRING_LITERAL(TMP4542, "NIM_merge_DYNLIB_INIT", 21);
STRING_LITERAL(TMP4543, "NIM_merge_DYNLIB_DEINIT", 23);
NIM_CONST TY508015 Cfilesectionnames_508012 = {((NimStringDesc*) &TMP4526),
((NimStringDesc*) &TMP4527),
((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)}
;
STRING_LITERAL(TMP4544, "NIM_merge_PROC_LOCALS", 21);
STRING_LITERAL(TMP4545, "NIM_merge_PROC_INIT", 19);
STRING_LITERAL(TMP4546, "NIM_merge_PROC_BODY", 19);
NIM_CONST TY508021 Cprocsectionnames_508018 = {((NimStringDesc*) &TMP4544),
((NimStringDesc*) &TMP4545),
((NimStringDesc*) &TMP4546)}
;
STRING_LITERAL(TMP4547, "ccgmerge: unknown section: ", 27);
STRING_LITERAL(TMP4548, "ccgmerge: \'*/\' expected", 23);
STRING_LITERAL(TMP4552, "/*\011", 3);
STRING_LITERAL(TMP4553, ":*/", 3);
STRING_LITERAL(TMP4561, "/*\011NIM_merge_INFO:", 18);
STRING_LITERAL(TMP4562, "typeCache:{", 11);
STRING_LITERAL(TMP4563, "declared:{", 10);
STRING_LITERAL(TMP4564, "typeInfo:{", 10);
STRING_LITERAL(TMP4565, "labels:", 7);
STRING_LITERAL(TMP4566, " hasframe:", 10);
STRING_LITERAL(TMP4567, "*/", 2);
extern TNimType NTI212024; /* TBaseLexer */
extern TNimType NTI223805; /* PType */
extern TNimType NTI223847; /* TType */
extern NimStringDesc* tnl_172654;
extern Gcheap51018 gch_51059;
extern NU32 gglobaloptions_165132;

N_NIMCALL(void, skipuntilcmd_508353)(Tbaselexer212024* L) {
	NI pos;
	pos = (*L).bufpos;
	{
		while (1) {
			switch (((NU8)((*L).buf[pos]))) {
			case 13:
			{
				pos = handlecr_212066(L, pos);
			}
			break;
			case 10:
			{
				pos = handlelf_212074(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_508466)(Tbaselexer212024* 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_194191(((NimStringDesc*) &TMP4448));
	}
	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_508326)(Tbaselexer212024* L) {
	NI pos;
	pos = (*L).bufpos;
	{
		while (1) {
			switch (((NU8)((*L).buf[pos]))) {
			case 13:
			{
				pos = handlecr_212066(L, pos);
			}
			break;
			case 10:
			{
				pos = handlelf_212074(L, pos);
			}
			break;
			case 32:
			{
				pos += ((NI) 1);
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
		}
	} LA1: ;
	(*L).bufpos = pos;
}

N_NIMCALL(Ttype223847*, newfaketype_508506)(NI id) {
	Ttype223847* result;
	result = 0;
	result = (Ttype223847*) newObj((&NTI223805), sizeof(Ttype223847));
	(*result).Sup.Sup.m_type = (&NTI223847);
	(*result).Sup.id = id;
	return result;
}

N_NIMCALL(void, readtypecache_508524)(Tbaselexer212024* L, Tidtable223859* result) {
	{
		if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(123)))) goto LA3;
		internalerror_194191(((NimStringDesc*) &TMP4455));
	}
	LA3: ;
	(*L).bufpos += ((NI) 1);
	{
		while (1) {
			NI key;
			NimStringDesc* value;
			Ttype223847* LOC11;
			Tidobj196015* LOC12;
			Ropeobj174009* LOC13;
			TNimObject* LOC14;
			if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(125)))) goto LA6;
			skipwhite_508326(L);
			key = decodevint_230356((*L).buf, (&(*L).bufpos));
			{
				if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(58)))) goto LA9;
				internalerror_194191(((NimStringDesc*) &TMP4448));
			}
			LA9: ;
			(*L).bufpos += ((NI) 1);
			value = decodestr_230154((*L).buf, (&(*L).bufpos));
			LOC11 = 0;
			LOC11 = newfaketype_508506(key);
			LOC12 = 0;
			LOC12 = &LOC11->Sup;
			LOC13 = 0;
			LOC13 = rope_174322(value);
			LOC14 = 0;
			LOC14 = &LOC13->Sup;
			idtableput_231196(result, LOC12, LOC14);
		} LA6: ;
	}
	(*L).bufpos += ((NI) 1);
}

N_NIMCALL(void, readintset_508574)(Tbaselexer212024* L, Intset220056* result) {
	{
		if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(123)))) goto LA3;
		internalerror_194191(((NimStringDesc*) &TMP4455));
	}
	LA3: ;
	(*L).bufpos += ((NI) 1);
	{
		while (1) {
			NI key;
			if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(125)))) goto LA6;
			skipwhite_508326(L);
			key = decodevint_230356((*L).buf, (&(*L).bufpos));
			incl_220856(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_508613)(Tbaselexer212024* L, Tcgen507038* m) {
	NimStringDesc* k;
	k = rawNewString(((NI) 9));
	{
		while (1) {
			skipwhite_508326(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_508466(L, (&k));
			if (eqStrings(k, ((NimStringDesc*) &TMP4450))) goto LA9;
			if (eqStrings(k, ((NimStringDesc*) &TMP4451))) goto LA10;
			if (eqStrings(k, ((NimStringDesc*) &TMP4452))) goto LA11;
			if (eqStrings(k, ((NimStringDesc*) &TMP4453))) goto LA12;
			if (eqStrings(k, ((NimStringDesc*) &TMP4454))) goto LA13;
			goto LA14;
			LA9: ;
			{
				readtypecache_508524(L, (&(*m).typecache));
			}
			goto LA15;
			LA10: ;
			{
				readintset_508574(L, (&(*m).declaredthings));
			}
			goto LA15;
			LA11: ;
			{
				readintset_508574(L, (&(*m).typeinfomarker));
			}
			goto LA15;
			LA12: ;
			{
				NI LOC20;
				LOC20 = 0;
				LOC20 = decodevint_230356((*L).buf, (&(*L).bufpos));
				(*m).labels = ((NI) (LOC20));
			}
			goto LA15;
			LA13: ;
			{
				NI LOC22;
				LOC22 = 0;
				LOC22 = decodevint_230356((*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*) &TMP4456));
appendString(LOC24, k);
				internalerror_194191(LOC24);
			}
			LA15: ;
		}
	} LA1: ;
}

N_NIMCALL(void, readmergeinfo_508816)(NimStringDesc* cfilename, Tcgen507038* m) {
	Tllstream211204* s_508821;
	Tbaselexer212024 L;
	NimStringDesc* k;
{	s_508821 = llstreamopen_211256(cfilename, ((NU8) 0));
	{
		if (!(s_508821 == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&L), 0, sizeof(L));
	L.Sup.m_type = (&NTI212024);
	openbaselexer_212035((&L), s_508821, ((NI) 8192));
	k = rawNewString(((NI) 23));
	{
		while (1) {
			skipuntilcmd_508353((&L));
			{
				if (!((NU8)(L.buf[L.bufpos]) == (NU8)(0))) goto LA9;
				goto LA5;
			}
			LA9: ;
			readkey_508466((&L), (&k));
			{
				if (!eqStrings(k, ((NimStringDesc*) &TMP4449))) goto LA13;
				processmergeinfo_508613((&L), m);
				goto LA5;
			}
			LA13: ;
		}
	} LA5: ;
	closebaselexer_212045((&L));
	}BeforeRet: ;
}

static N_INLINE(Ropeobj174009**, s_507184)(Tcproc507034* p, NU8 s) {
	Ropeobj174009** 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_509106)(Tcgen507038* m) {
	NIM_BOOL result;
{	result = 0;
	{
		NU8 i_509223;
		NI res_509439;
		i_509223 = 0;
		res_509439 = ((NI) 1);
		{
			while (1) {
				if (!(res_509439 <= ((NI) 10))) goto LA3;
				i_509223 = ((NU8) (res_509439));
				{
					if (!!(((*m).s[(i_509223)- 0] == NIM_NIL))) goto LA6;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA6: ;
				res_509439 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NU8 i_509423;
		NI res_509447;
		i_509423 = 0;
		res_509447 = ((NI) 0);
		{
			while (1) {
				if (!(res_509447 <= ((NI) 2))) goto LA10;
				i_509423 = ((NU8) (res_509447));
				{
					Ropeobj174009** LOC13;
					LOC13 = 0;
					LOC13 = s_507184((*m).initproc, i_509423);
					if (!!(((*LOC13) == NIM_NIL))) goto LA14;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA14: ;
				res_509447 += ((NI) 1);
			} LA10: ;
		}
	}
	}BeforeRet: ;
	return result;
}

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

N_NIMCALL(Ropeobj174009*, readverbatimsection_508426)(Tbaselexer212024* L) {
	Ropeobj174009* 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_212066(L, pos);
				buf = (*L).buf;
				r = resizeString(r, tnl_172654->Sup.len + 0);
appendString(r, tnl_172654);
			}
			break;
			case 10:
			{
				pos = handlelf_212074(L, pos);
				buf = (*L).buf;
				r = resizeString(r, tnl_172654->Sup.len + 0);
appendString(r, tnl_172654);
			}
			break;
			case 0:
			{
				internalerror_194191(((NimStringDesc*) &TMP4524));
				goto LA1;
			}
			break;
			default:
			{
				{
					NIM_BOOL LOC9;
					LOC9 = 0;
					LOC9 = atendmark_508398(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_174322(r);
	return result;
}

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

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

N_NIMCALL(void, readmergesections_508863)(NimStringDesc* cfilename, Tmergesections508857* m) {
	Tllstream211204* s_508869;
	Tbaselexer212024 L;
	NimStringDesc* k;
{	s_508869 = llstreamopen_211256(cfilename, ((NU8) 0));
	{
		if (!(s_508869 == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&L), 0, sizeof(L));
	L.Sup.m_type = (&NTI212024);
	openbaselexer_212035((&L), s_508869, ((NI) 8192));
	k = rawNewString(((NI) 23));
	{
		while (1) {
			skipuntilcmd_508353((&L));
			{
				if (!((NU8)(L.buf[L.bufpos]) == (NU8)(0))) goto LA9;
				goto LA5;
			}
			LA9: ;
			readkey_508466((&L), (&k));
			{
				if (!eqStrings(k, ((NimStringDesc*) &TMP4449))) goto LA13;
			}
			goto LA11;
			LA13: ;
			{
				NIM_BOOL LOC16;
				Ropeobj174009* 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_508326((&L));
				verbatim = readverbatimsection_508426((&L));
				skipwhite_508326((&L));
				sectiona = find_508902(Cfilesectionnames_508012, 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_508995(Cprocsectionnames_508018, 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*) &TMP4547));
appendString(LOC34, k);
						internalerror_194191(LOC34);
					}
					LA27: ;
				}
				LA20: ;
			}
			goto LA11;
			LA18: ;
			{
				internalerror_194191(((NimStringDesc*) &TMP4548));
			}
			LA11: ;
		}
	} LA5: ;
	closebaselexer_212045((&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_509474)(NimStringDesc* cfilename, Tcgen507038* m) {
	Tmergesections508857 old;
	memset((void*)(&old), 0, sizeof(old));
	readmergesections_508863(cfilename, (&old));
	{
		NU8 i_509492;
		NI res_509512;
		i_509492 = 0;
		res_509512 = ((NI) 0);
		{
			while (1) {
				if (!(res_509512 <= ((NI) 17))) goto LA3;
				i_509492 = ((NU8) (res_509512));
				asgnRefNoCycle((void**) (&(*m).s[(i_509492)- 0]), HEX26_174436(old.f[(i_509492)- 0], (*m).s[(i_509492)- 0]));
				res_509512 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NU8 i_509505;
		NI res_509520;
		i_509505 = 0;
		res_509520 = ((NI) 0);
		{
			while (1) {
				Ropeobj174009** LOC7;
				Ropeobj174009** LOC8;
				if (!(res_509520 <= ((NI) 2))) goto LA6;
				i_509505 = ((NU8) (res_509520));
				LOC7 = 0;
				LOC7 = s_507184((*m).initproc, i_509505);
				LOC8 = 0;
				LOC8 = s_507184((*m).initproc, i_509505);
				unsureAsgnRef((void**) (&(*LOC7)), HEX26_174436(old.p[(i_509505)- 0], (*LOC8)));
				res_509520 += ((NI) 1);
			} LA6: ;
		}
	}
}

N_NIMCALL(Ropeobj174009*, gensectionstart_508106)(NU8 ps) {
	Ropeobj174009* result;
	result = 0;
	{
		if (!!(((49152 & gglobaloptions_165132) == 0))) goto LA3;
		result = rope_174322(tnl_172654);
		add_174545(&result, ((NimStringDesc*) &TMP4552));
		add_174545(&result, Cprocsectionnames_508018[(ps)- 0]);
		add_174545(&result, ((NimStringDesc*) &TMP4553));
		add_174545(&result, tnl_172654);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj174009*, gensectionend_508147)(NU8 ps) {
	Ropeobj174009* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!(((49152 & gglobaloptions_165132) == 0))) goto LA3;
		LOC5 = 0;
		LOC5 = rawNewString(tnl_172654->Sup.len + 19);
appendString(LOC5, ((NimStringDesc*) &TMP4525));
appendString(LOC5, tnl_172654);
		result = rope_174322(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj174009*, gensectionstart_508028)(NU8 fs) {
	Ropeobj174009* result;
	result = 0;
	{
		if (!!(((49152 & gglobaloptions_165132) == 0))) goto LA3;
		result = rope_174322(tnl_172654);
		add_174545(&result, ((NimStringDesc*) &TMP4552));
		add_174545(&result, Cfilesectionnames_508012[(fs)- 0]);
		add_174545(&result, ((NimStringDesc*) &TMP4553));
		add_174545(&result, tnl_172654);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj174009*, gensectionend_508069)(NU8 fs) {
	Ropeobj174009* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!(((49152 & gglobaloptions_165132) == 0))) goto LA3;
		LOC5 = 0;
		LOC5 = rawNewString(tnl_172654->Sup.len + 19);
appendString(LOC5, ((NimStringDesc*) &TMP4525));
appendString(LOC5, tnl_172654);
		result = rope_174322(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, writetypecache_508184)(Tidtable223859 a, NimStringDesc** s) {
	NI i;
	i = ((NI) 0);
	{
		NI id_508190;
		TNimObject* value_508191;
		id_508190 = 0;
		value_508191 = 0;
		{
			NI i_508205;
			NI HEX3Atmp_508207;
			NI res_508209;
			i_508205 = 0;
			HEX3Atmp_508207 = 0;
			HEX3Atmp_508207 = (a.data ? (a.data->Sup.len-1) : -1);
			res_508209 = ((NI) 0);
			{
				while (1) {
					if (!(res_508209 <= HEX3Atmp_508207)) goto LA4;
					i_508205 = res_508209;
					{
						NimStringDesc* LOC14;
						if (!!((a.data->data[i_508205].key == NIM_NIL))) goto LA7;
						id_508190 = (*a.data->data[i_508205].key).id;
						value_508191 = a.data->data[i_508205].val;
						{
							if (!(i == ((NI) 10))) goto LA11;
							i = ((NI) 0);
							(*s) = resizeString((*s), tnl_172654->Sup.len + 0);
appendString((*s), tnl_172654);
						}
						goto LA9;
						LA11: ;
						{
							(*s) = addChar((*s), 32);
						}
						LA9: ;
						encodevint_230294(id_508190, s);
						(*s) = addChar((*s), 58);
						LOC14 = 0;
						LOC14 = HEX24_175132(((Ropeobj174009*) (value_508191)));
						encodestr_230039(LOC14, s);
						i += ((NI) 1);
					}
					LA7: ;
					res_508209 += ((NI) 1);
				} LA4: ;
			}
		}
	}
	(*s) = addChar((*s), 125);
}

N_NIMCALL(void, writeintset_508230)(Intset220056* a, NimStringDesc** s) {
	NI i;
	i = ((NI) 0);
	{
		NI x_508236;
		Trunk220052* r_508251;
		x_508236 = 0;
		r_508251 = (*a).head;
		{
			while (1) {
				NI i_508253;
				if (!!((r_508251 == NIM_NIL))) goto LA3;
				i_508253 = ((NI) 0);
				{
					while (1) {
						NI w_508255;
						NI j_508257;
						if (!(i_508253 <= ((NI) 7))) goto LA5;
						w_508255 = (*r_508251).bits[(i_508253)- 0];
						j_508257 = ((NI) 0);
						{
							while (1) {
								if (!!((w_508255 == ((NI) 0)))) goto LA7;
								{
									if (!!((((NI) ((NI)(w_508255 & ((NI) 1)))) == ((NI) 0)))) goto LA10;
									x_508236 = (NI)((NI)((NU64)((*r_508251).key) << (NU64)(((NI) 9))) | (NI)((NU64)((NI)((NU64)(i_508253) << (NU64)(((NI) 6)))) + (NU64)(j_508257)));
									{
										if (!(i == ((NI) 10))) goto LA14;
										i = ((NI) 0);
										(*s) = resizeString((*s), tnl_172654->Sup.len + 0);
appendString((*s), tnl_172654);
									}
									goto LA12;
									LA14: ;
									{
										(*s) = addChar((*s), 32);
									}
									LA12: ;
									encodevint_230294(x_508236, s);
									i += ((NI) 1);
								}
								LA10: ;
								j_508257 += ((NI) 1);
								w_508255 = (NI)((NU64)(w_508255) >> (NU64)(((NI) 1)));
							} LA7: ;
						}
						i_508253 += ((NI) 1);
					} LA5: ;
				}
				r_508251 = (*r_508251).next;
			} LA3: ;
		}
	}
	(*s) = addChar((*s), 125);
}

N_NIMCALL(Ropeobj174009*, genmergeinfo_508285)(Tcgen507038* m) {
	Ropeobj174009* result;
	NimStringDesc* s;
{	result = 0;
	{
		if (!!(((gglobaloptions_165132 &(1<<((((NU8) 14))&31)))!=0))) goto LA3;
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	s = copyString(((NimStringDesc*) &TMP4561));
	s = resizeString(s, tnl_172654->Sup.len + 0);
appendString(s, tnl_172654);
	s = resizeString(s, 11);
appendString(s, ((NimStringDesc*) &TMP4562));
	writetypecache_508184((*m).typecache, (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4563));
	writeintset_508230((&(*m).declaredthings), (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4564));
	writeintset_508230((&(*m).typeinfomarker), (&s));
	s = resizeString(s, 7);
appendString(s, ((NimStringDesc*) &TMP4565));
	encodevint_230294(((NI) ((*m).labels)), (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4566));
	encodevint_230294(((NI) ((*m).framedeclared)), (&s));
	s = resizeString(s, tnl_172654->Sup.len + 0);
appendString(s, tnl_172654);
	s = resizeString(s, 2);
appendString(s, ((NimStringDesc*) &TMP4567));
	result = rope_174322(s);
	}BeforeRet: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_ccgmergeInit000)(void) {
}

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

