/* 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 TY373226 TY373226;
typedef struct TY373227 TY373227;
typedef struct Tsymseq213792 Tsymseq213792;
typedef struct Tsym213822 Tsym213822;
typedef struct TGenericSeq TGenericSeq;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Cell47705 Cell47705;
typedef struct Cellseq47721 Cellseq47721;
typedef struct Gcheap50018 Gcheap50018;
typedef struct Gcstack50016 Gcstack50016;
typedef struct Cellset47717 Cellset47717;
typedef struct Pagedesc47713 Pagedesc47713;
typedef struct Memregion29887 Memregion29887;
typedef struct Smallchunk29839 Smallchunk29839;
typedef struct Llchunk29881 Llchunk29881;
typedef struct Bigchunk29841 Bigchunk29841;
typedef struct Intset29814 Intset29814;
typedef struct Trunk29810 Trunk29810;
typedef struct Avlnode29885 Avlnode29885;
typedef struct Gcstat50014 Gcstat50014;
typedef struct Tidobj188006 Tidobj188006;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq213824 Ttypeseq213824;
typedef struct Tscope213816 Tscope213816;
typedef struct TY213925 TY213925;
typedef struct Tstrtable213794 Tstrtable213794;
typedef struct Ttype213828 Ttype213828;
typedef struct Tident188012 Tident188012;
typedef struct Tlineinfo181337 Tlineinfo181337;
typedef struct Tnode213790 Tnode213790;
typedef struct Tloc213804 Tloc213804;
typedef struct Ropeobj168006 Ropeobj168006;
typedef struct Tlib213808 Tlib213808;
typedef struct NimStringDesc NimStringDesc;
typedef struct Tnodeseq213784 Tnodeseq213784;
typedef struct Intset210035 Intset210035;
typedef struct Trunk210031 Trunk210031;
typedef struct Trunkseq210033 Trunkseq210033;
typedef struct Basechunk29837 Basechunk29837;
typedef struct Freecell29829 Freecell29829;
typedef struct Tinstantiation213812 Tinstantiation213812;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct TY213913 TY213913;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct TY373227 {
Tsymseq213792* Field0;
Tsym213822* 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  Cell47705  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47721  {
NI len;
NI cap;
Cell47705** d;
};
struct  Cellset47717  {
NI counter;
NI max;
Pagedesc47713* head;
Pagedesc47713** data;
};
typedef Smallchunk29839* TY29902[512];
typedef Trunk29810* Trunkbuckets29812[256];
struct  Intset29814  {
Trunkbuckets29812 data;
};
struct  Memregion29887  {
NI minlargeobj;
NI maxlargeobj;
TY29902 freesmallchunks;
Llchunk29881* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29841* freechunkslist;
Intset29814 chunkstarts;
Avlnode29885* root;
Avlnode29885* deleted;
Avlnode29885* last;
Avlnode29885* freeavlnodes;
};
struct  Gcstat50014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap50018  {
Gcstack50016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47721 zct;
Cellseq47721 decstack;
Cellset47717 cycleroots;
Cellseq47721 tempstack;
NI recgclock;
Memregion29887 region;
Gcstat50014 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj188006  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable213794  {
NI counter;
Tsymseq213792* data;
};
struct  Tlineinfo181337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tloc213804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype213828* t;
Ropeobj168006* r;
Ropeobj168006* heaproot;
};
struct  Tsym213822  {
  Tidobj188006 Sup;
NU8 kind;
union{
struct {Ttypeseq213824* typeinstcache;
Tscope213816* typscope;
} S1;
struct {TY213925* procinstcache;
Tsym213822* gcunsafetyreason;
} S2;
struct {TY213925* usedgenerics;
Tstrtable213794 tab;
} S3;
struct {Tsym213822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype213828* typ;
Tident188012* name;
Tlineinfo181337 info;
Tsym213822* owner;
NU32 flags;
Tnode213790* ast;
NU32 options;
NI position;
NI offset;
Tloc213804 loc;
Tlib213808* annex;
Tnode213790* constraint;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tident188012  {
  Tidobj188006 Sup;
NimStringDesc* s;
Tident188012* next;
NI h;
};
struct  Ttype213828  {
  Tidobj188006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq213824* sons;
Tnode213790* n;
Tsym213822* owner;
Tsym213822* sym;
Tsym213822* destructor;
Tsym213822* deepcopy;
Tsym213822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc213804 loc;
};
struct  Tnode213790  {
Ttype213828* typ;
Tlineinfo181337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym213822* sym;
} S4;
struct {Tident188012* ident;
} S5;
struct {Tnodeseq213784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef NimStringDesc* TY183169[2];
typedef Tsym213822* TY263332[1];
struct  Intset210035  {
NI counter;
NI max;
Trunk210031* head;
Trunkseq210033* data;
};
struct  Gcstack50016  {
Gcstack50016* prev;
Gcstack50016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29818[16];
struct  Pagedesc47713  {
Pagedesc47713* next;
NI key;
TY29818 bits;
};
struct  Basechunk29837  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29839  {
  Basechunk29837 Sup;
Smallchunk29839* next;
Smallchunk29839* prev;
Freecell29829* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29881  {
NI size;
NI acc;
Llchunk29881* next;
};
struct  Bigchunk29841  {
  Basechunk29837 Sup;
Bigchunk29841* next;
Bigchunk29841* prev;
NI align;
NF data;
};
struct  Trunk29810  {
Trunk29810* next;
NI key;
TY29818 bits;
};
typedef Avlnode29885* TY29892[2];
struct  Avlnode29885  {
TY29892 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope213816  {
NI depthlevel;
Tstrtable213794 symbols;
Tnodeseq213784* usingsyms;
Tscope213816* parent;
};
struct  Ropeobj168006  {
  TNimObject Sup;
Ropeobj168006* left;
Ropeobj168006* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Tlib213808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj168006* name;
Tnode213790* path;
};
struct  Trunk210031  {
Trunk210031* next;
NI key;
TY29818 bits;
};
struct  Freecell29829  {
Freecell29829* next;
NI zerofield;
};
struct  Tinstantiation213812  {
Tsym213822* sym;
Ttypeseq213824* concretetypes;
TY213913* usedby;
NI compilesid;
};
struct Tsymseq213792 {
  TGenericSeq Sup;
  Tsym213822* data[SEQ_DECL_SIZE];
};
struct TY373226 {
  TGenericSeq Sup;
  TY373227 data[SEQ_DECL_SIZE];
};
struct Ttypeseq213824 {
  TGenericSeq Sup;
  Ttype213828* data[SEQ_DECL_SIZE];
};
struct TY213925 {
  TGenericSeq Sup;
  Tinstantiation213812* data[SEQ_DECL_SIZE];
};
struct Tnodeseq213784 {
  TGenericSeq Sup;
  Tnode213790* data[SEQ_DECL_SIZE];
};
struct Trunkseq210033 {
  TGenericSeq Sup;
  Trunk210031* data[SEQ_DECL_SIZE];
};
struct TY213913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP1012)(void* p, NI op);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell47705*, usrtocell_51640)(void* usr);
static N_INLINE(void, rtladdzct_53201)(Cell47705* c);
N_NOINLINE(void, addzct_51617)(Cellseq47721* s, Cell47705* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
N_NIMCALL(NU8, samemethodbucket_373253)(Tsym213822* a, Tsym213822* b);
N_NIMCALL(NI, sonslen_216327)(Ttype213828* n);
N_NIMCALL(NIM_BOOL, sametypeornil_243638)(Ttype213828* a, Ttype213828* b, NU8 flags);
N_NIMCALL(Ttype213828*, skiptypes_217113)(Ttype213828* t, NU64 kinds);
N_NIMCALL(Ttype213828*, lastson_216377)(Ttype213828* n);
N_NIMCALL(NIM_BOOL, sametype_243628)(Ttype213828* a, Ttype213828* b, NU8 flags);
N_NIMCALL(NI, inheritancediff_245442)(Ttype213828* a, Ttype213828* b);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(void, attachdispatcher_373362)(Tsym213822* s, Tnode213790* dispatcher);
static N_INLINE(NI, len_214059)(Tnode213790* n);
N_NIMCALL(void, add_214114)(Tnode213790* father, Tnode213790* son);
N_NIMCALL(Tnode213790*, lastson_216364)(Tnode213790* n);
N_NIMCALL(void, fixupdispatcher_373466)(Tsym213822* meth, Tsym213822* disp);
N_NIMCALL(NI, sonslen_216351)(Tnode213790* n);
N_NIMCALL(Tnode213790*, copytree_217822)(Tnode213790* src);
N_NIMCALL(void, message_186095)(Tlineinfo181337 info, NU16 msg, NimStringDesc* arg);
N_NIMCALL(NimStringDesc*, nsuFormatOpenArray)(NimStringDesc* formatstr, NimStringDesc** a, NI aLen0);
N_NIMCALL(NimStringDesc*, HEX24_216069)(NI16 x);
N_NIMCALL(void, checkmethodeffects_345842)(Tsym213822* disp, Tsym213822* branch);
N_NIMCALL(void, localerror_186085)(Tlineinfo181337 info, NimStringDesc* arg);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(Tsym213822*, createdispatcher_373397)(Tsym213822* s);
N_NIMCALL(Tsym213822*, copysym_216601)(Tsym213822* s, NIM_BOOL keepid);
N_NIMCALL(Ttype213828*, copytype_216470)(Ttype213828* t, Tsym213822* owner, NIM_BOOL keepid);
N_NIMCALL(void, addson_215807)(Tnode213790* father, Tnode213790* son);
N_NIMCALL(Tnode213790*, newsymnode_215234)(Tsym213822* sym);
N_NIMCALL(void, genericSeqAssign)(void* dest, void* src_84204, TNimType* mt);
N_NIMCALL(void, internalerror_186100)(Tlineinfo181337 info, NimStringDesc* errmsg);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, HEX24_182431)(Tlineinfo181337 info);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(Tnode213790*, genconv_373005)(Tnode213790* n, Ttype213828* d, NIM_BOOL downcast);
N_NIMCALL(Tnode213790*, newnodeit_215801)(NU8 kind, Tlineinfo181337 info, Ttype213828* typ);
N_NIMCALL(Tnode213790*, newnode_214401)(NU8 kind);
N_NIMCALL(void, initintset_210885)(Intset210035* Result);
N_NOINLINE(void, chckNil)(void* p);
N_NIMCALL(NIM_BOOL, relevantcol_373896)(Tsymseq213792* methods, NI col);
N_NIMCALL(void, incl_210832)(Intset210035* s, NI key);
N_NIMCALL(void, sortbucket_373970)(Tsymseq213792** a, Intset210035 relevantcols);
N_NIMCALL(NI, cmpsignatures_373934)(Tsym213822* a, Tsym213822* b, Intset210035 relevantcols);
N_NIMCALL(NIM_BOOL, contains_210811)(Intset210035 s, NI key);
N_NIMCALL(Tsym213822*, gendispatcher_374010)(Tsymseq213792* methods, Intset210035 relevantcols);
N_NIMCALL(Tnode213790*, newnodei_215248)(NU8 kind, Tlineinfo181337 info);
N_NIMCALL(Tsym213822*, getsyssym_257041)(NimStringDesc* name);
N_NIMCALL(Ttype213828*, getsystype_257130)(NU8 kind);
STRING_LITERAL(TMP3439, "method has lock level $1, but another method has $2", 51);
STRING_LITERAL(TMP3447, "method is not a base", 20);
STRING_LITERAL(TMP3448, "no method dispatcher found", 26);
STRING_LITERAL(TMP3449, "invalid declaration order; cannot attach \'", 42);
STRING_LITERAL(TMP3450, "\' to method defined here: ", 26);
STRING_LITERAL(TMP3451, "", 0);
STRING_LITERAL(TMP3452, "cgmeth.genConv: no upcast allowed", 33);
STRING_LITERAL(TMP3453, "cgmeth.genConv: no downcast allowed", 35);
STRING_LITERAL(TMP4477, "and", 3);
STRING_LITERAL(TMP4478, "of", 2);
TY373226* gmethods_373246;
TNimType NTI373227; /* tuple[methods: TSymSeq, dispatcher: PSym] */
extern TNimType NTI213792; /* TSymSeq */
extern TNimType NTI213788; /* PSym */
TNimType NTI373226; /* seq[tuple[methods: TSymSeq, dispatcher: PSym]] */
extern Gcheap50018 gch_50059;
extern Tnode213790* emptynode_214801;
N_NIMCALL(void, TMP1012)(void* p, NI op) {
	TY373226* a;
	NI LOC1;
	a = (TY373226*)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(Cell47705*, usrtocell_51640)(void* usr) {
	Cell47705* result;
	result = 0;
	result = ((Cell47705*) ((NI)((NU32)(((NI) (usr))) - (NU32)(((NI)sizeof(Cell47705))))));
	return result;
}

static N_INLINE(void, rtladdzct_53201)(Cell47705* c) {
	addzct_51617((&gch_50059.zct), c);
}

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

N_NIMCALL(NU8, samemethodbucket_373253)(Tsym213822* a, Tsym213822* 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_216327((*a).typ);
		LOC8 = 0;
		LOC8 = sonslen_216327((*b).typ);
		if (!!((LOC7 == LOC8))) goto LA9;
		goto BeforeRet;
	}
	LA9: ;
	{
		NIM_BOOL LOC13;
		LOC13 = 0;
		LOC13 = sametypeornil_243638((*(*a).typ).sons->data[((NI) 0)], (*(*b).typ).sons->data[((NI) 0)], 0);
		if (!!(LOC13)) goto LA14;
		goto BeforeRet;
	}
	LA14: ;
	{
		NI i_373276;
		NI HEX3Atmp_373355;
		NI LOC17;
		NI res_373358;
		i_373276 = 0;
		HEX3Atmp_373355 = 0;
		LOC17 = 0;
		LOC17 = sonslen_216327((*a).typ);
		HEX3Atmp_373355 = (NI)(LOC17 - ((NI) 1));
		res_373358 = ((NI) 1);
		{
			while (1) {
				Ttype213828* aa;
				Ttype213828* bb;
				if (!(res_373358 <= HEX3Atmp_373355)) goto LA19;
				i_373276 = res_373358;
				aa = (*(*a).typ).sons->data[i_373276];
				bb = (*(*b).typ).sons->data[i_373276];
				{
					while (1) {
						aa = skiptypes_217113(aa, 2048);
						bb = skiptypes_217113(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_216377(aa);
							bb = lastson_216377(bb);
						}
						goto LA22;
						LA26: ;
						{
							goto LA20;
						}
						LA22: ;
					}
				} LA20: ;
				{
					NIM_BOOL LOC31;
					LOC31 = 0;
					LOC31 = sametype_243628(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_245442(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_373358 += ((NI) 1);
			} LA19: ;
		}
	}
	}BeforeRet: ;
	return result;
}

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

static N_INLINE(NI, len_214059)(Tnode213790* 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_373362)(Tsym213822* s, Tnode213790* dispatcher) {
	NI L;
	NI LOC1;
	Tnode213790* x;
	LOC1 = 0;
	LOC1 = len_214059((*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_214114((*s).ast, dispatcher);
	}
	LA2: ;
}

N_NIMCALL(void, fixupdispatcher_373466)(Tsym213822* meth, Tsym213822* disp) {
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		NI LOC5;
		NI LOC7;
		LOC3 = 0;
		LOC4 = 0;
		LOC5 = 0;
		LOC5 = sonslen_216351((*disp).ast);
		LOC4 = (((NI) 7) < LOC5);
		if (!(LOC4)) goto LA6;
		LOC7 = 0;
		LOC7 = sonslen_216351((*meth).ast);
		LOC4 = (((NI) 7) < LOC7);
		LA6: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA8;
		LOC3 = ((*(*disp).ast).kindU.S6.sons->data[((NI) 7)] == emptynode_214801);
		LA8: ;
		if (!LOC3) goto LA9;
		asgnRefNoCycle((void**) (&(*(*disp).ast).kindU.S6.sons->data[((NI) 7)]), copytree_217822((*(*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;
		TY183169 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_216069((*(*meth).typ).locklevel);
		LOC20[1] = HEX24_216069((*(*disp).typ).locklevel);
		LOC21 = 0;
		LOC21 = nsuFormatOpenArray(((NimStringDesc*) &TMP3439), LOC20, 2);
		message_186095((*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(Tsym213822*, createdispatcher_373397)(Tsym213822* s) {
	Tsym213822* result;
	Tsym213822* disp;
	Tnode213790* LOC15;
	Tnode213790* LOC16;
{	result = 0;
	disp = copysym_216601(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_216470((*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_217822((*s).ast));
	asgnRefNoCycle((void**) (&(*(*disp).ast).kindU.S6.sons->data[((NI) 6)]), emptynode_214801);
	asgnRefNoCycle((void**) (&(*disp).loc.r), NIM_NIL);
	{
		if (!!(((*(*s).typ).sons->data[((NI) 0)] == NIM_NIL))) goto LA7;
		{
			NI LOC11;
			LOC11 = 0;
			LOC11 = sonslen_216351((*disp).ast);
			if (!(((NI) 7) < LOC11)) goto LA12;
			asgnRefNoCycle((void**) (&(*(*(*disp).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym), copysym_216601((*(*(*s).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym, NIM_FALSE));
		}
		goto LA9;
		LA12: ;
		{
			addson_215807((*disp).ast, emptynode_214801);
		}
		LA9: ;
	}
	LA7: ;
	LOC15 = 0;
	LOC15 = newsymnode_215234(disp);
	attachdispatcher_373362(s, LOC15);
	LOC16 = 0;
	LOC16 = newsymnode_215234(disp);
	attachdispatcher_373362(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_373628)(Tsym213822* s, NIM_BOOL fromcache) {
	NI L;
	Tsym213822* witness;
	TY373227 LOC19;
	TY263332 LOC20;
{	L = (gmethods_373246 ? gmethods_373246->Sup.len : 0);
	witness = 0;
	{
		NI i_373653;
		NI HEX3Atmp_373889;
		NI res_373892;
		i_373653 = 0;
		HEX3Atmp_373889 = 0;
		HEX3Atmp_373889 = (NI)(L - ((NI) 1));
		res_373892 = ((NI) 0);
		{
			while (1) {
				Tsym213822* disp;
				NU8 LOC4;
				if (!(res_373892 <= HEX3Atmp_373889)) goto LA3;
				i_373653 = res_373892;
				disp = gmethods_373246->data[i_373653].Field1;
				LOC4 = 0;
				LOC4 = samemethodbucket_373253(disp, s);
				switch (LOC4) {
				case ((NU8) 2):
				{
					Tnode213790* LOC6;
					gmethods_373246->data[i_373653].Field0 = (Tsymseq213792*) incrSeqV2(&(gmethods_373246->data[i_373653].Field0)->Sup, sizeof(Tsym213822*));
					asgnRefNoCycle((void**) (&gmethods_373246->data[i_373653].Field0->data[gmethods_373246->data[i_373653].Field0->Sup.len]), s);
					++gmethods_373246->data[i_373653].Field0->Sup.len;
					LOC6 = 0;
					LOC6 = lastson_216364((*disp).ast);
					attachdispatcher_373362(s, LOC6);
					fixupdispatcher_373466(s, disp);
					checkmethodeffects_345842(disp, s);
					{
						NIM_BOOL LOC9;
						LOC9 = 0;
						LOC9 = (((*s).flags &(1U<<((NU)(((NU8) 18))&31U)))!=0);
						if (!(LOC9)) goto LA10;
						LOC9 = !((gmethods_373246->data[i_373653].Field0->data[((NI) 0)] == s));
						LA10: ;
						if (!LOC9) goto LA11;
						localerror_186085((*s).info, ((NimStringDesc*) &TMP3447));
					}
					LA11: ;
					goto BeforeRet;
				}
				break;
				case ((NU8) 0):
				{
				}
				break;
				case ((NU8) 1):
				{
					{
						if (!witness == 0) goto LA17;
						witness = gmethods_373246->data[i_373653].Field0->data[((NI) 0)];
					}
					LA17: ;
				}
				break;
				}
				res_373892 += ((NI) 1);
			} LA3: ;
		}
	}
	memset((void*)(&LOC19), 0, sizeof(LOC19));
	LOC19.Field0 = (Tsymseq213792*) newSeq((&NTI213792), 1);
	memset((void*)LOC20, 0, sizeof(LOC20));
	LOC20[0] = s;
	asgnRefNoCycle((void**) (&LOC19.Field0->data[0]), LOC20[0]);
	LOC19.Field1 = createdispatcher_373397(s);
	gmethods_373246 = (TY373226*) incrSeqV2(&(gmethods_373246)->Sup, sizeof(TY373227));
	genericSeqAssign((&gmethods_373246->data[gmethods_373246->Sup.len].Field0), LOC19.Field0, (&NTI213792));
	asgnRefNoCycle((void**) (&gmethods_373246->data[gmethods_373246->Sup.len].Field1), LOC19.Field1);
	++gmethods_373246->Sup.len;
	{
		if (!fromcache) goto LA23;
		internalerror_186100((*s).info, ((NimStringDesc*) &TMP3448));
	}
	LA23: ;
	{
		NimStringDesc* LOC29;
		NimStringDesc* LOC30;
		if (!!((witness == NIM_NIL))) goto LA27;
		LOC29 = 0;
		LOC30 = 0;
		LOC30 = HEX24_182431((*witness).info);
		LOC29 = rawNewString((*(*s).name).s->Sup.len + LOC30->Sup.len + 68);
appendString(LOC29, ((NimStringDesc*) &TMP3449));
appendString(LOC29, (*(*s).name).s);
appendString(LOC29, ((NimStringDesc*) &TMP3450));
appendString(LOC29, LOC30);
		localerror_186085((*s).info, LOC29);
	}
	goto LA25;
	LA27: ;
	{
		if (!!((((*s).flags &(1U<<((NU)(((NU8) 18))&31U)))!=0))) goto LA32;
		message_186095((*s).info, ((NU16) 252), ((NimStringDesc*) &TMP3451));
	}
	goto LA25;
	LA32: ;
	LA25: ;
	}BeforeRet: ;
}

N_NIMCALL(Tnode213790*, genconv_373005)(Tnode213790* n, Ttype213828* d, NIM_BOOL downcast) {
	Tnode213790* result;
	Ttype213828* dest;
	Ttype213828* source;
	result = 0;
	dest = skiptypes_217113(d, IL64(211106247256320));
	source = skiptypes_217113((*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_245442(dest, source);
		{
			if (!(diff == ((NI) 2147483647))) goto LA9;
			result = n;
		}
		goto LA7;
		LA9: ;
		{
			if (!(diff < ((NI) 0))) goto LA12;
			result = newnodeit_215801(((NU8) 67), (*n).info, d);
			addson_215807(result, n);
			{
				if (!downcast) goto LA16;
				internalerror_186100((*n).info, ((NimStringDesc*) &TMP3452));
			}
			LA16: ;
		}
		goto LA7;
		LA12: ;
		{
			if (!(((NI) 0) < diff)) goto LA19;
			result = newnodeit_215801(((NU8) 66), (*n).info, d);
			addson_215807(result, n);
			{
				if (!!(downcast)) goto LA23;
				internalerror_186100((*n).info, ((NimStringDesc*) &TMP3453));
			}
			LA23: ;
		}
		goto LA7;
		LA19: ;
		{
			result = n;
		}
		LA7: ;
	}
	goto LA1;
	LA5: ;
	{
		result = n;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode213790*, methodcall_373036)(Tnode213790* n) {
	Tnode213790* result;
	Tsym213822* disp;
	Tnode213790* LOC1;
	result = 0;
	result = n;
	LOC1 = 0;
	LOC1 = lastson_216364((*(*(*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_373214;
		NI HEX3Atmp_373219;
		NI LOC3;
		NI res_373222;
		i_373214 = 0;
		HEX3Atmp_373219 = 0;
		LOC3 = 0;
		LOC3 = sonslen_216351(result);
		HEX3Atmp_373219 = (NI)(LOC3 - ((NI) 1));
		res_373222 = ((NI) 1);
		{
			while (1) {
				if (!(res_373222 <= HEX3Atmp_373219)) goto LA5;
				i_373214 = res_373222;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_373214]), genconv_373005((*result).kindU.S6.sons->data[i_373214], (*(*disp).typ).sons->data[i_373214], NIM_TRUE));
				res_373222 += ((NI) 1);
			} LA5: ;
		}
	}
	return result;
}

N_NIMCALL(NIM_BOOL, relevantcol_373896)(Tsymseq213792* methods, NI col) {
	NIM_BOOL result;
	Ttype213828* t;
{	result = 0;
	t = skiptypes_217113((*(*methods->data[((NI) 0)]).typ).sons->data[col], IL64(211106247215360));
	{
		if (!((*t).kind == ((NU8) 17))) goto LA3;
		{
			NI i_373923;
			NI HEX3Atmp_373927;
			NI res_373930;
			i_373923 = 0;
			HEX3Atmp_373927 = 0;
			HEX3Atmp_373927 = (methods ? (methods->Sup.len-1) : -1);
			res_373930 = ((NI) 1);
			{
				while (1) {
					Ttype213828* t2;
					if (!(res_373930 <= HEX3Atmp_373927)) goto LA7;
					i_373923 = res_373930;
					t2 = skiptypes_217113((*(*methods->data[i_373923]).typ).sons->data[col], IL64(211106247215360));
					{
						NIM_BOOL LOC10;
						LOC10 = 0;
						LOC10 = sametype_243628(t2, t, 0);
						if (!!(LOC10)) goto LA11;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA11: ;
					res_373930 += ((NI) 1);
				} LA7: ;
			}
		}
	}
	LA3: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NI, cmpsignatures_373934)(Tsym213822* a, Tsym213822* b, Intset210035 relevantcols) {
	NI result;
{	result = 0;
	{
		NI col_373952;
		NI HEX3Atmp_373963;
		NI LOC2;
		NI res_373966;
		col_373952 = 0;
		HEX3Atmp_373963 = 0;
		LOC2 = 0;
		LOC2 = sonslen_216327((*a).typ);
		HEX3Atmp_373963 = (NI)(LOC2 - ((NI) 1));
		res_373966 = ((NI) 1);
		{
			while (1) {
				if (!(res_373966 <= HEX3Atmp_373963)) goto LA4;
				col_373952 = res_373966;
				{
					NIM_BOOL LOC7;
					Ttype213828* aa;
					Ttype213828* bb;
					NI d;
					LOC7 = 0;
					LOC7 = contains_210811(relevantcols, col_373952);
					if (!LOC7) goto LA8;
					aa = skiptypes_217113((*(*a).typ).sons->data[col_373952], IL64(211106247215360));
					bb = skiptypes_217113((*(*b).typ).sons->data[col_373952], IL64(211106247215360));
					d = inheritancediff_245442(aa, bb);
					{
						if (!!((d == ((NI) 2147483647)))) goto LA12;
						result = d;
						goto BeforeRet;
					}
					LA12: ;
				}
				LA8: ;
				res_373966 += ((NI) 1);
			} LA4: ;
		}
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, sortbucket_373970)(Tsymseq213792** a, Intset210035 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_373996;
				NI HEX3Atmp_374003;
				NI res_374006;
				i_373996 = 0;
				HEX3Atmp_374003 = 0;
				HEX3Atmp_374003 = (NI)(n - ((NI) 1));
				res_374006 = h;
				{
					while (1) {
						Tsym213822* v;
						NI j;
						if (!(res_374006 <= HEX3Atmp_374003)) goto LA11;
						i_373996 = res_374006;
						v = (*a)->data[i_373996];
						j = i_373996;
						{
							while (1) {
								NI LOC14;
								LOC14 = 0;
								LOC14 = cmpsignatures_373934((*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_374006 += ((NI) 1);
					} LA11: ;
				}
			}
			{
				if (!(h == ((NI) 1))) goto LA21;
				goto LA7;
			}
			LA21: ;
		}
	} LA7: ;
}

N_NIMCALL(Tsym213822*, gendispatcher_374010)(Tsymseq213792* methods, Intset210035 relevantcols) {
	Tsym213822* result;
	Tsym213822* base;
	Tnode213790* LOC1;
	NI paramlen;
	Tnode213790* disp;
	Tsym213822* ands;
	Tsym213822* iss;
	result = 0;
	LOC1 = 0;
	LOC1 = lastson_216364((*methods->data[((NI) 0)]).ast);
	base = (*LOC1).kindU.S4.sym;
	result = base;
	paramlen = sonslen_216327((*base).typ);
	disp = newnodei_215248(((NU8) 92), (*base).info);
	ands = getsyssym_257041(((NimStringDesc*) &TMP4477));
	iss = getsyssym_257041(((NimStringDesc*) &TMP4478));
	{
		NI meth_374035;
		NI HEX3Atmp_374144;
		NI res_374147;
		meth_374035 = 0;
		HEX3Atmp_374144 = 0;
		HEX3Atmp_374144 = (methods ? (methods->Sup.len-1) : -1);
		res_374147 = ((NI) 0);
		{
			while (1) {
				Tsym213822* curr;
				Tnode213790* cond;
				Tnode213790* call;
				Tnode213790* LOC24;
				Tnode213790* ret;
				if (!(res_374147 <= HEX3Atmp_374144)) goto LA4;
				meth_374035 = res_374147;
				curr = methods->data[meth_374035];
				cond = NIM_NIL;
				{
					NI col_374049;
					NI HEX3Atmp_374128;
					NI res_374131;
					col_374049 = 0;
					HEX3Atmp_374128 = 0;
					HEX3Atmp_374128 = (NI)(paramlen - ((NI) 1));
					res_374131 = ((NI) 1);
					{
						while (1) {
							if (!(res_374131 <= HEX3Atmp_374128)) goto LA7;
							col_374049 = res_374131;
							{
								NIM_BOOL LOC10;
								Tnode213790* isn;
								Ttype213828* LOC13;
								Tnode213790* LOC14;
								Tnode213790* LOC15;
								Tnode213790* LOC16;
								LOC10 = 0;
								LOC10 = contains_210811(relevantcols, col_374049);
								if (!LOC10) goto LA11;
								LOC13 = 0;
								LOC13 = getsystype_257130(((NU8) 1));
								isn = newnodeit_215801(((NU8) 27), (*base).info, LOC13);
								LOC14 = 0;
								LOC14 = newsymnode_215234(iss);
								addson_215807(isn, LOC14);
								LOC15 = 0;
								LOC15 = newsymnode_215234((*(*(*(*base).typ).n).kindU.S6.sons->data[col_374049]).kindU.S4.sym);
								addson_215807(isn, LOC15);
								LOC16 = 0;
								LOC16 = newnodeit_215801(((NU8) 4), (*base).info, (*(*curr).typ).sons->data[col_374049]);
								addson_215807(isn, LOC16);
								{
									Tnode213790* a;
									Ttype213828* LOC21;
									Tnode213790* LOC22;
									if (!!((cond == NIM_NIL))) goto LA19;
									LOC21 = 0;
									LOC21 = getsystype_257130(((NU8) 1));
									a = newnodeit_215801(((NU8) 27), (*base).info, LOC21);
									LOC22 = 0;
									LOC22 = newsymnode_215234(ands);
									addson_215807(a, LOC22);
									addson_215807(a, cond);
									addson_215807(a, isn);
									cond = a;
								}
								goto LA17;
								LA19: ;
								{
									cond = isn;
								}
								LA17: ;
							}
							LA11: ;
							res_374131 += ((NI) 1);
						} LA7: ;
					}
				}
				call = newnodei_215248(((NU8) 27), (*base).info);
				LOC24 = 0;
				LOC24 = newsymnode_215234(curr);
				addson_215807(call, LOC24);
				{
					NI col_374084;
					NI HEX3Atmp_374136;
					NI res_374139;
					col_374084 = 0;
					HEX3Atmp_374136 = 0;
					HEX3Atmp_374136 = (NI)(paramlen - ((NI) 1));
					res_374139 = ((NI) 1);
					{
						while (1) {
							Tnode213790* LOC28;
							Tnode213790* LOC29;
							if (!(res_374139 <= HEX3Atmp_374136)) goto LA27;
							col_374084 = res_374139;
							LOC28 = 0;
							LOC28 = newsymnode_215234((*(*(*(*base).typ).n).kindU.S6.sons->data[col_374084]).kindU.S4.sym);
							LOC29 = 0;
							LOC29 = genconv_373005(LOC28, (*(*curr).typ).sons->data[col_374084], NIM_FALSE);
							addson_215807(call, LOC29);
							res_374139 += ((NI) 1);
						} LA27: ;
					}
				}
				ret = 0;
				{
					Tnode213790* a;
					Tnode213790* LOC34;
					if (!!(((*(*base).typ).sons->data[((NI) 0)] == NIM_NIL))) goto LA32;
					a = newnodei_215248(((NU8) 74), (*base).info);
					LOC34 = 0;
					LOC34 = newsymnode_215234((*(*(*base).ast).kindU.S6.sons->data[((NI) 7)]).kindU.S4.sym);
					addson_215807(a, LOC34);
					addson_215807(a, call);
					ret = newnodei_215248(((NU8) 109), (*base).info);
					addson_215807(ret, a);
				}
				goto LA30;
				LA32: ;
				{
					ret = call;
				}
				LA30: ;
				{
					Tnode213790* a;
					if (!!((cond == NIM_NIL))) goto LA38;
					a = newnodei_215248(((NU8) 86), (*base).info);
					addson_215807(a, cond);
					addson_215807(a, ret);
					addson_215807(disp, a);
				}
				goto LA36;
				LA38: ;
				{
					disp = ret;
				}
				LA36: ;
				res_374147 += ((NI) 1);
			} LA4: ;
		}
	}
	asgnRefNoCycle((void**) (&(*(*result).ast).kindU.S6.sons->data[((NI) 6)]), disp);
	return result;
}

N_NIMCALL(Tnode213790*, generatemethoddispatchers_374151)(void) {
	Tnode213790* result;
	result = 0;
	result = newnode_214401(((NU8) 115));
	{
		NI bucket_374173;
		NI HEX3Atmp_374199;
		NI res_374202;
		bucket_374173 = 0;
		HEX3Atmp_374199 = 0;
		HEX3Atmp_374199 = (NI)((gmethods_373246 ? gmethods_373246->Sup.len : 0) - ((NI) 1));
		res_374202 = ((NI) 0);
		{
			while (1) {
				Intset210035 relevantcols;
				Tsym213822* LOC13;
				Tnode213790* LOC14;
				if (!(res_374202 <= HEX3Atmp_374199)) goto LA3;
				bucket_374173 = res_374202;
				memset((void*)(&relevantcols), 0, sizeof(relevantcols));
				chckNil((void*)(&relevantcols));
				memset((void*)(&relevantcols), 0, sizeof(relevantcols));
				initintset_210885((&relevantcols));
				{
					NI col_374187;
					NI HEX3Atmp_374192;
					NI LOC5;
					NI res_374195;
					col_374187 = 0;
					HEX3Atmp_374192 = 0;
					LOC5 = 0;
					LOC5 = sonslen_216327((*gmethods_373246->data[bucket_374173].Field0->data[((NI) 0)]).typ);
					HEX3Atmp_374192 = (NI)(LOC5 - ((NI) 1));
					res_374195 = ((NI) 1);
					{
						while (1) {
							if (!(res_374195 <= HEX3Atmp_374192)) goto LA7;
							col_374187 = res_374195;
							{
								NIM_BOOL LOC10;
								LOC10 = 0;
								LOC10 = relevantcol_373896(gmethods_373246->data[bucket_374173].Field0, col_374187);
								if (!LOC10) goto LA11;
								incl_210832((&relevantcols), col_374187);
							}
							LA11: ;
							res_374195 += ((NI) 1);
						} LA7: ;
					}
				}
				sortbucket_373970((&gmethods_373246->data[bucket_374173].Field0), relevantcols);
				LOC13 = 0;
				LOC13 = gendispatcher_374010(gmethods_373246->data[bucket_374173].Field0, relevantcols);
				LOC14 = 0;
				LOC14 = newsymnode_215234(LOC13);
				addson_215807(result, LOC14);
				res_374202 += ((NI) 1);
			} LA3: ;
		}
	}
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_cgmethInit000)(void) {
	if (gmethods_373246) nimGCunrefNoCycle(gmethods_373246);
	gmethods_373246 = (TY373226*) newSeqRC1((&NTI373226), 0);
}

NIM_EXTERNC N_NOINLINE(void, compiler_cgmethDatInit000)(void) {
static TNimNode* TMP1011[2];
static TNimNode TMP1009[3];
NTI373227.size = sizeof(TY373227);
NTI373227.kind = 18;
NTI373227.base = 0;
NTI373227.flags = 2;
TMP1011[0] = &TMP1009[1];
TMP1009[1].kind = 1;
TMP1009[1].offset = offsetof(TY373227, Field0);
TMP1009[1].typ = (&NTI213792);
TMP1009[1].name = "Field0";
TMP1011[1] = &TMP1009[2];
TMP1009[2].kind = 1;
TMP1009[2].offset = offsetof(TY373227, Field1);
TMP1009[2].typ = (&NTI213788);
TMP1009[2].name = "Field1";
TMP1009[0].len = 2; TMP1009[0].kind = 2; TMP1009[0].sons = &TMP1011[0];
NTI373227.node = &TMP1009[0];
NTI373226.size = sizeof(TY373226*);
NTI373226.kind = 24;
NTI373226.base = (&NTI373227);
NTI373226.flags = 2;
NTI373226.marker = TMP1012;
}

