/* Generated by Nim Compiler v0.12.0 */
/*   (c) 2015 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 Tpasscontext277005 Tpasscontext277005;
typedef struct Tsym225841 Tsym225841;
typedef struct Tidobj198015 Tidobj198015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Ttypeseq225843 Ttypeseq225843;
typedef struct Tscope225835 Tscope225835;
typedef struct TY225944 TY225944;
typedef struct Tstrtable225813 Tstrtable225813;
typedef struct Tsymseq225811 Tsymseq225811;
typedef struct Ttype225847 Ttype225847;
typedef struct Tident198021 Tident198021;
typedef struct Tlineinfo190352 Tlineinfo190352;
typedef struct Tnode225809 Tnode225809;
typedef struct Tloc225823 Tloc225823;
typedef struct Ropeobj176009 Ropeobj176009;
typedef struct Tlib225827 Tlib225827;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Trodwriter289005 Trodwriter289005;
typedef struct Tindex268028 Tindex268028;
typedef struct Tiitable233274 Tiitable233274;
typedef struct Tiipairseq233272 Tiipairseq233272;
typedef struct TY130408 TY130408;
typedef struct Cell48946 Cell48946;
typedef struct Cellseq48962 Cellseq48962;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48958 Cellset48958;
typedef struct Pagedesc48954 Pagedesc48954;
typedef struct Memregion30890 Memregion30890;
typedef struct Smallchunk30842 Smallchunk30842;
typedef struct Llchunk30884 Llchunk30884;
typedef struct Bigchunk30844 Bigchunk30844;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30888 Avlnode30888;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Stringtableobj145212 Stringtableobj145212;
typedef struct Keyvaluepairseq145210 Keyvaluepairseq145210;
typedef struct Keyvaluepair145208 Keyvaluepair145208;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct Tnodeseq225803 Tnodeseq225803;
typedef struct Tinstantiation225831 Tinstantiation225831;
typedef struct Tiipair233270 Tiipair233270;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct TY225932 TY225932;
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  Tidobj198015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable225813  {
NI counter;
Tsymseq225811* data;
};
struct  Tlineinfo190352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc225823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype225847* t;
Ropeobj176009* r;
Ropeobj176009* heaproot;
};
struct  Tsym225841  {
  Tidobj198015 Sup;
NU8 kind;
union{
struct {Ttypeseq225843* typeinstcache;
Tscope225835* typscope;
} S1;
struct {TY225944* procinstcache;
Tsym225841* gcunsafetyreason;
} S2;
struct {TY225944* usedgenerics;
Tstrtable225813 tab;
} S3;
struct {Tsym225841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype225847* typ;
Tident198021* name;
Tlineinfo190352 info;
Tsym225841* owner;
NU32 flags;
Tnode225809* ast;
NU32 options;
NI position;
NI offset;
Tloc225823 loc;
Tlib225827* annex;
Tnode225809* constraint;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 Sha1digest201009[20];
struct  Tpasscontext277005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Tiitable233274  {
NI counter;
Tiipairseq233272* data;
};
struct  Tindex268028  {
NI lastidxkey;
NI lastidxval;
Tiitable233274 tab;
NimStringDesc* r;
NI offset;
};
struct  Trodwriter289005  {
  Tpasscontext277005 Sup;
Tsym225841* module;
Sha1digest201009 hash;
NU32 options;
NimStringDesc* defines;
NimStringDesc* incldeps;
NimStringDesc* moddeps;
NimStringDesc* interf;
NimStringDesc* compilerprocs;
Tindex268028 index;
Tindex268028 imports;
NimStringDesc* converters;
NimStringDesc* methods;
NimStringDesc* init;
NimStringDesc* data;
Tsymseq225811* sstack;
Ttypeseq225843* tstack;
TY130408* files;
NimStringDesc* origfile;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Cell48946  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48962  {
NI len;
NI cap;
Cell48946** d;
};
struct  Cellset48958  {
NI counter;
NI max;
Pagedesc48954* head;
Pagedesc48954** data;
};
typedef Smallchunk30842* TY30905[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30890  {
NI minlargeobj;
NI maxlargeobj;
TY30905 freesmallchunks;
Llchunk30884* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30844* freechunkslist;
Intset30817 chunkstarts;
Avlnode30888* root;
Avlnode30888* deleted;
Avlnode30888* last;
Avlnode30888* 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;
Cellseq48962 zct;
Cellseq48962 decstack;
Cellset48958 cycleroots;
Cellseq48962 tempstack;
NI recgclock;
Memregion30890 region;
Gcstat51014 stat;
};
struct  Stringtableobj145212  {
  TNimObject Sup;
NI counter;
Keyvaluepairseq145210* data;
NU8 mode;
};
struct Keyvaluepair145208 {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
struct  Tident198021  {
  Tidobj198015 Sup;
NimStringDesc* s;
Tident198021* next;
NI h;
};
struct  Ttype225847  {
  Tidobj198015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq225843* sons;
Tnode225809* n;
Tsym225841* owner;
Tsym225841* sym;
Tsym225841* destructor;
Tsym225841* deepcopy;
Tsym225841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc225823 loc;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tlib225827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj176009* name;
Tnode225809* path;
};
struct  Tnode225809  {
Ttype225847* typ;
Tlineinfo190352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym225841* sym;
} S4;
struct {Tident198021* ident;
} S5;
struct {Tnodeseq225803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tscope225835  {
NI depthlevel;
Tstrtable225813 symbols;
Tnodeseq225803* usingsyms;
Tscope225835* parent;
};
struct  Ropeobj176009  {
  TNimObject Sup;
Ropeobj176009* left;
Ropeobj176009* right;
NI length;
NimStringDesc* data;
};
struct  Tiipair233270  {
NI key;
NI val;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30821[16];
struct  Pagedesc48954  {
Pagedesc48954* next;
NI key;
TY30821 bits;
};
struct  Basechunk30840  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30842  {
  Basechunk30840 Sup;
Smallchunk30842* next;
Smallchunk30842* prev;
Freecell30832* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30884  {
NI size;
NI acc;
Llchunk30884* next;
};
struct  Bigchunk30844  {
  Basechunk30840 Sup;
Bigchunk30844* next;
Bigchunk30844* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30821 bits;
};
typedef Avlnode30888* TY30895[2];
struct  Avlnode30888  {
TY30895 link;
NI key;
NI upperbound;
NI level;
};
struct  Tinstantiation225831  {
Tsym225841* sym;
Ttypeseq225843* concretetypes;
TY225932* usedby;
NI compilesid;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct Tsymseq225811 {
  TGenericSeq Sup;
  Tsym225841* data[SEQ_DECL_SIZE];
};
struct Ttypeseq225843 {
  TGenericSeq Sup;
  Ttype225847* data[SEQ_DECL_SIZE];
};
struct TY130408 {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct TY225944 {
  TGenericSeq Sup;
  Tinstantiation225831* data[SEQ_DECL_SIZE];
};
struct Tiipairseq233272 {
  TGenericSeq Sup;
  Tiipair233270 data[SEQ_DECL_SIZE];
};
struct Keyvaluepairseq145210 {
  TGenericSeq Sup;
  Keyvaluepair145208 data[SEQ_DECL_SIZE];
};
struct Tnodeseq225803 {
  TGenericSeq Sup;
  Tnode225809* data[SEQ_DECL_SIZE];
};
struct TY225932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, internalerror_196191)(NimStringDesc* errmsg);
N_NIMCALL(Trodwriter289005*, newrodwriter_289029)(Sha1digest201009 hash, Tsym225841* module);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4485)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell48946*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48946* c);
N_NOINLINE(void, addzct_52617)(Cellseq48962* s, Cell48946* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, initiitable_233282)(Tiitable233274* x);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(NimStringDesc*, getdefines_289070)(void);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(NimStringDesc*, rawNewString)(NI cap);
N_NIMCALL(NimStringDesc*, tofilename_191655)(NI32 fileidx);
N_NIMCALL(void, gethash_270722)(NI32 fileidx, Sha1digest201009* Result);
N_NIMCALL(void, rawaddinterfacesym_290721)(Trodwriter289005* w, Tsym225841* s);
N_NIMCALL(void, pushsym_289299)(Trodwriter289005* w, Tsym225841* s);
N_NIMCALL(NI, iitableget_233289)(Tiitable233274 t, NI key);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, processstacks_290700)(Trodwriter289005* w, NIM_BOOL finalpass);
N_NIMCALL(NI, symstack_290201)(Trodwriter289005* w);
N_NIMCALL(Tsym225841*, getmodule_233243)(Tsym225841* s);
N_NIMCALL(void, addtoindex_290009)(Tindex268028* w, NI key, NI val);
N_NIMCALL(void, encodevint_232294)(NI x, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(void, iitableput_233296)(Tiitable233274* t, NI key, NI val);
N_NIMCALL(void, encodesym_289695)(Trodwriter289005* w, Tsym225841* s, NimStringDesc** result);
N_NIMCALL(void, encodestr_232039)(NimStringDesc* s, NimStringDesc** result);
N_NIMCALL(void, pushtype_289279)(Trodwriter289005* w, Ttype225847* t);
N_NIMCALL(NI, fileidx_289111)(Trodwriter289005* w, NimStringDesc* filename);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, encodeloc_289434)(Trodwriter289005* w, Tloc225823 loc, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, HEX24_177132)(Ropeobj176009* r);
N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newlen);
N_NIMCALL(void, encodelib_289674)(Trodwriter289005* w, Tlib225827* lib, Tlineinfo190352 info, NimStringDesc** result);
N_NIMCALL(void, encodenode_289320)(Trodwriter289005* w, Tlineinfo190352 finfo, Tnode225809* n, NimStringDesc** result);
N_NIMCALL(void, encodevbiggestint_232256)(NI64 x, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(NI, sonslen_228387)(Tnode225809* n);
N_NIMCALL(Tlineinfo190352, unknownlineinfo_191411)(void);
static N_INLINE(NIM_BOOL, haspattern_230783)(Tsym225841* s);
static N_INLINE(NIM_BOOL, isroutine_230763)(Tsym225841* s);
N_NIMCALL(NI, typestack_290633)(Trodwriter289005* w);
N_NIMCALL(void, encodetype_289521)(Trodwriter289005* w, Ttype225847* t, NimStringDesc** result);
N_NIMCALL(NI, sonslen_228351)(Ttype225847* n);
N_NIMCALL(Tnode225809*, process_290969)(Tpasscontext277005* c, Tnode225809* n);
N_NIMCALL(void, internalerror_196172)(Tlineinfo190352 info, NimStringDesc* errmsg);
N_NIMCALL(void, addinterfacesym_289050)(Trodwriter289005* w, Tsym225841* s);
N_NIMCALL(void, addmoddep_289036)(Trodwriter289005* w, NimStringDesc* dep);
N_NIMCALL(NimStringDesc*, getmodulename_288018)(Tnode225809* n);
N_NIMCALL(void, addstmt_289057)(Trodwriter289005* w, Tnode225809* n);
N_NIMCALL(void, addincldep_289043)(Trodwriter289005* w, NimStringDesc* dep);
N_NIMCALL(NimStringDesc*, findmodule_168549)(NimStringDesc* modulename, NimStringDesc* currentmodule);
N_NIMCALL(NimStringDesc*, tofullpath_191665)(NI32 fileidx);
N_NIMCALL(NimStringDesc*, HEX24_201044)(Sha1digest201009 self);
N_NIMCALL(void, securehashfile_201034)(NimStringDesc* filename, Sha1digest201009* Result);
N_NIMCALL(void, writerod_289064)(Trodwriter289005* w);
N_NIMCALL(NIM_BOOL, open_16803)(FILE** f, NimStringDesc* filename, NU8 mode, NI bufsize);
N_NIMCALL(NimStringDesc*, completegeneratedfilepath_168201)(NimStringDesc* f, NIM_BOOL createsubdir);
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(NimStringDesc*, withpackagename_168144)(NimStringDesc* path);
N_NIMCALL(void, write_16895)(FILE* f, NimStringDesc* s);
N_NIMCALL(void, savemaxids_224472)(NimStringDesc* project);
N_NIMCALL(NimStringDesc*, HEX2F_123481)(NimStringDesc* head, NimStringDesc* tail);
STRING_LITERAL(TMP4483, "rodwrite: module ID not set", 27);
STRING_LITERAL(TMP4486, "", 0);
STRING_LITERAL(TMP4487, "false", 5);
STRING_LITERAL(TMP4488, " ", 1);
STRING_LITERAL(TMP4489, "symStack: module nil: ", 22);
STRING_LITERAL(TMP4490, "\012", 1);
STRING_LITERAL(TMP4491, "{}", 2);
STRING_LITERAL(TMP4492, "()", 2);
STRING_LITERAL(TMP4493, "[]", 2);
STRING_LITERAL(TMP4494, "encodeType: tyForward", 21);
STRING_LITERAL(TMP4495, "^()", 3);
STRING_LITERAL(TMP4496, "could not serialize some forwarded symbols/types", 48);
STRING_LITERAL(TMP4497, "rodwrite.process", 16);
STRING_LITERAL(TMP4498, "rodwrite.process: body is nil", 29);
STRING_LITERAL(TMP4499, "rod", 3);
STRING_LITERAL(TMP4500, "NIM:", 4);
STRING_LITERAL(TMP4501, "1215", 4);
STRING_LITERAL(TMP4502, "ID:", 3);
STRING_LITERAL(TMP4503, "ORIGFILE:", 9);
STRING_LITERAL(TMP4504, "HASH:", 5);
STRING_LITERAL(TMP4505, "OPTIONS:", 8);
STRING_LITERAL(TMP4506, "GOPTIONS:", 9);
STRING_LITERAL(TMP4507, "CMD:", 4);
STRING_LITERAL(TMP4508, "DEFINES:", 8);
STRING_LITERAL(TMP4509, "FILES(\012", 7);
STRING_LITERAL(TMP4510, ")\012", 2);
STRING_LITERAL(TMP4511, "INCLUDES(\012", 10);
STRING_LITERAL(TMP4512, "DEPS:", 5);
STRING_LITERAL(TMP4513, "INTERF(\012", 8);
STRING_LITERAL(TMP4514, "COMPILERPROCS(\012", 15);
STRING_LITERAL(TMP4515, "INDEX(\012", 7);
STRING_LITERAL(TMP4516, "IMPORTS(\012", 9);
STRING_LITERAL(TMP4517, "CONVERTERS:", 11);
STRING_LITERAL(TMP4518, "METHODS:", 8);
STRING_LITERAL(TMP4519, "INIT(\012", 6);
STRING_LITERAL(TMP4520, "DATA(\012", 6);
STRING_LITERAL(TMP4521, "\000", 1);
extern TNimType NTI277005; /* TPassContext */
TNimType NTI289005; /* TRodWriter */
extern TNimType NTI225807; /* PSym */
extern TNimType NTI201009; /* Sha1Digest */
extern TNimType NTI167017; /* TOptions */
extern TNimType NTI149; /* string */
extern TNimType NTI268028; /* TIndex */
extern TNimType NTI225811; /* TSymSeq */
extern TNimType NTI225843; /* TTypeSeq */
extern TNimType NTI130408; /* seq[string] */
TNimType NTI289007; /* PRodWriter */
extern Gcheap51018 gch_51059;
extern Stringtableobj145212* gsymbols_199004;
extern NU32 goptions_167130;
extern NU32 gglobaloptions_167132;
extern NU8 gcmd_167134;
extern NimStringDesc* gprojectpath_167235;
extern NimStringDesc* gprojectname_167234;
N_NIMCALL(void, TMP4485)(void* p, NI op) {
	Trodwriter289005* a;
	a = (Trodwriter289005*)p;
	nimGCvisit((void*)(*a).module, op);
	nimGCvisit((void*)(*a).defines, op);
	nimGCvisit((void*)(*a).incldeps, op);
	nimGCvisit((void*)(*a).moddeps, op);
	nimGCvisit((void*)(*a).interf, op);
	nimGCvisit((void*)(*a).compilerprocs, op);
	nimGCvisit((void*)(*a).index.tab.data, op);
	nimGCvisit((void*)(*a).index.r, op);
	nimGCvisit((void*)(*a).imports.tab.data, op);
	nimGCvisit((void*)(*a).imports.r, op);
	nimGCvisit((void*)(*a).converters, op);
	nimGCvisit((void*)(*a).methods, op);
	nimGCvisit((void*)(*a).init, op);
	nimGCvisit((void*)(*a).data, op);
	nimGCvisit((void*)(*a).sstack, op);
	nimGCvisit((void*)(*a).tstack, op);
	nimGCvisit((void*)(*a).files, op);
	nimGCvisit((void*)(*a).origfile, op);
}

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

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

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell48946* c;
	c = usrtocell_52646(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_54204(c);
	}
	LA3: ;
}

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

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;
}

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(NimStringDesc*, getdefines_289070)(void) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP4486));
	{
		NimStringDesc* d_289073;
		d_289073 = 0;
		{
			NimStringDesc* key_289079;
			NimStringDesc* val_289081;
			key_289079 = 0;
			val_289081 = 0;
			{
				NI h_289083;
				NI HEX3Atmp_289085;
				NI res_289087;
				h_289083 = 0;
				HEX3Atmp_289085 = 0;
				HEX3Atmp_289085 = ((*gsymbols_199004).data ? ((*gsymbols_199004).data->Sup.len-1) : -1);
				res_289087 = ((NI) 0);
				{
					while (1) {
						if (!(res_289087 <= HEX3Atmp_289085)) goto LA5;
						h_289083 = res_289087;
						{
							if (!!((*gsymbols_199004).data->data[h_289083].Field0 == 0)) goto LA8;
							key_289079 = (*gsymbols_199004).data->data[h_289083].Field0;
							val_289081 = (*gsymbols_199004).data->data[h_289083].Field1;
							{
								if (!!(eqStrings(val_289081, ((NimStringDesc*) &TMP4487)))) goto LA12;
								d_289073 = key_289079;
								{
									if (!!(((result ? result->Sup.len : 0) == ((NI) 0)))) goto LA16;
									result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TMP4488));
								}
								LA16: ;
								result = resizeString(result, d_289073->Sup.len + 0);
appendString(result, d_289073);
							}
							LA12: ;
						}
						LA8: ;
						res_289087 += ((NI) 1);
					} LA5: ;
				}
			}
		}
	}
	return result;
}

N_NIMCALL(Trodwriter289005*, newrodwriter_289029)(Sha1digest201009 hash, Tsym225841* module) {
	Trodwriter289005* result;
	NimStringDesc* LOC1;
	NimStringDesc* LOC2;
	NimStringDesc* LOC3;
	NimStringDesc* LOC4;
	NimStringDesc* LOC5;
	NimStringDesc* LOC6;
	NimStringDesc* LOC7;
	NimStringDesc* LOC8;
	result = 0;
	result = (Trodwriter289005*) newObj((&NTI289007), sizeof(Trodwriter289005));
	(*result).Sup.Sup.m_type = (&NTI289005);
	if ((*result).sstack) nimGCunrefNoCycle((*result).sstack);
	(*result).sstack = (Tsymseq225811*) newSeqRC1((&NTI225811), 0);
	if ((*result).tstack) nimGCunrefNoCycle((*result).tstack);
	(*result).tstack = (Ttypeseq225843*) newSeqRC1((&NTI225843), 0);
	initiitable_233282((&(*result).index.tab));
	initiitable_233282((&(*result).imports.tab));
	LOC1 = 0;
	LOC1 = (*result).index.r; (*result).index.r = copyStringRC1(((NimStringDesc*) &TMP4486));
	if (LOC1) nimGCunrefNoCycle(LOC1);
	LOC2 = 0;
	LOC2 = (*result).imports.r; (*result).imports.r = copyStringRC1(((NimStringDesc*) &TMP4486));
	if (LOC2) nimGCunrefNoCycle(LOC2);
	memcpy((void*)(*result).hash, (NIM_CONST void*)hash, sizeof(Sha1digest201009));
	asgnRefNoCycle((void**) (&(*result).module), module);
	asgnRefNoCycle((void**) (&(*result).defines), getdefines_289070());
	(*result).options = goptions_167130;
	if ((*result).files) nimGCunrefNoCycle((*result).files);
	(*result).files = (TY130408*) newSeqRC1((&NTI130408), 0);
	LOC3 = 0;
	LOC3 = (*result).incldeps; (*result).incldeps = copyStringRC1(((NimStringDesc*) &TMP4486));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	LOC4 = 0;
	LOC4 = (*result).moddeps; (*result).moddeps = copyStringRC1(((NimStringDesc*) &TMP4486));
	if (LOC4) nimGCunrefNoCycle(LOC4);
	asgnRefNoCycle((void**) (&(*result).interf), rawNewString(((NI) 2000)));
	LOC5 = 0;
	LOC5 = (*result).compilerprocs; (*result).compilerprocs = copyStringRC1(((NimStringDesc*) &TMP4486));
	if (LOC5) nimGCunrefNoCycle(LOC5);
	LOC6 = 0;
	LOC6 = (*result).converters; (*result).converters = copyStringRC1(((NimStringDesc*) &TMP4486));
	if (LOC6) nimGCunrefNoCycle(LOC6);
	LOC7 = 0;
	LOC7 = (*result).methods; (*result).methods = copyStringRC1(((NimStringDesc*) &TMP4486));
	if (LOC7) nimGCunrefNoCycle(LOC7);
	LOC8 = 0;
	LOC8 = (*result).init; (*result).init = copyStringRC1(((NimStringDesc*) &TMP4486));
	if (LOC8) nimGCunrefNoCycle(LOC8);
	asgnRefNoCycle((void**) (&(*result).origfile), tofilename_191655((*module).info.fileindex));
	asgnRefNoCycle((void**) (&(*result).data), rawNewString(((NI) 12000)));
	return result;
}

N_NIMCALL(void, pushsym_289299)(Trodwriter289005* w, Tsym225841* s) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = iitableget_233289((*w).index.tab, (*s).Sup.id);
		if (!(LOC3 == ((NI) (-2147483647 -1)))) goto LA4;
		(*w).sstack = (Tsymseq225811*) incrSeqV2(&((*w).sstack)->Sup, sizeof(Tsym225841*));
		asgnRefNoCycle((void**) (&(*w).sstack->data[(*w).sstack->Sup.len]), s);
		++(*w).sstack->Sup.len;
	}
	LA4: ;
}

N_NIMCALL(void, addtoindex_290009)(Tindex268028* w, NI key, NI val) {
	{
		if (!((NI)(key - (*w).lastidxkey) == ((NI) 1))) goto LA3;
		encodevint_232294((NI)(val - (*w).lastidxval), (&(*w).r));
	}
	goto LA1;
	LA3: ;
	{
		encodevint_232294((NI)(key - (*w).lastidxkey), (&(*w).r));
		(*w).r = addChar((*w).r, 32);
		encodevint_232294((NI)(val - (*w).lastidxval), (&(*w).r));
	}
	LA1: ;
	(*w).r = resizeString((*w).r, 1);
appendString((*w).r, ((NimStringDesc*) &TMP4490));
	(*w).lastidxkey = key;
	(*w).lastidxval = val;
	iitableput_233296((&(*w).tab), key, val);
}

N_NIMCALL(void, pushtype_289279)(Trodwriter289005* w, Ttype225847* t) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = iitableget_233289((*w).index.tab, (*t).Sup.id);
		if (!(LOC3 == ((NI) (-2147483647 -1)))) goto LA4;
		(*w).tstack = (Ttypeseq225843*) incrSeqV2(&((*w).tstack)->Sup, sizeof(Ttype225847*));
		asgnRefNoCycle((void**) (&(*w).tstack->data[(*w).tstack->Sup.len]), t);
		++(*w).tstack->Sup.len;
	}
	LA4: ;
}

N_NIMCALL(NI, fileidx_289111)(Trodwriter289005* w, NimStringDesc* filename) {
	NI result;
	NimStringDesc* LOC8;
{	result = 0;
	{
		NI i_289128;
		NI HEX3Atmp_289148;
		NI res_289151;
		i_289128 = 0;
		HEX3Atmp_289148 = 0;
		HEX3Atmp_289148 = ((*w).files ? ((*w).files->Sup.len-1) : -1);
		res_289151 = ((NI) 0);
		{
			while (1) {
				if (!(res_289151 <= HEX3Atmp_289148)) goto LA3;
				i_289128 = res_289151;
				{
					if (!eqStrings((*w).files->data[i_289128], filename)) goto LA6;
					result = i_289128;
					goto BeforeRet;
				}
				LA6: ;
				res_289151 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((*w).files ? (*w).files->Sup.len : 0);
	(*w).files = (TY130408*) setLengthSeq(&((*w).files)->Sup, sizeof(NimStringDesc*), ((NI) ((NI)(result + ((NI) 1)))));
	LOC8 = 0;
	LOC8 = (*w).files->data[result]; (*w).files->data[result] = copyStringRC1(filename);
	if (LOC8) nimGCunrefNoCycle(LOC8);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, encodeloc_289434)(Trodwriter289005* w, Tloc225823 loc, NimStringDesc** result) {
	NI oldlen;
	oldlen = ((*result) ? (*result)->Sup.len : 0);
	(*result) = addChar((*result), 60);
	{
		if (!!((loc.k == ((NU8) 0)))) goto LA3;
		encodevint_232294(((NI) (loc.k)), result);
	}
	LA3: ;
	{
		if (!!((loc.s == ((NU8) 0)))) goto LA7;
		(*result) = addChar((*result), 42);
		encodevint_232294(((NI) (loc.s)), result);
	}
	LA7: ;
	{
		if (!!((loc.flags == 0))) goto LA11;
		(*result) = addChar((*result), 36);
		encodevint_232294(((NI) (((NI32) (loc.flags)))), result);
	}
	LA11: ;
	{
		if (!!((loc.t == NIM_NIL))) goto LA15;
		(*result) = addChar((*result), 94);
		encodevint_232294(((NI) (((NI32) ((*loc.t).Sup.id)))), result);
		pushtype_289279(w, loc.t);
	}
	LA15: ;
	{
		NimStringDesc* LOC21;
		if (!!((loc.r == NIM_NIL))) goto LA19;
		(*result) = addChar((*result), 33);
		LOC21 = 0;
		LOC21 = HEX24_177132(loc.r);
		encodestr_232039(LOC21, result);
	}
	LA19: ;
	{
		if (!((NI)(oldlen + ((NI) 1)) == ((*result) ? (*result)->Sup.len : 0))) goto LA24;
		(*result) = setLengthStr((*result), ((NI) (oldlen)));
	}
	goto LA22;
	LA24: ;
	{
		(*result) = addChar((*result), 62);
	}
	LA22: ;
}

N_NIMCALL(void, encodenode_289320)(Trodwriter289005* w, Tlineinfo190352 finfo, Tnode225809* n, NimStringDesc** result) {
	NU16 f;
{	{
		if (!(n == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4492));
		goto BeforeRet;
	}
	LA3: ;
	(*result) = addChar((*result), 40);
	encodevint_232294(((NI) ((*n).kind)), result);
	{
		NimStringDesc* LOC9;
		NI LOC10;
		if (!!((finfo.fileindex == (*n).info.fileindex))) goto LA7;
		(*result) = addChar((*result), 63);
		encodevint_232294(((NI) ((*n).info.col)), result);
		(*result) = addChar((*result), 44);
		encodevint_232294(((NI) ((*n).info.line)), result);
		(*result) = addChar((*result), 44);
		LOC9 = 0;
		LOC9 = tofilename_191655((*n).info.fileindex);
		LOC10 = 0;
		LOC10 = fileidx_289111(w, LOC9);
		encodevint_232294(LOC10, result);
	}
	goto LA5;
	LA7: ;
	{
		if (!!((finfo.line == (*n).info.line))) goto LA12;
		(*result) = addChar((*result), 63);
		encodevint_232294(((NI) ((*n).info.col)), result);
		(*result) = addChar((*result), 44);
		encodevint_232294(((NI) ((*n).info.line)), result);
	}
	goto LA5;
	LA12: ;
	{
		if (!!((finfo.col == (*n).info.col))) goto LA15;
		(*result) = addChar((*result), 63);
		encodevint_232294(((NI) ((*n).info.col)), result);
	}
	goto LA5;
	LA15: ;
	LA5: ;
	f = ((*n).flags & 26126);
	{
		if (!!((f == 0))) goto LA19;
		(*result) = addChar((*result), 36);
		encodevint_232294(((NI) (((NI32) (f)))), result);
	}
	LA19: ;
	{
		if (!!(((*n).typ == NIM_NIL))) goto LA23;
		(*result) = addChar((*result), 94);
		encodevint_232294((*(*n).typ).Sup.id, result);
		pushtype_289279(w, (*n).typ);
	}
	LA23: ;
	switch ((*n).kind) {
	case ((NU8) 5) ... ((NU8) 10):
	{
		{
			if (!!(((*n).kindU.S1.intval == IL64(0)))) goto LA28;
			(*result) = addChar((*result), 33);
			encodevbiggestint_232256((*n).kindU.S1.intval, result);
		}
		LA28: ;
	}
	break;
	case ((NU8) 16) ... ((NU8) 18):
	{
		{
			NimStringDesc* LOC35;
			if (!!(((*n).kindU.S2.floatval == 0.0))) goto LA33;
			(*result) = addChar((*result), 33);
			LOC35 = 0;
			LOC35 = nimFloatToStr((*n).kindU.S2.floatval);
			encodestr_232039(LOC35, result);
		}
		LA33: ;
	}
	break;
	case ((NU8) 20) ... ((NU8) 22):
	{
		{
			if (!!((((*n).kindU.S3.strval) && ((*n).kindU.S3.strval)->Sup.len == 0))) goto LA39;
			(*result) = addChar((*result), 33);
			encodestr_232039((*n).kindU.S3.strval, result);
		}
		LA39: ;
	}
	break;
	case ((NU8) 2):
	{
		(*result) = addChar((*result), 33);
		encodestr_232039((*(*n).kindU.S5.ident).s, result);
	}
	break;
	case ((NU8) 3):
	{
		(*result) = addChar((*result), 33);
		encodevint_232294((*(*n).kindU.S4.sym).Sup.id, result);
		pushsym_289299(w, (*n).kindU.S4.sym);
	}
	break;
	default:
	{
		{
			NI i_289408;
			NI HEX3Atmp_289412;
			NI LOC45;
			NI res_289415;
			i_289408 = 0;
			HEX3Atmp_289412 = 0;
			LOC45 = 0;
			LOC45 = sonslen_228387(n);
			HEX3Atmp_289412 = (NI)(LOC45 - ((NI) 1));
			res_289415 = ((NI) 0);
			{
				while (1) {
					if (!(res_289415 <= HEX3Atmp_289412)) goto LA47;
					i_289408 = res_289415;
					encodenode_289320(w, (*n).info, (*n).kindU.S6.sons->data[i_289408], result);
					res_289415 += ((NI) 1);
				} LA47: ;
			}
		}
	}
	break;
	}
	(*result) = addChar((*result), 41);
	}BeforeRet: ;
}

N_NIMCALL(void, encodelib_289674)(Trodwriter289005* w, Tlib225827* lib, Tlineinfo190352 info, NimStringDesc** result) {
	NimStringDesc* LOC1;
	(*result) = addChar((*result), 124);
	encodevint_232294(((NI) ((*lib).kind)), result);
	(*result) = addChar((*result), 124);
	LOC1 = 0;
	LOC1 = HEX24_177132((*lib).name);
	encodestr_232039(LOC1, result);
	(*result) = addChar((*result), 124);
	encodenode_289320(w, info, (*lib).path, result);
}

N_NIMCALL(void, encodesym_289695)(Trodwriter289005* w, Tsym225841* s, NimStringDesc** result) {
	NimStringDesc* LOC17;
	NI LOC18;
{	{
		if (!(s == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4491));
		goto BeforeRet;
	}
	LA3: ;
	encodevint_232294(((NI) ((*s).kind)), result);
	(*result) = addChar((*result), 43);
	encodevint_232294((*s).Sup.id, result);
	(*result) = addChar((*result), 38);
	encodestr_232039((*(*s).name).s, result);
	{
		if (!!(((*s).typ == NIM_NIL))) goto LA7;
		(*result) = addChar((*result), 94);
		encodevint_232294((*(*s).typ).Sup.id, result);
		pushtype_289279(w, (*s).typ);
	}
	LA7: ;
	(*result) = addChar((*result), 63);
	{
		if (!!(((*s).info.col == ((NI16) -1)))) goto LA11;
		encodevint_232294(((NI) ((*s).info.col)), result);
	}
	LA11: ;
	(*result) = addChar((*result), 44);
	{
		if (!!(((*s).info.line == ((NI16) -1)))) goto LA15;
		encodevint_232294(((NI) ((*s).info.line)), result);
	}
	LA15: ;
	(*result) = addChar((*result), 44);
	LOC17 = 0;
	LOC17 = tofilename_191655((*s).info.fileindex);
	LOC18 = 0;
	LOC18 = fileidx_289111(w, LOC17);
	encodevint_232294(LOC18, result);
	{
		if (!!(((*s).owner == NIM_NIL))) goto LA21;
		(*result) = addChar((*result), 42);
		encodevint_232294((*(*s).owner).Sup.id, result);
		pushsym_289299(w, (*s).owner);
	}
	LA21: ;
	{
		if (!!(((*s).flags == 0))) goto LA25;
		(*result) = addChar((*result), 36);
		encodevint_232294(((NI) (((NI32) ((*s).flags)))), result);
	}
	LA25: ;
	{
		if (!!(((*s).magic == ((NU8) 0)))) goto LA29;
		(*result) = addChar((*result), 64);
		encodevint_232294(((NI) ((*s).magic)), result);
	}
	LA29: ;
	{
		if (!!(((*s).options == (*w).options))) goto LA33;
		(*result) = addChar((*result), 33);
		encodevint_232294(((NI) (((NI32) ((*s).options)))), result);
	}
	LA33: ;
	{
		if (!!(((*s).position == ((NI) 0)))) goto LA37;
		(*result) = addChar((*result), 37);
		encodevint_232294((*s).position, result);
	}
	LA37: ;
	{
		if (!!(((*s).offset == ((NI) -1)))) goto LA41;
		(*result) = addChar((*result), 96);
		encodevint_232294((*s).offset, result);
	}
	LA41: ;
	encodeloc_289434(w, (*s).loc, result);
	{
		if (!!(((*s).annex == NIM_NIL))) goto LA45;
		encodelib_289674(w, (*s).annex, (*s).info, result);
	}
	LA45: ;
	{
		Tlineinfo190352 LOC51;
		if (!!(((*s).constraint == NIM_NIL))) goto LA49;
		(*result) = addChar((*result), 35);
		LOC51 = unknownlineinfo_191411();
		encodenode_289320(w, LOC51, (*s).constraint, result);
	}
	LA49: ;
	{
		if (!!(((*s).ast == NIM_NIL))) goto LA54;
		encodenode_289320(w, (*s).info, (*s).ast, result);
	}
	LA54: ;
	}BeforeRet: ;
}

static N_INLINE(NIM_BOOL, isroutine_230763)(Tsym225841* s) {
	NIM_BOOL result;
	result = 0;
	result = ((520192 &(1<<(((*s).kind)&31)))!=0);
	return result;
}

static N_INLINE(NIM_BOOL, haspattern_230783)(Tsym225841* s) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = isroutine_230763(s);
	if (!(LOC1)) goto LA2;
	LOC1 = !(((*(*(*s).ast).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 1)));
	LA2: ;
	result = LOC1;
	return result;
}

N_NIMCALL(NI, symstack_290201)(Trodwriter289005* w) {
	NI result;
	NI i;
	result = 0;
	i = ((NI) 0);
	{
		while (1) {
			Tsym225841* s;
			if (!(i < ((*w).sstack ? (*w).sstack->Sup.len : 0))) goto LA2;
			s = (*w).sstack->data[i];
			{
				if (!(((*s).flags &(1<<((((NU8) 4))&31)))!=0)) goto LA5;
				asgnRefNoCycle((void**) (&(*w).sstack->data[result]), s);
				result += ((NI) 1);
			}
			goto LA3;
			LA5: ;
			{
				NI LOC8;
				Tsym225841* m;
				LOC8 = 0;
				LOC8 = iitableget_233289((*w).index.tab, (*s).Sup.id);
				if (!(LOC8 == ((NI) (-2147483647 -1)))) goto LA9;
				m = getmodule_233243(s);
				{
					NIM_BOOL LOC13;
					NimStringDesc* LOC17;
					LOC13 = 0;
					LOC13 = (m == NIM_NIL);
					if (!(LOC13)) goto LA14;
					LOC13 = !(((*s).kind == ((NU8) 24)));
					LA14: ;
					if (!LOC13) goto LA15;
					LOC17 = 0;
					LOC17 = rawNewString((*(*s).name).s->Sup.len + 22);
appendString(LOC17, ((NimStringDesc*) &TMP4489));
appendString(LOC17, (*(*s).name).s);
					internalerror_196191(LOC17);
				}
				LA15: ;
				{
					NIM_BOOL LOC20;
					NIM_BOOL LOC21;
					NI L;
					LOC20 = 0;
					LOC21 = 0;
					LOC21 = ((*s).kind == ((NU8) 24));
					if (LOC21) goto LA22;
					LOC21 = ((*m).Sup.id == (*(*w).module).Sup.id);
					LA22: ;
					LOC20 = LOC21;
					if (LOC20) goto LA23;
					LOC20 = (((*s).flags &(1<<((((NU8) 2))&31)))!=0);
					LA23: ;
					if (!LOC20) goto LA24;
					L = ((*w).data ? (*w).data->Sup.len : 0);
					addtoindex_290009((&(*w).index), (*s).Sup.id, L);
					encodesym_289695(w, s, (&(*w).data));
					(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4490));
					{
						NIM_BOOL LOC28;
						LOC28 = 0;
						LOC28 = ((6 & (*s).flags) == 2);
						if (!(LOC28)) goto LA29;
						LOC28 = ((43513728 &(1<<(((*s).kind)&31)))!=0);
						LA29: ;
						if (!LOC28) goto LA30;
						encodestr_232039((*(*s).name).s, (&(*w).interf));
						(*w).interf = addChar((*w).interf, 32);
						encodevint_232294((*s).Sup.id, (&(*w).interf));
						(*w).interf = resizeString((*w).interf, 1);
appendString((*w).interf, ((NimStringDesc*) &TMP4490));
					}
					LA30: ;
					{
						if (!(((*s).flags &(1<<((((NU8) 16))&31)))!=0)) goto LA34;
						encodestr_232039((*(*s).name).s, (&(*w).compilerprocs));
						(*w).compilerprocs = addChar((*w).compilerprocs, 32);
						encodevint_232294((*s).Sup.id, (&(*w).compilerprocs));
						(*w).compilerprocs = resizeString((*w).compilerprocs, 1);
appendString((*w).compilerprocs, ((NimStringDesc*) &TMP4490));
					}
					LA34: ;
					{
						NIM_BOOL LOC38;
						LOC38 = 0;
						LOC38 = ((*s).kind == ((NU8) 16));
						if (LOC38) goto LA39;
						LOC38 = haspattern_230783(s);
						LA39: ;
						if (!LOC38) goto LA40;
						{
							if (!!((((*w).converters ? (*w).converters->Sup.len : 0) == ((NI) 0)))) goto LA44;
							(*w).converters = addChar((*w).converters, 32);
						}
						LA44: ;
						encodevint_232294((*s).Sup.id, (&(*w).converters));
					}
					LA40: ;
					{
						NIM_BOOL LOC48;
						LOC48 = 0;
						LOC48 = ((*s).kind == ((NU8) 13));
						if (!(LOC48)) goto LA49;
						LOC48 = !((((*s).flags &(1<<((((NU8) 25))&31)))!=0));
						LA49: ;
						if (!LOC48) goto LA50;
						{
							if (!!((((*w).methods ? (*w).methods->Sup.len : 0) == ((NI) 0)))) goto LA54;
							(*w).methods = addChar((*w).methods, 32);
						}
						LA54: ;
						encodevint_232294((*s).Sup.id, (&(*w).methods));
					}
					LA50: ;
				}
				goto LA18;
				LA24: ;
				{
					NI LOC57;
					LOC57 = 0;
					LOC57 = iitableget_233289((*w).imports.tab, (*s).Sup.id);
					if (!(LOC57 == ((NI) (-2147483647 -1)))) goto LA58;
					addtoindex_290009((&(*w).imports), (*s).Sup.id, (*m).Sup.id);
				}
				goto LA18;
				LA58: ;
				LA18: ;
			}
			goto LA3;
			LA9: ;
			LA3: ;
			i += ((NI) 1);
		} LA2: ;
	}
	(*w).sstack = (Tsymseq225811*) setLengthSeq(&((*w).sstack)->Sup, sizeof(Tsym225841*), ((NI) (result)));
	return result;
}

N_NIMCALL(void, encodetype_289521)(Trodwriter289005* w, Ttype225847* t, NimStringDesc** result) {
{	{
		if (!(t == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4493));
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!((*t).kind == ((NU8) 30))) goto LA7;
		internalerror_196191(((NimStringDesc*) &TMP4494));
	}
	LA7: ;
	(*result) = addChar((*result), 91);
	encodevint_232294(((NI) ((*t).kind)), result);
	(*result) = addChar((*result), 43);
	encodevint_232294((*t).Sup.id, result);
	{
		Tlineinfo190352 LOC13;
		if (!!(((*t).n == NIM_NIL))) goto LA11;
		LOC13 = unknownlineinfo_191411();
		encodenode_289320(w, LOC13, (*t).n, result);
	}
	LA11: ;
	{
		if (!!(((*t).flags == 0))) goto LA16;
		(*result) = addChar((*result), 36);
		encodevint_232294(((NI) (((NI32) ((*t).flags)))), result);
	}
	LA16: ;
	{
		if (!!(((*t).callconv == ((NU8) 0)))) goto LA20;
		(*result) = addChar((*result), 63);
		encodevint_232294(((NI) ((*t).callconv)), result);
	}
	LA20: ;
	{
		if (!!(((*t).owner == NIM_NIL))) goto LA24;
		(*result) = addChar((*result), 42);
		encodevint_232294((*(*t).owner).Sup.id, result);
		pushsym_289299(w, (*t).owner);
	}
	LA24: ;
	{
		if (!!(((*t).sym == NIM_NIL))) goto LA28;
		(*result) = addChar((*result), 38);
		encodevint_232294((*(*t).sym).Sup.id, result);
		pushsym_289299(w, (*t).sym);
	}
	LA28: ;
	{
		if (!!(((*t).size == IL64(-1)))) goto LA32;
		(*result) = addChar((*result), 47);
		encodevbiggestint_232256((*t).size, result);
	}
	LA32: ;
	{
		if (!!(((*t).align == ((NI16) 2)))) goto LA36;
		(*result) = addChar((*result), 61);
		encodevint_232294(((NI) ((*t).align)), result);
	}
	LA36: ;
	encodeloc_289434(w, (*t).loc, result);
	{
		NI i_289637;
		NI HEX3Atmp_289652;
		NI LOC39;
		NI res_289655;
		i_289637 = 0;
		HEX3Atmp_289652 = 0;
		LOC39 = 0;
		LOC39 = sonslen_228351(t);
		HEX3Atmp_289652 = (NI)(LOC39 - ((NI) 1));
		res_289655 = ((NI) 0);
		{
			while (1) {
				if (!(res_289655 <= HEX3Atmp_289652)) goto LA41;
				i_289637 = res_289655;
				{
					if (!((*t).sons->data[i_289637] == NIM_NIL)) goto LA44;
					(*result) = resizeString((*result), 3);
appendString((*result), ((NimStringDesc*) &TMP4495));
				}
				goto LA42;
				LA44: ;
				{
					(*result) = addChar((*result), 94);
					encodevint_232294((*(*t).sons->data[i_289637]).Sup.id, result);
					pushtype_289279(w, (*t).sons->data[i_289637]);
				}
				LA42: ;
				res_289655 += ((NI) 1);
			} LA41: ;
		}
	}
	}BeforeRet: ;
}

N_NIMCALL(NI, typestack_290633)(Trodwriter289005* w) {
	NI result;
	NI i;
	result = 0;
	i = ((NI) 0);
	{
		while (1) {
			Ttype225847* t;
			if (!(i < ((*w).tstack ? (*w).tstack->Sup.len : 0))) goto LA2;
			t = (*w).tstack->data[i];
			{
				if (!((*t).kind == ((NU8) 30))) goto LA5;
				asgnRefNoCycle((void**) (&(*w).tstack->data[result]), t);
				result += ((NI) 1);
			}
			goto LA3;
			LA5: ;
			{
				NI LOC8;
				NI L;
				LOC8 = 0;
				LOC8 = iitableget_233289((*w).index.tab, (*t).Sup.id);
				if (!(LOC8 == ((NI) (-2147483647 -1)))) goto LA9;
				L = ((*w).data ? (*w).data->Sup.len : 0);
				addtoindex_290009((&(*w).index), (*t).Sup.id, L);
				encodetype_289521(w, t, (&(*w).data));
				(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4490));
			}
			goto LA3;
			LA9: ;
			LA3: ;
			i += ((NI) 1);
		} LA2: ;
	}
	(*w).tstack = (Ttypeseq225843*) setLengthSeq(&((*w).tstack)->Sup, sizeof(Ttype225847*), ((NI) (result)));
	return result;
}

N_NIMCALL(void, processstacks_290700)(Trodwriter289005* w, NIM_BOOL finalpass) {
	NI olds;
	NI oldt;
	olds = ((NI) 0);
	oldt = ((NI) 0);
	{
		while (1) {
			NI slen;
			NI tlen;
			slen = symstack_290201(w);
			tlen = typestack_290633(w);
			{
				NIM_BOOL LOC5;
				LOC5 = 0;
				LOC5 = (slen == olds);
				if (!(LOC5)) goto LA6;
				LOC5 = (tlen == oldt);
				LA6: ;
				if (!LOC5) goto LA7;
				goto LA1;
			}
			LA7: ;
			olds = slen;
			oldt = tlen;
		}
	} LA1: ;
	{
		NIM_BOOL LOC11;
		NIM_BOOL LOC13;
		LOC11 = 0;
		LOC11 = finalpass;
		if (!(LOC11)) goto LA12;
		LOC13 = 0;
		LOC13 = !((olds == ((NI) 0)));
		if (LOC13) goto LA14;
		LOC13 = !((oldt == ((NI) 0)));
		LA14: ;
		LOC11 = LOC13;
		LA12: ;
		if (!LOC11) goto LA15;
		internalerror_196191(((NimStringDesc*) &TMP4496));
	}
	LA15: ;
}

N_NIMCALL(void, rawaddinterfacesym_290721)(Trodwriter289005* w, Tsym225841* s) {
	pushsym_289299(w, s);
	processstacks_290700(w, NIM_FALSE);
}

N_NIMCALL(Tpasscontext277005*, myopen_291251)(Tsym225841* module) {
	Tpasscontext277005* result;
	Trodwriter289005* w;
	Sha1digest201009 LOC5;
	result = 0;
	{
		if (!((*module).Sup.id < ((NI) 0))) goto LA3;
		internalerror_196191(((NimStringDesc*) &TMP4483));
	}
	LA3: ;
	memset((void*)LOC5, 0, sizeof(LOC5));
	gethash_270722(((NI32) ((*module).position)), LOC5);
	w = newrodwriter_289029(LOC5, module);
	rawaddinterfacesym_290721(w, module);
	result = &w->Sup;
	return result;
}

N_NIMCALL(void, addinterfacesym_289050)(Trodwriter289005* w, Tsym225841* s) {
{	{
		if (!(w == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = ((43513728 &(1<<(((*s).kind)&31)))!=0);
		if (!(LOC7)) goto LA8;
		LOC7 = !(((65538 & (*s).flags) == 0));
		LA8: ;
		if (!LOC7) goto LA9;
		rawaddinterfacesym_290721(w, s);
	}
	LA9: ;
	}BeforeRet: ;
}

N_NIMCALL(void, addmoddep_289036)(Trodwriter289005* w, NimStringDesc* dep) {
	NI LOC5;
	{
		if (!!((((*w).moddeps ? (*w).moddeps->Sup.len : 0) == ((NI) 0)))) goto LA3;
		(*w).moddeps = addChar((*w).moddeps, 32);
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = fileidx_289111(w, dep);
	encodevint_232294(LOC5, (&(*w).moddeps));
}

N_NIMCALL(void, addstmt_289057)(Trodwriter289005* w, Tnode225809* n) {
	Tlineinfo190352 LOC1;
	encodevint_232294(((*w).data ? (*w).data->Sup.len : 0), (&(*w).init));
	(*w).init = resizeString((*w).init, 1);
appendString((*w).init, ((NimStringDesc*) &TMP4490));
	LOC1 = unknownlineinfo_191411();
	encodenode_289320(w, LOC1, n, (&(*w).data));
	(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4490));
	processstacks_290700(w, NIM_FALSE);
}

N_NIMCALL(void, addincldep_289043)(Trodwriter289005* w, NimStringDesc* dep) {
	NimStringDesc* resolved;
	NimStringDesc* LOC1;
	NI LOC2;
	Sha1digest201009 LOC3;
	NimStringDesc* LOC4;
	LOC1 = 0;
	LOC1 = tofullpath_191665((*(*w).module).info.fileindex);
	resolved = findmodule_168549(dep, LOC1);
	LOC2 = 0;
	LOC2 = fileidx_289111(w, dep);
	encodevint_232294(LOC2, (&(*w).incldeps));
	(*w).incldeps = resizeString((*w).incldeps, 1);
appendString((*w).incldeps, ((NimStringDesc*) &TMP4488));
	memset((void*)LOC3, 0, sizeof(LOC3));
	securehashfile_201034(resolved, LOC3);
	LOC4 = 0;
	LOC4 = HEX24_201044(LOC3);
	encodestr_232039(LOC4, (&(*w).incldeps));
	(*w).incldeps = resizeString((*w).incldeps, 1);
appendString((*w).incldeps, ((NimStringDesc*) &TMP4490));
}

N_NIMCALL(Tnode225809*, process_290969)(Tpasscontext277005* c, Tnode225809* n) {
	Tnode225809* result;
	Trodwriter289005* w;
{	result = 0;
	result = n;
	{
		if (!(c == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	w = ((Trodwriter289005*) (c));
	switch ((*n).kind) {
	case ((NU8) 115):
	{
		{
			NI i_290999;
			NI HEX3Atmp_291153;
			NI LOC7;
			NI res_291156;
			i_290999 = 0;
			HEX3Atmp_291153 = 0;
			LOC7 = 0;
			LOC7 = sonslen_228387(n);
			HEX3Atmp_291153 = (NI)(LOC7 - ((NI) 1));
			res_291156 = ((NI) 0);
			{
				while (1) {
					Tnode225809* LOC10;
					if (!(res_291156 <= HEX3Atmp_291153)) goto LA9;
					i_290999 = res_291156;
					LOC10 = 0;
					LOC10 = process_290969(c, (*n).kindU.S6.sons->data[i_290999]);
					res_291156 += ((NI) 1);
				} LA9: ;
			}
		}
	}
	break;
	case ((NU8) 79):
	case ((NU8) 80):
	case ((NU8) 84):
	case ((NU8) 81):
	case ((NU8) 83):
	case ((NU8) 82):
	{
		Tsym225841* s;
		s = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		{
			if (!(s == NIM_NIL)) goto LA14;
			internalerror_196172((*n).info, ((NimStringDesc*) &TMP4497));
		}
		LA14: ;
		{
			if (!((*n).kindU.S6.sons->data[((NI) 6)] == NIM_NIL)) goto LA18;
			internalerror_196172((*n).info, ((NimStringDesc*) &TMP4498));
		}
		LA18: ;
		{
			NIM_BOOL LOC22;
			NIM_BOOL LOC23;
			LOC22 = 0;
			LOC23 = 0;
			LOC23 = !(((*(*n).kindU.S6.sons->data[((NI) 6)]).kind == ((NU8) 1)));
			if (LOC23) goto LA24;
			LOC23 = !(((*s).magic == ((NU8) 0)));
			LA24: ;
			LOC22 = LOC23;
			if (LOC22) goto LA25;
			LOC22 = !((((*s).flags &(1<<((((NU8) 4))&31)))!=0));
			LA25: ;
			if (!LOC22) goto LA26;
			addinterfacesym_289050(w, s);
		}
		LA26: ;
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	case ((NU8) 101):
	{
		{
			NI i_291072;
			NI HEX3Atmp_291162;
			NI LOC30;
			NI res_291165;
			i_291072 = 0;
			HEX3Atmp_291162 = 0;
			LOC30 = 0;
			LOC30 = sonslen_228387(n);
			HEX3Atmp_291162 = (NI)(LOC30 - ((NI) 1));
			res_291165 = ((NI) 0);
			{
				while (1) {
					if (!(res_291165 <= HEX3Atmp_291162)) goto LA32;
					i_291072 = res_291165;
					{
						Tnode225809* a;
						a = (*n).kindU.S6.sons->data[i_291072];
						{
							if (!((*a).kind == ((NU8) 125))) goto LA36;
							goto LA33;
						}
						LA36: ;
						addinterfacesym_289050(w, (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym);
					} LA33: ;
					res_291165 += ((NI) 1);
				} LA32: ;
			}
		}
	}
	break;
	case ((NU8) 98):
	{
		{
			NI i_291098;
			NI HEX3Atmp_291171;
			NI LOC40;
			NI res_291174;
			i_291098 = 0;
			HEX3Atmp_291171 = 0;
			LOC40 = 0;
			LOC40 = sonslen_228387(n);
			HEX3Atmp_291171 = (NI)(LOC40 - ((NI) 1));
			res_291174 = ((NI) 0);
			{
				while (1) {
					if (!(res_291174 <= HEX3Atmp_291171)) goto LA42;
					i_291098 = res_291174;
					{
						Tnode225809* a;
						Tsym225841* s;
						a = (*n).kindU.S6.sons->data[i_291098];
						{
							if (!((*a).kind == ((NU8) 125))) goto LA46;
							goto LA43;
						}
						LA46: ;
						{
							if (!!(((*(*a).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA50;
							internalerror_196172((*a).info, ((NimStringDesc*) &TMP4497));
						}
						LA50: ;
						s = (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
						addinterfacesym_289050(w, s);
					} LA43: ;
					res_291174 += ((NI) 1);
				} LA42: ;
			}
		}
	}
	break;
	case ((NU8) 116):
	{
		{
			NI i_291135;
			NI HEX3Atmp_291179;
			NI LOC54;
			NI res_291182;
			i_291135 = 0;
			HEX3Atmp_291179 = 0;
			LOC54 = 0;
			LOC54 = sonslen_228387(n);
			HEX3Atmp_291179 = (NI)(LOC54 - ((NI) 1));
			res_291182 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* LOC57;
					if (!(res_291182 <= HEX3Atmp_291179)) goto LA56;
					i_291135 = res_291182;
					LOC57 = 0;
					LOC57 = getmodulename_288018((*n).kindU.S6.sons->data[i_291135]);
					addmoddep_289036(w, LOC57);
					res_291182 += ((NI) 1);
				} LA56: ;
			}
		}
		addstmt_289057(w, n);
	}
	break;
	case ((NU8) 120):
	{
		NimStringDesc* LOC59;
		LOC59 = 0;
		LOC59 = getmodulename_288018((*n).kindU.S6.sons->data[((NI) 0)]);
		addmoddep_289036(w, LOC59);
		addstmt_289057(w, n);
	}
	break;
	case ((NU8) 121):
	{
		{
			NI i_291150;
			NI HEX3Atmp_291187;
			NI LOC62;
			NI res_291190;
			i_291150 = 0;
			HEX3Atmp_291187 = 0;
			LOC62 = 0;
			LOC62 = sonslen_228387(n);
			HEX3Atmp_291187 = (NI)(LOC62 - ((NI) 1));
			res_291190 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* LOC65;
					if (!(res_291190 <= HEX3Atmp_291187)) goto LA64;
					i_291150 = res_291190;
					LOC65 = 0;
					LOC65 = getmodulename_288018((*n).kindU.S6.sons->data[i_291150]);
					addincldep_289043(w, LOC65);
					res_291190 += ((NI) 1);
				} LA64: ;
			}
		}
	}
	break;
	case ((NU8) 90):
	{
		addstmt_289057(w, n);
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, writerod_289064)(Trodwriter289005* w) {
	FILE* f;
	NimStringDesc* id;
	NimStringDesc* orig;
	NimStringDesc* hash;
	NimStringDesc* LOC10;
	NimStringDesc* options;
	NimStringDesc* goptions;
	NimStringDesc* cmd;
	NimStringDesc* files;
{	processstacks_290700(w, NIM_TRUE);
	f = 0;
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		NimStringDesc* LOC5;
		NimStringDesc* LOC6;
		NIM_BOOL LOC7;
		LOC3 = 0;
		LOC3 = tofilename_191655(((NI32) ((*(*w).module).position)));
		LOC4 = 0;
		LOC4 = withpackagename_168144(LOC3);
		LOC5 = 0;
		LOC5 = noschangeFileExt(LOC4, ((NimStringDesc*) &TMP4499));
		LOC6 = 0;
		LOC6 = completegeneratedfilepath_168201(LOC5, NIM_TRUE);
		LOC7 = 0;
		LOC7 = open_16803(&f, LOC6, ((NU8) 1), ((NI) -1));
		if (!!(LOC7)) goto LA8;
		goto BeforeRet;
	}
	LA8: ;
	write_16895(f, ((NimStringDesc*) &TMP4500));
	write_16895(f, ((NimStringDesc*) &TMP4501));
	write_16895(f, ((NimStringDesc*) &TMP4490));
	id = copyString(((NimStringDesc*) &TMP4502));
	encodevint_232294((*(*w).module).Sup.id, (&id));
	write_16895(f, id);
	write_16895(f, ((NimStringDesc*) &TMP4490));
	orig = copyString(((NimStringDesc*) &TMP4503));
	encodestr_232039((*w).origfile, (&orig));
	write_16895(f, orig);
	write_16895(f, ((NimStringDesc*) &TMP4490));
	hash = copyString(((NimStringDesc*) &TMP4504));
	LOC10 = 0;
	LOC10 = HEX24_201044((*w).hash);
	encodestr_232039(LOC10, (&hash));
	write_16895(f, hash);
	write_16895(f, ((NimStringDesc*) &TMP4490));
	options = copyString(((NimStringDesc*) &TMP4505));
	encodevint_232294(((NI) (((NI32) ((*w).options)))), (&options));
	write_16895(f, options);
	write_16895(f, ((NimStringDesc*) &TMP4490));
	goptions = copyString(((NimStringDesc*) &TMP4506));
	encodevint_232294(((NI) (((NI32) (gglobaloptions_167132)))), (&goptions));
	write_16895(f, goptions);
	write_16895(f, ((NimStringDesc*) &TMP4490));
	cmd = copyString(((NimStringDesc*) &TMP4507));
	encodevint_232294(((NI) (((NI32) (gcmd_167134)))), (&cmd));
	write_16895(f, cmd);
	write_16895(f, ((NimStringDesc*) &TMP4490));
	write_16895(f, ((NimStringDesc*) &TMP4508));
	write_16895(f, (*w).defines);
	write_16895(f, ((NimStringDesc*) &TMP4490));
	files = copyString(((NimStringDesc*) &TMP4509));
	{
		NI i_290873;
		NI HEX3Atmp_290947;
		NI res_290950;
		i_290873 = 0;
		HEX3Atmp_290947 = 0;
		HEX3Atmp_290947 = ((*w).files ? ((*w).files->Sup.len-1) : -1);
		res_290950 = ((NI) 0);
		{
			while (1) {
				if (!(res_290950 <= HEX3Atmp_290947)) goto LA13;
				i_290873 = res_290950;
				encodestr_232039((*w).files->data[i_290873], (&files));
				files = resizeString(files, 1);
appendString(files, ((NimStringDesc*) &TMP4490));
				res_290950 += ((NI) 1);
			} LA13: ;
		}
	}
	write_16895(f, files);
	write_16895(f, ((NimStringDesc*) &TMP4510));
	write_16895(f, ((NimStringDesc*) &TMP4511));
	write_16895(f, (*w).incldeps);
	write_16895(f, ((NimStringDesc*) &TMP4510));
	write_16895(f, ((NimStringDesc*) &TMP4512));
	write_16895(f, (*w).moddeps);
	write_16895(f, ((NimStringDesc*) &TMP4490));
	write_16895(f, ((NimStringDesc*) &TMP4513));
	write_16895(f, (*w).interf);
	write_16895(f, ((NimStringDesc*) &TMP4510));
	write_16895(f, ((NimStringDesc*) &TMP4514));
	write_16895(f, (*w).compilerprocs);
	write_16895(f, ((NimStringDesc*) &TMP4510));
	write_16895(f, ((NimStringDesc*) &TMP4515));
	write_16895(f, (*w).index.r);
	write_16895(f, ((NimStringDesc*) &TMP4510));
	write_16895(f, ((NimStringDesc*) &TMP4516));
	write_16895(f, (*w).imports.r);
	write_16895(f, ((NimStringDesc*) &TMP4510));
	write_16895(f, ((NimStringDesc*) &TMP4517));
	write_16895(f, (*w).converters);
	write_16895(f, ((NimStringDesc*) &TMP4490));
	write_16895(f, ((NimStringDesc*) &TMP4518));
	write_16895(f, (*w).methods);
	write_16895(f, ((NimStringDesc*) &TMP4490));
	write_16895(f, ((NimStringDesc*) &TMP4519));
	write_16895(f, (*w).init);
	write_16895(f, ((NimStringDesc*) &TMP4510));
	write_16895(f, ((NimStringDesc*) &TMP4520));
	write_16895(f, (*w).data);
	write_16895(f, ((NimStringDesc*) &TMP4510));
	write_16895(f, ((NimStringDesc*) &TMP4521));
	fclose(f);
	}BeforeRet: ;
}

N_NIMCALL(Tnode225809*, myclose_291267)(Tpasscontext277005* c, Tnode225809* n) {
	Tnode225809* result;
	Trodwriter289005* w;
	NimStringDesc* LOC1;
	result = 0;
	result = process_290969(c, n);
	w = ((Trodwriter289005*) (c));
	writerod_289064(w);
	LOC1 = 0;
	LOC1 = HEX2F_123481(gprojectpath_167235, gprojectname_167234);
	savemaxids_224472(LOC1);
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_rodwriteInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_rodwriteDatInit000)(void) {
static TNimNode* TMP4484[18];
static TNimNode TMP917[19];
NTI289005.size = sizeof(Trodwriter289005);
NTI289005.kind = 17;
NTI289005.base = (&NTI277005);
TMP4484[0] = &TMP917[1];
TMP917[1].kind = 1;
TMP917[1].offset = offsetof(Trodwriter289005, module);
TMP917[1].typ = (&NTI225807);
TMP917[1].name = "module";
TMP4484[1] = &TMP917[2];
TMP917[2].kind = 1;
TMP917[2].offset = offsetof(Trodwriter289005, hash);
TMP917[2].typ = (&NTI201009);
TMP917[2].name = "hash";
TMP4484[2] = &TMP917[3];
TMP917[3].kind = 1;
TMP917[3].offset = offsetof(Trodwriter289005, options);
TMP917[3].typ = (&NTI167017);
TMP917[3].name = "options";
TMP4484[3] = &TMP917[4];
TMP917[4].kind = 1;
TMP917[4].offset = offsetof(Trodwriter289005, defines);
TMP917[4].typ = (&NTI149);
TMP917[4].name = "defines";
TMP4484[4] = &TMP917[5];
TMP917[5].kind = 1;
TMP917[5].offset = offsetof(Trodwriter289005, incldeps);
TMP917[5].typ = (&NTI149);
TMP917[5].name = "inclDeps";
TMP4484[5] = &TMP917[6];
TMP917[6].kind = 1;
TMP917[6].offset = offsetof(Trodwriter289005, moddeps);
TMP917[6].typ = (&NTI149);
TMP917[6].name = "modDeps";
TMP4484[6] = &TMP917[7];
TMP917[7].kind = 1;
TMP917[7].offset = offsetof(Trodwriter289005, interf);
TMP917[7].typ = (&NTI149);
TMP917[7].name = "interf";
TMP4484[7] = &TMP917[8];
TMP917[8].kind = 1;
TMP917[8].offset = offsetof(Trodwriter289005, compilerprocs);
TMP917[8].typ = (&NTI149);
TMP917[8].name = "compilerProcs";
TMP4484[8] = &TMP917[9];
TMP917[9].kind = 1;
TMP917[9].offset = offsetof(Trodwriter289005, index);
TMP917[9].typ = (&NTI268028);
TMP917[9].name = "index";
TMP4484[9] = &TMP917[10];
TMP917[10].kind = 1;
TMP917[10].offset = offsetof(Trodwriter289005, imports);
TMP917[10].typ = (&NTI268028);
TMP917[10].name = "imports";
TMP4484[10] = &TMP917[11];
TMP917[11].kind = 1;
TMP917[11].offset = offsetof(Trodwriter289005, converters);
TMP917[11].typ = (&NTI149);
TMP917[11].name = "converters";
TMP4484[11] = &TMP917[12];
TMP917[12].kind = 1;
TMP917[12].offset = offsetof(Trodwriter289005, methods);
TMP917[12].typ = (&NTI149);
TMP917[12].name = "methods";
TMP4484[12] = &TMP917[13];
TMP917[13].kind = 1;
TMP917[13].offset = offsetof(Trodwriter289005, init);
TMP917[13].typ = (&NTI149);
TMP917[13].name = "init";
TMP4484[13] = &TMP917[14];
TMP917[14].kind = 1;
TMP917[14].offset = offsetof(Trodwriter289005, data);
TMP917[14].typ = (&NTI149);
TMP917[14].name = "data";
TMP4484[14] = &TMP917[15];
TMP917[15].kind = 1;
TMP917[15].offset = offsetof(Trodwriter289005, sstack);
TMP917[15].typ = (&NTI225811);
TMP917[15].name = "sstack";
TMP4484[15] = &TMP917[16];
TMP917[16].kind = 1;
TMP917[16].offset = offsetof(Trodwriter289005, tstack);
TMP917[16].typ = (&NTI225843);
TMP917[16].name = "tstack";
TMP4484[16] = &TMP917[17];
TMP917[17].kind = 1;
TMP917[17].offset = offsetof(Trodwriter289005, files);
TMP917[17].typ = (&NTI130408);
TMP917[17].name = "files";
TMP4484[17] = &TMP917[18];
TMP917[18].kind = 1;
TMP917[18].offset = offsetof(Trodwriter289005, origfile);
TMP917[18].typ = (&NTI149);
TMP917[18].name = "origFile";
TMP917[0].len = 18; TMP917[0].kind = 2; TMP917[0].sons = &TMP4484[0];
NTI289005.node = &TMP917[0];
NTI289007.size = sizeof(Trodwriter289005*);
NTI289007.kind = 22;
NTI289007.base = (&NTI289005);
NTI289007.marker = TMP4485;
}

