/* 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 Tcontext279023 Tcontext279023;
typedef struct Tsym224841 Tsym224841;
typedef struct Tnode224809 Tnode224809;
typedef struct Ttype224847 Ttype224847;
typedef struct Tlineinfo189352 Tlineinfo189352;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tident197021 Tident197021;
typedef struct Tnodeseq224803 Tnodeseq224803;
typedef struct Tidobj197015 Tidobj197015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tpasscontext276005 Tpasscontext276005;
typedef struct Tscope224835 Tscope224835;
typedef struct Tproccon279011 Tproccon279011;
typedef struct Tsymseq224811 Tsymseq224811;
typedef struct Intset221056 Intset221056;
typedef struct Trunk221052 Trunk221052;
typedef struct Trunkseq221054 Trunkseq221054;
typedef struct Tlinkedlist140028 Tlinkedlist140028;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct Tidtable224859 Tidtable224859;
typedef struct Tidpairseq224857 Tidpairseq224857;
typedef struct Tstrtable224813 Tstrtable224813;
typedef struct Tctx278048 Tctx278048;
typedef struct TY279143 TY279143;
typedef struct Cell48947 Cell48947;
typedef struct Cellseq48963 Cellseq48963;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48959 Cellset48959;
typedef struct Pagedesc48955 Pagedesc48955;
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 Ttypeseq224843 Ttypeseq224843;
typedef struct TY224944 TY224944;
typedef struct Tloc224823 Tloc224823;
typedef struct Ropeobj175009 Ropeobj175009;
typedef struct Tlib224827 Tlib224827;
typedef struct Toptionentry279005 Toptionentry279005;
typedef struct TY123809 TY123809;
typedef struct Tinfocc202011 Tinfocc202011;
typedef struct Tidpair224855 Tidpair224855;
typedef struct TY278254 TY278254;
typedef struct TY190420 TY190420;
typedef struct PprocHEX3Aobjecttype278233 PprocHEX3Aobjecttype278233;
typedef struct TY278273 TY278273;
typedef struct Tinstantiationpair279013 Tinstantiationpair279013;
typedef struct Tinstantiation224831 Tinstantiation224831;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct TY278234 TY278234;
typedef struct TY278239 TY278239;
typedef struct TY278274 TY278274;
typedef struct Vmargs278042 Vmargs278042;
typedef struct TY224932 TY224932;
typedef struct Tblock278030 Tblock278030;
typedef struct TY278214 TY278214;
typedef NU8 Tspecialwords205012[33];
struct  Tlineinfo189352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tnode224809  {
Ttype224847* typ;
Tlineinfo189352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym224841* sym;
} S4;
struct {Tident197021* ident;
} S5;
struct {Tnodeseq224803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef NimStringDesc* TY189317[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  Tidobj197015  {
  TNimObject Sup;
NI id;
};
struct  Tident197021  {
  Tidobj197015 Sup;
NimStringDesc* s;
Tident197021* next;
NI h;
};
typedef NimStringDesc* TY189311[31];
struct  Tpasscontext276005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Intset221056  {
NI counter;
NI max;
Trunk221052* head;
Trunkseq221054* data;
};
struct  Tlinkedlist140028  {
Tlistentry140022* head;
Tlistentry140022* tail;
NI counter;
};
struct  Tidtable224859  {
NI counter;
Tidpairseq224857* data;
};
typedef N_NIMCALL_PTR(Tnode224809*, TY279074) (Tcontext279023* c, Tnode224809* n);
typedef N_NIMCALL_PTR(Tnode224809*, TY279079) (Tcontext279023* c, Tnode224809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode224809*, TY279087) (Tcontext279023* c, Tnode224809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode224809*, TY279095) (Tcontext279023* c, Tnode224809* n);
typedef N_NIMCALL_PTR(Tnode224809*, TY279100) (Tcontext279023* c, Tnode224809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode224809*, TY279108) (Tcontext279023* c, Tnode224809* n);
typedef N_NIMCALL_PTR(Tnode224809*, TY279113) (Tcontext279023* c, Tnode224809* n, Tnode224809* norig, NU32 filter);
typedef N_NIMCALL_PTR(Ttype224847*, TY279120) (Tcontext279023* c, Tnode224809* n, Ttype224847* prev);
typedef struct {
N_NIMCALL_PTR(Tnode224809*, ClPrc) (Tcontext279023* c, Tidtable224859 pt, Tnode224809* n, void* ClEnv);
void* ClEnv;
} TY279126;
typedef struct {
N_NIMCALL_PTR(Tsym224841*, ClPrc) (Tcontext279023* c, Tsym224841* fn, Tidtable224859 pt, Tlineinfo189352 info, void* ClEnv);
void* ClEnv;
} TY279132;
struct  Tstrtable224813  {
NI counter;
Tsymseq224811* data;
};
typedef N_NIMCALL_PTR(Tsym224841*, TY279148) (Tcontext279023* c, Tsym224841* dc, Ttype224847* t, Tlineinfo189352 info, NU8 op);
struct  Tcontext279023  {
  Tpasscontext276005 Sup;
Tsym224841* module;
Tscope224835* currentscope;
Tscope224835* importtable;
Tscope224835* toplevelscope;
Tproccon279011* p;
Tsymseq224811* friendmodules;
NI instcounter;
Intset221056 ambiguoussymbols;
NI intypeclass;
NI ingenericcontext;
NI inunrolledcontext;
NI compilescontextid;
NI compilescontextidgenerator;
NI ingenericinst;
Tsymseq224811* converters;
Tsymseq224811* patterns;
Tlinkedlist140028 optionstack;
Tidtable224859 symmapping;
Tlinkedlist140028 libs;
TY279074 semconstexpr;
TY279079 semexpr;
TY279087 semtryexpr;
TY279095 semtryconstexpr;
TY279100 semoperand;
TY279108 semconstboolexpr;
TY279113 semoverloadedcall;
TY279120 semtypenode;
TY279126 seminferredlambda;
TY279132 semgenerateinstance;
Intset221056 includedfiles;
Tstrtable224813 userpragmas;
Tctx278048* evalcontext;
Intset221056 unknownidents;
TY279143* generics;
NI lastgenericidx;
NI hloloopdetector;
NI inparallelstmt;
TY279148 insttypeboundop;
};
struct  Cell48947  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48963  {
NI len;
NI cap;
Cell48947** d;
};
struct  Cellset48959  {
NI counter;
NI max;
Pagedesc48955* head;
Pagedesc48955** 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;
Cellseq48963 zct;
Cellseq48963 decstack;
Cellset48959 cycleroots;
Cellseq48963 tempstack;
NI recgclock;
Memregion30890 region;
Gcstat51014 stat;
};
struct  Tloc224823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype224847* t;
Ropeobj175009* r;
Ropeobj175009* heaproot;
};
struct  Tsym224841  {
  Tidobj197015 Sup;
NU8 kind;
union{
struct {Ttypeseq224843* typeinstcache;
Tscope224835* typscope;
} S1;
struct {TY224944* procinstcache;
Tsym224841* gcunsafetyreason;
} S2;
struct {TY224944* usedgenerics;
Tstrtable224813 tab;
} S3;
struct {Tsym224841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype224847* typ;
Tident197021* name;
Tlineinfo189352 info;
Tsym224841* owner;
NU32 flags;
Tnode224809* ast;
NU32 options;
NI position;
NI offset;
Tloc224823 loc;
Tlib224827* annex;
Tnode224809* constraint;
};
struct  Ttype224847  {
  Tidobj197015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq224843* sons;
Tnode224809* n;
Tsym224841* owner;
Tsym224841* sym;
Tsym224841* destructor;
Tsym224841* deepcopy;
Tsym224841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc224823 loc;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tlib224827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj175009* name;
Tnode224809* path;
};
struct  Toptionentry279005  {
  Tlistentry140022 Sup;
NU32 options;
NU8 defaultcc;
Tlib224827* dynlib;
NU64 notes;
Tnode224809* otherpragmas;
};
struct TY123809 {
NimStringDesc* Field0;
NimStringDesc* Field1;
NimStringDesc* Field2;
};
struct Tinfocc202011 {
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 Tinfocc202011 TY202481[13];
struct  Tproccon279011  {
Tsym224841* owner;
Tsym224841* resultsym;
NI nestedloopcounter;
NI nestedblockcounter;
NI intrystmt;
Tproccon279011* next;
NIM_BOOL wasforwarded;
Tnode224809* bracketexpr;
};
struct  Tscope224835  {
NI depthlevel;
Tstrtable224813 symbols;
Tnodeseq224803* usingsyms;
Tscope224835* parent;
};
typedef NI TY30821[16];
struct  Trunk221052  {
Trunk221052* next;
NI key;
TY30821 bits;
};
struct  Tidpair224855  {
Tidobj197015* key;
TNimObject* val;
};
struct  Tctx278048  {
  Tpasscontext276005 Sup;
TY278254* code;
TY190420* debug;
Tnode224809* globals;
Tnode224809* constants;
Ttypeseq224843* types;
Tnode224809* currentexceptiona;
Tnode224809* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype278233* prc;
Tsym224841* module;
Tnode224809* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo189352 comesfromheuristic;
TY278273* callbacks;
NimStringDesc* errorflag;
};
struct  Tinstantiationpair279013  {
Tsym224841* genericsym;
Tinstantiation224831* inst;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
struct  Pagedesc48955  {
Pagedesc48955* 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  Ropeobj175009  {
  TNimObject Sup;
Ropeobj175009* left;
Ropeobj175009* right;
NI length;
NimStringDesc* data;
};
struct TY278239 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY278239 TY278242[256];
struct  PprocHEX3Aobjecttype278233  {
TY278234* blocks;
Tsym224841* sym;
TY278242 slots;
NI maxslots;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs278042* args, void* ClEnv);
void* ClEnv;
} Vmcallback278044;
struct TY278274 {
NimStringDesc* Field0;
Vmcallback278044 Field1;
};
struct  Tinstantiation224831  {
Tsym224841* sym;
Ttypeseq224843* concretetypes;
TY224932* usedby;
NI compilesid;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct  Tblock278030  {
Tsym224841* label;
TY278214* fixups;
};
struct  Vmargs278042  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode224809* currentexception;
};
struct Tnodeseq224803 {
  TGenericSeq Sup;
  Tnode224809* data[SEQ_DECL_SIZE];
};
struct Tsymseq224811 {
  TGenericSeq Sup;
  Tsym224841* data[SEQ_DECL_SIZE];
};
struct Trunkseq221054 {
  TGenericSeq Sup;
  Trunk221052* data[SEQ_DECL_SIZE];
};
struct Tidpairseq224857 {
  TGenericSeq Sup;
  Tidpair224855 data[SEQ_DECL_SIZE];
};
struct TY279143 {
  TGenericSeq Sup;
  Tinstantiationpair279013 data[SEQ_DECL_SIZE];
};
struct Ttypeseq224843 {
  TGenericSeq Sup;
  Ttype224847* data[SEQ_DECL_SIZE];
};
struct TY224944 {
  TGenericSeq Sup;
  Tinstantiation224831* data[SEQ_DECL_SIZE];
};
struct TY278254 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY190420 {
  TGenericSeq Sup;
  Tlineinfo189352 data[SEQ_DECL_SIZE];
};
struct TY278273 {
  TGenericSeq Sup;
  TY278274 data[SEQ_DECL_SIZE];
};
struct TY278234 {
  TGenericSeq Sup;
  Tblock278030 data[SEQ_DECL_SIZE];
};
struct TY224932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY278214 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, pragmarec_300263)(Tcontext279023* c, Tsym224841* sym, Tnode224809* n, Tspecialwords205012 validpragmas);
N_NIMCALL(NI, sonslen_227387)(Tnode224809* n);
N_NIMCALL(NIM_BOOL, singlepragma_298406)(Tcontext279023* c, Tsym224841* sym, Tnode224809* n, NI i, Tspecialwords205012 validpragmas);
N_NIMCALL(void, processnote_297284)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(NU16, whichkeyword_205390)(Tident197021* id);
N_NIMCALL(NI, findstr_205348)(NimStringDesc** a, NI aLen0, NimStringDesc* s);
N_NIMCALL(void, invalidpragma_296091)(Tnode224809* n);
N_NIMCALL(void, localerror_195128)(Tlineinfo189352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_246059)(Tnode224809* n, NU8 renderflags);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell48947*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48947* c);
N_NOINLINE(void, addzct_52617)(Cellseq48963* s, Cell48947* c);
N_NIMCALL(Tident197021*, considerquotedident_285010)(Tnode224809* n);
N_NIMCALL(Tsym224841*, strtableget_232111)(Tstrtable224813 t, Tident197021* name);
N_NIMCALL(void, globalerror_195107)(Tlineinfo189352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, pragma_296082)(Tcontext279023* c, Tsym224841* sym, Tnode224809* n, Tspecialwords205012 validpragmas);
N_NIMCALL(void, makeexternexport_296276)(Tsym224841* s, NimStringDesc* extname, Tlineinfo189352 info);
N_NIMCALL(void, setexternname_296189)(Tsym224841* s, NimStringDesc* extname);
N_NIMCALL(Ropeobj175009*, rope_175322)(NimStringDesc* s);
N_NIMCALL(NimStringDesc*, nsuFormatSingleElem)(NimStringDesc* formatstr, NimStringDesc* a);
N_NIMCALL(NIM_BOOL, contains_103953)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, getoptionalstr_296525)(Tcontext279023* c, Tnode224809* n, NimStringDesc* defaultstr);
N_NIMCALL(NimStringDesc*, expectstrlit_296488)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(Tnode224809*, getstrlitnode_296464)(Tcontext279023* c, Tnode224809* n);
N_NOINLINE(Tnode224809*, newemptystrnode_296453)(Tnode224809* n);
N_NIMCALL(Tnode224809*, newnodeit_226807)(NU8 kind, Tlineinfo189352 info, Ttype224847* typ);
N_NIMCALL(Ttype224847*, getsystype_273190)(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_296222)(Tsym224841* s, NimStringDesc* extname);
N_NIMCALL(void, processimportcompilerproc_296298)(Tsym224841* s, NimStringDesc* extname);
N_NIMCALL(void, processimportcpp_296341)(Tsym224841* s, NimStringDesc* extname);
N_NIMCALL(Tsym224841*, getmodule_232243)(Tsym224841* s);
N_NIMCALL(void, processimportobjc_296397)(Tsym224841* s, NimStringDesc* extname);
N_NIMCALL(NI, expectintlit_296500)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(NIM_BOOL, ispoweroftwo_161638)(NI x);
N_NIMCALL(void, noval_297806)(Tnode224809* n);
N_NIMCALL(void, pragmadeadcodeelim_296971)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(NIM_BOOL, isturnedon_296903)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(void, pragmanoforward_297003)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(void, processmagic_296558)(Tcontext279023* c, Tnode224809* n, Tsym224841* s);
N_NIMCALL(NimStringDesc*, copyStr)(NimStringDesc* s, NI start);
N_NIMCALL(NimStringDesc*, copyStr)(NimStringDesc* s, NI first);
N_NIMCALL(NimStringDesc*, reprEnum)(NI e_86859, TNimType* typ);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(void, message_195161)(Tlineinfo189352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(Tlib224827*, getlib_297067)(Tcontext279023* c, NU8 kind, Tnode224809* path);
N_NIMCALL(NIM_BOOL, exprstructuralequivalent_253149)(Tnode224809* a, Tnode224809* b, NIM_BOOL strictsymequality);
N_NIMCALL(Tlib224827*, newlib_279201)(NU8 kind);
N_NIMCALL(void, append_140053)(Tlinkedlist140028* list, Tlistentry140022* entry);
N_NIMCALL(NIM_BOOL, isdynliboverride_167681)(NimStringDesc* lib);
N_NIMCALL(void, addtolib_279207)(Tlib224827* lib, Tsym224841* sym);
N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s);
N_NIMCALL(void, processdynlib_297186)(Tcontext279023* c, Tnode224809* n, Tsym224841* sym);
N_NIMCALL(Tnode224809*, expectdynlibnode_297121)(Tcontext279023* c, Tnode224809* n);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_55022)(Cell48947* c);
static N_INLINE(NIM_BOOL, canbecycleroot_52667)(Cell48947* c);
static N_INLINE(void, rtladdcycleroot_53423)(Cell48947* c);
N_NOINLINE(void, incl_49665)(Cellset48959* s, Cell48947* cell);
static N_INLINE(void, decref_54604)(Cell48947* c);
N_NIMCALL(void, markcompilerproc_298220)(Tsym224841* s);
N_NIMCALL(void, registercompilerproc_273864)(Tsym224841* s);
N_NIMCALL(void, deprecatedstmt_298252)(Tcontext279023* c, Tnode224809* pragma_298255);
static N_INLINE(Tnode224809*, HEX5BHEX5D_225244)(Tnode224809* n, NI i);
N_NIMCALL(void, localerror_195139)(Tlineinfo189352 info, NimStringDesc* arg);
static N_INLINE(NI, len_225098)(Tnode224809* n);
N_NIMCALL(Tsym224841*, qualifiedlookup_285864)(Tcontext279023* c, Tnode224809* n, NU8 flags);
N_NIMCALL(Tsym224841*, newsym_225656)(NU8 symkind, Tident197021* name, Tsym224841* owner, Tlineinfo189352 info);
N_NIMCALL(void, addinterfacedecl_285736)(Tcontext279023* c, Tsym224841* sym);
N_NIMCALL(void, typeborrow_298179)(Tsym224841* sym, Tnode224809* n);
static N_INLINE(NIM_BOOL, isroutine_229763)(Tsym224841* s);
N_NIMCALL(void, fatal_195096)(Tlineinfo189352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, processdefine_297611)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(void, definesymbol_198013)(NimStringDesc* symbol);
N_NIMCALL(void, processundef_297642)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(void, undefsymbol_198022)(NimStringDesc* symbol);
N_NIMCALL(void, processcompile_297680)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(NimStringDesc*, findfile_167539)(NimStringDesc* f);
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(NIM_BOOL, nosisAbsolute)(NimStringDesc* path);
N_NIMCALL(NimStringDesc*, HEX2F_123481)(NimStringDesc* head, NimStringDesc* tail);
N_NIMCALL(NimStringDesc*, nosparentDir)(NimStringDesc* path);
N_NIMCALL(NimStringDesc*, tofullpath_190665)(NI32 fileidx);
N_NIMCALL(void, addexternalfiletocompile_203699)(NimStringDesc* filename);
N_NIMCALL(void, addfiletolink_203154)(NimStringDesc* filename);
N_NIMCALL(NimStringDesc*, completecfilepath_203112)(NimStringDesc* cfile, NIM_BOOL createsubdir);
N_NIMCALL(void, processcommonlink_297693)(Tcontext279023* c, Tnode224809* n, NU8 feature);
N_NIMCALL(void, nossplitFile)(NimStringDesc* path, TY123809* Result);
N_NIMCALL(NimStringDesc*, nosaddFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(void, internalerror_195172)(Tlineinfo189352 info, NimStringDesc* errmsg);
N_NIMCALL(void, addlinkoption_203056)(NimStringDesc* option);
N_NIMCALL(void, addcompileoption_203066)(NimStringDesc* option);
N_NIMCALL(void, pragmabreakpoint_297706)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(void, pragmawatchpoint_297716)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(void, processpush_297534)(Tcontext279023* c, Tnode224809* n, NI start);
N_NIMCALL(Toptionentry279005*, newoptionentry_279196)(void);
N_NIMCALL(NIM_BOOL, processoption_297399)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(void, onoff_296936)(Tcontext279023* c, Tnode224809* n, NU32 op);
N_NIMCALL(void, processcallconv_297035)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(NU8, wordtocallconv_296866)(NU16 sw);
N_NIMCALL(Tnode224809*, newnodei_226351)(NU8 kind, Tlineinfo189352 info);
N_NIMCALL(void, add_225165)(Tnode224809* father, Tnode224809* son);
N_NIMCALL(void, processpop_297600)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(void, remove_140639)(Tlinkedlist140028* list, Tlistentry140022* entry);
N_NIMCALL(void, processpragma_297930)(Tcontext279023* c, Tnode224809* n, NI i);
N_NIMCALL(void, addson_226819)(Tnode224809* father, Tnode224809* son);
N_NIMCALL(void, strtableadd_232103)(Tstrtable224813* t, Tsym224841* n);
N_NIMCALL(void, processcodegendecl_296546)(Tcontext279023* c, Tnode224809* n, Tsym224841* sym);
N_NIMCALL(void, pragmaemit_297795)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(Tnode224809*, semasmoremit_297737)(Tcontext279023* con, Tnode224809* n, NIM_CHAR marker);
N_NIMCALL(Tnode224809*, newnode_226607)(NU8 kind, Tlineinfo189352 info, Tnodeseq224803* sons, Ttype224847* 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(Tnode224809*, newstrnode_225644)(NU8 kind, NimStringDesc* strval);
N_NIMCALL(Tsym224841*, searchinscopes_285205)(Tcontext279023* c, Tident197021* s);
N_NIMCALL(Tident197021*, getident_197463)(NimStringDesc* identifier);
N_NIMCALL(void, loadstub_270053)(Tsym224841* s);
N_NIMCALL(Tnode224809*, newsymnode_226325)(Tsym224841* sym);
N_NIMCALL(NimStringDesc*, nimCharToStr)(NIM_CHAR x);
N_NIMCALL(void, illformedastlocal_280250)(Tnode224809* n);
N_NIMCALL(void, pragmaunroll_297824)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(Tnode224809*, newintnode_225608)(NU8 kind, NI64 intval);
N_NIMCALL(void, pragmaline_297854)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(NI32, fileinfoidx_190254)(NimStringDesc* filename);
N_NIMCALL(Tlineinfo189352, getinfocontext_190626)(NI index);
N_NIMCALL(void, pragmaraisesortags_298008)(Tcontext279023* c, Tnode224809* n);
N_NIMCALL(void, processexc_298012)(Tcontext279023* c, Tnode224809* x);
N_NIMCALL(Ttype224847*, skiptypes_228167)(Ttype224847* t, NU64 kinds);
N_NIMCALL(void, pragmalockstmt_298081)(Tcontext279023* c, Tnode224809* it);
N_NIMCALL(NI16, pragmalocks_298149)(Tcontext279023* c, Tnode224809* it);
N_NIMCALL(Tsym224841*, pragmaguard_298332)(Tcontext279023* c, Tnode224809* it, NU8 kind);
N_NIMCALL(void, registernimscriptsymbol_273874)(Tsym224841* s);
static N_INLINE(NIM_BOOL, istoplevel_280280)(Tcontext279023* c);
N_NIMCALL(void, implicitpragmas_299759)(Tcontext279023* c, Tsym224841* sym, Tnode224809* n, Tspecialwords205012 validpragmas);
N_NIMCALL(void, pushinfocontext_190581)(Tlineinfo189352 info);
N_NIMCALL(void, popinfocontext_190600)(void);
N_NIMCALL(NIM_BOOL, HEX3DHEX3D_299972)(Tnodeseq224803* x, Tnodeseq224803* y);
STRING_LITERAL(TMP3162, "Success", 7);
STRING_LITERAL(TMP3163, "SuccessX", 8);
STRING_LITERAL(TMP3164, "LineTooLong", 11);
STRING_LITERAL(TMP3165, "XDeclaredButNotUsed", 19);
STRING_LITERAL(TMP3166, "ConvToBaseNotNeeded", 19);
STRING_LITERAL(TMP3167, "ConvFromXtoItselfNotNeeded", 26);
STRING_LITERAL(TMP3168, "ExprAlwaysX", 11);
STRING_LITERAL(TMP3169, "QuitCalled", 10);
STRING_LITERAL(TMP3170, "Processing", 10);
STRING_LITERAL(TMP3171, "CodeBegin", 9);
STRING_LITERAL(TMP3172, "CodeEnd", 7);
STRING_LITERAL(TMP3173, "Conf", 4);
STRING_LITERAL(TMP3174, "Path", 4);
STRING_LITERAL(TMP3175, "CondTrue", 8);
STRING_LITERAL(TMP3176, "Name", 4);
STRING_LITERAL(TMP3177, "Pattern", 7);
STRING_LITERAL(TMP3178, "Exec", 4);
STRING_LITERAL(TMP3179, "Link", 4);
STRING_LITERAL(TMP3180, "Dependency", 10);
STRING_LITERAL(TMP3181, "Source", 6);
STRING_LITERAL(TMP3182, "StackTrace", 10);
STRING_LITERAL(TMP3183, "GCStats", 7);
STRING_LITERAL(TMP3184, "User", 4);
NIM_CONST TY189317 TMP3161 = {((NimStringDesc*) &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)}
;
STRING_LITERAL(TMP3186, "CannotOpenFile", 14);
STRING_LITERAL(TMP3187, "OctalEscape", 11);
STRING_LITERAL(TMP3188, "XIsNeverRead", 12);
STRING_LITERAL(TMP3189, "XmightNotBeenInit", 17);
STRING_LITERAL(TMP3190, "Deprecated", 10);
STRING_LITERAL(TMP3191, "ConfigDeprecated", 16);
STRING_LITERAL(TMP3192, "SmallLshouldNotBeUsed", 21);
STRING_LITERAL(TMP3193, "UnknownMagic", 12);
STRING_LITERAL(TMP3194, "RedefinitionOfLabel", 19);
STRING_LITERAL(TMP3195, "UnknownSubstitutionX", 20);
STRING_LITERAL(TMP3196, "LanguageXNotSupported", 21);
STRING_LITERAL(TMP3197, "FieldXNotSupported", 18);
STRING_LITERAL(TMP3198, "CommentXIgnored", 15);
STRING_LITERAL(TMP3199, "NilStmt", 7);
STRING_LITERAL(TMP3200, "TypelessParam", 13);
STRING_LITERAL(TMP3201, "UseBase", 7);
STRING_LITERAL(TMP3202, "WriteToForeignHeap", 18);
STRING_LITERAL(TMP3203, "UnsafeCode", 10);
STRING_LITERAL(TMP3204, "EachIdentIsTuple", 16);
STRING_LITERAL(TMP3205, "ShadowIdent", 11);
STRING_LITERAL(TMP3206, "ProveInit", 9);
STRING_LITERAL(TMP3207, "ProveField", 10);
STRING_LITERAL(TMP3208, "ProveIndex", 10);
STRING_LITERAL(TMP3209, "GcUnsafe", 8);
STRING_LITERAL(TMP3210, "GcUnsafe2", 9);
STRING_LITERAL(TMP3211, "Uninit", 6);
STRING_LITERAL(TMP3212, "GcMem", 5);
STRING_LITERAL(TMP3213, "Destructor", 10);
STRING_LITERAL(TMP3214, "LockLevel", 9);
STRING_LITERAL(TMP3215, "ResultShadowed", 14);
NIM_CONST TY189311 TMP3185 = {((NimStringDesc*) &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*) &TMP3184)}
;
STRING_LITERAL(TMP3216, "", 0);
STRING_LITERAL(TMP3217, "$1", 2);
STRING_LITERAL(TMP3218, "destroy", 7);
STRING_LITERAL(TMP3219, "destructor has to be named \'destroy\'", 36);
STRING_LITERAL(TMP3220, "list of key:value pairs expected", 32);
STRING_LITERAL(TMP3222, "key:value pair expected", 23);
STRING_LITERAL(TMP3223, "a type can only borrow `.` for now", 34);
STRING_LITERAL(TMP3224, "define", 6);
STRING_LITERAL(TMP3225, "undef", 5);
extern NIM_CONST TY202481 Cc_202467;
STRING_LITERAL(TMP3226, "processCommonLink", 17);
STRING_LITERAL(TMP3227, "\':\' after \'push\' not supported", 30);
STRING_LITERAL(TMP3228, "speed", 5);
STRING_LITERAL(TMP3229, "size", 4);
STRING_LITERAL(TMP3230, "none", 4);
STRING_LITERAL(TMP3231, "tuple", 5);
STRING_LITERAL(TMP3232, "invalid type for raises/tags list", 33);
STRING_LITERAL(TMP3233, "locks pragma takes a list of expressions", 40);
STRING_LITERAL(TMP3234, "integer must be within 0..1000", 30);
STRING_LITERAL(TMP3239, "\'experimental\' pragma only valid as toplevel statement", 54);
STRING_LITERAL(TMP3240, "implicitPragmas", 15);
extern Gcheap51018 gch_51059;
extern NU64 gnotes_190398;
extern NU8 gcmd_166134;
extern NIM_BOOL gmixedmode_202490;
extern TNimType NTI224534; /* TMagic */
extern NU8 ccompiler_202488;
extern NimStringDesc* libpath_166233;
extern NU32 goptions_166130;
extern TNimType NTI224803; /* TNodeSeq */

N_NIMCALL(void, invalidpragma_296091)(Tnode224809* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_246059(n, 4);
	localerror_195128((*n).info, ((NU16) 166), LOC1);
}

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

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

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell48947* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_52646(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell48947* 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_297284)(Tcontext279023* c, Tnode224809* n) {
{	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		NIM_BOOL LOC5;
		NIM_BOOL LOC6;
		NI LOC8;
		NU16 nk;
		NU16 LOC14;
		Tnode224809* x;
		LOC3 = 0;
		LOC4 = 0;
		LOC5 = 0;
		LOC6 = 0;
		LOC6 = ((*n).kind == ((NU8) 34));
		if (!(LOC6)) goto LA7;
		LOC8 = 0;
		LOC8 = sonslen_227387(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_205390((*(*(*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_205348(TMP3161, 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_296091(n);
				goto BeforeRet;
			}
			LA16: ;
		}
		break;
		case ((NU16) 113):
		{
			NI x;
			x = findstr_205348(TMP3185, 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_296091(n);
				goto BeforeRet;
			}
			LA22: ;
		}
		break;
		default:
		{
			invalidpragma_296091(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_190398 |= ((NU64)1)<<(((nk- 237))%(sizeof(NU64)*8));
		}
		goto LA28;
		LA32: ;
		{
			gnotes_190398 &= ~(((NU64)1) << (((nk- 237)) % (sizeof(NU64)*8)));
		}
		LA28: ;
	}
	goto LA1;
	LA12: ;
	{
		invalidpragma_296091(n);
	}
	LA1: ;
	}BeforeRet: ;
}

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

N_NIMCALL(void, makeexternexport_296276)(Tsym224841* s, NimStringDesc* extname, Tlineinfo189352 info) {
	setexternname_296189(s, extname);
	(*s).flags |= ((NU32)1)<<((((NU8) 6))%(sizeof(NU32)*8));
}

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

N_NOINLINE(Tnode224809*, newemptystrnode_296453)(Tnode224809* n) {
	Tnode224809* result;
	Ttype224847* LOC1;
	NimStringDesc* LOC2;
	result = 0;
	LOC1 = 0;
	LOC1 = getsystype_273190(((NU8) 28));
	result = newnodeit_226807(((NU8) 20), (*n).info, LOC1);
	LOC2 = 0;
	LOC2 = (*result).kindU.S3.strval; (*result).kindU.S3.strval = copyStringRC1(((NimStringDesc*) &TMP3216));
	if (LOC2) nimGCunrefNoCycle(LOC2);
	return result;
}

N_NIMCALL(Tnode224809*, getstrlitnode_296464)(Tcontext279023* c, Tnode224809* n) {
	Tnode224809* result;
	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		localerror_195128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3216));
		result = newemptystrnode_296453(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_195128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3216));
			result = newemptystrnode_296453(n);
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(NimStringDesc*, expectstrlit_296488)(Tcontext279023* c, Tnode224809* n) {
	NimStringDesc* result;
	Tnode224809* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getstrlitnode_296464(c, n);
	result = copyString((*LOC1).kindU.S3.strval);
	return result;
}

N_NIMCALL(NimStringDesc*, getoptionalstr_296525)(Tcontext279023* c, Tnode224809* n, NimStringDesc* defaultstr) {
	NimStringDesc* result;
	result = 0;
	{
		if (!((*n).kind == ((NU8) 34))) goto LA3;
		result = expectstrlit_296488(c, n);
	}
	goto LA1;
	LA3: ;
	{
		result = copyString(defaultstr);
	}
	LA1: ;
	return result;
}

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

N_NIMCALL(void, processimportcompilerproc_296298)(Tsym224841* s, NimStringDesc* extname) {
	setexternname_296189(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_296341)(Tsym224841* s, NimStringDesc* extname) {
	Tsym224841* m;
	setexternname_296189(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_232243(s);
	(*m).flags |= ((NU32)1)<<((((NU8) 27))%(sizeof(NU32)*8));
	gmixedmode_202490 = NIM_TRUE;
}

N_NIMCALL(void, processimportobjc_296397)(Tsym224841* s, NimStringDesc* extname) {
	Tsym224841* m;
	setexternname_296189(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_232243(s);
	(*m).flags |= ((NU32)1)<<((((NU8) 28))%(sizeof(NU32)*8));
}

N_NIMCALL(NI, expectintlit_296500)(Tcontext279023* c, Tnode224809* n) {
	NI result;
	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		localerror_195128((*n).info, ((NU16) 7), ((NimStringDesc*) &TMP3216));
	}
	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_195128((*n).info, ((NU16) 7), ((NimStringDesc*) &TMP3216));
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, noval_297806)(Tnode224809* n) {
	{
		if (!((*n).kind == ((NU8) 34))) goto LA3;
		invalidpragma_296091(n);
	}
	LA3: ;
}

N_NIMCALL(NIM_BOOL, isturnedon_296903)(Tcontext279023* c, Tnode224809* n) {
	NIM_BOOL result;
{	result = 0;
	{
		Tnode224809* 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_195128((*n).info, ((NU16) 27), ((NimStringDesc*) &TMP3216));
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, pragmadeadcodeelim_296971)(Tcontext279023* c, Tnode224809* n) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isturnedon_296903(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_297003)(Tcontext279023* c, Tnode224809* n) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isturnedon_296903(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_296558)(Tcontext279023* c, Tnode224809* n, Tsym224841* s) {
	NimStringDesc* v;
{	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		localerror_195128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3216));
		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_296488(c, n);
	}
	LA5: ;
	{
		NU8 m_296823;
		NI res_296848;
		m_296823 = 0;
		res_296848 = ((NI) 0);
		{
			while (1) {
				if (!(res_296848 <= ((NI) 254))) goto LA12;
				m_296823 = ((NU8) (res_296848));
				{
					NimStringDesc* LOC15;
					LOC15 = 0;
					LOC15 = copyStr(reprEnum(m_296823, (&NTI224534)), ((NI) 1));
					if (!eqStrings(LOC15, v)) goto LA16;
					(*s).magic = m_296823;
					goto LA10;
				}
				LA16: ;
				res_296848 += ((NI) 1);
			} LA12: ;
		}
	} LA10: ;
	{
		if (!((*s).magic == ((NU8) 0))) goto LA20;
		message_195161((*n).info, ((NU16) 244), v);
	}
	LA20: ;
	}BeforeRet: ;
}

N_NIMCALL(Tlib224827*, getlib_297067)(Tcontext279023* c, NU8 kind, Tnode224809* path) {
	Tlib224827* result;
	Tlib224827* it;
	Tlistentry140022* LOC12;
{	result = 0;
	it = ((Tlib224827*) ((*c).libs.head));
	{
		while (1) {
			if (!!((it == NIM_NIL))) goto LA2;
			{
				if (!((*it).kind == kind)) goto LA5;
				{
					NIM_BOOL LOC9;
					LOC9 = 0;
					LOC9 = exprstructuralequivalent_253149((*it).path, path, NIM_FALSE);
					if (!LOC9) goto LA10;
					result = it;
					goto BeforeRet;
				}
				LA10: ;
			}
			LA5: ;
			it = ((Tlib224827*) ((*it).Sup.next));
		} LA2: ;
	}
	result = newlib_279201(kind);
	asgnRefNoCycle((void**) (&(*result).path), path);
	LOC12 = 0;
	LOC12 = &result->Sup;
	append_140053((&(*c).libs), LOC12);
	{
		if (!((*path).kind >= ((NU8) 20) && (*path).kind <= ((NU8) 22))) goto LA15;
		(*result).isoverriden = isdynliboverride_167681((*path).kindU.S3.strval);
	}
	LA15: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode224809*, expectdynlibnode_297121)(Tcontext279023* c, Tnode224809* n) {
	Tnode224809* result;
	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		localerror_195128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3216));
		result = newemptystrnode_296453(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_195128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3216));
			result = newemptystrnode_296453(n);
		}
		LA16: ;
	}
	LA1: ;
	return result;
}

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

static N_INLINE(void, rtladdcycleroot_53423)(Cell48947* 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)(Cell48947* 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)(Cell48947* 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) {
	{
		Cell48947* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_52646(src);
		incref_55022(LOC5);
	}
	LA3: ;
	{
		Cell48947* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_52646((*dest));
		decref_54604(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(void, processdynlib_297186)(Tcontext279023* c, Tnode224809* n, Tsym224841* sym) {
	{
		NIM_BOOL LOC3;
		Tnode224809* 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_297121(c, n);
		asgnRef((void**) (&(*((Toptionentry279005*) ((*c).optionstack.tail))).dynlib), getlib_297067(c, ((NU8) 1), LOC7));
	}
	goto LA1;
	LA5: ;
	{
		{
			Tlib224827* lib;
			Tnode224809* LOC13;
			if (!((*n).kind == ((NU8) 34))) goto LA11;
			LOC13 = 0;
			LOC13 = expectdynlibnode_297121(c, n);
			lib = getlib_297067(c, ((NU8) 1), LOC13);
			{
				if (!!((*lib).isoverriden)) goto LA16;
				addtolib_279207(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_298220)(Tsym224841* s) {
	makeexternexport_296276(s, ((NimStringDesc*) &TMP3217), (*s).info);
	(*s).flags |= ((NU32)1)<<((((NU8) 16))%(sizeof(NU32)*8));
	(*s).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
	registercompilerproc_273864(s);
}

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

static N_INLINE(NI, len_225098)(Tnode224809* 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_298252)(Tcontext279023* c, Tnode224809* pragma_298255) {
	Tnode224809* pragma;
{	pragma = HEX5BHEX5D_225244(pragma_298255, ((NI) 1));
	{
		if (!!(((*pragma).kind == ((NU8) 41)))) goto LA3;
		localerror_195139((*pragma).info, ((NimStringDesc*) &TMP3220));
		goto BeforeRet;
	}
	LA3: ;
	{
		Tnode224809* n_298266;
		n_298266 = 0;
		{
			NI i_298307;
			NI HEX3Atmp_298309;
			NI LOC7;
			NI res_298311;
			i_298307 = 0;
			HEX3Atmp_298309 = 0;
			LOC7 = 0;
			LOC7 = len_225098(pragma);
			HEX3Atmp_298309 = (LOC7 - 1);
			res_298311 = ((NI) 0);
			{
				while (1) {
					if (!(res_298311 <= HEX3Atmp_298309)) goto LA9;
					i_298307 = res_298311;
					n_298266 = (*pragma).kindU.S6.sons->data[i_298307];
					{
						Tsym224841* dest;
						Tnode224809* LOC14;
						Tident197021* src;
						Tnode224809* LOC15;
						Tsym224841* alias;
						Tnode224809* LOC16;
						if (!((*n_298266).kind == ((NU8) 34) || (*n_298266).kind == ((NU8) 33))) goto LA12;
						LOC14 = 0;
						LOC14 = HEX5BHEX5D_225244(n_298266, ((NI) 1));
						dest = qualifiedlookup_285864(c, LOC14, 2);
						LOC15 = 0;
						LOC15 = HEX5BHEX5D_225244(n_298266, ((NI) 0));
						src = considerquotedident_285010(LOC15);
						LOC16 = 0;
						LOC16 = HEX5BHEX5D_225244(n_298266, ((NI) 0));
						alias = newsym_225656(((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_298220(alias);
						}
						LA19: ;
						addinterfacedecl_285736(c, alias);
					}
					goto LA10;
					LA12: ;
					{
						localerror_195139((*n_298266).info, ((NimStringDesc*) &TMP3222));
					}
					LA10: ;
					res_298311 += ((NI) 1);
				} LA9: ;
			}
		}
	}
	}BeforeRet: ;
}

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

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

N_NIMCALL(void, processdefine_297611)(Tcontext279023* c, Tnode224809* 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_198013((*(*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident).s);
		message_195161((*n).info, ((NU16) 241), ((NimStringDesc*) &TMP3224));
	}
	goto LA1;
	LA5: ;
	{
		invalidpragma_296091(n);
	}
	LA1: ;
}

N_NIMCALL(void, processundef_297642)(Tcontext279023* c, Tnode224809* 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_198022((*(*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident).s);
		message_195161((*n).info, ((NU16) 241), ((NimStringDesc*) &TMP3225));
	}
	goto LA1;
	LA5: ;
	{
		invalidpragma_296091(n);
	}
	LA1: ;
}

N_NIMCALL(void, processcompile_297680)(Tcontext279023* c, Tnode224809* n) {
	NimStringDesc* s;
	NimStringDesc* found;
	NimStringDesc* trunc;
	NimStringDesc* LOC12;
	s = expectstrlit_296488(c, n);
	found = findfile_167539(s);
	{
		if (!((found) && (found)->Sup.len == 0)) goto LA3;
		found = copyString(s);
	}
	LA3: ;
	trunc = noschangeFileExt(found, ((NimStringDesc*) &TMP3216));
	{
		NIM_BOOL LOC7;
		NimStringDesc* LOC10;
		NimStringDesc* LOC11;
		LOC7 = 0;
		LOC7 = nosisAbsolute(found);
		if (!!(LOC7)) goto LA8;
		LOC10 = 0;
		LOC10 = tofullpath_190665((*n).info.fileindex);
		LOC11 = 0;
		LOC11 = nosparentDir(LOC10);
		found = HEX2F_123481(LOC11, found);
	}
	LA8: ;
	addexternalfiletocompile_203699(found);
	LOC12 = 0;
	LOC12 = completecfilepath_203112(trunc, NIM_FALSE);
	addfiletolink_203154(LOC12);
}

N_NIMCALL(void, processcommonlink_297693)(Tcontext279023* c, Tnode224809* n, NU8 feature) {
	NimStringDesc* f;
	NimStringDesc* found;
	f = expectstrlit_296488(c, n);
	{
		TY123809 LOC3;
		memset((void*)(&LOC3), 0, sizeof(LOC3));
		nossplitFile(f, (&LOC3));
		if (!((LOC3.Field2) && (LOC3.Field2)->Sup.len == 0)) goto LA4;
		f = nosaddFileExt(f, Cc_202467[(ccompiler_202488)- 1].Field1);
	}
	LA4: ;
	found = findfile_167539(f);
	{
		if (!((found) && (found)->Sup.len == 0)) goto LA8;
		found = copyString(f);
	}
	LA8: ;
	switch (feature) {
	case ((NU8) 0):
	{
		addfiletolink_203154(found);
	}
	break;
	case ((NU8) 1):
	{
		NimStringDesc* LOC12;
		NimStringDesc* LOC13;
		LOC12 = 0;
		LOC12 = completecfilepath_203112(found, NIM_FALSE);
		LOC13 = 0;
		LOC13 = HEX2F_123481(libpath_166233, LOC12);
		addfiletolink_203154(LOC13);
	}
	break;
	default:
	{
		internalerror_195172((*n).info, ((NimStringDesc*) &TMP3226));
	}
	break;
	}
}

N_NIMCALL(void, pragmabreakpoint_297706)(Tcontext279023* c, Tnode224809* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = getoptionalstr_296525(c, n, ((NimStringDesc*) &TMP3216));
}

N_NIMCALL(void, pragmawatchpoint_297716)(Tcontext279023* c, Tnode224809* 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_296091(n);
	}
	LA1: ;
}

N_NIMCALL(void, onoff_296936)(Tcontext279023* c, Tnode224809* n, NU32 op) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isturnedon_296903(c, n);
		if (!LOC3) goto LA4;
		goptions_166130 = (goptions_166130 | op);
	}
	goto LA1;
	LA4: ;
	{
		goptions_166130 = (goptions_166130 & ~ op);
	}
	LA1: ;
}

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

N_NIMCALL(void, processcallconv_297035)(Tcontext279023* c, Tnode224809* 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_205390((*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident);
		switch (sw) {
		case ((NU16) 131) ... ((NU16) 140):
		{
			(*((Toptionentry279005*) ((*c).optionstack.tail))).defaultcc = wordtocallconv_296866(sw);
		}
		break;
		default:
		{
			localerror_195128((*n).info, ((NU16) 104), ((NimStringDesc*) &TMP3216));
		}
		break;
		}
	}
	goto LA1;
	LA5: ;
	{
		localerror_195128((*n).info, ((NU16) 104), ((NimStringDesc*) &TMP3216));
	}
	LA1: ;
}

N_NIMCALL(NIM_BOOL, processoption_297399)(Tcontext279023* c, Tnode224809* 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_297284(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_205390((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S5.ident);
		switch (sw) {
		case ((NU16) 143):
		{
			onoff_296936(c, n, 1022);
		}
		break;
		case ((NU16) 82):
		{
			onoff_296936(c, n, 2);
		}
		break;
		case ((NU16) 173):
		{
			onoff_296936(c, n, 4);
		}
		break;
		case ((NU16) 144):
		{
			onoff_296936(c, n, 8);
		}
		break;
		case ((NU16) 145):
		{
			onoff_296936(c, n, 16);
		}
		break;
		case ((NU16) 146):
		{
			onoff_296936(c, n, 32);
		}
		break;
		case ((NU16) 147):
		{
			onoff_296936(c, n, 64);
		}
		break;
		case ((NU16) 148):
		{
			onoff_296936(c, n, 384);
		}
		break;
		case ((NU16) 149):
		{
			onoff_296936(c, n, 128);
		}
		break;
		case ((NU16) 150):
		{
			onoff_296936(c, n, 256);
		}
		break;
		case ((NU16) 151):
		{
			onoff_296936(c, n, 512);
		}
		break;
		case ((NU16) 153):
		{
			onoff_296936(c, n, 2048);
		}
		break;
		case ((NU16) 154):
		{
			onoff_296936(c, n, 4096);
		}
		break;
		case ((NU16) 128):
		{
			processcallconv_297035(c, n);
		}
		break;
		case ((NU16) 120):
		{
			onoff_296936(c, n, 1024);
		}
		break;
		case ((NU16) 121):
		{
			onoff_296936(c, n, 32768);
		}
		break;
		case ((NU16) 122):
		{
			onoff_296936(c, n, 65536);
		}
		break;
		case ((NU16) 130):
		{
			onoff_296936(c, n, 131072);
		}
		break;
		case ((NU16) 81):
		{
			onoff_296936(c, n, 524288);
		}
		break;
		case ((NU16) 258):
		{
			onoff_296936(c, n, 262144);
		}
		break;
		case ((NU16) 107):
		{
			processdynlib_297186(c, n, NIM_NIL);
		}
		break;
		case ((NU16) 155):
		{
			{
				if (!!(((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 2)))) goto LA36;
				invalidpragma_296091(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*) &TMP3228))) goto LA40;
				if (eqStrings(LOC39, ((NimStringDesc*) &TMP3229))) goto LA41;
				if (eqStrings(LOC39, ((NimStringDesc*) &TMP3230))) goto LA42;
				goto LA43;
				LA40: ;
				{
					goptions_166130 |= ((NU32)1)<<((((NU8) 13))%(sizeof(NU32)*8));
					goptions_166130 &= ~(((NU32)1) << ((((NU8) 14)) % (sizeof(NU32)*8)));
				}
				goto LA44;
				LA41: ;
				{
					goptions_166130 &= ~(((NU32)1) << ((((NU8) 13)) % (sizeof(NU32)*8)));
					goptions_166130 |= ((NU32)1)<<((((NU8) 14))%(sizeof(NU32)*8));
				}
				goto LA44;
				LA42: ;
				{
					goptions_166130 &= ~(((NU32)1) << ((((NU8) 13)) % (sizeof(NU32)*8)));
					goptions_166130 &= ~(((NU32)1) << ((((NU8) 14)) % (sizeof(NU32)*8)));
				}
				goto LA44;
				LA43: ;
				{
					localerror_195128((*n).info, ((NU16) 28), ((NimStringDesc*) &TMP3216));
				}
				LA44: ;
			}
			LA34: ;
		}
		break;
		case ((NU16) 191):
		{
			onoff_296936(c, n, 1048576);
		}
		break;
		case ((NU16) 152):
		{
			onoff_296936(c, n, 2097152);
		}
		break;
		default:
		{
			result = NIM_TRUE;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, processpush_297534)(Tcontext279023* c, Tnode224809* n, NI start) {
	Toptionentry279005* x;
	Toptionentry279005* y;
	Tlistentry140022* LOC5;
	{
		if (!((*(*n).kindU.S6.sons->data[(NI)(start - ((NI) 1))]).kind == ((NU8) 34))) goto LA3;
		localerror_195128((*n).info, ((NU16) 4), ((NimStringDesc*) &TMP3227));
	}
	LA3: ;
	x = newoptionentry_279196();
	y = ((Toptionentry279005*) ((*c).optionstack.tail));
	(*x).options = goptions_166130;
	(*x).defaultcc = (*y).defaultcc;
	asgnRef((void**) (&(*x).dynlib), (*y).dynlib);
	(*x).notes = gnotes_190398;
	LOC5 = 0;
	LOC5 = &x->Sup;
	append_140053((&(*c).optionstack), LOC5);
	{
		NI i_297564;
		NI HEX3Atmp_297578;
		NI LOC7;
		NI res_297581;
		i_297564 = 0;
		HEX3Atmp_297578 = 0;
		LOC7 = 0;
		LOC7 = sonslen_227387(n);
		HEX3Atmp_297578 = (NI)(LOC7 - ((NI) 1));
		res_297581 = start;
		{
			while (1) {
				if (!(res_297581 <= HEX3Atmp_297578)) goto LA9;
				i_297564 = res_297581;
				{
					NIM_BOOL LOC12;
					LOC12 = 0;
					LOC12 = processoption_297399(c, (*n).kindU.S6.sons->data[i_297564]);
					if (!LOC12) goto LA13;
					{
						if (!(*x).otherpragmas == 0) goto LA17;
						asgnRefNoCycle((void**) (&(*x).otherpragmas), newnodei_226351(((NU8) 90), (*n).info));
					}
					LA17: ;
					add_225165((*x).otherpragmas, (*n).kindU.S6.sons->data[i_297564]);
				}
				LA13: ;
				res_297581 += ((NI) 1);
			} LA9: ;
		}
	}
}

N_NIMCALL(void, processpop_297600)(Tcontext279023* c, Tnode224809* n) {
	{
		if (!((*c).optionstack.counter <= ((NI) 1))) goto LA3;
		localerror_195128((*n).info, ((NU16) 32), ((NimStringDesc*) &TMP3216));
	}
	goto LA1;
	LA3: ;
	{
		goptions_166130 = (*((Toptionentry279005*) ((*c).optionstack.tail))).options;
		gnotes_190398 = (*((Toptionentry279005*) ((*c).optionstack.tail))).notes;
		remove_140639((&(*c).optionstack), (*c).optionstack.tail);
	}
	LA1: ;
}

N_NIMCALL(void, processpragma_297930)(Tcontext279023* c, Tnode224809* n, NI i) {
	Tnode224809* it;
	Tsym224841* userpragma;
	Tnode224809* body;
	it = (*n).kindU.S6.sons->data[i];
	{
		if (!!(((*it).kind == ((NU8) 34)))) goto LA3;
		invalidpragma_296091(n);
	}
	goto LA1;
	LA3: ;
	{
		if (!!(((*(*it).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 2)))) goto LA6;
		invalidpragma_296091(n);
	}
	goto LA1;
	LA6: ;
	{
		if (!!(((*(*it).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 2)))) goto LA9;
		invalidpragma_296091(n);
	}
	goto LA1;
	LA9: ;
	LA1: ;
	userpragma = newsym_225656(((NU8) 18), (*(*it).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident, NIM_NIL, (*it).info);
	body = newnodei_226351(((NU8) 90), (*n).info);
	{
		NI j_297980;
		NI HEX3Atmp_297985;
		NI HEX3Atmp_297986;
		NI LOC12;
		NI res_297989;
		j_297980 = 0;
		HEX3Atmp_297985 = 0;
		HEX3Atmp_297986 = 0;
		HEX3Atmp_297985 = (NI)(i + ((NI) 1));
		LOC12 = 0;
		LOC12 = sonslen_227387(n);
		HEX3Atmp_297986 = (NI)(LOC12 - ((NI) 1));
		res_297989 = HEX3Atmp_297985;
		{
			while (1) {
				if (!(res_297989 <= HEX3Atmp_297986)) goto LA14;
				j_297980 = res_297989;
				addson_226819(body, (*n).kindU.S6.sons->data[j_297980]);
				res_297989 += ((NI) 1);
			} LA14: ;
		}
	}
	asgnRefNoCycle((void**) (&(*userpragma).ast), body);
	strtableadd_232103((&(*c).userpragmas), userpragma);
}

N_NIMCALL(void, processcodegendecl_296546)(Tcontext279023* c, Tnode224809* n, Tsym224841* sym) {
	asgnRefNoCycle((void**) (&(*sym).constraint), getstrlitnode_296464(c, n));
}

N_NIMCALL(Tnode224809*, semasmoremit_297737)(Tcontext279023* con, Tnode224809* n, NIM_CHAR marker) {
	Tnode224809* result;
{	result = 0;
	switch ((*(*n).kindU.S6.sons->data[((NI) 1)]).kind) {
	case ((NU8) 20):
	case ((NU8) 21):
	case ((NU8) 22):
	{
		NU8 LOC2;
		Tnodeseq224803* 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 = (Tnodeseq224803*) newSeq((&NTI224803), 0);
		result = newnode_226607(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_195128((*n).info, ((NU16) 33), ((NimStringDesc*) &TMP3216));
			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: ;
				{
					Tnode224809* LOC24;
					if (!!(((sub) && (sub)->Sup.len == 0))) goto LA22;
					LOC24 = 0;
					LOC24 = newstrnode_225644(((NU8) 20), sub);
					addson_226819(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: ;
				{
					Tsym224841* e;
					Tident197021* LOC38;
					if (!!(((sub) && (sub)->Sup.len == 0))) goto LA36;
					LOC38 = 0;
					LOC38 = getident_197463(sub);
					e = searchinscopes_285205(con, LOC38);
					{
						Tnode224809* LOC47;
						if (!!((e == NIM_NIL))) goto LA41;
						{
							if (!((*e).kind == ((NU8) 23))) goto LA45;
							loadstub_270053(e);
						}
						LA45: ;
						LOC47 = 0;
						LOC47 = newsymnode_226325(e);
						addson_226819(result, LOC47);
					}
					goto LA39;
					LA41: ;
					{
						Tnode224809* LOC49;
						LOC49 = 0;
						LOC49 = newstrnode_225644(((NU8) 20), sub);
						addson_226819(result, LOC49);
					}
					LA39: ;
				}
				goto LA34;
				LA36: ;
				{
					NimStringDesc* LOC51;
					Tnode224809* LOC52;
					LOC51 = 0;
					LOC51 = nimCharToStr(marker);
					LOC52 = 0;
					LOC52 = newstrnode_225644(((NU8) 20), LOC51);
					addson_226819(result, LOC52);
				}
				LA34: ;
				{
					if (!(c < ((NI) 0))) goto LA55;
					goto LA13;
				}
				LA55: ;
				a = (NI)(c + ((NI) 1));
			}
		} LA13: ;
	}
	break;
	default:
	{
		Tnodeseq224803* LOC58;
		illformedastlocal_280250(n);
		LOC58 = 0;
		LOC58 = (Tnodeseq224803*) newSeq((&NTI224803), 0);
		result = newnode_226607(((NU8) 89), (*n).info, LOC58, NIM_NIL);
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, pragmaemit_297795)(Tcontext279023* c, Tnode224809* n) {
	Tnode224809* LOC1;
	LOC1 = 0;
	LOC1 = getstrlitnode_296464(c, n);
	asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), semasmoremit_297737(c, n, 96));
}

N_NIMCALL(void, pragmaunroll_297824)(Tcontext279023* c, Tnode224809* n) {
	{
		if (!((*(*c).p).nestedloopcounter <= ((NI) 0))) goto LA3;
		invalidpragma_296091(n);
	}
	goto LA1;
	LA3: ;
	{
		NI unrollfactor;
		if (!((*n).kind == ((NU8) 34))) goto LA6;
		unrollfactor = expectintlit_296500(c, n);
		{
			if (!((NU32)(unrollfactor) < (NU32)(((NI) 32)))) goto LA10;
			asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), newintnode_225608(((NU8) 6), ((NI64) (unrollfactor))));
		}
		goto LA8;
		LA10: ;
		{
			invalidpragma_296091(n);
		}
		LA8: ;
	}
	goto LA1;
	LA6: ;
	LA1: ;
}

N_NIMCALL(void, pragmaline_297854)(Tcontext279023* c, Tnode224809* n) {
	{
		Tnode224809* 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)];
		{
			Tnode224809* x;
			Tnode224809* 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_195128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3216));
			}
			goto LA17;
			LA19: ;
			{
				if (!!(((*y).kind == ((NU8) 6)))) goto LA22;
				localerror_195128((*n).info, ((NU16) 7), ((NimStringDesc*) &TMP3216));
			}
			goto LA17;
			LA22: ;
			{
				(*n).info.fileindex = fileinfoidx_190254((*x).kindU.S3.strval);
				(*n).info.line = ((NI16) ((*y).kindU.S1.intval));
			}
			LA17: ;
		}
		goto LA5;
		LA7: ;
		{
			localerror_195128((*n).info, ((NU16) 193), ((NimStringDesc*) &TMP3231));
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		(*n).info = getinfocontext_190626(((NI) -1));
	}
	LA1: ;
}

N_NIMCALL(void, processexc_298012)(Tcontext279023* c, Tnode224809* x) {
	Ttype224847* t;
	Ttype224847* LOC1;
	LOC1 = 0;
	LOC1 = (*c).semtypenode(c, x, NIM_NIL);
	t = skiptypes_228167(LOC1, IL64(211106247215360));
	{
		if (!!(((*t).kind == ((NU8) 17)))) goto LA4;
		localerror_195128((*x).info, ((NU16) 4), ((NimStringDesc*) &TMP3232));
	}
	LA4: ;
	asgnRefNoCycle((void**) (&(*x).typ), t);
}

N_NIMCALL(void, pragmaraisesortags_298008)(Tcontext279023* c, Tnode224809* n) {
	{
		Tnode224809* 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_298012(c, it);
		}
		goto LA5;
		LA7: ;
		{
			{
				Tnode224809* e_298048;
				e_298048 = 0;
				{
					NI i_298053;
					NI HEX3Atmp_298055;
					NI LOC12;
					NI res_298057;
					i_298053 = 0;
					HEX3Atmp_298055 = 0;
					LOC12 = 0;
					LOC12 = len_225098(it);
					HEX3Atmp_298055 = (LOC12 - 1);
					res_298057 = ((NI) 0);
					{
						while (1) {
							if (!(res_298057 <= HEX3Atmp_298055)) goto LA14;
							i_298053 = res_298057;
							e_298048 = (*it).kindU.S6.sons->data[i_298053];
							processexc_298012(c, e_298048);
							res_298057 += ((NI) 1);
						} LA14: ;
					}
				}
			}
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		invalidpragma_296091(n);
	}
	LA1: ;
}

N_NIMCALL(void, pragmalockstmt_298081)(Tcontext279023* c, Tnode224809* it) {
	{
		if (!!(((*it).kind == ((NU8) 34)))) goto LA3;
		invalidpragma_296091(it);
	}
	goto LA1;
	LA3: ;
	{
		Tnode224809* n;
		n = HEX5BHEX5D_225244(it, ((NI) 1));
		{
			if (!!(((*n).kind == ((NU8) 41)))) goto LA8;
			localerror_195128((*n).info, ((NU16) 4), ((NimStringDesc*) &TMP3233));
		}
		goto LA6;
		LA8: ;
		{
			{
				NI i_298123;
				NI HEX3Atmp_298127;
				NI LOC12;
				NI res_298130;
				i_298123 = 0;
				HEX3Atmp_298127 = 0;
				LOC12 = 0;
				LOC12 = len_225098(n);
				HEX3Atmp_298127 = (LOC12 - 1);
				res_298130 = ((NI) 0);
				{
					while (1) {
						if (!(res_298130 <= HEX3Atmp_298127)) goto LA14;
						i_298123 = res_298130;
						asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[i_298123]), (*c).semexpr(c, (*n).kindU.S6.sons->data[i_298123], 0));
						res_298130 += ((NI) 1);
					} LA14: ;
				}
			}
		}
		LA6: ;
	}
	LA1: ;
}

N_NIMCALL(NI16, pragmalocks_298149)(Tcontext279023* c, Tnode224809* it) {
	NI16 result;
	result = 0;
	{
		if (!!(((*it).kind == ((NU8) 34)))) goto LA3;
		invalidpragma_296091(it);
	}
	goto LA1;
	LA3: ;
	{
		{
			Tnode224809* LOC8;
			NI x;
			LOC8 = 0;
			LOC8 = HEX5BHEX5D_225244(it, ((NI) 1));
			if (!!(((*LOC8).kind == ((NU8) 23)))) goto LA9;
			x = expectintlit_296500(c, it);
			{
				NIM_BOOL LOC13;
				Tnode224809* LOC17;
				LOC13 = 0;
				LOC13 = (x < ((NI) 0));
				if (LOC13) goto LA14;
				LOC13 = (((NI) 1000) < x);
				LA14: ;
				if (!LOC13) goto LA15;
				LOC17 = 0;
				LOC17 = HEX5BHEX5D_225244(it, ((NI) 1));
				localerror_195139((*LOC17).info, ((NimStringDesc*) &TMP3234));
			}
			goto LA11;
			LA15: ;
			{
				result = ((NI16) (x));
			}
			LA11: ;
		}
		LA9: ;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tsym224841*, pragmaguard_298332)(Tcontext279023* c, Tnode224809* it, NU8 kind) {
	Tsym224841* result;
	Tnode224809* n;
{	result = 0;
	{
		if (!!(((*it).kind == ((NU8) 34)))) goto LA3;
		invalidpragma_296091(it);
		goto BeforeRet;
	}
	LA3: ;
	n = HEX5BHEX5D_225244(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_285864(c, n, 0);
		{
			NIM_BOOL LOC14;
			NIM_BOOL LOC15;
			Tident197021* 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_285010(n);
			result = newsym_225656(((NU8) 0), LOC20, NIM_NIL, (*n).info);
		}
		LA18: ;
	}
	goto LA5;
	LA10: ;
	{
		result = qualifiedlookup_285864(c, n, 2);
	}
	LA5: ;
	}BeforeRet: ;
	return result;
}

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

N_NIMCALL(NIM_BOOL, singlepragma_298406)(Tcontext279023* c, Tsym224841* sym, Tnode224809* n, NI i, Tspecialwords205012 validpragmas) {
	NIM_BOOL result;
	Tnode224809* it;
	Tnode224809* key;
	Tident197021* ident;
	Tsym224841* 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_297284(c, it);
		goto BeforeRet;
	}
	LA8: ;
	ident = considerquotedident_285010(key);
	userpragma = strtableget_232111((*c).userpragmas, ident);
	{
		if (!!((userpragma == NIM_NIL))) goto LA12;
		(*c).instcounter += ((NI) 1);
		{
			if (!(((NI) 100) < (*c).instcounter)) goto LA16;
			globalerror_195107((*it).info, ((NU16) 26), (*(*userpragma).name).s);
		}
		LA16: ;
		pragma_296082(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_205390(ident);
		{
			if (!((validpragmas[k/8] &(1<<(k%8)))!=0)) goto LA21;
			switch (k) {
			case ((NU16) 93):
			{
				NimStringDesc* LOC24;
				LOC24 = 0;
				LOC24 = getoptionalstr_296525(c, it, ((NimStringDesc*) &TMP3217));
				makeexternexport_296276(sym, LOC24, (*it).info);
				(*sym).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 92):
			{
				NimStringDesc* LOC26;
				LOC26 = 0;
				LOC26 = getoptionalstr_296525(c, it, ((NimStringDesc*) &TMP3217));
				makeexternimport_296222(sym, LOC26);
			}
			break;
			case ((NU16) 91):
			{
				NimStringDesc* LOC28;
				LOC28 = 0;
				LOC28 = getoptionalstr_296525(c, it, ((NimStringDesc*) &TMP3217));
				processimportcompilerproc_296298(sym, LOC28);
			}
			break;
			case ((NU16) 208):
			{
				NimStringDesc* LOC30;
				LOC30 = 0;
				LOC30 = expectstrlit_296488(c, it);
				setexternname_296189(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_296091(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_296091(it);
				}
				LA38: ;
			}
			break;
			case ((NU16) 89):
			{
				NimStringDesc* LOC44;
				LOC44 = 0;
				LOC44 = getoptionalstr_296525(c, it, ((NimStringDesc*) &TMP3217));
				processimportcpp_296341(sym, LOC44);
			}
			break;
			case ((NU16) 90):
			{
				NimStringDesc* LOC46;
				LOC46 = 0;
				LOC46 = getoptionalstr_296525(c, it, ((NimStringDesc*) &TMP3217));
				processimportobjc_296397(sym, LOC46);
			}
			break;
			case ((NU16) 97):
			{
				NI align;
				{
					if (!((*sym).typ == NIM_NIL)) goto LA50;
					invalidpragma_296091(it);
				}
				LA50: ;
				align = expectintlit_296500(c, it);
				{
					NIM_BOOL LOC54;
					NIM_BOOL LOC55;
					NIM_BOOL LOC56;
					LOC54 = 0;
					LOC55 = 0;
					LOC56 = 0;
					LOC56 = ispoweroftwo_161638(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_195128((*it).info, ((NU16) 102), ((NimStringDesc*) &TMP3216));
				}
				goto LA52;
				LA59: ;
				{
					(*(*sym).typ).align = ((NI16) (align));
				}
				LA52: ;
			}
			break;
			case ((NU16) 159):
			{
				NI size;
				{
					if (!((*sym).typ == NIM_NIL)) goto LA65;
					invalidpragma_296091(it);
				}
				LA65: ;
				size = expectintlit_296500(c, it);
				{
					NIM_BOOL LOC69;
					NIM_BOOL LOC70;
					NIM_BOOL LOC71;
					LOC69 = 0;
					LOC70 = 0;
					LOC71 = 0;
					LOC71 = ispoweroftwo_161638(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_195128((*it).info, ((NU16) 102), ((NimStringDesc*) &TMP3216));
				}
				goto LA67;
				LA74: ;
				{
					(*(*sym).typ).size = ((NI64) (size));
				}
				LA67: ;
			}
			break;
			case ((NU16) 98):
			{
				noval_297806(it);
				(*sym).loc.flags |= ((NU16)1)<<((((NU8) 3))%(sizeof(NU16)*8));
			}
			break;
			case ((NU16) 99):
			case ((NU16) 190):
			{
				noval_297806(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_296091(it);
					}
					goto LA83;
					LA87: ;
					{
						(*sym).flags |= ((NU32)1)<<((((NU8) 9))%(sizeof(NU32)*8));
					}
					LA83: ;
				}
				LA81: ;
			}
			break;
			case ((NU16) 241):
			{
				noval_297806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 7))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 222):
			{
				noval_297806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 8))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 188):
			{
				noval_297806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 22))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 162):
			{
				pragmadeadcodeelim_296971(c, it);
			}
			break;
			case ((NU16) 164):
			{
				pragmanoforward_297003(c, it);
			}
			break;
			case ((NU16) 78):
			{
				processmagic_296558(c, it, sym);
			}
			break;
			case ((NU16) 167):
			{
				noval_297806(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_297806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 3))%(sizeof(NU32)*8));
				(*sym).flags |= ((NU32)1)<<((((NU8) 9))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 105):
			{
				noval_297806(it);
			}
			break;
			case ((NU16) 85):
			{
				noval_297806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 24))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 101):
			{
				Tlib224827* lib;
				Tnode224809* LOC101;
				LOC101 = 0;
				LOC101 = getstrlitnode_296464(c, it);
				lib = getlib_297067(c, ((NU8) 0), LOC101);
				addtolib_279207(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_175322((*(*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*) &TMP3218)))) goto LA110;
					localerror_195128((*n).info, ((NU16) 4), ((NimStringDesc*) &TMP3219));
				}
				LA110: ;
			}
			break;
			case ((NU16) 88):
			{
				(*sym).flags |= ((NU32)1)<<((((NU8) 30))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 102):
			{
				noval_297806(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_297806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 11))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 104):
			{
				noval_297806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 14))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 107):
			{
				processdynlib_297186(c, it, sym);
			}
			break;
			case ((NU16) 108):
			{
				noval_297806(it);
				{
					if (!!((((*sym).flags &(1<<((((NU8) 2))&31)))!=0))) goto LA124;
					markcompilerproc_298220(sym);
				}
				LA124: ;
			}
			break;
			case ((NU16) 109):
			{
				noval_297806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 17))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 126):
			{
				{
					if (!((*it).kind == ((NU8) 34))) goto LA130;
					deprecatedstmt_298252(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_297806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA139;
					invalidpragma_296091(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_298179(sym, it);
				}
				goto LA143;
				LA145: ;
				{
					noval_297806(it);
					(*sym).flags |= ((NU32)1)<<((((NU8) 26))%(sizeof(NU32)*8));
				}
				LA143: ;
			}
			break;
			case ((NU16) 80):
			{
				noval_297806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA151;
					invalidpragma_296091(it);
				}
				goto LA149;
				LA151: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
				}
				LA149: ;
			}
			break;
			case ((NU16) 187):
			{
				noval_297806(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_296091(it);
				}
				goto LA155;
				LA159: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 3))%(sizeof(NU32)*8));
				}
				LA155: ;
			}
			break;
			case ((NU16) 176):
			{
				noval_297806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA165;
					invalidpragma_296091(it);
				}
				goto LA163;
				LA165: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 4))%(sizeof(NU32)*8));
				}
				LA163: ;
			}
			break;
			case ((NU16) 177):
			{
				noval_297806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA171;
					invalidpragma_296091(it);
				}
				goto LA169;
				LA171: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 6))%(sizeof(NU32)*8));
				}
				LA169: ;
			}
			break;
			case ((NU16) 79):
			{
				noval_297806(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_297806(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_296091(it);
				}
				LA184: ;
			}
			break;
			case ((NU16) 237):
			{
				noval_297806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA192;
					invalidpragma_296091(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_296488(c, it);
				message_195161((*it).info, ((NU16) 290), LOC196);
			}
			break;
			case ((NU16) 113):
			{
				NimStringDesc* LOC198;
				LOC198 = 0;
				LOC198 = expectstrlit_296488(c, it);
				message_195161((*it).info, ((NU16) 267), LOC198);
			}
			break;
			case ((NU16) 112):
			{
				{
					NIM_BOOL LOC202;
					LOC202 = 0;
					LOC202 = !((sym == NIM_NIL));
					if (!(LOC202)) goto LA203;
					LOC202 = isroutine_229763(sym);
					LA203: ;
					if (!LOC202) goto LA204;
					noval_297806(it);
					(*sym).flags |= ((NU32)1)<<((((NU8) 20))%(sizeof(NU32)*8));
				}
				goto LA200;
				LA204: ;
				{
					NimStringDesc* LOC207;
					LOC207 = 0;
					LOC207 = expectstrlit_296488(c, it);
					localerror_195128((*it).info, ((NU16) 236), LOC207);
				}
				LA200: ;
			}
			break;
			case ((NU16) 111):
			{
				NimStringDesc* LOC209;
				LOC209 = 0;
				LOC209 = expectstrlit_296488(c, it);
				fatal_195096((*it).info, ((NU16) 236), LOC209);
			}
			break;
			case ((NU16) 118):
			{
				processdefine_297611(c, it);
			}
			break;
			case ((NU16) 119):
			{
				processundef_297642(c, it);
			}
			break;
			case ((NU16) 124):
			{
				processcompile_297680(c, it);
			}
			break;
			case ((NU16) 123):
			{
				processcommonlink_297693(c, it, ((NU8) 0));
			}
			break;
			case ((NU16) 125):
			{
				processcommonlink_297693(c, it, ((NU8) 1));
			}
			break;
			case ((NU16) 170):
			{
				NimStringDesc* LOC216;
				LOC216 = 0;
				LOC216 = expectstrlit_296488(c, it);
				addlinkoption_203056(LOC216);
			}
			break;
			case ((NU16) 169):
			{
				NimStringDesc* LOC218;
				LOC218 = 0;
				LOC218 = expectstrlit_296488(c, it);
				addcompileoption_203066(LOC218);
			}
			break;
			case ((NU16) 129):
			{
				pragmabreakpoint_297706(c, it);
			}
			break;
			case ((NU16) 174):
			{
				pragmawatchpoint_297716(c, it);
			}
			break;
			case ((NU16) 116):
			{
				processpush_297534(c, n, (NI)(i + ((NI) 1)));
				result = NIM_TRUE;
			}
			break;
			case ((NU16) 117):
			{
				processpop_297600(c, it);
			}
			break;
			case ((NU16) 166):
			{
				processpragma_297930(c, n, i);
				result = NIM_TRUE;
			}
			break;
			case ((NU16) 172):
			{
				noval_297806(it);
				{
					if (!!((sym == NIM_NIL))) goto LA227;
					(*sym).flags |= ((NU32)1)<<((((NU8) 29))%(sizeof(NU32)*8));
				}
				LA227: ;
			}
			break;
			case ((NU16) 168):
			{
				noval_297806(it);
				{
					if (!!((sym == NIM_NIL))) goto LA232;
					(*sym).flags |= ((NU32)1)<<((((NU8) 12))%(sizeof(NU32)*8));
				}
				LA232: ;
			}
			break;
			case ((NU16) 193):
			{
				processcodegendecl_296546(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_297399(c, it);
					if (!LOC238) goto LA239;
					localerror_195128((*it).info, ((NU16) 153), ((NimStringDesc*) &TMP3216));
				}
				LA239: ;
			}
			break;
			case ((NU16) 131) ... ((NU16) 140):
			{
				{
					if (!((*sym).typ == NIM_NIL)) goto LA244;
					invalidpragma_296091(it);
				}
				goto LA242;
				LA244: ;
				{
					(*(*sym).typ).callconv = wordtocallconv_296866(k);
				}
				LA242: ;
			}
			break;
			case ((NU16) 189):
			{
				pragmaemit_297795(c, it);
			}
			break;
			case ((NU16) 178):
			{
				pragmaunroll_297824(c, it);
			}
			break;
			case ((NU16) 179):
			case ((NU16) 180):
			{
				noval_297806(it);
			}
			break;
			case ((NU16) 160):
			{
				noval_297806(it);
			}
			break;
			case ((NU16) 95):
			{
				noval_297806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA254;
					invalidpragma_296091(it);
				}
				goto LA252;
				LA254: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
				}
				LA252: ;
			}
			break;
			case ((NU16) 194):
			{
				noval_297806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA260;
					invalidpragma_296091(it);
				}
				goto LA258;
				LA260: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
				}
				LA258: ;
			}
			break;
			case ((NU16) 236):
			{
				noval_297806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA266;
					invalidpragma_296091(it);
				}
				goto LA264;
				LA266: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 1))%(sizeof(NU32)*8));
				}
				LA264: ;
			}
			break;
			case ((NU16) 96):
			{
				noval_297806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA272;
					invalidpragma_296091(it);
				}
				goto LA270;
				LA272: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 17))%(sizeof(NU32)*8));
				}
				LA270: ;
			}
			break;
			case ((NU16) 258):
			{
				noval_297806(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_297399(c, it);
						if (!LOC284) goto LA285;
						localerror_195128((*it).info, ((NU16) 153), ((NimStringDesc*) &TMP3216));
					}
					LA285: ;
				}
				goto LA276;
				LA280: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 13))%(sizeof(NU32)*8));
				}
				LA276: ;
			}
			break;
			case ((NU16) 257):
			{
				noval_297806(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_296091(it);
				}
				goto LA289;
				LA293: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 12))%(sizeof(NU32)*8));
				}
				LA289: ;
			}
			break;
			case ((NU16) 185):
			case ((NU16) 184):
			{
				noval_297806(it);
				{
					if (!(sym == NIM_NIL)) goto LA299;
					invalidpragma_296091(it);
				}
				LA299: ;
			}
			break;
			case ((NU16) 115):
			{
				pragmaline_297854(c, it);
			}
			break;
			case ((NU16) 156):
			case ((NU16) 161):
			{
				pragmaraisesortags_298008(c, it);
			}
			break;
			case ((NU16) 196):
			{
				{
					if (!(sym == NIM_NIL)) goto LA306;
					pragmalockstmt_298081(c, it);
				}
				goto LA304;
				LA306: ;
				{
					if (!((*sym).typ == NIM_NIL)) goto LA309;
					invalidpragma_296091(it);
				}
				goto LA304;
				LA309: ;
				{
					(*(*sym).typ).locklevel = pragmalocks_298149(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_296091(it);
				}
				goto LA313;
				LA319: ;
				{
					(*sym).kindU.S4.bitsize = expectintlit_296500(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_296091(it);
				}
				goto LA323;
				LA327: ;
				{
					asgnRefNoCycle((void**) (&(*sym).kindU.S4.guard), pragmaguard_298332(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_296091(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_296091(it);
				}
				goto LA339;
				LA341: ;
				{
					registernimscriptsymbol_273874(sym);
				}
				LA339: ;
			}
			break;
			case ((NU16) 181):
			{
				{
					if (!!(((*it).kind == ((NU8) 34)))) goto LA347;
					localerror_195128((*it).info, ((NU16) 62), ((NimStringDesc*) &TMP3216));
				}
				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_297806(it);
				{
					NIM_BOOL LOC353;
					LOC353 = 0;
					LOC353 = istoplevel_280280(c);
					if (!LOC353) goto LA354;
					(*(*c).module).flags |= ((NU32)1)<<((((NU8) 30))%(sizeof(NU32)*8));
				}
				goto LA351;
				LA354: ;
				{
					localerror_195139((*it).info, ((NimStringDesc*) &TMP3239));
				}
				LA351: ;
			}
			break;
			case ((NU16) 165):
			{
				noval_297806(it);
			}
			break;
			case ((NU16) 110):
			{
				noval_297806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 18))%(sizeof(NU32)*8));
			}
			break;
			default:
			{
				invalidpragma_296091(it);
			}
			break;
			}
		}
		goto LA19;
		LA21: ;
		{
			invalidpragma_296091(it);
		}
		LA19: ;
	}
	LA10: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, pragmarec_300263)(Tcontext279023* c, Tsym224841* sym, Tnode224809* n, Tspecialwords205012 validpragmas) {
{	{
		if (!(n == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		NI i_300293;
		NI HEX3Atmp_300306;
		NI LOC6;
		NI res_300309;
		i_300293 = 0;
		HEX3Atmp_300306 = 0;
		LOC6 = 0;
		LOC6 = sonslen_227387(n);
		HEX3Atmp_300306 = (NI)(LOC6 - ((NI) 1));
		res_300309 = ((NI) 0);
		{
			while (1) {
				if (!(res_300309 <= HEX3Atmp_300306)) goto LA8;
				i_300293 = res_300309;
				{
					if (!((*(*n).kindU.S6.sons->data[i_300293]).kind == ((NU8) 90))) goto LA11;
					pragmarec_300263(c, sym, (*n).kindU.S6.sons->data[i_300293], validpragmas);
				}
				goto LA9;
				LA11: ;
				{
					NIM_BOOL LOC14;
					LOC14 = 0;
					LOC14 = singlepragma_298406(c, sym, n, i_300293, validpragmas);
					if (!LOC14) goto LA15;
					goto LA5;
				}
				goto LA9;
				LA15: ;
				LA9: ;
				res_300309 += ((NI) 1);
			} LA8: ;
		}
	} LA5: ;
	}BeforeRet: ;
}

N_NIMCALL(void, implicitpragmas_299759)(Tcontext279023* c, Tsym224841* sym, Tnode224809* n, Tspecialwords205012 validpragmas) {
	{
		NIM_BOOL LOC3;
		Toptionentry279005* it;
		Tlib224827* lib;
		LOC3 = 0;
		LOC3 = !((sym == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC3 = !(((*sym).kind == ((NU8) 6)));
		LA4: ;
		if (!LOC3) goto LA5;
		it = ((Toptionentry279005*) ((*c).optionstack.head));
		{
			while (1) {
				Tnode224809* o;
				if (!!((it == NIM_NIL))) goto LA8;
				o = (*it).otherpragmas;
				{
					if (!!(o == 0)) goto LA11;
					pushinfocontext_190581((*n).info);
					{
						NI i_299821;
						NI HEX3Atmp_299924;
						NI LOC14;
						NI res_299927;
						i_299821 = 0;
						HEX3Atmp_299924 = 0;
						LOC14 = 0;
						LOC14 = sonslen_227387(o);
						HEX3Atmp_299924 = (NI)(LOC14 - ((NI) 1));
						res_299927 = ((NI) 0);
						{
							while (1) {
								if (!(res_299927 <= HEX3Atmp_299924)) goto LA16;
								i_299821 = res_299927;
								{
									NIM_BOOL LOC19;
									LOC19 = 0;
									LOC19 = singlepragma_298406(c, sym, o, i_299821, validpragmas);
									if (!LOC19) goto LA20;
									internalerror_195172((*n).info, ((NimStringDesc*) &TMP3240));
								}
								LA20: ;
								res_299927 += ((NI) 1);
							} LA16: ;
						}
					}
					popinfocontext_190600();
				}
				LA11: ;
				it = ((Toptionentry279005*) ((*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_195128((*n).info, ((NU16) 83), ((NimStringDesc*) &TMP3216));
		}
		LA26: ;
		lib = (*((Toptionentry279005*) ((*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_279207(lib, sym);
			{
				if (!((*sym).loc.r == NIM_NIL)) goto LA38;
				asgnRefNoCycle((void**) (&(*sym).loc.r), rope_175322((*(*sym).name).s));
			}
			LA38: ;
		}
		LA34: ;
	}
	LA5: ;
}

N_NIMCALL(void, pragma_296082)(Tcontext279023* c, Tsym224841* sym, Tnode224809* n, Tspecialwords205012 validpragmas) {
{	{
		if (!(n == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	pragmarec_300263(c, sym, n, validpragmas);
	implicitpragmas_299759(c, sym, n, validpragmas);
	}BeforeRet: ;
}

N_NIMCALL(NIM_BOOL, haspragma_299952)(Tnode224809* n, NU16 pragma) {
	NIM_BOOL result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (n == NIM_NIL);
		if (LOC3) goto LA4;
		LOC3 = HEX3DHEX3D_299972((*n).kindU.S6.sons, NIM_NIL);
		LA4: ;
		if (!LOC3) goto LA5;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA5: ;
	{
		Tnode224809* p_300211;
		Tnodeseq224803* HEX3Atmp_300242;
		NI i_300245;
		NI L_300247;
		p_300211 = 0;
		HEX3Atmp_300242 = 0;
		HEX3Atmp_300242 = (*n).kindU.S6.sons;
		i_300245 = ((NI) 0);
		L_300247 = (HEX3Atmp_300242 ? HEX3Atmp_300242->Sup.len : 0);
		{
			while (1) {
				Tnode224809* key;
				if (!(i_300245 < L_300247)) goto LA9;
				p_300211 = HEX3Atmp_300242->data[i_300245];
				{
					if (!((*p_300211).kind == ((NU8) 34))) goto LA12;
					key = HEX5BHEX5D_225244(p_300211, ((NI) 0));
				}
				goto LA10;
				LA12: ;
				{
					key = p_300211;
				}
				LA10: ;
				{
					NIM_BOOL LOC17;
					NU16 LOC19;
					LOC17 = 0;
					LOC17 = ((*key).kind == ((NU8) 2));
					if (!(LOC17)) goto LA18;
					LOC19 = 0;
					LOC19 = whichkeyword_205390((*key).kindU.S5.ident);
					LOC17 = (LOC19 == pragma);
					LA18: ;
					if (!LOC17) goto LA20;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA20: ;
				i_300245 += ((NI) 1);
			} LA9: ;
		}
	}
	result = NIM_FALSE;
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_CHAR, pragmaasm_296101)(Tcontext279023* c, Tnode224809* n) {
	NIM_CHAR result;
	result = 0;
	result = 0;
	{
		if (!!((n == NIM_NIL))) goto LA3;
		{
			NI i_296130;
			NI HEX3Atmp_296167;
			NI LOC6;
			NI res_296170;
			i_296130 = 0;
			HEX3Atmp_296167 = 0;
			LOC6 = 0;
			LOC6 = sonslen_227387(n);
			HEX3Atmp_296167 = (NI)(LOC6 - ((NI) 1));
			res_296170 = ((NI) 0);
			{
				while (1) {
					Tnode224809* it;
					if (!(res_296170 <= HEX3Atmp_296167)) goto LA8;
					i_296130 = res_296170;
					it = (*n).kindU.S6.sons->data[i_296130];
					{
						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_205390((*(*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_296091(it);
							}
							LA17: ;
						}
						break;
						default:
						{
							invalidpragma_296091(it);
						}
						break;
						}
					}
					goto LA9;
					LA13: ;
					{
						invalidpragma_296091(it);
					}
					LA9: ;
					res_296170 += ((NI) 1);
				} LA8: ;
			}
		}
	}
	LA3: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_pragmasInit000)(void) {
}

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

