/* Generated by Nim Compiler v0.10.2 */
/*   (c) 2014 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 32
#include "nimbase.h"

#include <string.h>
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct tnode226816 tnode226816;
typedef struct ttype226852 ttype226852;
typedef struct tlineinfo196539 tlineinfo196539;
typedef struct tsym226846 tsym226846;
typedef struct tident201021 tident201021;
typedef struct tnodeseq226810 tnodeseq226810;
typedef struct tidobj201015 tidobj201015;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct TY119808 TY119808;
typedef struct ttypeseq226848 ttypeseq226848;
typedef struct tscope226840 tscope226840;
typedef struct TY226947 TY226947;
typedef struct tinstantiation226836 tinstantiation226836;
typedef struct tstrtable226820 tstrtable226820;
typedef struct tsymseq226818 tsymseq226818;
typedef struct tloc226830 tloc226830;
typedef struct trope178009 trope178009;
typedef struct tlib226834 tlib226834;
typedef struct tcell44933 tcell44933;
typedef struct tcellseq44949 tcellseq44949;
typedef struct tgcheap47016 tgcheap47016;
typedef struct tcellset44945 tcellset44945;
typedef struct tpagedesc44941 tpagedesc44941;
typedef struct tmemregion27210 tmemregion27210;
typedef struct tsmallchunk26440 tsmallchunk26440;
typedef struct tllchunk27204 tllchunk27204;
typedef struct tbigchunk26442 tbigchunk26442;
typedef struct tintset26417 tintset26417;
typedef struct ttrunk26413 ttrunk26413;
typedef struct tavlnode27208 tavlnode27208;
typedef struct tgcstat47014 tgcstat47014;
typedef struct TY226936 TY226936;
typedef struct tlistentry127022 tlistentry127022;
typedef struct tbasechunk26438 tbasechunk26438;
typedef struct tfreecell26430 tfreecell26430;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  tlineinfo196539  {
NI16 Line;
NI16 Col;
NI32 Fileindex;
};
struct  tnode226816  {
ttype226852* Typ;
tlineinfo196539 Info;
NU16 Flags;
NU8 Kind;
union {
struct {NI64 Intval;
} S1;
struct {NF Floatval;
} S2;
struct {NimStringDesc* Strval;
} S3;
struct {tsym226846* Sym;
} S4;
struct {tident201021* Ident;
} S5;
struct {tnodeseq226810* Sons;
} S6;
} kindU;
NimStringDesc* Comment;
};
typedef N_NIMCALL_PTR(void, TY3089) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3094) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3089 marker;
TY3094 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  tidobj201015  {
  TNimObject Sup;
NI Id;
};
struct  tident201021  {
  tidobj201015 Sup;
NimStringDesc* S;
tident201021* Next;
NI H;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  tstrtable226820  {
NI Counter;
tsymseq226818* Data;
};
struct  tloc226830  {
NU8 K;
NU8 S;
NU8 Flags;
ttype226852* T;
trope178009* R;
trope178009* Heaproot;
};
struct  tsym226846  {
  tidobj201015 Sup;
NU8 Kind;
union {
struct {ttypeseq226848* Typeinstcache;
tscope226840* Typscope;
} S1;
struct {TY226947* Procinstcache;
tscope226840* Scope;
} S2;
struct {TY226947* Usedgenerics;
tstrtable226820 Tab;
} S3;
struct {tsym226846* Guard;
} S4;
} kindU;
NU16 Magic;
ttype226852* Typ;
tident201021* Name;
tlineinfo196539 Info;
tsym226846* Owner;
NU32 Flags;
tnode226816* Ast;
NU32 Options;
NI Position;
NI Offset;
tloc226830 Loc;
tlib226834* Annex;
tnode226816* Constraint;
};
struct  tcell44933  {
NI Refcount;
TNimType* Typ;
};
struct  tcellseq44949  {
NI Len;
NI Cap;
tcell44933** D;
};
struct  tcellset44945  {
NI Counter;
NI Max;
tpagedesc44941* Head;
tpagedesc44941** Data;
};
typedef tsmallchunk26440* TY27222[512];
typedef ttrunk26413* ttrunkbuckets26415[256];
struct  tintset26417  {
ttrunkbuckets26415 Data;
};
struct  tmemregion27210  {
NI Minlargeobj;
NI Maxlargeobj;
TY27222 Freesmallchunks;
tllchunk27204* Llmem;
NI Currmem;
NI Maxmem;
NI Freemem;
NI Lastsize;
tbigchunk26442* Freechunkslist;
tintset26417 Chunkstarts;
tavlnode27208* Root;
tavlnode27208* Deleted;
tavlnode27208* Last;
tavlnode27208* Freeavlnodes;
};
struct  tgcstat47014  {
NI Stackscans;
NI Cyclecollections;
NI Maxthreshold;
NI Maxstacksize;
NI Maxstackcells;
NI Cycletablesize;
NI64 Maxpause;
};
struct  tgcheap47016  {
void* Stackbottom;
NI Cyclethreshold;
tcellseq44949 Zct;
tcellseq44949 Decstack;
tcellset44945 Cycleroots;
tcellseq44949 Tempstack;
NI Recgclock;
tmemregion27210 Region;
tgcstat47014 Stat;
};
struct  ttype226852  {
  tidobj201015 Sup;
NU8 Kind;
NU8 Callconv;
NU32 Flags;
ttypeseq226848* Sons;
tnode226816* N;
tsym226846* Owner;
tsym226846* Sym;
tsym226846* Destructor;
tsym226846* Deepcopy;
NI64 Size;
NI16 Align;
NI16 Locklevel;
tloc226830 Loc;
};
struct  tscope226840  {
NI Depthlevel;
tstrtable226820 Symbols;
tnodeseq226810* Usingsyms;
tscope226840* Parent;
};
struct  tinstantiation226836  {
tsym226846* Sym;
ttypeseq226848* Concretetypes;
TY226936* Usedby;
};
struct  trope178009  {
  TNimObject Sup;
trope178009* Left;
trope178009* Right;
NI Length;
NimStringDesc* Data;
};
struct  tlistentry127022  {
  TNimObject Sup;
tlistentry127022* Prev;
tlistentry127022* Next;
};
struct  tlib226834  {
  tlistentry127022 Sup;
NU8 Kind;
NIM_BOOL Generated;
NIM_BOOL Isoverriden;
trope178009* Name;
tnode226816* Path;
};
typedef NI TY26420[16];
struct  tpagedesc44941  {
tpagedesc44941* Next;
NI Key;
TY26420 Bits;
};
struct  tbasechunk26438  {
NI Prevsize;
NI Size;
NIM_BOOL Used;
};
struct  tsmallchunk26440  {
  tbasechunk26438 Sup;
tsmallchunk26440* Next;
tsmallchunk26440* Prev;
tfreecell26430* Freelist;
NI Free;
NI Acc;
NF Data;
};
struct  tllchunk27204  {
NI Size;
NI Acc;
tllchunk27204* Next;
};
struct  tbigchunk26442  {
  tbasechunk26438 Sup;
tbigchunk26442* Next;
tbigchunk26442* Prev;
NI Align;
NF Data;
};
struct  ttrunk26413  {
ttrunk26413* Next;
NI Key;
TY26420 Bits;
};
typedef tavlnode27208* TY27214[2];
struct  tavlnode27208  {
TY27214 Link;
NI Key;
NI Upperbound;
NI Level;
};
struct  tfreecell26430  {
tfreecell26430* Next;
NI Zerofield;
};
struct tnodeseq226810 {
  TGenericSeq Sup;
  tnode226816* data[SEQ_DECL_SIZE];
};
struct TY119808 {
  TGenericSeq Sup;
  NimStringDesc* data[SEQ_DECL_SIZE];
};
struct ttypeseq226848 {
  TGenericSeq Sup;
  ttype226852* data[SEQ_DECL_SIZE];
};
struct TY226947 {
  TGenericSeq Sup;
  tinstantiation226836* data[SEQ_DECL_SIZE];
};
struct tsymseq226818 {
  TGenericSeq Sup;
  tsym226846* data[SEQ_DECL_SIZE];
};
struct TY226936 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
static N_INLINE(NI, len_227364)(tnode226816* n);
N_NIMCALL(NimStringDesc*, renderplainsymbolname_398013)(tnode226816* n);
static N_INLINE(tnode226816*, HEX5BHEX5D_227698)(tnode226816* n, NI i);
static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b);
N_NIMCALL(NimStringDesc*, renderdefinitionname_251134)(tsym226846* s, NIM_BOOL noquotes);
N_NIMCALL(void, internalerror_198987)(tlineinfo196539 info, NimStringDesc* errmsg);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, reprEnum)(NI e_80907, TNimType* typ);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, renderparamtypes_400467)(TY119808** found, tnode226816* n);
N_NIMCALL(NimStringDesc*, rendertype_398222)(tnode226816* n);
N_NIMCALL(NimStringDesc*, typetostring_264031)(ttype226852* typ, NU8 prefer);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(tcell44933*, usrtocell_48646)(void* usr);
static N_INLINE(void, rtladdzct_50204)(tcell44933* c);
N_NOINLINE(void, addzct_48617)(tcellseq44949* s, tcell44933* c);
N_NIMCALL(NimStringDesc*, nsuJoinSep)(NimStringDesc** a, NI aLen0, NimStringDesc* sep);
STRING_LITERAL(TMP4664, "", 0);
STRING_LITERAL(TMP4665, "*", 1);
STRING_LITERAL(TMP4666, "renderPlainSymbolName() with ", 29);
STRING_LITERAL(TMP4673, "ref.", 4);
STRING_LITERAL(TMP4674, "ptr.", 4);
STRING_LITERAL(TMP4675, "proc(", 5);
STRING_LITERAL(TMP4676, "tuple[", 6);
STRING_LITERAL(TMP4677, "renderParamTypes(found,n) with ", 31);
extern TNimType NTI226029; /* TNodeKind */
extern TNimType NTI119808; /* seq[string] */
extern tgcheap47016 gch_47044;

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

static N_INLINE(tnode226816*, HEX5BHEX5D_227698)(tnode226816* n, NI i) {
	tnode226816* result;
	result = 0;
	result = (*n).kindU.S6.Sons->data[i];
	return result;
}

static N_INLINE(NIM_BOOL, eqStrings)(NimStringDesc* a, NimStringDesc* b) {
	NIM_BOOL result;
	NIM_BOOL LOC11;
	int LOC13;
	result = 0;
	{
		if (!(a == b)) goto LA3;
		result = NIM_TRUE;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		LOC7 = 0;
		LOC7 = (a == NIM_NIL);
		if (LOC7) goto LA8;
		LOC7 = (b == NIM_NIL);
		LA8: ;
		if (!LOC7) goto LA9;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA9: ;
	LOC11 = 0;
	LOC11 = ((*a).Sup.len == (*b).Sup.len);
	if (!(LOC11)) goto LA12;
	LOC13 = 0;
	LOC13 = memcmp(((NCSTRING) ((*a).data)), ((NCSTRING) ((*b).data)), (NI32)((*a).Sup.len * 1));
	LOC11 = (LOC13 == ((NI32) 0));
	LA12: ;
	result = LOC11;
	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)), (NI32)((*src).Sup.len + 1));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(NimStringDesc*, renderplainsymbolname_398013)(tnode226816* n) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP4664));
	switch ((*n).Kind) {
	case ((NU8) 31):
	{
		{
			NI i_398038;
			NI HEX3Atmp_398202;
			NI LOC3;
			NI res_398205;
			i_398038 = 0;
			HEX3Atmp_398202 = 0;
			LOC3 = 0;
			LOC3 = len_227364(n);
			HEX3Atmp_398202 = (LOC3 - 1);
			res_398205 = 0;
			{
				while (1) {
					NI LOC6;
					tnode226816* LOC7;
					if (!(res_398205 <= HEX3Atmp_398202)) goto LA5;
					i_398038 = res_398205;
					LOC6 = 0;
					LOC6 = len_227364(n);
					LOC7 = 0;
					LOC7 = HEX5BHEX5D_227698(n, (LOC6 - 1));
					result = renderplainsymbolname_398013(LOC7);
					{
						if (!(0 < result->Sup.len)) goto LA10;
						goto BeforeRet;
					}
					LA10: ;
					res_398205 += 1;
				} LA5: ;
			}
		}
	}
	break;
	case ((NU8) 2):
	{
		{
			if (!!(eqStrings((*(*n).kindU.S5.Ident).S, ((NimStringDesc*) &TMP4665)))) goto LA15;
			result = copyString((*(*n).kindU.S5.Ident).S);
		}
		LA15: ;
	}
	break;
	case ((NU8) 3):
	{
		result = renderdefinitionname_251134((*n).kindU.S4.Sym, NIM_TRUE);
	}
	break;
	case ((NU8) 43):
	{
		tnode226816* LOC19;
		LOC19 = 0;
		LOC19 = HEX5BHEX5D_227698(n, 0);
		result = renderplainsymbolname_398013(LOC19);
	}
	break;
	case ((NU8) 53):
	{
		NI LOC21;
		tnode226816* LOC22;
		LOC21 = 0;
		LOC21 = len_227364(n);
		LOC22 = 0;
		LOC22 = HEX5BHEX5D_227698(n, (LOC21 - 1));
		result = renderplainsymbolname_398013(LOC22);
	}
	break;
	default:
	{
		NimStringDesc* LOC24;
		LOC24 = 0;
		LOC24 = rawNewString(reprEnum((*n).Kind, (&NTI226029))->Sup.len + 29);
appendString(LOC24, ((NimStringDesc*) &TMP4666));
appendString(LOC24, reprEnum((*n).Kind, (&NTI226029)));
		internalerror_198987((*n).Info, LOC24);
	}
	break;
	}
	BeforeRet: ;
	return result;
}

static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c) {
	(*dest).data[((*dest).Sup.len)- 0] = c;
	(*dest).data[((NI32)((*dest).Sup.len + 1))- 0] = 0;
	(*dest).Sup.len += 1;
}

N_NIMCALL(NimStringDesc*, rendertype_398222)(tnode226816* n) {
	NimStringDesc* result;
	result = 0;
	switch ((*n).Kind) {
	case ((NU8) 2):
	{
		result = copyString((*(*n).kindU.S5.Ident).S);
	}
	break;
	case ((NU8) 3):
	{
		result = typetostring_264031((*(*n).kindU.S4.Sym).Typ, ((NU8) 0));
	}
	break;
	case ((NU8) 142):
	{
		tnode226816* LOC4;
		LOC4 = 0;
		LOC4 = HEX5BHEX5D_227698(n, 0);
		result = rendertype_398222(LOC4);
	}
	break;
	case ((NU8) 140):
	{
		NimStringDesc* LOC6;
		tnode226816* LOC7;
		NimStringDesc* LOC8;
		LOC6 = 0;
		LOC7 = 0;
		LOC7 = HEX5BHEX5D_227698(n, 0);
		LOC8 = 0;
		LOC8 = rendertype_398222(LOC7);
		LOC6 = rawNewString(LOC8->Sup.len + 4);
appendString(LOC6, ((NimStringDesc*) &TMP4673));
appendString(LOC6, LOC8);
		result = LOC6;
	}
	break;
	case ((NU8) 141):
	{
		NimStringDesc* LOC10;
		tnode226816* LOC11;
		NimStringDesc* LOC12;
		LOC10 = 0;
		LOC11 = 0;
		LOC11 = HEX5BHEX5D_227698(n, 0);
		LOC12 = 0;
		LOC12 = rendertype_398222(LOC11);
		LOC10 = rawNewString(LOC12->Sup.len + 4);
appendString(LOC10, ((NimStringDesc*) &TMP4674));
appendString(LOC10, LOC12);
		result = LOC10;
	}
	break;
	case ((NU8) 146):
	{
		tnode226816* params;
		params = HEX5BHEX5D_227698(n, 0);
		result = copyString(((NimStringDesc*) &TMP4675));
		{
			NI i_399422;
			NI HEX3Atmp_400402;
			NI LOC15;
			NI res_400405;
			i_399422 = 0;
			HEX3Atmp_400402 = 0;
			LOC15 = 0;
			LOC15 = len_227364(params);
			HEX3Atmp_400402 = (LOC15 - 1);
			res_400405 = 1;
			{
				while (1) {
					NimStringDesc* LOC18;
					tnode226816* LOC19;
					NimStringDesc* LOC20;
					if (!(res_400405 <= HEX3Atmp_400402)) goto LA17;
					i_399422 = res_400405;
					LOC18 = 0;
					LOC19 = 0;
					LOC19 = HEX5BHEX5D_227698(params, i_399422);
					LOC20 = 0;
					LOC20 = rendertype_398222(LOC19);
					LOC18 = rawNewString(LOC20->Sup.len + 1);
appendString(LOC18, LOC20);
appendChar(LOC18, 44);
					result = resizeString(result, LOC18->Sup.len + 0);
appendString(result, LOC18);
					res_400405 += 1;
				} LA17: ;
			}
		}
		result->data[(result->Sup.len - 1)] = 41;
	}
	break;
	case ((NU8) 35):
	{
		NI typepos;
		NI LOC22;
		NimStringDesc* typestr;
		tnode226816* LOC23;
		LOC22 = 0;
		LOC22 = len_227364(n);
		typepos = (NI32)(LOC22 - 2);
		LOC23 = 0;
		LOC23 = HEX5BHEX5D_227698(n, typepos);
		typestr = rendertype_398222(LOC23);
		result = copyString(typestr);
		{
			NI i_399624;
			NI HEX3Atmp_400408;
			NI res_400411;
			i_399624 = 0;
			HEX3Atmp_400408 = 0;
			HEX3Atmp_400408 = (typepos - 1);
			res_400411 = 1;
			{
				while (1) {
					NimStringDesc* LOC27;
					if (!(res_400411 <= HEX3Atmp_400408)) goto LA26;
					i_399624 = res_400411;
					LOC27 = 0;
					LOC27 = rawNewString(typestr->Sup.len + 1);
appendChar(LOC27, 44);
appendString(LOC27, typestr);
					result = resizeString(result, LOC27->Sup.len + 0);
appendString(result, LOC27);
					res_400411 += 1;
				} LA26: ;
			}
		}
	}
	break;
	case ((NU8) 134):
	{
		result = copyString(((NimStringDesc*) &TMP4676));
		{
			NI i_400022;
			NI HEX3Atmp_400414;
			NI LOC30;
			NI res_400417;
			i_400022 = 0;
			HEX3Atmp_400414 = 0;
			LOC30 = 0;
			LOC30 = len_227364(n);
			HEX3Atmp_400414 = (LOC30 - 1);
			res_400417 = 0;
			{
				while (1) {
					NimStringDesc* LOC33;
					tnode226816* LOC34;
					NimStringDesc* LOC35;
					if (!(res_400417 <= HEX3Atmp_400414)) goto LA32;
					i_400022 = res_400417;
					LOC33 = 0;
					LOC34 = 0;
					LOC34 = HEX5BHEX5D_227698(n, i_400022);
					LOC35 = 0;
					LOC35 = rendertype_398222(LOC34);
					LOC33 = rawNewString(LOC35->Sup.len + 1);
appendString(LOC33, LOC35);
appendChar(LOC33, 44);
					result = resizeString(result, LOC33->Sup.len + 0);
appendString(result, LOC33);
					res_400417 += 1;
				} LA32: ;
			}
		}
		result->data[(result->Sup.len - 1)] = 93;
	}
	break;
	case ((NU8) 42):
	{
		NimStringDesc* LOC37;
		tnode226816* LOC38;
		NimStringDesc* LOC39;
		LOC37 = 0;
		LOC38 = 0;
		LOC38 = HEX5BHEX5D_227698(n, 0);
		LOC39 = 0;
		LOC39 = rendertype_398222(LOC38);
		LOC37 = rawNewString(LOC39->Sup.len + 1);
appendString(LOC37, LOC39);
appendChar(LOC37, 91);
		result = LOC37;
		{
			NI i_400222;
			NI HEX3Atmp_400420;
			NI LOC41;
			NI res_400423;
			i_400222 = 0;
			HEX3Atmp_400420 = 0;
			LOC41 = 0;
			LOC41 = len_227364(n);
			HEX3Atmp_400420 = (LOC41 - 1);
			res_400423 = 1;
			{
				while (1) {
					NimStringDesc* LOC44;
					tnode226816* LOC45;
					NimStringDesc* LOC46;
					if (!(res_400423 <= HEX3Atmp_400420)) goto LA43;
					i_400222 = res_400423;
					LOC44 = 0;
					LOC45 = 0;
					LOC45 = HEX5BHEX5D_227698(n, i_400222);
					LOC46 = 0;
					LOC46 = rendertype_398222(LOC45);
					LOC44 = rawNewString(LOC46->Sup.len + 1);
appendString(LOC44, LOC46);
appendChar(LOC44, 44);
					result = resizeString(result, LOC44->Sup.len + 0);
appendString(result, LOC44);
					res_400423 += 1;
				} LA43: ;
			}
		}
		result->data[(result->Sup.len - 1)] = 93;
	}
	break;
	default:
	{
		result = copyString(((NimStringDesc*) &TMP4664));
	}
	break;
	}
	return result;
}

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

static N_INLINE(void, rtladdzct_50204)(tcell44933* c) {
	addzct_48617((&gch_47044.Zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	tcell44933* c;
	c = usrtocell_48646(p);
	{
		(*c).Refcount -= 8;
		if (!((NU32)((*c).Refcount) < (NU32)(8))) goto LA3;
		rtladdzct_50204(c);
	}
	LA3: ;
}

N_NIMCALL(void, renderparamtypes_400467)(TY119808** found, tnode226816* n) {
	switch ((*n).Kind) {
	case ((NU8) 76):
	{
		{
			NI i_400494;
			NI HEX3Atmp_400827;
			NI LOC3;
			NI res_400830;
			i_400494 = 0;
			HEX3Atmp_400827 = 0;
			LOC3 = 0;
			LOC3 = len_227364(n);
			HEX3Atmp_400827 = (LOC3 - 1);
			res_400830 = 1;
			{
				while (1) {
					tnode226816* LOC6;
					if (!(res_400830 <= HEX3Atmp_400827)) goto LA5;
					i_400494 = res_400830;
					LOC6 = 0;
					LOC6 = HEX5BHEX5D_227698(n, i_400494);
					renderparamtypes_400467(found, LOC6);
					res_400830 += 1;
				} LA5: ;
			}
		}
	}
	break;
	case ((NU8) 35):
	{
		NI typepos;
		NI LOC8;
		NimStringDesc* typestr;
		tnode226816* LOC9;
		LOC8 = 0;
		LOC8 = len_227364(n);
		typepos = (NI32)(LOC8 - 2);
		LOC9 = 0;
		LOC9 = HEX5BHEX5D_227698(n, typepos);
		typestr = rendertype_398222(LOC9);
		{
			NIM_BOOL LOC12;
			tnode226816* LOC14;
			ttype226852* typ;
			tnode226816* LOC17;
			LOC12 = 0;
			LOC12 = (typestr->Sup.len < 1);
			if (!(LOC12)) goto LA13;
			LOC14 = 0;
			LOC14 = HEX5BHEX5D_227698(n, (NI32)(typepos + 1));
			LOC12 = !(((*LOC14).Kind == ((NU8) 1)));
			LA13: ;
			if (!LOC12) goto LA15;
			LOC17 = 0;
			LOC17 = HEX5BHEX5D_227698(n, (NI32)(typepos + 1));
			typ = (*LOC17).Typ;
			{
				if (!!(typ == 0)) goto LA20;
				typestr = typetostring_264031(typ, ((NU8) 2));
			}
			LA20: ;
			{
				if (!(typestr->Sup.len < 1)) goto LA24;
				goto BeforeRet;
			}
			LA24: ;
		}
		LA15: ;
		{
			NI i_400646;
			NI HEX3Atmp_400833;
			NI res_400836;
			i_400646 = 0;
			HEX3Atmp_400833 = 0;
			HEX3Atmp_400833 = (typepos - 1);
			res_400836 = 0;
			{
				while (1) {
					NimStringDesc* LOC29;
					if (!(res_400836 <= HEX3Atmp_400833)) goto LA28;
					i_400646 = res_400836;
					(*found) = (TY119808*) incrSeq(&((*found))->Sup, sizeof(NimStringDesc*));
					LOC29 = 0;
					LOC29 = (*found)->data[(*found)->Sup.len-1]; (*found)->data[(*found)->Sup.len-1] = copyStringRC1(typestr);
					if (LOC29) nimGCunrefNoCycle(LOC29);
					res_400836 += 1;
				} LA28: ;
			}
		}
	}
	break;
	default:
	{
		NimStringDesc* LOC31;
		LOC31 = 0;
		LOC31 = rawNewString(reprEnum((*n).Kind, (&NTI226029))->Sup.len + 31);
appendString(LOC31, ((NimStringDesc*) &TMP4677));
appendString(LOC31, reprEnum((*n).Kind, (&NTI226029)));
		internalerror_198987((*n).Info, LOC31);
	}
	break;
	}
	BeforeRet: ;
}

N_NIMCALL(NimStringDesc*, renderparamtypes_400862)(tnode226816* n, NimStringDesc* sep) {
	NimStringDesc* result;
	TY119808* found;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP4664));
	found = (TY119808*) newSeq((&NTI119808), 0);
	renderparamtypes_400467((&found), n);
	{
		if (!(0 < found->Sup.len)) goto LA3;
		result = nsuJoinSep(found->data, found->Sup.len, sep);
	}
	LA3: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, HEX00_typesrendererInit)(void) {
}

NIM_EXTERNC N_NOINLINE(void, HEX00_typesrendererDatInit)(void) {
}

