/* Generated by Nim Compiler v0.13.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 Tpasscontext263002 Tpasscontext263002;
typedef struct Tsym216822 Tsym216822;
typedef struct Tidobj191006 Tidobj191006;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Ttypeseq216824 Ttypeseq216824;
typedef struct Tscope216816 Tscope216816;
typedef struct TY216925 TY216925;
typedef struct Tstrtable216794 Tstrtable216794;
typedef struct Tsymseq216792 Tsymseq216792;
typedef struct Ttype216828 Ttype216828;
typedef struct Tident191012 Tident191012;
typedef struct Tlineinfo184337 Tlineinfo184337;
typedef struct Tnode216790 Tnode216790;
typedef struct Tloc216804 Tloc216804;
typedef struct Ropeobj172006 Ropeobj172006;
typedef struct Tlib216808 Tlib216808;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Trodwriter274002 Trodwriter274002;
typedef struct Tindex254019 Tindex254019;
typedef struct Tiitable223163 Tiitable223163;
typedef struct Tiipairseq223161 Tiipairseq223161;
typedef struct TY127402 TY127402;
typedef struct Cell47304 Cell47304;
typedef struct Cellseq47320 Cellseq47320;
typedef struct Gcheap49618 Gcheap49618;
typedef struct Gcstack49616 Gcstack49616;
typedef struct Cellset47316 Cellset47316;
typedef struct Pagedesc47312 Pagedesc47312;
typedef struct Memregion29487 Memregion29487;
typedef struct Smallchunk29439 Smallchunk29439;
typedef struct Llchunk29481 Llchunk29481;
typedef struct Bigchunk29441 Bigchunk29441;
typedef struct Intset29414 Intset29414;
typedef struct Trunk29410 Trunk29410;
typedef struct Avlnode29485 Avlnode29485;
typedef struct Gcstat49614 Gcstat49614;
typedef struct Stringtableobj143209 Stringtableobj143209;
typedef struct Keyvaluepairseq143207 Keyvaluepairseq143207;
typedef struct Keyvaluepair143205 Keyvaluepair143205;
typedef struct Tlistentry138010 Tlistentry138010;
typedef struct Tnodeseq216784 Tnodeseq216784;
typedef struct Tinstantiation216812 Tinstantiation216812;
typedef struct Tiipair223159 Tiipair223159;
typedef struct Basechunk29437 Basechunk29437;
typedef struct Freecell29429 Freecell29429;
typedef struct TY216913 TY216913;
typedef N_NIMCALL_PTR(void, TY3489) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3494) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3489 marker;
TY3494 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj191006  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable216794  {
NI counter;
Tsymseq216792* data;
};
struct  Tlineinfo184337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc216804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype216828* t;
Ropeobj172006* r;
Ropeobj172006* heaproot;
};
struct  Tsym216822  {
  Tidobj191006 Sup;
NU8 kind;
union{
struct {Ttypeseq216824* typeinstcache;
Tscope216816* typscope;
} S1;
struct {TY216925* procinstcache;
Tsym216822* gcunsafetyreason;
} S2;
struct {TY216925* usedgenerics;
Tstrtable216794 tab;
} S3;
struct {Tsym216822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype216828* typ;
Tident191012* name;
Tlineinfo184337 info;
Tsym216822* owner;
NU32 flags;
Tnode216790* ast;
NU32 options;
NI position;
NI offset;
Tloc216804 loc;
Tlib216808* annex;
Tnode216790* constraint;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 Sha1digest194003[20];
struct  Tpasscontext263002  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Tiitable223163  {
NI counter;
Tiipairseq223161* data;
};
struct  Tindex254019  {
NI lastidxkey;
NI lastidxval;
Tiitable223163 tab;
NimStringDesc* r;
NI offset;
};
struct  Trodwriter274002  {
  Tpasscontext263002 Sup;
Tsym216822* module;
Sha1digest194003 hash;
NU32 options;
NimStringDesc* defines;
NimStringDesc* incldeps;
NimStringDesc* moddeps;
NimStringDesc* interf;
NimStringDesc* compilerprocs;
Tindex254019 index;
Tindex254019 imports;
NimStringDesc* converters;
NimStringDesc* methods;
NimStringDesc* init;
NimStringDesc* data;
Tsymseq216792* sstack;
Ttypeseq216824* tstack;
TY127402* files;
NimStringDesc* origfile;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Cell47304  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47320  {
NI len;
NI cap;
Cell47304** d;
};
struct  Cellset47316  {
NI counter;
NI max;
Pagedesc47312* head;
Pagedesc47312** data;
};
typedef Smallchunk29439* TY29502[512];
typedef Trunk29410* Trunkbuckets29412[256];
struct  Intset29414  {
Trunkbuckets29412 data;
};
struct  Memregion29487  {
NI minlargeobj;
NI maxlargeobj;
TY29502 freesmallchunks;
Llchunk29481* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29441* freechunkslist;
Intset29414 chunkstarts;
Avlnode29485* root;
Avlnode29485* deleted;
Avlnode29485* last;
Avlnode29485* freeavlnodes;
};
struct  Gcstat49614  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap49618  {
Gcstack49616* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47320 zct;
Cellseq47320 decstack;
Cellset47316 cycleroots;
Cellseq47320 tempstack;
NI recgclock;
Memregion29487 region;
Gcstat49614 stat;
};
struct  Stringtableobj143209  {
  TNimObject Sup;
NI counter;
Keyvaluepairseq143207* data;
NU8 mode;
};
struct Keyvaluepair143205 {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
struct  Tident191012  {
  Tidobj191006 Sup;
NimStringDesc* s;
Tident191012* next;
NI h;
};
struct  Ttype216828  {
  Tidobj191006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq216824* sons;
Tnode216790* n;
Tsym216822* owner;
Tsym216822* sym;
Tsym216822* destructor;
Tsym216822* deepcopy;
Tsym216822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc216804 loc;
};
struct  Tlistentry138010  {
  TNimObject Sup;
Tlistentry138010* prev;
Tlistentry138010* next;
};
struct  Tlib216808  {
  Tlistentry138010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj172006* name;
Tnode216790* path;
};
struct  Tnode216790  {
Ttype216828* typ;
Tlineinfo184337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym216822* sym;
} S4;
struct {Tident191012* ident;
} S5;
struct {Tnodeseq216784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tscope216816  {
NI depthlevel;
Tstrtable216794 symbols;
Tnodeseq216784* usingsyms;
Tscope216816* parent;
};
struct  Ropeobj172006  {
  TNimObject Sup;
Ropeobj172006* left;
Ropeobj172006* right;
NI length;
NimStringDesc* data;
};
struct  Tiipair223159  {
NI key;
NI val;
};
struct  Gcstack49616  {
Gcstack49616* prev;
Gcstack49616* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29418[16];
struct  Pagedesc47312  {
Pagedesc47312* next;
NI key;
TY29418 bits;
};
struct  Basechunk29437  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29439  {
  Basechunk29437 Sup;
Smallchunk29439* next;
Smallchunk29439* prev;
Freecell29429* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29481  {
NI size;
NI acc;
Llchunk29481* next;
};
struct  Bigchunk29441  {
  Basechunk29437 Sup;
Bigchunk29441* next;
Bigchunk29441* prev;
NI align;
NF data;
};
struct  Trunk29410  {
Trunk29410* next;
NI key;
TY29418 bits;
};
typedef Avlnode29485* TY29492[2];
struct  Avlnode29485  {
TY29492 link;
NI key;
NI upperbound;
NI level;
};
struct  Tinstantiation216812  {
Tsym216822* sym;
Ttypeseq216824* concretetypes;
TY216913* usedby;
NI compilesid;
};
struct  Freecell29429  {
Freecell29429* next;
NI zerofield;
};
struct Tsymseq216792 {
  TGenericSeq Sup;
  Tsym216822* data[SEQ_DECL_SIZE];
};
struct Ttypeseq216824 {
  TGenericSeq Sup;
  Ttype216828* data[SEQ_DECL_SIZE];
};
struct TY127402 {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct TY216925 {
  TGenericSeq Sup;
  Tinstantiation216812* data[SEQ_DECL_SIZE];
};
struct Tiipairseq223161 {
  TGenericSeq Sup;
  Tiipair223159 data[SEQ_DECL_SIZE];
};
struct Keyvaluepairseq143207 {
  TGenericSeq Sup;
  Keyvaluepair143205 data[SEQ_DECL_SIZE];
};
struct Tnodeseq216784 {
  TGenericSeq Sup;
  Tnode216790* data[SEQ_DECL_SIZE];
};
struct TY216913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, internalerror_189113)(NimStringDesc* errmsg);
N_NIMCALL(Trodwriter274002*, newrodwriter_274023)(Sha1digest194003 hash, Tsym216822* module);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4502)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell47304*, usrtocell_51240)(void* usr);
static N_INLINE(void, rtladdzct_52801)(Cell47304* c);
N_NOINLINE(void, addzct_51217)(Cellseq47320* s, Cell47304* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, initiitable_223168)(Tiitable223163* x);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(NimStringDesc*, getdefines_274046)(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_185265)(NI32 fileidx);
N_NIMCALL(void, gethash_256480)(NI32 fileidx, Sha1digest194003* Result);
N_NIMCALL(void, rawaddinterfacesym_275485)(Trodwriter274002* w, Tsym216822* s);
N_NIMCALL(void, pushsym_274208)(Trodwriter274002* w, Tsym216822* s);
N_NIMCALL(NI, iitableget_223172)(Tiitable223163 t, NI key);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, processstacks_275476)(Trodwriter274002* w, NIM_BOOL finalpass);
N_NIMCALL(NI, symstack_275001)(Trodwriter274002* w);
N_NIMCALL(Tsym216822*, getmodule_223144)(Tsym216822* s);
N_NIMCALL(void, addtoindex_274803)(Tindex254019* w, NI key, NI val);
N_NIMCALL(void, encodevint_222212)(NI x, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(void, iitableput_223176)(Tiitable223163* t, NI key, NI val);
N_NIMCALL(void, encodesym_274554)(Trodwriter274002* w, Tsym216822* s, NimStringDesc** result);
N_NIMCALL(void, encodestr_222018)(NimStringDesc* s, NimStringDesc** result);
N_NIMCALL(void, pushtype_274194)(Trodwriter274002* w, Ttype216828* t);
N_NIMCALL(NI, fileidx_274066)(Trodwriter274002* w, NimStringDesc* filename);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, encodeloc_274321)(Trodwriter274002* w, Tloc216804 loc, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, HEX24_172856)(Ropeobj172006* r);
N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newlen);
N_NIMCALL(void, encodelib_274539)(Trodwriter274002* w, Tlib216808* lib, Tlineinfo184337 info, NimStringDesc** result);
N_NIMCALL(void, encodenode_274223)(Trodwriter274002* w, Tlineinfo184337 finfo, Tnode216790* n, NimStringDesc** result);
N_NIMCALL(void, encodevbiggestint_222186)(NI64 x, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(NI, sonslen_219351)(Tnode216790* n);
N_NIMCALL(Tlineinfo184337, unknownlineinfo_185090)(void);
static N_INLINE(NIM_BOOL, haspattern_221410)(Tsym216822* s);
static N_INLINE(NIM_BOOL, isroutine_221396)(Tsym216822* s);
N_NIMCALL(NI, typestack_275421)(Trodwriter274002* w);
N_NIMCALL(void, encodetype_274402)(Trodwriter274002* w, Ttype216828* t, NimStringDesc** result);
N_NIMCALL(NI, sonslen_219327)(Ttype216828* n);
N_NIMCALL(Tnode216790*, process_275699)(Tpasscontext263002* c, Tnode216790* n);
N_NIMCALL(void, internalerror_189100)(Tlineinfo184337 info, NimStringDesc* errmsg);
N_NIMCALL(void, addinterfacesym_274035)(Trodwriter274002* w, Tsym216822* s);
N_NIMCALL(void, addmoddep_274027)(Trodwriter274002* w, NimStringDesc* dep);
N_NIMCALL(NimStringDesc*, getmodulename_273009)(Tnode216790* n);
N_NIMCALL(void, addstmt_274039)(Trodwriter274002* w, Tnode216790* n);
N_NIMCALL(void, addincldep_274031)(Trodwriter274002* w, NimStringDesc* dep);
N_NIMCALL(NimStringDesc*, findmodule_164484)(NimStringDesc* modulename, NimStringDesc* currentmodule);
N_NIMCALL(NimStringDesc*, tofullpath_185269)(NI32 fileidx);
N_NIMCALL(NimStringDesc*, HEX24_194020)(Sha1digest194003 self);
N_NIMCALL(void, securehashfile_194016)(NimStringDesc* filename, Sha1digest194003* Result);
N_NIMCALL(void, writerod_274043)(Trodwriter274002* w);
N_NIMCALL(NIM_BOOL, open_15403)(FILE** f, NimStringDesc* filename, NU8 mode, NI bufsize);
N_NIMCALL(NimStringDesc*, completegeneratedfilepath_164201)(NimStringDesc* f, NIM_BOOL createsubdir);
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(NimStringDesc*, withpackagename_164070)(NimStringDesc* path);
N_NIMCALL(void, write_15489)(FILE* f, NimStringDesc* s);
N_NIMCALL(void, savemaxids_215439)(NimStringDesc* project);
N_NIMCALL(NimStringDesc*, HEX2F_116874)(NimStringDesc* head, NimStringDesc* tail);
STRING_LITERAL(TMP4500, "rodwrite: module ID not set", 27);
STRING_LITERAL(TMP4503, "", 0);
STRING_LITERAL(TMP4504, "false", 5);
STRING_LITERAL(TMP4505, " ", 1);
STRING_LITERAL(TMP4506, "symStack: module nil: ", 22);
STRING_LITERAL(TMP4507, "\012", 1);
STRING_LITERAL(TMP4508, "{}", 2);
STRING_LITERAL(TMP4509, "()", 2);
STRING_LITERAL(TMP4510, "[]", 2);
STRING_LITERAL(TMP4511, "encodeType: tyForward", 21);
STRING_LITERAL(TMP4512, "^()", 3);
STRING_LITERAL(TMP4513, "could not serialize some forwarded symbols/types", 48);
STRING_LITERAL(TMP4514, "rodwrite.process", 16);
STRING_LITERAL(TMP4515, "rodwrite.process: body is nil", 29);
STRING_LITERAL(TMP4516, "rod", 3);
STRING_LITERAL(TMP4517, "NIM:", 4);
STRING_LITERAL(TMP4518, "1215", 4);
STRING_LITERAL(TMP4519, "ID:", 3);
STRING_LITERAL(TMP4520, "ORIGFILE:", 9);
STRING_LITERAL(TMP4521, "HASH:", 5);
STRING_LITERAL(TMP4522, "OPTIONS:", 8);
STRING_LITERAL(TMP4523, "GOPTIONS:", 9);
STRING_LITERAL(TMP4524, "CMD:", 4);
STRING_LITERAL(TMP4525, "DEFINES:", 8);
STRING_LITERAL(TMP4526, "FILES(\012", 7);
STRING_LITERAL(TMP4527, ")\012", 2);
STRING_LITERAL(TMP4528, "INCLUDES(\012", 10);
STRING_LITERAL(TMP4529, "DEPS:", 5);
STRING_LITERAL(TMP4530, "INTERF(\012", 8);
STRING_LITERAL(TMP4531, "COMPILERPROCS(\012", 15);
STRING_LITERAL(TMP4532, "INDEX(\012", 7);
STRING_LITERAL(TMP4533, "IMPORTS(\012", 9);
STRING_LITERAL(TMP4534, "CONVERTERS:", 11);
STRING_LITERAL(TMP4535, "METHODS:", 8);
STRING_LITERAL(TMP4536, "INIT(\012", 6);
STRING_LITERAL(TMP4537, "DATA(\012", 6);
STRING_LITERAL(TMP4538, "\000", 1);
extern TNimType NTI263002; /* TPassContext */
TNimType NTI274002; /* TRodWriter */
extern TNimType NTI216788; /* PSym */
extern TNimType NTI194003; /* Sha1Digest */
extern TNimType NTI163011; /* TOptions */
extern TNimType NTI138; /* string */
extern TNimType NTI254019; /* TIndex */
extern TNimType NTI216792; /* TSymSeq */
extern TNimType NTI216824; /* TTypeSeq */
extern TNimType NTI127402; /* seq[string] */
TNimType NTI274004; /* PRodWriter */
extern Gcheap49618 gch_49659;
extern Stringtableobj143209* gsymbols_192001;
extern NU32 goptions_163119;
extern NU32 gglobaloptions_163121;
extern NU8 gcmd_163123;
extern NimStringDesc* gprojectpath_163200;
extern NimStringDesc* gprojectname_163199;
N_NIMCALL(void, TMP4502)(void* p, NI op) {
	Trodwriter274002* a;
	a = (Trodwriter274002*)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(Cell47304*, usrtocell_51240)(void* usr) {
	Cell47304* result;
	result = 0;
	result = ((Cell47304*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(Cell47304))))));
	return result;
}

static N_INLINE(void, rtladdzct_52801)(Cell47304* c) {
	addzct_51217((&gch_49659.zct), c);
}

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

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell47304* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_51240(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell47304* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_51240((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA11;
			rtladdzct_52801(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_274046)(void) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP4503));
	{
		NimStringDesc* d_274049;
		d_274049 = 0;
		{
			NimStringDesc* key_274055;
			NimStringDesc* val_274057;
			key_274055 = 0;
			val_274057 = 0;
			{
				NI h_274059;
				NI HEX3Atmp_274061;
				NI res_274063;
				h_274059 = 0;
				HEX3Atmp_274061 = 0;
				HEX3Atmp_274061 = ((*gsymbols_192001).data ? ((*gsymbols_192001).data->Sup.len-1) : -1);
				res_274063 = ((NI) 0);
				{
					while (1) {
						if (!(res_274063 <= HEX3Atmp_274061)) goto LA5;
						h_274059 = res_274063;
						{
							if (!!((*gsymbols_192001).data->data[h_274059].Field0 == 0)) goto LA8;
							key_274055 = (*gsymbols_192001).data->data[h_274059].Field0;
							val_274057 = (*gsymbols_192001).data->data[h_274059].Field1;
							{
								if (!!(eqStrings(val_274057, ((NimStringDesc*) &TMP4504)))) goto LA12;
								d_274049 = key_274055;
								{
									if (!!(((result ? result->Sup.len : 0) == ((NI) 0)))) goto LA16;
									result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TMP4505));
								}
								LA16: ;
								result = resizeString(result, d_274049->Sup.len + 0);
appendString(result, d_274049);
							}
							LA12: ;
						}
						LA8: ;
						res_274063 += ((NI) 1);
					} LA5: ;
				}
			}
		}
	}
	return result;
}

N_NIMCALL(Trodwriter274002*, newrodwriter_274023)(Sha1digest194003 hash, Tsym216822* module) {
	Trodwriter274002* result;
	NimStringDesc* LOC1;
	NimStringDesc* LOC2;
	NimStringDesc* LOC3;
	NimStringDesc* LOC4;
	NimStringDesc* LOC5;
	NimStringDesc* LOC6;
	NimStringDesc* LOC7;
	NimStringDesc* LOC8;
	result = 0;
	result = (Trodwriter274002*) newObj((&NTI274004), sizeof(Trodwriter274002));
	(*result).Sup.Sup.m_type = (&NTI274002);
	if ((*result).sstack) nimGCunrefNoCycle((*result).sstack);
	(*result).sstack = (Tsymseq216792*) newSeqRC1((&NTI216792), 0);
	if ((*result).tstack) nimGCunrefNoCycle((*result).tstack);
	(*result).tstack = (Ttypeseq216824*) newSeqRC1((&NTI216824), 0);
	initiitable_223168((&(*result).index.tab));
	initiitable_223168((&(*result).imports.tab));
	LOC1 = 0;
	LOC1 = (*result).index.r; (*result).index.r = copyStringRC1(((NimStringDesc*) &TMP4503));
	if (LOC1) nimGCunrefNoCycle(LOC1);
	LOC2 = 0;
	LOC2 = (*result).imports.r; (*result).imports.r = copyStringRC1(((NimStringDesc*) &TMP4503));
	if (LOC2) nimGCunrefNoCycle(LOC2);
	memcpy((void*)(*result).hash, (NIM_CONST void*)hash, sizeof(Sha1digest194003));
	asgnRefNoCycle((void**) (&(*result).module), module);
	asgnRefNoCycle((void**) (&(*result).defines), getdefines_274046());
	(*result).options = goptions_163119;
	if ((*result).files) nimGCunrefNoCycle((*result).files);
	(*result).files = (TY127402*) newSeqRC1((&NTI127402), 0);
	LOC3 = 0;
	LOC3 = (*result).incldeps; (*result).incldeps = copyStringRC1(((NimStringDesc*) &TMP4503));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	LOC4 = 0;
	LOC4 = (*result).moddeps; (*result).moddeps = copyStringRC1(((NimStringDesc*) &TMP4503));
	if (LOC4) nimGCunrefNoCycle(LOC4);
	asgnRefNoCycle((void**) (&(*result).interf), rawNewString(((NI) 2000)));
	LOC5 = 0;
	LOC5 = (*result).compilerprocs; (*result).compilerprocs = copyStringRC1(((NimStringDesc*) &TMP4503));
	if (LOC5) nimGCunrefNoCycle(LOC5);
	LOC6 = 0;
	LOC6 = (*result).converters; (*result).converters = copyStringRC1(((NimStringDesc*) &TMP4503));
	if (LOC6) nimGCunrefNoCycle(LOC6);
	LOC7 = 0;
	LOC7 = (*result).methods; (*result).methods = copyStringRC1(((NimStringDesc*) &TMP4503));
	if (LOC7) nimGCunrefNoCycle(LOC7);
	LOC8 = 0;
	LOC8 = (*result).init; (*result).init = copyStringRC1(((NimStringDesc*) &TMP4503));
	if (LOC8) nimGCunrefNoCycle(LOC8);
	asgnRefNoCycle((void**) (&(*result).origfile), tofilename_185265((*module).info.fileindex));
	asgnRefNoCycle((void**) (&(*result).data), rawNewString(((NI) 12000)));
	return result;
}

N_NIMCALL(void, pushsym_274208)(Trodwriter274002* w, Tsym216822* s) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = iitableget_223172((*w).index.tab, (*s).Sup.id);
		if (!(LOC3 == ((NI) (-2147483647 -1)))) goto LA4;
		(*w).sstack = (Tsymseq216792*) incrSeqV2(&((*w).sstack)->Sup, sizeof(Tsym216822*));
		asgnRefNoCycle((void**) (&(*w).sstack->data[(*w).sstack->Sup.len]), s);
		++(*w).sstack->Sup.len;
	}
	LA4: ;
}

N_NIMCALL(void, addtoindex_274803)(Tindex254019* w, NI key, NI val) {
	{
		if (!((NI)(key - (*w).lastidxkey) == ((NI) 1))) goto LA3;
		encodevint_222212((NI)(val - (*w).lastidxval), (&(*w).r));
	}
	goto LA1;
	LA3: ;
	{
		encodevint_222212((NI)(key - (*w).lastidxkey), (&(*w).r));
		(*w).r = addChar((*w).r, 32);
		encodevint_222212((NI)(val - (*w).lastidxval), (&(*w).r));
	}
	LA1: ;
	(*w).r = resizeString((*w).r, 1);
appendString((*w).r, ((NimStringDesc*) &TMP4507));
	(*w).lastidxkey = key;
	(*w).lastidxval = val;
	iitableput_223176((&(*w).tab), key, val);
}

N_NIMCALL(void, pushtype_274194)(Trodwriter274002* w, Ttype216828* t) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = iitableget_223172((*w).index.tab, (*t).Sup.id);
		if (!(LOC3 == ((NI) (-2147483647 -1)))) goto LA4;
		(*w).tstack = (Ttypeseq216824*) incrSeqV2(&((*w).tstack)->Sup, sizeof(Ttype216828*));
		asgnRefNoCycle((void**) (&(*w).tstack->data[(*w).tstack->Sup.len]), t);
		++(*w).tstack->Sup.len;
	}
	LA4: ;
}

N_NIMCALL(NI, fileidx_274066)(Trodwriter274002* w, NimStringDesc* filename) {
	NI result;
	NimStringDesc* LOC8;
{	result = 0;
	{
		NI i_274082;
		NI HEX3Atmp_274102;
		NI res_274105;
		i_274082 = 0;
		HEX3Atmp_274102 = 0;
		HEX3Atmp_274102 = ((*w).files ? ((*w).files->Sup.len-1) : -1);
		res_274105 = ((NI) 0);
		{
			while (1) {
				if (!(res_274105 <= HEX3Atmp_274102)) goto LA3;
				i_274082 = res_274105;
				{
					if (!eqStrings((*w).files->data[i_274082], filename)) goto LA6;
					result = i_274082;
					goto BeforeRet;
				}
				LA6: ;
				res_274105 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((*w).files ? (*w).files->Sup.len : 0);
	(*w).files = (TY127402*) 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_274321)(Trodwriter274002* w, Tloc216804 loc, NimStringDesc** result) {
	NI oldlen;
	oldlen = ((*result) ? (*result)->Sup.len : 0);
	(*result) = addChar((*result), 60);
	{
		if (!!((loc.k == ((NU8) 0)))) goto LA3;
		encodevint_222212(((NI) (loc.k)), result);
	}
	LA3: ;
	{
		if (!!((loc.s == ((NU8) 0)))) goto LA7;
		(*result) = addChar((*result), 42);
		encodevint_222212(((NI) (loc.s)), result);
	}
	LA7: ;
	{
		if (!!((loc.flags == 0))) goto LA11;
		(*result) = addChar((*result), 36);
		encodevint_222212(((NI) (((NI32) (loc.flags)))), result);
	}
	LA11: ;
	{
		if (!!((loc.t == NIM_NIL))) goto LA15;
		(*result) = addChar((*result), 94);
		encodevint_222212(((NI) (((NI32) ((*loc.t).Sup.id)))), result);
		pushtype_274194(w, loc.t);
	}
	LA15: ;
	{
		NimStringDesc* LOC21;
		if (!!((loc.r == NIM_NIL))) goto LA19;
		(*result) = addChar((*result), 33);
		LOC21 = 0;
		LOC21 = HEX24_172856(loc.r);
		encodestr_222018(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_274223)(Trodwriter274002* w, Tlineinfo184337 finfo, Tnode216790* n, NimStringDesc** result) {
	NU16 f;
{	{
		if (!(n == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4509));
		goto BeforeRet;
	}
	LA3: ;
	(*result) = addChar((*result), 40);
	encodevint_222212(((NI) ((*n).kind)), result);
	{
		NimStringDesc* LOC9;
		NI LOC10;
		if (!!((finfo.fileindex == (*n).info.fileindex))) goto LA7;
		(*result) = addChar((*result), 63);
		encodevint_222212(((NI) ((*n).info.col)), result);
		(*result) = addChar((*result), 44);
		encodevint_222212(((NI) ((*n).info.line)), result);
		(*result) = addChar((*result), 44);
		LOC9 = 0;
		LOC9 = tofilename_185265((*n).info.fileindex);
		LOC10 = 0;
		LOC10 = fileidx_274066(w, LOC9);
		encodevint_222212(LOC10, result);
	}
	goto LA5;
	LA7: ;
	{
		if (!!((finfo.line == (*n).info.line))) goto LA12;
		(*result) = addChar((*result), 63);
		encodevint_222212(((NI) ((*n).info.col)), result);
		(*result) = addChar((*result), 44);
		encodevint_222212(((NI) ((*n).info.line)), result);
	}
	goto LA5;
	LA12: ;
	{
		if (!!((finfo.col == (*n).info.col))) goto LA15;
		(*result) = addChar((*result), 63);
		encodevint_222212(((NI) ((*n).info.col)), result);
	}
	goto LA5;
	LA15: ;
	LA5: ;
	f = ((*n).flags & 26382);
	{
		if (!!((f == 0))) goto LA19;
		(*result) = addChar((*result), 36);
		encodevint_222212(((NI) (((NI32) (f)))), result);
	}
	LA19: ;
	{
		if (!!(((*n).typ == NIM_NIL))) goto LA23;
		(*result) = addChar((*result), 94);
		encodevint_222212((*(*n).typ).Sup.id, result);
		pushtype_274194(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_222186((*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_222018(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_222018((*n).kindU.S3.strval, result);
		}
		LA39: ;
	}
	break;
	case ((NU8) 2):
	{
		(*result) = addChar((*result), 33);
		encodestr_222018((*(*n).kindU.S5.ident).s, result);
	}
	break;
	case ((NU8) 3):
	{
		(*result) = addChar((*result), 33);
		encodevint_222212((*(*n).kindU.S4.sym).Sup.id, result);
		pushsym_274208(w, (*n).kindU.S4.sym);
	}
	break;
	default:
	{
		{
			NI i_274310;
			NI HEX3Atmp_274314;
			NI LOC45;
			NI res_274317;
			i_274310 = 0;
			HEX3Atmp_274314 = 0;
			LOC45 = 0;
			LOC45 = sonslen_219351(n);
			HEX3Atmp_274314 = (NI)(LOC45 - ((NI) 1));
			res_274317 = ((NI) 0);
			{
				while (1) {
					if (!(res_274317 <= HEX3Atmp_274314)) goto LA47;
					i_274310 = res_274317;
					encodenode_274223(w, (*n).info, (*n).kindU.S6.sons->data[i_274310], result);
					res_274317 += ((NI) 1);
				} LA47: ;
			}
		}
	}
	break;
	}
	(*result) = addChar((*result), 41);
	}BeforeRet: ;
}

N_NIMCALL(void, encodelib_274539)(Trodwriter274002* w, Tlib216808* lib, Tlineinfo184337 info, NimStringDesc** result) {
	NimStringDesc* LOC1;
	(*result) = addChar((*result), 124);
	encodevint_222212(((NI) ((*lib).kind)), result);
	(*result) = addChar((*result), 124);
	LOC1 = 0;
	LOC1 = HEX24_172856((*lib).name);
	encodestr_222018(LOC1, result);
	(*result) = addChar((*result), 124);
	encodenode_274223(w, info, (*lib).path, result);
}

N_NIMCALL(void, encodesym_274554)(Trodwriter274002* w, Tsym216822* s, NimStringDesc** result) {
	NimStringDesc* LOC17;
	NI LOC18;
{	{
		if (!(s == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4508));
		goto BeforeRet;
	}
	LA3: ;
	encodevint_222212(((NI) ((*s).kind)), result);
	(*result) = addChar((*result), 43);
	encodevint_222212((*s).Sup.id, result);
	(*result) = addChar((*result), 38);
	encodestr_222018((*(*s).name).s, result);
	{
		if (!!(((*s).typ == NIM_NIL))) goto LA7;
		(*result) = addChar((*result), 94);
		encodevint_222212((*(*s).typ).Sup.id, result);
		pushtype_274194(w, (*s).typ);
	}
	LA7: ;
	(*result) = addChar((*result), 63);
	{
		if (!!(((*s).info.col == ((NI16) -1)))) goto LA11;
		encodevint_222212(((NI) ((*s).info.col)), result);
	}
	LA11: ;
	(*result) = addChar((*result), 44);
	{
		if (!!(((*s).info.line == ((NI16) -1)))) goto LA15;
		encodevint_222212(((NI) ((*s).info.line)), result);
	}
	LA15: ;
	(*result) = addChar((*result), 44);
	LOC17 = 0;
	LOC17 = tofilename_185265((*s).info.fileindex);
	LOC18 = 0;
	LOC18 = fileidx_274066(w, LOC17);
	encodevint_222212(LOC18, result);
	{
		if (!!(((*s).owner == NIM_NIL))) goto LA21;
		(*result) = addChar((*result), 42);
		encodevint_222212((*(*s).owner).Sup.id, result);
		pushsym_274208(w, (*s).owner);
	}
	LA21: ;
	{
		if (!!(((*s).flags == 0))) goto LA25;
		(*result) = addChar((*result), 36);
		encodevint_222212(((NI) (((NI32) ((*s).flags)))), result);
	}
	LA25: ;
	{
		if (!!(((*s).magic == ((NU8) 0)))) goto LA29;
		(*result) = addChar((*result), 64);
		encodevint_222212(((NI) ((*s).magic)), result);
	}
	LA29: ;
	{
		if (!!(((*s).options == (*w).options))) goto LA33;
		(*result) = addChar((*result), 33);
		encodevint_222212(((NI) (((NI32) ((*s).options)))), result);
	}
	LA33: ;
	{
		if (!!(((*s).position == ((NI) 0)))) goto LA37;
		(*result) = addChar((*result), 37);
		encodevint_222212((*s).position, result);
	}
	LA37: ;
	{
		if (!!(((*s).offset == ((NI) -1)))) goto LA41;
		(*result) = addChar((*result), 96);
		encodevint_222212((*s).offset, result);
	}
	LA41: ;
	encodeloc_274321(w, (*s).loc, result);
	{
		if (!!(((*s).annex == NIM_NIL))) goto LA45;
		encodelib_274539(w, (*s).annex, (*s).info, result);
	}
	LA45: ;
	{
		Tlineinfo184337 LOC51;
		if (!!(((*s).constraint == NIM_NIL))) goto LA49;
		(*result) = addChar((*result), 35);
		LOC51 = unknownlineinfo_185090();
		encodenode_274223(w, LOC51, (*s).constraint, result);
	}
	LA49: ;
	{
		if (!!(((*s).ast == NIM_NIL))) goto LA54;
		encodenode_274223(w, (*s).info, (*s).ast, result);
	}
	LA54: ;
	}BeforeRet: ;
}

static N_INLINE(NIM_BOOL, isroutine_221396)(Tsym216822* s) {
	NIM_BOOL result;
	result = 0;
	result = ((258048 &(1U<<((NU)((*s).kind)&31U)))!=0);
	return result;
}

static N_INLINE(NIM_BOOL, haspattern_221410)(Tsym216822* s) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = isroutine_221396(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_275001)(Trodwriter274002* w) {
	NI result;
	NI i;
	result = 0;
	i = ((NI) 0);
	{
		while (1) {
			Tsym216822* s;
			if (!(i < ((*w).sstack ? (*w).sstack->Sup.len : 0))) goto LA2;
			s = (*w).sstack->data[i];
			{
				if (!(((*s).flags &(1U<<((NU)(((NU8) 4))&31U)))!=0)) goto LA5;
				asgnRefNoCycle((void**) (&(*w).sstack->data[result]), s);
				result += ((NI) 1);
			}
			goto LA3;
			LA5: ;
			{
				NI LOC8;
				Tsym216822* m;
				LOC8 = 0;
				LOC8 = iitableget_223172((*w).index.tab, (*s).Sup.id);
				if (!(LOC8 == ((NI) (-2147483647 -1)))) goto LA9;
				m = getmodule_223144(s);
				{
					NIM_BOOL LOC13;
					NimStringDesc* LOC17;
					LOC13 = 0;
					LOC13 = (m == NIM_NIL);
					if (!(LOC13)) goto LA14;
					LOC13 = !(((*s).kind == ((NU8) 23)));
					LA14: ;
					if (!LOC13) goto LA15;
					LOC17 = 0;
					LOC17 = rawNewString((*(*s).name).s->Sup.len + 22);
appendString(LOC17, ((NimStringDesc*) &TMP4506));
appendString(LOC17, (*(*s).name).s);
					internalerror_189113(LOC17);
				}
				LA15: ;
				{
					NIM_BOOL LOC20;
					NIM_BOOL LOC21;
					NI L;
					LOC20 = 0;
					LOC21 = 0;
					LOC21 = ((*s).kind == ((NU8) 23));
					if (LOC21) goto LA22;
					LOC21 = ((*m).Sup.id == (*(*w).module).Sup.id);
					LA22: ;
					LOC20 = LOC21;
					if (LOC20) goto LA23;
					LOC20 = (((*s).flags &(1U<<((NU)(((NU8) 2))&31U)))!=0);
					LA23: ;
					if (!LOC20) goto LA24;
					L = ((*w).data ? (*w).data->Sup.len : 0);
					addtoindex_274803((&(*w).index), (*s).Sup.id, L);
					encodesym_274554(w, s, (&(*w).data));
					(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4507));
					{
						NIM_BOOL LOC28;
						LOC28 = 0;
						LOC28 = ((6 & (*s).flags) == 2);
						if (!(LOC28)) goto LA29;
						LOC28 = ((21755776 &(1U<<((NU)((*s).kind)&31U)))!=0);
						LA29: ;
						if (!LOC28) goto LA30;
						encodestr_222018((*(*s).name).s, (&(*w).interf));
						(*w).interf = addChar((*w).interf, 32);
						encodevint_222212((*s).Sup.id, (&(*w).interf));
						(*w).interf = resizeString((*w).interf, 1);
appendString((*w).interf, ((NimStringDesc*) &TMP4507));
					}
					LA30: ;
					{
						if (!(((*s).flags &(1U<<((NU)(((NU8) 16))&31U)))!=0)) goto LA34;
						encodestr_222018((*(*s).name).s, (&(*w).compilerprocs));
						(*w).compilerprocs = addChar((*w).compilerprocs, 32);
						encodevint_222212((*s).Sup.id, (&(*w).compilerprocs));
						(*w).compilerprocs = resizeString((*w).compilerprocs, 1);
appendString((*w).compilerprocs, ((NimStringDesc*) &TMP4507));
					}
					LA34: ;
					{
						NIM_BOOL LOC38;
						LOC38 = 0;
						LOC38 = ((*s).kind == ((NU8) 15));
						if (LOC38) goto LA39;
						LOC38 = haspattern_221410(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_222212((*s).Sup.id, (&(*w).converters));
					}
					LA40: ;
					{
						NIM_BOOL LOC48;
						LOC48 = 0;
						LOC48 = ((*s).kind == ((NU8) 13));
						if (!(LOC48)) goto LA49;
						LOC48 = !((((*s).flags &(1U<<((NU)(((NU8) 25))&31U)))!=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_222212((*s).Sup.id, (&(*w).methods));
					}
					LA50: ;
				}
				goto LA18;
				LA24: ;
				{
					NI LOC57;
					LOC57 = 0;
					LOC57 = iitableget_223172((*w).imports.tab, (*s).Sup.id);
					if (!(LOC57 == ((NI) (-2147483647 -1)))) goto LA58;
					addtoindex_274803((&(*w).imports), (*s).Sup.id, (*m).Sup.id);
				}
				goto LA18;
				LA58: ;
				LA18: ;
			}
			goto LA3;
			LA9: ;
			LA3: ;
			i += ((NI) 1);
		} LA2: ;
	}
	(*w).sstack = (Tsymseq216792*) setLengthSeq(&((*w).sstack)->Sup, sizeof(Tsym216822*), ((NI) (result)));
	return result;
}

N_NIMCALL(void, encodetype_274402)(Trodwriter274002* w, Ttype216828* t, NimStringDesc** result) {
{	{
		if (!(t == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4510));
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!((*t).kind == ((NU8) 30))) goto LA7;
		internalerror_189113(((NimStringDesc*) &TMP4511));
	}
	LA7: ;
	(*result) = addChar((*result), 91);
	encodevint_222212(((NI) ((*t).kind)), result);
	(*result) = addChar((*result), 43);
	encodevint_222212((*t).Sup.id, result);
	{
		Tlineinfo184337 LOC13;
		if (!!(((*t).n == NIM_NIL))) goto LA11;
		LOC13 = unknownlineinfo_185090();
		encodenode_274223(w, LOC13, (*t).n, result);
	}
	LA11: ;
	{
		if (!!(((*t).flags == 0))) goto LA16;
		(*result) = addChar((*result), 36);
		encodevint_222212(((NI) (((NI32) ((*t).flags)))), result);
	}
	LA16: ;
	{
		if (!!(((*t).callconv == ((NU8) 0)))) goto LA20;
		(*result) = addChar((*result), 63);
		encodevint_222212(((NI) ((*t).callconv)), result);
	}
	LA20: ;
	{
		if (!!(((*t).owner == NIM_NIL))) goto LA24;
		(*result) = addChar((*result), 42);
		encodevint_222212((*(*t).owner).Sup.id, result);
		pushsym_274208(w, (*t).owner);
	}
	LA24: ;
	{
		if (!!(((*t).sym == NIM_NIL))) goto LA28;
		(*result) = addChar((*result), 38);
		encodevint_222212((*(*t).sym).Sup.id, result);
		pushsym_274208(w, (*t).sym);
	}
	LA28: ;
	{
		if (!!(((*t).size == IL64(-1)))) goto LA32;
		(*result) = addChar((*result), 47);
		encodevbiggestint_222186((*t).size, result);
	}
	LA32: ;
	{
		if (!!(((*t).align == ((NI16) 2)))) goto LA36;
		(*result) = addChar((*result), 61);
		encodevint_222212(((NI) ((*t).align)), result);
	}
	LA36: ;
	encodeloc_274321(w, (*t).loc, result);
	{
		NI i_274517;
		NI HEX3Atmp_274532;
		NI LOC39;
		NI res_274535;
		i_274517 = 0;
		HEX3Atmp_274532 = 0;
		LOC39 = 0;
		LOC39 = sonslen_219327(t);
		HEX3Atmp_274532 = (NI)(LOC39 - ((NI) 1));
		res_274535 = ((NI) 0);
		{
			while (1) {
				if (!(res_274535 <= HEX3Atmp_274532)) goto LA41;
				i_274517 = res_274535;
				{
					if (!((*t).sons->data[i_274517] == NIM_NIL)) goto LA44;
					(*result) = resizeString((*result), 3);
appendString((*result), ((NimStringDesc*) &TMP4512));
				}
				goto LA42;
				LA44: ;
				{
					(*result) = addChar((*result), 94);
					encodevint_222212((*(*t).sons->data[i_274517]).Sup.id, result);
					pushtype_274194(w, (*t).sons->data[i_274517]);
				}
				LA42: ;
				res_274535 += ((NI) 1);
			} LA41: ;
		}
	}
	}BeforeRet: ;
}

N_NIMCALL(NI, typestack_275421)(Trodwriter274002* w) {
	NI result;
	NI i;
	result = 0;
	i = ((NI) 0);
	{
		while (1) {
			Ttype216828* 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_223172((*w).index.tab, (*t).Sup.id);
				if (!(LOC8 == ((NI) (-2147483647 -1)))) goto LA9;
				L = ((*w).data ? (*w).data->Sup.len : 0);
				addtoindex_274803((&(*w).index), (*t).Sup.id, L);
				encodetype_274402(w, t, (&(*w).data));
				(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4507));
			}
			goto LA3;
			LA9: ;
			LA3: ;
			i += ((NI) 1);
		} LA2: ;
	}
	(*w).tstack = (Ttypeseq216824*) setLengthSeq(&((*w).tstack)->Sup, sizeof(Ttype216828*), ((NI) (result)));
	return result;
}

N_NIMCALL(void, processstacks_275476)(Trodwriter274002* w, NIM_BOOL finalpass) {
	NI olds;
	NI oldt;
	olds = ((NI) 0);
	oldt = ((NI) 0);
	{
		while (1) {
			NI slen;
			NI tlen;
			slen = symstack_275001(w);
			tlen = typestack_275421(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_189113(((NimStringDesc*) &TMP4513));
	}
	LA15: ;
}

N_NIMCALL(void, rawaddinterfacesym_275485)(Trodwriter274002* w, Tsym216822* s) {
	pushsym_274208(w, s);
	processstacks_275476(w, NIM_FALSE);
}

N_NIMCALL(Tpasscontext263002*, myopen_275919)(Tsym216822* module) {
	Tpasscontext263002* result;
	Trodwriter274002* w;
	Sha1digest194003 LOC5;
	result = 0;
	{
		if (!((*module).Sup.id < ((NI) 0))) goto LA3;
		internalerror_189113(((NimStringDesc*) &TMP4500));
	}
	LA3: ;
	memset((void*)LOC5, 0, sizeof(LOC5));
	gethash_256480(((NI32) ((*module).position)), LOC5);
	w = newrodwriter_274023(LOC5, module);
	rawaddinterfacesym_275485(w, module);
	result = &w->Sup;
	return result;
}

N_NIMCALL(void, addinterfacesym_274035)(Trodwriter274002* w, Tsym216822* s) {
{	{
		if (!(w == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = ((21755776 &(1U<<((NU)((*s).kind)&31U)))!=0);
		if (!(LOC7)) goto LA8;
		LOC7 = !(((65538 & (*s).flags) == 0));
		LA8: ;
		if (!LOC7) goto LA9;
		rawaddinterfacesym_275485(w, s);
	}
	LA9: ;
	}BeforeRet: ;
}

N_NIMCALL(void, addmoddep_274027)(Trodwriter274002* 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_274066(w, dep);
	encodevint_222212(LOC5, (&(*w).moddeps));
}

N_NIMCALL(void, addstmt_274039)(Trodwriter274002* w, Tnode216790* n) {
	Tlineinfo184337 LOC1;
	encodevint_222212(((*w).data ? (*w).data->Sup.len : 0), (&(*w).init));
	(*w).init = resizeString((*w).init, 1);
appendString((*w).init, ((NimStringDesc*) &TMP4507));
	LOC1 = unknownlineinfo_185090();
	encodenode_274223(w, LOC1, n, (&(*w).data));
	(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4507));
	processstacks_275476(w, NIM_FALSE);
}

N_NIMCALL(void, addincldep_274031)(Trodwriter274002* w, NimStringDesc* dep) {
	NimStringDesc* resolved;
	NimStringDesc* LOC1;
	NI LOC2;
	Sha1digest194003 LOC3;
	NimStringDesc* LOC4;
	LOC1 = 0;
	LOC1 = tofullpath_185269((*(*w).module).info.fileindex);
	resolved = findmodule_164484(dep, LOC1);
	LOC2 = 0;
	LOC2 = fileidx_274066(w, dep);
	encodevint_222212(LOC2, (&(*w).incldeps));
	(*w).incldeps = resizeString((*w).incldeps, 1);
appendString((*w).incldeps, ((NimStringDesc*) &TMP4505));
	memset((void*)LOC3, 0, sizeof(LOC3));
	securehashfile_194016(resolved, LOC3);
	LOC4 = 0;
	LOC4 = HEX24_194020(LOC3);
	encodestr_222018(LOC4, (&(*w).incldeps));
	(*w).incldeps = resizeString((*w).incldeps, 1);
appendString((*w).incldeps, ((NimStringDesc*) &TMP4507));
}

N_NIMCALL(Tnode216790*, process_275699)(Tpasscontext263002* c, Tnode216790* n) {
	Tnode216790* result;
	Trodwriter274002* w;
{	result = 0;
	result = n;
	{
		if (!(c == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	w = ((Trodwriter274002*) (c));
	switch ((*n).kind) {
	case ((NU8) 115):
	{
		{
			NI i_275728;
			NI HEX3Atmp_275878;
			NI LOC7;
			NI res_275881;
			i_275728 = 0;
			HEX3Atmp_275878 = 0;
			LOC7 = 0;
			LOC7 = sonslen_219351(n);
			HEX3Atmp_275878 = (NI)(LOC7 - ((NI) 1));
			res_275881 = ((NI) 0);
			{
				while (1) {
					Tnode216790* LOC10;
					if (!(res_275881 <= HEX3Atmp_275878)) goto LA9;
					i_275728 = res_275881;
					LOC10 = 0;
					LOC10 = process_275699(c, (*n).kindU.S6.sons->data[i_275728]);
					res_275881 += ((NI) 1);
				} LA9: ;
			}
		}
	}
	break;
	case ((NU8) 79):
	case ((NU8) 80):
	case ((NU8) 84):
	case ((NU8) 81):
	case ((NU8) 83):
	case ((NU8) 82):
	{
		Tsym216822* s;
		s = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		{
			if (!(s == NIM_NIL)) goto LA14;
			internalerror_189100((*n).info, ((NimStringDesc*) &TMP4514));
		}
		LA14: ;
		{
			if (!((*n).kindU.S6.sons->data[((NI) 6)] == NIM_NIL)) goto LA18;
			internalerror_189100((*n).info, ((NimStringDesc*) &TMP4515));
		}
		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 &(1U<<((NU)(((NU8) 4))&31U)))!=0));
			LA25: ;
			if (!LOC22) goto LA26;
			addinterfacesym_274035(w, s);
		}
		LA26: ;
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	case ((NU8) 101):
	{
		{
			NI i_275800;
			NI HEX3Atmp_275887;
			NI LOC30;
			NI res_275890;
			i_275800 = 0;
			HEX3Atmp_275887 = 0;
			LOC30 = 0;
			LOC30 = sonslen_219351(n);
			HEX3Atmp_275887 = (NI)(LOC30 - ((NI) 1));
			res_275890 = ((NI) 0);
			{
				while (1) {
					if (!(res_275890 <= HEX3Atmp_275887)) goto LA32;
					i_275800 = res_275890;
					{
						Tnode216790* a;
						a = (*n).kindU.S6.sons->data[i_275800];
						{
							if (!((*a).kind == ((NU8) 125))) goto LA36;
							goto LA33;
						}
						LA36: ;
						addinterfacesym_274035(w, (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym);
					} LA33: ;
					res_275890 += ((NI) 1);
				} LA32: ;
			}
		}
	}
	break;
	case ((NU8) 98):
	{
		{
			NI i_275825;
			NI HEX3Atmp_275896;
			NI LOC40;
			NI res_275899;
			i_275825 = 0;
			HEX3Atmp_275896 = 0;
			LOC40 = 0;
			LOC40 = sonslen_219351(n);
			HEX3Atmp_275896 = (NI)(LOC40 - ((NI) 1));
			res_275899 = ((NI) 0);
			{
				while (1) {
					if (!(res_275899 <= HEX3Atmp_275896)) goto LA42;
					i_275825 = res_275899;
					{
						Tnode216790* a;
						Tsym216822* s;
						a = (*n).kindU.S6.sons->data[i_275825];
						{
							if (!((*a).kind == ((NU8) 125))) goto LA46;
							goto LA43;
						}
						LA46: ;
						{
							if (!!(((*(*a).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA50;
							internalerror_189100((*a).info, ((NimStringDesc*) &TMP4514));
						}
						LA50: ;
						s = (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
						addinterfacesym_274035(w, s);
					} LA43: ;
					res_275899 += ((NI) 1);
				} LA42: ;
			}
		}
	}
	break;
	case ((NU8) 116):
	{
		{
			NI i_275861;
			NI HEX3Atmp_275904;
			NI LOC54;
			NI res_275907;
			i_275861 = 0;
			HEX3Atmp_275904 = 0;
			LOC54 = 0;
			LOC54 = sonslen_219351(n);
			HEX3Atmp_275904 = (NI)(LOC54 - ((NI) 1));
			res_275907 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* LOC57;
					if (!(res_275907 <= HEX3Atmp_275904)) goto LA56;
					i_275861 = res_275907;
					LOC57 = 0;
					LOC57 = getmodulename_273009((*n).kindU.S6.sons->data[i_275861]);
					addmoddep_274027(w, LOC57);
					res_275907 += ((NI) 1);
				} LA56: ;
			}
		}
		addstmt_274039(w, n);
	}
	break;
	case ((NU8) 120):
	{
		NimStringDesc* LOC59;
		LOC59 = 0;
		LOC59 = getmodulename_273009((*n).kindU.S6.sons->data[((NI) 0)]);
		addmoddep_274027(w, LOC59);
		addstmt_274039(w, n);
	}
	break;
	case ((NU8) 121):
	{
		{
			NI i_275875;
			NI HEX3Atmp_275912;
			NI LOC62;
			NI res_275915;
			i_275875 = 0;
			HEX3Atmp_275912 = 0;
			LOC62 = 0;
			LOC62 = sonslen_219351(n);
			HEX3Atmp_275912 = (NI)(LOC62 - ((NI) 1));
			res_275915 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* LOC65;
					if (!(res_275915 <= HEX3Atmp_275912)) goto LA64;
					i_275875 = res_275915;
					LOC65 = 0;
					LOC65 = getmodulename_273009((*n).kindU.S6.sons->data[i_275875]);
					addincldep_274031(w, LOC65);
					res_275915 += ((NI) 1);
				} LA64: ;
			}
		}
	}
	break;
	case ((NU8) 90):
	{
		addstmt_274039(w, n);
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, writerod_274043)(Trodwriter274002* w) {
	FILE* f;
	NimStringDesc* id;
	NimStringDesc* orig;
	NimStringDesc* hash;
	NimStringDesc* LOC10;
	NimStringDesc* options;
	NimStringDesc* goptions;
	NimStringDesc* cmd;
	NimStringDesc* files;
{	processstacks_275476(w, NIM_TRUE);
	f = 0;
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		NimStringDesc* LOC5;
		NimStringDesc* LOC6;
		NIM_BOOL LOC7;
		LOC3 = 0;
		LOC3 = tofilename_185265(((NI32) ((*(*w).module).position)));
		LOC4 = 0;
		LOC4 = withpackagename_164070(LOC3);
		LOC5 = 0;
		LOC5 = noschangeFileExt(LOC4, ((NimStringDesc*) &TMP4516));
		LOC6 = 0;
		LOC6 = completegeneratedfilepath_164201(LOC5, NIM_TRUE);
		LOC7 = 0;
		LOC7 = open_15403(&f, LOC6, ((NU8) 1), ((NI) -1));
		if (!!(LOC7)) goto LA8;
		goto BeforeRet;
	}
	LA8: ;
	write_15489(f, ((NimStringDesc*) &TMP4517));
	write_15489(f, ((NimStringDesc*) &TMP4518));
	write_15489(f, ((NimStringDesc*) &TMP4507));
	id = copyString(((NimStringDesc*) &TMP4519));
	encodevint_222212((*(*w).module).Sup.id, (&id));
	write_15489(f, id);
	write_15489(f, ((NimStringDesc*) &TMP4507));
	orig = copyString(((NimStringDesc*) &TMP4520));
	encodestr_222018((*w).origfile, (&orig));
	write_15489(f, orig);
	write_15489(f, ((NimStringDesc*) &TMP4507));
	hash = copyString(((NimStringDesc*) &TMP4521));
	LOC10 = 0;
	LOC10 = HEX24_194020((*w).hash);
	encodestr_222018(LOC10, (&hash));
	write_15489(f, hash);
	write_15489(f, ((NimStringDesc*) &TMP4507));
	options = copyString(((NimStringDesc*) &TMP4522));
	encodevint_222212(((NI) (((NI32) ((*w).options)))), (&options));
	write_15489(f, options);
	write_15489(f, ((NimStringDesc*) &TMP4507));
	goptions = copyString(((NimStringDesc*) &TMP4523));
	encodevint_222212(((NI) (((NI32) (gglobaloptions_163121)))), (&goptions));
	write_15489(f, goptions);
	write_15489(f, ((NimStringDesc*) &TMP4507));
	cmd = copyString(((NimStringDesc*) &TMP4524));
	encodevint_222212(((NI) (((NI32) (gcmd_163123)))), (&cmd));
	write_15489(f, cmd);
	write_15489(f, ((NimStringDesc*) &TMP4507));
	write_15489(f, ((NimStringDesc*) &TMP4525));
	write_15489(f, (*w).defines);
	write_15489(f, ((NimStringDesc*) &TMP4507));
	files = copyString(((NimStringDesc*) &TMP4526));
	{
		NI i_275618;
		NI HEX3Atmp_275692;
		NI res_275695;
		i_275618 = 0;
		HEX3Atmp_275692 = 0;
		HEX3Atmp_275692 = ((*w).files ? ((*w).files->Sup.len-1) : -1);
		res_275695 = ((NI) 0);
		{
			while (1) {
				if (!(res_275695 <= HEX3Atmp_275692)) goto LA13;
				i_275618 = res_275695;
				encodestr_222018((*w).files->data[i_275618], (&files));
				files = resizeString(files, 1);
appendString(files, ((NimStringDesc*) &TMP4507));
				res_275695 += ((NI) 1);
			} LA13: ;
		}
	}
	write_15489(f, files);
	write_15489(f, ((NimStringDesc*) &TMP4527));
	write_15489(f, ((NimStringDesc*) &TMP4528));
	write_15489(f, (*w).incldeps);
	write_15489(f, ((NimStringDesc*) &TMP4527));
	write_15489(f, ((NimStringDesc*) &TMP4529));
	write_15489(f, (*w).moddeps);
	write_15489(f, ((NimStringDesc*) &TMP4507));
	write_15489(f, ((NimStringDesc*) &TMP4530));
	write_15489(f, (*w).interf);
	write_15489(f, ((NimStringDesc*) &TMP4527));
	write_15489(f, ((NimStringDesc*) &TMP4531));
	write_15489(f, (*w).compilerprocs);
	write_15489(f, ((NimStringDesc*) &TMP4527));
	write_15489(f, ((NimStringDesc*) &TMP4532));
	write_15489(f, (*w).index.r);
	write_15489(f, ((NimStringDesc*) &TMP4527));
	write_15489(f, ((NimStringDesc*) &TMP4533));
	write_15489(f, (*w).imports.r);
	write_15489(f, ((NimStringDesc*) &TMP4527));
	write_15489(f, ((NimStringDesc*) &TMP4534));
	write_15489(f, (*w).converters);
	write_15489(f, ((NimStringDesc*) &TMP4507));
	write_15489(f, ((NimStringDesc*) &TMP4535));
	write_15489(f, (*w).methods);
	write_15489(f, ((NimStringDesc*) &TMP4507));
	write_15489(f, ((NimStringDesc*) &TMP4536));
	write_15489(f, (*w).init);
	write_15489(f, ((NimStringDesc*) &TMP4527));
	write_15489(f, ((NimStringDesc*) &TMP4537));
	write_15489(f, (*w).data);
	write_15489(f, ((NimStringDesc*) &TMP4527));
	write_15489(f, ((NimStringDesc*) &TMP4538));
	fclose(f);
	}BeforeRet: ;
}

N_NIMCALL(Tnode216790*, myclose_275929)(Tpasscontext263002* c, Tnode216790* n) {
	Tnode216790* result;
	Trodwriter274002* w;
	NimStringDesc* LOC1;
	result = 0;
	result = process_275699(c, n);
	w = ((Trodwriter274002*) (c));
	writerod_274043(w);
	LOC1 = 0;
	LOC1 = HEX2F_116874(gprojectpath_163200, gprojectname_163199);
	savemaxids_215439(LOC1);
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_rodwriteInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_rodwriteDatInit000)(void) {
static TNimNode* TMP4501[18];
static TNimNode TMP929[19];
NTI274002.size = sizeof(Trodwriter274002);
NTI274002.kind = 17;
NTI274002.base = (&NTI263002);
TMP4501[0] = &TMP929[1];
TMP929[1].kind = 1;
TMP929[1].offset = offsetof(Trodwriter274002, module);
TMP929[1].typ = (&NTI216788);
TMP929[1].name = "module";
TMP4501[1] = &TMP929[2];
TMP929[2].kind = 1;
TMP929[2].offset = offsetof(Trodwriter274002, hash);
TMP929[2].typ = (&NTI194003);
TMP929[2].name = "hash";
TMP4501[2] = &TMP929[3];
TMP929[3].kind = 1;
TMP929[3].offset = offsetof(Trodwriter274002, options);
TMP929[3].typ = (&NTI163011);
TMP929[3].name = "options";
TMP4501[3] = &TMP929[4];
TMP929[4].kind = 1;
TMP929[4].offset = offsetof(Trodwriter274002, defines);
TMP929[4].typ = (&NTI138);
TMP929[4].name = "defines";
TMP4501[4] = &TMP929[5];
TMP929[5].kind = 1;
TMP929[5].offset = offsetof(Trodwriter274002, incldeps);
TMP929[5].typ = (&NTI138);
TMP929[5].name = "inclDeps";
TMP4501[5] = &TMP929[6];
TMP929[6].kind = 1;
TMP929[6].offset = offsetof(Trodwriter274002, moddeps);
TMP929[6].typ = (&NTI138);
TMP929[6].name = "modDeps";
TMP4501[6] = &TMP929[7];
TMP929[7].kind = 1;
TMP929[7].offset = offsetof(Trodwriter274002, interf);
TMP929[7].typ = (&NTI138);
TMP929[7].name = "interf";
TMP4501[7] = &TMP929[8];
TMP929[8].kind = 1;
TMP929[8].offset = offsetof(Trodwriter274002, compilerprocs);
TMP929[8].typ = (&NTI138);
TMP929[8].name = "compilerProcs";
TMP4501[8] = &TMP929[9];
TMP929[9].kind = 1;
TMP929[9].offset = offsetof(Trodwriter274002, index);
TMP929[9].typ = (&NTI254019);
TMP929[9].name = "index";
TMP4501[9] = &TMP929[10];
TMP929[10].kind = 1;
TMP929[10].offset = offsetof(Trodwriter274002, imports);
TMP929[10].typ = (&NTI254019);
TMP929[10].name = "imports";
TMP4501[10] = &TMP929[11];
TMP929[11].kind = 1;
TMP929[11].offset = offsetof(Trodwriter274002, converters);
TMP929[11].typ = (&NTI138);
TMP929[11].name = "converters";
TMP4501[11] = &TMP929[12];
TMP929[12].kind = 1;
TMP929[12].offset = offsetof(Trodwriter274002, methods);
TMP929[12].typ = (&NTI138);
TMP929[12].name = "methods";
TMP4501[12] = &TMP929[13];
TMP929[13].kind = 1;
TMP929[13].offset = offsetof(Trodwriter274002, init);
TMP929[13].typ = (&NTI138);
TMP929[13].name = "init";
TMP4501[13] = &TMP929[14];
TMP929[14].kind = 1;
TMP929[14].offset = offsetof(Trodwriter274002, data);
TMP929[14].typ = (&NTI138);
TMP929[14].name = "data";
TMP4501[14] = &TMP929[15];
TMP929[15].kind = 1;
TMP929[15].offset = offsetof(Trodwriter274002, sstack);
TMP929[15].typ = (&NTI216792);
TMP929[15].name = "sstack";
TMP4501[15] = &TMP929[16];
TMP929[16].kind = 1;
TMP929[16].offset = offsetof(Trodwriter274002, tstack);
TMP929[16].typ = (&NTI216824);
TMP929[16].name = "tstack";
TMP4501[16] = &TMP929[17];
TMP929[17].kind = 1;
TMP929[17].offset = offsetof(Trodwriter274002, files);
TMP929[17].typ = (&NTI127402);
TMP929[17].name = "files";
TMP4501[17] = &TMP929[18];
TMP929[18].kind = 1;
TMP929[18].offset = offsetof(Trodwriter274002, origfile);
TMP929[18].typ = (&NTI138);
TMP929[18].name = "origFile";
TMP929[0].len = 18; TMP929[0].kind = 2; TMP929[0].sons = &TMP4501[0];
NTI274002.node = &TMP929[0];
NTI274004.size = sizeof(Trodwriter274002*);
NTI274004.kind = 22;
NTI274004.base = (&NTI274002);
NTI274004.marker = TMP4502;
}

