/* 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 tstrtable226820 tstrtable226820;
typedef struct tsymseq226818 tsymseq226818;
typedef struct tsym226846 tsym226846;
typedef struct TGenericSeq TGenericSeq;
typedef struct tidtable226864 tidtable226864;
typedef struct tidpairseq226862 tidpairseq226862;
typedef struct tidpair226860 tidpair226860;
typedef struct tidobj201015 tidobj201015;
typedef struct TNimObject TNimObject;
typedef struct tfilemodulemap279293 tfilemodulemap279293;
typedef struct tfilemodulerec279291 tfilemodulerec279291;
typedef struct NimStringDesc NimStringDesc;
typedef struct trodreader277030 trodreader277030;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct TY226936 TY226936;
typedef struct tindex277028 tindex277028;
typedef struct tiitable236274 tiitable236274;
typedef struct tiipairseq236272 tiipairseq236272;
typedef struct tiipair236270 tiipair236270;
typedef struct memfile275208 memfile275208;
typedef struct tcell44933 tcell44933;
typedef struct tcellseq44949 tcellseq44949;
typedef struct tgcheap47016 tgcheap47016;
typedef struct tcellset44945 tcellset44945;
typedef struct tpagedesc44941 tpagedesc44941;
typedef struct tmemregion27210 tmemregion27210;
typedef struct tsmallchunk26440 tsmallchunk26440;
typedef struct tllchunk27204 tllchunk27204;
typedef struct tbigchunk26442 tbigchunk26442;
typedef struct tintset26417 tintset26417;
typedef struct ttrunk26413 ttrunk26413;
typedef struct tavlnode27208 tavlnode27208;
typedef struct tgcstat47014 tgcstat47014;
typedef struct ttypeseq226848 ttypeseq226848;
typedef struct ttype226852 ttype226852;
typedef struct tscope226840 tscope226840;
typedef struct TY226947 TY226947;
typedef struct tinstantiation226836 tinstantiation226836;
typedef struct tident201021 tident201021;
typedef struct tlineinfo196539 tlineinfo196539;
typedef struct tnode226816 tnode226816;
typedef struct tloc226830 tloc226830;
typedef struct trope178009 trope178009;
typedef struct tlib226834 tlib226834;
typedef struct TY84745 TY84745;
typedef struct Exception Exception;
typedef struct TSafePoint TSafePoint;
typedef struct tnodeseq226810 tnodeseq226810;
typedef struct tlistentry127022 tlistentry127022;
typedef struct tbasechunk26438 tbasechunk26438;
typedef struct tfreecell26430 tfreecell26430;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  tstrtable226820  {
NI Counter;
tsymseq226818* Data;
};
struct  tidpair226860  {
tidobj201015* Key;
TNimObject* Val;
};
struct  tidtable226864  {
NI Counter;
tidpairseq226862* Data;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  tfilemodulerec279291  {
NimStringDesc* Filename;
NU8 Reason;
trodreader277030* 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  tiipair236270  {
NI Key;
NI Val;
};
struct  tiitable236274  {
NI Counter;
tiipairseq236272* Data;
};
struct  tindex277028  {
NI Lastidxkey;
NI Lastidxval;
tiitable236274 Tab;
NimStringDesc* R;
NI Offset;
};
struct  memfile275208  {
void* Mem;
NI Size;
int Handle;
};
struct  trodreader277030  {
  TNimObject Sup;
NI Pos;
NCSTRING S;
NU32 Options;
NU8 Reason;
TY226936* Moddeps;
TY226936* Files;
NI Dataidx;
NI Convertersidx;
NI Initidx;
NI Interfidx;
NI Compilerprocsidx;
NI Methodsidx;
NimStringDesc* Filename;
tindex277028 Index;
tindex277028 Imports;
NI Readerindex;
NI Line;
NI Moduleid;
tidtable226864 Syms;
memfile275208 Memfile;
tsymseq226818* Methods;
NimStringDesc* Origfile;
NIM_BOOL Inviewmode;
};
struct  tcell44933  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq44949  {
NI Len;
NI Cap;
tcell44933** D;
};
struct  tcellset44945  {
NI Counter;
NI Max;
tpagedesc44941* Head;
tpagedesc44941** Data;
};
typedef tsmallchunk26440* TY27222[512];
typedef ttrunk26413* ttrunkbuckets26415[256];
struct  tintset26417  {
ttrunkbuckets26415 Data;
};
struct  tmemregion27210  {
NI Minlargeobj;
NI Maxlargeobj;
TY27222 Freesmallchunks;
tllchunk27204* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26442* Freechunkslist;
tintset26417 Chunkstarts;
tavlnode27208* Root;
tavlnode27208* Deleted;
tavlnode27208* Last;
tavlnode27208* Freeavlnodes;
};
struct  tgcstat47014  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47016  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq44949 Zct;
tcellseq44949 Decstack;
tcellset44945 Cycleroots;
tcellseq44949 Tempstack;
NI Recgclock;
tmemregion27210 Region;
tgcstat47014 Stat;
};
struct  tidobj201015  {
  TNimObject Sup;
NI Id;
};
struct  tlineinfo196539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  tloc226830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype226852* T;
trope178009* R;
trope178009* Heaproot;
};
struct  tsym226846  {
  tidobj201015 Sup;
NU8 Kind;
union {
struct {ttypeseq226848* Typeinstcache;
tscope226840* Typscope;
} S1;
struct {TY226947* Procinstcache;
tscope226840* Scope;
} S2;
struct {TY226947* Usedgenerics;
tstrtable226820 Tab;
} S3;
struct {tsym226846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype226852* Typ;
tident201021* Name;
tlineinfo196539 Info;
tsym226846* Owner;
NU32 Flags;
tnode226816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc226830 Loc;
tlib226834* Annex;
tnode226816* Constraint;
};
struct TY84745 {
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;
} TY14809;
struct  TSafePoint  {
TSafePoint* prev;
NI status;
jmp_buf context;
NIM_BOOL hasRaiseAction;
TY14809 raiseAction;
};
typedef NimStringDesc* TY198620[4];
typedef NimStringDesc* TY277019[9];
struct  ttype226852  {
  tidobj201015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq226848* Sons;
tnode226816* N;
tsym226846* Owner;
tsym226846* Sym;
tsym226846* Destructor;
tsym226846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc226830 Loc;
};
struct  tnode226816  {
ttype226852* Typ;
tlineinfo196539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym226846* Sym;
} S4;
struct {tident201021* Ident;
} S5;
struct {tnodeseq226810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
struct  tlistentry127022  {
  TNimObject Sup;
tlistentry127022* Prev;
tlistentry127022* Next;
};
struct  tlib226834  {
  tlistentry127022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope178009* Name;
tnode226816* Path;
};
typedef NI TY26420[8];
struct  tpagedesc44941  {
tpagedesc44941* Next;
NI Key;
TY26420 Bits;
};
struct  tbasechunk26438  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26440  {
  tbasechunk26438 Sup;
tsmallchunk26440* Next;
tsmallchunk26440* Prev;
tfreecell26430* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27204  {
NI Size;
NI Acc;
tllchunk27204* Next;
};
struct  tbigchunk26442  {
  tbasechunk26438 Sup;
tbigchunk26442* Next;
tbigchunk26442* Prev;
NI Align;
NF Data;
};
struct  ttrunk26413  {
ttrunk26413* Next;
NI Key;
TY26420 Bits;
};
typedef tavlnode27208* TY27214[2];
struct  tavlnode27208  {
TY27214 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  tscope226840  {
NI Depthlevel;
tstrtable226820 Symbols;
tnodeseq226810* Usingsyms;
tscope226840* Parent;
};
struct  tinstantiation226836  {
tsym226846* Sym;
ttypeseq226848* Concretetypes;
TY226936* Usedby;
};
struct  tident201021  {
  tidobj201015 Sup;
NimStringDesc* S;
tident201021* Next;
NI H;
};
struct  trope178009  {
  TNimObject Sup;
trope178009* Left;
trope178009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tfreecell26430  {
tfreecell26430* Next;
NI Zerofield;
};
struct tsymseq226818 {
  TGenericSeq Sup;
  tsym226846* data[SEQ_DECL_SIZE];
};
struct tidpairseq226862 {
  TGenericSeq Sup;
  tidpair226860 data[SEQ_DECL_SIZE];
};
struct tfilemodulemap279293 {
  TGenericSeq Sup;
  tfilemodulerec279291 data[SEQ_DECL_SIZE];
};
struct TY226936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct tiipairseq236272 {
  TGenericSeq Sup;
  tiipair236270 data[SEQ_DECL_SIZE];
};
struct ttypeseq226848 {
  TGenericSeq Sup;
  ttype226852* data[SEQ_DECL_SIZE];
};
struct TY226947 {
  TGenericSeq Sup;
  tinstantiation226836* data[SEQ_DECL_SIZE];
};
struct tnodeseq226810 {
  TGenericSeq Sup;
  tnode226816* data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP832)(void* p, NI op);
N_NIMCALL(void, TMP833)(void* p, NI op);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_50604)(tcell44933* c);
static N_INLINE(void, rtladdzct_50204)(tcell44933* c);
N_NOINLINE(void, addzct_48617)(tcellseq44949* s, tcell44933* c);
static N_INLINE(NIM_BOOL, canbecycleroot_48667)(tcell44933* c);
static N_INLINE(void, rtladdcycleroot_49429)(tcell44933* c);
N_NOINLINE(void, incl_45671)(tcellset44945* s, tcell44933* cell);
static N_INLINE(tcell44933*, usrtocell_48646)(void* usr);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void, initidtable_227167)(tidtable226864* x);
N_NIMCALL(void, initstrtable_227153)(tstrtable226820* x);
static N_INLINE(NI, getid_225404)(void);
N_NIMCALL(void, loadmaxids_225519)(NimStringDesc* project);
N_NIMCALL(NimStringDesc*, HEX2F_117299)(NimStringDesc* head, NimStringDesc* tail);
N_NIMCALL(NU8, checkdep_279801)(NI32 fileidx);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(NimStringDesc*, tofilename_198025)(NI32 fileidx);
N_NIMCALL(NI32, getcrc_279747)(NI32 fileidx);
N_NIMCALL(void, internalerror_199006)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, HEX24_199126)(TY84745 x_199130);
N_NIMCALL(NI32, crcfromfile_177046)(NimStringDesc* filename);
N_NIMCALL(NimStringDesc*, togeneratedfile_170960)(NimStringDesc* path, NimStringDesc* ext);
N_NIMCALL(NimStringDesc*, withpackagename_170946)(NimStringDesc* path);
N_NIMCALL(trodreader277030*, newrodreader_279108)(NimStringDesc* modfilename, NI32 crc, NI readerindex);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, pushSafePoint)(TSafePoint* s);
N_NIMCALL(memfile275208, open_275807)(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_51025)(tcell44933* c);
N_NIMCALL(void, reraiseException)(void);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
N_NIMCALL(NIM_BOOL, startswith_279075)(NCSTRING buf, NimStringDesc* token, NI pos);
N_NIMCALL(void, initiitable_236282)(tiitable236274* 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_278623)(trodreader277030* r, NI32 crc);
N_NIMCALL(NimStringDesc*, rdword_278273)(trodreader277030* r);
N_NIMCALL(NI, hashString)(NimStringDesc* s);
N_NIMCALL(NI, decodevint_235359)(NCSTRING s, NI* pos);
static N_INLINE(void, setid_225446)(NI id);
N_NIMCALL(NimStringDesc*, decodestr_235155)(NCSTRING s, NI* pos);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(NIM_BOOL, cmdchangetriggersrecompilation_278589)(NU8 old, NU8 new_278592);
N_NIMCALL(NIM_BOOL, isdefined_202046)(tident201021* symbol);
N_NIMCALL(tident201021*, getident_201472)(NimStringDesc* identifier);
N_NIMCALL(NI, countdefinedsymbols_202098)(void);
N_NIMCALL(NimStringDesc*, findmodule_171366)(NimStringDesc* modulename, NimStringDesc* currentmodule);
N_NIMCALL(NI32, fileinfoidx_196747)(NimStringDesc* filename);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(NimStringDesc*, tofullpath_198037)(NI32 fileidx);
N_NIMCALL(void, skipsection_278163)(trodreader277030* 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_278473)(trodreader277030* r, tindex277028* idx, FILE* outf);
N_NIMCALL(void, iitableput_236296)(tiitable236274* t, NI key, NI val);
N_NIMCALL(void, write_12881)(FILE* f, NimStringDesc** a, NI aLen0);
N_NIMCALL(void, rawmessage_198733)(NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
N_NIMCALL(void, close_276249)(memfile275208* f);
N_NIMCALL(void, idtableput_236196)(tidtable226864* t, tidobj201015* key, TNimObject* val);
N_NIMCALL(void, processinterf_278344)(trodreader277030* r, tsym226846* module);
N_NIMCALL(tsym226846*, newstub_278316)(trodreader277030* r, NimStringDesc* name, NI id);
N_NIMCALL(void, registerid_225201)(tidobj201015* id);
N_NIMCALL(void, strtableadd_236103)(tstrtable226820* t, tsym226846* n);
N_NIMCALL(void, processcompilerprocs_278407)(trodreader277030* r, tsym226846* module);
N_NIMCALL(TNimObject*, idtableget_236189)(tidtable226864 t, NI key);
N_NIMCALL(void, loadconverters_279667)(trodreader277030* r);
N_NIMCALL(tsym226846*, rrgetsym_277094)(trodreader277030* r, NI id, tlineinfo196539 info);
N_NIMCALL(NI, iitableget_236289)(tiitable236274 t, NI key);
N_NIMCALL(void, encodevint_235304)(NI x, NimStringDesc** result);
N_NIMCALL(void, internalerror_198987)(tlineinfo196539 info, NimStringDesc* errmsg);
N_NIMCALL(trodreader277030*, getreader_279400)(NI moduleid);
N_NIMCALL(tsym226846*, decodesymsafepos_279327)(trodreader277030* rd, NI offset, tlineinfo196539 info);
N_NIMCALL(tsym226846*, decodesym_277892)(trodreader277030* r, tlineinfo196539 info);
N_NIMCALL(void, genericReset)(void* dest, TNimType* mt);
N_NIMCALL(ttype226852*, rrgettype_277102)(trodreader277030* r, NI id, tlineinfo196539 info);
N_NIMCALL(ttype226852*, decodetype_277636)(trodreader277030* r, tlineinfo196539 info);
N_NIMCALL(tnode226816*, decodenode_277519)(trodreader277030* r, tlineinfo196539 finfo);
N_NIMCALL(tnode226816*, decodenodelazybody_277252)(trodreader277030* r, tlineinfo196539 finfo, tsym226846* belongsto);
N_NIMCALL(tnode226816*, newnodei_227138)(NU8 kind, tlineinfo196539 info);
N_NIMCALL(void, decodelineinfo_277110)(trodreader277030* r, tlineinfo196539* info);
N_NIMCALL(tlineinfo196539, newlineinfo_197128)(NI32 fileinfoidx, NI line, NI col);
N_NIMCALL(NI64, decodevbiggestint_235518)(NCSTRING s, NI* pos);
N_NIMCALL(NF, nsuParseFloat)(NimStringDesc* s);
N_NIMCALL(void, addsonnilallowed_231898)(tnode226816* father, tnode226816* son);
N_NIMCALL(void, skipnode_277160)(trodreader277030* r);
N_NIMCALL(tlineinfo196539, unknownlineinfo_197405)(void);
N_NIMCALL(void, decodeloc_277530)(trodreader277030* r, tloc226830* loc, tlineinfo196539 info);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(trope178009*, torope_178076)(NimStringDesc* s);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(void, rawaddson_231562)(ttype226852* father, ttype226852* son);
N_NIMCALL(tlib226834*, decodelib_277827)(trodreader277030* r, tlineinfo196539 info);
N_NIMCALL(void, rawloadstub_277083)(tsym226846* s);
N_NIMCALL(void, loadmethods_279698)(trodreader277030* r);
N_NIMCALL(tnode226816*, newnode_227090)(NU8 kind);
N_NIMCALL(void, addson_227287)(tnode226816* father, tnode226816* son);
static N_INLINE(void, gcdisable_8001)(void);
static N_INLINE(void, gcenable_8003)(void);
STRING_LITERAL(TMP1370, "compiler/rodread.nim", 20);
NIM_CONST TY84745 TMP1369 = {((NimStringDesc*) &TMP1370),
798}
;
STRING_LITERAL(TMP1371, "rod", 3);
STRING_LITERAL(TMP1373, "NIM:", 4);
STRING_LITERAL(TMP1374, "", 0);
STRING_LITERAL(TMP1375, "1215", 4);
STRING_LITERAL(TMP1376, "CRC", 3);
STRING_LITERAL(TMP1377, "ID", 2);
STRING_LITERAL(TMP1378, "ORIGFILE", 8);
STRING_LITERAL(TMP1379, "OPTIONS", 7);
STRING_LITERAL(TMP1380, "GOPTIONS", 8);
STRING_LITERAL(TMP1381, "CMD", 3);
STRING_LITERAL(TMP1382, "DEFINES", 7);
STRING_LITERAL(TMP1383, "FILES", 5);
STRING_LITERAL(TMP1384, "INCLUDES", 8);
STRING_LITERAL(TMP1385, "DEPS", 4);
STRING_LITERAL(TMP1386, "INTERF", 6);
STRING_LITERAL(TMP1387, "COMPILERPROCS", 13);
STRING_LITERAL(TMP1388, "INDEX", 5);
STRING_LITERAL(TMP1389, "IMPORTS", 7);
STRING_LITERAL(TMP1390, "CONVERTERS", 10);
STRING_LITERAL(TMP1391, "METHODS", 7);
STRING_LITERAL(TMP1392, "DATA", 4);
STRING_LITERAL(TMP1393, "INIT", 4);
STRING_LITERAL(TMP1397, "skipSection ", 12);
STRING_LITERAL(TMP1398, " ", 1);
STRING_LITERAL(TMP1399, "\012", 1);
STRING_LITERAL(TMP1400, "invalid section: \'", 18);
STRING_LITERAL(TMP1401, "\' at ", 5);
STRING_LITERAL(TMP1402, " in ", 4);
STRING_LITERAL(TMP1403, "no need to recompile: $1", 24);
STRING_LITERAL(TMP1404, "symbol file for $1 does not exist", 33);
STRING_LITERAL(TMP1405, "symbol file for $1 has the wrong version", 40);
STRING_LITERAL(TMP1406, "file edited since last compilation: $1", 38);
STRING_LITERAL(TMP1407, "list of conditional symbols changed for: $1", 43);
STRING_LITERAL(TMP1408, "list of options changed for: $1", 31);
STRING_LITERAL(TMP1409, "an include file edited: $1", 26);
STRING_LITERAL(TMP1410, "a module $1 depends on has changed", 34);
NIM_CONST TY277019 reasontofrmt_277018 = {((NimStringDesc*) &TMP1374),
((NimStringDesc*) &TMP1403),
((NimStringDesc*) &TMP1404),
((NimStringDesc*) &TMP1405),
((NimStringDesc*) &TMP1406),
((NimStringDesc*) &TMP1407),
((NimStringDesc*) &TMP1408),
((NimStringDesc*) &TMP1409),
((NimStringDesc*) &TMP1410)}
;
STRING_LITERAL(TMP1411, "handleSymbolFile", 16);
STRING_LITERAL(TMP1412, "processInterf", 13);
STRING_LITERAL(TMP1413, "processCompilerProcs", 20);
STRING_LITERAL(TMP1414, "importConverters", 16);
STRING_LITERAL(TMP1416, "missing from both indexes: +", 28);
STRING_LITERAL(TMP1417, "dataIdx == 0", 12);
STRING_LITERAL(TMP1418, "decodeSym: no id", 16);
STRING_LITERAL(TMP1419, "decodeSym: no ident", 19);
STRING_LITERAL(TMP1420, "decodeSym: wrong id", 19);
STRING_LITERAL(TMP1421, "rrGetType", 9);
STRING_LITERAL(TMP1422, "decodeType: no id", 17);
STRING_LITERAL(TMP1423, "decodeNode: nkIdent", 19);
STRING_LITERAL(TMP1424, "decodeNode: nkSym", 17);
STRING_LITERAL(TMP1425, "decodeNode: \')\' missing", 23);
STRING_LITERAL(TMP1426, "decodeNode: \'(\' missing ", 24);
STRING_LITERAL(TMP1427, "decodeLoc ", 10);
STRING_LITERAL(TMP1428, "decodeType ^(", 13);
STRING_LITERAL(TMP1429, "decodeLib: 1", 12);
STRING_LITERAL(TMP1430, "decodeLib: 2", 12);
STRING_LITERAL(TMP1431, "rrGetSym: no reader found: +", 28);
STRING_LITERAL(TMP1432, "loadStub", 8);
STRING_LITERAL(TMP1433, "loadStub: invalid key", 21);
STRING_LITERAL(TMP1434, "loadStub: wrong symbol", 22);
STRING_LITERAL(TMP1435, "loadStub: wrong ID", 18);
STRING_LITERAL(TMP1436, "loadMethods", 11);
STRING_LITERAL(TMP1438, "loadInitSection", 15);
tstrtable226820 rodcompilerprocs_277066;
tidtable226864 gtypetable_277089;
tfilemodulemap279293* gmods_279322;
TNimType NTI279291; /* TFileModuleRec */
extern TNimType NTI149; /* string */
TNimType NTI277005; /* TReasonForRecompile */
extern TNimType NTI3211; /* RootObj */
TNimType NTI277030; /* TRodReader */
extern TNimType NTI108; /* int */
extern TNimType NTI151; /* cstring */
extern TNimType NTI170016; /* TOptions */
extern TNimType NTI226936; /* seq[int32] */
TNimType NTI277028; /* TIndex */
extern TNimType NTI236274; /* TIITable */
extern TNimType NTI226864; /* TIdTable */
extern TNimType NTI275208; /* MemFile */
extern TNimType NTI226818; /* TSymSeq */
extern TNimType NTI138; /* bool */
TNimType NTI277032; /* PRodReader */
extern TNimType NTI177010; /* TCrc32 */
TNimType NTI279293; /* TFileModuleMap */
extern tgcheap47016 gch_47044;
extern NU32 gglobaloptions_170118;
extern NI gfrontendid_225012;
extern NimStringDesc* gprojectpath_170235;
extern NimStringDesc* gprojectname_170234;
extern TSafePoint* exchandler_16243;
extern TNimType NTI3233; /* OSError */
extern Exception* currexception_16245;
extern NU32 goptions_170116;
extern NU8 gcmd_170120;
extern NI32 systemfileidx_196643;
extern NI gverbosity_170127;
extern TNimType NTI226814; /* PSym */
extern TNimType NTI226846; /* TSym */
extern TNimType NTI226812; /* PType */
extern TNimType NTI226852; /* TType */
extern TNimType NTI226844; /* PLib */
extern TNimType NTI226834; /* TLib */
N_NIMCALL(void, TMP832)(void* p, NI op) {
	trodreader277030* a;
	a = (trodreader277030*)p;
	nimGCvisit((void*)(*a).Moddeps, op);
	nimGCvisit((void*)(*a).Files, op);
	nimGCvisit((void*)(*a).Filename, op);
	nimGCvisit((void*)(*a).Index.Tab.Data, op);
	nimGCvisit((void*)(*a).Index.R, op);
	nimGCvisit((void*)(*a).Imports.Tab.Data, op);
	nimGCvisit((void*)(*a).Imports.R, op);
	nimGCvisit((void*)(*a).Syms.Data, op);
	nimGCvisit((void*)(*a).Methods, op);
	nimGCvisit((void*)(*a).Origfile, op);
}
N_NIMCALL(void, TMP833)(void* p, NI op) {
	tfilemodulemap279293* a;
	NI LOC1;
	a = (tfilemodulemap279293*)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_50204)(tcell44933* c) {
	addzct_48617((&gch_47044.Zct), c);
}

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

static N_INLINE(void, rtladdcycleroot_49429)(tcell44933* c) {
	{
		if (!!((((NI) ((NI)((*c).Refcount & 3))) == 3))) goto LA3;
		(*c).Refcount = (NI)((NI)((*c).Refcount & -4) | 3);
		incl_45671((&gch_47044.Cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, decref_50604)(tcell44933* c) {
	{
		(*c).Refcount -= 8;
		if (!((NU64)((*c).Refcount) < (NU64)(8))) goto LA3;
		rtladdzct_50204(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_48667(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_49429(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

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

static N_INLINE(void, nimGCunref)(void* p) {
	tcell44933* LOC1;
	LOC1 = 0;
	LOC1 = usrtocell_48646(p);
	decref_50604(LOC1);
}

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

N_NIMCALL(NI32, getcrc_279747)(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_279322->Sup.len);
		LA4: ;
		if (!!(LOC3)) goto LA5;
		LOC7 = 0;
		LOC7 = HEX24_199126(TMP1369);
		internalerror_199006(LOC7);
	}
	LA5: ;
	{
		if (!gmods_279322->data[fileidx].Crcdone) goto LA10;
		result = gmods_279322->data[fileidx].Crc;
		goto BeforeRet;
	}
	LA10: ;
	LOC12 = 0;
	LOC12 = tofilename_198025(fileidx);
	result = crcfromfile_177046(LOC12);
	gmods_279322->data[fileidx].Crc = result;
	BeforeRet: ;
	return result;
}

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

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

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

static N_INLINE(void, incref_51025)(tcell44933* c) {
	(*c).Refcount = (NI)((NU64)((*c).Refcount) + (NU64)(8));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_48667(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_49429(c);
	}
	LA4: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		tcell44933* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_48646(src);
		incref_51025(LOC5);
	}
	LA3: ;
	{
		tcell44933* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_48646((*dest));
		decref_50604(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

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

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

N_NIMCALL(NIM_BOOL, startswith_279075)(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(trodreader277030*, newrodreader_279108)(NimStringDesc* modfilename, NI32 crc, NI readerindex) {
	trodreader277030* result;
	TSafePoint TMP1372;
	trodreader277030* r;
	NimStringDesc* LOC4;
	result = 0;
	result = (trodreader277030*) newObj((&NTI277032), sizeof(trodreader277030));
	(*result).Sup.m_type = (&NTI277030);
	pushSafePoint(&TMP1372);
	TMP1372.status = setjmp(TMP1372.context);
	if (TMP1372.status == 0) {
		(*result).Memfile = open_275807(modfilename, ((NU8) 0), -1, 0, -1);
		popSafePoint();
	}
	else {
		popSafePoint();
		if (isObj(getCurrentException()->Sup.m_type, (&NTI3233))) {
			TMP1372.status = 0;
			result = NIM_NIL;
			popCurrentException();
			goto BeforeRet;
			popCurrentException();
		}
	}
	if (TMP1372.status != 0) reraiseException();
	if ((*result).Files) nimGCunrefNoCycle((*result).Files);
	(*result).Files = (TY226936*) newSeqRC1((&NTI226936), 0);
	if ((*result).Moddeps) nimGCunrefNoCycle((*result).Moddeps);
	(*result).Moddeps = (TY226936*) newSeqRC1((&NTI226936), 0);
	if ((*result).Methods) nimGCunrefNoCycle((*result).Methods);
	(*result).Methods = (tsymseq226818*) newSeqRC1((&NTI226818), 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_227167((&(*r).Syms));
	(*r).S = ((NCSTRING) ((*r).Memfile.Mem));
	{
		NIM_BOOL LOC7;
		NimStringDesc* version;
		LOC7 = 0;
		LOC7 = startswith_279075((*r).S, ((NimStringDesc*) &TMP1373), 0);
		if (!LOC7) goto LA8;
		initiitable_236282((&(*r).Index.Tab));
		initiitable_236282((&(*r).Imports.Tab));
		(*r).Pos += 4;
		version = copyString(((NimStringDesc*) &TMP1374));
		{
			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*) &TMP1375)))) goto LA18;
			result = NIM_NIL;
		}
		LA18: ;
	}
	goto LA5;
	LA8: ;
	{
		result = NIM_NIL;
	}
	LA5: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(NimStringDesc*, rdword_278273)(trodreader277030* r) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP1374));
	{
		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_225446)(NI id) {
	gfrontendid_225012 = ((gfrontendid_225012 >= (NI64)(id + 1)) ? gfrontendid_225012 : (NI64)(id + 1));
}

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

N_NIMCALL(NIM_BOOL, cmdchangetriggersrecompilation_278589)(NU8 old, NU8 new_278592) {
	NIM_BOOL result;
	result = 0;
	{
		if (!(old == new_278592)) 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_278592)&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_278163)(trodreader277030* 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*) &TMP1397));
appendString(LOC25, LOC26);
		internalerror_199006(LOC25);
	}
	LA1: ;
}

N_NIMCALL(void, processindex_278473)(trodreader277030* r, tindex277028* 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_235359((*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_235359((*r).S, (&(*r).Pos));
				val = (NI64)(LOC9 + (*idx).Lastidxval);
			}
			goto LA5;
			LA7: ;
			{
				key = (NI64)((*idx).Lastidxkey + 1);
				val = (NI64)(tmp + (*idx).Lastidxval);
			}
			LA5: ;
			iitableput_236296((&(*idx).Tab), key, val);
			{
				TY198620 LOC15;
				if (!!(outf == 0)) goto LA13;
				memset((void*)LOC15, 0, sizeof(LOC15));
				LOC15[0] = nimIntToStr(key);
				LOC15[1] = copyString(((NimStringDesc*) &TMP1398));
				LOC15[2] = nimIntToStr(val);
				LOC15[3] = copyString(((NimStringDesc*) &TMP1399));
				write_12881(outf, LOC15, 4);
			}
			LA13: ;
			(*idx).Lastidxkey = key;
			(*idx).Lastidxval = val;
			setid_225446(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_278623)(trodreader277030* 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_278273(r);
			{
				if (!!(((*r).Reason == ((NU8) 1)))) goto LA5;
				goto LA1;
			}
			LA5: ;
			switch (hashString(section) & 31) {
			case 0: 
if (eqStrings(section, ((NimStringDesc*) &TMP1377))) goto LA8;
if (eqStrings(section, ((NimStringDesc*) &TMP1378))) goto LA9;
break;
			case 1: 
if (eqStrings(section, ((NimStringDesc*) &TMP1380))) goto LA11;
break;
			case 4: 
if (eqStrings(section, ((NimStringDesc*) &TMP1384))) goto LA15;
break;
			case 9: 
if (eqStrings(section, ((NimStringDesc*) &TMP1383))) goto LA14;
break;
			case 10: 
if (eqStrings(section, ((NimStringDesc*) &TMP1381))) goto LA12;
break;
			case 11: 
if (eqStrings(section, ((NimStringDesc*) &TMP1376))) goto LA7;
if (eqStrings(section, ((NimStringDesc*) &TMP1382))) goto LA13;
break;
			case 12: 
if (eqStrings(section, ((NimStringDesc*) &TMP1393))) goto LA24;
break;
			case 13: 
if (eqStrings(section, ((NimStringDesc*) &TMP1392))) goto LA23;
break;
			case 14: 
if (eqStrings(section, ((NimStringDesc*) &TMP1379))) goto LA10;
break;
			case 21: 
if (eqStrings(section, ((NimStringDesc*) &TMP1389))) goto LA20;
break;
			case 25: 
if (eqStrings(section, ((NimStringDesc*) &TMP1387))) goto LA18;
if (eqStrings(section, ((NimStringDesc*) &TMP1388))) goto LA19;
break;
			case 28: 
if (eqStrings(section, ((NimStringDesc*) &TMP1385))) goto LA16;
break;
			case 29: 
if (eqStrings(section, ((NimStringDesc*) &TMP1390))) goto LA21;
break;
			case 31: 
if (eqStrings(section, ((NimStringDesc*) &TMP1386))) goto LA17;
if (eqStrings(section, ((NimStringDesc*) &TMP1391))) goto LA22;
break;
			}
			goto LA25;
			LA7: ;
			{
				(*r).Pos += 1;
				{
					NI LOC30;
					LOC30 = 0;
					LOC30 = decodevint_235359((*r).S, (&(*r).Pos));
					if (!!((((NI) (crc)) == LOC30))) goto LA31;
					(*r).Reason = ((NU8) 4);
				}
				LA31: ;
			}
			goto LA26;
			LA8: ;
			{
				(*r).Pos += 1;
				(*r).Moduleid = decodevint_235359((*r).S, (&(*r).Pos));
				setid_225446((*r).Moduleid);
			}
			goto LA26;
			LA9: ;
			{
				(*r).Pos += 1;
				asgnRefNoCycle((void**) (&(*r).Origfile), decodestr_235155((*r).S, (&(*r).Pos)));
			}
			goto LA26;
			LA10: ;
			{
				NI LOC36;
				(*r).Pos += 1;
				LOC36 = 0;
				LOC36 = decodevint_235359((*r).S, (&(*r).Pos));
				(*r).Options = ((NU32) (((NI32) (LOC36))));
				{
					if (!!((goptions_170116 == (*r).Options))) goto LA39;
					(*r).Reason = ((NU8) 6);
				}
				LA39: ;
			}
			goto LA26;
			LA11: ;
			{
				NU32 dep;
				NI LOC42;
				(*r).Pos += 1;
				LOC42 = 0;
				LOC42 = decodevint_235359((*r).S, (&(*r).Pos));
				dep = ((NU32) (((NI32) (LOC42))));
				{
					if (!!((gglobaloptions_170118 == dep))) goto LA45;
					(*r).Reason = ((NU8) 6);
				}
				LA45: ;
			}
			goto LA26;
			LA12: ;
			{
				NU8 dep;
				NI LOC48;
				(*r).Pos += 1;
				LOC48 = 0;
				LOC48 = decodevint_235359((*r).S, (&(*r).Pos));
				dep = ((NU8) (((NI32) (LOC48))));
				{
					NIM_BOOL LOC51;
					LOC51 = 0;
					LOC51 = cmdchangetriggersrecompilation_278589(dep, gcmd_170120);
					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_235155((*r).S, (&(*r).Pos));
						d += 1;
						{
							tident201021* LOC59;
							NIM_BOOL LOC60;
							LOC59 = 0;
							LOC59 = getident_201472(w);
							LOC60 = 0;
							LOC60 = isdefined_202046(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_202098();
					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_235155((*r).S, (&(*r).Pos));
						resolvedpath = findmodule_171366(relativepath, (*r).Origfile);
						{
							if (!(0 < resolvedpath->Sup.len)) goto LA77;
							finalpath = resolvedpath;
						}
						goto LA75;
						LA77: ;
						{
							finalpath = relativepath;
						}
						LA75: ;
						LOC80 = 0;
						LOC80 = fileinfoidx_196747(finalpath);
						(*r).Files = (TY226936*) 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_235359((*r).S, (&(*r).Pos));
						w = tofullpath_198037((*r).Files->data[LOC88]);
						(*r).Pos += 1;
						inclcrc = decodevint_235359((*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_177046(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_235359((*r).S, (&(*r).Pos));
						(*r).Moddeps = (TY226936*) 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_278163(r);
			}
			goto LA26;
			LA18: ;
			{
				(*r).Compilerprocsidx = (NI64)((*r).Pos + 2);
				skipsection_278163(r);
			}
			goto LA26;
			LA19: ;
			{
				processindex_278473(r, (&(*r).Index), NIM_NIL);
			}
			goto LA26;
			LA20: ;
			{
				processindex_278473(r, (&(*r).Imports), NIM_NIL);
			}
			goto LA26;
			LA21: ;
			{
				(*r).Convertersidx = (NI64)((*r).Pos + 1);
				skipsection_278163(r);
			}
			goto LA26;
			LA22: ;
			{
				(*r).Methodsidx = (NI64)((*r).Pos + 1);
				skipsection_278163(r);
			}
			goto LA26;
			LA23: ;
			{
				(*r).Dataidx = (NI64)((*r).Pos + 2);
				goto LA1;
			}
			goto LA26;
			LA24: ;
			{
				(*r).Initidx = (NI64)((*r).Pos + 2);
				skipsection_278163(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*) &TMP1400));
appendString(LOC126, section);
appendString(LOC126, ((NimStringDesc*) &TMP1401));
appendString(LOC126, LOC127);
appendString(LOC126, ((NimStringDesc*) &TMP1402));
appendString(LOC126, (*r).Filename);
				internalerror_199006(LOC126);
				skipsection_278163(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_279801)(NI32 fileidx) {
	NU8 result;
	NimStringDesc* filename;
	NI32 crc;
	trodreader277030* r;
	NimStringDesc* rodfile;
	NimStringDesc* LOC9;
	result = 0;
	{
		if (!(gmods_279322->Sup.len <= ((NI) (fileidx)))) goto LA3;
		gmods_279322 = (tfilemodulemap279293*) setLengthSeq(&(gmods_279322)->Sup, sizeof(tfilemodulerec279291), ((NI) ((NI32)(fileidx + ((NI32) 1)))));
	}
	LA3: ;
	{
		if (!!((gmods_279322->data[fileidx].Reason == ((NU8) 0)))) goto LA7;
		result = gmods_279322->data[fileidx].Reason;
		goto BeforeRet;
	}
	LA7: ;
	filename = tofilename_198025(fileidx);
	crc = getcrc_279747(fileidx);
	gmods_279322->data[fileidx].Reason = ((NU8) 1);
	result = ((NU8) 1);
	r = NIM_NIL;
	LOC9 = 0;
	LOC9 = withpackagename_170946(filename);
	rodfile = togeneratedfile_170960(LOC9, ((NimStringDesc*) &TMP1371));
	r = newrodreader_279108(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_278623(r, crc);
		result = (*r).Reason;
		{
			NU8 res;
			if (!(result == ((NU8) 1))) goto LA23;
			res = checkdep_279801(systemfileidx_196643);
			{
				if (!!((res == ((NU8) 1)))) goto LA27;
				result = ((NU8) 8);
			}
			LA27: ;
			{
				NI i_280089;
				NI HEX3Atmp_280151;
				NI res_280154;
				i_280089 = 0;
				HEX3Atmp_280151 = 0;
				HEX3Atmp_280151 = ((*r).Moddeps->Sup.len-1);
				res_280154 = 0;
				{
					while (1) {
						if (!(res_280154 <= HEX3Atmp_280151)) goto LA31;
						i_280089 = res_280154;
						res = checkdep_279801((*r).Moddeps->data[i_280089]);
						{
							if (!!((res == ((NU8) 1)))) goto LA34;
							result = ((NU8) 8);
						}
						LA34: ;
						res_280154 += 1;
					} LA31: ;
				}
			}
		}
		LA23: ;
	}
	LA10: ;
	{
		NIM_BOOL LOC38;
		NimStringDesc* LOC42;
		LOC38 = 0;
		LOC38 = !((result == ((NU8) 1)));
		if (!(LOC38)) goto LA39;
		LOC38 = (0 < gverbosity_170127);
		LA39: ;
		if (!LOC38) goto LA40;
		LOC42 = 0;
		LOC42 = nsuFormatSingleElem(reasontofrmt_277018[(result)- 0], filename);
		rawmessage_198733(((NU16) 267), LOC42);
	}
	LA40: ;
	{
		NIM_BOOL LOC45;
		LOC45 = 0;
		LOC45 = !((result == ((NU8) 1)));
		if (LOC45) goto LA46;
		LOC45 = ((gglobaloptions_170118 &(1<<((((NU8) 1))&31)))!=0);
		LA46: ;
		if (!LOC45) goto LA47;
		{
			if (!!((r == NIM_NIL))) goto LA51;
			close_276249((&(*r).Memfile));
		}
		LA51: ;
		r = NIM_NIL;
	}
	LA47: ;
	asgnRef((void**) (&gmods_279322->data[fileidx].Rd), r);
	gmods_279322->data[fileidx].Reason = result;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tsym226846*, newstub_278316)(trodreader277030* r, NimStringDesc* name, NI id) {
	tsym226846* result;
	result = 0;
	result = (tsym226846*) newObj((&NTI226814), sizeof(tsym226846));
	(*result).Sup.Sup.m_type = (&NTI226846);
	(*result).Kind = ((NU8) 23);
	(*result).Sup.Id = id;
	asgnRefNoCycle((void**) (&(*result).Name), getident_201472(name));
	(*result).Position = (*r).Readerindex;
	setid_225446(id);
	{
		tidobj201015* LOC5;
		if (!NIM_FALSE) goto LA3;
		LOC5 = 0;
		LOC5 = &result->Sup;
		registerid_225201(LOC5);
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, processinterf_278344)(trodreader277030* r, tsym226846* module) {
	{
		if (!((*r).Interfidx == 0)) goto LA3;
		internalerror_199006(((NimStringDesc*) &TMP1412));
	}
	LA3: ;
	(*r).Pos = (*r).Interfidx;
	{
		while (1) {
			NIM_BOOL LOC7;
			NimStringDesc* w;
			NI key;
			tsym226846* s;
			tidobj201015* 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_235155((*r).S, (&(*r).Pos));
			(*r).Pos += 1;
			key = decodevint_235359((*r).S, (&(*r).Pos));
			(*r).Pos += 1;
			s = newstub_278316(r, w, key);
			asgnRefNoCycle((void**) (&(*s).Owner), module);
			strtableadd_236103((&(*module).kindU.S3.Tab), s);
			LOC9 = 0;
			LOC9 = &s->Sup;
			LOC10 = 0;
			LOC10 = &s->Sup.Sup;
			idtableput_236196((&(*r).Syms), LOC9, LOC10);
		} LA6: ;
	}
}

N_NIMCALL(void, processcompilerprocs_278407)(trodreader277030* r, tsym226846* module) {
	{
		if (!((*r).Compilerprocsidx == 0)) goto LA3;
		internalerror_199006(((NimStringDesc*) &TMP1413));
	}
	LA3: ;
	(*r).Pos = (*r).Compilerprocsidx;
	{
		while (1) {
			NIM_BOOL LOC7;
			NimStringDesc* w;
			NI key;
			tsym226846* 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_235155((*r).S, (&(*r).Pos));
			(*r).Pos += 1;
			key = decodevint_235359((*r).S, (&(*r).Pos));
			(*r).Pos += 1;
			LOC9 = 0;
			LOC9 = idtableget_236189((*r).Syms, key);
			s = ((tsym226846*) (LOC9));
			{
				tidobj201015* LOC14;
				TNimObject* LOC15;
				if (!(s == NIM_NIL)) goto LA12;
				s = newstub_278316(r, w, key);
				asgnRefNoCycle((void**) (&(*s).Owner), module);
				LOC14 = 0;
				LOC14 = &s->Sup;
				LOC15 = 0;
				LOC15 = &s->Sup.Sup;
				idtableput_236196((&(*r).Syms), LOC14, LOC15);
			}
			LA12: ;
			strtableadd_236103((&rodcompilerprocs_277066), s);
		} LA6: ;
	}
}

N_NIMCALL(trodreader277030*, getreader_279400)(NI moduleid) {
	trodreader277030* result;
	result = 0;
	{
		NI i_279436;
		NI HEX3Atmp_279455;
		NI res_279458;
		i_279436 = 0;
		HEX3Atmp_279455 = 0;
		HEX3Atmp_279455 = (gmods_279322->Sup.len - 1);
		res_279458 = 0;
		{
			while (1) {
				if (!(res_279458 <= HEX3Atmp_279455)) goto LA3;
				i_279436 = res_279458;
				result = gmods_279322->data[i_279436].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_279458 += 1;
			} LA3: ;
		}
	}
	result = NIM_NIL;
	goto BeforeRet;
	BeforeRet: ;
	return result;
}

N_NIMCALL(void, decodelineinfo_277110)(trodreader277030* r, tlineinfo196539* 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_235359((*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_235359((*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_235359((*r).S, (&(*r).Pos));
				(*info) = newlineinfo_197128((*r).Files->data[LOC25], ((NI) ((*info).Line)), ((NI) ((*info).Col)));
			}
			LA23: ;
		}
		LA13: ;
	}
	LA3: ;
}

N_NIMCALL(void, skipnode_277160)(trodreader277030* 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(tnode226816*, decodenodelazybody_277252)(trodreader277030* r, tlineinfo196539 finfo, tsym226846* belongsto) {
	tnode226816* 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_235359((*r).S, (&(*r).Pos));
		result = newnodei_227138(((NU8) (LOC9)), finfo);
		decodelineinfo_277110(r, (&(*result).Info));
		{
			NI LOC14;
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(36))) goto LA12;
			(*r).Pos += 1;
			LOC14 = 0;
			LOC14 = decodevint_235359((*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_235359((*r).S, (&(*r).Pos));
			asgnRefNoCycle((void**) (&(*result).Typ), rrgettype_277102(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_235518((*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_235155((*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_235155((*r).S, (&(*r).Pos)));
			}
			goto LA30;
			LA32: ;
			{
				NimStringDesc* LOC35;
				LOC35 = 0;
				LOC35 = (*result).kindU.S3.Strval; (*result).kindU.S3.Strval = copyStringRC1(((NimStringDesc*) &TMP1374));
				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_235155((*r).S, (&(*r).Pos));
				asgnRefNoCycle((void**) (&(*result).kindU.S5.Ident), getident_201472(fl));
			}
			goto LA37;
			LA39: ;
			{
				internalerror_198987((*result).Info, ((NimStringDesc*) &TMP1423));
			}
			LA37: ;
		}
		break;
		case ((NU8) 3):
		{
			{
				NI id;
				if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(33))) goto LA45;
				(*r).Pos += 1;
				id = decodevint_235359((*r).S, (&(*r).Pos));
				asgnRefNoCycle((void**) (&(*result).kindU.S4.Sym), rrgetsym_277094(r, id, (*result).Info));
			}
			goto LA43;
			LA45: ;
			{
				internalerror_198987((*result).Info, ((NimStringDesc*) &TMP1424));
			}
			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_231898(result, NIM_NIL);
						(*belongsto).Offset = (*r).Pos;
						skipnode_277160(r);
					}
					goto LA51;
					LA55: ;
					{
						tnode226816* LOC58;
						LOC58 = 0;
						LOC58 = decodenodelazybody_277252(r, (*result).Info, NIM_NIL);
						addsonnilallowed_231898(result, LOC58);
					}
					LA51: ;
					i += 1;
				} LA50: ;
			}
		}
		break;
		}
		{
			if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(41))) goto LA61;
			(*r).Pos += 1;
		}
		goto LA59;
		LA61: ;
		{
			internalerror_198987((*result).Info, ((NimStringDesc*) &TMP1425));
		}
		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*) &TMP1426));
appendString(LOC65, LOC66);
		internalerror_198987(finfo, LOC65);
	}
	LA1: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode226816*, decodenode_277519)(trodreader277030* r, tlineinfo196539 finfo) {
	tnode226816* result;
	result = 0;
	result = decodenodelazybody_277252(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_277530)(trodreader277030* r, tloc226830* loc, tlineinfo196539 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_235359((*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_235359((*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_235359((*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_235359((*r).S, (&(*r).Pos));
			unsureAsgnRef((void**) (&(*loc).T), rrgettype_277102(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_235155((*r).S, (&(*r).Pos));
			unsureAsgnRef((void**) (&(*loc).R), torope_178076(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*) &TMP1427));
appendChar(LOC40, (*r).S[(*r).Pos]);
			internalerror_198987(info, LOC40);
		}
		LA35: ;
	}
	LA3: ;
}

N_NIMCALL(ttype226852*, decodetype_277636)(trodreader277030* r, tlineinfo196539 info) {
	ttype226852* result;
	NI LOC9;
	tidobj201015* 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 = (ttype226852*) newObj((&NTI226812), sizeof(ttype226852));
	(*result).Sup.Sup.m_type = (&NTI226852);
	LOC9 = 0;
	LOC9 = decodevint_235359((*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_235359((*r).S, (&(*r).Pos));
		setid_225446((*result).Sup.Id);
		{
			tidobj201015* LOC18;
			if (!NIM_FALSE) goto LA16;
			LOC18 = 0;
			LOC18 = &result->Sup;
			registerid_225201(LOC18);
		}
		LA16: ;
	}
	goto LA10;
	LA12: ;
	{
		internalerror_198987(info, ((NimStringDesc*) &TMP1422));
	}
	LA10: ;
	LOC20 = 0;
	LOC20 = &result->Sup;
	LOC21 = 0;
	LOC21 = &result->Sup.Sup;
	idtableput_236196((&gtypetable_277089), LOC20, LOC21);
	{
		tlineinfo196539 LOC26;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(40))) goto LA24;
		LOC26 = unknownlineinfo_197405();
		asgnRefNoCycle((void**) (&(*result).N), decodenode_277519(r, LOC26));
	}
	LA24: ;
	{
		NI LOC31;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(36))) goto LA29;
		(*r).Pos += 1;
		LOC31 = 0;
		LOC31 = decodevint_235359((*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_235359((*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_235359((*r).S, (&(*r).Pos));
		asgnRefNoCycle((void**) (&(*result).Owner), rrgetsym_277094(r, LOC41, info));
	}
	LA39: ;
	{
		NI LOC46;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(38))) goto LA44;
		(*r).Pos += 1;
		LOC46 = 0;
		LOC46 = decodevint_235359((*r).S, (&(*r).Pos));
		asgnRefNoCycle((void**) (&(*result).Sym), rrgetsym_277094(r, LOC46, info));
	}
	LA44: ;
	{
		NI LOC51;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(47))) goto LA49;
		(*r).Pos += 1;
		LOC51 = 0;
		LOC51 = decodevint_235359((*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_235359((*r).S, (&(*r).Pos));
		(*result).Align = ((NI16) (LOC57));
	}
	goto LA53;
	LA55: ;
	{
		(*result).Align = ((NI16) 2);
	}
	LA53: ;
	decodeloc_277530(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*) &TMP1428));
appendChar(LOC70, (*r).S[(*r).Pos]);
					internalerror_198987(info, LOC70);
				}
				LA65: ;
				rawaddson_231562(result, NIM_NIL);
			}
			goto LA61;
			LA63: ;
			{
				NI d;
				ttype226852* LOC72;
				d = decodevint_235359((*r).S, (&(*r).Pos));
				LOC72 = 0;
				LOC72 = rrgettype_277102(r, d, info);
				rawaddson_231562(result, LOC72);
			}
			LA61: ;
		} LA60: ;
	}
	BeforeRet: ;
	return result;
}

N_NIMCALL(ttype226852*, rrgettype_277102)(trodreader277030* r, NI id, tlineinfo196539 info) {
	ttype226852* result;
	TNimObject* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = idtableget_236189(gtypetable_277089, id);
	result = ((ttype226852*) (LOC1));
	{
		NI oldpos;
		NI d;
		if (!(result == NIM_NIL)) goto LA4;
		oldpos = (*r).Pos;
		d = iitableget_236289((*r).Index.Tab, id);
		{
			if (!(d == (IL64(-9223372036854775807) - IL64(1)))) goto LA8;
			internalerror_198987(info, ((NimStringDesc*) &TMP1421));
		}
		LA8: ;
		(*r).Pos = (NI64)(d + (*r).Dataidx);
		result = decodetype_277636(r, info);
		(*r).Pos = oldpos;
	}
	LA4: ;
	return result;
}

N_NIMCALL(tlib226834*, decodelib_277827)(trodreader277030* r, tlineinfo196539 info) {
	tlib226834* result;
	result = 0;
	result = NIM_NIL;
	{
		NI LOC5;
		NimStringDesc* LOC10;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(124))) goto LA3;
		result = (tlib226834*) newObj((&NTI226844), sizeof(tlib226834));
		(*result).Sup.Sup.m_type = (&NTI226834);
		(*r).Pos += 1;
		LOC5 = 0;
		LOC5 = decodevint_235359((*r).S, (&(*r).Pos));
		(*result).Kind = ((NU8) (LOC5));
		{
			if (!!(((NU8)((*r).S[(*r).Pos]) == (NU8)(124)))) goto LA8;
			internalerror_199006(((NimStringDesc*) &TMP1429));
		}
		LA8: ;
		(*r).Pos += 1;
		LOC10 = 0;
		LOC10 = decodestr_235155((*r).S, (&(*r).Pos));
		asgnRefNoCycle((void**) (&(*result).Name), torope_178076(LOC10));
		{
			if (!!(((NU8)((*r).S[(*r).Pos]) == (NU8)(124)))) goto LA13;
			internalerror_199006(((NimStringDesc*) &TMP1430));
		}
		LA13: ;
		(*r).Pos += 1;
		asgnRefNoCycle((void**) (&(*result).Path), decodenode_277519(r, info));
	}
	LA3: ;
	return result;
}

N_NIMCALL(tsym226846*, decodesym_277892)(trodreader277030* r, tlineinfo196539 info) {
	tsym226846* result;
	NI id;
	tident201021* 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_235359((*r).S, (&(*r).Pos));
	k = ((NU8) (LOC9));
	{
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(43))) goto LA12;
		(*r).Pos += 1;
		id = decodevint_235359((*r).S, (&(*r).Pos));
		setid_225446(id);
	}
	goto LA10;
	LA12: ;
	{
		internalerror_198987(info, ((NimStringDesc*) &TMP1418));
	}
	LA10: ;
	{
		NimStringDesc* LOC19;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(38))) goto LA17;
		(*r).Pos += 1;
		LOC19 = 0;
		LOC19 = decodestr_235155((*r).S, (&(*r).Pos));
		ident = getident_201472(LOC19);
	}
	goto LA15;
	LA17: ;
	{
		internalerror_198987(info, ((NimStringDesc*) &TMP1419));
	}
	LA15: ;
	LOC21 = 0;
	LOC21 = idtableget_236189((*r).Syms, id);
	result = ((tsym226846*) (LOC21));
	{
		tidobj201015* LOC26;
		TNimObject* LOC27;
		if (!(result == NIM_NIL)) goto LA24;
		result = (tsym226846*) newObj((&NTI226814), sizeof(tsym226846));
		(*result).Sup.Sup.m_type = (&NTI226846);
		(*result).Sup.Id = id;
		LOC26 = 0;
		LOC26 = &result->Sup;
		LOC27 = 0;
		LOC27 = &result->Sup.Sup;
		idtableput_236196((&(*r).Syms), LOC26, LOC27);
		{
			tidobj201015* LOC32;
			if (!NIM_FALSE) goto LA30;
			LOC32 = 0;
			LOC32 = &result->Sup;
			registerid_225201(LOC32);
		}
		LA30: ;
	}
	goto LA22;
	LA24: ;
	{
		if (!!(((*result).Sup.Id == id))) goto LA34;
		internalerror_198987(info, ((NimStringDesc*) &TMP1420));
	}
	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)), (&NTI226846));
		(*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_235359((*r).S, (&(*r).Pos));
		asgnRefNoCycle((void**) (&(*result).Typ), rrgettype_277102(r, LOC46, info));
	}
	LA44: ;
	decodelineinfo_277110(r, (&(*result).Info));
	{
		NI LOC51;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(42))) goto LA49;
		(*r).Pos += 1;
		LOC51 = 0;
		LOC51 = decodevint_235359((*r).S, (&(*r).Pos));
		asgnRefNoCycle((void**) (&(*result).Owner), rrgetsym_277094(r, LOC51, (*result).Info));
	}
	LA49: ;
	{
		NI LOC56;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(36))) goto LA54;
		(*r).Pos += 1;
		LOC56 = 0;
		LOC56 = decodevint_235359((*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_235359((*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_235359((*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_235359((*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_235359((*r).S, (&(*r).Pos));
	}
	goto LA75;
	LA77: ;
	{
		(*result).Offset = -1;
	}
	LA75: ;
	decodeloc_277530(r, (&(*result).Loc), (*result).Info);
	asgnRef((void**) (&(*result).Annex), decodelib_277827(r, info));
	{
		tlineinfo196539 LOC84;
		if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(35))) goto LA82;
		(*r).Pos += 1;
		LOC84 = unknownlineinfo_197405();
		asgnRefNoCycle((void**) (&(*result).Constraint), decodenode_277519(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_277252(r, (*result).Info, result));
			(*result).Position = (*r).Readerindex;
		}
		goto LA89;
		LA91: ;
		{
			asgnRefNoCycle((void**) (&(*result).Ast), decodenode_277519(r, (*result).Info));
		}
		LA89: ;
	}
	LA87: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tsym226846*, decodesymsafepos_279327)(trodreader277030* rd, NI offset, tlineinfo196539 info) {
	tsym226846* result;
	NI oldpos;
	result = 0;
	{
		if (!((*rd).Dataidx == 0)) goto LA3;
		internalerror_198987(info, ((NimStringDesc*) &TMP1417));
	}
	LA3: ;
	oldpos = (*rd).Pos;
	(*rd).Pos = (NI64)(offset + (*rd).Dataidx);
	result = decodesym_277892(rd, info);
	(*rd).Pos = oldpos;
	return result;
}

N_NIMCALL(void, rawloadstub_277083)(tsym226846* s) {
	trodreader277030* rd;
	NI theid;
	NI d;
	tsym226846* rs;
	tlineinfo196539 LOC9;
	{
		if (!!(((*s).Kind == ((NU8) 23)))) goto LA3;
		internalerror_199006(((NimStringDesc*) &TMP1432));
	}
	LA3: ;
	rd = gmods_279322->data[(*s).Position].Rd;
	theid = (*s).Sup.Id;
	d = iitableget_236289((*rd).Index.Tab, (*s).Sup.Id);
	{
		if (!(d == (IL64(-9223372036854775807) - IL64(1)))) goto LA7;
		internalerror_199006(((NimStringDesc*) &TMP1433));
	}
	LA7: ;
	LOC9 = unknownlineinfo_197405();
	rs = decodesymsafepos_279327(rd, d, LOC9);
	{
		if (!!((rs == s))) goto LA12;
		internalerror_198987((*rs).Info, ((NimStringDesc*) &TMP1434));
	}
	goto LA10;
	LA12: ;
	{
		if (!!(((*rs).Sup.Id == theid))) goto LA15;
		internalerror_198987((*rs).Info, ((NimStringDesc*) &TMP1435));
	}
	goto LA10;
	LA15: ;
	LA10: ;
}

N_NIMCALL(tsym226846*, rrgetsym_277094)(trodreader277030* r, NI id, tlineinfo196539 info) {
	tsym226846* result;
	TNimObject* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = idtableget_236189((*r).Syms, id);
	result = ((tsym226846*) (LOC1));
	{
		NI d;
		if (!(result == NIM_NIL)) goto LA4;
		d = iitableget_236289((*r).Index.Tab, id);
		{
			NI moduleid;
			trodreader277030* rd;
			if (!(d == (IL64(-9223372036854775807) - IL64(1)))) goto LA8;
			moduleid = iitableget_236289((*r).Imports.Tab, id);
			{
				NimStringDesc* x;
				NimStringDesc* LOC14;
				if (!(moduleid < 0)) goto LA12;
				x = copyString(((NimStringDesc*) &TMP1374));
				encodevint_235304(id, (&x));
				LOC14 = 0;
				LOC14 = rawNewString(x->Sup.len + 28);
appendString(LOC14, ((NimStringDesc*) &TMP1416));
appendString(LOC14, x);
				internalerror_198987(info, LOC14);
			}
			LA12: ;
			rd = getreader_279400(moduleid);
			d = iitableget_236289((*rd).Index.Tab, id);
			{
				if (!!((d == (IL64(-9223372036854775807) - IL64(1))))) goto LA17;
				result = decodesymsafepos_279327(rd, d, info);
			}
			goto LA15;
			LA17: ;
			{
				NimStringDesc* x;
				NimStringDesc* LOC20;
				x = copyString(((NimStringDesc*) &TMP1374));
				encodevint_235304(id, (&x));
				LOC20 = 0;
				LOC20 = rawNewString(x->Sup.len + 28);
appendString(LOC20, ((NimStringDesc*) &TMP1431));
appendString(LOC20, x);
				internalerror_198987(info, LOC20);
			}
			LA15: ;
		}
		goto LA6;
		LA8: ;
		{
			result = decodesymsafepos_279327(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_277083(result);
	}
	LA26: ;
	return result;
}

N_NIMCALL(void, loadconverters_279667)(trodreader277030* r) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*r).Convertersidx == 0);
		if (LOC3) goto LA4;
		LOC3 = ((*r).Dataidx == 0);
		LA4: ;
		if (!LOC3) goto LA5;
		internalerror_199006(((NimStringDesc*) &TMP1414));
	}
	LA5: ;
	(*r).Pos = (*r).Convertersidx;
	{
		while (1) {
			NI d;
			tlineinfo196539 LOC9;
			tsym226846* LOC10;
			if (!((NU8)(10) < (NU8)((*r).S[(*r).Pos]))) goto LA8;
			d = decodevint_235359((*r).S, (&(*r).Pos));
			LOC9 = unknownlineinfo_197405();
			LOC10 = 0;
			LOC10 = rrgetsym_277094(r, d, LOC9);
			{
				if (!((NU8)((*r).S[(*r).Pos]) == (NU8)(32))) goto LA13;
				(*r).Pos += 1;
			}
			LA13: ;
		} LA8: ;
	}
}

N_NIMCALL(void, loadmethods_279698)(trodreader277030* r) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*r).Methodsidx == 0);
		if (LOC3) goto LA4;
		LOC3 = ((*r).Dataidx == 0);
		LA4: ;
		if (!LOC3) goto LA5;
		internalerror_199006(((NimStringDesc*) &TMP1436));
	}
	LA5: ;
	(*r).Pos = (*r).Methodsidx;
	{
		while (1) {
			NI d;
			tlineinfo196539 LOC9;
			tsym226846* LOC10;
			if (!((NU8)(10) < (NU8)((*r).S[(*r).Pos]))) goto LA8;
			d = decodevint_235359((*r).S, (&(*r).Pos));
			LOC9 = unknownlineinfo_197405();
			LOC10 = 0;
			LOC10 = rrgetsym_277094(r, d, LOC9);
			(*r).Methods = (tsymseq226818*) incrSeq(&((*r).Methods)->Sup, sizeof(tsym226846*));
			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(trodreader277030*, handlesymbolfile_277071)(tsym226846* module) {
	trodreader277030* result;
	NI32 fileidx;
	NimStringDesc* LOC5;
	NU8 LOC6;
	result = 0;
	fileidx = ((NI32) ((*module).Position));
	{
		if (!!(((gglobaloptions_170118 &(1<<((((NU8) 14))&31)))!=0))) goto LA3;
		(*module).Sup.Id = getid_225404();
		result = NIM_NIL;
		goto BeforeRet;
	}
	LA3: ;
	LOC5 = 0;
	LOC5 = HEX2F_117299(gprojectpath_170235, gprojectname_170234);
	loadmaxids_225519(LOC5);
	LOC6 = 0;
	LOC6 = checkdep_279801(fileidx);
	{
		if (!(gmods_279322->data[fileidx].Reason == ((NU8) 0))) goto LA9;
		internalerror_199006(((NimStringDesc*) &TMP1411));
	}
	LA9: ;
	result = gmods_279322->data[fileidx].Rd;
	{
		tidobj201015* 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_236196((&(*result).Syms), LOC15, LOC16);
		processinterf_278344(result, module);
		processcompilerprocs_278407(result, module);
		loadconverters_279667(result);
		loadmethods_279698(result);
	}
	goto LA11;
	LA13: ;
	{
		(*module).Sup.Id = getid_225404();
	}
	LA11: ;
	BeforeRet: ;
	return result;
}

N_NIMCALL(tnode226816*, loadinitsection_277077)(trodreader277030* r) {
	tnode226816* 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_199006(((NimStringDesc*) &TMP1438));
	}
	LA5: ;
	oldpos = (*r).Pos;
	(*r).Pos = (*r).Initidx;
	result = newnode_227090(((NU8) 115));
	{
		while (1) {
			NIM_BOOL LOC9;
			NI d;
			NI p;
			tlineinfo196539 LOC11;
			tnode226816* 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_235359((*r).S, (&(*r).Pos));
			(*r).Pos += 1;
			p = (*r).Pos;
			(*r).Pos = (NI64)(d + (*r).Dataidx);
			LOC11 = unknownlineinfo_197405();
			LOC12 = 0;
			LOC12 = decodenode_277519(r, LOC11);
			addson_227287(result, LOC12);
			(*r).Pos = p;
		} LA8: ;
	}
	(*r).Pos = oldpos;
	return result;
}

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

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

N_NIMCALL(void, loadstub_280260)(tsym226846* s) {
	gcdisable_8001();
	rawloadstub_277083(s);
	gcenable_8003();
}

N_NIMCALL(tnode226816*, getbody_280269)(tsym226846* s) {
	tnode226816* result;
	result = 0;
	result = (*(*s).Ast).kindU.S6.Sons->data[6];
	{
		trodreader277030* r;
		NI oldpos;
		if (!(result == NIM_NIL)) goto LA3;
		r = gmods_279322->data[(*s).Position].Rd;
		oldpos = (*r).Pos;
		(*r).Pos = (*s).Offset;
		result = decodenode_277519(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_279322) nimGCunref(gmods_279322);
	gmods_279322 = (tfilemodulemap279293*) newSeqRC1((&NTI279293), 0);
	initidtable_227167((&gtypetable_277089));
	initstrtable_227153((&rodcompilerprocs_277066));
}

NIM_EXTERNC N_NOINLINE(void, HEX00_rodreadDatInit)(void) {
static TNimNode* TMP817[5];
static TNimNode* TMP818[9];
NI TMP820;
static char* NIM_CONST TMP819[9] = {
"rrEmpty", 
"rrNone", 
"rrRodDoesNotExist", 
"rrRodInvalid", 
"rrCrcChange", 
"rrDefines", 
"rrOptions", 
"rrInclDeps", 
"rrModDeps"};
static TNimNode* TMP821[23];
static TNimNode* TMP822[5];
static TNimNode TMP809[46];
NTI279291.size = sizeof(tfilemodulerec279291);
NTI279291.kind = 18;
NTI279291.base = 0;
TMP817[0] = &TMP809[1];
TMP809[1].kind = 1;
TMP809[1].offset = offsetof(tfilemodulerec279291, Filename);
TMP809[1].typ = (&NTI149);
TMP809[1].name = "filename";
TMP817[1] = &TMP809[2];
NTI277005.size = sizeof(NU8);
NTI277005.kind = 14;
NTI277005.base = 0;
NTI277005.flags = 3;
for (TMP820 = 0; TMP820 < 9; TMP820++) {
TMP809[TMP820+3].kind = 1;
TMP809[TMP820+3].offset = TMP820;
TMP809[TMP820+3].name = TMP819[TMP820];
TMP818[TMP820] = &TMP809[TMP820+3];
}
TMP809[12].len = 9; TMP809[12].kind = 2; TMP809[12].sons = &TMP818[0];
NTI277005.node = &TMP809[12];
TMP809[2].kind = 1;
TMP809[2].offset = offsetof(tfilemodulerec279291, Reason);
TMP809[2].typ = (&NTI277005);
TMP809[2].name = "reason";
TMP817[2] = &TMP809[13];
NTI277030.size = sizeof(trodreader277030);
NTI277030.kind = 17;
NTI277030.base = (&NTI3211);
TMP821[0] = &TMP809[15];
TMP809[15].kind = 1;
TMP809[15].offset = offsetof(trodreader277030, Pos);
TMP809[15].typ = (&NTI108);
TMP809[15].name = "pos";
TMP821[1] = &TMP809[16];
TMP809[16].kind = 1;
TMP809[16].offset = offsetof(trodreader277030, S);
TMP809[16].typ = (&NTI151);
TMP809[16].name = "s";
TMP821[2] = &TMP809[17];
TMP809[17].kind = 1;
TMP809[17].offset = offsetof(trodreader277030, Options);
TMP809[17].typ = (&NTI170016);
TMP809[17].name = "options";
TMP821[3] = &TMP809[18];
TMP809[18].kind = 1;
TMP809[18].offset = offsetof(trodreader277030, Reason);
TMP809[18].typ = (&NTI277005);
TMP809[18].name = "reason";
TMP821[4] = &TMP809[19];
TMP809[19].kind = 1;
TMP809[19].offset = offsetof(trodreader277030, Moddeps);
TMP809[19].typ = (&NTI226936);
TMP809[19].name = "modDeps";
TMP821[5] = &TMP809[20];
TMP809[20].kind = 1;
TMP809[20].offset = offsetof(trodreader277030, Files);
TMP809[20].typ = (&NTI226936);
TMP809[20].name = "files";
TMP821[6] = &TMP809[21];
TMP809[21].kind = 1;
TMP809[21].offset = offsetof(trodreader277030, Dataidx);
TMP809[21].typ = (&NTI108);
TMP809[21].name = "dataIdx";
TMP821[7] = &TMP809[22];
TMP809[22].kind = 1;
TMP809[22].offset = offsetof(trodreader277030, Convertersidx);
TMP809[22].typ = (&NTI108);
TMP809[22].name = "convertersIdx";
TMP821[8] = &TMP809[23];
TMP809[23].kind = 1;
TMP809[23].offset = offsetof(trodreader277030, Initidx);
TMP809[23].typ = (&NTI108);
TMP809[23].name = "initIdx";
TMP821[9] = &TMP809[24];
TMP809[24].kind = 1;
TMP809[24].offset = offsetof(trodreader277030, Interfidx);
TMP809[24].typ = (&NTI108);
TMP809[24].name = "interfIdx";
TMP821[10] = &TMP809[25];
TMP809[25].kind = 1;
TMP809[25].offset = offsetof(trodreader277030, Compilerprocsidx);
TMP809[25].typ = (&NTI108);
TMP809[25].name = "compilerProcsIdx";
TMP821[11] = &TMP809[26];
TMP809[26].kind = 1;
TMP809[26].offset = offsetof(trodreader277030, Methodsidx);
TMP809[26].typ = (&NTI108);
TMP809[26].name = "methodsIdx";
TMP821[12] = &TMP809[27];
TMP809[27].kind = 1;
TMP809[27].offset = offsetof(trodreader277030, Filename);
TMP809[27].typ = (&NTI149);
TMP809[27].name = "filename";
TMP821[13] = &TMP809[28];
NTI277028.size = sizeof(tindex277028);
NTI277028.kind = 18;
NTI277028.base = 0;
NTI277028.flags = 2;
TMP822[0] = &TMP809[30];
TMP809[30].kind = 1;
TMP809[30].offset = offsetof(tindex277028, Lastidxkey);
TMP809[30].typ = (&NTI108);
TMP809[30].name = "lastIdxKey";
TMP822[1] = &TMP809[31];
TMP809[31].kind = 1;
TMP809[31].offset = offsetof(tindex277028, Lastidxval);
TMP809[31].typ = (&NTI108);
TMP809[31].name = "lastIdxVal";
TMP822[2] = &TMP809[32];
TMP809[32].kind = 1;
TMP809[32].offset = offsetof(tindex277028, Tab);
TMP809[32].typ = (&NTI236274);
TMP809[32].name = "tab";
TMP822[3] = &TMP809[33];
TMP809[33].kind = 1;
TMP809[33].offset = offsetof(tindex277028, R);
TMP809[33].typ = (&NTI149);
TMP809[33].name = "r";
TMP822[4] = &TMP809[34];
TMP809[34].kind = 1;
TMP809[34].offset = offsetof(tindex277028, Offset);
TMP809[34].typ = (&NTI108);
TMP809[34].name = "offset";
TMP809[29].len = 5; TMP809[29].kind = 2; TMP809[29].sons = &TMP822[0];
NTI277028.node = &TMP809[29];
TMP809[28].kind = 1;
TMP809[28].offset = offsetof(trodreader277030, Index);
TMP809[28].typ = (&NTI277028);
TMP809[28].name = "index";
TMP821[14] = &TMP809[35];
TMP809[35].kind = 1;
TMP809[35].offset = offsetof(trodreader277030, Imports);
TMP809[35].typ = (&NTI277028);
TMP809[35].name = "imports";
TMP821[15] = &TMP809[36];
TMP809[36].kind = 1;
TMP809[36].offset = offsetof(trodreader277030, Readerindex);
TMP809[36].typ = (&NTI108);
TMP809[36].name = "readerIndex";
TMP821[16] = &TMP809[37];
TMP809[37].kind = 1;
TMP809[37].offset = offsetof(trodreader277030, Line);
TMP809[37].typ = (&NTI108);
TMP809[37].name = "line";
TMP821[17] = &TMP809[38];
TMP809[38].kind = 1;
TMP809[38].offset = offsetof(trodreader277030, Moduleid);
TMP809[38].typ = (&NTI108);
TMP809[38].name = "moduleID";
TMP821[18] = &TMP809[39];
TMP809[39].kind = 1;
TMP809[39].offset = offsetof(trodreader277030, Syms);
TMP809[39].typ = (&NTI226864);
TMP809[39].name = "syms";
TMP821[19] = &TMP809[40];
TMP809[40].kind = 1;
TMP809[40].offset = offsetof(trodreader277030, Memfile);
TMP809[40].typ = (&NTI275208);
TMP809[40].name = "memfile";
TMP821[20] = &TMP809[41];
TMP809[41].kind = 1;
TMP809[41].offset = offsetof(trodreader277030, Methods);
TMP809[41].typ = (&NTI226818);
TMP809[41].name = "methods";
TMP821[21] = &TMP809[42];
TMP809[42].kind = 1;
TMP809[42].offset = offsetof(trodreader277030, Origfile);
TMP809[42].typ = (&NTI149);
TMP809[42].name = "origFile";
TMP821[22] = &TMP809[43];
TMP809[43].kind = 1;
TMP809[43].offset = offsetof(trodreader277030, Inviewmode);
TMP809[43].typ = (&NTI138);
TMP809[43].name = "inViewMode";
TMP809[14].len = 23; TMP809[14].kind = 2; TMP809[14].sons = &TMP821[0];
NTI277030.node = &TMP809[14];
NTI277032.size = sizeof(trodreader277030*);
NTI277032.kind = 22;
NTI277032.base = (&NTI277030);
NTI277032.marker = TMP832;
TMP809[13].kind = 1;
TMP809[13].offset = offsetof(tfilemodulerec279291, Rd);
TMP809[13].typ = (&NTI277032);
TMP809[13].name = "rd";
TMP817[3] = &TMP809[44];
TMP809[44].kind = 1;
TMP809[44].offset = offsetof(tfilemodulerec279291, Crc);
TMP809[44].typ = (&NTI177010);
TMP809[44].name = "crc";
TMP817[4] = &TMP809[45];
TMP809[45].kind = 1;
TMP809[45].offset = offsetof(tfilemodulerec279291, Crcdone);
TMP809[45].typ = (&NTI138);
TMP809[45].name = "crcDone";
TMP809[0].len = 5; TMP809[0].kind = 2; TMP809[0].sons = &TMP817[0];
NTI279291.node = &TMP809[0];
NTI279293.size = sizeof(tfilemodulemap279293*);
NTI279293.kind = 24;
NTI279293.base = (&NTI279291);
NTI279293.marker = TMP833;
}

