/* 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 Ropeobj176009 Ropeobj176009;
typedef struct TY509155 TY509155;
typedef struct Tcgen509038 Tcgen509038;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tpasscontext277005 Tpasscontext277005;
typedef struct TNimObject TNimObject;
typedef struct Tsym225841 Tsym225841;
typedef struct NimStringDesc NimStringDesc;
typedef struct Tidtable225859 Tidtable225859;
typedef struct Tidpairseq225857 Tidpairseq225857;
typedef struct Intset222056 Intset222056;
typedef struct Trunk222052 Trunk222052;
typedef struct Trunkseq222054 Trunkseq222054;
typedef struct Tlinkedlist140028 Tlinkedlist140028;
typedef struct Tlistentry140022 Tlistentry140022;
typedef struct Tcproc509034 Tcproc509034;
typedef struct Ttypeseq225843 Ttypeseq225843;
typedef struct Tnodetable225871 Tnodetable225871;
typedef struct Tnodepairseq225869 Tnodepairseq225869;
typedef struct Tsymseq225811 Tsymseq225811;
typedef struct Tlineinfo190352 Tlineinfo190352;
typedef struct Tnodeseq225803 Tnodeseq225803;
typedef struct TY190365 TY190365;
typedef struct TY509106 TY509106;
typedef struct Tblock509032 Tblock509032;
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 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 Tidobj198015 Tidobj198015;
typedef struct Tscope225835 Tscope225835;
typedef struct TY225944 TY225944;
typedef struct Tstrtable225813 Tstrtable225813;
typedef struct Ttype225847 Ttype225847;
typedef struct Tident198021 Tident198021;
typedef struct Tnode225809 Tnode225809;
typedef struct Tloc225823 Tloc225823;
typedef struct Tlib225827 Tlib225827;
typedef struct Tidpair225855 Tidpair225855;
typedef struct Tnodepair225867 Tnodepair225867;
typedef struct Basechunk30841 Basechunk30841;
typedef struct Freecell30833 Freecell30833;
typedef struct Tinstantiation225831 Tinstantiation225831;
typedef struct TY225932 TY225932;
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  Tpasscontext277005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef Ropeobj176009* Tcfilesections509022[18];
struct  Tidtable225859  {
NI counter;
Tidpairseq225857* data;
};
struct  Intset222056  {
NI counter;
NI max;
Trunk222052* head;
Trunkseq222054* data;
};
struct  Tlinkedlist140028  {
Tlistentry140022* head;
Tlistentry140022* tail;
NI counter;
};
struct  Tnodetable225871  {
NI counter;
Tnodepairseq225869* data;
};
typedef Ropeobj176009* TY509144[10];
struct  Tcgen509038  {
  Tpasscontext277005 Sup;
Tsym225841* module;
NimStringDesc* filename;
Tcfilesections509022 s;
NIM_BOOL preventstacktrace;
NIM_BOOL usesthreadvars;
NIM_BOOL framedeclared;
NIM_BOOL isheaderfile;
NIM_BOOL includesstringh;
NIM_BOOL objhaskidsvalid;
NimStringDesc* cfilename;
Tidtable225859 typecache;
Tidtable225859 forwtypecache;
Intset222056 declaredthings;
Intset222056 declaredprotos;
Tlinkedlist140028 headerfiles;
Intset222056 typeinfomarker;
Tcproc509034* initproc;
Tcproc509034* postinitproc;
Tcproc509034* preinitproc;
Ttypeseq225843* typestack;
Tnodetable225871 datacache;
Tsymseq225811* forwardedprocs;
NI typenodes;
NI nimtypes;
Ropeobj176009* typenodesname;
Ropeobj176009* nimtypesname;
NI labels;
TY509144 extensionloaders;
Ropeobj176009* injectstmt;
};
struct  Tlineinfo190352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tcproc509034  {
Tsym225841* prc;
NIM_BOOL beforeretneeded;
NIM_BOOL threadvaraccessed;
Tlineinfo190352 lastlineinfo;
Tnodeseq225803* nestedtrystmts;
NI inexceptblock;
TY190365* finallysafepoints;
NI labels;
TY509106* blocks;
NI breakidx;
NU32 options;
NI maxframelen;
Tcgen509038* module;
NI withinloop;
NI splitdecls;
NI gcframeid;
Ropeobj176009* gcframetype;
};
typedef Ropeobj176009* Tcprocsections509026[3];
struct  Tblock509032  {
NI id;
Ropeobj176009* label;
Tcprocsections509026 sections;
NIM_BOOL isloop;
NI16 nestedtrystmts;
NI16 nestedexceptstmts;
NI16 framelen;
};
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 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;
Cellseq48963 zct;
Cellseq48963 decstack;
Cellset48959 cycleroots;
Cellseq48963 tempstack;
NI recgclock;
Memregion30891 region;
Gcstat51014 stat;
};
struct  Tidobj198015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable225813  {
NI counter;
Tsymseq225811* data;
};
struct  Tloc225823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype225847* t;
Ropeobj176009* r;
Ropeobj176009* heaproot;
};
struct  Tsym225841  {
  Tidobj198015 Sup;
NU8 kind;
union{
struct {Ttypeseq225843* typeinstcache;
Tscope225835* typscope;
} S1;
struct {TY225944* procinstcache;
Tsym225841* gcunsafetyreason;
} S2;
struct {TY225944* usedgenerics;
Tstrtable225813 tab;
} S3;
struct {Tsym225841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype225847* typ;
Tident198021* name;
Tlineinfo190352 info;
Tsym225841* owner;
NU32 flags;
Tnode225809* ast;
NU32 options;
NI position;
NI offset;
Tloc225823 loc;
Tlib225827* annex;
Tnode225809* constraint;
};
struct  Ropeobj176009  {
  TNimObject Sup;
Ropeobj176009* left;
Ropeobj176009* right;
NI length;
NimStringDesc* data;
};
struct  Tidpair225855  {
Tidobj198015* key;
TNimObject* val;
};
typedef NI TY30822[8];
struct  Trunk222052  {
Trunk222052* next;
NI key;
TY30822 bits;
};
struct  Tlistentry140022  {
  TNimObject Sup;
Tlistentry140022* prev;
Tlistentry140022* next;
};
struct  Tnodepair225867  {
NI h;
Tnode225809* key;
NI val;
};
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
struct  Pagedesc48955  {
Pagedesc48955* 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  Tscope225835  {
NI depthlevel;
Tstrtable225813 symbols;
Tnodeseq225803* usingsyms;
Tscope225835* parent;
};
struct  Ttype225847  {
  Tidobj198015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq225843* sons;
Tnode225809* n;
Tsym225841* owner;
Tsym225841* sym;
Tsym225841* destructor;
Tsym225841* deepcopy;
Tsym225841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc225823 loc;
};
struct  Tident198021  {
  Tidobj198015 Sup;
NimStringDesc* s;
Tident198021* next;
NI h;
};
struct  Tnode225809  {
Ttype225847* typ;
Tlineinfo190352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym225841* sym;
} S4;
struct {Tident198021* ident;
} S5;
struct {Tnodeseq225803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tlib225827  {
  Tlistentry140022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj176009* name;
Tnode225809* path;
};
struct  Freecell30833  {
Freecell30833* next;
NI zerofield;
};
struct  Tinstantiation225831  {
Tsym225841* sym;
Ttypeseq225843* concretetypes;
TY225932* usedby;
NI compilesid;
};
struct TY509155 {
  TGenericSeq Sup;
  Tcgen509038* data[SEQ_DECL_SIZE];
};
struct TY509106 {
  TGenericSeq Sup;
  Tblock509032 data[SEQ_DECL_SIZE];
};
struct Tnodeseq225803 {
  TGenericSeq Sup;
  Tnode225809* data[SEQ_DECL_SIZE];
};
struct TY190365 {
  TGenericSeq Sup;
  Ropeobj176009* data[SEQ_DECL_SIZE];
};
struct Tidpairseq225857 {
  TGenericSeq Sup;
  Tidpair225855 data[SEQ_DECL_SIZE];
};
struct Trunkseq222054 {
  TGenericSeq Sup;
  Trunk222052* data[SEQ_DECL_SIZE];
};
struct Ttypeseq225843 {
  TGenericSeq Sup;
  Ttype225847* data[SEQ_DECL_SIZE];
};
struct Tnodepairseq225869 {
  TGenericSeq Sup;
  Tnodepair225867 data[SEQ_DECL_SIZE];
};
struct Tsymseq225811 {
  TGenericSeq Sup;
  Tsym225841* data[SEQ_DECL_SIZE];
};
struct TY225944 {
  TGenericSeq Sup;
  Tinstantiation225831* data[SEQ_DECL_SIZE];
};
struct TY225932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP1134)(void* p, NI op);
N_NIMCALL(void, TMP1135)(void* p, NI op);
N_NIMCALL(void, TMP1139)(void* p, NI op);
N_NIMCALL(void, TMP1140)(void* p, NI op);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_54604)(Cell48947* c);
static N_INLINE(void, rtladdzct_54204)(Cell48947* c);
N_NOINLINE(void, addzct_52617)(Cellseq48963* s, 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(Cell48947*, 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)(Cell48947* c);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
Ropeobj176009* mainmodprocs_509150;
Ropeobj176009* mainmodinit_509151;
Ropeobj176009* othermodsinit_509152;
Ropeobj176009* maindatinit_509153;
Ropeobj176009* gmapping_509154;
TY509155* gmodules_509172;
extern TNimType NTI277005; /* TPassContext */
TNimType NTI509038; /* TCGen */
extern TNimType NTI225807; /* PSym */
extern TNimType NTI149; /* string */
extern TNimType NTI176007; /* Rope */
TNimType NTI509022; /* TCFileSections */
extern TNimType NTI138; /* bool */
extern TNimType NTI225859; /* TIdTable */
extern TNimType NTI222056; /* IntSet */
extern TNimType NTI140028; /* TLinkedList */
TNimType NTI509034; /* TCProc */
extern TNimType NTI190352; /* TLineInfo */
extern TNimType NTI225803; /* TNodeSeq */
extern TNimType NTI108; /* int */
extern TNimType NTI190365; /* seq[Rope] */
extern TNimType NTI4007; /* Natural */
TNimType NTI509032; /* TBlock */
TNimType NTI509026; /* TCProcSections */
extern TNimType NTI112; /* int16 */
TNimType NTI509106; /* seq[TBlock] */
extern TNimType NTI167017; /* TOptions */
TNimType NTI509030; /* BProc */
extern TNimType NTI225843; /* TTypeSeq */
extern TNimType NTI225871; /* TNodeTable */
extern TNimType NTI225811; /* TSymSeq */
TNimType NTI509144; /* array[48..57, Rope] */
TNimType NTI509028; /* BModule */
TNimType NTI509155; /* seq[BModule] */
extern Gcheap51018 gch_51059;
NI gforwardedprocscounter_509173;
extern NU32 goptions_167130;
N_NIMCALL(void, TMP1134)(void* p, NI op) {
	TY509106* a;
	NI LOC1;
	NI LOC2;
	a = (TY509106*)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, TMP1135)(void* p, NI op) {
	Tcproc509034* a;
	a = (Tcproc509034*)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, TMP1139)(void* p, NI op) {
	Tcgen509038* a;
	NI LOC1;
	NI LOC2;
	a = (Tcgen509038*)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, TMP1140)(void* p, NI op) {
	TY509155* a;
	NI LOC1;
	a = (TY509155*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1], op);
	}
}

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

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, decref_54604)(Cell48947* 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(Cell48947*, usrtocell_52646)(void* usr) {
	Cell48947* result;
	result = 0;
	result = ((Cell48947*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((NI)sizeof(Cell48947))))));
	return result;
}

static N_INLINE(void, nimGCunref)(void* p) {
	Cell48947* LOC1;
	LOC1 = 0;
	LOC1 = usrtocell_52646(p);
	decref_54604(LOC1);
}

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 (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA11;
			rtladdzct_54204(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

static N_INLINE(void, incref_55022)(Cell48947* 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) {
	{
		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;
}

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

N_NIMCALL(Tcproc509034*, newproc_509229)(Tsym225841* prc, Tcgen509038* module) {
	Tcproc509034* result;
	result = 0;
	result = (Tcproc509034*) newObj((&NTI509030), sizeof(Tcproc509034));
	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_167130;
	}
	LA1: ;
	if ((*result).blocks) nimGCunrefNoCycle((*result).blocks);
	(*result).blocks = (TY509106*) newSeqRC1((&NTI509106), ((NI) 1));
	if ((*result).nestedtrystmts) nimGCunrefNoCycle((*result).nestedtrystmts);
	(*result).nestedtrystmts = (Tnodeseq225803*) newSeqRC1((&NTI225803), 0);
	if ((*result).finallysafepoints) nimGCunrefNoCycle((*result).finallysafepoints);
	(*result).finallysafepoints = (TY190365*) newSeqRC1((&NTI190365), 0);
	return result;
}

N_NIMCALL(Tcgen509038*, bmod_509218)(Tsym225841* module) {
	Tcgen509038* result;
	result = 0;
	result = gmodules_509172->data[(*module).position];
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_cgendataInit000)(void) {
	if (gmodules_509172) nimGCunref(gmodules_509172);
	gmodules_509172 = (TY509155*) newSeqRC1((&NTI509155), 0);
	gforwardedprocscounter_509173 = ((NI) 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_cgendataDatInit000)(void) {
static TNimNode* TMP1125[29];
static TNimNode* TMP1132[17];
static TNimNode* TMP1133[7];
static TNimNode TMP1123[56];
NTI509038.size = sizeof(Tcgen509038);
NTI509038.kind = 17;
NTI509038.base = (&NTI277005);
TMP1125[0] = &TMP1123[1];
TMP1123[1].kind = 1;
TMP1123[1].offset = offsetof(Tcgen509038, module);
TMP1123[1].typ = (&NTI225807);
TMP1123[1].name = "module";
TMP1125[1] = &TMP1123[2];
TMP1123[2].kind = 1;
TMP1123[2].offset = offsetof(Tcgen509038, filename);
TMP1123[2].typ = (&NTI149);
TMP1123[2].name = "filename";
TMP1125[2] = &TMP1123[3];
NTI509022.size = sizeof(Tcfilesections509022);
NTI509022.kind = 16;
NTI509022.base = (&NTI176007);
NTI509022.flags = 2;
TMP1123[3].kind = 1;
TMP1123[3].offset = offsetof(Tcgen509038, s);
TMP1123[3].typ = (&NTI509022);
TMP1123[3].name = "s";
TMP1125[3] = &TMP1123[4];
TMP1123[4].kind = 1;
TMP1123[4].offset = offsetof(Tcgen509038, preventstacktrace);
TMP1123[4].typ = (&NTI138);
TMP1123[4].name = "preventStackTrace";
TMP1125[4] = &TMP1123[5];
TMP1123[5].kind = 1;
TMP1123[5].offset = offsetof(Tcgen509038, usesthreadvars);
TMP1123[5].typ = (&NTI138);
TMP1123[5].name = "usesThreadVars";
TMP1125[5] = &TMP1123[6];
TMP1123[6].kind = 1;
TMP1123[6].offset = offsetof(Tcgen509038, framedeclared);
TMP1123[6].typ = (&NTI138);
TMP1123[6].name = "frameDeclared";
TMP1125[6] = &TMP1123[7];
TMP1123[7].kind = 1;
TMP1123[7].offset = offsetof(Tcgen509038, isheaderfile);
TMP1123[7].typ = (&NTI138);
TMP1123[7].name = "isHeaderFile";
TMP1125[7] = &TMP1123[8];
TMP1123[8].kind = 1;
TMP1123[8].offset = offsetof(Tcgen509038, includesstringh);
TMP1123[8].typ = (&NTI138);
TMP1123[8].name = "includesStringh";
TMP1125[8] = &TMP1123[9];
TMP1123[9].kind = 1;
TMP1123[9].offset = offsetof(Tcgen509038, objhaskidsvalid);
TMP1123[9].typ = (&NTI138);
TMP1123[9].name = "objHasKidsValid";
TMP1125[9] = &TMP1123[10];
TMP1123[10].kind = 1;
TMP1123[10].offset = offsetof(Tcgen509038, cfilename);
TMP1123[10].typ = (&NTI149);
TMP1123[10].name = "cfilename";
TMP1125[10] = &TMP1123[11];
TMP1123[11].kind = 1;
TMP1123[11].offset = offsetof(Tcgen509038, typecache);
TMP1123[11].typ = (&NTI225859);
TMP1123[11].name = "typeCache";
TMP1125[11] = &TMP1123[12];
TMP1123[12].kind = 1;
TMP1123[12].offset = offsetof(Tcgen509038, forwtypecache);
TMP1123[12].typ = (&NTI225859);
TMP1123[12].name = "forwTypeCache";
TMP1125[12] = &TMP1123[13];
TMP1123[13].kind = 1;
TMP1123[13].offset = offsetof(Tcgen509038, declaredthings);
TMP1123[13].typ = (&NTI222056);
TMP1123[13].name = "declaredThings";
TMP1125[13] = &TMP1123[14];
TMP1123[14].kind = 1;
TMP1123[14].offset = offsetof(Tcgen509038, declaredprotos);
TMP1123[14].typ = (&NTI222056);
TMP1123[14].name = "declaredProtos";
TMP1125[14] = &TMP1123[15];
TMP1123[15].kind = 1;
TMP1123[15].offset = offsetof(Tcgen509038, headerfiles);
TMP1123[15].typ = (&NTI140028);
TMP1123[15].name = "headerFiles";
TMP1125[15] = &TMP1123[16];
TMP1123[16].kind = 1;
TMP1123[16].offset = offsetof(Tcgen509038, typeinfomarker);
TMP1123[16].typ = (&NTI222056);
TMP1123[16].name = "typeInfoMarker";
TMP1125[16] = &TMP1123[17];
NTI509034.size = sizeof(Tcproc509034);
NTI509034.kind = 18;
NTI509034.base = 0;
TMP1132[0] = &TMP1123[19];
TMP1123[19].kind = 1;
TMP1123[19].offset = offsetof(Tcproc509034, prc);
TMP1123[19].typ = (&NTI225807);
TMP1123[19].name = "prc";
TMP1132[1] = &TMP1123[20];
TMP1123[20].kind = 1;
TMP1123[20].offset = offsetof(Tcproc509034, beforeretneeded);
TMP1123[20].typ = (&NTI138);
TMP1123[20].name = "beforeRetNeeded";
TMP1132[2] = &TMP1123[21];
TMP1123[21].kind = 1;
TMP1123[21].offset = offsetof(Tcproc509034, threadvaraccessed);
TMP1123[21].typ = (&NTI138);
TMP1123[21].name = "threadVarAccessed";
TMP1132[3] = &TMP1123[22];
TMP1123[22].kind = 1;
TMP1123[22].offset = offsetof(Tcproc509034, lastlineinfo);
TMP1123[22].typ = (&NTI190352);
TMP1123[22].name = "lastLineInfo";
TMP1132[4] = &TMP1123[23];
TMP1123[23].kind = 1;
TMP1123[23].offset = offsetof(Tcproc509034, nestedtrystmts);
TMP1123[23].typ = (&NTI225803);
TMP1123[23].name = "nestedTryStmts";
TMP1132[5] = &TMP1123[24];
TMP1123[24].kind = 1;
TMP1123[24].offset = offsetof(Tcproc509034, inexceptblock);
TMP1123[24].typ = (&NTI108);
TMP1123[24].name = "inExceptBlock";
TMP1132[6] = &TMP1123[25];
TMP1123[25].kind = 1;
TMP1123[25].offset = offsetof(Tcproc509034, finallysafepoints);
TMP1123[25].typ = (&NTI190365);
TMP1123[25].name = "finallySafePoints";
TMP1132[7] = &TMP1123[26];
TMP1123[26].kind = 1;
TMP1123[26].offset = offsetof(Tcproc509034, labels);
TMP1123[26].typ = (&NTI4007);
TMP1123[26].name = "labels";
TMP1132[8] = &TMP1123[27];
NTI509032.size = sizeof(Tblock509032);
NTI509032.kind = 18;
NTI509032.base = 0;
NTI509032.flags = 2;
TMP1133[0] = &TMP1123[29];
TMP1123[29].kind = 1;
TMP1123[29].offset = offsetof(Tblock509032, id);
TMP1123[29].typ = (&NTI108);
TMP1123[29].name = "id";
TMP1133[1] = &TMP1123[30];
TMP1123[30].kind = 1;
TMP1123[30].offset = offsetof(Tblock509032, label);
TMP1123[30].typ = (&NTI176007);
TMP1123[30].name = "label";
TMP1133[2] = &TMP1123[31];
NTI509026.size = sizeof(Tcprocsections509026);
NTI509026.kind = 16;
NTI509026.base = (&NTI176007);
NTI509026.flags = 2;
TMP1123[31].kind = 1;
TMP1123[31].offset = offsetof(Tblock509032, sections);
TMP1123[31].typ = (&NTI509026);
TMP1123[31].name = "sections";
TMP1133[3] = &TMP1123[32];
TMP1123[32].kind = 1;
TMP1123[32].offset = offsetof(Tblock509032, isloop);
TMP1123[32].typ = (&NTI138);
TMP1123[32].name = "isLoop";
TMP1133[4] = &TMP1123[33];
TMP1123[33].kind = 1;
TMP1123[33].offset = offsetof(Tblock509032, nestedtrystmts);
TMP1123[33].typ = (&NTI112);
TMP1123[33].name = "nestedTryStmts";
TMP1133[5] = &TMP1123[34];
TMP1123[34].kind = 1;
TMP1123[34].offset = offsetof(Tblock509032, nestedexceptstmts);
TMP1123[34].typ = (&NTI112);
TMP1123[34].name = "nestedExceptStmts";
TMP1133[6] = &TMP1123[35];
TMP1123[35].kind = 1;
TMP1123[35].offset = offsetof(Tblock509032, framelen);
TMP1123[35].typ = (&NTI112);
TMP1123[35].name = "frameLen";
TMP1123[28].len = 7; TMP1123[28].kind = 2; TMP1123[28].sons = &TMP1133[0];
NTI509032.node = &TMP1123[28];
NTI509106.size = sizeof(TY509106*);
NTI509106.kind = 24;
NTI509106.base = (&NTI509032);
NTI509106.flags = 2;
NTI509106.marker = TMP1134;
TMP1123[27].kind = 1;
TMP1123[27].offset = offsetof(Tcproc509034, blocks);
TMP1123[27].typ = (&NTI509106);
TMP1123[27].name = "blocks";
TMP1132[9] = &TMP1123[36];
TMP1123[36].kind = 1;
TMP1123[36].offset = offsetof(Tcproc509034, breakidx);
TMP1123[36].typ = (&NTI108);
TMP1123[36].name = "breakIdx";
TMP1132[10] = &TMP1123[37];
TMP1123[37].kind = 1;
TMP1123[37].offset = offsetof(Tcproc509034, options);
TMP1123[37].typ = (&NTI167017);
TMP1123[37].name = "options";
TMP1132[11] = &TMP1123[38];
TMP1123[38].kind = 1;
TMP1123[38].offset = offsetof(Tcproc509034, maxframelen);
TMP1123[38].typ = (&NTI108);
TMP1123[38].name = "maxFrameLen";
TMP1132[12] = &TMP1123[39];
TMP1123[39].kind = 1;
TMP1123[39].offset = offsetof(Tcproc509034, module);
TMP1123[39].typ = (&NTI509028);
TMP1123[39].name = "module";
TMP1132[13] = &TMP1123[40];
TMP1123[40].kind = 1;
TMP1123[40].offset = offsetof(Tcproc509034, withinloop);
TMP1123[40].typ = (&NTI108);
TMP1123[40].name = "withinLoop";
TMP1132[14] = &TMP1123[41];
TMP1123[41].kind = 1;
TMP1123[41].offset = offsetof(Tcproc509034, splitdecls);
TMP1123[41].typ = (&NTI108);
TMP1123[41].name = "splitDecls";
TMP1132[15] = &TMP1123[42];
TMP1123[42].kind = 1;
TMP1123[42].offset = offsetof(Tcproc509034, gcframeid);
TMP1123[42].typ = (&NTI4007);
TMP1123[42].name = "gcFrameId";
TMP1132[16] = &TMP1123[43];
TMP1123[43].kind = 1;
TMP1123[43].offset = offsetof(Tcproc509034, gcframetype);
TMP1123[43].typ = (&NTI176007);
TMP1123[43].name = "gcFrameType";
TMP1123[18].len = 17; TMP1123[18].kind = 2; TMP1123[18].sons = &TMP1132[0];
NTI509034.node = &TMP1123[18];
NTI509030.size = sizeof(Tcproc509034*);
NTI509030.kind = 22;
NTI509030.base = (&NTI509034);
NTI509030.marker = TMP1135;
TMP1123[17].kind = 1;
TMP1123[17].offset = offsetof(Tcgen509038, initproc);
TMP1123[17].typ = (&NTI509030);
TMP1123[17].name = "initProc";
TMP1125[17] = &TMP1123[44];
TMP1123[44].kind = 1;
TMP1123[44].offset = offsetof(Tcgen509038, postinitproc);
TMP1123[44].typ = (&NTI509030);
TMP1123[44].name = "postInitProc";
TMP1125[18] = &TMP1123[45];
TMP1123[45].kind = 1;
TMP1123[45].offset = offsetof(Tcgen509038, preinitproc);
TMP1123[45].typ = (&NTI509030);
TMP1123[45].name = "preInitProc";
TMP1125[19] = &TMP1123[46];
TMP1123[46].kind = 1;
TMP1123[46].offset = offsetof(Tcgen509038, typestack);
TMP1123[46].typ = (&NTI225843);
TMP1123[46].name = "typeStack";
TMP1125[20] = &TMP1123[47];
TMP1123[47].kind = 1;
TMP1123[47].offset = offsetof(Tcgen509038, datacache);
TMP1123[47].typ = (&NTI225871);
TMP1123[47].name = "dataCache";
TMP1125[21] = &TMP1123[48];
TMP1123[48].kind = 1;
TMP1123[48].offset = offsetof(Tcgen509038, forwardedprocs);
TMP1123[48].typ = (&NTI225811);
TMP1123[48].name = "forwardedProcs";
TMP1125[22] = &TMP1123[49];
TMP1123[49].kind = 1;
TMP1123[49].offset = offsetof(Tcgen509038, typenodes);
TMP1123[49].typ = (&NTI108);
TMP1123[49].name = "typeNodes";
TMP1125[23] = &TMP1123[50];
TMP1123[50].kind = 1;
TMP1123[50].offset = offsetof(Tcgen509038, nimtypes);
TMP1123[50].typ = (&NTI108);
TMP1123[50].name = "nimTypes";
TMP1125[24] = &TMP1123[51];
TMP1123[51].kind = 1;
TMP1123[51].offset = offsetof(Tcgen509038, typenodesname);
TMP1123[51].typ = (&NTI176007);
TMP1123[51].name = "typeNodesName";
TMP1125[25] = &TMP1123[52];
TMP1123[52].kind = 1;
TMP1123[52].offset = offsetof(Tcgen509038, nimtypesname);
TMP1123[52].typ = (&NTI176007);
TMP1123[52].name = "nimTypesName";
TMP1125[26] = &TMP1123[53];
TMP1123[53].kind = 1;
TMP1123[53].offset = offsetof(Tcgen509038, labels);
TMP1123[53].typ = (&NTI4007);
TMP1123[53].name = "labels";
TMP1125[27] = &TMP1123[54];
NTI509144.size = sizeof(TY509144);
NTI509144.kind = 16;
NTI509144.base = (&NTI176007);
NTI509144.flags = 2;
TMP1123[54].kind = 1;
TMP1123[54].offset = offsetof(Tcgen509038, extensionloaders);
TMP1123[54].typ = (&NTI509144);
TMP1123[54].name = "extensionLoaders";
TMP1125[28] = &TMP1123[55];
TMP1123[55].kind = 1;
TMP1123[55].offset = offsetof(Tcgen509038, injectstmt);
TMP1123[55].typ = (&NTI176007);
TMP1123[55].name = "injectStmt";
TMP1123[0].len = 29; TMP1123[0].kind = 2; TMP1123[0].sons = &TMP1125[0];
NTI509038.node = &TMP1123[0];
NTI509028.size = sizeof(Tcgen509038*);
NTI509028.kind = 22;
NTI509028.base = (&NTI509038);
NTI509028.marker = TMP1139;
NTI509155.size = sizeof(TY509155*);
NTI509155.kind = 24;
NTI509155.base = (&NTI509028);
NTI509155.marker = TMP1140;
}

