/* 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 Tstrtable191817 Tstrtable191817;
typedef struct Tsymseq191815 Tsymseq191815;
typedef struct Tidtable191861 Tidtable191861;
typedef struct Tidpairseq191859 Tidpairseq191859;
typedef struct Tfilemodulemap235825 Tfilemodulemap235825;
typedef struct Tfilemodulerec235823 Tfilemodulerec235823;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Trodreader234030 Trodreader234030;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct TNimObject TNimObject;
typedef struct TY191933 TY191933;
typedef struct Tindex234028 Tindex234028;
typedef struct Tiitable199274 Tiitable199274;
typedef struct Tiipairseq199272 Tiipairseq199272;
typedef struct Memfile232208 Memfile232208;
typedef struct Tcell46346 Tcell46346;
typedef struct Tcellseq46362 Tcellseq46362;
typedef struct Tgcheap48216 Tgcheap48216;
typedef struct Tcellset46358 Tcellset46358;
typedef struct Tpagedesc46354 Tpagedesc46354;
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 Tsym191843 Tsym191843;
typedef struct Tidobj168015 Tidobj168015;
typedef struct Ttypeseq191845 Ttypeseq191845;
typedef struct Tscope191837 Tscope191837;
typedef struct TY191944 TY191944;
typedef struct Ttype191849 Ttype191849;
typedef struct Tident168021 Tident168021;
typedef struct Tlineinfo164338 Tlineinfo164338;
typedef struct Tnode191813 Tnode191813;
typedef struct Tloc191827 Tloc191827;
typedef struct Ropeobj162009 Ropeobj162009;
typedef struct Tlib191831 Tlib191831;
typedef struct Tnodeseq191807 Tnodeseq191807;
typedef struct Tlistentry130022 Tlistentry130022;
typedef struct TY86345 TY86345;
typedef struct Exception Exception;
typedef struct TSafePoint TSafePoint;
typedef struct Tidpair191857 Tidpair191857;
typedef struct Tiipair199270 Tiipair199270;
typedef struct Tbasechunk27438 Tbasechunk27438;
typedef struct Tfreecell27430 Tfreecell27430;
typedef struct Tinstantiation191833 Tinstantiation191833;
struct  Tstrtable191817  {
NI counter;
Tsymseq191815* data;
};
struct  Tidtable191861  {
NI counter;
Tidpairseq191859* data;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tfilemodulerec235823  {
NimStringDesc* filename;
NU8 reason;
Trodreader234030* 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  Tiitable199274  {
NI counter;
Tiipairseq199272* data;
};
struct  Tindex234028  {
NI lastidxkey;
NI lastidxval;
Tiitable199274 tab;
NimStringDesc* r;
NI offset;
};
struct  Memfile232208  {
void* mem;
NI size;
int handle;
};
struct  Trodreader234030  {
  TNimObject Sup;
NI pos;
NCSTRING s;
NU32 options;
NU8 reason;
TY191933* moddeps;
TY191933* files;
NI dataidx;
NI convertersidx;
NI initidx;
NI interfidx;
NI compilerprocsidx;
NI methodsidx;
NimStringDesc* filename;
Tindex234028 index;
Tindex234028 imports;
NI readerindex;
NI line;
NI moduleid;
Tidtable191861 syms;
Memfile232208 memfile;
Tsymseq191815* methods;
NimStringDesc* origfile;
NIM_BOOL inviewmode;
};
struct  Tcell46346  {
NI refcount;
TNimType* typ;
};
struct  Tcellseq46362  {
NI len;
NI cap;
Tcell46346** d;
};
struct  Tcellset46358  {
NI counter;
NI max;
Tpagedesc46354* head;
Tpagedesc46354** 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;
Tcellseq46362 zct;
Tcellseq46362 decstack;
Tcellset46358 cycleroots;
Tcellseq46362 tempstack;
NI recgclock;
Tmemregion28210 region;
Tgcstat48214 stat;
};
struct  Tidobj168015  {
  TNimObject Sup;
NI id;
};
struct  Tlineinfo164338  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc191827  {
NU8 k;
NU8 s;
NU16 flags;
Ttype191849* t;
Ropeobj162009* r;
Ropeobj162009* heaproot;
};
struct  Tsym191843  {
  Tidobj168015 Sup;
NU8 kind;
union{
struct {Ttypeseq191845* typeinstcache;
Tscope191837* typscope;
} S1;
struct {TY191944* procinstcache;
Tsym191843* gcunsafetyreason;
} S2;
struct {TY191944* usedgenerics;
Tstrtable191817 tab;
} S3;
struct {Tsym191843* guard;
} S4;
} kindU;
NU16 magic;
Ttype191849* typ;
Tident168021* name;
Tlineinfo164338 info;
Tsym191843* owner;
NU32 flags;
Tnode191813* ast;
NU32 options;
NI position;
NI offset;
Tloc191827 loc;
Tlib191831* annex;
Tnode191813* constraint;
};
struct  Ttype191849  {
  Tidobj168015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq191845* sons;
Tnode191813* n;
Tsym191843* owner;
Tsym191843* sym;
Tsym191843* destructor;
Tsym191843* deepcopy;
Tsym191843* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc191827 loc;
};
struct  Tnode191813  {
Ttype191849* typ;
Tlineinfo164338 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym191843* sym;
} S4;
struct {Tident168021* ident;
} S5;
struct {Tnodeseq191807* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tlistentry130022  {
  TNimObject Sup;
Tlistentry130022* prev;
Tlistentry130022* next;
};
struct  Tlib191831  {
  Tlistentry130022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj162009* name;
Tnode191813* 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* TY165825[4];
typedef NimStringDesc* TY234019[9];
struct  Tidpair191857  {
Tidobj168015* key;
TNimObject* val;
};
struct  Tiipair199270  {
NI key;
NI val;
};
typedef NI TY27420[16];
struct  Tpagedesc46354  {
Tpagedesc46354* 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  Tscope191837  {
NI depthlevel;
Tstrtable191817 symbols;
Tnodeseq191807* usingsyms;
Tscope191837* parent;
};
struct  Tident168021  {
  Tidobj168015 Sup;
NimStringDesc* s;
Tident168021* next;
NI h;
};
struct  Ropeobj162009  {
  TNimObject Sup;
Ropeobj162009* left;
Ropeobj162009* right;
NI length;
NimStringDesc* data;
};
struct  Tfreecell27430  {
Tfreecell27430* next;
NI zerofield;
};
struct  Tinstantiation191833  {
Tsym191843* sym;
Ttypeseq191845* concretetypes;
TY191933* usedby;
};
struct Tfilemodulemap235825 {
  TGenericSeq Sup;
  Tfilemodulerec235823 data[SEQ_DECL_SIZE];
};
struct TY191933 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct Tsymseq191815 {
  TGenericSeq Sup;
  Tsym191843* data[SEQ_DECL_SIZE];
};
struct Tidpairseq191859 {
  TGenericSeq Sup;
  Tidpair191857 data[SEQ_DECL_SIZE];
};
struct Tiipairseq199272 {
  TGenericSeq Sup;
  Tiipair199270 data[SEQ_DECL_SIZE];
};
struct Ttypeseq191845 {
  TGenericSeq Sup;
  Ttype191849* data[SEQ_DECL_SIZE];
};
struct TY191944 {
  TGenericSeq Sup;
  Tinstantiation191833* data[SEQ_DECL_SIZE];
};
struct Tnodeseq191807 {
  TGenericSeq Sup;
  Tnode191813* data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP834)(void* p, NI op);
N_NIMCALL(void, TMP835)(void* p, NI op);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_51804)(Tcell46346* c);
static N_INLINE(void, rtladdzct_51404)(Tcell46346* c);
N_NOINLINE(void, addzct_49817)(Tcellseq46362* s, Tcell46346* c);
static N_INLINE(NIM_BOOL, canbecycleroot_49867)(Tcell46346* c);
static N_INLINE(void, rtladdcycleroot_50623)(Tcell46346* c);
N_NOINLINE(void, incl_47065)(Tcellset46358* s, Tcell46346* cell);
static N_INLINE(Tcell46346*, usrtocell_49846)(void* usr);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, initidtable_195057)(Tidtable191861* x);
N_NIMCALL(void, initstrtable_195007)(Tstrtable191817* x);
static N_INLINE(void, Gcdisable_8801)(void);
N_NIMCALL(void, rawloadstub_234083)(Tsym191843* s);
N_NIMCALL(void, internalerror_166218)(NimStringDesc* errmsg);
N_NIMCALL(NI, iitableget_199289)(Tiitable199274 t, NI key);
N_NIMCALL(Tsym191843*, decodesymsafepos_235855)(Trodreader234030* rd, NI offset, Tlineinfo164338 info);
N_NIMCALL(void, internalerror_166199)(Tlineinfo164338 info, NimStringDesc* errmsg);
N_NIMCALL(Tsym191843*, decodesym_234689)(Trodreader234030* r, Tlineinfo164338 info);
N_NIMCALL(NI, decodevint_198351)(NCSTRING s, NI* pos);
static N_INLINE(void, setid_190440)(NI id);
N_NIMCALL(Tident168021*, getident_168463)(NimStringDesc* identifier);
N_NIMCALL(NimStringDesc*, decodestr_198157)(NCSTRING s, NI* pos);
N_NIMCALL(TNimObject*, idtableget_199189)(Tidtable191861 t, NI key);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(void, idtableput_199196)(Tidtable191861* t, Tidobj168015* key, TNimObject* val);
N_NIMCALL(void, registerid_190201)(Tidobj168015* id);
N_NIMCALL(void, genericReset)(void* dest, TNimType* mt);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Ttype191849*, rrgettype_234102)(Trodreader234030* r, NI id, Tlineinfo164338 info);
N_NIMCALL(Ttype191849*, decodetype_234493)(Trodreader234030* r, Tlineinfo164338 info);
N_NIMCALL(Tnode191813*, decodenode_234396)(Trodreader234030* r, Tlineinfo164338 finfo);
N_NIMCALL(Tnode191813*, decodenodelazybody_234243)(Trodreader234030* r, Tlineinfo164338 finfo, Tsym191843* belongsto);
N_NIMCALL(Tnode191813*, newnodei_193351)(NU8 kind, Tlineinfo164338 info);
N_NIMCALL(void, decodelineinfo_234110)(Trodreader234030* r, Tlineinfo164338* info);
N_NIMCALL(Tlineinfo164338, newlineinfo_164867)(NI32 fileinfoidx, NI line, NI col);
N_NIMCALL(NI64, decodevbiggestint_198512)(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(Tsym191843*, rrgetsym_234094)(Trodreader234030* r, NI id, Tlineinfo164338 info);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(void, encodevint_198296)(NI x, NimStringDesc** result);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(Trodreader234030*, getreader_235923)(NI moduleid);
N_NIMCALL(void, addsonnilallowed_195530)(Tnode191813* father, Tnode191813* son);
N_NIMCALL(void, skipnode_234151)(Trodreader234030* r);
N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_NIMCALL(Tlineinfo164338, unknownlineinfo_165027)(void);
N_NIMCALL(void, decodeloc_234407)(Trodreader234030* r, Tloc191827* loc, Tlineinfo164338 info);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(Ropeobj162009*, rope_162320)(NimStringDesc* s);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(void, rawaddson_195478)(Ttype191849* father, Ttype191849* son);
N_NIMCALL(Tlib191831*, decodelib_234641)(Trodreader234030* r, Tlineinfo164338 info);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_52222)(Tcell46346* c);
static N_INLINE(void, Gcenable_8803)(void);
static N_INLINE(NI, getid_190404)(void);
N_NIMCALL(void, loadmaxids_190506)(NimStringDesc* project);
N_NIMCALL(NimStringDesc*, HEX2F_119292)(NimStringDesc* head, NimStringDesc* tail);
N_NIMCALL(NU8, checkdep_236360)(NI32 fileidx);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(NimStringDesc*, tofilename_165266)(NI32 fileidx);
N_NIMCALL(NI32, getcrc_236322)(NI32 fileidx);
N_NIMCALL(NimStringDesc*, HEX24_166306)(TY86345 x);
N_NIMCALL(NI32, crcfromfile_170051)(NimStringDesc* filename);
N_NIMCALL(NimStringDesc*, togeneratedfile_155958)(NimStringDesc* path, NimStringDesc* ext);
N_NIMCALL(NimStringDesc*, withpackagename_155944)(NimStringDesc* path);
N_NIMCALL(Trodreader234030*, newrodreader_235677)(NimStringDesc* modfilename, NI32 crc, NI readerindex);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
N_NIMCALL(Memfile232208, open_232807)(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_235648)(NCSTRING buf, NimStringDesc* token, NI pos);
N_NIMCALL(void, initiitable_199282)(Tiitable199274* 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_235293)(Trodreader234030* r, NI32 crc);
N_NIMCALL(NimStringDesc*, rdword_235011)(Trodreader234030* r);
N_NIMCALL(NI, hashString)(NimStringDesc* s);
N_NIMCALL(NIM_BOOL, cmdchangetriggersrecompilation_235262)(NU8 old, NU8 new_235265);
N_NIMCALL(NIM_BOOL, isdefined_169167)(Tident168021* symbol);
N_NIMCALL(NI, countdefinedsymbols_169211)(void);
N_NIMCALL(NimStringDesc*, findmodule_156349)(NimStringDesc* modulename, NimStringDesc* currentmodule);
N_NIMCALL(NI32, fileinfoidx_164854)(NimStringDesc* filename);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(NimStringDesc*, tofullpath_165276)(NI32 fileidx);
N_NIMCALL(void, skipsection_234924)(Trodreader234030* r);
N_NIMCALL(void, processindex_235170)(Trodreader234030* r, Tindex234028* idx, FILE* outf);
N_NIMCALL(void, iitableput_199296)(Tiitable199274* t, NI key, NI val);
N_NIMCALL(void, write_13473)(FILE* f, NimStringDesc** a, NI aLen0);
N_NIMCALL(void, rawmessage_165960)(NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
N_NIMCALL(void, close_233248)(Memfile232208* f);
N_NIMCALL(void, processinterf_235071)(Trodreader234030* r, Tsym191843* module);
N_NIMCALL(Tsym191843*, newstub_235048)(Trodreader234030* r, NimStringDesc* name, NI id);
N_NIMCALL(void, strtableadd_199103)(Tstrtable191817* t, Tsym191843* n);
N_NIMCALL(void, processcompilerprocs_235115)(Trodreader234030* r, Tsym191843* module);
N_NIMCALL(void, loadconverters_236258)(Trodreader234030* r);
N_NIMCALL(void, loadmethods_236285)(Trodreader234030* r);
N_NIMCALL(Tnode191813*, newnode_192401)(NU8 kind);
N_NIMCALL(void, addson_193819)(Tnode191813* father, Tnode191813* son);
STRING_LITERAL(TMP966, "loadStub", 8);
STRING_LITERAL(TMP967, "loadStub: invalid key", 21);
STRING_LITERAL(TMP989, "dataIdx == 0", 12);
STRING_LITERAL(TMP990, "decodeSym: no id", 16);
STRING_LITERAL(TMP992, "decodeSym: no ident", 19);
STRING_LITERAL(TMP993, "decodeSym: wrong id", 19);
STRING_LITERAL(TMP994, "rrGetType", 9);
STRING_LITERAL(TMP995, "decodeType: no id", 17);
STRING_LITERAL(TMP997, "", 0);
STRING_LITERAL(TMP998, "decodeNode: nkIdent", 19);
STRING_LITERAL(TMP1000, "missing from both indexes: +", 28);
STRING_LITERAL(TMP1001, "rrGetSym: no reader found: +", 28);
STRING_LITERAL(TMP1002, "decodeNode: nkSym", 17);
STRING_LITERAL(TMP1003, "decodeNode: \')\' missing", 23);
STRING_LITERAL(TMP1004, "decodeNode: \'(\' missing ", 24);
STRING_LITERAL(TMP1005, "decodeLoc ", 10);
STRING_LITERAL(TMP1006, "decodeType ^(", 13);
STRING_LITERAL(TMP1007, "decodeLib: 1", 12);
STRING_LITERAL(TMP1008, "decodeLib: 2", 12);
STRING_LITERAL(TMP1009, "loadStub: wrong symbol", 22);
STRING_LITERAL(TMP1010, "loadStub: wrong ID", 18);
STRING_LITERAL(TMP1444, "rodread.nim", 11);
NIM_CONST TY86345 TMP1443 = {((NimStringDesc*) &TMP1444),
((NI) 798)}
;
STRING_LITERAL(TMP1445, "rod", 3);
STRING_LITERAL(TMP1447, "NIM:", 4);
STRING_LITERAL(TMP1448, "1215", 4);
STRING_LITERAL(TMP1449, "CRC", 3);
STRING_LITERAL(TMP1450, "ID", 2);
STRING_LITERAL(TMP1451, "ORIGFILE", 8);
STRING_LITERAL(TMP1452, "OPTIONS", 7);
STRING_LITERAL(TMP1453, "GOPTIONS", 8);
STRING_LITERAL(TMP1454, "CMD", 3);
STRING_LITERAL(TMP1455, "DEFINES", 7);
STRING_LITERAL(TMP1456, "FILES", 5);
STRING_LITERAL(TMP1457, "INCLUDES", 8);
STRING_LITERAL(TMP1458, "DEPS", 4);
STRING_LITERAL(TMP1459, "INTERF", 6);
STRING_LITERAL(TMP1460, "COMPILERPROCS", 13);
STRING_LITERAL(TMP1461, "INDEX", 5);
STRING_LITERAL(TMP1462, "IMPORTS", 7);
STRING_LITERAL(TMP1463, "CONVERTERS", 10);
STRING_LITERAL(TMP1464, "METHODS", 7);
STRING_LITERAL(TMP1465, "DATA", 4);
STRING_LITERAL(TMP1466, "INIT", 4);
STRING_LITERAL(TMP1488, "skipSection ", 12);
STRING_LITERAL(TMP1489, " ", 1);
STRING_LITERAL(TMP1490, "\012", 1);
STRING_LITERAL(TMP1491, "invalid section: \'", 18);
STRING_LITERAL(TMP1492, "\' at ", 5);
STRING_LITERAL(TMP1493, " in ", 4);
STRING_LITERAL(TMP1494, "no need to recompile: $1", 24);
STRING_LITERAL(TMP1495, "symbol file for $1 does not exist", 33);
STRING_LITERAL(TMP1496, "symbol file for $1 has the wrong version", 40);
STRING_LITERAL(TMP1497, "file edited since last compilation: $1", 38);
STRING_LITERAL(TMP1498, "list of conditional symbols changed for: $1", 43);
STRING_LITERAL(TMP1499, "list of options changed for: $1", 31);
STRING_LITERAL(TMP1500, "an include file edited: $1", 26);
STRING_LITERAL(TMP1501, "a module $1 depends on has changed", 34);
NIM_CONST TY234019 reasontofrmt_234018 = {((NimStringDesc*) &TMP997),
((NimStringDesc*) &TMP1494),
((NimStringDesc*) &TMP1495),
((NimStringDesc*) &TMP1496),
((NimStringDesc*) &TMP1497),
((NimStringDesc*) &TMP1498),
((NimStringDesc*) &TMP1499),
((NimStringDesc*) &TMP1500),
((NimStringDesc*) &TMP1501)}
;
STRING_LITERAL(TMP1502, "handleSymbolFile", 16);
STRING_LITERAL(TMP1503, "processInterf", 13);
STRING_LITERAL(TMP1504, "processCompilerProcs", 20);
STRING_LITERAL(TMP1505, "importConverters", 16);
STRING_LITERAL(TMP1506, "loadMethods", 11);
STRING_LITERAL(TMP1510, "loadInitSection", 15);
Tstrtable191817 rodcompilerprocs_234066;
Tidtable191861 gtypetable_234089;
Tfilemodulemap235825* gmods_235850;
TNimType NTI235823; /* TFileModuleRec */
extern TNimType NTI149; /* string */
TNimType NTI234005; /* TReasonForRecompile */
extern TNimType NTI3411; /* RootObj */
TNimType NTI234030; /* TRodReader */
extern TNimType NTI108; /* int */
extern TNimType NTI151; /* cstring */
extern TNimType NTI155016; /* TOptions */
extern TNimType NTI191933; /* seq[int32] */
TNimType NTI234028; /* TIndex */
extern TNimType NTI199274; /* TIITable */
extern TNimType NTI191861; /* TIdTable */
extern TNimType NTI232208; /* MemFile */
extern TNimType NTI191815; /* TSymSeq */
extern TNimType NTI138; /* bool */
TNimType NTI234032; /* PRodReader */
extern TNimType NTI170015; /* TCrc32 */
TNimType NTI235825; /* TFileModuleMap */
extern Tgcheap48216 gch_48244;
extern NI gfrontendid_190012;
extern TNimType NTI191811; /* PSym */
extern TNimType NTI191843; /* TSym */
extern TNimType NTI191809; /* PType */
extern TNimType NTI191849; /* TType */
extern TNimType NTI191841; /* PLib */
extern TNimType NTI191831; /* TLib */
extern NU32 gglobaloptions_155128;
extern NimStringDesc* gprojectpath_155235;
extern NimStringDesc* gprojectname_155234;
extern TSafePoint* exchandler_17043;
extern TNimType NTI3433; /* OSError */
extern Exception* currexception_17045;
extern NU32 goptions_155126;
extern NU8 gcmd_155130;
extern NI32 systemfileidx_164433;
extern NI gverbosity_155137;
N_NIMCALL(void, TMP834)(void* p, NI op) {
	Trodreader234030* a;
	a = (Trodreader234030*)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, TMP835)(void* p, NI op) {
	Tfilemodulemap235825* a;
	NI LOC1;
	a = (Tfilemodulemap235825*)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)(Tcell46346* c) {
	addzct_49817((&gch_48244.zct), c);
}

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

static N_INLINE(void, rtladdcycleroot_50623)(Tcell46346* 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)(Tcell46346* 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(Tcell46346*, usrtocell_49846)(void* usr) {
	Tcell46346* result;
	result = 0;
	result = ((Tcell46346*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(Tcell46346))))));
	return result;
}

static N_INLINE(void, nimGCunref)(void* p) {
	Tcell46346* 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_190440)(NI id) {
	gfrontendid_190012 = ((gfrontendid_190012 >= (NI)(id + ((NI) 1))) ? gfrontendid_190012 : (NI)(id + ((NI) 1)));
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Tcell46346* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_49846(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Tcell46346* 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_234110)(Trodreader234030* r, Tlineinfo164338* 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_198351((*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_198351((*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_198351((*r).s, (&(*r).pos));
				(*info) = newlineinfo_164867((*r).files->data[LOC25], ((NI) ((*info).line)), ((NI) ((*info).col)));
			}
			LA23: ;
		}
		LA13: ;
	}
	LA3: ;
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Tcell46346* 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(Trodreader234030*, getreader_235923)(NI moduleid) {
	Trodreader234030* result;
{	result = 0;
	{
		NI i_235953;
		NI HEX3Atmp_235967;
		NI res_235970;
		i_235953 = 0;
		HEX3Atmp_235967 = 0;
		HEX3Atmp_235967 = ((gmods_235850 ? gmods_235850->Sup.len : 0) - 1);
		res_235970 = ((NI) 0);
		{
			while (1) {
				if (!(res_235970 <= HEX3Atmp_235967)) goto LA3;
				i_235953 = res_235970;
				result = gmods_235850->data[i_235953].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_235970 += ((NI) 1);
			} LA3: ;
		}
	}
	result = NIM_NIL;
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tsym191843*, rrgetsym_234094)(Trodreader234030* r, NI id, Tlineinfo164338 info) {
	Tsym191843* result;
	TNimObject* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = idtableget_199189((*r).syms, id);
	result = ((Tsym191843*) (LOC1));
	{
		NI d;
		if (!(result == NIM_NIL)) goto LA4;
		d = iitableget_199289((*r).index.tab, id);
		{
			NI moduleid;
			Trodreader234030* rd;
			if (!(d == ((NI) (-2147483647 -1)))) goto LA8;
			moduleid = iitableget_199289((*r).imports.tab, id);
			{
				NimStringDesc* x;
				NimStringDesc* LOC14;
				if (!(moduleid < ((NI) 0))) goto LA12;
				x = copyString(((NimStringDesc*) &TMP997));
				encodevint_198296(id, (&x));
				LOC14 = 0;
				LOC14 = rawNewString(x->Sup.len + 28);
appendString(LOC14, ((NimStringDesc*) &TMP1000));
appendString(LOC14, x);
				internalerror_166199(info, LOC14);
			}
			LA12: ;
			rd = getreader_235923(moduleid);
			d = iitableget_199289((*rd).index.tab, id);
			{
				if (!!((d == ((NI) (-2147483647 -1))))) goto LA17;
				result = decodesymsafepos_235855(rd, d, info);
			}
			goto LA15;
			LA17: ;
			{
				NimStringDesc* x;
				NimStringDesc* LOC20;
				x = copyString(((NimStringDesc*) &TMP997));
				encodevint_198296(id, (&x));
				LOC20 = 0;
				LOC20 = rawNewString(x->Sup.len + 28);
appendString(LOC20, ((NimStringDesc*) &TMP1001));
appendString(LOC20, x);
				internalerror_166199(info, LOC20);
			}
			LA15: ;
		}
		goto LA6;
		LA8: ;
		{
			result = decodesymsafepos_235855(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_234083(result);
	}
	LA26: ;
	return result;
}

N_NIMCALL(void, skipnode_234151)(Trodreader234030* 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(Tnode191813*, decodenodelazybody_234243)(Trodreader234030* r, Tlineinfo164338 finfo, Tsym191843* belongsto) {
	Tnode191813* 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_198351((*r).s, (&(*r).pos));
		result = newnodei_193351(((NU8) (LOC9)), finfo);
		decodelineinfo_234110(r, (&(*result).info));
		{
			NI LOC14;
			if (!((NU8)((*r).s[(*r).pos]) == (NU8)(36))) goto LA12;
			(*r).pos += ((NI) 1);
			LOC14 = 0;
			LOC14 = decodevint_198351((*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_198351((*r).s, (&(*r).pos));
			asgnRefNoCycle((void**) (&(*result).typ), rrgettype_234102(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_198512((*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_198157((*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_198157((*r).s, (&(*r).pos)));
			}
			goto LA30;
			LA32: ;
			{
				NimStringDesc* LOC35;
				LOC35 = 0;
				LOC35 = (*result).kindU.S3.strval; (*result).kindU.S3.strval = copyStringRC1(((NimStringDesc*) &TMP997));
				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_198157((*r).s, (&(*r).pos));
				asgnRefNoCycle((void**) (&(*result).kindU.S5.ident), getident_168463(fl));
			}
			goto LA37;
			LA39: ;
			{
				internalerror_166199((*result).info, ((NimStringDesc*) &TMP998));
			}
			LA37: ;
		}
		break;
		case ((NU8) 3):
		{
			{
				NI id;
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(33))) goto LA45;
				(*r).pos += ((NI) 1);
				id = decodevint_198351((*r).s, (&(*r).pos));
				asgnRefNoCycle((void**) (&(*result).kindU.S4.sym), rrgetsym_234094(r, id, (*result).info));
			}
			goto LA43;
			LA45: ;
			{
				internalerror_166199((*result).info, ((NimStringDesc*) &TMP1002));
			}
			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_195530(result, NIM_NIL);
						(*belongsto).offset = (*r).pos;
						skipnode_234151(r);
					}
					goto LA51;
					LA55: ;
					{
						Tnode191813* LOC58;
						LOC58 = 0;
						LOC58 = decodenodelazybody_234243(r, (*result).info, NIM_NIL);
						addsonnilallowed_195530(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_166199((*result).info, ((NimStringDesc*) &TMP1003));
		}
		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*) &TMP1004));
appendString(LOC65, LOC66);
		internalerror_166199(finfo, LOC65);
	}
	LA1: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode191813*, decodenode_234396)(Trodreader234030* r, Tlineinfo164338 finfo) {
	Tnode191813* result;
	result = 0;
	result = decodenodelazybody_234243(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_234407)(Trodreader234030* r, Tloc191827* loc, Tlineinfo164338 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_198351((*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_198351((*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_198351((*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_198351((*r).s, (&(*r).pos));
			unsureAsgnRef((void**) (&(*loc).t), rrgettype_234102(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_198157((*r).s, (&(*r).pos));
			unsureAsgnRef((void**) (&(*loc).r), rope_162320(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*) &TMP1005));
appendChar(LOC40, (*r).s[(*r).pos]);
			internalerror_166199(info, LOC40);
		}
		LA35: ;
	}
	LA3: ;
}

N_NIMCALL(Ttype191849*, decodetype_234493)(Trodreader234030* r, Tlineinfo164338 info) {
	Ttype191849* result;
	NI LOC9;
	Tidobj168015* 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 = (Ttype191849*) newObj((&NTI191809), sizeof(Ttype191849));
	(*result).Sup.Sup.m_type = (&NTI191849);
	LOC9 = 0;
	LOC9 = decodevint_198351((*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_198351((*r).s, (&(*r).pos));
		setid_190440((*result).Sup.id);
		{
			Tidobj168015* LOC18;
			if (!NIM_FALSE) goto LA16;
			LOC18 = 0;
			LOC18 = &result->Sup;
			registerid_190201(LOC18);
		}
		LA16: ;
	}
	goto LA10;
	LA12: ;
	{
		internalerror_166199(info, ((NimStringDesc*) &TMP995));
	}
	LA10: ;
	LOC20 = 0;
	LOC20 = &result->Sup;
	LOC21 = 0;
	LOC21 = &result->Sup.Sup;
	idtableput_199196((&gtypetable_234089), LOC20, LOC21);
	{
		Tlineinfo164338 LOC26;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(40))) goto LA24;
		LOC26 = unknownlineinfo_165027();
		asgnRefNoCycle((void**) (&(*result).n), decodenode_234396(r, LOC26));
	}
	LA24: ;
	{
		NI LOC31;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(36))) goto LA29;
		(*r).pos += ((NI) 1);
		LOC31 = 0;
		LOC31 = decodevint_198351((*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_198351((*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_198351((*r).s, (&(*r).pos));
		asgnRefNoCycle((void**) (&(*result).owner), rrgetsym_234094(r, LOC41, info));
	}
	LA39: ;
	{
		NI LOC46;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(38))) goto LA44;
		(*r).pos += ((NI) 1);
		LOC46 = 0;
		LOC46 = decodevint_198351((*r).s, (&(*r).pos));
		asgnRefNoCycle((void**) (&(*result).sym), rrgetsym_234094(r, LOC46, info));
	}
	LA44: ;
	{
		NI LOC51;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(47))) goto LA49;
		(*r).pos += ((NI) 1);
		LOC51 = 0;
		LOC51 = decodevint_198351((*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_198351((*r).s, (&(*r).pos));
		(*result).align = ((NI16) (LOC57));
	}
	goto LA53;
	LA55: ;
	{
		(*result).align = ((NI16) 2);
	}
	LA53: ;
	decodeloc_234407(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*) &TMP1006));
appendChar(LOC70, (*r).s[(*r).pos]);
					internalerror_166199(info, LOC70);
				}
				LA65: ;
				rawaddson_195478(result, NIM_NIL);
			}
			goto LA61;
			LA63: ;
			{
				NI d;
				Ttype191849* LOC72;
				d = decodevint_198351((*r).s, (&(*r).pos));
				LOC72 = 0;
				LOC72 = rrgettype_234102(r, d, info);
				rawaddson_195478(result, LOC72);
			}
			LA61: ;
		} LA60: ;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Ttype191849*, rrgettype_234102)(Trodreader234030* r, NI id, Tlineinfo164338 info) {
	Ttype191849* result;
	TNimObject* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = idtableget_199189(gtypetable_234089, id);
	result = ((Ttype191849*) (LOC1));
	{
		NI oldpos;
		NI d;
		if (!(result == NIM_NIL)) goto LA4;
		oldpos = (*r).pos;
		d = iitableget_199289((*r).index.tab, id);
		{
			if (!(d == ((NI) (-2147483647 -1)))) goto LA8;
			internalerror_166199(info, ((NimStringDesc*) &TMP994));
		}
		LA8: ;
		(*r).pos = (NI)(d + (*r).dataidx);
		result = decodetype_234493(r, info);
		(*r).pos = oldpos;
	}
	LA4: ;
	return result;
}

N_NIMCALL(Tlib191831*, decodelib_234641)(Trodreader234030* r, Tlineinfo164338 info) {
	Tlib191831* result;
	result = 0;
	result = NIM_NIL;
	{
		NI LOC5;
		NimStringDesc* LOC10;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(124))) goto LA3;
		result = (Tlib191831*) newObj((&NTI191841), sizeof(Tlib191831));
		(*result).Sup.Sup.m_type = (&NTI191831);
		(*r).pos += ((NI) 1);
		LOC5 = 0;
		LOC5 = decodevint_198351((*r).s, (&(*r).pos));
		(*result).kind = ((NU8) (LOC5));
		{
			if (!!(((NU8)((*r).s[(*r).pos]) == (NU8)(124)))) goto LA8;
			internalerror_166218(((NimStringDesc*) &TMP1007));
		}
		LA8: ;
		(*r).pos += ((NI) 1);
		LOC10 = 0;
		LOC10 = decodestr_198157((*r).s, (&(*r).pos));
		asgnRefNoCycle((void**) (&(*result).name), rope_162320(LOC10));
		{
			if (!!(((NU8)((*r).s[(*r).pos]) == (NU8)(124)))) goto LA13;
			internalerror_166218(((NimStringDesc*) &TMP1008));
		}
		LA13: ;
		(*r).pos += ((NI) 1);
		asgnRefNoCycle((void**) (&(*result).path), decodenode_234396(r, info));
	}
	LA3: ;
	return result;
}

static N_INLINE(void, incref_52222)(Tcell46346* 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) {
	{
		Tcell46346* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_49846(src);
		incref_52222(LOC5);
	}
	LA3: ;
	{
		Tcell46346* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_49846((*dest));
		decref_51804(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(Tsym191843*, decodesym_234689)(Trodreader234030* r, Tlineinfo164338 info) {
	Tsym191843* result;
	NI id;
	Tident168021* 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_198351((*r).s, (&(*r).pos));
	k = ((NU8) (LOC9));
	{
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(43))) goto LA12;
		(*r).pos += ((NI) 1);
		id = decodevint_198351((*r).s, (&(*r).pos));
		setid_190440(id);
	}
	goto LA10;
	LA12: ;
	{
		internalerror_166199(info, ((NimStringDesc*) &TMP990));
	}
	LA10: ;
	{
		NimStringDesc* LOC19;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(38))) goto LA17;
		(*r).pos += ((NI) 1);
		LOC19 = 0;
		LOC19 = decodestr_198157((*r).s, (&(*r).pos));
		ident = getident_168463(LOC19);
	}
	goto LA15;
	LA17: ;
	{
		internalerror_166199(info, ((NimStringDesc*) &TMP992));
	}
	LA15: ;
	LOC21 = 0;
	LOC21 = idtableget_199189((*r).syms, id);
	result = ((Tsym191843*) (LOC21));
	{
		Tidobj168015* LOC26;
		TNimObject* LOC27;
		if (!(result == NIM_NIL)) goto LA24;
		result = (Tsym191843*) newObj((&NTI191811), sizeof(Tsym191843));
		(*result).Sup.Sup.m_type = (&NTI191843);
		(*result).Sup.id = id;
		LOC26 = 0;
		LOC26 = &result->Sup;
		LOC27 = 0;
		LOC27 = &result->Sup.Sup;
		idtableput_199196((&(*r).syms), LOC26, LOC27);
		{
			Tidobj168015* LOC32;
			if (!NIM_FALSE) goto LA30;
			LOC32 = 0;
			LOC32 = &result->Sup;
			registerid_190201(LOC32);
		}
		LA30: ;
	}
	goto LA22;
	LA24: ;
	{
		if (!!(((*result).Sup.id == id))) goto LA34;
		internalerror_166199(info, ((NimStringDesc*) &TMP993));
	}
	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)), (&NTI191843));
		(*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_198351((*r).s, (&(*r).pos));
		asgnRefNoCycle((void**) (&(*result).typ), rrgettype_234102(r, LOC46, info));
	}
	LA44: ;
	decodelineinfo_234110(r, (&(*result).info));
	{
		NI LOC51;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(42))) goto LA49;
		(*r).pos += ((NI) 1);
		LOC51 = 0;
		LOC51 = decodevint_198351((*r).s, (&(*r).pos));
		asgnRefNoCycle((void**) (&(*result).owner), rrgetsym_234094(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_198351((*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_198351((*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_198351((*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_198351((*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_198351((*r).s, (&(*r).pos));
	}
	goto LA75;
	LA77: ;
	{
		(*result).offset = ((NI) -1);
	}
	LA75: ;
	decodeloc_234407(r, (&(*result).loc), (*result).info);
	asgnRef((void**) (&(*result).annex), decodelib_234641(r, info));
	{
		Tlineinfo164338 LOC84;
		if (!((NU8)((*r).s[(*r).pos]) == (NU8)(35))) goto LA82;
		(*r).pos += ((NI) 1);
		LOC84 = unknownlineinfo_165027();
		asgnRefNoCycle((void**) (&(*result).constraint), decodenode_234396(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_234243(r, (*result).info, result));
			(*result).position = (*r).readerindex;
		}
		goto LA89;
		LA91: ;
		{
			asgnRefNoCycle((void**) (&(*result).ast), decodenode_234396(r, (*result).info));
		}
		LA89: ;
	}
	LA87: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tsym191843*, decodesymsafepos_235855)(Trodreader234030* rd, NI offset, Tlineinfo164338 info) {
	Tsym191843* result;
	NI oldpos;
	result = 0;
	{
		if (!((*rd).dataidx == ((NI) 0))) goto LA3;
		internalerror_166199(info, ((NimStringDesc*) &TMP989));
	}
	LA3: ;
	oldpos = (*rd).pos;
	(*rd).pos = (NI)(offset + (*rd).dataidx);
	result = decodesym_234689(rd, info);
	(*rd).pos = oldpos;
	return result;
}

N_NIMCALL(void, rawloadstub_234083)(Tsym191843* s) {
	Trodreader234030* rd;
	NI theid;
	NI d;
	Tsym191843* rs;
	Tlineinfo164338 LOC9;
	{
		if (!!(((*s).kind == ((NU8) 23)))) goto LA3;
		internalerror_166218(((NimStringDesc*) &TMP966));
	}
	LA3: ;
	rd = gmods_235850->data[(*s).position].rd;
	theid = (*s).Sup.id;
	d = iitableget_199289((*rd).index.tab, (*s).Sup.id);
	{
		if (!(d == ((NI) (-2147483647 -1)))) goto LA7;
		internalerror_166218(((NimStringDesc*) &TMP967));
	}
	LA7: ;
	LOC9 = unknownlineinfo_165027();
	rs = decodesymsafepos_235855(rd, d, LOC9);
	{
		if (!!((rs == s))) goto LA12;
		internalerror_166199((*rs).info, ((NimStringDesc*) &TMP1009));
	}
	goto LA10;
	LA12: ;
	{
		if (!!(((*rs).Sup.id == theid))) goto LA15;
		internalerror_166199((*rs).info, ((NimStringDesc*) &TMP1010));
	}
	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_236639)(Tsym191843* s) {
	Gcdisable_8801();
	rawloadstub_234083(s);
	Gcenable_8803();
}

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

N_NIMCALL(NI32, getcrc_236322)(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_235850 ? gmods_235850->Sup.len : 0));
		LA4: ;
		if (!!(LOC3)) goto LA5;
		LOC7 = 0;
		LOC7 = HEX24_166306(TMP1443);
		internalerror_166218(LOC7);
	}
	LA5: ;
	{
		if (!gmods_235850->data[fileidx].crcdone) goto LA10;
		result = gmods_235850->data[fileidx].crc;
		goto BeforeRet;
	}
	LA10: ;
	LOC12 = 0;
	LOC12 = tofilename_165266(fileidx);
	result = crcfromfile_170051(LOC12);
	gmods_235850->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_235648)(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(Trodreader234030*, newrodreader_235677)(NimStringDesc* modfilename, NI32 crc, NI readerindex) {
	Trodreader234030* result;
	TSafePoint TMP1446;
	Trodreader234030* r;
	NimStringDesc* LOC4;
{	result = 0;
	result = (Trodreader234030*) newObj((&NTI234032), sizeof(Trodreader234030));
	(*result).Sup.m_type = (&NTI234030);
	pushSafePoint(&TMP1446);
	TMP1446.status = setjmp(TMP1446.context);
	if (TMP1446.status == 0) {
		(*result).memfile = open_232807(modfilename, ((NU8) 0), ((NI) -1), ((NI) 0), ((NI) -1));
		popSafePoint();
	}
	else {
		popSafePoint();
		if (isObj(getCurrentException()->Sup.m_type, (&NTI3433))) {
			TMP1446.status = 0;
			result = NIM_NIL;
			popCurrentException();
			goto BeforeRet;
			popCurrentException();
		}
	}
	if (TMP1446.status != 0) reraiseException();
	if ((*result).files) nimGCunrefNoCycle((*result).files);
	(*result).files = (TY191933*) newSeqRC1((&NTI191933), 0);
	if ((*result).moddeps) nimGCunrefNoCycle((*result).moddeps);
	(*result).moddeps = (TY191933*) newSeqRC1((&NTI191933), 0);
	if ((*result).methods) nimGCunrefNoCycle((*result).methods);
	(*result).methods = (Tsymseq191815*) newSeqRC1((&NTI191815), 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_195057((&(*r).syms));
	(*r).s = ((NCSTRING) ((*r).memfile.mem));
	{
		NIM_BOOL LOC7;
		NimStringDesc* version;
		LOC7 = 0;
		LOC7 = startswith_235648((*r).s, ((NimStringDesc*) &TMP1447), ((NI) 0));
		if (!LOC7) goto LA8;
		initiitable_199282((&(*r).index.tab));
		initiitable_199282((&(*r).imports.tab));
		(*r).pos += ((NI) 4);
		version = copyString(((NimStringDesc*) &TMP997));
		{
			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*) &TMP1448)))) goto LA18;
			result = NIM_NIL;
		}
		LA18: ;
	}
	goto LA5;
	LA8: ;
	{
		result = NIM_NIL;
	}
	LA5: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NimStringDesc*, rdword_235011)(Trodreader234030* r) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP997));
	{
		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_235262)(NU8 old, NU8 new_235265) {
	NIM_BOOL result;
{	result = 0;
	{
		if (!(old == new_235265)) 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_235265)&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_234924)(Trodreader234030* 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*) &TMP1488));
appendString(LOC25, LOC26);
		internalerror_166218(LOC25);
	}
	LA1: ;
}

N_NIMCALL(void, processindex_235170)(Trodreader234030* r, Tindex234028* 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_198351((*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_198351((*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_199296((&(*idx).tab), key, val);
			{
				TY165825 LOC15;
				if (!!(outf == 0)) goto LA13;
				memset((void*)LOC15, 0, sizeof(LOC15));
				LOC15[0] = nimIntToStr(key);
				LOC15[1] = copyString(((NimStringDesc*) &TMP1489));
				LOC15[2] = nimIntToStr(val);
				LOC15[3] = copyString(((NimStringDesc*) &TMP1490));
				write_13473(outf, LOC15, 4);
			}
			LA13: ;
			(*idx).lastidxkey = key;
			(*idx).lastidxval = val;
			setid_190440(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_235293)(Trodreader234030* 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_235011(r);
			{
				if (!!(((*r).reason == ((NU8) 1)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			switch (hashString(section) & 31) {
			case 0: 
if (eqStrings(section, ((NimStringDesc*) &TMP1450))) goto LA8;
if (eqStrings(section, ((NimStringDesc*) &TMP1457))) goto LA15;
break;
			case 9: 
if (eqStrings(section, ((NimStringDesc*) &TMP1451))) goto LA9;
if (eqStrings(section, ((NimStringDesc*) &TMP1461))) goto LA19;
break;
			case 10: 
if (eqStrings(section, ((NimStringDesc*) &TMP1452))) goto LA10;
if (eqStrings(section, ((NimStringDesc*) &TMP1454))) goto LA12;
if (eqStrings(section, ((NimStringDesc*) &TMP1464))) goto LA22;
break;
			case 11: 
if (eqStrings(section, ((NimStringDesc*) &TMP1449))) goto LA7;
break;
			case 12: 
if (eqStrings(section, ((NimStringDesc*) &TMP1466))) goto LA24;
break;
			case 13: 
if (eqStrings(section, ((NimStringDesc*) &TMP1455))) goto LA13;
if (eqStrings(section, ((NimStringDesc*) &TMP1465))) goto LA23;
break;
			case 17: 
if (eqStrings(section, ((NimStringDesc*) &TMP1456))) goto LA14;
break;
			case 25: 
if (eqStrings(section, ((NimStringDesc*) &TMP1453))) goto LA11;
if (eqStrings(section, ((NimStringDesc*) &TMP1463))) goto LA21;
break;
			case 26: 
if (eqStrings(section, ((NimStringDesc*) &TMP1459))) goto LA17;
break;
			case 28: 
if (eqStrings(section, ((NimStringDesc*) &TMP1458))) goto LA16;
break;
			case 29: 
if (eqStrings(section, ((NimStringDesc*) &TMP1462))) goto LA20;
break;
			case 30: 
if (eqStrings(section, ((NimStringDesc*) &TMP1460))) goto LA18;
break;
			}
			goto LA25;
			LA7: ;
			{
				(*r).pos += ((NI) 1);
				{
					NI LOC30;
					LOC30 = 0;
					LOC30 = decodevint_198351((*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_198351((*r).s, (&(*r).pos));
				setid_190440((*r).moduleid);
			}
			goto LA26;
			LA9: ;
			{
				(*r).pos += ((NI) 1);
				asgnRefNoCycle((void**) (&(*r).origfile), decodestr_198157((*r).s, (&(*r).pos)));
			}
			goto LA26;
			LA10: ;
			{
				NI LOC36;
				(*r).pos += ((NI) 1);
				LOC36 = 0;
				LOC36 = decodevint_198351((*r).s, (&(*r).pos));
				(*r).options = ((NU32) (((NI32) (LOC36))));
				{
					if (!!((goptions_155126 == (*r).options))) goto LA39;
					(*r).reason = ((NU8) 6);
				}
				LA39: ;
			}
			goto LA26;
			LA11: ;
			{
				NU32 dep;
				NI LOC42;
				(*r).pos += ((NI) 1);
				LOC42 = 0;
				LOC42 = decodevint_198351((*r).s, (&(*r).pos));
				dep = ((NU32) (((NI32) (LOC42))));
				{
					if (!!((gglobaloptions_155128 == dep))) goto LA45;
					(*r).reason = ((NU8) 6);
				}
				LA45: ;
			}
			goto LA26;
			LA12: ;
			{
				NU8 dep;
				NI LOC48;
				(*r).pos += ((NI) 1);
				LOC48 = 0;
				LOC48 = decodevint_198351((*r).s, (&(*r).pos));
				dep = ((NU8) (((NI32) (LOC48))));
				{
					NIM_BOOL LOC51;
					LOC51 = 0;
					LOC51 = cmdchangetriggersrecompilation_235262(dep, gcmd_155130);
					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_198157((*r).s, (&(*r).pos));
						d += ((NI) 1);
						{
							Tident168021* LOC59;
							NIM_BOOL LOC60;
							LOC59 = 0;
							LOC59 = getident_168463(w);
							LOC60 = 0;
							LOC60 = isdefined_169167(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_169211();
					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_198157((*r).s, (&(*r).pos));
						resolvedpath = findmodule_156349(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_164854(finalpath);
						(*r).files = (TY191933*) 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_198351((*r).s, (&(*r).pos));
						w = tofullpath_165276((*r).files->data[LOC88]);
						(*r).pos += ((NI) 1);
						inclcrc = decodevint_198351((*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_170051(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_198351((*r).s, (&(*r).pos));
						(*r).moddeps = (TY191933*) 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_234924(r);
			}
			goto LA26;
			LA18: ;
			{
				(*r).compilerprocsidx = (NI)((*r).pos + ((NI) 2));
				skipsection_234924(r);
			}
			goto LA26;
			LA19: ;
			{
				processindex_235170(r, (&(*r).index), NIM_NIL);
			}
			goto LA26;
			LA20: ;
			{
				processindex_235170(r, (&(*r).imports), NIM_NIL);
			}
			goto LA26;
			LA21: ;
			{
				(*r).convertersidx = (NI)((*r).pos + ((NI) 1));
				skipsection_234924(r);
			}
			goto LA26;
			LA22: ;
			{
				(*r).methodsidx = (NI)((*r).pos + ((NI) 1));
				skipsection_234924(r);
			}
			goto LA26;
			LA23: ;
			{
				(*r).dataidx = (NI)((*r).pos + ((NI) 2));
				goto LA1;
			}
			goto LA26;
			LA24: ;
			{
				(*r).initidx = (NI)((*r).pos + ((NI) 2));
				skipsection_234924(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*) &TMP1491));
appendString(LOC126, section);
appendString(LOC126, ((NimStringDesc*) &TMP1492));
appendString(LOC126, LOC127);
appendString(LOC126, ((NimStringDesc*) &TMP1493));
appendString(LOC126, (*r).filename);
				internalerror_166218(LOC126);
				skipsection_234924(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_236360)(NI32 fileidx) {
	NU8 result;
	NimStringDesc* filename;
	NI32 crc;
	Trodreader234030* r;
	NimStringDesc* rodfile;
	NimStringDesc* LOC9;
{	result = 0;
	{
		if (!((gmods_235850 ? gmods_235850->Sup.len : 0) <= ((NI) (fileidx)))) goto LA3;
		gmods_235850 = (Tfilemodulemap235825*) setLengthSeq(&(gmods_235850)->Sup, sizeof(Tfilemodulerec235823), ((NI) ((NI32)(fileidx + ((NI32) 1)))));
	}
	LA3: ;
	{
		if (!!((gmods_235850->data[fileidx].reason == ((NU8) 0)))) goto LA7;
		result = gmods_235850->data[fileidx].reason;
		goto BeforeRet;
	}
	LA7: ;
	filename = tofilename_165266(fileidx);
	crc = getcrc_236322(fileidx);
	gmods_235850->data[fileidx].reason = ((NU8) 1);
	result = ((NU8) 1);
	r = NIM_NIL;
	LOC9 = 0;
	LOC9 = withpackagename_155944(filename);
	rodfile = togeneratedfile_155958(LOC9, ((NimStringDesc*) &TMP1445));
	r = newrodreader_235677(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_235293(r, crc);
		result = (*r).reason;
		{
			NU8 res;
			if (!(result == ((NU8) 1))) goto LA23;
			res = checkdep_236360(systemfileidx_164433);
			{
				if (!!((res == ((NU8) 1)))) goto LA27;
				result = ((NU8) 8);
			}
			LA27: ;
			{
				NI i_236475;
				NI HEX3Atmp_236528;
				NI res_236531;
				i_236475 = 0;
				HEX3Atmp_236528 = 0;
				HEX3Atmp_236528 = ((*r).moddeps ? ((*r).moddeps->Sup.len-1) : -1);
				res_236531 = ((NI) 0);
				{
					while (1) {
						if (!(res_236531 <= HEX3Atmp_236528)) goto LA31;
						i_236475 = res_236531;
						res = checkdep_236360((*r).moddeps->data[i_236475]);
						{
							if (!!((res == ((NU8) 1)))) goto LA34;
							result = ((NU8) 8);
						}
						LA34: ;
						res_236531 += ((NI) 1);
					} LA31: ;
				}
			}
		}
		LA23: ;
	}
	LA10: ;
	{
		NIM_BOOL LOC38;
		NimStringDesc* LOC42;
		LOC38 = 0;
		LOC38 = !((result == ((NU8) 1)));
		if (!(LOC38)) goto LA39;
		LOC38 = (((NI) 0) < gverbosity_155137);
		LA39: ;
		if (!LOC38) goto LA40;
		LOC42 = 0;
		LOC42 = nsuFormatSingleElem(reasontofrmt_234018[(result)- 0], filename);
		rawmessage_165960(((NU16) 269), LOC42);
	}
	LA40: ;
	{
		NIM_BOOL LOC45;
		LOC45 = 0;
		LOC45 = !((result == ((NU8) 1)));
		if (LOC45) goto LA46;
		LOC45 = ((gglobaloptions_155128 &(1<<((((NU8) 1))&31)))!=0);
		LA46: ;
		if (!LOC45) goto LA47;
		{
			if (!!((r == NIM_NIL))) goto LA51;
			close_233248((&(*r).memfile));
		}
		LA51: ;
		r = NIM_NIL;
	}
	LA47: ;
	asgnRef((void**) (&gmods_235850->data[fileidx].rd), r);
	gmods_235850->data[fileidx].reason = result;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tsym191843*, newstub_235048)(Trodreader234030* r, NimStringDesc* name, NI id) {
	Tsym191843* result;
	result = 0;
	result = (Tsym191843*) newObj((&NTI191811), sizeof(Tsym191843));
	(*result).Sup.Sup.m_type = (&NTI191843);
	(*result).kind = ((NU8) 23);
	(*result).Sup.id = id;
	asgnRefNoCycle((void**) (&(*result).name), getident_168463(name));
	(*result).position = (*r).readerindex;
	setid_190440(id);
	{
		Tidobj168015* LOC5;
		if (!NIM_FALSE) goto LA3;
		LOC5 = 0;
		LOC5 = &result->Sup;
		registerid_190201(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, processinterf_235071)(Trodreader234030* r, Tsym191843* module) {
	{
		if (!((*r).interfidx == ((NI) 0))) goto LA3;
		internalerror_166218(((NimStringDesc*) &TMP1503));
	}
	LA3: ;
	(*r).pos = (*r).interfidx;
	{
		while (1) {
			NIM_BOOL LOC7;
			NimStringDesc* w;
			NI key;
			Tsym191843* s;
			Tidobj168015* 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_198157((*r).s, (&(*r).pos));
			(*r).pos += ((NI) 1);
			key = decodevint_198351((*r).s, (&(*r).pos));
			(*r).pos += ((NI) 1);
			s = newstub_235048(r, w, key);
			asgnRefNoCycle((void**) (&(*s).owner), module);
			strtableadd_199103((&(*module).kindU.S3.tab), s);
			LOC9 = 0;
			LOC9 = &s->Sup;
			LOC10 = 0;
			LOC10 = &s->Sup.Sup;
			idtableput_199196((&(*r).syms), LOC9, LOC10);
		} LA6: ;
	}
}

N_NIMCALL(void, processcompilerprocs_235115)(Trodreader234030* r, Tsym191843* module) {
	{
		if (!((*r).compilerprocsidx == ((NI) 0))) goto LA3;
		internalerror_166218(((NimStringDesc*) &TMP1504));
	}
	LA3: ;
	(*r).pos = (*r).compilerprocsidx;
	{
		while (1) {
			NIM_BOOL LOC7;
			NimStringDesc* w;
			NI key;
			Tsym191843* 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_198157((*r).s, (&(*r).pos));
			(*r).pos += ((NI) 1);
			key = decodevint_198351((*r).s, (&(*r).pos));
			(*r).pos += ((NI) 1);
			LOC9 = 0;
			LOC9 = idtableget_199189((*r).syms, key);
			s = ((Tsym191843*) (LOC9));
			{
				Tidobj168015* LOC14;
				TNimObject* LOC15;
				if (!(s == NIM_NIL)) goto LA12;
				s = newstub_235048(r, w, key);
				asgnRefNoCycle((void**) (&(*s).owner), module);
				LOC14 = 0;
				LOC14 = &s->Sup;
				LOC15 = 0;
				LOC15 = &s->Sup.Sup;
				idtableput_199196((&(*r).syms), LOC14, LOC15);
			}
			LA12: ;
			strtableadd_199103((&rodcompilerprocs_234066), s);
		} LA6: ;
	}
}

N_NIMCALL(void, loadconverters_236258)(Trodreader234030* 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_166218(((NimStringDesc*) &TMP1505));
	}
	LA5: ;
	(*r).pos = (*r).convertersidx;
	{
		while (1) {
			NI d;
			Tlineinfo164338 LOC9;
			Tsym191843* LOC10;
			if (!((NU8)(10) < (NU8)((*r).s[(*r).pos]))) goto LA8;
			d = decodevint_198351((*r).s, (&(*r).pos));
			LOC9 = unknownlineinfo_165027();
			LOC10 = 0;
			LOC10 = rrgetsym_234094(r, d, LOC9);
			{
				if (!((NU8)((*r).s[(*r).pos]) == (NU8)(32))) goto LA13;
				(*r).pos += ((NI) 1);
			}
			LA13: ;
		} LA8: ;
	}
}

N_NIMCALL(void, loadmethods_236285)(Trodreader234030* 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_166218(((NimStringDesc*) &TMP1506));
	}
	LA5: ;
	(*r).pos = (*r).methodsidx;
	{
		while (1) {
			NI d;
			Tlineinfo164338 LOC9;
			Tsym191843* LOC10;
			if (!((NU8)(10) < (NU8)((*r).s[(*r).pos]))) goto LA8;
			d = decodevint_198351((*r).s, (&(*r).pos));
			LOC9 = unknownlineinfo_165027();
			LOC10 = 0;
			LOC10 = rrgetsym_234094(r, d, LOC9);
			(*r).methods = (Tsymseq191815*) incrSeq(&((*r).methods)->Sup, sizeof(Tsym191843*));
			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(Trodreader234030*, handlesymbolfile_234071)(Tsym191843* module) {
	Trodreader234030* result;
	NI32 fileidx;
	NimStringDesc* LOC5;
	NU8 LOC6;
{	result = 0;
	fileidx = ((NI32) ((*module).position));
	{
		if (!!(((gglobaloptions_155128 &(1<<((((NU8) 14))&31)))!=0))) goto LA3;
		(*module).Sup.id = getid_190404();
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = HEX2F_119292(gprojectpath_155235, gprojectname_155234);
	loadmaxids_190506(LOC5);
	LOC6 = 0;
	LOC6 = checkdep_236360(fileidx);
	{
		if (!(gmods_235850->data[fileidx].reason == ((NU8) 0))) goto LA9;
		internalerror_166218(((NimStringDesc*) &TMP1502));
	}
	LA9: ;
	result = gmods_235850->data[fileidx].rd;
	{
		Tidobj168015* 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_199196((&(*result).syms), LOC15, LOC16);
		processinterf_235071(result, module);
		processcompilerprocs_235115(result, module);
		loadconverters_236258(result);
		loadmethods_236285(result);
	}
	goto LA11;
	LA13: ;
	{
		(*module).Sup.id = getid_190404();
	}
	LA11: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode191813*, loadinitsection_234077)(Trodreader234030* r) {
	Tnode191813* 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_166218(((NimStringDesc*) &TMP1510));
	}
	LA5: ;
	oldpos = (*r).pos;
	(*r).pos = (*r).initidx;
	result = newnode_192401(((NU8) 115));
	{
		while (1) {
			NIM_BOOL LOC9;
			NI d;
			NI p;
			Tlineinfo164338 LOC11;
			Tnode191813* 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_198351((*r).s, (&(*r).pos));
			(*r).pos += ((NI) 1);
			p = (*r).pos;
			(*r).pos = (NI)(d + (*r).dataidx);
			LOC11 = unknownlineinfo_165027();
			LOC12 = 0;
			LOC12 = decodenode_234396(r, LOC11);
			addson_193819(result, LOC12);
			(*r).pos = p;
		} LA8: ;
	}
	(*r).pos = oldpos;
	return result;
}

N_NIMCALL(Tnode191813*, getbody_236648)(Tsym191843* s) {
	Tnode191813* result;
	result = 0;
	result = (*(*s).ast).kindU.S6.sons->data[((NI) 6)];
	{
		Trodreader234030* r;
		NI oldpos;
		if (!(result == NIM_NIL)) goto LA3;
		r = gmods_235850->data[(*s).position].rd;
		oldpos = (*r).pos;
		(*r).pos = (*s).offset;
		result = decodenode_234396(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_235850) nimGCunref(gmods_235850);
	gmods_235850 = (Tfilemodulemap235825*) newSeqRC1((&NTI235825), 0);
	initidtable_195057((&gtypetable_234089));
	initstrtable_195007((&rodcompilerprocs_234066));
}

NIM_EXTERNC N_NOINLINE(void, nimsrc_rodreadDatInit)(void) {
static TNimNode* TMP819[5];
static TNimNode* TMP820[9];
NI TMP822;
static char* NIM_CONST TMP821[9] = {
"rrEmpty", 
"rrNone", 
"rrRodDoesNotExist", 
"rrRodInvalid", 
"rrCrcChange", 
"rrDefines", 
"rrOptions", 
"rrInclDeps", 
"rrModDeps"};
static TNimNode* TMP823[23];
static TNimNode* TMP824[5];
static TNimNode TMP811[46];
NTI235823.size = sizeof(Tfilemodulerec235823);
NTI235823.kind = 18;
NTI235823.base = 0;
TMP819[0] = &TMP811[1];
TMP811[1].kind = 1;
TMP811[1].offset = offsetof(Tfilemodulerec235823, filename);
TMP811[1].typ = (&NTI149);
TMP811[1].name = "filename";
TMP819[1] = &TMP811[2];
NTI234005.size = sizeof(NU8);
NTI234005.kind = 14;
NTI234005.base = 0;
NTI234005.flags = 3;
for (TMP822 = 0; TMP822 < 9; TMP822++) {
TMP811[TMP822+3].kind = 1;
TMP811[TMP822+3].offset = TMP822;
TMP811[TMP822+3].name = TMP821[TMP822];
TMP820[TMP822] = &TMP811[TMP822+3];
}
TMP811[12].len = 9; TMP811[12].kind = 2; TMP811[12].sons = &TMP820[0];
NTI234005.node = &TMP811[12];
TMP811[2].kind = 1;
TMP811[2].offset = offsetof(Tfilemodulerec235823, reason);
TMP811[2].typ = (&NTI234005);
TMP811[2].name = "reason";
TMP819[2] = &TMP811[13];
NTI234030.size = sizeof(Trodreader234030);
NTI234030.kind = 17;
NTI234030.base = (&NTI3411);
TMP823[0] = &TMP811[15];
TMP811[15].kind = 1;
TMP811[15].offset = offsetof(Trodreader234030, pos);
TMP811[15].typ = (&NTI108);
TMP811[15].name = "pos";
TMP823[1] = &TMP811[16];
TMP811[16].kind = 1;
TMP811[16].offset = offsetof(Trodreader234030, s);
TMP811[16].typ = (&NTI151);
TMP811[16].name = "s";
TMP823[2] = &TMP811[17];
TMP811[17].kind = 1;
TMP811[17].offset = offsetof(Trodreader234030, options);
TMP811[17].typ = (&NTI155016);
TMP811[17].name = "options";
TMP823[3] = &TMP811[18];
TMP811[18].kind = 1;
TMP811[18].offset = offsetof(Trodreader234030, reason);
TMP811[18].typ = (&NTI234005);
TMP811[18].name = "reason";
TMP823[4] = &TMP811[19];
TMP811[19].kind = 1;
TMP811[19].offset = offsetof(Trodreader234030, moddeps);
TMP811[19].typ = (&NTI191933);
TMP811[19].name = "modDeps";
TMP823[5] = &TMP811[20];
TMP811[20].kind = 1;
TMP811[20].offset = offsetof(Trodreader234030, files);
TMP811[20].typ = (&NTI191933);
TMP811[20].name = "files";
TMP823[6] = &TMP811[21];
TMP811[21].kind = 1;
TMP811[21].offset = offsetof(Trodreader234030, dataidx);
TMP811[21].typ = (&NTI108);
TMP811[21].name = "dataIdx";
TMP823[7] = &TMP811[22];
TMP811[22].kind = 1;
TMP811[22].offset = offsetof(Trodreader234030, convertersidx);
TMP811[22].typ = (&NTI108);
TMP811[22].name = "convertersIdx";
TMP823[8] = &TMP811[23];
TMP811[23].kind = 1;
TMP811[23].offset = offsetof(Trodreader234030, initidx);
TMP811[23].typ = (&NTI108);
TMP811[23].name = "initIdx";
TMP823[9] = &TMP811[24];
TMP811[24].kind = 1;
TMP811[24].offset = offsetof(Trodreader234030, interfidx);
TMP811[24].typ = (&NTI108);
TMP811[24].name = "interfIdx";
TMP823[10] = &TMP811[25];
TMP811[25].kind = 1;
TMP811[25].offset = offsetof(Trodreader234030, compilerprocsidx);
TMP811[25].typ = (&NTI108);
TMP811[25].name = "compilerProcsIdx";
TMP823[11] = &TMP811[26];
TMP811[26].kind = 1;
TMP811[26].offset = offsetof(Trodreader234030, methodsidx);
TMP811[26].typ = (&NTI108);
TMP811[26].name = "methodsIdx";
TMP823[12] = &TMP811[27];
TMP811[27].kind = 1;
TMP811[27].offset = offsetof(Trodreader234030, filename);
TMP811[27].typ = (&NTI149);
TMP811[27].name = "filename";
TMP823[13] = &TMP811[28];
NTI234028.size = sizeof(Tindex234028);
NTI234028.kind = 18;
NTI234028.base = 0;
NTI234028.flags = 2;
TMP824[0] = &TMP811[30];
TMP811[30].kind = 1;
TMP811[30].offset = offsetof(Tindex234028, lastidxkey);
TMP811[30].typ = (&NTI108);
TMP811[30].name = "lastIdxKey";
TMP824[1] = &TMP811[31];
TMP811[31].kind = 1;
TMP811[31].offset = offsetof(Tindex234028, lastidxval);
TMP811[31].typ = (&NTI108);
TMP811[31].name = "lastIdxVal";
TMP824[2] = &TMP811[32];
TMP811[32].kind = 1;
TMP811[32].offset = offsetof(Tindex234028, tab);
TMP811[32].typ = (&NTI199274);
TMP811[32].name = "tab";
TMP824[3] = &TMP811[33];
TMP811[33].kind = 1;
TMP811[33].offset = offsetof(Tindex234028, r);
TMP811[33].typ = (&NTI149);
TMP811[33].name = "r";
TMP824[4] = &TMP811[34];
TMP811[34].kind = 1;
TMP811[34].offset = offsetof(Tindex234028, offset);
TMP811[34].typ = (&NTI108);
TMP811[34].name = "offset";
TMP811[29].len = 5; TMP811[29].kind = 2; TMP811[29].sons = &TMP824[0];
NTI234028.node = &TMP811[29];
TMP811[28].kind = 1;
TMP811[28].offset = offsetof(Trodreader234030, index);
TMP811[28].typ = (&NTI234028);
TMP811[28].name = "index";
TMP823[14] = &TMP811[35];
TMP811[35].kind = 1;
TMP811[35].offset = offsetof(Trodreader234030, imports);
TMP811[35].typ = (&NTI234028);
TMP811[35].name = "imports";
TMP823[15] = &TMP811[36];
TMP811[36].kind = 1;
TMP811[36].offset = offsetof(Trodreader234030, readerindex);
TMP811[36].typ = (&NTI108);
TMP811[36].name = "readerIndex";
TMP823[16] = &TMP811[37];
TMP811[37].kind = 1;
TMP811[37].offset = offsetof(Trodreader234030, line);
TMP811[37].typ = (&NTI108);
TMP811[37].name = "line";
TMP823[17] = &TMP811[38];
TMP811[38].kind = 1;
TMP811[38].offset = offsetof(Trodreader234030, moduleid);
TMP811[38].typ = (&NTI108);
TMP811[38].name = "moduleID";
TMP823[18] = &TMP811[39];
TMP811[39].kind = 1;
TMP811[39].offset = offsetof(Trodreader234030, syms);
TMP811[39].typ = (&NTI191861);
TMP811[39].name = "syms";
TMP823[19] = &TMP811[40];
TMP811[40].kind = 1;
TMP811[40].offset = offsetof(Trodreader234030, memfile);
TMP811[40].typ = (&NTI232208);
TMP811[40].name = "memfile";
TMP823[20] = &TMP811[41];
TMP811[41].kind = 1;
TMP811[41].offset = offsetof(Trodreader234030, methods);
TMP811[41].typ = (&NTI191815);
TMP811[41].name = "methods";
TMP823[21] = &TMP811[42];
TMP811[42].kind = 1;
TMP811[42].offset = offsetof(Trodreader234030, origfile);
TMP811[42].typ = (&NTI149);
TMP811[42].name = "origFile";
TMP823[22] = &TMP811[43];
TMP811[43].kind = 1;
TMP811[43].offset = offsetof(Trodreader234030, inviewmode);
TMP811[43].typ = (&NTI138);
TMP811[43].name = "inViewMode";
TMP811[14].len = 23; TMP811[14].kind = 2; TMP811[14].sons = &TMP823[0];
NTI234030.node = &TMP811[14];
NTI234032.size = sizeof(Trodreader234030*);
NTI234032.kind = 22;
NTI234032.base = (&NTI234030);
NTI234032.marker = TMP834;
TMP811[13].kind = 1;
TMP811[13].offset = offsetof(Tfilemodulerec235823, rd);
TMP811[13].typ = (&NTI234032);
TMP811[13].name = "rd";
TMP819[3] = &TMP811[44];
TMP811[44].kind = 1;
TMP811[44].offset = offsetof(Tfilemodulerec235823, crc);
TMP811[44].typ = (&NTI170015);
TMP811[44].name = "crc";
TMP819[4] = &TMP811[45];
TMP811[45].kind = 1;
TMP811[45].offset = offsetof(Tfilemodulerec235823, crcdone);
TMP811[45].typ = (&NTI138);
TMP811[45].name = "crcDone";
TMP811[0].len = 5; TMP811[0].kind = 2; TMP811[0].sons = &TMP819[0];
NTI235823.node = &TMP811[0];
NTI235825.size = sizeof(Tfilemodulemap235825*);
NTI235825.kind = 24;
NTI235825.base = (&NTI235823);
NTI235825.marker = TMP835;
}

