/* 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 Tcontext278023 Tcontext278023;
typedef struct Tsym223841 Tsym223841;
typedef struct Tnode223809 Tnode223809;
typedef struct Ttype223847 Ttype223847;
typedef struct Tlineinfo188352 Tlineinfo188352;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tident196021 Tident196021;
typedef struct Tnodeseq223803 Tnodeseq223803;
typedef struct Tidobj196015 Tidobj196015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tpasscontext275005 Tpasscontext275005;
typedef struct Tscope223835 Tscope223835;
typedef struct Tproccon278011 Tproccon278011;
typedef struct Tsymseq223811 Tsymseq223811;
typedef struct Intset220056 Intset220056;
typedef struct Trunk220052 Trunk220052;
typedef struct Trunkseq220054 Trunkseq220054;
typedef struct Tlinkedlist139028 Tlinkedlist139028;
typedef struct Tlistentry139022 Tlistentry139022;
typedef struct Tidtable223859 Tidtable223859;
typedef struct Tidpairseq223857 Tidpairseq223857;
typedef struct Tstrtable223813 Tstrtable223813;
typedef struct Tctx277048 Tctx277048;
typedef struct TY278143 TY278143;
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 Ttypeseq223843 Ttypeseq223843;
typedef struct TY223944 TY223944;
typedef struct Tloc223823 Tloc223823;
typedef struct Ropeobj174009 Ropeobj174009;
typedef struct Tlib223827 Tlib223827;
typedef struct Toptionentry278005 Toptionentry278005;
typedef struct TY122809 TY122809;
typedef struct Tinfocc201011 Tinfocc201011;
typedef struct Tidpair223855 Tidpair223855;
typedef struct TY277254 TY277254;
typedef struct TY189420 TY189420;
typedef struct PprocHEX3Aobjecttype277233 PprocHEX3Aobjecttype277233;
typedef struct TY277273 TY277273;
typedef struct Tinstantiationpair278013 Tinstantiationpair278013;
typedef struct Tinstantiation223831 Tinstantiation223831;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct TY277234 TY277234;
typedef struct TY277239 TY277239;
typedef struct TY277274 TY277274;
typedef struct Vmargs277042 Vmargs277042;
typedef struct TY223932 TY223932;
typedef struct Tblock277030 Tblock277030;
typedef struct TY277214 TY277214;
typedef NU8 Tspecialwords204012[33];
struct  Tlineinfo188352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tnode223809  {
Ttype223847* typ;
Tlineinfo188352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym223841* sym;
} S4;
struct {Tident196021* ident;
} S5;
struct {Tnodeseq223803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef NimStringDesc* TY188317[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  Tidobj196015  {
  TNimObject Sup;
NI id;
};
struct  Tident196021  {
  Tidobj196015 Sup;
NimStringDesc* s;
Tident196021* next;
NI h;
};
typedef NimStringDesc* TY188311[31];
struct  Tpasscontext275005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Intset220056  {
NI counter;
NI max;
Trunk220052* head;
Trunkseq220054* data;
};
struct  Tlinkedlist139028  {
Tlistentry139022* head;
Tlistentry139022* tail;
NI counter;
};
struct  Tidtable223859  {
NI counter;
Tidpairseq223857* data;
};
typedef N_NIMCALL_PTR(Tnode223809*, TY278074) (Tcontext278023* c, Tnode223809* n);
typedef N_NIMCALL_PTR(Tnode223809*, TY278079) (Tcontext278023* c, Tnode223809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode223809*, TY278087) (Tcontext278023* c, Tnode223809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode223809*, TY278095) (Tcontext278023* c, Tnode223809* n);
typedef N_NIMCALL_PTR(Tnode223809*, TY278100) (Tcontext278023* c, Tnode223809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode223809*, TY278108) (Tcontext278023* c, Tnode223809* n);
typedef N_NIMCALL_PTR(Tnode223809*, TY278113) (Tcontext278023* c, Tnode223809* n, Tnode223809* norig, NU32 filter);
typedef N_NIMCALL_PTR(Ttype223847*, TY278120) (Tcontext278023* c, Tnode223809* n, Ttype223847* prev);
typedef struct {
N_NIMCALL_PTR(Tnode223809*, ClPrc) (Tcontext278023* c, Tidtable223859 pt, Tnode223809* n, void* ClEnv);
void* ClEnv;
} TY278126;
typedef struct {
N_NIMCALL_PTR(Tsym223841*, ClPrc) (Tcontext278023* c, Tsym223841* fn, Tidtable223859 pt, Tlineinfo188352 info, void* ClEnv);
void* ClEnv;
} TY278132;
struct  Tstrtable223813  {
NI counter;
Tsymseq223811* data;
};
typedef N_NIMCALL_PTR(Tsym223841*, TY278148) (Tcontext278023* c, Tsym223841* dc, Ttype223847* t, Tlineinfo188352 info, NU8 op);
struct  Tcontext278023  {
  Tpasscontext275005 Sup;
Tsym223841* module;
Tscope223835* currentscope;
Tscope223835* importtable;
Tscope223835* toplevelscope;
Tproccon278011* p;
Tsymseq223811* friendmodules;
NI instcounter;
Intset220056 ambiguoussymbols;
NI intypeclass;
NI ingenericcontext;
NI inunrolledcontext;
NI compilescontextid;
NI compilescontextidgenerator;
NI ingenericinst;
Tsymseq223811* converters;
Tsymseq223811* patterns;
Tlinkedlist139028 optionstack;
Tidtable223859 symmapping;
Tlinkedlist139028 libs;
TY278074 semconstexpr;
TY278079 semexpr;
TY278087 semtryexpr;
TY278095 semtryconstexpr;
TY278100 semoperand;
TY278108 semconstboolexpr;
TY278113 semoverloadedcall;
TY278120 semtypenode;
TY278126 seminferredlambda;
TY278132 semgenerateinstance;
Intset220056 includedfiles;
Tstrtable223813 userpragmas;
Tctx277048* evalcontext;
Intset220056 unknownidents;
TY278143* generics;
NI lastgenericidx;
NI hloloopdetector;
NI inparallelstmt;
TY278148 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  Tloc223823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype223847* t;
Ropeobj174009* r;
Ropeobj174009* heaproot;
};
struct  Tsym223841  {
  Tidobj196015 Sup;
NU8 kind;
union{
struct {Ttypeseq223843* typeinstcache;
Tscope223835* typscope;
} S1;
struct {TY223944* procinstcache;
Tsym223841* gcunsafetyreason;
} S2;
struct {TY223944* usedgenerics;
Tstrtable223813 tab;
} S3;
struct {Tsym223841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype223847* typ;
Tident196021* name;
Tlineinfo188352 info;
Tsym223841* owner;
NU32 flags;
Tnode223809* ast;
NU32 options;
NI position;
NI offset;
Tloc223823 loc;
Tlib223827* annex;
Tnode223809* constraint;
};
struct  Ttype223847  {
  Tidobj196015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq223843* sons;
Tnode223809* n;
Tsym223841* owner;
Tsym223841* sym;
Tsym223841* destructor;
Tsym223841* deepcopy;
Tsym223841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc223823 loc;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tlistentry139022  {
  TNimObject Sup;
Tlistentry139022* prev;
Tlistentry139022* next;
};
struct  Tlib223827  {
  Tlistentry139022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj174009* name;
Tnode223809* path;
};
struct  Toptionentry278005  {
  Tlistentry139022 Sup;
NU32 options;
NU8 defaultcc;
Tlib223827* dynlib;
NU64 notes;
Tnode223809* otherpragmas;
};
struct TY122809 {
NimStringDesc* Field0;
NimStringDesc* Field1;
NimStringDesc* Field2;
};
struct Tinfocc201011 {
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 Tinfocc201011 TY201481[13];
struct  Tproccon278011  {
Tsym223841* owner;
Tsym223841* resultsym;
NI nestedloopcounter;
NI nestedblockcounter;
NI intrystmt;
Tproccon278011* next;
NIM_BOOL wasforwarded;
Tnode223809* bracketexpr;
};
struct  Tscope223835  {
NI depthlevel;
Tstrtable223813 symbols;
Tnodeseq223803* usingsyms;
Tscope223835* parent;
};
typedef NI TY30821[16];
struct  Trunk220052  {
Trunk220052* next;
NI key;
TY30821 bits;
};
struct  Tidpair223855  {
Tidobj196015* key;
TNimObject* val;
};
struct  Tctx277048  {
  Tpasscontext275005 Sup;
TY277254* code;
TY189420* debug;
Tnode223809* globals;
Tnode223809* constants;
Ttypeseq223843* types;
Tnode223809* currentexceptiona;
Tnode223809* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype277233* prc;
Tsym223841* module;
Tnode223809* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo188352 comesfromheuristic;
TY277273* callbacks;
NimStringDesc* errorflag;
};
struct  Tinstantiationpair278013  {
Tsym223841* genericsym;
Tinstantiation223831* 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  Ropeobj174009  {
  TNimObject Sup;
Ropeobj174009* left;
Ropeobj174009* right;
NI length;
NimStringDesc* data;
};
struct TY277239 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY277239 TY277242[256];
struct  PprocHEX3Aobjecttype277233  {
TY277234* blocks;
Tsym223841* sym;
TY277242 slots;
NI maxslots;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs277042* args, void* ClEnv);
void* ClEnv;
} Vmcallback277044;
struct TY277274 {
NimStringDesc* Field0;
Vmcallback277044 Field1;
};
struct  Tinstantiation223831  {
Tsym223841* sym;
Ttypeseq223843* concretetypes;
TY223932* usedby;
NI compilesid;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct  Tblock277030  {
Tsym223841* label;
TY277214* fixups;
};
struct  Vmargs277042  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode223809* currentexception;
};
struct Tnodeseq223803 {
  TGenericSeq Sup;
  Tnode223809* data[SEQ_DECL_SIZE];
};
struct Tsymseq223811 {
  TGenericSeq Sup;
  Tsym223841* data[SEQ_DECL_SIZE];
};
struct Trunkseq220054 {
  TGenericSeq Sup;
  Trunk220052* data[SEQ_DECL_SIZE];
};
struct Tidpairseq223857 {
  TGenericSeq Sup;
  Tidpair223855 data[SEQ_DECL_SIZE];
};
struct TY278143 {
  TGenericSeq Sup;
  Tinstantiationpair278013 data[SEQ_DECL_SIZE];
};
struct Ttypeseq223843 {
  TGenericSeq Sup;
  Ttype223847* data[SEQ_DECL_SIZE];
};
struct TY223944 {
  TGenericSeq Sup;
  Tinstantiation223831* data[SEQ_DECL_SIZE];
};
struct TY277254 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY189420 {
  TGenericSeq Sup;
  Tlineinfo188352 data[SEQ_DECL_SIZE];
};
struct TY277273 {
  TGenericSeq Sup;
  TY277274 data[SEQ_DECL_SIZE];
};
struct TY277234 {
  TGenericSeq Sup;
  Tblock277030 data[SEQ_DECL_SIZE];
};
struct TY223932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY277214 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, pragmarec_299263)(Tcontext278023* c, Tsym223841* sym, Tnode223809* n, Tspecialwords204012 validpragmas);
N_NIMCALL(NI, sonslen_226387)(Tnode223809* n);
N_NIMCALL(NIM_BOOL, singlepragma_297406)(Tcontext278023* c, Tsym223841* sym, Tnode223809* n, NI i, Tspecialwords204012 validpragmas);
N_NIMCALL(void, processnote_296284)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(NU16, whichkeyword_204390)(Tident196021* id);
N_NIMCALL(NI, findstr_204348)(NimStringDesc** a, NI aLen0, NimStringDesc* s);
N_NIMCALL(void, invalidpragma_295091)(Tnode223809* n);
N_NIMCALL(void, localerror_194128)(Tlineinfo188352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, rendertree_245059)(Tnode223809* 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(Tident196021*, considerquotedident_284010)(Tnode223809* n);
N_NIMCALL(Tsym223841*, strtableget_231111)(Tstrtable223813 t, Tident196021* name);
N_NIMCALL(void, globalerror_194107)(Tlineinfo188352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, pragma_295082)(Tcontext278023* c, Tsym223841* sym, Tnode223809* n, Tspecialwords204012 validpragmas);
N_NIMCALL(void, makeexternexport_295276)(Tsym223841* s, NimStringDesc* extname, Tlineinfo188352 info);
N_NIMCALL(void, setexternname_295189)(Tsym223841* s, NimStringDesc* extname);
N_NIMCALL(Ropeobj174009*, rope_174322)(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_295525)(Tcontext278023* c, Tnode223809* n, NimStringDesc* defaultstr);
N_NIMCALL(NimStringDesc*, expectstrlit_295488)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(Tnode223809*, getstrlitnode_295464)(Tcontext278023* c, Tnode223809* n);
N_NOINLINE(Tnode223809*, newemptystrnode_295453)(Tnode223809* n);
N_NIMCALL(Tnode223809*, newnodeit_225807)(NU8 kind, Tlineinfo188352 info, Ttype223847* typ);
N_NIMCALL(Ttype223847*, getsystype_272190)(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_295222)(Tsym223841* s, NimStringDesc* extname);
N_NIMCALL(void, processimportcompilerproc_295298)(Tsym223841* s, NimStringDesc* extname);
N_NIMCALL(void, processimportcpp_295341)(Tsym223841* s, NimStringDesc* extname);
N_NIMCALL(Tsym223841*, getmodule_231243)(Tsym223841* s);
N_NIMCALL(void, processimportobjc_295397)(Tsym223841* s, NimStringDesc* extname);
N_NIMCALL(NI, expectintlit_295500)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(NIM_BOOL, ispoweroftwo_160638)(NI x);
N_NIMCALL(void, noval_296806)(Tnode223809* n);
N_NIMCALL(void, pragmadeadcodeelim_295971)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(NIM_BOOL, isturnedon_295903)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(void, pragmanoforward_296003)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(void, processmagic_295558)(Tcontext278023* c, Tnode223809* n, Tsym223841* 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_194161)(Tlineinfo188352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(Tlib223827*, getlib_296067)(Tcontext278023* c, NU8 kind, Tnode223809* path);
N_NIMCALL(NIM_BOOL, exprstructuralequivalent_252149)(Tnode223809* a, Tnode223809* b, NIM_BOOL strictsymequality);
N_NIMCALL(Tlib223827*, newlib_278201)(NU8 kind);
N_NIMCALL(void, append_139053)(Tlinkedlist139028* list, Tlistentry139022* entry);
N_NIMCALL(NIM_BOOL, isdynliboverride_166681)(NimStringDesc* lib);
N_NIMCALL(void, addtolib_278207)(Tlib223827* lib, Tsym223841* sym);
N_NIMCALL(NimStringDesc*, nsuNormalize)(NimStringDesc* s);
N_NIMCALL(void, processdynlib_296186)(Tcontext278023* c, Tnode223809* n, Tsym223841* sym);
N_NIMCALL(Tnode223809*, expectdynlibnode_296121)(Tcontext278023* c, Tnode223809* 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_297220)(Tsym223841* s);
N_NIMCALL(void, registercompilerproc_272864)(Tsym223841* s);
N_NIMCALL(void, deprecatedstmt_297252)(Tcontext278023* c, Tnode223809* pragma_297255);
static N_INLINE(Tnode223809*, HEX5BHEX5D_224244)(Tnode223809* n, NI i);
N_NIMCALL(void, localerror_194139)(Tlineinfo188352 info, NimStringDesc* arg);
static N_INLINE(NI, len_224098)(Tnode223809* n);
N_NIMCALL(Tsym223841*, qualifiedlookup_284864)(Tcontext278023* c, Tnode223809* n, NU8 flags);
N_NIMCALL(Tsym223841*, newsym_224656)(NU8 symkind, Tident196021* name, Tsym223841* owner, Tlineinfo188352 info);
N_NIMCALL(void, addinterfacedecl_284736)(Tcontext278023* c, Tsym223841* sym);
N_NIMCALL(void, typeborrow_297179)(Tsym223841* sym, Tnode223809* n);
static N_INLINE(NIM_BOOL, isroutine_228763)(Tsym223841* s);
N_NIMCALL(void, fatal_194096)(Tlineinfo188352 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(void, processdefine_296611)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(void, definesymbol_197013)(NimStringDesc* symbol);
N_NIMCALL(void, processundef_296642)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(void, undefsymbol_197022)(NimStringDesc* symbol);
N_NIMCALL(void, processcompile_296680)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(NimStringDesc*, findfile_166539)(NimStringDesc* f);
N_NIMCALL(NimStringDesc*, noschangeFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(NIM_BOOL, nosisAbsolute)(NimStringDesc* path);
N_NIMCALL(NimStringDesc*, HEX2F_122481)(NimStringDesc* head, NimStringDesc* tail);
N_NIMCALL(NimStringDesc*, nosparentDir)(NimStringDesc* path);
N_NIMCALL(NimStringDesc*, tofullpath_189665)(NI32 fileidx);
N_NIMCALL(void, addexternalfiletocompile_202699)(NimStringDesc* filename);
N_NIMCALL(void, addfiletolink_202154)(NimStringDesc* filename);
N_NIMCALL(NimStringDesc*, completecfilepath_202112)(NimStringDesc* cfile, NIM_BOOL createsubdir);
N_NIMCALL(void, processcommonlink_296693)(Tcontext278023* c, Tnode223809* n, NU8 feature);
N_NIMCALL(void, nossplitFile)(NimStringDesc* path, TY122809* Result);
N_NIMCALL(NimStringDesc*, nosaddFileExt)(NimStringDesc* filename, NimStringDesc* ext);
N_NIMCALL(void, internalerror_194172)(Tlineinfo188352 info, NimStringDesc* errmsg);
N_NIMCALL(void, addlinkoption_202056)(NimStringDesc* option);
N_NIMCALL(void, addcompileoption_202066)(NimStringDesc* option);
N_NIMCALL(void, pragmabreakpoint_296706)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(void, pragmawatchpoint_296716)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(void, processpush_296534)(Tcontext278023* c, Tnode223809* n, NI start);
N_NIMCALL(Toptionentry278005*, newoptionentry_278196)(void);
N_NIMCALL(NIM_BOOL, processoption_296399)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(void, onoff_295936)(Tcontext278023* c, Tnode223809* n, NU32 op);
N_NIMCALL(void, processcallconv_296035)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(NU8, wordtocallconv_295866)(NU16 sw);
N_NIMCALL(Tnode223809*, newnodei_225351)(NU8 kind, Tlineinfo188352 info);
N_NIMCALL(void, add_224165)(Tnode223809* father, Tnode223809* son);
N_NIMCALL(void, processpop_296600)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(void, remove_139639)(Tlinkedlist139028* list, Tlistentry139022* entry);
N_NIMCALL(void, processpragma_296930)(Tcontext278023* c, Tnode223809* n, NI i);
N_NIMCALL(void, addson_225819)(Tnode223809* father, Tnode223809* son);
N_NIMCALL(void, strtableadd_231103)(Tstrtable223813* t, Tsym223841* n);
N_NIMCALL(void, processcodegendecl_295546)(Tcontext278023* c, Tnode223809* n, Tsym223841* sym);
N_NIMCALL(void, pragmaemit_296795)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(Tnode223809*, semasmoremit_296737)(Tcontext278023* con, Tnode223809* n, NIM_CHAR marker);
N_NIMCALL(Tnode223809*, newnode_225607)(NU8 kind, Tlineinfo188352 info, Tnodeseq223803* sons, Ttype223847* 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(Tnode223809*, newstrnode_224644)(NU8 kind, NimStringDesc* strval);
N_NIMCALL(Tsym223841*, searchinscopes_284205)(Tcontext278023* c, Tident196021* s);
N_NIMCALL(Tident196021*, getident_196463)(NimStringDesc* identifier);
N_NIMCALL(void, loadstub_269053)(Tsym223841* s);
N_NIMCALL(Tnode223809*, newsymnode_225325)(Tsym223841* sym);
N_NIMCALL(NimStringDesc*, nimCharToStr)(NIM_CHAR x);
N_NIMCALL(void, illformedastlocal_279250)(Tnode223809* n);
N_NIMCALL(void, pragmaunroll_296824)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(Tnode223809*, newintnode_224608)(NU8 kind, NI64 intval);
N_NIMCALL(void, pragmaline_296854)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(NI32, fileinfoidx_189254)(NimStringDesc* filename);
N_NIMCALL(Tlineinfo188352, getinfocontext_189626)(NI index);
N_NIMCALL(void, pragmaraisesortags_297008)(Tcontext278023* c, Tnode223809* n);
N_NIMCALL(void, processexc_297012)(Tcontext278023* c, Tnode223809* x);
N_NIMCALL(Ttype223847*, skiptypes_227167)(Ttype223847* t, NU64 kinds);
N_NIMCALL(void, pragmalockstmt_297081)(Tcontext278023* c, Tnode223809* it);
N_NIMCALL(NI16, pragmalocks_297149)(Tcontext278023* c, Tnode223809* it);
N_NIMCALL(Tsym223841*, pragmaguard_297332)(Tcontext278023* c, Tnode223809* it, NU8 kind);
N_NIMCALL(void, registernimscriptsymbol_272874)(Tsym223841* s);
static N_INLINE(NIM_BOOL, istoplevel_279280)(Tcontext278023* c);
N_NIMCALL(void, implicitpragmas_298759)(Tcontext278023* c, Tsym223841* sym, Tnode223809* n, Tspecialwords204012 validpragmas);
N_NIMCALL(void, pushinfocontext_189581)(Tlineinfo188352 info);
N_NIMCALL(void, popinfocontext_189600)(void);
N_NIMCALL(NIM_BOOL, HEX3DHEX3D_298972)(Tnodeseq223803* x, Tnodeseq223803* 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 TY188317 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 TY188311 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 TY201481 Cc_201467;
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_189398;
extern NU8 gcmd_165134;
extern NIM_BOOL gmixedmode_201490;
extern TNimType NTI223534; /* TMagic */
extern NU8 ccompiler_201488;
extern NimStringDesc* libpath_165233;
extern NU32 goptions_165130;
extern TNimType NTI223803; /* TNodeSeq */

N_NIMCALL(void, invalidpragma_295091)(Tnode223809* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = rendertree_245059(n, 4);
	localerror_194128((*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_296284)(Tcontext278023* c, Tnode223809* n) {
{	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		NIM_BOOL LOC5;
		NIM_BOOL LOC6;
		NI LOC8;
		NU16 nk;
		NU16 LOC14;
		Tnode223809* x;
		LOC3 = 0;
		LOC4 = 0;
		LOC5 = 0;
		LOC6 = 0;
		LOC6 = ((*n).kind == ((NU8) 34));
		if (!(LOC6)) goto LA7;
		LOC8 = 0;
		LOC8 = sonslen_226387(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_204390((*(*(*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_204348(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_295091(n);
				goto BeforeRet;
			}
			LA16: ;
		}
		break;
		case ((NU16) 113):
		{
			NI x;
			x = findstr_204348(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_295091(n);
				goto BeforeRet;
			}
			LA22: ;
		}
		break;
		default:
		{
			invalidpragma_295091(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_189398 |= ((NU64)1)<<(((nk- 237))%(sizeof(NU64)*8));
		}
		goto LA28;
		LA32: ;
		{
			gnotes_189398 &= ~(((NU64)1) << (((nk- 237)) % (sizeof(NU64)*8)));
		}
		LA28: ;
	}
	goto LA1;
	LA12: ;
	{
		invalidpragma_295091(n);
	}
	LA1: ;
	}BeforeRet: ;
}

N_NIMCALL(void, setexternname_295189)(Tsym223841* s, NimStringDesc* extname) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = nsuFormatSingleElem(extname, (*(*s).name).s);
	asgnRefNoCycle((void**) (&(*s).loc.r), rope_174322(LOC1));
	{
		NIM_BOOL LOC4;
		NIM_BOOL LOC6;
		LOC4 = 0;
		LOC4 = (gcmd_165134 == ((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_295276)(Tsym223841* s, NimStringDesc* extname, Tlineinfo188352 info) {
	setexternname_295189(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(Tnode223809*, newemptystrnode_295453)(Tnode223809* n) {
	Tnode223809* result;
	Ttype223847* LOC1;
	NimStringDesc* LOC2;
	result = 0;
	LOC1 = 0;
	LOC1 = getsystype_272190(((NU8) 28));
	result = newnodeit_225807(((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(Tnode223809*, getstrlitnode_295464)(Tcontext278023* c, Tnode223809* n) {
	Tnode223809* result;
	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		localerror_194128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3216));
		result = newemptystrnode_295453(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_194128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3216));
			result = newemptystrnode_295453(n);
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(NimStringDesc*, expectstrlit_295488)(Tcontext278023* c, Tnode223809* n) {
	NimStringDesc* result;
	Tnode223809* LOC1;
	result = 0;
	LOC1 = 0;
	LOC1 = getstrlitnode_295464(c, n);
	result = copyString((*LOC1).kindU.S3.strval);
	return result;
}

N_NIMCALL(NimStringDesc*, getoptionalstr_295525)(Tcontext278023* c, Tnode223809* n, NimStringDesc* defaultstr) {
	NimStringDesc* result;
	result = 0;
	{
		if (!((*n).kind == ((NU8) 34))) goto LA3;
		result = expectstrlit_295488(c, n);
	}
	goto LA1;
	LA3: ;
	{
		result = copyString(defaultstr);
	}
	LA1: ;
	return result;
}

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

N_NIMCALL(void, processimportcompilerproc_295298)(Tsym223841* s, NimStringDesc* extname) {
	setexternname_295189(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_295341)(Tsym223841* s, NimStringDesc* extname) {
	Tsym223841* m;
	setexternname_295189(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_231243(s);
	(*m).flags |= ((NU32)1)<<((((NU8) 27))%(sizeof(NU32)*8));
	gmixedmode_201490 = NIM_TRUE;
}

N_NIMCALL(void, processimportobjc_295397)(Tsym223841* s, NimStringDesc* extname) {
	Tsym223841* m;
	setexternname_295189(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_231243(s);
	(*m).flags |= ((NU32)1)<<((((NU8) 28))%(sizeof(NU32)*8));
}

N_NIMCALL(NI, expectintlit_295500)(Tcontext278023* c, Tnode223809* n) {
	NI result;
	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		localerror_194128((*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_194128((*n).info, ((NU16) 7), ((NimStringDesc*) &TMP3216));
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, noval_296806)(Tnode223809* n) {
	{
		if (!((*n).kind == ((NU8) 34))) goto LA3;
		invalidpragma_295091(n);
	}
	LA3: ;
}

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

N_NIMCALL(void, pragmadeadcodeelim_295971)(Tcontext278023* c, Tnode223809* n) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isturnedon_295903(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_296003)(Tcontext278023* c, Tnode223809* n) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isturnedon_295903(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_295558)(Tcontext278023* c, Tnode223809* n, Tsym223841* s) {
	NimStringDesc* v;
{	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		localerror_194128((*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_295488(c, n);
	}
	LA5: ;
	{
		NU8 m_295823;
		NI res_295848;
		m_295823 = 0;
		res_295848 = ((NI) 0);
		{
			while (1) {
				if (!(res_295848 <= ((NI) 254))) goto LA12;
				m_295823 = ((NU8) (res_295848));
				{
					NimStringDesc* LOC15;
					LOC15 = 0;
					LOC15 = copyStr(reprEnum(m_295823, (&NTI223534)), ((NI) 1));
					if (!eqStrings(LOC15, v)) goto LA16;
					(*s).magic = m_295823;
					goto LA10;
				}
				LA16: ;
				res_295848 += ((NI) 1);
			} LA12: ;
		}
	} LA10: ;
	{
		if (!((*s).magic == ((NU8) 0))) goto LA20;
		message_194161((*n).info, ((NU16) 244), v);
	}
	LA20: ;
	}BeforeRet: ;
}

N_NIMCALL(Tlib223827*, getlib_296067)(Tcontext278023* c, NU8 kind, Tnode223809* path) {
	Tlib223827* result;
	Tlib223827* it;
	Tlistentry139022* LOC12;
{	result = 0;
	it = ((Tlib223827*) ((*c).libs.head));
	{
		while (1) {
			if (!!((it == NIM_NIL))) goto LA2;
			{
				if (!((*it).kind == kind)) goto LA5;
				{
					NIM_BOOL LOC9;
					LOC9 = 0;
					LOC9 = exprstructuralequivalent_252149((*it).path, path, NIM_FALSE);
					if (!LOC9) goto LA10;
					result = it;
					goto BeforeRet;
				}
				LA10: ;
			}
			LA5: ;
			it = ((Tlib223827*) ((*it).Sup.next));
		} LA2: ;
	}
	result = newlib_278201(kind);
	asgnRefNoCycle((void**) (&(*result).path), path);
	LOC12 = 0;
	LOC12 = &result->Sup;
	append_139053((&(*c).libs), LOC12);
	{
		if (!((*path).kind >= ((NU8) 20) && (*path).kind <= ((NU8) 22))) goto LA15;
		(*result).isoverriden = isdynliboverride_166681((*path).kindU.S3.strval);
	}
	LA15: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode223809*, expectdynlibnode_296121)(Tcontext278023* c, Tnode223809* n) {
	Tnode223809* result;
	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 34)))) goto LA3;
		localerror_194128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3216));
		result = newemptystrnode_295453(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_194128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3216));
			result = newemptystrnode_295453(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_296186)(Tcontext278023* c, Tnode223809* n, Tsym223841* sym) {
	{
		NIM_BOOL LOC3;
		Tnode223809* 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_296121(c, n);
		asgnRef((void**) (&(*((Toptionentry278005*) ((*c).optionstack.tail))).dynlib), getlib_296067(c, ((NU8) 1), LOC7));
	}
	goto LA1;
	LA5: ;
	{
		{
			Tlib223827* lib;
			Tnode223809* LOC13;
			if (!((*n).kind == ((NU8) 34))) goto LA11;
			LOC13 = 0;
			LOC13 = expectdynlibnode_296121(c, n);
			lib = getlib_296067(c, ((NU8) 1), LOC13);
			{
				if (!!((*lib).isoverriden)) goto LA16;
				addtolib_278207(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_297220)(Tsym223841* s) {
	makeexternexport_295276(s, ((NimStringDesc*) &TMP3217), (*s).info);
	(*s).flags |= ((NU32)1)<<((((NU8) 16))%(sizeof(NU32)*8));
	(*s).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
	registercompilerproc_272864(s);
}

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

static N_INLINE(NI, len_224098)(Tnode223809* 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_297252)(Tcontext278023* c, Tnode223809* pragma_297255) {
	Tnode223809* pragma;
{	pragma = HEX5BHEX5D_224244(pragma_297255, ((NI) 1));
	{
		if (!!(((*pragma).kind == ((NU8) 41)))) goto LA3;
		localerror_194139((*pragma).info, ((NimStringDesc*) &TMP3220));
		goto BeforeRet;
	}
	LA3: ;
	{
		Tnode223809* n_297266;
		n_297266 = 0;
		{
			NI i_297307;
			NI HEX3Atmp_297309;
			NI LOC7;
			NI res_297311;
			i_297307 = 0;
			HEX3Atmp_297309 = 0;
			LOC7 = 0;
			LOC7 = len_224098(pragma);
			HEX3Atmp_297309 = (LOC7 - 1);
			res_297311 = ((NI) 0);
			{
				while (1) {
					if (!(res_297311 <= HEX3Atmp_297309)) goto LA9;
					i_297307 = res_297311;
					n_297266 = (*pragma).kindU.S6.sons->data[i_297307];
					{
						Tsym223841* dest;
						Tnode223809* LOC14;
						Tident196021* src;
						Tnode223809* LOC15;
						Tsym223841* alias;
						Tnode223809* LOC16;
						if (!((*n_297266).kind == ((NU8) 34) || (*n_297266).kind == ((NU8) 33))) goto LA12;
						LOC14 = 0;
						LOC14 = HEX5BHEX5D_224244(n_297266, ((NI) 1));
						dest = qualifiedlookup_284864(c, LOC14, 2);
						LOC15 = 0;
						LOC15 = HEX5BHEX5D_224244(n_297266, ((NI) 0));
						src = considerquotedident_284010(LOC15);
						LOC16 = 0;
						LOC16 = HEX5BHEX5D_224244(n_297266, ((NI) 0));
						alias = newsym_224656(((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_297220(alias);
						}
						LA19: ;
						addinterfacedecl_284736(c, alias);
					}
					goto LA10;
					LA12: ;
					{
						localerror_194139((*n_297266).info, ((NimStringDesc*) &TMP3222));
					}
					LA10: ;
					res_297311 += ((NI) 1);
				} LA9: ;
			}
		}
	}
	}BeforeRet: ;
}

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

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

N_NIMCALL(void, processdefine_296611)(Tcontext278023* c, Tnode223809* 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_197013((*(*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident).s);
		message_194161((*n).info, ((NU16) 241), ((NimStringDesc*) &TMP3224));
	}
	goto LA1;
	LA5: ;
	{
		invalidpragma_295091(n);
	}
	LA1: ;
}

N_NIMCALL(void, processundef_296642)(Tcontext278023* c, Tnode223809* 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_197022((*(*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident).s);
		message_194161((*n).info, ((NU16) 241), ((NimStringDesc*) &TMP3225));
	}
	goto LA1;
	LA5: ;
	{
		invalidpragma_295091(n);
	}
	LA1: ;
}

N_NIMCALL(void, processcompile_296680)(Tcontext278023* c, Tnode223809* n) {
	NimStringDesc* s;
	NimStringDesc* found;
	NimStringDesc* trunc;
	NimStringDesc* LOC12;
	s = expectstrlit_295488(c, n);
	found = findfile_166539(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_189665((*n).info.fileindex);
		LOC11 = 0;
		LOC11 = nosparentDir(LOC10);
		found = HEX2F_122481(LOC11, found);
	}
	LA8: ;
	addexternalfiletocompile_202699(found);
	LOC12 = 0;
	LOC12 = completecfilepath_202112(trunc, NIM_FALSE);
	addfiletolink_202154(LOC12);
}

N_NIMCALL(void, processcommonlink_296693)(Tcontext278023* c, Tnode223809* n, NU8 feature) {
	NimStringDesc* f;
	NimStringDesc* found;
	f = expectstrlit_295488(c, n);
	{
		TY122809 LOC3;
		memset((void*)(&LOC3), 0, sizeof(LOC3));
		nossplitFile(f, (&LOC3));
		if (!((LOC3.Field2) && (LOC3.Field2)->Sup.len == 0)) goto LA4;
		f = nosaddFileExt(f, Cc_201467[(ccompiler_201488)- 1].Field1);
	}
	LA4: ;
	found = findfile_166539(f);
	{
		if (!((found) && (found)->Sup.len == 0)) goto LA8;
		found = copyString(f);
	}
	LA8: ;
	switch (feature) {
	case ((NU8) 0):
	{
		addfiletolink_202154(found);
	}
	break;
	case ((NU8) 1):
	{
		NimStringDesc* LOC12;
		NimStringDesc* LOC13;
		LOC12 = 0;
		LOC12 = completecfilepath_202112(found, NIM_FALSE);
		LOC13 = 0;
		LOC13 = HEX2F_122481(libpath_165233, LOC12);
		addfiletolink_202154(LOC13);
	}
	break;
	default:
	{
		internalerror_194172((*n).info, ((NimStringDesc*) &TMP3226));
	}
	break;
	}
}

N_NIMCALL(void, pragmabreakpoint_296706)(Tcontext278023* c, Tnode223809* n) {
	NimStringDesc* LOC1;
	LOC1 = 0;
	LOC1 = getoptionalstr_295525(c, n, ((NimStringDesc*) &TMP3216));
}

N_NIMCALL(void, pragmawatchpoint_296716)(Tcontext278023* c, Tnode223809* 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_295091(n);
	}
	LA1: ;
}

N_NIMCALL(void, onoff_295936)(Tcontext278023* c, Tnode223809* n, NU32 op) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = isturnedon_295903(c, n);
		if (!LOC3) goto LA4;
		goptions_165130 = (goptions_165130 | op);
	}
	goto LA1;
	LA4: ;
	{
		goptions_165130 = (goptions_165130 & ~ op);
	}
	LA1: ;
}

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

N_NIMCALL(void, processcallconv_296035)(Tcontext278023* c, Tnode223809* 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_204390((*(*n).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident);
		switch (sw) {
		case ((NU16) 131) ... ((NU16) 140):
		{
			(*((Toptionentry278005*) ((*c).optionstack.tail))).defaultcc = wordtocallconv_295866(sw);
		}
		break;
		default:
		{
			localerror_194128((*n).info, ((NU16) 104), ((NimStringDesc*) &TMP3216));
		}
		break;
		}
	}
	goto LA1;
	LA5: ;
	{
		localerror_194128((*n).info, ((NU16) 104), ((NimStringDesc*) &TMP3216));
	}
	LA1: ;
}

N_NIMCALL(NIM_BOOL, processoption_296399)(Tcontext278023* c, Tnode223809* 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_296284(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_204390((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S5.ident);
		switch (sw) {
		case ((NU16) 143):
		{
			onoff_295936(c, n, 1022);
		}
		break;
		case ((NU16) 82):
		{
			onoff_295936(c, n, 2);
		}
		break;
		case ((NU16) 173):
		{
			onoff_295936(c, n, 4);
		}
		break;
		case ((NU16) 144):
		{
			onoff_295936(c, n, 8);
		}
		break;
		case ((NU16) 145):
		{
			onoff_295936(c, n, 16);
		}
		break;
		case ((NU16) 146):
		{
			onoff_295936(c, n, 32);
		}
		break;
		case ((NU16) 147):
		{
			onoff_295936(c, n, 64);
		}
		break;
		case ((NU16) 148):
		{
			onoff_295936(c, n, 384);
		}
		break;
		case ((NU16) 149):
		{
			onoff_295936(c, n, 128);
		}
		break;
		case ((NU16) 150):
		{
			onoff_295936(c, n, 256);
		}
		break;
		case ((NU16) 151):
		{
			onoff_295936(c, n, 512);
		}
		break;
		case ((NU16) 153):
		{
			onoff_295936(c, n, 2048);
		}
		break;
		case ((NU16) 154):
		{
			onoff_295936(c, n, 4096);
		}
		break;
		case ((NU16) 128):
		{
			processcallconv_296035(c, n);
		}
		break;
		case ((NU16) 120):
		{
			onoff_295936(c, n, 1024);
		}
		break;
		case ((NU16) 121):
		{
			onoff_295936(c, n, 32768);
		}
		break;
		case ((NU16) 122):
		{
			onoff_295936(c, n, 65536);
		}
		break;
		case ((NU16) 130):
		{
			onoff_295936(c, n, 131072);
		}
		break;
		case ((NU16) 81):
		{
			onoff_295936(c, n, 524288);
		}
		break;
		case ((NU16) 258):
		{
			onoff_295936(c, n, 262144);
		}
		break;
		case ((NU16) 107):
		{
			processdynlib_296186(c, n, NIM_NIL);
		}
		break;
		case ((NU16) 155):
		{
			{
				if (!!(((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 2)))) goto LA36;
				invalidpragma_295091(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_165130 |= ((NU32)1)<<((((NU8) 13))%(sizeof(NU32)*8));
					goptions_165130 &= ~(((NU32)1) << ((((NU8) 14)) % (sizeof(NU32)*8)));
				}
				goto LA44;
				LA41: ;
				{
					goptions_165130 &= ~(((NU32)1) << ((((NU8) 13)) % (sizeof(NU32)*8)));
					goptions_165130 |= ((NU32)1)<<((((NU8) 14))%(sizeof(NU32)*8));
				}
				goto LA44;
				LA42: ;
				{
					goptions_165130 &= ~(((NU32)1) << ((((NU8) 13)) % (sizeof(NU32)*8)));
					goptions_165130 &= ~(((NU32)1) << ((((NU8) 14)) % (sizeof(NU32)*8)));
				}
				goto LA44;
				LA43: ;
				{
					localerror_194128((*n).info, ((NU16) 28), ((NimStringDesc*) &TMP3216));
				}
				LA44: ;
			}
			LA34: ;
		}
		break;
		case ((NU16) 191):
		{
			onoff_295936(c, n, 1048576);
		}
		break;
		case ((NU16) 152):
		{
			onoff_295936(c, n, 2097152);
		}
		break;
		default:
		{
			result = NIM_TRUE;
		}
		break;
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, processpush_296534)(Tcontext278023* c, Tnode223809* n, NI start) {
	Toptionentry278005* x;
	Toptionentry278005* y;
	Tlistentry139022* LOC5;
	{
		if (!((*(*n).kindU.S6.sons->data[(NI)(start - ((NI) 1))]).kind == ((NU8) 34))) goto LA3;
		localerror_194128((*n).info, ((NU16) 4), ((NimStringDesc*) &TMP3227));
	}
	LA3: ;
	x = newoptionentry_278196();
	y = ((Toptionentry278005*) ((*c).optionstack.tail));
	(*x).options = goptions_165130;
	(*x).defaultcc = (*y).defaultcc;
	asgnRef((void**) (&(*x).dynlib), (*y).dynlib);
	(*x).notes = gnotes_189398;
	LOC5 = 0;
	LOC5 = &x->Sup;
	append_139053((&(*c).optionstack), LOC5);
	{
		NI i_296564;
		NI HEX3Atmp_296578;
		NI LOC7;
		NI res_296581;
		i_296564 = 0;
		HEX3Atmp_296578 = 0;
		LOC7 = 0;
		LOC7 = sonslen_226387(n);
		HEX3Atmp_296578 = (NI)(LOC7 - ((NI) 1));
		res_296581 = start;
		{
			while (1) {
				if (!(res_296581 <= HEX3Atmp_296578)) goto LA9;
				i_296564 = res_296581;
				{
					NIM_BOOL LOC12;
					LOC12 = 0;
					LOC12 = processoption_296399(c, (*n).kindU.S6.sons->data[i_296564]);
					if (!LOC12) goto LA13;
					{
						if (!(*x).otherpragmas == 0) goto LA17;
						asgnRefNoCycle((void**) (&(*x).otherpragmas), newnodei_225351(((NU8) 90), (*n).info));
					}
					LA17: ;
					add_224165((*x).otherpragmas, (*n).kindU.S6.sons->data[i_296564]);
				}
				LA13: ;
				res_296581 += ((NI) 1);
			} LA9: ;
		}
	}
}

N_NIMCALL(void, processpop_296600)(Tcontext278023* c, Tnode223809* n) {
	{
		if (!((*c).optionstack.counter <= ((NI) 1))) goto LA3;
		localerror_194128((*n).info, ((NU16) 32), ((NimStringDesc*) &TMP3216));
	}
	goto LA1;
	LA3: ;
	{
		goptions_165130 = (*((Toptionentry278005*) ((*c).optionstack.tail))).options;
		gnotes_189398 = (*((Toptionentry278005*) ((*c).optionstack.tail))).notes;
		remove_139639((&(*c).optionstack), (*c).optionstack.tail);
	}
	LA1: ;
}

N_NIMCALL(void, processpragma_296930)(Tcontext278023* c, Tnode223809* n, NI i) {
	Tnode223809* it;
	Tsym223841* userpragma;
	Tnode223809* body;
	it = (*n).kindU.S6.sons->data[i];
	{
		if (!!(((*it).kind == ((NU8) 34)))) goto LA3;
		invalidpragma_295091(n);
	}
	goto LA1;
	LA3: ;
	{
		if (!!(((*(*it).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 2)))) goto LA6;
		invalidpragma_295091(n);
	}
	goto LA1;
	LA6: ;
	{
		if (!!(((*(*it).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 2)))) goto LA9;
		invalidpragma_295091(n);
	}
	goto LA1;
	LA9: ;
	LA1: ;
	userpragma = newsym_224656(((NU8) 18), (*(*it).kindU.S6.sons->data[((NI) 1)]).kindU.S5.ident, NIM_NIL, (*it).info);
	body = newnodei_225351(((NU8) 90), (*n).info);
	{
		NI j_296980;
		NI HEX3Atmp_296985;
		NI HEX3Atmp_296986;
		NI LOC12;
		NI res_296989;
		j_296980 = 0;
		HEX3Atmp_296985 = 0;
		HEX3Atmp_296986 = 0;
		HEX3Atmp_296985 = (NI)(i + ((NI) 1));
		LOC12 = 0;
		LOC12 = sonslen_226387(n);
		HEX3Atmp_296986 = (NI)(LOC12 - ((NI) 1));
		res_296989 = HEX3Atmp_296985;
		{
			while (1) {
				if (!(res_296989 <= HEX3Atmp_296986)) goto LA14;
				j_296980 = res_296989;
				addson_225819(body, (*n).kindU.S6.sons->data[j_296980]);
				res_296989 += ((NI) 1);
			} LA14: ;
		}
	}
	asgnRefNoCycle((void**) (&(*userpragma).ast), body);
	strtableadd_231103((&(*c).userpragmas), userpragma);
}

N_NIMCALL(void, processcodegendecl_295546)(Tcontext278023* c, Tnode223809* n, Tsym223841* sym) {
	asgnRefNoCycle((void**) (&(*sym).constraint), getstrlitnode_295464(c, n));
}

N_NIMCALL(Tnode223809*, semasmoremit_296737)(Tcontext278023* con, Tnode223809* n, NIM_CHAR marker) {
	Tnode223809* result;
{	result = 0;
	switch ((*(*n).kindU.S6.sons->data[((NI) 1)]).kind) {
	case ((NU8) 20):
	case ((NU8) 21):
	case ((NU8) 22):
	{
		NU8 LOC2;
		Tnodeseq223803* 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 = (Tnodeseq223803*) newSeq((&NTI223803), 0);
		result = newnode_225607(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_194128((*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: ;
				{
					Tnode223809* LOC24;
					if (!!(((sub) && (sub)->Sup.len == 0))) goto LA22;
					LOC24 = 0;
					LOC24 = newstrnode_224644(((NU8) 20), sub);
					addson_225819(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: ;
				{
					Tsym223841* e;
					Tident196021* LOC38;
					if (!!(((sub) && (sub)->Sup.len == 0))) goto LA36;
					LOC38 = 0;
					LOC38 = getident_196463(sub);
					e = searchinscopes_284205(con, LOC38);
					{
						Tnode223809* LOC47;
						if (!!((e == NIM_NIL))) goto LA41;
						{
							if (!((*e).kind == ((NU8) 23))) goto LA45;
							loadstub_269053(e);
						}
						LA45: ;
						LOC47 = 0;
						LOC47 = newsymnode_225325(e);
						addson_225819(result, LOC47);
					}
					goto LA39;
					LA41: ;
					{
						Tnode223809* LOC49;
						LOC49 = 0;
						LOC49 = newstrnode_224644(((NU8) 20), sub);
						addson_225819(result, LOC49);
					}
					LA39: ;
				}
				goto LA34;
				LA36: ;
				{
					NimStringDesc* LOC51;
					Tnode223809* LOC52;
					LOC51 = 0;
					LOC51 = nimCharToStr(marker);
					LOC52 = 0;
					LOC52 = newstrnode_224644(((NU8) 20), LOC51);
					addson_225819(result, LOC52);
				}
				LA34: ;
				{
					if (!(c < ((NI) 0))) goto LA55;
					goto LA13;
				}
				LA55: ;
				a = (NI)(c + ((NI) 1));
			}
		} LA13: ;
	}
	break;
	default:
	{
		Tnodeseq223803* LOC58;
		illformedastlocal_279250(n);
		LOC58 = 0;
		LOC58 = (Tnodeseq223803*) newSeq((&NTI223803), 0);
		result = newnode_225607(((NU8) 89), (*n).info, LOC58, NIM_NIL);
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, pragmaemit_296795)(Tcontext278023* c, Tnode223809* n) {
	Tnode223809* LOC1;
	LOC1 = 0;
	LOC1 = getstrlitnode_295464(c, n);
	asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), semasmoremit_296737(c, n, 96));
}

N_NIMCALL(void, pragmaunroll_296824)(Tcontext278023* c, Tnode223809* n) {
	{
		if (!((*(*c).p).nestedloopcounter <= ((NI) 0))) goto LA3;
		invalidpragma_295091(n);
	}
	goto LA1;
	LA3: ;
	{
		NI unrollfactor;
		if (!((*n).kind == ((NU8) 34))) goto LA6;
		unrollfactor = expectintlit_295500(c, n);
		{
			if (!((NU32)(unrollfactor) < (NU32)(((NI) 32)))) goto LA10;
			asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), newintnode_224608(((NU8) 6), ((NI64) (unrollfactor))));
		}
		goto LA8;
		LA10: ;
		{
			invalidpragma_295091(n);
		}
		LA8: ;
	}
	goto LA1;
	LA6: ;
	LA1: ;
}

N_NIMCALL(void, pragmaline_296854)(Tcontext278023* c, Tnode223809* n) {
	{
		Tnode223809* 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)];
		{
			Tnode223809* x;
			Tnode223809* 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_194128((*n).info, ((NU16) 6), ((NimStringDesc*) &TMP3216));
			}
			goto LA17;
			LA19: ;
			{
				if (!!(((*y).kind == ((NU8) 6)))) goto LA22;
				localerror_194128((*n).info, ((NU16) 7), ((NimStringDesc*) &TMP3216));
			}
			goto LA17;
			LA22: ;
			{
				(*n).info.fileindex = fileinfoidx_189254((*x).kindU.S3.strval);
				(*n).info.line = ((NI16) ((*y).kindU.S1.intval));
			}
			LA17: ;
		}
		goto LA5;
		LA7: ;
		{
			localerror_194128((*n).info, ((NU16) 193), ((NimStringDesc*) &TMP3231));
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		(*n).info = getinfocontext_189626(((NI) -1));
	}
	LA1: ;
}

N_NIMCALL(void, processexc_297012)(Tcontext278023* c, Tnode223809* x) {
	Ttype223847* t;
	Ttype223847* LOC1;
	LOC1 = 0;
	LOC1 = (*c).semtypenode(c, x, NIM_NIL);
	t = skiptypes_227167(LOC1, IL64(211106247215360));
	{
		if (!!(((*t).kind == ((NU8) 17)))) goto LA4;
		localerror_194128((*x).info, ((NU16) 4), ((NimStringDesc*) &TMP3232));
	}
	LA4: ;
	asgnRefNoCycle((void**) (&(*x).typ), t);
}

N_NIMCALL(void, pragmaraisesortags_297008)(Tcontext278023* c, Tnode223809* n) {
	{
		Tnode223809* 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_297012(c, it);
		}
		goto LA5;
		LA7: ;
		{
			{
				Tnode223809* e_297048;
				e_297048 = 0;
				{
					NI i_297053;
					NI HEX3Atmp_297055;
					NI LOC12;
					NI res_297057;
					i_297053 = 0;
					HEX3Atmp_297055 = 0;
					LOC12 = 0;
					LOC12 = len_224098(it);
					HEX3Atmp_297055 = (LOC12 - 1);
					res_297057 = ((NI) 0);
					{
						while (1) {
							if (!(res_297057 <= HEX3Atmp_297055)) goto LA14;
							i_297053 = res_297057;
							e_297048 = (*it).kindU.S6.sons->data[i_297053];
							processexc_297012(c, e_297048);
							res_297057 += ((NI) 1);
						} LA14: ;
					}
				}
			}
		}
		LA5: ;
	}
	goto LA1;
	LA3: ;
	{
		invalidpragma_295091(n);
	}
	LA1: ;
}

N_NIMCALL(void, pragmalockstmt_297081)(Tcontext278023* c, Tnode223809* it) {
	{
		if (!!(((*it).kind == ((NU8) 34)))) goto LA3;
		invalidpragma_295091(it);
	}
	goto LA1;
	LA3: ;
	{
		Tnode223809* n;
		n = HEX5BHEX5D_224244(it, ((NI) 1));
		{
			if (!!(((*n).kind == ((NU8) 41)))) goto LA8;
			localerror_194128((*n).info, ((NU16) 4), ((NimStringDesc*) &TMP3233));
		}
		goto LA6;
		LA8: ;
		{
			{
				NI i_297123;
				NI HEX3Atmp_297127;
				NI LOC12;
				NI res_297130;
				i_297123 = 0;
				HEX3Atmp_297127 = 0;
				LOC12 = 0;
				LOC12 = len_224098(n);
				HEX3Atmp_297127 = (LOC12 - 1);
				res_297130 = ((NI) 0);
				{
					while (1) {
						if (!(res_297130 <= HEX3Atmp_297127)) goto LA14;
						i_297123 = res_297130;
						asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[i_297123]), (*c).semexpr(c, (*n).kindU.S6.sons->data[i_297123], 0));
						res_297130 += ((NI) 1);
					} LA14: ;
				}
			}
		}
		LA6: ;
	}
	LA1: ;
}

N_NIMCALL(NI16, pragmalocks_297149)(Tcontext278023* c, Tnode223809* it) {
	NI16 result;
	result = 0;
	{
		if (!!(((*it).kind == ((NU8) 34)))) goto LA3;
		invalidpragma_295091(it);
	}
	goto LA1;
	LA3: ;
	{
		{
			Tnode223809* LOC8;
			NI x;
			LOC8 = 0;
			LOC8 = HEX5BHEX5D_224244(it, ((NI) 1));
			if (!!(((*LOC8).kind == ((NU8) 23)))) goto LA9;
			x = expectintlit_295500(c, it);
			{
				NIM_BOOL LOC13;
				Tnode223809* LOC17;
				LOC13 = 0;
				LOC13 = (x < ((NI) 0));
				if (LOC13) goto LA14;
				LOC13 = (((NI) 1000) < x);
				LA14: ;
				if (!LOC13) goto LA15;
				LOC17 = 0;
				LOC17 = HEX5BHEX5D_224244(it, ((NI) 1));
				localerror_194139((*LOC17).info, ((NimStringDesc*) &TMP3234));
			}
			goto LA11;
			LA15: ;
			{
				result = ((NI16) (x));
			}
			LA11: ;
		}
		LA9: ;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tsym223841*, pragmaguard_297332)(Tcontext278023* c, Tnode223809* it, NU8 kind) {
	Tsym223841* result;
	Tnode223809* n;
{	result = 0;
	{
		if (!!(((*it).kind == ((NU8) 34)))) goto LA3;
		invalidpragma_295091(it);
		goto BeforeRet;
	}
	LA3: ;
	n = HEX5BHEX5D_224244(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_284864(c, n, 0);
		{
			NIM_BOOL LOC14;
			NIM_BOOL LOC15;
			Tident196021* 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_284010(n);
			result = newsym_224656(((NU8) 0), LOC20, NIM_NIL, (*n).info);
		}
		LA18: ;
	}
	goto LA5;
	LA10: ;
	{
		result = qualifiedlookup_284864(c, n, 2);
	}
	LA5: ;
	}BeforeRet: ;
	return result;
}

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

N_NIMCALL(NIM_BOOL, singlepragma_297406)(Tcontext278023* c, Tsym223841* sym, Tnode223809* n, NI i, Tspecialwords204012 validpragmas) {
	NIM_BOOL result;
	Tnode223809* it;
	Tnode223809* key;
	Tident196021* ident;
	Tsym223841* 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_296284(c, it);
		goto BeforeRet;
	}
	LA8: ;
	ident = considerquotedident_284010(key);
	userpragma = strtableget_231111((*c).userpragmas, ident);
	{
		if (!!((userpragma == NIM_NIL))) goto LA12;
		(*c).instcounter += ((NI) 1);
		{
			if (!(((NI) 100) < (*c).instcounter)) goto LA16;
			globalerror_194107((*it).info, ((NU16) 26), (*(*userpragma).name).s);
		}
		LA16: ;
		pragma_295082(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_204390(ident);
		{
			if (!((validpragmas[k/8] &(1<<(k%8)))!=0)) goto LA21;
			switch (k) {
			case ((NU16) 93):
			{
				NimStringDesc* LOC24;
				LOC24 = 0;
				LOC24 = getoptionalstr_295525(c, it, ((NimStringDesc*) &TMP3217));
				makeexternexport_295276(sym, LOC24, (*it).info);
				(*sym).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 92):
			{
				NimStringDesc* LOC26;
				LOC26 = 0;
				LOC26 = getoptionalstr_295525(c, it, ((NimStringDesc*) &TMP3217));
				makeexternimport_295222(sym, LOC26);
			}
			break;
			case ((NU16) 91):
			{
				NimStringDesc* LOC28;
				LOC28 = 0;
				LOC28 = getoptionalstr_295525(c, it, ((NimStringDesc*) &TMP3217));
				processimportcompilerproc_295298(sym, LOC28);
			}
			break;
			case ((NU16) 208):
			{
				NimStringDesc* LOC30;
				LOC30 = 0;
				LOC30 = expectstrlit_295488(c, it);
				setexternname_295189(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_295091(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_295091(it);
				}
				LA38: ;
			}
			break;
			case ((NU16) 89):
			{
				NimStringDesc* LOC44;
				LOC44 = 0;
				LOC44 = getoptionalstr_295525(c, it, ((NimStringDesc*) &TMP3217));
				processimportcpp_295341(sym, LOC44);
			}
			break;
			case ((NU16) 90):
			{
				NimStringDesc* LOC46;
				LOC46 = 0;
				LOC46 = getoptionalstr_295525(c, it, ((NimStringDesc*) &TMP3217));
				processimportobjc_295397(sym, LOC46);
			}
			break;
			case ((NU16) 97):
			{
				NI align;
				{
					if (!((*sym).typ == NIM_NIL)) goto LA50;
					invalidpragma_295091(it);
				}
				LA50: ;
				align = expectintlit_295500(c, it);
				{
					NIM_BOOL LOC54;
					NIM_BOOL LOC55;
					NIM_BOOL LOC56;
					LOC54 = 0;
					LOC55 = 0;
					LOC56 = 0;
					LOC56 = ispoweroftwo_160638(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_194128((*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_295091(it);
				}
				LA65: ;
				size = expectintlit_295500(c, it);
				{
					NIM_BOOL LOC69;
					NIM_BOOL LOC70;
					NIM_BOOL LOC71;
					LOC69 = 0;
					LOC70 = 0;
					LOC71 = 0;
					LOC71 = ispoweroftwo_160638(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_194128((*it).info, ((NU16) 102), ((NimStringDesc*) &TMP3216));
				}
				goto LA67;
				LA74: ;
				{
					(*(*sym).typ).size = ((NI64) (size));
				}
				LA67: ;
			}
			break;
			case ((NU16) 98):
			{
				noval_296806(it);
				(*sym).loc.flags |= ((NU16)1)<<((((NU8) 3))%(sizeof(NU16)*8));
			}
			break;
			case ((NU16) 99):
			case ((NU16) 190):
			{
				noval_296806(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_295091(it);
					}
					goto LA83;
					LA87: ;
					{
						(*sym).flags |= ((NU32)1)<<((((NU8) 9))%(sizeof(NU32)*8));
					}
					LA83: ;
				}
				LA81: ;
			}
			break;
			case ((NU16) 241):
			{
				noval_296806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 7))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 222):
			{
				noval_296806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 8))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 188):
			{
				noval_296806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 22))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 162):
			{
				pragmadeadcodeelim_295971(c, it);
			}
			break;
			case ((NU16) 164):
			{
				pragmanoforward_296003(c, it);
			}
			break;
			case ((NU16) 78):
			{
				processmagic_295558(c, it, sym);
			}
			break;
			case ((NU16) 167):
			{
				noval_296806(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_296806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 3))%(sizeof(NU32)*8));
				(*sym).flags |= ((NU32)1)<<((((NU8) 9))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 105):
			{
				noval_296806(it);
			}
			break;
			case ((NU16) 85):
			{
				noval_296806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 24))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 101):
			{
				Tlib223827* lib;
				Tnode223809* LOC101;
				LOC101 = 0;
				LOC101 = getstrlitnode_295464(c, it);
				lib = getlib_296067(c, ((NU8) 0), LOC101);
				addtolib_278207(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_174322((*(*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_194128((*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_296806(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_296806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 11))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 104):
			{
				noval_296806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 14))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 107):
			{
				processdynlib_296186(c, it, sym);
			}
			break;
			case ((NU16) 108):
			{
				noval_296806(it);
				{
					if (!!((((*sym).flags &(1<<((((NU8) 2))&31)))!=0))) goto LA124;
					markcompilerproc_297220(sym);
				}
				LA124: ;
			}
			break;
			case ((NU16) 109):
			{
				noval_296806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 17))%(sizeof(NU32)*8));
			}
			break;
			case ((NU16) 126):
			{
				{
					if (!((*it).kind == ((NU8) 34))) goto LA130;
					deprecatedstmt_297252(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_296806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA139;
					invalidpragma_295091(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_297179(sym, it);
				}
				goto LA143;
				LA145: ;
				{
					noval_296806(it);
					(*sym).flags |= ((NU32)1)<<((((NU8) 26))%(sizeof(NU32)*8));
				}
				LA143: ;
			}
			break;
			case ((NU16) 80):
			{
				noval_296806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA151;
					invalidpragma_295091(it);
				}
				goto LA149;
				LA151: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
				}
				LA149: ;
			}
			break;
			case ((NU16) 187):
			{
				noval_296806(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_295091(it);
				}
				goto LA155;
				LA159: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 3))%(sizeof(NU32)*8));
				}
				LA155: ;
			}
			break;
			case ((NU16) 176):
			{
				noval_296806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA165;
					invalidpragma_295091(it);
				}
				goto LA163;
				LA165: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 4))%(sizeof(NU32)*8));
				}
				LA163: ;
			}
			break;
			case ((NU16) 177):
			{
				noval_296806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA171;
					invalidpragma_295091(it);
				}
				goto LA169;
				LA171: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 6))%(sizeof(NU32)*8));
				}
				LA169: ;
			}
			break;
			case ((NU16) 79):
			{
				noval_296806(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_296806(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_295091(it);
				}
				LA184: ;
			}
			break;
			case ((NU16) 237):
			{
				noval_296806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA192;
					invalidpragma_295091(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_295488(c, it);
				message_194161((*it).info, ((NU16) 290), LOC196);
			}
			break;
			case ((NU16) 113):
			{
				NimStringDesc* LOC198;
				LOC198 = 0;
				LOC198 = expectstrlit_295488(c, it);
				message_194161((*it).info, ((NU16) 267), LOC198);
			}
			break;
			case ((NU16) 112):
			{
				{
					NIM_BOOL LOC202;
					LOC202 = 0;
					LOC202 = !((sym == NIM_NIL));
					if (!(LOC202)) goto LA203;
					LOC202 = isroutine_228763(sym);
					LA203: ;
					if (!LOC202) goto LA204;
					noval_296806(it);
					(*sym).flags |= ((NU32)1)<<((((NU8) 20))%(sizeof(NU32)*8));
				}
				goto LA200;
				LA204: ;
				{
					NimStringDesc* LOC207;
					LOC207 = 0;
					LOC207 = expectstrlit_295488(c, it);
					localerror_194128((*it).info, ((NU16) 236), LOC207);
				}
				LA200: ;
			}
			break;
			case ((NU16) 111):
			{
				NimStringDesc* LOC209;
				LOC209 = 0;
				LOC209 = expectstrlit_295488(c, it);
				fatal_194096((*it).info, ((NU16) 236), LOC209);
			}
			break;
			case ((NU16) 118):
			{
				processdefine_296611(c, it);
			}
			break;
			case ((NU16) 119):
			{
				processundef_296642(c, it);
			}
			break;
			case ((NU16) 124):
			{
				processcompile_296680(c, it);
			}
			break;
			case ((NU16) 123):
			{
				processcommonlink_296693(c, it, ((NU8) 0));
			}
			break;
			case ((NU16) 125):
			{
				processcommonlink_296693(c, it, ((NU8) 1));
			}
			break;
			case ((NU16) 170):
			{
				NimStringDesc* LOC216;
				LOC216 = 0;
				LOC216 = expectstrlit_295488(c, it);
				addlinkoption_202056(LOC216);
			}
			break;
			case ((NU16) 169):
			{
				NimStringDesc* LOC218;
				LOC218 = 0;
				LOC218 = expectstrlit_295488(c, it);
				addcompileoption_202066(LOC218);
			}
			break;
			case ((NU16) 129):
			{
				pragmabreakpoint_296706(c, it);
			}
			break;
			case ((NU16) 174):
			{
				pragmawatchpoint_296716(c, it);
			}
			break;
			case ((NU16) 116):
			{
				processpush_296534(c, n, (NI)(i + ((NI) 1)));
				result = NIM_TRUE;
			}
			break;
			case ((NU16) 117):
			{
				processpop_296600(c, it);
			}
			break;
			case ((NU16) 166):
			{
				processpragma_296930(c, n, i);
				result = NIM_TRUE;
			}
			break;
			case ((NU16) 172):
			{
				noval_296806(it);
				{
					if (!!((sym == NIM_NIL))) goto LA227;
					(*sym).flags |= ((NU32)1)<<((((NU8) 29))%(sizeof(NU32)*8));
				}
				LA227: ;
			}
			break;
			case ((NU16) 168):
			{
				noval_296806(it);
				{
					if (!!((sym == NIM_NIL))) goto LA232;
					(*sym).flags |= ((NU32)1)<<((((NU8) 12))%(sizeof(NU32)*8));
				}
				LA232: ;
			}
			break;
			case ((NU16) 193):
			{
				processcodegendecl_295546(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_296399(c, it);
					if (!LOC238) goto LA239;
					localerror_194128((*it).info, ((NU16) 153), ((NimStringDesc*) &TMP3216));
				}
				LA239: ;
			}
			break;
			case ((NU16) 131) ... ((NU16) 140):
			{
				{
					if (!((*sym).typ == NIM_NIL)) goto LA244;
					invalidpragma_295091(it);
				}
				goto LA242;
				LA244: ;
				{
					(*(*sym).typ).callconv = wordtocallconv_295866(k);
				}
				LA242: ;
			}
			break;
			case ((NU16) 189):
			{
				pragmaemit_296795(c, it);
			}
			break;
			case ((NU16) 178):
			{
				pragmaunroll_296824(c, it);
			}
			break;
			case ((NU16) 179):
			case ((NU16) 180):
			{
				noval_296806(it);
			}
			break;
			case ((NU16) 160):
			{
				noval_296806(it);
			}
			break;
			case ((NU16) 95):
			{
				noval_296806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA254;
					invalidpragma_295091(it);
				}
				goto LA252;
				LA254: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
				}
				LA252: ;
			}
			break;
			case ((NU16) 194):
			{
				noval_296806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA260;
					invalidpragma_295091(it);
				}
				goto LA258;
				LA260: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 0))%(sizeof(NU32)*8));
				}
				LA258: ;
			}
			break;
			case ((NU16) 236):
			{
				noval_296806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA266;
					invalidpragma_295091(it);
				}
				goto LA264;
				LA266: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 1))%(sizeof(NU32)*8));
				}
				LA264: ;
			}
			break;
			case ((NU16) 96):
			{
				noval_296806(it);
				{
					if (!((*sym).typ == NIM_NIL)) goto LA272;
					invalidpragma_295091(it);
				}
				goto LA270;
				LA272: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 17))%(sizeof(NU32)*8));
				}
				LA270: ;
			}
			break;
			case ((NU16) 258):
			{
				noval_296806(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_296399(c, it);
						if (!LOC284) goto LA285;
						localerror_194128((*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_296806(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_295091(it);
				}
				goto LA289;
				LA293: ;
				{
					(*(*sym).typ).flags |= ((NU32)1)<<((((NU8) 12))%(sizeof(NU32)*8));
				}
				LA289: ;
			}
			break;
			case ((NU16) 185):
			case ((NU16) 184):
			{
				noval_296806(it);
				{
					if (!(sym == NIM_NIL)) goto LA299;
					invalidpragma_295091(it);
				}
				LA299: ;
			}
			break;
			case ((NU16) 115):
			{
				pragmaline_296854(c, it);
			}
			break;
			case ((NU16) 156):
			case ((NU16) 161):
			{
				pragmaraisesortags_297008(c, it);
			}
			break;
			case ((NU16) 196):
			{
				{
					if (!(sym == NIM_NIL)) goto LA306;
					pragmalockstmt_297081(c, it);
				}
				goto LA304;
				LA306: ;
				{
					if (!((*sym).typ == NIM_NIL)) goto LA309;
					invalidpragma_295091(it);
				}
				goto LA304;
				LA309: ;
				{
					(*(*sym).typ).locklevel = pragmalocks_297149(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_295091(it);
				}
				goto LA313;
				LA319: ;
				{
					(*sym).kindU.S4.bitsize = expectintlit_295500(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_295091(it);
				}
				goto LA323;
				LA327: ;
				{
					asgnRefNoCycle((void**) (&(*sym).kindU.S4.guard), pragmaguard_297332(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_295091(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_295091(it);
				}
				goto LA339;
				LA341: ;
				{
					registernimscriptsymbol_272874(sym);
				}
				LA339: ;
			}
			break;
			case ((NU16) 181):
			{
				{
					if (!!(((*it).kind == ((NU8) 34)))) goto LA347;
					localerror_194128((*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_296806(it);
				{
					NIM_BOOL LOC353;
					LOC353 = 0;
					LOC353 = istoplevel_279280(c);
					if (!LOC353) goto LA354;
					(*(*c).module).flags |= ((NU32)1)<<((((NU8) 30))%(sizeof(NU32)*8));
				}
				goto LA351;
				LA354: ;
				{
					localerror_194139((*it).info, ((NimStringDesc*) &TMP3239));
				}
				LA351: ;
			}
			break;
			case ((NU16) 165):
			{
				noval_296806(it);
			}
			break;
			case ((NU16) 110):
			{
				noval_296806(it);
				(*sym).flags |= ((NU32)1)<<((((NU8) 18))%(sizeof(NU32)*8));
			}
			break;
			default:
			{
				invalidpragma_295091(it);
			}
			break;
			}
		}
		goto LA19;
		LA21: ;
		{
			invalidpragma_295091(it);
		}
		LA19: ;
	}
	LA10: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, pragmarec_299263)(Tcontext278023* c, Tsym223841* sym, Tnode223809* n, Tspecialwords204012 validpragmas) {
{	{
		if (!(n == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		NI i_299293;
		NI HEX3Atmp_299306;
		NI LOC6;
		NI res_299309;
		i_299293 = 0;
		HEX3Atmp_299306 = 0;
		LOC6 = 0;
		LOC6 = sonslen_226387(n);
		HEX3Atmp_299306 = (NI)(LOC6 - ((NI) 1));
		res_299309 = ((NI) 0);
		{
			while (1) {
				if (!(res_299309 <= HEX3Atmp_299306)) goto LA8;
				i_299293 = res_299309;
				{
					if (!((*(*n).kindU.S6.sons->data[i_299293]).kind == ((NU8) 90))) goto LA11;
					pragmarec_299263(c, sym, (*n).kindU.S6.sons->data[i_299293], validpragmas);
				}
				goto LA9;
				LA11: ;
				{
					NIM_BOOL LOC14;
					LOC14 = 0;
					LOC14 = singlepragma_297406(c, sym, n, i_299293, validpragmas);
					if (!LOC14) goto LA15;
					goto LA5;
				}
				goto LA9;
				LA15: ;
				LA9: ;
				res_299309 += ((NI) 1);
			} LA8: ;
		}
	} LA5: ;
	}BeforeRet: ;
}

N_NIMCALL(void, implicitpragmas_298759)(Tcontext278023* c, Tsym223841* sym, Tnode223809* n, Tspecialwords204012 validpragmas) {
	{
		NIM_BOOL LOC3;
		Toptionentry278005* it;
		Tlib223827* lib;
		LOC3 = 0;
		LOC3 = !((sym == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC3 = !(((*sym).kind == ((NU8) 6)));
		LA4: ;
		if (!LOC3) goto LA5;
		it = ((Toptionentry278005*) ((*c).optionstack.head));
		{
			while (1) {
				Tnode223809* o;
				if (!!((it == NIM_NIL))) goto LA8;
				o = (*it).otherpragmas;
				{
					if (!!(o == 0)) goto LA11;
					pushinfocontext_189581((*n).info);
					{
						NI i_298821;
						NI HEX3Atmp_298924;
						NI LOC14;
						NI res_298927;
						i_298821 = 0;
						HEX3Atmp_298924 = 0;
						LOC14 = 0;
						LOC14 = sonslen_226387(o);
						HEX3Atmp_298924 = (NI)(LOC14 - ((NI) 1));
						res_298927 = ((NI) 0);
						{
							while (1) {
								if (!(res_298927 <= HEX3Atmp_298924)) goto LA16;
								i_298821 = res_298927;
								{
									NIM_BOOL LOC19;
									LOC19 = 0;
									LOC19 = singlepragma_297406(c, sym, o, i_298821, validpragmas);
									if (!LOC19) goto LA20;
									internalerror_194172((*n).info, ((NimStringDesc*) &TMP3240));
								}
								LA20: ;
								res_298927 += ((NI) 1);
							} LA16: ;
						}
					}
					popinfocontext_189600();
				}
				LA11: ;
				it = ((Toptionentry278005*) ((*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_194128((*n).info, ((NU16) 83), ((NimStringDesc*) &TMP3216));
		}
		LA26: ;
		lib = (*((Toptionentry278005*) ((*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_278207(lib, sym);
			{
				if (!((*sym).loc.r == NIM_NIL)) goto LA38;
				asgnRefNoCycle((void**) (&(*sym).loc.r), rope_174322((*(*sym).name).s));
			}
			LA38: ;
		}
		LA34: ;
	}
	LA5: ;
}

N_NIMCALL(void, pragma_295082)(Tcontext278023* c, Tsym223841* sym, Tnode223809* n, Tspecialwords204012 validpragmas) {
{	{
		if (!(n == NIM_NIL)) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	pragmarec_299263(c, sym, n, validpragmas);
	implicitpragmas_298759(c, sym, n, validpragmas);
	}BeforeRet: ;
}

N_NIMCALL(NIM_BOOL, haspragma_298952)(Tnode223809* n, NU16 pragma) {
	NIM_BOOL result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (n == NIM_NIL);
		if (LOC3) goto LA4;
		LOC3 = HEX3DHEX3D_298972((*n).kindU.S6.sons, NIM_NIL);
		LA4: ;
		if (!LOC3) goto LA5;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA5: ;
	{
		Tnode223809* p_299211;
		Tnodeseq223803* HEX3Atmp_299242;
		NI i_299245;
		NI L_299247;
		p_299211 = 0;
		HEX3Atmp_299242 = 0;
		HEX3Atmp_299242 = (*n).kindU.S6.sons;
		i_299245 = ((NI) 0);
		L_299247 = (HEX3Atmp_299242 ? HEX3Atmp_299242->Sup.len : 0);
		{
			while (1) {
				Tnode223809* key;
				if (!(i_299245 < L_299247)) goto LA9;
				p_299211 = HEX3Atmp_299242->data[i_299245];
				{
					if (!((*p_299211).kind == ((NU8) 34))) goto LA12;
					key = HEX5BHEX5D_224244(p_299211, ((NI) 0));
				}
				goto LA10;
				LA12: ;
				{
					key = p_299211;
				}
				LA10: ;
				{
					NIM_BOOL LOC17;
					NU16 LOC19;
					LOC17 = 0;
					LOC17 = ((*key).kind == ((NU8) 2));
					if (!(LOC17)) goto LA18;
					LOC19 = 0;
					LOC19 = whichkeyword_204390((*key).kindU.S5.ident);
					LOC17 = (LOC19 == pragma);
					LA18: ;
					if (!LOC17) goto LA20;
					result = NIM_TRUE;
					goto BeforeRet;
				}
				LA20: ;
				i_299245 += ((NI) 1);
			} LA9: ;
		}
	}
	result = NIM_FALSE;
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_CHAR, pragmaasm_295101)(Tcontext278023* c, Tnode223809* n) {
	NIM_CHAR result;
	result = 0;
	result = 0;
	{
		if (!!((n == NIM_NIL))) goto LA3;
		{
			NI i_295130;
			NI HEX3Atmp_295167;
			NI LOC6;
			NI res_295170;
			i_295130 = 0;
			HEX3Atmp_295167 = 0;
			LOC6 = 0;
			LOC6 = sonslen_226387(n);
			HEX3Atmp_295167 = (NI)(LOC6 - ((NI) 1));
			res_295170 = ((NI) 0);
			{
				while (1) {
					Tnode223809* it;
					if (!(res_295170 <= HEX3Atmp_295167)) goto LA8;
					i_295130 = res_295170;
					it = (*n).kindU.S6.sons->data[i_295130];
					{
						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_204390((*(*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_295091(it);
							}
							LA17: ;
						}
						break;
						default:
						{
							invalidpragma_295091(it);
						}
						break;
						}
					}
					goto LA9;
					LA13: ;
					{
						invalidpragma_295091(it);
					}
					LA9: ;
					res_295170 += ((NI) 1);
				} LA8: ;
			}
		}
	}
	LA3: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_pragmasInit000)(void) {
}

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

