/* Generated by Nim Compiler v0.11.2 */
/*   (c) 2015 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 32
#include "nimbase.h"

#include <string.h>

#include <setjmp.h>

#include <stdio.h>
typedef struct Tstrtable190817 Tstrtable190817;
typedef struct Tsymseq190815 Tsymseq190815;
typedef struct Tidtable190861 Tidtable190861;
typedef struct Tidpairseq190859 Tidpairseq190859;
typedef struct Tfilemodulemap234825 Tfilemodulemap234825;
typedef struct Tfilemodulerec234823 Tfilemodulerec234823;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Trodreader233030 Trodreader233030;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct TNimObject TNimObject;
typedef struct TY190933 TY190933;
typedef struct Tindex233028 Tindex233028;
typedef struct Tiitable198274 Tiitable198274;
typedef struct Tiipairseq198272 Tiipairseq198272;
typedef struct Memfile231208 Memfile231208;
typedef struct Tcell46347 Tcell46347;
typedef struct Tcellseq46363 Tcellseq46363;
typedef struct Tgcheap48216 Tgcheap48216;
typedef struct Tcellset46359 Tcellset46359;
typedef struct Tpagedesc46355 Tpagedesc46355;
typedef struct Tmemregion28210 Tmemregion28210;
typedef struct Tsmallchunk27440 Tsmallchunk27440;
typedef struct Tllchunk28204 Tllchunk28204;
typedef struct Tbigchunk27442 Tbigchunk27442;
typedef struct Tintset27417 Tintset27417;
typedef struct Ttrunk27413 Ttrunk27413;
typedef struct Tavlnode28208 Tavlnode28208;
typedef struct Tgcstat48214 Tgcstat48214;
typedef struct Tsym190843 Tsym190843;
typedef struct Tidobj167015 Tidobj167015;
typedef struct Ttypeseq190845 Ttypeseq190845;
typedef struct Tscope190837 Tscope190837;
typedef struct TY190944 TY190944;
typedef struct Ttype190849 Ttype190849;
typedef struct Tident167021 Tident167021;
typedef struct Tlineinfo163338 Tlineinfo163338;
typedef struct Tnode190813 Tnode190813;
typedef struct Tloc190827 Tloc190827;
typedef struct Ropeobj161009 Ropeobj161009;
typedef struct Tlib190831 Tlib190831;
typedef struct Tnodeseq190807 Tnodeseq190807;
typedef struct Tlistentry130022 Tlistentry130022;
typedef struct TY86345 TY86345;
typedef struct Exception Exception;
typedef struct TSafePoint TSafePoint;
typedef struct Tidpair190857 Tidpair190857;
typedef struct Tiipair198270 Tiipair198270;
typedef struct Tbasechunk27438 Tbasechunk27438;
typedef struct Tfreecell27430 Tfreecell27430;
typedef struct Tinstantiation190833 Tinstantiation190833;
struct  Tstrtable190817  {
NI counter;
Tsymseq190815* data;
};
struct  Tidtable190861  {
NI counter;
Tidpairseq190859* data;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tfilemodulerec234823  {
NimStringDesc* filename;
NU8 reason;
Trodreader233030* rd;
NI32 crc;
NIM_BOOL crcdone;
};
typedef N_NIMCALL_PTR(void, TY3289) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3294) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3289 marker;
TY3294 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tiitable198274  {
NI counter;
Tiipairseq198272* data;
};
struct  Tindex233028  {
NI lastidxkey;
NI lastidxval;
Tiitable198274 tab;
NimStringDesc* r;
NI offset;
};
struct  Memfile231208  {
void* mem;
NI size;
int handle;
};
struct  Trodreader233030  {
  TNimObject Sup;
NI pos;
NCSTRING s;
NU32 options;
NU8 reason;
TY190933* moddeps;
TY190933* files;
NI dataidx;
NI convertersidx;
NI initidx;
NI interfidx;
NI compilerprocsidx;
NI methodsidx;
NimStringDesc* filename;
Tindex233028 index;
Tindex233028 imports;
NI readerindex;
NI line;
NI moduleid;
Tidtable190861 syms;
Memfile231208 memfile;
Tsymseq190815* methods;
NimStringDesc* origfile;
NIM_BOOL inviewmode;
};
struct  Tcell46347  {
NI refcount;
TNimType* typ;
};
struct  Tcellseq46363  {
NI len;
NI cap;
Tcell46347** d;
};
struct  Tcellset46359  {
NI counter;
NI max;
Tpagedesc46355* head;
Tpagedesc46355** data;
};
typedef Tsmallchunk27440* TY28222[512];
typedef Ttrunk27413* Ttrunkbuckets27415[256];
struct  Tintset27417  {
Ttrunkbuckets27415 data;
};
struct  Tmemregion28210  {
NI minlargeobj;
NI maxlargeobj;
TY28222 freesmallchunks;
Tllchunk28204* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Tbigchunk27442* freechunkslist;
Tintset27417 chunkstarts;
Tavlnode28208* root;
Tavlnode28208* deleted;
Tavlnode28208* last;
Tavlnode28208* freeavlnodes;
};
struct  Tgcstat48214  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Tgcheap48216  {
void* stackbottom;
NI cyclethreshold;
Tcellseq46363 zct;
Tcellseq46363 decstack;
Tcellset46359 cycleroots;
Tcellseq46363 tempstack;
NI recgclock;
Tmemregion28210 region;
Tgcstat48214 stat;
};
struct  Tidobj167015  {
  TNimObject Sup;
NI id;
};
struct  Tlineinfo163338  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc190827  {
NU8 k;
NU8 s;
NU16 flags;
Ttype190849* t;
Ropeobj161009* r;
Ropeobj161009* heaproot;
};
struct  Tsym190843  {
  Tidobj167015 Sup;
NU8 kind;
union{
struct {Ttypeseq190845* typeinstcache;
Tscope190837* typscope;
} S1;
struct {TY190944* procinstcache;
Tsym190843* gcunsafetyreason;
} S2;
struct {TY190944* usedgenerics;
Tstrtable190817 tab;
} S3;
struct {Tsym190843* guard;
} S4;
} kindU;
NU16 magic;
Ttype190849* typ;
Tident167021* name;
Tlineinfo163338 info;
Tsym190843* owner;
NU32 flags;
Tnode190813* ast;
NU32 options;
NI position;
NI offset;
Tloc190827 loc;
Tlib190831* annex;
Tnode190813* constraint;
};
struct  Ttype190849  {
  Tidobj167015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq190845* sons;
Tnode190813* n;
Tsym190843* owner;
Tsym190843* sym;
Tsym190843* destructor;
Tsym190843* deepcopy;
Tsym190843* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc190827 loc;
};
struct  Tnode190813  {
Ttype190849* typ;
Tlineinfo163338 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym190843* sym;
} S4;
struct {Tident167021* ident;
} S5;
struct {Tnodeseq190807* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tlistentry130022  {
  TNimObject Sup;
Tlistentry130022* prev;
Tlistentry130022* next;
};
struct  Tlib190831  {
  Tlistentry130022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj161009* name;
Tnode190813* path;
};
struct TY86345 {
NimStringDesc* Field0;
NI Field1;
};
struct  Exception  {
  TNimObject Sup;
Exception* parent;
NCSTRING name;
NimStringDesc* message;
NimStringDesc* trace;
};
typedef struct {
N_NIMCALL_PTR(NIM_BOOL, ClPrc) (Exception* e, void* ClEnv);
void* ClEnv;
} TY15609;
struct  TSafePoint  {
TSafePoint* prev;
NI status;
jmp_buf context;
NIM_BOOL hasRaiseAction;
TY15609 raiseAction;
};
typedef NimStringDesc* TY164825[4];
typedef NimStringDesc* TY233019[9];
struct  Tidpair190857  {
Tidobj167015* key;
TNimObject* val;
};
struct  Tiipair198270  {
NI key;
NI val;
};
typedef NI TY27420[16];
struct  Tpagedesc46355  {
Tpagedesc46355* next;
NI key;
TY27420 bits;
};
struct  Tbasechunk27438  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Tsmallchunk27440  {
  Tbasechunk27438 Sup;
Tsmallchunk27440* next;
Tsmallchunk27440* prev;
Tfreecell27430* freelist;
NI free;
NI acc;
NF data;
};
struct  Tllchunk28204  {
NI size;
NI acc;
Tllchunk28204* next;
};
struct  Tbigchunk27442  {
  Tbasechunk27438 Sup;
Tbigchunk27442* next;
Tbigchunk27442* prev;
NI align;
NF data;
};
struct  Ttrunk27413  {
Ttrunk27413* next;
NI key;
TY27420 bits;
};
typedef Tavlnode28208* TY28214[2];
struct  Tavlnode28208  {
TY28214 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope190837  {
NI depthlevel;
Tstrtable190817 symbols;
Tnodeseq190807* usingsyms;
Tscope190837* parent;
};
struct  Tident167021  {
  Tidobj167015 Sup;
NimStringDesc* s;
Tident167021* next;
NI h;
};
struct  Ropeobj161009  {
  TNimObject Sup;
Ropeobj161009* left;
Ropeobj161009* right;
NI length;
NimStringDesc* data;
};
struct  Tfreecell27430  {
Tfreecell27430* next;
NI zerofield;
};
struct  Tinstantiation190833  {
Tsym190843* sym;
Ttypeseq190845* concretetypes;
TY190933* usedby;
};
struct Tfilemodulemap234825 {
  TGenericSeq Sup;
  Tfilemodulerec234823 data[SEQ_DECL_SIZE];
};
struct TY190933 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct Tsymseq190815 {
  TGenericSeq Sup;
  Tsym190843* data[SEQ_DECL_SIZE];
};
struct Tidpairseq190859 {
  TGenericSeq Sup;
  Tidpair190857 data[SEQ_DECL_SIZE];
};
struct Tiipairseq198272 {
  TGenericSeq Sup;
  Tiipair198270 data[SEQ_DECL_SIZE];
};
struct Ttypeseq190845 {
  TGenericSeq Sup;
  Ttype190849* data[SEQ_DECL_SIZE];
};
struct TY190944 {
  TGenericSeq Sup;
  Tinstantiation190833* data[SEQ_DECL_SIZE];
};
struct Tnodeseq190807 {
  TGenericSeq Sup;
  Tnode190813* data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP832)(void* p, NI op);
N_NIMCALL(void, TMP833)(void* p, NI op);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_51804)(Tcell46347* c);
static N_INLINE(void, rtladdzct_51404)(Tcell46347* c);
N_NOINLINE(void, addzct_49817)(Tcellseq46363* s, Tcell46347* c);
static N_INLINE(NIM_BOOL, canbecycleroot_49867)(Tcell46347* c);
static N_INLINE(void, rtladdcycleroot_50623)(Tcell46347* c);
N_NOINLINE(void, incl_47065)(Tcellset46359* s, Tcell46347* cell);
static N_INLINE(Tcell46347*, usrtocell_49846)(void* usr);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, initidtable_194057)(Tidtable190861* x);
N_NIMCALL(void, initstrtable_194007)(Tstrtable190817* x);
static N_INLINE(void, Gcdisable_8801)(void);
N_NIMCALL(void, rawloadstub_233083)(Tsym190843* s);
N_NIMCALL(void, internalerror_165218)(NimStringDesc* errmsg);
N_NIMCALL(NI, iitableget_198289)(Tiitable198274 t, NI key);
N_NIMCALL(Tsym190843*, decodesymsafepos_234855)(Trodreader233030* rd, NI offset, Tlineinfo163338 info);
N_NIMCALL(void, internalerror_165199)(Tlineinfo163338 info, NimStringDesc* errmsg);
N_NIMCALL(Tsym190843*, decodesym_233689)(Trodreader233030* r, Tlineinfo163338 info);
N_NIMCALL(NI, decodevint_197351)(NCSTRING s, NI* pos);
static N_INLINE(void, setid_189440)(NI id);
N_NIMCALL(Tident167021*, getident_167463)(NimStringDesc* identifier);
N_NIMCALL(NimStringDesc*, decodestr_197157)(NCSTRING s, NI* pos);
N_NIMCALL(TNimObject*, idtableget_198189)(Tidtable190861 t, NI key);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(void, idtableput_198196)(Tidtable190861* t, Tidobj167015* key, TNimObject* val);
N_NIMCALL(void, registerid_189201)(Tidobj167015* id);
N_NIMCALL(void, genericReset)(void* dest, TNimType* mt);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Ttype190849*, rrgettype_233102)(Trodreader233030* r, NI id, Tlineinfo163338 info);
N_NIMCALL(Ttype190849*, decodetype_233493)(Trodreader233030* r, Tlineinfo163338 info);
N_NIMCALL(Tnode190813*, decodenode_233396)(Trodreader233030* r, Tlineinfo163338 finfo);
N_NIMCALL(Tnode190813*, decodenodelazybody_233243)(Trodreader233030* r, Tlineinfo163338 finfo, Tsym190843* belongsto);
N_NIMCALL(Tnode190813*, newnodei_192351)(NU8 kind, Tlineinfo163338 info);
N_NIMCALL(void, decodelineinfo_233110)(Trodreader233030* r, Tlineinfo163338* info);
N_NIMCALL(Tlineinfo163338, newlineinfo_163867)(NI32 fileinfoidx, NI line, NI col);
N_NIMCALL(NI64, decodevbiggestint_197512)(NCSTRING s, NI* pos);
N_NIMCALL(NF, nsuParseFloat)(NimStringDesc* s);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_NIMCALL(Tsym190843*, rrgetsym_233094)(Trodreader233030* r, NI id, Tlineinfo163338 info);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(void, encodevint_197296)(NI x, NimStringDesc** result);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(Trodreader233030*, getreader_234923)(NI moduleid);
N_NIMCALL(void, addsonnilallowed_194530)(Tnode190813* father, Tnode190813* son);
N_NIMCALL(void, skipnode_233151)(Trodreader233030* r);
N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_NIMCALL(Tlineinfo163338, unknownlineinfo_164027)(void);
N_NIMCALL(void, decodeloc_233407)(Trodreader233030* r, Tloc190827* loc, Tlineinfo163338 info);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(Ropeobj161009*, rope_161320)(NimStringDesc* s);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(void, rawaddson_194478)(Ttype190849* father, Ttype190849* son);
N_NIMCALL(Tlib190831*, decodelib_233641)(Trodreader233030* r, Tlineinfo163338 info);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_52222)(Tcell46347* c);
static N_INLINE(void, Gcenable_8803)(void);
static N_INLINE(NI, getid_189404)(void);
N_NIMCALL(void, loadmaxids_189506)(NimStringDesc* project);
N_NIMCALL(NimStringDesc*, HEX2F_119292)(NimStringDesc* head, NimStringDesc* tail);
N_NIMCALL(NU8, checkdep_235360)(NI32 fileidx);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(NimStringDesc*, tofilename_164266)(NI32 fileidx);
N_NIMCALL(NI32, getcrc_235322)(NI32 fileidx);
N_NIMCALL(NimStringDesc*, HEX24_165306)(TY86345 x);
N_NIMCALL(NI32, crcfromfile_169051)(NimStringDesc* filename);
N_NIMCALL(NimStringDesc*, togeneratedfile_154958)(NimStringDesc* path, NimStringDesc* ext);
N_NIMCALL(NimStringDesc*, withpackagename_154944)(NimStringDesc* path);
N_NIMCALL(Trodreader233030*, newrodreader_234677)(NimStringDesc* modfilename, NI32 crc, NI readerindex);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
N_NIMCALL(Memfile231208, open_231807)(NimStringDesc* filename, NU8 mode, NI mappedsize, NI offset, NI newfilesize);
static N_INLINE(void, popSafePoint)(void);
N_NIMCALL(NIM_BOOL, isObj)(TNimType* obj, TNimType* subclass);
static N_INLINE(Exception*, getCurrentException)(void);
static N_INLINE(void, popCurrentException)(void);
N_NIMCALL(void, reraiseException)(void);
N_NIMCALL(NIM_BOOL, startswith_234648)(NCSTRING buf, NimStringDesc* token, NI pos);
N_NIMCALL(void, initiitable_198282)(Tiitable198274* x);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NIM_BOOL, nosexistsFile)(NimStringDesc* filename);
N_NIMCALL(void, processrodfile_234293)(Trodreader233030* r, NI32 crc);
N_NIMCALL(NimStringDesc*, rdword_234011)(Trodreader233030* r);
N_NIMCALL(NI, hashString)(NimStringDesc* s);
N_NIMCALL(NIM_BOOL, cmdchangetriggersrecompilation_234262)(NU8 old, NU8 new_234265);
N_NIMCALL(NIM_BOOL, isdefined_168167)(Tident167021* symbol);
N_NIMCALL(NI, countdefinedsymbols_168211)(void);
N_NIMCALL(NimStringDesc*, findmodule_155349)(NimStringDesc* modulename, NimStringDesc* currentmodule);
N_NIMCALL(NI32, fileinfoidx_163854)(NimStringDesc* filename);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(NimStringDesc*, tofullpath_164276)(NI32 fileidx);
N_NIMCALL(void, skipsection_233924)(Trodreader233030* r);
N_NIMCALL(void, processindex_234170)(Trodreader233030* r, Tindex233028* idx, FILE* outf);
N_NIMCALL(void, iitableput_198296)(Tiitable198274* t, NI key, NI val);
N_NIMCALL(void, write_13473)(FILE* f, NimStringDesc** a, NI aLen0);
N_NIMCALL(void, rawmessage_164960)(NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
N_NIMCALL(void, close_232248)(Memfile231208* f);
N_NIMCALL(void, processinterf_234071)(Trodreader233030* r, Tsym190843* module);
N_NIMCALL(Tsym190843*, newstub_234048)(Trodreader233030* r, NimStringDesc* name, NI id);
N_NIMCALL(void, strtableadd_198103)(Tstrtable190817* t, Tsym190843* n);
N_NIMCALL(void, processcompilerprocs_234115)(Trodreader233030* r, Tsym190843* module);
N_NIMCALL(void, loadconverters_235258)(Trodreader233030* r);
N_NIMCALL(void, loadmethods_235285)(Trodreader233030* r);
N_NIMCALL(Tnode190813*, newnode_191401)(NU8 kind);
N_NIMCALL(void, addson_192819)(Tnode190813* father, Tnode190813* son);
STRING_LITERAL(TMP964, "loadStub", 8);
STRING_LITERAL(TMP965, "loadStub: invalid key", 21);
STRING_LITERAL(TMP987, "dataIdx == 0", 12);
STRING_LITERAL(TMP988, "decodeSym: no id", 16);
STRING_LITERAL(TMP990, "decodeSym: no ident", 19);
STRING_LITERAL(TMP991, "decodeSym: wrong id", 19);
STRING_LITERAL(TMP992, "rrGetType", 9);
STRING_LITERAL(TMP993, "decodeType: no id", 17);
STRING_LITERAL(TMP995, "", 0);
STRING_LITERAL(TMP996, "decodeNode: nkIdent", 19);
STRING_LITERAL(TMP998, "missing from both indexes: +", 28);
STRING_LITERAL(TMP999, "rrGetSym: no reader found: +", 28);
STRING_LITERAL(TMP1000, "decodeNode: nkSym", 17);
STRING_LITERAL(TMP1001, "decodeNode: \')\' missing", 23);
STRING_LITERAL(TMP1002, "decodeNode: \'(\' missing ", 24);
STRING_LITERAL(TMP1003, "decodeLoc ", 10);
STRING_LITERAL(TMP1004, "decodeType ^(", 13);
STRING_LITERAL(TMP1005, "decodeLib: 1", 12);
STRING_LITERAL(TMP1006, "decodeLib: 2", 12);
STRING_LITERAL(TMP1007, "loadStub: wrong symbol", 22);
STRING_LITERAL(TMP1008, "loadStub: wrong ID", 18);
STRING_LITERAL(TMP1443, "rodread.nim", 11);
NIM_CONST TY86345 TMP1442 = {((NimStringDesc*) &TMP1443),
((NI) 798)}
;
STRING_LITERAL(TMP1444, "rod", 3);
STRING_LITERAL(TMP1446, "NIM:", 4);
STRING_LITERAL(TMP1447, "1215", 4);
STRING_LITERAL(TMP1448, "CRC", 3);
STRING_LITERAL(TMP1449, "ID", 2);
STRING_LITERAL(TMP1450, "ORIGFILE", 8);
STRING_LITERAL(TMP1451, "OPTIONS", 7);
STRING_LITERAL(TMP1452, "GOPTIONS", 8);
STRING_LITERAL(TMP1453, "CMD", 3);
STRING_LITERAL(TMP1454, "DEFINES", 7);
STRING_LITERAL(TMP1455, "FILES", 5);
STRING_LITERAL(TMP1456, "INCLUDES", 8);
STRING_LITERAL(TMP1457, "DEPS", 4);
STRING_LITERAL(TMP1458, "INTERF", 6);
STRING_LITERAL(TMP1459, "COMPILERPROCS", 13);
STRING_LITERAL(TMP1460, "INDEX", 5);
STRING_LITERAL(TMP1461, "IMPORTS", 7);
STRING_LITERAL(TMP1462, "CONVERTERS", 10);
STRING_LITERAL(TMP1463, "METHODS", 7);
STRING_LITERAL(TMP1464, "DATA", 4);
STRING_LITERAL(TMP1465, "INIT", 4);
STRING_LITERAL(TMP1487, "skipSection ", 12);
STRING_LITERAL(TMP1488, " ", 1);
STRING_LITERAL(TMP1489, "\012", 1);
STRING_LITERAL(TMP1490, "invalid section: \'", 18);
STRING_LITERAL(TMP1491, "\' at ", 5);
STRING_LITERAL(TMP1492, " in ", 4);
STRING_LITERAL(TMP1493, "no need to recompile: $1", 24);
STRING_LITERAL(TMP1494, "symbol file for $1 does not exist", 33);
STRING_LITERAL(TMP1495, "symbol file for $1 has the wrong version", 40);
STRING_LITERAL(TMP1496, "file edited since last compilation: $1", 38);
STRING_LITERAL(TMP1497, "list of conditional symbols changed for: $1", 43);
STRING_LITERAL(TMP1498, "list of options changed for: $1", 31);
STRING_LITERAL(TMP1499, "an include file edited: $1", 26);
STRING_LITERAL(TMP1500, "a module $1 depends on has changed", 34);
NIM_CONST TY233019 reasontofrmt_233018 = {((NimStringDesc*) &TMP995),
((NimStringDesc*) &TMP1493),
((NimStringDesc*) &TMP1494),
((NimStringDesc*) &TMP1495),
((NimStringDesc*) &TMP1496),
((NimStringDesc*) &TMP1497),
((NimStringDesc*) &TMP1498),
((NimStringDesc*) &TMP1499),
((NimStringDesc*) &TMP1500)}
;
STRING_LITERAL(TMP1501, "handleSymbolFile", 16);
STRING_LITERAL(TMP1502, "processInterf", 13);
STRING_LITERAL(TMP1503, "processCompilerProcs", 20);
STRING_LITERAL(TMP1504, "importConverters", 16);
STRING_LITERAL(TMP1505, "loadMethods", 11);
STRING_LITERAL(TMP1509, "loadInitSection", 15);
Tstrtable190817 rodcompilerprocs_233066;
Tidtable190861 gtypetable_233089;
Tfilemodulemap234825* gmods_234850;
TNimType NTI234823; /* TFileModuleRec */
extern TNimType NTI149; /* string */
TNimType NTI233005; /* TReasonForRecompile */
extern TNimType NTI3411; /* RootObj */
TNimType NTI233030; /* TRodReader */
extern TNimType NTI108; /* int */
extern TNimType NTI151; /* cstring */
extern TNimType NTI154016; /* TOptions */
extern TNimType NTI190933; /* seq[int32] */
TNimType NTI233028; /* TIndex */
extern TNimType NTI198274; /* TIITable */
extern TNimType NTI190861; /* TIdTable */
extern TNimType NTI231208; /* MemFile */
extern TNimType NTI190815; /* TSymSeq */
extern TNimType NTI138; /* bool */
TNimType NTI233032; /* PRodReader */
extern TNimType NTI169015; /* TCrc32 */
TNimType NTI234825; /* TFileModuleMap */
extern Tgcheap48216 gch_48244;
extern NI gfrontendid_189012;
extern TNimType NTI190811; /* PSym */
extern TNimType NTI190843; /* TSym */
extern TNimType NTI190809; /* PType */
extern TNimType NTI190849; /* TType */
extern TNimType NTI190841; /* PLib */
extern TNimType NTI190831; /* TLib */
extern NU32 gglobaloptions_154128;
extern NimStringDesc* gprojectpath_154235;
extern NimStringDesc* gprojectname_154234;
extern TSafePoint* exchandler_17043;
extern TNimType NTI3433; /* OSError */
extern Exception* currexception_17045;
extern NU32 goptions_154126;
extern NU8 gcmd_154130;
extern NI32 systemfileidx_163433;
extern NI gverbosity_154137;
N_NIMCALL(void, TMP832)(void* p, NI op) {
	Trodreader233030* a;
	a = (Trodreader233030*)p;
	nimGCvisit((void*)(*a).moddeps, op);
	nimGCvisit((void*)(*a).files, op);
	nimGCvisit((void*)(*a).filename, 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).syms.data, op);
	nimGCvisit((void*)(*a).methods, op);
	nimGCvisit((void*)(*a).origfile, op);
}
N_NIMCALL(void, TMP833)(void* p, NI op) {
	Tfilemodulemap234825* a;
	NI LOC1;
	a = (Tfilemodulemap234825*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1].filename, op);
	nimGCvisit((void*)a->data[LOC1].rd, op);
	}
}

static N_INLINE(void, rtladdzct_51404)(Tcell46347* c) {
	addzct_49817((&gch_48244.zct), c);
}

static N_INLINE(NIM_BOOL, canbecycleroot_49867)(Tcell46347* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).typ).flags &(1<<((((NU8) 1))&7)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_50623)(Tcell46347* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_47065((&gch_48244.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, decref_51804)(Tcell46347* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_51404(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_49867(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_50623(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

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

static N_INLINE(void, nimGCunref)(void* p) {
	Tcell46347* LOC1;
	LOC1 = 0;
	LOC1 = usrtocell_49846(p);
	decref_51804(LOC1);
}

static N_INLINE(void, Gcdisable_8801)(void) {
	gch_48244.recgclock += ((NI) 1);
}

static N_INLINE(void, setid_189440)(NI id) {
	gfrontendid_189012 = ((gfrontendid_189012 >= (NI)(id + ((NI) 1))) ? gfrontendid_189012 : (NI)(id + ((NI) 1)));
}

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

N_NIMCALL(void, decodelineinfo_233110)(Trodreader233030* r, Tlineinfo163338* info) {
	{
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(63))) goto LA3;
		(*r).pos += ((NI) 1);
		{
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(44))) goto LA7;
			(*info).col = ((NI16) -1);
		}
		goto LA5;
		LA7: ;
		{
			NI LOC10;
			LOC10 = 0;
			LOC10 = decodevint_197351((*r).s, (&(*r).pos));
			(*info).col = ((NI16) (LOC10));
		}
		LA5: ;
		{
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(44))) goto LA13;
			(*r).pos += ((NI) 1);
			{
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(44))) goto LA17;
				(*info).line = ((NI16) -1);
			}
			goto LA15;
			LA17: ;
			{
				NI LOC20;
				LOC20 = 0;
				LOC20 = decodevint_197351((*r).s, (&(*r).pos));
				(*info).line = ((NI16) (LOC20));
			}
			LA15: ;
			{
				NI LOC25;
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(44))) goto LA23;
				(*r).pos += ((NI) 1);
				LOC25 = 0;
				LOC25 = decodevint_197351((*r).s, (&(*r).pos));
				(*info) = newlineinfo_163867((*r).files->data[LOC25], ((NI) ((*info).line)), ((NI) ((*info).col)));
			}
			LA23: ;
		}
		LA13: ;
	}
	LA3: ;
}

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

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(Trodreader233030*, getreader_234923)(NI moduleid) {
	Trodreader233030* result;
{	result = 0;
	{
		NI i_234953;
		NI HEX3Atmp_234967;
		NI res_234970;
		i_234953 = 0;
		HEX3Atmp_234967 = 0;
		HEX3Atmp_234967 = ((gmods_234850 ? gmods_234850->Sup.len : 0) - 1);
		res_234970 = ((NI) 0);
		{
			while (1) {
				if (!(res_234970 <= HEX3Atmp_234967)) goto LA3;
				i_234953 = res_234970;
				result = gmods_234850->data[i_234953].rd;
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = !((result == NIM_NIL));
					if (!(LOC6)) goto LA7;
					LOC6 = ((*result).moduleid == moduleid);
					LA7: ;
					if (!LOC6) goto LA8;
					goto BeforeRet;
				}
				LA8: ;
				res_234970 += ((NI) 1);
			} LA3: ;
		}
	}
	result = NIM_NIL;
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tsym190843*, rrgetsym_233094)(Trodreader233030* r, NI id, Tlineinfo163338 info) {
	Tsym190843* result;
	TNimObject* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = idtableget_198189((*r).syms, id);
	result = ((Tsym190843*) (LOC1));
	{
		NI d;
		if (!(result == NIM_NIL)) goto LA4;
		d = iitableget_198289((*r).index.tab, id);
		{
			NI moduleid;
			Trodreader233030* rd;
			if (!(d == ((NI) (-2147483647 -1)))) goto LA8;
			moduleid = iitableget_198289((*r).imports.tab, id);
			{
				NimStringDesc* x;
				NimStringDesc* LOC14;
				if (!(moduleid < ((NI) 0))) goto LA12;
				x = copyString(((NimStringDesc*) &TMP995));
				encodevint_197296(id, (&x));
				LOC14 = 0;
				LOC14 = rawNewString(x->Sup.len + 28);
appendString(LOC14, ((NimStringDesc*) &TMP998));
appendString(LOC14, x);
				internalerror_165199(info, LOC14);
			}
			LA12: ;
			rd = getreader_234923(moduleid);
			d = iitableget_198289((*rd).index.tab, id);
			{
				if (!!((d == ((NI) (-2147483647 -1))))) goto LA17;
				result = decodesymsafepos_234855(rd, d, info);
			}
			goto LA15;
			LA17: ;
			{
				NimStringDesc* x;
				NimStringDesc* LOC20;
				x = copyString(((NimStringDesc*) &TMP995));
				encodevint_197296(id, (&x));
				LOC20 = 0;
				LOC20 = rawNewString(x->Sup.len + 28);
appendString(LOC20, ((NimStringDesc*) &TMP999));
appendString(LOC20, x);
				internalerror_165199(info, LOC20);
			}
			LA15: ;
		}
		goto LA6;
		LA8: ;
		{
			result = decodesymsafepos_234855(r, d, info);
		}
		LA6: ;
	}
	LA4: ;
	{
		NIM_BOOL LOC24;
		LOC24 = 0;
		LOC24 = !((result == NIM_NIL));
		if (!(LOC24)) goto LA25;
		LOC24 = ((*result).kind == ((NU8) 23));
		LA25: ;
		if (!LOC24) goto LA26;
		rawloadstub_233083(result);
	}
	LA26: ;
	return result;
}

N_NIMCALL(void, skipnode_233151)(Trodreader233030* r) {
	NI par;
	NI pos;
	par = ((NI) 0);
	pos = (NI)((*r).pos + ((NI) 1));
	{
		while (1) {
			switch (((NU8)((*r).s[pos]))) {
			case 41:
			{
				{
					if (!(par == ((NI) 0))) goto LA6;
					goto LA1;
				}
				LA6: ;
				par -= ((NI) 1);
			}
			break;
			case 40:
			{
				par += ((NI) 1);
			}
			break;
			default:
			{
			}
			break;
			}
			pos += ((NI) 1);
		}
	} LA1: ;
	(*r).pos = (NI)(pos + ((NI) 1));
}

N_NIMCALL(Tnode190813*, decodenodelazybody_233243)(Trodreader233030* r, Tlineinfo163338 finfo, Tsym190843* belongsto) {
	Tnode190813* result;
{	result = 0;
	result = NIM_NIL;
	{
		NI LOC9;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(40))) goto LA3;
		(*r).pos += ((NI) 1);
		{
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(41))) goto LA7;
			(*r).pos += ((NI) 1);
			goto BeforeRet;
		}
		LA7: ;
		LOC9 = 0;
		LOC9 = decodevint_197351((*r).s, (&(*r).pos));
		result = newnodei_192351(((NU8) (LOC9)), finfo);
		decodelineinfo_233110(r, (&(*result).info));
		{
			NI LOC14;
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(36))) goto LA12;
			(*r).pos += ((NI) 1);
			LOC14 = 0;
			LOC14 = decodevint_197351((*r).s, (&(*r).pos));
			(*result).flags = ((NU16) (((NI32) (LOC14))));
		}
		LA12: ;
		{
			NI id;
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(94))) goto LA17;
			(*r).pos += ((NI) 1);
			id = decodevint_197351((*r).s, (&(*r).pos));
			asgnRefNoCycle((void**) (&(*result).typ), rrgettype_233102(r, id, (*result).info));
		}
		LA17: ;
		switch ((*result).kind) {
		case ((NU8) 5) ... ((NU8) 10):
		{
			{
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(33))) goto LA22;
				(*r).pos += ((NI) 1);
				(*result).kindU.S1.intval = decodevbiggestint_197512((*r).s, (&(*r).pos));
			}
			LA22: ;
		}
		break;
		case ((NU8) 16) ... ((NU8) 18):
		{
			{
				NimStringDesc* fl;
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(33))) goto LA27;
				(*r).pos += ((NI) 1);
				fl = decodestr_197157((*r).s, (&(*r).pos));
				(*result).kindU.S2.floatval = nsuParseFloat(fl);
			}
			LA27: ;
		}
		break;
		case ((NU8) 20) ... ((NU8) 22):
		{
			{
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(33))) goto LA32;
				(*r).pos += ((NI) 1);
				asgnRefNoCycle((void**) (&(*result).kindU.S3.strval), decodestr_197157((*r).s, (&(*r).pos)));
			}
			goto LA30;
			LA32: ;
			{
				NimStringDesc* LOC35;
				LOC35 = 0;
				LOC35 = (*result).kindU.S3.strval; (*result).kindU.S3.strval = copyStringRC1(((NimStringDesc*) &TMP995));
				if (LOC35) nimGCunrefNoCycle(LOC35);
			}
			LA30: ;
		}
		break;
		case ((NU8) 2):
		{
			{
				NimStringDesc* fl;
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(33))) goto LA39;
				(*r).pos += ((NI) 1);
				fl = decodestr_197157((*r).s, (&(*r).pos));
				asgnRefNoCycle((void**) (&(*result).kindU.S5.ident), getident_167463(fl));
			}
			goto LA37;
			LA39: ;
			{
				internalerror_165199((*result).info, ((NimStringDesc*) &TMP996));
			}
			LA37: ;
		}
		break;
		case ((NU8) 3):
		{
			{
				NI id;
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(33))) goto LA45;
				(*r).pos += ((NI) 1);
				id = decodevint_197351((*r).s, (&(*r).pos));
				asgnRefNoCycle((void**) (&(*result).kindU.S4.sym), rrgetsym_233094(r, id, (*result).info));
			}
			goto LA43;
			LA45: ;
			{
				internalerror_165199((*result).info, ((NimStringDesc*) &TMP1000));
			}
			LA43: ;
		}
		break;
		default:
		{
			NI i;
			i = ((NI) 0);
			{
				while (1) {
					if (!!(((NU8)((*r).s[(*r).pos]) == (NU8)(41)))) goto LA50;
					{
						NIM_BOOL LOC53;
						LOC53 = 0;
						LOC53 = !((belongsto == NIM_NIL));
						if (!(LOC53)) goto LA54;
						LOC53 = (i == ((NI) 6));
						LA54: ;
						if (!LOC53) goto LA55;
						addsonnilallowed_194530(result, NIM_NIL);
						(*belongsto).offset = (*r).pos;
						skipnode_233151(r);
					}
					goto LA51;
					LA55: ;
					{
						Tnode190813* LOC58;
						LOC58 = 0;
						LOC58 = decodenodelazybody_233243(r, (*result).info, NIM_NIL);
						addsonnilallowed_194530(result, LOC58);
					}
					LA51: ;
					i += ((NI) 1);
				} LA50: ;
			}
		}
		break;
		}
		{
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(41))) goto LA61;
			(*r).pos += ((NI) 1);
		}
		goto LA59;
		LA61: ;
		{
			internalerror_165199((*result).info, ((NimStringDesc*) &TMP1001));
		}
		LA59: ;
	}
	goto LA1;
	LA3: ;
	{
		NimStringDesc* LOC65;
		NimStringDesc* LOC66;
		LOC65 = 0;
		LOC66 = 0;
		LOC66 = nimIntToStr((*r).pos);
		LOC65 = rawNewString(LOC66->Sup.len + 24);
appendString(LOC65, ((NimStringDesc*) &TMP1002));
appendString(LOC65, LOC66);
		internalerror_165199(finfo, LOC65);
	}
	LA1: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode190813*, decodenode_233396)(Trodreader233030* r, Tlineinfo163338 finfo) {
	Tnode190813* result;
	result = 0;
	result = decodenodelazybody_233243(r, finfo, NIM_NIL);
	return result;
}

static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c) {
	(*dest).data[((*dest).Sup.len)- 0] = c;
	(*dest).data[((NI)((*dest).Sup.len + ((NI) 1)))- 0] = 0;
	(*dest).Sup.len += ((NI) 1);
}

N_NIMCALL(void, decodeloc_233407)(Trodreader233030* r, Tloc190827* loc, Tlineinfo163338 info) {
	{
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(60))) goto LA3;
		(*r).pos += ((NI) 1);
		{
			NI LOC9;
			if (!(((NU8)((*r).s[(*r).pos])) >= ((NU8)(48)) && ((NU8)((*r).s[(*r).pos])) <= ((NU8)(57)) || ((NU8)((*r).s[(*r).pos])) >= ((NU8)(97)) && ((NU8)((*r).s[(*r).pos])) <= ((NU8)(122)) || ((NU8)((*r).s[(*r).pos])) >= ((NU8)(65)) && ((NU8)((*r).s[(*r).pos])) <= ((NU8)(90)))) goto LA7;
			LOC9 = 0;
			LOC9 = decodevint_197351((*r).s, (&(*r).pos));
			(*loc).k = ((NU8) (LOC9));
		}
		goto LA5;
		LA7: ;
		{
			(*loc).k = ((NU8) 0);
		}
		LA5: ;
		{
			NI LOC15;
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(42))) goto LA13;
			(*r).pos += ((NI) 1);
			LOC15 = 0;
			LOC15 = decodevint_197351((*r).s, (&(*r).pos));
			(*loc).s = ((NU8) (LOC15));
		}
		goto LA11;
		LA13: ;
		{
			(*loc).s = ((NU8) 0);
		}
		LA11: ;
		{
			NI LOC21;
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(36))) goto LA19;
			(*r).pos += ((NI) 1);
			LOC21 = 0;
			LOC21 = decodevint_197351((*r).s, (&(*r).pos));
			(*loc).flags = ((NU16) (((NI32) (LOC21))));
		}
		goto LA17;
		LA19: ;
		{
			(*loc).flags = 0;
		}
		LA17: ;
		{
			NI LOC27;
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(94))) goto LA25;
			(*r).pos += ((NI) 1);
			LOC27 = 0;
			LOC27 = decodevint_197351((*r).s, (&(*r).pos));
			unsureAsgnRef((void**) (&(*loc).t), rrgettype_233102(r, LOC27, info));
		}
		goto LA23;
		LA25: ;
		{
			unsureAsgnRef((void**) (&(*loc).t), NIM_NIL);
		}
		LA23: ;
		{
			NimStringDesc* LOC33;
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(33))) goto LA31;
			(*r).pos += ((NI) 1);
			LOC33 = 0;
			LOC33 = decodestr_197157((*r).s, (&(*r).pos));
			unsureAsgnRef((void**) (&(*loc).r), rope_161320(LOC33));
		}
		goto LA29;
		LA31: ;
		{
			unsureAsgnRef((void**) (&(*loc).r), NIM_NIL);
		}
		LA29: ;
		{
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(62))) goto LA37;
			(*r).pos += ((NI) 1);
		}
		goto LA35;
		LA37: ;
		{
			NimStringDesc* LOC40;
			LOC40 = 0;
			LOC40 = rawNewString(11);
appendString(LOC40, ((NimStringDesc*) &TMP1003));
appendChar(LOC40, (*r).s[(*r).pos]);
			internalerror_165199(info, LOC40);
		}
		LA35: ;
	}
	LA3: ;
}

N_NIMCALL(Ttype190849*, decodetype_233493)(Trodreader233030* r, Tlineinfo163338 info) {
	Ttype190849* result;
	NI LOC9;
	Tidobj167015* LOC20;
	TNimObject* LOC21;
{	result = 0;
	result = NIM_NIL;
	{
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(91))) goto LA3;
		(*r).pos += ((NI) 1);
		{
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(93))) goto LA7;
			(*r).pos += ((NI) 1);
			goto BeforeRet;
		}
		LA7: ;
	}
	LA3: ;
	result = (Ttype190849*) newObj((&NTI190809), sizeof(Ttype190849));
	(*result).Sup.Sup.m_type = (&NTI190849);
	LOC9 = 0;
	LOC9 = decodevint_197351((*r).s, (&(*r).pos));
	(*result).kind = ((NU8) (LOC9));
	{
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(43))) goto LA12;
		(*r).pos += ((NI) 1);
		(*result).Sup.id = decodevint_197351((*r).s, (&(*r).pos));
		setid_189440((*result).Sup.id);
		{
			Tidobj167015* LOC18;
			if (!NIM_FALSE) goto LA16;
			LOC18 = 0;
			LOC18 = &result->Sup;
			registerid_189201(LOC18);
		}
		LA16: ;
	}
	goto LA10;
	LA12: ;
	{
		internalerror_165199(info, ((NimStringDesc*) &TMP993));
	}
	LA10: ;
	LOC20 = 0;
	LOC20 = &result->Sup;
	LOC21 = 0;
	LOC21 = &result->Sup.Sup;
	idtableput_198196((&gtypetable_233089), LOC20, LOC21);
	{
		Tlineinfo163338 LOC26;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(40))) goto LA24;
		LOC26 = unknownlineinfo_164027();
		asgnRefNoCycle((void**) (&(*result).n), decodenode_233396(r, LOC26));
	}
	LA24: ;
	{
		NI LOC31;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(36))) goto LA29;
		(*r).pos += ((NI) 1);
		LOC31 = 0;
		LOC31 = decodevint_197351((*r).s, (&(*r).pos));
		(*result).flags = ((NU32) (((NI32) (LOC31))));
	}
	LA29: ;
	{
		NI LOC36;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(63))) goto LA34;
		(*r).pos += ((NI) 1);
		LOC36 = 0;
		LOC36 = decodevint_197351((*r).s, (&(*r).pos));
		(*result).callconv = ((NU8) (LOC36));
	}
	LA34: ;
	{
		NI LOC41;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(42))) goto LA39;
		(*r).pos += ((NI) 1);
		LOC41 = 0;
		LOC41 = decodevint_197351((*r).s, (&(*r).pos));
		asgnRefNoCycle((void**) (&(*result).owner), rrgetsym_233094(r, LOC41, info));
	}
	LA39: ;
	{
		NI LOC46;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(38))) goto LA44;
		(*r).pos += ((NI) 1);
		LOC46 = 0;
		LOC46 = decodevint_197351((*r).s, (&(*r).pos));
		asgnRefNoCycle((void**) (&(*result).sym), rrgetsym_233094(r, LOC46, info));
	}
	LA44: ;
	{
		NI LOC51;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(47))) goto LA49;
		(*r).pos += ((NI) 1);
		LOC51 = 0;
		LOC51 = decodevint_197351((*r).s, (&(*r).pos));
		(*result).size = ((NI64) (LOC51));
	}
	goto LA47;
	LA49: ;
	{
		(*result).size = IL64(-1);
	}
	LA47: ;
	{
		NI LOC57;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(61))) goto LA55;
		(*r).pos += ((NI) 1);
		LOC57 = 0;
		LOC57 = decodevint_197351((*r).s, (&(*r).pos));
		(*result).align = ((NI16) (LOC57));
	}
	goto LA53;
	LA55: ;
	{
		(*result).align = ((NI16) 2);
	}
	LA53: ;
	decodeloc_233407(r, (&(*result).loc), info);
	{
		while (1) {
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(94))) goto LA60;
			(*r).pos += ((NI) 1);
			{
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(40))) goto LA63;
				(*r).pos += ((NI) 1);
				{
					if (!((NU8)((*r).s[(*r).pos]) == (NU8)(41))) goto LA67;
					(*r).pos += ((NI) 1);
				}
				goto LA65;
				LA67: ;
				{
					NimStringDesc* LOC70;
					LOC70 = 0;
					LOC70 = rawNewString(14);
appendString(LOC70, ((NimStringDesc*) &TMP1004));
appendChar(LOC70, (*r).s[(*r).pos]);
					internalerror_165199(info, LOC70);
				}
				LA65: ;
				rawaddson_194478(result, NIM_NIL);
			}
			goto LA61;
			LA63: ;
			{
				NI d;
				Ttype190849* LOC72;
				d = decodevint_197351((*r).s, (&(*r).pos));
				LOC72 = 0;
				LOC72 = rrgettype_233102(r, d, info);
				rawaddson_194478(result, LOC72);
			}
			LA61: ;
		} LA60: ;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Ttype190849*, rrgettype_233102)(Trodreader233030* r, NI id, Tlineinfo163338 info) {
	Ttype190849* result;
	TNimObject* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = idtableget_198189(gtypetable_233089, id);
	result = ((Ttype190849*) (LOC1));
	{
		NI oldpos;
		NI d;
		if (!(result == NIM_NIL)) goto LA4;
		oldpos = (*r).pos;
		d = iitableget_198289((*r).index.tab, id);
		{
			if (!(d == ((NI) (-2147483647 -1)))) goto LA8;
			internalerror_165199(info, ((NimStringDesc*) &TMP992));
		}
		LA8: ;
		(*r).pos = (NI)(d + (*r).dataidx);
		result = decodetype_233493(r, info);
		(*r).pos = oldpos;
	}
	LA4: ;
	return result;
}

N_NIMCALL(Tlib190831*, decodelib_233641)(Trodreader233030* r, Tlineinfo163338 info) {
	Tlib190831* result;
	result = 0;
	result = NIM_NIL;
	{
		NI LOC5;
		NimStringDesc* LOC10;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(124))) goto LA3;
		result = (Tlib190831*) newObj((&NTI190841), sizeof(Tlib190831));
		(*result).Sup.Sup.m_type = (&NTI190831);
		(*r).pos += ((NI) 1);
		LOC5 = 0;
		LOC5 = decodevint_197351((*r).s, (&(*r).pos));
		(*result).kind = ((NU8) (LOC5));
		{
			if (!!(((NU8)((*r).s[(*r).pos]) == (NU8)(124)))) goto LA8;
			internalerror_165218(((NimStringDesc*) &TMP1005));
		}
		LA8: ;
		(*r).pos += ((NI) 1);
		LOC10 = 0;
		LOC10 = decodestr_197157((*r).s, (&(*r).pos));
		asgnRefNoCycle((void**) (&(*result).name), rope_161320(LOC10));
		{
			if (!!(((NU8)((*r).s[(*r).pos]) == (NU8)(124)))) goto LA13;
			internalerror_165218(((NimStringDesc*) &TMP1006));
		}
		LA13: ;
		(*r).pos += ((NI) 1);
		asgnRefNoCycle((void**) (&(*result).path), decodenode_233396(r, info));
	}
	LA3: ;
	return result;
}

static N_INLINE(void, incref_52222)(Tcell46347* c) {
	(*c).refcount = (NI)((NU32)((*c).refcount) + (NU32)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_49867(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_50623(c);
	}
	LA4: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Tcell46347* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_49846(src);
		incref_52222(LOC5);
	}
	LA3: ;
	{
		Tcell46347* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_49846((*dest));
		decref_51804(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(Tsym190843*, decodesym_233689)(Trodreader233030* r, Tlineinfo163338 info) {
	Tsym190843* result;
	NI id;
	Tident167021* ident;
	NU8 k;
	NI LOC9;
	TNimObject* LOC21;
{	result = 0;
	id = 0;
	ident = 0;
	result = NIM_NIL;
	{
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(123))) goto LA3;
		(*r).pos += ((NI) 1);
		{
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(125))) goto LA7;
			(*r).pos += ((NI) 1);
			goto BeforeRet;
		}
		LA7: ;
	}
	LA3: ;
	LOC9 = 0;
	LOC9 = decodevint_197351((*r).s, (&(*r).pos));
	k = ((NU8) (LOC9));
	{
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(43))) goto LA12;
		(*r).pos += ((NI) 1);
		id = decodevint_197351((*r).s, (&(*r).pos));
		setid_189440(id);
	}
	goto LA10;
	LA12: ;
	{
		internalerror_165199(info, ((NimStringDesc*) &TMP988));
	}
	LA10: ;
	{
		NimStringDesc* LOC19;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(38))) goto LA17;
		(*r).pos += ((NI) 1);
		LOC19 = 0;
		LOC19 = decodestr_197157((*r).s, (&(*r).pos));
		ident = getident_167463(LOC19);
	}
	goto LA15;
	LA17: ;
	{
		internalerror_165199(info, ((NimStringDesc*) &TMP990));
	}
	LA15: ;
	LOC21 = 0;
	LOC21 = idtableget_198189((*r).syms, id);
	result = ((Tsym190843*) (LOC21));
	{
		Tidobj167015* LOC26;
		TNimObject* LOC27;
		if (!(result == NIM_NIL)) goto LA24;
		result = (Tsym190843*) newObj((&NTI190811), sizeof(Tsym190843));
		(*result).Sup.Sup.m_type = (&NTI190843);
		(*result).Sup.id = id;
		LOC26 = 0;
		LOC26 = &result->Sup;
		LOC27 = 0;
		LOC27 = &result->Sup.Sup;
		idtableput_198196((&(*r).syms), LOC26, LOC27);
		{
			Tidobj167015* LOC32;
			if (!NIM_FALSE) goto LA30;
			LOC32 = 0;
			LOC32 = &result->Sup;
			registerid_189201(LOC32);
		}
		LA30: ;
	}
	goto LA22;
	LA24: ;
	{
		if (!!(((*result).Sup.id == id))) goto LA34;
		internalerror_165199(info, ((NimStringDesc*) &TMP991));
	}
	goto LA22;
	LA34: ;
	{
		NIM_BOOL LOC37;
		LOC37 = 0;
		LOC37 = !(((*result).kind == ((NU8) 23)));
		if (!(LOC37)) goto LA38;
		LOC37 = !((*r).inviewmode);
		LA38: ;
		if (!LOC37) goto LA39;
		goto BeforeRet;
	}
	goto LA22;
	LA39: ;
	{
		genericReset((void*)(&(*result)), (&NTI190843));
		(*result).Sup.id = id;
	}
	LA22: ;
	(*result).kind = k;
	asgnRefNoCycle((void**) (&(*result).name), ident);
	{
		NI LOC46;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(94))) goto LA44;
		(*r).pos += ((NI) 1);
		LOC46 = 0;
		LOC46 = decodevint_197351((*r).s, (&(*r).pos));
		asgnRefNoCycle((void**) (&(*result).typ), rrgettype_233102(r, LOC46, info));
	}
	LA44: ;
	decodelineinfo_233110(r, (&(*result).info));
	{
		NI LOC51;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(42))) goto LA49;
		(*r).pos += ((NI) 1);
		LOC51 = 0;
		LOC51 = decodevint_197351((*r).s, (&(*r).pos));
		asgnRefNoCycle((void**) (&(*result).owner), rrgetsym_233094(r, LOC51, (*result).info));
	}
	LA49: ;
	{
		NI LOC56;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(36))) goto LA54;
		(*r).pos += ((NI) 1);
		LOC56 = 0;
		LOC56 = decodevint_197351((*r).s, (&(*r).pos));
		(*result).flags = ((NU32) (((NI32) (LOC56))));
	}
	LA54: ;
	{
		NI LOC61;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(64))) goto LA59;
		(*r).pos += ((NI) 1);
		LOC61 = 0;
		LOC61 = decodevint_197351((*r).s, (&(*r).pos));
		(*result).magic = ((NU16) (LOC61));
	}
	LA59: ;
	{
		NI LOC66;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(33))) goto LA64;
		(*r).pos += ((NI) 1);
		LOC66 = 0;
		LOC66 = decodevint_197351((*r).s, (&(*r).pos));
		(*result).options = ((NU32) (((NI32) (LOC66))));
	}
	goto LA62;
	LA64: ;
	{
		(*result).options = (*r).options;
	}
	LA62: ;
	{
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(37))) goto LA70;
		(*r).pos += ((NI) 1);
		(*result).position = decodevint_197351((*r).s, (&(*r).pos));
	}
	goto LA68;
	LA70: ;
	{
		if (!!(((520256 &(1<<(((*result).kind)&31)))!=0))) goto LA73;
		(*result).position = ((NI) 0);
	}
	goto LA68;
	LA73: ;
	LA68: ;
	{
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(96))) goto LA77;
		(*r).pos += ((NI) 1);
		(*result).offset = decodevint_197351((*r).s, (&(*r).pos));
	}
	goto LA75;
	LA77: ;
	{
		(*result).offset = ((NI) -1);
	}
	LA75: ;
	decodeloc_233407(r, (&(*result).loc), (*result).info);
	asgnRef((void**) (&(*result).annex), decodelib_233641(r, info));
	{
		Tlineinfo163338 LOC84;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(35))) goto LA82;
		(*r).pos += ((NI) 1);
		LOC84 = unknownlineinfo_164027();
		asgnRefNoCycle((void**) (&(*result).constraint), decodenode_233396(r, LOC84));
	}
	LA82: ;
	{
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(40))) goto LA87;
		{
			if (!((520192 &(1<<(((*result).kind)&31)))!=0)) goto LA91;
			asgnRefNoCycle((void**) (&(*result).ast), decodenodelazybody_233243(r, (*result).info, result));
			(*result).position = (*r).readerindex;
		}
		goto LA89;
		LA91: ;
		{
			asgnRefNoCycle((void**) (&(*result).ast), decodenode_233396(r, (*result).info));
		}
		LA89: ;
	}
	LA87: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tsym190843*, decodesymsafepos_234855)(Trodreader233030* rd, NI offset, Tlineinfo163338 info) {
	Tsym190843* result;
	NI oldpos;
	result = 0;
	{
		if (!((*rd).dataidx == ((NI) 0))) goto LA3;
		internalerror_165199(info, ((NimStringDesc*) &TMP987));
	}
	LA3: ;
	oldpos = (*rd).pos;
	(*rd).pos = (NI)(offset + (*rd).dataidx);
	result = decodesym_233689(rd, info);
	(*rd).pos = oldpos;
	return result;
}

N_NIMCALL(void, rawloadstub_233083)(Tsym190843* s) {
	Trodreader233030* rd;
	NI theid;
	NI d;
	Tsym190843* rs;
	Tlineinfo163338 LOC9;
	{
		if (!!(((*s).kind == ((NU8) 23)))) goto LA3;
		internalerror_165218(((NimStringDesc*) &TMP964));
	}
	LA3: ;
	rd = gmods_234850->data[(*s).position].rd;
	theid = (*s).Sup.id;
	d = iitableget_198289((*rd).index.tab, (*s).Sup.id);
	{
		if (!(d == ((NI) (-2147483647 -1)))) goto LA7;
		internalerror_165218(((NimStringDesc*) &TMP965));
	}
	LA7: ;
	LOC9 = unknownlineinfo_164027();
	rs = decodesymsafepos_234855(rd, d, LOC9);
	{
		if (!!((rs == s))) goto LA12;
		internalerror_165199((*rs).info, ((NimStringDesc*) &TMP1007));
	}
	goto LA10;
	LA12: ;
	{
		if (!!(((*rs).Sup.id == theid))) goto LA15;
		internalerror_165199((*rs).info, ((NimStringDesc*) &TMP1008));
	}
	goto LA10;
	LA15: ;
	LA10: ;
}

static N_INLINE(void, Gcenable_8803)(void) {
	{
		if (!(((NI) 0) < gch_48244.recgclock)) goto LA3;
		gch_48244.recgclock -= ((NI) 1);
	}
	LA3: ;
}

N_NIMCALL(void, loadstub_235639)(Tsym190843* s) {
	Gcdisable_8801();
	rawloadstub_233083(s);
	Gcenable_8803();
}

static N_INLINE(NI, getid_189404)(void) {
	NI result;
	result = 0;
	result = gfrontendid_189012;
	gfrontendid_189012 += ((NI) 1);
	return result;
}

N_NIMCALL(NI32, getcrc_235322)(NI32 fileidx) {
	NI32 result;
	NimStringDesc* LOC12;
{	result = 0;
	{
		NIM_BOOL LOC3;
		NimStringDesc* LOC7;
		LOC3 = 0;
		LOC3 = (((NI32) 0) <= fileidx);
		if (!(LOC3)) goto LA4;
		LOC3 = (((NI) (fileidx)) < (gmods_234850 ? gmods_234850->Sup.len : 0));
		LA4: ;
		if (!!(LOC3)) goto LA5;
		LOC7 = 0;
		LOC7 = HEX24_165306(TMP1442);
		internalerror_165218(LOC7);
	}
	LA5: ;
	{
		if (!gmods_234850->data[fileidx].crcdone) goto LA10;
		result = gmods_234850->data[fileidx].crc;
		goto BeforeRet;
	}
	LA10: ;
	LOC12 = 0;
	LOC12 = tofilename_164266(fileidx);
	result = crcfromfile_169051(LOC12);
	gmods_234850->data[fileidx].crc = result;
	}BeforeRet: ;
	return result;
}

static N_INLINE(void, pushSafePoint)(TSafePoint* s) {
	(*s).hasRaiseAction = NIM_FALSE;
	(*s).prev = exchandler_17043;
	exchandler_17043 = s;
}

static N_INLINE(void, popSafePoint)(void) {
	exchandler_17043 = (*exchandler_17043).prev;
}

static N_INLINE(Exception*, getCurrentException)(void) {
	Exception* result;
	result = 0;
	result = currexception_17045;
	return result;
}

static N_INLINE(void, popCurrentException)(void) {
	asgnRef((void**) (&currexception_17045), (*currexception_17045).parent);
}

N_NIMCALL(NIM_BOOL, startswith_234648)(NCSTRING buf, NimStringDesc* token, NI pos) {
	NIM_BOOL result;
	NI s;
	result = 0;
	s = ((NI) 0);
	{
		while (1) {
			NIM_BOOL LOC3;
			LOC3 = 0;
			LOC3 = (s < (token ? token->Sup.len : 0));
			if (!(LOC3)) goto LA4;
			LOC3 = ((NU8)(buf[(NI)(pos + s)]) == (NU8)(token->data[s]));
			LA4: ;
			if (!LOC3) goto LA2;
			s += ((NI) 1);
		} LA2: ;
	}
	result = (s == (token ? token->Sup.len : 0));
	return result;
}

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

N_NIMCALL(Trodreader233030*, newrodreader_234677)(NimStringDesc* modfilename, NI32 crc, NI readerindex) {
	Trodreader233030* result;
	TSafePoint TMP1445;
	Trodreader233030* r;
	NimStringDesc* LOC4;
{	result = 0;
	result = (Trodreader233030*) newObj((&NTI233032), sizeof(Trodreader233030));
	(*result).Sup.m_type = (&NTI233030);
	pushSafePoint(&TMP1445);
	TMP1445.status = _setjmp(TMP1445.context);
	if (TMP1445.status == 0) {
		(*result).memfile = open_231807(modfilename, ((NU8) 0), ((NI) -1), ((NI) 0), ((NI) -1));
		popSafePoint();
	}
	else {
		popSafePoint();
		if (isObj(getCurrentException()->Sup.m_type, (&NTI3433))) {
			TMP1445.status = 0;
			result = NIM_NIL;
			popCurrentException();
			goto BeforeRet;
			popCurrentException();
		}
	}
	if (TMP1445.status != 0) reraiseException();
	if ((*result).files) nimGCunrefNoCycle((*result).files);
	(*result).files = (TY190933*) newSeqRC1((&NTI190933), 0);
	if ((*result).moddeps) nimGCunrefNoCycle((*result).moddeps);
	(*result).moddeps = (TY190933*) newSeqRC1((&NTI190933), 0);
	if ((*result).methods) nimGCunrefNoCycle((*result).methods);
	(*result).methods = (Tsymseq190815*) newSeqRC1((&NTI190815), 0);
	r = result;
	(*r).reason = ((NU8) 1);
	(*r).pos = ((NI) 0);
	(*r).line = ((NI) 1);
	(*r).readerindex = readerindex;
	LOC4 = 0;
	LOC4 = (*r).filename; (*r).filename = copyStringRC1(modfilename);
	if (LOC4) nimGCunrefNoCycle(LOC4);
	initidtable_194057((&(*r).syms));
	(*r).s = ((NCSTRING) ((*r).memfile.mem));
	{
		NIM_BOOL LOC7;
		NimStringDesc* version;
		LOC7 = 0;
		LOC7 = startswith_234648((*r).s, ((NimStringDesc*) &TMP1446), ((NI) 0));
		if (!LOC7) goto LA8;
		initiitable_198282((&(*r).index.tab));
		initiitable_198282((&(*r).imports.tab));
		(*r).pos += ((NI) 4);
		version = copyString(((NimStringDesc*) &TMP995));
		{
			while (1) {
				if (!!((((NU8)((*r).s[(*r).pos])) == ((NU8)(0)) || ((NU8)((*r).s[(*r).pos])) == ((NU8)(10))))) goto LA11;
				version = addChar(version, (*r).s[(*r).pos]);
				(*r).pos += ((NI) 1);
			} LA11: ;
		}
		{
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(10))) goto LA14;
			(*r).pos += ((NI) 1);
		}
		LA14: ;
		{
			if (!!(eqStrings(version, ((NimStringDesc*) &TMP1447)))) goto LA18;
			result = NIM_NIL;
		}
		LA18: ;
	}
	goto LA5;
	LA8: ;
	{
		result = NIM_NIL;
	}
	LA5: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NimStringDesc*, rdword_234011)(Trodreader233030* r) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP995));
	{
		while (1) {
			if (!(((NU8)((*r).s[(*r).pos])) >= ((NU8)(65)) && ((NU8)((*r).s[(*r).pos])) <= ((NU8)(90)) || ((NU8)((*r).s[(*r).pos])) == ((NU8)(95)) || ((NU8)((*r).s[(*r).pos])) >= ((NU8)(97)) && ((NU8)((*r).s[(*r).pos])) <= ((NU8)(122)) || ((NU8)((*r).s[(*r).pos])) >= ((NU8)(48)) && ((NU8)((*r).s[(*r).pos])) <= ((NU8)(57)))) goto LA2;
			result = addChar(result, (*r).s[(*r).pos]);
			(*r).pos += ((NI) 1);
		} LA2: ;
	}
	return result;
}

N_NIMCALL(NIM_BOOL, cmdchangetriggersrecompilation_234262)(NU8 old, NU8 new_234265) {
	NIM_BOOL result;
{	result = 0;
	{
		if (!(old == new_234265)) goto LA3;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA3: ;
	switch (old) {
	case ((NU8) 1):
	case ((NU8) 2):
	case ((NU8) 3):
	case ((NU8) 4):
	case ((NU8) 5):
	{
		{
			if (!((313728 &(1<<((new_234265)&31)))!=0)) goto LA8;
			result = NIM_FALSE;
			goto BeforeRet;
		}
		LA8: ;
	}
	break;
	case ((NU8) 0):
	case ((NU8) 8):
	case ((NU8) 6):
	case ((NU8) 7):
	case ((NU8) 9):
	case ((NU8) 10):
	case ((NU8) 11):
	case ((NU8) 12):
	case ((NU8) 13):
	case ((NU8) 14):
	case ((NU8) 15):
	case ((NU8) 16):
	case ((NU8) 17):
	case ((NU8) 18):
	case ((NU8) 19):
	{
	}
	break;
	}
	result = NIM_TRUE;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, skipsection_233924)(Trodreader233030* r) {
	{
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(58))) goto LA3;
		{
			while (1) {
				if (!((NU8)(10) < (NU8)((*r).s[(*r).pos]))) goto LA6;
				(*r).pos += ((NI) 1);
			} LA6: ;
		}
	}
	goto LA1;
	LA3: ;
	{
		NI c;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(40))) goto LA8;
		c = ((NI) 0);
		(*r).pos += ((NI) 1);
		{
			while (1) {
				switch (((NU8)((*r).s[(*r).pos]))) {
				case 10:
				{
					(*r).line += ((NI) 1);
				}
				break;
				case 40:
				{
					c += ((NI) 1);
				}
				break;
				case 41:
				{
					{
						if (!(c == ((NI) 0))) goto LA17;
						(*r).pos += ((NI) 1);
						goto LA10;
					}
					goto LA15;
					LA17: ;
					{
						if (!(((NI) 0) < c)) goto LA20;
						c -= ((NI) 1);
					}
					goto LA15;
					LA20: ;
					LA15: ;
				}
				break;
				case 0:
				{
					goto LA10;
				}
				break;
				default:
				{
				}
				break;
				}
				(*r).pos += ((NI) 1);
			}
		} LA10: ;
	}
	goto LA1;
	LA8: ;
	{
		NimStringDesc* LOC25;
		NimStringDesc* LOC26;
		LOC25 = 0;
		LOC26 = 0;
		LOC26 = nimIntToStr((*r).line);
		LOC25 = rawNewString(LOC26->Sup.len + 12);
appendString(LOC25, ((NimStringDesc*) &TMP1487));
appendString(LOC25, LOC26);
		internalerror_165218(LOC25);
	}
	LA1: ;
}

N_NIMCALL(void, processindex_234170)(Trodreader233030* r, Tindex233028* idx, FILE* outf) {
	NI key;
	NI val;
	NI tmp;
	key = 0;
	val = 0;
	tmp = 0;
	(*r).pos += ((NI) 2);
	(*r).line += ((NI) 1);
	{
		while (1) {
			NIM_BOOL LOC3;
			LOC3 = 0;
			LOC3 = ((NU8)(10) < (NU8)((*r).s[(*r).pos]));
			if (!(LOC3)) goto LA4;
			LOC3 = !(((NU8)((*r).s[(*r).pos]) == (NU8)(41)));
			LA4: ;
			if (!LOC3) goto LA2;
			tmp = decodevint_197351((*r).s, (&(*r).pos));
			{
				NI LOC9;
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(32))) goto LA7;
				(*r).pos += ((NI) 1);
				key = (NI)((*idx).lastidxkey + tmp);
				LOC9 = 0;
				LOC9 = decodevint_197351((*r).s, (&(*r).pos));
				val = (NI)(LOC9 + (*idx).lastidxval);
			}
			goto LA5;
			LA7: ;
			{
				key = (NI)((*idx).lastidxkey + ((NI) 1));
				val = (NI)(tmp + (*idx).lastidxval);
			}
			LA5: ;
			iitableput_198296((&(*idx).tab), key, val);
			{
				TY164825 LOC15;
				if (!!(outf == 0)) goto LA13;
				memset((void*)LOC15, 0, sizeof(LOC15));
				LOC15[0] = nimIntToStr(key);
				LOC15[1] = copyString(((NimStringDesc*) &TMP1488));
				LOC15[2] = nimIntToStr(val);
				LOC15[3] = copyString(((NimStringDesc*) &TMP1489));
				write_13473(outf, LOC15, 4);
			}
			LA13: ;
			(*idx).lastidxkey = key;
			(*idx).lastidxval = val;
			setid_189440(key);
			{
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(10))) goto LA18;
				(*r).pos += ((NI) 1);
				(*r).line += ((NI) 1);
			}
			LA18: ;
		} LA2: ;
	}
	{
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(41))) goto LA22;
		(*r).pos += ((NI) 1);
	}
	LA22: ;
}

N_NIMCALL(void, processrodfile_234293)(Trodreader233030* r, NI32 crc) {
	NimStringDesc* w;
	NI d;
	NI inclcrc;
	w = 0;
	d = 0;
	inclcrc = 0;
	{
		while (1) {
			NimStringDesc* section;
			if (!!(((NU8)((*r).s[(*r).pos]) == (NU8)(0)))) goto LA2;
			section = rdword_234011(r);
			{
				if (!!(((*r).reason == ((NU8) 1)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			switch (hashString(section) & 31) {
			case 0: 
if (eqStrings(section, ((NimStringDesc*) &TMP1449))) goto LA8;
if (eqStrings(section, ((NimStringDesc*) &TMP1456))) goto LA15;
break;
			case 9: 
if (eqStrings(section, ((NimStringDesc*) &TMP1450))) goto LA9;
if (eqStrings(section, ((NimStringDesc*) &TMP1460))) goto LA19;
break;
			case 10: 
if (eqStrings(section, ((NimStringDesc*) &TMP1451))) goto LA10;
if (eqStrings(section, ((NimStringDesc*) &TMP1453))) goto LA12;
if (eqStrings(section, ((NimStringDesc*) &TMP1463))) goto LA22;
break;
			case 11: 
if (eqStrings(section, ((NimStringDesc*) &TMP1448))) goto LA7;
break;
			case 12: 
if (eqStrings(section, ((NimStringDesc*) &TMP1465))) goto LA24;
break;
			case 13: 
if (eqStrings(section, ((NimStringDesc*) &TMP1454))) goto LA13;
if (eqStrings(section, ((NimStringDesc*) &TMP1464))) goto LA23;
break;
			case 17: 
if (eqStrings(section, ((NimStringDesc*) &TMP1455))) goto LA14;
break;
			case 25: 
if (eqStrings(section, ((NimStringDesc*) &TMP1452))) goto LA11;
if (eqStrings(section, ((NimStringDesc*) &TMP1462))) goto LA21;
break;
			case 26: 
if (eqStrings(section, ((NimStringDesc*) &TMP1458))) goto LA17;
break;
			case 28: 
if (eqStrings(section, ((NimStringDesc*) &TMP1457))) goto LA16;
break;
			case 29: 
if (eqStrings(section, ((NimStringDesc*) &TMP1461))) goto LA20;
break;
			case 30: 
if (eqStrings(section, ((NimStringDesc*) &TMP1459))) goto LA18;
break;
			}
			goto LA25;
			LA7: ;
			{
				(*r).pos += ((NI) 1);
				{
					NI LOC30;
					LOC30 = 0;
					LOC30 = decodevint_197351((*r).s, (&(*r).pos));
					if (!!((((NI) (crc)) == LOC30))) goto LA31;
					(*r).reason = ((NU8) 4);
				}
				LA31: ;
			}
			goto LA26;
			LA8: ;
			{
				(*r).pos += ((NI) 1);
				(*r).moduleid = decodevint_197351((*r).s, (&(*r).pos));
				setid_189440((*r).moduleid);
			}
			goto LA26;
			LA9: ;
			{
				(*r).pos += ((NI) 1);
				asgnRefNoCycle((void**) (&(*r).origfile), decodestr_197157((*r).s, (&(*r).pos)));
			}
			goto LA26;
			LA10: ;
			{
				NI LOC36;
				(*r).pos += ((NI) 1);
				LOC36 = 0;
				LOC36 = decodevint_197351((*r).s, (&(*r).pos));
				(*r).options = ((NU32) (((NI32) (LOC36))));
				{
					if (!!((goptions_154126 == (*r).options))) goto LA39;
					(*r).reason = ((NU8) 6);
				}
				LA39: ;
			}
			goto LA26;
			LA11: ;
			{
				NU32 dep;
				NI LOC42;
				(*r).pos += ((NI) 1);
				LOC42 = 0;
				LOC42 = decodevint_197351((*r).s, (&(*r).pos));
				dep = ((NU32) (((NI32) (LOC42))));
				{
					if (!!((gglobaloptions_154128 == dep))) goto LA45;
					(*r).reason = ((NU8) 6);
				}
				LA45: ;
			}
			goto LA26;
			LA12: ;
			{
				NU8 dep;
				NI LOC48;
				(*r).pos += ((NI) 1);
				LOC48 = 0;
				LOC48 = decodevint_197351((*r).s, (&(*r).pos));
				dep = ((NU8) (((NI32) (LOC48))));
				{
					NIM_BOOL LOC51;
					LOC51 = 0;
					LOC51 = cmdchangetriggersrecompilation_234262(dep, gcmd_154130);
					if (!LOC51) goto LA52;
					(*r).reason = ((NU8) 6);
				}
				LA52: ;
			}
			goto LA26;
			LA13: ;
			{
				(*r).pos += ((NI) 1);
				d = ((NI) 0);
				{
					while (1) {
						if (!((NU8)(10) < (NU8)((*r).s[(*r).pos]))) goto LA56;
						w = decodestr_197157((*r).s, (&(*r).pos));
						d += ((NI) 1);
						{
							Tident167021* LOC59;
							NIM_BOOL LOC60;
							LOC59 = 0;
							LOC59 = getident_167463(w);
							LOC60 = 0;
							LOC60 = isdefined_168167(LOC59);
							if (!!(LOC60)) goto LA61;
							(*r).reason = ((NU8) 5);
						}
						LA61: ;
						{
							if (!((NU8)((*r).s[(*r).pos]) == (NU8)(32))) goto LA65;
							(*r).pos += ((NI) 1);
						}
						LA65: ;
					} LA56: ;
				}
				{
					NI LOC69;
					LOC69 = 0;
					LOC69 = countdefinedsymbols_168211();
					if (!!((d == LOC69))) goto LA70;
					(*r).reason = ((NU8) 5);
				}
				LA70: ;
			}
			goto LA26;
			LA14: ;
			{
				(*r).pos += ((NI) 2);
				(*r).line += ((NI) 1);
				{
					while (1) {
						NimStringDesc* relativepath;
						NimStringDesc* resolvedpath;
						NimStringDesc* finalpath;
						NI32 LOC80;
						if (!!(((NU8)((*r).s[(*r).pos]) == (NU8)(41)))) goto LA74;
						relativepath = decodestr_197157((*r).s, (&(*r).pos));
						resolvedpath = findmodule_155349(relativepath, (*r).origfile);
						{
							if (!(((NI) 0) < (resolvedpath ? resolvedpath->Sup.len : 0))) goto LA77;
							finalpath = resolvedpath;
						}
						goto LA75;
						LA77: ;
						{
							finalpath = relativepath;
						}
						LA75: ;
						LOC80 = 0;
						LOC80 = fileinfoidx_163854(finalpath);
						(*r).files = (TY190933*) incrSeq(&((*r).files)->Sup, sizeof(NI32));
						(*r).files->data[(*r).files->Sup.len-1] = LOC80;
						(*r).pos += ((NI) 1);
						(*r).line += ((NI) 1);
					} LA74: ;
				}
				{
					if (!((NU8)((*r).s[(*r).pos]) == (NU8)(41))) goto LA83;
					(*r).pos += ((NI) 1);
				}
				LA83: ;
			}
			goto LA26;
			LA15: ;
			{
				(*r).pos += ((NI) 2);
				(*r).line += ((NI) 1);
				{
					while (1) {
						NI LOC88;
						if (!!(((NU8)((*r).s[(*r).pos]) == (NU8)(41)))) goto LA87;
						LOC88 = 0;
						LOC88 = decodevint_197351((*r).s, (&(*r).pos));
						w = tofullpath_164276((*r).files->data[LOC88]);
						(*r).pos += ((NI) 1);
						inclcrc = decodevint_197351((*r).s, (&(*r).pos));
						{
							if (!((*r).reason == ((NU8) 1))) goto LA91;
							{
								NIM_BOOL LOC95;
								NIM_BOOL LOC96;
								NI32 LOC98;
								LOC95 = 0;
								LOC96 = 0;
								LOC96 = nosexistsFile(w);
								LOC95 = !(LOC96);
								if (LOC95) goto LA97;
								LOC98 = 0;
								LOC98 = crcfromfile_169051(w);
								LOC95 = !((inclcrc == ((NI) (LOC98))));
								LA97: ;
								if (!LOC95) goto LA99;
								(*r).reason = ((NU8) 7);
							}
							LA99: ;
						}
						LA91: ;
						{
							if (!((NU8)((*r).s[(*r).pos]) == (NU8)(10))) goto LA103;
							(*r).pos += ((NI) 1);
							(*r).line += ((NI) 1);
						}
						LA103: ;
					} LA87: ;
				}
				{
					if (!((NU8)((*r).s[(*r).pos]) == (NU8)(41))) goto LA107;
					(*r).pos += ((NI) 1);
				}
				LA107: ;
			}
			goto LA26;
			LA16: ;
			{
				(*r).pos += ((NI) 1);
				{
					while (1) {
						NI LOC112;
						if (!((NU8)(10) < (NU8)((*r).s[(*r).pos]))) goto LA111;
						LOC112 = 0;
						LOC112 = decodevint_197351((*r).s, (&(*r).pos));
						(*r).moddeps = (TY190933*) incrSeq(&((*r).moddeps)->Sup, sizeof(NI32));
						(*r).moddeps->data[(*r).moddeps->Sup.len-1] = (*r).files->data[((NI32) (LOC112))];
						{
							if (!((NU8)((*r).s[(*r).pos]) == (NU8)(32))) goto LA115;
							(*r).pos += ((NI) 1);
						}
						LA115: ;
					} LA111: ;
				}
			}
			goto LA26;
			LA17: ;
			{
				(*r).interfidx = (NI)((*r).pos + ((NI) 2));
				skipsection_233924(r);
			}
			goto LA26;
			LA18: ;
			{
				(*r).compilerprocsidx = (NI)((*r).pos + ((NI) 2));
				skipsection_233924(r);
			}
			goto LA26;
			LA19: ;
			{
				processindex_234170(r, (&(*r).index), NIM_NIL);
			}
			goto LA26;
			LA20: ;
			{
				processindex_234170(r, (&(*r).imports), NIM_NIL);
			}
			goto LA26;
			LA21: ;
			{
				(*r).convertersidx = (NI)((*r).pos + ((NI) 1));
				skipsection_233924(r);
			}
			goto LA26;
			LA22: ;
			{
				(*r).methodsidx = (NI)((*r).pos + ((NI) 1));
				skipsection_233924(r);
			}
			goto LA26;
			LA23: ;
			{
				(*r).dataidx = (NI)((*r).pos + ((NI) 2));
				goto LA1;
			}
			goto LA26;
			LA24: ;
			{
				(*r).initidx = (NI)((*r).pos + ((NI) 2));
				skipsection_233924(r);
			}
			goto LA26;
			LA25: ;
			{
				NimStringDesc* LOC126;
				NimStringDesc* LOC127;
				LOC126 = 0;
				LOC127 = 0;
				LOC127 = nimIntToStr((*r).line);
				LOC126 = rawNewString(section->Sup.len + LOC127->Sup.len + (*r).filename->Sup.len + 27);
appendString(LOC126, ((NimStringDesc*) &TMP1490));
appendString(LOC126, section);
appendString(LOC126, ((NimStringDesc*) &TMP1491));
appendString(LOC126, LOC127);
appendString(LOC126, ((NimStringDesc*) &TMP1492));
appendString(LOC126, (*r).filename);
				internalerror_165218(LOC126);
				skipsection_233924(r);
			}
			LA26: ;
			{
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(10))) goto LA130;
				(*r).pos += ((NI) 1);
				(*r).line += ((NI) 1);
			}
			LA130: ;
		} LA2: ;
	} LA1: ;
}

N_NIMCALL(NU8, checkdep_235360)(NI32 fileidx) {
	NU8 result;
	NimStringDesc* filename;
	NI32 crc;
	Trodreader233030* r;
	NimStringDesc* rodfile;
	NimStringDesc* LOC9;
{	result = 0;
	{
		if (!((gmods_234850 ? gmods_234850->Sup.len : 0) <= ((NI) (fileidx)))) goto LA3;
		gmods_234850 = (Tfilemodulemap234825*) setLengthSeq(&(gmods_234850)->Sup, sizeof(Tfilemodulerec234823), ((NI) ((NI32)(fileidx + ((NI32) 1)))));
	}
	LA3: ;
	{
		if (!!((gmods_234850->data[fileidx].reason == ((NU8) 0)))) goto LA7;
		result = gmods_234850->data[fileidx].reason;
		goto BeforeRet;
	}
	LA7: ;
	filename = tofilename_164266(fileidx);
	crc = getcrc_235322(fileidx);
	gmods_234850->data[fileidx].reason = ((NU8) 1);
	result = ((NU8) 1);
	r = NIM_NIL;
	LOC9 = 0;
	LOC9 = withpackagename_154944(filename);
	rodfile = togeneratedfile_154958(LOC9, ((NimStringDesc*) &TMP1444));
	r = newrodreader_234677(rodfile, crc, ((NI) (fileidx)));
	{
		if (!(r == NIM_NIL)) goto LA12;
		{
			NIM_BOOL LOC16;
			LOC16 = 0;
			LOC16 = nosexistsFile(rodfile);
			if (!LOC16) goto LA17;
			result = ((NU8) 3);
		}
		goto LA14;
		LA17: ;
		{
			result = ((NU8) 2);
		}
		LA14: ;
	}
	goto LA10;
	LA12: ;
	{
		processrodfile_234293(r, crc);
		result = (*r).reason;
		{
			NU8 res;
			if (!(result == ((NU8) 1))) goto LA23;
			res = checkdep_235360(systemfileidx_163433);
			{
				if (!!((res == ((NU8) 1)))) goto LA27;
				result = ((NU8) 8);
			}
			LA27: ;
			{
				NI i_235475;
				NI HEX3Atmp_235528;
				NI res_235531;
				i_235475 = 0;
				HEX3Atmp_235528 = 0;
				HEX3Atmp_235528 = ((*r).moddeps ? ((*r).moddeps->Sup.len-1) : -1);
				res_235531 = ((NI) 0);
				{
					while (1) {
						if (!(res_235531 <= HEX3Atmp_235528)) goto LA31;
						i_235475 = res_235531;
						res = checkdep_235360((*r).moddeps->data[i_235475]);
						{
							if (!!((res == ((NU8) 1)))) goto LA34;
							result = ((NU8) 8);
						}
						LA34: ;
						res_235531 += ((NI) 1);
					} LA31: ;
				}
			}
		}
		LA23: ;
	}
	LA10: ;
	{
		NIM_BOOL LOC38;
		NimStringDesc* LOC42;
		LOC38 = 0;
		LOC38 = !((result == ((NU8) 1)));
		if (!(LOC38)) goto LA39;
		LOC38 = (((NI) 0) < gverbosity_154137);
		LA39: ;
		if (!LOC38) goto LA40;
		LOC42 = 0;
		LOC42 = nsuFormatSingleElem(reasontofrmt_233018[(result)- 0], filename);
		rawmessage_164960(((NU16) 269), LOC42);
	}
	LA40: ;
	{
		NIM_BOOL LOC45;
		LOC45 = 0;
		LOC45 = !((result == ((NU8) 1)));
		if (LOC45) goto LA46;
		LOC45 = ((gglobaloptions_154128 &(1<<((((NU8) 1))&31)))!=0);
		LA46: ;
		if (!LOC45) goto LA47;
		{
			if (!!((r == NIM_NIL))) goto LA51;
			close_232248((&(*r).memfile));
		}
		LA51: ;
		r = NIM_NIL;
	}
	LA47: ;
	asgnRef((void**) (&gmods_234850->data[fileidx].rd), r);
	gmods_234850->data[fileidx].reason = result;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tsym190843*, newstub_234048)(Trodreader233030* r, NimStringDesc* name, NI id) {
	Tsym190843* result;
	result = 0;
	result = (Tsym190843*) newObj((&NTI190811), sizeof(Tsym190843));
	(*result).Sup.Sup.m_type = (&NTI190843);
	(*result).kind = ((NU8) 23);
	(*result).Sup.id = id;
	asgnRefNoCycle((void**) (&(*result).name), getident_167463(name));
	(*result).position = (*r).readerindex;
	setid_189440(id);
	{
		Tidobj167015* LOC5;
		if (!NIM_FALSE) goto LA3;
		LOC5 = 0;
		LOC5 = &result->Sup;
		registerid_189201(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, processinterf_234071)(Trodreader233030* r, Tsym190843* module) {
	{
		if (!((*r).interfidx == ((NI) 0))) goto LA3;
		internalerror_165218(((NimStringDesc*) &TMP1502));
	}
	LA3: ;
	(*r).pos = (*r).interfidx;
	{
		while (1) {
			NIM_BOOL LOC7;
			NimStringDesc* w;
			NI key;
			Tsym190843* s;
			Tidobj167015* LOC9;
			TNimObject* LOC10;
			LOC7 = 0;
			LOC7 = ((NU8)(10) < (NU8)((*r).s[(*r).pos]));
			if (!(LOC7)) goto LA8;
			LOC7 = !(((NU8)((*r).s[(*r).pos]) == (NU8)(41)));
			LA8: ;
			if (!LOC7) goto LA6;
			w = decodestr_197157((*r).s, (&(*r).pos));
			(*r).pos += ((NI) 1);
			key = decodevint_197351((*r).s, (&(*r).pos));
			(*r).pos += ((NI) 1);
			s = newstub_234048(r, w, key);
			asgnRefNoCycle((void**) (&(*s).owner), module);
			strtableadd_198103((&(*module).kindU.S3.tab), s);
			LOC9 = 0;
			LOC9 = &s->Sup;
			LOC10 = 0;
			LOC10 = &s->Sup.Sup;
			idtableput_198196((&(*r).syms), LOC9, LOC10);
		} LA6: ;
	}
}

N_NIMCALL(void, processcompilerprocs_234115)(Trodreader233030* r, Tsym190843* module) {
	{
		if (!((*r).compilerprocsidx == ((NI) 0))) goto LA3;
		internalerror_165218(((NimStringDesc*) &TMP1503));
	}
	LA3: ;
	(*r).pos = (*r).compilerprocsidx;
	{
		while (1) {
			NIM_BOOL LOC7;
			NimStringDesc* w;
			NI key;
			Tsym190843* s;
			TNimObject* LOC9;
			LOC7 = 0;
			LOC7 = ((NU8)(10) < (NU8)((*r).s[(*r).pos]));
			if (!(LOC7)) goto LA8;
			LOC7 = !(((NU8)((*r).s[(*r).pos]) == (NU8)(41)));
			LA8: ;
			if (!LOC7) goto LA6;
			w = decodestr_197157((*r).s, (&(*r).pos));
			(*r).pos += ((NI) 1);
			key = decodevint_197351((*r).s, (&(*r).pos));
			(*r).pos += ((NI) 1);
			LOC9 = 0;
			LOC9 = idtableget_198189((*r).syms, key);
			s = ((Tsym190843*) (LOC9));
			{
				Tidobj167015* LOC14;
				TNimObject* LOC15;
				if (!(s == NIM_NIL)) goto LA12;
				s = newstub_234048(r, w, key);
				asgnRefNoCycle((void**) (&(*s).owner), module);
				LOC14 = 0;
				LOC14 = &s->Sup;
				LOC15 = 0;
				LOC15 = &s->Sup.Sup;
				idtableput_198196((&(*r).syms), LOC14, LOC15);
			}
			LA12: ;
			strtableadd_198103((&rodcompilerprocs_233066), s);
		} LA6: ;
	}
}

N_NIMCALL(void, loadconverters_235258)(Trodreader233030* r) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*r).convertersidx == ((NI) 0));
		if (LOC3) goto LA4;
		LOC3 = ((*r).dataidx == ((NI) 0));
		LA4: ;
		if (!LOC3) goto LA5;
		internalerror_165218(((NimStringDesc*) &TMP1504));
	}
	LA5: ;
	(*r).pos = (*r).convertersidx;
	{
		while (1) {
			NI d;
			Tlineinfo163338 LOC9;
			Tsym190843* LOC10;
			if (!((NU8)(10) < (NU8)((*r).s[(*r).pos]))) goto LA8;
			d = decodevint_197351((*r).s, (&(*r).pos));
			LOC9 = unknownlineinfo_164027();
			LOC10 = 0;
			LOC10 = rrgetsym_233094(r, d, LOC9);
			{
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(32))) goto LA13;
				(*r).pos += ((NI) 1);
			}
			LA13: ;
		} LA8: ;
	}
}

N_NIMCALL(void, loadmethods_235285)(Trodreader233030* r) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*r).methodsidx == ((NI) 0));
		if (LOC3) goto LA4;
		LOC3 = ((*r).dataidx == ((NI) 0));
		LA4: ;
		if (!LOC3) goto LA5;
		internalerror_165218(((NimStringDesc*) &TMP1505));
	}
	LA5: ;
	(*r).pos = (*r).methodsidx;
	{
		while (1) {
			NI d;
			Tlineinfo163338 LOC9;
			Tsym190843* LOC10;
			if (!((NU8)(10) < (NU8)((*r).s[(*r).pos]))) goto LA8;
			d = decodevint_197351((*r).s, (&(*r).pos));
			LOC9 = unknownlineinfo_164027();
			LOC10 = 0;
			LOC10 = rrgetsym_233094(r, d, LOC9);
			(*r).methods = (Tsymseq190815*) incrSeq(&((*r).methods)->Sup, sizeof(Tsym190843*));
			asgnRefNoCycle((void**) (&(*r).methods->data[(*r).methods->Sup.len-1]), LOC10);
			{
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(32))) goto LA13;
				(*r).pos += ((NI) 1);
			}
			LA13: ;
		} LA8: ;
	}
}

N_NIMCALL(Trodreader233030*, handlesymbolfile_233071)(Tsym190843* module) {
	Trodreader233030* result;
	NI32 fileidx;
	NimStringDesc* LOC5;
	NU8 LOC6;
{	result = 0;
	fileidx = ((NI32) ((*module).position));
	{
		if (!!(((gglobaloptions_154128 &(1<<((((NU8) 14))&31)))!=0))) goto LA3;
		(*module).Sup.id = getid_189404();
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = HEX2F_119292(gprojectpath_154235, gprojectname_154234);
	loadmaxids_189506(LOC5);
	LOC6 = 0;
	LOC6 = checkdep_235360(fileidx);
	{
		if (!(gmods_234850->data[fileidx].reason == ((NU8) 0))) goto LA9;
		internalerror_165218(((NimStringDesc*) &TMP1501));
	}
	LA9: ;
	result = gmods_234850->data[fileidx].rd;
	{
		Tidobj167015* LOC15;
		TNimObject* LOC16;
		if (!!((result == NIM_NIL))) goto LA13;
		(*module).Sup.id = (*result).moduleid;
		LOC15 = 0;
		LOC15 = &module->Sup;
		LOC16 = 0;
		LOC16 = &module->Sup.Sup;
		idtableput_198196((&(*result).syms), LOC15, LOC16);
		processinterf_234071(result, module);
		processcompilerprocs_234115(result, module);
		loadconverters_235258(result);
		loadmethods_235285(result);
	}
	goto LA11;
	LA13: ;
	{
		(*module).Sup.id = getid_189404();
	}
	LA11: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode190813*, loadinitsection_233077)(Trodreader233030* r) {
	Tnode190813* result;
	NI oldpos;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*r).initidx == ((NI) 0));
		if (LOC3) goto LA4;
		LOC3 = ((*r).dataidx == ((NI) 0));
		LA4: ;
		if (!LOC3) goto LA5;
		internalerror_165218(((NimStringDesc*) &TMP1509));
	}
	LA5: ;
	oldpos = (*r).pos;
	(*r).pos = (*r).initidx;
	result = newnode_191401(((NU8) 115));
	{
		while (1) {
			NIM_BOOL LOC9;
			NI d;
			NI p;
			Tlineinfo163338 LOC11;
			Tnode190813* LOC12;
			LOC9 = 0;
			LOC9 = ((NU8)(10) < (NU8)((*r).s[(*r).pos]));
			if (!(LOC9)) goto LA10;
			LOC9 = !(((NU8)((*r).s[(*r).pos]) == (NU8)(41)));
			LA10: ;
			if (!LOC9) goto LA8;
			d = decodevint_197351((*r).s, (&(*r).pos));
			(*r).pos += ((NI) 1);
			p = (*r).pos;
			(*r).pos = (NI)(d + (*r).dataidx);
			LOC11 = unknownlineinfo_164027();
			LOC12 = 0;
			LOC12 = decodenode_233396(r, LOC11);
			addson_192819(result, LOC12);
			(*r).pos = p;
		} LA8: ;
	}
	(*r).pos = oldpos;
	return result;
}

N_NIMCALL(Tnode190813*, getbody_235648)(Tsym190843* s) {
	Tnode190813* result;
	result = 0;
	result = (*(*s).ast).kindU.S6.sons->data[((NI) 6)];
	{
		Trodreader233030* r;
		NI oldpos;
		if (!(result == NIM_NIL)) goto LA3;
		r = gmods_234850->data[(*s).position].rd;
		oldpos = (*r).pos;
		(*r).pos = (*s).offset;
		result = decodenode_233396(r, (*s).info);
		(*r).pos = oldpos;
		asgnRefNoCycle((void**) (&(*(*s).ast).kindU.S6.sons->data[((NI) 6)]), result);
		(*s).offset = ((NI) 0);
	}
	LA3: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, nimsrc_rodreadInit)(void) {
	if (gmods_234850) nimGCunref(gmods_234850);
	gmods_234850 = (Tfilemodulemap234825*) newSeqRC1((&NTI234825), 0);
	initidtable_194057((&gtypetable_233089));
	initstrtable_194007((&rodcompilerprocs_233066));
}

NIM_EXTERNC N_NOINLINE(void, nimsrc_rodreadDatInit)(void) {
static TNimNode* TMP817[5];
static TNimNode* TMP818[9];
NI TMP820;
static char* NIM_CONST TMP819[9] = {
"rrEmpty", 
"rrNone", 
"rrRodDoesNotExist", 
"rrRodInvalid", 
"rrCrcChange", 
"rrDefines", 
"rrOptions", 
"rrInclDeps", 
"rrModDeps"};
static TNimNode* TMP821[23];
static TNimNode* TMP822[5];
static TNimNode TMP809[46];
NTI234823.size = sizeof(Tfilemodulerec234823);
NTI234823.kind = 18;
NTI234823.base = 0;
TMP817[0] = &TMP809[1];
TMP809[1].kind = 1;
TMP809[1].offset = offsetof(Tfilemodulerec234823, filename);
TMP809[1].typ = (&NTI149);
TMP809[1].name = "filename";
TMP817[1] = &TMP809[2];
NTI233005.size = sizeof(NU8);
NTI233005.kind = 14;
NTI233005.base = 0;
NTI233005.flags = 3;
for (TMP820 = 0; TMP820 < 9; TMP820++) {
TMP809[TMP820+3].kind = 1;
TMP809[TMP820+3].offset = TMP820;
TMP809[TMP820+3].name = TMP819[TMP820];
TMP818[TMP820] = &TMP809[TMP820+3];
}
TMP809[12].len = 9; TMP809[12].kind = 2; TMP809[12].sons = &TMP818[0];
NTI233005.node = &TMP809[12];
TMP809[2].kind = 1;
TMP809[2].offset = offsetof(Tfilemodulerec234823, reason);
TMP809[2].typ = (&NTI233005);
TMP809[2].name = "reason";
TMP817[2] = &TMP809[13];
NTI233030.size = sizeof(Trodreader233030);
NTI233030.kind = 17;
NTI233030.base = (&NTI3411);
TMP821[0] = &TMP809[15];
TMP809[15].kind = 1;
TMP809[15].offset = offsetof(Trodreader233030, pos);
TMP809[15].typ = (&NTI108);
TMP809[15].name = "pos";
TMP821[1] = &TMP809[16];
TMP809[16].kind = 1;
TMP809[16].offset = offsetof(Trodreader233030, s);
TMP809[16].typ = (&NTI151);
TMP809[16].name = "s";
TMP821[2] = &TMP809[17];
TMP809[17].kind = 1;
TMP809[17].offset = offsetof(Trodreader233030, options);
TMP809[17].typ = (&NTI154016);
TMP809[17].name = "options";
TMP821[3] = &TMP809[18];
TMP809[18].kind = 1;
TMP809[18].offset = offsetof(Trodreader233030, reason);
TMP809[18].typ = (&NTI233005);
TMP809[18].name = "reason";
TMP821[4] = &TMP809[19];
TMP809[19].kind = 1;
TMP809[19].offset = offsetof(Trodreader233030, moddeps);
TMP809[19].typ = (&NTI190933);
TMP809[19].name = "modDeps";
TMP821[5] = &TMP809[20];
TMP809[20].kind = 1;
TMP809[20].offset = offsetof(Trodreader233030, files);
TMP809[20].typ = (&NTI190933);
TMP809[20].name = "files";
TMP821[6] = &TMP809[21];
TMP809[21].kind = 1;
TMP809[21].offset = offsetof(Trodreader233030, dataidx);
TMP809[21].typ = (&NTI108);
TMP809[21].name = "dataIdx";
TMP821[7] = &TMP809[22];
TMP809[22].kind = 1;
TMP809[22].offset = offsetof(Trodreader233030, convertersidx);
TMP809[22].typ = (&NTI108);
TMP809[22].name = "convertersIdx";
TMP821[8] = &TMP809[23];
TMP809[23].kind = 1;
TMP809[23].offset = offsetof(Trodreader233030, initidx);
TMP809[23].typ = (&NTI108);
TMP809[23].name = "initIdx";
TMP821[9] = &TMP809[24];
TMP809[24].kind = 1;
TMP809[24].offset = offsetof(Trodreader233030, interfidx);
TMP809[24].typ = (&NTI108);
TMP809[24].name = "interfIdx";
TMP821[10] = &TMP809[25];
TMP809[25].kind = 1;
TMP809[25].offset = offsetof(Trodreader233030, compilerprocsidx);
TMP809[25].typ = (&NTI108);
TMP809[25].name = "compilerProcsIdx";
TMP821[11] = &TMP809[26];
TMP809[26].kind = 1;
TMP809[26].offset = offsetof(Trodreader233030, methodsidx);
TMP809[26].typ = (&NTI108);
TMP809[26].name = "methodsIdx";
TMP821[12] = &TMP809[27];
TMP809[27].kind = 1;
TMP809[27].offset = offsetof(Trodreader233030, filename);
TMP809[27].typ = (&NTI149);
TMP809[27].name = "filename";
TMP821[13] = &TMP809[28];
NTI233028.size = sizeof(Tindex233028);
NTI233028.kind = 18;
NTI233028.base = 0;
NTI233028.flags = 2;
TMP822[0] = &TMP809[30];
TMP809[30].kind = 1;
TMP809[30].offset = offsetof(Tindex233028, lastidxkey);
TMP809[30].typ = (&NTI108);
TMP809[30].name = "lastIdxKey";
TMP822[1] = &TMP809[31];
TMP809[31].kind = 1;
TMP809[31].offset = offsetof(Tindex233028, lastidxval);
TMP809[31].typ = (&NTI108);
TMP809[31].name = "lastIdxVal";
TMP822[2] = &TMP809[32];
TMP809[32].kind = 1;
TMP809[32].offset = offsetof(Tindex233028, tab);
TMP809[32].typ = (&NTI198274);
TMP809[32].name = "tab";
TMP822[3] = &TMP809[33];
TMP809[33].kind = 1;
TMP809[33].offset = offsetof(Tindex233028, r);
TMP809[33].typ = (&NTI149);
TMP809[33].name = "r";
TMP822[4] = &TMP809[34];
TMP809[34].kind = 1;
TMP809[34].offset = offsetof(Tindex233028, offset);
TMP809[34].typ = (&NTI108);
TMP809[34].name = "offset";
TMP809[29].len = 5; TMP809[29].kind = 2; TMP809[29].sons = &TMP822[0];
NTI233028.node = &TMP809[29];
TMP809[28].kind = 1;
TMP809[28].offset = offsetof(Trodreader233030, index);
TMP809[28].typ = (&NTI233028);
TMP809[28].name = "index";
TMP821[14] = &TMP809[35];
TMP809[35].kind = 1;
TMP809[35].offset = offsetof(Trodreader233030, imports);
TMP809[35].typ = (&NTI233028);
TMP809[35].name = "imports";
TMP821[15] = &TMP809[36];
TMP809[36].kind = 1;
TMP809[36].offset = offsetof(Trodreader233030, readerindex);
TMP809[36].typ = (&NTI108);
TMP809[36].name = "readerIndex";
TMP821[16] = &TMP809[37];
TMP809[37].kind = 1;
TMP809[37].offset = offsetof(Trodreader233030, line);
TMP809[37].typ = (&NTI108);
TMP809[37].name = "line";
TMP821[17] = &TMP809[38];
TMP809[38].kind = 1;
TMP809[38].offset = offsetof(Trodreader233030, moduleid);
TMP809[38].typ = (&NTI108);
TMP809[38].name = "moduleID";
TMP821[18] = &TMP809[39];
TMP809[39].kind = 1;
TMP809[39].offset = offsetof(Trodreader233030, syms);
TMP809[39].typ = (&NTI190861);
TMP809[39].name = "syms";
TMP821[19] = &TMP809[40];
TMP809[40].kind = 1;
TMP809[40].offset = offsetof(Trodreader233030, memfile);
TMP809[40].typ = (&NTI231208);
TMP809[40].name = "memfile";
TMP821[20] = &TMP809[41];
TMP809[41].kind = 1;
TMP809[41].offset = offsetof(Trodreader233030, methods);
TMP809[41].typ = (&NTI190815);
TMP809[41].name = "methods";
TMP821[21] = &TMP809[42];
TMP809[42].kind = 1;
TMP809[42].offset = offsetof(Trodreader233030, origfile);
TMP809[42].typ = (&NTI149);
TMP809[42].name = "origFile";
TMP821[22] = &TMP809[43];
TMP809[43].kind = 1;
TMP809[43].offset = offsetof(Trodreader233030, inviewmode);
TMP809[43].typ = (&NTI138);
TMP809[43].name = "inViewMode";
TMP809[14].len = 23; TMP809[14].kind = 2; TMP809[14].sons = &TMP821[0];
NTI233030.node = &TMP809[14];
NTI233032.size = sizeof(Trodreader233030*);
NTI233032.kind = 22;
NTI233032.base = (&NTI233030);
NTI233032.marker = TMP832;
TMP809[13].kind = 1;
TMP809[13].offset = offsetof(Tfilemodulerec234823, rd);
TMP809[13].typ = (&NTI233032);
TMP809[13].name = "rd";
TMP817[3] = &TMP809[44];
TMP809[44].kind = 1;
TMP809[44].offset = offsetof(Tfilemodulerec234823, crc);
TMP809[44].typ = (&NTI169015);
TMP809[44].name = "crc";
TMP817[4] = &TMP809[45];
TMP809[45].kind = 1;
TMP809[45].offset = offsetof(Tfilemodulerec234823, crcdone);
TMP809[45].typ = (&NTI138);
TMP809[45].name = "crcDone";
TMP809[0].len = 5; TMP809[0].kind = 2; TMP809[0].sons = &TMP817[0];
NTI234823.node = &TMP809[0];
NTI234825.size = sizeof(Tfilemodulemap234825*);
NTI234825.kind = 24;
NTI234825.base = (&NTI234823);
NTI234825.marker = TMP833;
}

