/* 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 NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tnode213790 Tnode213790;
typedef struct Tsrcgen232014 Tsrcgen232014;
typedef struct Trendertokseq232012 Trendertokseq232012;
typedef struct Tnodeseq213784 Tnodeseq213784;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Trendertok232010 Trendertok232010;
typedef struct Tcontext233606 Tcontext233606;
typedef struct Ttype213828 Ttype213828;
typedef struct Tlineinfo181337 Tlineinfo181337;
typedef struct Tsym213822 Tsym213822;
typedef struct Tident188012 Tident188012;
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 Tsymseq213792 Tsymseq213792;
typedef struct Tloc213804 Tloc213804;
typedef struct Ropeobj168006 Ropeobj168006;
typedef struct Tlib213808 Tlib213808;
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  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tsrcgen232014  {
NI indent;
NI linelen;
NI pos;
NI idx;
Trendertokseq232012* tokens;
NimStringDesc* buf;
NI pendingnl;
NI pendingwhitespace;
Tnodeseq213784* comstack;
NU8 flags;
NIM_BOOL checkanon;
NI inpragma;
};
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  Trendertok232010  {
NU8 kind;
NI16 length;
};
struct Tcontext233606 {
NI Field0;
NU8 Field1;
};
struct  Tlineinfo181337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
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;
};
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  Tident188012  {
  Tidobj188006 Sup;
NimStringDesc* s;
Tident188012* next;
NI h;
};
struct  Tstrtable213794  {
NI counter;
Tsymseq213792* data;
};
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  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;
};
typedef NimStringDesc* TY204163[119];
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  Freecell29829  {
Freecell29829* next;
NI zerofield;
};
struct  Tinstantiation213812  {
Tsym213822* sym;
Ttypeseq213824* concretetypes;
TY213913* usedby;
NI compilesid;
};
struct Tnodeseq213784 {
  TGenericSeq Sup;
  Tnode213790* data[SEQ_DECL_SIZE];
};
struct Trendertokseq232012 {
  TGenericSeq Sup;
  Trendertok232010 data[SEQ_DECL_SIZE];
};
struct Ttypeseq213824 {
  TGenericSeq Sup;
  Ttype213828* data[SEQ_DECL_SIZE];
};
struct TY213925 {
  TGenericSeq Sup;
  Tinstantiation213812* data[SEQ_DECL_SIZE];
};
struct Tsymseq213792 {
  TGenericSeq Sup;
  Tsym213822* data[SEQ_DECL_SIZE];
};
struct TY213913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, initsrcgen_232136)(Tsrcgen232014* g, NU8 renderflags);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, TMP1399)(void* p, NI op);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(void, gsub_233630)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(void, initcontext_233618)(Tcontext233606* c);
N_NIMCALL(void, gsub_233624)(Tsrcgen232014* g, Tnode213790* n, Tcontext233606 c_233629);
N_NIMCALL(void, pushcom_232683)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
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, putrawstr_232613)(Tsrcgen232014* g, NU8 kind, NimStringDesc* s);
N_NIMCALL(void, put_232419)(Tsrcgen232014* g, NU8 kind, NimStringDesc* s);
N_NIMCALL(void, addpendingnl_232198)(Tsrcgen232014* g);
N_NIMCALL(void, addtok_232173)(Tsrcgen232014* g, NU8 kind, NimStringDesc* s);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
N_NIMCALL(NimStringDesc*, nsuRepeatChar)(NIM_CHAR c, NI count);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(void, optnl_232240)(Tsrcgen232014* g, NI indent);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, atom_232959)(Tnode213790* n);
N_NIMCALL(NimStringDesc*, makenimstring_232462)(NimStringDesc* s);
N_NIMCALL(NimStringDesc*, tonimchar_232450)(NIM_CHAR c);
N_NIMCALL(NimStringDesc*, nsuToHex)(NI64 x, NI len);
static N_INLINE(void, appendChar)(NimStringDesc* dest, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, nsuReplaceStr)(NimStringDesc* s, NimStringDesc* sub, NimStringDesc* by);
N_NIMCALL(NimStringDesc*, litaux_232831)(Tnode213790* n, NI64 x, NI size);
N_NIMCALL(Ttype213828*, skip_232837)(Ttype213828* t);
N_NIMCALL(Ttype213828*, lastson_216377)(Ttype213828* n);
static N_INLINE(NI, len_214059)(Tnode213790* n);
N_NIMCALL(NimStringDesc*, nsuToBin)(NI64 x, NI len);
N_NIMCALL(NimStringDesc*, nsuToOct)(NI64 x, NI len);
N_NIMCALL(NimStringDesc*, nimInt64ToStr)(NI64 x);
N_NIMCALL(NimStringDesc*, ulitaux_232923)(Tnode213790* n, NI64 x, NI size);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(void, internalerror_186113)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, reprEnum)(NI e_85209, TNimType* typ);
N_NIMCALL(void, gident_234287)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_NIMCALL(NI, sonslen_216351)(Tnode213790* n);
N_NIMCALL(void, gcomma_233758)(Tsrcgen232014* g, Tnode213790* n, NI start, NI theend);
N_NIMCALL(void, gcommaaux_233679)(Tsrcgen232014* g, Tnode213790* n, NI ind, NI start, NI theend, NU8 separator);
N_NIMCALL(NI, lsub_232828)(Tnode213790* n);
N_NIMCALL(NIM_BOOL, containsnl_232659)(NimStringDesc* s);
N_NIMCALL(NI, lcomma_233108)(Tnode213790* n, NI start, NI theend);
static N_INLINE(Tnode213790*, HEX5BHEX5D_214238)(Tnode213790* n, NI i);
N_NIMCALL(NI, lsons_233249)(Tnode213790* n, NI start, NI theend);
N_NIMCALL(Tnode213790*, lastson_216364)(Tnode213790* n);
N_NIMCALL(NIM_BOOL, fits_233596)(Tsrcgen232014* g, NI x);
N_NIMCALL(void, putwithspace_233673)(Tsrcgen232014* g, NU8 kind, NimStringDesc* s);
N_NIMCALL(NIM_BOOL, hascom_233638)(Tnode213790* n);
N_NIMCALL(void, gcoms_232804)(Tsrcgen232014* g);
N_NIMCALL(void, gcom_232771)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(NIM_BOOL, shouldrendercomment_232744)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(NI, maxlinelength_232553)(NimStringDesc* s);
N_NIMCALL(void, putcomment_232486)(Tsrcgen232014* g, NimStringDesc* s);
N_NIMCALL(void, optnl_232245)(Tsrcgen232014* g);
N_NIMCALL(void, popallcoms_232707)(Tsrcgen232014* g);
N_NIMCALL(void, gcomma_233738)(Tsrcgen232014* g, Tnode213790* n, Tcontext233606 c, NI start, NI theend);
N_NIMCALL(void, doparamsaux_234401)(Tsrcgen232014* g, Tnode213790* params);
N_NIMCALL(void, gsemicolon_233766)(Tsrcgen232014* g, Tnode213790* n, NI start, NI theend);
N_NIMCALL(void, gsons_233774)(Tsrcgen232014* g, Tnode213790* n, Tcontext233606 c, NI start, NI theend);
N_NIMCALL(void, indentnl_232249)(Tsrcgen232014* g);
N_NIMCALL(void, dedent_232262)(Tsrcgen232014* g);
N_NIMCALL(void, putnl_232236)(Tsrcgen232014* g);
N_NIMCALL(void, putnl_232202)(Tsrcgen232014* g, NI indent);
N_NIMCALL(void, gstmts_233860)(Tsrcgen232014* g, Tnode213790* n, Tcontext233606 c, NIM_BOOL doindent);
N_NIMCALL(void, gif_233941)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(NIM_BOOL, longmode_233832)(Tnode213790* n, NI start, NI theend);
N_NIMCALL(void, gwhile_233987)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(void, gpragmablock_234027)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(void, gcase_234111)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(void, gtry_234048)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(void, gfor_234068)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(void, gblock_234220)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(void, gstaticstmt_234251)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(void, gasm_234271)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(void, gproc_234155)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(NimStringDesc*, renderdefinitionname_232113)(Tsym213822* s, NIM_BOOL noquotes);
N_NIMCALL(NIM_BOOL, iskeyword_232071)(Tident188012* i);
N_NIMCALL(void, gpattern_234008)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(void, gsection_233803)(Tsrcgen232014* g, Tnode213790* n, Tcontext233606 c, NU8 kind, NimStringDesc* k);
N_NIMCALL(void, gtypeclassty_234212)(Tsrcgen232014* g, Tnode213790* n);
N_NIMCALL(void, internalerror_186100)(Tlineinfo181337 info, NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, rendertree_232044)(Tnode213790* n, NU8 renderflags);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI start_80010, NI last);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI first, NI last);
STRING_LITERAL(TMP1400, "", 0);
STRING_LITERAL(TMP1401, "\012", 1);
STRING_LITERAL(TMP1402, "\"", 1);
STRING_LITERAL(TMP1403, "\\0", 2);
STRING_LITERAL(TMP1404, "\\x", 2);
STRING_LITERAL(TMP1406, "r\"", 2);
STRING_LITERAL(TMP1408, "\"\"", 2);
STRING_LITERAL(TMP1409, "\"\"\"", 3);
STRING_LITERAL(TMP1410, "0b", 2);
STRING_LITERAL(TMP1411, "0o", 2);
STRING_LITERAL(TMP1412, "0x", 2);
STRING_LITERAL(TMP1413, "\'i8", 3);
STRING_LITERAL(TMP1414, "\'i16", 4);
STRING_LITERAL(TMP1415, "\'i32", 4);
STRING_LITERAL(TMP1416, "\'i64", 4);
STRING_LITERAL(TMP1417, "\'u", 2);
STRING_LITERAL(TMP1418, "\'u8", 3);
STRING_LITERAL(TMP1419, "\'u16", 4);
STRING_LITERAL(TMP1420, "\'u32", 4);
STRING_LITERAL(TMP1421, "\'u64", 4);
STRING_LITERAL(TMP1422, "\'f32", 4);
STRING_LITERAL(TMP1423, "\'f64", 4);
STRING_LITERAL(TMP1424, "nil", 3);
STRING_LITERAL(TMP1425, "[type node]", 11);
STRING_LITERAL(TMP1426, "rnimsyn.atom ", 13);
STRING_LITERAL(TMP1427, "(", 1);
STRING_LITERAL(TMP1428, " ", 1);
extern NIM_CONST TY204163 Toktypetostr_204160;
STRING_LITERAL(TMP1429, "## ", 3);
STRING_LITERAL(TMP1430, ")", 1);
STRING_LITERAL(TMP1431, "cast", 4);
STRING_LITERAL(TMP1432, "[", 1);
STRING_LITERAL(TMP1433, "]", 1);
STRING_LITERAL(TMP1434, "addr", 4);
STRING_LITERAL(TMP1435, "static", 6);
STRING_LITERAL(TMP1436, "{", 1);
STRING_LITERAL(TMP1437, "}", 1);
STRING_LITERAL(TMP1438, "=", 1);
STRING_LITERAL(TMP1439, "chckRangeF", 10);
STRING_LITERAL(TMP1440, "chckRange64", 11);
STRING_LITERAL(TMP1441, "chckRange", 9);
STRING_LITERAL(TMP1442, "|", 1);
STRING_LITERAL(TMP1443, ".", 1);
STRING_LITERAL(TMP1444, "|...)", 5);
STRING_LITERAL(TMP1445, ":", 1);
STRING_LITERAL(TMP1446, "bind", 4);
STRING_LITERAL(TMP1447, "proc", 4);
STRING_LITERAL(TMP1448, "do", 2);
STRING_LITERAL(TMP1449, "->", 2);
STRING_LITERAL(TMP1450, "..", 2);
STRING_LITERAL(TMP1451, "[]", 2);
STRING_LITERAL(TMP1452, "`", 1);
STRING_LITERAL(TMP1453, "if", 2);
NIM_CONST Tcontext233606 TMP1454 = {((NI) 0),
0}
;
STRING_LITERAL(TMP1455, " elif", 5);
STRING_LITERAL(TMP1456, " else", 5);
STRING_LITERAL(TMP1457, "type", 4);
STRING_LITERAL(TMP1458, "ref", 3);
STRING_LITERAL(TMP1459, "ptr", 3);
STRING_LITERAL(TMP1460, "var", 3);
STRING_LITERAL(TMP1461, "distinct", 8);
STRING_LITERAL(TMP1462, " with", 5);
STRING_LITERAL(TMP1463, " without", 8);
STRING_LITERAL(TMP1464, "object", 6);
STRING_LITERAL(TMP1465, "of", 2);
STRING_LITERAL(TMP1466, "iterator", 8);
STRING_LITERAL(TMP1467, "enum", 4);
STRING_LITERAL(TMP1468, "when", 4);
STRING_LITERAL(TMP1469, "while", 5);
STRING_LITERAL(TMP1470, "case", 4);
STRING_LITERAL(TMP1471, "try", 3);
STRING_LITERAL(TMP1472, "for", 3);
STRING_LITERAL(TMP1473, "in", 2);
STRING_LITERAL(TMP1474, "block", 5);
STRING_LITERAL(TMP1475, "asm", 3);
STRING_LITERAL(TMP1476, "converter", 9);
STRING_LITERAL(TMP1477, "method", 6);
STRING_LITERAL(TMP1478, "macro", 5);
STRING_LITERAL(TMP1479, "template", 8);
STRING_LITERAL(TMP1480, "const", 5);
STRING_LITERAL(TMP1481, "let", 3);
STRING_LITERAL(TMP1482, "return", 6);
STRING_LITERAL(TMP1483, "raise", 5);
STRING_LITERAL(TMP1484, "yield", 5);
STRING_LITERAL(TMP1485, "discard", 7);
STRING_LITERAL(TMP1486, "break", 5);
STRING_LITERAL(TMP1487, "continue", 8);
STRING_LITERAL(TMP1488, "{.", 2);
STRING_LITERAL(TMP1489, ".}", 2);
STRING_LITERAL(TMP1490, "import", 6);
STRING_LITERAL(TMP1491, "export", 6);
STRING_LITERAL(TMP1492, "except", 6);
STRING_LITERAL(TMP1493, "from", 4);
STRING_LITERAL(TMP1494, "include", 7);
STRING_LITERAL(TMP1495, "as", 2);
STRING_LITERAL(TMP1496, "mixin", 5);
STRING_LITERAL(TMP1497, "elif", 4);
STRING_LITERAL(TMP1498, "else", 4);
STRING_LITERAL(TMP1499, "finally", 7);
STRING_LITERAL(TMP1500, "defer", 5);
STRING_LITERAL(TMP1501, "tuple", 5);
STRING_LITERAL(TMP1502, "(META|", 6);
STRING_LITERAL(TMP1503, "state", 5);
STRING_LITERAL(TMP1504, "goto", 4);
STRING_LITERAL(TMP1505, "breakstate", 10);
STRING_LITERAL(TMP1506, "concept", 7);
STRING_LITERAL(TMP1507, "rnimsyn.gsub(", 13);
extern TNimType NTI213784; /* TNodeSeq */
TNimType NTI232010; /* TRenderTok */
extern TNimType NTI204016; /* TTokType */
extern TNimType NTI108; /* int16 */
TNimType NTI232012; /* TRenderTokSeq */
extern Gcheap50018 gch_50059;
extern TNimType NTI213020; /* TNodeKind */
N_NIMCALL(void, TMP1399)(void* p, NI op) {
	Trendertokseq232012* a;
	NI LOC1;
	a = (Trendertokseq232012*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}

N_NIMCALL(void, initsrcgen_232136)(Tsrcgen232014* g, NU8 renderflags) {
	unsureAsgnRef((void**) (&(*g).comstack), (Tnodeseq213784*) newSeq((&NTI213784), 0));
	unsureAsgnRef((void**) (&(*g).tokens), (Trendertokseq232012*) newSeq((&NTI232012), 0));
	(*g).indent = ((NI) 0);
	(*g).linelen = ((NI) 0);
	(*g).pos = ((NI) 0);
	(*g).idx = ((NI) 0);
	unsureAsgnRef((void**) (&(*g).buf), copyString(((NimStringDesc*) &TMP1400)));
	(*g).flags = renderflags;
	(*g).pendingnl = ((NI) -1);
	(*g).pendingwhitespace = ((NI) -1);
	(*g).checkanon = NIM_FALSE;
}

N_NIMCALL(void, initcontext_233618)(Tcontext233606* c) {
	(*c).Field0 = ((NI) 0);
	(*c).Field1 = 0;
}

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, 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;
}

N_NIMCALL(void, pushcom_232683)(Tsrcgen232014* g, Tnode213790* n) {
	NI length;
	length = ((*g).comstack ? (*g).comstack->Sup.len : 0);
	(*g).comstack = (Tnodeseq213784*) setLengthSeq(&((*g).comstack)->Sup, sizeof(Tnode213790*), ((NI) ((NI)(length + ((NI) 1)))));
	asgnRefNoCycle((void**) (&(*g).comstack->data[length]), n);
}

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, addtok_232173)(Tsrcgen232014* g, NU8 kind, NimStringDesc* s) {
	NI length;
	length = ((*g).tokens ? (*g).tokens->Sup.len : 0);
	(*g).tokens = (Trendertokseq232012*) setLengthSeq(&((*g).tokens)->Sup, sizeof(Trendertok232010), ((NI) ((NI)(length + ((NI) 1)))));
	(*g).tokens->data[length].kind = kind;
	(*g).tokens->data[length].length = ((NI16) ((s ? s->Sup.len : 0)));
	(*g).buf = resizeString((*g).buf, s->Sup.len + 0);
appendString((*g).buf, s);
}

N_NIMCALL(void, addpendingnl_232198)(Tsrcgen232014* g) {
	{
		NimStringDesc* LOC5;
		NimStringDesc* LOC6;
		if (!(((NI) 0) <= (*g).pendingnl)) goto LA3;
		LOC5 = 0;
		LOC6 = 0;
		LOC6 = nsuRepeatChar(32, ((NI) ((*g).pendingnl)));
		LOC5 = rawNewString(LOC6->Sup.len + 1);
appendString(LOC5, ((NimStringDesc*) &TMP1401));
appendString(LOC5, LOC6);
		addtok_232173(g, ((NU8) 115), LOC5);
		(*g).linelen = (*g).pendingnl;
		(*g).pendingnl = ((NI) -1);
		(*g).pendingwhitespace = ((NI) -1);
	}
	goto LA1;
	LA3: ;
	{
		NimStringDesc* LOC10;
		if (!(((NI) 0) <= (*g).pendingwhitespace)) goto LA8;
		LOC10 = 0;
		LOC10 = nsuRepeatChar(32, ((NI) ((*g).pendingwhitespace)));
		addtok_232173(g, ((NU8) 115), LOC10);
		(*g).pendingwhitespace = ((NI) -1);
	}
	goto LA1;
	LA8: ;
	LA1: ;
}

N_NIMCALL(void, put_232419)(Tsrcgen232014* g, NU8 kind, NimStringDesc* s) {
	{
		if (!!((kind == ((NU8) 115)))) goto LA3;
		addpendingnl_232198(g);
		{
			if (!(((NI) 0) < (s ? s->Sup.len : 0))) goto LA7;
			addtok_232173(g, kind, s);
			(*g).linelen += (s ? s->Sup.len : 0);
		}
		LA7: ;
	}
	goto LA1;
	LA3: ;
	{
		(*g).pendingwhitespace = (s ? s->Sup.len : 0);
	}
	LA1: ;
}

N_NIMCALL(void, optnl_232240)(Tsrcgen232014* g, NI indent) {
	(*g).pendingnl = indent;
	(*g).linelen = indent;
}

N_NIMCALL(void, putrawstr_232613)(Tsrcgen232014* g, NU8 kind, NimStringDesc* s) {
	NI i;
	NI hi;
	NimStringDesc* str;
	i = ((NI) 0);
	hi = (NI)((s ? s->Sup.len : 0) - ((NI) 1));
	str = copyString(((NimStringDesc*) &TMP1400));
	{
		while (1) {
			if (!(i <= hi)) goto LA2;
			switch (((NU8)(s->data[i]))) {
			case 13:
			{
				put_232419(g, kind, str);
				str = copyString(((NimStringDesc*) &TMP1400));
				i += ((NI) 1);
				{
					NIM_BOOL LOC6;
					LOC6 = 0;
					LOC6 = (i <= hi);
					if (!(LOC6)) goto LA7;
					LOC6 = ((NU8)(s->data[i]) == (NU8)(10));
					LA7: ;
					if (!LOC6) goto LA8;
					i += ((NI) 1);
				}
				LA8: ;
				optnl_232240(g, ((NI) 0));
			}
			break;
			case 10:
			{
				put_232419(g, kind, str);
				str = copyString(((NimStringDesc*) &TMP1400));
				i += ((NI) 1);
				optnl_232240(g, ((NI) 0));
			}
			break;
			default:
			{
				str = addChar(str, s->data[i]);
				i += ((NI) 1);
			}
			break;
			}
		} LA2: ;
	}
	put_232419(g, kind, str);
}

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

N_NIMCALL(NimStringDesc*, tonimchar_232450)(NIM_CHAR c) {
	NimStringDesc* result;
	result = 0;
	switch (((NU8)(c))) {
	case 0:
	{
		result = copyString(((NimStringDesc*) &TMP1403));
	}
	break;
	case 1 ... 31:
	case 128 ... 255:
	{
		NimStringDesc* LOC3;
		NimStringDesc* LOC4;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = nsuToHex(((NI64) (((NU8)(c)))), ((NI) 2));
		LOC3 = rawNewString(LOC4->Sup.len + 2);
appendString(LOC3, ((NimStringDesc*) &TMP1404));
appendString(LOC3, LOC4);
		result = LOC3;
	}
	break;
	case 39:
	case 34:
	case 92:
	{
		NimStringDesc* LOC6;
		LOC6 = 0;
		LOC6 = rawNewString(2);
appendChar(LOC6, 92);
appendChar(LOC6, c);
		result = LOC6;
	}
	break;
	default:
	{
		NimStringDesc* LOC8;
		LOC8 = 0;
		LOC8 = rawNewString(1);
appendChar(LOC8, c);
appendString(LOC8, ((NimStringDesc*) &TMP1400));
		result = LOC8;
	}
	break;
	}
	return result;
}

N_NIMCALL(NimStringDesc*, makenimstring_232462)(NimStringDesc* s) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP1402));
	{
		NI i_232477;
		NI HEX3Atmp_232479;
		NI res_232482;
		i_232477 = 0;
		HEX3Atmp_232479 = 0;
		HEX3Atmp_232479 = (NI)((s ? s->Sup.len : 0) - ((NI) 1));
		res_232482 = ((NI) 0);
		{
			while (1) {
				NimStringDesc* LOC4;
				if (!(res_232482 <= HEX3Atmp_232479)) goto LA3;
				i_232477 = res_232482;
				LOC4 = 0;
				LOC4 = tonimchar_232450(s->data[i_232477]);
				result = resizeString(result, LOC4->Sup.len + 0);
appendString(result, LOC4);
				res_232482 += ((NI) 1);
			} LA3: ;
		}
	}
	result = addChar(result, 34);
	return result;
}

N_NIMCALL(Ttype213828*, skip_232837)(Ttype213828* t) {
	Ttype213828* result;
	result = 0;
	result = t;
	{
		while (1) {
			if (!((*result).kind == ((NU8) 11) || (*result).kind == ((NU8) 20) || (*result).kind == ((NU8) 23) || (*result).kind == ((NU8) 13) || (*result).kind == ((NU8) 15) || (*result).kind == ((NU8) 46) || (*result).kind == ((NU8) 47))) goto LA2;
			result = lastson_216377(result);
		} LA2: ;
	}
	return result;
}

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(NimStringDesc*, litaux_232831)(Tnode213790* n, NI64 x, NI size) {
	NimStringDesc* result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		Ttype213828* LOC5;
		Tnode213790* enumfields;
		Ttype213828* LOC8;
		LOC3 = 0;
		LOC3 = !(((*n).typ == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = skip_232837((*n).typ);
		LOC3 = ((*LOC5).kind == ((NU8) 1) || (*LOC5).kind == ((NU8) 14));
		LA4: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = skip_232837((*n).typ);
		enumfields = (*LOC8).n;
		{
			Tnode213790* e_232877;
			e_232877 = 0;
			{
				NI i_232916;
				NI HEX3Atmp_232918;
				NI LOC11;
				NI res_232920;
				i_232916 = 0;
				HEX3Atmp_232918 = 0;
				LOC11 = 0;
				LOC11 = len_214059(enumfields);
				HEX3Atmp_232918 = (LOC11 - 1);
				res_232920 = ((NI) 0);
				{
					while (1) {
						if (!(res_232920 <= HEX3Atmp_232918)) goto LA13;
						i_232916 = res_232920;
						e_232877 = (*enumfields).kindU.S6.sons->data[i_232916];
						{
							if (!(((NI64) ((*(*e_232877).kindU.S4.sym).position)) == x)) goto LA16;
							result = copyString((*(*(*e_232877).kindU.S4.sym).name).s);
							goto BeforeRet;
						}
						LA16: ;
						res_232920 += ((NI) 1);
					} LA13: ;
				}
			}
		}
	}
	LA6: ;
	{
		NimStringDesc* LOC22;
		NimStringDesc* LOC23;
		if (!(((*n).flags &(1U<<((NU)(((NU8) 1))&15U)))!=0)) goto LA20;
		LOC22 = 0;
		LOC23 = 0;
		LOC23 = nsuToBin(x, ((NI) ((NI)(size * ((NI) 8)))));
		LOC22 = rawNewString(LOC23->Sup.len + 2);
appendString(LOC22, ((NimStringDesc*) &TMP1410));
appendString(LOC22, LOC23);
		result = LOC22;
	}
	goto LA18;
	LA20: ;
	{
		NimStringDesc* LOC27;
		NimStringDesc* LOC28;
		if (!(((*n).flags &(1U<<((NU)(((NU8) 2))&15U)))!=0)) goto LA25;
		LOC27 = 0;
		LOC28 = 0;
		LOC28 = nsuToOct(x, ((NI) ((NI)(size * ((NI) 3)))));
		LOC27 = rawNewString(LOC28->Sup.len + 2);
appendString(LOC27, ((NimStringDesc*) &TMP1411));
appendString(LOC27, LOC28);
		result = LOC27;
	}
	goto LA18;
	LA25: ;
	{
		NimStringDesc* LOC32;
		NimStringDesc* LOC33;
		if (!(((*n).flags &(1U<<((NU)(((NU8) 3))&15U)))!=0)) goto LA30;
		LOC32 = 0;
		LOC33 = 0;
		LOC33 = nsuToHex(x, ((NI) ((NI)(size * ((NI) 2)))));
		LOC32 = rawNewString(LOC33->Sup.len + 2);
appendString(LOC32, ((NimStringDesc*) &TMP1412));
appendString(LOC32, LOC33);
		result = LOC32;
	}
	goto LA18;
	LA30: ;
	{
		result = nimInt64ToStr(x);
	}
	LA18: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NimStringDesc*, ulitaux_232923)(Tnode213790* n, NI64 x, NI size) {
	NimStringDesc* result;
	result = 0;
	{
		NimStringDesc* LOC5;
		NimStringDesc* LOC6;
		if (!(((*n).flags &(1U<<((NU)(((NU8) 1))&15U)))!=0)) goto LA3;
		LOC5 = 0;
		LOC6 = 0;
		LOC6 = nsuToBin(x, ((NI) ((NI)(size * ((NI) 8)))));
		LOC5 = rawNewString(LOC6->Sup.len + 2);
appendString(LOC5, ((NimStringDesc*) &TMP1410));
appendString(LOC5, LOC6);
		result = LOC5;
	}
	goto LA1;
	LA3: ;
	{
		NimStringDesc* LOC10;
		NimStringDesc* LOC11;
		if (!(((*n).flags &(1U<<((NU)(((NU8) 2))&15U)))!=0)) goto LA8;
		LOC10 = 0;
		LOC11 = 0;
		LOC11 = nsuToOct(x, ((NI) ((NI)(size * ((NI) 3)))));
		LOC10 = rawNewString(LOC11->Sup.len + 2);
appendString(LOC10, ((NimStringDesc*) &TMP1411));
appendString(LOC10, LOC11);
		result = LOC10;
	}
	goto LA1;
	LA8: ;
	{
		NimStringDesc* LOC15;
		NimStringDesc* LOC16;
		if (!(((*n).flags &(1U<<((NU)(((NU8) 3))&15U)))!=0)) goto LA13;
		LOC15 = 0;
		LOC16 = 0;
		LOC16 = nsuToHex(x, ((NI) ((NI)(size * ((NI) 2)))));
		LOC15 = rawNewString(LOC16->Sup.len + 2);
appendString(LOC15, ((NimStringDesc*) &TMP1412));
appendString(LOC15, LOC16);
		result = LOC15;
	}
	goto LA1;
	LA13: ;
	{
		result = nimInt64ToStr(x);
	}
	LA1: ;
	return result;
}

N_NIMCALL(NimStringDesc*, atom_232959)(Tnode213790* n) {
	NimStringDesc* result;
	NF32 f;
	result = 0;
	f = 0;
	switch ((*n).kind) {
	case ((NU8) 1):
	{
		result = copyString(((NimStringDesc*) &TMP1400));
	}
	break;
	case ((NU8) 2):
	{
		result = copyString((*(*n).kindU.S5.ident).s);
	}
	break;
	case ((NU8) 3):
	{
		result = copyString((*(*(*n).kindU.S4.sym).name).s);
	}
	break;
	case ((NU8) 20):
	{
		result = makenimstring_232462((*n).kindU.S3.strval);
	}
	break;
	case ((NU8) 21):
	{
		NimStringDesc* LOC6;
		NimStringDesc* LOC7;
		LOC6 = 0;
		LOC7 = 0;
		LOC7 = nsuReplaceStr((*n).kindU.S3.strval, ((NimStringDesc*) &TMP1402), ((NimStringDesc*) &TMP1408));
		LOC6 = rawNewString(LOC7->Sup.len + 3);
appendString(LOC6, ((NimStringDesc*) &TMP1406));
appendString(LOC6, LOC7);
appendChar(LOC6, 34);
		result = LOC6;
	}
	break;
	case ((NU8) 22):
	{
		NimStringDesc* LOC9;
		LOC9 = 0;
		LOC9 = rawNewString((*n).kindU.S3.strval->Sup.len + 6);
appendString(LOC9, ((NimStringDesc*) &TMP1409));
appendString(LOC9, (*n).kindU.S3.strval);
appendString(LOC9, ((NimStringDesc*) &TMP1409));
		result = LOC9;
	}
	break;
	case ((NU8) 5):
	{
		NimStringDesc* LOC11;
		NimStringDesc* LOC12;
		LOC11 = 0;
		LOC12 = 0;
		LOC12 = tonimchar_232450(((NIM_CHAR) (((NI) (((NI) ((*n).kindU.S1.intval)))))));
		LOC11 = rawNewString(LOC12->Sup.len + 2);
appendChar(LOC11, 39);
appendString(LOC11, LOC12);
appendChar(LOC11, 39);
		result = LOC11;
	}
	break;
	case ((NU8) 6):
	{
		result = litaux_232831(n, (*n).kindU.S1.intval, ((NI) 4));
	}
	break;
	case ((NU8) 7):
	{
		NimStringDesc* LOC15;
		NimStringDesc* LOC16;
		LOC15 = 0;
		LOC16 = 0;
		LOC16 = litaux_232831(n, (*n).kindU.S1.intval, ((NI) 1));
		LOC15 = rawNewString(LOC16->Sup.len + 3);
appendString(LOC15, LOC16);
appendString(LOC15, ((NimStringDesc*) &TMP1413));
		result = LOC15;
	}
	break;
	case ((NU8) 8):
	{
		NimStringDesc* LOC18;
		NimStringDesc* LOC19;
		LOC18 = 0;
		LOC19 = 0;
		LOC19 = litaux_232831(n, (*n).kindU.S1.intval, ((NI) 2));
		LOC18 = rawNewString(LOC19->Sup.len + 4);
appendString(LOC18, LOC19);
appendString(LOC18, ((NimStringDesc*) &TMP1414));
		result = LOC18;
	}
	break;
	case ((NU8) 9):
	{
		NimStringDesc* LOC21;
		NimStringDesc* LOC22;
		LOC21 = 0;
		LOC22 = 0;
		LOC22 = litaux_232831(n, (*n).kindU.S1.intval, ((NI) 4));
		LOC21 = rawNewString(LOC22->Sup.len + 4);
appendString(LOC21, LOC22);
appendString(LOC21, ((NimStringDesc*) &TMP1415));
		result = LOC21;
	}
	break;
	case ((NU8) 10):
	{
		NimStringDesc* LOC24;
		NimStringDesc* LOC25;
		LOC24 = 0;
		LOC25 = 0;
		LOC25 = litaux_232831(n, (*n).kindU.S1.intval, ((NI) 8));
		LOC24 = rawNewString(LOC25->Sup.len + 4);
appendString(LOC24, LOC25);
appendString(LOC24, ((NimStringDesc*) &TMP1416));
		result = LOC24;
	}
	break;
	case ((NU8) 11):
	{
		NimStringDesc* LOC27;
		NimStringDesc* LOC28;
		LOC27 = 0;
		LOC28 = 0;
		LOC28 = ulitaux_232923(n, (*n).kindU.S1.intval, ((NI) 4));
		LOC27 = rawNewString(LOC28->Sup.len + 2);
appendString(LOC27, LOC28);
appendString(LOC27, ((NimStringDesc*) &TMP1417));
		result = LOC27;
	}
	break;
	case ((NU8) 12):
	{
		NimStringDesc* LOC30;
		NimStringDesc* LOC31;
		LOC30 = 0;
		LOC31 = 0;
		LOC31 = ulitaux_232923(n, (*n).kindU.S1.intval, ((NI) 1));
		LOC30 = rawNewString(LOC31->Sup.len + 3);
appendString(LOC30, LOC31);
appendString(LOC30, ((NimStringDesc*) &TMP1418));
		result = LOC30;
	}
	break;
	case ((NU8) 13):
	{
		NimStringDesc* LOC33;
		NimStringDesc* LOC34;
		LOC33 = 0;
		LOC34 = 0;
		LOC34 = ulitaux_232923(n, (*n).kindU.S1.intval, ((NI) 2));
		LOC33 = rawNewString(LOC34->Sup.len + 4);
appendString(LOC33, LOC34);
appendString(LOC33, ((NimStringDesc*) &TMP1419));
		result = LOC33;
	}
	break;
	case ((NU8) 14):
	{
		NimStringDesc* LOC36;
		NimStringDesc* LOC37;
		LOC36 = 0;
		LOC37 = 0;
		LOC37 = ulitaux_232923(n, (*n).kindU.S1.intval, ((NI) 4));
		LOC36 = rawNewString(LOC37->Sup.len + 4);
appendString(LOC36, LOC37);
appendString(LOC36, ((NimStringDesc*) &TMP1420));
		result = LOC36;
	}
	break;
	case ((NU8) 15):
	{
		NimStringDesc* LOC39;
		NimStringDesc* LOC40;
		LOC39 = 0;
		LOC40 = 0;
		LOC40 = ulitaux_232923(n, (*n).kindU.S1.intval, ((NI) 8));
		LOC39 = rawNewString(LOC40->Sup.len + 4);
appendString(LOC39, LOC40);
appendString(LOC39, ((NimStringDesc*) &TMP1421));
		result = LOC39;
	}
	break;
	case ((NU8) 16):
	{
		{
			if (!(((*n).flags & 14) == 0)) goto LA44;
			result = nimFloatToStr((*n).kindU.S2.floatval);
		}
		goto LA42;
		LA44: ;
		{
			result = litaux_232831(n, (*((NI64*) ((&(*n).kindU.S2.floatval)))), ((NI) 8));
		}
		LA42: ;
	}
	break;
	case ((NU8) 17):
	{
		{
			NimStringDesc* LOC52;
			NimStringDesc* LOC53;
			if (!(((*n).flags & 14) == 0)) goto LA50;
			LOC52 = 0;
			LOC53 = 0;
			LOC53 = nimFloatToStr((*n).kindU.S2.floatval);
			LOC52 = rawNewString(LOC53->Sup.len + 4);
appendString(LOC52, LOC53);
appendString(LOC52, ((NimStringDesc*) &TMP1422));
			result = LOC52;
		}
		goto LA48;
		LA50: ;
		{
			NimStringDesc* LOC55;
			NimStringDesc* LOC56;
			f = ((NF32) ((*n).kindU.S2.floatval));
			LOC55 = 0;
			LOC56 = 0;
			LOC56 = litaux_232831(n, ((NI64) ((*((NI32*) ((&f)))))), ((NI) 4));
			LOC55 = rawNewString(LOC56->Sup.len + 4);
appendString(LOC55, LOC56);
appendString(LOC55, ((NimStringDesc*) &TMP1422));
			result = LOC55;
		}
		LA48: ;
	}
	break;
	case ((NU8) 18):
	{
		{
			NimStringDesc* LOC62;
			NimStringDesc* LOC63;
			if (!(((*n).flags & 14) == 0)) goto LA60;
			LOC62 = 0;
			LOC63 = 0;
			LOC63 = nimFloatToStr((*n).kindU.S2.floatval);
			LOC62 = rawNewString(LOC63->Sup.len + 4);
appendString(LOC62, LOC63);
appendString(LOC62, ((NimStringDesc*) &TMP1423));
			result = LOC62;
		}
		goto LA58;
		LA60: ;
		{
			NimStringDesc* LOC65;
			NimStringDesc* LOC66;
			LOC65 = 0;
			LOC66 = 0;
			LOC66 = litaux_232831(n, (*((NI64*) ((&(*n).kindU.S2.floatval)))), ((NI) 8));
			LOC65 = rawNewString(LOC66->Sup.len + 4);
appendString(LOC65, LOC66);
appendString(LOC65, ((NimStringDesc*) &TMP1423));
			result = LOC65;
		}
		LA58: ;
	}
	break;
	case ((NU8) 23):
	{
		result = copyString(((NimStringDesc*) &TMP1424));
	}
	break;
	case ((NU8) 4):
	{
		{
			NIM_BOOL LOC71;
			LOC71 = 0;
			LOC71 = !(((*n).typ == NIM_NIL));
			if (!(LOC71)) goto LA72;
			LOC71 = !(((*(*n).typ).sym == NIM_NIL));
			LA72: ;
			if (!LOC71) goto LA73;
			result = copyString((*(*(*(*n).typ).sym).name).s);
		}
		goto LA69;
		LA73: ;
		{
			result = copyString(((NimStringDesc*) &TMP1425));
		}
		LA69: ;
	}
	break;
	default:
	{
		NimStringDesc* LOC77;
		LOC77 = 0;
		LOC77 = rawNewString(reprEnum((*n).kind, (&NTI213020))->Sup.len + 13);
appendString(LOC77, ((NimStringDesc*) &TMP1426));
appendString(LOC77, reprEnum((*n).kind, (&NTI213020)));
		internalerror_186113(LOC77);
		result = copyString(((NimStringDesc*) &TMP1400));
	}
	break;
	}
	return result;
}

N_NIMCALL(void, gident_234287)(Tsrcgen232014* g, Tnode213790* n) {
	NU8 t;
	NimStringDesc* s;
{	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = (*g).checkanon;
		if (!(LOC4)) goto LA5;
		LOC4 = ((*n).kind == ((NU8) 3));
		LA5: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA6;
		LOC3 = (((*(*n).kindU.S4.sym).flags &(1U<<((NU)(((NU8) 29))&31U)))!=0);
		LA6: ;
		if (!LOC3) goto LA7;
		goto BeforeRet;
	}
	LA7: ;
	t = 0;
	s = atom_232959(n);
	{
		if (!(((NU8)(s->data[((NI) 0)])) >= ((NU8)(97)) && ((NU8)(s->data[((NI) 0)])) <= ((NU8)(122)) || ((NU8)(s->data[((NI) 0)])) >= ((NU8)(65)) && ((NU8)(s->data[((NI) 0)])) <= ((NU8)(90)) || ((NU8)(s->data[((NI) 0)])) >= ((NU8)(48)) && ((NU8)(s->data[((NI) 0)])) <= ((NU8)(57)) || ((NU8)(s->data[((NI) 0)])) >= ((NU8)(128)) && ((NU8)(s->data[((NI) 0)])) <= ((NU8)(255)))) goto LA11;
		{
			if (!((*n).kind == ((NU8) 2))) goto LA15;
			{
				NIM_BOOL LOC19;
				LOC19 = 0;
				LOC19 = ((*(*n).kindU.S5.ident).Sup.id < ((NI) 1));
				if (LOC19) goto LA20;
				LOC19 = (((NI) 70) < (*(*n).kindU.S5.ident).Sup.id);
				LA20: ;
				if (!LOC19) goto LA21;
				t = ((NU8) 2);
			}
			goto LA17;
			LA21: ;
			{
				t = ((NU8) ((NI)((*(*n).kindU.S5.ident).Sup.id + ((NI) 2))));
			}
			LA17: ;
		}
		goto LA13;
		LA15: ;
		{
			t = ((NU8) 2);
		}
		LA13: ;
	}
	goto LA9;
	LA11: ;
	{
		t = ((NU8) 112);
	}
	LA9: ;
	put_232419(g, t, s);
	{
		NIM_BOOL LOC28;
		NimStringDesc* LOC32;
		LOC28 = 0;
		LOC28 = ((*n).kind == ((NU8) 3));
		if (!(LOC28)) goto LA29;
		LOC28 = (((*g).flags &(1U<<((NU)(((NU8) 5))&7U)))!=0);
		LA29: ;
		if (!LOC28) goto LA30;
		LOC32 = 0;
		LOC32 = nimIntToStr((*(*n).kindU.S4.sym).Sup.id);
		put_232419(g, ((NU8) 73), LOC32);
	}
	LA30: ;
	}BeforeRet: ;
}

N_NIMCALL(NIM_BOOL, containsnl_232659)(NimStringDesc* s) {
	NIM_BOOL result;
{	result = 0;
	{
		NI i_232674;
		NI HEX3Atmp_232676;
		NI res_232679;
		i_232674 = 0;
		HEX3Atmp_232676 = 0;
		HEX3Atmp_232676 = (NI)((s ? s->Sup.len : 0) - ((NI) 1));
		res_232679 = ((NI) 0);
		{
			while (1) {
				if (!(res_232679 <= HEX3Atmp_232676)) goto LA3;
				i_232674 = res_232679;
				switch (((NU8)(s->data[i_232674]))) {
				case 13:
				case 10:
				{
					result = NIM_TRUE;
					goto BeforeRet;
				}
				break;
				default:
				{
				}
				break;
				}
				res_232679 += ((NI) 1);
			} LA3: ;
		}
	}
	result = NIM_FALSE;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NI, lcomma_233108)(Tnode213790* n, NI start, NI theend) {
	NI result;
	result = 0;
	result = ((NI) 0);
	{
		NI i_233212;
		NI HEX3Atmp_233242;
		NI LOC2;
		NI res_233245;
		i_233212 = 0;
		HEX3Atmp_233242 = 0;
		LOC2 = 0;
		LOC2 = sonslen_216351(n);
		HEX3Atmp_233242 = (NI)(LOC2 + theend);
		res_233245 = start;
		{
			while (1) {
				NI LOC5;
				if (!(res_233245 <= HEX3Atmp_233242)) goto LA4;
				i_233212 = res_233245;
				LOC5 = 0;
				LOC5 = lsub_232828((*n).kindU.S6.sons->data[i_233212]);
				result += LOC5;
				result += ((NI) 2);
				res_233245 += ((NI) 1);
			} LA4: ;
		}
	}
	{
		if (!(((NI) 0) < result)) goto LA8;
		result -= ((NI) 2);
	}
	LA8: ;
	return result;
}

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

N_NIMCALL(NI, lsons_233249)(Tnode213790* n, NI start, NI theend) {
	NI result;
	result = 0;
	result = ((NI) 0);
	{
		NI i_233412;
		NI HEX3Atmp_233424;
		NI LOC2;
		NI res_233427;
		i_233412 = 0;
		HEX3Atmp_233424 = 0;
		LOC2 = 0;
		LOC2 = sonslen_216351(n);
		HEX3Atmp_233424 = (NI)(LOC2 + theend);
		res_233427 = start;
		{
			while (1) {
				NI LOC5;
				if (!(res_233427 <= HEX3Atmp_233424)) goto LA4;
				i_233412 = res_233427;
				LOC5 = 0;
				LOC5 = lsub_232828((*n).kindU.S6.sons->data[i_233412]);
				result += LOC5;
				res_233427 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(NI, lsub_232828)(Tnode213790* n) {
	NI result;
{	result = 0;
	{
		if (!n == 0) goto LA3;
		result = ((NI) 0);
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!!(((*n).comment == NIM_NIL))) goto LA7;
		result = ((NI) 81);
		goto BeforeRet;
	}
	LA7: ;
	switch ((*n).kind) {
	case ((NU8) 1):
	{
		result = ((NI) 0);
	}
	break;
	case ((NU8) 22):
	{
		{
			NIM_BOOL LOC13;
			LOC13 = 0;
			LOC13 = containsnl_232659((*n).kindU.S3.strval);
			if (!LOC13) goto LA14;
			result = ((NI) 81);
		}
		goto LA11;
		LA14: ;
		{
			NimStringDesc* LOC17;
			LOC17 = 0;
			LOC17 = atom_232959(n);
			result = (LOC17 ? LOC17->Sup.len : 0);
		}
		LA11: ;
	}
	break;
	case ((NU8) 2) ... ((NU8) 21):
	case ((NU8) 23) ... ((NU8) 23):
	{
		NimStringDesc* LOC19;
		LOC19 = 0;
		LOC19 = atom_232959(n);
		result = (LOC19 ? LOC19->Sup.len : 0);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 42):
	case ((NU8) 40):
	case ((NU8) 60):
	case ((NU8) 153):
	case ((NU8) 38):
	{
		NI LOC21;
		NI LOC22;
		LOC21 = 0;
		LOC21 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC22 = 0;
		LOC22 = lcomma_233108(n, ((NI) 1), ((NI) -1));
		result = (NI)((NI)(LOC21 + LOC22) + ((NI) 2));
	}
	break;
	case ((NU8) 58):
	case ((NU8) 59):
	case ((NU8) 32):
	{
		Tnode213790* LOC24;
		LOC24 = 0;
		LOC24 = HEX5BHEX5D_214238(n, ((NI) 1));
		result = lsub_232828(LOC24);
	}
	break;
	case ((NU8) 61):
	{
		NI LOC26;
		NI LOC27;
		LOC26 = 0;
		LOC26 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC27 = 0;
		LOC27 = lsub_232828((*n).kindU.S6.sons->data[((NI) 1)]);
		result = (NI)((NI)(LOC26 + LOC27) + ((NI) 8));
	}
	break;
	case ((NU8) 63):
	{
		{
			NI LOC31;
			NI LOC34;
			LOC31 = 0;
			LOC31 = len_214059(n);
			if (!(((NI) 0) < LOC31)) goto LA32;
			LOC34 = 0;
			LOC34 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
			result = (NI)(LOC34 + ((NI) 6));
		}
		goto LA29;
		LA32: ;
		{
			result = ((NI) 4);
		}
		LA29: ;
	}
	break;
	case ((NU8) 62):
	{
		NI LOC37;
		LOC37 = 0;
		LOC37 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC37 + ((NI) 7));
	}
	break;
	case ((NU8) 64):
	case ((NU8) 65):
	{
		result = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 26):
	{
		NI LOC40;
		NI LOC41;
		LOC40 = 0;
		LOC40 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC41 = 0;
		LOC41 = lcomma_233108(n, ((NI) 1), ((NI) -1));
		result = (NI)((NI)(LOC40 + LOC41) + ((NI) 1));
	}
	break;
	case ((NU8) 33):
	case ((NU8) 73):
	case ((NU8) 74):
	{
		NI LOC43;
		LOC43 = 0;
		LOC43 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC43 + ((NI) 3));
	}
	break;
	case ((NU8) 37):
	case ((NU8) 39):
	case ((NU8) 41):
	case ((NU8) 155):
	{
		NI LOC45;
		LOC45 = 0;
		LOC45 = lcomma_233108(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC45 + ((NI) 2));
	}
	break;
	case ((NU8) 152):
	{
		result = lcomma_233108(n, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 54):
	{
		{
			NI LOC50;
			NI LOC53;
			LOC50 = 0;
			LOC50 = len_214059(n);
			if (!(((NI) 0) < LOC50)) goto LA51;
			LOC53 = 0;
			LOC53 = lcomma_233108(n, ((NI) 0), ((NI) -1));
			result = (NI)(LOC53 + ((NI) 2));
		}
		goto LA48;
		LA51: ;
		{
			result = ((NI) 3);
		}
		LA48: ;
	}
	break;
	case ((NU8) 56):
	case ((NU8) 57):
	{
		NI LOC56;
		NI LOC57;
		LOC56 = 0;
		LOC56 = lsons_233249(n, ((NI) 0), ((NI) -1));
		LOC57 = 0;
		LOC57 = sonslen_216351(n);
		result = (NI)((NI)((NI)(LOC56 + ((NI) 2)) + LOC57) - ((NI) 1));
	}
	break;
	case ((NU8) 134):
	{
		NI LOC59;
		LOC59 = 0;
		LOC59 = lcomma_233108(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC59 + ((NI) 7));
	}
	break;
	case ((NU8) 135):
	{
		result = ((NI) 5);
	}
	break;
	case ((NU8) 45):
	{
		NI LOC62;
		LOC62 = 0;
		LOC62 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC62 + ((NI) 1));
	}
	break;
	case ((NU8) 55):
	{
		NI LOC64;
		LOC64 = 0;
		LOC64 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC64 + ((NI) 5));
	}
	break;
	case ((NU8) 122):
	{
		NI LOC66;
		LOC66 = 0;
		LOC66 = lcomma_233108(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC66 + ((NI) 5));
	}
	break;
	case ((NU8) 123):
	{
		NI LOC68;
		LOC68 = 0;
		LOC68 = lcomma_233108(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC68 + ((NI) 6));
	}
	break;
	case ((NU8) 46):
	{
		result = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 51):
	{
		NI LOC71;
		LOC71 = 0;
		LOC71 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC71 + ((NI) 8));
	}
	break;
	case ((NU8) 52):
	{
		NI LOC73;
		LOC73 = 0;
		LOC73 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC73 + ((NI) 6));
	}
	break;
	case ((NU8) 102):
	case ((NU8) 35):
	{
		NI L;
		result = lcomma_233108(n, ((NI) 0), ((NI) -3));
		L = sonslen_216351(n);
		{
			NI LOC79;
			if (!!(((*(*n).kindU.S6.sons->data[(NI)(L - ((NI) 2))]).kind == ((NU8) 1)))) goto LA77;
			LOC79 = 0;
			LOC79 = lsub_232828((*n).kindU.S6.sons->data[(NI)(L - ((NI) 2))]);
			result = (NI)((NI)(result + LOC79) + ((NI) 2));
		}
		LA77: ;
		{
			NI LOC84;
			if (!!(((*(*n).kindU.S6.sons->data[(NI)(L - ((NI) 1))]).kind == ((NU8) 1)))) goto LA82;
			LOC84 = 0;
			LOC84 = lsub_232828((*n).kindU.S6.sons->data[(NI)(L - ((NI) 1))]);
			result = (NI)((NI)(result + LOC84) + ((NI) 3));
		}
		LA82: ;
	}
	break;
	case ((NU8) 36):
	{
		NI LOC86;
		Tnode213790* LOC87;
		NI LOC88;
		LOC86 = 0;
		LOC86 = lcomma_233108(n, ((NI) 0), ((NI) -3));
		LOC87 = 0;
		LOC87 = lastson_216364(n);
		LOC88 = 0;
		LOC88 = lsub_232828(LOC87);
		result = (NI)((NI)(LOC86 + ((NI) 5)) + LOC88);
	}
	break;
	case ((NU8) 68):
	{
		NI LOC90;
		LOC90 = 0;
		LOC90 = lcomma_233108(n, ((NI) 0), ((NI) -1));
		result = (NI)(((NI) 12) + LOC90);
	}
	break;
	case ((NU8) 69):
	{
		NI LOC92;
		LOC92 = 0;
		LOC92 = lcomma_233108(n, ((NI) 0), ((NI) -1));
		result = (NI)(((NI) 13) + LOC92);
	}
	break;
	case ((NU8) 70):
	{
		NI LOC94;
		LOC94 = 0;
		LOC94 = lcomma_233108(n, ((NI) 0), ((NI) -1));
		result = (NI)(((NI) 11) + LOC94);
	}
	break;
	case ((NU8) 66):
	case ((NU8) 67):
	case ((NU8) 71):
	case ((NU8) 72):
	{
		NI LOC102;
		result = ((NI) 2);
		{
			NI LOC98;
			NI LOC101;
			LOC98 = 0;
			LOC98 = sonslen_216351(n);
			if (!(((NI) 1) <= LOC98)) goto LA99;
			LOC101 = 0;
			LOC101 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
			result = (NI)(result + LOC101);
		}
		LA99: ;
		LOC102 = 0;
		LOC102 = lcomma_233108(n, ((NI) 1), ((NI) -1));
		result = (NI)(result + LOC102);
	}
	break;
	case ((NU8) 34):
	{
		NI LOC104;
		LOC104 = 0;
		LOC104 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC104 + ((NI) 2));
	}
	break;
	case ((NU8) 29):
	{
		NI LOC106;
		LOC106 = 0;
		LOC106 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC106 + ((NI) 2));
	}
	break;
	case ((NU8) 30):
	{
		NI LOC108;
		NI LOC109;
		LOC108 = 0;
		LOC108 = lsons_233249(n, ((NI) 0), ((NI) -1));
		LOC109 = 0;
		{
			NIM_BOOL LOC112;
			NI LOC113;
			LOC112 = 0;
			LOC113 = 0;
			LOC113 = len_214059(n);
			LOC112 = (((NI) 0) < LOC113);
			if (!(LOC112)) goto LA114;
			LOC112 = ((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 29));
			LA114: ;
			if (!LOC112) goto LA115;
			LOC109 = ((NI) 2);
		}
		goto LA110;
		LA115: ;
		{
			LOC109 = ((NI) 0);
		}
		LA110: ;
		result = (NI)((NI)(LOC108 + ((NI) 1)) + LOC109);
	}
	break;
	case ((NU8) 31):
	{
		result = lsons_233249(n, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 28):
	{
		result = lsons_233249(n, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 43):
	{
		NI LOC121;
		NI LOC122;
		LOC121 = 0;
		LOC121 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC122 = 0;
		LOC122 = lcomma_233108(n, ((NI) 1), ((NI) -1));
		result = (NI)(LOC121 + LOC122);
	}
	break;
	case ((NU8) 44):
	{
		NI LOC124;
		LOC124 = 0;
		LOC124 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC124 + ((NI) 2));
	}
	break;
	case ((NU8) 47):
	{
		NI LOC126;
		LOC126 = 0;
		LOC126 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC126 + ((NI) 2));
	}
	break;
	case ((NU8) 53):
	{
		NI LOC128;
		LOC128 = 0;
		LOC128 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC128 + ((NI) 2));
	}
	break;
	case ((NU8) 48):
	{
		NI LOC130;
		NI LOC131;
		NI LOC132;
		LOC130 = 0;
		LOC130 = lsub_232828((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
		LOC131 = 0;
		LOC131 = lsub_232828((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]);
		LOC132 = 0;
		LOC132 = lsons_233249(n, ((NI) 1), ((NI) -1));
		result = (NI)((NI)((NI)(LOC130 + LOC131) + LOC132) + ((NI) 5));
	}
	break;
	case ((NU8) 49):
	{
		NI LOC134;
		LOC134 = 0;
		LOC134 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC134 + ((NI) 8));
	}
	break;
	case ((NU8) 50):
	{
		NI LOC136;
		LOC136 = 0;
		LOC136 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC136 + ((NI) 7));
	}
	break;
	case ((NU8) 132):
	{
		NI LOC138;
		LOC138 = 0;
		{
			NI LOC141;
			LOC141 = 0;
			LOC141 = len_214059(n);
			if (!(((NI) 0) < LOC141)) goto LA142;
			LOC138 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		}
		goto LA139;
		LA142: ;
		{
			LOC138 = ((NI) 0);
		}
		LA139: ;
		result = (NI)(LOC138 + ((NI) 5));
	}
	break;
	case ((NU8) 141):
	{
		NI LOC146;
		LOC146 = 0;
		{
			NI LOC149;
			NI LOC152;
			LOC149 = 0;
			LOC149 = len_214059(n);
			if (!(((NI) 0) < LOC149)) goto LA150;
			LOC152 = 0;
			LOC152 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
			LOC146 = (NI)(LOC152 + ((NI) 1));
		}
		goto LA147;
		LA150: ;
		{
			LOC146 = ((NI) 0);
		}
		LA147: ;
		result = (NI)(LOC146 + ((NI) 3));
	}
	break;
	case ((NU8) 142):
	{
		NI LOC155;
		LOC155 = 0;
		{
			NI LOC158;
			NI LOC161;
			LOC158 = 0;
			LOC158 = len_214059(n);
			if (!(((NI) 0) < LOC158)) goto LA159;
			LOC161 = 0;
			LOC161 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
			LOC155 = (NI)(LOC161 + ((NI) 1));
		}
		goto LA156;
		LA159: ;
		{
			LOC155 = ((NI) 0);
		}
		LA156: ;
		result = (NI)(LOC155 + ((NI) 3));
	}
	break;
	case ((NU8) 143):
	{
		NI LOC164;
		LOC164 = 0;
		{
			NI LOC167;
			NI LOC170;
			LOC167 = 0;
			LOC167 = len_214059(n);
			if (!(((NI) 0) < LOC167)) goto LA168;
			LOC170 = 0;
			LOC170 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
			LOC164 = (NI)(LOC170 + ((NI) 1));
		}
		goto LA165;
		LA168: ;
		{
			LOC164 = ((NI) 0);
		}
		LA165: ;
		result = (NI)(LOC164 + ((NI) 3));
	}
	break;
	case ((NU8) 146):
	{
		NI LOC173;
		LOC173 = 0;
		{
			NI LOC176;
			NI LOC179;
			LOC176 = 0;
			LOC176 = len_214059(n);
			if (!(((NI) 0) < LOC176)) goto LA177;
			LOC179 = 0;
			LOC179 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
			LOC173 = (NI)(LOC179 + ((NI) 1));
		}
		goto LA174;
		LA177: ;
		{
			LOC173 = ((NI) 0);
		}
		LA174: ;
		result = (NI)(((NI) 8) + LOC173);
		{
			NI LOC183;
			NI LOC186;
			Tnode213790* LOC193;
			NI LOC194;
			LOC183 = 0;
			LOC183 = len_214059(n);
			if (!(((NI) 1) < LOC183)) goto LA184;
			LOC186 = 0;
			{
				Tnode213790* LOC189;
				LOC189 = 0;
				LOC189 = HEX5BHEX5D_214238(n, ((NI) 1));
				if (!((*LOC189).kind == ((NU8) 130))) goto LA190;
				LOC186 = ((NI) 6);
			}
			goto LA187;
			LA190: ;
			{
				LOC186 = ((NI) 9);
			}
			LA187: ;
			result += LOC186;
			LOC193 = 0;
			LOC193 = HEX5BHEX5D_214238(n, ((NI) 1));
			LOC194 = 0;
			LOC194 = lcomma_233108(LOC193, ((NI) 0), ((NI) -1));
			result += LOC194;
		}
		LA184: ;
	}
	break;
	case ((NU8) 137):
	{
		NI LOC196;
		LOC196 = 0;
		{
			NI LOC199;
			LOC199 = 0;
			LOC199 = len_214059(n);
			if (!(((NI) 0) < LOC199)) goto LA200;
			LOC196 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		}
		goto LA197;
		LA200: ;
		{
			LOC196 = ((NI) 0);
		}
		LA197: ;
		result = (NI)(LOC196 + ((NI) 8));
	}
	break;
	case ((NU8) 103):
	{
		NI LOC204;
		LOC204 = 0;
		LOC204 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC204 + ((NI) 3));
	}
	break;
	case ((NU8) 77):
	{
		NI LOC206;
		LOC206 = 0;
		LOC206 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC206 + ((NI) 3));
	}
	break;
	case ((NU8) 147):
	{
		NI LOC208;
		LOC208 = 0;
		LOC208 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC208 + ((NI) 5));
	}
	break;
	case ((NU8) 148):
	{
		NI LOC210;
		LOC210 = 0;
		LOC210 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC210 + ((NI) 9));
	}
	break;
	case ((NU8) 149):
	{
		NI LOC212;
		LOC212 = 0;
		LOC212 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC212 + ((NI) 7));
	}
	break;
	case ((NU8) 150):
	{
		{
			NI LOC216;
			NI LOC219;
			NI LOC220;
			LOC216 = 0;
			LOC216 = sonslen_216351(n);
			if (!(((NI) 0) < LOC216)) goto LA217;
			LOC219 = 0;
			LOC219 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
			LOC220 = 0;
			LOC220 = lcomma_233108(n, ((NI) 1), ((NI) -1));
			result = (NI)((NI)(LOC219 + LOC220) + ((NI) 5));
		}
		goto LA214;
		LA217: ;
		{
			result = ((NI) 4);
		}
		LA214: ;
	}
	break;
	case ((NU8) 151):
	{
		NI LOC223;
		LOC223 = 0;
		LOC223 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC223 + ((NI) 3));
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		{
			NI LOC227;
			LOC227 = 0;
			LOC227 = sonslen_216351(n);
			if (!(((NI) 1) < LOC227)) goto LA228;
			result = ((NI) 81);
		}
		goto LA225;
		LA228: ;
		{
			NI LOC231;
			LOC231 = 0;
			LOC231 = lsons_233249(n, ((NI) 0), ((NI) -1));
			result = (NI)(LOC231 + ((NI) 4));
		}
		LA225: ;
	}
	break;
	case ((NU8) 109):
	{
		NI LOC233;
		LOC233 = 0;
		LOC233 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC233 + ((NI) 7));
	}
	break;
	case ((NU8) 108):
	{
		NI LOC235;
		LOC235 = 0;
		LOC235 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC235 + ((NI) 6));
	}
	break;
	case ((NU8) 104):
	{
		NI LOC237;
		LOC237 = 0;
		LOC237 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC237 + ((NI) 6));
	}
	break;
	case ((NU8) 114):
	{
		NI LOC239;
		LOC239 = 0;
		LOC239 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC239 + ((NI) 8));
	}
	break;
	case ((NU8) 110):
	{
		NI LOC241;
		LOC241 = 0;
		LOC241 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC241 + ((NI) 6));
	}
	break;
	case ((NU8) 111):
	{
		NI LOC243;
		LOC243 = 0;
		LOC243 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC243 + ((NI) 9));
	}
	break;
	case ((NU8) 90):
	{
		NI LOC245;
		LOC245 = 0;
		LOC245 = lcomma_233108(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC245 + ((NI) 4));
	}
	break;
	case ((NU8) 125):
	{
		{
			if (!(*n).comment == 0) goto LA249;
			result = ((NI) 0);
		}
		goto LA247;
		LA249: ;
		{
			result = ((*n).comment ? (*n).comment->Sup.len : 0);
		}
		LA247: ;
	}
	break;
	case ((NU8) 85):
	{
		NI LOC253;
		Tnode213790* LOC254;
		NI LOC255;
		LOC253 = 0;
		LOC253 = lcomma_233108(n, ((NI) 0), ((NI) -2));
		LOC254 = 0;
		LOC254 = lastson_216364(n);
		LOC255 = 0;
		LOC255 = lsub_232828(LOC254);
		result = (NI)((NI)(LOC253 + LOC255) + ((NI) 5));
	}
	break;
	case ((NU8) 78):
	{
		NI LOC257;
		NI LOC258;
		LOC257 = 0;
		LOC257 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC258 = 0;
		LOC258 = lsub_232828((*n).kindU.S6.sons->data[((NI) 1)]);
		result = (NI)((NI)(LOC257 + ((NI) 4)) + LOC258);
	}
	break;
	case ((NU8) 86):
	{
		NI LOC260;
		LOC260 = 0;
		LOC260 = lsons_233249(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC260 + ((NI) 7));
	}
	break;
	case ((NU8) 88):
	{
		NI LOC262;
		LOC262 = 0;
		LOC262 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC262 + ((NI) 6));
	}
	break;
	case ((NU8) 107):
	{
		NI LOC264;
		LOC264 = 0;
		LOC264 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC264 + ((NI) 9));
	}
	break;
	case ((NU8) 75):
	{
		NI LOC266;
		LOC266 = 0;
		LOC266 = lcomma_233108(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC266 + ((NI) 2));
	}
	break;
	case ((NU8) 76):
	{
		NI LOC268;
		LOC268 = 0;
		LOC268 = lcomma_233108(n, ((NI) 1), ((NI) -1));
		result = (NI)(LOC268 + ((NI) 2));
		{
			NI LOC273;
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA271;
			LOC273 = 0;
			LOC273 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
			result = (NI)((NI)(result + LOC273) + ((NI) 2));
		}
		LA271: ;
	}
	break;
	case ((NU8) 87):
	{
		NI LOC275;
		Tnode213790* LOC276;
		NI LOC277;
		LOC275 = 0;
		LOC275 = lcomma_233108(n, ((NI) 0), ((NI) -2));
		LOC276 = 0;
		LOC276 = lastson_216364(n);
		LOC277 = 0;
		LOC277 = lsub_232828(LOC276);
		result = (NI)((NI)(LOC275 + LOC277) + ((NI) 9));
	}
	break;
	default:
	{
		result = ((NI) 81);
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, fits_233596)(Tsrcgen232014* g, NI x) {
	NIM_BOOL result;
	result = 0;
	result = ((NI)(x + (*g).linelen) <= ((NI) 80));
	return result;
}

N_NIMCALL(void, putwithspace_233673)(Tsrcgen232014* g, NU8 kind, NimStringDesc* s) {
	put_232419(g, kind, s);
	put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
}

N_NIMCALL(NIM_BOOL, hascom_233638)(Tnode213790* n) {
	NIM_BOOL result;
{	result = 0;
	result = NIM_FALSE;
	{
		if (!n == 0) goto LA3;
		result = NIM_FALSE;
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!!(((*n).comment == NIM_NIL))) goto LA7;
		result = NIM_TRUE;
		goto BeforeRet;
	}
	LA7: ;
	switch ((*n).kind) {
	case ((NU8) 1) ... ((NU8) 23):
	{
	}
	break;
	default:
	{
		{
			NI i_233663;
			NI HEX3Atmp_233666;
			NI LOC12;
			NI res_233669;
			i_233663 = 0;
			HEX3Atmp_233666 = 0;
			LOC12 = 0;
			LOC12 = sonslen_216351(n);
			HEX3Atmp_233666 = (NI)(LOC12 - ((NI) 1));
			res_233669 = ((NI) 0);
			{
				while (1) {
					if (!(res_233669 <= HEX3Atmp_233666)) goto LA14;
					i_233663 = res_233669;
					{
						NIM_BOOL LOC17;
						LOC17 = 0;
						LOC17 = hascom_233638((*n).kindU.S6.sons->data[i_233663]);
						if (!LOC17) goto LA18;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA18: ;
					res_233669 += ((NI) 1);
				} LA14: ;
			}
		}
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, shouldrendercomment_232744)(Tsrcgen232014* g, Tnode213790* n) {
	NIM_BOOL result;
	result = 0;
	result = NIM_FALSE;
	{
		NIM_BOOL LOC5;
		if (!!(((*n).comment == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = !((((*g).flags &(1U<<((NU)(((NU8) 2))&7U)))!=0));
		if (LOC5) goto LA6;
		LOC5 = (((*g).flags &(1U<<((NU)(((NU8) 3))&7U)))!=0);
		LA6: ;
		result = LOC5;
	}
	LA3: ;
	return result;
}

N_NIMCALL(NI, maxlinelength_232553)(NimStringDesc* s) {
	NI result;
	NI i;
	NI linelen;
{	result = 0;
	{
		if (!s == 0) goto LA3;
		result = ((NI) 0);
		goto BeforeRet;
	}
	LA3: ;
	i = ((NI) 0);
	linelen = ((NI) 0);
	{
		while (1) {
			switch (((NU8)(s->data[i]))) {
			case 0:
			{
				goto LA5;
			}
			break;
			case 13:
			{
				i += ((NI) 1);
				{
					if (!((NU8)(s->data[i]) == (NU8)(10))) goto LA11;
					i += ((NI) 1);
				}
				LA11: ;
				result = ((result >= linelen) ? result : linelen);
				linelen = ((NI) 0);
			}
			break;
			case 10:
			{
				i += ((NI) 1);
				result = ((result >= linelen) ? result : linelen);
				linelen = ((NI) 0);
			}
			break;
			default:
			{
				linelen += ((NI) 1);
				i += ((NI) 1);
			}
			break;
			}
		}
	} LA5: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(void, optnl_232245)(Tsrcgen232014* g) {
	optnl_232240(g, (*g).indent);
}

N_NIMCALL(void, putcomment_232486)(Tsrcgen232014* g, NimStringDesc* s) {
	NI i;
	NIM_BOOL iscode;
	NIM_BOOL LOC5;
	NI ind;
	NimStringDesc* com;
{	{
		if (!s == 0) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	i = ((NI) 0);
	LOC5 = 0;
	LOC5 = (((NI) 2) <= (s ? s->Sup.len : 0));
	if (!(LOC5)) goto LA6;
	LOC5 = !(((NU8)(s->data[((NI) 1)]) == (NU8)(32)));
	LA6: ;
	iscode = LOC5;
	ind = (*g).linelen;
	com = copyString(((NimStringDesc*) &TMP1429));
	{
		while (1) {
			switch (((NU8)(s->data[i]))) {
			case 0:
			{
				goto LA7;
			}
			break;
			case 13:
			{
				put_232419(g, ((NU8) 113), com);
				com = copyString(((NimStringDesc*) &TMP1429));
				i += ((NI) 1);
				{
					if (!((NU8)(s->data[i]) == (NU8)(10))) goto LA13;
					i += ((NI) 1);
				}
				LA13: ;
				optnl_232240(g, ind);
			}
			break;
			case 10:
			{
				put_232419(g, ((NU8) 113), com);
				com = copyString(((NimStringDesc*) &TMP1429));
				i += ((NI) 1);
				optnl_232240(g, ind);
			}
			break;
			case 32:
			case 9:
			{
				com = addChar(com, s->data[i]);
				i += ((NI) 1);
			}
			break;
			default:
			{
				NI j;
				j = i;
				{
					while (1) {
						if (!((NU8)(32) < (NU8)(s->data[j]))) goto LA19;
						j += ((NI) 1);
					} LA19: ;
				}
				{
					NIM_BOOL LOC22;
					LOC22 = 0;
					LOC22 = !(iscode);
					if (!(LOC22)) goto LA23;
					LOC22 = (((NI) 80) < (NI)((*g).linelen + (NI)(j - i)));
					LA23: ;
					if (!LOC22) goto LA24;
					put_232419(g, ((NU8) 113), com);
					optnl_232240(g, ind);
					com = copyString(((NimStringDesc*) &TMP1429));
				}
				LA24: ;
				{
					while (1) {
						if (!((NU8)(32) < (NU8)(s->data[i]))) goto LA27;
						com = addChar(com, s->data[i]);
						i += ((NI) 1);
					} LA27: ;
				}
			}
			break;
			}
		}
	} LA7: ;
	put_232419(g, ((NU8) 113), com);
	optnl_232245(g);
	}BeforeRet: ;
}

N_NIMCALL(void, gcom_232771)(Tsrcgen232014* g, Tnode213790* n) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = shouldrendercomment_232744(g, n);
		if (!LOC3) goto LA4;
		{
			NIM_BOOL LOC8;
			NIM_BOOL LOC9;
			LOC8 = 0;
			LOC9 = 0;
			LOC9 = ((*g).pendingnl < ((NI) 0));
			if (!(LOC9)) goto LA10;
			LOC9 = (((NI) 0) < ((*g).buf ? (*g).buf->Sup.len : 0));
			LA10: ;
			LOC8 = LOC9;
			if (!(LOC8)) goto LA11;
			LOC8 = !(((NU8)((*g).buf->data[(NI)(((*g).buf ? (*g).buf->Sup.len : 0) - ((NI) 1))]) == (NU8)(32)));
			LA11: ;
			if (!LOC8) goto LA12;
			put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		}
		LA12: ;
		{
			NIM_BOOL LOC16;
			NIM_BOOL LOC17;
			NI ml;
			LOC16 = 0;
			LOC17 = 0;
			LOC17 = ((*g).pendingnl < ((NI) 0));
			if (!(LOC17)) goto LA18;
			LOC17 = (((NI) 0) < ((*g).buf ? (*g).buf->Sup.len : 0));
			LA18: ;
			LOC16 = LOC17;
			if (!(LOC16)) goto LA19;
			LOC16 = ((*g).linelen < ((NI) 30));
			LA19: ;
			if (!LOC16) goto LA20;
			ml = maxlinelength_232553((*n).comment);
			{
				NimStringDesc* LOC26;
				if (!((NI)(ml + ((NI) 30)) <= ((NI) 80))) goto LA24;
				LOC26 = 0;
				LOC26 = nsuRepeatChar(32, ((NI) ((NI)(((NI) 30) - (*g).linelen))));
				put_232419(g, ((NU8) 115), LOC26);
			}
			LA24: ;
		}
		LA20: ;
		putcomment_232486(g, (*n).comment);
	}
	LA4: ;
}

N_NIMCALL(void, popallcoms_232707)(Tsrcgen232014* g) {
	(*g).comstack = (Tnodeseq213784*) setLengthSeq(&((*g).comstack)->Sup, sizeof(Tnode213790*), ((NI) 0));
}

N_NIMCALL(void, gcoms_232804)(Tsrcgen232014* g) {
	{
		NI i_232819;
		NI HEX3Atmp_232821;
		NI res_232824;
		i_232819 = 0;
		HEX3Atmp_232821 = 0;
		HEX3Atmp_232821 = ((*g).comstack ? ((*g).comstack->Sup.len-1) : -1);
		res_232824 = ((NI) 0);
		{
			while (1) {
				if (!(res_232824 <= HEX3Atmp_232821)) goto LA3;
				i_232819 = res_232824;
				gcom_232771(g, (*g).comstack->data[i_232819]);
				res_232824 += ((NI) 1);
			} LA3: ;
		}
	}
	popallcoms_232707(g);
}

N_NIMCALL(void, gcommaaux_233679)(Tsrcgen232014* g, Tnode213790* n, NI ind, NI start, NI theend, NU8 separator) {
	{
		NI i_233699;
		NI HEX3Atmp_233731;
		NI LOC2;
		NI res_233734;
		i_233699 = 0;
		HEX3Atmp_233731 = 0;
		LOC2 = 0;
		LOC2 = sonslen_216351(n);
		HEX3Atmp_233731 = (NI)(LOC2 + theend);
		res_233734 = start;
		{
			while (1) {
				NIM_BOOL c;
				NI LOC5;
				NI sublen;
				NI LOC6;
				NI oldlen;
				if (!(res_233734 <= HEX3Atmp_233731)) goto LA4;
				i_233699 = res_233734;
				LOC5 = 0;
				LOC5 = sonslen_216351(n);
				c = (i_233699 < (NI)(LOC5 + theend));
				LOC6 = 0;
				LOC6 = lsub_232828((*n).kindU.S6.sons->data[i_233699]);
				sublen = (NI)(LOC6 + ((NI) (c)));
				{
					NIM_BOOL LOC9;
					NIM_BOOL LOC10;
					LOC9 = 0;
					LOC10 = 0;
					LOC10 = fits_233596((&(*g)), sublen);
					LOC9 = !(LOC10);
					if (!(LOC9)) goto LA11;
					LOC9 = ((NI)(ind + sublen) < ((NI) 80));
					LA11: ;
					if (!LOC9) goto LA12;
					optnl_232240(g, ind);
				}
				LA12: ;
				oldlen = ((*g).tokens ? (*g).tokens->Sup.len : 0);
				gsub_233630(g, (*n).kindU.S6.sons->data[i_233699]);
				{
					if (!c) goto LA16;
					{
						if (!(oldlen < ((*g).tokens ? (*g).tokens->Sup.len : 0))) goto LA20;
						putwithspace_233673(g, separator, Toktypetostr_204160[(separator)- 0]);
					}
					LA20: ;
					{
						NIM_BOOL LOC24;
						LOC24 = 0;
						LOC24 = hascom_233638((*n).kindU.S6.sons->data[i_233699]);
						if (!LOC24) goto LA25;
						gcoms_232804(g);
						optnl_232240(g, ind);
					}
					LA25: ;
				}
				LA16: ;
				res_233734 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, gcomma_233758)(Tsrcgen232014* g, Tnode213790* n, NI start, NI theend) {
	NI ind;
	ind = (*g).linelen;
	{
		if (!(((NI) 40) < ind)) goto LA3;
		ind = (NI)((*g).indent + ((NI) 4));
	}
	LA3: ;
	gcommaaux_233679(g, n, ind, start, theend, ((NU8) 105));
}

N_NIMCALL(void, gcomma_233738)(Tsrcgen232014* g, Tnode213790* n, Tcontext233606 c, NI start, NI theend) {
	NI ind;
	ind = 0;
	{
		if (!((c.Field1 &(1U<<((NU)(((NU8) 2))&7U)))!=0)) goto LA3;
		ind = (NI)((*g).indent + ((NI) 2));
	}
	goto LA1;
	LA3: ;
	{
		ind = (*g).linelen;
		{
			if (!(((NI) 40) < ind)) goto LA8;
			ind = (NI)((*g).indent + ((NI) 4));
		}
		LA8: ;
	}
	LA1: ;
	gcommaaux_233679(g, n, ind, start, theend, ((NU8) 105));
}

N_NIMCALL(void, gsemicolon_233766)(Tsrcgen232014* g, Tnode213790* n, NI start, NI theend) {
	NI ind;
	ind = (*g).linelen;
	{
		if (!(((NI) 40) < ind)) goto LA3;
		ind = (NI)((*g).indent + ((NI) 4));
	}
	LA3: ;
	gcommaaux_233679(g, n, ind, start, theend, ((NU8) 106));
}

N_NIMCALL(void, doparamsaux_234401)(Tsrcgen232014* g, Tnode213790* params) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = len_214059(params);
		if (!(((NI) 1) < LOC3)) goto LA4;
		put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
		gsemicolon_233766(g, params, ((NI) 1), ((NI) -1));
		put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
	}
	LA4: ;
	{
		if (!!(((*(*params).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA8;
		putwithspace_233673(g, ((NU8) 112), ((NimStringDesc*) &TMP1449));
		gsub_233630(g, (*params).kindU.S6.sons->data[((NI) 0)]);
	}
	LA8: ;
}

N_NIMCALL(void, gsons_233774)(Tsrcgen232014* g, Tnode213790* n, Tcontext233606 c, NI start, NI theend) {
	{
		NI i_233793;
		NI HEX3Atmp_233796;
		NI LOC2;
		NI res_233799;
		i_233793 = 0;
		HEX3Atmp_233796 = 0;
		LOC2 = 0;
		LOC2 = sonslen_216351(n);
		HEX3Atmp_233796 = (NI)(LOC2 + theend);
		res_233799 = start;
		{
			while (1) {
				if (!(res_233799 <= HEX3Atmp_233796)) goto LA4;
				i_233793 = res_233799;
				gsub_233624(g, (*n).kindU.S6.sons->data[i_233793], c);
				res_233799 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, indentnl_232249)(Tsrcgen232014* g) {
	(*g).indent += ((NI) 2);
	(*g).pendingnl = (*g).indent;
	(*g).linelen = (*g).indent;
}

N_NIMCALL(void, dedent_232262)(Tsrcgen232014* g) {
	(*g).indent -= ((NI) 2);
	{
		if (!(((NI) 2) < (*g).pendingnl)) goto LA3;
		(*g).pendingnl -= ((NI) 2);
		(*g).linelen -= ((NI) 2);
	}
	LA3: ;
}

N_NIMCALL(void, putnl_232202)(Tsrcgen232014* g, NI indent) {
	{
		if (!(((NI) 0) <= (*g).pendingnl)) goto LA3;
		addpendingnl_232198(g);
	}
	goto LA1;
	LA3: ;
	{
		addtok_232173(g, ((NU8) 115), ((NimStringDesc*) &TMP1401));
	}
	LA1: ;
	(*g).pendingnl = indent;
	(*g).linelen = indent;
	(*g).pendingwhitespace = ((NI) -1);
}

N_NIMCALL(void, putnl_232236)(Tsrcgen232014* g) {
	putnl_232202(g, (*g).indent);
}

N_NIMCALL(void, gstmts_233860)(Tsrcgen232014* g, Tnode213790* n, Tcontext233606 c, NIM_BOOL doindent) {
{	{
		if (!((*n).kind == ((NU8) 1))) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		if (!((*n).kind == ((NU8) 115) || (*n).kind == ((NU8) 126) || (*n).kind == ((NU8) 128))) goto LA7;
		{
			if (!doindent) goto LA11;
			indentnl_232249(g);
		}
		LA11: ;
		{
			NI i_233898;
			NI HEX3Atmp_233934;
			NI LOC14;
			NI res_233937;
			i_233898 = 0;
			HEX3Atmp_233934 = 0;
			LOC14 = 0;
			LOC14 = sonslen_216351(n);
			HEX3Atmp_233934 = (NI)(LOC14 - ((NI) 1));
			res_233937 = ((NI) 0);
			{
				while (1) {
					if (!(res_233937 <= HEX3Atmp_233934)) goto LA16;
					i_233898 = res_233937;
					optnl_232245(g);
					{
						if (!((*(*n).kindU.S6.sons->data[i_233898]).kind == ((NU8) 115) || (*(*n).kindU.S6.sons->data[i_233898]).kind == ((NU8) 126) || (*(*n).kindU.S6.sons->data[i_233898]).kind == ((NU8) 128))) goto LA19;
						gstmts_233860(g, (*n).kindU.S6.sons->data[i_233898], c, NIM_FALSE);
					}
					goto LA17;
					LA19: ;
					{
						gsub_233630(g, (*n).kindU.S6.sons->data[i_233898]);
					}
					LA17: ;
					gcoms_232804(g);
					res_233937 += ((NI) 1);
				} LA16: ;
			}
		}
		{
			if (!doindent) goto LA24;
			dedent_232262(g);
		}
		LA24: ;
	}
	goto LA5;
	LA7: ;
	{
		{
			if (!((c.Field1 &(1U<<((NU)(((NU8) 0))&7U)))!=0)) goto LA29;
			indentnl_232249(g);
		}
		LA29: ;
		gsub_233630(g, n);
		gcoms_232804(g);
		optnl_232245(g);
		{
			if (!((c.Field1 &(1U<<((NU)(((NU8) 0))&7U)))!=0)) goto LA33;
			dedent_232262(g);
		}
		LA33: ;
	}
	LA5: ;
	}BeforeRet: ;
}

N_NIMCALL(NIM_BOOL, longmode_233832)(Tnode213790* n, NI start, NI theend) {
	NIM_BOOL result;
	result = 0;
	result = !(((*n).comment == NIM_NIL));
	{
		if (!!(result)) goto LA3;
		{
			NI i_233850;
			NI HEX3Atmp_233853;
			NI LOC6;
			NI res_233856;
			i_233850 = 0;
			HEX3Atmp_233853 = 0;
			LOC6 = 0;
			LOC6 = sonslen_216351(n);
			HEX3Atmp_233853 = (NI)(LOC6 + theend);
			res_233856 = start;
			{
				while (1) {
					if (!(res_233856 <= HEX3Atmp_233853)) goto LA8;
					i_233850 = res_233856;
					{
						NI LOC11;
						LOC11 = 0;
						LOC11 = lsub_232828((*n).kindU.S6.sons->data[i_233850]);
						if (!(((NI) 80) < LOC11)) goto LA12;
						result = NIM_TRUE;
						goto LA5;
					}
					LA12: ;
					res_233856 += ((NI) 1);
				} LA8: ;
			}
		} LA5: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, gif_233941)(Tsrcgen232014* g, Tnode213790* n) {
	Tcontext233606 c;
	NI length;
	memset((void*)(&c), 0, sizeof(c));
	gsub_233630(g, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
	initcontext_233618((&c));
	putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_233832(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_232828((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]);
		LOC3 = (((NI) 80) < (NI)(LOC5 + (*g).linelen));
		LA4: ;
		if (!LOC3) goto LA6;
		c.Field1 |= ((NU8)1)<<((((NU8) 0))%(sizeof(NU8)*8));
	}
	LA6: ;
	gcoms_232804(g);
	gstmts_233860(g, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)], c, NIM_TRUE);
	length = sonslen_216351(n);
	{
		NI i_233976;
		NI HEX3Atmp_233980;
		NI res_233983;
		i_233976 = 0;
		HEX3Atmp_233980 = 0;
		HEX3Atmp_233980 = (NI)(length - ((NI) 1));
		res_233983 = ((NI) 1);
		{
			while (1) {
				if (!(res_233983 <= HEX3Atmp_233980)) goto LA10;
				i_233976 = res_233983;
				optnl_232245(g);
				gsub_233624(g, (*n).kindU.S6.sons->data[i_233976], c);
				res_233983 += ((NI) 1);
			} LA10: ;
		}
	}
}

N_NIMCALL(void, gwhile_233987)(Tsrcgen232014* g, Tnode213790* n) {
	Tcontext233606 c;
	memset((void*)(&c), 0, sizeof(c));
	putwithspace_233673(g, ((NU8) 68), ((NimStringDesc*) &TMP1469));
	gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
	initcontext_233618((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_233832(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_232828((*n).kindU.S6.sons->data[((NI) 1)]);
		LOC3 = (((NI) 80) < (NI)(LOC5 + (*g).linelen));
		LA4: ;
		if (!LOC3) goto LA6;
		c.Field1 |= ((NU8)1)<<((((NU8) 0))%(sizeof(NU8)*8));
	}
	LA6: ;
	gcoms_232804(g);
	gstmts_233860(g, (*n).kindU.S6.sons->data[((NI) 1)], c, NIM_TRUE);
}

N_NIMCALL(void, gpragmablock_234027)(Tsrcgen232014* g, Tnode213790* n) {
	Tcontext233606 c;
	memset((void*)(&c), 0, sizeof(c));
	gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
	initcontext_233618((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_233832(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_232828((*n).kindU.S6.sons->data[((NI) 1)]);
		LOC3 = (((NI) 80) < (NI)(LOC5 + (*g).linelen));
		LA4: ;
		if (!LOC3) goto LA6;
		c.Field1 |= ((NU8)1)<<((((NU8) 0))%(sizeof(NU8)*8));
	}
	LA6: ;
	gcoms_232804(g);
	gstmts_233860(g, (*n).kindU.S6.sons->data[((NI) 1)], c, NIM_TRUE);
}

N_NIMCALL(void, gcase_234111)(Tsrcgen232014* g, Tnode213790* n) {
	Tcontext233606 c;
	NI length;
	NI last;
	memset((void*)(&c), 0, sizeof(c));
	initcontext_233618((&c));
	length = sonslen_216351(n);
	{
		if (!((*(*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]).kind == ((NU8) 88))) goto LA3;
		last = ((NI) -2);
	}
	goto LA1;
	LA3: ;
	{
		last = ((NI) -1);
	}
	LA1: ;
	{
		NIM_BOOL LOC8;
		LOC8 = 0;
		LOC8 = longmode_233832(n, ((NI) 0), last);
		if (!LOC8) goto LA9;
		c.Field1 |= ((NU8)1)<<((((NU8) 0))%(sizeof(NU8)*8));
	}
	LA9: ;
	putwithspace_233673(g, ((NU8) 11), ((NimStringDesc*) &TMP1470));
	gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	gcoms_232804(g);
	optnl_232245(g);
	gsons_233774(g, n, c, ((NI) 1), last);
	{
		if (!(last == ((NI) -2))) goto LA13;
		initcontext_233618((&c));
		{
			NIM_BOOL LOC17;
			LOC17 = 0;
			LOC17 = longmode_233832((*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))], ((NI) 0), ((NI) -1));
			if (!LOC17) goto LA18;
			c.Field1 |= ((NU8)1)<<((((NU8) 0))%(sizeof(NU8)*8));
		}
		LA18: ;
		gsub_233624(g, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))], c);
	}
	LA13: ;
}

N_NIMCALL(void, gtry_234048)(Tsrcgen232014* g, Tnode213790* n) {
	Tcontext233606 c;
	memset((void*)(&c), 0, sizeof(c));
	put_232419(g, ((NU8) 62), ((NimStringDesc*) &TMP1471));
	putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
	initcontext_233618((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_233832(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC3 = (((NI) 80) < (NI)(LOC5 + (*g).linelen));
		LA4: ;
		if (!LOC3) goto LA6;
		c.Field1 |= ((NU8)1)<<((((NU8) 0))%(sizeof(NU8)*8));
	}
	LA6: ;
	gcoms_232804(g);
	gstmts_233860(g, (*n).kindU.S6.sons->data[((NI) 0)], c, NIM_TRUE);
	gsons_233774(g, n, c, ((NI) 1), ((NI) -1));
}

N_NIMCALL(void, gfor_234068)(Tsrcgen232014* g, Tnode213790* n) {
	Tcontext233606 c;
	NI length;
	memset((void*)(&c), 0, sizeof(c));
	length = sonslen_216351(n);
	putwithspace_233673(g, ((NU8) 29), ((NimStringDesc*) &TMP1472));
	initcontext_233618((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		NI LOC6;
		LOC3 = 0;
		LOC3 = longmode_233832(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_232828((*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]);
		LOC6 = 0;
		LOC6 = lsub_232828((*n).kindU.S6.sons->data[(NI)(length - ((NI) 2))]);
		LOC3 = (((NI) 80) < (NI)((NI)((NI)(LOC5 + LOC6) + ((NI) 6)) + (*g).linelen));
		LA4: ;
		if (!LOC3) goto LA7;
		c.Field1 |= ((NU8)1)<<((((NU8) 0))%(sizeof(NU8)*8));
	}
	LA7: ;
	gcomma_233738(g, n, c, ((NI) 0), ((NI) -3));
	put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
	putwithspace_233673(g, ((NU8) 35), ((NimStringDesc*) &TMP1473));
	gsub_233624(g, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 2))], c);
	putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
	gcoms_232804(g);
	gstmts_233860(g, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))], c, NIM_TRUE);
}

N_NIMCALL(void, gblock_234220)(Tsrcgen232014* g, Tnode213790* n) {
	Tcontext233606 c;
	memset((void*)(&c), 0, sizeof(c));
	initcontext_233618((&c));
	{
		if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA3;
		putwithspace_233673(g, ((NU8) 9), ((NimStringDesc*) &TMP1474));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	goto LA1;
	LA3: ;
	{
		put_232419(g, ((NU8) 9), ((NimStringDesc*) &TMP1474));
	}
	LA1: ;
	putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
	{
		NIM_BOOL LOC8;
		NI LOC10;
		LOC8 = 0;
		LOC8 = longmode_233832(n, ((NI) 0), ((NI) -1));
		if (LOC8) goto LA9;
		LOC10 = 0;
		LOC10 = lsub_232828((*n).kindU.S6.sons->data[((NI) 1)]);
		LOC8 = (((NI) 80) < (NI)(LOC10 + (*g).linelen));
		LA9: ;
		if (!LOC8) goto LA11;
		c.Field1 |= ((NU8)1)<<((((NU8) 0))%(sizeof(NU8)*8));
	}
	LA11: ;
	gcoms_232804(g);
	indentnl_232249(g);
	gstmts_233860(g, (*n).kindU.S6.sons->data[((NI) 1)], c, NIM_TRUE);
	dedent_232262(g);
}

N_NIMCALL(void, gstaticstmt_234251)(Tsrcgen232014* g, Tnode213790* n) {
	Tcontext233606 c;
	memset((void*)(&c), 0, sizeof(c));
	putwithspace_233673(g, ((NU8) 60), ((NimStringDesc*) &TMP1435));
	putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
	initcontext_233618((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_233832(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC3 = (((NI) 80) < (NI)(LOC5 + (*g).linelen));
		LA4: ;
		if (!LOC3) goto LA6;
		c.Field1 |= ((NU8)1)<<((((NU8) 0))%(sizeof(NU8)*8));
	}
	LA6: ;
	gcoms_232804(g);
	gstmts_233860(g, (*n).kindU.S6.sons->data[((NI) 0)], c, NIM_TRUE);
}

N_NIMCALL(void, gasm_234271)(Tsrcgen232014* g, Tnode213790* n) {
	putwithspace_233673(g, ((NU8) 6), ((NimStringDesc*) &TMP1475));
	gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	gcoms_232804(g);
	{
		if (!(((NI) 1) < ((*n).kindU.S6.sons ? (*n).kindU.S6.sons->Sup.len : 0))) goto LA3;
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	LA3: ;
}

N_NIMCALL(NIM_BOOL, iskeyword_232071)(Tident188012* i) {
	NIM_BOOL result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (((NI) 1) <= (*i).Sup.id);
		if (!(LOC3)) goto LA4;
		LOC3 = ((*i).Sup.id <= ((NI) 70));
		LA4: ;
		if (!LOC3) goto LA5;
		result = NIM_TRUE;
	}
	LA5: ;
	return result;
}

N_NIMCALL(NimStringDesc*, renderdefinitionname_232113)(Tsym213822* s, NIM_BOOL noquotes) {
	NimStringDesc* result;
	NimStringDesc* x;
	result = 0;
	x = (*(*s).name).s;
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		NIM_BOOL LOC7;
		LOC3 = 0;
		LOC3 = noquotes;
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = (((NU8)(x->data[((NI) 0)])) >= ((NU8)(97)) && ((NU8)(x->data[((NI) 0)])) <= ((NU8)(122)) || ((NU8)(x->data[((NI) 0)])) >= ((NU8)(65)) && ((NU8)(x->data[((NI) 0)])) <= ((NU8)(90)) || ((NU8)(x->data[((NI) 0)])) >= ((NU8)(128)) && ((NU8)(x->data[((NI) 0)])) <= ((NU8)(255)));
		if (!(LOC5)) goto LA6;
		LOC7 = 0;
		LOC7 = iskeyword_232071((*s).name);
		LOC5 = !(LOC7);
		LA6: ;
		LOC3 = LOC5;
		LA4: ;
		if (!LOC3) goto LA8;
		result = copyString(x);
	}
	goto LA1;
	LA8: ;
	{
		NimStringDesc* LOC11;
		LOC11 = 0;
		LOC11 = rawNewString(x->Sup.len + 2);
appendChar(LOC11, 96);
appendString(LOC11, x);
appendChar(LOC11, 96);
		result = LOC11;
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, gpattern_234008)(Tsrcgen232014* g, Tnode213790* n) {
	Tcontext233606 c;
	memset((void*)(&c), 0, sizeof(c));
	put_232419(g, ((NU8) 97), ((NimStringDesc*) &TMP1436));
	initcontext_233618((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_233832(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC3 = (((NI) 80) < (NI)(LOC5 + (*g).linelen));
		LA4: ;
		if (!LOC3) goto LA6;
		c.Field1 |= ((NU8)1)<<((((NU8) 0))%(sizeof(NU8)*8));
	}
	LA6: ;
	gcoms_232804(g);
	gstmts_233860(g, n, c, NIM_TRUE);
	put_232419(g, ((NU8) 98), ((NimStringDesc*) &TMP1437));
}

N_NIMCALL(void, gproc_234155)(Tsrcgen232014* g, Tnode213790* n) {
	Tcontext233606 c;
	NIM_BOOL oldcheckanon;
	memset((void*)(&c), 0, sizeof(c));
	{
		NimStringDesc* LOC5;
		if (!((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3))) goto LA3;
		LOC5 = 0;
		LOC5 = renderdefinitionname_232113((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym, NIM_FALSE);
		put_232419(g, ((NU8) 2), LOC5);
	}
	goto LA1;
	LA3: ;
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	LA1: ;
	{
		if (!!(((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 1)))) goto LA9;
		gpattern_234008(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	LA9: ;
	oldcheckanon = (*g).checkanon;
	(*g).checkanon = NIM_TRUE;
	gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 2)]);
	(*g).checkanon = oldcheckanon;
	gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 3)]);
	gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 4)]);
	{
		if (!!((((*g).flags &(1U<<((NU)(((NU8) 1))&7U)))!=0))) goto LA13;
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 6)]).kind == ((NU8) 1)))) goto LA17;
			put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
			putwithspace_233673(g, ((NU8) 109), ((NimStringDesc*) &TMP1438));
			indentnl_232249(g);
			gcoms_232804(g);
			dedent_232262(g);
			initcontext_233618((&c));
			gstmts_233860(g, (*n).kindU.S6.sons->data[((NI) 6)], c, NIM_TRUE);
			putnl_232236(g);
		}
		goto LA15;
		LA17: ;
		{
			indentnl_232249(g);
			gcoms_232804(g);
			dedent_232262(g);
		}
		LA15: ;
	}
	LA13: ;
}

N_NIMCALL(void, gsection_233803)(Tsrcgen232014* g, Tnode213790* n, Tcontext233606 c, NU8 kind, NimStringDesc* k) {
{	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_216351(n);
		if (!(LOC3 == ((NI) 0))) goto LA4;
		goto BeforeRet;
	}
	LA4: ;
	putwithspace_233673(g, kind, k);
	gcoms_232804(g);
	indentnl_232249(g);
	{
		NI i_233822;
		NI HEX3Atmp_233825;
		NI LOC7;
		NI res_233828;
		i_233822 = 0;
		HEX3Atmp_233825 = 0;
		LOC7 = 0;
		LOC7 = sonslen_216351(n);
		HEX3Atmp_233825 = (NI)(LOC7 - ((NI) 1));
		res_233828 = ((NI) 0);
		{
			while (1) {
				if (!(res_233828 <= HEX3Atmp_233825)) goto LA9;
				i_233822 = res_233828;
				optnl_232245(g);
				gsub_233624(g, (*n).kindU.S6.sons->data[i_233822], c);
				gcoms_232804(g);
				res_233828 += ((NI) 1);
			} LA9: ;
		}
	}
	dedent_232262(g);
	}BeforeRet: ;
}

N_NIMCALL(void, gtypeclassty_234212)(Tsrcgen232014* g, Tnode213790* n) {
	Tcontext233606 c;
	Tnode213790* LOC1;
	Tnode213790* LOC2;
	Tnode213790* LOC3;
	Tnode213790* LOC4;
	memset((void*)(&c), 0, sizeof(c));
	initcontext_233618((&c));
	putwithspace_233673(g, ((NU8) 13), ((NimStringDesc*) &TMP1506));
	LOC1 = 0;
	LOC1 = HEX5BHEX5D_214238(n, ((NI) 0));
	gsons_233774(g, LOC1, c, ((NI) 0), ((NI) -1));
	LOC2 = 0;
	LOC2 = HEX5BHEX5D_214238(n, ((NI) 1));
	gsub_233630(g, LOC2);
	LOC3 = 0;
	LOC3 = HEX5BHEX5D_214238(n, ((NI) 2));
	gsub_233630(g, LOC3);
	gcoms_232804(g);
	indentnl_232249(g);
	gcoms_232804(g);
	LOC4 = 0;
	LOC4 = HEX5BHEX5D_214238(n, ((NI) 3));
	gstmts_233860(g, LOC4, c, NIM_TRUE);
	dedent_232262(g);
}

N_NIMCALL(void, gsub_233624)(Tsrcgen232014* g, Tnode213790* n, Tcontext233606 c_233629) {
	Tcontext233606 a;
{	{
		if (!n == 0) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&a), 0, sizeof(a));
	{
		if (!!(((*n).comment == NIM_NIL))) goto LA7;
		pushcom_232683(g, n);
	}
	LA7: ;
	switch ((*n).kind) {
	case ((NU8) 22):
	{
		putrawstr_232613(g, ((NU8) 89), (*n).kindU.S3.strval);
	}
	break;
	case ((NU8) 1):
	{
	}
	break;
	case ((NU8) 4):
	{
		NimStringDesc* LOC12;
		LOC12 = 0;
		LOC12 = atom_232959(n);
		put_232419(g, ((NU8) 0), LOC12);
	}
	break;
	case ((NU8) 3):
	case ((NU8) 2):
	{
		gident_234287(g, n);
	}
	break;
	case ((NU8) 6):
	{
		NimStringDesc* LOC15;
		LOC15 = 0;
		LOC15 = atom_232959(n);
		put_232419(g, ((NU8) 73), LOC15);
	}
	break;
	case ((NU8) 7):
	{
		NimStringDesc* LOC17;
		LOC17 = 0;
		LOC17 = atom_232959(n);
		put_232419(g, ((NU8) 74), LOC17);
	}
	break;
	case ((NU8) 8):
	{
		NimStringDesc* LOC19;
		LOC19 = 0;
		LOC19 = atom_232959(n);
		put_232419(g, ((NU8) 75), LOC19);
	}
	break;
	case ((NU8) 9):
	{
		NimStringDesc* LOC21;
		LOC21 = 0;
		LOC21 = atom_232959(n);
		put_232419(g, ((NU8) 76), LOC21);
	}
	break;
	case ((NU8) 10):
	{
		NimStringDesc* LOC23;
		LOC23 = 0;
		LOC23 = atom_232959(n);
		put_232419(g, ((NU8) 77), LOC23);
	}
	break;
	case ((NU8) 11):
	{
		NimStringDesc* LOC25;
		LOC25 = 0;
		LOC25 = atom_232959(n);
		put_232419(g, ((NU8) 78), LOC25);
	}
	break;
	case ((NU8) 12):
	{
		NimStringDesc* LOC27;
		LOC27 = 0;
		LOC27 = atom_232959(n);
		put_232419(g, ((NU8) 79), LOC27);
	}
	break;
	case ((NU8) 13):
	{
		NimStringDesc* LOC29;
		LOC29 = 0;
		LOC29 = atom_232959(n);
		put_232419(g, ((NU8) 80), LOC29);
	}
	break;
	case ((NU8) 14):
	{
		NimStringDesc* LOC31;
		LOC31 = 0;
		LOC31 = atom_232959(n);
		put_232419(g, ((NU8) 81), LOC31);
	}
	break;
	case ((NU8) 15):
	{
		NimStringDesc* LOC33;
		LOC33 = 0;
		LOC33 = atom_232959(n);
		put_232419(g, ((NU8) 82), LOC33);
	}
	break;
	case ((NU8) 16):
	{
		NimStringDesc* LOC35;
		LOC35 = 0;
		LOC35 = atom_232959(n);
		put_232419(g, ((NU8) 83), LOC35);
	}
	break;
	case ((NU8) 17):
	{
		NimStringDesc* LOC37;
		LOC37 = 0;
		LOC37 = atom_232959(n);
		put_232419(g, ((NU8) 84), LOC37);
	}
	break;
	case ((NU8) 18):
	{
		NimStringDesc* LOC39;
		LOC39 = 0;
		LOC39 = atom_232959(n);
		put_232419(g, ((NU8) 85), LOC39);
	}
	break;
	case ((NU8) 19):
	{
		NimStringDesc* LOC41;
		LOC41 = 0;
		LOC41 = atom_232959(n);
		put_232419(g, ((NU8) 86), LOC41);
	}
	break;
	case ((NU8) 20):
	{
		NimStringDesc* LOC43;
		LOC43 = 0;
		LOC43 = atom_232959(n);
		put_232419(g, ((NU8) 87), LOC43);
	}
	break;
	case ((NU8) 21):
	{
		NimStringDesc* LOC45;
		LOC45 = 0;
		LOC45 = atom_232959(n);
		put_232419(g, ((NU8) 88), LOC45);
	}
	break;
	case ((NU8) 5):
	{
		NimStringDesc* LOC47;
		LOC47 = 0;
		LOC47 = atom_232959(n);
		put_232419(g, ((NU8) 92), LOC47);
	}
	break;
	case ((NU8) 23):
	{
		NimStringDesc* LOC49;
		LOC49 = 0;
		LOC49 = atom_232959(n);
		put_232419(g, ((NU8) 46), LOC49);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 60):
	case ((NU8) 25):
	case ((NU8) 153):
	case ((NU8) 38):
	{
		{
			NI LOC53;
			LOC53 = 0;
			LOC53 = sonslen_216351(n);
			if (!(((NI) 1) <= LOC53)) goto LA54;
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA54: ;
		put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
		gcomma_233758(g, n, ((NI) 1), ((NI) -1));
		put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
	}
	break;
	case ((NU8) 28):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			NimStringDesc* LOC61;
			Tnode213790* LOC62;
			NimStringDesc* LOC63;
			if (!((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 21))) goto LA59;
			LOC61 = 0;
			LOC62 = 0;
			LOC62 = HEX5BHEX5D_214238(n, ((NI) 1));
			LOC63 = 0;
			LOC63 = nsuReplaceStr((*LOC62).kindU.S3.strval, ((NimStringDesc*) &TMP1402), ((NimStringDesc*) &TMP1408));
			LOC61 = rawNewString(LOC63->Sup.len + 2);
appendChar(LOC61, 34);
appendString(LOC61, LOC63);
appendChar(LOC61, 34);
			put_232419(g, ((NU8) 88), LOC61);
		}
		goto LA57;
		LA59: ;
		{
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		LA57: ;
	}
	break;
	case ((NU8) 58):
	case ((NU8) 59):
	case ((NU8) 32):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 61):
	{
		put_232419(g, ((NU8) 12), ((NimStringDesc*) &TMP1431));
		put_232419(g, ((NU8) 95), ((NimStringDesc*) &TMP1432));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 96), ((NimStringDesc*) &TMP1433));
		put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
	}
	break;
	case ((NU8) 63):
	{
		put_232419(g, ((NU8) 3), ((NimStringDesc*) &TMP1434));
		{
			NI LOC70;
			LOC70 = 0;
			LOC70 = len_214059(n);
			if (!(((NI) 0) < LOC70)) goto LA71;
			put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
		}
		LA71: ;
	}
	break;
	case ((NU8) 62):
	{
		put_232419(g, ((NU8) 60), ((NimStringDesc*) &TMP1435));
		put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 42):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 95), ((NimStringDesc*) &TMP1432));
		gcomma_233758(g, n, ((NI) 1), ((NI) -1));
		put_232419(g, ((NU8) 96), ((NimStringDesc*) &TMP1433));
	}
	break;
	case ((NU8) 40):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 97), ((NimStringDesc*) &TMP1436));
		gcomma_233758(g, n, ((NI) 1), ((NI) -1));
		put_232419(g, ((NU8) 98), ((NimStringDesc*) &TMP1437));
	}
	break;
	case ((NU8) 43):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		gcomma_233758(g, n, ((NI) 1), ((NI) -1));
	}
	break;
	case ((NU8) 26):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		gcomma_233758(g, n, ((NI) 1), ((NI) -1));
	}
	break;
	case ((NU8) 33):
	case ((NU8) 73):
	case ((NU8) 74):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		putwithspace_233673(g, ((NU8) 109), ((NimStringDesc*) &TMP1438));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 68):
	{
		put_232419(g, ((NU8) 2), ((NimStringDesc*) &TMP1439));
		put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
		gcomma_233758(g, n, ((NI) 0), ((NI) -1));
		put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
	}
	break;
	case ((NU8) 69):
	{
		put_232419(g, ((NU8) 2), ((NimStringDesc*) &TMP1440));
		put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
		gcomma_233758(g, n, ((NI) 0), ((NI) -1));
		put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
	}
	break;
	case ((NU8) 70):
	{
		put_232419(g, ((NU8) 2), ((NimStringDesc*) &TMP1441));
		put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
		gcomma_233758(g, n, ((NI) 0), ((NI) -1));
		put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
	}
	break;
	case ((NU8) 66):
	case ((NU8) 67):
	case ((NU8) 71):
	case ((NU8) 72):
	{
		{
			NI LOC85;
			LOC85 = 0;
			LOC85 = sonslen_216351(n);
			if (!(((NI) 1) <= LOC85)) goto LA86;
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA86: ;
		put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
		gcomma_233758(g, n, ((NI) 1), ((NI) -1));
		put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
	}
	break;
	case ((NU8) 56):
	case ((NU8) 57):
	{
		NimStringDesc* LOC109;
		put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
		{
			NI i_234473;
			NI HEX3Atmp_234855;
			NI LOC90;
			NI res_234858;
			i_234473 = 0;
			HEX3Atmp_234855 = 0;
			LOC90 = 0;
			LOC90 = sonslen_216351(n);
			HEX3Atmp_234855 = (NI)(LOC90 - ((NI) 1));
			res_234858 = ((NI) 0);
			{
				while (1) {
					if (!(res_234858 <= HEX3Atmp_234855)) goto LA92;
					i_234473 = res_234858;
					{
						if (!(((NI) 0) < i_234473)) goto LA95;
						put_232419(g, ((NU8) 112), ((NimStringDesc*) &TMP1442));
					}
					LA95: ;
					{
						Tsym213822* s;
						Tnode213790* LOC101;
						Tnode213790* LOC107;
						if (!((*(*n).kindU.S6.sons->data[i_234473]).kind == ((NU8) 3))) goto LA99;
						LOC101 = 0;
						LOC101 = HEX5BHEX5D_214238(n, i_234473);
						s = (*LOC101).kindU.S4.sym;
						{
							Tnode213790* LOC106;
							if (!!(((*s).owner == NIM_NIL))) goto LA104;
							LOC106 = 0;
							LOC106 = HEX5BHEX5D_214238(n, i_234473);
							put_232419(g, ((NU8) 2), (*(*(*(*LOC106).kindU.S4.sym).owner).name).s);
							put_232419(g, ((NU8) 112), ((NimStringDesc*) &TMP1443));
						}
						LA104: ;
						LOC107 = 0;
						LOC107 = HEX5BHEX5D_214238(n, i_234473);
						put_232419(g, ((NU8) 2), (*(*(*LOC107).kindU.S4.sym).name).s);
					}
					goto LA97;
					LA99: ;
					{
						gsub_233624(g, (*n).kindU.S6.sons->data[i_234473], c_233629);
					}
					LA97: ;
					res_234858 += ((NI) 1);
				} LA92: ;
			}
		}
		LOC109 = 0;
		{
			if (!((*n).kind == ((NU8) 57))) goto LA112;
			LOC109 = copyString(((NimStringDesc*) &TMP1444));
		}
		goto LA110;
		LA112: ;
		{
			LOC109 = copyString(((NimStringDesc*) &TMP1430));
		}
		LA110: ;
		put_232419(g, ((NU8) 94), LOC109);
	}
	break;
	case ((NU8) 37):
	case ((NU8) 155):
	{
		put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
		gcomma_233738(g, n, c_233629, ((NI) 0), ((NI) -1));
		put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
	}
	break;
	case ((NU8) 39):
	{
		put_232419(g, ((NU8) 97), ((NimStringDesc*) &TMP1436));
		gcomma_233738(g, n, c_233629, ((NI) 0), ((NI) -1));
		put_232419(g, ((NU8) 98), ((NimStringDesc*) &TMP1437));
	}
	break;
	case ((NU8) 152):
	{
		gcomma_233738(g, n, c_233629, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 54):
	{
		put_232419(g, ((NU8) 97), ((NimStringDesc*) &TMP1436));
		{
			NI LOC121;
			LOC121 = 0;
			LOC121 = len_214059(n);
			if (!(((NI) 0) < LOC121)) goto LA122;
			gcomma_233738(g, n, c_233629, ((NI) 0), ((NI) -1));
		}
		goto LA119;
		LA122: ;
		{
			put_232419(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
		}
		LA119: ;
		put_232419(g, ((NU8) 98), ((NimStringDesc*) &TMP1437));
	}
	break;
	case ((NU8) 41):
	{
		put_232419(g, ((NU8) 95), ((NimStringDesc*) &TMP1432));
		gcomma_233738(g, n, c_233629, ((NI) 0), ((NI) -1));
		put_232419(g, ((NU8) 96), ((NimStringDesc*) &TMP1433));
	}
	break;
	case ((NU8) 45):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 110), ((NimStringDesc*) &TMP1443));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 55):
	{
		putwithspace_233673(g, ((NU8) 8), ((NimStringDesc*) &TMP1446));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 46):
	case ((NU8) 64):
	case ((NU8) 65):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 51):
	{
		putwithspace_233673(g, ((NU8) 53), ((NimStringDesc*) &TMP1447));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 3)]);
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 4)]);
		put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		putwithspace_233673(g, ((NU8) 109), ((NimStringDesc*) &TMP1438));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 6)]);
	}
	break;
	case ((NU8) 52):
	{
		putwithspace_233673(g, ((NU8) 21), ((NimStringDesc*) &TMP1448));
		doparamsaux_234401(g, (*n).kindU.S6.sons->data[((NI) 3)]);
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 4)]);
		put_232419(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 6)]);
	}
	break;
	case ((NU8) 102):
	case ((NU8) 35):
	{
		NI L;
		gcomma_233758(g, n, ((NI) 0), ((NI) -3));
		L = sonslen_216351(n);
		{
			NIM_BOOL LOC134;
			LOC134 = 0;
			LOC134 = (((NI) 2) <= L);
			if (!(LOC134)) goto LA135;
			LOC134 = !(((*(*n).kindU.S6.sons->data[(NI)(L - ((NI) 2))]).kind == ((NU8) 1)));
			LA135: ;
			if (!LOC134) goto LA136;
			putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
			gsub_233630(g, (*n).kindU.S6.sons->data[(NI)(L - ((NI) 2))]);
		}
		LA136: ;
		{
			NIM_BOOL LOC140;
			LOC140 = 0;
			LOC140 = (((NI) 1) <= L);
			if (!(LOC140)) goto LA141;
			LOC140 = !(((*(*n).kindU.S6.sons->data[(NI)(L - ((NI) 1))]).kind == ((NU8) 1)));
			LA141: ;
			if (!LOC140) goto LA142;
			put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
			putwithspace_233673(g, ((NU8) 109), ((NimStringDesc*) &TMP1438));
			gsub_233624(g, (*n).kindU.S6.sons->data[(NI)(L - ((NI) 1))], c_233629);
		}
		LA142: ;
	}
	break;
	case ((NU8) 36):
	{
		Tnode213790* LOC145;
		put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
		gcomma_233758(g, n, ((NI) 0), ((NI) -3));
		put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
		put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		putwithspace_233673(g, ((NU8) 109), ((NimStringDesc*) &TMP1438));
		LOC145 = 0;
		LOC145 = lastson_216364(n);
		gsub_233624(g, LOC145, c_233629);
	}
	break;
	case ((NU8) 34):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 29):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			NI LOC150;
			NI LOC151;
			NIM_BOOL LOC152;
			LOC150 = 0;
			LOC150 = lsub_232828((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC151 = 0;
			LOC151 = lsub_232828((*n).kindU.S6.sons->data[((NI) 0)]);
			LOC152 = 0;
			LOC152 = fits_233596((&(*g)), (NI)((NI)(LOC150 + LOC151) + ((NI) 1)));
			if (!!(LOC152)) goto LA153;
			optnl_232240(g, (NI)((*g).indent + ((NI) 4)));
		}
		goto LA148;
		LA153: ;
		{
			put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		}
		LA148: ;
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 2)]);
	}
	break;
	case ((NU8) 30):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			NI LOC159;
			LOC159 = 0;
			LOC159 = len_214059(n);
			if (!(((NI) 1) < LOC159)) goto LA160;
			put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
			{
				if (!((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 29))) goto LA164;
				put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
				gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
				put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
			}
			goto LA162;
			LA164: ;
			{
				gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
			}
			LA162: ;
		}
		LA160: ;
	}
	break;
	case ((NU8) 31):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 44):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 111), ((NimStringDesc*) &TMP1450));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 47):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 112), ((NimStringDesc*) &TMP1451));
	}
	break;
	case ((NU8) 53):
	{
		put_232419(g, ((NU8) 114), ((NimStringDesc*) &TMP1452));
		{
			NI LOC173;
			LOC173 = 0;
			LOC173 = len_214059(n);
			if (!(((NI) 0) < LOC173)) goto LA174;
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA174: ;
		{
			NI i_234594;
			NI HEX3Atmp_234863;
			NI LOC177;
			NI res_234866;
			i_234594 = 0;
			HEX3Atmp_234863 = 0;
			LOC177 = 0;
			LOC177 = len_214059(n);
			HEX3Atmp_234863 = (LOC177 - 1);
			res_234866 = ((NI) 1);
			{
				while (1) {
					if (!(res_234866 <= HEX3Atmp_234863)) goto LA179;
					i_234594 = res_234866;
					put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
					gsub_233630(g, (*n).kindU.S6.sons->data[i_234594]);
					res_234866 += ((NI) 1);
				} LA179: ;
			}
		}
		put_232419(g, ((NU8) 114), ((NimStringDesc*) &TMP1452));
	}
	break;
	case ((NU8) 48):
	{
		putwithspace_233673(g, ((NU8) 33), ((NimStringDesc*) &TMP1453));
		gsub_233630(g, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
		putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
		gsub_233630(g, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]);
		gsons_233774(g, n, TMP1454, ((NI) 1), ((NI) -1));
	}
	break;
	case ((NU8) 49):
	{
		putwithspace_233673(g, ((NU8) 22), ((NimStringDesc*) &TMP1455));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 50):
	{
		put_232419(g, ((NU8) 23), ((NimStringDesc*) &TMP1456));
		putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 132):
	{
		putwithspace_233673(g, ((NU8) 64), ((NimStringDesc*) &TMP1457));
		{
			NI LOC186;
			LOC186 = 0;
			LOC186 = len_214059(n);
			if (!(((NI) 0) < LOC186)) goto LA187;
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA187: ;
	}
	break;
	case ((NU8) 141):
	{
		{
			NI LOC192;
			LOC192 = 0;
			LOC192 = sonslen_216351(n);
			if (!(((NI) 0) < LOC192)) goto LA193;
			putwithspace_233673(g, ((NU8) 56), ((NimStringDesc*) &TMP1458));
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		goto LA190;
		LA193: ;
		{
			put_232419(g, ((NU8) 56), ((NimStringDesc*) &TMP1458));
		}
		LA190: ;
	}
	break;
	case ((NU8) 142):
	{
		{
			NI LOC199;
			LOC199 = 0;
			LOC199 = sonslen_216351(n);
			if (!(((NI) 0) < LOC199)) goto LA200;
			putwithspace_233673(g, ((NU8) 54), ((NimStringDesc*) &TMP1459));
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		goto LA197;
		LA200: ;
		{
			put_232419(g, ((NU8) 54), ((NimStringDesc*) &TMP1459));
		}
		LA197: ;
	}
	break;
	case ((NU8) 143):
	{
		{
			NI LOC206;
			LOC206 = 0;
			LOC206 = sonslen_216351(n);
			if (!(((NI) 0) < LOC206)) goto LA207;
			putwithspace_233673(g, ((NU8) 66), ((NimStringDesc*) &TMP1460));
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		goto LA204;
		LA207: ;
		{
			put_232419(g, ((NU8) 66), ((NimStringDesc*) &TMP1460));
		}
		LA204: ;
	}
	break;
	case ((NU8) 146):
	{
		{
			NI LOC213;
			LOC213 = 0;
			LOC213 = len_214059(n);
			if (!(((NI) 0) < LOC213)) goto LA214;
			putwithspace_233673(g, ((NU8) 19), ((NimStringDesc*) &TMP1461));
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			{
				NI LOC218;
				Tnode213790* LOC227;
				LOC218 = 0;
				LOC218 = len_214059(n);
				if (!(((NI) 1) < LOC218)) goto LA219;
				{
					Tnode213790* LOC223;
					LOC223 = 0;
					LOC223 = HEX5BHEX5D_214238(n, ((NI) 1));
					if (!((*LOC223).kind == ((NU8) 130))) goto LA224;
					putwithspace_233673(g, ((NU8) 69), ((NimStringDesc*) &TMP1462));
				}
				goto LA221;
				LA224: ;
				{
					putwithspace_233673(g, ((NU8) 70), ((NimStringDesc*) &TMP1463));
				}
				LA221: ;
				LOC227 = 0;
				LOC227 = HEX5BHEX5D_214238(n, ((NI) 1));
				gcomma_233758(g, LOC227, ((NI) 0), ((NI) -1));
			}
			LA219: ;
		}
		goto LA211;
		LA214: ;
		{
			put_232419(g, ((NU8) 19), ((NimStringDesc*) &TMP1461));
		}
		LA211: ;
	}
	break;
	case ((NU8) 103):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 2)]).kind == ((NU8) 1)))) goto LA232;
			putwithspace_233673(g, ((NU8) 109), ((NimStringDesc*) &TMP1438));
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 2)]);
		}
		LA232: ;
	}
	break;
	case ((NU8) 133):
	{
		{
			NI LOC237;
			LOC237 = 0;
			LOC237 = sonslen_216351(n);
			if (!(((NI) 0) < LOC237)) goto LA238;
			putwithspace_233673(g, ((NU8) 49), ((NimStringDesc*) &TMP1464));
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
			gcoms_232804(g);
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 2)]);
		}
		goto LA235;
		LA238: ;
		{
			put_232419(g, ((NU8) 49), ((NimStringDesc*) &TMP1464));
		}
		LA235: ;
	}
	break;
	case ((NU8) 138):
	{
		indentnl_232249(g);
		{
			NI i_234647;
			NI HEX3Atmp_234871;
			NI LOC243;
			NI res_234874;
			i_234647 = 0;
			HEX3Atmp_234871 = 0;
			LOC243 = 0;
			LOC243 = sonslen_216351(n);
			HEX3Atmp_234871 = (NI)(LOC243 - ((NI) 1));
			res_234874 = ((NI) 0);
			{
				while (1) {
					if (!(res_234874 <= HEX3Atmp_234871)) goto LA245;
					i_234647 = res_234874;
					optnl_232245(g);
					gsub_233624(g, (*n).kindU.S6.sons->data[i_234647], c_233629);
					gcoms_232804(g);
					res_234874 += ((NI) 1);
				} LA245: ;
			}
		}
		dedent_232262(g);
		putnl_232236(g);
	}
	break;
	case ((NU8) 77):
	{
		putwithspace_233673(g, ((NU8) 50), ((NimStringDesc*) &TMP1465));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 147):
	{
		{
			NI LOC250;
			LOC250 = 0;
			LOC250 = sonslen_216351(n);
			if (!(((NI) 0) < LOC250)) goto LA251;
			putwithspace_233673(g, ((NU8) 53), ((NimStringDesc*) &TMP1447));
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA248;
		LA251: ;
		{
			put_232419(g, ((NU8) 53), ((NimStringDesc*) &TMP1447));
		}
		LA248: ;
	}
	break;
	case ((NU8) 148):
	{
		{
			NI LOC257;
			LOC257 = 0;
			LOC257 = sonslen_216351(n);
			if (!(((NI) 0) < LOC257)) goto LA258;
			putwithspace_233673(g, ((NU8) 40), ((NimStringDesc*) &TMP1466));
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA255;
		LA258: ;
		{
			put_232419(g, ((NU8) 40), ((NimStringDesc*) &TMP1466));
		}
		LA255: ;
	}
	break;
	case ((NU8) 137):
	{
		put_232419(g, ((NU8) 60), ((NimStringDesc*) &TMP1435));
		put_232419(g, ((NU8) 95), ((NimStringDesc*) &TMP1432));
		{
			NI LOC264;
			LOC264 = 0;
			LOC264 = len_214059(n);
			if (!(((NI) 0) < LOC264)) goto LA265;
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA265: ;
		put_232419(g, ((NU8) 96), ((NimStringDesc*) &TMP1433));
	}
	break;
	case ((NU8) 150):
	{
		{
			NI LOC270;
			LOC270 = 0;
			LOC270 = sonslen_216351(n);
			if (!(((NI) 0) < LOC270)) goto LA271;
			putwithspace_233673(g, ((NU8) 25), ((NimStringDesc*) &TMP1467));
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			gcoms_232804(g);
			indentnl_232249(g);
			gcommaaux_233679(g, n, (*g).indent, ((NI) 1), ((NI) -1), ((NU8) 105));
			gcoms_232804(g);
			dedent_232262(g);
		}
		goto LA268;
		LA271: ;
		{
			put_232419(g, ((NU8) 25), ((NimStringDesc*) &TMP1467));
		}
		LA268: ;
	}
	break;
	case ((NU8) 151):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		putwithspace_233673(g, ((NU8) 109), ((NimStringDesc*) &TMP1438));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 115):
	case ((NU8) 126):
	case ((NU8) 128):
	{
		gstmts_233860(g, n, TMP1454, NIM_TRUE);
	}
	break;
	case ((NU8) 92):
	{
		putwithspace_233673(g, ((NU8) 33), ((NimStringDesc*) &TMP1453));
		gif_233941(g, n);
	}
	break;
	case ((NU8) 93):
	case ((NU8) 140):
	{
		putwithspace_233673(g, ((NU8) 67), ((NimStringDesc*) &TMP1468));
		gif_233941(g, n);
	}
	break;
	case ((NU8) 96):
	{
		gwhile_233987(g, n);
	}
	break;
	case ((NU8) 91):
	{
		gpragmablock_234027(g, n);
	}
	break;
	case ((NU8) 97):
	case ((NU8) 139):
	{
		gcase_234111(g, n);
	}
	break;
	case ((NU8) 106):
	{
		gtry_234048(g, n);
	}
	break;
	case ((NU8) 94):
	case ((NU8) 95):
	{
		gfor_234068(g, n);
	}
	break;
	case ((NU8) 112):
	case ((NU8) 127):
	{
		gblock_234220(g, n);
	}
	break;
	case ((NU8) 113):
	{
		gstaticstmt_234251(g, n);
	}
	break;
	case ((NU8) 89):
	{
		gasm_234271(g, n);
	}
	break;
	case ((NU8) 79):
	{
		{
			if (!!((((*g).flags &(1U<<((NU)(((NU8) 6))&7U)))!=0))) goto LA289;
			putwithspace_233673(g, ((NU8) 53), ((NimStringDesc*) &TMP1447));
		}
		LA289: ;
		gproc_234155(g, n);
	}
	break;
	case ((NU8) 81):
	{
		{
			if (!!((((*g).flags &(1U<<((NU)(((NU8) 6))&7U)))!=0))) goto LA294;
			putwithspace_233673(g, ((NU8) 16), ((NimStringDesc*) &TMP1476));
		}
		LA294: ;
		gproc_234155(g, n);
	}
	break;
	case ((NU8) 80):
	{
		{
			if (!!((((*g).flags &(1U<<((NU)(((NU8) 6))&7U)))!=0))) goto LA299;
			putwithspace_233673(g, ((NU8) 43), ((NimStringDesc*) &TMP1477));
		}
		LA299: ;
		gproc_234155(g, n);
	}
	break;
	case ((NU8) 84):
	{
		{
			if (!!((((*g).flags &(1U<<((NU)(((NU8) 6))&7U)))!=0))) goto LA304;
			putwithspace_233673(g, ((NU8) 40), ((NimStringDesc*) &TMP1466));
		}
		LA304: ;
		gproc_234155(g, n);
	}
	break;
	case ((NU8) 82):
	{
		{
			if (!!((((*g).flags &(1U<<((NU)(((NU8) 6))&7U)))!=0))) goto LA309;
			putwithspace_233673(g, ((NU8) 42), ((NimStringDesc*) &TMP1478));
		}
		LA309: ;
		gproc_234155(g, n);
	}
	break;
	case ((NU8) 83):
	{
		{
			if (!!((((*g).flags &(1U<<((NU)(((NU8) 6))&7U)))!=0))) goto LA314;
			putwithspace_233673(g, ((NU8) 61), ((NimStringDesc*) &TMP1479));
		}
		LA314: ;
		gproc_234155(g, n);
	}
	break;
	case ((NU8) 98):
	{
		gsection_233803(g, n, TMP1454, ((NU8) 64), ((NimStringDesc*) &TMP1457));
	}
	break;
	case ((NU8) 101):
	{
		initcontext_233618((&a));
		a.Field1 |= ((NU8)1)<<((((NU8) 2))%(sizeof(NU8)*8));
		gsection_233803(g, n, a, ((NU8) 14), ((NimStringDesc*) &TMP1480));
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		NI L;
		L = sonslen_216351(n);
		{
			if (!(L == ((NI) 0))) goto LA321;
			goto BeforeRet;
		}
		LA321: ;
		{
			if (!((*n).kind == ((NU8) 99))) goto LA325;
			putwithspace_233673(g, ((NU8) 66), ((NimStringDesc*) &TMP1460));
		}
		goto LA323;
		LA325: ;
		{
			putwithspace_233673(g, ((NU8) 41), ((NimStringDesc*) &TMP1481));
		}
		LA323: ;
		{
			if (!(((NI) 1) < L)) goto LA330;
			gcoms_232804(g);
			indentnl_232249(g);
			{
				NI i_234751;
				NI HEX3Atmp_234879;
				NI res_234882;
				i_234751 = 0;
				HEX3Atmp_234879 = 0;
				HEX3Atmp_234879 = (NI)(L - ((NI) 1));
				res_234882 = ((NI) 0);
				{
					while (1) {
						if (!(res_234882 <= HEX3Atmp_234879)) goto LA334;
						i_234751 = res_234882;
						optnl_232245(g);
						gsub_233630(g, (*n).kindU.S6.sons->data[i_234751]);
						gcoms_232804(g);
						res_234882 += ((NI) 1);
					} LA334: ;
				}
			}
			dedent_232262(g);
		}
		goto LA328;
		LA330: ;
		{
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA328: ;
	}
	break;
	case ((NU8) 109):
	{
		putwithspace_233673(g, ((NU8) 57), ((NimStringDesc*) &TMP1482));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 108):
	{
		putwithspace_233673(g, ((NU8) 55), ((NimStringDesc*) &TMP1483));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 104):
	{
		putwithspace_233673(g, ((NU8) 72), ((NimStringDesc*) &TMP1484));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 114):
	{
		putwithspace_233673(g, ((NU8) 18), ((NimStringDesc*) &TMP1485));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 110):
	{
		putwithspace_233673(g, ((NU8) 10), ((NimStringDesc*) &TMP1486));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 111):
	{
		putwithspace_233673(g, ((NU8) 15), ((NimStringDesc*) &TMP1487));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 90):
	{
		{
			if (!!((((*g).flags &(1U<<((NU)(((NU8) 4))&7U)))!=0))) goto LA345;
			{
				if (!((*g).inpragma <= ((NI) 0))) goto LA349;
				(*g).inpragma += ((NI) 1);
				put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
				put_232419(g, ((NU8) 101), ((NimStringDesc*) &TMP1488));
				gcomma_233738(g, n, TMP1454, ((NI) 0), ((NI) -1));
				put_232419(g, ((NU8) 102), ((NimStringDesc*) &TMP1489));
				(*g).inpragma -= ((NI) 1);
			}
			goto LA347;
			LA349: ;
			{
				gcomma_233738(g, n, TMP1454, ((NI) 0), ((NI) -1));
			}
			LA347: ;
		}
		LA345: ;
	}
	break;
	case ((NU8) 116):
	case ((NU8) 118):
	{
		{
			if (!((*n).kind == ((NU8) 116))) goto LA355;
			putwithspace_233673(g, ((NU8) 34), ((NimStringDesc*) &TMP1490));
		}
		goto LA353;
		LA355: ;
		{
			putwithspace_233673(g, ((NU8) 27), ((NimStringDesc*) &TMP1491));
		}
		LA353: ;
		gcoms_232804(g);
		indentnl_232249(g);
		gcommaaux_233679(g, n, (*g).indent, ((NI) 0), ((NI) -1), ((NU8) 105));
		dedent_232262(g);
		putnl_232236(g);
	}
	break;
	case ((NU8) 117):
	case ((NU8) 119):
	{
		{
			if (!((*n).kind == ((NU8) 117))) goto LA361;
			putwithspace_233673(g, ((NU8) 34), ((NimStringDesc*) &TMP1490));
		}
		goto LA359;
		LA361: ;
		{
			putwithspace_233673(g, ((NU8) 27), ((NimStringDesc*) &TMP1491));
		}
		LA359: ;
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		putwithspace_233673(g, ((NU8) 26), ((NimStringDesc*) &TMP1492));
		gcommaaux_233679(g, n, (*g).indent, ((NI) 1), ((NI) -1), ((NU8) 105));
		gcoms_232804(g);
		putnl_232236(g);
	}
	break;
	case ((NU8) 120):
	{
		putwithspace_233673(g, ((NU8) 30), ((NimStringDesc*) &TMP1493));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		putwithspace_233673(g, ((NU8) 34), ((NimStringDesc*) &TMP1490));
		gcomma_233738(g, n, TMP1454, ((NI) 1), ((NI) -1));
		putnl_232236(g);
	}
	break;
	case ((NU8) 121):
	{
		putwithspace_233673(g, ((NU8) 36), ((NimStringDesc*) &TMP1494));
		gcoms_232804(g);
		indentnl_232249(g);
		gcommaaux_233679(g, n, (*g).indent, ((NI) 0), ((NI) -1), ((NU8) 105));
		dedent_232262(g);
		putnl_232236(g);
	}
	break;
	case ((NU8) 125):
	{
		gcoms_232804(g);
		optnl_232245(g);
	}
	break;
	case ((NU8) 85):
	{
		Tnode213790* LOC368;
		optnl_232245(g);
		putwithspace_233673(g, ((NU8) 50), ((NimStringDesc*) &TMP1465));
		gcomma_233738(g, n, c_233629, ((NI) 0), ((NI) -2));
		putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
		gcoms_232804(g);
		LOC368 = 0;
		LOC368 = lastson_216364(n);
		gstmts_233860(g, LOC368, c_233629, NIM_TRUE);
	}
	break;
	case ((NU8) 78):
	{
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 115), ((NimStringDesc*) &TMP1428));
		putwithspace_233673(g, ((NU8) 5), ((NimStringDesc*) &TMP1495));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 122):
	{
		putwithspace_233673(g, ((NU8) 8), ((NimStringDesc*) &TMP1446));
		gcomma_233738(g, n, c_233629, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 123):
	{
		putwithspace_233673(g, ((NU8) 44), ((NimStringDesc*) &TMP1496));
		gcomma_233738(g, n, c_233629, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 86):
	{
		optnl_232245(g);
		putwithspace_233673(g, ((NU8) 22), ((NimStringDesc*) &TMP1497));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
		gcoms_232804(g);
		gstmts_233860(g, (*n).kindU.S6.sons->data[((NI) 1)], c_233629, NIM_TRUE);
	}
	break;
	case ((NU8) 88):
	{
		optnl_232245(g);
		put_232419(g, ((NU8) 23), ((NimStringDesc*) &TMP1498));
		putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
		gcoms_232804(g);
		gstmts_233860(g, (*n).kindU.S6.sons->data[((NI) 0)], c_233629, NIM_TRUE);
	}
	break;
	case ((NU8) 107):
	case ((NU8) 105):
	{
		optnl_232245(g);
		{
			if (!((*n).kind == ((NU8) 107))) goto LA377;
			put_232419(g, ((NU8) 28), ((NimStringDesc*) &TMP1499));
		}
		goto LA375;
		LA377: ;
		{
			put_232419(g, ((NU8) 17), ((NimStringDesc*) &TMP1500));
		}
		LA375: ;
		putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
		gcoms_232804(g);
		gstmts_233860(g, (*n).kindU.S6.sons->data[((NI) 0)], c_233629, NIM_TRUE);
	}
	break;
	case ((NU8) 87):
	{
		Tnode213790* LOC381;
		optnl_232245(g);
		putwithspace_233673(g, ((NU8) 26), ((NimStringDesc*) &TMP1492));
		gcomma_233758(g, n, ((NI) 0), ((NI) -2));
		putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
		gcoms_232804(g);
		LOC381 = 0;
		LOC381 = lastson_216364(n);
		gstmts_233860(g, LOC381, c_233629, NIM_TRUE);
	}
	break;
	case ((NU8) 75):
	{
		put_232419(g, ((NU8) 95), ((NimStringDesc*) &TMP1432));
		gcomma_233758(g, n, ((NI) 0), ((NI) -1));
		put_232419(g, ((NU8) 96), ((NimStringDesc*) &TMP1433));
	}
	break;
	case ((NU8) 76):
	{
		put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1427));
		gsemicolon_233766(g, n, ((NI) 1), ((NI) -1));
		put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA386;
			putwithspace_233673(g, ((NU8) 107), ((NimStringDesc*) &TMP1445));
			gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA386: ;
	}
	break;
	case ((NU8) 134):
	{
		put_232419(g, ((NU8) 63), ((NimStringDesc*) &TMP1501));
		put_232419(g, ((NU8) 95), ((NimStringDesc*) &TMP1432));
		gcomma_233758(g, n, ((NI) 0), ((NI) -1));
		put_232419(g, ((NU8) 96), ((NimStringDesc*) &TMP1433));
	}
	break;
	case ((NU8) 135):
	{
		put_232419(g, ((NU8) 63), ((NimStringDesc*) &TMP1501));
	}
	break;
	case ((NU8) 24):
	{
		put_232419(g, ((NU8) 93), ((NimStringDesc*) &TMP1502));
		gsub_233630(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_232419(g, ((NU8) 94), ((NimStringDesc*) &TMP1430));
	}
	break;
	case ((NU8) 156):
	case ((NU8) 157):
	{
		Tcontext233606 c;
		NimStringDesc* LOC392;
		memset((void*)(&c), 0, sizeof(c));
		initcontext_233618((&c));
		LOC392 = 0;
		{
			if (!((*n).kind == ((NU8) 157))) goto LA395;
			LOC392 = copyString(((NimStringDesc*) &TMP1503));
		}
		goto LA393;
		LA395: ;
		{
			LOC392 = copyString(((NimStringDesc*) &TMP1504));
		}
		LA393: ;
		putwithspace_233673(g, ((NU8) 2), LOC392);
		gsons_233774(g, n, c, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 158):
	{
		put_232419(g, ((NU8) 63), ((NimStringDesc*) &TMP1505));
	}
	break;
	case ((NU8) 136):
	{
		gtypeclassty_234212(g, n);
	}
	break;
	default:
	{
		NimStringDesc* LOC401;
		LOC401 = 0;
		LOC401 = rawNewString(reprEnum((*n).kind, (&NTI213020))->Sup.len + 14);
appendString(LOC401, ((NimStringDesc*) &TMP1507));
appendString(LOC401, reprEnum((*n).kind, (&NTI213020)));
appendChar(LOC401, 41);
		internalerror_186100((*n).info, LOC401);
	}
	break;
	}
	}BeforeRet: ;
}

N_NIMCALL(void, gsub_233630)(Tsrcgen232014* g, Tnode213790* n) {
	Tcontext233606 c;
	memset((void*)(&c), 0, sizeof(c));
	initcontext_233618((&c));
	gsub_233624(g, n, c);
}

N_NIMCALL(NimStringDesc*, rendertree_232044)(Tnode213790* n, NU8 renderflags) {
	NimStringDesc* result;
	Tsrcgen232014 g;
	result = 0;
	memset((void*)(&g), 0, sizeof(g));
	initsrcgen_232136((&g), renderflags);
	gsub_233630((&g), n);
	result = copyString(g.buf);
	return result;
}

N_NIMCALL(NimStringDesc*, HEX24_232066)(Tnode213790* n) {
	NimStringDesc* result;
	result = 0;
	result = rendertree_232044(n, 0);
	return result;
}

N_NIMCALL(void, inittokrender_232050)(Tsrcgen232014* r, Tnode213790* n, NU8 renderflags) {
	initsrcgen_232136(r, renderflags);
	gsub_233630(r, n);
}

N_NIMCALL(void, getnexttok_232058)(Tsrcgen232014* r, NU8* kind, NimStringDesc** literal) {
	{
		NI length;
		if (!((*r).idx < ((*r).tokens ? (*r).tokens->Sup.len : 0))) goto LA3;
		(*kind) = (*r).tokens->data[(*r).idx].kind;
		length = ((NI) ((*r).tokens->data[(*r).idx].length));
		unsureAsgnRef((void**) (&(*literal)), copyStrLast((*r).buf, (*r).pos, (NI)((NI)((*r).pos + length) - ((NI) 1))));
		(*r).pos += length;
		(*r).idx += ((NI) 1);
	}
	goto LA1;
	LA3: ;
	{
		(*kind) = ((NU8) 1);
	}
	LA1: ;
}
NIM_EXTERNC N_NOINLINE(void, compiler_rendererInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_rendererDatInit000)(void) {
static TNimNode* TMP1398[2];
static TNimNode TMP888[3];
NTI232010.size = sizeof(Trendertok232010);
NTI232010.kind = 18;
NTI232010.base = 0;
NTI232010.flags = 3;
TMP1398[0] = &TMP888[1];
TMP888[1].kind = 1;
TMP888[1].offset = offsetof(Trendertok232010, kind);
TMP888[1].typ = (&NTI204016);
TMP888[1].name = "kind";
TMP1398[1] = &TMP888[2];
TMP888[2].kind = 1;
TMP888[2].offset = offsetof(Trendertok232010, length);
TMP888[2].typ = (&NTI108);
TMP888[2].name = "length";
TMP888[0].len = 2; TMP888[0].kind = 2; TMP888[0].sons = &TMP1398[0];
NTI232010.node = &TMP888[0];
NTI232012.size = sizeof(Trendertokseq232012*);
NTI232012.kind = 24;
NTI232012.base = (&NTI232010);
NTI232012.flags = 2;
NTI232012.marker = TMP1399;
}

