/* Generated by Nim Compiler v0.10.2 */
/*   (c) 2014 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 32
#include "nimbase.h"

#include <string.h>

#include <stdio.h>
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tcgen548035 tcgen548035;
typedef struct tllstream210204 tllstream210204;
typedef struct tbaselexer212024 tbaselexer212024;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct tidtable224864 tidtable224864;
typedef struct tidobj199015 tidobj199015;
typedef struct ttype224852 ttype224852;
typedef struct ttypeseq224848 ttypeseq224848;
typedef struct tnode224816 tnode224816;
typedef struct tsym224846 tsym224846;
typedef struct tloc224830 tloc224830;
typedef struct trope176009 trope176009;
typedef struct tpasscontext285005 tpasscontext285005;
typedef struct tidpairseq224862 tidpairseq224862;
typedef struct tidpair224860 tidpair224860;
typedef struct intset221056 intset221056;
typedef struct ttrunk221052 ttrunk221052;
typedef struct ttrunkseq221054 ttrunkseq221054;
typedef struct tlinkedlist126028 tlinkedlist126028;
typedef struct tlistentry126022 tlistentry126022;
typedef struct tcproc548031 tcproc548031;
typedef struct tnodetable224876 tnodetable224876;
typedef struct tnodepairseq224874 tnodepairseq224874;
typedef struct tnodepair224872 tnodepair224872;
typedef struct tsymseq224818 tsymseq224818;
typedef struct tnodeseq224810 tnodeseq224810;
typedef struct TY194552 TY194552;
typedef struct TY548102 TY548102;
typedef struct tblock548029 tblock548029;
typedef struct tmergesections549861 tmergesections549861;
typedef struct tcell44935 tcell44935;
typedef struct tcellseq44951 tcellseq44951;
typedef struct tgcheap47016 tgcheap47016;
typedef struct tcellset44947 tcellset44947;
typedef struct tpagedesc44943 tpagedesc44943;
typedef struct tmemregion27210 tmemregion27210;
typedef struct tsmallchunk26440 tsmallchunk26440;
typedef struct tllchunk27204 tllchunk27204;
typedef struct tbigchunk26442 tbigchunk26442;
typedef struct tintset26417 tintset26417;
typedef struct ttrunk26413 ttrunk26413;
typedef struct tavlnode27208 tavlnode27208;
typedef struct tgcstat47014 tgcstat47014;
typedef struct tlineinfo194539 tlineinfo194539;
typedef struct tident199021 tident199021;
typedef struct tscope224840 tscope224840;
typedef struct TY224947 TY224947;
typedef struct tinstantiation224836 tinstantiation224836;
typedef struct tstrtable224820 tstrtable224820;
typedef struct tlib224834 tlib224834;
typedef struct tbasechunk26438 tbasechunk26438;
typedef struct tfreecell26430 tfreecell26430;
typedef struct TY224936 TY224936;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef N_NIMCALL_PTR(void, TY3089) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3094) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3089 marker;
TY3094 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  tbaselexer212024  {
  TNimObject Sup;
NI Bufpos;
NCSTRING Buf;
NI Buflen;
tllstream210204* Stream;
NI Linenumber;
NI Sentinel;
NI Linestart;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  tidobj199015  {
  TNimObject Sup;
NI Id;
};
struct  tloc224830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype224852* T;
trope176009* R;
trope176009* Heaproot;
};
struct  ttype224852  {
  tidobj199015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq224848* Sons;
tnode224816* N;
tsym224846* Owner;
tsym224846* Sym;
tsym224846* Destructor;
tsym224846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc224830 Loc;
};
struct  tpasscontext285005  {
  TNimObject Sup;
NIM_BOOL Fromcache;
};
typedef trope176009* tcfilesections548019[18];
struct  tidpair224860  {
tidobj199015* Key;
TNimObject* Val;
};
struct  tidtable224864  {
NI Counter;
tidpairseq224862* Data;
};
struct  intset221056  {
NI Counter;
NI Max;
ttrunk221052* Head;
ttrunkseq221054* Data;
};
struct  tlinkedlist126028  {
tlistentry126022* Head;
tlistentry126022* Tail;
NI Counter;
};
struct  tnodepair224872  {
NI H;
tnode224816* Key;
NI Val;
};
struct  tnodetable224876  {
NI Counter;
tnodepairseq224874* Data;
};
typedef trope176009* TY548138[10];
struct  tcgen548035  {
  tpasscontext285005 Sup;
tsym224846* Module;
NimStringDesc* Filename;
tcfilesections548019 S;
NIM_BOOL Preventstacktrace;
NIM_BOOL Usesthreadvars;
NIM_BOOL Framedeclared;
NIM_BOOL Isheaderfile;
NIM_BOOL Includesstringh;
NIM_BOOL Objhaskidsvalid;
NimStringDesc* Cfilename;
tidtable224864 Typecache;
tidtable224864 Forwtypecache;
intset221056 Declaredthings;
intset221056 Declaredprotos;
tlinkedlist126028 Headerfiles;
intset221056 Typeinfomarker;
tcproc548031* Initproc;
tcproc548031* Postinitproc;
tcproc548031* Preinitproc;
ttypeseq224848* Typestack;
tnodetable224876 Datacache;
tsymseq224818* Forwardedprocs;
NI Typenodes;
NI Nimtypes;
trope176009* Typenodesname;
trope176009* Nimtypesname;
NI Labels;
TY548138 Extensionloaders;
trope176009* Injectstmt;
};
typedef trope176009* tcprocsections548023[3];
struct  tblock548029  {
NI Id;
trope176009* Label;
tcprocsections548023 Sections;
NIM_BOOL Isloop;
NI16 Nestedtrystmts;
NI16 Nestedexceptstmts;
NI16 Framelen;
};
struct  tcproc548031  {
tsym224846* Prc;
NIM_BOOL Beforeretneeded;
NIM_BOOL Threadvaraccessed;
tnodeseq224810* Nestedtrystmts;
NI Inexceptblock;
TY194552* Finallysafepoints;
NI Labels;
TY548102* Blocks;
NI Breakidx;
NU32 Options;
NI Maxframelen;
tcgen548035* Module;
NI Withinloop;
NI Gcframeid;
trope176009* Gcframetype;
};
struct  tmergesections549861  {
tcfilesections548019 F;
tcprocsections548023 P;
};
typedef NimStringDesc* TY549013[18];
typedef NimStringDesc* TY549019[3];
struct  tcell44935  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq44951  {
NI Len;
NI Cap;
tcell44935** D;
};
struct  tcellset44947  {
NI Counter;
NI Max;
tpagedesc44943* Head;
tpagedesc44943** Data;
};
typedef tsmallchunk26440* TY27222[512];
typedef ttrunk26413* ttrunkbuckets26415[256];
struct  tintset26417  {
ttrunkbuckets26415 Data;
};
struct  tmemregion27210  {
NI Minlargeobj;
NI Maxlargeobj;
TY27222 Freesmallchunks;
tllchunk27204* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26442* Freechunkslist;
tintset26417 Chunkstarts;
tavlnode27208* Root;
tavlnode27208* Deleted;
tavlnode27208* Last;
tavlnode27208* Freeavlnodes;
};
struct  tgcstat47014  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47016  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq44951 Zct;
tcellseq44951 Decstack;
tcellset44947 Cycleroots;
tcellseq44951 Tempstack;
NI Recgclock;
tmemregion27210 Region;
tgcstat47014 Stat;
};
typedef NI TY26420[16];
struct  ttrunk221052  {
ttrunk221052* Next;
NI Key;
TY26420 Bits;
};
struct  tllstream210204  {
  TNimObject Sup;
NU8 Kind;
FILE* F;
NimStringDesc* S;
NI Rd;
NI Wr;
NI Lineoffset;
};
struct  tlineinfo194539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  tnode224816  {
ttype224852* Typ;
tlineinfo194539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym224846* Sym;
} S4;
struct {tident199021* Ident;
} S5;
struct {tnodeseq224810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
struct  tstrtable224820  {
NI Counter;
tsymseq224818* Data;
};
struct  tsym224846  {
  tidobj199015 Sup;
NU8 Kind;
union {
struct {ttypeseq224848* Typeinstcache;
tscope224840* Typscope;
} S1;
struct {TY224947* Procinstcache;
tscope224840* Scope;
} S2;
struct {TY224947* Usedgenerics;
tstrtable224820 Tab;
} S3;
struct {tsym224846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype224852* Typ;
tident199021* Name;
tlineinfo194539 Info;
tsym224846* Owner;
NU32 Flags;
tnode224816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc224830 Loc;
tlib224834* Annex;
tnode224816* Constraint;
};
struct  trope176009  {
  TNimObject Sup;
trope176009* Left;
trope176009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tlistentry126022  {
  TNimObject Sup;
tlistentry126022* Prev;
tlistentry126022* Next;
};
struct  tpagedesc44943  {
tpagedesc44943* Next;
NI Key;
TY26420 Bits;
};
struct  tbasechunk26438  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26440  {
  tbasechunk26438 Sup;
tsmallchunk26440* Next;
tsmallchunk26440* Prev;
tfreecell26430* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27204  {
NI Size;
NI Acc;
tllchunk27204* Next;
};
struct  tbigchunk26442  {
  tbasechunk26438 Sup;
tbigchunk26442* Next;
tbigchunk26442* Prev;
NI Align;
NF Data;
};
struct  ttrunk26413  {
ttrunk26413* Next;
NI Key;
TY26420 Bits;
};
typedef tavlnode27208* TY27214[2];
struct  tavlnode27208  {
TY27214 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  tident199021  {
  tidobj199015 Sup;
NimStringDesc* S;
tident199021* Next;
NI H;
};
struct  tscope224840  {
NI Depthlevel;
tstrtable224820 Symbols;
tnodeseq224810* Usingsyms;
tscope224840* Parent;
};
struct  tinstantiation224836  {
tsym224846* Sym;
ttypeseq224848* Concretetypes;
TY224936* Usedby;
};
struct  tlib224834  {
  tlistentry126022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope176009* Name;
tnode224816* Path;
};
struct  tfreecell26430  {
tfreecell26430* Next;
NI Zerofield;
};
struct ttypeseq224848 {
  TGenericSeq Sup;
  ttype224852* data[SEQ_DECL_SIZE];
};
struct tidpairseq224862 {
  TGenericSeq Sup;
  tidpair224860 data[SEQ_DECL_SIZE];
};
struct ttrunkseq221054 {
  TGenericSeq Sup;
  ttrunk221052* data[SEQ_DECL_SIZE];
};
struct tnodepairseq224874 {
  TGenericSeq Sup;
  tnodepair224872 data[SEQ_DECL_SIZE];
};
struct tsymseq224818 {
  TGenericSeq Sup;
  tsym224846* data[SEQ_DECL_SIZE];
};
struct tnodeseq224810 {
  TGenericSeq Sup;
  tnode224816* data[SEQ_DECL_SIZE];
};
struct TY194552 {
  TGenericSeq Sup;
  trope176009* data[SEQ_DECL_SIZE];
};
struct TY548102 {
  TGenericSeq Sup;
  tblock548029 data[SEQ_DECL_SIZE];
};
struct TY224947 {
  TGenericSeq Sup;
  tinstantiation224836* data[SEQ_DECL_SIZE];
};
struct TY224936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(tllstream210204*, llstreamopen_210233)(NimStringDesc* filename, NU8 mode);
N_NIMCALL(void, openbaselexer_212035)(tbaselexer212024* l, tllstream210204* inputstream, NI buflen);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_NIMCALL(void, skipuntilcmd_549402)(tbaselexer212024* l);
N_NIMCALL(NI, handlecr_212066)(tbaselexer212024* l, NI pos);
N_NIMCALL(NI, handlelf_212074)(tbaselexer212024* l, NI pos);
N_NIMCALL(void, readkey_549535)(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_197006)(NimStringDesc* errmsg);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(void, processmergeinfo_549711)(tbaselexer212024* l, tcgen548035* m);
N_NIMCALL(void, skipwhite_549372)(tbaselexer212024* l);
N_NIMCALL(void, readtypecache_549607)(tbaselexer212024* l, tidtable224864* result);
N_NIMCALL(NI, decodevint_233359)(NCSTRING s, NI* pos);
N_NIMCALL(NimStringDesc*, decodestr_233155)(NCSTRING s, NI* pos);
N_NIMCALL(void, idtableput_234196)(tidtable224864* t, tidobj199015* key, TNimObject* val);
N_NIMCALL(ttype224852*, newfaketype_549581)(NI id);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(trope176009*, torope_176076)(NimStringDesc* s);
N_NIMCALL(void, readintset_549666)(tbaselexer212024* l, intset221056* result);
N_NIMCALL(void, incl_221869)(intset221056* s, NI key);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(void, closebaselexer_212045)(tbaselexer212024* l);
static N_INLINE(trope176009**, s_548183)(tcproc548031* p, NU8 s);
N_NIMCALL(void, readmergesections_549867)(NimStringDesc* cfilename, tmergesections549861* m);
N_NIMCALL(trope176009*, readverbatimsection_549489)(tbaselexer212024* l);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(NIM_BOOL, atendmark_549456)(NCSTRING buf, NI pos);
static N_INLINE(NI, find_549914)(TY549013 a_549919, NimStringDesc* item_549921);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
static N_INLINE(NI, find_550017)(TY549019 a_550022, NimStringDesc* item_550024);
N_NIMCALL(trope176009*, con_176024)(trope176009* a, trope176009* b);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(tcell44935*, usrtocell_48646)(void* usr);
static N_INLINE(void, rtladdzct_50204)(tcell44935* c);
N_NOINLINE(void, addzct_48617)(tcellseq44951* s, tcell44935* c);
N_NIMCALL(void, app_176060)(trope176009** a, NimStringDesc* b);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(void, writetypecache_549224)(tidtable224864 a, NimStringDesc** s);
N_NIMCALL(void, encodevint_233304)(NI x, NimStringDesc** result);
N_NIMCALL(void, encodestr_233042)(NimStringDesc* s, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, ropetostr_176101)(trope176009* p);
N_NIMCALL(void, writeintset_549271)(intset221056 a, NimStringDesc** s);
STRING_LITERAL(TMP4062, "ccgmerge: \':\' expected", 22);
STRING_LITERAL(TMP4063, "NIM_merge_INFO", 14);
STRING_LITERAL(TMP4064, "typeCache", 9);
STRING_LITERAL(TMP4065, "declared", 8);
STRING_LITERAL(TMP4066, "typeInfo", 8);
STRING_LITERAL(TMP4067, "labels", 6);
STRING_LITERAL(TMP4068, "hasframe", 8);
STRING_LITERAL(TMP4069, "ccgmerge: \'{\' expected", 22);
STRING_LITERAL(TMP4070, "ccgmerge: unkown key: ", 22);
STRING_LITERAL(TMP4141, "ccgmerge: expected: /*\011NIM_merge_END:*/", 39);
STRING_LITERAL(TMP4142, "/*\011NIM_merge_END:*/", 19);
STRING_LITERAL(TMP4143, "", 0);
STRING_LITERAL(TMP4144, "NIM_merge_HEADERS", 17);
STRING_LITERAL(TMP4145, "NIM_merge_FORWARD_TYPES", 23);
STRING_LITERAL(TMP4146, "NIM_merge_TYPES", 15);
STRING_LITERAL(TMP4147, "NIM_merge_SEQ_TYPES", 19);
STRING_LITERAL(TMP4148, "NIM_merge_FIELD_INFO", 20);
STRING_LITERAL(TMP4149, "NIM_merge_TYPE_INFO", 19);
STRING_LITERAL(TMP4150, "NIM_merge_PROC_HEADERS", 22);
STRING_LITERAL(TMP4151, "NIM_merge_DATA", 14);
STRING_LITERAL(TMP4152, "NIM_merge_VARS", 14);
STRING_LITERAL(TMP4153, "NIM_merge_PROCS", 15);
STRING_LITERAL(TMP4154, "NIM_merge_INIT_PROC", 19);
STRING_LITERAL(TMP4155, "NIM_merge_TYPE_INIT1", 20);
STRING_LITERAL(TMP4156, "NIM_merge_TYPE_INIT2", 20);
STRING_LITERAL(TMP4157, "NIM_merge_TYPE_INIT3", 20);
STRING_LITERAL(TMP4158, "NIM_merge_DEBUG_INIT", 20);
STRING_LITERAL(TMP4159, "NIM_merge_DYNLIB_INIT", 21);
STRING_LITERAL(TMP4160, "NIM_merge_DYNLIB_DEINIT", 23);
NIM_CONST TY549013 cfilesectionnames_549012 = {((NimStringDesc*) &TMP4143),
((NimStringDesc*) &TMP4144),
((NimStringDesc*) &TMP4145),
((NimStringDesc*) &TMP4146),
((NimStringDesc*) &TMP4147),
((NimStringDesc*) &TMP4148),
((NimStringDesc*) &TMP4149),
((NimStringDesc*) &TMP4150),
((NimStringDesc*) &TMP4151),
((NimStringDesc*) &TMP4152),
((NimStringDesc*) &TMP4153),
((NimStringDesc*) &TMP4154),
((NimStringDesc*) &TMP4155),
((NimStringDesc*) &TMP4156),
((NimStringDesc*) &TMP4157),
((NimStringDesc*) &TMP4158),
((NimStringDesc*) &TMP4159),
((NimStringDesc*) &TMP4160)}
;
STRING_LITERAL(TMP4161, "NIM_merge_PROC_LOCALS", 21);
STRING_LITERAL(TMP4162, "NIM_merge_PROC_INIT", 19);
STRING_LITERAL(TMP4163, "NIM_merge_PROC_BODY", 19);
NIM_CONST TY549019 cprocsectionnames_549018 = {((NimStringDesc*) &TMP4161),
((NimStringDesc*) &TMP4162),
((NimStringDesc*) &TMP4163)}
;
STRING_LITERAL(TMP4164, "ccgmerge: unknown section: ", 27);
STRING_LITERAL(TMP4165, "ccgmerge: \'*/\' expected", 23);
STRING_LITERAL(TMP4170, "/*\011", 3);
STRING_LITERAL(TMP4171, ":*/", 3);
STRING_LITERAL(TMP4181, "/*\011NIM_merge_INFO:", 18);
STRING_LITERAL(TMP4182, "typeCache:{", 11);
STRING_LITERAL(TMP4183, "declared:{", 10);
STRING_LITERAL(TMP4184, "typeInfo:{", 10);
STRING_LITERAL(TMP4185, "labels:", 7);
STRING_LITERAL(TMP4186, " hasframe:", 10);
STRING_LITERAL(TMP4187, "*/", 2);
extern TNimType NTI212024; /* TBaseLexer */
extern TNimType NTI224812; /* PType */
extern TNimType NTI224852; /* TType */
extern NimStringDesc* tnl_173613;
extern tgcheap47016 gch_47044;
extern NU32 gglobaloptions_168118;

N_NIMCALL(void, skipuntilcmd_549402)(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[(NI32)(pos + 1)]) == (NU8)(42));
					if (!(LOC9)) goto LA10;
					LOC9 = ((NU8)((*l).Buf[(NI32)(pos + 2)]) == (NU8)(9));
					LA10: ;
					if (!LOC9) goto LA11;
					pos += 3;
					goto LA1;
				}
				LA11: ;
				pos += 1;
			}
			break;
			default:
			{
				pos += 1;
			}
			break;
			}
		}
	} LA1: ;
	(*l).Bufpos = pos;
}

N_NIMCALL(void, readkey_549535)(tbaselexer212024* l, NimStringDesc** result) {
	NI pos;
	NCSTRING buf;
	pos = (*l).Bufpos;
	buf = (*l).Buf;
	(*result) = setLengthStr((*result), 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 += 1;
		} LA2: ;
	}
	{
		if (!!(((NU8)(buf[pos]) == (NU8)(58)))) goto LA5;
		internalerror_197006(((NimStringDesc*) &TMP4062));
	}
	LA5: ;
	(*l).Bufpos = (NI32)(pos + 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)), (NI32)((*a).Sup.len * 1));
	LOC11 = (LOC13 == ((NI32) 0));
	LA12: ;
	result = LOC11;
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, skipwhite_549372)(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 += 1;
			}
			break;
			default:
			{
				goto LA1;
			}
			break;
			}
		}
	} LA1: ;
	(*l).Bufpos = pos;
}

N_NIMCALL(ttype224852*, newfaketype_549581)(NI id) {
	ttype224852* result;
	result = 0;
	result = (ttype224852*) newObj((&NTI224812), sizeof(ttype224852));
	(*result).Sup.Sup.m_type = (&NTI224852);
	(*result).Sup.Id = id;
	return result;
}

N_NIMCALL(void, readtypecache_549607)(tbaselexer212024* l, tidtable224864* result) {
	{
		if (!!(((NU8)((*l).Buf[(*l).Bufpos]) == (NU8)(123)))) goto LA3;
		internalerror_197006(((NimStringDesc*) &TMP4069));
	}
	LA3: ;
	(*l).Bufpos += 1;
	{
		while (1) {
			NI key;
			NimStringDesc* value;
			ttype224852* LOC11;
			tidobj199015* LOC12;
			trope176009* LOC13;
			TNimObject* LOC14;
			if (!!(((NU8)((*l).Buf[(*l).Bufpos]) == (NU8)(125)))) goto LA6;
			skipwhite_549372(l);
			key = decodevint_233359((*l).Buf, (&(*l).Bufpos));
			{
				if (!!(((NU8)((*l).Buf[(*l).Bufpos]) == (NU8)(58)))) goto LA9;
				internalerror_197006(((NimStringDesc*) &TMP4062));
			}
			LA9: ;
			(*l).Bufpos += 1;
			value = decodestr_233155((*l).Buf, (&(*l).Bufpos));
			LOC11 = 0;
			LOC11 = newfaketype_549581(key);
			LOC12 = 0;
			LOC12 = &LOC11->Sup;
			LOC13 = 0;
			LOC13 = torope_176076(value);
			LOC14 = 0;
			LOC14 = &LOC13->Sup;
			idtableput_234196(result, LOC12, LOC14);
		} LA6: ;
	}
	(*l).Bufpos += 1;
}

N_NIMCALL(void, readintset_549666)(tbaselexer212024* l, intset221056* result) {
	{
		if (!!(((NU8)((*l).Buf[(*l).Bufpos]) == (NU8)(123)))) goto LA3;
		internalerror_197006(((NimStringDesc*) &TMP4069));
	}
	LA3: ;
	(*l).Bufpos += 1;
	{
		while (1) {
			NI key;
			if (!!(((NU8)((*l).Buf[(*l).Bufpos]) == (NU8)(125)))) goto LA6;
			skipwhite_549372(l);
			key = decodevint_233359((*l).Buf, (&(*l).Bufpos));
			incl_221869(result, key);
		} LA6: ;
	}
	(*l).Bufpos += 1;
}

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

N_NIMCALL(void, processmergeinfo_549711)(tbaselexer212024* l, tcgen548035* m) {
	NimStringDesc* k;
	k = rawNewString(9);
	{
		while (1) {
			skipwhite_549372(l);
			{
				NIM_BOOL LOC5;
				LOC5 = 0;
				LOC5 = ((NU8)((*l).Buf[(*l).Bufpos]) == (NU8)(42));
				if (!(LOC5)) goto LA6;
				LOC5 = ((NU8)((*l).Buf[(NI32)((*l).Bufpos + 1)]) == (NU8)(47));
				LA6: ;
				if (!LOC5) goto LA7;
				(*l).Bufpos += 2;
				goto LA1;
			}
			LA7: ;
			readkey_549535(l, (&k));
			if (eqStrings(k, ((NimStringDesc*) &TMP4064))) goto LA9;
			if (eqStrings(k, ((NimStringDesc*) &TMP4065))) goto LA10;
			if (eqStrings(k, ((NimStringDesc*) &TMP4066))) goto LA11;
			if (eqStrings(k, ((NimStringDesc*) &TMP4067))) goto LA12;
			if (eqStrings(k, ((NimStringDesc*) &TMP4068))) goto LA13;
			goto LA14;
			LA9: ;
			{
				readtypecache_549607(l, (&(*m).Typecache));
			}
			goto LA15;
			LA10: ;
			{
				readintset_549666(l, (&(*m).Declaredthings));
			}
			goto LA15;
			LA11: ;
			{
				readintset_549666(l, (&(*m).Typeinfomarker));
			}
			goto LA15;
			LA12: ;
			{
				NI LOC20;
				LOC20 = 0;
				LOC20 = decodevint_233359((*l).Buf, (&(*l).Bufpos));
				(*m).Labels = ((NI) (LOC20));
			}
			goto LA15;
			LA13: ;
			{
				NI LOC22;
				LOC22 = 0;
				LOC22 = decodevint_233359((*l).Buf, (&(*l).Bufpos));
				(*m).Framedeclared = !((LOC22 == 0));
			}
			goto LA15;
			LA14: ;
			{
				NimStringDesc* LOC24;
				LOC24 = 0;
				LOC24 = rawNewString(k->Sup.len + 22);
appendString(LOC24, ((NimStringDesc*) &TMP4070));
appendString(LOC24, k);
				internalerror_197006(LOC24);
			}
			LA15: ;
		}
	} LA1: ;
}

N_NIMCALL(void, readmergeinfo_549815)(NimStringDesc* cfilename, tcgen548035* m) {
	tllstream210204* s_549820;
	tbaselexer212024 l;
	NimStringDesc* k;
	s_549820 = llstreamopen_210233(cfilename, ((NU8) 0));
	{
		if (!(s_549820 == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&l), 0, sizeof(l));
	l.Sup.m_type = (&NTI212024);
	openbaselexer_212035((&l), s_549820, 8192);
	k = rawNewString(23);
	{
		while (1) {
			skipuntilcmd_549402((&l));
			{
				if (!((NU8)(l.Buf[l.Bufpos]) == (NU8)(0))) goto LA9;
				goto LA5;
			}
			LA9: ;
			readkey_549535((&l), (&k));
			{
				if (!eqStrings(k, ((NimStringDesc*) &TMP4063))) goto LA13;
				processmergeinfo_549711((&l), m);
				goto LA5;
			}
			LA13: ;
		}
	} LA5: ;
	closebaselexer_212045((&l));
	BeforeRet: ;
}

static N_INLINE(trope176009**, s_548183)(tcproc548031* p, NU8 s) {
	trope176009** result;
	result = 0;
	result = &(*p).Blocks->data[(NI32)((*p).Blocks->Sup.len - 1)].Sections[(s)- 0];
	return result;
}

N_NIMCALL(NIM_BOOL, mergerequired_550137)(tcgen548035* m) {
	NIM_BOOL result;
	result = 0;
	{
		NU8 i_550185;
		NU8 res_550270;
		i_550185 = 0;
		res_550270 = ((NU8) 1);
		{
			while (1) {
				if (!(res_550270 <= ((NU8) 10))) goto LA3;
				i_550185 = res_550270;
				{
					if (!!(((*m).S[(i_550185)- 0] == NIM_NIL))) goto LA6;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA6: ;
				res_550270 += 1;
			} LA3: ;
		}
	}
	{
		NU8 i_550249;
		NU8 res_550277;
		i_550249 = 0;
		res_550277 = ((NU8) 0);
		{
			while (1) {
				if (!(res_550277 <= ((NU8) 2))) goto LA10;
				i_550249 = res_550277;
				{
					trope176009** LOC13;
					LOC13 = 0;
					LOC13 = s_548183((*m).Initproc, i_550249);
					if (!!(((*LOC13) == NIM_NIL))) goto LA14;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA14: ;
				res_550277 += 1;
			} LA10: ;
		}
	}
	BeforeRet: ;
	return result;
}

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

N_NIMCALL(trope176009*, readverbatimsection_549489)(tbaselexer212024* l) {
	trope176009* result;
	NI pos;
	NCSTRING buf;
	NimStringDesc* r;
	result = 0;
	pos = (*l).Bufpos;
	buf = (*l).Buf;
	r = rawNewString(30000);
	{
		while (1) {
			switch (((NU8)(buf[pos]))) {
			case 13:
			{
				pos = handlecr_212066(l, pos);
				buf = (*l).Buf;
				r = resizeString(r, tnl_173613->Sup.len + 0);
appendString(r, tnl_173613);
			}
			break;
			case 10:
			{
				pos = handlelf_212074(l, pos);
				buf = (*l).Buf;
				r = resizeString(r, tnl_173613->Sup.len + 0);
appendString(r, tnl_173613);
			}
			break;
			case 0:
			{
				internalerror_197006(((NimStringDesc*) &TMP4141));
				goto LA1;
			}
			break;
			default:
			{
				{
					NIM_BOOL LOC9;
					LOC9 = 0;
					LOC9 = atendmark_549456(buf, pos);
					if (!LOC9) goto LA10;
					pos += 19;
					goto LA1;
				}
				LA10: ;
				r = addChar(r, buf[pos]);
				pos += 1;
			}
			break;
			}
		}
	} LA1: ;
	(*l).Bufpos = pos;
	result = torope_176076(r);
	return result;
}

static N_INLINE(NI, find_549914)(TY549013 a_549919, NimStringDesc* item_549921) {
	NI result;
	result = 0;
	{
		NimStringDesc* i_549983;
		NU8 i_549999;
		i_549983 = 0;
		i_549999 = ((NU8) 0);
		{
			if (!(i_549999 <= ((NU8) 17))) goto LA4;
			{
				while (1) {
					i_549983 = a_549919[(i_549999)- 0];
					{
						if (!eqStrings(i_549983, item_549921)) goto LA10;
						goto BeforeRet;
					}
					LA10: ;
					result += 1;
					{
						if (!(((NU8) 17) <= i_549999)) goto LA14;
						goto LA6;
					}
					LA14: ;
					i_549999 += 1;
				}
			} LA6: ;
		}
		LA4: ;
	}
	result = -1;
	BeforeRet: ;
	return result;
}

static N_INLINE(NI, find_550017)(TY549019 a_550022, NimStringDesc* item_550024) {
	NI result;
	result = 0;
	{
		NimStringDesc* i_550086;
		NU8 i_550102;
		i_550086 = 0;
		i_550102 = ((NU8) 0);
		{
			if (!(i_550102 <= ((NU8) 2))) goto LA4;
			{
				while (1) {
					i_550086 = a_550022[(i_550102)- 0];
					{
						if (!eqStrings(i_550086, item_550024)) goto LA10;
						goto BeforeRet;
					}
					LA10: ;
					result += 1;
					{
						if (!(((NU8) 2) <= i_550102)) goto LA14;
						goto LA6;
					}
					LA14: ;
					i_550102 += 1;
				}
			} LA6: ;
		}
		LA4: ;
	}
	result = -1;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, readmergesections_549867)(NimStringDesc* cfilename, tmergesections549861* m) {
	tllstream210204* s_549873;
	tbaselexer212024 l;
	NimStringDesc* k;
	s_549873 = llstreamopen_210233(cfilename, ((NU8) 0));
	{
		if (!(s_549873 == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&l), 0, sizeof(l));
	l.Sup.m_type = (&NTI212024);
	openbaselexer_212035((&l), s_549873, 8192);
	k = rawNewString(23);
	{
		while (1) {
			skipuntilcmd_549402((&l));
			{
				if (!((NU8)(l.Buf[l.Bufpos]) == (NU8)(0))) goto LA9;
				goto LA5;
			}
			LA9: ;
			readkey_549535((&l), (&k));
			{
				if (!eqStrings(k, ((NimStringDesc*) &TMP4063))) goto LA13;
			}
			goto LA11;
			LA13: ;
			{
				NIM_BOOL LOC16;
				trope176009* verbatim;
				NI sectiona;
				LOC16 = 0;
				LOC16 = ((NU8)(l.Buf[l.Bufpos]) == (NU8)(42));
				if (!(LOC16)) goto LA17;
				LOC16 = ((NU8)(l.Buf[(NI32)(l.Bufpos + 1)]) == (NU8)(47));
				LA17: ;
				if (!LOC16) goto LA18;
				l.Bufpos += 2;
				skipwhite_549372((&l));
				verbatim = readverbatimsection_549489((&l));
				skipwhite_549372((&l));
				sectiona = find_549914(cfilesectionnames_549012, k);
				{
					NIM_BOOL LOC22;
					LOC22 = 0;
					LOC22 = (0 < sectiona);
					if (!(LOC22)) goto LA23;
					LOC22 = (sectiona <= 17);
					LA23: ;
					if (!LOC22) goto LA24;
					unsureAsgnRef((void**) (&(*m).F[(sectiona)- 0]), verbatim);
				}
				goto LA20;
				LA24: ;
				{
					NI sectionb;
					sectionb = find_550017(cprocsectionnames_549018, k);
					{
						NIM_BOOL LOC29;
						LOC29 = 0;
						LOC29 = (0 <= sectionb);
						if (!(LOC29)) goto LA30;
						LOC29 = (sectionb <= 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*) &TMP4164));
appendString(LOC34, k);
						internalerror_197006(LOC34);
					}
					LA27: ;
				}
				LA20: ;
			}
			goto LA11;
			LA18: ;
			{
				internalerror_197006(((NimStringDesc*) &TMP4165));
			}
			LA11: ;
		}
	} LA5: ;
	closebaselexer_212045((&l));
	BeforeRet: ;
}

static N_INLINE(tcell44935*, usrtocell_48646)(void* usr) {
	tcell44935* result;
	result = 0;
	result = ((tcell44935*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(tcell44935))))));
	return result;
}

static N_INLINE(void, rtladdzct_50204)(tcell44935* c) {
	addzct_48617((&gch_47044.Zct), c);
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		tcell44935* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_48646(src);
		(*c).Refcount += 8;
	}
	LA3: ;
	{
		tcell44935* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_48646((*dest));
		{
			(*c).Refcount -= 8;
			if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA11;
			rtladdzct_50204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(void, mergefiles_550303)(NimStringDesc* cfilename, tcgen548035* m) {
	tmergesections549861 old;
	memset((void*)(&old), 0, sizeof(old));
	readmergesections_549867(cfilename, (&old));
	{
		NU8 i_550321;
		NU8 res_550345;
		i_550321 = 0;
		res_550345 = ((NU8) 0);
		{
			while (1) {
				if (!(res_550345 <= ((NU8) 17))) goto LA3;
				i_550321 = res_550345;
				asgnRefNoCycle((void**) (&(*m).S[(i_550321)- 0]), con_176024(old.F[(i_550321)- 0], (*m).S[(i_550321)- 0]));
				res_550345 += 1;
			} LA3: ;
		}
	}
	{
		NU8 i_550336;
		NU8 res_550352;
		i_550336 = 0;
		res_550352 = ((NU8) 0);
		{
			while (1) {
				trope176009** LOC7;
				trope176009** LOC8;
				if (!(res_550352 <= ((NU8) 2))) goto LA6;
				i_550336 = res_550352;
				LOC7 = 0;
				LOC7 = s_548183((*m).Initproc, i_550336);
				LOC8 = 0;
				LOC8 = s_548183((*m).Initproc, i_550336);
				unsureAsgnRef((void**) (&(*LOC7)), con_176024(old.P[(i_550336)- 0], (*LOC8)));
				res_550352 += 1;
			} LA6: ;
		}
	}
}

N_NIMCALL(trope176009*, gensectionstart_549126)(NU8 ps) {
	trope176009* result;
	result = 0;
	{
		if (!!(((49152 & gglobaloptions_168118) == 0))) goto LA3;
		result = torope_176076(tnl_173613);
		app_176060(&result, ((NimStringDesc*) &TMP4170));
		app_176060(&result, cprocsectionnames_549018[(ps)- 0]);
		app_176060(&result, ((NimStringDesc*) &TMP4171));
		app_176060(&result, tnl_173613);
	}
	LA3: ;
	return result;
}

N_NIMCALL(trope176009*, gensectionend_549177)(NU8 ps) {
	trope176009* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!(((49152 & gglobaloptions_168118) == 0))) goto LA3;
		LOC5 = 0;
		LOC5 = rawNewString(tnl_173613->Sup.len + 19);
appendString(LOC5, ((NimStringDesc*) &TMP4142));
appendString(LOC5, tnl_173613);
		result = torope_176076(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(trope176009*, gensectionstart_549028)(NU8 fs) {
	trope176009* result;
	result = 0;
	{
		if (!!(((49152 & gglobaloptions_168118) == 0))) goto LA3;
		result = torope_176076(tnl_173613);
		app_176060(&result, ((NimStringDesc*) &TMP4170));
		app_176060(&result, cfilesectionnames_549012[(fs)- 0]);
		app_176060(&result, ((NimStringDesc*) &TMP4171));
		app_176060(&result, tnl_173613);
	}
	LA3: ;
	return result;
}

N_NIMCALL(trope176009*, gensectionend_549079)(NU8 fs) {
	trope176009* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		if (!!(((49152 & gglobaloptions_168118) == 0))) goto LA3;
		LOC5 = 0;
		LOC5 = rawNewString(tnl_173613->Sup.len + 19);
appendString(LOC5, ((NimStringDesc*) &TMP4142));
appendString(LOC5, tnl_173613);
		result = torope_176076(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, writetypecache_549224)(tidtable224864 a, NimStringDesc** s) {
	NI i;
	i = 0;
	{
		NI id_549230;
		TNimObject* value_549231;
		id_549230 = 0;
		value_549231 = 0;
		{
			NI i_549248;
			NI HEX3Atmp_549250;
			NI res_549252;
			i_549248 = 0;
			HEX3Atmp_549250 = 0;
			HEX3Atmp_549250 = (a.Data->Sup.len-1);
			res_549252 = 0;
			{
				while (1) {
					if (!(res_549252 <= HEX3Atmp_549250)) goto LA4;
					i_549248 = res_549252;
					{
						NimStringDesc* LOC14;
						if (!!((a.Data->data[i_549248].Key == NIM_NIL))) goto LA7;
						id_549230 = (*a.Data->data[i_549248].Key).Id;
						value_549231 = a.Data->data[i_549248].Val;
						{
							if (!(i == 10)) goto LA11;
							i = 0;
							(*s) = resizeString((*s), tnl_173613->Sup.len + 0);
appendString((*s), tnl_173613);
						}
						goto LA9;
						LA11: ;
						{
							(*s) = addChar((*s), 32);
						}
						LA9: ;
						encodevint_233304(id_549230, s);
						(*s) = addChar((*s), 58);
						LOC14 = 0;
						LOC14 = ropetostr_176101(((trope176009*) (value_549231)));
						encodestr_233042(LOC14, s);
						i += 1;
					}
					LA7: ;
					res_549252 += 1;
				} LA4: ;
			}
		}
	}
	(*s) = addChar((*s), 125);
}

N_NIMCALL(void, writeintset_549271)(intset221056 a, NimStringDesc** s) {
	NI i;
	i = 0;
	{
		NI x_549277;
		ttrunk221052* r_549295;
		x_549277 = 0;
		r_549295 = a.Head;
		{
			while (1) {
				NI i_549297;
				if (!!((r_549295 == NIM_NIL))) goto LA3;
				i_549297 = 0;
				{
					while (1) {
						NI w_549299;
						NI j_549301;
						if (!(i_549297 <= 15)) goto LA5;
						w_549299 = (*r_549295).Bits[(i_549297)- 0];
						j_549301 = 0;
						{
							while (1) {
								if (!!((w_549299 == 0))) goto LA7;
								{
									if (!!((((NI) ((NI)(w_549299 & 1))) == 0))) goto LA10;
									x_549277 = (NI)((NI)((NU32)((*r_549295).Key) << (NU32)(9)) | (NI)((NU32)((NI)((NU32)(i_549297) << (NU32)(5))) + (NU32)(j_549301)));
									{
										if (!(i == 10)) goto LA14;
										i = 0;
										(*s) = resizeString((*s), tnl_173613->Sup.len + 0);
appendString((*s), tnl_173613);
									}
									goto LA12;
									LA14: ;
									{
										(*s) = addChar((*s), 32);
									}
									LA12: ;
									encodevint_233304(x_549277, s);
									i += 1;
								}
								LA10: ;
								j_549301 += 1;
								w_549299 = (NI)((NU32)(w_549299) >> (NU32)(1));
							} LA7: ;
						}
						i_549297 += 1;
					} LA5: ;
				}
				r_549295 = (*r_549295).Next;
			} LA3: ;
		}
	}
	(*s) = addChar((*s), 125);
}

N_NIMCALL(trope176009*, genmergeinfo_549329)(tcgen548035* m) {
	trope176009* result;
	NimStringDesc* s;
	result = 0;
	{
		if (!!(((gglobaloptions_168118 &(1<<((((NU8) 14))&31)))!=0))) goto LA3;
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	s = copyString(((NimStringDesc*) &TMP4181));
	s = resizeString(s, tnl_173613->Sup.len + 0);
appendString(s, tnl_173613);
	s = resizeString(s, 11);
appendString(s, ((NimStringDesc*) &TMP4182));
	writetypecache_549224((*m).Typecache, (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4183));
	writeintset_549271((*m).Declaredthings, (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4184));
	writeintset_549271((*m).Typeinfomarker, (&s));
	s = resizeString(s, 7);
appendString(s, ((NimStringDesc*) &TMP4185));
	encodevint_233304(((NI) ((*m).Labels)), (&s));
	s = resizeString(s, 10);
appendString(s, ((NimStringDesc*) &TMP4186));
	encodevint_233304(((NI) ((*m).Framedeclared)), (&s));
	s = resizeString(s, tnl_173613->Sup.len + 0);
appendString(s, tnl_173613);
	s = resizeString(s, 2);
appendString(s, ((NimStringDesc*) &TMP4187));
	result = torope_176076(s);
	BeforeRet: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, HEX00_ccgmergeInit)(void) {
}

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

