/* Generated by Nim Compiler v0.13.0 */
/*   (c) 2015 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64

#include "nimbase.h"
#include <string.h>
#include <stdio.h>
typedef struct Tpasscontext262002 Tpasscontext262002;
typedef struct Tsym215822 Tsym215822;
typedef struct Tidobj190006 Tidobj190006;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Ttypeseq215824 Ttypeseq215824;
typedef struct Tscope215816 Tscope215816;
typedef struct TY215925 TY215925;
typedef struct Tstrtable215794 Tstrtable215794;
typedef struct Tsymseq215792 Tsymseq215792;
typedef struct Ttype215828 Ttype215828;
typedef struct Tident190012 Tident190012;
typedef struct Tlineinfo183337 Tlineinfo183337;
typedef struct Tnode215790 Tnode215790;
typedef struct Tloc215804 Tloc215804;
typedef struct Ropeobj170006 Ropeobj170006;
typedef struct Tlib215808 Tlib215808;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Trodwriter273002 Trodwriter273002;
typedef struct Tindex253019 Tindex253019;
typedef struct Tiitable222163 Tiitable222163;
typedef struct Tiipairseq222161 Tiipairseq222161;
typedef struct TY125202 TY125202;
typedef struct Cell47504 Cell47504;
typedef struct Cellseq47520 Cellseq47520;
typedef struct Gcheap49818 Gcheap49818;
typedef struct Gcstack49816 Gcstack49816;
typedef struct Cellset47516 Cellset47516;
typedef struct Pagedesc47512 Pagedesc47512;
typedef struct Memregion29688 Memregion29688;
typedef struct Smallchunk29640 Smallchunk29640;
typedef struct Llchunk29682 Llchunk29682;
typedef struct Bigchunk29642 Bigchunk29642;
typedef struct Intset29614 Intset29614;
typedef struct Trunk29610 Trunk29610;
typedef struct Avlnode29686 Avlnode29686;
typedef struct Gcstat49814 Gcstat49814;
typedef struct Stringtableobj140209 Stringtableobj140209;
typedef struct Keyvaluepairseq140207 Keyvaluepairseq140207;
typedef struct Keyvaluepair140205 Keyvaluepair140205;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct Tnodeseq215784 Tnodeseq215784;
typedef struct Tinstantiation215812 Tinstantiation215812;
typedef struct Tiipair222159 Tiipair222159;
typedef struct Basechunk29638 Basechunk29638;
typedef struct Freecell29630 Freecell29630;
typedef struct TY215913 TY215913;
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  Tidobj190006  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable215794  {
NI counter;
Tsymseq215792* data;
};
struct  Tlineinfo183337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc215804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype215828* t;
Ropeobj170006* r;
Ropeobj170006* heaproot;
};
struct  Tsym215822  {
  Tidobj190006 Sup;
NU8 kind;
union{
struct {Ttypeseq215824* typeinstcache;
Tscope215816* typscope;
} S1;
struct {TY215925* procinstcache;
Tsym215822* gcunsafetyreason;
} S2;
struct {TY215925* usedgenerics;
Tstrtable215794 tab;
} S3;
struct {Tsym215822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype215828* typ;
Tident190012* name;
Tlineinfo183337 info;
Tsym215822* owner;
NU32 flags;
Tnode215790* ast;
NU32 options;
NI position;
NI offset;
Tloc215804 loc;
Tlib215808* annex;
Tnode215790* constraint;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 Sha1digest193003[20];
struct  Tpasscontext262002  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Tiitable222163  {
NI counter;
Tiipairseq222161* data;
};
struct  Tindex253019  {
NI lastidxkey;
NI lastidxval;
Tiitable222163 tab;
NimStringDesc* r;
NI offset;
};
struct  Trodwriter273002  {
  Tpasscontext262002 Sup;
Tsym215822* module;
Sha1digest193003 hash;
NU32 options;
NimStringDesc* defines;
NimStringDesc* incldeps;
NimStringDesc* moddeps;
NimStringDesc* interf;
NimStringDesc* compilerprocs;
Tindex253019 index;
Tindex253019 imports;
NimStringDesc* converters;
NimStringDesc* methods;
NimStringDesc* init;
NimStringDesc* data;
Tsymseq215792* sstack;
Ttypeseq215824* tstack;
TY125202* files;
NimStringDesc* origfile;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Cell47504  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47520  {
NI len;
NI cap;
Cell47504** d;
};
struct  Cellset47516  {
NI counter;
NI max;
Pagedesc47512* head;
Pagedesc47512** data;
};
typedef Smallchunk29640* TY29703[512];
typedef Trunk29610* Trunkbuckets29612[256];
struct  Intset29614  {
Trunkbuckets29612 data;
};
struct  Memregion29688  {
NI minlargeobj;
NI maxlargeobj;
TY29703 freesmallchunks;
Llchunk29682* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29642* freechunkslist;
Intset29614 chunkstarts;
Avlnode29686* root;
Avlnode29686* deleted;
Avlnode29686* last;
Avlnode29686* freeavlnodes;
};
struct  Gcstat49814  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap49818  {
Gcstack49816* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47520 zct;
Cellseq47520 decstack;
Cellset47516 cycleroots;
Cellseq47520 tempstack;
NI recgclock;
Memregion29688 region;
Gcstat49814 stat;
};
struct  Stringtableobj140209  {
  TNimObject Sup;
NI counter;
Keyvaluepairseq140207* data;
NU8 mode;
};
struct Keyvaluepair140205 {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
struct  Tident190012  {
  Tidobj190006 Sup;
NimStringDesc* s;
Tident190012* next;
NI h;
};
struct  Ttype215828  {
  Tidobj190006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq215824* sons;
Tnode215790* n;
Tsym215822* owner;
Tsym215822* sym;
Tsym215822* destructor;
Tsym215822* deepcopy;
Tsym215822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc215804 loc;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Tlib215808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj170006* name;
Tnode215790* path;
};
struct  Tnode215790  {
Ttype215828* typ;
Tlineinfo183337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym215822* sym;
} S4;
struct {Tident190012* ident;
} S5;
struct {Tnodeseq215784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tscope215816  {
NI depthlevel;
Tstrtable215794 symbols;
Tnodeseq215784* usingsyms;
Tscope215816* parent;
};
struct  Ropeobj170006  {
  TNimObject Sup;
Ropeobj170006* left;
Ropeobj170006* right;
NI length;
NimStringDesc* data;
};
struct  Tiipair222159  {
NI key;
NI val;
};
struct  Gcstack49816  {
Gcstack49816* prev;
Gcstack49816* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29619[8];
struct  Pagedesc47512  {
Pagedesc47512* next;
NI key;
TY29619 bits;
};
struct  Basechunk29638  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29640  {
  Basechunk29638 Sup;
Smallchunk29640* next;
Smallchunk29640* prev;
Freecell29630* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29682  {
NI size;
NI acc;
Llchunk29682* next;
};
struct  Bigchunk29642  {
  Basechunk29638 Sup;
Bigchunk29642* next;
Bigchunk29642* prev;
NI align;
NF data;
};
struct  Trunk29610  {
Trunk29610* next;
NI key;
TY29619 bits;
};
typedef Avlnode29686* TY29693[2];
struct  Avlnode29686  {
TY29693 link;
NI key;
NI upperbound;
NI level;
};
struct  Tinstantiation215812  {
Tsym215822* sym;
Ttypeseq215824* concretetypes;
TY215913* usedby;
NI compilesid;
};
struct  Freecell29630  {
Freecell29630* next;
NI zerofield;
};
struct Tsymseq215792 {
  TGenericSeq Sup;
  Tsym215822* data[SEQ_DECL_SIZE];
};
struct Ttypeseq215824 {
  TGenericSeq Sup;
  Ttype215828* data[SEQ_DECL_SIZE];
};
struct TY125202 {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct TY215925 {
  TGenericSeq Sup;
  Tinstantiation215812* data[SEQ_DECL_SIZE];
};
struct Tiipairseq222161 {
  TGenericSeq Sup;
  Tiipair222159 data[SEQ_DECL_SIZE];
};
struct Keyvaluepairseq140207 {
  TGenericSeq Sup;
  Keyvaluepair140205 data[SEQ_DECL_SIZE];
};
struct Tnodeseq215784 {
  TGenericSeq Sup;
  Tnode215790* data[SEQ_DECL_SIZE];
};
struct TY215913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, internalerror_188113)(NimStringDesc* errmsg);
N_NIMCALL(Trodwriter273002*, newrodwriter_273023)(Sha1digest193003 hash, Tsym215822* module);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4501)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell47504*, usrtocell_51440)(void* usr);
static N_INLINE(void, rtladdzct_53001)(Cell47504* c);
N_NOINLINE(void, addzct_51417)(Cellseq47520* s, Cell47504* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, initiitable_222168)(Tiitable222163* x);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(NimStringDesc*, getdefines_273046)(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_184262)(NI32 fileidx);
N_NIMCALL(void, gethash_255480)(NI32 fileidx, Sha1digest193003* Result);
N_NIMCALL(void, rawaddinterfacesym_274485)(Trodwriter273002* w, Tsym215822* s);
N_NIMCALL(void, pushsym_273208)(Trodwriter273002* w, Tsym215822* s);
N_NIMCALL(NI, iitableget_222172)(Tiitable222163 t, NI key);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, processstacks_274476)(Trodwriter273002* w, NIM_BOOL finalpass);
N_NIMCALL(NI, symstack_274001)(Trodwriter273002* w);
N_NIMCALL(Tsym215822*, getmodule_222144)(Tsym215822* s);
N_NIMCALL(void, addtoindex_273803)(Tindex253019* w, NI key, NI val);
N_NIMCALL(void, encodevint_221212)(NI x, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(void, iitableput_222176)(Tiitable222163* t, NI key, NI val);
N_NIMCALL(void, encodesym_273554)(Trodwriter273002* w, Tsym215822* s, NimStringDesc** result);
N_NIMCALL(void, encodestr_221018)(NimStringDesc* s, NimStringDesc** result);
N_NIMCALL(void, pushtype_273194)(Trodwriter273002* w, Ttype215828* t);
N_NIMCALL(NI, fileidx_273066)(Trodwriter273002* w, NimStringDesc* filename);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, encodeloc_273321)(Trodwriter273002* w, Tloc215804* loc, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, HEX24_170856)(Ropeobj170006* r);
N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newlen);
N_NIMCALL(void, encodelib_273539)(Trodwriter273002* w, Tlib215808* lib, Tlineinfo183337 info, NimStringDesc** result);
N_NIMCALL(void, encodenode_273223)(Trodwriter273002* w, Tlineinfo183337 finfo, Tnode215790* n, NimStringDesc** result);
N_NIMCALL(void, encodevbiggestint_221186)(NI64 x, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(NI, sonslen_218351)(Tnode215790* n);
N_NIMCALL(Tlineinfo183337, unknownlineinfo_184087)(void);
static N_INLINE(NIM_BOOL, haspattern_220411)(Tsym215822* s);
static N_INLINE(NIM_BOOL, isroutine_220397)(Tsym215822* s);
N_NIMCALL(NI, typestack_274421)(Trodwriter273002* w);
N_NIMCALL(void, encodetype_273402)(Trodwriter273002* w, Ttype215828* t, NimStringDesc** result);
N_NIMCALL(NI, sonslen_218327)(Ttype215828* n);
N_NIMCALL(Tnode215790*, process_274698)(Tpasscontext262002* c, Tnode215790* n);
N_NIMCALL(void, internalerror_188100)(Tlineinfo183337 info, NimStringDesc* errmsg);
N_NIMCALL(void, addinterfacesym_273035)(Trodwriter273002* w, Tsym215822* s);
N_NIMCALL(void, addmoddep_273027)(Trodwriter273002* w, NimStringDesc* dep);
N_NIMCALL(NimStringDesc*, getmodulename_272009)(Tnode215790* n);
N_NIMCALL(void, addstmt_273039)(Trodwriter273002* w, Tnode215790* n);
N_NIMCALL(void, addincldep_273031)(Trodwriter273002* w, NimStringDesc* dep);
N_NIMCALL(NimStringDesc*, findmodule_162484)(NimStringDesc* modulename, NimStringDesc* currentmodule);
N_NIMCALL(NimStringDesc*, tofullpath_184266)(NI32 fileidx);
N_NIMCALL(NimStringDesc*, HEX24_193020)(Sha1digest193003 self);
N_NIMCALL(void, securehashfile_193016)(NimStringDesc* filename, Sha1digest193003* Result);
N_NIMCALL(void, writerod_273043)(Trodwriter273002* w);
N_NIMCALL(NIM_BOOL, open_15403)(FILE** f, NimStringDesc* filename, NU8 mode, NI bufsize);
N_NIMCALL(NimStringDesc*, completegeneratedfilepath_162201)(NimStringDesc* f, NIM_BOOL createsubdir);
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(NimStringDesc*, withpackagename_162074)(NimStringDesc* path);
N_NIMCALL(void, write_15489)(FILE* f, NimStringDesc* s);
N_NIMCALL(void, savemaxids_214439)(NimStringDesc* project);
N_NIMCALL(NimStringDesc*, HEX2F_118465)(NimStringDesc* head, NimStringDesc* tail);
STRING_LITERAL(TMP4499, "rodwrite: module ID not set", 27);
STRING_LITERAL(TMP4502, "", 0);
STRING_LITERAL(TMP4503, "false", 5);
STRING_LITERAL(TMP4504, " ", 1);
STRING_LITERAL(TMP4505, "symStack: module nil: ", 22);
STRING_LITERAL(TMP4506, "\012", 1);
STRING_LITERAL(TMP4507, "{}", 2);
STRING_LITERAL(TMP4508, "()", 2);
STRING_LITERAL(TMP4509, "[]", 2);
STRING_LITERAL(TMP4510, "encodeType: tyForward", 21);
STRING_LITERAL(TMP4511, "^()", 3);
STRING_LITERAL(TMP4512, "could not serialize some forwarded symbols/types", 48);
STRING_LITERAL(TMP4513, "rodwrite.process", 16);
STRING_LITERAL(TMP4514, "rodwrite.process: body is nil", 29);
STRING_LITERAL(TMP4515, "rod", 3);
STRING_LITERAL(TMP4516, "NIM:", 4);
STRING_LITERAL(TMP4517, "1215", 4);
STRING_LITERAL(TMP4518, "ID:", 3);
STRING_LITERAL(TMP4519, "ORIGFILE:", 9);
STRING_LITERAL(TMP4520, "HASH:", 5);
STRING_LITERAL(TMP4521, "OPTIONS:", 8);
STRING_LITERAL(TMP4522, "GOPTIONS:", 9);
STRING_LITERAL(TMP4523, "CMD:", 4);
STRING_LITERAL(TMP4524, "DEFINES:", 8);
STRING_LITERAL(TMP4525, "FILES(\012", 7);
STRING_LITERAL(TMP4526, ")\012", 2);
STRING_LITERAL(TMP4527, "INCLUDES(\012", 10);
STRING_LITERAL(TMP4528, "DEPS:", 5);
STRING_LITERAL(TMP4529, "INTERF(\012", 8);
STRING_LITERAL(TMP4530, "COMPILERPROCS(\012", 15);
STRING_LITERAL(TMP4531, "INDEX(\012", 7);
STRING_LITERAL(TMP4532, "IMPORTS(\012", 9);
STRING_LITERAL(TMP4533, "CONVERTERS:", 11);
STRING_LITERAL(TMP4534, "METHODS:", 8);
STRING_LITERAL(TMP4535, "INIT(\012", 6);
STRING_LITERAL(TMP4536, "DATA(\012", 6);
STRING_LITERAL(TMP4537, "\000", 1);
extern TNimType NTI262002; /* TPassContext */
TNimType NTI273002; /* TRodWriter */
extern TNimType NTI215788; /* PSym */
extern TNimType NTI193003; /* Sha1Digest */
extern TNimType NTI161011; /* TOptions */
extern TNimType NTI138; /* string */
extern TNimType NTI253019; /* TIndex */
extern TNimType NTI215792; /* TSymSeq */
extern TNimType NTI215824; /* TTypeSeq */
extern TNimType NTI125202; /* seq[string] */
TNimType NTI273004; /* PRodWriter */
extern Gcheap49818 gch_49859;
extern Stringtableobj140209* gsymbols_191001;
extern NU32 goptions_161119;
extern NU32 gglobaloptions_161121;
extern NU8 gcmd_161123;
extern NimStringDesc* gprojectpath_161200;
extern NimStringDesc* gprojectname_161199;
N_NIMCALL(void, TMP4501)(void* p, NI op) {
	Trodwriter273002* a;
	a = (Trodwriter273002*)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(Cell47504*, usrtocell_51440)(void* usr) {
	Cell47504* result;
	result = 0;
	result = ((Cell47504*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((NI)sizeof(Cell47504))))));
	return result;
}

static N_INLINE(void, rtladdzct_53001)(Cell47504* c) {
	addzct_51417((&gch_49859.zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell47504* c;
	c = usrtocell_51440(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_53001(c);
	}
	LA3: ;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell47504* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_51440(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell47504* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_51440((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA11;
			rtladdzct_53001(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_273046)(void) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP4502));
	{
		NimStringDesc* d_273049;
		d_273049 = 0;
		{
			NimStringDesc* key_273055;
			NimStringDesc* val_273057;
			key_273055 = 0;
			val_273057 = 0;
			{
				NI h_273059;
				NI HEX3Atmp_273061;
				NI res_273063;
				h_273059 = 0;
				HEX3Atmp_273061 = 0;
				HEX3Atmp_273061 = ((*gsymbols_191001).data ? ((*gsymbols_191001).data->Sup.len-1) : -1);
				res_273063 = ((NI) 0);
				{
					while (1) {
						if (!(res_273063 <= HEX3Atmp_273061)) goto LA5;
						h_273059 = res_273063;
						{
							if (!!((*gsymbols_191001).data->data[h_273059].Field0 == 0)) goto LA8;
							key_273055 = (*gsymbols_191001).data->data[h_273059].Field0;
							val_273057 = (*gsymbols_191001).data->data[h_273059].Field1;
							{
								if (!!(eqStrings(val_273057, ((NimStringDesc*) &TMP4503)))) goto LA12;
								d_273049 = key_273055;
								{
									if (!!(((result ? result->Sup.len : 0) == ((NI) 0)))) goto LA16;
									result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TMP4504));
								}
								LA16: ;
								result = resizeString(result, d_273049->Sup.len + 0);
appendString(result, d_273049);
							}
							LA12: ;
						}
						LA8: ;
						res_273063 += ((NI) 1);
					} LA5: ;
				}
			}
		}
	}
	return result;
}

N_NIMCALL(Trodwriter273002*, newrodwriter_273023)(Sha1digest193003 hash, Tsym215822* module) {
	Trodwriter273002* result;
	NimStringDesc* LOC1;
	NimStringDesc* LOC2;
	NimStringDesc* LOC3;
	NimStringDesc* LOC4;
	NimStringDesc* LOC5;
	NimStringDesc* LOC6;
	NimStringDesc* LOC7;
	NimStringDesc* LOC8;
	result = 0;
	result = (Trodwriter273002*) newObj((&NTI273004), sizeof(Trodwriter273002));
	(*result).Sup.Sup.m_type = (&NTI273002);
	if ((*result).sstack) nimGCunrefNoCycle((*result).sstack);
	(*result).sstack = (Tsymseq215792*) newSeqRC1((&NTI215792), 0);
	if ((*result).tstack) nimGCunrefNoCycle((*result).tstack);
	(*result).tstack = (Ttypeseq215824*) newSeqRC1((&NTI215824), 0);
	initiitable_222168((&(*result).index.tab));
	initiitable_222168((&(*result).imports.tab));
	LOC1 = 0;
	LOC1 = (*result).index.r; (*result).index.r = copyStringRC1(((NimStringDesc*) &TMP4502));
	if (LOC1) nimGCunrefNoCycle(LOC1);
	LOC2 = 0;
	LOC2 = (*result).imports.r; (*result).imports.r = copyStringRC1(((NimStringDesc*) &TMP4502));
	if (LOC2) nimGCunrefNoCycle(LOC2);
	memcpy((void*)(*result).hash, (NIM_CONST void*)hash, sizeof(Sha1digest193003));
	asgnRefNoCycle((void**) (&(*result).module), module);
	asgnRefNoCycle((void**) (&(*result).defines), getdefines_273046());
	(*result).options = goptions_161119;
	if ((*result).files) nimGCunrefNoCycle((*result).files);
	(*result).files = (TY125202*) newSeqRC1((&NTI125202), 0);
	LOC3 = 0;
	LOC3 = (*result).incldeps; (*result).incldeps = copyStringRC1(((NimStringDesc*) &TMP4502));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	LOC4 = 0;
	LOC4 = (*result).moddeps; (*result).moddeps = copyStringRC1(((NimStringDesc*) &TMP4502));
	if (LOC4) nimGCunrefNoCycle(LOC4);
	asgnRefNoCycle((void**) (&(*result).interf), rawNewString(((NI) 2000)));
	LOC5 = 0;
	LOC5 = (*result).compilerprocs; (*result).compilerprocs = copyStringRC1(((NimStringDesc*) &TMP4502));
	if (LOC5) nimGCunrefNoCycle(LOC5);
	LOC6 = 0;
	LOC6 = (*result).converters; (*result).converters = copyStringRC1(((NimStringDesc*) &TMP4502));
	if (LOC6) nimGCunrefNoCycle(LOC6);
	LOC7 = 0;
	LOC7 = (*result).methods; (*result).methods = copyStringRC1(((NimStringDesc*) &TMP4502));
	if (LOC7) nimGCunrefNoCycle(LOC7);
	LOC8 = 0;
	LOC8 = (*result).init; (*result).init = copyStringRC1(((NimStringDesc*) &TMP4502));
	if (LOC8) nimGCunrefNoCycle(LOC8);
	asgnRefNoCycle((void**) (&(*result).origfile), tofilename_184262((*module).info.fileindex));
	asgnRefNoCycle((void**) (&(*result).data), rawNewString(((NI) 12000)));
	return result;
}

N_NIMCALL(void, pushsym_273208)(Trodwriter273002* w, Tsym215822* s) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = iitableget_222172((*w).index.tab, (*s).Sup.id);
		if (!(LOC3 == ((NI) (IL64(-9223372036854775807) - IL64(1))))) goto LA4;
		(*w).sstack = (Tsymseq215792*) incrSeqV2(&((*w).sstack)->Sup, sizeof(Tsym215822*));
		asgnRefNoCycle((void**) (&(*w).sstack->data[(*w).sstack->Sup.len]), s);
		++(*w).sstack->Sup.len;
	}
	LA4: ;
}

N_NIMCALL(void, addtoindex_273803)(Tindex253019* w, NI key, NI val) {
	{
		if (!((NI)(key - (*w).lastidxkey) == ((NI) 1))) goto LA3;
		encodevint_221212((NI)(val - (*w).lastidxval), (&(*w).r));
	}
	goto LA1;
	LA3: ;
	{
		encodevint_221212((NI)(key - (*w).lastidxkey), (&(*w).r));
		(*w).r = addChar((*w).r, 32);
		encodevint_221212((NI)(val - (*w).lastidxval), (&(*w).r));
	}
	LA1: ;
	(*w).r = resizeString((*w).r, 1);
appendString((*w).r, ((NimStringDesc*) &TMP4506));
	(*w).lastidxkey = key;
	(*w).lastidxval = val;
	iitableput_222176((&(*w).tab), key, val);
}

N_NIMCALL(void, pushtype_273194)(Trodwriter273002* w, Ttype215828* t) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = iitableget_222172((*w).index.tab, (*t).Sup.id);
		if (!(LOC3 == ((NI) (IL64(-9223372036854775807) - IL64(1))))) goto LA4;
		(*w).tstack = (Ttypeseq215824*) incrSeqV2(&((*w).tstack)->Sup, sizeof(Ttype215828*));
		asgnRefNoCycle((void**) (&(*w).tstack->data[(*w).tstack->Sup.len]), t);
		++(*w).tstack->Sup.len;
	}
	LA4: ;
}

N_NIMCALL(NI, fileidx_273066)(Trodwriter273002* w, NimStringDesc* filename) {
	NI result;
	NimStringDesc* LOC8;
{	result = 0;
	{
		NI i_273082;
		NI HEX3Atmp_273102;
		NI res_273105;
		i_273082 = 0;
		HEX3Atmp_273102 = 0;
		HEX3Atmp_273102 = ((*w).files ? ((*w).files->Sup.len-1) : -1);
		res_273105 = ((NI) 0);
		{
			while (1) {
				if (!(res_273105 <= HEX3Atmp_273102)) goto LA3;
				i_273082 = res_273105;
				{
					if (!eqStrings((*w).files->data[i_273082], filename)) goto LA6;
					result = i_273082;
					goto BeforeRet;
				}
				LA6: ;
				res_273105 += ((NI) 1);
			} LA3: ;
		}
	}
	result = ((*w).files ? (*w).files->Sup.len : 0);
	(*w).files = (TY125202*) 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_273321)(Trodwriter273002* w, Tloc215804* loc, NimStringDesc** result) {
	NI oldlen;
	oldlen = ((*result) ? (*result)->Sup.len : 0);
	(*result) = addChar((*result), 60);
	{
		if (!!(((*loc).k == ((NU8) 0)))) goto LA3;
		encodevint_221212(((NI) ((*loc).k)), result);
	}
	LA3: ;
	{
		if (!!(((*loc).s == ((NU8) 0)))) goto LA7;
		(*result) = addChar((*result), 42);
		encodevint_221212(((NI) ((*loc).s)), result);
	}
	LA7: ;
	{
		if (!!(((*loc).flags == 0))) goto LA11;
		(*result) = addChar((*result), 36);
		encodevint_221212(((NI) (((NI32) ((*loc).flags)))), result);
	}
	LA11: ;
	{
		if (!!(((*loc).t == NIM_NIL))) goto LA15;
		(*result) = addChar((*result), 94);
		encodevint_221212(((NI) (((NI32) ((*(*loc).t).Sup.id)))), result);
		pushtype_273194(w, (*loc).t);
	}
	LA15: ;
	{
		NimStringDesc* LOC21;
		if (!!(((*loc).r == NIM_NIL))) goto LA19;
		(*result) = addChar((*result), 33);
		LOC21 = 0;
		LOC21 = HEX24_170856((*loc).r);
		encodestr_221018(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_273223)(Trodwriter273002* w, Tlineinfo183337 finfo, Tnode215790* n, NimStringDesc** result) {
	NU16 f;
{	{
		if (!(n == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4508));
		goto BeforeRet;
	}
	LA3: ;
	(*result) = addChar((*result), 40);
	encodevint_221212(((NI) ((*n).kind)), result);
	{
		NimStringDesc* LOC9;
		NI LOC10;
		if (!!((finfo.fileindex == (*n).info.fileindex))) goto LA7;
		(*result) = addChar((*result), 63);
		encodevint_221212(((NI) ((*n).info.col)), result);
		(*result) = addChar((*result), 44);
		encodevint_221212(((NI) ((*n).info.line)), result);
		(*result) = addChar((*result), 44);
		LOC9 = 0;
		LOC9 = tofilename_184262((*n).info.fileindex);
		LOC10 = 0;
		LOC10 = fileidx_273066(w, LOC9);
		encodevint_221212(LOC10, result);
	}
	goto LA5;
	LA7: ;
	{
		if (!!((finfo.line == (*n).info.line))) goto LA12;
		(*result) = addChar((*result), 63);
		encodevint_221212(((NI) ((*n).info.col)), result);
		(*result) = addChar((*result), 44);
		encodevint_221212(((NI) ((*n).info.line)), result);
	}
	goto LA5;
	LA12: ;
	{
		if (!!((finfo.col == (*n).info.col))) goto LA15;
		(*result) = addChar((*result), 63);
		encodevint_221212(((NI) ((*n).info.col)), result);
	}
	goto LA5;
	LA15: ;
	LA5: ;
	f = ((*n).flags & 26382);
	{
		if (!!((f == 0))) goto LA19;
		(*result) = addChar((*result), 36);
		encodevint_221212(((NI) (((NI32) (f)))), result);
	}
	LA19: ;
	{
		if (!!(((*n).typ == NIM_NIL))) goto LA23;
		(*result) = addChar((*result), 94);
		encodevint_221212((*(*n).typ).Sup.id, result);
		pushtype_273194(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_221186((*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_221018(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_221018((*n).kindU.S3.strval, result);
		}
		LA39: ;
	}
	break;
	case ((NU8) 2):
	{
		(*result) = addChar((*result), 33);
		encodestr_221018((*(*n).kindU.S5.ident).s, result);
	}
	break;
	case ((NU8) 3):
	{
		(*result) = addChar((*result), 33);
		encodevint_221212((*(*n).kindU.S4.sym).Sup.id, result);
		pushsym_273208(w, (*n).kindU.S4.sym);
	}
	break;
	default:
	{
		{
			NI i_273310;
			NI HEX3Atmp_273314;
			NI LOC45;
			NI res_273317;
			i_273310 = 0;
			HEX3Atmp_273314 = 0;
			LOC45 = 0;
			LOC45 = sonslen_218351(n);
			HEX3Atmp_273314 = (NI)(LOC45 - ((NI) 1));
			res_273317 = ((NI) 0);
			{
				while (1) {
					if (!(res_273317 <= HEX3Atmp_273314)) goto LA47;
					i_273310 = res_273317;
					encodenode_273223(w, (*n).info, (*n).kindU.S6.sons->data[i_273310], result);
					res_273317 += ((NI) 1);
				} LA47: ;
			}
		}
	}
	break;
	}
	(*result) = addChar((*result), 41);
	}BeforeRet: ;
}

N_NIMCALL(void, encodelib_273539)(Trodwriter273002* w, Tlib215808* lib, Tlineinfo183337 info, NimStringDesc** result) {
	NimStringDesc* LOC1;
	(*result) = addChar((*result), 124);
	encodevint_221212(((NI) ((*lib).kind)), result);
	(*result) = addChar((*result), 124);
	LOC1 = 0;
	LOC1 = HEX24_170856((*lib).name);
	encodestr_221018(LOC1, result);
	(*result) = addChar((*result), 124);
	encodenode_273223(w, info, (*lib).path, result);
}

N_NIMCALL(void, encodesym_273554)(Trodwriter273002* w, Tsym215822* s, NimStringDesc** result) {
	NimStringDesc* LOC17;
	NI LOC18;
{	{
		if (!(s == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4507));
		goto BeforeRet;
	}
	LA3: ;
	encodevint_221212(((NI) ((*s).kind)), result);
	(*result) = addChar((*result), 43);
	encodevint_221212((*s).Sup.id, result);
	(*result) = addChar((*result), 38);
	encodestr_221018((*(*s).name).s, result);
	{
		if (!!(((*s).typ == NIM_NIL))) goto LA7;
		(*result) = addChar((*result), 94);
		encodevint_221212((*(*s).typ).Sup.id, result);
		pushtype_273194(w, (*s).typ);
	}
	LA7: ;
	(*result) = addChar((*result), 63);
	{
		if (!!(((*s).info.col == ((NI16) -1)))) goto LA11;
		encodevint_221212(((NI) ((*s).info.col)), result);
	}
	LA11: ;
	(*result) = addChar((*result), 44);
	{
		if (!!(((*s).info.line == ((NI16) -1)))) goto LA15;
		encodevint_221212(((NI) ((*s).info.line)), result);
	}
	LA15: ;
	(*result) = addChar((*result), 44);
	LOC17 = 0;
	LOC17 = tofilename_184262((*s).info.fileindex);
	LOC18 = 0;
	LOC18 = fileidx_273066(w, LOC17);
	encodevint_221212(LOC18, result);
	{
		if (!!(((*s).owner == NIM_NIL))) goto LA21;
		(*result) = addChar((*result), 42);
		encodevint_221212((*(*s).owner).Sup.id, result);
		pushsym_273208(w, (*s).owner);
	}
	LA21: ;
	{
		if (!!(((*s).flags == 0))) goto LA25;
		(*result) = addChar((*result), 36);
		encodevint_221212(((NI) (((NI32) ((*s).flags)))), result);
	}
	LA25: ;
	{
		if (!!(((*s).magic == ((NU8) 0)))) goto LA29;
		(*result) = addChar((*result), 64);
		encodevint_221212(((NI) ((*s).magic)), result);
	}
	LA29: ;
	{
		if (!!(((*s).options == (*w).options))) goto LA33;
		(*result) = addChar((*result), 33);
		encodevint_221212(((NI) (((NI32) ((*s).options)))), result);
	}
	LA33: ;
	{
		if (!!(((*s).position == ((NI) 0)))) goto LA37;
		(*result) = addChar((*result), 37);
		encodevint_221212((*s).position, result);
	}
	LA37: ;
	{
		if (!!(((*s).offset == ((NI) -1)))) goto LA41;
		(*result) = addChar((*result), 96);
		encodevint_221212((*s).offset, result);
	}
	LA41: ;
	encodeloc_273321(w, (&(*s).loc), result);
	{
		if (!!(((*s).annex == NIM_NIL))) goto LA45;
		encodelib_273539(w, (*s).annex, (*s).info, result);
	}
	LA45: ;
	{
		Tlineinfo183337 LOC51;
		if (!!(((*s).constraint == NIM_NIL))) goto LA49;
		(*result) = addChar((*result), 35);
		LOC51 = unknownlineinfo_184087();
		encodenode_273223(w, LOC51, (*s).constraint, result);
	}
	LA49: ;
	{
		if (!!(((*s).ast == NIM_NIL))) goto LA54;
		encodenode_273223(w, (*s).info, (*s).ast, result);
	}
	LA54: ;
	}BeforeRet: ;
}

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

static N_INLINE(NIM_BOOL, haspattern_220411)(Tsym215822* s) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = isroutine_220397(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_274001)(Trodwriter273002* w) {
	NI result;
	NI i;
	result = 0;
	i = ((NI) 0);
	{
		while (1) {
			Tsym215822* 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;
				Tsym215822* m;
				LOC8 = 0;
				LOC8 = iitableget_222172((*w).index.tab, (*s).Sup.id);
				if (!(LOC8 == ((NI) (IL64(-9223372036854775807) - IL64(1))))) goto LA9;
				m = getmodule_222144(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*) &TMP4505));
appendString(LOC17, (*(*s).name).s);
					internalerror_188113(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_273803((&(*w).index), (*s).Sup.id, L);
					encodesym_273554(w, s, (&(*w).data));
					(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4506));
					{
						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_221018((*(*s).name).s, (&(*w).interf));
						(*w).interf = addChar((*w).interf, 32);
						encodevint_221212((*s).Sup.id, (&(*w).interf));
						(*w).interf = resizeString((*w).interf, 1);
appendString((*w).interf, ((NimStringDesc*) &TMP4506));
					}
					LA30: ;
					{
						if (!(((*s).flags &(1U<<((NU)(((NU8) 16))&31U)))!=0)) goto LA34;
						encodestr_221018((*(*s).name).s, (&(*w).compilerprocs));
						(*w).compilerprocs = addChar((*w).compilerprocs, 32);
						encodevint_221212((*s).Sup.id, (&(*w).compilerprocs));
						(*w).compilerprocs = resizeString((*w).compilerprocs, 1);
appendString((*w).compilerprocs, ((NimStringDesc*) &TMP4506));
					}
					LA34: ;
					{
						NIM_BOOL LOC38;
						LOC38 = 0;
						LOC38 = ((*s).kind == ((NU8) 15));
						if (LOC38) goto LA39;
						LOC38 = haspattern_220411(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_221212((*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_221212((*s).Sup.id, (&(*w).methods));
					}
					LA50: ;
				}
				goto LA18;
				LA24: ;
				{
					NI LOC57;
					LOC57 = 0;
					LOC57 = iitableget_222172((*w).imports.tab, (*s).Sup.id);
					if (!(LOC57 == ((NI) (IL64(-9223372036854775807) - IL64(1))))) goto LA58;
					addtoindex_273803((&(*w).imports), (*s).Sup.id, (*m).Sup.id);
				}
				goto LA18;
				LA58: ;
				LA18: ;
			}
			goto LA3;
			LA9: ;
			LA3: ;
			i += ((NI) 1);
		} LA2: ;
	}
	(*w).sstack = (Tsymseq215792*) setLengthSeq(&((*w).sstack)->Sup, sizeof(Tsym215822*), ((NI) (result)));
	return result;
}

N_NIMCALL(void, encodetype_273402)(Trodwriter273002* w, Ttype215828* t, NimStringDesc** result) {
{	{
		if (!(t == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4509));
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!((*t).kind == ((NU8) 30))) goto LA7;
		internalerror_188113(((NimStringDesc*) &TMP4510));
	}
	LA7: ;
	(*result) = addChar((*result), 91);
	encodevint_221212(((NI) ((*t).kind)), result);
	(*result) = addChar((*result), 43);
	encodevint_221212((*t).Sup.id, result);
	{
		Tlineinfo183337 LOC13;
		if (!!(((*t).n == NIM_NIL))) goto LA11;
		LOC13 = unknownlineinfo_184087();
		encodenode_273223(w, LOC13, (*t).n, result);
	}
	LA11: ;
	{
		if (!!(((*t).flags == 0))) goto LA16;
		(*result) = addChar((*result), 36);
		encodevint_221212(((NI) (((NI32) ((*t).flags)))), result);
	}
	LA16: ;
	{
		if (!!(((*t).callconv == ((NU8) 0)))) goto LA20;
		(*result) = addChar((*result), 63);
		encodevint_221212(((NI) ((*t).callconv)), result);
	}
	LA20: ;
	{
		if (!!(((*t).owner == NIM_NIL))) goto LA24;
		(*result) = addChar((*result), 42);
		encodevint_221212((*(*t).owner).Sup.id, result);
		pushsym_273208(w, (*t).owner);
	}
	LA24: ;
	{
		if (!!(((*t).sym == NIM_NIL))) goto LA28;
		(*result) = addChar((*result), 38);
		encodevint_221212((*(*t).sym).Sup.id, result);
		pushsym_273208(w, (*t).sym);
	}
	LA28: ;
	{
		if (!!(((*t).size == IL64(-1)))) goto LA32;
		(*result) = addChar((*result), 47);
		encodevbiggestint_221186((*t).size, result);
	}
	LA32: ;
	{
		if (!!(((*t).align == ((NI16) 2)))) goto LA36;
		(*result) = addChar((*result), 61);
		encodevint_221212(((NI) ((*t).align)), result);
	}
	LA36: ;
	encodeloc_273321(w, (&(*t).loc), result);
	{
		NI i_273517;
		NI HEX3Atmp_273532;
		NI LOC39;
		NI res_273535;
		i_273517 = 0;
		HEX3Atmp_273532 = 0;
		LOC39 = 0;
		LOC39 = sonslen_218327(t);
		HEX3Atmp_273532 = (NI)(LOC39 - ((NI) 1));
		res_273535 = ((NI) 0);
		{
			while (1) {
				if (!(res_273535 <= HEX3Atmp_273532)) goto LA41;
				i_273517 = res_273535;
				{
					if (!((*t).sons->data[i_273517] == NIM_NIL)) goto LA44;
					(*result) = resizeString((*result), 3);
appendString((*result), ((NimStringDesc*) &TMP4511));
				}
				goto LA42;
				LA44: ;
				{
					(*result) = addChar((*result), 94);
					encodevint_221212((*(*t).sons->data[i_273517]).Sup.id, result);
					pushtype_273194(w, (*t).sons->data[i_273517]);
				}
				LA42: ;
				res_273535 += ((NI) 1);
			} LA41: ;
		}
	}
	}BeforeRet: ;
}

N_NIMCALL(NI, typestack_274421)(Trodwriter273002* w) {
	NI result;
	NI i;
	result = 0;
	i = ((NI) 0);
	{
		while (1) {
			Ttype215828* 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_222172((*w).index.tab, (*t).Sup.id);
				if (!(LOC8 == ((NI) (IL64(-9223372036854775807) - IL64(1))))) goto LA9;
				L = ((*w).data ? (*w).data->Sup.len : 0);
				addtoindex_273803((&(*w).index), (*t).Sup.id, L);
				encodetype_273402(w, t, (&(*w).data));
				(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4506));
			}
			goto LA3;
			LA9: ;
			LA3: ;
			i += ((NI) 1);
		} LA2: ;
	}
	(*w).tstack = (Ttypeseq215824*) setLengthSeq(&((*w).tstack)->Sup, sizeof(Ttype215828*), ((NI) (result)));
	return result;
}

N_NIMCALL(void, processstacks_274476)(Trodwriter273002* w, NIM_BOOL finalpass) {
	NI olds;
	NI oldt;
	olds = ((NI) 0);
	oldt = ((NI) 0);
	{
		while (1) {
			NI slen;
			NI tlen;
			slen = symstack_274001(w);
			tlen = typestack_274421(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_188113(((NimStringDesc*) &TMP4512));
	}
	LA15: ;
}

N_NIMCALL(void, rawaddinterfacesym_274485)(Trodwriter273002* w, Tsym215822* s) {
	pushsym_273208(w, s);
	processstacks_274476(w, NIM_FALSE);
}

N_NIMCALL(Tpasscontext262002*, myopen_274918)(Tsym215822* module) {
	Tpasscontext262002* result;
	Trodwriter273002* w;
	Sha1digest193003 LOC5;
	result = 0;
	{
		if (!((*module).Sup.id < ((NI) 0))) goto LA3;
		internalerror_188113(((NimStringDesc*) &TMP4499));
	}
	LA3: ;
	memset((void*)LOC5, 0, sizeof(LOC5));
	gethash_255480(((NI32) ((*module).position)), LOC5);
	w = newrodwriter_273023(LOC5, module);
	rawaddinterfacesym_274485(w, module);
	result = &w->Sup;
	return result;
}

N_NIMCALL(void, addinterfacesym_273035)(Trodwriter273002* w, Tsym215822* 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_274485(w, s);
	}
	LA9: ;
	}BeforeRet: ;
}

N_NIMCALL(void, addmoddep_273027)(Trodwriter273002* 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_273066(w, dep);
	encodevint_221212(LOC5, (&(*w).moddeps));
}

N_NIMCALL(void, addstmt_273039)(Trodwriter273002* w, Tnode215790* n) {
	Tlineinfo183337 LOC1;
	encodevint_221212(((*w).data ? (*w).data->Sup.len : 0), (&(*w).init));
	(*w).init = resizeString((*w).init, 1);
appendString((*w).init, ((NimStringDesc*) &TMP4506));
	LOC1 = unknownlineinfo_184087();
	encodenode_273223(w, LOC1, n, (&(*w).data));
	(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4506));
	processstacks_274476(w, NIM_FALSE);
}

N_NIMCALL(void, addincldep_273031)(Trodwriter273002* w, NimStringDesc* dep) {
	NimStringDesc* resolved;
	NimStringDesc* LOC1;
	NI LOC2;
	Sha1digest193003 LOC3;
	NimStringDesc* LOC4;
	LOC1 = 0;
	LOC1 = tofullpath_184266((*(*w).module).info.fileindex);
	resolved = findmodule_162484(dep, LOC1);
	LOC2 = 0;
	LOC2 = fileidx_273066(w, dep);
	encodevint_221212(LOC2, (&(*w).incldeps));
	(*w).incldeps = resizeString((*w).incldeps, 1);
appendString((*w).incldeps, ((NimStringDesc*) &TMP4504));
	memset((void*)LOC3, 0, sizeof(LOC3));
	securehashfile_193016(resolved, LOC3);
	LOC4 = 0;
	LOC4 = HEX24_193020(LOC3);
	encodestr_221018(LOC4, (&(*w).incldeps));
	(*w).incldeps = resizeString((*w).incldeps, 1);
appendString((*w).incldeps, ((NimStringDesc*) &TMP4506));
}

N_NIMCALL(Tnode215790*, process_274698)(Tpasscontext262002* c, Tnode215790* n) {
	Tnode215790* result;
	Trodwriter273002* w;
{	result = 0;
	result = n;
	{
		if (!(c == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	w = ((Trodwriter273002*) (c));
	switch ((*n).kind) {
	case ((NU8) 115):
	{
		{
			NI i_274727;
			NI HEX3Atmp_274877;
			NI LOC7;
			NI res_274880;
			i_274727 = 0;
			HEX3Atmp_274877 = 0;
			LOC7 = 0;
			LOC7 = sonslen_218351(n);
			HEX3Atmp_274877 = (NI)(LOC7 - ((NI) 1));
			res_274880 = ((NI) 0);
			{
				while (1) {
					Tnode215790* LOC10;
					if (!(res_274880 <= HEX3Atmp_274877)) goto LA9;
					i_274727 = res_274880;
					LOC10 = 0;
					LOC10 = process_274698(c, (*n).kindU.S6.sons->data[i_274727]);
					res_274880 += ((NI) 1);
				} LA9: ;
			}
		}
	}
	break;
	case ((NU8) 79):
	case ((NU8) 80):
	case ((NU8) 84):
	case ((NU8) 81):
	case ((NU8) 83):
	case ((NU8) 82):
	{
		Tsym215822* s;
		s = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		{
			if (!(s == NIM_NIL)) goto LA14;
			internalerror_188100((*n).info, ((NimStringDesc*) &TMP4513));
		}
		LA14: ;
		{
			if (!((*n).kindU.S6.sons->data[((NI) 6)] == NIM_NIL)) goto LA18;
			internalerror_188100((*n).info, ((NimStringDesc*) &TMP4514));
		}
		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_273035(w, s);
		}
		LA26: ;
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	case ((NU8) 101):
	{
		{
			NI i_274799;
			NI HEX3Atmp_274886;
			NI LOC30;
			NI res_274889;
			i_274799 = 0;
			HEX3Atmp_274886 = 0;
			LOC30 = 0;
			LOC30 = sonslen_218351(n);
			HEX3Atmp_274886 = (NI)(LOC30 - ((NI) 1));
			res_274889 = ((NI) 0);
			{
				while (1) {
					if (!(res_274889 <= HEX3Atmp_274886)) goto LA32;
					i_274799 = res_274889;
					{
						Tnode215790* a;
						a = (*n).kindU.S6.sons->data[i_274799];
						{
							if (!((*a).kind == ((NU8) 125))) goto LA36;
							goto LA33;
						}
						LA36: ;
						addinterfacesym_273035(w, (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym);
					} LA33: ;
					res_274889 += ((NI) 1);
				} LA32: ;
			}
		}
	}
	break;
	case ((NU8) 98):
	{
		{
			NI i_274824;
			NI HEX3Atmp_274895;
			NI LOC40;
			NI res_274898;
			i_274824 = 0;
			HEX3Atmp_274895 = 0;
			LOC40 = 0;
			LOC40 = sonslen_218351(n);
			HEX3Atmp_274895 = (NI)(LOC40 - ((NI) 1));
			res_274898 = ((NI) 0);
			{
				while (1) {
					if (!(res_274898 <= HEX3Atmp_274895)) goto LA42;
					i_274824 = res_274898;
					{
						Tnode215790* a;
						Tsym215822* s;
						a = (*n).kindU.S6.sons->data[i_274824];
						{
							if (!((*a).kind == ((NU8) 125))) goto LA46;
							goto LA43;
						}
						LA46: ;
						{
							if (!!(((*(*a).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA50;
							internalerror_188100((*a).info, ((NimStringDesc*) &TMP4513));
						}
						LA50: ;
						s = (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
						addinterfacesym_273035(w, s);
					} LA43: ;
					res_274898 += ((NI) 1);
				} LA42: ;
			}
		}
	}
	break;
	case ((NU8) 116):
	{
		{
			NI i_274860;
			NI HEX3Atmp_274903;
			NI LOC54;
			NI res_274906;
			i_274860 = 0;
			HEX3Atmp_274903 = 0;
			LOC54 = 0;
			LOC54 = sonslen_218351(n);
			HEX3Atmp_274903 = (NI)(LOC54 - ((NI) 1));
			res_274906 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* LOC57;
					if (!(res_274906 <= HEX3Atmp_274903)) goto LA56;
					i_274860 = res_274906;
					LOC57 = 0;
					LOC57 = getmodulename_272009((*n).kindU.S6.sons->data[i_274860]);
					addmoddep_273027(w, LOC57);
					res_274906 += ((NI) 1);
				} LA56: ;
			}
		}
		addstmt_273039(w, n);
	}
	break;
	case ((NU8) 120):
	{
		NimStringDesc* LOC59;
		LOC59 = 0;
		LOC59 = getmodulename_272009((*n).kindU.S6.sons->data[((NI) 0)]);
		addmoddep_273027(w, LOC59);
		addstmt_273039(w, n);
	}
	break;
	case ((NU8) 121):
	{
		{
			NI i_274874;
			NI HEX3Atmp_274911;
			NI LOC62;
			NI res_274914;
			i_274874 = 0;
			HEX3Atmp_274911 = 0;
			LOC62 = 0;
			LOC62 = sonslen_218351(n);
			HEX3Atmp_274911 = (NI)(LOC62 - ((NI) 1));
			res_274914 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* LOC65;
					if (!(res_274914 <= HEX3Atmp_274911)) goto LA64;
					i_274874 = res_274914;
					LOC65 = 0;
					LOC65 = getmodulename_272009((*n).kindU.S6.sons->data[i_274874]);
					addincldep_273031(w, LOC65);
					res_274914 += ((NI) 1);
				} LA64: ;
			}
		}
	}
	break;
	case ((NU8) 90):
	{
		addstmt_273039(w, n);
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, writerod_273043)(Trodwriter273002* w) {
	FILE* f;
	NimStringDesc* id;
	NimStringDesc* orig;
	NimStringDesc* hash;
	NimStringDesc* LOC10;
	NimStringDesc* options;
	NimStringDesc* goptions;
	NimStringDesc* cmd;
	NimStringDesc* files;
{	processstacks_274476(w, NIM_TRUE);
	f = 0;
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		NimStringDesc* LOC5;
		NimStringDesc* LOC6;
		NIM_BOOL LOC7;
		LOC3 = 0;
		LOC3 = tofilename_184262(((NI32) ((*(*w).module).position)));
		LOC4 = 0;
		LOC4 = withpackagename_162074(LOC3);
		LOC5 = 0;
		LOC5 = noschangeFileExt(LOC4, ((NimStringDesc*) &TMP4515));
		LOC6 = 0;
		LOC6 = completegeneratedfilepath_162201(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*) &TMP4516));
	write_15489(f, ((NimStringDesc*) &TMP4517));
	write_15489(f, ((NimStringDesc*) &TMP4506));
	id = copyString(((NimStringDesc*) &TMP4518));
	encodevint_221212((*(*w).module).Sup.id, (&id));
	write_15489(f, id);
	write_15489(f, ((NimStringDesc*) &TMP4506));
	orig = copyString(((NimStringDesc*) &TMP4519));
	encodestr_221018((*w).origfile, (&orig));
	write_15489(f, orig);
	write_15489(f, ((NimStringDesc*) &TMP4506));
	hash = copyString(((NimStringDesc*) &TMP4520));
	LOC10 = 0;
	LOC10 = HEX24_193020((*w).hash);
	encodestr_221018(LOC10, (&hash));
	write_15489(f, hash);
	write_15489(f, ((NimStringDesc*) &TMP4506));
	options = copyString(((NimStringDesc*) &TMP4521));
	encodevint_221212(((NI) (((NI32) ((*w).options)))), (&options));
	write_15489(f, options);
	write_15489(f, ((NimStringDesc*) &TMP4506));
	goptions = copyString(((NimStringDesc*) &TMP4522));
	encodevint_221212(((NI) (((NI32) (gglobaloptions_161121)))), (&goptions));
	write_15489(f, goptions);
	write_15489(f, ((NimStringDesc*) &TMP4506));
	cmd = copyString(((NimStringDesc*) &TMP4523));
	encodevint_221212(((NI) (((NI32) (gcmd_161123)))), (&cmd));
	write_15489(f, cmd);
	write_15489(f, ((NimStringDesc*) &TMP4506));
	write_15489(f, ((NimStringDesc*) &TMP4524));
	write_15489(f, (*w).defines);
	write_15489(f, ((NimStringDesc*) &TMP4506));
	files = copyString(((NimStringDesc*) &TMP4525));
	{
		NI i_274618;
		NI HEX3Atmp_274691;
		NI res_274694;
		i_274618 = 0;
		HEX3Atmp_274691 = 0;
		HEX3Atmp_274691 = ((*w).files ? ((*w).files->Sup.len-1) : -1);
		res_274694 = ((NI) 0);
		{
			while (1) {
				if (!(res_274694 <= HEX3Atmp_274691)) goto LA13;
				i_274618 = res_274694;
				encodestr_221018((*w).files->data[i_274618], (&files));
				files = resizeString(files, 1);
appendString(files, ((NimStringDesc*) &TMP4506));
				res_274694 += ((NI) 1);
			} LA13: ;
		}
	}
	write_15489(f, files);
	write_15489(f, ((NimStringDesc*) &TMP4526));
	write_15489(f, ((NimStringDesc*) &TMP4527));
	write_15489(f, (*w).incldeps);
	write_15489(f, ((NimStringDesc*) &TMP4526));
	write_15489(f, ((NimStringDesc*) &TMP4528));
	write_15489(f, (*w).moddeps);
	write_15489(f, ((NimStringDesc*) &TMP4506));
	write_15489(f, ((NimStringDesc*) &TMP4529));
	write_15489(f, (*w).interf);
	write_15489(f, ((NimStringDesc*) &TMP4526));
	write_15489(f, ((NimStringDesc*) &TMP4530));
	write_15489(f, (*w).compilerprocs);
	write_15489(f, ((NimStringDesc*) &TMP4526));
	write_15489(f, ((NimStringDesc*) &TMP4531));
	write_15489(f, (*w).index.r);
	write_15489(f, ((NimStringDesc*) &TMP4526));
	write_15489(f, ((NimStringDesc*) &TMP4532));
	write_15489(f, (*w).imports.r);
	write_15489(f, ((NimStringDesc*) &TMP4526));
	write_15489(f, ((NimStringDesc*) &TMP4533));
	write_15489(f, (*w).converters);
	write_15489(f, ((NimStringDesc*) &TMP4506));
	write_15489(f, ((NimStringDesc*) &TMP4534));
	write_15489(f, (*w).methods);
	write_15489(f, ((NimStringDesc*) &TMP4506));
	write_15489(f, ((NimStringDesc*) &TMP4535));
	write_15489(f, (*w).init);
	write_15489(f, ((NimStringDesc*) &TMP4526));
	write_15489(f, ((NimStringDesc*) &TMP4536));
	write_15489(f, (*w).data);
	write_15489(f, ((NimStringDesc*) &TMP4526));
	write_15489(f, ((NimStringDesc*) &TMP4537));
	fclose(f);
	}BeforeRet: ;
}

N_NIMCALL(Tnode215790*, myclose_274927)(Tpasscontext262002* c, Tnode215790* n) {
	Tnode215790* result;
	Trodwriter273002* w;
	NimStringDesc* LOC1;
	result = 0;
	result = process_274698(c, n);
	w = ((Trodwriter273002*) (c));
	writerod_273043(w);
	LOC1 = 0;
	LOC1 = HEX2F_118465(gprojectpath_161200, gprojectname_161199);
	savemaxids_214439(LOC1);
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_rodwriteInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_rodwriteDatInit000)(void) {
static TNimNode* TMP4500[18];
static TNimNode TMP921[19];
NTI273002.size = sizeof(Trodwriter273002);
NTI273002.kind = 17;
NTI273002.base = (&NTI262002);
TMP4500[0] = &TMP921[1];
TMP921[1].kind = 1;
TMP921[1].offset = offsetof(Trodwriter273002, module);
TMP921[1].typ = (&NTI215788);
TMP921[1].name = "module";
TMP4500[1] = &TMP921[2];
TMP921[2].kind = 1;
TMP921[2].offset = offsetof(Trodwriter273002, hash);
TMP921[2].typ = (&NTI193003);
TMP921[2].name = "hash";
TMP4500[2] = &TMP921[3];
TMP921[3].kind = 1;
TMP921[3].offset = offsetof(Trodwriter273002, options);
TMP921[3].typ = (&NTI161011);
TMP921[3].name = "options";
TMP4500[3] = &TMP921[4];
TMP921[4].kind = 1;
TMP921[4].offset = offsetof(Trodwriter273002, defines);
TMP921[4].typ = (&NTI138);
TMP921[4].name = "defines";
TMP4500[4] = &TMP921[5];
TMP921[5].kind = 1;
TMP921[5].offset = offsetof(Trodwriter273002, incldeps);
TMP921[5].typ = (&NTI138);
TMP921[5].name = "inclDeps";
TMP4500[5] = &TMP921[6];
TMP921[6].kind = 1;
TMP921[6].offset = offsetof(Trodwriter273002, moddeps);
TMP921[6].typ = (&NTI138);
TMP921[6].name = "modDeps";
TMP4500[6] = &TMP921[7];
TMP921[7].kind = 1;
TMP921[7].offset = offsetof(Trodwriter273002, interf);
TMP921[7].typ = (&NTI138);
TMP921[7].name = "interf";
TMP4500[7] = &TMP921[8];
TMP921[8].kind = 1;
TMP921[8].offset = offsetof(Trodwriter273002, compilerprocs);
TMP921[8].typ = (&NTI138);
TMP921[8].name = "compilerProcs";
TMP4500[8] = &TMP921[9];
TMP921[9].kind = 1;
TMP921[9].offset = offsetof(Trodwriter273002, index);
TMP921[9].typ = (&NTI253019);
TMP921[9].name = "index";
TMP4500[9] = &TMP921[10];
TMP921[10].kind = 1;
TMP921[10].offset = offsetof(Trodwriter273002, imports);
TMP921[10].typ = (&NTI253019);
TMP921[10].name = "imports";
TMP4500[10] = &TMP921[11];
TMP921[11].kind = 1;
TMP921[11].offset = offsetof(Trodwriter273002, converters);
TMP921[11].typ = (&NTI138);
TMP921[11].name = "converters";
TMP4500[11] = &TMP921[12];
TMP921[12].kind = 1;
TMP921[12].offset = offsetof(Trodwriter273002, methods);
TMP921[12].typ = (&NTI138);
TMP921[12].name = "methods";
TMP4500[12] = &TMP921[13];
TMP921[13].kind = 1;
TMP921[13].offset = offsetof(Trodwriter273002, init);
TMP921[13].typ = (&NTI138);
TMP921[13].name = "init";
TMP4500[13] = &TMP921[14];
TMP921[14].kind = 1;
TMP921[14].offset = offsetof(Trodwriter273002, data);
TMP921[14].typ = (&NTI138);
TMP921[14].name = "data";
TMP4500[14] = &TMP921[15];
TMP921[15].kind = 1;
TMP921[15].offset = offsetof(Trodwriter273002, sstack);
TMP921[15].typ = (&NTI215792);
TMP921[15].name = "sstack";
TMP4500[15] = &TMP921[16];
TMP921[16].kind = 1;
TMP921[16].offset = offsetof(Trodwriter273002, tstack);
TMP921[16].typ = (&NTI215824);
TMP921[16].name = "tstack";
TMP4500[16] = &TMP921[17];
TMP921[17].kind = 1;
TMP921[17].offset = offsetof(Trodwriter273002, files);
TMP921[17].typ = (&NTI125202);
TMP921[17].name = "files";
TMP4500[17] = &TMP921[18];
TMP921[18].kind = 1;
TMP921[18].offset = offsetof(Trodwriter273002, origfile);
TMP921[18].typ = (&NTI138);
TMP921[18].name = "origFile";
TMP921[0].len = 18; TMP921[0].kind = 2; TMP921[0].sons = &TMP4500[0];
NTI273002.node = &TMP921[0];
NTI273004.size = sizeof(Trodwriter273002*);
NTI273004.kind = 22;
NTI273004.base = (&NTI273002);
NTI273004.marker = TMP4501;
}

