/* 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 Ropeobj178009 Ropeobj178009;
typedef struct TY511155 TY511155;
typedef struct Tcgen511038 Tcgen511038;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tpasscontext279005 Tpasscontext279005;
typedef struct TNimObject TNimObject;
typedef struct Tsym227841 Tsym227841;
typedef struct NimStringDesc NimStringDesc;
typedef struct Tidtable227859 Tidtable227859;
typedef struct Tidpairseq227857 Tidpairseq227857;
typedef struct Intset224056 Intset224056;
typedef struct Trunk224052 Trunk224052;
typedef struct Trunkseq224054 Trunkseq224054;
typedef struct Tlinkedlist143028 Tlinkedlist143028;
typedef struct Tlistentry143022 Tlistentry143022;
typedef struct Tcproc511034 Tcproc511034;
typedef struct Ttypeseq227843 Ttypeseq227843;
typedef struct Tnodetable227871 Tnodetable227871;
typedef struct Tnodepairseq227869 Tnodepairseq227869;
typedef struct Tsymseq227811 Tsymseq227811;
typedef struct Tlineinfo192352 Tlineinfo192352;
typedef struct Tnodeseq227803 Tnodeseq227803;
typedef struct TY192365 TY192365;
typedef struct TY511106 TY511106;
typedef struct Tblock511032 Tblock511032;
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 Tidobj200015 Tidobj200015;
typedef struct Tscope227835 Tscope227835;
typedef struct TY227944 TY227944;
typedef struct Tstrtable227813 Tstrtable227813;
typedef struct Ttype227847 Ttype227847;
typedef struct Tident200021 Tident200021;
typedef struct Tnode227809 Tnode227809;
typedef struct Tloc227823 Tloc227823;
typedef struct Tlib227827 Tlib227827;
typedef struct Tidpair227855 Tidpair227855;
typedef struct Tnodepair227867 Tnodepair227867;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tinstantiation227831 Tinstantiation227831;
typedef struct TY227932 TY227932;
struct  TGenericSeq  {
NI len;
NI reserved;
};
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  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext279005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef Ropeobj178009* Tcfilesections511022[18];
struct  Tidtable227859  {
NI counter;
Tidpairseq227857* data;
};
struct  Intset224056  {
NI counter;
NI max;
Trunk224052* head;
Trunkseq224054* data;
};
struct  Tlinkedlist143028  {
Tlistentry143022* head;
Tlistentry143022* tail;
NI counter;
};
struct  Tnodetable227871  {
NI counter;
Tnodepairseq227869* data;
};
typedef Ropeobj178009* TY511144[10];
struct  Tcgen511038  {
  Tpasscontext279005 Sup;
Tsym227841* module;
NimStringDesc* filename;
Tcfilesections511022 s;
NIM_BOOL preventstacktrace;
NIM_BOOL usesthreadvars;
NIM_BOOL framedeclared;
NIM_BOOL isheaderfile;
NIM_BOOL includesstringh;
NIM_BOOL objhaskidsvalid;
NimStringDesc* cfilename;
Tidtable227859 typecache;
Tidtable227859 forwtypecache;
Intset224056 declaredthings;
Intset224056 declaredprotos;
Tlinkedlist143028 headerfiles;
Intset224056 typeinfomarker;
Tcproc511034* initproc;
Tcproc511034* postinitproc;
Tcproc511034* preinitproc;
Ttypeseq227843* typestack;
Tnodetable227871 datacache;
Tsymseq227811* forwardedprocs;
NI typenodes;
NI nimtypes;
Ropeobj178009* typenodesname;
Ropeobj178009* nimtypesname;
NI labels;
TY511144 extensionloaders;
Ropeobj178009* injectstmt;
};
struct  Tlineinfo192352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tcproc511034  {
Tsym227841* prc;
NIM_BOOL beforeretneeded;
NIM_BOOL threadvaraccessed;
Tlineinfo192352 lastlineinfo;
Tnodeseq227803* nestedtrystmts;
NI inexceptblock;
TY192365* finallysafepoints;
NI labels;
TY511106* blocks;
NI breakidx;
NU32 options;
NI maxframelen;
Tcgen511038* module;
NI withinloop;
NI splitdecls;
NI gcframeid;
Ropeobj178009* gcframetype;
};
typedef Ropeobj178009* Tcprocsections511026[3];
struct  Tblock511032  {
NI id;
Ropeobj178009* label;
Tcprocsections511026 sections;
NIM_BOOL isloop;
NI16 nestedtrystmts;
NI16 nestedexceptstmts;
NI16 framelen;
};
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  Tidobj200015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable227813  {
NI counter;
Tsymseq227811* data;
};
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  Ropeobj178009  {
  TNimObject Sup;
Ropeobj178009* left;
Ropeobj178009* right;
NI length;
NimStringDesc* data;
};
struct  Tidpair227855  {
Tidobj200015* key;
TNimObject* val;
};
typedef NI TY30822[8];
struct  Trunk224052  {
Trunk224052* next;
NI key;
TY30822 bits;
};
struct  Tlistentry143022  {
  TNimObject Sup;
Tlistentry143022* prev;
Tlistentry143022* next;
};
struct  Tnodepair227867  {
NI h;
Tnode227809* key;
NI val;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
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  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  Tlib227827  {
  Tlistentry143022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj178009* name;
Tnode227809* path;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct  Tinstantiation227831  {
Tsym227841* sym;
Ttypeseq227843* concretetypes;
TY227932* usedby;
NI compilesid;
};
struct TY511155 {
  TGenericSeq Sup;
  Tcgen511038* data[SEQ_DECL_SIZE];
};
struct TY511106 {
  TGenericSeq Sup;
  Tblock511032 data[SEQ_DECL_SIZE];
};
struct Tnodeseq227803 {
  TGenericSeq Sup;
  Tnode227809* data[SEQ_DECL_SIZE];
};
struct TY192365 {
  TGenericSeq Sup;
  Ropeobj178009* data[SEQ_DECL_SIZE];
};
struct Tidpairseq227857 {
  TGenericSeq Sup;
  Tidpair227855 data[SEQ_DECL_SIZE];
};
struct Trunkseq224054 {
  TGenericSeq Sup;
  Trunk224052* data[SEQ_DECL_SIZE];
};
struct Ttypeseq227843 {
  TGenericSeq Sup;
  Ttype227847* data[SEQ_DECL_SIZE];
};
struct Tnodepairseq227869 {
  TGenericSeq Sup;
  Tnodepair227867 data[SEQ_DECL_SIZE];
};
struct Tsymseq227811 {
  TGenericSeq Sup;
  Tsym227841* data[SEQ_DECL_SIZE];
};
struct TY227944 {
  TGenericSeq Sup;
  Tinstantiation227831* data[SEQ_DECL_SIZE];
};
struct TY227932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP1140)(void* p, NI op);
N_NIMCALL(void, TMP1141)(void* p, NI op);
N_NIMCALL(void, TMP1145)(void* p, NI op);
N_NIMCALL(void, TMP1146)(void* p, NI op);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_54604)(Cell48946* c);
static N_INLINE(void, rtladdzct_54204)(Cell48946* c);
N_NOINLINE(void, addzct_52617)(Cellseq48962* s, 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(Cell48946*, usrtocell_52646)(void* usr);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_55022)(Cell48946* c);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
Ropeobj178009* mainmodprocs_511150;
Ropeobj178009* mainmodinit_511151;
Ropeobj178009* othermodsinit_511152;
Ropeobj178009* maindatinit_511153;
Ropeobj178009* gmapping_511154;
TY511155* gmodules_511172;
extern TNimType NTI279005; /* TPassContext */
TNimType NTI511038; /* TCGen */
extern TNimType NTI227807; /* PSym */
extern TNimType NTI149; /* string */
extern TNimType NTI178007; /* Rope */
TNimType NTI511022; /* TCFileSections */
extern TNimType NTI138; /* bool */
extern TNimType NTI227859; /* TIdTable */
extern TNimType NTI224056; /* IntSet */
extern TNimType NTI143028; /* TLinkedList */
TNimType NTI511034; /* TCProc */
extern TNimType NTI192352; /* TLineInfo */
extern TNimType NTI227803; /* TNodeSeq */
extern TNimType NTI108; /* int */
extern TNimType NTI192365; /* seq[Rope] */
extern TNimType NTI4007; /* Natural */
TNimType NTI511032; /* TBlock */
TNimType NTI511026; /* TCProcSections */
extern TNimType NTI112; /* int16 */
TNimType NTI511106; /* seq[TBlock] */
extern TNimType NTI169017; /* TOptions */
TNimType NTI511030; /* BProc */
extern TNimType NTI227843; /* TTypeSeq */
extern TNimType NTI227871; /* TNodeTable */
extern TNimType NTI227811; /* TSymSeq */
TNimType NTI511144; /* array[48..57, Rope] */
TNimType NTI511028; /* BModule */
TNimType NTI511155; /* seq[BModule] */
extern Gcheap51018 gch_51059;
NI gforwardedprocscounter_511173;
extern NU32 goptions_169130;
N_NIMCALL(void, TMP1140)(void* p, NI op) {
	TY511106* a;
	NI LOC1;
	NI LOC2;
	a = (TY511106*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1].label, op);
	LOC2 = 0;
	for (LOC2 = 0; LOC2 < 3; LOC2++) {
	nimGCvisit((void*)a->data[LOC1].sections[LOC2], op);
	}
	}
}
N_NIMCALL(void, TMP1141)(void* p, NI op) {
	Tcproc511034* a;
	a = (Tcproc511034*)p;
	nimGCvisit((void*)(*a).prc, op);
	nimGCvisit((void*)(*a).nestedtrystmts, op);
	nimGCvisit((void*)(*a).finallysafepoints, op);
	nimGCvisit((void*)(*a).blocks, op);
	nimGCvisit((void*)(*a).module, op);
	nimGCvisit((void*)(*a).gcframetype, op);
}
N_NIMCALL(void, TMP1145)(void* p, NI op) {
	Tcgen511038* a;
	NI LOC1;
	NI LOC2;
	a = (Tcgen511038*)p;
	nimGCvisit((void*)(*a).module, op);
	nimGCvisit((void*)(*a).filename, op);
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < 18; LOC1++) {
	nimGCvisit((void*)(*a).s[LOC1], op);
	}
	nimGCvisit((void*)(*a).cfilename, op);
	nimGCvisit((void*)(*a).typecache.data, op);
	nimGCvisit((void*)(*a).forwtypecache.data, op);
	nimGCvisit((void*)(*a).declaredthings.head, op);
	nimGCvisit((void*)(*a).declaredthings.data, op);
	nimGCvisit((void*)(*a).declaredprotos.head, op);
	nimGCvisit((void*)(*a).declaredprotos.data, op);
	nimGCvisit((void*)(*a).headerfiles.head, op);
	nimGCvisit((void*)(*a).headerfiles.tail, op);
	nimGCvisit((void*)(*a).typeinfomarker.head, op);
	nimGCvisit((void*)(*a).typeinfomarker.data, op);
	nimGCvisit((void*)(*a).initproc, op);
	nimGCvisit((void*)(*a).postinitproc, op);
	nimGCvisit((void*)(*a).preinitproc, op);
	nimGCvisit((void*)(*a).typestack, op);
	nimGCvisit((void*)(*a).datacache.data, op);
	nimGCvisit((void*)(*a).forwardedprocs, op);
	nimGCvisit((void*)(*a).typenodesname, op);
	nimGCvisit((void*)(*a).nimtypesname, op);
	LOC2 = 0;
	for (LOC2 = 0; LOC2 < 10; LOC2++) {
	nimGCvisit((void*)(*a).extensionloaders[LOC2], op);
	}
	nimGCvisit((void*)(*a).injectstmt, op);
}
N_NIMCALL(void, TMP1146)(void* p, NI op) {
	TY511155* a;
	NI LOC1;
	a = (TY511155*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1], op);
	}
}

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

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, 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(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, nimGCunref)(void* p) {
	Cell48946* LOC1;
	LOC1 = 0;
	LOC1 = usrtocell_52646(p);
	decref_54604(LOC1);
}

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(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, 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;
}

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

N_NIMCALL(Tcproc511034*, newproc_511229)(Tsym227841* prc, Tcgen511038* module) {
	Tcproc511034* result;
	result = 0;
	result = (Tcproc511034*) newObj((&NTI511030), sizeof(Tcproc511034));
	asgnRefNoCycle((void**) (&(*result).prc), prc);
	asgnRef((void**) (&(*result).module), module);
	{
		if (!!((prc == NIM_NIL))) goto LA3;
		(*result).options = (*prc).options;
	}
	goto LA1;
	LA3: ;
	{
		(*result).options = goptions_169130;
	}
	LA1: ;
	if ((*result).blocks) nimGCunrefNoCycle((*result).blocks);
	(*result).blocks = (TY511106*) newSeqRC1((&NTI511106), ((NI) 1));
	if ((*result).nestedtrystmts) nimGCunrefNoCycle((*result).nestedtrystmts);
	(*result).nestedtrystmts = (Tnodeseq227803*) newSeqRC1((&NTI227803), 0);
	if ((*result).finallysafepoints) nimGCunrefNoCycle((*result).finallysafepoints);
	(*result).finallysafepoints = (TY192365*) newSeqRC1((&NTI192365), 0);
	return result;
}

N_NIMCALL(Tcgen511038*, bmod_511218)(Tsym227841* module) {
	Tcgen511038* result;
	result = 0;
	result = gmodules_511172->data[(*module).position];
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_cgendataInit000)(void) {
	if (gmodules_511172) nimGCunref(gmodules_511172);
	gmodules_511172 = (TY511155*) newSeqRC1((&NTI511155), 0);
	gforwardedprocscounter_511173 = ((NI) 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_cgendataDatInit000)(void) {
static TNimNode* TMP1131[29];
static TNimNode* TMP1138[17];
static TNimNode* TMP1139[7];
static TNimNode TMP1129[56];
NTI511038.size = sizeof(Tcgen511038);
NTI511038.kind = 17;
NTI511038.base = (&NTI279005);
TMP1131[0] = &TMP1129[1];
TMP1129[1].kind = 1;
TMP1129[1].offset = offsetof(Tcgen511038, module);
TMP1129[1].typ = (&NTI227807);
TMP1129[1].name = "module";
TMP1131[1] = &TMP1129[2];
TMP1129[2].kind = 1;
TMP1129[2].offset = offsetof(Tcgen511038, filename);
TMP1129[2].typ = (&NTI149);
TMP1129[2].name = "filename";
TMP1131[2] = &TMP1129[3];
NTI511022.size = sizeof(Tcfilesections511022);
NTI511022.kind = 16;
NTI511022.base = (&NTI178007);
NTI511022.flags = 2;
TMP1129[3].kind = 1;
TMP1129[3].offset = offsetof(Tcgen511038, s);
TMP1129[3].typ = (&NTI511022);
TMP1129[3].name = "s";
TMP1131[3] = &TMP1129[4];
TMP1129[4].kind = 1;
TMP1129[4].offset = offsetof(Tcgen511038, preventstacktrace);
TMP1129[4].typ = (&NTI138);
TMP1129[4].name = "preventStackTrace";
TMP1131[4] = &TMP1129[5];
TMP1129[5].kind = 1;
TMP1129[5].offset = offsetof(Tcgen511038, usesthreadvars);
TMP1129[5].typ = (&NTI138);
TMP1129[5].name = "usesThreadVars";
TMP1131[5] = &TMP1129[6];
TMP1129[6].kind = 1;
TMP1129[6].offset = offsetof(Tcgen511038, framedeclared);
TMP1129[6].typ = (&NTI138);
TMP1129[6].name = "frameDeclared";
TMP1131[6] = &TMP1129[7];
TMP1129[7].kind = 1;
TMP1129[7].offset = offsetof(Tcgen511038, isheaderfile);
TMP1129[7].typ = (&NTI138);
TMP1129[7].name = "isHeaderFile";
TMP1131[7] = &TMP1129[8];
TMP1129[8].kind = 1;
TMP1129[8].offset = offsetof(Tcgen511038, includesstringh);
TMP1129[8].typ = (&NTI138);
TMP1129[8].name = "includesStringh";
TMP1131[8] = &TMP1129[9];
TMP1129[9].kind = 1;
TMP1129[9].offset = offsetof(Tcgen511038, objhaskidsvalid);
TMP1129[9].typ = (&NTI138);
TMP1129[9].name = "objHasKidsValid";
TMP1131[9] = &TMP1129[10];
TMP1129[10].kind = 1;
TMP1129[10].offset = offsetof(Tcgen511038, cfilename);
TMP1129[10].typ = (&NTI149);
TMP1129[10].name = "cfilename";
TMP1131[10] = &TMP1129[11];
TMP1129[11].kind = 1;
TMP1129[11].offset = offsetof(Tcgen511038, typecache);
TMP1129[11].typ = (&NTI227859);
TMP1129[11].name = "typeCache";
TMP1131[11] = &TMP1129[12];
TMP1129[12].kind = 1;
TMP1129[12].offset = offsetof(Tcgen511038, forwtypecache);
TMP1129[12].typ = (&NTI227859);
TMP1129[12].name = "forwTypeCache";
TMP1131[12] = &TMP1129[13];
TMP1129[13].kind = 1;
TMP1129[13].offset = offsetof(Tcgen511038, declaredthings);
TMP1129[13].typ = (&NTI224056);
TMP1129[13].name = "declaredThings";
TMP1131[13] = &TMP1129[14];
TMP1129[14].kind = 1;
TMP1129[14].offset = offsetof(Tcgen511038, declaredprotos);
TMP1129[14].typ = (&NTI224056);
TMP1129[14].name = "declaredProtos";
TMP1131[14] = &TMP1129[15];
TMP1129[15].kind = 1;
TMP1129[15].offset = offsetof(Tcgen511038, headerfiles);
TMP1129[15].typ = (&NTI143028);
TMP1129[15].name = "headerFiles";
TMP1131[15] = &TMP1129[16];
TMP1129[16].kind = 1;
TMP1129[16].offset = offsetof(Tcgen511038, typeinfomarker);
TMP1129[16].typ = (&NTI224056);
TMP1129[16].name = "typeInfoMarker";
TMP1131[16] = &TMP1129[17];
NTI511034.size = sizeof(Tcproc511034);
NTI511034.kind = 18;
NTI511034.base = 0;
TMP1138[0] = &TMP1129[19];
TMP1129[19].kind = 1;
TMP1129[19].offset = offsetof(Tcproc511034, prc);
TMP1129[19].typ = (&NTI227807);
TMP1129[19].name = "prc";
TMP1138[1] = &TMP1129[20];
TMP1129[20].kind = 1;
TMP1129[20].offset = offsetof(Tcproc511034, beforeretneeded);
TMP1129[20].typ = (&NTI138);
TMP1129[20].name = "beforeRetNeeded";
TMP1138[2] = &TMP1129[21];
TMP1129[21].kind = 1;
TMP1129[21].offset = offsetof(Tcproc511034, threadvaraccessed);
TMP1129[21].typ = (&NTI138);
TMP1129[21].name = "threadVarAccessed";
TMP1138[3] = &TMP1129[22];
TMP1129[22].kind = 1;
TMP1129[22].offset = offsetof(Tcproc511034, lastlineinfo);
TMP1129[22].typ = (&NTI192352);
TMP1129[22].name = "lastLineInfo";
TMP1138[4] = &TMP1129[23];
TMP1129[23].kind = 1;
TMP1129[23].offset = offsetof(Tcproc511034, nestedtrystmts);
TMP1129[23].typ = (&NTI227803);
TMP1129[23].name = "nestedTryStmts";
TMP1138[5] = &TMP1129[24];
TMP1129[24].kind = 1;
TMP1129[24].offset = offsetof(Tcproc511034, inexceptblock);
TMP1129[24].typ = (&NTI108);
TMP1129[24].name = "inExceptBlock";
TMP1138[6] = &TMP1129[25];
TMP1129[25].kind = 1;
TMP1129[25].offset = offsetof(Tcproc511034, finallysafepoints);
TMP1129[25].typ = (&NTI192365);
TMP1129[25].name = "finallySafePoints";
TMP1138[7] = &TMP1129[26];
TMP1129[26].kind = 1;
TMP1129[26].offset = offsetof(Tcproc511034, labels);
TMP1129[26].typ = (&NTI4007);
TMP1129[26].name = "labels";
TMP1138[8] = &TMP1129[27];
NTI511032.size = sizeof(Tblock511032);
NTI511032.kind = 18;
NTI511032.base = 0;
NTI511032.flags = 2;
TMP1139[0] = &TMP1129[29];
TMP1129[29].kind = 1;
TMP1129[29].offset = offsetof(Tblock511032, id);
TMP1129[29].typ = (&NTI108);
TMP1129[29].name = "id";
TMP1139[1] = &TMP1129[30];
TMP1129[30].kind = 1;
TMP1129[30].offset = offsetof(Tblock511032, label);
TMP1129[30].typ = (&NTI178007);
TMP1129[30].name = "label";
TMP1139[2] = &TMP1129[31];
NTI511026.size = sizeof(Tcprocsections511026);
NTI511026.kind = 16;
NTI511026.base = (&NTI178007);
NTI511026.flags = 2;
TMP1129[31].kind = 1;
TMP1129[31].offset = offsetof(Tblock511032, sections);
TMP1129[31].typ = (&NTI511026);
TMP1129[31].name = "sections";
TMP1139[3] = &TMP1129[32];
TMP1129[32].kind = 1;
TMP1129[32].offset = offsetof(Tblock511032, isloop);
TMP1129[32].typ = (&NTI138);
TMP1129[32].name = "isLoop";
TMP1139[4] = &TMP1129[33];
TMP1129[33].kind = 1;
TMP1129[33].offset = offsetof(Tblock511032, nestedtrystmts);
TMP1129[33].typ = (&NTI112);
TMP1129[33].name = "nestedTryStmts";
TMP1139[5] = &TMP1129[34];
TMP1129[34].kind = 1;
TMP1129[34].offset = offsetof(Tblock511032, nestedexceptstmts);
TMP1129[34].typ = (&NTI112);
TMP1129[34].name = "nestedExceptStmts";
TMP1139[6] = &TMP1129[35];
TMP1129[35].kind = 1;
TMP1129[35].offset = offsetof(Tblock511032, framelen);
TMP1129[35].typ = (&NTI112);
TMP1129[35].name = "frameLen";
TMP1129[28].len = 7; TMP1129[28].kind = 2; TMP1129[28].sons = &TMP1139[0];
NTI511032.node = &TMP1129[28];
NTI511106.size = sizeof(TY511106*);
NTI511106.kind = 24;
NTI511106.base = (&NTI511032);
NTI511106.flags = 2;
NTI511106.marker = TMP1140;
TMP1129[27].kind = 1;
TMP1129[27].offset = offsetof(Tcproc511034, blocks);
TMP1129[27].typ = (&NTI511106);
TMP1129[27].name = "blocks";
TMP1138[9] = &TMP1129[36];
TMP1129[36].kind = 1;
TMP1129[36].offset = offsetof(Tcproc511034, breakidx);
TMP1129[36].typ = (&NTI108);
TMP1129[36].name = "breakIdx";
TMP1138[10] = &TMP1129[37];
TMP1129[37].kind = 1;
TMP1129[37].offset = offsetof(Tcproc511034, options);
TMP1129[37].typ = (&NTI169017);
TMP1129[37].name = "options";
TMP1138[11] = &TMP1129[38];
TMP1129[38].kind = 1;
TMP1129[38].offset = offsetof(Tcproc511034, maxframelen);
TMP1129[38].typ = (&NTI108);
TMP1129[38].name = "maxFrameLen";
TMP1138[12] = &TMP1129[39];
TMP1129[39].kind = 1;
TMP1129[39].offset = offsetof(Tcproc511034, module);
TMP1129[39].typ = (&NTI511028);
TMP1129[39].name = "module";
TMP1138[13] = &TMP1129[40];
TMP1129[40].kind = 1;
TMP1129[40].offset = offsetof(Tcproc511034, withinloop);
TMP1129[40].typ = (&NTI108);
TMP1129[40].name = "withinLoop";
TMP1138[14] = &TMP1129[41];
TMP1129[41].kind = 1;
TMP1129[41].offset = offsetof(Tcproc511034, splitdecls);
TMP1129[41].typ = (&NTI108);
TMP1129[41].name = "splitDecls";
TMP1138[15] = &TMP1129[42];
TMP1129[42].kind = 1;
TMP1129[42].offset = offsetof(Tcproc511034, gcframeid);
TMP1129[42].typ = (&NTI4007);
TMP1129[42].name = "gcFrameId";
TMP1138[16] = &TMP1129[43];
TMP1129[43].kind = 1;
TMP1129[43].offset = offsetof(Tcproc511034, gcframetype);
TMP1129[43].typ = (&NTI178007);
TMP1129[43].name = "gcFrameType";
TMP1129[18].len = 17; TMP1129[18].kind = 2; TMP1129[18].sons = &TMP1138[0];
NTI511034.node = &TMP1129[18];
NTI511030.size = sizeof(Tcproc511034*);
NTI511030.kind = 22;
NTI511030.base = (&NTI511034);
NTI511030.marker = TMP1141;
TMP1129[17].kind = 1;
TMP1129[17].offset = offsetof(Tcgen511038, initproc);
TMP1129[17].typ = (&NTI511030);
TMP1129[17].name = "initProc";
TMP1131[17] = &TMP1129[44];
TMP1129[44].kind = 1;
TMP1129[44].offset = offsetof(Tcgen511038, postinitproc);
TMP1129[44].typ = (&NTI511030);
TMP1129[44].name = "postInitProc";
TMP1131[18] = &TMP1129[45];
TMP1129[45].kind = 1;
TMP1129[45].offset = offsetof(Tcgen511038, preinitproc);
TMP1129[45].typ = (&NTI511030);
TMP1129[45].name = "preInitProc";
TMP1131[19] = &TMP1129[46];
TMP1129[46].kind = 1;
TMP1129[46].offset = offsetof(Tcgen511038, typestack);
TMP1129[46].typ = (&NTI227843);
TMP1129[46].name = "typeStack";
TMP1131[20] = &TMP1129[47];
TMP1129[47].kind = 1;
TMP1129[47].offset = offsetof(Tcgen511038, datacache);
TMP1129[47].typ = (&NTI227871);
TMP1129[47].name = "dataCache";
TMP1131[21] = &TMP1129[48];
TMP1129[48].kind = 1;
TMP1129[48].offset = offsetof(Tcgen511038, forwardedprocs);
TMP1129[48].typ = (&NTI227811);
TMP1129[48].name = "forwardedProcs";
TMP1131[22] = &TMP1129[49];
TMP1129[49].kind = 1;
TMP1129[49].offset = offsetof(Tcgen511038, typenodes);
TMP1129[49].typ = (&NTI108);
TMP1129[49].name = "typeNodes";
TMP1131[23] = &TMP1129[50];
TMP1129[50].kind = 1;
TMP1129[50].offset = offsetof(Tcgen511038, nimtypes);
TMP1129[50].typ = (&NTI108);
TMP1129[50].name = "nimTypes";
TMP1131[24] = &TMP1129[51];
TMP1129[51].kind = 1;
TMP1129[51].offset = offsetof(Tcgen511038, typenodesname);
TMP1129[51].typ = (&NTI178007);
TMP1129[51].name = "typeNodesName";
TMP1131[25] = &TMP1129[52];
TMP1129[52].kind = 1;
TMP1129[52].offset = offsetof(Tcgen511038, nimtypesname);
TMP1129[52].typ = (&NTI178007);
TMP1129[52].name = "nimTypesName";
TMP1131[26] = &TMP1129[53];
TMP1129[53].kind = 1;
TMP1129[53].offset = offsetof(Tcgen511038, labels);
TMP1129[53].typ = (&NTI4007);
TMP1129[53].name = "labels";
TMP1131[27] = &TMP1129[54];
NTI511144.size = sizeof(TY511144);
NTI511144.kind = 16;
NTI511144.base = (&NTI178007);
NTI511144.flags = 2;
TMP1129[54].kind = 1;
TMP1129[54].offset = offsetof(Tcgen511038, extensionloaders);
TMP1129[54].typ = (&NTI511144);
TMP1129[54].name = "extensionLoaders";
TMP1131[28] = &TMP1129[55];
TMP1129[55].kind = 1;
TMP1129[55].offset = offsetof(Tcgen511038, injectstmt);
TMP1129[55].typ = (&NTI178007);
TMP1129[55].name = "injectStmt";
TMP1129[0].len = 29; TMP1129[0].kind = 2; TMP1129[0].sons = &TMP1131[0];
NTI511038.node = &TMP1129[0];
NTI511028.size = sizeof(Tcgen511038*);
NTI511028.kind = 22;
NTI511028.base = (&NTI511038);
NTI511028.marker = TMP1145;
NTI511155.size = sizeof(TY511155*);
NTI511155.kind = 24;
NTI511155.base = (&NTI511028);
NTI511155.marker = TMP1146;
}

