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

#include <setjmp.h>

#include <string.h>

#include <stdio.h>
typedef struct tstrtable225820 tstrtable225820;
typedef struct tsymseq225818 tsymseq225818;
typedef struct tsym225846 tsym225846;
typedef struct TGenericSeq TGenericSeq;
typedef struct tidtable225864 tidtable225864;
typedef struct tidpairseq225862 tidpairseq225862;
typedef struct tidpair225860 tidpair225860;
typedef struct tidobj200015 tidobj200015;
typedef struct TNimObject TNimObject;
typedef struct tfilemodulemap278293 tfilemodulemap278293;
typedef struct tfilemodulerec278291 tfilemodulerec278291;
typedef struct NimStringDesc NimStringDesc;
typedef struct trodreader276030 trodreader276030;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct TY225936 TY225936;
typedef struct tindex276028 tindex276028;
typedef struct tiitable235274 tiitable235274;
typedef struct tiipairseq235272 tiipairseq235272;
typedef struct tiipair235270 tiipair235270;
typedef struct memfile274208 memfile274208;
typedef struct tcell45135 tcell45135;
typedef struct tcellseq45151 tcellseq45151;
typedef struct tgcheap47216 tgcheap47216;
typedef struct tcellset45147 tcellset45147;
typedef struct tpagedesc45143 tpagedesc45143;
typedef struct tmemregion27410 tmemregion27410;
typedef struct tsmallchunk26640 tsmallchunk26640;
typedef struct tllchunk27404 tllchunk27404;
typedef struct tbigchunk26642 tbigchunk26642;
typedef struct tintset26617 tintset26617;
typedef struct ttrunk26613 ttrunk26613;
typedef struct tavlnode27408 tavlnode27408;
typedef struct tgcstat47214 tgcstat47214;
typedef struct ttypeseq225848 ttypeseq225848;
typedef struct ttype225852 ttype225852;
typedef struct tscope225840 tscope225840;
typedef struct TY225947 TY225947;
typedef struct tinstantiation225836 tinstantiation225836;
typedef struct tident200021 tident200021;
typedef struct tlineinfo195539 tlineinfo195539;
typedef struct tnode225816 tnode225816;
typedef struct tloc225830 tloc225830;
typedef struct trope177009 trope177009;
typedef struct tlib225834 tlib225834;
typedef struct TY84945 TY84945;
typedef struct Exception Exception;
typedef struct TSafePoint TSafePoint;
typedef struct tnodeseq225810 tnodeseq225810;
typedef struct tlistentry127022 tlistentry127022;
typedef struct tbasechunk26638 tbasechunk26638;
typedef struct tfreecell26630 tfreecell26630;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  tstrtable225820  {
NI Counter;
tsymseq225818* Data;
};
struct  tidpair225860  {
tidobj200015* Key;
TNimObject* Val;
};
struct  tidtable225864  {
NI Counter;
tidpairseq225862* Data;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  tfilemodulerec278291  {
NimStringDesc* Filename;
NU8 Reason;
trodreader276030* Rd;
NI32 Crc;
NIM_BOOL Crcdone;
};
typedef N_NIMCALL_PTR(void, TY3089) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3094) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3089 marker;
TY3094 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  tiipair235270  {
NI Key;
NI Val;
};
struct  tiitable235274  {
NI Counter;
tiipairseq235272* Data;
};
struct  tindex276028  {
NI Lastidxkey;
NI Lastidxval;
tiitable235274 Tab;
NimStringDesc* R;
NI Offset;
};
struct  memfile274208  {
void* Mem;
NI Size;
int Handle;
};
struct  trodreader276030  {
  TNimObject Sup;
NI Pos;
NCSTRING S;
NU32 Options;
NU8 Reason;
TY225936* Moddeps;
TY225936* Files;
NI Dataidx;
NI Convertersidx;
NI Initidx;
NI Interfidx;
NI Compilerprocsidx;
NI Methodsidx;
NimStringDesc* Filename;
tindex276028 Index;
tindex276028 Imports;
NI Readerindex;
NI Line;
NI Moduleid;
tidtable225864 Syms;
memfile274208 Memfile;
tsymseq225818* Methods;
NimStringDesc* Origfile;
NIM_BOOL Inviewmode;
};
struct  tcell45135  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq45151  {
NI Len;
NI Cap;
tcell45135** D;
};
struct  tcellset45147  {
NI Counter;
NI Max;
tpagedesc45143* Head;
tpagedesc45143** Data;
};
typedef tsmallchunk26640* TY27422[512];
typedef ttrunk26613* ttrunkbuckets26615[256];
struct  tintset26617  {
ttrunkbuckets26615 Data;
};
struct  tmemregion27410  {
NI Minlargeobj;
NI Maxlargeobj;
TY27422 Freesmallchunks;
tllchunk27404* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26642* Freechunkslist;
tintset26617 Chunkstarts;
tavlnode27408* Root;
tavlnode27408* Deleted;
tavlnode27408* Last;
tavlnode27408* Freeavlnodes;
};
struct  tgcstat47214  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47216  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq45151 Zct;
tcellseq45151 Decstack;
tcellset45147 Cycleroots;
tcellseq45151 Tempstack;
NI Recgclock;
tmemregion27410 Region;
tgcstat47214 Stat;
};
struct  tidobj200015  {
  TNimObject Sup;
NI Id;
};
struct  tlineinfo195539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  tloc225830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype225852* T;
trope177009* R;
trope177009* Heaproot;
};
struct  tsym225846  {
  tidobj200015 Sup;
NU8 Kind;
union {
struct {ttypeseq225848* Typeinstcache;
tscope225840* Typscope;
} S1;
struct {TY225947* Procinstcache;
tscope225840* Scope;
} S2;
struct {TY225947* Usedgenerics;
tstrtable225820 Tab;
} S3;
struct {tsym225846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype225852* Typ;
tident200021* Name;
tlineinfo195539 Info;
tsym225846* Owner;
NU32 Flags;
tnode225816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc225830 Loc;
tlib225834* Annex;
tnode225816* Constraint;
};
struct TY84945 {
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;
} TY15009;
struct  TSafePoint  {
TSafePoint* prev;
NI status;
jmp_buf context;
NIM_BOOL hasRaiseAction;
TY15009 raiseAction;
};
typedef NimStringDesc* TY197620[4];
typedef NimStringDesc* TY276019[9];
struct  ttype225852  {
  tidobj200015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq225848* Sons;
tnode225816* N;
tsym225846* Owner;
tsym225846* Sym;
tsym225846* Destructor;
tsym225846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc225830 Loc;
};
struct  tnode225816  {
ttype225852* Typ;
tlineinfo195539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym225846* Sym;
} S4;
struct {tident200021* Ident;
} S5;
struct {tnodeseq225810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
struct  tlistentry127022  {
  TNimObject Sup;
tlistentry127022* Prev;
tlistentry127022* Next;
};
struct  tlib225834  {
  tlistentry127022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope177009* Name;
tnode225816* Path;
};
typedef NI TY26620[8];
struct  tpagedesc45143  {
tpagedesc45143* Next;
NI Key;
TY26620 Bits;
};
struct  tbasechunk26638  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26640  {
  tbasechunk26638 Sup;
tsmallchunk26640* Next;
tsmallchunk26640* Prev;
tfreecell26630* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27404  {
NI Size;
NI Acc;
tllchunk27404* Next;
};
struct  tbigchunk26642  {
  tbasechunk26638 Sup;
tbigchunk26642* Next;
tbigchunk26642* Prev;
NI Align;
NF Data;
};
struct  ttrunk26613  {
ttrunk26613* Next;
NI Key;
TY26620 Bits;
};
typedef tavlnode27408* TY27414[2];
struct  tavlnode27408  {
TY27414 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  tscope225840  {
NI Depthlevel;
tstrtable225820 Symbols;
tnodeseq225810* Usingsyms;
tscope225840* Parent;
};
struct  tinstantiation225836  {
tsym225846* Sym;
ttypeseq225848* Concretetypes;
TY225936* Usedby;
};
struct  tident200021  {
  tidobj200015 Sup;
NimStringDesc* S;
tident200021* Next;
NI H;
};
struct  trope177009  {
  TNimObject Sup;
trope177009* Left;
trope177009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tfreecell26630  {
tfreecell26630* Next;
NI Zerofield;
};
struct tsymseq225818 {
  TGenericSeq Sup;
  tsym225846* data[SEQ_DECL_SIZE];
};
struct tidpairseq225862 {
  TGenericSeq Sup;
  tidpair225860 data[SEQ_DECL_SIZE];
};
struct tfilemodulemap278293 {
  TGenericSeq Sup;
  tfilemodulerec278291 data[SEQ_DECL_SIZE];
};
struct TY225936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct tiipairseq235272 {
  TGenericSeq Sup;
  tiipair235270 data[SEQ_DECL_SIZE];
};
struct ttypeseq225848 {
  TGenericSeq Sup;
  ttype225852* data[SEQ_DECL_SIZE];
};
struct TY225947 {
  TGenericSeq Sup;
  tinstantiation225836* data[SEQ_DECL_SIZE];
};
struct tnodeseq225810 {
  TGenericSeq Sup;
  tnode225816* data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP830)(void* p, NI op);
N_NIMCALL(void, TMP831)(void* p, NI op);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_50804)(tcell45135* c);
static N_INLINE(void, rtladdzct_50404)(tcell45135* c);
N_NOINLINE(void, addzct_48817)(tcellseq45151* s, tcell45135* c);
static N_INLINE(NIM_BOOL, canbecycleroot_48867)(tcell45135* c);
static N_INLINE(void, rtladdcycleroot_49629)(tcell45135* c);
N_NOINLINE(void, incl_45871)(tcellset45147* s, tcell45135* cell);
static N_INLINE(tcell45135*, usrtocell_48846)(void* usr);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, initidtable_226167)(tidtable225864* x);
N_NIMCALL(void, initstrtable_226153)(tstrtable225820* x);
static N_INLINE(NI, getid_224404)(void);
N_NIMCALL(void, loadmaxids_224519)(NimStringDesc* project);
N_NIMCALL(NimStringDesc*, HEX2F_117499)(NimStringDesc* head, NimStringDesc* tail);
N_NIMCALL(NU8, checkdep_278801)(NI32 fileidx);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(NimStringDesc*, tofilename_197025)(NI32 fileidx);
N_NIMCALL(NI32, getcrc_278747)(NI32 fileidx);
N_NIMCALL(void, internalerror_198006)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_198126)(TY84945 x_198130);
N_NIMCALL(NI32, crcfromfile_176046)(NimStringDesc* filename);
N_NIMCALL(NimStringDesc*, togeneratedfile_169960)(NimStringDesc* path, NimStringDesc* ext);
N_NIMCALL(NimStringDesc*, withpackagename_169946)(NimStringDesc* path);
N_NIMCALL(trodreader276030*, newrodreader_278108)(NimStringDesc* modfilename, NI32 crc, NI readerindex);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
N_NIMCALL(memfile274208, open_274807)(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);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_51225)(tcell45135* c);
N_NIMCALL(void, reraiseException)(void);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
N_NIMCALL(NIM_BOOL, startswith_278075)(NCSTRING buf, NimStringDesc* token, NI pos);
N_NIMCALL(void, initiitable_235282)(tiitable235274* x);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
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_277623)(trodreader276030* r, NI32 crc);
N_NIMCALL(NimStringDesc*, rdword_277273)(trodreader276030* r);
N_NIMCALL(NI, hashString)(NimStringDesc* s);
N_NIMCALL(NI, decodevint_234359)(NCSTRING s, NI* pos);
static N_INLINE(void, setid_224446)(NI id);
N_NIMCALL(NimStringDesc*, decodestr_234155)(NCSTRING s, NI* pos);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(NIM_BOOL, cmdchangetriggersrecompilation_277589)(NU8 old, NU8 new_277592);
N_NIMCALL(NIM_BOOL, isdefined_201046)(tident200021* symbol);
N_NIMCALL(tident200021*, getident_200472)(NimStringDesc* identifier);
N_NIMCALL(NI, countdefinedsymbols_201098)(void);
N_NIMCALL(NimStringDesc*, findmodule_170366)(NimStringDesc* modulename, NimStringDesc* currentmodule);
N_NIMCALL(NI32, fileinfoidx_195747)(NimStringDesc* filename);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(NimStringDesc*, tofullpath_197037)(NI32 fileidx);
N_NIMCALL(void, skipsection_277163)(trodreader276030* r);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(void, processindex_277473)(trodreader276030* r, tindex276028* idx, FILE* outf);
N_NIMCALL(void, iitableput_235296)(tiitable235274* t, NI key, NI val);
N_NIMCALL(void, write_13081)(FILE* f, NimStringDesc** a, NI aLen0);
N_NIMCALL(void, rawmessage_197733)(NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
N_NIMCALL(void, close_275249)(memfile274208* f);
N_NIMCALL(void, idtableput_235196)(tidtable225864* t, tidobj200015* key, TNimObject* val);
N_NIMCALL(void, processinterf_277344)(trodreader276030* r, tsym225846* module);
N_NIMCALL(tsym225846*, newstub_277316)(trodreader276030* r, NimStringDesc* name, NI id);
N_NIMCALL(void, registerid_224201)(tidobj200015* id);
N_NIMCALL(void, strtableadd_235103)(tstrtable225820* t, tsym225846* n);
N_NIMCALL(void, processcompilerprocs_277407)(trodreader276030* r, tsym225846* module);
N_NIMCALL(TNimObject*, idtableget_235189)(tidtable225864 t, NI key);
N_NIMCALL(void, loadconverters_278667)(trodreader276030* r);
N_NIMCALL(tsym225846*, rrgetsym_276094)(trodreader276030* r, NI id, tlineinfo195539 info);
N_NIMCALL(NI, iitableget_235289)(tiitable235274 t, NI key);
N_NIMCALL(void, encodevint_234304)(NI x, NimStringDesc** result);
N_NIMCALL(void, internalerror_197987)(tlineinfo195539 info, NimStringDesc* errmsg);
N_NIMCALL(trodreader276030*, getreader_278400)(NI moduleid);
N_NIMCALL(tsym225846*, decodesymsafepos_278327)(trodreader276030* rd, NI offset, tlineinfo195539 info);
N_NIMCALL(tsym225846*, decodesym_276892)(trodreader276030* r, tlineinfo195539 info);
N_NIMCALL(void, genericReset)(void* dest, TNimType* mt);
N_NIMCALL(ttype225852*, rrgettype_276102)(trodreader276030* r, NI id, tlineinfo195539 info);
N_NIMCALL(ttype225852*, decodetype_276636)(trodreader276030* r, tlineinfo195539 info);
N_NIMCALL(tnode225816*, decodenode_276519)(trodreader276030* r, tlineinfo195539 finfo);
N_NIMCALL(tnode225816*, decodenodelazybody_276252)(trodreader276030* r, tlineinfo195539 finfo, tsym225846* belongsto);
N_NIMCALL(tnode225816*, newnodei_226138)(NU8 kind, tlineinfo195539 info);
N_NIMCALL(void, decodelineinfo_276110)(trodreader276030* r, tlineinfo195539* info);
N_NIMCALL(tlineinfo195539, newlineinfo_196128)(NI32 fileinfoidx, NI line, NI col);
N_NIMCALL(NI64, decodevbiggestint_234518)(NCSTRING s, NI* pos);
N_NIMCALL(NF, nsuParseFloat)(NimStringDesc* s);
N_NIMCALL(void, addsonnilallowed_230898)(tnode225816* father, tnode225816* son);
N_NIMCALL(void, skipnode_276160)(trodreader276030* r);
N_NIMCALL(tlineinfo195539, unknownlineinfo_196405)(void);
N_NIMCALL(void, decodeloc_276530)(trodreader276030* r, tloc225830* loc, tlineinfo195539 info);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(trope177009*, torope_177076)(NimStringDesc* s);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(void, rawaddson_230562)(ttype225852* father, ttype225852* son);
N_NIMCALL(tlib225834*, decodelib_276827)(trodreader276030* r, tlineinfo195539 info);
N_NIMCALL(void, rawloadstub_276083)(tsym225846* s);
N_NIMCALL(void, loadmethods_278698)(trodreader276030* r);
N_NIMCALL(tnode225816*, newnode_226090)(NU8 kind);
N_NIMCALL(void, addson_226287)(tnode225816* father, tnode225816* son);
static N_INLINE(void, gcdisable_8001)(void);
static N_INLINE(void, gcenable_8003)(void);
STRING_LITERAL(TMP1364, "compiler/rodread.nim", 20);
NIM_CONST TY84945 TMP1363 = {((NimStringDesc*) &TMP1364),
798}
;
STRING_LITERAL(TMP1365, "rod", 3);
STRING_LITERAL(TMP1367, "NIM:", 4);
STRING_LITERAL(TMP1368, "", 0);
STRING_LITERAL(TMP1369, "1215", 4);
STRING_LITERAL(TMP1370, "CRC", 3);
STRING_LITERAL(TMP1371, "ID", 2);
STRING_LITERAL(TMP1372, "ORIGFILE", 8);
STRING_LITERAL(TMP1373, "OPTIONS", 7);
STRING_LITERAL(TMP1374, "GOPTIONS", 8);
STRING_LITERAL(TMP1375, "CMD", 3);
STRING_LITERAL(TMP1376, "DEFINES", 7);
STRING_LITERAL(TMP1377, "FILES", 5);
STRING_LITERAL(TMP1378, "INCLUDES", 8);
STRING_LITERAL(TMP1379, "DEPS", 4);
STRING_LITERAL(TMP1380, "INTERF", 6);
STRING_LITERAL(TMP1381, "COMPILERPROCS", 13);
STRING_LITERAL(TMP1382, "INDEX", 5);
STRING_LITERAL(TMP1383, "IMPORTS", 7);
STRING_LITERAL(TMP1384, "CONVERTERS", 10);
STRING_LITERAL(TMP1385, "METHODS", 7);
STRING_LITERAL(TMP1386, "DATA", 4);
STRING_LITERAL(TMP1387, "INIT", 4);
STRING_LITERAL(TMP1391, "skipSection ", 12);
STRING_LITERAL(TMP1392, " ", 1);
STRING_LITERAL(TMP1393, "\012", 1);
STRING_LITERAL(TMP1394, "invalid section: \'", 18);
STRING_LITERAL(TMP1395, "\' at ", 5);
STRING_LITERAL(TMP1396, " in ", 4);
STRING_LITERAL(TMP1397, "no need to recompile: $1", 24);
STRING_LITERAL(TMP1398, "symbol file for $1 does not exist", 33);
STRING_LITERAL(TMP1399, "symbol file for $1 has the wrong version", 40);
STRING_LITERAL(TMP1400, "file edited since last compilation: $1", 38);
STRING_LITERAL(TMP1401, "list of conditional symbols changed for: $1", 43);
STRING_LITERAL(TMP1402, "list of options changed for: $1", 31);
STRING_LITERAL(TMP1403, "an include file edited: $1", 26);
STRING_LITERAL(TMP1404, "a module $1 depends on has changed", 34);
NIM_CONST TY276019 reasontofrmt_276018 = {((NimStringDesc*) &TMP1368),
((NimStringDesc*) &TMP1397),
((NimStringDesc*) &TMP1398),
((NimStringDesc*) &TMP1399),
((NimStringDesc*) &TMP1400),
((NimStringDesc*) &TMP1401),
((NimStringDesc*) &TMP1402),
((NimStringDesc*) &TMP1403),
((NimStringDesc*) &TMP1404)}
;
STRING_LITERAL(TMP1405, "handleSymbolFile", 16);
STRING_LITERAL(TMP1406, "processInterf", 13);
STRING_LITERAL(TMP1407, "processCompilerProcs", 20);
STRING_LITERAL(TMP1408, "importConverters", 16);
STRING_LITERAL(TMP1410, "missing from both indexes: +", 28);
STRING_LITERAL(TMP1411, "dataIdx == 0", 12);
STRING_LITERAL(TMP1412, "decodeSym: no id", 16);
STRING_LITERAL(TMP1413, "decodeSym: no ident", 19);
STRING_LITERAL(TMP1414, "decodeSym: wrong id", 19);
STRING_LITERAL(TMP1415, "rrGetType", 9);
STRING_LITERAL(TMP1416, "decodeType: no id", 17);
STRING_LITERAL(TMP1417, "decodeNode: nkIdent", 19);
STRING_LITERAL(TMP1418, "decodeNode: nkSym", 17);
STRING_LITERAL(TMP1419, "decodeNode: \')\' missing", 23);
STRING_LITERAL(TMP1420, "decodeNode: \'(\' missing ", 24);
STRING_LITERAL(TMP1421, "decodeLoc ", 10);
STRING_LITERAL(TMP1422, "decodeType ^(", 13);
STRING_LITERAL(TMP1423, "decodeLib: 1", 12);
STRING_LITERAL(TMP1424, "decodeLib: 2", 12);
STRING_LITERAL(TMP1425, "rrGetSym: no reader found: +", 28);
STRING_LITERAL(TMP1426, "loadStub", 8);
STRING_LITERAL(TMP1427, "loadStub: invalid key", 21);
STRING_LITERAL(TMP1428, "loadStub: wrong symbol", 22);
STRING_LITERAL(TMP1429, "loadStub: wrong ID", 18);
STRING_LITERAL(TMP1430, "loadMethods", 11);
STRING_LITERAL(TMP1432, "loadInitSection", 15);
tstrtable225820 rodcompilerprocs_276066;
tidtable225864 gtypetable_276089;
tfilemodulemap278293* gmods_278322;
TNimType NTI278291; /* TFileModuleRec */
extern TNimType NTI149; /* string */
TNimType NTI276005; /* TReasonForRecompile */
extern TNimType NTI3211; /* RootObj */
TNimType NTI276030; /* TRodReader */
extern TNimType NTI108; /* int */
extern TNimType NTI151; /* cstring */
extern TNimType NTI169016; /* TOptions */
extern TNimType NTI225936; /* seq[int32] */
TNimType NTI276028; /* TIndex */
extern TNimType NTI235274; /* TIITable */
extern TNimType NTI225864; /* TIdTable */
extern TNimType NTI274208; /* MemFile */
extern TNimType NTI225818; /* TSymSeq */
extern TNimType NTI138; /* bool */
TNimType NTI276032; /* PRodReader */
extern TNimType NTI176010; /* TCrc32 */
TNimType NTI278293; /* TFileModuleMap */
extern tgcheap47216 gch_47244;
extern NU32 gglobaloptions_169118;
extern NI gfrontendid_224012;
extern NimStringDesc* gprojectpath_169235;
extern NimStringDesc* gprojectname_169234;
extern TSafePoint* exchandler_16443;
extern TNimType NTI3233; /* OSError */
extern Exception* currexception_16445;
extern NU32 goptions_169116;
extern NU8 gcmd_169120;
extern NI32 systemfileidx_195643;
extern NI gverbosity_169127;
extern TNimType NTI225814; /* PSym */
extern TNimType NTI225846; /* TSym */
extern TNimType NTI225812; /* PType */
extern TNimType NTI225852; /* TType */
extern TNimType NTI225844; /* PLib */
extern TNimType NTI225834; /* TLib */
N_NIMCALL(void, TMP830)(void* p, NI op) {
	trodreader276030* a;
	a = (trodreader276030*)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, TMP831)(void* p, NI op) {
	tfilemodulemap278293* a;
	NI LOC1;
	a = (tfilemodulemap278293*)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_50404)(tcell45135* c) {
	addzct_48817((&gch_47244.Zct), c);
}

static N_INLINE(NIM_BOOL, canbecycleroot_48867)(tcell45135* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).Typ).flags &(1<<((((NU8) 1))&7)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_49629)(tcell45135* c) {
	{
		if (!!((((NI) ((NI)((*c).Refcount & 3))) == 3))) goto LA3;
		(*c).Refcount = (NI)((NI)((*c).Refcount & -4) | 3);
		incl_45871((&gch_47244.Cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, decref_50804)(tcell45135* c) {
	{
		(*c).Refcount -= 8;
		if (!((NU64)((*c).Refcount) < (NU64)(8))) goto LA3;
		rtladdzct_50404(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_48867(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_49629(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(tcell45135*, usrtocell_48846)(void* usr) {
	tcell45135* result;
	result = 0;
	result = ((tcell45135*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((NI)sizeof(tcell45135))))));
	return result;
}

static N_INLINE(void, nimGCunref)(void* p) {
	tcell45135* LOC1;
	LOC1 = 0;
	LOC1 = usrtocell_48846(p);
	decref_50804(LOC1);
}

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

N_NIMCALL(NI32, getcrc_278747)(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_278322->Sup.len);
		LA4: ;
		if (!!(LOC3)) goto LA5;
		LOC7 = 0;
		LOC7 = HEX24_198126(TMP1363);
		internalerror_198006(LOC7);
	}
	LA5: ;
	{
		if (!gmods_278322->data[fileidx].Crcdone) goto LA10;
		result = gmods_278322->data[fileidx].Crc;
		goto BeforeRet;
	}
	LA10: ;
	LOC12 = 0;
	LOC12 = tofilename_197025(fileidx);
	result = crcfromfile_176046(LOC12);
	gmods_278322->data[fileidx].Crc = result;
	BeforeRet: ;
	return result;
}

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

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

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

static N_INLINE(void, incref_51225)(tcell45135* c) {
	(*c).Refcount = (NI)((NU64)((*c).Refcount) + (NU64)(8));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_48867(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_49629(c);
	}
	LA4: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		tcell45135* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_48846(src);
		incref_51225(LOC5);
	}
	LA3: ;
	{
		tcell45135* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_48846((*dest));
		decref_50804(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

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

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tcell45135* c;
	c = usrtocell_48846(p);
	{
		(*c).Refcount -= 8;
		if (!((NU64)((*c).Refcount) < (NU64)(8))) goto LA3;
		rtladdzct_50404(c);
	}
	LA3: ;
}

N_NIMCALL(NIM_BOOL, startswith_278075)(NCSTRING buf, NimStringDesc* token, NI pos) {
	NIM_BOOL result;
	NI s;
	result = 0;
	s = 0;
	{
		while (1) {
			NIM_BOOL LOC3;
			LOC3 = 0;
			LOC3 = (s < token->Sup.len);
			if (!(LOC3)) goto LA4;
			LOC3 = ((NU8)(buf[(NI64)(pos + s)]) == (NU8)(token->data[s]));
			LA4: ;
			if (!LOC3) goto LA2;
			s += 1;
		} LA2: ;
	}
	result = (s == token->Sup.len);
	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)), (NI64)((*a).Sup.len * 1));
	LOC11 = (LOC13 == ((NI32) 0));
	LA12: ;
	result = LOC11;
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

N_NIMCALL(trodreader276030*, newrodreader_278108)(NimStringDesc* modfilename, NI32 crc, NI readerindex) {
	trodreader276030* result;
	TSafePoint TMP1366;
	trodreader276030* r;
	NimStringDesc* LOC4;
	result = 0;
	result = (trodreader276030*) newObj((&NTI276032), sizeof(trodreader276030));
	(*result).Sup.m_type = (&NTI276030);
	pushSafePoint(&TMP1366);
	TMP1366.status = _setjmp(TMP1366.context);
	if (TMP1366.status == 0) {
		(*result).Memfile = open_274807(modfilename, ((NU8) 0), -1, 0, -1);
		popSafePoint();
	}
	else {
		popSafePoint();
		if (isObj(getCurrentException()->Sup.m_type, (&NTI3233))) {
			TMP1366.status = 0;
			result = NIM_NIL;
			popCurrentException();
			goto BeforeRet;
			popCurrentException();
		}
	}
	if (TMP1366.status != 0) reraiseException();
	if ((*result).Files) nimGCunrefNoCycle((*result).Files);
	(*result).Files = (TY225936*) newSeqRC1((&NTI225936), 0);
	if ((*result).Moddeps) nimGCunrefNoCycle((*result).Moddeps);
	(*result).Moddeps = (TY225936*) newSeqRC1((&NTI225936), 0);
	if ((*result).Methods) nimGCunrefNoCycle((*result).Methods);
	(*result).Methods = (tsymseq225818*) newSeqRC1((&NTI225818), 0);
	r = result;
	(*r).Reason = ((NU8) 1);
	(*r).Pos = 0;
	(*r).Line = 1;
	(*r).Readerindex = readerindex;
	LOC4 = 0;
	LOC4 = (*r).Filename; (*r).Filename = copyStringRC1(modfilename);
	if (LOC4) nimGCunrefNoCycle(LOC4);
	initidtable_226167((&(*r).Syms));
	(*r).S = ((NCSTRING) ((*r).Memfile.Mem));
	{
		NIM_BOOL LOC7;
		NimStringDesc* version;
		LOC7 = 0;
		LOC7 = startswith_278075((*r).S, ((NimStringDesc*) &TMP1367), 0);
		if (!LOC7) goto LA8;
		initiitable_235282((&(*r).Index.Tab));
		initiitable_235282((&(*r).Imports.Tab));
		(*r).Pos += 4;
		version = copyString(((NimStringDesc*) &TMP1368));
		{
			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 += 1;
			} LA11: ;
		}
		{
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(10))) goto LA14;
			(*r).Pos += 1;
		}
		LA14: ;
		{
			if (!!(eqStrings(version, ((NimStringDesc*) &TMP1369)))) goto LA18;
			result = NIM_NIL;
		}
		LA18: ;
	}
	goto LA5;
	LA8: ;
	{
		result = NIM_NIL;
	}
	LA5: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(NimStringDesc*, rdword_277273)(trodreader276030* r) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP1368));
	{
		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 += 1;
		} LA2: ;
	}
	return result;
}

static N_INLINE(void, setid_224446)(NI id) {
	gfrontendid_224012 = ((gfrontendid_224012 >= (NI64)(id + 1)) ? gfrontendid_224012 : (NI64)(id + 1));
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		tcell45135* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_48846(src);
		(*c).Refcount += 8;
	}
	LA3: ;
	{
		tcell45135* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_48846((*dest));
		{
			(*c).Refcount -= 8;
			if (!((NU64)((*c).Refcount) < (NU64)(8))) goto LA11;
			rtladdzct_50404(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(NIM_BOOL, cmdchangetriggersrecompilation_277589)(NU8 old, NU8 new_277592) {
	NIM_BOOL result;
	result = 0;
	{
		if (!(old == new_277592)) 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_277592)&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;
}

static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	memcpy(((NCSTRING) ((&(*dest).data[((*dest).Sup.len)- 0]))), ((NCSTRING) ((*src).data)), (NI64)((*src).Sup.len + 1));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(void, skipsection_277163)(trodreader276030* 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 += 1;
			} LA6: ;
		}
	}
	goto LA1;
	LA3: ;
	{
		NI c;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(40))) goto LA8;
		c = 0;
		(*r).Pos += 1;
		{
			while (1) {
				switch (((NU8)((*r).S[(*r).Pos]))) {
				case 10:
				{
					(*r).Line += 1;
				}
				break;
				case 40:
				{
					c += 1;
				}
				break;
				case 41:
				{
					{
						if (!(c == 0)) goto LA17;
						(*r).Pos += 1;
						goto LA10;
					}
					goto LA15;
					LA17: ;
					{
						if (!(0 < c)) goto LA20;
						c -= 1;
					}
					goto LA15;
					LA20: ;
					LA15: ;
				}
				break;
				case 0:
				{
					goto LA10;
				}
				break;
				default:
				{
				}
				break;
				}
				(*r).Pos += 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*) &TMP1391));
appendString(LOC25, LOC26);
		internalerror_198006(LOC25);
	}
	LA1: ;
}

N_NIMCALL(void, processindex_277473)(trodreader276030* r, tindex276028* idx, FILE* outf) {
	NI key;
	NI val;
	NI tmp;
	key = 0;
	val = 0;
	tmp = 0;
	(*r).Pos += 2;
	(*r).Line += 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_234359((*r).S, (&(*r).Pos));
			{
				NI LOC9;
				if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(32))) goto LA7;
				(*r).Pos += 1;
				key = (NI64)((*idx).Lastidxkey + tmp);
				LOC9 = 0;
				LOC9 = decodevint_234359((*r).S, (&(*r).Pos));
				val = (NI64)(LOC9 + (*idx).Lastidxval);
			}
			goto LA5;
			LA7: ;
			{
				key = (NI64)((*idx).Lastidxkey + 1);
				val = (NI64)(tmp + (*idx).Lastidxval);
			}
			LA5: ;
			iitableput_235296((&(*idx).Tab), key, val);
			{
				TY197620 LOC15;
				if (!!(outf == 0)) goto LA13;
				memset((void*)LOC15, 0, sizeof(LOC15));
				LOC15[0] = nimIntToStr(key);
				LOC15[1] = copyString(((NimStringDesc*) &TMP1392));
				LOC15[2] = nimIntToStr(val);
				LOC15[3] = copyString(((NimStringDesc*) &TMP1393));
				write_13081(outf, LOC15, 4);
			}
			LA13: ;
			(*idx).Lastidxkey = key;
			(*idx).Lastidxval = val;
			setid_224446(key);
			{
				if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(10))) goto LA18;
				(*r).Pos += 1;
				(*r).Line += 1;
			}
			LA18: ;
		} LA2: ;
	}
	{
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(41))) goto LA22;
		(*r).Pos += 1;
	}
	LA22: ;
}

N_NIMCALL(void, processrodfile_277623)(trodreader276030* 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_277273(r);
			{
				if (!!(((*r).Reason == ((NU8) 1)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			switch (hashString(section) & 31) {
			case 0: 
if (eqStrings(section, ((NimStringDesc*) &TMP1371))) goto LA8;
if (eqStrings(section, ((NimStringDesc*) &TMP1372))) goto LA9;
break;
			case 1: 
if (eqStrings(section, ((NimStringDesc*) &TMP1374))) goto LA11;
break;
			case 4: 
if (eqStrings(section, ((NimStringDesc*) &TMP1378))) goto LA15;
break;
			case 9: 
if (eqStrings(section, ((NimStringDesc*) &TMP1377))) goto LA14;
break;
			case 10: 
if (eqStrings(section, ((NimStringDesc*) &TMP1375))) goto LA12;
break;
			case 11: 
if (eqStrings(section, ((NimStringDesc*) &TMP1370))) goto LA7;
if (eqStrings(section, ((NimStringDesc*) &TMP1376))) goto LA13;
break;
			case 12: 
if (eqStrings(section, ((NimStringDesc*) &TMP1387))) goto LA24;
break;
			case 13: 
if (eqStrings(section, ((NimStringDesc*) &TMP1386))) goto LA23;
break;
			case 14: 
if (eqStrings(section, ((NimStringDesc*) &TMP1373))) goto LA10;
break;
			case 21: 
if (eqStrings(section, ((NimStringDesc*) &TMP1383))) goto LA20;
break;
			case 25: 
if (eqStrings(section, ((NimStringDesc*) &TMP1381))) goto LA18;
if (eqStrings(section, ((NimStringDesc*) &TMP1382))) goto LA19;
break;
			case 28: 
if (eqStrings(section, ((NimStringDesc*) &TMP1379))) goto LA16;
break;
			case 29: 
if (eqStrings(section, ((NimStringDesc*) &TMP1384))) goto LA21;
break;
			case 31: 
if (eqStrings(section, ((NimStringDesc*) &TMP1380))) goto LA17;
if (eqStrings(section, ((NimStringDesc*) &TMP1385))) goto LA22;
break;
			}
			goto LA25;
			LA7: ;
			{
				(*r).Pos += 1;
				{
					NI LOC30;
					LOC30 = 0;
					LOC30 = decodevint_234359((*r).S, (&(*r).Pos));
					if (!!((((NI) (crc)) == LOC30))) goto LA31;
					(*r).Reason = ((NU8) 4);
				}
				LA31: ;
			}
			goto LA26;
			LA8: ;
			{
				(*r).Pos += 1;
				(*r).Moduleid = decodevint_234359((*r).S, (&(*r).Pos));
				setid_224446((*r).Moduleid);
			}
			goto LA26;
			LA9: ;
			{
				(*r).Pos += 1;
				asgnRefNoCycle((void**) (&(*r).Origfile), decodestr_234155((*r).S, (&(*r).Pos)));
			}
			goto LA26;
			LA10: ;
			{
				NI LOC36;
				(*r).Pos += 1;
				LOC36 = 0;
				LOC36 = decodevint_234359((*r).S, (&(*r).Pos));
				(*r).Options = ((NU32) (((NI32) (LOC36))));
				{
					if (!!((goptions_169116 == (*r).Options))) goto LA39;
					(*r).Reason = ((NU8) 6);
				}
				LA39: ;
			}
			goto LA26;
			LA11: ;
			{
				NU32 dep;
				NI LOC42;
				(*r).Pos += 1;
				LOC42 = 0;
				LOC42 = decodevint_234359((*r).S, (&(*r).Pos));
				dep = ((NU32) (((NI32) (LOC42))));
				{
					if (!!((gglobaloptions_169118 == dep))) goto LA45;
					(*r).Reason = ((NU8) 6);
				}
				LA45: ;
			}
			goto LA26;
			LA12: ;
			{
				NU8 dep;
				NI LOC48;
				(*r).Pos += 1;
				LOC48 = 0;
				LOC48 = decodevint_234359((*r).S, (&(*r).Pos));
				dep = ((NU8) (((NI32) (LOC48))));
				{
					NIM_BOOL LOC51;
					LOC51 = 0;
					LOC51 = cmdchangetriggersrecompilation_277589(dep, gcmd_169120);
					if (!LOC51) goto LA52;
					(*r).Reason = ((NU8) 6);
				}
				LA52: ;
			}
			goto LA26;
			LA13: ;
			{
				(*r).Pos += 1;
				d = 0;
				{
					while (1) {
						if (!((NU8)(10) < (NU8)((*r).S[(*r).Pos]))) goto LA56;
						w = decodestr_234155((*r).S, (&(*r).Pos));
						d += 1;
						{
							tident200021* LOC59;
							NIM_BOOL LOC60;
							LOC59 = 0;
							LOC59 = getident_200472(w);
							LOC60 = 0;
							LOC60 = isdefined_201046(LOC59);
							if (!!(LOC60)) goto LA61;
							(*r).Reason = ((NU8) 5);
						}
						LA61: ;
						{
							if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(32))) goto LA65;
							(*r).Pos += 1;
						}
						LA65: ;
					} LA56: ;
				}
				{
					NI LOC69;
					LOC69 = 0;
					LOC69 = countdefinedsymbols_201098();
					if (!!((d == LOC69))) goto LA70;
					(*r).Reason = ((NU8) 5);
				}
				LA70: ;
			}
			goto LA26;
			LA14: ;
			{
				(*r).Pos += 2;
				(*r).Line += 1;
				{
					while (1) {
						NimStringDesc* relativepath;
						NimStringDesc* resolvedpath;
						NimStringDesc* finalpath;
						NI32 LOC80;
						if (!!(((NU8)((*r).S[(*r).Pos]) == (NU8)(41)))) goto LA74;
						relativepath = decodestr_234155((*r).S, (&(*r).Pos));
						resolvedpath = findmodule_170366(relativepath, (*r).Origfile);
						{
							if (!(0 < resolvedpath->Sup.len)) goto LA77;
							finalpath = resolvedpath;
						}
						goto LA75;
						LA77: ;
						{
							finalpath = relativepath;
						}
						LA75: ;
						LOC80 = 0;
						LOC80 = fileinfoidx_195747(finalpath);
						(*r).Files = (TY225936*) incrSeq(&((*r).Files)->Sup, sizeof(NI32));
						(*r).Files->data[(*r).Files->Sup.len-1] = LOC80;
						(*r).Pos += 1;
						(*r).Line += 1;
					} LA74: ;
				}
				{
					if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(41))) goto LA83;
					(*r).Pos += 1;
				}
				LA83: ;
			}
			goto LA26;
			LA15: ;
			{
				(*r).Pos += 2;
				(*r).Line += 1;
				{
					while (1) {
						NI LOC88;
						if (!!(((NU8)((*r).S[(*r).Pos]) == (NU8)(41)))) goto LA87;
						LOC88 = 0;
						LOC88 = decodevint_234359((*r).S, (&(*r).Pos));
						w = tofullpath_197037((*r).Files->data[LOC88]);
						(*r).Pos += 1;
						inclcrc = decodevint_234359((*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_176046(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 += 1;
							(*r).Line += 1;
						}
						LA103: ;
					} LA87: ;
				}
				{
					if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(41))) goto LA107;
					(*r).Pos += 1;
				}
				LA107: ;
			}
			goto LA26;
			LA16: ;
			{
				(*r).Pos += 1;
				{
					while (1) {
						NI LOC112;
						if (!((NU8)(10) < (NU8)((*r).S[(*r).Pos]))) goto LA111;
						LOC112 = 0;
						LOC112 = decodevint_234359((*r).S, (&(*r).Pos));
						(*r).Moddeps = (TY225936*) 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 += 1;
						}
						LA115: ;
					} LA111: ;
				}
			}
			goto LA26;
			LA17: ;
			{
				(*r).Interfidx = (NI64)((*r).Pos + 2);
				skipsection_277163(r);
			}
			goto LA26;
			LA18: ;
			{
				(*r).Compilerprocsidx = (NI64)((*r).Pos + 2);
				skipsection_277163(r);
			}
			goto LA26;
			LA19: ;
			{
				processindex_277473(r, (&(*r).Index), NIM_NIL);
			}
			goto LA26;
			LA20: ;
			{
				processindex_277473(r, (&(*r).Imports), NIM_NIL);
			}
			goto LA26;
			LA21: ;
			{
				(*r).Convertersidx = (NI64)((*r).Pos + 1);
				skipsection_277163(r);
			}
			goto LA26;
			LA22: ;
			{
				(*r).Methodsidx = (NI64)((*r).Pos + 1);
				skipsection_277163(r);
			}
			goto LA26;
			LA23: ;
			{
				(*r).Dataidx = (NI64)((*r).Pos + 2);
				goto LA1;
			}
			goto LA26;
			LA24: ;
			{
				(*r).Initidx = (NI64)((*r).Pos + 2);
				skipsection_277163(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*) &TMP1394));
appendString(LOC126, section);
appendString(LOC126, ((NimStringDesc*) &TMP1395));
appendString(LOC126, LOC127);
appendString(LOC126, ((NimStringDesc*) &TMP1396));
appendString(LOC126, (*r).Filename);
				internalerror_198006(LOC126);
				skipsection_277163(r);
			}
			LA26: ;
			{
				if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(10))) goto LA130;
				(*r).Pos += 1;
				(*r).Line += 1;
			}
			LA130: ;
		} LA2: ;
	} LA1: ;
}

N_NIMCALL(NU8, checkdep_278801)(NI32 fileidx) {
	NU8 result;
	NimStringDesc* filename;
	NI32 crc;
	trodreader276030* r;
	NimStringDesc* rodfile;
	NimStringDesc* LOC9;
	result = 0;
	{
		if (!(gmods_278322->Sup.len <= ((NI) (fileidx)))) goto LA3;
		gmods_278322 = (tfilemodulemap278293*) setLengthSeq(&(gmods_278322)->Sup, sizeof(tfilemodulerec278291), ((NI) ((NI32)(fileidx + ((NI32) 1)))));
	}
	LA3: ;
	{
		if (!!((gmods_278322->data[fileidx].Reason == ((NU8) 0)))) goto LA7;
		result = gmods_278322->data[fileidx].Reason;
		goto BeforeRet;
	}
	LA7: ;
	filename = tofilename_197025(fileidx);
	crc = getcrc_278747(fileidx);
	gmods_278322->data[fileidx].Reason = ((NU8) 1);
	result = ((NU8) 1);
	r = NIM_NIL;
	LOC9 = 0;
	LOC9 = withpackagename_169946(filename);
	rodfile = togeneratedfile_169960(LOC9, ((NimStringDesc*) &TMP1365));
	r = newrodreader_278108(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_277623(r, crc);
		result = (*r).Reason;
		{
			NU8 res;
			if (!(result == ((NU8) 1))) goto LA23;
			res = checkdep_278801(systemfileidx_195643);
			{
				if (!!((res == ((NU8) 1)))) goto LA27;
				result = ((NU8) 8);
			}
			LA27: ;
			{
				NI i_279089;
				NI HEX3Atmp_279151;
				NI res_279154;
				i_279089 = 0;
				HEX3Atmp_279151 = 0;
				HEX3Atmp_279151 = ((*r).Moddeps->Sup.len-1);
				res_279154 = 0;
				{
					while (1) {
						if (!(res_279154 <= HEX3Atmp_279151)) goto LA31;
						i_279089 = res_279154;
						res = checkdep_278801((*r).Moddeps->data[i_279089]);
						{
							if (!!((res == ((NU8) 1)))) goto LA34;
							result = ((NU8) 8);
						}
						LA34: ;
						res_279154 += 1;
					} LA31: ;
				}
			}
		}
		LA23: ;
	}
	LA10: ;
	{
		NIM_BOOL LOC38;
		NimStringDesc* LOC42;
		LOC38 = 0;
		LOC38 = !((result == ((NU8) 1)));
		if (!(LOC38)) goto LA39;
		LOC38 = (0 < gverbosity_169127);
		LA39: ;
		if (!LOC38) goto LA40;
		LOC42 = 0;
		LOC42 = nsuFormatSingleElem(reasontofrmt_276018[(result)- 0], filename);
		rawmessage_197733(((NU16) 267), LOC42);
	}
	LA40: ;
	{
		NIM_BOOL LOC45;
		LOC45 = 0;
		LOC45 = !((result == ((NU8) 1)));
		if (LOC45) goto LA46;
		LOC45 = ((gglobaloptions_169118 &(1<<((((NU8) 1))&31)))!=0);
		LA46: ;
		if (!LOC45) goto LA47;
		{
			if (!!((r == NIM_NIL))) goto LA51;
			close_275249((&(*r).Memfile));
		}
		LA51: ;
		r = NIM_NIL;
	}
	LA47: ;
	asgnRef((void**) (&gmods_278322->data[fileidx].Rd), r);
	gmods_278322->data[fileidx].Reason = result;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tsym225846*, newstub_277316)(trodreader276030* r, NimStringDesc* name, NI id) {
	tsym225846* result;
	result = 0;
	result = (tsym225846*) newObj((&NTI225814), sizeof(tsym225846));
	(*result).Sup.Sup.m_type = (&NTI225846);
	(*result).Kind = ((NU8) 23);
	(*result).Sup.Id = id;
	asgnRefNoCycle((void**) (&(*result).Name), getident_200472(name));
	(*result).Position = (*r).Readerindex;
	setid_224446(id);
	{
		tidobj200015* LOC5;
		if (!NIM_FALSE) goto LA3;
		LOC5 = 0;
		LOC5 = &result->Sup;
		registerid_224201(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, processinterf_277344)(trodreader276030* r, tsym225846* module) {
	{
		if (!((*r).Interfidx == 0)) goto LA3;
		internalerror_198006(((NimStringDesc*) &TMP1406));
	}
	LA3: ;
	(*r).Pos = (*r).Interfidx;
	{
		while (1) {
			NIM_BOOL LOC7;
			NimStringDesc* w;
			NI key;
			tsym225846* s;
			tidobj200015* 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_234155((*r).S, (&(*r).Pos));
			(*r).Pos += 1;
			key = decodevint_234359((*r).S, (&(*r).Pos));
			(*r).Pos += 1;
			s = newstub_277316(r, w, key);
			asgnRefNoCycle((void**) (&(*s).Owner), module);
			strtableadd_235103((&(*module).kindU.S3.Tab), s);
			LOC9 = 0;
			LOC9 = &s->Sup;
			LOC10 = 0;
			LOC10 = &s->Sup.Sup;
			idtableput_235196((&(*r).Syms), LOC9, LOC10);
		} LA6: ;
	}
}

N_NIMCALL(void, processcompilerprocs_277407)(trodreader276030* r, tsym225846* module) {
	{
		if (!((*r).Compilerprocsidx == 0)) goto LA3;
		internalerror_198006(((NimStringDesc*) &TMP1407));
	}
	LA3: ;
	(*r).Pos = (*r).Compilerprocsidx;
	{
		while (1) {
			NIM_BOOL LOC7;
			NimStringDesc* w;
			NI key;
			tsym225846* 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_234155((*r).S, (&(*r).Pos));
			(*r).Pos += 1;
			key = decodevint_234359((*r).S, (&(*r).Pos));
			(*r).Pos += 1;
			LOC9 = 0;
			LOC9 = idtableget_235189((*r).Syms, key);
			s = ((tsym225846*) (LOC9));
			{
				tidobj200015* LOC14;
				TNimObject* LOC15;
				if (!(s == NIM_NIL)) goto LA12;
				s = newstub_277316(r, w, key);
				asgnRefNoCycle((void**) (&(*s).Owner), module);
				LOC14 = 0;
				LOC14 = &s->Sup;
				LOC15 = 0;
				LOC15 = &s->Sup.Sup;
				idtableput_235196((&(*r).Syms), LOC14, LOC15);
			}
			LA12: ;
			strtableadd_235103((&rodcompilerprocs_276066), s);
		} LA6: ;
	}
}

N_NIMCALL(trodreader276030*, getreader_278400)(NI moduleid) {
	trodreader276030* result;
	result = 0;
	{
		NI i_278436;
		NI HEX3Atmp_278455;
		NI res_278458;
		i_278436 = 0;
		HEX3Atmp_278455 = 0;
		HEX3Atmp_278455 = (gmods_278322->Sup.len - 1);
		res_278458 = 0;
		{
			while (1) {
				if (!(res_278458 <= HEX3Atmp_278455)) goto LA3;
				i_278436 = res_278458;
				result = gmods_278322->data[i_278436].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_278458 += 1;
			} LA3: ;
		}
	}
	result = NIM_NIL;
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, decodelineinfo_276110)(trodreader276030* r, tlineinfo195539* info) {
	{
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(63))) goto LA3;
		(*r).Pos += 1;
		{
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(44))) goto LA7;
			(*info).Col = ((NI16) -1);
		}
		goto LA5;
		LA7: ;
		{
			NI LOC10;
			LOC10 = 0;
			LOC10 = decodevint_234359((*r).S, (&(*r).Pos));
			(*info).Col = ((NI16) (LOC10));
		}
		LA5: ;
		{
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(44))) goto LA13;
			(*r).Pos += 1;
			{
				if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(44))) goto LA17;
				(*info).Line = ((NI16) -1);
			}
			goto LA15;
			LA17: ;
			{
				NI LOC20;
				LOC20 = 0;
				LOC20 = decodevint_234359((*r).S, (&(*r).Pos));
				(*info).Line = ((NI16) (LOC20));
			}
			LA15: ;
			{
				NI LOC25;
				if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(44))) goto LA23;
				(*r).Pos += 1;
				LOC25 = 0;
				LOC25 = decodevint_234359((*r).S, (&(*r).Pos));
				(*info) = newlineinfo_196128((*r).Files->data[LOC25], ((NI) ((*info).Line)), ((NI) ((*info).Col)));
			}
			LA23: ;
		}
		LA13: ;
	}
	LA3: ;
}

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

N_NIMCALL(tnode225816*, decodenodelazybody_276252)(trodreader276030* r, tlineinfo195539 finfo, tsym225846* belongsto) {
	tnode225816* result;
	result = 0;
	result = NIM_NIL;
	{
		NI LOC9;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(40))) goto LA3;
		(*r).Pos += 1;
		{
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(41))) goto LA7;
			(*r).Pos += 1;
			goto BeforeRet;
		}
		LA7: ;
		LOC9 = 0;
		LOC9 = decodevint_234359((*r).S, (&(*r).Pos));
		result = newnodei_226138(((NU8) (LOC9)), finfo);
		decodelineinfo_276110(r, (&(*result).Info));
		{
			NI LOC14;
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(36))) goto LA12;
			(*r).Pos += 1;
			LOC14 = 0;
			LOC14 = decodevint_234359((*r).S, (&(*r).Pos));
			(*result).Flags = ((NU16) (((NI32) (LOC14))));
		}
		LA12: ;
		{
			NI id;
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(94))) goto LA17;
			(*r).Pos += 1;
			id = decodevint_234359((*r).S, (&(*r).Pos));
			asgnRefNoCycle((void**) (&(*result).Typ), rrgettype_276102(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 += 1;
				(*result).kindU.S1.Intval = decodevbiggestint_234518((*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 += 1;
				fl = decodestr_234155((*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 += 1;
				asgnRefNoCycle((void**) (&(*result).kindU.S3.Strval), decodestr_234155((*r).S, (&(*r).Pos)));
			}
			goto LA30;
			LA32: ;
			{
				NimStringDesc* LOC35;
				LOC35 = 0;
				LOC35 = (*result).kindU.S3.Strval; (*result).kindU.S3.Strval = copyStringRC1(((NimStringDesc*) &TMP1368));
				if (LOC35) nimGCunrefNoCycle(LOC35);
			}
			LA30: ;
		}
		break;
		case ((NU8) 2):
		{
			{
				NimStringDesc* fl;
				if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(33))) goto LA39;
				(*r).Pos += 1;
				fl = decodestr_234155((*r).S, (&(*r).Pos));
				asgnRefNoCycle((void**) (&(*result).kindU.S5.Ident), getident_200472(fl));
			}
			goto LA37;
			LA39: ;
			{
				internalerror_197987((*result).Info, ((NimStringDesc*) &TMP1417));
			}
			LA37: ;
		}
		break;
		case ((NU8) 3):
		{
			{
				NI id;
				if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(33))) goto LA45;
				(*r).Pos += 1;
				id = decodevint_234359((*r).S, (&(*r).Pos));
				asgnRefNoCycle((void**) (&(*result).kindU.S4.Sym), rrgetsym_276094(r, id, (*result).Info));
			}
			goto LA43;
			LA45: ;
			{
				internalerror_197987((*result).Info, ((NimStringDesc*) &TMP1418));
			}
			LA43: ;
		}
		break;
		default:
		{
			NI i;
			i = 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 == 6);
						LA54: ;
						if (!LOC53) goto LA55;
						addsonnilallowed_230898(result, NIM_NIL);
						(*belongsto).Offset = (*r).Pos;
						skipnode_276160(r);
					}
					goto LA51;
					LA55: ;
					{
						tnode225816* LOC58;
						LOC58 = 0;
						LOC58 = decodenodelazybody_276252(r, (*result).Info, NIM_NIL);
						addsonnilallowed_230898(result, LOC58);
					}
					LA51: ;
					i += 1;
				} LA50: ;
			}
		}
		break;
		}
		{
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(41))) goto LA61;
			(*r).Pos += 1;
		}
		goto LA59;
		LA61: ;
		{
			internalerror_197987((*result).Info, ((NimStringDesc*) &TMP1419));
		}
		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*) &TMP1420));
appendString(LOC65, LOC66);
		internalerror_197987(finfo, LOC65);
	}
	LA1: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode225816*, decodenode_276519)(trodreader276030* r, tlineinfo195539 finfo) {
	tnode225816* result;
	result = 0;
	result = decodenodelazybody_276252(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[((NI64)((*dest).Sup.len + 1))- 0] = 0;
	(*dest).Sup.len += 1;
}

N_NIMCALL(void, decodeloc_276530)(trodreader276030* r, tloc225830* loc, tlineinfo195539 info) {
	{
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(60))) goto LA3;
		(*r).Pos += 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_234359((*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 += 1;
			LOC15 = 0;
			LOC15 = decodevint_234359((*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 += 1;
			LOC21 = 0;
			LOC21 = decodevint_234359((*r).S, (&(*r).Pos));
			(*loc).Flags = ((NU8) (((NI32) (LOC21))));
		}
		goto LA17;
		LA19: ;
		{
			(*loc).Flags = 0;
		}
		LA17: ;
		{
			NI LOC27;
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(94))) goto LA25;
			(*r).Pos += 1;
			LOC27 = 0;
			LOC27 = decodevint_234359((*r).S, (&(*r).Pos));
			unsureAsgnRef((void**) (&(*loc).T), rrgettype_276102(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 += 1;
			LOC33 = 0;
			LOC33 = decodestr_234155((*r).S, (&(*r).Pos));
			unsureAsgnRef((void**) (&(*loc).R), torope_177076(LOC33));
		}
		goto LA29;
		LA31: ;
		{
			unsureAsgnRef((void**) (&(*loc).R), NIM_NIL);
		}
		LA29: ;
		{
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(62))) goto LA37;
			(*r).Pos += 1;
		}
		goto LA35;
		LA37: ;
		{
			NimStringDesc* LOC40;
			LOC40 = 0;
			LOC40 = rawNewString(11);
appendString(LOC40, ((NimStringDesc*) &TMP1421));
appendChar(LOC40, (*r).S[(*r).Pos]);
			internalerror_197987(info, LOC40);
		}
		LA35: ;
	}
	LA3: ;
}

N_NIMCALL(ttype225852*, decodetype_276636)(trodreader276030* r, tlineinfo195539 info) {
	ttype225852* result;
	NI LOC9;
	tidobj200015* LOC20;
	TNimObject* LOC21;
	result = 0;
	result = NIM_NIL;
	{
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(91))) goto LA3;
		(*r).Pos += 1;
		{
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(93))) goto LA7;
			(*r).Pos += 1;
			goto BeforeRet;
		}
		LA7: ;
	}
	LA3: ;
	result = (ttype225852*) newObj((&NTI225812), sizeof(ttype225852));
	(*result).Sup.Sup.m_type = (&NTI225852);
	LOC9 = 0;
	LOC9 = decodevint_234359((*r).S, (&(*r).Pos));
	(*result).Kind = ((NU8) (LOC9));
	{
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(43))) goto LA12;
		(*r).Pos += 1;
		(*result).Sup.Id = decodevint_234359((*r).S, (&(*r).Pos));
		setid_224446((*result).Sup.Id);
		{
			tidobj200015* LOC18;
			if (!NIM_FALSE) goto LA16;
			LOC18 = 0;
			LOC18 = &result->Sup;
			registerid_224201(LOC18);
		}
		LA16: ;
	}
	goto LA10;
	LA12: ;
	{
		internalerror_197987(info, ((NimStringDesc*) &TMP1416));
	}
	LA10: ;
	LOC20 = 0;
	LOC20 = &result->Sup;
	LOC21 = 0;
	LOC21 = &result->Sup.Sup;
	idtableput_235196((&gtypetable_276089), LOC20, LOC21);
	{
		tlineinfo195539 LOC26;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(40))) goto LA24;
		LOC26 = unknownlineinfo_196405();
		asgnRefNoCycle((void**) (&(*result).N), decodenode_276519(r, LOC26));
	}
	LA24: ;
	{
		NI LOC31;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(36))) goto LA29;
		(*r).Pos += 1;
		LOC31 = 0;
		LOC31 = decodevint_234359((*r).S, (&(*r).Pos));
		(*result).Flags = ((NU32) (((NI32) (LOC31))));
	}
	LA29: ;
	{
		NI LOC36;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(63))) goto LA34;
		(*r).Pos += 1;
		LOC36 = 0;
		LOC36 = decodevint_234359((*r).S, (&(*r).Pos));
		(*result).Callconv = ((NU8) (LOC36));
	}
	LA34: ;
	{
		NI LOC41;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(42))) goto LA39;
		(*r).Pos += 1;
		LOC41 = 0;
		LOC41 = decodevint_234359((*r).S, (&(*r).Pos));
		asgnRefNoCycle((void**) (&(*result).Owner), rrgetsym_276094(r, LOC41, info));
	}
	LA39: ;
	{
		NI LOC46;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(38))) goto LA44;
		(*r).Pos += 1;
		LOC46 = 0;
		LOC46 = decodevint_234359((*r).S, (&(*r).Pos));
		asgnRefNoCycle((void**) (&(*result).Sym), rrgetsym_276094(r, LOC46, info));
	}
	LA44: ;
	{
		NI LOC51;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(47))) goto LA49;
		(*r).Pos += 1;
		LOC51 = 0;
		LOC51 = decodevint_234359((*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 += 1;
		LOC57 = 0;
		LOC57 = decodevint_234359((*r).S, (&(*r).Pos));
		(*result).Align = ((NI16) (LOC57));
	}
	goto LA53;
	LA55: ;
	{
		(*result).Align = ((NI16) 2);
	}
	LA53: ;
	decodeloc_276530(r, (&(*result).Loc), info);
	{
		while (1) {
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(94))) goto LA60;
			(*r).Pos += 1;
			{
				if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(40))) goto LA63;
				(*r).Pos += 1;
				{
					if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(41))) goto LA67;
					(*r).Pos += 1;
				}
				goto LA65;
				LA67: ;
				{
					NimStringDesc* LOC70;
					LOC70 = 0;
					LOC70 = rawNewString(14);
appendString(LOC70, ((NimStringDesc*) &TMP1422));
appendChar(LOC70, (*r).S[(*r).Pos]);
					internalerror_197987(info, LOC70);
				}
				LA65: ;
				rawaddson_230562(result, NIM_NIL);
			}
			goto LA61;
			LA63: ;
			{
				NI d;
				ttype225852* LOC72;
				d = decodevint_234359((*r).S, (&(*r).Pos));
				LOC72 = 0;
				LOC72 = rrgettype_276102(r, d, info);
				rawaddson_230562(result, LOC72);
			}
			LA61: ;
		} LA60: ;
	}
	BeforeRet: ;
	return result;
}

N_NIMCALL(ttype225852*, rrgettype_276102)(trodreader276030* r, NI id, tlineinfo195539 info) {
	ttype225852* result;
	TNimObject* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = idtableget_235189(gtypetable_276089, id);
	result = ((ttype225852*) (LOC1));
	{
		NI oldpos;
		NI d;
		if (!(result == NIM_NIL)) goto LA4;
		oldpos = (*r).Pos;
		d = iitableget_235289((*r).Index.Tab, id);
		{
			if (!(d == (IL64(-9223372036854775807) - IL64(1)))) goto LA8;
			internalerror_197987(info, ((NimStringDesc*) &TMP1415));
		}
		LA8: ;
		(*r).Pos = (NI64)(d + (*r).Dataidx);
		result = decodetype_276636(r, info);
		(*r).Pos = oldpos;
	}
	LA4: ;
	return result;
}

N_NIMCALL(tlib225834*, decodelib_276827)(trodreader276030* r, tlineinfo195539 info) {
	tlib225834* result;
	result = 0;
	result = NIM_NIL;
	{
		NI LOC5;
		NimStringDesc* LOC10;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(124))) goto LA3;
		result = (tlib225834*) newObj((&NTI225844), sizeof(tlib225834));
		(*result).Sup.Sup.m_type = (&NTI225834);
		(*r).Pos += 1;
		LOC5 = 0;
		LOC5 = decodevint_234359((*r).S, (&(*r).Pos));
		(*result).Kind = ((NU8) (LOC5));
		{
			if (!!(((NU8)((*r).S[(*r).Pos]) == (NU8)(124)))) goto LA8;
			internalerror_198006(((NimStringDesc*) &TMP1423));
		}
		LA8: ;
		(*r).Pos += 1;
		LOC10 = 0;
		LOC10 = decodestr_234155((*r).S, (&(*r).Pos));
		asgnRefNoCycle((void**) (&(*result).Name), torope_177076(LOC10));
		{
			if (!!(((NU8)((*r).S[(*r).Pos]) == (NU8)(124)))) goto LA13;
			internalerror_198006(((NimStringDesc*) &TMP1424));
		}
		LA13: ;
		(*r).Pos += 1;
		asgnRefNoCycle((void**) (&(*result).Path), decodenode_276519(r, info));
	}
	LA3: ;
	return result;
}

N_NIMCALL(tsym225846*, decodesym_276892)(trodreader276030* r, tlineinfo195539 info) {
	tsym225846* result;
	NI id;
	tident200021* 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 += 1;
		{
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(125))) goto LA7;
			(*r).Pos += 1;
			goto BeforeRet;
		}
		LA7: ;
	}
	LA3: ;
	LOC9 = 0;
	LOC9 = decodevint_234359((*r).S, (&(*r).Pos));
	k = ((NU8) (LOC9));
	{
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(43))) goto LA12;
		(*r).Pos += 1;
		id = decodevint_234359((*r).S, (&(*r).Pos));
		setid_224446(id);
	}
	goto LA10;
	LA12: ;
	{
		internalerror_197987(info, ((NimStringDesc*) &TMP1412));
	}
	LA10: ;
	{
		NimStringDesc* LOC19;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(38))) goto LA17;
		(*r).Pos += 1;
		LOC19 = 0;
		LOC19 = decodestr_234155((*r).S, (&(*r).Pos));
		ident = getident_200472(LOC19);
	}
	goto LA15;
	LA17: ;
	{
		internalerror_197987(info, ((NimStringDesc*) &TMP1413));
	}
	LA15: ;
	LOC21 = 0;
	LOC21 = idtableget_235189((*r).Syms, id);
	result = ((tsym225846*) (LOC21));
	{
		tidobj200015* LOC26;
		TNimObject* LOC27;
		if (!(result == NIM_NIL)) goto LA24;
		result = (tsym225846*) newObj((&NTI225814), sizeof(tsym225846));
		(*result).Sup.Sup.m_type = (&NTI225846);
		(*result).Sup.Id = id;
		LOC26 = 0;
		LOC26 = &result->Sup;
		LOC27 = 0;
		LOC27 = &result->Sup.Sup;
		idtableput_235196((&(*r).Syms), LOC26, LOC27);
		{
			tidobj200015* LOC32;
			if (!NIM_FALSE) goto LA30;
			LOC32 = 0;
			LOC32 = &result->Sup;
			registerid_224201(LOC32);
		}
		LA30: ;
	}
	goto LA22;
	LA24: ;
	{
		if (!!(((*result).Sup.Id == id))) goto LA34;
		internalerror_197987(info, ((NimStringDesc*) &TMP1414));
	}
	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)), (&NTI225846));
		(*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 += 1;
		LOC46 = 0;
		LOC46 = decodevint_234359((*r).S, (&(*r).Pos));
		asgnRefNoCycle((void**) (&(*result).Typ), rrgettype_276102(r, LOC46, info));
	}
	LA44: ;
	decodelineinfo_276110(r, (&(*result).Info));
	{
		NI LOC51;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(42))) goto LA49;
		(*r).Pos += 1;
		LOC51 = 0;
		LOC51 = decodevint_234359((*r).S, (&(*r).Pos));
		asgnRefNoCycle((void**) (&(*result).Owner), rrgetsym_276094(r, LOC51, (*result).Info));
	}
	LA49: ;
	{
		NI LOC56;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(36))) goto LA54;
		(*r).Pos += 1;
		LOC56 = 0;
		LOC56 = decodevint_234359((*r).S, (&(*r).Pos));
		(*result).Flags = ((NU32) (((NI32) (LOC56))));
	}
	LA54: ;
	{
		NI LOC61;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(64))) goto LA59;
		(*r).Pos += 1;
		LOC61 = 0;
		LOC61 = decodevint_234359((*r).S, (&(*r).Pos));
		(*result).Magic = ((NU16) (LOC61));
	}
	LA59: ;
	{
		NI LOC66;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(33))) goto LA64;
		(*r).Pos += 1;
		LOC66 = 0;
		LOC66 = decodevint_234359((*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 += 1;
		(*result).Position = decodevint_234359((*r).S, (&(*r).Pos));
	}
	goto LA68;
	LA70: ;
	{
		if (!!(((520256 &(1<<(((*result).Kind)&31)))!=0))) goto LA73;
		(*result).Position = 0;
	}
	goto LA68;
	LA73: ;
	LA68: ;
	{
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(96))) goto LA77;
		(*r).Pos += 1;
		(*result).Offset = decodevint_234359((*r).S, (&(*r).Pos));
	}
	goto LA75;
	LA77: ;
	{
		(*result).Offset = -1;
	}
	LA75: ;
	decodeloc_276530(r, (&(*result).Loc), (*result).Info);
	asgnRef((void**) (&(*result).Annex), decodelib_276827(r, info));
	{
		tlineinfo195539 LOC84;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(35))) goto LA82;
		(*r).Pos += 1;
		LOC84 = unknownlineinfo_196405();
		asgnRefNoCycle((void**) (&(*result).Constraint), decodenode_276519(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_276252(r, (*result).Info, result));
			(*result).Position = (*r).Readerindex;
		}
		goto LA89;
		LA91: ;
		{
			asgnRefNoCycle((void**) (&(*result).Ast), decodenode_276519(r, (*result).Info));
		}
		LA89: ;
	}
	LA87: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tsym225846*, decodesymsafepos_278327)(trodreader276030* rd, NI offset, tlineinfo195539 info) {
	tsym225846* result;
	NI oldpos;
	result = 0;
	{
		if (!((*rd).Dataidx == 0)) goto LA3;
		internalerror_197987(info, ((NimStringDesc*) &TMP1411));
	}
	LA3: ;
	oldpos = (*rd).Pos;
	(*rd).Pos = (NI64)(offset + (*rd).Dataidx);
	result = decodesym_276892(rd, info);
	(*rd).Pos = oldpos;
	return result;
}

N_NIMCALL(void, rawloadstub_276083)(tsym225846* s) {
	trodreader276030* rd;
	NI theid;
	NI d;
	tsym225846* rs;
	tlineinfo195539 LOC9;
	{
		if (!!(((*s).Kind == ((NU8) 23)))) goto LA3;
		internalerror_198006(((NimStringDesc*) &TMP1426));
	}
	LA3: ;
	rd = gmods_278322->data[(*s).Position].Rd;
	theid = (*s).Sup.Id;
	d = iitableget_235289((*rd).Index.Tab, (*s).Sup.Id);
	{
		if (!(d == (IL64(-9223372036854775807) - IL64(1)))) goto LA7;
		internalerror_198006(((NimStringDesc*) &TMP1427));
	}
	LA7: ;
	LOC9 = unknownlineinfo_196405();
	rs = decodesymsafepos_278327(rd, d, LOC9);
	{
		if (!!((rs == s))) goto LA12;
		internalerror_197987((*rs).Info, ((NimStringDesc*) &TMP1428));
	}
	goto LA10;
	LA12: ;
	{
		if (!!(((*rs).Sup.Id == theid))) goto LA15;
		internalerror_197987((*rs).Info, ((NimStringDesc*) &TMP1429));
	}
	goto LA10;
	LA15: ;
	LA10: ;
}

N_NIMCALL(tsym225846*, rrgetsym_276094)(trodreader276030* r, NI id, tlineinfo195539 info) {
	tsym225846* result;
	TNimObject* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = idtableget_235189((*r).Syms, id);
	result = ((tsym225846*) (LOC1));
	{
		NI d;
		if (!(result == NIM_NIL)) goto LA4;
		d = iitableget_235289((*r).Index.Tab, id);
		{
			NI moduleid;
			trodreader276030* rd;
			if (!(d == (IL64(-9223372036854775807) - IL64(1)))) goto LA8;
			moduleid = iitableget_235289((*r).Imports.Tab, id);
			{
				NimStringDesc* x;
				NimStringDesc* LOC14;
				if (!(moduleid < 0)) goto LA12;
				x = copyString(((NimStringDesc*) &TMP1368));
				encodevint_234304(id, (&x));
				LOC14 = 0;
				LOC14 = rawNewString(x->Sup.len + 28);
appendString(LOC14, ((NimStringDesc*) &TMP1410));
appendString(LOC14, x);
				internalerror_197987(info, LOC14);
			}
			LA12: ;
			rd = getreader_278400(moduleid);
			d = iitableget_235289((*rd).Index.Tab, id);
			{
				if (!!((d == (IL64(-9223372036854775807) - IL64(1))))) goto LA17;
				result = decodesymsafepos_278327(rd, d, info);
			}
			goto LA15;
			LA17: ;
			{
				NimStringDesc* x;
				NimStringDesc* LOC20;
				x = copyString(((NimStringDesc*) &TMP1368));
				encodevint_234304(id, (&x));
				LOC20 = 0;
				LOC20 = rawNewString(x->Sup.len + 28);
appendString(LOC20, ((NimStringDesc*) &TMP1425));
appendString(LOC20, x);
				internalerror_197987(info, LOC20);
			}
			LA15: ;
		}
		goto LA6;
		LA8: ;
		{
			result = decodesymsafepos_278327(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_276083(result);
	}
	LA26: ;
	return result;
}

N_NIMCALL(void, loadconverters_278667)(trodreader276030* r) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*r).Convertersidx == 0);
		if (LOC3) goto LA4;
		LOC3 = ((*r).Dataidx == 0);
		LA4: ;
		if (!LOC3) goto LA5;
		internalerror_198006(((NimStringDesc*) &TMP1408));
	}
	LA5: ;
	(*r).Pos = (*r).Convertersidx;
	{
		while (1) {
			NI d;
			tlineinfo195539 LOC9;
			tsym225846* LOC10;
			if (!((NU8)(10) < (NU8)((*r).S[(*r).Pos]))) goto LA8;
			d = decodevint_234359((*r).S, (&(*r).Pos));
			LOC9 = unknownlineinfo_196405();
			LOC10 = 0;
			LOC10 = rrgetsym_276094(r, d, LOC9);
			{
				if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(32))) goto LA13;
				(*r).Pos += 1;
			}
			LA13: ;
		} LA8: ;
	}
}

N_NIMCALL(void, loadmethods_278698)(trodreader276030* r) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*r).Methodsidx == 0);
		if (LOC3) goto LA4;
		LOC3 = ((*r).Dataidx == 0);
		LA4: ;
		if (!LOC3) goto LA5;
		internalerror_198006(((NimStringDesc*) &TMP1430));
	}
	LA5: ;
	(*r).Pos = (*r).Methodsidx;
	{
		while (1) {
			NI d;
			tlineinfo195539 LOC9;
			tsym225846* LOC10;
			if (!((NU8)(10) < (NU8)((*r).S[(*r).Pos]))) goto LA8;
			d = decodevint_234359((*r).S, (&(*r).Pos));
			LOC9 = unknownlineinfo_196405();
			LOC10 = 0;
			LOC10 = rrgetsym_276094(r, d, LOC9);
			(*r).Methods = (tsymseq225818*) incrSeq(&((*r).Methods)->Sup, sizeof(tsym225846*));
			asgnRefNoCycle((void**) (&(*r).Methods->data[(*r).Methods->Sup.len-1]), LOC10);
			{
				if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(32))) goto LA13;
				(*r).Pos += 1;
			}
			LA13: ;
		} LA8: ;
	}
}

N_NIMCALL(trodreader276030*, handlesymbolfile_276071)(tsym225846* module) {
	trodreader276030* result;
	NI32 fileidx;
	NimStringDesc* LOC5;
	NU8 LOC6;
	result = 0;
	fileidx = ((NI32) ((*module).Position));
	{
		if (!!(((gglobaloptions_169118 &(1<<((((NU8) 14))&31)))!=0))) goto LA3;
		(*module).Sup.Id = getid_224404();
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = HEX2F_117499(gprojectpath_169235, gprojectname_169234);
	loadmaxids_224519(LOC5);
	LOC6 = 0;
	LOC6 = checkdep_278801(fileidx);
	{
		if (!(gmods_278322->data[fileidx].Reason == ((NU8) 0))) goto LA9;
		internalerror_198006(((NimStringDesc*) &TMP1405));
	}
	LA9: ;
	result = gmods_278322->data[fileidx].Rd;
	{
		tidobj200015* 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_235196((&(*result).Syms), LOC15, LOC16);
		processinterf_277344(result, module);
		processcompilerprocs_277407(result, module);
		loadconverters_278667(result);
		loadmethods_278698(result);
	}
	goto LA11;
	LA13: ;
	{
		(*module).Sup.Id = getid_224404();
	}
	LA11: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode225816*, loadinitsection_276077)(trodreader276030* r) {
	tnode225816* result;
	NI oldpos;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*r).Initidx == 0);
		if (LOC3) goto LA4;
		LOC3 = ((*r).Dataidx == 0);
		LA4: ;
		if (!LOC3) goto LA5;
		internalerror_198006(((NimStringDesc*) &TMP1432));
	}
	LA5: ;
	oldpos = (*r).Pos;
	(*r).Pos = (*r).Initidx;
	result = newnode_226090(((NU8) 115));
	{
		while (1) {
			NIM_BOOL LOC9;
			NI d;
			NI p;
			tlineinfo195539 LOC11;
			tnode225816* 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_234359((*r).S, (&(*r).Pos));
			(*r).Pos += 1;
			p = (*r).Pos;
			(*r).Pos = (NI64)(d + (*r).Dataidx);
			LOC11 = unknownlineinfo_196405();
			LOC12 = 0;
			LOC12 = decodenode_276519(r, LOC11);
			addson_226287(result, LOC12);
			(*r).Pos = p;
		} LA8: ;
	}
	(*r).Pos = oldpos;
	return result;
}

static N_INLINE(void, gcdisable_8001)(void) {
	gch_47244.Recgclock += 1;
}

static N_INLINE(void, gcenable_8003)(void) {
	{
		if (!(0 < gch_47244.Recgclock)) goto LA3;
		gch_47244.Recgclock -= 1;
	}
	LA3: ;
}

N_NIMCALL(void, loadstub_279260)(tsym225846* s) {
	gcdisable_8001();
	rawloadstub_276083(s);
	gcenable_8003();
}

N_NIMCALL(tnode225816*, getbody_279269)(tsym225846* s) {
	tnode225816* result;
	result = 0;
	result = (*(*s).Ast).kindU.S6.Sons->data[6];
	{
		trodreader276030* r;
		NI oldpos;
		if (!(result == NIM_NIL)) goto LA3;
		r = gmods_278322->data[(*s).Position].Rd;
		oldpos = (*r).Pos;
		(*r).Pos = (*s).Offset;
		result = decodenode_276519(r, (*s).Info);
		(*r).Pos = oldpos;
		asgnRefNoCycle((void**) (&(*(*s).Ast).kindU.S6.Sons->data[6]), result);
		(*s).Offset = 0;
	}
	LA3: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, HEX00_rodreadInit)(void) {
	if (gmods_278322) nimGCunref(gmods_278322);
	gmods_278322 = (tfilemodulemap278293*) newSeqRC1((&NTI278293), 0);
	initidtable_226167((&gtypetable_276089));
	initstrtable_226153((&rodcompilerprocs_276066));
}

NIM_EXTERNC N_NOINLINE(void, HEX00_rodreadDatInit)(void) {
static TNimNode* TMP815[5];
static TNimNode* TMP816[9];
NI TMP818;
static char* NIM_CONST TMP817[9] = {
"rrEmpty", 
"rrNone", 
"rrRodDoesNotExist", 
"rrRodInvalid", 
"rrCrcChange", 
"rrDefines", 
"rrOptions", 
"rrInclDeps", 
"rrModDeps"};
static TNimNode* TMP819[23];
static TNimNode* TMP820[5];
static TNimNode TMP807[46];
NTI278291.size = sizeof(tfilemodulerec278291);
NTI278291.kind = 18;
NTI278291.base = 0;
TMP815[0] = &TMP807[1];
TMP807[1].kind = 1;
TMP807[1].offset = offsetof(tfilemodulerec278291, Filename);
TMP807[1].typ = (&NTI149);
TMP807[1].name = "filename";
TMP815[1] = &TMP807[2];
NTI276005.size = sizeof(NU8);
NTI276005.kind = 14;
NTI276005.base = 0;
NTI276005.flags = 3;
for (TMP818 = 0; TMP818 < 9; TMP818++) {
TMP807[TMP818+3].kind = 1;
TMP807[TMP818+3].offset = TMP818;
TMP807[TMP818+3].name = TMP817[TMP818];
TMP816[TMP818] = &TMP807[TMP818+3];
}
TMP807[12].len = 9; TMP807[12].kind = 2; TMP807[12].sons = &TMP816[0];
NTI276005.node = &TMP807[12];
TMP807[2].kind = 1;
TMP807[2].offset = offsetof(tfilemodulerec278291, Reason);
TMP807[2].typ = (&NTI276005);
TMP807[2].name = "reason";
TMP815[2] = &TMP807[13];
NTI276030.size = sizeof(trodreader276030);
NTI276030.kind = 17;
NTI276030.base = (&NTI3211);
TMP819[0] = &TMP807[15];
TMP807[15].kind = 1;
TMP807[15].offset = offsetof(trodreader276030, Pos);
TMP807[15].typ = (&NTI108);
TMP807[15].name = "pos";
TMP819[1] = &TMP807[16];
TMP807[16].kind = 1;
TMP807[16].offset = offsetof(trodreader276030, S);
TMP807[16].typ = (&NTI151);
TMP807[16].name = "s";
TMP819[2] = &TMP807[17];
TMP807[17].kind = 1;
TMP807[17].offset = offsetof(trodreader276030, Options);
TMP807[17].typ = (&NTI169016);
TMP807[17].name = "options";
TMP819[3] = &TMP807[18];
TMP807[18].kind = 1;
TMP807[18].offset = offsetof(trodreader276030, Reason);
TMP807[18].typ = (&NTI276005);
TMP807[18].name = "reason";
TMP819[4] = &TMP807[19];
TMP807[19].kind = 1;
TMP807[19].offset = offsetof(trodreader276030, Moddeps);
TMP807[19].typ = (&NTI225936);
TMP807[19].name = "modDeps";
TMP819[5] = &TMP807[20];
TMP807[20].kind = 1;
TMP807[20].offset = offsetof(trodreader276030, Files);
TMP807[20].typ = (&NTI225936);
TMP807[20].name = "files";
TMP819[6] = &TMP807[21];
TMP807[21].kind = 1;
TMP807[21].offset = offsetof(trodreader276030, Dataidx);
TMP807[21].typ = (&NTI108);
TMP807[21].name = "dataIdx";
TMP819[7] = &TMP807[22];
TMP807[22].kind = 1;
TMP807[22].offset = offsetof(trodreader276030, Convertersidx);
TMP807[22].typ = (&NTI108);
TMP807[22].name = "convertersIdx";
TMP819[8] = &TMP807[23];
TMP807[23].kind = 1;
TMP807[23].offset = offsetof(trodreader276030, Initidx);
TMP807[23].typ = (&NTI108);
TMP807[23].name = "initIdx";
TMP819[9] = &TMP807[24];
TMP807[24].kind = 1;
TMP807[24].offset = offsetof(trodreader276030, Interfidx);
TMP807[24].typ = (&NTI108);
TMP807[24].name = "interfIdx";
TMP819[10] = &TMP807[25];
TMP807[25].kind = 1;
TMP807[25].offset = offsetof(trodreader276030, Compilerprocsidx);
TMP807[25].typ = (&NTI108);
TMP807[25].name = "compilerProcsIdx";
TMP819[11] = &TMP807[26];
TMP807[26].kind = 1;
TMP807[26].offset = offsetof(trodreader276030, Methodsidx);
TMP807[26].typ = (&NTI108);
TMP807[26].name = "methodsIdx";
TMP819[12] = &TMP807[27];
TMP807[27].kind = 1;
TMP807[27].offset = offsetof(trodreader276030, Filename);
TMP807[27].typ = (&NTI149);
TMP807[27].name = "filename";
TMP819[13] = &TMP807[28];
NTI276028.size = sizeof(tindex276028);
NTI276028.kind = 18;
NTI276028.base = 0;
NTI276028.flags = 2;
TMP820[0] = &TMP807[30];
TMP807[30].kind = 1;
TMP807[30].offset = offsetof(tindex276028, Lastidxkey);
TMP807[30].typ = (&NTI108);
TMP807[30].name = "lastIdxKey";
TMP820[1] = &TMP807[31];
TMP807[31].kind = 1;
TMP807[31].offset = offsetof(tindex276028, Lastidxval);
TMP807[31].typ = (&NTI108);
TMP807[31].name = "lastIdxVal";
TMP820[2] = &TMP807[32];
TMP807[32].kind = 1;
TMP807[32].offset = offsetof(tindex276028, Tab);
TMP807[32].typ = (&NTI235274);
TMP807[32].name = "tab";
TMP820[3] = &TMP807[33];
TMP807[33].kind = 1;
TMP807[33].offset = offsetof(tindex276028, R);
TMP807[33].typ = (&NTI149);
TMP807[33].name = "r";
TMP820[4] = &TMP807[34];
TMP807[34].kind = 1;
TMP807[34].offset = offsetof(tindex276028, Offset);
TMP807[34].typ = (&NTI108);
TMP807[34].name = "offset";
TMP807[29].len = 5; TMP807[29].kind = 2; TMP807[29].sons = &TMP820[0];
NTI276028.node = &TMP807[29];
TMP807[28].kind = 1;
TMP807[28].offset = offsetof(trodreader276030, Index);
TMP807[28].typ = (&NTI276028);
TMP807[28].name = "index";
TMP819[14] = &TMP807[35];
TMP807[35].kind = 1;
TMP807[35].offset = offsetof(trodreader276030, Imports);
TMP807[35].typ = (&NTI276028);
TMP807[35].name = "imports";
TMP819[15] = &TMP807[36];
TMP807[36].kind = 1;
TMP807[36].offset = offsetof(trodreader276030, Readerindex);
TMP807[36].typ = (&NTI108);
TMP807[36].name = "readerIndex";
TMP819[16] = &TMP807[37];
TMP807[37].kind = 1;
TMP807[37].offset = offsetof(trodreader276030, Line);
TMP807[37].typ = (&NTI108);
TMP807[37].name = "line";
TMP819[17] = &TMP807[38];
TMP807[38].kind = 1;
TMP807[38].offset = offsetof(trodreader276030, Moduleid);
TMP807[38].typ = (&NTI108);
TMP807[38].name = "moduleID";
TMP819[18] = &TMP807[39];
TMP807[39].kind = 1;
TMP807[39].offset = offsetof(trodreader276030, Syms);
TMP807[39].typ = (&NTI225864);
TMP807[39].name = "syms";
TMP819[19] = &TMP807[40];
TMP807[40].kind = 1;
TMP807[40].offset = offsetof(trodreader276030, Memfile);
TMP807[40].typ = (&NTI274208);
TMP807[40].name = "memfile";
TMP819[20] = &TMP807[41];
TMP807[41].kind = 1;
TMP807[41].offset = offsetof(trodreader276030, Methods);
TMP807[41].typ = (&NTI225818);
TMP807[41].name = "methods";
TMP819[21] = &TMP807[42];
TMP807[42].kind = 1;
TMP807[42].offset = offsetof(trodreader276030, Origfile);
TMP807[42].typ = (&NTI149);
TMP807[42].name = "origFile";
TMP819[22] = &TMP807[43];
TMP807[43].kind = 1;
TMP807[43].offset = offsetof(trodreader276030, Inviewmode);
TMP807[43].typ = (&NTI138);
TMP807[43].name = "inViewMode";
TMP807[14].len = 23; TMP807[14].kind = 2; TMP807[14].sons = &TMP819[0];
NTI276030.node = &TMP807[14];
NTI276032.size = sizeof(trodreader276030*);
NTI276032.kind = 22;
NTI276032.base = (&NTI276030);
NTI276032.marker = TMP830;
TMP807[13].kind = 1;
TMP807[13].offset = offsetof(tfilemodulerec278291, Rd);
TMP807[13].typ = (&NTI276032);
TMP807[13].name = "rd";
TMP815[3] = &TMP807[44];
TMP807[44].kind = 1;
TMP807[44].offset = offsetof(tfilemodulerec278291, Crc);
TMP807[44].typ = (&NTI176010);
TMP807[44].name = "crc";
TMP815[4] = &TMP807[45];
TMP807[45].kind = 1;
TMP807[45].offset = offsetof(tfilemodulerec278291, Crcdone);
TMP807[45].typ = (&NTI138);
TMP807[45].name = "crcDone";
TMP807[0].len = 5; TMP807[0].kind = 2; TMP807[0].sons = &TMP815[0];
NTI278291.node = &TMP807[0];
NTI278293.size = sizeof(tfilemodulemap278293*);
NTI278293.kind = 24;
NTI278293.base = (&NTI278291);
NTI278293.marker = TMP831;
}

