/* Generated by Nim Compiler v0.11.2 */
/*   (c) 2015 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 32
#include "nimbase.h"
typedef struct Ropeobj161009 Ropeobj161009;
typedef struct TY456155 TY456155;
typedef struct Tcgen456038 Tcgen456038;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Tpasscontext241005 Tpasscontext241005;
typedef struct TNimObject TNimObject;
typedef struct Tsym190843 Tsym190843;
typedef struct NimStringDesc NimStringDesc;
typedef struct Tidtable190861 Tidtable190861;
typedef struct Tidpairseq190859 Tidpairseq190859;
typedef struct Intset187056 Intset187056;
typedef struct Ttrunk187052 Ttrunk187052;
typedef struct Ttrunkseq187054 Ttrunkseq187054;
typedef struct Tlinkedlist130028 Tlinkedlist130028;
typedef struct Tlistentry130022 Tlistentry130022;
typedef struct Tcproc456034 Tcproc456034;
typedef struct Ttypeseq190845 Ttypeseq190845;
typedef struct Tnodetable190873 Tnodetable190873;
typedef struct Tnodepairseq190871 Tnodepairseq190871;
typedef struct Tsymseq190815 Tsymseq190815;
typedef struct Tlineinfo163338 Tlineinfo163338;
typedef struct Tnodeseq190807 Tnodeseq190807;
typedef struct TY163351 TY163351;
typedef struct TY456106 TY456106;
typedef struct Tblock456032 Tblock456032;
typedef struct Tcell46347 Tcell46347;
typedef struct Tcellseq46363 Tcellseq46363;
typedef struct Tgcheap48216 Tgcheap48216;
typedef struct Tcellset46359 Tcellset46359;
typedef struct Tpagedesc46355 Tpagedesc46355;
typedef struct Tmemregion28210 Tmemregion28210;
typedef struct Tsmallchunk27440 Tsmallchunk27440;
typedef struct Tllchunk28204 Tllchunk28204;
typedef struct Tbigchunk27442 Tbigchunk27442;
typedef struct Tintset27417 Tintset27417;
typedef struct Ttrunk27413 Ttrunk27413;
typedef struct Tavlnode28208 Tavlnode28208;
typedef struct Tgcstat48214 Tgcstat48214;
typedef struct Tidobj167015 Tidobj167015;
typedef struct Tscope190837 Tscope190837;
typedef struct TY190944 TY190944;
typedef struct Tstrtable190817 Tstrtable190817;
typedef struct Ttype190849 Ttype190849;
typedef struct Tident167021 Tident167021;
typedef struct Tnode190813 Tnode190813;
typedef struct Tloc190827 Tloc190827;
typedef struct Tlib190831 Tlib190831;
typedef struct Tidpair190857 Tidpair190857;
typedef struct Tnodepair190869 Tnodepair190869;
typedef struct Tbasechunk27438 Tbasechunk27438;
typedef struct Tfreecell27430 Tfreecell27430;
typedef struct Tinstantiation190833 Tinstantiation190833;
typedef struct TY190933 TY190933;
struct  TGenericSeq  {
NI len;
NI reserved;
};
typedef N_NIMCALL_PTR(void, TY3289) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3294) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3289 marker;
TY3294 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext241005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
typedef Ropeobj161009* Tcfilesections456022[18];
struct  Tidtable190861  {
NI counter;
Tidpairseq190859* data;
};
struct  Intset187056  {
NI counter;
NI max;
Ttrunk187052* head;
Ttrunkseq187054* data;
};
struct  Tlinkedlist130028  {
Tlistentry130022* head;
Tlistentry130022* tail;
NI counter;
};
struct  Tnodetable190873  {
NI counter;
Tnodepairseq190871* data;
};
typedef Ropeobj161009* TY456143[10];
struct  Tcgen456038  {
  Tpasscontext241005 Sup;
Tsym190843* module;
NimStringDesc* filename;
Tcfilesections456022 s;
NIM_BOOL preventstacktrace;
NIM_BOOL usesthreadvars;
NIM_BOOL framedeclared;
NIM_BOOL isheaderfile;
NIM_BOOL includesstringh;
NIM_BOOL objhaskidsvalid;
NimStringDesc* cfilename;
Tidtable190861 typecache;
Tidtable190861 forwtypecache;
Intset187056 declaredthings;
Intset187056 declaredprotos;
Tlinkedlist130028 headerfiles;
Intset187056 typeinfomarker;
Tcproc456034* initproc;
Tcproc456034* postinitproc;
Tcproc456034* preinitproc;
Ttypeseq190845* typestack;
Tnodetable190873 datacache;
Tsymseq190815* forwardedprocs;
NI typenodes;
NI nimtypes;
Ropeobj161009* typenodesname;
Ropeobj161009* nimtypesname;
NI labels;
TY456143 extensionloaders;
Ropeobj161009* injectstmt;
};
struct  Tlineinfo163338  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tcproc456034  {
Tsym190843* prc;
NIM_BOOL beforeretneeded;
NIM_BOOL threadvaraccessed;
Tlineinfo163338 lastlineinfo;
Tnodeseq190807* nestedtrystmts;
NI inexceptblock;
TY163351* finallysafepoints;
NI labels;
TY456106* blocks;
NI breakidx;
NU32 options;
NI maxframelen;
Tcgen456038* module;
NI withinloop;
NI splitdecls;
NI gcframeid;
Ropeobj161009* gcframetype;
};
typedef Ropeobj161009* Tcprocsections456026[3];
struct  Tblock456032  {
NI id;
Ropeobj161009* label;
Tcprocsections456026 sections;
NIM_BOOL isloop;
NI16 nestedtrystmts;
NI16 nestedexceptstmts;
NI16 framelen;
};
struct  Tcell46347  {
NI refcount;
TNimType* typ;
};
struct  Tcellseq46363  {
NI len;
NI cap;
Tcell46347** d;
};
struct  Tcellset46359  {
NI counter;
NI max;
Tpagedesc46355* head;
Tpagedesc46355** data;
};
typedef Tsmallchunk27440* TY28222[512];
typedef Ttrunk27413* Ttrunkbuckets27415[256];
struct  Tintset27417  {
Ttrunkbuckets27415 data;
};
struct  Tmemregion28210  {
NI minlargeobj;
NI maxlargeobj;
TY28222 freesmallchunks;
Tllchunk28204* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Tbigchunk27442* freechunkslist;
Tintset27417 chunkstarts;
Tavlnode28208* root;
Tavlnode28208* deleted;
Tavlnode28208* last;
Tavlnode28208* freeavlnodes;
};
struct  Tgcstat48214  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Tgcheap48216  {
void* stackbottom;
NI cyclethreshold;
Tcellseq46363 zct;
Tcellseq46363 decstack;
Tcellset46359 cycleroots;
Tcellseq46363 tempstack;
NI recgclock;
Tmemregion28210 region;
Tgcstat48214 stat;
};
struct  Tidobj167015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable190817  {
NI counter;
Tsymseq190815* data;
};
struct  Tloc190827  {
NU8 k;
NU8 s;
NU16 flags;
Ttype190849* t;
Ropeobj161009* r;
Ropeobj161009* heaproot;
};
struct  Tsym190843  {
  Tidobj167015 Sup;
NU8 kind;
union{
struct {Ttypeseq190845* typeinstcache;
Tscope190837* typscope;
} S1;
struct {TY190944* procinstcache;
Tsym190843* gcunsafetyreason;
} S2;
struct {TY190944* usedgenerics;
Tstrtable190817 tab;
} S3;
struct {Tsym190843* guard;
} S4;
} kindU;
NU16 magic;
Ttype190849* typ;
Tident167021* name;
Tlineinfo163338 info;
Tsym190843* owner;
NU32 flags;
Tnode190813* ast;
NU32 options;
NI position;
NI offset;
Tloc190827 loc;
Tlib190831* annex;
Tnode190813* constraint;
};
struct  Ropeobj161009  {
  TNimObject Sup;
Ropeobj161009* left;
Ropeobj161009* right;
NI length;
NimStringDesc* data;
};
struct  Tidpair190857  {
Tidobj167015* key;
TNimObject* val;
};
typedef NI TY27420[16];
struct  Ttrunk187052  {
Ttrunk187052* next;
NI key;
TY27420 bits;
};
struct  Tlistentry130022  {
  TNimObject Sup;
Tlistentry130022* prev;
Tlistentry130022* next;
};
struct  Tnodepair190869  {
NI h;
Tnode190813* key;
NI val;
};
struct  Tpagedesc46355  {
Tpagedesc46355* next;
NI key;
TY27420 bits;
};
struct  Tbasechunk27438  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Tsmallchunk27440  {
  Tbasechunk27438 Sup;
Tsmallchunk27440* next;
Tsmallchunk27440* prev;
Tfreecell27430* freelist;
NI free;
NI acc;
NF data;
};
struct  Tllchunk28204  {
NI size;
NI acc;
Tllchunk28204* next;
};
struct  Tbigchunk27442  {
  Tbasechunk27438 Sup;
Tbigchunk27442* next;
Tbigchunk27442* prev;
NI align;
NF data;
};
struct  Ttrunk27413  {
Ttrunk27413* next;
NI key;
TY27420 bits;
};
typedef Tavlnode28208* TY28214[2];
struct  Tavlnode28208  {
TY28214 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope190837  {
NI depthlevel;
Tstrtable190817 symbols;
Tnodeseq190807* usingsyms;
Tscope190837* parent;
};
struct  Ttype190849  {
  Tidobj167015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq190845* sons;
Tnode190813* n;
Tsym190843* owner;
Tsym190843* sym;
Tsym190843* destructor;
Tsym190843* deepcopy;
Tsym190843* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc190827 loc;
};
struct  Tident167021  {
  Tidobj167015 Sup;
NimStringDesc* s;
Tident167021* next;
NI h;
};
struct  Tnode190813  {
Ttype190849* typ;
Tlineinfo163338 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym190843* sym;
} S4;
struct {Tident167021* ident;
} S5;
struct {Tnodeseq190807* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Tlib190831  {
  Tlistentry130022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj161009* name;
Tnode190813* path;
};
struct  Tfreecell27430  {
Tfreecell27430* next;
NI zerofield;
};
struct  Tinstantiation190833  {
Tsym190843* sym;
Ttypeseq190845* concretetypes;
TY190933* usedby;
};
struct TY456155 {
  TGenericSeq Sup;
  Tcgen456038* data[SEQ_DECL_SIZE];
};
struct TY456106 {
  TGenericSeq Sup;
  Tblock456032 data[SEQ_DECL_SIZE];
};
struct Tnodeseq190807 {
  TGenericSeq Sup;
  Tnode190813* data[SEQ_DECL_SIZE];
};
struct TY163351 {
  TGenericSeq Sup;
  Ropeobj161009* data[SEQ_DECL_SIZE];
};
struct Tidpairseq190859 {
  TGenericSeq Sup;
  Tidpair190857 data[SEQ_DECL_SIZE];
};
struct Ttrunkseq187054 {
  TGenericSeq Sup;
  Ttrunk187052* data[SEQ_DECL_SIZE];
};
struct Ttypeseq190845 {
  TGenericSeq Sup;
  Ttype190849* data[SEQ_DECL_SIZE];
};
struct Tnodepairseq190871 {
  TGenericSeq Sup;
  Tnodepair190869 data[SEQ_DECL_SIZE];
};
struct Tsymseq190815 {
  TGenericSeq Sup;
  Tsym190843* data[SEQ_DECL_SIZE];
};
struct TY190944 {
  TGenericSeq Sup;
  Tinstantiation190833* data[SEQ_DECL_SIZE];
};
struct TY190933 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP1051)(void* p, NI op);
N_NIMCALL(void, TMP1052)(void* p, NI op);
N_NIMCALL(void, TMP1056)(void* p, NI op);
N_NIMCALL(void, TMP1057)(void* p, NI op);
static N_INLINE(void, nimGCunref)(void* p);
static N_INLINE(void, decref_51804)(Tcell46347* c);
static N_INLINE(void, rtladdzct_51404)(Tcell46347* c);
N_NOINLINE(void, addzct_49817)(Tcellseq46363* s, Tcell46347* c);
static N_INLINE(NIM_BOOL, canbecycleroot_49867)(Tcell46347* c);
static N_INLINE(void, rtladdcycleroot_50623)(Tcell46347* c);
N_NOINLINE(void, incl_47065)(Tcellset46359* s, Tcell46347* cell);
static N_INLINE(Tcell46347*, usrtocell_49846)(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_52222)(Tcell46347* c);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
Ropeobj161009* mainmodprocs_456150;
Ropeobj161009* mainmodinit_456151;
Ropeobj161009* othermodsinit_456152;
Ropeobj161009* maindatinit_456153;
Ropeobj161009* gmapping_456154;
TY456155* gmodules_456172;
extern TNimType NTI241005; /* TPassContext */
TNimType NTI456038; /* TCGen */
extern TNimType NTI190811; /* PSym */
extern TNimType NTI149; /* string */
extern TNimType NTI161007; /* Rope */
TNimType NTI456022; /* TCFileSections */
extern TNimType NTI138; /* bool */
extern TNimType NTI190861; /* TIdTable */
extern TNimType NTI187056; /* IntSet */
extern TNimType NTI130028; /* TLinkedList */
TNimType NTI456034; /* TCProc */
extern TNimType NTI163338; /* TLineInfo */
extern TNimType NTI190807; /* TNodeSeq */
extern TNimType NTI108; /* int */
extern TNimType NTI163351; /* seq[Rope] */
extern TNimType NTI3407; /* Natural */
TNimType NTI456032; /* TBlock */
TNimType NTI456026; /* TCProcSections */
extern TNimType NTI112; /* int16 */
TNimType NTI456106; /* seq[TBlock] */
extern TNimType NTI154016; /* TOptions */
TNimType NTI456030; /* BProc */
extern TNimType NTI190845; /* TTypeSeq */
extern TNimType NTI190873; /* TNodeTable */
extern TNimType NTI190815; /* TSymSeq */
TNimType NTI456143; /* array[48..57, Rope] */
TNimType NTI456028; /* BModule */
TNimType NTI456155; /* seq[BModule] */
extern Tgcheap48216 gch_48244;
NI gforwardedprocscounter_456173;
extern NU32 goptions_154126;
N_NIMCALL(void, TMP1051)(void* p, NI op) {
	TY456106* a;
	NI LOC1;
	NI LOC2;
	a = (TY456106*)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, TMP1052)(void* p, NI op) {
	Tcproc456034* a;
	a = (Tcproc456034*)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, TMP1056)(void* p, NI op) {
	Tcgen456038* a;
	NI LOC1;
	NI LOC2;
	a = (Tcgen456038*)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, TMP1057)(void* p, NI op) {
	TY456155* a;
	NI LOC1;
	a = (TY456155*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1], op);
	}
}

static N_INLINE(void, rtladdzct_51404)(Tcell46347* c) {
	addzct_49817((&gch_48244.zct), c);
}

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

static N_INLINE(void, rtladdcycleroot_50623)(Tcell46347* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_47065((&gch_48244.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, decref_51804)(Tcell46347* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_51404(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_49867(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_50623(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(Tcell46347*, usrtocell_49846)(void* usr) {
	Tcell46347* result;
	result = 0;
	result = ((Tcell46347*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(Tcell46347))))));
	return result;
}

static N_INLINE(void, nimGCunref)(void* p) {
	Tcell46347* LOC1;
	LOC1 = 0;
	LOC1 = usrtocell_49846(p);
	decref_51804(LOC1);
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Tcell46347* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_49846(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Tcell46347* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_49846((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA11;
			rtladdzct_51404(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

static N_INLINE(void, incref_52222)(Tcell46347* c) {
	(*c).refcount = (NI)((NU32)((*c).refcount) + (NU32)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_49867(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_50623(c);
	}
	LA4: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Tcell46347* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_49846(src);
		incref_52222(LOC5);
	}
	LA3: ;
	{
		Tcell46347* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_49846((*dest));
		decref_51804(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Tcell46347* c;
	c = usrtocell_49846(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU32)((*c).refcount) < (NU32)(((NI) 8)))) goto LA3;
		rtladdzct_51404(c);
	}
	LA3: ;
}

N_NIMCALL(Tcproc456034*, newproc_456229)(Tsym190843* prc, Tcgen456038* module) {
	Tcproc456034* result;
	result = 0;
	result = (Tcproc456034*) newObj((&NTI456030), sizeof(Tcproc456034));
	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_154126;
	}
	LA1: ;
	if ((*result).blocks) nimGCunrefNoCycle((*result).blocks);
	(*result).blocks = (TY456106*) newSeqRC1((&NTI456106), ((NI) 1));
	if ((*result).nestedtrystmts) nimGCunrefNoCycle((*result).nestedtrystmts);
	(*result).nestedtrystmts = (Tnodeseq190807*) newSeqRC1((&NTI190807), 0);
	if ((*result).finallysafepoints) nimGCunrefNoCycle((*result).finallysafepoints);
	(*result).finallysafepoints = (TY163351*) newSeqRC1((&NTI163351), 0);
	return result;
}

N_NIMCALL(Tcgen456038*, bmod_456218)(Tsym190843* module) {
	Tcgen456038* result;
	result = 0;
	result = gmodules_456172->data[(*module).position];
	return result;
}
NIM_EXTERNC N_NOINLINE(void, nimsrc_cgendataInit)(void) {
	if (gmodules_456172) nimGCunref(gmodules_456172);
	gmodules_456172 = (TY456155*) newSeqRC1((&NTI456155), 0);
	gforwardedprocscounter_456173 = ((NI) 0);
}

NIM_EXTERNC N_NOINLINE(void, nimsrc_cgendataDatInit)(void) {
static TNimNode* TMP1043[29];
static TNimNode* TMP1049[17];
static TNimNode* TMP1050[7];
static TNimNode TMP1041[56];
NTI456038.size = sizeof(Tcgen456038);
NTI456038.kind = 17;
NTI456038.base = (&NTI241005);
TMP1043[0] = &TMP1041[1];
TMP1041[1].kind = 1;
TMP1041[1].offset = offsetof(Tcgen456038, module);
TMP1041[1].typ = (&NTI190811);
TMP1041[1].name = "module";
TMP1043[1] = &TMP1041[2];
TMP1041[2].kind = 1;
TMP1041[2].offset = offsetof(Tcgen456038, filename);
TMP1041[2].typ = (&NTI149);
TMP1041[2].name = "filename";
TMP1043[2] = &TMP1041[3];
NTI456022.size = sizeof(Tcfilesections456022);
NTI456022.kind = 16;
NTI456022.base = (&NTI161007);
NTI456022.flags = 2;
TMP1041[3].kind = 1;
TMP1041[3].offset = offsetof(Tcgen456038, s);
TMP1041[3].typ = (&NTI456022);
TMP1041[3].name = "s";
TMP1043[3] = &TMP1041[4];
TMP1041[4].kind = 1;
TMP1041[4].offset = offsetof(Tcgen456038, preventstacktrace);
TMP1041[4].typ = (&NTI138);
TMP1041[4].name = "preventStackTrace";
TMP1043[4] = &TMP1041[5];
TMP1041[5].kind = 1;
TMP1041[5].offset = offsetof(Tcgen456038, usesthreadvars);
TMP1041[5].typ = (&NTI138);
TMP1041[5].name = "usesThreadVars";
TMP1043[5] = &TMP1041[6];
TMP1041[6].kind = 1;
TMP1041[6].offset = offsetof(Tcgen456038, framedeclared);
TMP1041[6].typ = (&NTI138);
TMP1041[6].name = "frameDeclared";
TMP1043[6] = &TMP1041[7];
TMP1041[7].kind = 1;
TMP1041[7].offset = offsetof(Tcgen456038, isheaderfile);
TMP1041[7].typ = (&NTI138);
TMP1041[7].name = "isHeaderFile";
TMP1043[7] = &TMP1041[8];
TMP1041[8].kind = 1;
TMP1041[8].offset = offsetof(Tcgen456038, includesstringh);
TMP1041[8].typ = (&NTI138);
TMP1041[8].name = "includesStringh";
TMP1043[8] = &TMP1041[9];
TMP1041[9].kind = 1;
TMP1041[9].offset = offsetof(Tcgen456038, objhaskidsvalid);
TMP1041[9].typ = (&NTI138);
TMP1041[9].name = "objHasKidsValid";
TMP1043[9] = &TMP1041[10];
TMP1041[10].kind = 1;
TMP1041[10].offset = offsetof(Tcgen456038, cfilename);
TMP1041[10].typ = (&NTI149);
TMP1041[10].name = "cfilename";
TMP1043[10] = &TMP1041[11];
TMP1041[11].kind = 1;
TMP1041[11].offset = offsetof(Tcgen456038, typecache);
TMP1041[11].typ = (&NTI190861);
TMP1041[11].name = "typeCache";
TMP1043[11] = &TMP1041[12];
TMP1041[12].kind = 1;
TMP1041[12].offset = offsetof(Tcgen456038, forwtypecache);
TMP1041[12].typ = (&NTI190861);
TMP1041[12].name = "forwTypeCache";
TMP1043[12] = &TMP1041[13];
TMP1041[13].kind = 1;
TMP1041[13].offset = offsetof(Tcgen456038, declaredthings);
TMP1041[13].typ = (&NTI187056);
TMP1041[13].name = "declaredThings";
TMP1043[13] = &TMP1041[14];
TMP1041[14].kind = 1;
TMP1041[14].offset = offsetof(Tcgen456038, declaredprotos);
TMP1041[14].typ = (&NTI187056);
TMP1041[14].name = "declaredProtos";
TMP1043[14] = &TMP1041[15];
TMP1041[15].kind = 1;
TMP1041[15].offset = offsetof(Tcgen456038, headerfiles);
TMP1041[15].typ = (&NTI130028);
TMP1041[15].name = "headerFiles";
TMP1043[15] = &TMP1041[16];
TMP1041[16].kind = 1;
TMP1041[16].offset = offsetof(Tcgen456038, typeinfomarker);
TMP1041[16].typ = (&NTI187056);
TMP1041[16].name = "typeInfoMarker";
TMP1043[16] = &TMP1041[17];
NTI456034.size = sizeof(Tcproc456034);
NTI456034.kind = 18;
NTI456034.base = 0;
TMP1049[0] = &TMP1041[19];
TMP1041[19].kind = 1;
TMP1041[19].offset = offsetof(Tcproc456034, prc);
TMP1041[19].typ = (&NTI190811);
TMP1041[19].name = "prc";
TMP1049[1] = &TMP1041[20];
TMP1041[20].kind = 1;
TMP1041[20].offset = offsetof(Tcproc456034, beforeretneeded);
TMP1041[20].typ = (&NTI138);
TMP1041[20].name = "beforeRetNeeded";
TMP1049[2] = &TMP1041[21];
TMP1041[21].kind = 1;
TMP1041[21].offset = offsetof(Tcproc456034, threadvaraccessed);
TMP1041[21].typ = (&NTI138);
TMP1041[21].name = "threadVarAccessed";
TMP1049[3] = &TMP1041[22];
TMP1041[22].kind = 1;
TMP1041[22].offset = offsetof(Tcproc456034, lastlineinfo);
TMP1041[22].typ = (&NTI163338);
TMP1041[22].name = "lastLineInfo";
TMP1049[4] = &TMP1041[23];
TMP1041[23].kind = 1;
TMP1041[23].offset = offsetof(Tcproc456034, nestedtrystmts);
TMP1041[23].typ = (&NTI190807);
TMP1041[23].name = "nestedTryStmts";
TMP1049[5] = &TMP1041[24];
TMP1041[24].kind = 1;
TMP1041[24].offset = offsetof(Tcproc456034, inexceptblock);
TMP1041[24].typ = (&NTI108);
TMP1041[24].name = "inExceptBlock";
TMP1049[6] = &TMP1041[25];
TMP1041[25].kind = 1;
TMP1041[25].offset = offsetof(Tcproc456034, finallysafepoints);
TMP1041[25].typ = (&NTI163351);
TMP1041[25].name = "finallySafePoints";
TMP1049[7] = &TMP1041[26];
TMP1041[26].kind = 1;
TMP1041[26].offset = offsetof(Tcproc456034, labels);
TMP1041[26].typ = (&NTI3407);
TMP1041[26].name = "labels";
TMP1049[8] = &TMP1041[27];
NTI456032.size = sizeof(Tblock456032);
NTI456032.kind = 18;
NTI456032.base = 0;
NTI456032.flags = 2;
TMP1050[0] = &TMP1041[29];
TMP1041[29].kind = 1;
TMP1041[29].offset = offsetof(Tblock456032, id);
TMP1041[29].typ = (&NTI108);
TMP1041[29].name = "id";
TMP1050[1] = &TMP1041[30];
TMP1041[30].kind = 1;
TMP1041[30].offset = offsetof(Tblock456032, label);
TMP1041[30].typ = (&NTI161007);
TMP1041[30].name = "label";
TMP1050[2] = &TMP1041[31];
NTI456026.size = sizeof(Tcprocsections456026);
NTI456026.kind = 16;
NTI456026.base = (&NTI161007);
NTI456026.flags = 2;
TMP1041[31].kind = 1;
TMP1041[31].offset = offsetof(Tblock456032, sections);
TMP1041[31].typ = (&NTI456026);
TMP1041[31].name = "sections";
TMP1050[3] = &TMP1041[32];
TMP1041[32].kind = 1;
TMP1041[32].offset = offsetof(Tblock456032, isloop);
TMP1041[32].typ = (&NTI138);
TMP1041[32].name = "isLoop";
TMP1050[4] = &TMP1041[33];
TMP1041[33].kind = 1;
TMP1041[33].offset = offsetof(Tblock456032, nestedtrystmts);
TMP1041[33].typ = (&NTI112);
TMP1041[33].name = "nestedTryStmts";
TMP1050[5] = &TMP1041[34];
TMP1041[34].kind = 1;
TMP1041[34].offset = offsetof(Tblock456032, nestedexceptstmts);
TMP1041[34].typ = (&NTI112);
TMP1041[34].name = "nestedExceptStmts";
TMP1050[6] = &TMP1041[35];
TMP1041[35].kind = 1;
TMP1041[35].offset = offsetof(Tblock456032, framelen);
TMP1041[35].typ = (&NTI112);
TMP1041[35].name = "frameLen";
TMP1041[28].len = 7; TMP1041[28].kind = 2; TMP1041[28].sons = &TMP1050[0];
NTI456032.node = &TMP1041[28];
NTI456106.size = sizeof(TY456106*);
NTI456106.kind = 24;
NTI456106.base = (&NTI456032);
NTI456106.flags = 2;
NTI456106.marker = TMP1051;
TMP1041[27].kind = 1;
TMP1041[27].offset = offsetof(Tcproc456034, blocks);
TMP1041[27].typ = (&NTI456106);
TMP1041[27].name = "blocks";
TMP1049[9] = &TMP1041[36];
TMP1041[36].kind = 1;
TMP1041[36].offset = offsetof(Tcproc456034, breakidx);
TMP1041[36].typ = (&NTI108);
TMP1041[36].name = "breakIdx";
TMP1049[10] = &TMP1041[37];
TMP1041[37].kind = 1;
TMP1041[37].offset = offsetof(Tcproc456034, options);
TMP1041[37].typ = (&NTI154016);
TMP1041[37].name = "options";
TMP1049[11] = &TMP1041[38];
TMP1041[38].kind = 1;
TMP1041[38].offset = offsetof(Tcproc456034, maxframelen);
TMP1041[38].typ = (&NTI108);
TMP1041[38].name = "maxFrameLen";
TMP1049[12] = &TMP1041[39];
TMP1041[39].kind = 1;
TMP1041[39].offset = offsetof(Tcproc456034, module);
TMP1041[39].typ = (&NTI456028);
TMP1041[39].name = "module";
TMP1049[13] = &TMP1041[40];
TMP1041[40].kind = 1;
TMP1041[40].offset = offsetof(Tcproc456034, withinloop);
TMP1041[40].typ = (&NTI108);
TMP1041[40].name = "withinLoop";
TMP1049[14] = &TMP1041[41];
TMP1041[41].kind = 1;
TMP1041[41].offset = offsetof(Tcproc456034, splitdecls);
TMP1041[41].typ = (&NTI108);
TMP1041[41].name = "splitDecls";
TMP1049[15] = &TMP1041[42];
TMP1041[42].kind = 1;
TMP1041[42].offset = offsetof(Tcproc456034, gcframeid);
TMP1041[42].typ = (&NTI3407);
TMP1041[42].name = "gcFrameId";
TMP1049[16] = &TMP1041[43];
TMP1041[43].kind = 1;
TMP1041[43].offset = offsetof(Tcproc456034, gcframetype);
TMP1041[43].typ = (&NTI161007);
TMP1041[43].name = "gcFrameType";
TMP1041[18].len = 17; TMP1041[18].kind = 2; TMP1041[18].sons = &TMP1049[0];
NTI456034.node = &TMP1041[18];
NTI456030.size = sizeof(Tcproc456034*);
NTI456030.kind = 22;
NTI456030.base = (&NTI456034);
NTI456030.marker = TMP1052;
TMP1041[17].kind = 1;
TMP1041[17].offset = offsetof(Tcgen456038, initproc);
TMP1041[17].typ = (&NTI456030);
TMP1041[17].name = "initProc";
TMP1043[17] = &TMP1041[44];
TMP1041[44].kind = 1;
TMP1041[44].offset = offsetof(Tcgen456038, postinitproc);
TMP1041[44].typ = (&NTI456030);
TMP1041[44].name = "postInitProc";
TMP1043[18] = &TMP1041[45];
TMP1041[45].kind = 1;
TMP1041[45].offset = offsetof(Tcgen456038, preinitproc);
TMP1041[45].typ = (&NTI456030);
TMP1041[45].name = "preInitProc";
TMP1043[19] = &TMP1041[46];
TMP1041[46].kind = 1;
TMP1041[46].offset = offsetof(Tcgen456038, typestack);
TMP1041[46].typ = (&NTI190845);
TMP1041[46].name = "typeStack";
TMP1043[20] = &TMP1041[47];
TMP1041[47].kind = 1;
TMP1041[47].offset = offsetof(Tcgen456038, datacache);
TMP1041[47].typ = (&NTI190873);
TMP1041[47].name = "dataCache";
TMP1043[21] = &TMP1041[48];
TMP1041[48].kind = 1;
TMP1041[48].offset = offsetof(Tcgen456038, forwardedprocs);
TMP1041[48].typ = (&NTI190815);
TMP1041[48].name = "forwardedProcs";
TMP1043[22] = &TMP1041[49];
TMP1041[49].kind = 1;
TMP1041[49].offset = offsetof(Tcgen456038, typenodes);
TMP1041[49].typ = (&NTI108);
TMP1041[49].name = "typeNodes";
TMP1043[23] = &TMP1041[50];
TMP1041[50].kind = 1;
TMP1041[50].offset = offsetof(Tcgen456038, nimtypes);
TMP1041[50].typ = (&NTI108);
TMP1041[50].name = "nimTypes";
TMP1043[24] = &TMP1041[51];
TMP1041[51].kind = 1;
TMP1041[51].offset = offsetof(Tcgen456038, typenodesname);
TMP1041[51].typ = (&NTI161007);
TMP1041[51].name = "typeNodesName";
TMP1043[25] = &TMP1041[52];
TMP1041[52].kind = 1;
TMP1041[52].offset = offsetof(Tcgen456038, nimtypesname);
TMP1041[52].typ = (&NTI161007);
TMP1041[52].name = "nimTypesName";
TMP1043[26] = &TMP1041[53];
TMP1041[53].kind = 1;
TMP1041[53].offset = offsetof(Tcgen456038, labels);
TMP1041[53].typ = (&NTI3407);
TMP1041[53].name = "labels";
TMP1043[27] = &TMP1041[54];
NTI456143.size = sizeof(TY456143);
NTI456143.kind = 16;
NTI456143.base = (&NTI161007);
NTI456143.flags = 2;
TMP1041[54].kind = 1;
TMP1041[54].offset = offsetof(Tcgen456038, extensionloaders);
TMP1041[54].typ = (&NTI456143);
TMP1041[54].name = "extensionLoaders";
TMP1043[28] = &TMP1041[55];
TMP1041[55].kind = 1;
TMP1041[55].offset = offsetof(Tcgen456038, injectstmt);
TMP1041[55].typ = (&NTI161007);
TMP1041[55].name = "injectStmt";
TMP1041[0].len = 29; TMP1041[0].kind = 2; TMP1041[0].sons = &TMP1043[0];
NTI456038.node = &TMP1041[0];
NTI456028.size = sizeof(Tcgen456038*);
NTI456028.kind = 22;
NTI456028.base = (&NTI456038);
NTI456028.marker = TMP1056;
NTI456155.size = sizeof(TY456155*);
NTI456155.kind = 24;
NTI456155.base = (&NTI456028);
NTI456155.marker = TMP1057;
}

