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

#include "nimbase.h"
#include <string.h>
typedef struct TY376226 TY376226;
typedef struct TY376227 TY376227;
typedef struct Tsymseq216792 Tsymseq216792;
typedef struct Tsym216822 Tsym216822;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Cell47304 Cell47304;
typedef struct Cellseq47320 Cellseq47320;
typedef struct Gcheap49618 Gcheap49618;
typedef struct Gcstack49616 Gcstack49616;
typedef struct Cellset47316 Cellset47316;
typedef struct Pagedesc47312 Pagedesc47312;
typedef struct Memregion29487 Memregion29487;
typedef struct Smallchunk29439 Smallchunk29439;
typedef struct Llchunk29481 Llchunk29481;
typedef struct Bigchunk29441 Bigchunk29441;
typedef struct Intset29414 Intset29414;
typedef struct Trunk29410 Trunk29410;
typedef struct Avlnode29485 Avlnode29485;
typedef struct Gcstat49614 Gcstat49614;
typedef struct Tidobj191006 Tidobj191006;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq216824 Ttypeseq216824;
typedef struct Tscope216816 Tscope216816;
typedef struct TY216925 TY216925;
typedef struct Tstrtable216794 Tstrtable216794;
typedef struct Ttype216828 Ttype216828;
typedef struct Tident191012 Tident191012;
typedef struct Tlineinfo184337 Tlineinfo184337;
typedef struct Tnode216790 Tnode216790;
typedef struct Tloc216804 Tloc216804;
typedef struct Ropeobj172006 Ropeobj172006;
typedef struct Tlib216808 Tlib216808;
typedef struct NimStringDesc NimStringDesc;
typedef struct Tnodeseq216784 Tnodeseq216784;
typedef struct Intset213035 Intset213035;
typedef struct Trunk213031 Trunk213031;
typedef struct Trunkseq213033 Trunkseq213033;
typedef struct Basechunk29437 Basechunk29437;
typedef struct Freecell29429 Freecell29429;
typedef struct Tinstantiation216812 Tinstantiation216812;
typedef struct Tlistentry138010 Tlistentry138010;
typedef struct TY216913 TY216913;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct TY376227 {
Tsymseq216792* Field0;
Tsym216822* Field1;
};
typedef N_NIMCALL_PTR(void, TY3489) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3494) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3489 marker;
TY3494 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Cell47304  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47320  {
NI len;
NI cap;
Cell47304** d;
};
struct  Cellset47316  {
NI counter;
NI max;
Pagedesc47312* head;
Pagedesc47312** data;
};
typedef Smallchunk29439* TY29502[512];
typedef Trunk29410* Trunkbuckets29412[256];
struct  Intset29414  {
Trunkbuckets29412 data;
};
struct  Memregion29487  {
NI minlargeobj;
NI maxlargeobj;
TY29502 freesmallchunks;
Llchunk29481* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29441* freechunkslist;
Intset29414 chunkstarts;
Avlnode29485* root;
Avlnode29485* deleted;
Avlnode29485* last;
Avlnode29485* freeavlnodes;
};
struct  Gcstat49614  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap49618  {
Gcstack49616* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47320 zct;
Cellseq47320 decstack;
Cellset47316 cycleroots;
Cellseq47320 tempstack;
NI recgclock;
Memregion29487 region;
Gcstat49614 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj191006  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable216794  {
NI counter;
Tsymseq216792* data;
};
struct  Tlineinfo184337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc216804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype216828* t;
Ropeobj172006* r;
Ropeobj172006* heaproot;
};
struct  Tsym216822  {
  Tidobj191006 Sup;
NU8 kind;
union{
struct {Ttypeseq216824* typeinstcache;
Tscope216816* typscope;
} S1;
struct {TY216925* procinstcache;
Tsym216822* gcunsafetyreason;
} S2;
struct {TY216925* usedgenerics;
Tstrtable216794 tab;
} S3;
struct {Tsym216822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype216828* typ;
Tident191012* name;
Tlineinfo184337 info;
Tsym216822* owner;
NU32 flags;
Tnode216790* ast;
NU32 options;
NI position;
NI offset;
Tloc216804 loc;
Tlib216808* annex;
Tnode216790* constraint;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tident191012  {
  Tidobj191006 Sup;
NimStringDesc* s;
Tident191012* next;
NI h;
};
struct  Ttype216828  {
  Tidobj191006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq216824* sons;
Tnode216790* n;
Tsym216822* owner;
Tsym216822* sym;
Tsym216822* destructor;
Tsym216822* deepcopy;
Tsym216822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc216804 loc;
};
struct  Tnode216790  {
Ttype216828* typ;
Tlineinfo184337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym216822* sym;
} S4;
struct {Tident191012* ident;
} S5;
struct {Tnodeseq216784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef NimStringDesc* TY186169[2];
typedef Tsym216822* TY266332[1];
struct  Intset213035  {
NI counter;
NI max;
Trunk213031* head;
Trunkseq213033* data;
};
struct  Gcstack49616  {
Gcstack49616* prev;
Gcstack49616* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29418[16];
struct  Pagedesc47312  {
Pagedesc47312* next;
NI key;
TY29418 bits;
};
struct  Basechunk29437  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29439  {
  Basechunk29437 Sup;
Smallchunk29439* next;
Smallchunk29439* prev;
Freecell29429* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29481  {
NI size;
NI acc;
Llchunk29481* next;
};
struct  Bigchunk29441  {
  Basechunk29437 Sup;
Bigchunk29441* next;
Bigchunk29441* prev;
NI align;
NF data;
};
struct  Trunk29410  {
Trunk29410* next;
NI key;
TY29418 bits;
};
typedef Avlnode29485* TY29492[2];
struct  Avlnode29485  {
TY29492 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope216816  {
NI depthlevel;
Tstrtable216794 symbols;
Tnodeseq216784* usingsyms;
Tscope216816* parent;
};
struct  Ropeobj172006  {
  TNimObject Sup;
Ropeobj172006* left;
Ropeobj172006* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry138010  {
  TNimObject Sup;
Tlistentry138010* prev;
Tlistentry138010* next;
};
struct  Tlib216808  {
  Tlistentry138010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj172006* name;
Tnode216790* path;
};
struct  Trunk213031  {
Trunk213031* next;
NI key;
TY29418 bits;
};
struct  Freecell29429  {
Freecell29429* next;
NI zerofield;
};
struct  Tinstantiation216812  {
Tsym216822* sym;
Ttypeseq216824* concretetypes;
TY216913* usedby;
NI compilesid;
};
struct Tsymseq216792 {
  TGenericSeq Sup;
  Tsym216822* data[SEQ_DECL_SIZE];
};
struct TY376226 {
  TGenericSeq Sup;
  TY376227 data[SEQ_DECL_SIZE];
};
struct Ttypeseq216824 {
  TGenericSeq Sup;
  Ttype216828* data[SEQ_DECL_SIZE];
};
struct TY216925 {
  TGenericSeq Sup;
  Tinstantiation216812* data[SEQ_DECL_SIZE];
};
struct Tnodeseq216784 {
  TGenericSeq Sup;
  Tnode216790* data[SEQ_DECL_SIZE];
};
struct Trunkseq213033 {
  TGenericSeq Sup;
  Trunk213031* data[SEQ_DECL_SIZE];
};
struct TY216913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP1022)(void* p, NI op);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell47304*, usrtocell_51240)(void* usr);
static N_INLINE(void, rtladdzct_52801)(Cell47304* c);
N_NOINLINE(void, addzct_51217)(Cellseq47320* s, Cell47304* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(NU8, samemethodbucket_376253)(Tsym216822* a, Tsym216822* b);
N_NIMCALL(NI, sonslen_219327)(Ttype216828* n);
N_NIMCALL(NIM_BOOL, sametypeornil_246638)(Ttype216828* a, Ttype216828* b, NU8 flags);
N_NIMCALL(Ttype216828*, skiptypes_220113)(Ttype216828* t, NU64 kinds);
N_NIMCALL(Ttype216828*, lastson_219377)(Ttype216828* n);
N_NIMCALL(NIM_BOOL, sametype_246628)(Ttype216828* a, Ttype216828* b, NU8 flags);
N_NIMCALL(NI, inheritancediff_248442)(Ttype216828* a, Ttype216828* b);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(void, attachdispatcher_376362)(Tsym216822* s, Tnode216790* dispatcher);
static N_INLINE(NI, len_217059)(Tnode216790* n);
N_NIMCALL(void, add_217114)(Tnode216790* father, Tnode216790* son);
N_NIMCALL(Tnode216790*, lastson_219364)(Tnode216790* n);
N_NIMCALL(void, fixupdispatcher_376466)(Tsym216822* meth, Tsym216822* disp);
N_NIMCALL(NI, sonslen_219351)(Tnode216790* n);
N_NIMCALL(Tnode216790*, copytree_220822)(Tnode216790* src);
N_NIMCALL(void, message_189095)(Tlineinfo184337 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(NimStringDesc*, HEX24_219069)(NI16 x);
N_NIMCALL(void, checkmethodeffects_348842)(Tsym216822* disp, Tsym216822* branch);
N_NIMCALL(void, localerror_189085)(Tlineinfo184337 info, NimStringDesc* arg);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(Tsym216822*, createdispatcher_376397)(Tsym216822* s);
N_NIMCALL(Tsym216822*, copysym_219601)(Tsym216822* s, NIM_BOOL keepid);
N_NIMCALL(Ttype216828*, copytype_219470)(Ttype216828* t, Tsym216822* owner, NIM_BOOL keepid);
N_NIMCALL(void, addson_218807)(Tnode216790* father, Tnode216790* son);
N_NIMCALL(Tnode216790*, newsymnode_218234)(Tsym216822* sym);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_85404, TNimType* mt);
N_NIMCALL(void, internalerror_189100)(Tlineinfo184337 info, NimStringDesc* errmsg);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, HEX24_185431)(Tlineinfo184337 info);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(Tnode216790*, genconv_376005)(Tnode216790* n, Ttype216828* d, NIM_BOOL downcast);
N_NIMCALL(Tnode216790*, newnodeit_218801)(NU8 kind, Tlineinfo184337 info, Ttype216828* typ);
N_NIMCALL(Tnode216790*, newnode_217401)(NU8 kind);
N_NIMCALL(void, initintset_213885)(Intset213035* Result);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(NIM_BOOL, relevantcol_376896)(Tsymseq216792* methods, NI col);
N_NIMCALL(void, incl_213832)(Intset213035* s, NI key);
N_NIMCALL(void, sortbucket_376970)(Tsymseq216792** a, Intset213035 relevantcols);
N_NIMCALL(NI, cmpsignatures_376934)(Tsym216822* a, Tsym216822* b, Intset213035 relevantcols);
N_NIMCALL(NIM_BOOL, contains_213811)(Intset213035 s, NI key);
N_NIMCALL(Tsym216822*, gendispatcher_377010)(Tsymseq216792* methods, Intset213035 relevantcols);
N_NIMCALL(Tnode216790*, newnodei_218248)(NU8 kind, Tlineinfo184337 info);
N_NIMCALL(Tsym216822*, getsyssym_260041)(NimStringDesc* name);
N_NIMCALL(Ttype216828*, getsystype_260130)(NU8 kind);
STRING_LITERAL(TMP3447, "method has lock level $1, but another method has $2", 51);
STRING_LITERAL(TMP3455, "method is not a base", 20);
STRING_LITERAL(TMP3456, "no method dispatcher found", 26);
STRING_LITERAL(TMP3457, "invalid declaration order; cannot attach \'", 42);
STRING_LITERAL(TMP3458, "\' to method defined here: ", 26);
STRING_LITERAL(TMP3459, "", 0);
STRING_LITERAL(TMP3460, "cgmeth.genConv: no upcast allowed", 33);
STRING_LITERAL(TMP3461, "cgmeth.genConv: no downcast allowed", 35);
STRING_LITERAL(TMP4483, "and", 3);
STRING_LITERAL(TMP4484, "of", 2);
TY376226* gmethods_376246;
TNimType NTI376227; /* tuple[methods: TSymSeq, dispatcher: PSym] */
extern TNimType NTI216792; /* TSymSeq */
extern TNimType NTI216788; /* PSym */
TNimType NTI376226; /* seq[tuple[methods: TSymSeq, dispatcher: PSym]] */
extern Gcheap49618 gch_49659;
extern Tnode216790* emptynode_217801;
N_NIMCALL(void, TMP1022)(void* p, NI op) {
	TY376226* a;
	NI LOC1;
	a = (TY376226*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	nimGCvisit((void*)a->data[LOC1].Field0, op);
	nimGCvisit((void*)a->data[LOC1].Field1, op);
	}
}

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

static N_INLINE(void, rtladdzct_52801)(Cell47304* c) {
	addzct_51217((&gch_49659.zct), c);
}

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

N_NIMCALL(NU8, samemethodbucket_376253)(Tsym216822* a, Tsym216822* b) {
	NU8 result;
{	result = 0;
	{
		if (!!(((*(*a).name).Sup.id == (*(*b).name).Sup.id))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		NI LOC7;
		NI LOC8;
		LOC7 = 0;
		LOC7 = sonslen_219327((*a).typ);
		LOC8 = 0;
		LOC8 = sonslen_219327((*b).typ);
		if (!!((LOC7 == LOC8))) goto LA9;
		goto BeforeRet;
	}
	LA9: ;
	{
		NIM_BOOL LOC13;
		LOC13 = 0;
		LOC13 = sametypeornil_246638((*(*a).typ).sons->data[((NI) 0)], (*(*b).typ).sons->data[((NI) 0)], 0);
		if (!!(LOC13)) goto LA14;
		goto BeforeRet;
	}
	LA14: ;
	{
		NI i_376276;
		NI HEX3Atmp_376355;
		NI LOC17;
		NI res_376358;
		i_376276 = 0;
		HEX3Atmp_376355 = 0;
		LOC17 = 0;
		LOC17 = sonslen_219327((*a).typ);
		HEX3Atmp_376355 = (NI)(LOC17 - ((NI) 1));
		res_376358 = ((NI) 1);
		{
			while (1) {
				Ttype216828* aa;
				Ttype216828* bb;
				if (!(res_376358 <= HEX3Atmp_376355)) goto LA19;
				i_376276 = res_376358;
				aa = (*(*a).typ).sons->data[i_376276];
				bb = (*(*b).typ).sons->data[i_376276];
				{
					while (1) {
						aa = skiptypes_220113(aa, 2048);
						bb = skiptypes_220113(bb, 2048);
						{
							NIM_BOOL LOC24;
							LOC24 = 0;
							LOC24 = ((*aa).kind == (*bb).kind);
							if (!(LOC24)) goto LA25;
							LOC24 = ((*aa).kind == ((NU8) 23) || (*aa).kind == ((NU8) 21) || (*aa).kind == ((NU8) 22));
							LA25: ;
							if (!LOC24) goto LA26;
							aa = lastson_219377(aa);
							bb = lastson_219377(bb);
						}
						goto LA22;
						LA26: ;
						{
							goto LA20;
						}
						LA22: ;
					}
				} LA20: ;
				{
					NIM_BOOL LOC31;
					LOC31 = 0;
					LOC31 = sametype_246628(aa, bb, 0);
					if (!LOC31) goto LA32;
					{
						NIM_BOOL LOC36;
						LOC36 = 0;
						LOC36 = ((*aa).kind == ((NU8) 17));
						if (!(LOC36)) goto LA37;
						LOC36 = !((result == ((NU8) 1)));
						LA37: ;
						if (!LOC36) goto LA38;
						result = ((NU8) 2);
					}
					LA38: ;
				}
				goto LA29;
				LA32: ;
				{
					NIM_BOOL LOC41;
					NI diff;
					LOC41 = 0;
					LOC41 = ((*aa).kind == ((NU8) 17));
					if (!(LOC41)) goto LA42;
					LOC41 = ((*bb).kind == ((NU8) 17));
					LA42: ;
					if (!LOC41) goto LA43;
					diff = inheritancediff_248442(bb, aa);
					{
						if (!(diff < ((NI) 0))) goto LA47;
						{
							if (!!((result == ((NU8) 1)))) goto LA51;
							result = ((NU8) 2);
						}
						LA51: ;
					}
					goto LA45;
					LA47: ;
					{
						if (!!((diff == ((NI) 2147483647)))) goto LA54;
						result = ((NU8) 1);
					}
					goto LA45;
					LA54: ;
					LA45: ;
				}
				goto LA29;
				LA43: ;
				{
					result = ((NU8) 0);
					goto BeforeRet;
				}
				LA29: ;
				res_376358 += ((NI) 1);
			} LA19: ;
		}
	}
	}BeforeRet: ;
	return result;
}

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

static N_INLINE(NI, len_217059)(Tnode216790* n) {
	NI result;
	result = 0;
	{
		if (!(*n).kindU.S6.sons == 0) goto LA3;
		result = ((NI) 0);
	}
	goto LA1;
	LA3: ;
	{
		result = ((*n).kindU.S6.sons ? (*n).kindU.S6.sons->Sup.len : 0);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, attachdispatcher_376362)(Tsym216822* s, Tnode216790* dispatcher) {
	NI L;
	NI LOC1;
	Tnode216790* x;
	LOC1 = 0;
	LOC1 = len_217059((*s).ast);
	L = (NI)(LOC1 - ((NI) 1));
	x = (*(*s).ast).kindU.S6.sons->data[L];
	{
		NIM_BOOL LOC4;
		LOC4 = 0;
		LOC4 = ((*x).kind == ((NU8) 3));
		if (!(LOC4)) goto LA5;
		LOC4 = (((*(*x).kindU.S4.sym).flags &(1U<<((NU)(((NU8) 25))&31U)))!=0);
		LA5: ;
		if (!LOC4) goto LA6;
		asgnRefNoCycle((void**) (&(*(*s).ast).kindU.S6.sons->data[L]), dispatcher);
	}
	goto LA2;
	LA6: ;
	{
		add_217114((*s).ast, dispatcher);
	}
	LA2: ;
}

N_NIMCALL(void, fixupdispatcher_376466)(Tsym216822* meth, Tsym216822* disp) {
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		NI LOC5;
		NI LOC7;
		LOC3 = 0;
		LOC4 = 0;
		LOC5 = 0;
		LOC5 = sonslen_219351((*disp).ast);
		LOC4 = (((NI) 7) < LOC5);
		if (!(LOC4)) goto LA6;
		LOC7 = 0;
		LOC7 = sonslen_219351((*meth).ast);
		LOC4 = (((NI) 7) < LOC7);
		LA6: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA8;
		LOC3 = ((*(*disp).ast).kindU.S6.sons->data[((NI) 7)] == emptynode_217801);
		LA8: ;
		if (!LOC3) goto LA9;
		asgnRefNoCycle((void**) (&(*(*disp).ast).kindU.S6.sons->data[((NI) 7)]), copytree_220822((*(*meth).ast).kindU.S6.sons->data[((NI) 7)]));
	}
	LA9: ;
	{
		if (!((*(*disp).typ).locklevel == ((NI16) -1))) goto LA13;
		(*(*disp).typ).locklevel = (*(*meth).typ).locklevel;
	}
	goto LA11;
	LA13: ;
	{
		NIM_BOOL LOC16;
		TY186169 LOC20;
		NimStringDesc* LOC21;
		LOC16 = 0;
		LOC16 = !(((*(*meth).typ).locklevel == ((NI16) -1)));
		if (!(LOC16)) goto LA17;
		LOC16 = !(((*(*meth).typ).locklevel == (*(*disp).typ).locklevel));
		LA17: ;
		if (!LOC16) goto LA18;
		memset((void*)LOC20, 0, sizeof(LOC20));
		LOC20[0] = HEX24_219069((*(*meth).typ).locklevel);
		LOC20[1] = HEX24_219069((*(*disp).typ).locklevel);
		LOC21 = 0;
		LOC21 = nsuFormatOpenArray(((NimStringDesc*) &TMP3447), LOC20, 2);
		message_189095((*meth).info, ((NU16) 265), LOC21);
		{
			if (!((*(*disp).typ).locklevel < (*(*meth).typ).locklevel)) goto LA24;
			(*(*disp).typ).locklevel = (*(*meth).typ).locklevel;
		}
		LA24: ;
	}
	goto LA11;
	LA18: ;
	LA11: ;
}

N_NIMCALL(Tsym216822*, createdispatcher_376397)(Tsym216822* s) {
	Tsym216822* result;
	Tsym216822* disp;
	Tnode216790* LOC15;
	Tnode216790* LOC16;
{	result = 0;
	disp = copysym_219601(s, NIM_FALSE);
	(*disp).flags |= ((NU32)1)<<((((NU8) 25))%(sizeof(NU32)*8));
	(*disp).flags &= ~(((NU32)1) << ((((NU8) 1)) % (sizeof(NU32)*8)));
	asgnRefNoCycle((void**) (&(*disp).typ), copytype_219470((*disp).typ, (*(*disp).typ).owner, NIM_FALSE));
	{
		if (!((*(*disp).typ).callconv == ((NU8) 5))) goto LA3;
		(*(*disp).typ).callconv = ((NU8) 0);
	}
	LA3: ;
	asgnRefNoCycle((void**) (&(*disp).ast), copytree_220822((*s).ast));
	asgnRefNoCycle((void**) (&(*(*disp).ast).kindU.S6.sons->data[((NI) 6)]), emptynode_217801);
	asgnRefNoCycle((void**) (&(*disp).loc.r), NIM_NIL);
	{
		if (!!(((*(*s).typ).sons->data[((NI) 0)] == NIM_NIL))) goto LA7;
		{
			NI LOC11;
			LOC11 = 0;
			LOC11 = sonslen_219351((*disp).ast);
			if (!(((NI) 7) < LOC11)) goto LA12;
			asgnRefNoCycle((void**) (&(*(*(*disp).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym), copysym_219601((*(*(*s).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym, NIM_FALSE));
		}
		goto LA9;
		LA12: ;
		{
			addson_218807((*disp).ast, emptynode_217801);
		}
		LA9: ;
	}
	LA7: ;
	LOC15 = 0;
	LOC15 = newsymnode_218234(disp);
	attachdispatcher_376362(s, LOC15);
	LOC16 = 0;
	LOC16 = newsymnode_218234(disp);
	attachdispatcher_376362(disp, LOC16);
	result = disp;
	goto BeforeRet;
	}BeforeRet: ;
	return result;
}

static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	memcpy(((NCSTRING) ((&(*dest).data[((*dest).Sup.len)- 0]))), ((NCSTRING) ((*src).data)), (NI)((*src).Sup.len + ((NI) 1)));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(void, methoddef_376628)(Tsym216822* s, NIM_BOOL fromcache) {
	NI L;
	Tsym216822* witness;
	TY376227 LOC19;
	TY266332 LOC20;
{	L = (gmethods_376246 ? gmethods_376246->Sup.len : 0);
	witness = 0;
	{
		NI i_376653;
		NI HEX3Atmp_376889;
		NI res_376892;
		i_376653 = 0;
		HEX3Atmp_376889 = 0;
		HEX3Atmp_376889 = (NI)(L - ((NI) 1));
		res_376892 = ((NI) 0);
		{
			while (1) {
				Tsym216822* disp;
				NU8 LOC4;
				if (!(res_376892 <= HEX3Atmp_376889)) goto LA3;
				i_376653 = res_376892;
				disp = gmethods_376246->data[i_376653].Field1;
				LOC4 = 0;
				LOC4 = samemethodbucket_376253(disp, s);
				switch (LOC4) {
				case ((NU8) 2):
				{
					Tnode216790* LOC6;
					gmethods_376246->data[i_376653].Field0 = (Tsymseq216792*) incrSeqV2(&(gmethods_376246->data[i_376653].Field0)->Sup, sizeof(Tsym216822*));
					asgnRefNoCycle((void**) (&gmethods_376246->data[i_376653].Field0->data[gmethods_376246->data[i_376653].Field0->Sup.len]), s);
					++gmethods_376246->data[i_376653].Field0->Sup.len;
					LOC6 = 0;
					LOC6 = lastson_219364((*disp).ast);
					attachdispatcher_376362(s, LOC6);
					fixupdispatcher_376466(s, disp);
					checkmethodeffects_348842(disp, s);
					{
						NIM_BOOL LOC9;
						LOC9 = 0;
						LOC9 = (((*s).flags &(1U<<((NU)(((NU8) 18))&31U)))!=0);
						if (!(LOC9)) goto LA10;
						LOC9 = !((gmethods_376246->data[i_376653].Field0->data[((NI) 0)] == s));
						LA10: ;
						if (!LOC9) goto LA11;
						localerror_189085((*s).info, ((NimStringDesc*) &TMP3455));
					}
					LA11: ;
					goto BeforeRet;
				}
				break;
				case ((NU8) 0):
				{
				}
				break;
				case ((NU8) 1):
				{
					{
						if (!witness == 0) goto LA17;
						witness = gmethods_376246->data[i_376653].Field0->data[((NI) 0)];
					}
					LA17: ;
				}
				break;
				}
				res_376892 += ((NI) 1);
			} LA3: ;
		}
	}
	memset((void*)(&LOC19), 0, sizeof(LOC19));
	LOC19.Field0 = (Tsymseq216792*) newSeq((&NTI216792), 1);
	memset((void*)LOC20, 0, sizeof(LOC20));
	LOC20[0] = s;
	asgnRefNoCycle((void**) (&LOC19.Field0->data[0]), LOC20[0]);
	LOC19.Field1 = createdispatcher_376397(s);
	gmethods_376246 = (TY376226*) incrSeqV2(&(gmethods_376246)->Sup, sizeof(TY376227));
	genericSeqAssign((&gmethods_376246->data[gmethods_376246->Sup.len].Field0), LOC19.Field0, (&NTI216792));
	asgnRefNoCycle((void**) (&gmethods_376246->data[gmethods_376246->Sup.len].Field1), LOC19.Field1);
	++gmethods_376246->Sup.len;
	{
		if (!fromcache) goto LA23;
		internalerror_189100((*s).info, ((NimStringDesc*) &TMP3456));
	}
	LA23: ;
	{
		NimStringDesc* LOC29;
		NimStringDesc* LOC30;
		if (!!((witness == NIM_NIL))) goto LA27;
		LOC29 = 0;
		LOC30 = 0;
		LOC30 = HEX24_185431((*witness).info);
		LOC29 = rawNewString((*(*s).name).s->Sup.len + LOC30->Sup.len + 68);
appendString(LOC29, ((NimStringDesc*) &TMP3457));
appendString(LOC29, (*(*s).name).s);
appendString(LOC29, ((NimStringDesc*) &TMP3458));
appendString(LOC29, LOC30);
		localerror_189085((*s).info, LOC29);
	}
	goto LA25;
	LA27: ;
	{
		if (!!((((*s).flags &(1U<<((NU)(((NU8) 18))&31U)))!=0))) goto LA32;
		message_189095((*s).info, ((NU16) 252), ((NimStringDesc*) &TMP3459));
	}
	goto LA25;
	LA32: ;
	LA25: ;
	}BeforeRet: ;
}

N_NIMCALL(Tnode216790*, genconv_376005)(Tnode216790* n, Ttype216828* d, NIM_BOOL downcast) {
	Tnode216790* result;
	Ttype216828* dest;
	Ttype216828* source;
	result = 0;
	dest = skiptypes_220113(d, IL64(211106247256320));
	source = skiptypes_220113((*n).typ, IL64(211106247256320));
	{
		NIM_BOOL LOC3;
		NI diff;
		LOC3 = 0;
		LOC3 = ((*source).kind == ((NU8) 17));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*dest).kind == ((NU8) 17));
		LA4: ;
		if (!LOC3) goto LA5;
		diff = inheritancediff_248442(dest, source);
		{
			if (!(diff == ((NI) 2147483647))) goto LA9;
			result = n;
		}
		goto LA7;
		LA9: ;
		{
			if (!(diff < ((NI) 0))) goto LA12;
			result = newnodeit_218801(((NU8) 67), (*n).info, d);
			addson_218807(result, n);
			{
				if (!downcast) goto LA16;
				internalerror_189100((*n).info, ((NimStringDesc*) &TMP3460));
			}
			LA16: ;
		}
		goto LA7;
		LA12: ;
		{
			if (!(((NI) 0) < diff)) goto LA19;
			result = newnodeit_218801(((NU8) 66), (*n).info, d);
			addson_218807(result, n);
			{
				if (!!(downcast)) goto LA23;
				internalerror_189100((*n).info, ((NimStringDesc*) &TMP3461));
			}
			LA23: ;
		}
		goto LA7;
		LA19: ;
		{
			result = n;
		}
		LA7: ;
	}
	goto LA1;
	LA5: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode216790*, methodcall_376036)(Tnode216790* n) {
	Tnode216790* result;
	Tsym216822* disp;
	Tnode216790* LOC1;
	result = 0;
	result = n;
	LOC1 = 0;
	LOC1 = lastson_219364((*(*(*result).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).ast);
	disp = (*LOC1).kindU.S4.sym;
	asgnRefNoCycle((void**) (&(*(*result).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym), disp);
	{
		NI i_376214;
		NI HEX3Atmp_376219;
		NI LOC3;
		NI res_376222;
		i_376214 = 0;
		HEX3Atmp_376219 = 0;
		LOC3 = 0;
		LOC3 = sonslen_219351(result);
		HEX3Atmp_376219 = (NI)(LOC3 - ((NI) 1));
		res_376222 = ((NI) 1);
		{
			while (1) {
				if (!(res_376222 <= HEX3Atmp_376219)) goto LA5;
				i_376214 = res_376222;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_376214]), genconv_376005((*result).kindU.S6.sons->data[i_376214], (*(*disp).typ).sons->data[i_376214], NIM_TRUE));
				res_376222 += ((NI) 1);
			} LA5: ;
		}
	}
	return result;
}

N_NIMCALL(NIM_BOOL, relevantcol_376896)(Tsymseq216792* methods, NI col) {
	NIM_BOOL result;
	Ttype216828* t;
{	result = 0;
	t = skiptypes_220113((*(*methods->data[((NI) 0)]).typ).sons->data[col], IL64(211106247215360));
	{
		if (!((*t).kind == ((NU8) 17))) goto LA3;
		{
			NI i_376923;
			NI HEX3Atmp_376927;
			NI res_376930;
			i_376923 = 0;
			HEX3Atmp_376927 = 0;
			HEX3Atmp_376927 = (methods ? (methods->Sup.len-1) : -1);
			res_376930 = ((NI) 1);
			{
				while (1) {
					Ttype216828* t2;
					if (!(res_376930 <= HEX3Atmp_376927)) goto LA7;
					i_376923 = res_376930;
					t2 = skiptypes_220113((*(*methods->data[i_376923]).typ).sons->data[col], IL64(211106247215360));
					{
						NIM_BOOL LOC10;
						LOC10 = 0;
						LOC10 = sametype_246628(t2, t, 0);
						if (!!(LOC10)) goto LA11;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA11: ;
					res_376930 += ((NI) 1);
				} LA7: ;
			}
		}
	}
	LA3: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NI, cmpsignatures_376934)(Tsym216822* a, Tsym216822* b, Intset213035 relevantcols) {
	NI result;
{	result = 0;
	{
		NI col_376952;
		NI HEX3Atmp_376963;
		NI LOC2;
		NI res_376966;
		col_376952 = 0;
		HEX3Atmp_376963 = 0;
		LOC2 = 0;
		LOC2 = sonslen_219327((*a).typ);
		HEX3Atmp_376963 = (NI)(LOC2 - ((NI) 1));
		res_376966 = ((NI) 1);
		{
			while (1) {
				if (!(res_376966 <= HEX3Atmp_376963)) goto LA4;
				col_376952 = res_376966;
				{
					NIM_BOOL LOC7;
					Ttype216828* aa;
					Ttype216828* bb;
					NI d;
					LOC7 = 0;
					LOC7 = contains_213811(relevantcols, col_376952);
					if (!LOC7) goto LA8;
					aa = skiptypes_220113((*(*a).typ).sons->data[col_376952], IL64(211106247215360));
					bb = skiptypes_220113((*(*b).typ).sons->data[col_376952], IL64(211106247215360));
					d = inheritancediff_248442(aa, bb);
					{
						if (!!((d == ((NI) 2147483647)))) goto LA12;
						result = d;
						goto BeforeRet;
					}
					LA12: ;
				}
				LA8: ;
				res_376966 += ((NI) 1);
			} LA4: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, sortbucket_376970)(Tsymseq216792** a, Intset213035 relevantcols) {
	NI n;
	NI h;
	n = ((*a) ? (*a)->Sup.len : 0);
	h = ((NI) 1);
	{
		while (1) {
			h = (NI)((NI)(((NI) 3) * h) + ((NI) 1));
			{
				if (!(n < h)) goto LA5;
				goto LA1;
			}
			LA5: ;
		}
	} LA1: ;
	{
		while (1) {
			h = (NI)(h / ((NI) 3));
			{
				NI i_376996;
				NI HEX3Atmp_377003;
				NI res_377006;
				i_376996 = 0;
				HEX3Atmp_377003 = 0;
				HEX3Atmp_377003 = (NI)(n - ((NI) 1));
				res_377006 = h;
				{
					while (1) {
						Tsym216822* v;
						NI j;
						if (!(res_377006 <= HEX3Atmp_377003)) goto LA11;
						i_376996 = res_377006;
						v = (*a)->data[i_376996];
						j = i_376996;
						{
							while (1) {
								NI LOC14;
								LOC14 = 0;
								LOC14 = cmpsignatures_376934((*a)->data[(NI)(j - h)], v, relevantcols);
								if (!(((NI) 0) <= LOC14)) goto LA13;
								asgnRefNoCycle((void**) (&(*a)->data[j]), (*a)->data[(NI)(j - h)]);
								j = (NI)(j - h);
								{
									if (!(j < h)) goto LA17;
									goto LA12;
								}
								LA17: ;
							} LA13: ;
						} LA12: ;
						asgnRefNoCycle((void**) (&(*a)->data[j]), v);
						res_377006 += ((NI) 1);
					} LA11: ;
				}
			}
			{
				if (!(h == ((NI) 1))) goto LA21;
				goto LA7;
			}
			LA21: ;
		}
	} LA7: ;
}

N_NIMCALL(Tsym216822*, gendispatcher_377010)(Tsymseq216792* methods, Intset213035 relevantcols) {
	Tsym216822* result;
	Tsym216822* base;
	Tnode216790* LOC1;
	NI paramlen;
	Tnode216790* disp;
	Tsym216822* ands;
	Tsym216822* iss;
	result = 0;
	LOC1 = 0;
	LOC1 = lastson_219364((*methods->data[((NI) 0)]).ast);
	base = (*LOC1).kindU.S4.sym;
	result = base;
	paramlen = sonslen_219327((*base).typ);
	disp = newnodei_218248(((NU8) 92), (*base).info);
	ands = getsyssym_260041(((NimStringDesc*) &TMP4483));
	iss = getsyssym_260041(((NimStringDesc*) &TMP4484));
	{
		NI meth_377035;
		NI HEX3Atmp_377144;
		NI res_377147;
		meth_377035 = 0;
		HEX3Atmp_377144 = 0;
		HEX3Atmp_377144 = (methods ? (methods->Sup.len-1) : -1);
		res_377147 = ((NI) 0);
		{
			while (1) {
				Tsym216822* curr;
				Tnode216790* cond;
				Tnode216790* call;
				Tnode216790* LOC24;
				Tnode216790* ret;
				if (!(res_377147 <= HEX3Atmp_377144)) goto LA4;
				meth_377035 = res_377147;
				curr = methods->data[meth_377035];
				cond = NIM_NIL;
				{
					NI col_377049;
					NI HEX3Atmp_377128;
					NI res_377131;
					col_377049 = 0;
					HEX3Atmp_377128 = 0;
					HEX3Atmp_377128 = (NI)(paramlen - ((NI) 1));
					res_377131 = ((NI) 1);
					{
						while (1) {
							if (!(res_377131 <= HEX3Atmp_377128)) goto LA7;
							col_377049 = res_377131;
							{
								NIM_BOOL LOC10;
								Tnode216790* isn;
								Ttype216828* LOC13;
								Tnode216790* LOC14;
								Tnode216790* LOC15;
								Tnode216790* LOC16;
								LOC10 = 0;
								LOC10 = contains_213811(relevantcols, col_377049);
								if (!LOC10) goto LA11;
								LOC13 = 0;
								LOC13 = getsystype_260130(((NU8) 1));
								isn = newnodeit_218801(((NU8) 27), (*base).info, LOC13);
								LOC14 = 0;
								LOC14 = newsymnode_218234(iss);
								addson_218807(isn, LOC14);
								LOC15 = 0;
								LOC15 = newsymnode_218234((*(*(*(*base).typ).n).kindU.S6.sons->data[col_377049]).kindU.S4.sym);
								addson_218807(isn, LOC15);
								LOC16 = 0;
								LOC16 = newnodeit_218801(((NU8) 4), (*base).info, (*(*curr).typ).sons->data[col_377049]);
								addson_218807(isn, LOC16);
								{
									Tnode216790* a;
									Ttype216828* LOC21;
									Tnode216790* LOC22;
									if (!!((cond == NIM_NIL))) goto LA19;
									LOC21 = 0;
									LOC21 = getsystype_260130(((NU8) 1));
									a = newnodeit_218801(((NU8) 27), (*base).info, LOC21);
									LOC22 = 0;
									LOC22 = newsymnode_218234(ands);
									addson_218807(a, LOC22);
									addson_218807(a, cond);
									addson_218807(a, isn);
									cond = a;
								}
								goto LA17;
								LA19: ;
								{
									cond = isn;
								}
								LA17: ;
							}
							LA11: ;
							res_377131 += ((NI) 1);
						} LA7: ;
					}
				}
				call = newnodei_218248(((NU8) 27), (*base).info);
				LOC24 = 0;
				LOC24 = newsymnode_218234(curr);
				addson_218807(call, LOC24);
				{
					NI col_377084;
					NI HEX3Atmp_377136;
					NI res_377139;
					col_377084 = 0;
					HEX3Atmp_377136 = 0;
					HEX3Atmp_377136 = (NI)(paramlen - ((NI) 1));
					res_377139 = ((NI) 1);
					{
						while (1) {
							Tnode216790* LOC28;
							Tnode216790* LOC29;
							if (!(res_377139 <= HEX3Atmp_377136)) goto LA27;
							col_377084 = res_377139;
							LOC28 = 0;
							LOC28 = newsymnode_218234((*(*(*(*base).typ).n).kindU.S6.sons->data[col_377084]).kindU.S4.sym);
							LOC29 = 0;
							LOC29 = genconv_376005(LOC28, (*(*curr).typ).sons->data[col_377084], NIM_FALSE);
							addson_218807(call, LOC29);
							res_377139 += ((NI) 1);
						} LA27: ;
					}
				}
				ret = 0;
				{
					Tnode216790* a;
					Tnode216790* LOC34;
					if (!!(((*(*base).typ).sons->data[((NI) 0)] == NIM_NIL))) goto LA32;
					a = newnodei_218248(((NU8) 74), (*base).info);
					LOC34 = 0;
					LOC34 = newsymnode_218234((*(*(*base).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym);
					addson_218807(a, LOC34);
					addson_218807(a, call);
					ret = newnodei_218248(((NU8) 109), (*base).info);
					addson_218807(ret, a);
				}
				goto LA30;
				LA32: ;
				{
					ret = call;
				}
				LA30: ;
				{
					Tnode216790* a;
					if (!!((cond == NIM_NIL))) goto LA38;
					a = newnodei_218248(((NU8) 86), (*base).info);
					addson_218807(a, cond);
					addson_218807(a, ret);
					addson_218807(disp, a);
				}
				goto LA36;
				LA38: ;
				{
					disp = ret;
				}
				LA36: ;
				res_377147 += ((NI) 1);
			} LA4: ;
		}
	}
	asgnRefNoCycle((void**) (&(*(*result).ast).kindU.S6.sons->data[((NI) 6)]), disp);
	return result;
}

N_NIMCALL(Tnode216790*, generatemethoddispatchers_377151)(void) {
	Tnode216790* result;
	result = 0;
	result = newnode_217401(((NU8) 115));
	{
		NI bucket_377173;
		NI HEX3Atmp_377199;
		NI res_377202;
		bucket_377173 = 0;
		HEX3Atmp_377199 = 0;
		HEX3Atmp_377199 = (NI)((gmethods_376246 ? gmethods_376246->Sup.len : 0) - ((NI) 1));
		res_377202 = ((NI) 0);
		{
			while (1) {
				Intset213035 relevantcols;
				Tsym216822* LOC13;
				Tnode216790* LOC14;
				if (!(res_377202 <= HEX3Atmp_377199)) goto LA3;
				bucket_377173 = res_377202;
				memset((void*)(&relevantcols), 0, sizeof(relevantcols));
				chckNil((void*)(&relevantcols));
				memset((void*)(&relevantcols), 0, sizeof(relevantcols));
				initintset_213885((&relevantcols));
				{
					NI col_377187;
					NI HEX3Atmp_377192;
					NI LOC5;
					NI res_377195;
					col_377187 = 0;
					HEX3Atmp_377192 = 0;
					LOC5 = 0;
					LOC5 = sonslen_219327((*gmethods_376246->data[bucket_377173].Field0->data[((NI) 0)]).typ);
					HEX3Atmp_377192 = (NI)(LOC5 - ((NI) 1));
					res_377195 = ((NI) 1);
					{
						while (1) {
							if (!(res_377195 <= HEX3Atmp_377192)) goto LA7;
							col_377187 = res_377195;
							{
								NIM_BOOL LOC10;
								LOC10 = 0;
								LOC10 = relevantcol_376896(gmethods_376246->data[bucket_377173].Field0, col_377187);
								if (!LOC10) goto LA11;
								incl_213832((&relevantcols), col_377187);
							}
							LA11: ;
							res_377195 += ((NI) 1);
						} LA7: ;
					}
				}
				sortbucket_376970((&gmethods_376246->data[bucket_377173].Field0), relevantcols);
				LOC13 = 0;
				LOC13 = gendispatcher_377010(gmethods_376246->data[bucket_377173].Field0, relevantcols);
				LOC14 = 0;
				LOC14 = newsymnode_218234(LOC13);
				addson_218807(result, LOC14);
				res_377202 += ((NI) 1);
			} LA3: ;
		}
	}
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_cgmethInit000)(void) {
	if (gmethods_376246) nimGCunrefNoCycle(gmethods_376246);
	gmethods_376246 = (TY376226*) newSeqRC1((&NTI376226), 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_cgmethDatInit000)(void) {
static TNimNode* TMP1021[2];
static TNimNode TMP1019[3];
NTI376227.size = sizeof(TY376227);
NTI376227.kind = 18;
NTI376227.base = 0;
NTI376227.flags = 2;
TMP1021[0] = &TMP1019[1];
TMP1019[1].kind = 1;
TMP1019[1].offset = offsetof(TY376227, Field0);
TMP1019[1].typ = (&NTI216792);
TMP1019[1].name = "Field0";
TMP1021[1] = &TMP1019[2];
TMP1019[2].kind = 1;
TMP1019[2].offset = offsetof(TY376227, Field1);
TMP1019[2].typ = (&NTI216788);
TMP1019[2].name = "Field1";
TMP1019[0].len = 2; TMP1019[0].kind = 2; TMP1019[0].sons = &TMP1021[0];
NTI376227.node = &TMP1019[0];
NTI376226.size = sizeof(TY376226*);
NTI376226.kind = 24;
NTI376226.base = (&NTI376227);
NTI376226.flags = 2;
NTI376226.marker = TMP1022;
}

