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

#include "nimbase.h"
#include <string.h>
typedef struct Tcontext282023 Tcontext282023;
typedef struct Tsym227841 Tsym227841;
typedef struct Tnode227809 Tnode227809;
typedef struct Ttype227847 Ttype227847;
typedef struct Tlineinfo192352 Tlineinfo192352;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tident200021 Tident200021;
typedef struct Tnodeseq227803 Tnodeseq227803;
typedef struct Tidobj200015 Tidobj200015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tpasscontext279005 Tpasscontext279005;
typedef struct Tscope227835 Tscope227835;
typedef struct Tproccon282011 Tproccon282011;
typedef struct Tsymseq227811 Tsymseq227811;
typedef struct Intset224056 Intset224056;
typedef struct Trunk224052 Trunk224052;
typedef struct Trunkseq224054 Trunkseq224054;
typedef struct Tlinkedlist143028 Tlinkedlist143028;
typedef struct Tlistentry143022 Tlistentry143022;
typedef struct Tidtable227859 Tidtable227859;
typedef struct Tidpairseq227857 Tidpairseq227857;
typedef struct Tstrtable227813 Tstrtable227813;
typedef struct Tctx281048 Tctx281048;
typedef struct TY282143 TY282143;
typedef struct Cell48946 Cell48946;
typedef struct Cellseq48962 Cellseq48962;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48958 Cellset48958;
typedef struct Pagedesc48954 Pagedesc48954;
typedef struct Memregion30890 Memregion30890;
typedef struct Smallchunk30842 Smallchunk30842;
typedef struct Llchunk30884 Llchunk30884;
typedef struct Bigchunk30844 Bigchunk30844;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30888 Avlnode30888;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Ttypeseq227843 Ttypeseq227843;
typedef struct TY227944 TY227944;
typedef struct Tloc227823 Tloc227823;
typedef struct Ropeobj178009 Ropeobj178009;
typedef struct Tlib227827 Tlib227827;
typedef struct Toptionentry282005 Toptionentry282005;
typedef struct TY122218 TY122218;
typedef struct Tinfocc205011 Tinfocc205011;
typedef struct Tidpair227855 Tidpair227855;
typedef struct TY281254 TY281254;
typedef struct TY193420 TY193420;
typedef struct PprocHEX3Aobjecttype281233 PprocHEX3Aobjecttype281233;
typedef struct TY281273 TY281273;
typedef struct Tinstantiationpair282013 Tinstantiationpair282013;
typedef struct Tinstantiation227831 Tinstantiation227831;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct TY281234 TY281234;
typedef struct TY281239 TY281239;
typedef struct TY281274 TY281274;
typedef struct Vmargs281042 Vmargs281042;
typedef struct TY227932 TY227932;
typedef struct Tblock281030 Tblock281030;
typedef struct TY281214 TY281214;
typedef NU8 Tspecialwords208012[33];
struct  Tlineinfo192352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tnode227809  {
Ttype227847* typ;
Tlineinfo192352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym227841* sym;
} S4;
struct {Tident200021* ident;
} S5;
struct {Tnodeseq227803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef NimStringDesc* TY192317[23];
typedef N_NIMCALL_PTR(void, TY3889) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3894) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3889 marker;
TY3894 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj200015  {
  TNimObject Sup;
NI id;
};
struct  Tident200021  {
  Tidobj200015 Sup;
NimStringDesc* s;
Tident200021* next;
NI h;
};
typedef NimStringDesc* TY192311[31];
struct  Tpasscontext279005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Intset224056  {
NI counter;
NI max;
Trunk224052* head;
Trunkseq224054* data;
};
struct  Tlinkedlist143028  {
Tlistentry143022* head;
Tlistentry143022* tail;
NI counter;
};
struct  Tidtable227859  {
NI counter;
Tidpairseq227857* data;
};
typedef N_NIMCALL_PTR(Tnode227809*, TY282074) (Tcontext282023* c, Tnode227809* n);
typedef N_NIMCALL_PTR(Tnode227809*, TY282079) (Tcontext282023* c, Tnode227809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode227809*, TY282087) (Tcontext282023* c, Tnode227809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode227809*, TY282095) (Tcontext282023* c, Tnode227809* n);
typedef N_NIMCALL_PTR(Tnode227809*, TY282100) (Tcontext282023* c, Tnode227809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode227809*, TY282108) (Tcontext282023* c, Tnode227809* n);
typedef N_NIMCALL_PTR(Tnode227809*, TY282113) (Tcontext282023* c, Tnode227809* n, Tnode227809* norig, NU32 filter);
typedef N_NIMCALL_PTR(Ttype227847*, TY282120) (Tcontext282023* c, Tnode227809* n, Ttype227847* prev);
typedef struct {
N_NIMCALL_PTR(Tnode227809*, ClPrc) (Tcontext282023* c, Tidtable227859 pt, Tnode227809* n, void* ClEnv);
void* ClEnv;
} TY282126;
typedef struct {
N_NIMCALL_PTR(Tsym227841*, ClPrc) (Tcontext282023* c, Tsym227841* fn, Tidtable227859 pt, Tlineinfo192352 info, void* ClEnv);
void* ClEnv;
} TY282132;
struct  Tstrtable227813  {
NI counter;
Tsymseq227811* data;
};
typedef N_NIMCALL_PTR(Tsym227841*, TY282148) (Tcontext282023* c, Tsym227841* dc, Ttype227847* t, Tlineinfo192352 info, NU8 op);
struct  Tcontext282023  {
  Tpasscontext279005 Sup;
Tsym227841* module;
Tscope227835* currentscope;
Tscope227835* importtable;
Tscope227835* toplevelscope;
Tproccon282011* p;
Tsymseq227811* friendmodules;
NI instcounter;
Intset224056 ambiguoussymbols;
NI intypeclass;
NI ingenericcontext;
NI inunrolledcontext;
NI compilescontextid;
NI compilescontextidgenerator;
NI ingenericinst;
Tsymseq227811* converters;
Tsymseq227811* patterns;
Tlinkedlist143028 optionstack;
Tidtable227859 symmapping;
Tlinkedlist143028 libs;
TY282074 semconstexpr;
TY282079 semexpr;
TY282087 semtryexpr;
TY282095 semtryconstexpr;
TY282100 semoperand;
TY282108 semconstboolexpr;
TY282113 semoverloadedcall;
TY282120 semtypenode;
TY282126 seminferredlambda;
TY282132 semgenerateinstance;
Intset224056 includedfiles;
Tstrtable227813 userpragmas;
Tctx281048* evalcontext;
Intset224056 unknownidents;
TY282143* generics;
NI lastgenericidx;
NI hloloopdetector;
NI inparallelstmt;
TY282148 insttypeboundop;
};
struct  Cell48946  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48962  {
NI len;
NI cap;
Cell48946** d;
};
struct  Cellset48958  {
NI counter;
NI max;
Pagedesc48954* head;
Pagedesc48954** data;
};
typedef Smallchunk30842* TY30905[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30890  {
NI minlargeobj;
NI maxlargeobj;
TY30905 freesmallchunks;
Llchunk30884* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30844* freechunkslist;
Intset30817 chunkstarts;
Avlnode30888* root;
Avlnode30888* deleted;
Avlnode30888* last;
Avlnode30888* freeavlnodes;
};
struct  Gcstat51014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51018  {
Gcstack51016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq48962 zct;
Cellseq48962 decstack;
Cellset48958 cycleroots;
Cellseq48962 tempstack;
NI recgclock;
Memregion30890 region;
Gcstat51014 stat;
};
struct  Tloc227823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype227847* t;
Ropeobj178009* r;
Ropeobj178009* heaproot;
};
struct  Tsym227841  {
  Tidobj200015 Sup;
NU8 kind;
union{
struct {Ttypeseq227843* typeinstcache;
Tscope227835* typscope;
} S1;
struct {TY227944* procinstcache;
Tsym227841* gcunsafetyreason;
} S2;
struct {TY227944* usedgenerics;
Tstrtable227813 tab;
} S3;
struct {Tsym227841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype227847* typ;
Tident200021* name;
Tlineinfo192352 info;
Tsym227841* owner;
NU32 flags;
Tnode227809* ast;
NU32 options;
NI position;
NI offset;
Tloc227823 loc;
Tlib227827* annex;
Tnode227809* constraint;
};
struct  Ttype227847  {
  Tidobj200015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq227843* sons;
Tnode227809* n;
Tsym227841* owner;
Tsym227841* sym;
Tsym227841* destructor;
Tsym227841* deepcopy;
Tsym227841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc227823 loc;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tlistentry143022  {
  TNimObject Sup;
Tlistentry143022* prev;
Tlistentry143022* next;
};
struct  Tlib227827  {
  Tlistentry143022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj178009* name;
Tnode227809* path;
};
struct  Toptionentry282005  {
  Tlistentry143022 Sup;
NU32 options;
NU8 defaultcc;
Tlib227827* dynlib;
NU64 notes;
Tnode227809* otherpragmas;
};
struct TY122218 {
NimStringDesc* Field0;
NimStringDesc* Field1;
NimStringDesc* Field2;
};
struct Tinfocc205011 {
NimStringDesc* Field0;
NimStringDesc* Field1;
NimStringDesc* Field2;
NimStringDesc* Field3;
NimStringDesc* Field4;
NimStringDesc* Field5;
NimStringDesc* Field6;
NimStringDesc* Field7;
NimStringDesc* Field8;
NimStringDesc* Field9;
NimStringDesc* Field10;
NimStringDesc* Field11;
NimStringDesc* Field12;
NimStringDesc* Field13;
NimStringDesc* Field14;
NimStringDesc* Field15;
NimStringDesc* Field16;
NimStringDesc* Field17;
NimStringDesc* Field18;
NimStringDesc* Field19;
NU8 Field20;
};
typedef Tinfocc205011 TY205481[13];
struct  Tproccon282011  {
Tsym227841* owner;
Tsym227841* resultsym;
NI nestedloopcounter;
NI nestedblockcounter;
NI intrystmt;
Tproccon282011* next;
NIM_BOOL wasforwarded;
Tnode227809* bracketexpr;
};
struct  Tscope227835  {
NI depthlevel;
Tstrtable227813 symbols;
Tnodeseq227803* usingsyms;
Tscope227835* parent;
};
typedef NI TY30821[16];
struct  Trunk224052  {
Trunk224052* next;
NI key;
TY30821 bits;
};
struct  Tidpair227855  {
Tidobj200015* key;
TNimObject* val;
};
struct  Tctx281048  {
  Tpasscontext279005 Sup;
TY281254* code;
TY193420* debug;
Tnode227809* globals;
Tnode227809* constants;
Ttypeseq227843* types;
Tnode227809* currentexceptiona;
Tnode227809* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype281233* prc;
Tsym227841* module;
Tnode227809* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo192352 comesfromheuristic;
TY281273* callbacks;
NimStringDesc* errorflag;
};
struct  Tinstantiationpair282013  {
Tsym227841* genericsym;
Tinstantiation227831* inst;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
struct  Pagedesc48954  {
Pagedesc48954* next;
NI key;
TY30821 bits;
};
struct  Basechunk30840  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30842  {
  Basechunk30840 Sup;
Smallchunk30842* next;
Smallchunk30842* prev;
Freecell30832* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30884  {
NI size;
NI acc;
Llchunk30884* next;
};
struct  Bigchunk30844  {
  Basechunk30840 Sup;
Bigchunk30844* next;
Bigchunk30844* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30821 bits;
};
typedef Avlnode30888* TY30895[2];
struct  Avlnode30888  {
TY30895 link;
NI key;
NI upperbound;
NI level;
};
struct  Ropeobj178009  {
  TNimObject Sup;
Ropeobj178009* left;
Ropeobj178009* right;
NI length;
NimStringDesc* data;
};
struct TY281239 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY281239 TY281242[256];
struct  PprocHEX3Aobjecttype281233  {
TY281234* blocks;
Tsym227841* sym;
TY281242 slots;
NI maxslots;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs281042* args, void* ClEnv);
void* ClEnv;
} Vmcallback281044;
struct TY281274 {
NimStringDesc* Field0;
Vmcallback281044 Field1;
};
struct  Tinstantiation227831  {
Tsym227841* sym;
Ttypeseq227843* concretetypes;
TY227932* usedby;
NI compilesid;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct  Tblock281030  {
Tsym227841* label;
TY281214* fixups;
};
struct  Vmargs281042  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode227809* currentexception;
};
struct Tnodeseq227803 {
  TGenericSeq Sup;
  Tnode227809* data[SEQ_DECL_SIZE];
};
struct Tsymseq227811 {
  TGenericSeq Sup;
  Tsym227841* data[SEQ_DECL_SIZE];
};
struct Trunkseq224054 {
  TGenericSeq Sup;
  Trunk224052* data[SEQ_DECL_SIZE];
};
struct Tidpairseq227857 {
  TGenericSeq Sup;
  Tidpair227855 data[SEQ_DECL_SIZE];
};
struct TY282143 {
  TGenericSeq Sup;
  Tinstantiationpair282013 data[SEQ_DECL_SIZE];
};
struct Ttypeseq227843 {
  TGenericSeq Sup;
  Ttype227847* data[SEQ_DECL_SIZE];
};
struct TY227944 {
  TGenericSeq Sup;
  Tinstantiation227831* data[SEQ_DECL_SIZE];
};
struct TY281254 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY193420 {
  TGenericSeq Sup;
  Tlineinfo192352 data[SEQ_DECL_SIZE];
};
struct TY281273 {
  TGenericSeq Sup;
  TY281274 data[SEQ_DECL_SIZE];
};
struct TY281234 {
  TGenericSeq Sup;
  Tblock281030 data[SEQ_DECL_SIZE];
};
struct TY227932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY281214 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, pragmarec_303263)(Tcontext282023* c, Tsym227841* sym, Tnode227809* n, Tspecialwords208012 validpragmas);
N_NIMCALL(NI, sonslen_230387)(Tnode227809* n);
N_NIMCALL(NIM_BOOL, singlepragma_301406)(Tcontext282023* c, Tsym227841* sym, Tnode227809* n, NI i, Tspecialwords208012 validpragmas);
N_NIMCALL(void, processnote_300284)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(NU16, whichkeyword_208390)(Tident200021* id);
N_NIMCALL(NI, findstr_208348)(NimStringDesc** a, NI aLen0, NimStringDesc* s);
N_NIMCALL(void, invalidpragma_299091)(Tnode227809* n);
N_NIMCALL(void, localerror_198128)(Tlineinfo192352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_249059)(Tnode227809* n, NU8 renderflags);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell48946*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48946* c);
N_NOINLINE(void, addzct_52617)(Cellseq48962* s, Cell48946* c);
N_NIMCALL(Tident200021*, considerquotedident_288010)(Tnode227809* n);
N_NIMCALL(Tsym227841*, strtableget_235111)(Tstrtable227813 t, Tident200021* name);
N_NIMCALL(void, globalerror_198107)(Tlineinfo192352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, pragma_299082)(Tcontext282023* c, Tsym227841* sym, Tnode227809* n, Tspecialwords208012 validpragmas);
N_NIMCALL(void, makeexternexport_299276)(Tsym227841* s, NimStringDesc* extname, Tlineinfo192352 info);
N_NIMCALL(void, setexternname_299189)(Tsym227841* s, NimStringDesc* extname);
N_NIMCALL(Ropeobj178009*, rope_178322)(NimStringDesc* s);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
N_NIMCALL(NIM_BOOL, contains_106953)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, getoptionalstr_299525)(Tcontext282023* c, Tnode227809* n, NimStringDesc* defaultstr);
N_NIMCALL(NimStringDesc*, expectstrlit_299488)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(Tnode227809*, getstrlitnode_299464)(Tcontext282023* c, Tnode227809* n);
N_NOINLINE(Tnode227809*, newemptystrnode_299453)(Tnode227809* n);
N_NIMCALL(Tnode227809*, newnodeit_229807)(NU8 kind, Tlineinfo192352 info, Ttype227847* typ);
N_NIMCALL(Ttype227847*, getsystype_276190)(NU8 kind);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(void, makeexternimport_299222)(Tsym227841* s, NimStringDesc* extname);
N_NIMCALL(void, processimportcompilerproc_299298)(Tsym227841* s, NimStringDesc* extname);
N_NIMCALL(void, processimportcpp_299341)(Tsym227841* s, NimStringDesc* extname);
N_NIMCALL(Tsym227841*, getmodule_235243)(Tsym227841* s);
N_NIMCALL(void, processimportobjc_299397)(Tsym227841* s, NimStringDesc* extname);
N_NIMCALL(NI, expectintlit_299500)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(NIM_BOOL, ispoweroftwo_163638)(NI x);
N_NIMCALL(void, noval_300806)(Tnode227809* n);
N_NIMCALL(void, pragmadeadcodeelim_299971)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(NIM_BOOL, isturnedon_299903)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(void, pragmanoforward_300003)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(void, processmagic_299558)(Tcontext282023* c, Tnode227809* n, Tsym227841* s);
N_NIMCALL(NimStringDesc*, copyStr)(NimStringDesc* s, NI start);
N_NIMCALL(NimStringDesc*, copyStr)(NimStringDesc* s, NI first);
N_NIMCALL(NimStringDesc*, reprEnum)(NI e_88659, TNimType* typ);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(void, message_198161)(Tlineinfo192352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(Tlib227827*, getlib_300067)(Tcontext282023* c, NU8 kind, Tnode227809* path);
N_NIMCALL(NIM_BOOL, exprstructuralequivalent_256149)(Tnode227809* a, Tnode227809* b, NIM_BOOL strictsymequality);
N_NIMCALL(Tlib227827*, newlib_282201)(NU8 kind);
N_NIMCALL(void, append_143053)(Tlinkedlist143028* list, Tlistentry143022* entry);
N_NIMCALL(NIM_BOOL, isdynliboverride_170681)(NimStringDesc* lib);
N_NIMCALL(void, addtolib_282207)(Tlib227827* lib, Tsym227841* sym);
N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s);
N_NIMCALL(void, processdynlib_300186)(Tcontext282023* c, Tnode227809* n, Tsym227841* sym);
N_NIMCALL(Tnode227809*, expectdynlibnode_300121)(Tcontext282023* c, Tnode227809* n);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_55022)(Cell48946* c);
static N_INLINE(NIM_BOOL, canbecycleroot_52667)(Cell48946* c);
static N_INLINE(void, rtladdcycleroot_53423)(Cell48946* c);
N_NOINLINE(void, incl_49665)(Cellset48958* s, Cell48946* cell);
static N_INLINE(void, decref_54604)(Cell48946* c);
N_NIMCALL(void, markcompilerproc_301220)(Tsym227841* s);
N_NIMCALL(void, registercompilerproc_276864)(Tsym227841* s);
N_NIMCALL(void, deprecatedstmt_301252)(Tcontext282023* c, Tnode227809* pragma_301255);
static N_INLINE(Tnode227809*, HEX5BHEX5D_228244)(Tnode227809* n, NI i);
N_NIMCALL(void, localerror_198139)(Tlineinfo192352 info, NimStringDesc* arg);
static N_INLINE(NI, len_228098)(Tnode227809* n);
N_NIMCALL(Tsym227841*, qualifiedlookup_288864)(Tcontext282023* c, Tnode227809* n, NU8 flags);
N_NIMCALL(Tsym227841*, newsym_228656)(NU8 symkind, Tident200021* name, Tsym227841* owner, Tlineinfo192352 info);
N_NIMCALL(void, addinterfacedecl_288736)(Tcontext282023* c, Tsym227841* sym);
N_NIMCALL(void, typeborrow_301179)(Tsym227841* sym, Tnode227809* n);
static N_INLINE(NIM_BOOL, isroutine_232763)(Tsym227841* s);
N_NIMCALL(void, fatal_198096)(Tlineinfo192352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, processdefine_300611)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(void, definesymbol_201013)(NimStringDesc* symbol);
N_NIMCALL(void, processundef_300642)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(void, undefsymbol_201022)(NimStringDesc* symbol);
N_NIMCALL(void, processcompile_300680)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(NimStringDesc*, findfile_170539)(NimStringDesc* f);
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(NIM_BOOL, nosisAbsolute)(NimStringDesc* path);
N_NIMCALL(NimStringDesc*, HEX2F_121890)(NimStringDesc* head, NimStringDesc* tail);
N_NIMCALL(NimStringDesc*, nosparentDir)(NimStringDesc* path);
N_NIMCALL(NimStringDesc*, tofullpath_193665)(NI32 fileidx);
N_NIMCALL(void, addexternalfiletocompile_206699)(NimStringDesc* filename);
N_NIMCALL(void, addfiletolink_206154)(NimStringDesc* filename);
N_NIMCALL(NimStringDesc*, completecfilepath_206112)(NimStringDesc* cfile, NIM_BOOL createsubdir);
N_NIMCALL(void, processcommonlink_300693)(Tcontext282023* c, Tnode227809* n, NU8 feature);
N_NIMCALL(void, nossplitFile)(NimStringDesc* path, TY122218* Result);
N_NIMCALL(NimStringDesc*, nosaddFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(void, internalerror_198172)(Tlineinfo192352 info, NimStringDesc* errmsg);
N_NIMCALL(void, addlinkoption_206056)(NimStringDesc* option);
N_NIMCALL(void, addcompileoption_206066)(NimStringDesc* option);
N_NIMCALL(void, pragmabreakpoint_300706)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(void, pragmawatchpoint_300716)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(void, processpush_300534)(Tcontext282023* c, Tnode227809* n, NI start);
N_NIMCALL(Toptionentry282005*, newoptionentry_282196)(void);
N_NIMCALL(NIM_BOOL, processoption_300399)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(void, onoff_299936)(Tcontext282023* c, Tnode227809* n, NU32 op);
N_NIMCALL(void, processcallconv_300035)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(NU8, wordtocallconv_299866)(NU16 sw);
N_NIMCALL(Tnode227809*, newnodei_229351)(NU8 kind, Tlineinfo192352 info);
N_NIMCALL(void, add_228165)(Tnode227809* father, Tnode227809* son);
N_NIMCALL(void, processpop_300600)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(void, remove_143639)(Tlinkedlist143028* list, Tlistentry143022* entry);
N_NIMCALL(void, processpragma_300930)(Tcontext282023* c, Tnode227809* n, NI i);
N_NIMCALL(void, addson_229819)(Tnode227809* father, Tnode227809* son);
N_NIMCALL(void, strtableadd_235103)(Tstrtable227813* t, Tsym227841* n);
N_NIMCALL(void, processcodegendecl_299546)(Tcontext282023* c, Tnode227809* n, Tsym227841* sym);
N_NIMCALL(void, pragmaemit_300795)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(Tnode227809*, semasmoremit_300737)(Tcontext282023* con, Tnode227809* n, NIM_CHAR marker);
N_NIMCALL(Tnode227809*, newnode_229607)(NU8 kind, Tlineinfo192352 info, Tnodeseq227803* sons, Ttype227847* typ);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(NI, nsuFindChar)(NimStringDesc* s, NIM_CHAR sub, NI start);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI start_81016, NI last);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI first, NI last);
N_NIMCALL(Tnode227809*, newstrnode_228644)(NU8 kind, NimStringDesc* strval);
N_NIMCALL(Tsym227841*, searchinscopes_288205)(Tcontext282023* c, Tident200021* s);
N_NIMCALL(Tident200021*, getident_200463)(NimStringDesc* identifier);
N_NIMCALL(void, loadstub_273053)(Tsym227841* s);
N_NIMCALL(Tnode227809*, newsymnode_229325)(Tsym227841* sym);
N_NIMCALL(NimStringDesc*, nimCharToStr)(NIM_CHAR x);
N_NIMCALL(void, illformedastlocal_283250)(Tnode227809* n);
N_NIMCALL(void, pragmaunroll_300824)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(Tnode227809*, newintnode_228608)(NU8 kind, NI64 intval);
N_NIMCALL(void, pragmaline_300854)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(NI32, fileinfoidx_193254)(NimStringDesc* filename);
N_NIMCALL(Tlineinfo192352, getinfocontext_193626)(NI index);
N_NIMCALL(void, pragmaraisesortags_301008)(Tcontext282023* c, Tnode227809* n);
N_NIMCALL(void, processexc_301012)(Tcontext282023* c, Tnode227809* x);
N_NIMCALL(Ttype227847*, skiptypes_231167)(Ttype227847* t, NU64 kinds);
N_NIMCALL(void, pragmalockstmt_301081)(Tcontext282023* c, Tnode227809* it);
N_NIMCALL(NI16, pragmalocks_301149)(Tcontext282023* c, Tnode227809* it);
N_NIMCALL(Tsym227841*, pragmaguard_301332)(Tcontext282023* c, Tnode227809* it, NU8 kind);
N_NIMCALL(void, registernimscriptsymbol_276874)(Tsym227841* s);
static N_INLINE(NIM_BOOL, istoplevel_283280)(Tcontext282023* c);
N_NIMCALL(void, implicitpragmas_302759)(Tcontext282023* c, Tsym227841* sym, Tnode227809* n, Tspecialwords208012 validpragmas);
N_NIMCALL(void, pushinfocontext_193581)(Tlineinfo192352 info);
N_NIMCALL(void, popinfocontext_193600)(void);
N_NIMCALL(NIM_BOOL, HEX3DHEX3D_302972)(Tnodeseq227803* x, Tnodeseq227803* y);
STRING_LITERAL(TMP3163, "Success", 7);
STRING_LITERAL(TMP3164, "SuccessX", 8);
STRING_LITERAL(TMP3165, "LineTooLong", 11);
STRING_LITERAL(TMP3166, "XDeclaredButNotUsed", 19);
STRING_LITERAL(TMP3167, "ConvToBaseNotNeeded", 19);
STRING_LITERAL(TMP3168, "ConvFromXtoItselfNotNeeded", 26);
STRING_LITERAL(TMP3169, "ExprAlwaysX", 11);
STRING_LITERAL(TMP3170, "QuitCalled", 10);
STRING_LITERAL(TMP3171, "Processing", 10);
STRING_LITERAL(TMP3172, "CodeBegin", 9);
STRING_LITERAL(TMP3173, "CodeEnd", 7);
STRING_LITERAL(TMP3174, "Conf", 4);
STRING_LITERAL(TMP3175, "Path", 4);
STRING_LITERAL(TMP3176, "CondTrue", 8);
STRING_LITERAL(TMP3177, "Name", 4);
STRING_LITERAL(TMP3178, "Pattern", 7);
STRING_LITERAL(TMP3179, "Exec", 4);
STRING_LITERAL(TMP3180, "Link", 4);
STRING_LITERAL(TMP3181, "Dependency", 10);
STRING_LITERAL(TMP3182, "Source", 6);
STRING_LITERAL(TMP3183, "StackTrace", 10);
STRING_LITERAL(TMP3184, "GCStats", 7);
STRING_LITERAL(TMP3185, "User", 4);
NIM_CONST TY192317 TMP3162 = {((NimStringDesc*) &TMP3163),
((NimStringDesc*) &TMP3164),
((NimStringDesc*) &TMP3165),
((NimStringDesc*) &TMP3166),
((NimStringDesc*) &TMP3167),
((NimStringDesc*) &TMP3168),
((NimStringDesc*) &TMP3169),
((NimStringDesc*) &TMP3170),
((NimStringDesc*) &TMP3171),
((NimStringDesc*) &TMP3172),
((NimStringDesc*) &TMP3173),
((NimStringDesc*) &TMP3174),
((NimStringDesc*) &TMP3175),
((NimStringDesc*) &TMP3176),
((NimStringDesc*) &TMP3177),
((NimStringDesc*) &TMP3178),
((NimStringDesc*) &TMP3179),
((NimStringDesc*) &TMP3180),
((NimStringDesc*) &TMP3181),
((NimStringDesc*) &TMP3182),
((NimStringDesc*) &TMP3183),
((NimStringDesc*) &TMP3184),
((NimStringDesc*) &TMP3185)}
;
STRING_LITERAL(TMP3187, "CannotOpenFile", 14);
STRING_LITERAL(TMP3188, "OctalEscape", 11);
STRING_LITERAL(TMP3189, "XIsNeverRead", 12);
STRING_LITERAL(TMP3190, "XmightNotBeenInit", 17);
STRING_LITERAL(TMP3191, "Deprecated", 10);
STRING_LITERAL(TMP3192, "ConfigDeprecated", 16);
STRING_LITERAL(TMP3193, "SmallLshouldNotBeUsed", 21);
STRING_LITERAL(TMP3194, "UnknownMagic", 12);
STRING_LITERAL(TMP3195, "RedefinitionOfLabel", 19);
STRING_LITERAL(TMP3196, "UnknownSubstitutionX", 20);
STRING_LITERAL(TMP3197, "LanguageXNotSupported", 21);
STRING_LITERAL(TMP3198, "FieldXNotSupported", 18);
STRING_LITERAL(TMP3199, "CommentXIgnored", 15);
STRING_LITERAL(TMP3200, "NilStmt", 7);
STRING_LITERAL(TMP3201, "TypelessParam", 13);
STRING_LITERAL(TMP3202, "UseBase", 7);
STRING_LITERAL(TMP3203, "WriteToForeignHeap", 18);
STRING_LITERAL(TMP3204, "UnsafeCode", 10);
STRING_LITERAL(TMP3205, "EachIdentIsTuple", 16);
STRING_LITERAL(TMP3206, "ShadowIdent", 11);
STRING_LITERAL(TMP3207, "ProveInit", 9);
STRING_LITERAL(TMP3208, "ProveField", 10);
STRING_LITERAL(TMP3209, "ProveIndex", 10);
STRING_LITERAL(TMP3210, "GcUnsafe", 8);
STRING_LITERAL(TMP3211, "GcUnsafe2", 9);
STRING_LITERAL(TMP3212, "Uninit", 6);
STRING_LITERAL(TMP3213, "GcMem", 5);
STRING_LITERAL(TMP3214, "Destructor", 10);
STRING_LITERAL(TMP3215, "LockLevel", 9);
STRING_LITERAL(TMP3216, "ResultShadowed", 14);
NIM_CONST TY192311 TMP3186 = {((NimStringDesc*) &TMP3187),
((NimStringDesc*) &TMP3188),
((NimStringDesc*) &TMP3189),
((NimStringDesc*) &TMP3190),
((NimStringDesc*) &TMP3191),
((NimStringDesc*) &TMP3192),
((NimStringDesc*) &TMP3193),
((NimStringDesc*) &TMP3194),
((NimStringDesc*) &TMP3195),
((NimStringDesc*) &TMP3196),
((NimStringDesc*) &TMP3197),
((NimStringDesc*) &TMP3198),
((NimStringDesc*) &TMP3199),
((NimStringDesc*) &TMP3200),
((NimStringDesc*) &TMP3201),
((NimStringDesc*) &TMP3202),
((NimStringDesc*) &TMP3203),
((NimStringDesc*) &TMP3204),
((NimStringDesc*) &TMP3205),
((NimStringDesc*) &TMP3206),
((NimStringDesc*) &TMP3207),
((NimStringDesc*) &TMP3208),
((NimStringDesc*) &TMP3209),
((NimStringDesc*) &TMP3210),
((NimStringDesc*) &TMP3211),
((NimStringDesc*) &TMP3212),
((NimStringDesc*) &TMP3213),
((NimStringDesc*) &TMP3214),
((NimStringDesc*) &TMP3215),
((NimStringDesc*) &TMP3216),
((NimStringDesc*) &TMP3185)}
;
STRING_LITERAL(TMP3217, "", 0);
STRING_LITERAL(TMP3218, "$1", 2);
STRING_LITERAL(TMP3219, "destroy", 7);
STRING_LITERAL(TMP3220, "destructor has to be named \'destroy\'", 36);
STRING_LITERAL(TMP3221, "list of key:value pairs expected", 32);
STRING_LITERAL(TMP3223, "key:value pair expected", 23);
STRING_LITERAL(TMP3224, "a type can only borrow `.` for now", 34);
STRING_LITERAL(TMP3225, "define", 6);
STRING_LITERAL(TMP3226, "undef", 5);
extern NIM_CONST TY205481 Cc_205467;
STRING_LITERAL(TMP3227, "processCommonLink", 17);
STRING_LITERAL(TMP3228, "\':\' after \'push\' not supported", 30);
STRING_LITERAL(TMP3229, "speed", 5);
STRING_LITERAL(TMP3230, "size", 4);
STRING_LITERAL(TMP3231, "none", 4);
STRING_LITERAL(TMP3232, "tuple", 5);
STRING_LITERAL(TMP3233, "invalid type for raises/tags list", 33);
STRING_LITERAL(TMP3234, "locks pragma takes a list of expressions", 40);
STRING_LITERAL(TMP3235, "integer must be within 0..1000", 30);
STRING_LITERAL(TMP3240, "\'experimental\' pragma only valid as toplevel statement", 54);
STRING_LITERAL(TMP3241, "implicitPragmas", 15);
extern Gcheap51018 gch_51059;
extern NU64 gnotes_193398;
extern NU8 gcmd_169134;
extern NIM_BOOL gmixedmode_205490;
extern TNimType NTI227534; /* TMagic */
extern NU8 ccompiler_205488;
extern NimStringDesc* libpath_169233;
extern NU32 goptions_169130;
extern TNimType NTI227803; /* TNodeSeq */

N_NIMCALL(void, invalidpragma_299091)(Tnode227809* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_249059(n, 4);
	localerror_198128((*n).info, ((NU16) 166), LOC1);
}

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

static N_INLINE(void, rtladdzct_54204)(Cell48946* c) {
	addzct_52617((&gch_51059.zct), c);
}

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

N_NIMCALL(void, processnote_300284)(Tcontext282023* c, Tnode227809* n) {
{	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		NIM_BOOL LOC5;
		NIM_BOOL LOC6;
		NI LOC8;
		NU16 nk;
		NU16 LOC14;
		Tnode227809* x;
		LOC3 = 0;
		LOC4 = 0;
		LOC5 = 0;
		LOC6 = 0;
		LOC6 = ((*n).kind == ((NU8) 34));
		if (!(LOC6)) goto LA7;
		LOC8 = 0;
		LOC8 = sonslen_230387(n);
		LOC6 = (LOC8 == ((NI) 2));
		LA7: ;
		LOC5 = LOC6;
		if (!(LOC5)) goto LA9;
		LOC5 = ((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 42));
		LA9: ;
		LOC4 = LOC5;
		if (!(LOC4)) goto LA10;
		LOC4 = ((*(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 2));
		LA10: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA11;
		LOC3 = ((*(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 2));
		LA11: ;
		if (!LOC3) goto LA12;
		nk = 0;
		LOC14 = 0;
		LOC14 = whichkeyword_208390((*(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]).kindU.S5.ident);
		switch (LOC14) {
		case ((NU16) 114):
		{
			NI x;
			x = findstr_208348(TMP3162, 23, (*(*(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident).s);
			{
				if (!(((NI) 0) <= x)) goto LA18;
				nk = ((NU16) ((NI)(x + ((NI) 268))));
			}
			goto LA16;
			LA18: ;
			{
				invalidpragma_299091(n);
				goto BeforeRet;
			}
			LA16: ;
		}
		break;
		case ((NU16) 113):
		{
			NI x;
			x = findstr_208348(TMP3186, 31, (*(*(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident).s);
			{
				if (!(((NI) 0) <= x)) goto LA24;
				nk = ((NU16) ((NI)(x + ((NI) 237))));
			}
			goto LA22;
			LA24: ;
			{
				invalidpragma_299091(n);
				goto BeforeRet;
			}
			LA22: ;
		}
		break;
		default:
		{
			invalidpragma_299091(n);
			goto BeforeRet;
		}
		break;
		}
		x = (*c).semconstboolexpr(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), x);
		{
			NIM_BOOL LOC30;
			LOC30 = 0;
			LOC30 = ((*x).kind == ((NU8) 6));
			if (!(LOC30)) goto LA31;
			LOC30 = !(((*x).kindU.S1.intval == IL64(0)));
			LA31: ;
			if (!LOC30) goto LA32;
			gnotes_193398 |= ((NU64)1)<<(((nk- 237))%(sizeof(NU64)*8));
		}
		goto LA28;
		LA32: ;
		{
			gnotes_193398 &= ~(((NU64)1) << (((nk- 237)) % (sizeof(NU64)*8)));
		}
		LA28: ;
	}
	goto LA1;
	LA12: ;
	{
		invalidpragma_299091(n);
	}
	LA1: ;
	}BeforeRet: ;
}

N_NIMCALL(void, setexternname_299189)(Tsym227841* s, NimStringDesc* extname) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = nsuFormatSingleElem(extname, (*(*s).name).s);
	asgnRefNoCycle((void**) (&(*s).loc.r), rope_178322(LOC1));
	{
		NIM_BOOL LOC4;
		NIM_BOOL LOC6;
		LOC4 = 0;
		LOC4 = (gcmd_169134 == ((NU8) 7));
		if (!(LOC4)) goto LA5;
		LOC6 = 0;
		LOC6 = contains_106953(extname, 36);
		LOC4 = !(LOC6);
		LA5: ;
		if (!LOC4) goto LA7;
		(*s).loc.flags |= ((NU16)1)<<((((NU8) 1))%(sizeof(NU16)*8));
	}
	LA7: ;
}

N_NIMCALL(void, makeexternexport_299276)(Tsym227841* s, NimStringDesc* extname, Tlineinfo192352 info) {
	setexternname_299189(s, extname);
	(*s).flags |= ((NU32)1)<<((((NU8) 6))%(sizeof(NU32)*8));
}

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

N_NOINLINE(Tnode227809*, newemptystrnode_299453)(Tnode227809* n) {
	Tnode227809* result;
	Ttype227847* LOC1;
	NimStringDesc* LOC2;
	result = 0;
	LOC1 = 0;
	LOC1 = getsystype_276190(((NU8) 28));
	result = newnodeit_229807(((NU8) 20), (*n).info, LOC1);
	LOC2 = 0;
	LOC2 = (*result).kindU.S3.strval; (*result).kindU.S3.strval = copyStringRC1(((NimStringDesc*) &TMP3217));
	if (LOC2) nimGCunrefNoCycle(LOC2);
	return result;
}

N_NIMCALL(Tnode227809*, getstrlitnode_299464)(Tcontext282023* c, Tnode227809* n) {
	Tnode227809* result;
	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		localerror_198128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3217));
		result = newemptystrnode_299453(n);
	}
	goto LA1;
	LA3: ;
	{
		asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), (*c).semconstexpr(c, (*n).kindU.S6.sons->data[((NI) 1)]));
		switch ((*(*n).kindU.S6.sons->data[((NI) 1)]).kind) {
		case ((NU8) 20):
		case ((NU8) 21):
		case ((NU8) 22):
		{
			result = (*n).kindU.S6.sons->data[((NI) 1)];
		}
		break;
		default:
		{
			localerror_198128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3217));
			result = newemptystrnode_299453(n);
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(NimStringDesc*, expectstrlit_299488)(Tcontext282023* c, Tnode227809* n) {
	NimStringDesc* result;
	Tnode227809* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getstrlitnode_299464(c, n);
	result = copyString((*LOC1).kindU.S3.strval);
	return result;
}

N_NIMCALL(NimStringDesc*, getoptionalstr_299525)(Tcontext282023* c, Tnode227809* n, NimStringDesc* defaultstr) {
	NimStringDesc* result;
	result = 0;
	{
		if (!((*n).kind == ((NU8) 34))) goto LA3;
		result = expectstrlit_299488(c, n);
	}
	goto LA1;
	LA3: ;
	{
		result = copyString(defaultstr);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, makeexternimport_299222)(Tsym227841* s, NimStringDesc* extname) {
	setexternname_299189(s, extname);
	(*s).flags |= ((NU32)1)<<((((NU8) 5))%(sizeof(NU32)*8));
	(*s).flags &= ~(((NU32)1) << ((((NU8) 4)) % (sizeof(NU32)*8)));
}

N_NIMCALL(void, processimportcompilerproc_299298)(Tsym227841* s, NimStringDesc* extname) {
	setexternname_299189(s, extname);
	(*s).flags |= ((NU32)1)<<((((NU8) 5))%(sizeof(NU32)*8));
	(*s).flags &= ~(((NU32)1) << ((((NU8) 4)) % (sizeof(NU32)*8)));
	(*s).loc.flags |= ((NU16)1)<<((((NU8) 7))%(sizeof(NU16)*8));
}

N_NIMCALL(void, processimportcpp_299341)(Tsym227841* s, NimStringDesc* extname) {
	Tsym227841* m;
	setexternname_299189(s, extname);
	(*s).flags |= ((NU32)1)<<((((NU8) 5))%(sizeof(NU32)*8));
	(*s).flags |= ((NU32)1)<<((((NU8) 27))%(sizeof(NU32)*8));
	(*s).flags &= ~(((NU32)1) << ((((NU8) 4)) % (sizeof(NU32)*8)));
	m = getmodule_235243(s);
	(*m).flags |= ((NU32)1)<<((((NU8) 27))%(sizeof(NU32)*8));
	gmixedmode_205490 = NIM_TRUE;
}

N_NIMCALL(void, processimportobjc_299397)(Tsym227841* s, NimStringDesc* extname) {
	Tsym227841* m;
	setexternname_299189(s, extname);
	(*s).flags |= ((NU32)1)<<((((NU8) 5))%(sizeof(NU32)*8));
	(*s).flags |= ((NU32)1)<<((((NU8) 28))%(sizeof(NU32)*8));
	(*s).flags &= ~(((NU32)1) << ((((NU8) 4)) % (sizeof(NU32)*8)));
	m = getmodule_235243(s);
	(*m).flags |= ((NU32)1)<<((((NU8) 28))%(sizeof(NU32)*8));
}

N_NIMCALL(NI, expectintlit_299500)(Tcontext282023* c, Tnode227809* n) {
	NI result;
	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		localerror_198128((*n).info, ((NU16) 7), ((NimStringDesc*) &TMP3217));
	}
	goto LA1;
	LA3: ;
	{
		asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), (*c).semconstexpr(c, (*n).kindU.S6.sons->data[((NI) 1)]));
		switch ((*(*n).kindU.S6.sons->data[((NI) 1)]).kind) {
		case ((NU8) 6) ... ((NU8) 10):
		{
			result = ((NI) ((*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S1.intval));
		}
		break;
		default:
		{
			localerror_198128((*n).info, ((NU16) 7), ((NimStringDesc*) &TMP3217));
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, noval_300806)(Tnode227809* n) {
	{
		if (!((*n).kind == ((NU8) 34))) goto LA3;
		invalidpragma_299091(n);
	}
	LA3: ;
}

N_NIMCALL(NIM_BOOL, isturnedon_299903)(Tcontext282023* c, Tnode227809* n) {
	NIM_BOOL result;
{	result = 0;
	{
		Tnode227809* x;
		if (!((*n).kind == ((NU8) 34))) goto LA3;
		x = (*c).semconstboolexpr(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), x);
		{
			if (!((*x).kind == ((NU8) 6))) goto LA7;
			result = !(((*x).kindU.S1.intval == IL64(0)));
			goto BeforeRet;
		}
		LA7: ;
	}
	LA3: ;
	localerror_198128((*n).info, ((NU16) 27), ((NimStringDesc*) &TMP3217));
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, pragmadeadcodeelim_299971)(Tcontext282023* c, Tnode227809* n) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isturnedon_299903(c, n);
		if (!LOC3) goto LA4;
		(*(*c).module).flags |= ((NU32)1)<<((((NU8) 25))%(sizeof(NU32)*8));
	}
	goto LA1;
	LA4: ;
	{
		(*(*c).module).flags &= ~(((NU32)1) << ((((NU8) 25)) % (sizeof(NU32)*8)));
	}
	LA1: ;
}

N_NIMCALL(void, pragmanoforward_300003)(Tcontext282023* c, Tnode227809* n) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isturnedon_299903(c, n);
		if (!LOC3) goto LA4;
		(*(*c).module).flags |= ((NU32)1)<<((((NU8) 8))%(sizeof(NU32)*8));
	}
	goto LA1;
	LA4: ;
	{
		(*(*c).module).flags &= ~(((NU32)1) << ((((NU8) 8)) % (sizeof(NU32)*8)));
	}
	LA1: ;
}

static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {
	NIM_BOOL result;
	NIM_BOOL LOC11;
	int LOC13;
{	result = 0;
	{
		if (!(a == b)) goto LA3;
		result = NIM_TRUE;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = (a == NIM_NIL);
		if (LOC7) goto LA8;
		LOC7 = (b == NIM_NIL);
		LA8: ;
		if (!LOC7) goto LA9;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA9: ;
	LOC11 = 0;
	LOC11 = ((*a).Sup.len == (*b).Sup.len);
	if (!(LOC11)) goto LA12;
	LOC13 = 0;
	LOC13 = memcmp(((NCSTRING) ((*a).data)), ((NCSTRING) ((*b).data)), (*a).Sup.len);
	LOC11 = (LOC13 == ((NI32) 0));
	LA12: ;
	result = LOC11;
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, processmagic_299558)(Tcontext282023* c, Tnode227809* n, Tsym227841* s) {
	NimStringDesc* v;
{	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		localerror_198128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3217));
		goto BeforeRet;
	}
	LA3: ;
	v = 0;
	{
		if (!((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 2))) goto LA7;
		v = copyString((*(*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident).s);
	}
	goto LA5;
	LA7: ;
	{
		v = expectstrlit_299488(c, n);
	}
	LA5: ;
	{
		NU8 m_299823;
		NI res_299848;
		m_299823 = 0;
		res_299848 = ((NI) 0);
		{
			while (1) {
				if (!(res_299848 <= ((NI) 254))) goto LA12;
				m_299823 = ((NU8) (res_299848));
				{
					NimStringDesc* LOC15;
					LOC15 = 0;
					LOC15 = copyStr(reprEnum(m_299823, (&NTI227534)), ((NI) 1));
					if (!eqStrings(LOC15, v)) goto LA16;
					(*s).magic = m_299823;
					goto LA10;
				}
				LA16: ;
				res_299848 += ((NI) 1);
			} LA12: ;
		}
	} LA10: ;
	{
		if (!((*s).magic == ((NU8) 0))) goto LA20;
		message_198161((*n).info, ((NU16) 244), v);
	}
	LA20: ;
	}BeforeRet: ;
}

N_NIMCALL(Tlib227827*, getlib_300067)(Tcontext282023* c, NU8 kind, Tnode227809* path) {
	Tlib227827* result;
	Tlib227827* it;
	Tlistentry143022* LOC12;
{	result = 0;
	it = ((Tlib227827*) ((*c).libs.head));
	{
		while (1) {
			if (!!((it == NIM_NIL))) goto LA2;
			{
				if (!((*it).kind == kind)) goto LA5;
				{
					NIM_BOOL LOC9;
					LOC9 = 0;
					LOC9 = exprstructuralequivalent_256149((*it).path, path, NIM_FALSE);
					if (!LOC9) goto LA10;
					result = it;
					goto BeforeRet;
				}
				LA10: ;
			}
			LA5: ;
			it = ((Tlib227827*) ((*it).Sup.next));
		} LA2: ;
	}
	result = newlib_282201(kind);
	asgnRefNoCycle((void**) (&(*result).path), path);
	LOC12 = 0;
	LOC12 = &result->Sup;
	append_143053((&(*c).libs), LOC12);
	{
		if (!((*path).kind >= ((NU8) 20) && (*path).kind <= ((NU8) 22))) goto LA15;
		(*result).isoverriden = isdynliboverride_170681((*path).kindU.S3.strval);
	}
	LA15: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode227809*, expectdynlibnode_300121)(Tcontext282023* c, Tnode227809* n) {
	Tnode227809* result;
	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		localerror_198128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3217));
		result = newemptystrnode_299453(n);
	}
	goto LA1;
	LA3: ;
	{
		result = (*c).semexpr(c, (*n).kindU.S6.sons->data[((NI) 1)], 0);
		{
			NIM_BOOL LOC8;
			LOC8 = 0;
			LOC8 = ((*result).kind == ((NU8) 3));
			if (!(LOC8)) goto LA9;
			LOC8 = ((*(*result).kindU.S4.sym).kind == ((NU8) 10));
			LA9: ;
			if (!LOC8) goto LA10;
			result = (*(*result).kindU.S4.sym).ast;
		}
		LA10: ;
		{
			NIM_BOOL LOC14;
			LOC14 = 0;
			LOC14 = ((*result).typ == NIM_NIL);
			if (LOC14) goto LA15;
			LOC14 = !(((*(*result).typ).kind == ((NU8) 26) || (*(*result).typ).kind == ((NU8) 28) || (*(*result).typ).kind == ((NU8) 25)));
			LA15: ;
			if (!LOC14) goto LA16;
			localerror_198128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3217));
			result = newemptystrnode_299453(n);
		}
		LA16: ;
	}
	LA1: ;
	return result;
}

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

static N_INLINE(void, rtladdcycleroot_53423)(Cell48946* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_49665((&gch_51059.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_55022)(Cell48946* c) {
	(*c).refcount = (NI)((NU32)((*c).refcount) + (NU32)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_52667(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_53423(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_54604)(Cell48946* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_54204(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_52667(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_53423(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Cell48946* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_52646(src);
		incref_55022(LOC5);
	}
	LA3: ;
	{
		Cell48946* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_52646((*dest));
		decref_54604(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(void, processdynlib_300186)(Tcontext282023* c, Tnode227809* n, Tsym227841* sym) {
	{
		NIM_BOOL LOC3;
		Tnode227809* LOC7;
		LOC3 = 0;
		LOC3 = (sym == NIM_NIL);
		if (LOC3) goto LA4;
		LOC3 = ((*sym).kind == ((NU8) 6));
		LA4: ;
		if (!LOC3) goto LA5;
		LOC7 = 0;
		LOC7 = expectdynlibnode_300121(c, n);
		asgnRef((void**) (&(*((Toptionentry282005*) ((*c).optionstack.tail))).dynlib), getlib_300067(c, ((NU8) 1), LOC7));
	}
	goto LA1;
	LA5: ;
	{
		{
			Tlib227827* lib;
			Tnode227809* LOC13;
			if (!((*n).kind == ((NU8) 34))) goto LA11;
			LOC13 = 0;
			LOC13 = expectdynlibnode_300121(c, n);
			lib = getlib_300067(c, ((NU8) 1), LOC13);
			{
				if (!!((*lib).isoverriden)) goto LA16;
				addtolib_282207(lib, sym);
				(*sym).loc.flags |= ((NU16)1)<<((((NU8) 4))%(sizeof(NU16)*8));
			}
			LA16: ;
		}
		goto LA9;
		LA11: ;
		{
			(*sym).loc.flags |= ((NU16)1)<<((((NU8) 5))%(sizeof(NU16)*8));
		}
		LA9: ;
		{
			NIM_BOOL LOC21;
			NIM_BOOL LOC22;
			LOC21 = 0;
			LOC22 = 0;
			LOC22 = ((520192 &(1<<(((*sym).kind)&31)))!=0);
			if (!(LOC22)) goto LA23;
			LOC22 = !(((*sym).typ == NIM_NIL));
			LA23: ;
			LOC21 = LOC22;
			if (!(LOC21)) goto LA24;
			LOC21 = ((*(*sym).typ).callconv == ((NU8) 0));
			LA24: ;
			if (!LOC21) goto LA25;
			(*(*sym).typ).callconv = ((NU8) 2);
		}
		LA25: ;
	}
	LA1: ;
}

N_NIMCALL(void, markcompilerproc_301220)(Tsym227841* s) {
	makeexternexport_299276(s, ((NimStringDesc*) &TMP3218), (*s).info);
	(*s).flags |= ((NU32)1)<<((((NU8) 16))%(sizeof(NU32)*8));
	(*s).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
	registercompilerproc_276864(s);
}

static N_INLINE(Tnode227809*, HEX5BHEX5D_228244)(Tnode227809* n, NI i) {
	Tnode227809* result;
	result = 0;
	result = (*n).kindU.S6.sons->data[i];
	return result;
}

static N_INLINE(NI, len_228098)(Tnode227809* n) {
	NI result;
	result = 0;
	{
		if (!(*n).kindU.S6.sons == 0) goto LA3;
		result = ((NI) 0);
	}
	goto LA1;
	LA3: ;
	{
		result = ((*n).kindU.S6.sons ? (*n).kindU.S6.sons->Sup.len : 0);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, deprecatedstmt_301252)(Tcontext282023* c, Tnode227809* pragma_301255) {
	Tnode227809* pragma;
{	pragma = HEX5BHEX5D_228244(pragma_301255, ((NI) 1));
	{
		if (!!(((*pragma).kind == ((NU8) 41)))) goto LA3;
		localerror_198139((*pragma).info, ((NimStringDesc*) &TMP3221));
		goto BeforeRet;
	}
	LA3: ;
	{
		Tnode227809* n_301266;
		n_301266 = 0;
		{
			NI i_301307;
			NI HEX3Atmp_301309;
			NI LOC7;
			NI res_301311;
			i_301307 = 0;
			HEX3Atmp_301309 = 0;
			LOC7 = 0;
			LOC7 = len_228098(pragma);
			HEX3Atmp_301309 = (LOC7 - 1);
			res_301311 = ((NI) 0);
			{
				while (1) {
					if (!(res_301311 <= HEX3Atmp_301309)) goto LA9;
					i_301307 = res_301311;
					n_301266 = (*pragma).kindU.S6.sons->data[i_301307];
					{
						Tsym227841* dest;
						Tnode227809* LOC14;
						Tident200021* src;
						Tnode227809* LOC15;
						Tsym227841* alias;
						Tnode227809* LOC16;
						if (!((*n_301266).kind == ((NU8) 34) || (*n_301266).kind == ((NU8) 33))) goto LA12;
						LOC14 = 0;
						LOC14 = HEX5BHEX5D_228244(n_301266, ((NI) 1));
						dest = qualifiedlookup_288864(c, LOC14, 2);
						LOC15 = 0;
						LOC15 = HEX5BHEX5D_228244(n_301266, ((NI) 0));
						src = considerquotedident_288010(LOC15);
						LOC16 = 0;
						LOC16 = HEX5BHEX5D_228244(n_301266, ((NI) 0));
						alias = newsym_228656(((NU8) 25), src, dest, (*LOC16).info);
						(*alias).flags |= ((NU32)1)<<((((NU8) 1))%(sizeof(NU32)*8));
						{
							if (!(((*dest).flags &(1<<((((NU8) 16))&31)))!=0)) goto LA19;
							markcompilerproc_301220(alias);
						}
						LA19: ;
						addinterfacedecl_288736(c, alias);
					}
					goto LA10;
					LA12: ;
					{
						localerror_198139((*n_301266).info, ((NimStringDesc*) &TMP3223));
					}
					LA10: ;
					res_301311 += ((NI) 1);
				} LA9: ;
			}
		}
	}
	}BeforeRet: ;
}

N_NIMCALL(void, typeborrow_301179)(Tsym227841* sym, Tnode227809* n) {
	{
		Tnode227809* it;
		if (!((*n).kind == ((NU8) 34))) goto LA3;
		it = (*n).kindU.S6.sons->data[((NI) 1)];
		{
			if (!!(((*it).kind == ((NU8) 53)))) goto LA7;
			localerror_198139((*n).info, ((NimStringDesc*) &TMP3224));
		}
		LA7: ;
	}
	LA3: ;
	(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 27))%(sizeof(NU32)*8));
}

static N_INLINE(NIM_BOOL, isroutine_232763)(Tsym227841* s) {
	NIM_BOOL result;
	result = 0;
	result = ((520192 &(1<<(((*s).kind)&31)))!=0);
	return result;
}

N_NIMCALL(void, processdefine_300611)(Tcontext282023* c, Tnode227809* n) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*n).kind == ((NU8) 34));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 2));
		LA4: ;
		if (!LOC3) goto LA5;
		definesymbol_201013((*(*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident).s);
		message_198161((*n).info, ((NU16) 241), ((NimStringDesc*) &TMP3225));
	}
	goto LA1;
	LA5: ;
	{
		invalidpragma_299091(n);
	}
	LA1: ;
}

N_NIMCALL(void, processundef_300642)(Tcontext282023* c, Tnode227809* n) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*n).kind == ((NU8) 34));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 2));
		LA4: ;
		if (!LOC3) goto LA5;
		undefsymbol_201022((*(*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident).s);
		message_198161((*n).info, ((NU16) 241), ((NimStringDesc*) &TMP3226));
	}
	goto LA1;
	LA5: ;
	{
		invalidpragma_299091(n);
	}
	LA1: ;
}

N_NIMCALL(void, processcompile_300680)(Tcontext282023* c, Tnode227809* n) {
	NimStringDesc* s;
	NimStringDesc* found;
	NimStringDesc* trunc;
	NimStringDesc* LOC12;
	s = expectstrlit_299488(c, n);
	found = findfile_170539(s);
	{
		if (!((found) && (found)->Sup.len == 0)) goto LA3;
		found = copyString(s);
	}
	LA3: ;
	trunc = noschangeFileExt(found, ((NimStringDesc*) &TMP3217));
	{
		NIM_BOOL LOC7;
		NimStringDesc* LOC10;
		NimStringDesc* LOC11;
		LOC7 = 0;
		LOC7 = nosisAbsolute(found);
		if (!!(LOC7)) goto LA8;
		LOC10 = 0;
		LOC10 = tofullpath_193665((*n).info.fileindex);
		LOC11 = 0;
		LOC11 = nosparentDir(LOC10);
		found = HEX2F_121890(LOC11, found);
	}
	LA8: ;
	addexternalfiletocompile_206699(found);
	LOC12 = 0;
	LOC12 = completecfilepath_206112(trunc, NIM_FALSE);
	addfiletolink_206154(LOC12);
}

N_NIMCALL(void, processcommonlink_300693)(Tcontext282023* c, Tnode227809* n, NU8 feature) {
	NimStringDesc* f;
	NimStringDesc* found;
	f = expectstrlit_299488(c, n);
	{
		TY122218 LOC3;
		memset((void*)(&LOC3), 0, sizeof(LOC3));
		nossplitFile(f, (&LOC3));
		if (!((LOC3.Field2) && (LOC3.Field2)->Sup.len == 0)) goto LA4;
		f = nosaddFileExt(f, Cc_205467[(ccompiler_205488)- 1].Field1);
	}
	LA4: ;
	found = findfile_170539(f);
	{
		if (!((found) && (found)->Sup.len == 0)) goto LA8;
		found = copyString(f);
	}
	LA8: ;
	switch (feature) {
	case ((NU8) 0):
	{
		addfiletolink_206154(found);
	}
	break;
	case ((NU8) 1):
	{
		NimStringDesc* LOC12;
		NimStringDesc* LOC13;
		LOC12 = 0;
		LOC12 = completecfilepath_206112(found, NIM_FALSE);
		LOC13 = 0;
		LOC13 = HEX2F_121890(libpath_169233, LOC12);
		addfiletolink_206154(LOC13);
	}
	break;
	default:
	{
		internalerror_198172((*n).info, ((NimStringDesc*) &TMP3227));
	}
	break;
	}
}

N_NIMCALL(void, pragmabreakpoint_300706)(Tcontext282023* c, Tnode227809* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = getoptionalstr_299525(c, n, ((NimStringDesc*) &TMP3217));
}

N_NIMCALL(void, pragmawatchpoint_300716)(Tcontext282023* c, Tnode227809* n) {
	{
		if (!((*n).kind == ((NU8) 34))) goto LA3;
		asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), (*c).semexpr(c, (*n).kindU.S6.sons->data[((NI) 1)], 0));
	}
	goto LA1;
	LA3: ;
	{
		invalidpragma_299091(n);
	}
	LA1: ;
}

N_NIMCALL(void, onoff_299936)(Tcontext282023* c, Tnode227809* n, NU32 op) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isturnedon_299903(c, n);
		if (!LOC3) goto LA4;
		goptions_169130 = (goptions_169130 | op);
	}
	goto LA1;
	LA4: ;
	{
		goptions_169130 = (goptions_169130 & ~ op);
	}
	LA1: ;
}

N_NIMCALL(NU8, wordtocallconv_299866)(NU16 sw) {
	NU8 result;
	result = 0;
	result = ((NU8) ((NI)(((NI) ((NI)(((NI) 0) + ((NI) (sw))))) - ((NI) 131))));
	return result;
}

N_NIMCALL(void, processcallconv_300035)(Tcontext282023* c, Tnode227809* n) {
	{
		NIM_BOOL LOC3;
		NU16 sw;
		LOC3 = 0;
		LOC3 = ((*n).kind == ((NU8) 34));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 2));
		LA4: ;
		if (!LOC3) goto LA5;
		sw = whichkeyword_208390((*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident);
		switch (sw) {
		case ((NU16) 131) ... ((NU16) 140):
		{
			(*((Toptionentry282005*) ((*c).optionstack.tail))).defaultcc = wordtocallconv_299866(sw);
		}
		break;
		default:
		{
			localerror_198128((*n).info, ((NU16) 104), ((NimStringDesc*) &TMP3217));
		}
		break;
		}
	}
	goto LA1;
	LA5: ;
	{
		localerror_198128((*n).info, ((NU16) 104), ((NimStringDesc*) &TMP3217));
	}
	LA1: ;
}

N_NIMCALL(NIM_BOOL, processoption_300399)(Tcontext282023* c, Tnode227809* n) {
	NIM_BOOL result;
	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		result = NIM_TRUE;
	}
	goto LA1;
	LA3: ;
	{
		if (!((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 42))) goto LA6;
		processnote_300284(c, n);
	}
	goto LA1;
	LA6: ;
	{
		if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 2)))) goto LA9;
		result = NIM_TRUE;
	}
	goto LA1;
	LA9: ;
	{
		NU16 sw;
		sw = whichkeyword_208390((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S5.ident);
		switch (sw) {
		case ((NU16) 143):
		{
			onoff_299936(c, n, 1022);
		}
		break;
		case ((NU16) 82):
		{
			onoff_299936(c, n, 2);
		}
		break;
		case ((NU16) 173):
		{
			onoff_299936(c, n, 4);
		}
		break;
		case ((NU16) 144):
		{
			onoff_299936(c, n, 8);
		}
		break;
		case ((NU16) 145):
		{
			onoff_299936(c, n, 16);
		}
		break;
		case ((NU16) 146):
		{
			onoff_299936(c, n, 32);
		}
		break;
		case ((NU16) 147):
		{
			onoff_299936(c, n, 64);
		}
		break;
		case ((NU16) 148):
		{
			onoff_299936(c, n, 384);
		}
		break;
		case ((NU16) 149):
		{
			onoff_299936(c, n, 128);
		}
		break;
		case ((NU16) 150):
		{
			onoff_299936(c, n, 256);
		}
		break;
		case ((NU16) 151):
		{
			onoff_299936(c, n, 512);
		}
		break;
		case ((NU16) 153):
		{
			onoff_299936(c, n, 2048);
		}
		break;
		case ((NU16) 154):
		{
			onoff_299936(c, n, 4096);
		}
		break;
		case ((NU16) 128):
		{
			processcallconv_300035(c, n);
		}
		break;
		case ((NU16) 120):
		{
			onoff_299936(c, n, 1024);
		}
		break;
		case ((NU16) 121):
		{
			onoff_299936(c, n, 32768);
		}
		break;
		case ((NU16) 122):
		{
			onoff_299936(c, n, 65536);
		}
		break;
		case ((NU16) 130):
		{
			onoff_299936(c, n, 131072);
		}
		break;
		case ((NU16) 81):
		{
			onoff_299936(c, n, 524288);
		}
		break;
		case ((NU16) 258):
		{
			onoff_299936(c, n, 262144);
		}
		break;
		case ((NU16) 107):
		{
			processdynlib_300186(c, n, NIM_NIL);
		}
		break;
		case ((NU16) 155):
		{
			{
				if (!!(((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 2)))) goto LA36;
				invalidpragma_299091(n);
			}
			goto LA34;
			LA36: ;
			{
				NimStringDesc* LOC39;
				LOC39 = 0;
				LOC39 = nsuNormalize((*(*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident).s);
				if (eqStrings(LOC39, ((NimStringDesc*) &TMP3229))) goto LA40;
				if (eqStrings(LOC39, ((NimStringDesc*) &TMP3230))) goto LA41;
				if (eqStrings(LOC39, ((NimStringDesc*) &TMP3231))) goto LA42;
				goto LA43;
				LA40: ;
				{
					goptions_169130 |= ((NU32)1)<<((((NU8) 13))%(sizeof(NU32)*8));
					goptions_169130 &= ~(((NU32)1) << ((((NU8) 14)) % (sizeof(NU32)*8)));
				}
				goto LA44;
				LA41: ;
				{
					goptions_169130 &= ~(((NU32)1) << ((((NU8) 13)) % (sizeof(NU32)*8)));
					goptions_169130 |= ((NU32)1)<<((((NU8) 14))%(sizeof(NU32)*8));
				}
				goto LA44;
				LA42: ;
				{
					goptions_169130 &= ~(((NU32)1) << ((((NU8) 13)) % (sizeof(NU32)*8)));
					goptions_169130 &= ~(((NU32)1) << ((((NU8) 14)) % (sizeof(NU32)*8)));
				}
				goto LA44;
				LA43: ;
				{
					localerror_198128((*n).info, ((NU16) 28), ((NimStringDesc*) &TMP3217));
				}
				LA44: ;
			}
			LA34: ;
		}
		break;
		case ((NU16) 191):
		{
			onoff_299936(c, n, 1048576);
		}
		break;
		case ((NU16) 152):
		{
			onoff_299936(c, n, 2097152);
		}
		break;
		default:
		{
			result = NIM_TRUE;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, processpush_300534)(Tcontext282023* c, Tnode227809* n, NI start) {
	Toptionentry282005* x;
	Toptionentry282005* y;
	Tlistentry143022* LOC5;
	{
		if (!((*(*n).kindU.S6.sons->data[(NI)(start - ((NI) 1))]).kind == ((NU8) 34))) goto LA3;
		localerror_198128((*n).info, ((NU16) 4), ((NimStringDesc*) &TMP3228));
	}
	LA3: ;
	x = newoptionentry_282196();
	y = ((Toptionentry282005*) ((*c).optionstack.tail));
	(*x).options = goptions_169130;
	(*x).defaultcc = (*y).defaultcc;
	asgnRef((void**) (&(*x).dynlib), (*y).dynlib);
	(*x).notes = gnotes_193398;
	LOC5 = 0;
	LOC5 = &x->Sup;
	append_143053((&(*c).optionstack), LOC5);
	{
		NI i_300564;
		NI HEX3Atmp_300578;
		NI LOC7;
		NI res_300581;
		i_300564 = 0;
		HEX3Atmp_300578 = 0;
		LOC7 = 0;
		LOC7 = sonslen_230387(n);
		HEX3Atmp_300578 = (NI)(LOC7 - ((NI) 1));
		res_300581 = start;
		{
			while (1) {
				if (!(res_300581 <= HEX3Atmp_300578)) goto LA9;
				i_300564 = res_300581;
				{
					NIM_BOOL LOC12;
					LOC12 = 0;
					LOC12 = processoption_300399(c, (*n).kindU.S6.sons->data[i_300564]);
					if (!LOC12) goto LA13;
					{
						if (!(*x).otherpragmas == 0) goto LA17;
						asgnRefNoCycle((void**) (&(*x).otherpragmas), newnodei_229351(((NU8) 90), (*n).info));
					}
					LA17: ;
					add_228165((*x).otherpragmas, (*n).kindU.S6.sons->data[i_300564]);
				}
				LA13: ;
				res_300581 += ((NI) 1);
			} LA9: ;
		}
	}
}

N_NIMCALL(void, processpop_300600)(Tcontext282023* c, Tnode227809* n) {
	{
		if (!((*c).optionstack.counter <= ((NI) 1))) goto LA3;
		localerror_198128((*n).info, ((NU16) 32), ((NimStringDesc*) &TMP3217));
	}
	goto LA1;
	LA3: ;
	{
		goptions_169130 = (*((Toptionentry282005*) ((*c).optionstack.tail))).options;
		gnotes_193398 = (*((Toptionentry282005*) ((*c).optionstack.tail))).notes;
		remove_143639((&(*c).optionstack), (*c).optionstack.tail);
	}
	LA1: ;
}

N_NIMCALL(void, processpragma_300930)(Tcontext282023* c, Tnode227809* n, NI i) {
	Tnode227809* it;
	Tsym227841* userpragma;
	Tnode227809* body;
	it = (*n).kindU.S6.sons->data[i];
	{
		if (!!(((*it).kind == ((NU8) 34)))) goto LA3;
		invalidpragma_299091(n);
	}
	goto LA1;
	LA3: ;
	{
		if (!!(((*(*it).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 2)))) goto LA6;
		invalidpragma_299091(n);
	}
	goto LA1;
	LA6: ;
	{
		if (!!(((*(*it).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 2)))) goto LA9;
		invalidpragma_299091(n);
	}
	goto LA1;
	LA9: ;
	LA1: ;
	userpragma = newsym_228656(((NU8) 18), (*(*it).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident, NIM_NIL, (*it).info);
	body = newnodei_229351(((NU8) 90), (*n).info);
	{
		NI j_300980;
		NI HEX3Atmp_300985;
		NI HEX3Atmp_300986;
		NI LOC12;
		NI res_300989;
		j_300980 = 0;
		HEX3Atmp_300985 = 0;
		HEX3Atmp_300986 = 0;
		HEX3Atmp_300985 = (NI)(i + ((NI) 1));
		LOC12 = 0;
		LOC12 = sonslen_230387(n);
		HEX3Atmp_300986 = (NI)(LOC12 - ((NI) 1));
		res_300989 = HEX3Atmp_300985;
		{
			while (1) {
				if (!(res_300989 <= HEX3Atmp_300986)) goto LA14;
				j_300980 = res_300989;
				addson_229819(body, (*n).kindU.S6.sons->data[j_300980]);
				res_300989 += ((NI) 1);
			} LA14: ;
		}
	}
	asgnRefNoCycle((void**) (&(*userpragma).ast), body);
	strtableadd_235103((&(*c).userpragmas), userpragma);
}

N_NIMCALL(void, processcodegendecl_299546)(Tcontext282023* c, Tnode227809* n, Tsym227841* sym) {
	asgnRefNoCycle((void**) (&(*sym).constraint), getstrlitnode_299464(c, n));
}

N_NIMCALL(Tnode227809*, semasmoremit_300737)(Tcontext282023* con, Tnode227809* n, NIM_CHAR marker) {
	Tnode227809* result;
{	result = 0;
	switch ((*(*n).kindU.S6.sons->data[((NI) 1)]).kind) {
	case ((NU8) 20):
	case ((NU8) 21):
	case ((NU8) 22):
	{
		NU8 LOC2;
		Tnodeseq227803* LOC8;
		NimStringDesc* str;
		NI a;
		LOC2 = 0;
		{
			if (!((*n).kind == ((NU8) 89))) goto LA5;
			LOC2 = ((NU8) 89);
		}
		goto LA3;
		LA5: ;
		{
			LOC2 = ((NU8) 152);
		}
		LA3: ;
		LOC8 = 0;
		LOC8 = (Tnodeseq227803*) newSeq((&NTI227803), 0);
		result = newnode_229607(LOC2, (*n).info, LOC8, NIM_NIL);
		str = copyString((*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S3.strval);
		{
			if (!((str) && (str)->Sup.len == 0)) goto LA11;
			localerror_198128((*n).info, ((NU16) 33), ((NimStringDesc*) &TMP3217));
			goto BeforeRet;
		}
		LA11: ;
		a = ((NI) 0);
		{
			while (1) {
				NI b;
				NimStringDesc* sub;
				NI c;
				b = nsuFindChar(str, marker, ((NI) (a)));
				{
					if (!(b < ((NI) 0))) goto LA17;
					sub = copyStr(str, a);
				}
				goto LA15;
				LA17: ;
				{
					sub = copyStrLast(str, a, (NI)(b - ((NI) 1)));
				}
				LA15: ;
				{
					Tnode227809* LOC24;
					if (!!(((sub) && (sub)->Sup.len == 0))) goto LA22;
					LOC24 = 0;
					LOC24 = newstrnode_228644(((NU8) 20), sub);
					addson_229819(result, LOC24);
				}
				LA22: ;
				{
					if (!(b < ((NI) 0))) goto LA27;
					goto LA13;
				}
				LA27: ;
				c = nsuFindChar(str, marker, ((NI) ((NI)(b + ((NI) 1)))));
				{
					if (!(c < ((NI) 0))) goto LA31;
					sub = copyStr(str, (NI)(b + ((NI) 1)));
				}
				goto LA29;
				LA31: ;
				{
					sub = copyStrLast(str, (NI)(b + ((NI) 1)), (NI)(c - ((NI) 1)));
				}
				LA29: ;
				{
					Tsym227841* e;
					Tident200021* LOC38;
					if (!!(((sub) && (sub)->Sup.len == 0))) goto LA36;
					LOC38 = 0;
					LOC38 = getident_200463(sub);
					e = searchinscopes_288205(con, LOC38);
					{
						Tnode227809* LOC47;
						if (!!((e == NIM_NIL))) goto LA41;
						{
							if (!((*e).kind == ((NU8) 23))) goto LA45;
							loadstub_273053(e);
						}
						LA45: ;
						LOC47 = 0;
						LOC47 = newsymnode_229325(e);
						addson_229819(result, LOC47);
					}
					goto LA39;
					LA41: ;
					{
						Tnode227809* LOC49;
						LOC49 = 0;
						LOC49 = newstrnode_228644(((NU8) 20), sub);
						addson_229819(result, LOC49);
					}
					LA39: ;
				}
				goto LA34;
				LA36: ;
				{
					NimStringDesc* LOC51;
					Tnode227809* LOC52;
					LOC51 = 0;
					LOC51 = nimCharToStr(marker);
					LOC52 = 0;
					LOC52 = newstrnode_228644(((NU8) 20), LOC51);
					addson_229819(result, LOC52);
				}
				LA34: ;
				{
					if (!(c < ((NI) 0))) goto LA55;
					goto LA13;
				}
				LA55: ;
				a = (NI)(c + ((NI) 1));
			}
		} LA13: ;
	}
	break;
	default:
	{
		Tnodeseq227803* LOC58;
		illformedastlocal_283250(n);
		LOC58 = 0;
		LOC58 = (Tnodeseq227803*) newSeq((&NTI227803), 0);
		result = newnode_229607(((NU8) 89), (*n).info, LOC58, NIM_NIL);
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, pragmaemit_300795)(Tcontext282023* c, Tnode227809* n) {
	Tnode227809* LOC1;
	LOC1 = 0;
	LOC1 = getstrlitnode_299464(c, n);
	asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), semasmoremit_300737(c, n, 96));
}

N_NIMCALL(void, pragmaunroll_300824)(Tcontext282023* c, Tnode227809* n) {
	{
		if (!((*(*c).p).nestedloopcounter <= ((NI) 0))) goto LA3;
		invalidpragma_299091(n);
	}
	goto LA1;
	LA3: ;
	{
		NI unrollfactor;
		if (!((*n).kind == ((NU8) 34))) goto LA6;
		unrollfactor = expectintlit_299500(c, n);
		{
			if (!((NU32)(unrollfactor) < (NU32)(((NI) 32)))) goto LA10;
			asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), newintnode_228608(((NU8) 6), ((NI64) (unrollfactor))));
		}
		goto LA8;
		LA10: ;
		{
			invalidpragma_299091(n);
		}
		LA8: ;
	}
	goto LA1;
	LA6: ;
	LA1: ;
}

N_NIMCALL(void, pragmaline_300854)(Tcontext282023* c, Tnode227809* n) {
	{
		Tnode227809* a;
		if (!((*n).kind == ((NU8) 34))) goto LA3;
		asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), (*c).semconstexpr(c, (*n).kindU.S6.sons->data[((NI) 1)]));
		a = (*n).kindU.S6.sons->data[((NI) 1)];
		{
			Tnode227809* x;
			Tnode227809* y;
			if (!((*a).kind == ((NU8) 37))) goto LA7;
			x = (*a).kindU.S6.sons->data[((NI) 0)];
			y = (*a).kindU.S6.sons->data[((NI) 1)];
			{
				if (!((*x).kind == ((NU8) 34))) goto LA11;
				x = (*x).kindU.S6.sons->data[((NI) 1)];
			}
			LA11: ;
			{
				if (!((*y).kind == ((NU8) 34))) goto LA15;
				y = (*y).kindU.S6.sons->data[((NI) 1)];
			}
			LA15: ;
			{
				if (!!(((*x).kind == ((NU8) 20)))) goto LA19;
				localerror_198128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3217));
			}
			goto LA17;
			LA19: ;
			{
				if (!!(((*y).kind == ((NU8) 6)))) goto LA22;
				localerror_198128((*n).info, ((NU16) 7), ((NimStringDesc*) &TMP3217));
			}
			goto LA17;
			LA22: ;
			{
				(*n).info.fileindex = fileinfoidx_193254((*x).kindU.S3.strval);
				(*n).info.line = ((NI16) ((*y).kindU.S1.intval));
			}
			LA17: ;
		}
		goto LA5;
		LA7: ;
		{
			localerror_198128((*n).info, ((NU16) 193), ((NimStringDesc*) &TMP3232));
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		(*n).info = getinfocontext_193626(((NI) -1));
	}
	LA1: ;
}

N_NIMCALL(void, processexc_301012)(Tcontext282023* c, Tnode227809* x) {
	Ttype227847* t;
	Ttype227847* LOC1;
	LOC1 = 0;
	LOC1 = (*c).semtypenode(c, x, NIM_NIL);
	t = skiptypes_231167(LOC1, IL64(211106247215360));
	{
		if (!!(((*t).kind == ((NU8) 17)))) goto LA4;
		localerror_198128((*x).info, ((NU16) 4), ((NimStringDesc*) &TMP3233));
	}
	LA4: ;
	asgnRefNoCycle((void**) (&(*x).typ), t);
}

N_NIMCALL(void, pragmaraisesortags_301008)(Tcontext282023* c, Tnode227809* n) {
	{
		Tnode227809* it;
		if (!((*n).kind == ((NU8) 34))) goto LA3;
		it = (*n).kindU.S6.sons->data[((NI) 1)];
		{
			if (!!(((*it).kind == ((NU8) 39) || (*it).kind == ((NU8) 41)))) goto LA7;
			processexc_301012(c, it);
		}
		goto LA5;
		LA7: ;
		{
			{
				Tnode227809* e_301048;
				e_301048 = 0;
				{
					NI i_301053;
					NI HEX3Atmp_301055;
					NI LOC12;
					NI res_301057;
					i_301053 = 0;
					HEX3Atmp_301055 = 0;
					LOC12 = 0;
					LOC12 = len_228098(it);
					HEX3Atmp_301055 = (LOC12 - 1);
					res_301057 = ((NI) 0);
					{
						while (1) {
							if (!(res_301057 <= HEX3Atmp_301055)) goto LA14;
							i_301053 = res_301057;
							e_301048 = (*it).kindU.S6.sons->data[i_301053];
							processexc_301012(c, e_301048);
							res_301057 += ((NI) 1);
						} LA14: ;
					}
				}
			}
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		invalidpragma_299091(n);
	}
	LA1: ;
}

N_NIMCALL(void, pragmalockstmt_301081)(Tcontext282023* c, Tnode227809* it) {
	{
		if (!!(((*it).kind == ((NU8) 34)))) goto LA3;
		invalidpragma_299091(it);
	}
	goto LA1;
	LA3: ;
	{
		Tnode227809* n;
		n = HEX5BHEX5D_228244(it, ((NI) 1));
		{
			if (!!(((*n).kind == ((NU8) 41)))) goto LA8;
			localerror_198128((*n).info, ((NU16) 4), ((NimStringDesc*) &TMP3234));
		}
		goto LA6;
		LA8: ;
		{
			{
				NI i_301123;
				NI HEX3Atmp_301127;
				NI LOC12;
				NI res_301130;
				i_301123 = 0;
				HEX3Atmp_301127 = 0;
				LOC12 = 0;
				LOC12 = len_228098(n);
				HEX3Atmp_301127 = (LOC12 - 1);
				res_301130 = ((NI) 0);
				{
					while (1) {
						if (!(res_301130 <= HEX3Atmp_301127)) goto LA14;
						i_301123 = res_301130;
						asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[i_301123]), (*c).semexpr(c, (*n).kindU.S6.sons->data[i_301123], 0));
						res_301130 += ((NI) 1);
					} LA14: ;
				}
			}
		}
		LA6: ;
	}
	LA1: ;
}

N_NIMCALL(NI16, pragmalocks_301149)(Tcontext282023* c, Tnode227809* it) {
	NI16 result;
	result = 0;
	{
		if (!!(((*it).kind == ((NU8) 34)))) goto LA3;
		invalidpragma_299091(it);
	}
	goto LA1;
	LA3: ;
	{
		{
			Tnode227809* LOC8;
			NI x;
			LOC8 = 0;
			LOC8 = HEX5BHEX5D_228244(it, ((NI) 1));
			if (!!(((*LOC8).kind == ((NU8) 23)))) goto LA9;
			x = expectintlit_299500(c, it);
			{
				NIM_BOOL LOC13;
				Tnode227809* LOC17;
				LOC13 = 0;
				LOC13 = (x < ((NI) 0));
				if (LOC13) goto LA14;
				LOC13 = (((NI) 1000) < x);
				LA14: ;
				if (!LOC13) goto LA15;
				LOC17 = 0;
				LOC17 = HEX5BHEX5D_228244(it, ((NI) 1));
				localerror_198139((*LOC17).info, ((NimStringDesc*) &TMP3235));
			}
			goto LA11;
			LA15: ;
			{
				result = ((NI16) (x));
			}
			LA11: ;
		}
		LA9: ;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tsym227841*, pragmaguard_301332)(Tcontext282023* c, Tnode227809* it, NU8 kind) {
	Tsym227841* result;
	Tnode227809* n;
{	result = 0;
	{
		if (!!(((*it).kind == ((NU8) 34)))) goto LA3;
		invalidpragma_299091(it);
		goto BeforeRet;
	}
	LA3: ;
	n = HEX5BHEX5D_228244(it, ((NI) 1));
	{
		if (!((*n).kind == ((NU8) 3))) goto LA7;
		result = (*n).kindU.S4.sym;
	}
	goto LA5;
	LA7: ;
	{
		if (!(kind == ((NU8) 19))) goto LA10;
		result = qualifiedlookup_288864(c, n, 0);
		{
			NIM_BOOL LOC14;
			NIM_BOOL LOC15;
			Tident200021* LOC20;
			LOC14 = 0;
			LOC15 = 0;
			LOC15 = result == 0;
			if (LOC15) goto LA16;
			LOC15 = !(((768 &(1<<(((*result).kind)&31)))!=0));
			LA16: ;
			LOC14 = LOC15;
			if (LOC14) goto LA17;
			LOC14 = !((((*result).flags &(1<<((((NU8) 3))&31)))!=0));
			LA17: ;
			if (!LOC14) goto LA18;
			LOC20 = 0;
			LOC20 = considerquotedident_288010(n);
			result = newsym_228656(((NU8) 0), LOC20, NIM_NIL, (*n).info);
		}
		LA18: ;
	}
	goto LA5;
	LA10: ;
	{
		result = qualifiedlookup_288864(c, n, 2);
	}
	LA5: ;
	}BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, istoplevel_283280)(Tcontext282023* c) {
	NIM_BOOL result;
	result = 0;
	result = ((*(*c).currentscope).depthlevel <= ((NI) 2));
	return result;
}

N_NIMCALL(NIM_BOOL, singlepragma_301406)(Tcontext282023* c, Tsym227841* sym, Tnode227809* n, NI i, Tspecialwords208012 validpragmas) {
	NIM_BOOL result;
	Tnode227809* it;
	Tnode227809* key;
	Tident200021* ident;
	Tsym227841* userpragma;
{	result = 0;
	it = (*n).kindU.S6.sons->data[i];
	{
		if (!((*it).kind == ((NU8) 34))) goto LA3;
		key = (*it).kindU.S6.sons->data[((NI) 0)];
	}
	goto LA1;
	LA3: ;
	{
		key = it;
	}
	LA1: ;
	{
		if (!((*key).kind == ((NU8) 42))) goto LA8;
		processnote_300284(c, it);
		goto BeforeRet;
	}
	LA8: ;
	ident = considerquotedident_288010(key);
	userpragma = strtableget_235111((*c).userpragmas, ident);
	{
		if (!!((userpragma == NIM_NIL))) goto LA12;
		(*c).instcounter += ((NI) 1);
		{
			if (!(((NI) 100) < (*c).instcounter)) goto LA16;
			globalerror_198107((*it).info, ((NU16) 26), (*(*userpragma).name).s);
		}
		LA16: ;
		pragma_299082(c, sym, (*userpragma).ast, validpragmas);
		asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[i]), (*userpragma).ast);
		(*c).instcounter -= ((NI) 1);
	}
	goto LA10;
	LA12: ;
	{
		NU16 k;
		k = whichkeyword_208390(ident);
		{
			if (!((validpragmas[k/8] &(1<<(k%8)))!=0)) goto LA21;
			switch (k) {
			case ((NU16) 93):
			{
				NimStringDesc* LOC24;
				LOC24 = 0;
				LOC24 = getoptionalstr_299525(c, it, ((NimStringDesc*) &TMP3218));
				makeexternexport_299276(sym, LOC24, (*it).info);
				(*sym).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 92):
			{
				NimStringDesc* LOC26;
				LOC26 = 0;
				LOC26 = getoptionalstr_299525(c, it, ((NimStringDesc*) &TMP3218));
				makeexternimport_299222(sym, LOC26);
			}
			break;
			case ((NU16) 91):
			{
				NimStringDesc* LOC28;
				LOC28 = 0;
				LOC28 = getoptionalstr_299525(c, it, ((NimStringDesc*) &TMP3218));
				processimportcompilerproc_299298(sym, LOC28);
			}
			break;
			case ((NU16) 208):
			{
				NimStringDesc* LOC30;
				LOC30 = 0;
				LOC30 = expectstrlit_299488(c, it);
				setexternname_299189(sym, LOC30);
			}
			break;
			case ((NU16) 84):
			{
				{
					if (!((393216 &(1<<(((*sym).kind)&31)))!=0)) goto LA34;
					(*sym).flags |= ((NU32)1)<<((((NU8) 25))%(sizeof(NU32)*8));
				}
				goto LA32;
				LA34: ;
				{
					invalidpragma_299091(it);
				}
				LA32: ;
			}
			break;
			case ((NU16) 186):
			{
				{
					if (!((*sym).kind == ((NU8) 18))) goto LA40;
					(*sym).flags |= ((NU32)1)<<((((NU8) 9))%(sizeof(NU32)*8));
				}
				goto LA38;
				LA40: ;
				{
					invalidpragma_299091(it);
				}
				LA38: ;
			}
			break;
			case ((NU16) 89):
			{
				NimStringDesc* LOC44;
				LOC44 = 0;
				LOC44 = getoptionalstr_299525(c, it, ((NimStringDesc*) &TMP3218));
				processimportcpp_299341(sym, LOC44);
			}
			break;
			case ((NU16) 90):
			{
				NimStringDesc* LOC46;
				LOC46 = 0;
				LOC46 = getoptionalstr_299525(c, it, ((NimStringDesc*) &TMP3218));
				processimportobjc_299397(sym, LOC46);
			}
			break;
			case ((NU16) 97):
			{
				NI align;
				{
					if (!((*sym).typ == NIM_NIL)) goto LA50;
					invalidpragma_299091(it);
				}
				LA50: ;
				align = expectintlit_299500(c, it);
				{
					NIM_BOOL LOC54;
					NIM_BOOL LOC55;
					NIM_BOOL LOC56;
					LOC54 = 0;
					LOC55 = 0;
					LOC56 = 0;
					LOC56 = ispoweroftwo_163638(align);
					LOC55 = !(LOC56);
					if (!(LOC55)) goto LA57;
					LOC55 = !((align == ((NI) 0)));
					LA57: ;
					LOC54 = LOC55;
					if (LOC54) goto LA58;
					LOC54 = ((NU64)(IL64(32767)) < (NU64)(((NI64) (align))));
					LA58: ;
					if (!LOC54) goto LA59;
					localerror_198128((*it).info, ((NU16) 102), ((NimStringDesc*) &TMP3217));
				}
				goto LA52;
				LA59: ;
				{
					(*(*sym).typ).align = ((NI16) (align));
				}
				LA52: ;
			}
			break;
			case ((NU16) 159):
			{
				NI size;
				{
					if (!((*sym).typ == NIM_NIL)) goto LA65;
					invalidpragma_299091(it);
				}
				LA65: ;
				size = expectintlit_299500(c, it);
				{
					NIM_BOOL LOC69;
					NIM_BOOL LOC70;
					NIM_BOOL LOC71;
					LOC69 = 0;
					LOC70 = 0;
					LOC71 = 0;
					LOC71 = ispoweroftwo_163638(size);
					LOC70 = !(LOC71);
					if (LOC70) goto LA72;
					LOC70 = (size <= ((NI) 0));
					LA72: ;
					LOC69 = LOC70;
					if (LOC69) goto LA73;
					LOC69 = (((NI) 8) < size);
					LA73: ;
					if (!LOC69) goto LA74;
					localerror_198128((*it).info, ((NU16) 102), ((NimStringDesc*) &TMP3217));
				}
				goto LA67;
				LA74: ;
				{
					(*(*sym).typ).size = ((NI64) (size));
				}
				LA67: ;
			}
			break;
			case ((NU16) 98):
			{
				noval_300806(it);
				(*sym).loc.flags |= ((NU16)1)<<((((NU8) 3))%(sizeof(NU16)*8));
			}
			break;
			case ((NU16) 99):
			case ((NU16) 190):
			{
				noval_300806(it);
				{
					if (!!((sym == NIM_NIL))) goto LA81;
					{
						NIM_BOOL LOC85;
						LOC85 = 0;
						LOC85 = (k == ((NU16) 99));
						if (!(LOC85)) goto LA86;
						LOC85 = ((520192 &(1<<(((*sym).kind)&31)))!=0);
						LA86: ;
						if (!LOC85) goto LA87;
						invalidpragma_299091(it);
					}
					goto LA83;
					LA87: ;
					{
						(*sym).flags |= ((NU32)1)<<((((NU8) 9))%(sizeof(NU32)*8));
					}
					LA83: ;
				}
				LA81: ;
			}
			break;
			case ((NU16) 241):
			{
				noval_300806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 7))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 222):
			{
				noval_300806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 8))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 188):
			{
				noval_300806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 22))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 162):
			{
				pragmadeadcodeelim_299971(c, it);
			}
			break;
			case ((NU16) 164):
			{
				pragmanoforward_300003(c, it);
			}
			break;
			case ((NU16) 78):
			{
				processmagic_299558(c, it, sym);
			}
			break;
			case ((NU16) 167):
			{
				noval_300806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 23))%(sizeof(NU32)*8));
				(*sym).loc.flags |= ((NU16)1)<<((((NU8) 3))%(sizeof(NU16)*8));
			}
			break;
			case ((NU16) 192):
			{
				noval_300806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 3))%(sizeof(NU32)*8));
				(*sym).flags |= ((NU32)1)<<((((NU8) 9))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 105):
			{
				noval_300806(it);
			}
			break;
			case ((NU16) 85):
			{
				noval_300806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 24))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 101):
			{
				Tlib227827* lib;
				Tnode227809* LOC101;
				LOC101 = 0;
				LOC101 = getstrlitnode_299464(c, it);
				lib = getlib_300067(c, ((NU8) 0), LOC101);
				addtolib_282207(lib, sym);
				(*sym).flags |= ((NU32)1)<<((((NU8) 5))%(sizeof(NU32)*8));
				(*sym).loc.flags |= ((NU16)1)<<((((NU8) 6))%(sizeof(NU16)*8));
				(*sym).loc.flags |= ((NU16)1)<<((((NU8) 3))%(sizeof(NU16)*8));
				{
					if (!((*sym).loc.r == NIM_NIL)) goto LA104;
					asgnRefNoCycle((void**) (&(*sym).loc.r), rope_178322((*(*sym).name).s));
				}
				LA104: ;
			}
			break;
			case ((NU16) 86):
			{
				(*sym).flags |= ((NU32)1)<<((((NU8) 30))%(sizeof(NU32)*8));
				{
					NimStringDesc* LOC109;
					LOC109 = 0;
					LOC109 = nsuNormalize((*(*sym).name).s);
					if (!!(eqStrings(LOC109, ((NimStringDesc*) &TMP3219)))) goto LA110;
					localerror_198128((*n).info, ((NU16) 4), ((NimStringDesc*) &TMP3220));
				}
				LA110: ;
			}
			break;
			case ((NU16) 88):
			{
				(*sym).flags |= ((NU32)1)<<((((NU8) 30))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 102):
			{
				noval_300806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 10))%(sizeof(NU32)*8));
				{
					if (!!(((*sym).typ == NIM_NIL))) goto LA116;
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 1))%(sizeof(NU32)*8));
				}
				LA116: ;
			}
			break;
			case ((NU16) 100):
			{
				noval_300806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 11))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 104):
			{
				noval_300806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 14))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 107):
			{
				processdynlib_300186(c, it, sym);
			}
			break;
			case ((NU16) 108):
			{
				noval_300806(it);
				{
					if (!!((((*sym).flags &(1<<((((NU8) 2))&31)))!=0))) goto LA124;
					markcompilerproc_301220(sym);
				}
				LA124: ;
			}
			break;
			case ((NU16) 109):
			{
				noval_300806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 17))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 126):
			{
				{
					if (!((*it).kind == ((NU8) 34))) goto LA130;
					deprecatedstmt_301252(c, it);
				}
				goto LA128;
				LA130: ;
				{
					if (!!((sym == NIM_NIL))) goto LA133;
					(*sym).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
				}
				goto LA128;
				LA133: ;
				{
					(*(*c).module).flags |= ((NU32)1)<<((((NU8) 19))%(sizeof(NU32)*8));
				}
				LA128: ;
			}
			break;
			case ((NU16) 127):
			{
				noval_300806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA139;
					invalidpragma_299091(it);
				}
				goto LA137;
				LA139: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
				}
				LA137: ;
			}
			break;
			case ((NU16) 171):
			{
				{
					if (!((*sym).kind == ((NU8) 7))) goto LA145;
					typeborrow_301179(sym, it);
				}
				goto LA143;
				LA145: ;
				{
					noval_300806(it);
					(*sym).flags |= ((NU32)1)<<((((NU8) 26))%(sizeof(NU32)*8));
				}
				LA143: ;
			}
			break;
			case ((NU16) 80):
			{
				noval_300806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA151;
					invalidpragma_299091(it);
				}
				goto LA149;
				LA151: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
				}
				LA149: ;
			}
			break;
			case ((NU16) 187):
			{
				noval_300806(it);
				{
					NIM_BOOL LOC157;
					LOC157 = 0;
					LOC157 = ((*sym).typ == NIM_NIL);
					if (LOC157) goto LA158;
					LOC157 = (((*(*sym).typ).flags &(1<<((((NU8) 2))&31)))!=0);
					LA158: ;
					if (!LOC157) goto LA159;
					invalidpragma_299091(it);
				}
				goto LA155;
				LA159: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 3))%(sizeof(NU32)*8));
				}
				LA155: ;
			}
			break;
			case ((NU16) 176):
			{
				noval_300806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA165;
					invalidpragma_299091(it);
				}
				goto LA163;
				LA165: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 4))%(sizeof(NU32)*8));
				}
				LA163: ;
			}
			break;
			case ((NU16) 177):
			{
				noval_300806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA171;
					invalidpragma_299091(it);
				}
				goto LA169;
				LA171: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 6))%(sizeof(NU32)*8));
				}
				LA169: ;
			}
			break;
			case ((NU16) 79):
			{
				noval_300806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 22))%(sizeof(NU32)*8));
				(*sym).flags |= ((NU32)1)<<((((NU8) 17))%(sizeof(NU32)*8));
				{
					if (!!(((*sym).typ == NIM_NIL))) goto LA177;
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 7))%(sizeof(NU32)*8));
				}
				LA177: ;
			}
			break;
			case ((NU16) 103):
			{
				noval_300806(it);
				{
					if (!!(((*sym).kind == ((NU8) 7)))) goto LA182;
					(*sym).flags |= ((NU32)1)<<((((NU8) 22))%(sizeof(NU32)*8));
				}
				LA182: ;
				{
					if (!!(((*sym).typ == NIM_NIL))) goto LA186;
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 7))%(sizeof(NU32)*8));
				}
				goto LA184;
				LA186: ;
				{
					invalidpragma_299091(it);
				}
				LA184: ;
			}
			break;
			case ((NU16) 237):
			{
				noval_300806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA192;
					invalidpragma_299091(it);
				}
				goto LA190;
				LA192: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 21))%(sizeof(NU32)*8));
				}
				LA190: ;
			}
			break;
			case ((NU16) 114):
			{
				NimStringDesc* LOC196;
				LOC196 = 0;
				LOC196 = expectstrlit_299488(c, it);
				message_198161((*it).info, ((NU16) 290), LOC196);
			}
			break;
			case ((NU16) 113):
			{
				NimStringDesc* LOC198;
				LOC198 = 0;
				LOC198 = expectstrlit_299488(c, it);
				message_198161((*it).info, ((NU16) 267), LOC198);
			}
			break;
			case ((NU16) 112):
			{
				{
					NIM_BOOL LOC202;
					LOC202 = 0;
					LOC202 = !((sym == NIM_NIL));
					if (!(LOC202)) goto LA203;
					LOC202 = isroutine_232763(sym);
					LA203: ;
					if (!LOC202) goto LA204;
					noval_300806(it);
					(*sym).flags |= ((NU32)1)<<((((NU8) 20))%(sizeof(NU32)*8));
				}
				goto LA200;
				LA204: ;
				{
					NimStringDesc* LOC207;
					LOC207 = 0;
					LOC207 = expectstrlit_299488(c, it);
					localerror_198128((*it).info, ((NU16) 236), LOC207);
				}
				LA200: ;
			}
			break;
			case ((NU16) 111):
			{
				NimStringDesc* LOC209;
				LOC209 = 0;
				LOC209 = expectstrlit_299488(c, it);
				fatal_198096((*it).info, ((NU16) 236), LOC209);
			}
			break;
			case ((NU16) 118):
			{
				processdefine_300611(c, it);
			}
			break;
			case ((NU16) 119):
			{
				processundef_300642(c, it);
			}
			break;
			case ((NU16) 124):
			{
				processcompile_300680(c, it);
			}
			break;
			case ((NU16) 123):
			{
				processcommonlink_300693(c, it, ((NU8) 0));
			}
			break;
			case ((NU16) 125):
			{
				processcommonlink_300693(c, it, ((NU8) 1));
			}
			break;
			case ((NU16) 170):
			{
				NimStringDesc* LOC216;
				LOC216 = 0;
				LOC216 = expectstrlit_299488(c, it);
				addlinkoption_206056(LOC216);
			}
			break;
			case ((NU16) 169):
			{
				NimStringDesc* LOC218;
				LOC218 = 0;
				LOC218 = expectstrlit_299488(c, it);
				addcompileoption_206066(LOC218);
			}
			break;
			case ((NU16) 129):
			{
				pragmabreakpoint_300706(c, it);
			}
			break;
			case ((NU16) 174):
			{
				pragmawatchpoint_300716(c, it);
			}
			break;
			case ((NU16) 116):
			{
				processpush_300534(c, n, (NI)(i + ((NI) 1)));
				result = NIM_TRUE;
			}
			break;
			case ((NU16) 117):
			{
				processpop_300600(c, it);
			}
			break;
			case ((NU16) 166):
			{
				processpragma_300930(c, n, i);
				result = NIM_TRUE;
			}
			break;
			case ((NU16) 172):
			{
				noval_300806(it);
				{
					if (!!((sym == NIM_NIL))) goto LA227;
					(*sym).flags |= ((NU32)1)<<((((NU8) 29))%(sizeof(NU32)*8));
				}
				LA227: ;
			}
			break;
			case ((NU16) 168):
			{
				noval_300806(it);
				{
					if (!!((sym == NIM_NIL))) goto LA232;
					(*sym).flags |= ((NU32)1)<<((((NU8) 12))%(sizeof(NU32)*8));
				}
				LA232: ;
			}
			break;
			case ((NU16) 193):
			{
				processcodegendecl_299546(c, it, sym);
			}
			break;
			case ((NU16) 143):
			case ((NU16) 82):
			case ((NU16) 173):
			case ((NU16) 144):
			case ((NU16) 145):
			case ((NU16) 146):
			case ((NU16) 147):
			case ((NU16) 151):
			case ((NU16) 153):
			case ((NU16) 154):
			case ((NU16) 120):
			case ((NU16) 121):
			case ((NU16) 122):
			case ((NU16) 155):
			case ((NU16) 128):
			case ((NU16) 130):
			case ((NU16) 81):
			case ((NU16) 148):
			case ((NU16) 149):
			case ((NU16) 150):
			case ((NU16) 152):
			{
				{
					NIM_BOOL LOC238;
					LOC238 = 0;
					LOC238 = processoption_300399(c, it);
					if (!LOC238) goto LA239;
					localerror_198128((*it).info, ((NU16) 153), ((NimStringDesc*) &TMP3217));
				}
				LA239: ;
			}
			break;
			case ((NU16) 131) ... ((NU16) 140):
			{
				{
					if (!((*sym).typ == NIM_NIL)) goto LA244;
					invalidpragma_299091(it);
				}
				goto LA242;
				LA244: ;
				{
					(*(*sym).typ).callconv = wordtocallconv_299866(k);
				}
				LA242: ;
			}
			break;
			case ((NU16) 189):
			{
				pragmaemit_300795(c, it);
			}
			break;
			case ((NU16) 178):
			{
				pragmaunroll_300824(c, it);
			}
			break;
			case ((NU16) 179):
			case ((NU16) 180):
			{
				noval_300806(it);
			}
			break;
			case ((NU16) 160):
			{
				noval_300806(it);
			}
			break;
			case ((NU16) 95):
			{
				noval_300806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA254;
					invalidpragma_299091(it);
				}
				goto LA252;
				LA254: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
				}
				LA252: ;
			}
			break;
			case ((NU16) 194):
			{
				noval_300806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA260;
					invalidpragma_299091(it);
				}
				goto LA258;
				LA260: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
				}
				LA258: ;
			}
			break;
			case ((NU16) 236):
			{
				noval_300806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA266;
					invalidpragma_299091(it);
				}
				goto LA264;
				LA266: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 1))%(sizeof(NU32)*8));
				}
				LA264: ;
			}
			break;
			case ((NU16) 96):
			{
				noval_300806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA272;
					invalidpragma_299091(it);
				}
				goto LA270;
				LA272: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 17))%(sizeof(NU32)*8));
				}
				LA270: ;
			}
			break;
			case ((NU16) 258):
			{
				noval_300806(it);
				{
					NIM_BOOL LOC278;
					LOC278 = 0;
					LOC278 = (sym == NIM_NIL);
					if (LOC278) goto LA279;
					LOC278 = ((*sym).typ == NIM_NIL);
					LA279: ;
					if (!LOC278) goto LA280;
					{
						NIM_BOOL LOC284;
						LOC284 = 0;
						LOC284 = processoption_300399(c, it);
						if (!LOC284) goto LA285;
						localerror_198128((*it).info, ((NU16) 153), ((NimStringDesc*) &TMP3217));
					}
					LA285: ;
				}
				goto LA276;
				LA280: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 13))%(sizeof(NU32)*8));
				}
				LA276: ;
			}
			break;
			case ((NU16) 257):
			{
				noval_300806(it);
				{
					NIM_BOOL LOC291;
					LOC291 = 0;
					LOC291 = !(((*sym).kind == ((NU8) 7)));
					if (LOC291) goto LA292;
					LOC291 = ((*sym).typ == NIM_NIL);
					LA292: ;
					if (!LOC291) goto LA293;
					invalidpragma_299091(it);
				}
				goto LA289;
				LA293: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 12))%(sizeof(NU32)*8));
				}
				LA289: ;
			}
			break;
			case ((NU16) 185):
			case ((NU16) 184):
			{
				noval_300806(it);
				{
					if (!(sym == NIM_NIL)) goto LA299;
					invalidpragma_299091(it);
				}
				LA299: ;
			}
			break;
			case ((NU16) 115):
			{
				pragmaline_300854(c, it);
			}
			break;
			case ((NU16) 156):
			case ((NU16) 161):
			{
				pragmaraisesortags_301008(c, it);
			}
			break;
			case ((NU16) 196):
			{
				{
					if (!(sym == NIM_NIL)) goto LA306;
					pragmalockstmt_301081(c, it);
				}
				goto LA304;
				LA306: ;
				{
					if (!((*sym).typ == NIM_NIL)) goto LA309;
					invalidpragma_299091(it);
				}
				goto LA304;
				LA309: ;
				{
					(*(*sym).typ).locklevel = pragmalocks_301149(c, it);
				}
				LA304: ;
			}
			break;
			case ((NU16) 260):
			{
				{
					NIM_BOOL LOC315;
					NIM_BOOL LOC316;
					LOC315 = 0;
					LOC316 = 0;
					LOC316 = (sym == NIM_NIL);
					if (LOC316) goto LA317;
					LOC316 = !(((*sym).kind == ((NU8) 19)));
					LA317: ;
					LOC315 = LOC316;
					if (LOC315) goto LA318;
					LOC315 = !(((*it).kind == ((NU8) 34)));
					LA318: ;
					if (!LOC315) goto LA319;
					invalidpragma_299091(it);
				}
				goto LA313;
				LA319: ;
				{
					(*sym).kindU.S4.bitsize = expectintlit_299500(c, it);
				}
				LA313: ;
			}
			break;
			case ((NU16) 195):
			{
				{
					NIM_BOOL LOC325;
					LOC325 = 0;
					LOC325 = (sym == NIM_NIL);
					if (LOC325) goto LA326;
					LOC325 = !(((525056 &(1<<(((*sym).kind)&31)))!=0));
					LA326: ;
					if (!LOC325) goto LA327;
					invalidpragma_299091(it);
				}
				goto LA323;
				LA327: ;
				{
					asgnRefNoCycle((void**) (&(*sym).kindU.S4.guard), pragmaguard_301332(c, it, (*sym).kind));
				}
				LA323: ;
			}
			break;
			case ((NU16) 212):
			{
				{
					NIM_BOOL LOC333;
					LOC333 = 0;
					LOC333 = (sym == NIM_NIL);
					if (LOC333) goto LA334;
					LOC333 = !(((768 &(1<<(((*sym).kind)&31)))!=0));
					LA334: ;
					if (!LOC333) goto LA335;
					invalidpragma_299091(it);
				}
				goto LA331;
				LA335: ;
				{
					(*sym).flags |= ((NU32)1)<<((((NU8) 30))%(sizeof(NU32)*8));
				}
				LA331: ;
			}
			break;
			case ((NU16) 94):
			{
				{
					if (!(sym == NIM_NIL)) goto LA341;
					invalidpragma_299091(it);
				}
				goto LA339;
				LA341: ;
				{
					registernimscriptsymbol_276874(sym);
				}
				LA339: ;
			}
			break;
			case ((NU16) 181):
			{
				{
					if (!!(((*it).kind == ((NU8) 34)))) goto LA347;
					localerror_198128((*it).info, ((NU16) 62), ((NimStringDesc*) &TMP3217));
				}
				goto LA345;
				LA347: ;
				{
					asgnRefNoCycle((void**) (&(*it).kindU.S6.sons->data[((NI) 1)]), (*c).semexpr(c, (*it).kindU.S6.sons->data[((NI) 1)], 0));
				}
				LA345: ;
			}
			break;
			case ((NU16) 182):
			{
				noval_300806(it);
				{
					NIM_BOOL LOC353;
					LOC353 = 0;
					LOC353 = istoplevel_283280(c);
					if (!LOC353) goto LA354;
					(*(*c).module).flags |= ((NU32)1)<<((((NU8) 30))%(sizeof(NU32)*8));
				}
				goto LA351;
				LA354: ;
				{
					localerror_198139((*it).info, ((NimStringDesc*) &TMP3240));
				}
				LA351: ;
			}
			break;
			case ((NU16) 165):
			{
				noval_300806(it);
			}
			break;
			case ((NU16) 110):
			{
				noval_300806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 18))%(sizeof(NU32)*8));
			}
			break;
			default:
			{
				invalidpragma_299091(it);
			}
			break;
			}
		}
		goto LA19;
		LA21: ;
		{
			invalidpragma_299091(it);
		}
		LA19: ;
	}
	LA10: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, pragmarec_303263)(Tcontext282023* c, Tsym227841* sym, Tnode227809* n, Tspecialwords208012 validpragmas) {
{	{
		if (!(n == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		NI i_303293;
		NI HEX3Atmp_303306;
		NI LOC6;
		NI res_303309;
		i_303293 = 0;
		HEX3Atmp_303306 = 0;
		LOC6 = 0;
		LOC6 = sonslen_230387(n);
		HEX3Atmp_303306 = (NI)(LOC6 - ((NI) 1));
		res_303309 = ((NI) 0);
		{
			while (1) {
				if (!(res_303309 <= HEX3Atmp_303306)) goto LA8;
				i_303293 = res_303309;
				{
					if (!((*(*n).kindU.S6.sons->data[i_303293]).kind == ((NU8) 90))) goto LA11;
					pragmarec_303263(c, sym, (*n).kindU.S6.sons->data[i_303293], validpragmas);
				}
				goto LA9;
				LA11: ;
				{
					NIM_BOOL LOC14;
					LOC14 = 0;
					LOC14 = singlepragma_301406(c, sym, n, i_303293, validpragmas);
					if (!LOC14) goto LA15;
					goto LA5;
				}
				goto LA9;
				LA15: ;
				LA9: ;
				res_303309 += ((NI) 1);
			} LA8: ;
		}
	} LA5: ;
	}BeforeRet: ;
}

N_NIMCALL(void, implicitpragmas_302759)(Tcontext282023* c, Tsym227841* sym, Tnode227809* n, Tspecialwords208012 validpragmas) {
	{
		NIM_BOOL LOC3;
		Toptionentry282005* it;
		Tlib227827* lib;
		LOC3 = 0;
		LOC3 = !((sym == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC3 = !(((*sym).kind == ((NU8) 6)));
		LA4: ;
		if (!LOC3) goto LA5;
		it = ((Toptionentry282005*) ((*c).optionstack.head));
		{
			while (1) {
				Tnode227809* o;
				if (!!((it == NIM_NIL))) goto LA8;
				o = (*it).otherpragmas;
				{
					if (!!(o == 0)) goto LA11;
					pushinfocontext_193581((*n).info);
					{
						NI i_302821;
						NI HEX3Atmp_302924;
						NI LOC14;
						NI res_302927;
						i_302821 = 0;
						HEX3Atmp_302924 = 0;
						LOC14 = 0;
						LOC14 = sonslen_230387(o);
						HEX3Atmp_302924 = (NI)(LOC14 - ((NI) 1));
						res_302927 = ((NI) 0);
						{
							while (1) {
								if (!(res_302927 <= HEX3Atmp_302924)) goto LA16;
								i_302821 = res_302927;
								{
									NIM_BOOL LOC19;
									LOC19 = 0;
									LOC19 = singlepragma_301406(c, sym, o, i_302821, validpragmas);
									if (!LOC19) goto LA20;
									internalerror_198172((*n).info, ((NimStringDesc*) &TMP3241));
								}
								LA20: ;
								res_302927 += ((NI) 1);
							} LA16: ;
						}
					}
					popinfocontext_193600();
				}
				LA11: ;
				it = ((Toptionentry282005*) ((*it).Sup.next));
			} LA8: ;
		}
		{
			NIM_BOOL LOC24;
			LOC24 = 0;
			LOC24 = (((*sym).loc.flags &(1<<((((NU8) 5))&15)))!=0);
			if (!(LOC24)) goto LA25;
			LOC24 = !((((*sym).flags &(1<<((((NU8) 6))&31)))!=0));
			LA25: ;
			if (!LOC24) goto LA26;
			localerror_198128((*n).info, ((NU16) 83), ((NimStringDesc*) &TMP3217));
		}
		LA26: ;
		lib = (*((Toptionentry282005*) ((*c).optionstack.tail))).dynlib;
		{
			NIM_BOOL LOC30;
			NIM_BOOL LOC31;
			LOC30 = 0;
			LOC31 = 0;
			LOC31 = ((80 & (*sym).loc.flags) == 0);
			if (!(LOC31)) goto LA32;
			LOC31 = (((*sym).flags &(1<<((((NU8) 5))&31)))!=0);
			LA32: ;
			LOC30 = LOC31;
			if (!(LOC30)) goto LA33;
			LOC30 = !((lib == NIM_NIL));
			LA33: ;
			if (!LOC30) goto LA34;
			(*sym).loc.flags |= ((NU16)1)<<((((NU8) 4))%(sizeof(NU16)*8));
			addtolib_282207(lib, sym);
			{
				if (!((*sym).loc.r == NIM_NIL)) goto LA38;
				asgnRefNoCycle((void**) (&(*sym).loc.r), rope_178322((*(*sym).name).s));
			}
			LA38: ;
		}
		LA34: ;
	}
	LA5: ;
}

N_NIMCALL(void, pragma_299082)(Tcontext282023* c, Tsym227841* sym, Tnode227809* n, Tspecialwords208012 validpragmas) {
{	{
		if (!(n == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	pragmarec_303263(c, sym, n, validpragmas);
	implicitpragmas_302759(c, sym, n, validpragmas);
	}BeforeRet: ;
}

N_NIMCALL(NIM_BOOL, haspragma_302952)(Tnode227809* n, NU16 pragma) {
	NIM_BOOL result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (n == NIM_NIL);
		if (LOC3) goto LA4;
		LOC3 = HEX3DHEX3D_302972((*n).kindU.S6.sons, NIM_NIL);
		LA4: ;
		if (!LOC3) goto LA5;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA5: ;
	{
		Tnode227809* p_303211;
		Tnodeseq227803* HEX3Atmp_303242;
		NI i_303245;
		NI L_303247;
		p_303211 = 0;
		HEX3Atmp_303242 = 0;
		HEX3Atmp_303242 = (*n).kindU.S6.sons;
		i_303245 = ((NI) 0);
		L_303247 = (HEX3Atmp_303242 ? HEX3Atmp_303242->Sup.len : 0);
		{
			while (1) {
				Tnode227809* key;
				if (!(i_303245 < L_303247)) goto LA9;
				p_303211 = HEX3Atmp_303242->data[i_303245];
				{
					if (!((*p_303211).kind == ((NU8) 34))) goto LA12;
					key = HEX5BHEX5D_228244(p_303211, ((NI) 0));
				}
				goto LA10;
				LA12: ;
				{
					key = p_303211;
				}
				LA10: ;
				{
					NIM_BOOL LOC17;
					NU16 LOC19;
					LOC17 = 0;
					LOC17 = ((*key).kind == ((NU8) 2));
					if (!(LOC17)) goto LA18;
					LOC19 = 0;
					LOC19 = whichkeyword_208390((*key).kindU.S5.ident);
					LOC17 = (LOC19 == pragma);
					LA18: ;
					if (!LOC17) goto LA20;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA20: ;
				i_303245 += ((NI) 1);
			} LA9: ;
		}
	}
	result = NIM_FALSE;
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_CHAR, pragmaasm_299101)(Tcontext282023* c, Tnode227809* n) {
	NIM_CHAR result;
	result = 0;
	result = 0;
	{
		if (!!((n == NIM_NIL))) goto LA3;
		{
			NI i_299130;
			NI HEX3Atmp_299167;
			NI LOC6;
			NI res_299170;
			i_299130 = 0;
			HEX3Atmp_299167 = 0;
			LOC6 = 0;
			LOC6 = sonslen_230387(n);
			HEX3Atmp_299167 = (NI)(LOC6 - ((NI) 1));
			res_299170 = ((NI) 0);
			{
				while (1) {
					Tnode227809* it;
					if (!(res_299170 <= HEX3Atmp_299167)) goto LA8;
					i_299130 = res_299170;
					it = (*n).kindU.S6.sons->data[i_299130];
					{
						NIM_BOOL LOC11;
						NU16 LOC15;
						LOC11 = 0;
						LOC11 = ((*it).kind == ((NU8) 34));
						if (!(LOC11)) goto LA12;
						LOC11 = ((*(*it).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 2));
						LA12: ;
						if (!LOC11) goto LA13;
						LOC15 = 0;
						LOC15 = whichkeyword_208390((*(*it).kindU.S6.sons->data[((NI) 0)]).kindU.S5.ident);
						switch (LOC15) {
						case ((NU16) 175):
						{
							{
								if (!((*(*it).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 5))) goto LA19;
								result = ((NIM_CHAR) (((NI) (((NI) ((*(*it).kindU.S6.sons->data[((NI) 1)]).kindU.S1.intval))))));
							}
							goto LA17;
							LA19: ;
							{
								invalidpragma_299091(it);
							}
							LA17: ;
						}
						break;
						default:
						{
							invalidpragma_299091(it);
						}
						break;
						}
					}
					goto LA9;
					LA13: ;
					{
						invalidpragma_299091(it);
					}
					LA9: ;
					res_299170 += ((NI) 1);
				} LA8: ;
			}
		}
	}
	LA3: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_pragmasInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_pragmasDatInit000)(void) {
}

