/* 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 Tpasscontext276005 Tpasscontext276005;
typedef struct Tsym224841 Tsym224841;
typedef struct Tidobj197015 Tidobj197015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Ttypeseq224843 Ttypeseq224843;
typedef struct Tscope224835 Tscope224835;
typedef struct TY224944 TY224944;
typedef struct Tstrtable224813 Tstrtable224813;
typedef struct Tsymseq224811 Tsymseq224811;
typedef struct Ttype224847 Ttype224847;
typedef struct Tident197021 Tident197021;
typedef struct Tlineinfo189352 Tlineinfo189352;
typedef struct Tnode224809 Tnode224809;
typedef struct Tloc224823 Tloc224823;
typedef struct Ropeobj175009 Ropeobj175009;
typedef struct Tlib224827 Tlib224827;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Trodwriter288005 Trodwriter288005;
typedef struct Tindex267028 Tindex267028;
typedef struct Tiitable232274 Tiitable232274;
typedef struct Tiipairseq232272 Tiipairseq232272;
typedef struct TY130408 TY130408;
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 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 Tnodeseq224803 Tnodeseq224803;
typedef struct Tinstantiation224831 Tinstantiation224831;
typedef struct Tiipair232270 Tiipair232270;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct TY224932 TY224932;
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  Tidobj197015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable224813  {
NI counter;
Tsymseq224811* data;
};
struct  Tlineinfo189352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc224823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype224847* t;
Ropeobj175009* r;
Ropeobj175009* heaproot;
};
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  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 Sha1digest200009[20];
struct  Tpasscontext276005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Tiitable232274  {
NI counter;
Tiipairseq232272* data;
};
struct  Tindex267028  {
NI lastidxkey;
NI lastidxval;
Tiitable232274 tab;
NimStringDesc* r;
NI offset;
};
struct  Trodwriter288005  {
  Tpasscontext276005 Sup;
Tsym224841* module;
Sha1digest200009 hash;
NU32 options;
NimStringDesc* defines;
NimStringDesc* incldeps;
NimStringDesc* moddeps;
NimStringDesc* interf;
NimStringDesc* compilerprocs;
Tindex267028 index;
Tindex267028 imports;
NimStringDesc* converters;
NimStringDesc* methods;
NimStringDesc* init;
NimStringDesc* data;
Tsymseq224811* sstack;
Ttypeseq224843* tstack;
TY130408* files;
NimStringDesc* origfile;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
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 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;
Cellseq48963 zct;
Cellseq48963 decstack;
Cellset48959 cycleroots;
Cellseq48963 tempstack;
NI recgclock;
Memregion30890 region;
Gcstat51014 stat;
};
struct  Stringtableobj145212  {
  TNimObject Sup;
NI counter;
Keyvaluepairseq145210* data;
NU8 mode;
};
struct Keyvaluepair145208 {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
struct  Tident197021  {
  Tidobj197015 Sup;
NimStringDesc* s;
Tident197021* next;
NI h;
};
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  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tlib224827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj175009* name;
Tnode224809* path;
};
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  Tscope224835  {
NI depthlevel;
Tstrtable224813 symbols;
Tnodeseq224803* usingsyms;
Tscope224835* parent;
};
struct  Ropeobj175009  {
  TNimObject Sup;
Ropeobj175009* left;
Ropeobj175009* right;
NI length;
NimStringDesc* data;
};
struct  Tiipair232270  {
NI key;
NI val;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30821[16];
struct  Pagedesc48955  {
Pagedesc48955* 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  Tinstantiation224831  {
Tsym224841* sym;
Ttypeseq224843* concretetypes;
TY224932* usedby;
NI compilesid;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct Tsymseq224811 {
  TGenericSeq Sup;
  Tsym224841* data[SEQ_DECL_SIZE];
};
struct Ttypeseq224843 {
  TGenericSeq Sup;
  Ttype224847* data[SEQ_DECL_SIZE];
};
struct TY130408 {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct TY224944 {
  TGenericSeq Sup;
  Tinstantiation224831* data[SEQ_DECL_SIZE];
};
struct Tiipairseq232272 {
  TGenericSeq Sup;
  Tiipair232270 data[SEQ_DECL_SIZE];
};
struct Keyvaluepairseq145210 {
  TGenericSeq Sup;
  Keyvaluepair145208 data[SEQ_DECL_SIZE];
};
struct Tnodeseq224803 {
  TGenericSeq Sup;
  Tnode224809* data[SEQ_DECL_SIZE];
};
struct TY224932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, internalerror_195191)(NimStringDesc* errmsg);
N_NIMCALL(Trodwriter288005*, newrodwriter_288029)(Sha1digest200009 hash, Tsym224841* module);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4483)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
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*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, initiitable_232282)(Tiitable232274* x);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(NimStringDesc*, getdefines_288070)(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_190655)(NI32 fileidx);
N_NIMCALL(void, gethash_269722)(NI32 fileidx, Sha1digest200009* Result);
N_NIMCALL(void, rawaddinterfacesym_289721)(Trodwriter288005* w, Tsym224841* s);
N_NIMCALL(void, pushsym_288299)(Trodwriter288005* w, Tsym224841* s);
N_NIMCALL(NI, iitableget_232289)(Tiitable232274 t, NI key);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, processstacks_289700)(Trodwriter288005* w, NIM_BOOL finalpass);
N_NIMCALL(NI, symstack_289201)(Trodwriter288005* w);
N_NIMCALL(Tsym224841*, getmodule_232243)(Tsym224841* s);
N_NIMCALL(void, addtoindex_289009)(Tindex267028* w, NI key, NI val);
N_NIMCALL(void, encodevint_231294)(NI x, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(void, iitableput_232296)(Tiitable232274* t, NI key, NI val);
N_NIMCALL(void, encodesym_288695)(Trodwriter288005* w, Tsym224841* s, NimStringDesc** result);
N_NIMCALL(void, encodestr_231039)(NimStringDesc* s, NimStringDesc** result);
N_NIMCALL(void, pushtype_288279)(Trodwriter288005* w, Ttype224847* t);
N_NIMCALL(NI, fileidx_288111)(Trodwriter288005* w, NimStringDesc* filename);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, encodeloc_288434)(Trodwriter288005* w, Tloc224823 loc, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, HEX24_176132)(Ropeobj175009* r);
N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newlen);
N_NIMCALL(void, encodelib_288674)(Trodwriter288005* w, Tlib224827* lib, Tlineinfo189352 info, NimStringDesc** result);
N_NIMCALL(void, encodenode_288320)(Trodwriter288005* w, Tlineinfo189352 finfo, Tnode224809* n, NimStringDesc** result);
N_NIMCALL(void, encodevbiggestint_231256)(NI64 x, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(NI, sonslen_227387)(Tnode224809* n);
N_NIMCALL(Tlineinfo189352, unknownlineinfo_190411)(void);
static N_INLINE(NIM_BOOL, haspattern_229783)(Tsym224841* s);
static N_INLINE(NIM_BOOL, isroutine_229763)(Tsym224841* s);
N_NIMCALL(NI, typestack_289633)(Trodwriter288005* w);
N_NIMCALL(void, encodetype_288521)(Trodwriter288005* w, Ttype224847* t, NimStringDesc** result);
N_NIMCALL(NI, sonslen_227351)(Ttype224847* n);
N_NIMCALL(Tnode224809*, process_289969)(Tpasscontext276005* c, Tnode224809* n);
N_NIMCALL(void, internalerror_195172)(Tlineinfo189352 info, NimStringDesc* errmsg);
N_NIMCALL(void, addinterfacesym_288050)(Trodwriter288005* w, Tsym224841* s);
N_NIMCALL(void, addmoddep_288036)(Trodwriter288005* w, NimStringDesc* dep);
N_NIMCALL(NimStringDesc*, getmodulename_287018)(Tnode224809* n);
N_NIMCALL(void, addstmt_288057)(Trodwriter288005* w, Tnode224809* n);
N_NIMCALL(void, addincldep_288043)(Trodwriter288005* w, NimStringDesc* dep);
N_NIMCALL(NimStringDesc*, findmodule_167549)(NimStringDesc* modulename, NimStringDesc* currentmodule);
N_NIMCALL(NimStringDesc*, tofullpath_190665)(NI32 fileidx);
N_NIMCALL(NimStringDesc*, HEX24_200044)(Sha1digest200009 self);
N_NIMCALL(void, securehashfile_200034)(NimStringDesc* filename, Sha1digest200009* Result);
N_NIMCALL(void, writerod_288064)(Trodwriter288005* w);
N_NIMCALL(NIM_BOOL, open_16803)(FILE** f, NimStringDesc* filename, NU8 mode, NI bufsize);
N_NIMCALL(NimStringDesc*, completegeneratedfilepath_167201)(NimStringDesc* f, NIM_BOOL createsubdir);
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(NimStringDesc*, withpackagename_167144)(NimStringDesc* path);
N_NIMCALL(void, write_16895)(FILE* f, NimStringDesc* s);
N_NIMCALL(void, savemaxids_223472)(NimStringDesc* project);
N_NIMCALL(NimStringDesc*, HEX2F_123481)(NimStringDesc* head, NimStringDesc* tail);
STRING_LITERAL(TMP4481, "rodwrite: module ID not set", 27);
STRING_LITERAL(TMP4484, "", 0);
STRING_LITERAL(TMP4485, "false", 5);
STRING_LITERAL(TMP4486, " ", 1);
STRING_LITERAL(TMP4487, "symStack: module nil: ", 22);
STRING_LITERAL(TMP4488, "\012", 1);
STRING_LITERAL(TMP4489, "{}", 2);
STRING_LITERAL(TMP4490, "()", 2);
STRING_LITERAL(TMP4491, "[]", 2);
STRING_LITERAL(TMP4492, "encodeType: tyForward", 21);
STRING_LITERAL(TMP4493, "^()", 3);
STRING_LITERAL(TMP4494, "could not serialize some forwarded symbols/types", 48);
STRING_LITERAL(TMP4495, "rodwrite.process", 16);
STRING_LITERAL(TMP4496, "rodwrite.process: body is nil", 29);
STRING_LITERAL(TMP4497, "rod", 3);
STRING_LITERAL(TMP4498, "NIM:", 4);
STRING_LITERAL(TMP4499, "1215", 4);
STRING_LITERAL(TMP4500, "ID:", 3);
STRING_LITERAL(TMP4501, "ORIGFILE:", 9);
STRING_LITERAL(TMP4502, "HASH:", 5);
STRING_LITERAL(TMP4503, "OPTIONS:", 8);
STRING_LITERAL(TMP4504, "GOPTIONS:", 9);
STRING_LITERAL(TMP4505, "CMD:", 4);
STRING_LITERAL(TMP4506, "DEFINES:", 8);
STRING_LITERAL(TMP4507, "FILES(\012", 7);
STRING_LITERAL(TMP4508, ")\012", 2);
STRING_LITERAL(TMP4509, "INCLUDES(\012", 10);
STRING_LITERAL(TMP4510, "DEPS:", 5);
STRING_LITERAL(TMP4511, "INTERF(\012", 8);
STRING_LITERAL(TMP4512, "COMPILERPROCS(\012", 15);
STRING_LITERAL(TMP4513, "INDEX(\012", 7);
STRING_LITERAL(TMP4514, "IMPORTS(\012", 9);
STRING_LITERAL(TMP4515, "CONVERTERS:", 11);
STRING_LITERAL(TMP4516, "METHODS:", 8);
STRING_LITERAL(TMP4517, "INIT(\012", 6);
STRING_LITERAL(TMP4518, "DATA(\012", 6);
STRING_LITERAL(TMP4519, "\000", 1);
extern TNimType NTI276005; /* TPassContext */
TNimType NTI288005; /* TRodWriter */
extern TNimType NTI224807; /* PSym */
extern TNimType NTI200009; /* Sha1Digest */
extern TNimType NTI166017; /* TOptions */
extern TNimType NTI149; /* string */
extern TNimType NTI267028; /* TIndex */
extern TNimType NTI224811; /* TSymSeq */
extern TNimType NTI224843; /* TTypeSeq */
extern TNimType NTI130408; /* seq[string] */
TNimType NTI288007; /* PRodWriter */
extern Gcheap51018 gch_51059;
extern Stringtableobj145212* gsymbols_198004;
extern NU32 goptions_166130;
extern NU32 gglobaloptions_166132;
extern NU8 gcmd_166134;
extern NimStringDesc* gprojectpath_166235;
extern NimStringDesc* gprojectname_166234;
N_NIMCALL(void, TMP4483)(void* p, NI op) {
	Trodwriter288005* a;
	a = (Trodwriter288005*)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(Cell48947*, usrtocell_52646)(void* usr) {
	Cell48947* result;
	result = 0;
	result = ((Cell48947*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(Cell48947))))));
	return result;
}

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

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell48947* 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) {
	{
		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 (!((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_288070)(void) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP4484));
	{
		NimStringDesc* d_288073;
		d_288073 = 0;
		{
			NimStringDesc* key_288079;
			NimStringDesc* val_288081;
			key_288079 = 0;
			val_288081 = 0;
			{
				NI h_288083;
				NI HEX3Atmp_288085;
				NI res_288087;
				h_288083 = 0;
				HEX3Atmp_288085 = 0;
				HEX3Atmp_288085 = ((*gsymbols_198004).data ? ((*gsymbols_198004).data->Sup.len-1) : -1);
				res_288087 = ((NI) 0);
				{
					while (1) {
						if (!(res_288087 <= HEX3Atmp_288085)) goto LA5;
						h_288083 = res_288087;
						{
							if (!!((*gsymbols_198004).data->data[h_288083].Field0 == 0)) goto LA8;
							key_288079 = (*gsymbols_198004).data->data[h_288083].Field0;
							val_288081 = (*gsymbols_198004).data->data[h_288083].Field1;
							{
								if (!!(eqStrings(val_288081, ((NimStringDesc*) &TMP4485)))) goto LA12;
								d_288073 = key_288079;
								{
									if (!!(((result ? result->Sup.len : 0) == ((NI) 0)))) goto LA16;
									result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TMP4486));
								}
								LA16: ;
								result = resizeString(result, d_288073->Sup.len + 0);
appendString(result, d_288073);
							}
							LA12: ;
						}
						LA8: ;
						res_288087 += ((NI) 1);
					} LA5: ;
				}
			}
		}
	}
	return result;
}

N_NIMCALL(Trodwriter288005*, newrodwriter_288029)(Sha1digest200009 hash, Tsym224841* module) {
	Trodwriter288005* result;
	NimStringDesc* LOC1;
	NimStringDesc* LOC2;
	NimStringDesc* LOC3;
	NimStringDesc* LOC4;
	NimStringDesc* LOC5;
	NimStringDesc* LOC6;
	NimStringDesc* LOC7;
	NimStringDesc* LOC8;
	result = 0;
	result = (Trodwriter288005*) newObj((&NTI288007), sizeof(Trodwriter288005));
	(*result).Sup.Sup.m_type = (&NTI288005);
	if ((*result).sstack) nimGCunrefNoCycle((*result).sstack);
	(*result).sstack = (Tsymseq224811*) newSeqRC1((&NTI224811), 0);
	if ((*result).tstack) nimGCunrefNoCycle((*result).tstack);
	(*result).tstack = (Ttypeseq224843*) newSeqRC1((&NTI224843), 0);
	initiitable_232282((&(*result).index.tab));
	initiitable_232282((&(*result).imports.tab));
	LOC1 = 0;
	LOC1 = (*result).index.r; (*result).index.r = copyStringRC1(((NimStringDesc*) &TMP4484));
	if (LOC1) nimGCunrefNoCycle(LOC1);
	LOC2 = 0;
	LOC2 = (*result).imports.r; (*result).imports.r = copyStringRC1(((NimStringDesc*) &TMP4484));
	if (LOC2) nimGCunrefNoCycle(LOC2);
	memcpy((void*)(*result).hash, (NIM_CONST void*)hash, sizeof(Sha1digest200009));
	asgnRefNoCycle((void**) (&(*result).module), module);
	asgnRefNoCycle((void**) (&(*result).defines), getdefines_288070());
	(*result).options = goptions_166130;
	if ((*result).files) nimGCunrefNoCycle((*result).files);
	(*result).files = (TY130408*) newSeqRC1((&NTI130408), 0);
	LOC3 = 0;
	LOC3 = (*result).incldeps; (*result).incldeps = copyStringRC1(((NimStringDesc*) &TMP4484));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	LOC4 = 0;
	LOC4 = (*result).moddeps; (*result).moddeps = copyStringRC1(((NimStringDesc*) &TMP4484));
	if (LOC4) nimGCunrefNoCycle(LOC4);
	asgnRefNoCycle((void**) (&(*result).interf), rawNewString(((NI) 2000)));
	LOC5 = 0;
	LOC5 = (*result).compilerprocs; (*result).compilerprocs = copyStringRC1(((NimStringDesc*) &TMP4484));
	if (LOC5) nimGCunrefNoCycle(LOC5);
	LOC6 = 0;
	LOC6 = (*result).converters; (*result).converters = copyStringRC1(((NimStringDesc*) &TMP4484));
	if (LOC6) nimGCunrefNoCycle(LOC6);
	LOC7 = 0;
	LOC7 = (*result).methods; (*result).methods = copyStringRC1(((NimStringDesc*) &TMP4484));
	if (LOC7) nimGCunrefNoCycle(LOC7);
	LOC8 = 0;
	LOC8 = (*result).init; (*result).init = copyStringRC1(((NimStringDesc*) &TMP4484));
	if (LOC8) nimGCunrefNoCycle(LOC8);
	asgnRefNoCycle((void**) (&(*result).origfile), tofilename_190655((*module).info.fileindex));
	asgnRefNoCycle((void**) (&(*result).data), rawNewString(((NI) 12000)));
	return result;
}

N_NIMCALL(void, pushsym_288299)(Trodwriter288005* w, Tsym224841* s) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = iitableget_232289((*w).index.tab, (*s).Sup.id);
		if (!(LOC3 == ((NI) (-2147483647 -1)))) goto LA4;
		(*w).sstack = (Tsymseq224811*) incrSeqV2(&((*w).sstack)->Sup, sizeof(Tsym224841*));
		asgnRefNoCycle((void**) (&(*w).sstack->data[(*w).sstack->Sup.len]), s);
		++(*w).sstack->Sup.len;
	}
	LA4: ;
}

N_NIMCALL(void, addtoindex_289009)(Tindex267028* w, NI key, NI val) {
	{
		if (!((NI)(key - (*w).lastidxkey) == ((NI) 1))) goto LA3;
		encodevint_231294((NI)(val - (*w).lastidxval), (&(*w).r));
	}
	goto LA1;
	LA3: ;
	{
		encodevint_231294((NI)(key - (*w).lastidxkey), (&(*w).r));
		(*w).r = addChar((*w).r, 32);
		encodevint_231294((NI)(val - (*w).lastidxval), (&(*w).r));
	}
	LA1: ;
	(*w).r = resizeString((*w).r, 1);
appendString((*w).r, ((NimStringDesc*) &TMP4488));
	(*w).lastidxkey = key;
	(*w).lastidxval = val;
	iitableput_232296((&(*w).tab), key, val);
}

N_NIMCALL(void, pushtype_288279)(Trodwriter288005* w, Ttype224847* t) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = iitableget_232289((*w).index.tab, (*t).Sup.id);
		if (!(LOC3 == ((NI) (-2147483647 -1)))) goto LA4;
		(*w).tstack = (Ttypeseq224843*) incrSeqV2(&((*w).tstack)->Sup, sizeof(Ttype224847*));
		asgnRefNoCycle((void**) (&(*w).tstack->data[(*w).tstack->Sup.len]), t);
		++(*w).tstack->Sup.len;
	}
	LA4: ;
}

N_NIMCALL(NI, fileidx_288111)(Trodwriter288005* w, NimStringDesc* filename) {
	NI result;
	NimStringDesc* LOC8;
{	result = 0;
	{
		NI i_288128;
		NI HEX3Atmp_288148;
		NI res_288151;
		i_288128 = 0;
		HEX3Atmp_288148 = 0;
		HEX3Atmp_288148 = ((*w).files ? ((*w).files->Sup.len-1) : -1);
		res_288151 = ((NI) 0);
		{
			while (1) {
				if (!(res_288151 <= HEX3Atmp_288148)) goto LA3;
				i_288128 = res_288151;
				{
					if (!eqStrings((*w).files->data[i_288128], filename)) goto LA6;
					result = i_288128;
					goto BeforeRet;
				}
				LA6: ;
				res_288151 += ((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_288434)(Trodwriter288005* w, Tloc224823 loc, NimStringDesc** result) {
	NI oldlen;
	oldlen = ((*result) ? (*result)->Sup.len : 0);
	(*result) = addChar((*result), 60);
	{
		if (!!((loc.k == ((NU8) 0)))) goto LA3;
		encodevint_231294(((NI) (loc.k)), result);
	}
	LA3: ;
	{
		if (!!((loc.s == ((NU8) 0)))) goto LA7;
		(*result) = addChar((*result), 42);
		encodevint_231294(((NI) (loc.s)), result);
	}
	LA7: ;
	{
		if (!!((loc.flags == 0))) goto LA11;
		(*result) = addChar((*result), 36);
		encodevint_231294(((NI) (((NI32) (loc.flags)))), result);
	}
	LA11: ;
	{
		if (!!((loc.t == NIM_NIL))) goto LA15;
		(*result) = addChar((*result), 94);
		encodevint_231294(((NI) (((NI32) ((*loc.t).Sup.id)))), result);
		pushtype_288279(w, loc.t);
	}
	LA15: ;
	{
		NimStringDesc* LOC21;
		if (!!((loc.r == NIM_NIL))) goto LA19;
		(*result) = addChar((*result), 33);
		LOC21 = 0;
		LOC21 = HEX24_176132(loc.r);
		encodestr_231039(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_288320)(Trodwriter288005* w, Tlineinfo189352 finfo, Tnode224809* n, NimStringDesc** result) {
	NU16 f;
{	{
		if (!(n == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4490));
		goto BeforeRet;
	}
	LA3: ;
	(*result) = addChar((*result), 40);
	encodevint_231294(((NI) ((*n).kind)), result);
	{
		NimStringDesc* LOC9;
		NI LOC10;
		if (!!((finfo.fileindex == (*n).info.fileindex))) goto LA7;
		(*result) = addChar((*result), 63);
		encodevint_231294(((NI) ((*n).info.col)), result);
		(*result) = addChar((*result), 44);
		encodevint_231294(((NI) ((*n).info.line)), result);
		(*result) = addChar((*result), 44);
		LOC9 = 0;
		LOC9 = tofilename_190655((*n).info.fileindex);
		LOC10 = 0;
		LOC10 = fileidx_288111(w, LOC9);
		encodevint_231294(LOC10, result);
	}
	goto LA5;
	LA7: ;
	{
		if (!!((finfo.line == (*n).info.line))) goto LA12;
		(*result) = addChar((*result), 63);
		encodevint_231294(((NI) ((*n).info.col)), result);
		(*result) = addChar((*result), 44);
		encodevint_231294(((NI) ((*n).info.line)), result);
	}
	goto LA5;
	LA12: ;
	{
		if (!!((finfo.col == (*n).info.col))) goto LA15;
		(*result) = addChar((*result), 63);
		encodevint_231294(((NI) ((*n).info.col)), result);
	}
	goto LA5;
	LA15: ;
	LA5: ;
	f = ((*n).flags & 26126);
	{
		if (!!((f == 0))) goto LA19;
		(*result) = addChar((*result), 36);
		encodevint_231294(((NI) (((NI32) (f)))), result);
	}
	LA19: ;
	{
		if (!!(((*n).typ == NIM_NIL))) goto LA23;
		(*result) = addChar((*result), 94);
		encodevint_231294((*(*n).typ).Sup.id, result);
		pushtype_288279(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_231256((*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_231039(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_231039((*n).kindU.S3.strval, result);
		}
		LA39: ;
	}
	break;
	case ((NU8) 2):
	{
		(*result) = addChar((*result), 33);
		encodestr_231039((*(*n).kindU.S5.ident).s, result);
	}
	break;
	case ((NU8) 3):
	{
		(*result) = addChar((*result), 33);
		encodevint_231294((*(*n).kindU.S4.sym).Sup.id, result);
		pushsym_288299(w, (*n).kindU.S4.sym);
	}
	break;
	default:
	{
		{
			NI i_288408;
			NI HEX3Atmp_288412;
			NI LOC45;
			NI res_288415;
			i_288408 = 0;
			HEX3Atmp_288412 = 0;
			LOC45 = 0;
			LOC45 = sonslen_227387(n);
			HEX3Atmp_288412 = (NI)(LOC45 - ((NI) 1));
			res_288415 = ((NI) 0);
			{
				while (1) {
					if (!(res_288415 <= HEX3Atmp_288412)) goto LA47;
					i_288408 = res_288415;
					encodenode_288320(w, (*n).info, (*n).kindU.S6.sons->data[i_288408], result);
					res_288415 += ((NI) 1);
				} LA47: ;
			}
		}
	}
	break;
	}
	(*result) = addChar((*result), 41);
	}BeforeRet: ;
}

N_NIMCALL(void, encodelib_288674)(Trodwriter288005* w, Tlib224827* lib, Tlineinfo189352 info, NimStringDesc** result) {
	NimStringDesc* LOC1;
	(*result) = addChar((*result), 124);
	encodevint_231294(((NI) ((*lib).kind)), result);
	(*result) = addChar((*result), 124);
	LOC1 = 0;
	LOC1 = HEX24_176132((*lib).name);
	encodestr_231039(LOC1, result);
	(*result) = addChar((*result), 124);
	encodenode_288320(w, info, (*lib).path, result);
}

N_NIMCALL(void, encodesym_288695)(Trodwriter288005* w, Tsym224841* s, NimStringDesc** result) {
	NimStringDesc* LOC17;
	NI LOC18;
{	{
		if (!(s == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4489));
		goto BeforeRet;
	}
	LA3: ;
	encodevint_231294(((NI) ((*s).kind)), result);
	(*result) = addChar((*result), 43);
	encodevint_231294((*s).Sup.id, result);
	(*result) = addChar((*result), 38);
	encodestr_231039((*(*s).name).s, result);
	{
		if (!!(((*s).typ == NIM_NIL))) goto LA7;
		(*result) = addChar((*result), 94);
		encodevint_231294((*(*s).typ).Sup.id, result);
		pushtype_288279(w, (*s).typ);
	}
	LA7: ;
	(*result) = addChar((*result), 63);
	{
		if (!!(((*s).info.col == ((NI16) -1)))) goto LA11;
		encodevint_231294(((NI) ((*s).info.col)), result);
	}
	LA11: ;
	(*result) = addChar((*result), 44);
	{
		if (!!(((*s).info.line == ((NI16) -1)))) goto LA15;
		encodevint_231294(((NI) ((*s).info.line)), result);
	}
	LA15: ;
	(*result) = addChar((*result), 44);
	LOC17 = 0;
	LOC17 = tofilename_190655((*s).info.fileindex);
	LOC18 = 0;
	LOC18 = fileidx_288111(w, LOC17);
	encodevint_231294(LOC18, result);
	{
		if (!!(((*s).owner == NIM_NIL))) goto LA21;
		(*result) = addChar((*result), 42);
		encodevint_231294((*(*s).owner).Sup.id, result);
		pushsym_288299(w, (*s).owner);
	}
	LA21: ;
	{
		if (!!(((*s).flags == 0))) goto LA25;
		(*result) = addChar((*result), 36);
		encodevint_231294(((NI) (((NI32) ((*s).flags)))), result);
	}
	LA25: ;
	{
		if (!!(((*s).magic == ((NU8) 0)))) goto LA29;
		(*result) = addChar((*result), 64);
		encodevint_231294(((NI) ((*s).magic)), result);
	}
	LA29: ;
	{
		if (!!(((*s).options == (*w).options))) goto LA33;
		(*result) = addChar((*result), 33);
		encodevint_231294(((NI) (((NI32) ((*s).options)))), result);
	}
	LA33: ;
	{
		if (!!(((*s).position == ((NI) 0)))) goto LA37;
		(*result) = addChar((*result), 37);
		encodevint_231294((*s).position, result);
	}
	LA37: ;
	{
		if (!!(((*s).offset == ((NI) -1)))) goto LA41;
		(*result) = addChar((*result), 96);
		encodevint_231294((*s).offset, result);
	}
	LA41: ;
	encodeloc_288434(w, (*s).loc, result);
	{
		if (!!(((*s).annex == NIM_NIL))) goto LA45;
		encodelib_288674(w, (*s).annex, (*s).info, result);
	}
	LA45: ;
	{
		Tlineinfo189352 LOC51;
		if (!!(((*s).constraint == NIM_NIL))) goto LA49;
		(*result) = addChar((*result), 35);
		LOC51 = unknownlineinfo_190411();
		encodenode_288320(w, LOC51, (*s).constraint, result);
	}
	LA49: ;
	{
		if (!!(((*s).ast == NIM_NIL))) goto LA54;
		encodenode_288320(w, (*s).info, (*s).ast, result);
	}
	LA54: ;
	}BeforeRet: ;
}

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

static N_INLINE(NIM_BOOL, haspattern_229783)(Tsym224841* s) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = isroutine_229763(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_289201)(Trodwriter288005* w) {
	NI result;
	NI i;
	result = 0;
	i = ((NI) 0);
	{
		while (1) {
			Tsym224841* 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;
				Tsym224841* m;
				LOC8 = 0;
				LOC8 = iitableget_232289((*w).index.tab, (*s).Sup.id);
				if (!(LOC8 == ((NI) (-2147483647 -1)))) goto LA9;
				m = getmodule_232243(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*) &TMP4487));
appendString(LOC17, (*(*s).name).s);
					internalerror_195191(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_289009((&(*w).index), (*s).Sup.id, L);
					encodesym_288695(w, s, (&(*w).data));
					(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4488));
					{
						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_231039((*(*s).name).s, (&(*w).interf));
						(*w).interf = addChar((*w).interf, 32);
						encodevint_231294((*s).Sup.id, (&(*w).interf));
						(*w).interf = resizeString((*w).interf, 1);
appendString((*w).interf, ((NimStringDesc*) &TMP4488));
					}
					LA30: ;
					{
						if (!(((*s).flags &(1<<((((NU8) 16))&31)))!=0)) goto LA34;
						encodestr_231039((*(*s).name).s, (&(*w).compilerprocs));
						(*w).compilerprocs = addChar((*w).compilerprocs, 32);
						encodevint_231294((*s).Sup.id, (&(*w).compilerprocs));
						(*w).compilerprocs = resizeString((*w).compilerprocs, 1);
appendString((*w).compilerprocs, ((NimStringDesc*) &TMP4488));
					}
					LA34: ;
					{
						NIM_BOOL LOC38;
						LOC38 = 0;
						LOC38 = ((*s).kind == ((NU8) 16));
						if (LOC38) goto LA39;
						LOC38 = haspattern_229783(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_231294((*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_231294((*s).Sup.id, (&(*w).methods));
					}
					LA50: ;
				}
				goto LA18;
				LA24: ;
				{
					NI LOC57;
					LOC57 = 0;
					LOC57 = iitableget_232289((*w).imports.tab, (*s).Sup.id);
					if (!(LOC57 == ((NI) (-2147483647 -1)))) goto LA58;
					addtoindex_289009((&(*w).imports), (*s).Sup.id, (*m).Sup.id);
				}
				goto LA18;
				LA58: ;
				LA18: ;
			}
			goto LA3;
			LA9: ;
			LA3: ;
			i += ((NI) 1);
		} LA2: ;
	}
	(*w).sstack = (Tsymseq224811*) setLengthSeq(&((*w).sstack)->Sup, sizeof(Tsym224841*), ((NI) (result)));
	return result;
}

N_NIMCALL(void, encodetype_288521)(Trodwriter288005* w, Ttype224847* t, NimStringDesc** result) {
{	{
		if (!(t == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4491));
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!((*t).kind == ((NU8) 30))) goto LA7;
		internalerror_195191(((NimStringDesc*) &TMP4492));
	}
	LA7: ;
	(*result) = addChar((*result), 91);
	encodevint_231294(((NI) ((*t).kind)), result);
	(*result) = addChar((*result), 43);
	encodevint_231294((*t).Sup.id, result);
	{
		Tlineinfo189352 LOC13;
		if (!!(((*t).n == NIM_NIL))) goto LA11;
		LOC13 = unknownlineinfo_190411();
		encodenode_288320(w, LOC13, (*t).n, result);
	}
	LA11: ;
	{
		if (!!(((*t).flags == 0))) goto LA16;
		(*result) = addChar((*result), 36);
		encodevint_231294(((NI) (((NI32) ((*t).flags)))), result);
	}
	LA16: ;
	{
		if (!!(((*t).callconv == ((NU8) 0)))) goto LA20;
		(*result) = addChar((*result), 63);
		encodevint_231294(((NI) ((*t).callconv)), result);
	}
	LA20: ;
	{
		if (!!(((*t).owner == NIM_NIL))) goto LA24;
		(*result) = addChar((*result), 42);
		encodevint_231294((*(*t).owner).Sup.id, result);
		pushsym_288299(w, (*t).owner);
	}
	LA24: ;
	{
		if (!!(((*t).sym == NIM_NIL))) goto LA28;
		(*result) = addChar((*result), 38);
		encodevint_231294((*(*t).sym).Sup.id, result);
		pushsym_288299(w, (*t).sym);
	}
	LA28: ;
	{
		if (!!(((*t).size == IL64(-1)))) goto LA32;
		(*result) = addChar((*result), 47);
		encodevbiggestint_231256((*t).size, result);
	}
	LA32: ;
	{
		if (!!(((*t).align == ((NI16) 2)))) goto LA36;
		(*result) = addChar((*result), 61);
		encodevint_231294(((NI) ((*t).align)), result);
	}
	LA36: ;
	encodeloc_288434(w, (*t).loc, result);
	{
		NI i_288637;
		NI HEX3Atmp_288652;
		NI LOC39;
		NI res_288655;
		i_288637 = 0;
		HEX3Atmp_288652 = 0;
		LOC39 = 0;
		LOC39 = sonslen_227351(t);
		HEX3Atmp_288652 = (NI)(LOC39 - ((NI) 1));
		res_288655 = ((NI) 0);
		{
			while (1) {
				if (!(res_288655 <= HEX3Atmp_288652)) goto LA41;
				i_288637 = res_288655;
				{
					if (!((*t).sons->data[i_288637] == NIM_NIL)) goto LA44;
					(*result) = resizeString((*result), 3);
appendString((*result), ((NimStringDesc*) &TMP4493));
				}
				goto LA42;
				LA44: ;
				{
					(*result) = addChar((*result), 94);
					encodevint_231294((*(*t).sons->data[i_288637]).Sup.id, result);
					pushtype_288279(w, (*t).sons->data[i_288637]);
				}
				LA42: ;
				res_288655 += ((NI) 1);
			} LA41: ;
		}
	}
	}BeforeRet: ;
}

N_NIMCALL(NI, typestack_289633)(Trodwriter288005* w) {
	NI result;
	NI i;
	result = 0;
	i = ((NI) 0);
	{
		while (1) {
			Ttype224847* 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_232289((*w).index.tab, (*t).Sup.id);
				if (!(LOC8 == ((NI) (-2147483647 -1)))) goto LA9;
				L = ((*w).data ? (*w).data->Sup.len : 0);
				addtoindex_289009((&(*w).index), (*t).Sup.id, L);
				encodetype_288521(w, t, (&(*w).data));
				(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4488));
			}
			goto LA3;
			LA9: ;
			LA3: ;
			i += ((NI) 1);
		} LA2: ;
	}
	(*w).tstack = (Ttypeseq224843*) setLengthSeq(&((*w).tstack)->Sup, sizeof(Ttype224847*), ((NI) (result)));
	return result;
}

N_NIMCALL(void, processstacks_289700)(Trodwriter288005* w, NIM_BOOL finalpass) {
	NI olds;
	NI oldt;
	olds = ((NI) 0);
	oldt = ((NI) 0);
	{
		while (1) {
			NI slen;
			NI tlen;
			slen = symstack_289201(w);
			tlen = typestack_289633(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_195191(((NimStringDesc*) &TMP4494));
	}
	LA15: ;
}

N_NIMCALL(void, rawaddinterfacesym_289721)(Trodwriter288005* w, Tsym224841* s) {
	pushsym_288299(w, s);
	processstacks_289700(w, NIM_FALSE);
}

N_NIMCALL(Tpasscontext276005*, myopen_290251)(Tsym224841* module) {
	Tpasscontext276005* result;
	Trodwriter288005* w;
	Sha1digest200009 LOC5;
	result = 0;
	{
		if (!((*module).Sup.id < ((NI) 0))) goto LA3;
		internalerror_195191(((NimStringDesc*) &TMP4481));
	}
	LA3: ;
	memset((void*)LOC5, 0, sizeof(LOC5));
	gethash_269722(((NI32) ((*module).position)), LOC5);
	w = newrodwriter_288029(LOC5, module);
	rawaddinterfacesym_289721(w, module);
	result = &w->Sup;
	return result;
}

N_NIMCALL(void, addinterfacesym_288050)(Trodwriter288005* w, Tsym224841* 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_289721(w, s);
	}
	LA9: ;
	}BeforeRet: ;
}

N_NIMCALL(void, addmoddep_288036)(Trodwriter288005* 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_288111(w, dep);
	encodevint_231294(LOC5, (&(*w).moddeps));
}

N_NIMCALL(void, addstmt_288057)(Trodwriter288005* w, Tnode224809* n) {
	Tlineinfo189352 LOC1;
	encodevint_231294(((*w).data ? (*w).data->Sup.len : 0), (&(*w).init));
	(*w).init = resizeString((*w).init, 1);
appendString((*w).init, ((NimStringDesc*) &TMP4488));
	LOC1 = unknownlineinfo_190411();
	encodenode_288320(w, LOC1, n, (&(*w).data));
	(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4488));
	processstacks_289700(w, NIM_FALSE);
}

N_NIMCALL(void, addincldep_288043)(Trodwriter288005* w, NimStringDesc* dep) {
	NimStringDesc* resolved;
	NimStringDesc* LOC1;
	NI LOC2;
	Sha1digest200009 LOC3;
	NimStringDesc* LOC4;
	LOC1 = 0;
	LOC1 = tofullpath_190665((*(*w).module).info.fileindex);
	resolved = findmodule_167549(dep, LOC1);
	LOC2 = 0;
	LOC2 = fileidx_288111(w, dep);
	encodevint_231294(LOC2, (&(*w).incldeps));
	(*w).incldeps = resizeString((*w).incldeps, 1);
appendString((*w).incldeps, ((NimStringDesc*) &TMP4486));
	memset((void*)LOC3, 0, sizeof(LOC3));
	securehashfile_200034(resolved, LOC3);
	LOC4 = 0;
	LOC4 = HEX24_200044(LOC3);
	encodestr_231039(LOC4, (&(*w).incldeps));
	(*w).incldeps = resizeString((*w).incldeps, 1);
appendString((*w).incldeps, ((NimStringDesc*) &TMP4488));
}

N_NIMCALL(Tnode224809*, process_289969)(Tpasscontext276005* c, Tnode224809* n) {
	Tnode224809* result;
	Trodwriter288005* w;
{	result = 0;
	result = n;
	{
		if (!(c == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	w = ((Trodwriter288005*) (c));
	switch ((*n).kind) {
	case ((NU8) 115):
	{
		{
			NI i_289999;
			NI HEX3Atmp_290153;
			NI LOC7;
			NI res_290156;
			i_289999 = 0;
			HEX3Atmp_290153 = 0;
			LOC7 = 0;
			LOC7 = sonslen_227387(n);
			HEX3Atmp_290153 = (NI)(LOC7 - ((NI) 1));
			res_290156 = ((NI) 0);
			{
				while (1) {
					Tnode224809* LOC10;
					if (!(res_290156 <= HEX3Atmp_290153)) goto LA9;
					i_289999 = res_290156;
					LOC10 = 0;
					LOC10 = process_289969(c, (*n).kindU.S6.sons->data[i_289999]);
					res_290156 += ((NI) 1);
				} LA9: ;
			}
		}
	}
	break;
	case ((NU8) 79):
	case ((NU8) 80):
	case ((NU8) 84):
	case ((NU8) 81):
	case ((NU8) 83):
	case ((NU8) 82):
	{
		Tsym224841* s;
		s = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		{
			if (!(s == NIM_NIL)) goto LA14;
			internalerror_195172((*n).info, ((NimStringDesc*) &TMP4495));
		}
		LA14: ;
		{
			if (!((*n).kindU.S6.sons->data[((NI) 6)] == NIM_NIL)) goto LA18;
			internalerror_195172((*n).info, ((NimStringDesc*) &TMP4496));
		}
		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_288050(w, s);
		}
		LA26: ;
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	case ((NU8) 101):
	{
		{
			NI i_290072;
			NI HEX3Atmp_290162;
			NI LOC30;
			NI res_290165;
			i_290072 = 0;
			HEX3Atmp_290162 = 0;
			LOC30 = 0;
			LOC30 = sonslen_227387(n);
			HEX3Atmp_290162 = (NI)(LOC30 - ((NI) 1));
			res_290165 = ((NI) 0);
			{
				while (1) {
					if (!(res_290165 <= HEX3Atmp_290162)) goto LA32;
					i_290072 = res_290165;
					{
						Tnode224809* a;
						a = (*n).kindU.S6.sons->data[i_290072];
						{
							if (!((*a).kind == ((NU8) 125))) goto LA36;
							goto LA33;
						}
						LA36: ;
						addinterfacesym_288050(w, (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym);
					} LA33: ;
					res_290165 += ((NI) 1);
				} LA32: ;
			}
		}
	}
	break;
	case ((NU8) 98):
	{
		{
			NI i_290098;
			NI HEX3Atmp_290171;
			NI LOC40;
			NI res_290174;
			i_290098 = 0;
			HEX3Atmp_290171 = 0;
			LOC40 = 0;
			LOC40 = sonslen_227387(n);
			HEX3Atmp_290171 = (NI)(LOC40 - ((NI) 1));
			res_290174 = ((NI) 0);
			{
				while (1) {
					if (!(res_290174 <= HEX3Atmp_290171)) goto LA42;
					i_290098 = res_290174;
					{
						Tnode224809* a;
						Tsym224841* s;
						a = (*n).kindU.S6.sons->data[i_290098];
						{
							if (!((*a).kind == ((NU8) 125))) goto LA46;
							goto LA43;
						}
						LA46: ;
						{
							if (!!(((*(*a).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA50;
							internalerror_195172((*a).info, ((NimStringDesc*) &TMP4495));
						}
						LA50: ;
						s = (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
						addinterfacesym_288050(w, s);
					} LA43: ;
					res_290174 += ((NI) 1);
				} LA42: ;
			}
		}
	}
	break;
	case ((NU8) 116):
	{
		{
			NI i_290135;
			NI HEX3Atmp_290179;
			NI LOC54;
			NI res_290182;
			i_290135 = 0;
			HEX3Atmp_290179 = 0;
			LOC54 = 0;
			LOC54 = sonslen_227387(n);
			HEX3Atmp_290179 = (NI)(LOC54 - ((NI) 1));
			res_290182 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* LOC57;
					if (!(res_290182 <= HEX3Atmp_290179)) goto LA56;
					i_290135 = res_290182;
					LOC57 = 0;
					LOC57 = getmodulename_287018((*n).kindU.S6.sons->data[i_290135]);
					addmoddep_288036(w, LOC57);
					res_290182 += ((NI) 1);
				} LA56: ;
			}
		}
		addstmt_288057(w, n);
	}
	break;
	case ((NU8) 120):
	{
		NimStringDesc* LOC59;
		LOC59 = 0;
		LOC59 = getmodulename_287018((*n).kindU.S6.sons->data[((NI) 0)]);
		addmoddep_288036(w, LOC59);
		addstmt_288057(w, n);
	}
	break;
	case ((NU8) 121):
	{
		{
			NI i_290150;
			NI HEX3Atmp_290187;
			NI LOC62;
			NI res_290190;
			i_290150 = 0;
			HEX3Atmp_290187 = 0;
			LOC62 = 0;
			LOC62 = sonslen_227387(n);
			HEX3Atmp_290187 = (NI)(LOC62 - ((NI) 1));
			res_290190 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* LOC65;
					if (!(res_290190 <= HEX3Atmp_290187)) goto LA64;
					i_290150 = res_290190;
					LOC65 = 0;
					LOC65 = getmodulename_287018((*n).kindU.S6.sons->data[i_290150]);
					addincldep_288043(w, LOC65);
					res_290190 += ((NI) 1);
				} LA64: ;
			}
		}
	}
	break;
	case ((NU8) 90):
	{
		addstmt_288057(w, n);
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, writerod_288064)(Trodwriter288005* w) {
	FILE* f;
	NimStringDesc* id;
	NimStringDesc* orig;
	NimStringDesc* hash;
	NimStringDesc* LOC10;
	NimStringDesc* options;
	NimStringDesc* goptions;
	NimStringDesc* cmd;
	NimStringDesc* files;
{	processstacks_289700(w, NIM_TRUE);
	f = 0;
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		NimStringDesc* LOC5;
		NimStringDesc* LOC6;
		NIM_BOOL LOC7;
		LOC3 = 0;
		LOC3 = tofilename_190655(((NI32) ((*(*w).module).position)));
		LOC4 = 0;
		LOC4 = withpackagename_167144(LOC3);
		LOC5 = 0;
		LOC5 = noschangeFileExt(LOC4, ((NimStringDesc*) &TMP4497));
		LOC6 = 0;
		LOC6 = completegeneratedfilepath_167201(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*) &TMP4498));
	write_16895(f, ((NimStringDesc*) &TMP4499));
	write_16895(f, ((NimStringDesc*) &TMP4488));
	id = copyString(((NimStringDesc*) &TMP4500));
	encodevint_231294((*(*w).module).Sup.id, (&id));
	write_16895(f, id);
	write_16895(f, ((NimStringDesc*) &TMP4488));
	orig = copyString(((NimStringDesc*) &TMP4501));
	encodestr_231039((*w).origfile, (&orig));
	write_16895(f, orig);
	write_16895(f, ((NimStringDesc*) &TMP4488));
	hash = copyString(((NimStringDesc*) &TMP4502));
	LOC10 = 0;
	LOC10 = HEX24_200044((*w).hash);
	encodestr_231039(LOC10, (&hash));
	write_16895(f, hash);
	write_16895(f, ((NimStringDesc*) &TMP4488));
	options = copyString(((NimStringDesc*) &TMP4503));
	encodevint_231294(((NI) (((NI32) ((*w).options)))), (&options));
	write_16895(f, options);
	write_16895(f, ((NimStringDesc*) &TMP4488));
	goptions = copyString(((NimStringDesc*) &TMP4504));
	encodevint_231294(((NI) (((NI32) (gglobaloptions_166132)))), (&goptions));
	write_16895(f, goptions);
	write_16895(f, ((NimStringDesc*) &TMP4488));
	cmd = copyString(((NimStringDesc*) &TMP4505));
	encodevint_231294(((NI) (((NI32) (gcmd_166134)))), (&cmd));
	write_16895(f, cmd);
	write_16895(f, ((NimStringDesc*) &TMP4488));
	write_16895(f, ((NimStringDesc*) &TMP4506));
	write_16895(f, (*w).defines);
	write_16895(f, ((NimStringDesc*) &TMP4488));
	files = copyString(((NimStringDesc*) &TMP4507));
	{
		NI i_289873;
		NI HEX3Atmp_289947;
		NI res_289950;
		i_289873 = 0;
		HEX3Atmp_289947 = 0;
		HEX3Atmp_289947 = ((*w).files ? ((*w).files->Sup.len-1) : -1);
		res_289950 = ((NI) 0);
		{
			while (1) {
				if (!(res_289950 <= HEX3Atmp_289947)) goto LA13;
				i_289873 = res_289950;
				encodestr_231039((*w).files->data[i_289873], (&files));
				files = resizeString(files, 1);
appendString(files, ((NimStringDesc*) &TMP4488));
				res_289950 += ((NI) 1);
			} LA13: ;
		}
	}
	write_16895(f, files);
	write_16895(f, ((NimStringDesc*) &TMP4508));
	write_16895(f, ((NimStringDesc*) &TMP4509));
	write_16895(f, (*w).incldeps);
	write_16895(f, ((NimStringDesc*) &TMP4508));
	write_16895(f, ((NimStringDesc*) &TMP4510));
	write_16895(f, (*w).moddeps);
	write_16895(f, ((NimStringDesc*) &TMP4488));
	write_16895(f, ((NimStringDesc*) &TMP4511));
	write_16895(f, (*w).interf);
	write_16895(f, ((NimStringDesc*) &TMP4508));
	write_16895(f, ((NimStringDesc*) &TMP4512));
	write_16895(f, (*w).compilerprocs);
	write_16895(f, ((NimStringDesc*) &TMP4508));
	write_16895(f, ((NimStringDesc*) &TMP4513));
	write_16895(f, (*w).index.r);
	write_16895(f, ((NimStringDesc*) &TMP4508));
	write_16895(f, ((NimStringDesc*) &TMP4514));
	write_16895(f, (*w).imports.r);
	write_16895(f, ((NimStringDesc*) &TMP4508));
	write_16895(f, ((NimStringDesc*) &TMP4515));
	write_16895(f, (*w).converters);
	write_16895(f, ((NimStringDesc*) &TMP4488));
	write_16895(f, ((NimStringDesc*) &TMP4516));
	write_16895(f, (*w).methods);
	write_16895(f, ((NimStringDesc*) &TMP4488));
	write_16895(f, ((NimStringDesc*) &TMP4517));
	write_16895(f, (*w).init);
	write_16895(f, ((NimStringDesc*) &TMP4508));
	write_16895(f, ((NimStringDesc*) &TMP4518));
	write_16895(f, (*w).data);
	write_16895(f, ((NimStringDesc*) &TMP4508));
	write_16895(f, ((NimStringDesc*) &TMP4519));
	fclose(f);
	}BeforeRet: ;
}

N_NIMCALL(Tnode224809*, myclose_290267)(Tpasscontext276005* c, Tnode224809* n) {
	Tnode224809* result;
	Trodwriter288005* w;
	NimStringDesc* LOC1;
	result = 0;
	result = process_289969(c, n);
	w = ((Trodwriter288005*) (c));
	writerod_288064(w);
	LOC1 = 0;
	LOC1 = HEX2F_123481(gprojectpath_166235, gprojectname_166234);
	savemaxids_223472(LOC1);
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_rodwriteInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_rodwriteDatInit000)(void) {
static TNimNode* TMP4482[18];
static TNimNode TMP915[19];
NTI288005.size = sizeof(Trodwriter288005);
NTI288005.kind = 17;
NTI288005.base = (&NTI276005);
TMP4482[0] = &TMP915[1];
TMP915[1].kind = 1;
TMP915[1].offset = offsetof(Trodwriter288005, module);
TMP915[1].typ = (&NTI224807);
TMP915[1].name = "module";
TMP4482[1] = &TMP915[2];
TMP915[2].kind = 1;
TMP915[2].offset = offsetof(Trodwriter288005, hash);
TMP915[2].typ = (&NTI200009);
TMP915[2].name = "hash";
TMP4482[2] = &TMP915[3];
TMP915[3].kind = 1;
TMP915[3].offset = offsetof(Trodwriter288005, options);
TMP915[3].typ = (&NTI166017);
TMP915[3].name = "options";
TMP4482[3] = &TMP915[4];
TMP915[4].kind = 1;
TMP915[4].offset = offsetof(Trodwriter288005, defines);
TMP915[4].typ = (&NTI149);
TMP915[4].name = "defines";
TMP4482[4] = &TMP915[5];
TMP915[5].kind = 1;
TMP915[5].offset = offsetof(Trodwriter288005, incldeps);
TMP915[5].typ = (&NTI149);
TMP915[5].name = "inclDeps";
TMP4482[5] = &TMP915[6];
TMP915[6].kind = 1;
TMP915[6].offset = offsetof(Trodwriter288005, moddeps);
TMP915[6].typ = (&NTI149);
TMP915[6].name = "modDeps";
TMP4482[6] = &TMP915[7];
TMP915[7].kind = 1;
TMP915[7].offset = offsetof(Trodwriter288005, interf);
TMP915[7].typ = (&NTI149);
TMP915[7].name = "interf";
TMP4482[7] = &TMP915[8];
TMP915[8].kind = 1;
TMP915[8].offset = offsetof(Trodwriter288005, compilerprocs);
TMP915[8].typ = (&NTI149);
TMP915[8].name = "compilerProcs";
TMP4482[8] = &TMP915[9];
TMP915[9].kind = 1;
TMP915[9].offset = offsetof(Trodwriter288005, index);
TMP915[9].typ = (&NTI267028);
TMP915[9].name = "index";
TMP4482[9] = &TMP915[10];
TMP915[10].kind = 1;
TMP915[10].offset = offsetof(Trodwriter288005, imports);
TMP915[10].typ = (&NTI267028);
TMP915[10].name = "imports";
TMP4482[10] = &TMP915[11];
TMP915[11].kind = 1;
TMP915[11].offset = offsetof(Trodwriter288005, converters);
TMP915[11].typ = (&NTI149);
TMP915[11].name = "converters";
TMP4482[11] = &TMP915[12];
TMP915[12].kind = 1;
TMP915[12].offset = offsetof(Trodwriter288005, methods);
TMP915[12].typ = (&NTI149);
TMP915[12].name = "methods";
TMP4482[12] = &TMP915[13];
TMP915[13].kind = 1;
TMP915[13].offset = offsetof(Trodwriter288005, init);
TMP915[13].typ = (&NTI149);
TMP915[13].name = "init";
TMP4482[13] = &TMP915[14];
TMP915[14].kind = 1;
TMP915[14].offset = offsetof(Trodwriter288005, data);
TMP915[14].typ = (&NTI149);
TMP915[14].name = "data";
TMP4482[14] = &TMP915[15];
TMP915[15].kind = 1;
TMP915[15].offset = offsetof(Trodwriter288005, sstack);
TMP915[15].typ = (&NTI224811);
TMP915[15].name = "sstack";
TMP4482[15] = &TMP915[16];
TMP915[16].kind = 1;
TMP915[16].offset = offsetof(Trodwriter288005, tstack);
TMP915[16].typ = (&NTI224843);
TMP915[16].name = "tstack";
TMP4482[16] = &TMP915[17];
TMP915[17].kind = 1;
TMP915[17].offset = offsetof(Trodwriter288005, files);
TMP915[17].typ = (&NTI130408);
TMP915[17].name = "files";
TMP4482[17] = &TMP915[18];
TMP915[18].kind = 1;
TMP915[18].offset = offsetof(Trodwriter288005, origfile);
TMP915[18].typ = (&NTI149);
TMP915[18].name = "origFile";
TMP915[0].len = 18; TMP915[0].kind = 2; TMP915[0].sons = &TMP4482[0];
NTI288005.node = &TMP915[0];
NTI288007.size = sizeof(Trodwriter288005*);
NTI288007.kind = 22;
NTI288007.base = (&NTI288005);
NTI288007.marker = TMP4483;
}

