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

#include "nimbase.h"
typedef struct PluginHEX3Aobjecttype456019 PluginHEX3Aobjecttype456019;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tnode227809 Tnode227809;
typedef struct Tcontext282023 Tcontext282023;
typedef struct Tident200021 Tident200021;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Cell48946 Cell48946;
typedef struct Cellseq48962 Cellseq48962;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48958 Cellset48958;
typedef struct Pagedesc48954 Pagedesc48954;
typedef struct Memregion30891 Memregion30891;
typedef struct Smallchunk30843 Smallchunk30843;
typedef struct Llchunk30885 Llchunk30885;
typedef struct Bigchunk30845 Bigchunk30845;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30889 Avlnode30889;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Tsym227841 Tsym227841;
typedef struct Tidobj200015 Tidobj200015;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq227843 Ttypeseq227843;
typedef struct Tscope227835 Tscope227835;
typedef struct TY227944 TY227944;
typedef struct Tstrtable227813 Tstrtable227813;
typedef struct Tsymseq227811 Tsymseq227811;
typedef struct Ttype227847 Ttype227847;
typedef struct Tlineinfo192352 Tlineinfo192352;
typedef struct Tloc227823 Tloc227823;
typedef struct Ropeobj178009 Ropeobj178009;
typedef struct Tlib227827 Tlib227827;
typedef struct Tnodeseq227803 Tnodeseq227803;
typedef struct Tpasscontext279005 Tpasscontext279005;
typedef struct Tproccon282011 Tproccon282011;
typedef struct Intset224056 Intset224056;
typedef struct Trunk224052 Trunk224052;
typedef struct Trunkseq224054 Trunkseq224054;
typedef struct Tlinkedlist143028 Tlinkedlist143028;
typedef struct Tlistentry143022 Tlistentry143022;
typedef struct Tidtable227859 Tidtable227859;
typedef struct Tidpairseq227857 Tidpairseq227857;
typedef struct Tctx281048 Tctx281048;
typedef struct TY282143 TY282143;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tinstantiation227831 Tinstantiation227831;
typedef struct Tidpair227855 Tidpair227855;
typedef struct TY281254 TY281254;
typedef struct TY193417 TY193417;
typedef struct PprocHEX3Aobjecttype281233 PprocHEX3Aobjecttype281233;
typedef struct TY281273 TY281273;
typedef struct Tinstantiationpair282013 Tinstantiationpair282013;
typedef struct TY227932 TY227932;
typedef struct TY281234 TY281234;
typedef struct TY281239 TY281239;
typedef struct TY281274 TY281274;
typedef struct Vmargs281042 Vmargs281042;
typedef struct Tblock281030 Tblock281030;
typedef struct TY281214 TY281214;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef N_NIMCALL_PTR(Tnode227809*, Transformation456013) (Tcontext282023* c, Tnode227809* n);
struct  PluginHEX3Aobjecttype456019  {
Tident200021* fn;
Tident200021* module;
Tident200021* package;
Transformation456013 t;
PluginHEX3Aobjecttype456019* next;
};
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  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Cell48946  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48962  {
NI len;
NI cap;
Cell48946** d;
};
struct  Cellset48958  {
NI counter;
NI max;
Pagedesc48954* head;
Pagedesc48954** data;
};
typedef Smallchunk30843* TY30906[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30891  {
NI minlargeobj;
NI maxlargeobj;
TY30906 freesmallchunks;
Llchunk30885* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30845* freechunkslist;
Intset30817 chunkstarts;
Avlnode30889* root;
Avlnode30889* deleted;
Avlnode30889* last;
Avlnode30889* freeavlnodes;
};
struct  Gcstat51014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51018  {
Gcstack51016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq48962 zct;
Cellseq48962 decstack;
Cellset48958 cycleroots;
Cellseq48962 tempstack;
NI recgclock;
Memregion30891 region;
Gcstat51014 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj200015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable227813  {
NI counter;
Tsymseq227811* data;
};
struct  Tlineinfo192352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc227823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype227847* t;
Ropeobj178009* r;
Ropeobj178009* heaproot;
};
struct  Tsym227841  {
  Tidobj200015 Sup;
NU8 kind;
union{
struct {Ttypeseq227843* typeinstcache;
Tscope227835* typscope;
} S1;
struct {TY227944* procinstcache;
Tsym227841* gcunsafetyreason;
} S2;
struct {TY227944* usedgenerics;
Tstrtable227813 tab;
} S3;
struct {Tsym227841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype227847* typ;
Tident200021* name;
Tlineinfo192352 info;
Tsym227841* owner;
NU32 flags;
Tnode227809* ast;
NU32 options;
NI position;
NI offset;
Tloc227823 loc;
Tlib227827* annex;
Tnode227809* constraint;
};
struct  Tident200021  {
  Tidobj200015 Sup;
NimStringDesc* s;
Tident200021* next;
NI h;
};
struct  Tnode227809  {
Ttype227847* typ;
Tlineinfo192352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym227841* sym;
} S4;
struct {Tident200021* ident;
} S5;
struct {Tnodeseq227803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tpasscontext279005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Intset224056  {
NI counter;
NI max;
Trunk224052* head;
Trunkseq224054* data;
};
struct  Tlinkedlist143028  {
Tlistentry143022* head;
Tlistentry143022* tail;
NI counter;
};
struct  Tidtable227859  {
NI counter;
Tidpairseq227857* data;
};
typedef N_NIMCALL_PTR(Tnode227809*, TY282074) (Tcontext282023* c, Tnode227809* n);
typedef N_NIMCALL_PTR(Tnode227809*, TY282079) (Tcontext282023* c, Tnode227809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode227809*, TY282087) (Tcontext282023* c, Tnode227809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode227809*, TY282095) (Tcontext282023* c, Tnode227809* n);
typedef N_NIMCALL_PTR(Tnode227809*, TY282100) (Tcontext282023* c, Tnode227809* n, NU16 flags);
typedef N_NIMCALL_PTR(Tnode227809*, TY282108) (Tcontext282023* c, Tnode227809* n);
typedef N_NIMCALL_PTR(Tnode227809*, TY282113) (Tcontext282023* c, Tnode227809* n, Tnode227809* norig, NU32 filter);
typedef N_NIMCALL_PTR(Ttype227847*, TY282120) (Tcontext282023* c, Tnode227809* n, Ttype227847* prev);
typedef struct {
N_NIMCALL_PTR(Tnode227809*, ClPrc) (Tcontext282023* c, Tidtable227859 pt, Tnode227809* n, void* ClEnv);
void* ClEnv;
} TY282126;
typedef struct {
N_NIMCALL_PTR(Tsym227841*, ClPrc) (Tcontext282023* c, Tsym227841* fn, Tidtable227859 pt, Tlineinfo192352 info, void* ClEnv);
void* ClEnv;
} TY282132;
typedef N_NIMCALL_PTR(Tsym227841*, TY282148) (Tcontext282023* c, Tsym227841* dc, Ttype227847* t, Tlineinfo192352 info, NU8 op);
struct  Tcontext282023  {
  Tpasscontext279005 Sup;
Tsym227841* module;
Tscope227835* currentscope;
Tscope227835* importtable;
Tscope227835* toplevelscope;
Tproccon282011* p;
Tsymseq227811* friendmodules;
NI instcounter;
Intset224056 ambiguoussymbols;
NI intypeclass;
NI ingenericcontext;
NI inunrolledcontext;
NI compilescontextid;
NI compilescontextidgenerator;
NI ingenericinst;
Tsymseq227811* converters;
Tsymseq227811* patterns;
Tlinkedlist143028 optionstack;
Tidtable227859 symmapping;
Tlinkedlist143028 libs;
TY282074 semconstexpr;
TY282079 semexpr;
TY282087 semtryexpr;
TY282095 semtryconstexpr;
TY282100 semoperand;
TY282108 semconstboolexpr;
TY282113 semoverloadedcall;
TY282120 semtypenode;
TY282126 seminferredlambda;
TY282132 semgenerateinstance;
Intset224056 includedfiles;
Tstrtable227813 userpragmas;
Tctx281048* evalcontext;
Intset224056 unknownidents;
TY282143* generics;
NI lastgenericidx;
NI hloloopdetector;
NI inparallelstmt;
TY282148 insttypeboundop;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30822[8];
struct  Pagedesc48954  {
Pagedesc48954* next;
NI key;
TY30822 bits;
};
struct  Basechunk30841  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30843  {
  Basechunk30841 Sup;
Smallchunk30843* next;
Smallchunk30843* prev;
Freecell30833* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30885  {
NI size;
NI acc;
Llchunk30885* next;
};
struct  Bigchunk30845  {
  Basechunk30841 Sup;
Bigchunk30845* next;
Bigchunk30845* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30822 bits;
};
typedef Avlnode30889* TY30896[2];
struct  Avlnode30889  {
TY30896 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope227835  {
NI depthlevel;
Tstrtable227813 symbols;
Tnodeseq227803* usingsyms;
Tscope227835* parent;
};
struct  Ttype227847  {
  Tidobj200015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq227843* sons;
Tnode227809* n;
Tsym227841* owner;
Tsym227841* sym;
Tsym227841* destructor;
Tsym227841* deepcopy;
Tsym227841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc227823 loc;
};
struct  Ropeobj178009  {
  TNimObject Sup;
Ropeobj178009* left;
Ropeobj178009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry143022  {
  TNimObject Sup;
Tlistentry143022* prev;
Tlistentry143022* next;
};
struct  Tlib227827  {
  Tlistentry143022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj178009* name;
Tnode227809* path;
};
struct  Tproccon282011  {
Tsym227841* owner;
Tsym227841* resultsym;
NI nestedloopcounter;
NI nestedblockcounter;
NI intrystmt;
Tproccon282011* next;
NIM_BOOL wasforwarded;
Tnode227809* bracketexpr;
};
struct  Trunk224052  {
Trunk224052* next;
NI key;
TY30822 bits;
};
struct  Tidpair227855  {
Tidobj200015* key;
TNimObject* val;
};
struct  Tctx281048  {
  Tpasscontext279005 Sup;
TY281254* code;
TY193417* debug;
Tnode227809* globals;
Tnode227809* constants;
Ttypeseq227843* types;
Tnode227809* currentexceptiona;
Tnode227809* currentexceptionb;
NI exceptioninstr;
PprocHEX3Aobjecttype281233* prc;
Tsym227841* module;
Tnode227809* callsite;
NU8 mode;
NU8 features;
NIM_BOOL traceactive;
NI loopiterations;
Tlineinfo192352 comesfromheuristic;
TY281273* callbacks;
NimStringDesc* errorflag;
};
struct  Tinstantiationpair282013  {
Tsym227841* genericsym;
Tinstantiation227831* inst;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct  Tinstantiation227831  {
Tsym227841* sym;
Ttypeseq227843* concretetypes;
TY227932* usedby;
NI compilesid;
};
struct TY281239 {
NIM_BOOL Field0;
NU8 Field1;
};
typedef TY281239 TY281242[256];
struct  PprocHEX3Aobjecttype281233  {
TY281234* blocks;
Tsym227841* sym;
TY281242 slots;
NI maxslots;
};
typedef struct {
N_NIMCALL_PTR(void, ClPrc) (Vmargs281042* args, void* ClEnv);
void* ClEnv;
} Vmcallback281044;
struct TY281274 {
NimStringDesc* Field0;
Vmcallback281044 Field1;
};
struct  Tblock281030  {
Tsym227841* label;
TY281214* fixups;
};
struct  Vmargs281042  {
NI ra;
NI rb;
NI rc;
void* slots;
Tnode227809* currentexception;
};
struct Ttypeseq227843 {
  TGenericSeq Sup;
  Ttype227847* data[SEQ_DECL_SIZE];
};
struct TY227944 {
  TGenericSeq Sup;
  Tinstantiation227831* data[SEQ_DECL_SIZE];
};
struct Tsymseq227811 {
  TGenericSeq Sup;
  Tsym227841* data[SEQ_DECL_SIZE];
};
struct Tnodeseq227803 {
  TGenericSeq Sup;
  Tnode227809* data[SEQ_DECL_SIZE];
};
struct Trunkseq224054 {
  TGenericSeq Sup;
  Trunk224052* data[SEQ_DECL_SIZE];
};
struct Tidpairseq227857 {
  TGenericSeq Sup;
  Tidpair227855 data[SEQ_DECL_SIZE];
};
struct TY282143 {
  TGenericSeq Sup;
  Tinstantiationpair282013 data[SEQ_DECL_SIZE];
};
struct TY281254 {
  TGenericSeq Sup;
  NU32 data[SEQ_DECL_SIZE];
};
struct TY193417 {
  TGenericSeq Sup;
  Tlineinfo192352 data[SEQ_DECL_SIZE];
};
struct TY281273 {
  TGenericSeq Sup;
  TY281274 data[SEQ_DECL_SIZE];
};
struct TY227932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
struct TY281234 {
  TGenericSeq Sup;
  Tblock281030 data[SEQ_DECL_SIZE];
};
struct TY281214 {
  TGenericSeq Sup;
  NI data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP1046)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
N_NIMCALL(Tident200021*, getident_200463)(NimStringDesc* identifier);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell48946*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48946* c);
N_NOINLINE(void, addzct_52617)(Cellseq48962* s, Cell48946* c);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_55022)(Cell48946* c);
static N_INLINE(NIM_BOOL, canbecycleroot_52667)(Cell48946* c);
static N_INLINE(void, rtladdcycleroot_53423)(Cell48946* c);
N_NOINLINE(void, incl_49665)(Cellset48958* s, Cell48946* cell);
static N_INLINE(void, decref_54604)(Cell48946* c);
N_NIMCALL(NIM_BOOL, pluginmatches_456029)(PluginHEX3Aobjecttype456019* p, Tsym227841* s);
PluginHEX3Aobjecttype456019* head_456089;
TNimType NTI456019; /* Plugin:ObjectType */
extern TNimType NTI200019; /* PIdent */
TNimType NTI456013; /* Transformation */
TNimType NTI456015; /* Plugin */
extern Gcheap51018 gch_51059;
N_NIMCALL(void, TMP1046)(void* p, NI op) {
	PluginHEX3Aobjecttype456019* a;
	a = (PluginHEX3Aobjecttype456019*)p;
	nimGCvisit((void*)(*a).fn, op);
	nimGCvisit((void*)(*a).module, op);
	nimGCvisit((void*)(*a).package, op);
	nimGCvisit((void*)(*a).next, op);
}

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

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

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

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

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

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

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

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

N_NIMCALL(void, registerplugin_456124)(NimStringDesc* package, NimStringDesc* module, NimStringDesc* fn, Transformation456013 t) {
	PluginHEX3Aobjecttype456019* oldhead;
	PluginHEX3Aobjecttype456019* LOC1;
	oldhead = head_456089;
	LOC1 = 0;
	LOC1 = (PluginHEX3Aobjecttype456019*) newObj((&NTI456015), sizeof(PluginHEX3Aobjecttype456019));
	asgnRefNoCycle((void**) (&(*LOC1).fn), getident_200463(fn));
	asgnRefNoCycle((void**) (&(*LOC1).module), getident_200463(module));
	asgnRefNoCycle((void**) (&(*LOC1).package), getident_200463(package));
	(*LOC1).t = t;
	asgnRef((void**) (&(*LOC1).next), oldhead);
	asgnRef((void**) (&head_456089), LOC1);
}

N_NIMCALL(NIM_BOOL, pluginmatches_456029)(PluginHEX3Aobjecttype456019* p, Tsym227841* s) {
	NIM_BOOL result;
	Tsym227841* module;
	Tsym227841* package;
{	result = 0;
	{
		if (!!(((*(*s).name).Sup.id == (*(*p).fn).Sup.id))) goto LA3;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA3: ;
	module = (*s).owner;
	{
		NIM_BOOL LOC7;
		NIM_BOOL LOC8;
		LOC7 = 0;
		LOC8 = 0;
		LOC8 = (module == NIM_NIL);
		if (LOC8) goto LA9;
		LOC8 = !(((*module).kind == ((NU8) 6)));
		LA9: ;
		LOC7 = LOC8;
		if (LOC7) goto LA10;
		LOC7 = !(((*(*module).name).Sup.id == (*(*p).module).Sup.id));
		LA10: ;
		if (!LOC7) goto LA11;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA11: ;
	package = (*module).owner;
	{
		NIM_BOOL LOC15;
		NIM_BOOL LOC16;
		LOC15 = 0;
		LOC16 = 0;
		LOC16 = (package == NIM_NIL);
		if (LOC16) goto LA17;
		LOC16 = !(((*package).kind == ((NU8) 24)));
		LA17: ;
		LOC15 = LOC16;
		if (LOC15) goto LA18;
		LOC15 = !(((*(*package).name).Sup.id == (*(*p).package).Sup.id));
		LA18: ;
		if (!LOC15) goto LA19;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA19: ;
	result = NIM_TRUE;
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Transformation456013, getplugin_456094)(Tsym227841* fn) {
	Transformation456013 result;
	PluginHEX3Aobjecttype456019* it;
{	result = 0;
	it = head_456089;
	{
		while (1) {
			if (!!((it == NIM_NIL))) goto LA2;
			{
				NIM_BOOL LOC5;
				LOC5 = 0;
				LOC5 = pluginmatches_456029(it, fn);
				if (!LOC5) goto LA6;
				result = (*it).t;
				goto BeforeRet;
			}
			LA6: ;
			it = (*it).next;
		} LA2: ;
	}
	}BeforeRet: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_pluginsInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_pluginsDatInit000)(void) {
static TNimNode* TMP1045[5];
static TNimNode TMP1039[6];
NTI456019.size = sizeof(PluginHEX3Aobjecttype456019);
NTI456019.kind = 18;
NTI456019.base = 0;
TMP1045[0] = &TMP1039[1];
TMP1039[1].kind = 1;
TMP1039[1].offset = offsetof(PluginHEX3Aobjecttype456019, fn);
TMP1039[1].typ = (&NTI200019);
TMP1039[1].name = "fn";
TMP1045[1] = &TMP1039[2];
TMP1039[2].kind = 1;
TMP1039[2].offset = offsetof(PluginHEX3Aobjecttype456019, module);
TMP1039[2].typ = (&NTI200019);
TMP1039[2].name = "module";
TMP1045[2] = &TMP1039[3];
TMP1039[3].kind = 1;
TMP1039[3].offset = offsetof(PluginHEX3Aobjecttype456019, package);
TMP1039[3].typ = (&NTI200019);
TMP1039[3].name = "package";
TMP1045[3] = &TMP1039[4];
NTI456013.size = sizeof(Transformation456013);
NTI456013.kind = 25;
NTI456013.base = 0;
NTI456013.flags = 3;
TMP1039[4].kind = 1;
TMP1039[4].offset = offsetof(PluginHEX3Aobjecttype456019, t);
TMP1039[4].typ = (&NTI456013);
TMP1039[4].name = "t";
TMP1045[4] = &TMP1039[5];
TMP1039[5].kind = 1;
TMP1039[5].offset = offsetof(PluginHEX3Aobjecttype456019, next);
TMP1039[5].typ = (&NTI456015);
TMP1039[5].name = "next";
TMP1039[0].len = 5; TMP1039[0].kind = 2; TMP1039[0].sons = &TMP1045[0];
NTI456019.node = &TMP1039[0];
NTI456015.size = sizeof(PluginHEX3Aobjecttype456019*);
NTI456015.kind = 22;
NTI456015.base = (&NTI456019);
NTI456015.marker = TMP1046;
}

