/* 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 Tlinkedlist141028 Tlinkedlist141028;
typedef struct Tlistentry141022 Tlistentry141022;
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 Cell49146 Cell49146;
typedef struct Cellseq49162 Cellseq49162;
typedef struct Gcheap51218 Gcheap51218;
typedef struct Gcstack51216 Gcstack51216;
typedef struct Cellset49158 Cellset49158;
typedef struct Pagedesc49154 Pagedesc49154;
typedef struct Memregion31091 Memregion31091;
typedef struct Smallchunk31043 Smallchunk31043;
typedef struct Llchunk31085 Llchunk31085;
typedef struct Bigchunk31045 Bigchunk31045;
typedef struct Intset31017 Intset31017;
typedef struct Trunk31013 Trunk31013;
typedef struct Avlnode31089 Avlnode31089;
typedef struct Gcstat51214 Gcstat51214;
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 Basechunk31041 Basechunk31041;
typedef struct Freecell31033 Freecell31033;
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  Tlinkedlist141028  {
Tlistentry141022* head;
Tlistentry141022* 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;
Tlinkedlist141028 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  Cell49146  {
NI refcount;
TNimType* typ;
};
struct  Cellseq49162  {
NI len;
NI cap;
Cell49146** d;
};
struct  Cellset49158  {
NI counter;
NI max;
Pagedesc49154* head;
Pagedesc49154** data;
};
typedef Smallchunk31043* TY31106[512];
typedef Trunk31013* Trunkbuckets31015[256];
struct  Intset31017  {
Trunkbuckets31015 data;
};
struct  Memregion31091  {
NI minlargeobj;
NI maxlargeobj;
TY31106 freesmallchunks;
Llchunk31085* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk31045* freechunkslist;
Intset31017 chunkstarts;
Avlnode31089* root;
Avlnode31089* deleted;
Avlnode31089* last;
Avlnode31089* freeavlnodes;
};
struct  Gcstat51214  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51218  {
Gcstack51216* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq49162 zct;
Cellseq49162 decstack;
Cellset49158 cycleroots;
Cellseq49162 tempstack;
NI recgclock;
Memregion31091 region;
Gcstat51214 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 TY31022[8];
struct  Trunk222052  {
Trunk222052* next;
NI key;
TY31022 bits;
};
struct  Tlistentry141022  {
  TNimObject Sup;
Tlistentry141022* prev;
Tlistentry141022* next;
};
struct  Tnodepair225867  {
NI h;
Tnode225809* key;
NI val;
};
struct  Gcstack51216  {
Gcstack51216* prev;
Gcstack51216* next;
void* starts;
void* pos;
NI maxstacksize;
};
struct  Pagedesc49154  {
Pagedesc49154* next;
NI key;
TY31022 bits;
};
struct  Basechunk31041  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk31043  {
  Basechunk31041 Sup;
Smallchunk31043* next;
Smallchunk31043* prev;
Freecell31033* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk31085  {
NI size;
NI acc;
Llchunk31085* next;
};
struct  Bigchunk31045  {
  Basechunk31041 Sup;
Bigchunk31045* next;
Bigchunk31045* prev;
NI align;
NF data;
};
struct  Trunk31013  {
Trunk31013* next;
NI key;
TY31022 bits;
};
typedef Avlnode31089* TY31096[2];
struct  Avlnode31089  {
TY31096 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  {
  Tlistentry141022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj176009* name;
Tnode225809* path;
};
struct  Freecell31033  {
Freecell31033* 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, TMP1132)(void* p, NI op);
N_NIMCALL(void, TMP1133)(void* p, NI op);
N_NIMCALL(void, TMP1137)(void* p, NI op);
N_NIMCALL(void, TMP1138)(void* p, NI op);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_54804)(Cell49146* c);
static N_INLINE(void, rtladdzct_54404)(Cell49146* c);
N_NOINLINE(void, addzct_52817)(Cellseq49162* s, Cell49146* c);
static N_INLINE(NIM_BOOL, canbecycleroot_52867)(Cell49146* c);
static N_INLINE(void, rtladdcycleroot_53623)(Cell49146* c);
N_NOINLINE(void, incl_49865)(Cellset49158* s, Cell49146* cell);
static N_INLINE(Cell49146*, usrtocell_52846)(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_55222)(Cell49146* 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 NTI141028; /* 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 Gcheap51218 gch_51259;
NI gforwardedprocscounter_509173;
extern NU32 goptions_167130;
N_NIMCALL(void, TMP1132)(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, TMP1133)(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, TMP1137)(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, TMP1138)(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_54404)(Cell49146* c) {
	addzct_52817((&gch_51259.zct), c);
}

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

static N_INLINE(void, rtladdcycleroot_53623)(Cell49146* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_49865((&gch_51259.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, decref_54804)(Cell49146* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_54404(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_52867(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_53623(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

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

static N_INLINE(void, nimGCunref)(void* p) {
	Cell49146* LOC1;
	LOC1 = 0;
	LOC1 = usrtocell_52846(p);
	decref_54804(LOC1);
}

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

static N_INLINE(void, incref_55222)(Cell49146* c) {
	(*c).refcount = (NI)((NU64)((*c).refcount) + (NU64)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_52867(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_53623(c);
	}
	LA4: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Cell49146* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_52846(src);
		incref_55222(LOC5);
	}
	LA3: ;
	{
		Cell49146* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_52846((*dest));
		decref_54804(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

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

