/* 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 Tcgen508038 Tcgen508038;
typedef struct Tllstream212204 Tllstream212204;
typedef struct Tbaselexer213024 Tbaselexer213024;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tidtable224859 Tidtable224859;
typedef struct Tidobj197015 Tidobj197015;
typedef struct Ttype224847 Ttype224847;
typedef struct Ttypeseq224843 Ttypeseq224843;
typedef struct Tnode224809 Tnode224809;
typedef struct Tsym224841 Tsym224841;
typedef struct Tloc224823 Tloc224823;
typedef struct Ropeobj175009 Ropeobj175009;
typedef struct Tpasscontext276005 Tpasscontext276005;
typedef struct Tidpairseq224857 Tidpairseq224857;
typedef struct Intset221056 Intset221056;
typedef struct Trunk221052 Trunk221052;
typedef struct Trunkseq221054 Trunkseq221054;
typedef struct Tlinkedlist140028 Tlinkedlist140028;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct Tcproc508034 Tcproc508034;
typedef struct Tnodetable224871 Tnodetable224871;
typedef struct Tnodepairseq224869 Tnodepairseq224869;
typedef struct Tsymseq224811 Tsymseq224811;
typedef struct Tlineinfo189352 Tlineinfo189352;
typedef struct Tnodeseq224803 Tnodeseq224803;
typedef struct TY189365 TY189365;
typedef struct TY508106 TY508106;
typedef struct Tblock508032 Tblock508032;
typedef struct Tmergesections509857 Tmergesections509857;
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 Tidpair224855 Tidpair224855;
typedef struct Tident197021 Tident197021;
typedef struct Tscope224835 Tscope224835;
typedef struct TY224944 TY224944;
typedef struct Tstrtable224813 Tstrtable224813;
typedef struct Tlib224827 Tlib224827;
typedef struct Tnodepair224867 Tnodepair224867;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tinstantiation224831 Tinstantiation224831;
typedef struct TY224932 TY224932;
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  Tbaselexer213024  {
  TNimObject Sup;
NI bufpos;
NCSTRING buf;
NI buflen;
Tllstream212204* stream;
NI linenumber;
NI sentinel;
NI linestart;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tidobj197015  {
  TNimObject Sup;
NI id;
};
struct  Tloc224823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype224847* t;
Ropeobj175009* r;
Ropeobj175009* heaproot;
};
struct  Ttype224847  {
  Tidobj197015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq224843* sons;
Tnode224809* n;
Tsym224841* owner;
Tsym224841* sym;
Tsym224841* destructor;
Tsym224841* deepcopy;
Tsym224841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc224823 loc;
};
struct  Tpasscontext276005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
typedef Ropeobj175009* Tcfilesections508022[18];
struct  Tidtable224859  {
NI counter;
Tidpairseq224857* data;
};
struct  Intset221056  {
NI counter;
NI max;
Trunk221052* head;
Trunkseq221054* data;
};
struct  Tlinkedlist140028  {
Tlistentry140022* head;
Tlistentry140022* tail;
NI counter;
};
struct  Tnodetable224871  {
NI counter;
Tnodepairseq224869* data;
};
typedef Ropeobj175009* TY508144[10];
struct  Tcgen508038  {
  Tpasscontext276005 Sup;
Tsym224841* module;
NimStringDesc* filename;
Tcfilesections508022 s;
NIM_BOOL preventstacktrace;
NIM_BOOL usesthreadvars;
NIM_BOOL framedeclared;
NIM_BOOL isheaderfile;
NIM_BOOL includesstringh;
NIM_BOOL objhaskidsvalid;
NimStringDesc* cfilename;
Tidtable224859 typecache;
Tidtable224859 forwtypecache;
Intset221056 declaredthings;
Intset221056 declaredprotos;
Tlinkedlist140028 headerfiles;
Intset221056 typeinfomarker;
Tcproc508034* initproc;
Tcproc508034* postinitproc;
Tcproc508034* preinitproc;
Ttypeseq224843* typestack;
Tnodetable224871 datacache;
Tsymseq224811* forwardedprocs;
NI typenodes;
NI nimtypes;
Ropeobj175009* typenodesname;
Ropeobj175009* nimtypesname;
NI labels;
TY508144 extensionloaders;
Ropeobj175009* injectstmt;
};
struct  Tlineinfo189352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tcproc508034  {
Tsym224841* prc;
NIM_BOOL beforeretneeded;
NIM_BOOL threadvaraccessed;
Tlineinfo189352 lastlineinfo;
Tnodeseq224803* nestedtrystmts;
NI inexceptblock;
TY189365* finallysafepoints;
NI labels;
TY508106* blocks;
NI breakidx;
NU32 options;
NI maxframelen;
Tcgen508038* module;
NI withinloop;
NI splitdecls;
NI gcframeid;
Ropeobj175009* gcframetype;
};
typedef Ropeobj175009* Tcprocsections508026[3];
struct  Tblock508032  {
NI id;
Ropeobj175009* label;
Tcprocsections508026 sections;
NIM_BOOL isloop;
NI16 nestedtrystmts;
NI16 nestedexceptstmts;
NI16 framelen;
};
struct  Tmergesections509857  {
Tcfilesections508022 f;
Tcprocsections508026 p;
};
typedef NimStringDesc* TY509015[18];
typedef NimStringDesc* TY509021[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  Tidpair224855  {
Tidobj197015* key;
TNimObject* val;
};
typedef NI TY30822[8];
struct  Trunk221052  {
Trunk221052* next;
NI key;
TY30822 bits;
};
struct  Tllstream212204  {
  TNimObject Sup;
NU8 kind;
FILE* f;
NimStringDesc* s;
NI rd;
NI wr;
NI lineoffset;
};
struct  Tnode224809  {
Ttype224847* typ;
Tlineinfo189352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym224841* sym;
} S4;
struct {Tident197021* ident;
} S5;
struct {Tnodeseq224803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tstrtable224813  {
NI counter;
Tsymseq224811* data;
};
struct  Tsym224841  {
  Tidobj197015 Sup;
NU8 kind;
union{
struct {Ttypeseq224843* typeinstcache;
Tscope224835* typscope;
} S1;
struct {TY224944* procinstcache;
Tsym224841* gcunsafetyreason;
} S2;
struct {TY224944* usedgenerics;
Tstrtable224813 tab;
} S3;
struct {Tsym224841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype224847* typ;
Tident197021* name;
Tlineinfo189352 info;
Tsym224841* owner;
NU32 flags;
Tnode224809* ast;
NU32 options;
NI position;
NI offset;
Tloc224823 loc;
Tlib224827* annex;
Tnode224809* constraint;
};
struct  Ropeobj175009  {
  TNimObject Sup;
Ropeobj175009* left;
Ropeobj175009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tnodepair224867  {
NI h;
Tnode224809* 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  Tident197021  {
  Tidobj197015 Sup;
NimStringDesc* s;
Tident197021* next;
NI h;
};
struct  Tscope224835  {
NI depthlevel;
Tstrtable224813 symbols;
Tnodeseq224803* usingsyms;
Tscope224835* parent;
};
struct  Tlib224827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj175009* name;
Tnode224809* path;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct  Tinstantiation224831  {
Tsym224841* sym;
Ttypeseq224843* concretetypes;
TY224932* usedby;
NI compilesid;
};
struct Ttypeseq224843 {
  TGenericSeq Sup;
  Ttype224847* data[SEQ_DECL_SIZE];
};
struct Tidpairseq224857 {
  TGenericSeq Sup;
  Tidpair224855 data[SEQ_DECL_SIZE];
};
struct Trunkseq221054 {
  TGenericSeq Sup;
  Trunk221052* data[SEQ_DECL_SIZE];
};
struct Tnodepairseq224869 {
  TGenericSeq Sup;
  Tnodepair224867 data[SEQ_DECL_SIZE];
};
struct Tsymseq224811 {
  TGenericSeq Sup;
  Tsym224841* data[SEQ_DECL_SIZE];
};
struct Tnodeseq224803 {
  TGenericSeq Sup;
  Tnode224809* data[SEQ_DECL_SIZE];
};
struct TY189365 {
  TGenericSeq Sup;
  Ropeobj175009* data[SEQ_DECL_SIZE];
};
struct TY508106 {
  TGenericSeq Sup;
  Tblock508032 data[SEQ_DECL_SIZE];
};
struct TY224944 {
  TGenericSeq Sup;
  Tinstantiation224831* data[SEQ_DECL_SIZE];
};
struct TY224932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Tllstream212204*, llstreamopen_212256)(NimStringDesc* filename, NU8 mode);
N_NIMCALL(void, openbaselexer_213035)(Tbaselexer213024* L, Tllstream212204* inputstream, NI buflen);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_NIMCALL(void, skipuntilcmd_509353)(Tbaselexer213024* L);
N_NIMCALL(NI, handlecr_213066)(Tbaselexer213024* L, NI pos);
N_NIMCALL(NI, handlelf_213074)(Tbaselexer213024* L, NI pos);
N_NIMCALL(void, readkey_509466)(Tbaselexer213024* L, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newlen);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(void, internalerror_195191)(NimStringDesc* errmsg);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(void, processmergeinfo_509613)(Tbaselexer213024* L, Tcgen508038* m);
N_NIMCALL(void, skipwhite_509326)(Tbaselexer213024* L);
N_NIMCALL(void, readtypecache_509524)(Tbaselexer213024* L, Tidtable224859* result);
N_NIMCALL(NI, decodevint_231356)(NCSTRING s, NI* pos);
N_NIMCALL(NimStringDesc*, decodestr_231154)(NCSTRING s, NI* pos);
N_NIMCALL(void, idtableput_232196)(Tidtable224859* t, Tidobj197015* key, TNimObject* val);
N_NIMCALL(Ttype224847*, newfaketype_509506)(NI id);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(Ropeobj175009*, rope_175322)(NimStringDesc* s);
N_NIMCALL(void, readintset_509574)(Tbaselexer213024* L, Intset221056* result);
N_NIMCALL(void, incl_221856)(Intset221056* s, NI key);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(void, closebaselexer_213045)(Tbaselexer213024* L);
static N_INLINE(Ropeobj175009**, s_508184)(Tcproc508034* p, NU8 s);
N_NIMCALL(void, readmergesections_509863)(NimStringDesc* cfilename, Tmergesections509857* m);
N_NIMCALL(Ropeobj175009*, readverbatimsection_509426)(Tbaselexer213024* L);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(NIM_BOOL, atendmark_509398)(NCSTRING buf, NI pos);
static N_INLINE(NI, find_509902)(TY509015 a, NimStringDesc* item);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
static N_INLINE(NI, find_509995)(TY509021 a, NimStringDesc* item);
N_NIMCALL(Ropeobj175009*, HEX26_175436)(Ropeobj175009* a, Ropeobj175009* 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_175545)(Ropeobj175009** a, NimStringDesc* b);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(void, writetypecache_509184)(Tidtable224859 a, NimStringDesc** s);
N_NIMCALL(void, encodevint_231294)(NI x, NimStringDesc** result);
N_NIMCALL(void, encodestr_231039)(NimStringDesc* s, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, HEX24_176132)(Ropeobj175009* r);
N_NIMCALL(void, writeintset_509230)(Intset221056* a, NimStringDesc** s);
STRING_LITERAL(TMP4447, "ccgmerge: \':\' expected", 22);
STRING_LITERAL(TMP4448, "NIM_merge_INFO", 14);
STRING_LITERAL(TMP4449, "typeCache", 9);
STRING_LITERAL(TMP4450, "declared", 8);
STRING_LITERAL(TMP4451, "typeInfo", 8);
STRING_LITERAL(TMP4452, "labels", 6);
STRING_LITERAL(TMP4453, "hasframe", 8);
STRING_LITERAL(TMP4454, "ccgmerge: \'{\' expected", 22);
STRING_LITERAL(TMP4455, "ccgmerge: unknown key: ", 23);
STRING_LITERAL(TMP4523, "ccgmerge: expected: /*\011NIM_merge_END:*/", 39);
STRING_LITERAL(TMP4524, "/*\011NIM_merge_END:*/", 19);
STRING_LITERAL(TMP4525, "", 0);
STRING_LITERAL(TMP4526, "NIM_merge_HEADERS", 17);
STRING_LITERAL(TMP4527, "NIM_merge_FORWARD_TYPES", 23);
STRING_LITERAL(TMP4528, "NIM_merge_TYPES", 15);
STRING_LITERAL(TMP4529, "NIM_merge_SEQ_TYPES", 19);
STRING_LITERAL(TMP4530, "NIM_merge_FIELD_INFO", 20);
STRING_LITERAL(TMP4531, "NIM_merge_TYPE_INFO", 19);
STRING_LITERAL(TMP4532, "NIM_merge_PROC_HEADERS", 22);
STRING_LITERAL(TMP4533, "NIM_merge_DATA", 14);
STRING_LITERAL(TMP4534, "NIM_merge_VARS", 14);
STRING_LITERAL(TMP4535, "NIM_merge_PROCS", 15);
STRING_LITERAL(TMP4536, "NIM_merge_INIT_PROC", 19);
STRING_LITERAL(TMP4537, "NIM_merge_TYPE_INIT1", 20);
STRING_LITERAL(TMP4538, "NIM_merge_TYPE_INIT2", 20);
STRING_LITERAL(TMP4539, "NIM_merge_TYPE_INIT3", 20);
STRING_LITERAL(TMP4540, "NIM_merge_DEBUG_INIT", 20);
STRING_LITERAL(TMP4541, "NIM_merge_DYNLIB_INIT", 21);
STRING_LITERAL(TMP4542, "NIM_merge_DYNLIB_DEINIT", 23);
NIM_CONST TY509015 Cfilesectionnames_509012 = {((NimStringDesc*) &TMP4525),
((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)}
;
STRING_LITERAL(TMP4543, "NIM_merge_PROC_LOCALS", 21);
STRING_LITERAL(TMP4544, "NIM_merge_PROC_INIT", 19);
STRING_LITERAL(TMP4545, "NIM_merge_PROC_BODY", 19);
NIM_CONST TY509021 Cprocsectionnames_509018 = {((NimStringDesc*) &TMP4543),
((NimStringDesc*) &TMP4544),
((NimStringDesc*) &TMP4545)}
;
STRING_LITERAL(TMP4546, "ccgmerge: unknown section: ", 27);
STRING_LITERAL(TMP4547, "ccgmerge: \'*/\' expected", 23);
STRING_LITERAL(TMP4551, "/*\011", 3);
STRING_LITERAL(TMP4552, ":*/", 3);
STRING_LITERAL(TMP4560, "/*\011NIM_merge_INFO:", 18);
STRING_LITERAL(TMP4561, "typeCache:{", 11);
STRING_LITERAL(TMP4562, "declared:{", 10);
STRING_LITERAL(TMP4563, "typeInfo:{", 10);
STRING_LITERAL(TMP4564, "labels:", 7);
STRING_LITERAL(TMP4565, " hasframe:", 10);
STRING_LITERAL(TMP4566, "*/", 2);
extern TNimType NTI213024; /* TBaseLexer */
extern TNimType NTI224805; /* PType */
extern TNimType NTI224847; /* TType */
extern NimStringDesc* tnl_173654;
extern Gcheap51018 gch_51059;
extern NU32 gglobaloptions_166132;

N_NIMCALL(void, skipuntilcmd_509353)(Tbaselexer213024* L) {
	NI pos;
	pos = (*L).bufpos;
	{
		while (1) {
			switch (((NU8)((*L).buf[pos]))) {
			case 13:
			{
				pos = handlecr_213066(L, pos);
			}
			break;
			case 10:
			{
				pos = handlelf_213074(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_509466)(Tbaselexer213024* 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_195191(((NimStringDesc*) &TMP4447));
	}
	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_509326)(Tbaselexer213024* L) {
	NI pos;
	pos = (*L).bufpos;
	{
		while (1) {
			switch (((NU8)((*L).buf[pos]))) {
			case 13:
			{
				pos = handlecr_213066(L, pos);
			}
			break;
			case 10:
			{
				pos = handlelf_213074(L, pos);
			}
			break;
			case 32:
			{
				pos += ((NI) 1);
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
		}
	} LA1: ;
	(*L).bufpos = pos;
}

N_NIMCALL(Ttype224847*, newfaketype_509506)(NI id) {
	Ttype224847* result;
	result = 0;
	result = (Ttype224847*) newObj((&NTI224805), sizeof(Ttype224847));
	(*result).Sup.Sup.m_type = (&NTI224847);
	(*result).Sup.id = id;
	return result;
}

N_NIMCALL(void, readtypecache_509524)(Tbaselexer213024* L, Tidtable224859* result) {
	{
		if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(123)))) goto LA3;
		internalerror_195191(((NimStringDesc*) &TMP4454));
	}
	LA3: ;
	(*L).bufpos += ((NI) 1);
	{
		while (1) {
			NI key;
			NimStringDesc* value;
			Ttype224847* LOC11;
			Tidobj197015* LOC12;
			Ropeobj175009* LOC13;
			TNimObject* LOC14;
			if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(125)))) goto LA6;
			skipwhite_509326(L);
			key = decodevint_231356((*L).buf, (&(*L).bufpos));
			{
				if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(58)))) goto LA9;
				internalerror_195191(((NimStringDesc*) &TMP4447));
			}
			LA9: ;
			(*L).bufpos += ((NI) 1);
			value = decodestr_231154((*L).buf, (&(*L).bufpos));
			LOC11 = 0;
			LOC11 = newfaketype_509506(key);
			LOC12 = 0;
			LOC12 = &LOC11->Sup;
			LOC13 = 0;
			LOC13 = rope_175322(value);
			LOC14 = 0;
			LOC14 = &LOC13->Sup;
			idtableput_232196(result, LOC12, LOC14);
		} LA6: ;
	}
	(*L).bufpos += ((NI) 1);
}

N_NIMCALL(void, readintset_509574)(Tbaselexer213024* L, Intset221056* result) {
	{
		if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(123)))) goto LA3;
		internalerror_195191(((NimStringDesc*) &TMP4454));
	}
	LA3: ;
	(*L).bufpos += ((NI) 1);
	{
		while (1) {
			NI key;
			if (!!(((NU8)((*L).buf[(*L).bufpos]) == (NU8)(125)))) goto LA6;
			skipwhite_509326(L);
			key = decodevint_231356((*L).buf, (&(*L).bufpos));
			incl_221856(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_509613)(Tbaselexer213024* L, Tcgen508038* m) {
	NimStringDesc* k;
	k = rawNewString(((NI) 9));
	{
		while (1) {
			skipwhite_509326(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_509466(L, (&k));
			if (eqStrings(k, ((NimStringDesc*) &TMP4449))) goto LA9;
			if (eqStrings(k, ((NimStringDesc*) &TMP4450))) goto LA10;
			if (eqStrings(k, ((NimStringDesc*) &TMP4451))) goto LA11;
			if (eqStrings(k, ((NimStringDesc*) &TMP4452))) goto LA12;
			if (eqStrings(k, ((NimStringDesc*) &TMP4453))) goto LA13;
			goto LA14;
			LA9: ;
			{
				readtypecache_509524(L, (&(*m).typecache));
			}
			goto LA15;
			LA10: ;
			{
				readintset_509574(L, (&(*m).declaredthings));
			}
			goto LA15;
			LA11: ;
			{
				readintset_509574(L, (&(*m).typeinfomarker));
			}
			goto LA15;
			LA12: ;
			{
				NI LOC20;
				LOC20 = 0;
				LOC20 = decodevint_231356((*L).buf, (&(*L).bufpos));
				(*m).labels = ((NI) (LOC20));
			}
			goto LA15;
			LA13: ;
			{
				NI LOC22;
				LOC22 = 0;
				LOC22 = decodevint_231356((*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*) &TMP4455));
appendString(LOC24, k);
				internalerror_195191(LOC24);
			}
			LA15: ;
		}
	} LA1: ;
}

N_NIMCALL(void, readmergeinfo_509816)(NimStringDesc* cfilename, Tcgen508038* m) {
	Tllstream212204* s_509821;
	Tbaselexer213024 L;
	NimStringDesc* k;
{	s_509821 = llstreamopen_212256(cfilename, ((NU8) 0));
	{
		if (!(s_509821 == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&L), 0, sizeof(L));
	L.Sup.m_type = (&NTI213024);
	openbaselexer_213035((&L), s_509821, ((NI) 8192));
	k = rawNewString(((NI) 23));
	{
		while (1) {
			skipuntilcmd_509353((&L));
			{
				if (!((NU8)(L.buf[L.bufpos]) == (NU8)(0))) goto LA9;
				goto LA5;
			}
			LA9: ;
			readkey_509466((&L), (&k));
			{
				if (!eqStrings(k, ((NimStringDesc*) &TMP4448))) goto LA13;
				processmergeinfo_509613((&L), m);
				goto LA5;
			}
			LA13: ;
		}
	} LA5: ;
	closebaselexer_213045((&L));
	}BeforeRet: ;
}

static N_INLINE(Ropeobj175009**, s_508184)(Tcproc508034* p, NU8 s) {
	Ropeobj175009** 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_510106)(Tcgen508038* m) {
	NIM_BOOL result;
{	result = 0;
	{
		NU8 i_510223;
		NI res_510439;
		i_510223 = 0;
		res_510439 = ((NI) 1);
		{
			while (1) {
				if (!(res_510439 <= ((NI) 10))) goto LA3;
				i_510223 = ((NU8) (res_510439));
				{
					if (!!(((*m).s[(i_510223)- 0] == NIM_NIL))) goto LA6;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA6: ;
				res_510439 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NU8 i_510423;
		NI res_510447;
		i_510423 = 0;
		res_510447 = ((NI) 0);
		{
			while (1) {
				if (!(res_510447 <= ((NI) 2))) goto LA10;
				i_510423 = ((NU8) (res_510447));
				{
					Ropeobj175009** LOC13;
					LOC13 = 0;
					LOC13 = s_508184((*m).initproc, i_510423);
					if (!!(((*LOC13) == NIM_NIL))) goto LA14;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA14: ;
				res_510447 += ((NI) 1);
			} LA10: ;
		}
	}
	}BeforeRet: ;
	return result;
}

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

N_NIMCALL(Ropeobj175009*, readverbatimsection_509426)(Tbaselexer213024* L) {
	Ropeobj175009* 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_213066(L, pos);
				buf = (*L).buf;
				r = resizeString(r, tnl_173654->Sup.len + 0);
appendString(r, tnl_173654);
			}
			break;
			case 10:
			{
				pos = handlelf_213074(L, pos);
				buf = (*L).buf;
				r = resizeString(r, tnl_173654->Sup.len + 0);
appendString(r, tnl_173654);
			}
			break;
			case 0:
			{
				internalerror_195191(((NimStringDesc*) &TMP4523));
				goto LA1;
			}
			break;
			default:
			{
				{
					NIM_BOOL LOC9;
					LOC9 = 0;
					LOC9 = atendmark_509398(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_175322(r);
	return result;
}

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

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

N_NIMCALL(void, readmergesections_509863)(NimStringDesc* cfilename, Tmergesections509857* m) {
	Tllstream212204* s_509869;
	Tbaselexer213024 L;
	NimStringDesc* k;
{	s_509869 = llstreamopen_212256(cfilename, ((NU8) 0));
	{
		if (!(s_509869 == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&L), 0, sizeof(L));
	L.Sup.m_type = (&NTI213024);
	openbaselexer_213035((&L), s_509869, ((NI) 8192));
	k = rawNewString(((NI) 23));
	{
		while (1) {
			skipuntilcmd_509353((&L));
			{
				if (!((NU8)(L.buf[L.bufpos]) == (NU8)(0))) goto LA9;
				goto LA5;
			}
			LA9: ;
			readkey_509466((&L), (&k));
			{
				if (!eqStrings(k, ((NimStringDesc*) &TMP4448))) goto LA13;
			}
			goto LA11;
			LA13: ;
			{
				NIM_BOOL LOC16;
				Ropeobj175009* 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_509326((&L));
				verbatim = readverbatimsection_509426((&L));
				skipwhite_509326((&L));
				sectiona = find_509902(Cfilesectionnames_509012, 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_509995(Cprocsectionnames_509018, 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*) &TMP4546));
appendString(LOC34, k);
						internalerror_195191(LOC34);
					}
					LA27: ;
				}
				LA20: ;
			}
			goto LA11;
			LA18: ;
			{
				internalerror_195191(((NimStringDesc*) &TMP4547));
			}
			LA11: ;
		}
	} LA5: ;
	closebaselexer_213045((&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_510474)(NimStringDesc* cfilename, Tcgen508038* m) {
	Tmergesections509857 old;
	memset((void*)(&old), 0, sizeof(old));
	readmergesections_509863(cfilename, (&old));
	{
		NU8 i_510492;
		NI res_510512;
		i_510492 = 0;
		res_510512 = ((NI) 0);
		{
			while (1) {
				if (!(res_510512 <= ((NI) 17))) goto LA3;
				i_510492 = ((NU8) (res_510512));
				asgnRefNoCycle((void**) (&(*m).s[(i_510492)- 0]), HEX26_175436(old.f[(i_510492)- 0], (*m).s[(i_510492)- 0]));
				res_510512 += ((NI) 1);
			} LA3: ;
		}
	}
	{
		NU8 i_510505;
		NI res_510520;
		i_510505 = 0;
		res_510520 = ((NI) 0);
		{
			while (1) {
				Ropeobj175009** LOC7;
				Ropeobj175009** LOC8;
				if (!(res_510520 <= ((NI) 2))) goto LA6;
				i_510505 = ((NU8) (res_510520));
				LOC7 = 0;
				LOC7 = s_508184((*m).initproc, i_510505);
				LOC8 = 0;
				LOC8 = s_508184((*m).initproc, i_510505);
				unsureAsgnRef((void**) (&(*LOC7)), HEX26_175436(old.p[(i_510505)- 0], (*LOC8)));
				res_510520 += ((NI) 1);
			} LA6: ;
		}
	}
}

N_NIMCALL(Ropeobj175009*, gensectionstart_509106)(NU8 ps) {
	Ropeobj175009* result;
	result = 0;
	{
		if (!!(((49152 & gglobaloptions_166132) == 0))) goto LA3;
		result = rope_175322(tnl_173654);
		add_175545(&result, ((NimStringDesc*) &TMP4551));
		add_175545(&result, Cprocsectionnames_509018[(ps)- 0]);
		add_175545(&result, ((NimStringDesc*) &TMP4552));
		add_175545(&result, tnl_173654);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj175009*, gensectionend_509147)(NU8 ps) {
	Ropeobj175009* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!(((49152 & gglobaloptions_166132) == 0))) goto LA3;
		LOC5 = 0;
		LOC5 = rawNewString(tnl_173654->Sup.len + 19);
appendString(LOC5, ((NimStringDesc*) &TMP4524));
appendString(LOC5, tnl_173654);
		result = rope_175322(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj175009*, gensectionstart_509028)(NU8 fs) {
	Ropeobj175009* result;
	result = 0;
	{
		if (!!(((49152 & gglobaloptions_166132) == 0))) goto LA3;
		result = rope_175322(tnl_173654);
		add_175545(&result, ((NimStringDesc*) &TMP4551));
		add_175545(&result, Cfilesectionnames_509012[(fs)- 0]);
		add_175545(&result, ((NimStringDesc*) &TMP4552));
		add_175545(&result, tnl_173654);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Ropeobj175009*, gensectionend_509069)(NU8 fs) {
	Ropeobj175009* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!(((49152 & gglobaloptions_166132) == 0))) goto LA3;
		LOC5 = 0;
		LOC5 = rawNewString(tnl_173654->Sup.len + 19);
appendString(LOC5, ((NimStringDesc*) &TMP4524));
appendString(LOC5, tnl_173654);
		result = rope_175322(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, writetypecache_509184)(Tidtable224859 a, NimStringDesc** s) {
	NI i;
	i = ((NI) 0);
	{
		NI id_509190;
		TNimObject* value_509191;
		id_509190 = 0;
		value_509191 = 0;
		{
			NI i_509205;
			NI HEX3Atmp_509207;
			NI res_509209;
			i_509205 = 0;
			HEX3Atmp_509207 = 0;
			HEX3Atmp_509207 = (a.data ? (a.data->Sup.len-1) : -1);
			res_509209 = ((NI) 0);
			{
				while (1) {
					if (!(res_509209 <= HEX3Atmp_509207)) goto LA4;
					i_509205 = res_509209;
					{
						NimStringDesc* LOC14;
						if (!!((a.data->data[i_509205].key == NIM_NIL))) goto LA7;
						id_509190 = (*a.data->data[i_509205].key).id;
						value_509191 = a.data->data[i_509205].val;
						{
							if (!(i == ((NI) 10))) goto LA11;
							i = ((NI) 0);
							(*s) = resizeString((*s), tnl_173654->Sup.len + 0);
appendString((*s), tnl_173654);
						}
						goto LA9;
						LA11: ;
						{
							(*s) = addChar((*s), 32);
						}
						LA9: ;
						encodevint_231294(id_509190, s);
						(*s) = addChar((*s), 58);
						LOC14 = 0;
						LOC14 = HEX24_176132(((Ropeobj175009*) (value_509191)));
						encodestr_231039(LOC14, s);
						i += ((NI) 1);
					}
					LA7: ;
					res_509209 += ((NI) 1);
				} LA4: ;
			}
		}
	}
	(*s) = addChar((*s), 125);
}

N_NIMCALL(void, writeintset_509230)(Intset221056* a, NimStringDesc** s) {
	NI i;
	i = ((NI) 0);
	{
		NI x_509236;
		Trunk221052* r_509251;
		x_509236 = 0;
		r_509251 = (*a).head;
		{
			while (1) {
				NI i_509253;
				if (!!((r_509251 == NIM_NIL))) goto LA3;
				i_509253 = ((NI) 0);
				{
					while (1) {
						NI w_509255;
						NI j_509257;
						if (!(i_509253 <= ((NI) 7))) goto LA5;
						w_509255 = (*r_509251).bits[(i_509253)- 0];
						j_509257 = ((NI) 0);
						{
							while (1) {
								if (!!((w_509255 == ((NI) 0)))) goto LA7;
								{
									if (!!((((NI) ((NI)(w_509255 & ((NI) 1)))) == ((NI) 0)))) goto LA10;
									x_509236 = (NI)((NI)((NU64)((*r_509251).key) << (NU64)(((NI) 9))) | (NI)((NU64)((NI)((NU64)(i_509253) << (NU64)(((NI) 6)))) + (NU64)(j_509257)));
									{
										if (!(i == ((NI) 10))) goto LA14;
										i = ((NI) 0);
										(*s) = resizeString((*s), tnl_173654->Sup.len + 0);
appendString((*s), tnl_173654);
									}
									goto LA12;
									LA14: ;
									{
										(*s) = addChar((*s), 32);
									}
									LA12: ;
									encodevint_231294(x_509236, s);
									i += ((NI) 1);
								}
								LA10: ;
								j_509257 += ((NI) 1);
								w_509255 = (NI)((NU64)(w_509255) >> (NU64)(((NI) 1)));
							} LA7: ;
						}
						i_509253 += ((NI) 1);
					} LA5: ;
				}
				r_509251 = (*r_509251).next;
			} LA3: ;
		}
	}
	(*s) = addChar((*s), 125);
}

N_NIMCALL(Ropeobj175009*, genmergeinfo_509285)(Tcgen508038* m) {
	Ropeobj175009* result;
	NimStringDesc* s;
{	result = 0;
	{
		if (!!(((gglobaloptions_166132 &(1<<((((NU8) 14))&31)))!=0))) goto LA3;
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	s = copyString(((NimStringDesc*) &TMP4560));
	s = resizeString(s, tnl_173654->Sup.len + 0);
appendString(s, tnl_173654);
	s = resizeString(s, 11);
appendString(s, ((NimStringDesc*) &TMP4561));
	writetypecache_509184((*m).typecache, (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4562));
	writeintset_509230((&(*m).declaredthings), (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4563));
	writeintset_509230((&(*m).typeinfomarker), (&s));
	s = resizeString(s, 7);
appendString(s, ((NimStringDesc*) &TMP4564));
	encodevint_231294(((NI) ((*m).labels)), (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4565));
	encodevint_231294(((NI) ((*m).framedeclared)), (&s));
	s = resizeString(s, tnl_173654->Sup.len + 0);
appendString(s, tnl_173654);
	s = resizeString(s, 2);
appendString(s, ((NimStringDesc*) &TMP4566));
	result = rope_175322(s);
	}BeforeRet: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_ccgmergeInit000)(void) {
}

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

