/* 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 Tpasscontext261002 Tpasscontext261002;
typedef struct Tsym214822 Tsym214822;
typedef struct Tidobj189006 Tidobj189006;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Ttypeseq214824 Ttypeseq214824;
typedef struct Tscope214816 Tscope214816;
typedef struct TY214925 TY214925;
typedef struct Tstrtable214794 Tstrtable214794;
typedef struct Tsymseq214792 Tsymseq214792;
typedef struct Ttype214828 Ttype214828;
typedef struct Tident189012 Tident189012;
typedef struct Tlineinfo182337 Tlineinfo182337;
typedef struct Tnode214790 Tnode214790;
typedef struct Tloc214804 Tloc214804;
typedef struct Ropeobj169006 Ropeobj169006;
typedef struct Tlib214808 Tlib214808;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Trodwriter272002 Trodwriter272002;
typedef struct Tindex252019 Tindex252019;
typedef struct Tiitable221163 Tiitable221163;
typedef struct Tiipairseq221161 Tiipairseq221161;
typedef struct TY125202 TY125202;
typedef struct Cell47505 Cell47505;
typedef struct Cellseq47521 Cellseq47521;
typedef struct Gcheap49818 Gcheap49818;
typedef struct Gcstack49816 Gcstack49816;
typedef struct Cellset47517 Cellset47517;
typedef struct Pagedesc47513 Pagedesc47513;
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 Tnodeseq214784 Tnodeseq214784;
typedef struct Tinstantiation214812 Tinstantiation214812;
typedef struct Tiipair221159 Tiipair221159;
typedef struct Basechunk29638 Basechunk29638;
typedef struct Freecell29630 Freecell29630;
typedef struct TY214913 TY214913;
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  Tidobj189006  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable214794  {
NI counter;
Tsymseq214792* data;
};
struct  Tlineinfo182337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc214804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype214828* t;
Ropeobj169006* r;
Ropeobj169006* heaproot;
};
struct  Tsym214822  {
  Tidobj189006 Sup;
NU8 kind;
union{
struct {Ttypeseq214824* typeinstcache;
Tscope214816* typscope;
} S1;
struct {TY214925* procinstcache;
Tsym214822* gcunsafetyreason;
} S2;
struct {TY214925* usedgenerics;
Tstrtable214794 tab;
} S3;
struct {Tsym214822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype214828* typ;
Tident189012* name;
Tlineinfo182337 info;
Tsym214822* owner;
NU32 flags;
Tnode214790* ast;
NU32 options;
NI position;
NI offset;
Tloc214804 loc;
Tlib214808* annex;
Tnode214790* constraint;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef NU8 Sha1digest192003[20];
struct  Tpasscontext261002  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Tiitable221163  {
NI counter;
Tiipairseq221161* data;
};
struct  Tindex252019  {
NI lastidxkey;
NI lastidxval;
Tiitable221163 tab;
NimStringDesc* r;
NI offset;
};
struct  Trodwriter272002  {
  Tpasscontext261002 Sup;
Tsym214822* module;
Sha1digest192003 hash;
NU32 options;
NimStringDesc* defines;
NimStringDesc* incldeps;
NimStringDesc* moddeps;
NimStringDesc* interf;
NimStringDesc* compilerprocs;
Tindex252019 index;
Tindex252019 imports;
NimStringDesc* converters;
NimStringDesc* methods;
NimStringDesc* init;
NimStringDesc* data;
Tsymseq214792* sstack;
Ttypeseq214824* tstack;
TY125202* files;
NimStringDesc* origfile;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Cell47505  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47521  {
NI len;
NI cap;
Cell47505** d;
};
struct  Cellset47517  {
NI counter;
NI max;
Pagedesc47513* head;
Pagedesc47513** 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;
Cellseq47521 zct;
Cellseq47521 decstack;
Cellset47517 cycleroots;
Cellseq47521 tempstack;
NI recgclock;
Memregion29688 region;
Gcstat49814 stat;
};
struct  Stringtableobj140209  {
  TNimObject Sup;
NI counter;
Keyvaluepairseq140207* data;
NU8 mode;
};
struct Keyvaluepair140205 {
NimStringDesc* Field0;
NimStringDesc* Field1;
};
struct  Tident189012  {
  Tidobj189006 Sup;
NimStringDesc* s;
Tident189012* next;
NI h;
};
struct  Ttype214828  {
  Tidobj189006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq214824* sons;
Tnode214790* n;
Tsym214822* owner;
Tsym214822* sym;
Tsym214822* destructor;
Tsym214822* deepcopy;
Tsym214822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc214804 loc;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Tlib214808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj169006* name;
Tnode214790* path;
};
struct  Tnode214790  {
Ttype214828* typ;
Tlineinfo182337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym214822* sym;
} S4;
struct {Tident189012* ident;
} S5;
struct {Tnodeseq214784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tscope214816  {
NI depthlevel;
Tstrtable214794 symbols;
Tnodeseq214784* usingsyms;
Tscope214816* parent;
};
struct  Ropeobj169006  {
  TNimObject Sup;
Ropeobj169006* left;
Ropeobj169006* right;
NI length;
NimStringDesc* data;
};
struct  Tiipair221159  {
NI key;
NI val;
};
struct  Gcstack49816  {
Gcstack49816* prev;
Gcstack49816* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29619[8];
struct  Pagedesc47513  {
Pagedesc47513* 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  Tinstantiation214812  {
Tsym214822* sym;
Ttypeseq214824* concretetypes;
TY214913* usedby;
NI compilesid;
};
struct  Freecell29630  {
Freecell29630* next;
NI zerofield;
};
struct Tsymseq214792 {
  TGenericSeq Sup;
  Tsym214822* data[SEQ_DECL_SIZE];
};
struct Ttypeseq214824 {
  TGenericSeq Sup;
  Ttype214828* data[SEQ_DECL_SIZE];
};
struct TY125202 {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct TY214925 {
  TGenericSeq Sup;
  Tinstantiation214812* data[SEQ_DECL_SIZE];
};
struct Tiipairseq221161 {
  TGenericSeq Sup;
  Tiipair221159 data[SEQ_DECL_SIZE];
};
struct Keyvaluepairseq140207 {
  TGenericSeq Sup;
  Keyvaluepair140205 data[SEQ_DECL_SIZE];
};
struct Tnodeseq214784 {
  TGenericSeq Sup;
  Tnode214790* data[SEQ_DECL_SIZE];
};
struct TY214913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, internalerror_187113)(NimStringDesc* errmsg);
N_NIMCALL(Trodwriter272002*, newrodwriter_272023)(Sha1digest192003 hash, Tsym214822* module);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP4498)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell47505*, usrtocell_51440)(void* usr);
static N_INLINE(void, rtladdzct_53001)(Cell47505* c);
N_NOINLINE(void, addzct_51417)(Cellseq47521* s, Cell47505* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, initiitable_221168)(Tiitable221163* x);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(NimStringDesc*, getdefines_272046)(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_183262)(NI32 fileidx);
N_NIMCALL(void, gethash_254480)(NI32 fileidx, Sha1digest192003* Result);
N_NIMCALL(void, rawaddinterfacesym_273485)(Trodwriter272002* w, Tsym214822* s);
N_NIMCALL(void, pushsym_272208)(Trodwriter272002* w, Tsym214822* s);
N_NIMCALL(NI, iitableget_221172)(Tiitable221163 t, NI key);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(void, processstacks_273476)(Trodwriter272002* w, NIM_BOOL finalpass);
N_NIMCALL(NI, symstack_273001)(Trodwriter272002* w);
N_NIMCALL(Tsym214822*, getmodule_221144)(Tsym214822* s);
N_NIMCALL(void, addtoindex_272803)(Tindex252019* w, NI key, NI val);
N_NIMCALL(void, encodevint_220212)(NI x, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(void, iitableput_221176)(Tiitable221163* t, NI key, NI val);
N_NIMCALL(void, encodesym_272554)(Trodwriter272002* w, Tsym214822* s, NimStringDesc** result);
N_NIMCALL(void, encodestr_220018)(NimStringDesc* s, NimStringDesc** result);
N_NIMCALL(void, pushtype_272194)(Trodwriter272002* w, Ttype214828* t);
N_NIMCALL(NI, fileidx_272066)(Trodwriter272002* w, NimStringDesc* filename);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(void, encodeloc_272321)(Trodwriter272002* w, Tloc214804* loc, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, HEX24_169856)(Ropeobj169006* r);
N_NIMCALL(NimStringDesc*, setLengthStr)(NimStringDesc* s, NI newlen);
N_NIMCALL(void, encodelib_272539)(Trodwriter272002* w, Tlib214808* lib, Tlineinfo182337 info, NimStringDesc** result);
N_NIMCALL(void, encodenode_272223)(Trodwriter272002* w, Tlineinfo182337 finfo, Tnode214790* n, NimStringDesc** result);
N_NIMCALL(void, encodevbiggestint_220186)(NI64 x, NimStringDesc** result);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(NI, sonslen_217351)(Tnode214790* n);
N_NIMCALL(Tlineinfo182337, unknownlineinfo_183087)(void);
static N_INLINE(NIM_BOOL, haspattern_219411)(Tsym214822* s);
static N_INLINE(NIM_BOOL, isroutine_219397)(Tsym214822* s);
N_NIMCALL(NI, typestack_273421)(Trodwriter272002* w);
N_NIMCALL(void, encodetype_272402)(Trodwriter272002* w, Ttype214828* t, NimStringDesc** result);
N_NIMCALL(NI, sonslen_217327)(Ttype214828* n);
N_NIMCALL(Tnode214790*, process_273698)(Tpasscontext261002* c, Tnode214790* n);
N_NIMCALL(void, internalerror_187100)(Tlineinfo182337 info, NimStringDesc* errmsg);
N_NIMCALL(void, addinterfacesym_272035)(Trodwriter272002* w, Tsym214822* s);
N_NIMCALL(void, addmoddep_272027)(Trodwriter272002* w, NimStringDesc* dep);
N_NIMCALL(NimStringDesc*, getmodulename_271009)(Tnode214790* n);
N_NIMCALL(void, addstmt_272039)(Trodwriter272002* w, Tnode214790* n);
N_NIMCALL(void, addincldep_272031)(Trodwriter272002* w, NimStringDesc* dep);
N_NIMCALL(NimStringDesc*, findmodule_161484)(NimStringDesc* modulename, NimStringDesc* currentmodule);
N_NIMCALL(NimStringDesc*, tofullpath_183266)(NI32 fileidx);
N_NIMCALL(NimStringDesc*, HEX24_192020)(Sha1digest192003 self);
N_NIMCALL(void, securehashfile_192016)(NimStringDesc* filename, Sha1digest192003* Result);
N_NIMCALL(void, writerod_272043)(Trodwriter272002* w);
N_NIMCALL(NIM_BOOL, open_15403)(FILE** f, NimStringDesc* filename, NU8 mode, NI bufsize);
N_NIMCALL(NimStringDesc*, completegeneratedfilepath_161201)(NimStringDesc* f, NIM_BOOL createsubdir);
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(NimStringDesc*, withpackagename_161074)(NimStringDesc* path);
N_NIMCALL(void, write_15489)(FILE* f, NimStringDesc* s);
N_NIMCALL(void, savemaxids_213439)(NimStringDesc* project);
N_NIMCALL(NimStringDesc*, HEX2F_118465)(NimStringDesc* head, NimStringDesc* tail);
STRING_LITERAL(TMP4496, "rodwrite: module ID not set", 27);
STRING_LITERAL(TMP4499, "", 0);
STRING_LITERAL(TMP4500, "false", 5);
STRING_LITERAL(TMP4501, " ", 1);
STRING_LITERAL(TMP4502, "symStack: module nil: ", 22);
STRING_LITERAL(TMP4503, "\012", 1);
STRING_LITERAL(TMP4504, "{}", 2);
STRING_LITERAL(TMP4505, "()", 2);
STRING_LITERAL(TMP4506, "[]", 2);
STRING_LITERAL(TMP4507, "encodeType: tyForward", 21);
STRING_LITERAL(TMP4508, "^()", 3);
STRING_LITERAL(TMP4509, "could not serialize some forwarded symbols/types", 48);
STRING_LITERAL(TMP4510, "rodwrite.process", 16);
STRING_LITERAL(TMP4511, "rodwrite.process: body is nil", 29);
STRING_LITERAL(TMP4512, "rod", 3);
STRING_LITERAL(TMP4513, "NIM:", 4);
STRING_LITERAL(TMP4514, "1215", 4);
STRING_LITERAL(TMP4515, "ID:", 3);
STRING_LITERAL(TMP4516, "ORIGFILE:", 9);
STRING_LITERAL(TMP4517, "HASH:", 5);
STRING_LITERAL(TMP4518, "OPTIONS:", 8);
STRING_LITERAL(TMP4519, "GOPTIONS:", 9);
STRING_LITERAL(TMP4520, "CMD:", 4);
STRING_LITERAL(TMP4521, "DEFINES:", 8);
STRING_LITERAL(TMP4522, "FILES(\012", 7);
STRING_LITERAL(TMP4523, ")\012", 2);
STRING_LITERAL(TMP4524, "INCLUDES(\012", 10);
STRING_LITERAL(TMP4525, "DEPS:", 5);
STRING_LITERAL(TMP4526, "INTERF(\012", 8);
STRING_LITERAL(TMP4527, "COMPILERPROCS(\012", 15);
STRING_LITERAL(TMP4528, "INDEX(\012", 7);
STRING_LITERAL(TMP4529, "IMPORTS(\012", 9);
STRING_LITERAL(TMP4530, "CONVERTERS:", 11);
STRING_LITERAL(TMP4531, "METHODS:", 8);
STRING_LITERAL(TMP4532, "INIT(\012", 6);
STRING_LITERAL(TMP4533, "DATA(\012", 6);
STRING_LITERAL(TMP4534, "\000", 1);
extern TNimType NTI261002; /* TPassContext */
TNimType NTI272002; /* TRodWriter */
extern TNimType NTI214788; /* PSym */
extern TNimType NTI192003; /* Sha1Digest */
extern TNimType NTI160011; /* TOptions */
extern TNimType NTI138; /* string */
extern TNimType NTI252019; /* TIndex */
extern TNimType NTI214792; /* TSymSeq */
extern TNimType NTI214824; /* TTypeSeq */
extern TNimType NTI125202; /* seq[string] */
TNimType NTI272004; /* PRodWriter */
extern Gcheap49818 gch_49859;
extern Stringtableobj140209* gsymbols_190001;
extern NU32 goptions_160119;
extern NU32 gglobaloptions_160121;
extern NU8 gcmd_160123;
extern NimStringDesc* gprojectpath_160200;
extern NimStringDesc* gprojectname_160199;
N_NIMCALL(void, TMP4498)(void* p, NI op) {
	Trodwriter272002* a;
	a = (Trodwriter272002*)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(Cell47505*, usrtocell_51440)(void* usr) {
	Cell47505* result;
	result = 0;
	result = ((Cell47505*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((NI)sizeof(Cell47505))))));
	return result;
}

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

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell47505* 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) {
	{
		Cell47505* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_51440(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell47505* 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_272046)(void) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP4499));
	{
		NimStringDesc* d_272049;
		d_272049 = 0;
		{
			NimStringDesc* key_272055;
			NimStringDesc* val_272057;
			key_272055 = 0;
			val_272057 = 0;
			{
				NI h_272059;
				NI HEX3Atmp_272061;
				NI res_272063;
				h_272059 = 0;
				HEX3Atmp_272061 = 0;
				HEX3Atmp_272061 = ((*gsymbols_190001).data ? ((*gsymbols_190001).data->Sup.len-1) : -1);
				res_272063 = ((NI) 0);
				{
					while (1) {
						if (!(res_272063 <= HEX3Atmp_272061)) goto LA5;
						h_272059 = res_272063;
						{
							if (!!((*gsymbols_190001).data->data[h_272059].Field0 == 0)) goto LA8;
							key_272055 = (*gsymbols_190001).data->data[h_272059].Field0;
							val_272057 = (*gsymbols_190001).data->data[h_272059].Field1;
							{
								if (!!(eqStrings(val_272057, ((NimStringDesc*) &TMP4500)))) goto LA12;
								d_272049 = key_272055;
								{
									if (!!(((result ? result->Sup.len : 0) == ((NI) 0)))) goto LA16;
									result = resizeString(result, 1);
appendString(result, ((NimStringDesc*) &TMP4501));
								}
								LA16: ;
								result = resizeString(result, d_272049->Sup.len + 0);
appendString(result, d_272049);
							}
							LA12: ;
						}
						LA8: ;
						res_272063 += ((NI) 1);
					} LA5: ;
				}
			}
		}
	}
	return result;
}

N_NIMCALL(Trodwriter272002*, newrodwriter_272023)(Sha1digest192003 hash, Tsym214822* module) {
	Trodwriter272002* result;
	NimStringDesc* LOC1;
	NimStringDesc* LOC2;
	NimStringDesc* LOC3;
	NimStringDesc* LOC4;
	NimStringDesc* LOC5;
	NimStringDesc* LOC6;
	NimStringDesc* LOC7;
	NimStringDesc* LOC8;
	result = 0;
	result = (Trodwriter272002*) newObj((&NTI272004), sizeof(Trodwriter272002));
	(*result).Sup.Sup.m_type = (&NTI272002);
	if ((*result).sstack) nimGCunrefNoCycle((*result).sstack);
	(*result).sstack = (Tsymseq214792*) newSeqRC1((&NTI214792), 0);
	if ((*result).tstack) nimGCunrefNoCycle((*result).tstack);
	(*result).tstack = (Ttypeseq214824*) newSeqRC1((&NTI214824), 0);
	initiitable_221168((&(*result).index.tab));
	initiitable_221168((&(*result).imports.tab));
	LOC1 = 0;
	LOC1 = (*result).index.r; (*result).index.r = copyStringRC1(((NimStringDesc*) &TMP4499));
	if (LOC1) nimGCunrefNoCycle(LOC1);
	LOC2 = 0;
	LOC2 = (*result).imports.r; (*result).imports.r = copyStringRC1(((NimStringDesc*) &TMP4499));
	if (LOC2) nimGCunrefNoCycle(LOC2);
	memcpy((void*)(*result).hash, (NIM_CONST void*)hash, sizeof(Sha1digest192003));
	asgnRefNoCycle((void**) (&(*result).module), module);
	asgnRefNoCycle((void**) (&(*result).defines), getdefines_272046());
	(*result).options = goptions_160119;
	if ((*result).files) nimGCunrefNoCycle((*result).files);
	(*result).files = (TY125202*) newSeqRC1((&NTI125202), 0);
	LOC3 = 0;
	LOC3 = (*result).incldeps; (*result).incldeps = copyStringRC1(((NimStringDesc*) &TMP4499));
	if (LOC3) nimGCunrefNoCycle(LOC3);
	LOC4 = 0;
	LOC4 = (*result).moddeps; (*result).moddeps = copyStringRC1(((NimStringDesc*) &TMP4499));
	if (LOC4) nimGCunrefNoCycle(LOC4);
	asgnRefNoCycle((void**) (&(*result).interf), rawNewString(((NI) 2000)));
	LOC5 = 0;
	LOC5 = (*result).compilerprocs; (*result).compilerprocs = copyStringRC1(((NimStringDesc*) &TMP4499));
	if (LOC5) nimGCunrefNoCycle(LOC5);
	LOC6 = 0;
	LOC6 = (*result).converters; (*result).converters = copyStringRC1(((NimStringDesc*) &TMP4499));
	if (LOC6) nimGCunrefNoCycle(LOC6);
	LOC7 = 0;
	LOC7 = (*result).methods; (*result).methods = copyStringRC1(((NimStringDesc*) &TMP4499));
	if (LOC7) nimGCunrefNoCycle(LOC7);
	LOC8 = 0;
	LOC8 = (*result).init; (*result).init = copyStringRC1(((NimStringDesc*) &TMP4499));
	if (LOC8) nimGCunrefNoCycle(LOC8);
	asgnRefNoCycle((void**) (&(*result).origfile), tofilename_183262((*module).info.fileindex));
	asgnRefNoCycle((void**) (&(*result).data), rawNewString(((NI) 12000)));
	return result;
}

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

N_NIMCALL(void, addtoindex_272803)(Tindex252019* w, NI key, NI val) {
	{
		if (!((NI)(key - (*w).lastidxkey) == ((NI) 1))) goto LA3;
		encodevint_220212((NI)(val - (*w).lastidxval), (&(*w).r));
	}
	goto LA1;
	LA3: ;
	{
		encodevint_220212((NI)(key - (*w).lastidxkey), (&(*w).r));
		(*w).r = addChar((*w).r, 32);
		encodevint_220212((NI)(val - (*w).lastidxval), (&(*w).r));
	}
	LA1: ;
	(*w).r = resizeString((*w).r, 1);
appendString((*w).r, ((NimStringDesc*) &TMP4503));
	(*w).lastidxkey = key;
	(*w).lastidxval = val;
	iitableput_221176((&(*w).tab), key, val);
}

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

N_NIMCALL(NI, fileidx_272066)(Trodwriter272002* w, NimStringDesc* filename) {
	NI result;
	NimStringDesc* LOC8;
{	result = 0;
	{
		NI i_272082;
		NI HEX3Atmp_272102;
		NI res_272105;
		i_272082 = 0;
		HEX3Atmp_272102 = 0;
		HEX3Atmp_272102 = ((*w).files ? ((*w).files->Sup.len-1) : -1);
		res_272105 = ((NI) 0);
		{
			while (1) {
				if (!(res_272105 <= HEX3Atmp_272102)) goto LA3;
				i_272082 = res_272105;
				{
					if (!eqStrings((*w).files->data[i_272082], filename)) goto LA6;
					result = i_272082;
					goto BeforeRet;
				}
				LA6: ;
				res_272105 += ((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_272321)(Trodwriter272002* w, Tloc214804* loc, NimStringDesc** result) {
	NI oldlen;
	oldlen = ((*result) ? (*result)->Sup.len : 0);
	(*result) = addChar((*result), 60);
	{
		if (!!(((*loc).k == ((NU8) 0)))) goto LA3;
		encodevint_220212(((NI) ((*loc).k)), result);
	}
	LA3: ;
	{
		if (!!(((*loc).s == ((NU8) 0)))) goto LA7;
		(*result) = addChar((*result), 42);
		encodevint_220212(((NI) ((*loc).s)), result);
	}
	LA7: ;
	{
		if (!!(((*loc).flags == 0))) goto LA11;
		(*result) = addChar((*result), 36);
		encodevint_220212(((NI) (((NI32) ((*loc).flags)))), result);
	}
	LA11: ;
	{
		if (!!(((*loc).t == NIM_NIL))) goto LA15;
		(*result) = addChar((*result), 94);
		encodevint_220212(((NI) (((NI32) ((*(*loc).t).Sup.id)))), result);
		pushtype_272194(w, (*loc).t);
	}
	LA15: ;
	{
		NimStringDesc* LOC21;
		if (!!(((*loc).r == NIM_NIL))) goto LA19;
		(*result) = addChar((*result), 33);
		LOC21 = 0;
		LOC21 = HEX24_169856((*loc).r);
		encodestr_220018(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_272223)(Trodwriter272002* w, Tlineinfo182337 finfo, Tnode214790* n, NimStringDesc** result) {
	NU16 f;
{	{
		if (!(n == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4505));
		goto BeforeRet;
	}
	LA3: ;
	(*result) = addChar((*result), 40);
	encodevint_220212(((NI) ((*n).kind)), result);
	{
		NimStringDesc* LOC9;
		NI LOC10;
		if (!!((finfo.fileindex == (*n).info.fileindex))) goto LA7;
		(*result) = addChar((*result), 63);
		encodevint_220212(((NI) ((*n).info.col)), result);
		(*result) = addChar((*result), 44);
		encodevint_220212(((NI) ((*n).info.line)), result);
		(*result) = addChar((*result), 44);
		LOC9 = 0;
		LOC9 = tofilename_183262((*n).info.fileindex);
		LOC10 = 0;
		LOC10 = fileidx_272066(w, LOC9);
		encodevint_220212(LOC10, result);
	}
	goto LA5;
	LA7: ;
	{
		if (!!((finfo.line == (*n).info.line))) goto LA12;
		(*result) = addChar((*result), 63);
		encodevint_220212(((NI) ((*n).info.col)), result);
		(*result) = addChar((*result), 44);
		encodevint_220212(((NI) ((*n).info.line)), result);
	}
	goto LA5;
	LA12: ;
	{
		if (!!((finfo.col == (*n).info.col))) goto LA15;
		(*result) = addChar((*result), 63);
		encodevint_220212(((NI) ((*n).info.col)), result);
	}
	goto LA5;
	LA15: ;
	LA5: ;
	f = ((*n).flags & 26382);
	{
		if (!!((f == 0))) goto LA19;
		(*result) = addChar((*result), 36);
		encodevint_220212(((NI) (((NI32) (f)))), result);
	}
	LA19: ;
	{
		if (!!(((*n).typ == NIM_NIL))) goto LA23;
		(*result) = addChar((*result), 94);
		encodevint_220212((*(*n).typ).Sup.id, result);
		pushtype_272194(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_220186((*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_220018(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_220018((*n).kindU.S3.strval, result);
		}
		LA39: ;
	}
	break;
	case ((NU8) 2):
	{
		(*result) = addChar((*result), 33);
		encodestr_220018((*(*n).kindU.S5.ident).s, result);
	}
	break;
	case ((NU8) 3):
	{
		(*result) = addChar((*result), 33);
		encodevint_220212((*(*n).kindU.S4.sym).Sup.id, result);
		pushsym_272208(w, (*n).kindU.S4.sym);
	}
	break;
	default:
	{
		{
			NI i_272310;
			NI HEX3Atmp_272314;
			NI LOC45;
			NI res_272317;
			i_272310 = 0;
			HEX3Atmp_272314 = 0;
			LOC45 = 0;
			LOC45 = sonslen_217351(n);
			HEX3Atmp_272314 = (NI)(LOC45 - ((NI) 1));
			res_272317 = ((NI) 0);
			{
				while (1) {
					if (!(res_272317 <= HEX3Atmp_272314)) goto LA47;
					i_272310 = res_272317;
					encodenode_272223(w, (*n).info, (*n).kindU.S6.sons->data[i_272310], result);
					res_272317 += ((NI) 1);
				} LA47: ;
			}
		}
	}
	break;
	}
	(*result) = addChar((*result), 41);
	}BeforeRet: ;
}

N_NIMCALL(void, encodelib_272539)(Trodwriter272002* w, Tlib214808* lib, Tlineinfo182337 info, NimStringDesc** result) {
	NimStringDesc* LOC1;
	(*result) = addChar((*result), 124);
	encodevint_220212(((NI) ((*lib).kind)), result);
	(*result) = addChar((*result), 124);
	LOC1 = 0;
	LOC1 = HEX24_169856((*lib).name);
	encodestr_220018(LOC1, result);
	(*result) = addChar((*result), 124);
	encodenode_272223(w, info, (*lib).path, result);
}

N_NIMCALL(void, encodesym_272554)(Trodwriter272002* w, Tsym214822* s, NimStringDesc** result) {
	NimStringDesc* LOC17;
	NI LOC18;
{	{
		if (!(s == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4504));
		goto BeforeRet;
	}
	LA3: ;
	encodevint_220212(((NI) ((*s).kind)), result);
	(*result) = addChar((*result), 43);
	encodevint_220212((*s).Sup.id, result);
	(*result) = addChar((*result), 38);
	encodestr_220018((*(*s).name).s, result);
	{
		if (!!(((*s).typ == NIM_NIL))) goto LA7;
		(*result) = addChar((*result), 94);
		encodevint_220212((*(*s).typ).Sup.id, result);
		pushtype_272194(w, (*s).typ);
	}
	LA7: ;
	(*result) = addChar((*result), 63);
	{
		if (!!(((*s).info.col == ((NI16) -1)))) goto LA11;
		encodevint_220212(((NI) ((*s).info.col)), result);
	}
	LA11: ;
	(*result) = addChar((*result), 44);
	{
		if (!!(((*s).info.line == ((NI16) -1)))) goto LA15;
		encodevint_220212(((NI) ((*s).info.line)), result);
	}
	LA15: ;
	(*result) = addChar((*result), 44);
	LOC17 = 0;
	LOC17 = tofilename_183262((*s).info.fileindex);
	LOC18 = 0;
	LOC18 = fileidx_272066(w, LOC17);
	encodevint_220212(LOC18, result);
	{
		if (!!(((*s).owner == NIM_NIL))) goto LA21;
		(*result) = addChar((*result), 42);
		encodevint_220212((*(*s).owner).Sup.id, result);
		pushsym_272208(w, (*s).owner);
	}
	LA21: ;
	{
		if (!!(((*s).flags == 0))) goto LA25;
		(*result) = addChar((*result), 36);
		encodevint_220212(((NI) (((NI32) ((*s).flags)))), result);
	}
	LA25: ;
	{
		if (!!(((*s).magic == ((NU8) 0)))) goto LA29;
		(*result) = addChar((*result), 64);
		encodevint_220212(((NI) ((*s).magic)), result);
	}
	LA29: ;
	{
		if (!!(((*s).options == (*w).options))) goto LA33;
		(*result) = addChar((*result), 33);
		encodevint_220212(((NI) (((NI32) ((*s).options)))), result);
	}
	LA33: ;
	{
		if (!!(((*s).position == ((NI) 0)))) goto LA37;
		(*result) = addChar((*result), 37);
		encodevint_220212((*s).position, result);
	}
	LA37: ;
	{
		if (!!(((*s).offset == ((NI) -1)))) goto LA41;
		(*result) = addChar((*result), 96);
		encodevint_220212((*s).offset, result);
	}
	LA41: ;
	encodeloc_272321(w, (&(*s).loc), result);
	{
		if (!!(((*s).annex == NIM_NIL))) goto LA45;
		encodelib_272539(w, (*s).annex, (*s).info, result);
	}
	LA45: ;
	{
		Tlineinfo182337 LOC51;
		if (!!(((*s).constraint == NIM_NIL))) goto LA49;
		(*result) = addChar((*result), 35);
		LOC51 = unknownlineinfo_183087();
		encodenode_272223(w, LOC51, (*s).constraint, result);
	}
	LA49: ;
	{
		if (!!(((*s).ast == NIM_NIL))) goto LA54;
		encodenode_272223(w, (*s).info, (*s).ast, result);
	}
	LA54: ;
	}BeforeRet: ;
}

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

static N_INLINE(NIM_BOOL, haspattern_219411)(Tsym214822* s) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = isroutine_219397(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_273001)(Trodwriter272002* w) {
	NI result;
	NI i;
	result = 0;
	i = ((NI) 0);
	{
		while (1) {
			Tsym214822* 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;
				Tsym214822* m;
				LOC8 = 0;
				LOC8 = iitableget_221172((*w).index.tab, (*s).Sup.id);
				if (!(LOC8 == ((NI) (IL64(-9223372036854775807) - IL64(1))))) goto LA9;
				m = getmodule_221144(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*) &TMP4502));
appendString(LOC17, (*(*s).name).s);
					internalerror_187113(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_272803((&(*w).index), (*s).Sup.id, L);
					encodesym_272554(w, s, (&(*w).data));
					(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4503));
					{
						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_220018((*(*s).name).s, (&(*w).interf));
						(*w).interf = addChar((*w).interf, 32);
						encodevint_220212((*s).Sup.id, (&(*w).interf));
						(*w).interf = resizeString((*w).interf, 1);
appendString((*w).interf, ((NimStringDesc*) &TMP4503));
					}
					LA30: ;
					{
						if (!(((*s).flags &(1U<<((NU)(((NU8) 16))&31U)))!=0)) goto LA34;
						encodestr_220018((*(*s).name).s, (&(*w).compilerprocs));
						(*w).compilerprocs = addChar((*w).compilerprocs, 32);
						encodevint_220212((*s).Sup.id, (&(*w).compilerprocs));
						(*w).compilerprocs = resizeString((*w).compilerprocs, 1);
appendString((*w).compilerprocs, ((NimStringDesc*) &TMP4503));
					}
					LA34: ;
					{
						NIM_BOOL LOC38;
						LOC38 = 0;
						LOC38 = ((*s).kind == ((NU8) 15));
						if (LOC38) goto LA39;
						LOC38 = haspattern_219411(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_220212((*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_220212((*s).Sup.id, (&(*w).methods));
					}
					LA50: ;
				}
				goto LA18;
				LA24: ;
				{
					NI LOC57;
					LOC57 = 0;
					LOC57 = iitableget_221172((*w).imports.tab, (*s).Sup.id);
					if (!(LOC57 == ((NI) (IL64(-9223372036854775807) - IL64(1))))) goto LA58;
					addtoindex_272803((&(*w).imports), (*s).Sup.id, (*m).Sup.id);
				}
				goto LA18;
				LA58: ;
				LA18: ;
			}
			goto LA3;
			LA9: ;
			LA3: ;
			i += ((NI) 1);
		} LA2: ;
	}
	(*w).sstack = (Tsymseq214792*) setLengthSeq(&((*w).sstack)->Sup, sizeof(Tsym214822*), ((NI) (result)));
	return result;
}

N_NIMCALL(void, encodetype_272402)(Trodwriter272002* w, Ttype214828* t, NimStringDesc** result) {
{	{
		if (!(t == NIM_NIL)) goto LA3;
		(*result) = resizeString((*result), 2);
appendString((*result), ((NimStringDesc*) &TMP4506));
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!((*t).kind == ((NU8) 30))) goto LA7;
		internalerror_187113(((NimStringDesc*) &TMP4507));
	}
	LA7: ;
	(*result) = addChar((*result), 91);
	encodevint_220212(((NI) ((*t).kind)), result);
	(*result) = addChar((*result), 43);
	encodevint_220212((*t).Sup.id, result);
	{
		Tlineinfo182337 LOC13;
		if (!!(((*t).n == NIM_NIL))) goto LA11;
		LOC13 = unknownlineinfo_183087();
		encodenode_272223(w, LOC13, (*t).n, result);
	}
	LA11: ;
	{
		if (!!(((*t).flags == 0))) goto LA16;
		(*result) = addChar((*result), 36);
		encodevint_220212(((NI) (((NI32) ((*t).flags)))), result);
	}
	LA16: ;
	{
		if (!!(((*t).callconv == ((NU8) 0)))) goto LA20;
		(*result) = addChar((*result), 63);
		encodevint_220212(((NI) ((*t).callconv)), result);
	}
	LA20: ;
	{
		if (!!(((*t).owner == NIM_NIL))) goto LA24;
		(*result) = addChar((*result), 42);
		encodevint_220212((*(*t).owner).Sup.id, result);
		pushsym_272208(w, (*t).owner);
	}
	LA24: ;
	{
		if (!!(((*t).sym == NIM_NIL))) goto LA28;
		(*result) = addChar((*result), 38);
		encodevint_220212((*(*t).sym).Sup.id, result);
		pushsym_272208(w, (*t).sym);
	}
	LA28: ;
	{
		if (!!(((*t).size == IL64(-1)))) goto LA32;
		(*result) = addChar((*result), 47);
		encodevbiggestint_220186((*t).size, result);
	}
	LA32: ;
	{
		if (!!(((*t).align == ((NI16) 2)))) goto LA36;
		(*result) = addChar((*result), 61);
		encodevint_220212(((NI) ((*t).align)), result);
	}
	LA36: ;
	encodeloc_272321(w, (&(*t).loc), result);
	{
		NI i_272517;
		NI HEX3Atmp_272532;
		NI LOC39;
		NI res_272535;
		i_272517 = 0;
		HEX3Atmp_272532 = 0;
		LOC39 = 0;
		LOC39 = sonslen_217327(t);
		HEX3Atmp_272532 = (NI)(LOC39 - ((NI) 1));
		res_272535 = ((NI) 0);
		{
			while (1) {
				if (!(res_272535 <= HEX3Atmp_272532)) goto LA41;
				i_272517 = res_272535;
				{
					if (!((*t).sons->data[i_272517] == NIM_NIL)) goto LA44;
					(*result) = resizeString((*result), 3);
appendString((*result), ((NimStringDesc*) &TMP4508));
				}
				goto LA42;
				LA44: ;
				{
					(*result) = addChar((*result), 94);
					encodevint_220212((*(*t).sons->data[i_272517]).Sup.id, result);
					pushtype_272194(w, (*t).sons->data[i_272517]);
				}
				LA42: ;
				res_272535 += ((NI) 1);
			} LA41: ;
		}
	}
	}BeforeRet: ;
}

N_NIMCALL(NI, typestack_273421)(Trodwriter272002* w) {
	NI result;
	NI i;
	result = 0;
	i = ((NI) 0);
	{
		while (1) {
			Ttype214828* 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_221172((*w).index.tab, (*t).Sup.id);
				if (!(LOC8 == ((NI) (IL64(-9223372036854775807) - IL64(1))))) goto LA9;
				L = ((*w).data ? (*w).data->Sup.len : 0);
				addtoindex_272803((&(*w).index), (*t).Sup.id, L);
				encodetype_272402(w, t, (&(*w).data));
				(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4503));
			}
			goto LA3;
			LA9: ;
			LA3: ;
			i += ((NI) 1);
		} LA2: ;
	}
	(*w).tstack = (Ttypeseq214824*) setLengthSeq(&((*w).tstack)->Sup, sizeof(Ttype214828*), ((NI) (result)));
	return result;
}

N_NIMCALL(void, processstacks_273476)(Trodwriter272002* w, NIM_BOOL finalpass) {
	NI olds;
	NI oldt;
	olds = ((NI) 0);
	oldt = ((NI) 0);
	{
		while (1) {
			NI slen;
			NI tlen;
			slen = symstack_273001(w);
			tlen = typestack_273421(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_187113(((NimStringDesc*) &TMP4509));
	}
	LA15: ;
}

N_NIMCALL(void, rawaddinterfacesym_273485)(Trodwriter272002* w, Tsym214822* s) {
	pushsym_272208(w, s);
	processstacks_273476(w, NIM_FALSE);
}

N_NIMCALL(Tpasscontext261002*, myopen_273918)(Tsym214822* module) {
	Tpasscontext261002* result;
	Trodwriter272002* w;
	Sha1digest192003 LOC5;
	result = 0;
	{
		if (!((*module).Sup.id < ((NI) 0))) goto LA3;
		internalerror_187113(((NimStringDesc*) &TMP4496));
	}
	LA3: ;
	memset((void*)LOC5, 0, sizeof(LOC5));
	gethash_254480(((NI32) ((*module).position)), LOC5);
	w = newrodwriter_272023(LOC5, module);
	rawaddinterfacesym_273485(w, module);
	result = &w->Sup;
	return result;
}

N_NIMCALL(void, addinterfacesym_272035)(Trodwriter272002* w, Tsym214822* 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_273485(w, s);
	}
	LA9: ;
	}BeforeRet: ;
}

N_NIMCALL(void, addmoddep_272027)(Trodwriter272002* 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_272066(w, dep);
	encodevint_220212(LOC5, (&(*w).moddeps));
}

N_NIMCALL(void, addstmt_272039)(Trodwriter272002* w, Tnode214790* n) {
	Tlineinfo182337 LOC1;
	encodevint_220212(((*w).data ? (*w).data->Sup.len : 0), (&(*w).init));
	(*w).init = resizeString((*w).init, 1);
appendString((*w).init, ((NimStringDesc*) &TMP4503));
	LOC1 = unknownlineinfo_183087();
	encodenode_272223(w, LOC1, n, (&(*w).data));
	(*w).data = resizeString((*w).data, 1);
appendString((*w).data, ((NimStringDesc*) &TMP4503));
	processstacks_273476(w, NIM_FALSE);
}

N_NIMCALL(void, addincldep_272031)(Trodwriter272002* w, NimStringDesc* dep) {
	NimStringDesc* resolved;
	NimStringDesc* LOC1;
	NI LOC2;
	Sha1digest192003 LOC3;
	NimStringDesc* LOC4;
	LOC1 = 0;
	LOC1 = tofullpath_183266((*(*w).module).info.fileindex);
	resolved = findmodule_161484(dep, LOC1);
	LOC2 = 0;
	LOC2 = fileidx_272066(w, dep);
	encodevint_220212(LOC2, (&(*w).incldeps));
	(*w).incldeps = resizeString((*w).incldeps, 1);
appendString((*w).incldeps, ((NimStringDesc*) &TMP4501));
	memset((void*)LOC3, 0, sizeof(LOC3));
	securehashfile_192016(resolved, LOC3);
	LOC4 = 0;
	LOC4 = HEX24_192020(LOC3);
	encodestr_220018(LOC4, (&(*w).incldeps));
	(*w).incldeps = resizeString((*w).incldeps, 1);
appendString((*w).incldeps, ((NimStringDesc*) &TMP4503));
}

N_NIMCALL(Tnode214790*, process_273698)(Tpasscontext261002* c, Tnode214790* n) {
	Tnode214790* result;
	Trodwriter272002* w;
{	result = 0;
	result = n;
	{
		if (!(c == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	w = ((Trodwriter272002*) (c));
	switch ((*n).kind) {
	case ((NU8) 115):
	{
		{
			NI i_273727;
			NI HEX3Atmp_273877;
			NI LOC7;
			NI res_273880;
			i_273727 = 0;
			HEX3Atmp_273877 = 0;
			LOC7 = 0;
			LOC7 = sonslen_217351(n);
			HEX3Atmp_273877 = (NI)(LOC7 - ((NI) 1));
			res_273880 = ((NI) 0);
			{
				while (1) {
					Tnode214790* LOC10;
					if (!(res_273880 <= HEX3Atmp_273877)) goto LA9;
					i_273727 = res_273880;
					LOC10 = 0;
					LOC10 = process_273698(c, (*n).kindU.S6.sons->data[i_273727]);
					res_273880 += ((NI) 1);
				} LA9: ;
			}
		}
	}
	break;
	case ((NU8) 79):
	case ((NU8) 80):
	case ((NU8) 84):
	case ((NU8) 81):
	case ((NU8) 83):
	case ((NU8) 82):
	{
		Tsym214822* s;
		s = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		{
			if (!(s == NIM_NIL)) goto LA14;
			internalerror_187100((*n).info, ((NimStringDesc*) &TMP4510));
		}
		LA14: ;
		{
			if (!((*n).kindU.S6.sons->data[((NI) 6)] == NIM_NIL)) goto LA18;
			internalerror_187100((*n).info, ((NimStringDesc*) &TMP4511));
		}
		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_272035(w, s);
		}
		LA26: ;
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	case ((NU8) 101):
	{
		{
			NI i_273799;
			NI HEX3Atmp_273886;
			NI LOC30;
			NI res_273889;
			i_273799 = 0;
			HEX3Atmp_273886 = 0;
			LOC30 = 0;
			LOC30 = sonslen_217351(n);
			HEX3Atmp_273886 = (NI)(LOC30 - ((NI) 1));
			res_273889 = ((NI) 0);
			{
				while (1) {
					if (!(res_273889 <= HEX3Atmp_273886)) goto LA32;
					i_273799 = res_273889;
					{
						Tnode214790* a;
						a = (*n).kindU.S6.sons->data[i_273799];
						{
							if (!((*a).kind == ((NU8) 125))) goto LA36;
							goto LA33;
						}
						LA36: ;
						addinterfacesym_272035(w, (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym);
					} LA33: ;
					res_273889 += ((NI) 1);
				} LA32: ;
			}
		}
	}
	break;
	case ((NU8) 98):
	{
		{
			NI i_273824;
			NI HEX3Atmp_273895;
			NI LOC40;
			NI res_273898;
			i_273824 = 0;
			HEX3Atmp_273895 = 0;
			LOC40 = 0;
			LOC40 = sonslen_217351(n);
			HEX3Atmp_273895 = (NI)(LOC40 - ((NI) 1));
			res_273898 = ((NI) 0);
			{
				while (1) {
					if (!(res_273898 <= HEX3Atmp_273895)) goto LA42;
					i_273824 = res_273898;
					{
						Tnode214790* a;
						Tsym214822* s;
						a = (*n).kindU.S6.sons->data[i_273824];
						{
							if (!((*a).kind == ((NU8) 125))) goto LA46;
							goto LA43;
						}
						LA46: ;
						{
							if (!!(((*(*a).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA50;
							internalerror_187100((*a).info, ((NimStringDesc*) &TMP4510));
						}
						LA50: ;
						s = (*(*a).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
						addinterfacesym_272035(w, s);
					} LA43: ;
					res_273898 += ((NI) 1);
				} LA42: ;
			}
		}
	}
	break;
	case ((NU8) 116):
	{
		{
			NI i_273860;
			NI HEX3Atmp_273903;
			NI LOC54;
			NI res_273906;
			i_273860 = 0;
			HEX3Atmp_273903 = 0;
			LOC54 = 0;
			LOC54 = sonslen_217351(n);
			HEX3Atmp_273903 = (NI)(LOC54 - ((NI) 1));
			res_273906 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* LOC57;
					if (!(res_273906 <= HEX3Atmp_273903)) goto LA56;
					i_273860 = res_273906;
					LOC57 = 0;
					LOC57 = getmodulename_271009((*n).kindU.S6.sons->data[i_273860]);
					addmoddep_272027(w, LOC57);
					res_273906 += ((NI) 1);
				} LA56: ;
			}
		}
		addstmt_272039(w, n);
	}
	break;
	case ((NU8) 120):
	{
		NimStringDesc* LOC59;
		LOC59 = 0;
		LOC59 = getmodulename_271009((*n).kindU.S6.sons->data[((NI) 0)]);
		addmoddep_272027(w, LOC59);
		addstmt_272039(w, n);
	}
	break;
	case ((NU8) 121):
	{
		{
			NI i_273874;
			NI HEX3Atmp_273911;
			NI LOC62;
			NI res_273914;
			i_273874 = 0;
			HEX3Atmp_273911 = 0;
			LOC62 = 0;
			LOC62 = sonslen_217351(n);
			HEX3Atmp_273911 = (NI)(LOC62 - ((NI) 1));
			res_273914 = ((NI) 0);
			{
				while (1) {
					NimStringDesc* LOC65;
					if (!(res_273914 <= HEX3Atmp_273911)) goto LA64;
					i_273874 = res_273914;
					LOC65 = 0;
					LOC65 = getmodulename_271009((*n).kindU.S6.sons->data[i_273874]);
					addincldep_272031(w, LOC65);
					res_273914 += ((NI) 1);
				} LA64: ;
			}
		}
	}
	break;
	case ((NU8) 90):
	{
		addstmt_272039(w, n);
	}
	break;
	default:
	{
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, writerod_272043)(Trodwriter272002* w) {
	FILE* f;
	NimStringDesc* id;
	NimStringDesc* orig;
	NimStringDesc* hash;
	NimStringDesc* LOC10;
	NimStringDesc* options;
	NimStringDesc* goptions;
	NimStringDesc* cmd;
	NimStringDesc* files;
{	processstacks_273476(w, NIM_TRUE);
	f = 0;
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		NimStringDesc* LOC5;
		NimStringDesc* LOC6;
		NIM_BOOL LOC7;
		LOC3 = 0;
		LOC3 = tofilename_183262(((NI32) ((*(*w).module).position)));
		LOC4 = 0;
		LOC4 = withpackagename_161074(LOC3);
		LOC5 = 0;
		LOC5 = noschangeFileExt(LOC4, ((NimStringDesc*) &TMP4512));
		LOC6 = 0;
		LOC6 = completegeneratedfilepath_161201(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*) &TMP4513));
	write_15489(f, ((NimStringDesc*) &TMP4514));
	write_15489(f, ((NimStringDesc*) &TMP4503));
	id = copyString(((NimStringDesc*) &TMP4515));
	encodevint_220212((*(*w).module).Sup.id, (&id));
	write_15489(f, id);
	write_15489(f, ((NimStringDesc*) &TMP4503));
	orig = copyString(((NimStringDesc*) &TMP4516));
	encodestr_220018((*w).origfile, (&orig));
	write_15489(f, orig);
	write_15489(f, ((NimStringDesc*) &TMP4503));
	hash = copyString(((NimStringDesc*) &TMP4517));
	LOC10 = 0;
	LOC10 = HEX24_192020((*w).hash);
	encodestr_220018(LOC10, (&hash));
	write_15489(f, hash);
	write_15489(f, ((NimStringDesc*) &TMP4503));
	options = copyString(((NimStringDesc*) &TMP4518));
	encodevint_220212(((NI) (((NI32) ((*w).options)))), (&options));
	write_15489(f, options);
	write_15489(f, ((NimStringDesc*) &TMP4503));
	goptions = copyString(((NimStringDesc*) &TMP4519));
	encodevint_220212(((NI) (((NI32) (gglobaloptions_160121)))), (&goptions));
	write_15489(f, goptions);
	write_15489(f, ((NimStringDesc*) &TMP4503));
	cmd = copyString(((NimStringDesc*) &TMP4520));
	encodevint_220212(((NI) (((NI32) (gcmd_160123)))), (&cmd));
	write_15489(f, cmd);
	write_15489(f, ((NimStringDesc*) &TMP4503));
	write_15489(f, ((NimStringDesc*) &TMP4521));
	write_15489(f, (*w).defines);
	write_15489(f, ((NimStringDesc*) &TMP4503));
	files = copyString(((NimStringDesc*) &TMP4522));
	{
		NI i_273618;
		NI HEX3Atmp_273691;
		NI res_273694;
		i_273618 = 0;
		HEX3Atmp_273691 = 0;
		HEX3Atmp_273691 = ((*w).files ? ((*w).files->Sup.len-1) : -1);
		res_273694 = ((NI) 0);
		{
			while (1) {
				if (!(res_273694 <= HEX3Atmp_273691)) goto LA13;
				i_273618 = res_273694;
				encodestr_220018((*w).files->data[i_273618], (&files));
				files = resizeString(files, 1);
appendString(files, ((NimStringDesc*) &TMP4503));
				res_273694 += ((NI) 1);
			} LA13: ;
		}
	}
	write_15489(f, files);
	write_15489(f, ((NimStringDesc*) &TMP4523));
	write_15489(f, ((NimStringDesc*) &TMP4524));
	write_15489(f, (*w).incldeps);
	write_15489(f, ((NimStringDesc*) &TMP4523));
	write_15489(f, ((NimStringDesc*) &TMP4525));
	write_15489(f, (*w).moddeps);
	write_15489(f, ((NimStringDesc*) &TMP4503));
	write_15489(f, ((NimStringDesc*) &TMP4526));
	write_15489(f, (*w).interf);
	write_15489(f, ((NimStringDesc*) &TMP4523));
	write_15489(f, ((NimStringDesc*) &TMP4527));
	write_15489(f, (*w).compilerprocs);
	write_15489(f, ((NimStringDesc*) &TMP4523));
	write_15489(f, ((NimStringDesc*) &TMP4528));
	write_15489(f, (*w).index.r);
	write_15489(f, ((NimStringDesc*) &TMP4523));
	write_15489(f, ((NimStringDesc*) &TMP4529));
	write_15489(f, (*w).imports.r);
	write_15489(f, ((NimStringDesc*) &TMP4523));
	write_15489(f, ((NimStringDesc*) &TMP4530));
	write_15489(f, (*w).converters);
	write_15489(f, ((NimStringDesc*) &TMP4503));
	write_15489(f, ((NimStringDesc*) &TMP4531));
	write_15489(f, (*w).methods);
	write_15489(f, ((NimStringDesc*) &TMP4503));
	write_15489(f, ((NimStringDesc*) &TMP4532));
	write_15489(f, (*w).init);
	write_15489(f, ((NimStringDesc*) &TMP4523));
	write_15489(f, ((NimStringDesc*) &TMP4533));
	write_15489(f, (*w).data);
	write_15489(f, ((NimStringDesc*) &TMP4523));
	write_15489(f, ((NimStringDesc*) &TMP4534));
	fclose(f);
	}BeforeRet: ;
}

N_NIMCALL(Tnode214790*, myclose_273927)(Tpasscontext261002* c, Tnode214790* n) {
	Tnode214790* result;
	Trodwriter272002* w;
	NimStringDesc* LOC1;
	result = 0;
	result = process_273698(c, n);
	w = ((Trodwriter272002*) (c));
	writerod_272043(w);
	LOC1 = 0;
	LOC1 = HEX2F_118465(gprojectpath_160200, gprojectname_160199);
	savemaxids_213439(LOC1);
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_rodwriteInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_rodwriteDatInit000)(void) {
static TNimNode* TMP4497[18];
static TNimNode TMP919[19];
NTI272002.size = sizeof(Trodwriter272002);
NTI272002.kind = 17;
NTI272002.base = (&NTI261002);
TMP4497[0] = &TMP919[1];
TMP919[1].kind = 1;
TMP919[1].offset = offsetof(Trodwriter272002, module);
TMP919[1].typ = (&NTI214788);
TMP919[1].name = "module";
TMP4497[1] = &TMP919[2];
TMP919[2].kind = 1;
TMP919[2].offset = offsetof(Trodwriter272002, hash);
TMP919[2].typ = (&NTI192003);
TMP919[2].name = "hash";
TMP4497[2] = &TMP919[3];
TMP919[3].kind = 1;
TMP919[3].offset = offsetof(Trodwriter272002, options);
TMP919[3].typ = (&NTI160011);
TMP919[3].name = "options";
TMP4497[3] = &TMP919[4];
TMP919[4].kind = 1;
TMP919[4].offset = offsetof(Trodwriter272002, defines);
TMP919[4].typ = (&NTI138);
TMP919[4].name = "defines";
TMP4497[4] = &TMP919[5];
TMP919[5].kind = 1;
TMP919[5].offset = offsetof(Trodwriter272002, incldeps);
TMP919[5].typ = (&NTI138);
TMP919[5].name = "inclDeps";
TMP4497[5] = &TMP919[6];
TMP919[6].kind = 1;
TMP919[6].offset = offsetof(Trodwriter272002, moddeps);
TMP919[6].typ = (&NTI138);
TMP919[6].name = "modDeps";
TMP4497[6] = &TMP919[7];
TMP919[7].kind = 1;
TMP919[7].offset = offsetof(Trodwriter272002, interf);
TMP919[7].typ = (&NTI138);
TMP919[7].name = "interf";
TMP4497[7] = &TMP919[8];
TMP919[8].kind = 1;
TMP919[8].offset = offsetof(Trodwriter272002, compilerprocs);
TMP919[8].typ = (&NTI138);
TMP919[8].name = "compilerProcs";
TMP4497[8] = &TMP919[9];
TMP919[9].kind = 1;
TMP919[9].offset = offsetof(Trodwriter272002, index);
TMP919[9].typ = (&NTI252019);
TMP919[9].name = "index";
TMP4497[9] = &TMP919[10];
TMP919[10].kind = 1;
TMP919[10].offset = offsetof(Trodwriter272002, imports);
TMP919[10].typ = (&NTI252019);
TMP919[10].name = "imports";
TMP4497[10] = &TMP919[11];
TMP919[11].kind = 1;
TMP919[11].offset = offsetof(Trodwriter272002, converters);
TMP919[11].typ = (&NTI138);
TMP919[11].name = "converters";
TMP4497[11] = &TMP919[12];
TMP919[12].kind = 1;
TMP919[12].offset = offsetof(Trodwriter272002, methods);
TMP919[12].typ = (&NTI138);
TMP919[12].name = "methods";
TMP4497[12] = &TMP919[13];
TMP919[13].kind = 1;
TMP919[13].offset = offsetof(Trodwriter272002, init);
TMP919[13].typ = (&NTI138);
TMP919[13].name = "init";
TMP4497[13] = &TMP919[14];
TMP919[14].kind = 1;
TMP919[14].offset = offsetof(Trodwriter272002, data);
TMP919[14].typ = (&NTI138);
TMP919[14].name = "data";
TMP4497[14] = &TMP919[15];
TMP919[15].kind = 1;
TMP919[15].offset = offsetof(Trodwriter272002, sstack);
TMP919[15].typ = (&NTI214792);
TMP919[15].name = "sstack";
TMP4497[15] = &TMP919[16];
TMP919[16].kind = 1;
TMP919[16].offset = offsetof(Trodwriter272002, tstack);
TMP919[16].typ = (&NTI214824);
TMP919[16].name = "tstack";
TMP4497[16] = &TMP919[17];
TMP919[17].kind = 1;
TMP919[17].offset = offsetof(Trodwriter272002, files);
TMP919[17].typ = (&NTI125202);
TMP919[17].name = "files";
TMP4497[17] = &TMP919[18];
TMP919[18].kind = 1;
TMP919[18].offset = offsetof(Trodwriter272002, origfile);
TMP919[18].typ = (&NTI138);
TMP919[18].name = "origFile";
TMP919[0].len = 18; TMP919[0].kind = 2; TMP919[0].sons = &TMP4497[0];
NTI272002.node = &TMP919[0];
NTI272004.size = sizeof(Trodwriter272002*);
NTI272004.kind = 22;
NTI272004.base = (&NTI272002);
NTI272004.marker = TMP4498;
}

