/* Generated by Nim Compiler v0.12.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 Tnode225809 Tnode225809;
typedef struct Tsrcgen247023 Tsrcgen247023;
typedef struct Trendertokseq247021 Trendertokseq247021;
typedef struct Tnodeseq225803 Tnodeseq225803;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Trendertok247019 Trendertok247019;
typedef struct Tcontext248834 Tcontext248834;
typedef struct Ttype225847 Ttype225847;
typedef struct Tlineinfo190352 Tlineinfo190352;
typedef struct Tsym225841 Tsym225841;
typedef struct Tident198021 Tident198021;
typedef struct Cell49147 Cell49147;
typedef struct Cellseq49163 Cellseq49163;
typedef struct Gcheap51218 Gcheap51218;
typedef struct Gcstack51216 Gcstack51216;
typedef struct Cellset49159 Cellset49159;
typedef struct Pagedesc49155 Pagedesc49155;
typedef struct Memregion31090 Memregion31090;
typedef struct Smallchunk31042 Smallchunk31042;
typedef struct Llchunk31084 Llchunk31084;
typedef struct Bigchunk31044 Bigchunk31044;
typedef struct Intset31017 Intset31017;
typedef struct Trunk31013 Trunk31013;
typedef struct Avlnode31088 Avlnode31088;
typedef struct Gcstat51214 Gcstat51214;
typedef struct Tidobj198015 Tidobj198015;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq225843 Ttypeseq225843;
typedef struct Tscope225835 Tscope225835;
typedef struct TY225944 TY225944;
typedef struct Tstrtable225813 Tstrtable225813;
typedef struct Tsymseq225811 Tsymseq225811;
typedef struct Tloc225823 Tloc225823;
typedef struct Ropeobj176009 Ropeobj176009;
typedef struct Tlib225827 Tlib225827;
typedef struct Basechunk31040 Basechunk31040;
typedef struct Freecell31032 Freecell31032;
typedef struct Tinstantiation225831 Tinstantiation225831;
typedef struct Tlistentry141022 Tlistentry141022;
typedef struct TY225932 TY225932;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tsrcgen247023  {
NI indent;
NI linelen;
NI pos;
NI idx;
Trendertokseq247021* tokens;
NimStringDesc* buf;
NI pendingnl;
NI pendingwhitespace;
Tnodeseq225803* comstack;
NU8 flags;
NIM_BOOL checkanon;
NI inpragma;
};
typedef N_NIMCALL_PTR(void, TY3889) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3894) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3889 marker;
TY3894 deepcopy;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Trendertok247019  {
NU8 kind;
NI16 length;
};
struct Tcontext248834 {
NI Field0;
NU8 Field1;
};
struct  Tlineinfo190352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode225809  {
Ttype225847* typ;
Tlineinfo190352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym225841* sym;
} S4;
struct {Tident198021* ident;
} S5;
struct {Tnodeseq225803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Cell49147  {
NI refcount;
TNimType* typ;
};
struct  Cellseq49163  {
NI len;
NI cap;
Cell49147** d;
};
struct  Cellset49159  {
NI counter;
NI max;
Pagedesc49155* head;
Pagedesc49155** data;
};
typedef Smallchunk31042* TY31105[512];
typedef Trunk31013* Trunkbuckets31015[256];
struct  Intset31017  {
Trunkbuckets31015 data;
};
struct  Memregion31090  {
NI minlargeobj;
NI maxlargeobj;
TY31105 freesmallchunks;
Llchunk31084* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk31044* freechunkslist;
Intset31017 chunkstarts;
Avlnode31088* root;
Avlnode31088* deleted;
Avlnode31088* last;
Avlnode31088* freeavlnodes;
};
struct  Gcstat51214  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51218  {
Gcstack51216* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq49163 zct;
Cellseq49163 decstack;
Cellset49159 cycleroots;
Cellseq49163 tempstack;
NI recgclock;
Memregion31090 region;
Gcstat51214 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj198015  {
  TNimObject Sup;
NI id;
};
struct  Tident198021  {
  Tidobj198015 Sup;
NimStringDesc* s;
Tident198021* next;
NI h;
};
struct  Tstrtable225813  {
NI counter;
Tsymseq225811* data;
};
struct  Tloc225823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype225847* t;
Ropeobj176009* r;
Ropeobj176009* heaproot;
};
struct  Tsym225841  {
  Tidobj198015 Sup;
NU8 kind;
union{
struct {Ttypeseq225843* typeinstcache;
Tscope225835* typscope;
} S1;
struct {TY225944* procinstcache;
Tsym225841* gcunsafetyreason;
} S2;
struct {TY225944* usedgenerics;
Tstrtable225813 tab;
} S3;
struct {Tsym225841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype225847* typ;
Tident198021* name;
Tlineinfo190352 info;
Tsym225841* owner;
NU32 flags;
Tnode225809* ast;
NU32 options;
NI position;
NI offset;
Tloc225823 loc;
Tlib225827* annex;
Tnode225809* constraint;
};
struct  Ttype225847  {
  Tidobj198015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq225843* sons;
Tnode225809* n;
Tsym225841* owner;
Tsym225841* sym;
Tsym225841* destructor;
Tsym225841* deepcopy;
Tsym225841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc225823 loc;
};
typedef NimStringDesc* TY216172[119];
struct  Gcstack51216  {
Gcstack51216* prev;
Gcstack51216* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY31021[16];
struct  Pagedesc49155  {
Pagedesc49155* next;
NI key;
TY31021 bits;
};
struct  Basechunk31040  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk31042  {
  Basechunk31040 Sup;
Smallchunk31042* next;
Smallchunk31042* prev;
Freecell31032* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk31084  {
NI size;
NI acc;
Llchunk31084* next;
};
struct  Bigchunk31044  {
  Basechunk31040 Sup;
Bigchunk31044* next;
Bigchunk31044* prev;
NI align;
NF data;
};
struct  Trunk31013  {
Trunk31013* next;
NI key;
TY31021 bits;
};
typedef Avlnode31088* TY31095[2];
struct  Avlnode31088  {
TY31095 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope225835  {
NI depthlevel;
Tstrtable225813 symbols;
Tnodeseq225803* usingsyms;
Tscope225835* parent;
};
struct  Ropeobj176009  {
  TNimObject Sup;
Ropeobj176009* left;
Ropeobj176009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry141022  {
  TNimObject Sup;
Tlistentry141022* prev;
Tlistentry141022* next;
};
struct  Tlib225827  {
  Tlistentry141022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj176009* name;
Tnode225809* path;
};
struct  Freecell31032  {
Freecell31032* next;
NI zerofield;
};
struct  Tinstantiation225831  {
Tsym225841* sym;
Ttypeseq225843* concretetypes;
TY225932* usedby;
NI compilesid;
};
struct Tnodeseq225803 {
  TGenericSeq Sup;
  Tnode225809* data[SEQ_DECL_SIZE];
};
struct Trendertokseq247021 {
  TGenericSeq Sup;
  Trendertok247019 data[SEQ_DECL_SIZE];
};
struct Ttypeseq225843 {
  TGenericSeq Sup;
  Ttype225847* data[SEQ_DECL_SIZE];
};
struct TY225944 {
  TGenericSeq Sup;
  Tinstantiation225831* data[SEQ_DECL_SIZE];
};
struct Tsymseq225811 {
  TGenericSeq Sup;
  Tsym225841* data[SEQ_DECL_SIZE];
};
struct TY225932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, initsrcgen_247187)(Tsrcgen247023* g, NU8 renderflags);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, TMP1366)(void* p, NI op);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(void, gsub_248873)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(void, initcontext_248852)(Tcontext248834* c);
N_NIMCALL(void, gsub_248864)(Tsrcgen247023* g, Tnode225809* n, Tcontext248834 c_248869);
N_NIMCALL(void, pushcom_247822)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell49147*, usrtocell_52846)(void* usr);
static N_INLINE(void, rtladdzct_54404)(Cell49147* c);
N_NOINLINE(void, addzct_52817)(Cellseq49163* s, Cell49147* c);
N_NIMCALL(void, putrawstr_247724)(Tsrcgen247023* g, NU8 kind, NimStringDesc* s);
N_NIMCALL(void, put_247425)(Tsrcgen247023* g, NU8 kind, NimStringDesc* s);
N_NIMCALL(void, addpendingnl_247261)(Tsrcgen247023* g);
N_NIMCALL(void, addtok_247230)(Tsrcgen247023* 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_247328)(Tsrcgen247023* g, NI indent);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, atom_248217)(Tnode225809* n);
N_NIMCALL(NimStringDesc*, makenimstring_247486)(NimStringDesc* s);
N_NIMCALL(NimStringDesc*, tonimchar_247468)(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_248056)(Tnode225809* n, NI64 x, NI size);
N_NIMCALL(Ttype225847*, skip_248062)(Ttype225847* t);
N_NIMCALL(Ttype225847*, lastson_228426)(Ttype225847* n);
static N_INLINE(NI, len_226098)(Tnode225809* 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_248175)(Tnode225809* n, NI64 x, NI size);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(void, internalerror_196191)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, reprEnum)(NI e_87059, TNimType* typ);
N_NIMCALL(void, gident_249744)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_NIMCALL(NI, sonslen_228387)(Tnode225809* n);
N_NIMCALL(void, gcomma_249051)(Tsrcgen247023* g, Tnode225809* n, NI start, NI theend);
N_NIMCALL(void, gcommaaux_248950)(Tsrcgen247023* g, Tnode225809* n, NI ind, NI start, NI theend, NU8 separator);
N_NIMCALL(NI, lsub_248050)(Tnode225809* n);
N_NIMCALL(NIM_BOOL, containsnl_247782)(NimStringDesc* s);
N_NIMCALL(NI, lcomma_248372)(Tnode225809* n, NI start, NI theend);
static N_INLINE(Tnode225809*, HEX5BHEX5D_226244)(Tnode225809* n, NI i);
N_NIMCALL(NI, lsons_248465)(Tnode225809* n, NI start, NI theend);
N_NIMCALL(Tnode225809*, lastson_228406)(Tnode225809* n);
N_NIMCALL(NIM_BOOL, fits_248818)(Tsrcgen247023* g, NI x);
N_NIMCALL(void, putwithspace_248938)(Tsrcgen247023* g, NU8 kind, NimStringDesc* s);
N_NIMCALL(NIM_BOOL, hascom_248887)(Tnode225809* n);
N_NIMCALL(void, gcoms_248010)(Tsrcgen247023* g);
N_NIMCALL(void, gcom_247938)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(NIM_BOOL, shouldrendercomment_247904)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringDesc* s, NimStringDesc* prefix);
N_NIMCALL(NI, maxlinelength_247652)(NimStringDesc* s);
N_NIMCALL(void, putcomment_247526)(Tsrcgen247023* g, NimStringDesc* s);
N_NIMCALL(void, optnl_247339)(Tsrcgen247023* g);
N_NIMCALL(void, popallcoms_247852)(Tsrcgen247023* g);
N_NIMCALL(void, gcomma_249025)(Tsrcgen247023* g, Tnode225809* n, Tcontext248834 c, NI start, NI theend);
N_NIMCALL(void, doparamsaux_249864)(Tsrcgen247023* g, Tnode225809* params);
N_NIMCALL(void, gsemicolon_249065)(Tsrcgen247023* g, Tnode225809* n, NI start, NI theend);
N_NIMCALL(void, gsons_249079)(Tsrcgen247023* g, Tnode225809* n, Tcontext248834 c, NI start, NI theend);
N_NIMCALL(void, indentnl_247349)(Tsrcgen247023* g);
N_NIMCALL(void, dedent_247368)(Tsrcgen247023* g);
N_NIMCALL(void, putnl_247318)(Tsrcgen247023* g);
N_NIMCALL(void, putnl_247271)(Tsrcgen247023* g, NI indent);
N_NIMCALL(void, gstmts_249213)(Tsrcgen247023* g, Tnode225809* n, Tcontext248834 c, NIM_BOOL doindent);
N_NIMCALL(void, gif_249310)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(NIM_BOOL, longmode_249169)(Tnode225809* n, NI start, NI theend);
N_NIMCALL(void, gwhile_249372)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(void, gpragmablock_249424)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(void, gcase_249532)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(void, gtry_249451)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(void, gfor_249477)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(void, gblock_249659)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(void, gstaticstmt_249696)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(void, gasm_249722)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(void, gproc_249582)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(NimStringDesc*, renderdefinitionname_247155)(Tsym225841* s, NIM_BOOL noquotes);
N_NIMCALL(NIM_BOOL, iskeyword_247101)(Tident198021* i);
N_NIMCALL(void, gpattern_249399)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(void, gsection_249124)(Tsrcgen247023* g, Tnode225809* n, Tcontext248834 c, NU8 kind, NimStringDesc* k);
N_NIMCALL(void, gtypeclassty_249645)(Tsrcgen247023* g, Tnode225809* n);
N_NIMCALL(void, internalerror_196172)(Tlineinfo190352 info, NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, rendertree_247059)(Tnode225809* n, NU8 renderflags);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI start_81216, NI last);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI first, NI last);
STRING_LITERAL(TMP1367, "", 0);
STRING_LITERAL(TMP1368, "\012", 1);
STRING_LITERAL(TMP1369, "\"", 1);
STRING_LITERAL(TMP1370, "\\0", 2);
STRING_LITERAL(TMP1371, "\\x", 2);
STRING_LITERAL(TMP1373, "r\"", 2);
STRING_LITERAL(TMP1375, "\"\"", 2);
STRING_LITERAL(TMP1376, "\"\"\"", 3);
STRING_LITERAL(TMP1377, "0b", 2);
STRING_LITERAL(TMP1378, "0o", 2);
STRING_LITERAL(TMP1379, "0x", 2);
STRING_LITERAL(TMP1380, "\'i8", 3);
STRING_LITERAL(TMP1381, "\'i16", 4);
STRING_LITERAL(TMP1382, "\'i32", 4);
STRING_LITERAL(TMP1383, "\'i64", 4);
STRING_LITERAL(TMP1384, "\'u", 2);
STRING_LITERAL(TMP1385, "\'u8", 3);
STRING_LITERAL(TMP1386, "\'u16", 4);
STRING_LITERAL(TMP1387, "\'u32", 4);
STRING_LITERAL(TMP1388, "\'u64", 4);
STRING_LITERAL(TMP1389, "\'f32", 4);
STRING_LITERAL(TMP1390, "\'f64", 4);
STRING_LITERAL(TMP1391, "nil", 3);
STRING_LITERAL(TMP1392, "[type node]", 11);
STRING_LITERAL(TMP1393, "rnimsyn.atom ", 13);
STRING_LITERAL(TMP1394, "(", 1);
STRING_LITERAL(TMP1395, " ", 1);
extern NIM_CONST TY216172 Toktypetostr_216169;
STRING_LITERAL(TMP1396, "##", 2);
STRING_LITERAL(TMP1397, ")", 1);
STRING_LITERAL(TMP1398, "cast", 4);
STRING_LITERAL(TMP1399, "[", 1);
STRING_LITERAL(TMP1400, "]", 1);
STRING_LITERAL(TMP1401, "addr", 4);
STRING_LITERAL(TMP1402, "static", 6);
STRING_LITERAL(TMP1403, "{", 1);
STRING_LITERAL(TMP1404, "}", 1);
STRING_LITERAL(TMP1405, "=", 1);
STRING_LITERAL(TMP1406, "chckRangeF", 10);
STRING_LITERAL(TMP1407, "chckRange64", 11);
STRING_LITERAL(TMP1408, "chckRange", 9);
STRING_LITERAL(TMP1409, "|", 1);
STRING_LITERAL(TMP1410, ".", 1);
STRING_LITERAL(TMP1411, "|...)", 5);
STRING_LITERAL(TMP1412, ":", 1);
STRING_LITERAL(TMP1413, "bind", 4);
STRING_LITERAL(TMP1414, "proc", 4);
STRING_LITERAL(TMP1415, "do", 2);
STRING_LITERAL(TMP1416, "->", 2);
STRING_LITERAL(TMP1417, "..", 2);
STRING_LITERAL(TMP1418, "[]", 2);
STRING_LITERAL(TMP1419, "`", 1);
STRING_LITERAL(TMP1420, "if", 2);
NIM_CONST Tcontext248834 TMP1421 = {((NI) 0),
0}
;
STRING_LITERAL(TMP1422, " elif", 5);
STRING_LITERAL(TMP1423, " else", 5);
STRING_LITERAL(TMP1424, "type", 4);
STRING_LITERAL(TMP1425, "ref", 3);
STRING_LITERAL(TMP1426, "ptr", 3);
STRING_LITERAL(TMP1427, "var", 3);
STRING_LITERAL(TMP1428, "distinct", 8);
STRING_LITERAL(TMP1429, " with", 5);
STRING_LITERAL(TMP1430, " without", 8);
STRING_LITERAL(TMP1431, "object", 6);
STRING_LITERAL(TMP1432, "of", 2);
STRING_LITERAL(TMP1433, "iterator", 8);
STRING_LITERAL(TMP1434, "enum", 4);
STRING_LITERAL(TMP1435, "when", 4);
STRING_LITERAL(TMP1436, "while", 5);
STRING_LITERAL(TMP1437, "case", 4);
STRING_LITERAL(TMP1438, "try", 3);
STRING_LITERAL(TMP1439, "for", 3);
STRING_LITERAL(TMP1440, "in", 2);
STRING_LITERAL(TMP1441, "block", 5);
STRING_LITERAL(TMP1442, "asm", 3);
STRING_LITERAL(TMP1443, "converter", 9);
STRING_LITERAL(TMP1444, "method", 6);
STRING_LITERAL(TMP1445, "macro", 5);
STRING_LITERAL(TMP1446, "template", 8);
STRING_LITERAL(TMP1447, "const", 5);
STRING_LITERAL(TMP1448, "let", 3);
STRING_LITERAL(TMP1449, "return", 6);
STRING_LITERAL(TMP1450, "raise", 5);
STRING_LITERAL(TMP1451, "yield", 5);
STRING_LITERAL(TMP1452, "discard", 7);
STRING_LITERAL(TMP1453, "break", 5);
STRING_LITERAL(TMP1454, "continue", 8);
STRING_LITERAL(TMP1455, "{.", 2);
STRING_LITERAL(TMP1456, ".}", 2);
STRING_LITERAL(TMP1457, "import", 6);
STRING_LITERAL(TMP1458, "export", 6);
STRING_LITERAL(TMP1459, "except", 6);
STRING_LITERAL(TMP1460, "from", 4);
STRING_LITERAL(TMP1461, "include", 7);
STRING_LITERAL(TMP1462, "as", 2);
STRING_LITERAL(TMP1463, "mixin", 5);
STRING_LITERAL(TMP1464, "elif", 4);
STRING_LITERAL(TMP1465, "else", 4);
STRING_LITERAL(TMP1466, "finally", 7);
STRING_LITERAL(TMP1467, "defer", 5);
STRING_LITERAL(TMP1468, "tuple", 5);
STRING_LITERAL(TMP1469, "(META|", 6);
STRING_LITERAL(TMP1470, "state", 5);
STRING_LITERAL(TMP1471, "goto", 4);
STRING_LITERAL(TMP1472, "concept", 7);
STRING_LITERAL(TMP1473, "rnimsyn.gsub(", 13);
extern TNimType NTI225803; /* TNodeSeq */
TNimType NTI247019; /* TRenderTok */
extern TNimType NTI216022; /* TTokType */
extern TNimType NTI112; /* int16 */
TNimType NTI247021; /* TRenderTokSeq */
extern Gcheap51218 gch_51259;
extern TNimType NTI225029; /* TNodeKind */
N_NIMCALL(void, TMP1366)(void* p, NI op) {
	Trendertokseq247021* a;
	NI LOC1;
	a = (Trendertokseq247021*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}

N_NIMCALL(void, initsrcgen_247187)(Tsrcgen247023* g, NU8 renderflags) {
	unsureAsgnRef((void**) (&(*g).comstack), (Tnodeseq225803*) newSeq((&NTI225803), 0));
	unsureAsgnRef((void**) (&(*g).tokens), (Trendertokseq247021*) newSeq((&NTI247021), 0));
	(*g).indent = ((NI) 0);
	(*g).linelen = ((NI) 0);
	(*g).pos = ((NI) 0);
	(*g).idx = ((NI) 0);
	unsureAsgnRef((void**) (&(*g).buf), copyString(((NimStringDesc*) &TMP1367)));
	(*g).flags = renderflags;
	(*g).pendingnl = ((NI) -1);
	(*g).pendingwhitespace = ((NI) -1);
	(*g).checkanon = NIM_FALSE;
}

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

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

static N_INLINE(void, rtladdzct_54404)(Cell49147* c) {
	addzct_52817((&gch_51259.zct), c);
}

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

N_NIMCALL(void, pushcom_247822)(Tsrcgen247023* g, Tnode225809* n) {
	NI length;
	length = ((*g).comstack ? (*g).comstack->Sup.len : 0);
	(*g).comstack = (Tnodeseq225803*) setLengthSeq(&((*g).comstack)->Sup, sizeof(Tnode225809*), ((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_247230)(Tsrcgen247023* g, NU8 kind, NimStringDesc* s) {
	NI length;
	length = ((*g).tokens ? (*g).tokens->Sup.len : 0);
	(*g).tokens = (Trendertokseq247021*) setLengthSeq(&((*g).tokens)->Sup, sizeof(Trendertok247019), ((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_247261)(Tsrcgen247023* 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*) &TMP1368));
appendString(LOC5, LOC6);
		addtok_247230(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_247230(g, ((NU8) 115), LOC10);
		(*g).pendingwhitespace = ((NI) -1);
	}
	goto LA1;
	LA8: ;
	LA1: ;
}

N_NIMCALL(void, put_247425)(Tsrcgen247023* g, NU8 kind, NimStringDesc* s) {
	{
		if (!!((kind == ((NU8) 115)))) goto LA3;
		addpendingnl_247261(g);
		{
			if (!(((NI) 0) < (s ? s->Sup.len : 0))) goto LA7;
			addtok_247230(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_247328)(Tsrcgen247023* g, NI indent) {
	(*g).pendingnl = indent;
	(*g).linelen = indent;
}

N_NIMCALL(void, putrawstr_247724)(Tsrcgen247023* 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*) &TMP1367));
	{
		while (1) {
			if (!(i <= hi)) goto LA2;
			switch (((NU8)(s->data[i]))) {
			case 13:
			{
				put_247425(g, kind, str);
				str = copyString(((NimStringDesc*) &TMP1367));
				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_247328(g, ((NI) 0));
			}
			break;
			case 10:
			{
				put_247425(g, kind, str);
				str = copyString(((NimStringDesc*) &TMP1367));
				i += ((NI) 1);
				optnl_247328(g, ((NI) 0));
			}
			break;
			default:
			{
				str = addChar(str, s->data[i]);
				i += ((NI) 1);
			}
			break;
			}
		} LA2: ;
	}
	put_247425(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_247468)(NIM_CHAR c) {
	NimStringDesc* result;
	result = 0;
	switch (((NU8)(c))) {
	case 0:
	{
		result = copyString(((NimStringDesc*) &TMP1370));
	}
	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*) &TMP1371));
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*) &TMP1367));
		result = LOC8;
	}
	break;
	}
	return result;
}

N_NIMCALL(NimStringDesc*, makenimstring_247486)(NimStringDesc* s) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP1369));
	{
		NI i_247502;
		NI HEX3Atmp_247504;
		NI res_247507;
		i_247502 = 0;
		HEX3Atmp_247504 = 0;
		HEX3Atmp_247504 = (NI)((s ? s->Sup.len : 0) - ((NI) 1));
		res_247507 = ((NI) 0);
		{
			while (1) {
				NimStringDesc* LOC4;
				if (!(res_247507 <= HEX3Atmp_247504)) goto LA3;
				i_247502 = res_247507;
				LOC4 = 0;
				LOC4 = tonimchar_247468(s->data[i_247502]);
				result = resizeString(result, LOC4->Sup.len + 0);
appendString(result, LOC4);
				res_247507 += ((NI) 1);
			} LA3: ;
		}
	}
	result = addChar(result, 34);
	return result;
}

N_NIMCALL(Ttype225847*, skip_248062)(Ttype225847* t) {
	Ttype225847* 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_228426(result);
		} LA2: ;
	}
	return result;
}

static N_INLINE(NI, len_226098)(Tnode225809* 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_248056)(Tnode225809* n, NI64 x, NI size) {
	NimStringDesc* result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		Ttype225847* LOC5;
		Tnode225809* enumfields;
		Ttype225847* LOC8;
		LOC3 = 0;
		LOC3 = !(((*n).typ == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = skip_248062((*n).typ);
		LOC3 = ((*LOC5).kind == ((NU8) 1) || (*LOC5).kind == ((NU8) 14));
		LA4: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = skip_248062((*n).typ);
		enumfields = (*LOC8).n;
		{
			Tnode225809* e_248102;
			e_248102 = 0;
			{
				NI i_248141;
				NI HEX3Atmp_248143;
				NI LOC11;
				NI res_248145;
				i_248141 = 0;
				HEX3Atmp_248143 = 0;
				LOC11 = 0;
				LOC11 = len_226098(enumfields);
				HEX3Atmp_248143 = (LOC11 - 1);
				res_248145 = ((NI) 0);
				{
					while (1) {
						if (!(res_248145 <= HEX3Atmp_248143)) goto LA13;
						i_248141 = res_248145;
						e_248102 = (*enumfields).kindU.S6.sons->data[i_248141];
						{
							if (!(((NI64) ((*(*e_248102).kindU.S4.sym).position)) == x)) goto LA16;
							result = copyString((*(*(*e_248102).kindU.S4.sym).name).s);
							goto BeforeRet;
						}
						LA16: ;
						res_248145 += ((NI) 1);
					} LA13: ;
				}
			}
		}
	}
	LA6: ;
	{
		NimStringDesc* LOC22;
		NimStringDesc* LOC23;
		if (!(((*n).flags &(1<<((((NU8) 1))&15)))!=0)) goto LA20;
		LOC22 = 0;
		LOC23 = 0;
		LOC23 = nsuToBin(x, ((NI) ((NI)(size * ((NI) 8)))));
		LOC22 = rawNewString(LOC23->Sup.len + 2);
appendString(LOC22, ((NimStringDesc*) &TMP1377));
appendString(LOC22, LOC23);
		result = LOC22;
	}
	goto LA18;
	LA20: ;
	{
		NimStringDesc* LOC27;
		NimStringDesc* LOC28;
		if (!(((*n).flags &(1<<((((NU8) 2))&15)))!=0)) goto LA25;
		LOC27 = 0;
		LOC28 = 0;
		LOC28 = nsuToOct(x, ((NI) ((NI)(size * ((NI) 3)))));
		LOC27 = rawNewString(LOC28->Sup.len + 2);
appendString(LOC27, ((NimStringDesc*) &TMP1378));
appendString(LOC27, LOC28);
		result = LOC27;
	}
	goto LA18;
	LA25: ;
	{
		NimStringDesc* LOC32;
		NimStringDesc* LOC33;
		if (!(((*n).flags &(1<<((((NU8) 3))&15)))!=0)) goto LA30;
		LOC32 = 0;
		LOC33 = 0;
		LOC33 = nsuToHex(x, ((NI) ((NI)(size * ((NI) 2)))));
		LOC32 = rawNewString(LOC33->Sup.len + 2);
appendString(LOC32, ((NimStringDesc*) &TMP1379));
appendString(LOC32, LOC33);
		result = LOC32;
	}
	goto LA18;
	LA30: ;
	{
		result = nimInt64ToStr(x);
	}
	LA18: ;
	}BeforeRet: ;
	return result;
}

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

N_NIMCALL(NimStringDesc*, atom_248217)(Tnode225809* n) {
	NimStringDesc* result;
	NF32 f;
	result = 0;
	f = 0;
	switch ((*n).kind) {
	case ((NU8) 1):
	{
		result = copyString(((NimStringDesc*) &TMP1367));
	}
	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_247486((*n).kindU.S3.strval);
	}
	break;
	case ((NU8) 21):
	{
		NimStringDesc* LOC6;
		NimStringDesc* LOC7;
		LOC6 = 0;
		LOC7 = 0;
		LOC7 = nsuReplaceStr((*n).kindU.S3.strval, ((NimStringDesc*) &TMP1369), ((NimStringDesc*) &TMP1375));
		LOC6 = rawNewString(LOC7->Sup.len + 3);
appendString(LOC6, ((NimStringDesc*) &TMP1373));
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*) &TMP1376));
appendString(LOC9, (*n).kindU.S3.strval);
appendString(LOC9, ((NimStringDesc*) &TMP1376));
		result = LOC9;
	}
	break;
	case ((NU8) 5):
	{
		NimStringDesc* LOC11;
		NimStringDesc* LOC12;
		LOC11 = 0;
		LOC12 = 0;
		LOC12 = tonimchar_247468(((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_248056(n, (*n).kindU.S1.intval, ((NI) 4));
	}
	break;
	case ((NU8) 7):
	{
		NimStringDesc* LOC15;
		NimStringDesc* LOC16;
		LOC15 = 0;
		LOC16 = 0;
		LOC16 = litaux_248056(n, (*n).kindU.S1.intval, ((NI) 1));
		LOC15 = rawNewString(LOC16->Sup.len + 3);
appendString(LOC15, LOC16);
appendString(LOC15, ((NimStringDesc*) &TMP1380));
		result = LOC15;
	}
	break;
	case ((NU8) 8):
	{
		NimStringDesc* LOC18;
		NimStringDesc* LOC19;
		LOC18 = 0;
		LOC19 = 0;
		LOC19 = litaux_248056(n, (*n).kindU.S1.intval, ((NI) 2));
		LOC18 = rawNewString(LOC19->Sup.len + 4);
appendString(LOC18, LOC19);
appendString(LOC18, ((NimStringDesc*) &TMP1381));
		result = LOC18;
	}
	break;
	case ((NU8) 9):
	{
		NimStringDesc* LOC21;
		NimStringDesc* LOC22;
		LOC21 = 0;
		LOC22 = 0;
		LOC22 = litaux_248056(n, (*n).kindU.S1.intval, ((NI) 4));
		LOC21 = rawNewString(LOC22->Sup.len + 4);
appendString(LOC21, LOC22);
appendString(LOC21, ((NimStringDesc*) &TMP1382));
		result = LOC21;
	}
	break;
	case ((NU8) 10):
	{
		NimStringDesc* LOC24;
		NimStringDesc* LOC25;
		LOC24 = 0;
		LOC25 = 0;
		LOC25 = litaux_248056(n, (*n).kindU.S1.intval, ((NI) 8));
		LOC24 = rawNewString(LOC25->Sup.len + 4);
appendString(LOC24, LOC25);
appendString(LOC24, ((NimStringDesc*) &TMP1383));
		result = LOC24;
	}
	break;
	case ((NU8) 11):
	{
		NimStringDesc* LOC27;
		NimStringDesc* LOC28;
		LOC27 = 0;
		LOC28 = 0;
		LOC28 = ulitaux_248175(n, (*n).kindU.S1.intval, ((NI) 4));
		LOC27 = rawNewString(LOC28->Sup.len + 2);
appendString(LOC27, LOC28);
appendString(LOC27, ((NimStringDesc*) &TMP1384));
		result = LOC27;
	}
	break;
	case ((NU8) 12):
	{
		NimStringDesc* LOC30;
		NimStringDesc* LOC31;
		LOC30 = 0;
		LOC31 = 0;
		LOC31 = ulitaux_248175(n, (*n).kindU.S1.intval, ((NI) 1));
		LOC30 = rawNewString(LOC31->Sup.len + 3);
appendString(LOC30, LOC31);
appendString(LOC30, ((NimStringDesc*) &TMP1385));
		result = LOC30;
	}
	break;
	case ((NU8) 13):
	{
		NimStringDesc* LOC33;
		NimStringDesc* LOC34;
		LOC33 = 0;
		LOC34 = 0;
		LOC34 = ulitaux_248175(n, (*n).kindU.S1.intval, ((NI) 2));
		LOC33 = rawNewString(LOC34->Sup.len + 4);
appendString(LOC33, LOC34);
appendString(LOC33, ((NimStringDesc*) &TMP1386));
		result = LOC33;
	}
	break;
	case ((NU8) 14):
	{
		NimStringDesc* LOC36;
		NimStringDesc* LOC37;
		LOC36 = 0;
		LOC37 = 0;
		LOC37 = ulitaux_248175(n, (*n).kindU.S1.intval, ((NI) 4));
		LOC36 = rawNewString(LOC37->Sup.len + 4);
appendString(LOC36, LOC37);
appendString(LOC36, ((NimStringDesc*) &TMP1387));
		result = LOC36;
	}
	break;
	case ((NU8) 15):
	{
		NimStringDesc* LOC39;
		NimStringDesc* LOC40;
		LOC39 = 0;
		LOC40 = 0;
		LOC40 = ulitaux_248175(n, (*n).kindU.S1.intval, ((NI) 8));
		LOC39 = rawNewString(LOC40->Sup.len + 4);
appendString(LOC39, LOC40);
appendString(LOC39, ((NimStringDesc*) &TMP1388));
		result = LOC39;
	}
	break;
	case ((NU8) 16):
	{
		{
			if (!(((*n).flags & 14) == 0)) goto LA44;
			result = nimFloatToStr((*n).kindU.S2.floatval);
		}
		goto LA42;
		LA44: ;
		{
			result = litaux_248056(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*) &TMP1389));
			result = LOC52;
		}
		goto LA48;
		LA50: ;
		{
			NimStringDesc* LOC55;
			NimStringDesc* LOC56;
			f = ((NF32) ((*n).kindU.S2.floatval));
			LOC55 = 0;
			LOC56 = 0;
			LOC56 = litaux_248056(n, ((NI64) ((*((NI32*) ((&f)))))), ((NI) 4));
			LOC55 = rawNewString(LOC56->Sup.len + 4);
appendString(LOC55, LOC56);
appendString(LOC55, ((NimStringDesc*) &TMP1389));
			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*) &TMP1390));
			result = LOC62;
		}
		goto LA58;
		LA60: ;
		{
			NimStringDesc* LOC65;
			NimStringDesc* LOC66;
			LOC65 = 0;
			LOC66 = 0;
			LOC66 = litaux_248056(n, (*((NI64*) ((&(*n).kindU.S2.floatval)))), ((NI) 8));
			LOC65 = rawNewString(LOC66->Sup.len + 4);
appendString(LOC65, LOC66);
appendString(LOC65, ((NimStringDesc*) &TMP1390));
			result = LOC65;
		}
		LA58: ;
	}
	break;
	case ((NU8) 23):
	{
		result = copyString(((NimStringDesc*) &TMP1391));
	}
	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*) &TMP1392));
		}
		LA69: ;
	}
	break;
	default:
	{
		NimStringDesc* LOC77;
		LOC77 = 0;
		LOC77 = rawNewString(reprEnum((*n).kind, (&NTI225029))->Sup.len + 13);
appendString(LOC77, ((NimStringDesc*) &TMP1393));
appendString(LOC77, reprEnum((*n).kind, (&NTI225029)));
		internalerror_196191(LOC77);
		result = copyString(((NimStringDesc*) &TMP1367));
	}
	break;
	}
	return result;
}

N_NIMCALL(void, gident_249744)(Tsrcgen247023* g, Tnode225809* 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 &(1<<((((NU8) 29))&31)))!=0);
		LA6: ;
		if (!LOC3) goto LA7;
		goto BeforeRet;
	}
	LA7: ;
	t = 0;
	s = atom_248217(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_247425(g, t, s);
	{
		NIM_BOOL LOC28;
		NimStringDesc* LOC32;
		LOC28 = 0;
		LOC28 = ((*n).kind == ((NU8) 3));
		if (!(LOC28)) goto LA29;
		LOC28 = (((*g).flags &(1<<((((NU8) 5))&7)))!=0);
		LA29: ;
		if (!LOC28) goto LA30;
		LOC32 = 0;
		LOC32 = nimIntToStr((*(*n).kindU.S4.sym).Sup.id);
		put_247425(g, ((NU8) 73), LOC32);
	}
	LA30: ;
	}BeforeRet: ;
}

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

N_NIMCALL(NI, lcomma_248372)(Tnode225809* n, NI start, NI theend) {
	NI result;
	result = 0;
	result = ((NI) 0);
	{
		NI i_248413;
		NI HEX3Atmp_248443;
		NI LOC2;
		NI res_248446;
		i_248413 = 0;
		HEX3Atmp_248443 = 0;
		LOC2 = 0;
		LOC2 = sonslen_228387(n);
		HEX3Atmp_248443 = (NI)(LOC2 + theend);
		res_248446 = start;
		{
			while (1) {
				NI LOC5;
				if (!(res_248446 <= HEX3Atmp_248443)) goto LA4;
				i_248413 = res_248446;
				LOC5 = 0;
				LOC5 = lsub_248050((*n).kindU.S6.sons->data[i_248413]);
				result += LOC5;
				result += ((NI) 2);
				res_248446 += ((NI) 1);
			} LA4: ;
		}
	}
	{
		if (!(((NI) 0) < result)) goto LA8;
		result -= ((NI) 2);
	}
	LA8: ;
	return result;
}

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

N_NIMCALL(NI, lsons_248465)(Tnode225809* n, NI start, NI theend) {
	NI result;
	result = 0;
	result = ((NI) 0);
	{
		NI i_248613;
		NI HEX3Atmp_248625;
		NI LOC2;
		NI res_248628;
		i_248613 = 0;
		HEX3Atmp_248625 = 0;
		LOC2 = 0;
		LOC2 = sonslen_228387(n);
		HEX3Atmp_248625 = (NI)(LOC2 + theend);
		res_248628 = start;
		{
			while (1) {
				NI LOC5;
				if (!(res_248628 <= HEX3Atmp_248625)) goto LA4;
				i_248613 = res_248628;
				LOC5 = 0;
				LOC5 = lsub_248050((*n).kindU.S6.sons->data[i_248613]);
				result += LOC5;
				res_248628 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(NI, lsub_248050)(Tnode225809* 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_247782((*n).kindU.S3.strval);
			if (!LOC13) goto LA14;
			result = ((NI) 81);
		}
		goto LA11;
		LA14: ;
		{
			NimStringDesc* LOC17;
			LOC17 = 0;
			LOC17 = atom_248217(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_248217(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_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC22 = 0;
		LOC22 = lcomma_248372(n, ((NI) 1), ((NI) -1));
		result = (NI)((NI)(LOC21 + LOC22) + ((NI) 2));
	}
	break;
	case ((NU8) 58):
	case ((NU8) 59):
	case ((NU8) 32):
	{
		Tnode225809* LOC24;
		LOC24 = 0;
		LOC24 = HEX5BHEX5D_226244(n, ((NI) 1));
		result = lsub_248050(LOC24);
	}
	break;
	case ((NU8) 61):
	{
		NI LOC26;
		NI LOC27;
		LOC26 = 0;
		LOC26 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC27 = 0;
		LOC27 = lsub_248050((*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_226098(n);
			if (!(((NI) 0) < LOC31)) goto LA32;
			LOC34 = 0;
			LOC34 = lsub_248050((*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_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC37 + ((NI) 7));
	}
	break;
	case ((NU8) 64):
	case ((NU8) 65):
	{
		result = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 26):
	{
		NI LOC40;
		NI LOC41;
		LOC40 = 0;
		LOC40 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC41 = 0;
		LOC41 = lcomma_248372(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_248465(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_248372(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC45 + ((NI) 2));
	}
	break;
	case ((NU8) 152):
	{
		result = lcomma_248372(n, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 54):
	{
		{
			NI LOC50;
			NI LOC53;
			LOC50 = 0;
			LOC50 = len_226098(n);
			if (!(((NI) 0) < LOC50)) goto LA51;
			LOC53 = 0;
			LOC53 = lcomma_248372(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_248465(n, ((NI) 0), ((NI) -1));
		LOC57 = 0;
		LOC57 = sonslen_228387(n);
		result = (NI)((NI)((NI)(LOC56 + ((NI) 2)) + LOC57) - ((NI) 1));
	}
	break;
	case ((NU8) 134):
	{
		NI LOC59;
		LOC59 = 0;
		LOC59 = lcomma_248372(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_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC62 + ((NI) 1));
	}
	break;
	case ((NU8) 55):
	{
		NI LOC64;
		LOC64 = 0;
		LOC64 = lsons_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC64 + ((NI) 5));
	}
	break;
	case ((NU8) 122):
	{
		NI LOC66;
		LOC66 = 0;
		LOC66 = lcomma_248372(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC66 + ((NI) 5));
	}
	break;
	case ((NU8) 123):
	{
		NI LOC68;
		LOC68 = 0;
		LOC68 = lcomma_248372(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC68 + ((NI) 6));
	}
	break;
	case ((NU8) 46):
	{
		result = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 51):
	{
		NI LOC71;
		LOC71 = 0;
		LOC71 = lsons_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC71 + ((NI) 8));
	}
	break;
	case ((NU8) 52):
	{
		NI LOC73;
		LOC73 = 0;
		LOC73 = lsons_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC73 + ((NI) 6));
	}
	break;
	case ((NU8) 102):
	case ((NU8) 35):
	{
		NI L;
		result = lcomma_248372(n, ((NI) 0), ((NI) -3));
		L = sonslen_228387(n);
		{
			NI LOC79;
			if (!!(((*(*n).kindU.S6.sons->data[(NI)(L - ((NI) 2))]).kind == ((NU8) 1)))) goto LA77;
			LOC79 = 0;
			LOC79 = lsub_248050((*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_248050((*n).kindU.S6.sons->data[(NI)(L - ((NI) 1))]);
			result = (NI)((NI)(result + LOC84) + ((NI) 3));
		}
		LA82: ;
	}
	break;
	case ((NU8) 36):
	{
		NI LOC86;
		Tnode225809* LOC87;
		NI LOC88;
		LOC86 = 0;
		LOC86 = lcomma_248372(n, ((NI) 0), ((NI) -3));
		LOC87 = 0;
		LOC87 = lastson_228406(n);
		LOC88 = 0;
		LOC88 = lsub_248050(LOC87);
		result = (NI)((NI)(LOC86 + ((NI) 5)) + LOC88);
	}
	break;
	case ((NU8) 68):
	{
		NI LOC90;
		LOC90 = 0;
		LOC90 = lcomma_248372(n, ((NI) 0), ((NI) -1));
		result = (NI)(((NI) 12) + LOC90);
	}
	break;
	case ((NU8) 69):
	{
		NI LOC92;
		LOC92 = 0;
		LOC92 = lcomma_248372(n, ((NI) 0), ((NI) -1));
		result = (NI)(((NI) 13) + LOC92);
	}
	break;
	case ((NU8) 70):
	{
		NI LOC94;
		LOC94 = 0;
		LOC94 = lcomma_248372(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_228387(n);
			if (!(((NI) 1) <= LOC98)) goto LA99;
			LOC101 = 0;
			LOC101 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
			result = (NI)(result + LOC101);
		}
		LA99: ;
		LOC102 = 0;
		LOC102 = lcomma_248372(n, ((NI) 1), ((NI) -1));
		result = (NI)(result + LOC102);
	}
	break;
	case ((NU8) 34):
	{
		NI LOC104;
		LOC104 = 0;
		LOC104 = lsons_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC104 + ((NI) 2));
	}
	break;
	case ((NU8) 29):
	{
		NI LOC106;
		LOC106 = 0;
		LOC106 = lsons_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC106 + ((NI) 2));
	}
	break;
	case ((NU8) 30):
	{
		NI LOC108;
		NI LOC109;
		LOC108 = 0;
		LOC108 = lsons_248465(n, ((NI) 0), ((NI) -1));
		LOC109 = 0;
		{
			NIM_BOOL LOC112;
			NI LOC113;
			LOC112 = 0;
			LOC113 = 0;
			LOC113 = len_226098(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_248465(n, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 28):
	{
		result = lsons_248465(n, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 43):
	{
		NI LOC121;
		NI LOC122;
		LOC121 = 0;
		LOC121 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC122 = 0;
		LOC122 = lcomma_248372(n, ((NI) 1), ((NI) -1));
		result = (NI)(LOC121 + LOC122);
	}
	break;
	case ((NU8) 44):
	{
		NI LOC124;
		LOC124 = 0;
		LOC124 = lsons_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC124 + ((NI) 2));
	}
	break;
	case ((NU8) 47):
	{
		NI LOC126;
		LOC126 = 0;
		LOC126 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC126 + ((NI) 2));
	}
	break;
	case ((NU8) 53):
	{
		NI LOC128;
		LOC128 = 0;
		LOC128 = lsons_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC128 + ((NI) 2));
	}
	break;
	case ((NU8) 48):
	{
		NI LOC130;
		NI LOC131;
		NI LOC132;
		LOC130 = 0;
		LOC130 = lsub_248050((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
		LOC131 = 0;
		LOC131 = lsub_248050((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]);
		LOC132 = 0;
		LOC132 = lsons_248465(n, ((NI) 1), ((NI) -1));
		result = (NI)((NI)((NI)(LOC130 + LOC131) + LOC132) + ((NI) 5));
	}
	break;
	case ((NU8) 49):
	{
		NI LOC134;
		LOC134 = 0;
		LOC134 = lsons_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC134 + ((NI) 8));
	}
	break;
	case ((NU8) 50):
	{
		NI LOC136;
		LOC136 = 0;
		LOC136 = lsub_248050((*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_226098(n);
			if (!(((NI) 0) < LOC141)) goto LA142;
			LOC138 = lsub_248050((*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_226098(n);
			if (!(((NI) 0) < LOC149)) goto LA150;
			LOC152 = 0;
			LOC152 = lsub_248050((*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_226098(n);
			if (!(((NI) 0) < LOC158)) goto LA159;
			LOC161 = 0;
			LOC161 = lsub_248050((*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_226098(n);
			if (!(((NI) 0) < LOC167)) goto LA168;
			LOC170 = 0;
			LOC170 = lsub_248050((*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_226098(n);
			if (!(((NI) 0) < LOC176)) goto LA177;
			LOC179 = 0;
			LOC179 = lsub_248050((*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;
			Tnode225809* LOC193;
			NI LOC194;
			LOC183 = 0;
			LOC183 = len_226098(n);
			if (!(((NI) 1) < LOC183)) goto LA184;
			LOC186 = 0;
			{
				Tnode225809* LOC189;
				LOC189 = 0;
				LOC189 = HEX5BHEX5D_226244(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_226244(n, ((NI) 1));
			LOC194 = 0;
			LOC194 = lcomma_248372(LOC193, ((NI) 0), ((NI) -1));
			result += LOC194;
		}
		LA184: ;
	}
	break;
	case ((NU8) 137):
	{
		NI LOC196;
		LOC196 = 0;
		{
			NI LOC199;
			LOC199 = 0;
			LOC199 = len_226098(n);
			if (!(((NI) 0) < LOC199)) goto LA200;
			LOC196 = lsub_248050((*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_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC204 + ((NI) 3));
	}
	break;
	case ((NU8) 77):
	{
		NI LOC206;
		LOC206 = 0;
		LOC206 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC206 + ((NI) 3));
	}
	break;
	case ((NU8) 147):
	{
		NI LOC208;
		LOC208 = 0;
		LOC208 = lsons_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC208 + ((NI) 5));
	}
	break;
	case ((NU8) 148):
	{
		NI LOC210;
		LOC210 = 0;
		LOC210 = lsons_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC210 + ((NI) 9));
	}
	break;
	case ((NU8) 149):
	{
		NI LOC212;
		LOC212 = 0;
		LOC212 = lsons_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC212 + ((NI) 7));
	}
	break;
	case ((NU8) 150):
	{
		{
			NI LOC216;
			NI LOC219;
			NI LOC220;
			LOC216 = 0;
			LOC216 = sonslen_228387(n);
			if (!(((NI) 0) < LOC216)) goto LA217;
			LOC219 = 0;
			LOC219 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
			LOC220 = 0;
			LOC220 = lcomma_248372(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_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC223 + ((NI) 3));
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		{
			NI LOC227;
			LOC227 = 0;
			LOC227 = sonslen_228387(n);
			if (!(((NI) 1) < LOC227)) goto LA228;
			result = ((NI) 81);
		}
		goto LA225;
		LA228: ;
		{
			NI LOC231;
			LOC231 = 0;
			LOC231 = lsons_248465(n, ((NI) 0), ((NI) -1));
			result = (NI)(LOC231 + ((NI) 4));
		}
		LA225: ;
	}
	break;
	case ((NU8) 109):
	{
		NI LOC233;
		LOC233 = 0;
		LOC233 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC233 + ((NI) 7));
	}
	break;
	case ((NU8) 108):
	{
		NI LOC235;
		LOC235 = 0;
		LOC235 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC235 + ((NI) 6));
	}
	break;
	case ((NU8) 104):
	{
		NI LOC237;
		LOC237 = 0;
		LOC237 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC237 + ((NI) 6));
	}
	break;
	case ((NU8) 114):
	{
		NI LOC239;
		LOC239 = 0;
		LOC239 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC239 + ((NI) 8));
	}
	break;
	case ((NU8) 110):
	{
		NI LOC241;
		LOC241 = 0;
		LOC241 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC241 + ((NI) 6));
	}
	break;
	case ((NU8) 111):
	{
		NI LOC243;
		LOC243 = 0;
		LOC243 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC243 + ((NI) 9));
	}
	break;
	case ((NU8) 90):
	{
		NI LOC245;
		LOC245 = 0;
		LOC245 = lcomma_248372(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;
		Tnode225809* LOC254;
		NI LOC255;
		LOC253 = 0;
		LOC253 = lcomma_248372(n, ((NI) 0), ((NI) -2));
		LOC254 = 0;
		LOC254 = lastson_228406(n);
		LOC255 = 0;
		LOC255 = lsub_248050(LOC254);
		result = (NI)((NI)(LOC253 + LOC255) + ((NI) 5));
	}
	break;
	case ((NU8) 78):
	{
		NI LOC257;
		NI LOC258;
		LOC257 = 0;
		LOC257 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		LOC258 = 0;
		LOC258 = lsub_248050((*n).kindU.S6.sons->data[((NI) 1)]);
		result = (NI)((NI)(LOC257 + ((NI) 4)) + LOC258);
	}
	break;
	case ((NU8) 86):
	{
		NI LOC260;
		LOC260 = 0;
		LOC260 = lsons_248465(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC260 + ((NI) 7));
	}
	break;
	case ((NU8) 88):
	{
		NI LOC262;
		LOC262 = 0;
		LOC262 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC262 + ((NI) 6));
	}
	break;
	case ((NU8) 107):
	{
		NI LOC264;
		LOC264 = 0;
		LOC264 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
		result = (NI)(LOC264 + ((NI) 9));
	}
	break;
	case ((NU8) 75):
	{
		NI LOC266;
		LOC266 = 0;
		LOC266 = lcomma_248372(n, ((NI) 0), ((NI) -1));
		result = (NI)(LOC266 + ((NI) 2));
	}
	break;
	case ((NU8) 76):
	{
		NI LOC268;
		LOC268 = 0;
		LOC268 = lcomma_248372(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_248050((*n).kindU.S6.sons->data[((NI) 0)]);
			result = (NI)((NI)(result + LOC273) + ((NI) 2));
		}
		LA271: ;
	}
	break;
	case ((NU8) 87):
	{
		NI LOC275;
		Tnode225809* LOC276;
		NI LOC277;
		LOC275 = 0;
		LOC275 = lcomma_248372(n, ((NI) 0), ((NI) -2));
		LOC276 = 0;
		LOC276 = lastson_228406(n);
		LOC277 = 0;
		LOC277 = lsub_248050(LOC276);
		result = (NI)((NI)(LOC275 + LOC277) + ((NI) 9));
	}
	break;
	default:
	{
		result = ((NI) 81);
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

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

N_NIMCALL(void, putwithspace_248938)(Tsrcgen247023* g, NU8 kind, NimStringDesc* s) {
	put_247425(g, kind, s);
	put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
}

N_NIMCALL(NIM_BOOL, hascom_248887)(Tnode225809* 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_248913;
			NI HEX3Atmp_248916;
			NI LOC12;
			NI res_248919;
			i_248913 = 0;
			HEX3Atmp_248916 = 0;
			LOC12 = 0;
			LOC12 = sonslen_228387(n);
			HEX3Atmp_248916 = (NI)(LOC12 - ((NI) 1));
			res_248919 = ((NI) 0);
			{
				while (1) {
					if (!(res_248919 <= HEX3Atmp_248916)) goto LA14;
					i_248913 = res_248919;
					{
						NIM_BOOL LOC17;
						LOC17 = 0;
						LOC17 = hascom_248887((*n).kindU.S6.sons->data[i_248913]);
						if (!LOC17) goto LA18;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA18: ;
					res_248919 += ((NI) 1);
				} LA14: ;
			}
		}
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, shouldrendercomment_247904)(Tsrcgen247023* g, Tnode225809* n) {
	NIM_BOOL result;
	result = 0;
	result = NIM_FALSE;
	{
		NIM_BOOL LOC5;
		NIM_BOOL LOC7;
		if (!!(((*n).comment == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = !((((*g).flags &(1<<((((NU8) 2))&7)))!=0));
		if (LOC5) goto LA6;
		LOC7 = 0;
		LOC7 = (((*g).flags &(1<<((((NU8) 3))&7)))!=0);
		if (!(LOC7)) goto LA8;
		LOC7 = nsuStartsWith((*n).comment, ((NimStringDesc*) &TMP1396));
		LA8: ;
		LOC5 = LOC7;
		LA6: ;
		result = LOC5;
	}
	LA3: ;
	return result;
}

N_NIMCALL(NI, maxlinelength_247652)(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_247339)(Tsrcgen247023* g) {
	optnl_247328(g, (*g).indent);
}

N_NIMCALL(void, putcomment_247526)(Tsrcgen247023* g, NimStringDesc* s) {
	NI i;
	NI comindent;
	NIM_BOOL iscode;
	NIM_BOOL LOC5;
	NI ind;
	NimStringDesc* com;
{	{
		if (!s == 0) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	i = ((NI) 0);
	comindent = ((NI) 1);
	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*) &TMP1367));
	{
		while (1) {
			switch (((NU8)(s->data[i]))) {
			case 0:
			{
				goto LA7;
			}
			break;
			case 13:
			{
				put_247425(g, ((NU8) 113), com);
				com = copyString(((NimStringDesc*) &TMP1367));
				i += ((NI) 1);
				{
					if (!((NU8)(s->data[i]) == (NU8)(10))) goto LA13;
					i += ((NI) 1);
				}
				LA13: ;
				optnl_247328(g, ind);
			}
			break;
			case 10:
			{
				put_247425(g, ((NU8) 113), com);
				com = copyString(((NimStringDesc*) &TMP1367));
				i += ((NI) 1);
				optnl_247328(g, ind);
			}
			break;
			case 35:
			{
				com = addChar(com, s->data[i]);
				i += ((NI) 1);
				comindent = ((NI) 0);
				{
					while (1) {
						if (!((NU8)(s->data[i]) == (NU8)(32))) goto LA18;
						com = addChar(com, s->data[i]);
						i += ((NI) 1);
						comindent += ((NI) 1);
					} LA18: ;
				}
			}
			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 LA22;
						j += ((NI) 1);
					} LA22: ;
				}
				{
					NIM_BOOL LOC25;
					NimStringDesc* LOC29;
					NimStringDesc* LOC30;
					LOC25 = 0;
					LOC25 = !(iscode);
					if (!(LOC25)) goto LA26;
					LOC25 = (((NI) 80) < (NI)((*g).linelen + (NI)(j - i)));
					LA26: ;
					if (!LOC25) goto LA27;
					put_247425(g, ((NU8) 113), com);
					optnl_247328(g, ind);
					LOC29 = 0;
					LOC30 = 0;
					LOC30 = nsuRepeatChar(32, ((NI) (comindent)));
					LOC29 = rawNewString(LOC30->Sup.len + 1);
appendChar(LOC29, 35);
appendString(LOC29, LOC30);
					com = LOC29;
				}
				LA27: ;
				{
					while (1) {
						if (!((NU8)(32) < (NU8)(s->data[i]))) goto LA32;
						com = addChar(com, s->data[i]);
						i += ((NI) 1);
					} LA32: ;
				}
			}
			break;
			}
		}
	} LA7: ;
	put_247425(g, ((NU8) 113), com);
	optnl_247339(g);
	}BeforeRet: ;
}

N_NIMCALL(void, gcom_247938)(Tsrcgen247023* g, Tnode225809* n) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = shouldrendercomment_247904(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_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		}
		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_247652((*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_247425(g, ((NU8) 115), LOC26);
			}
			LA24: ;
		}
		LA20: ;
		putcomment_247526(g, (*n).comment);
	}
	LA4: ;
}

N_NIMCALL(void, popallcoms_247852)(Tsrcgen247023* g) {
	(*g).comstack = (Tnodeseq225803*) setLengthSeq(&((*g).comstack)->Sup, sizeof(Tnode225809*), ((NI) 0));
}

N_NIMCALL(void, gcoms_248010)(Tsrcgen247023* g) {
	{
		NI i_248026;
		NI HEX3Atmp_248028;
		NI res_248031;
		i_248026 = 0;
		HEX3Atmp_248028 = 0;
		HEX3Atmp_248028 = ((*g).comstack ? ((*g).comstack->Sup.len-1) : -1);
		res_248031 = ((NI) 0);
		{
			while (1) {
				if (!(res_248031 <= HEX3Atmp_248028)) goto LA3;
				i_248026 = res_248031;
				gcom_247938(g, (*g).comstack->data[i_248026]);
				res_248031 += ((NI) 1);
			} LA3: ;
		}
	}
	popallcoms_247852(g);
}

N_NIMCALL(void, gcommaaux_248950)(Tsrcgen247023* g, Tnode225809* n, NI ind, NI start, NI theend, NU8 separator) {
	{
		NI i_248971;
		NI HEX3Atmp_249003;
		NI LOC2;
		NI res_249006;
		i_248971 = 0;
		HEX3Atmp_249003 = 0;
		LOC2 = 0;
		LOC2 = sonslen_228387(n);
		HEX3Atmp_249003 = (NI)(LOC2 + theend);
		res_249006 = start;
		{
			while (1) {
				NIM_BOOL c;
				NI LOC5;
				NI sublen;
				NI LOC6;
				NI oldlen;
				if (!(res_249006 <= HEX3Atmp_249003)) goto LA4;
				i_248971 = res_249006;
				LOC5 = 0;
				LOC5 = sonslen_228387(n);
				c = (i_248971 < (NI)(LOC5 + theend));
				LOC6 = 0;
				LOC6 = lsub_248050((*n).kindU.S6.sons->data[i_248971]);
				sublen = (NI)(LOC6 + ((NI) (c)));
				{
					NIM_BOOL LOC9;
					NIM_BOOL LOC10;
					LOC9 = 0;
					LOC10 = 0;
					LOC10 = fits_248818((&(*g)), sublen);
					LOC9 = !(LOC10);
					if (!(LOC9)) goto LA11;
					LOC9 = ((NI)(ind + sublen) < ((NI) 80));
					LA11: ;
					if (!LOC9) goto LA12;
					optnl_247328(g, ind);
				}
				LA12: ;
				oldlen = ((*g).tokens ? (*g).tokens->Sup.len : 0);
				gsub_248873(g, (*n).kindU.S6.sons->data[i_248971]);
				{
					if (!c) goto LA16;
					{
						if (!(oldlen < ((*g).tokens ? (*g).tokens->Sup.len : 0))) goto LA20;
						putwithspace_248938(g, separator, Toktypetostr_216169[(separator)- 0]);
					}
					LA20: ;
					{
						NIM_BOOL LOC24;
						LOC24 = 0;
						LOC24 = hascom_248887((*n).kindU.S6.sons->data[i_248971]);
						if (!LOC24) goto LA25;
						gcoms_248010(g);
						optnl_247328(g, ind);
					}
					LA25: ;
				}
				LA16: ;
				res_249006 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, gcomma_249051)(Tsrcgen247023* g, Tnode225809* n, NI start, NI theend) {
	NI ind;
	ind = (*g).linelen;
	{
		if (!(((NI) 40) < ind)) goto LA3;
		ind = (NI)((*g).indent + ((NI) 4));
	}
	LA3: ;
	gcommaaux_248950(g, n, ind, start, theend, ((NU8) 105));
}

N_NIMCALL(void, gcomma_249025)(Tsrcgen247023* g, Tnode225809* n, Tcontext248834 c, NI start, NI theend) {
	NI ind;
	ind = 0;
	{
		if (!((c.Field1 &(1<<((((NU8) 2))&7)))!=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_248950(g, n, ind, start, theend, ((NU8) 105));
}

N_NIMCALL(void, gsemicolon_249065)(Tsrcgen247023* g, Tnode225809* n, NI start, NI theend) {
	NI ind;
	ind = (*g).linelen;
	{
		if (!(((NI) 40) < ind)) goto LA3;
		ind = (NI)((*g).indent + ((NI) 4));
	}
	LA3: ;
	gcommaaux_248950(g, n, ind, start, theend, ((NU8) 106));
}

N_NIMCALL(void, doparamsaux_249864)(Tsrcgen247023* g, Tnode225809* params) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = len_226098(params);
		if (!(((NI) 1) < LOC3)) goto LA4;
		put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
		gsemicolon_249065(g, params, ((NI) 1), ((NI) -1));
		put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
	}
	LA4: ;
	{
		if (!!(((*(*params).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA8;
		putwithspace_248938(g, ((NU8) 112), ((NimStringDesc*) &TMP1416));
		gsub_248873(g, (*params).kindU.S6.sons->data[((NI) 0)]);
	}
	LA8: ;
}

N_NIMCALL(void, gsons_249079)(Tsrcgen247023* g, Tnode225809* n, Tcontext248834 c, NI start, NI theend) {
	{
		NI i_249099;
		NI HEX3Atmp_249102;
		NI LOC2;
		NI res_249105;
		i_249099 = 0;
		HEX3Atmp_249102 = 0;
		LOC2 = 0;
		LOC2 = sonslen_228387(n);
		HEX3Atmp_249102 = (NI)(LOC2 + theend);
		res_249105 = start;
		{
			while (1) {
				if (!(res_249105 <= HEX3Atmp_249102)) goto LA4;
				i_249099 = res_249105;
				gsub_248864(g, (*n).kindU.S6.sons->data[i_249099], c);
				res_249105 += ((NI) 1);
			} LA4: ;
		}
	}
}

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

N_NIMCALL(void, dedent_247368)(Tsrcgen247023* 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_247271)(Tsrcgen247023* g, NI indent) {
	{
		if (!(((NI) 0) <= (*g).pendingnl)) goto LA3;
		addpendingnl_247261(g);
	}
	goto LA1;
	LA3: ;
	{
		addtok_247230(g, ((NU8) 115), ((NimStringDesc*) &TMP1368));
	}
	LA1: ;
	(*g).pendingnl = indent;
	(*g).linelen = indent;
	(*g).pendingwhitespace = ((NI) -1);
}

N_NIMCALL(void, putnl_247318)(Tsrcgen247023* g) {
	putnl_247271(g, (*g).indent);
}

N_NIMCALL(void, gstmts_249213)(Tsrcgen247023* g, Tnode225809* n, Tcontext248834 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_247349(g);
		}
		LA11: ;
		{
			NI i_249252;
			NI HEX3Atmp_249288;
			NI LOC14;
			NI res_249291;
			i_249252 = 0;
			HEX3Atmp_249288 = 0;
			LOC14 = 0;
			LOC14 = sonslen_228387(n);
			HEX3Atmp_249288 = (NI)(LOC14 - ((NI) 1));
			res_249291 = ((NI) 0);
			{
				while (1) {
					if (!(res_249291 <= HEX3Atmp_249288)) goto LA16;
					i_249252 = res_249291;
					optnl_247339(g);
					{
						if (!((*(*n).kindU.S6.sons->data[i_249252]).kind == ((NU8) 115) || (*(*n).kindU.S6.sons->data[i_249252]).kind == ((NU8) 126) || (*(*n).kindU.S6.sons->data[i_249252]).kind == ((NU8) 128))) goto LA19;
						gstmts_249213(g, (*n).kindU.S6.sons->data[i_249252], c, NIM_FALSE);
					}
					goto LA17;
					LA19: ;
					{
						gsub_248873(g, (*n).kindU.S6.sons->data[i_249252]);
					}
					LA17: ;
					gcoms_248010(g);
					res_249291 += ((NI) 1);
				} LA16: ;
			}
		}
		{
			if (!doindent) goto LA24;
			dedent_247368(g);
		}
		LA24: ;
	}
	goto LA5;
	LA7: ;
	{
		{
			if (!((c.Field1 &(1<<((((NU8) 0))&7)))!=0)) goto LA29;
			indentnl_247349(g);
		}
		LA29: ;
		gsub_248873(g, n);
		gcoms_248010(g);
		optnl_247339(g);
		{
			if (!((c.Field1 &(1<<((((NU8) 0))&7)))!=0)) goto LA33;
			dedent_247368(g);
		}
		LA33: ;
	}
	LA5: ;
	}BeforeRet: ;
}

N_NIMCALL(NIM_BOOL, longmode_249169)(Tnode225809* n, NI start, NI theend) {
	NIM_BOOL result;
	result = 0;
	result = !(((*n).comment == NIM_NIL));
	{
		if (!!(result)) goto LA3;
		{
			NI i_249188;
			NI HEX3Atmp_249191;
			NI LOC6;
			NI res_249194;
			i_249188 = 0;
			HEX3Atmp_249191 = 0;
			LOC6 = 0;
			LOC6 = sonslen_228387(n);
			HEX3Atmp_249191 = (NI)(LOC6 + theend);
			res_249194 = start;
			{
				while (1) {
					if (!(res_249194 <= HEX3Atmp_249191)) goto LA8;
					i_249188 = res_249194;
					{
						NI LOC11;
						LOC11 = 0;
						LOC11 = lsub_248050((*n).kindU.S6.sons->data[i_249188]);
						if (!(((NI) 80) < LOC11)) goto LA12;
						result = NIM_TRUE;
						goto LA5;
					}
					LA12: ;
					res_249194 += ((NI) 1);
				} LA8: ;
			}
		} LA5: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, gif_249310)(Tsrcgen247023* g, Tnode225809* n) {
	Tcontext248834 c;
	NI length;
	memset((void*)(&c), 0, sizeof(c));
	gsub_248873(g, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
	initcontext_248852((&c));
	putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_249169(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_248050((*(*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_248010(g);
	gstmts_249213(g, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)], c, NIM_TRUE);
	length = sonslen_228387(n);
	{
		NI i_249346;
		NI HEX3Atmp_249350;
		NI res_249353;
		i_249346 = 0;
		HEX3Atmp_249350 = 0;
		HEX3Atmp_249350 = (NI)(length - ((NI) 1));
		res_249353 = ((NI) 1);
		{
			while (1) {
				if (!(res_249353 <= HEX3Atmp_249350)) goto LA10;
				i_249346 = res_249353;
				optnl_247339(g);
				gsub_248864(g, (*n).kindU.S6.sons->data[i_249346], c);
				res_249353 += ((NI) 1);
			} LA10: ;
		}
	}
}

N_NIMCALL(void, gwhile_249372)(Tsrcgen247023* g, Tnode225809* n) {
	Tcontext248834 c;
	memset((void*)(&c), 0, sizeof(c));
	putwithspace_248938(g, ((NU8) 68), ((NimStringDesc*) &TMP1436));
	gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
	initcontext_248852((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_249169(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_248050((*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_248010(g);
	gstmts_249213(g, (*n).kindU.S6.sons->data[((NI) 1)], c, NIM_TRUE);
}

N_NIMCALL(void, gpragmablock_249424)(Tsrcgen247023* g, Tnode225809* n) {
	Tcontext248834 c;
	memset((void*)(&c), 0, sizeof(c));
	gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
	initcontext_248852((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_249169(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_248050((*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_248010(g);
	gstmts_249213(g, (*n).kindU.S6.sons->data[((NI) 1)], c, NIM_TRUE);
}

N_NIMCALL(void, gcase_249532)(Tsrcgen247023* g, Tnode225809* n) {
	Tcontext248834 c;
	NI length;
	NI last;
	memset((void*)(&c), 0, sizeof(c));
	initcontext_248852((&c));
	length = sonslen_228387(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_249169(n, ((NI) 0), last);
		if (!LOC8) goto LA9;
		c.Field1 |= ((NU8)1)<<((((NU8) 0))%(sizeof(NU8)*8));
	}
	LA9: ;
	putwithspace_248938(g, ((NU8) 11), ((NimStringDesc*) &TMP1437));
	gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	gcoms_248010(g);
	optnl_247339(g);
	gsons_249079(g, n, c, ((NI) 1), last);
	{
		if (!(last == ((NI) -2))) goto LA13;
		initcontext_248852((&c));
		{
			NIM_BOOL LOC17;
			LOC17 = 0;
			LOC17 = longmode_249169((*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_248864(g, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))], c);
	}
	LA13: ;
}

N_NIMCALL(void, gtry_249451)(Tsrcgen247023* g, Tnode225809* n) {
	Tcontext248834 c;
	memset((void*)(&c), 0, sizeof(c));
	put_247425(g, ((NU8) 62), ((NimStringDesc*) &TMP1438));
	putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
	initcontext_248852((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_249169(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_248050((*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_248010(g);
	gstmts_249213(g, (*n).kindU.S6.sons->data[((NI) 0)], c, NIM_TRUE);
	gsons_249079(g, n, c, ((NI) 1), ((NI) -1));
}

N_NIMCALL(void, gfor_249477)(Tsrcgen247023* g, Tnode225809* n) {
	Tcontext248834 c;
	NI length;
	memset((void*)(&c), 0, sizeof(c));
	length = sonslen_228387(n);
	putwithspace_248938(g, ((NU8) 29), ((NimStringDesc*) &TMP1439));
	initcontext_248852((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		NI LOC6;
		LOC3 = 0;
		LOC3 = longmode_249169(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_248050((*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]);
		LOC6 = 0;
		LOC6 = lsub_248050((*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_249025(g, n, c, ((NI) 0), ((NI) -3));
	put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
	putwithspace_248938(g, ((NU8) 35), ((NimStringDesc*) &TMP1440));
	gsub_248864(g, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 2))], c);
	putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
	gcoms_248010(g);
	gstmts_249213(g, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))], c, NIM_TRUE);
}

N_NIMCALL(void, gblock_249659)(Tsrcgen247023* g, Tnode225809* n) {
	Tcontext248834 c;
	memset((void*)(&c), 0, sizeof(c));
	initcontext_248852((&c));
	{
		if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA3;
		putwithspace_248938(g, ((NU8) 9), ((NimStringDesc*) &TMP1441));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	goto LA1;
	LA3: ;
	{
		put_247425(g, ((NU8) 9), ((NimStringDesc*) &TMP1441));
	}
	LA1: ;
	putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
	{
		NIM_BOOL LOC8;
		NI LOC10;
		LOC8 = 0;
		LOC8 = longmode_249169(n, ((NI) 0), ((NI) -1));
		if (LOC8) goto LA9;
		LOC10 = 0;
		LOC10 = lsub_248050((*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_248010(g);
	indentnl_247349(g);
	gstmts_249213(g, (*n).kindU.S6.sons->data[((NI) 1)], c, NIM_TRUE);
	dedent_247368(g);
}

N_NIMCALL(void, gstaticstmt_249696)(Tsrcgen247023* g, Tnode225809* n) {
	Tcontext248834 c;
	memset((void*)(&c), 0, sizeof(c));
	putwithspace_248938(g, ((NU8) 60), ((NimStringDesc*) &TMP1402));
	putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
	initcontext_248852((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_249169(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_248050((*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_248010(g);
	gstmts_249213(g, (*n).kindU.S6.sons->data[((NI) 0)], c, NIM_TRUE);
}

N_NIMCALL(void, gasm_249722)(Tsrcgen247023* g, Tnode225809* n) {
	putwithspace_248938(g, ((NU8) 6), ((NimStringDesc*) &TMP1442));
	gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	gcoms_248010(g);
	{
		if (!(((NI) 1) < ((*n).kindU.S6.sons ? (*n).kindU.S6.sons->Sup.len : 0))) goto LA3;
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	LA3: ;
}

N_NIMCALL(NIM_BOOL, iskeyword_247101)(Tident198021* 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_247155)(Tsym225841* 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_247101((*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_249399)(Tsrcgen247023* g, Tnode225809* n) {
	Tcontext248834 c;
	memset((void*)(&c), 0, sizeof(c));
	put_247425(g, ((NU8) 97), ((NimStringDesc*) &TMP1403));
	initcontext_248852((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_249169(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_248050((*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_248010(g);
	gstmts_249213(g, n, c, NIM_TRUE);
	put_247425(g, ((NU8) 98), ((NimStringDesc*) &TMP1404));
}

N_NIMCALL(void, gproc_249582)(Tsrcgen247023* g, Tnode225809* n) {
	Tcontext248834 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_247155((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym, NIM_FALSE);
		put_247425(g, ((NU8) 2), LOC5);
	}
	goto LA1;
	LA3: ;
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	LA1: ;
	{
		if (!!(((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 1)))) goto LA9;
		gpattern_249399(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	LA9: ;
	oldcheckanon = (*g).checkanon;
	(*g).checkanon = NIM_TRUE;
	gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 2)]);
	(*g).checkanon = oldcheckanon;
	gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 3)]);
	gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 4)]);
	{
		if (!!((((*g).flags &(1<<((((NU8) 1))&7)))!=0))) goto LA13;
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 6)]).kind == ((NU8) 1)))) goto LA17;
			put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
			putwithspace_248938(g, ((NU8) 109), ((NimStringDesc*) &TMP1405));
			indentnl_247349(g);
			gcoms_248010(g);
			dedent_247368(g);
			initcontext_248852((&c));
			gstmts_249213(g, (*n).kindU.S6.sons->data[((NI) 6)], c, NIM_TRUE);
			putnl_247318(g);
		}
		goto LA15;
		LA17: ;
		{
			indentnl_247349(g);
			gcoms_248010(g);
			dedent_247368(g);
		}
		LA15: ;
	}
	LA13: ;
}

N_NIMCALL(void, gsection_249124)(Tsrcgen247023* g, Tnode225809* n, Tcontext248834 c, NU8 kind, NimStringDesc* k) {
{	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_228387(n);
		if (!(LOC3 == ((NI) 0))) goto LA4;
		goto BeforeRet;
	}
	LA4: ;
	putwithspace_248938(g, kind, k);
	gcoms_248010(g);
	indentnl_247349(g);
	{
		NI i_249144;
		NI HEX3Atmp_249147;
		NI LOC7;
		NI res_249150;
		i_249144 = 0;
		HEX3Atmp_249147 = 0;
		LOC7 = 0;
		LOC7 = sonslen_228387(n);
		HEX3Atmp_249147 = (NI)(LOC7 - ((NI) 1));
		res_249150 = ((NI) 0);
		{
			while (1) {
				if (!(res_249150 <= HEX3Atmp_249147)) goto LA9;
				i_249144 = res_249150;
				optnl_247339(g);
				gsub_248864(g, (*n).kindU.S6.sons->data[i_249144], c);
				gcoms_248010(g);
				res_249150 += ((NI) 1);
			} LA9: ;
		}
	}
	dedent_247368(g);
	}BeforeRet: ;
}

N_NIMCALL(void, gtypeclassty_249645)(Tsrcgen247023* g, Tnode225809* n) {
	Tcontext248834 c;
	Tnode225809* LOC1;
	Tnode225809* LOC2;
	Tnode225809* LOC3;
	Tnode225809* LOC4;
	memset((void*)(&c), 0, sizeof(c));
	initcontext_248852((&c));
	putwithspace_248938(g, ((NU8) 13), ((NimStringDesc*) &TMP1472));
	LOC1 = 0;
	LOC1 = HEX5BHEX5D_226244(n, ((NI) 0));
	gsons_249079(g, LOC1, c, ((NI) 0), ((NI) -1));
	LOC2 = 0;
	LOC2 = HEX5BHEX5D_226244(n, ((NI) 1));
	gsub_248873(g, LOC2);
	LOC3 = 0;
	LOC3 = HEX5BHEX5D_226244(n, ((NI) 2));
	gsub_248873(g, LOC3);
	gcoms_248010(g);
	indentnl_247349(g);
	gcoms_248010(g);
	LOC4 = 0;
	LOC4 = HEX5BHEX5D_226244(n, ((NI) 3));
	gstmts_249213(g, LOC4, c, NIM_TRUE);
	dedent_247368(g);
}

N_NIMCALL(void, gsub_248864)(Tsrcgen247023* g, Tnode225809* n, Tcontext248834 c_248869) {
	Tcontext248834 a;
{	{
		if (!n == 0) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&a), 0, sizeof(a));
	{
		if (!!(((*n).comment == NIM_NIL))) goto LA7;
		pushcom_247822(g, n);
	}
	LA7: ;
	switch ((*n).kind) {
	case ((NU8) 22):
	{
		putrawstr_247724(g, ((NU8) 89), (*n).kindU.S3.strval);
	}
	break;
	case ((NU8) 1):
	{
	}
	break;
	case ((NU8) 4):
	{
		NimStringDesc* LOC12;
		LOC12 = 0;
		LOC12 = atom_248217(n);
		put_247425(g, ((NU8) 0), LOC12);
	}
	break;
	case ((NU8) 3):
	case ((NU8) 2):
	{
		gident_249744(g, n);
	}
	break;
	case ((NU8) 6):
	{
		NimStringDesc* LOC15;
		LOC15 = 0;
		LOC15 = atom_248217(n);
		put_247425(g, ((NU8) 73), LOC15);
	}
	break;
	case ((NU8) 7):
	{
		NimStringDesc* LOC17;
		LOC17 = 0;
		LOC17 = atom_248217(n);
		put_247425(g, ((NU8) 74), LOC17);
	}
	break;
	case ((NU8) 8):
	{
		NimStringDesc* LOC19;
		LOC19 = 0;
		LOC19 = atom_248217(n);
		put_247425(g, ((NU8) 75), LOC19);
	}
	break;
	case ((NU8) 9):
	{
		NimStringDesc* LOC21;
		LOC21 = 0;
		LOC21 = atom_248217(n);
		put_247425(g, ((NU8) 76), LOC21);
	}
	break;
	case ((NU8) 10):
	{
		NimStringDesc* LOC23;
		LOC23 = 0;
		LOC23 = atom_248217(n);
		put_247425(g, ((NU8) 77), LOC23);
	}
	break;
	case ((NU8) 11):
	{
		NimStringDesc* LOC25;
		LOC25 = 0;
		LOC25 = atom_248217(n);
		put_247425(g, ((NU8) 78), LOC25);
	}
	break;
	case ((NU8) 12):
	{
		NimStringDesc* LOC27;
		LOC27 = 0;
		LOC27 = atom_248217(n);
		put_247425(g, ((NU8) 79), LOC27);
	}
	break;
	case ((NU8) 13):
	{
		NimStringDesc* LOC29;
		LOC29 = 0;
		LOC29 = atom_248217(n);
		put_247425(g, ((NU8) 80), LOC29);
	}
	break;
	case ((NU8) 14):
	{
		NimStringDesc* LOC31;
		LOC31 = 0;
		LOC31 = atom_248217(n);
		put_247425(g, ((NU8) 81), LOC31);
	}
	break;
	case ((NU8) 15):
	{
		NimStringDesc* LOC33;
		LOC33 = 0;
		LOC33 = atom_248217(n);
		put_247425(g, ((NU8) 82), LOC33);
	}
	break;
	case ((NU8) 16):
	{
		NimStringDesc* LOC35;
		LOC35 = 0;
		LOC35 = atom_248217(n);
		put_247425(g, ((NU8) 83), LOC35);
	}
	break;
	case ((NU8) 17):
	{
		NimStringDesc* LOC37;
		LOC37 = 0;
		LOC37 = atom_248217(n);
		put_247425(g, ((NU8) 84), LOC37);
	}
	break;
	case ((NU8) 18):
	{
		NimStringDesc* LOC39;
		LOC39 = 0;
		LOC39 = atom_248217(n);
		put_247425(g, ((NU8) 85), LOC39);
	}
	break;
	case ((NU8) 19):
	{
		NimStringDesc* LOC41;
		LOC41 = 0;
		LOC41 = atom_248217(n);
		put_247425(g, ((NU8) 86), LOC41);
	}
	break;
	case ((NU8) 20):
	{
		NimStringDesc* LOC43;
		LOC43 = 0;
		LOC43 = atom_248217(n);
		put_247425(g, ((NU8) 87), LOC43);
	}
	break;
	case ((NU8) 21):
	{
		NimStringDesc* LOC45;
		LOC45 = 0;
		LOC45 = atom_248217(n);
		put_247425(g, ((NU8) 88), LOC45);
	}
	break;
	case ((NU8) 5):
	{
		NimStringDesc* LOC47;
		LOC47 = 0;
		LOC47 = atom_248217(n);
		put_247425(g, ((NU8) 92), LOC47);
	}
	break;
	case ((NU8) 23):
	{
		NimStringDesc* LOC49;
		LOC49 = 0;
		LOC49 = atom_248217(n);
		put_247425(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_228387(n);
			if (!(((NI) 1) <= LOC53)) goto LA54;
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA54: ;
		put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
		gcomma_249051(g, n, ((NI) 1), ((NI) -1));
		put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
	}
	break;
	case ((NU8) 28):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			NimStringDesc* LOC61;
			Tnode225809* LOC62;
			NimStringDesc* LOC63;
			if (!((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 21))) goto LA59;
			LOC61 = 0;
			LOC62 = 0;
			LOC62 = HEX5BHEX5D_226244(n, ((NI) 1));
			LOC63 = 0;
			LOC63 = nsuReplaceStr((*LOC62).kindU.S3.strval, ((NimStringDesc*) &TMP1369), ((NimStringDesc*) &TMP1375));
			LOC61 = rawNewString(LOC63->Sup.len + 2);
appendChar(LOC61, 34);
appendString(LOC61, LOC63);
appendChar(LOC61, 34);
			put_247425(g, ((NU8) 88), LOC61);
		}
		goto LA57;
		LA59: ;
		{
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		LA57: ;
	}
	break;
	case ((NU8) 58):
	case ((NU8) 59):
	case ((NU8) 32):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 61):
	{
		put_247425(g, ((NU8) 12), ((NimStringDesc*) &TMP1398));
		put_247425(g, ((NU8) 95), ((NimStringDesc*) &TMP1399));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 96), ((NimStringDesc*) &TMP1400));
		put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
	}
	break;
	case ((NU8) 63):
	{
		put_247425(g, ((NU8) 3), ((NimStringDesc*) &TMP1401));
		{
			NI LOC70;
			LOC70 = 0;
			LOC70 = len_226098(n);
			if (!(((NI) 0) < LOC70)) goto LA71;
			put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
		}
		LA71: ;
	}
	break;
	case ((NU8) 62):
	{
		put_247425(g, ((NU8) 60), ((NimStringDesc*) &TMP1402));
		put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 42):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 95), ((NimStringDesc*) &TMP1399));
		gcomma_249051(g, n, ((NI) 1), ((NI) -1));
		put_247425(g, ((NU8) 96), ((NimStringDesc*) &TMP1400));
	}
	break;
	case ((NU8) 40):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 97), ((NimStringDesc*) &TMP1403));
		gcomma_249051(g, n, ((NI) 1), ((NI) -1));
		put_247425(g, ((NU8) 98), ((NimStringDesc*) &TMP1404));
	}
	break;
	case ((NU8) 43):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		gcomma_249051(g, n, ((NI) 1), ((NI) -1));
	}
	break;
	case ((NU8) 26):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		gcomma_249051(g, n, ((NI) 1), ((NI) -1));
	}
	break;
	case ((NU8) 33):
	case ((NU8) 73):
	case ((NU8) 74):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		putwithspace_248938(g, ((NU8) 109), ((NimStringDesc*) &TMP1405));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 68):
	{
		put_247425(g, ((NU8) 2), ((NimStringDesc*) &TMP1406));
		put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
		gcomma_249051(g, n, ((NI) 0), ((NI) -1));
		put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
	}
	break;
	case ((NU8) 69):
	{
		put_247425(g, ((NU8) 2), ((NimStringDesc*) &TMP1407));
		put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
		gcomma_249051(g, n, ((NI) 0), ((NI) -1));
		put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
	}
	break;
	case ((NU8) 70):
	{
		put_247425(g, ((NU8) 2), ((NimStringDesc*) &TMP1408));
		put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
		gcomma_249051(g, n, ((NI) 0), ((NI) -1));
		put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
	}
	break;
	case ((NU8) 66):
	case ((NU8) 67):
	case ((NU8) 71):
	case ((NU8) 72):
	{
		{
			NI LOC85;
			LOC85 = 0;
			LOC85 = sonslen_228387(n);
			if (!(((NI) 1) <= LOC85)) goto LA86;
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA86: ;
		put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
		gcomma_249051(g, n, ((NI) 1), ((NI) -1));
		put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
	}
	break;
	case ((NU8) 56):
	case ((NU8) 57):
	{
		NimStringDesc* LOC109;
		put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
		{
			NI i_249943;
			NI HEX3Atmp_250328;
			NI LOC90;
			NI res_250331;
			i_249943 = 0;
			HEX3Atmp_250328 = 0;
			LOC90 = 0;
			LOC90 = sonslen_228387(n);
			HEX3Atmp_250328 = (NI)(LOC90 - ((NI) 1));
			res_250331 = ((NI) 0);
			{
				while (1) {
					if (!(res_250331 <= HEX3Atmp_250328)) goto LA92;
					i_249943 = res_250331;
					{
						if (!(((NI) 0) < i_249943)) goto LA95;
						put_247425(g, ((NU8) 112), ((NimStringDesc*) &TMP1409));
					}
					LA95: ;
					{
						Tsym225841* s;
						Tnode225809* LOC101;
						Tnode225809* LOC107;
						if (!((*(*n).kindU.S6.sons->data[i_249943]).kind == ((NU8) 3))) goto LA99;
						LOC101 = 0;
						LOC101 = HEX5BHEX5D_226244(n, i_249943);
						s = (*LOC101).kindU.S4.sym;
						{
							Tnode225809* LOC106;
							if (!!(((*s).owner == NIM_NIL))) goto LA104;
							LOC106 = 0;
							LOC106 = HEX5BHEX5D_226244(n, i_249943);
							put_247425(g, ((NU8) 2), (*(*(*(*LOC106).kindU.S4.sym).owner).name).s);
							put_247425(g, ((NU8) 112), ((NimStringDesc*) &TMP1410));
						}
						LA104: ;
						LOC107 = 0;
						LOC107 = HEX5BHEX5D_226244(n, i_249943);
						put_247425(g, ((NU8) 2), (*(*(*LOC107).kindU.S4.sym).name).s);
					}
					goto LA97;
					LA99: ;
					{
						gsub_248864(g, (*n).kindU.S6.sons->data[i_249943], c_248869);
					}
					LA97: ;
					res_250331 += ((NI) 1);
				} LA92: ;
			}
		}
		LOC109 = 0;
		{
			if (!((*n).kind == ((NU8) 57))) goto LA112;
			LOC109 = copyString(((NimStringDesc*) &TMP1411));
		}
		goto LA110;
		LA112: ;
		{
			LOC109 = copyString(((NimStringDesc*) &TMP1397));
		}
		LA110: ;
		put_247425(g, ((NU8) 94), LOC109);
	}
	break;
	case ((NU8) 37):
	case ((NU8) 155):
	{
		put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
		gcomma_249025(g, n, c_248869, ((NI) 0), ((NI) -1));
		put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
	}
	break;
	case ((NU8) 39):
	{
		put_247425(g, ((NU8) 97), ((NimStringDesc*) &TMP1403));
		gcomma_249025(g, n, c_248869, ((NI) 0), ((NI) -1));
		put_247425(g, ((NU8) 98), ((NimStringDesc*) &TMP1404));
	}
	break;
	case ((NU8) 152):
	{
		gcomma_249025(g, n, c_248869, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 54):
	{
		put_247425(g, ((NU8) 97), ((NimStringDesc*) &TMP1403));
		{
			NI LOC121;
			LOC121 = 0;
			LOC121 = len_226098(n);
			if (!(((NI) 0) < LOC121)) goto LA122;
			gcomma_249025(g, n, c_248869, ((NI) 0), ((NI) -1));
		}
		goto LA119;
		LA122: ;
		{
			put_247425(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
		}
		LA119: ;
		put_247425(g, ((NU8) 98), ((NimStringDesc*) &TMP1404));
	}
	break;
	case ((NU8) 41):
	{
		put_247425(g, ((NU8) 95), ((NimStringDesc*) &TMP1399));
		gcomma_249025(g, n, c_248869, ((NI) 0), ((NI) -1));
		put_247425(g, ((NU8) 96), ((NimStringDesc*) &TMP1400));
	}
	break;
	case ((NU8) 45):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 110), ((NimStringDesc*) &TMP1410));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 55):
	{
		putwithspace_248938(g, ((NU8) 8), ((NimStringDesc*) &TMP1413));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 46):
	case ((NU8) 64):
	case ((NU8) 65):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 51):
	{
		putwithspace_248938(g, ((NU8) 53), ((NimStringDesc*) &TMP1414));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 3)]);
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 4)]);
		put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		putwithspace_248938(g, ((NU8) 109), ((NimStringDesc*) &TMP1405));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 6)]);
	}
	break;
	case ((NU8) 52):
	{
		putwithspace_248938(g, ((NU8) 21), ((NimStringDesc*) &TMP1415));
		doparamsaux_249864(g, (*n).kindU.S6.sons->data[((NI) 3)]);
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 4)]);
		put_247425(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 6)]);
	}
	break;
	case ((NU8) 102):
	case ((NU8) 35):
	{
		NI L;
		gcomma_249051(g, n, ((NI) 0), ((NI) -3));
		L = sonslen_228387(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_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
			gsub_248873(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_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
			putwithspace_248938(g, ((NU8) 109), ((NimStringDesc*) &TMP1405));
			gsub_248864(g, (*n).kindU.S6.sons->data[(NI)(L - ((NI) 1))], c_248869);
		}
		LA142: ;
	}
	break;
	case ((NU8) 36):
	{
		Tnode225809* LOC145;
		put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
		gcomma_249051(g, n, ((NI) 0), ((NI) -3));
		put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
		put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		putwithspace_248938(g, ((NU8) 109), ((NimStringDesc*) &TMP1405));
		LOC145 = 0;
		LOC145 = lastson_228406(n);
		gsub_248864(g, LOC145, c_248869);
	}
	break;
	case ((NU8) 34):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 29):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			NI LOC150;
			NI LOC151;
			NIM_BOOL LOC152;
			LOC150 = 0;
			LOC150 = lsub_248050((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC151 = 0;
			LOC151 = lsub_248050((*n).kindU.S6.sons->data[((NI) 0)]);
			LOC152 = 0;
			LOC152 = fits_248818((&(*g)), (NI)((NI)(LOC150 + LOC151) + ((NI) 1)));
			if (!!(LOC152)) goto LA153;
			optnl_247328(g, (NI)((*g).indent + ((NI) 4)));
		}
		goto LA148;
		LA153: ;
		{
			put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		}
		LA148: ;
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 2)]);
	}
	break;
	case ((NU8) 30):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			NI LOC159;
			LOC159 = 0;
			LOC159 = len_226098(n);
			if (!(((NI) 1) < LOC159)) goto LA160;
			put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
			{
				if (!((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 29))) goto LA164;
				put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
				gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
				put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
			}
			goto LA162;
			LA164: ;
			{
				gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
			}
			LA162: ;
		}
		LA160: ;
	}
	break;
	case ((NU8) 31):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 44):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 111), ((NimStringDesc*) &TMP1417));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 47):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 112), ((NimStringDesc*) &TMP1418));
	}
	break;
	case ((NU8) 53):
	{
		put_247425(g, ((NU8) 114), ((NimStringDesc*) &TMP1419));
		{
			NI LOC173;
			LOC173 = 0;
			LOC173 = len_226098(n);
			if (!(((NI) 0) < LOC173)) goto LA174;
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA174: ;
		{
			NI i_250065;
			NI HEX3Atmp_250336;
			NI LOC177;
			NI res_250339;
			i_250065 = 0;
			HEX3Atmp_250336 = 0;
			LOC177 = 0;
			LOC177 = len_226098(n);
			HEX3Atmp_250336 = (LOC177 - 1);
			res_250339 = ((NI) 1);
			{
				while (1) {
					if (!(res_250339 <= HEX3Atmp_250336)) goto LA179;
					i_250065 = res_250339;
					put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
					gsub_248873(g, (*n).kindU.S6.sons->data[i_250065]);
					res_250339 += ((NI) 1);
				} LA179: ;
			}
		}
		put_247425(g, ((NU8) 114), ((NimStringDesc*) &TMP1419));
	}
	break;
	case ((NU8) 48):
	{
		putwithspace_248938(g, ((NU8) 33), ((NimStringDesc*) &TMP1420));
		gsub_248873(g, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
		putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
		gsub_248873(g, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]);
		gsons_249079(g, n, TMP1421, ((NI) 1), ((NI) -1));
	}
	break;
	case ((NU8) 49):
	{
		putwithspace_248938(g, ((NU8) 22), ((NimStringDesc*) &TMP1422));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 50):
	{
		put_247425(g, ((NU8) 23), ((NimStringDesc*) &TMP1423));
		putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 132):
	{
		putwithspace_248938(g, ((NU8) 64), ((NimStringDesc*) &TMP1424));
		{
			NI LOC186;
			LOC186 = 0;
			LOC186 = len_226098(n);
			if (!(((NI) 0) < LOC186)) goto LA187;
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA187: ;
	}
	break;
	case ((NU8) 141):
	{
		{
			NI LOC192;
			LOC192 = 0;
			LOC192 = sonslen_228387(n);
			if (!(((NI) 0) < LOC192)) goto LA193;
			putwithspace_248938(g, ((NU8) 56), ((NimStringDesc*) &TMP1425));
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		goto LA190;
		LA193: ;
		{
			put_247425(g, ((NU8) 56), ((NimStringDesc*) &TMP1425));
		}
		LA190: ;
	}
	break;
	case ((NU8) 142):
	{
		{
			NI LOC199;
			LOC199 = 0;
			LOC199 = sonslen_228387(n);
			if (!(((NI) 0) < LOC199)) goto LA200;
			putwithspace_248938(g, ((NU8) 54), ((NimStringDesc*) &TMP1426));
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		goto LA197;
		LA200: ;
		{
			put_247425(g, ((NU8) 54), ((NimStringDesc*) &TMP1426));
		}
		LA197: ;
	}
	break;
	case ((NU8) 143):
	{
		{
			NI LOC206;
			LOC206 = 0;
			LOC206 = sonslen_228387(n);
			if (!(((NI) 0) < LOC206)) goto LA207;
			putwithspace_248938(g, ((NU8) 66), ((NimStringDesc*) &TMP1427));
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		goto LA204;
		LA207: ;
		{
			put_247425(g, ((NU8) 66), ((NimStringDesc*) &TMP1427));
		}
		LA204: ;
	}
	break;
	case ((NU8) 146):
	{
		{
			NI LOC213;
			LOC213 = 0;
			LOC213 = len_226098(n);
			if (!(((NI) 0) < LOC213)) goto LA214;
			putwithspace_248938(g, ((NU8) 19), ((NimStringDesc*) &TMP1428));
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			{
				NI LOC218;
				Tnode225809* LOC227;
				LOC218 = 0;
				LOC218 = len_226098(n);
				if (!(((NI) 1) < LOC218)) goto LA219;
				{
					Tnode225809* LOC223;
					LOC223 = 0;
					LOC223 = HEX5BHEX5D_226244(n, ((NI) 1));
					if (!((*LOC223).kind == ((NU8) 130))) goto LA224;
					putwithspace_248938(g, ((NU8) 69), ((NimStringDesc*) &TMP1429));
				}
				goto LA221;
				LA224: ;
				{
					putwithspace_248938(g, ((NU8) 70), ((NimStringDesc*) &TMP1430));
				}
				LA221: ;
				LOC227 = 0;
				LOC227 = HEX5BHEX5D_226244(n, ((NI) 1));
				gcomma_249051(g, LOC227, ((NI) 0), ((NI) -1));
			}
			LA219: ;
		}
		goto LA211;
		LA214: ;
		{
			put_247425(g, ((NU8) 19), ((NimStringDesc*) &TMP1428));
		}
		LA211: ;
	}
	break;
	case ((NU8) 103):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 2)]).kind == ((NU8) 1)))) goto LA232;
			putwithspace_248938(g, ((NU8) 109), ((NimStringDesc*) &TMP1405));
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 2)]);
		}
		LA232: ;
	}
	break;
	case ((NU8) 133):
	{
		{
			NI LOC237;
			LOC237 = 0;
			LOC237 = sonslen_228387(n);
			if (!(((NI) 0) < LOC237)) goto LA238;
			putwithspace_248938(g, ((NU8) 49), ((NimStringDesc*) &TMP1431));
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
			gcoms_248010(g);
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 2)]);
		}
		goto LA235;
		LA238: ;
		{
			put_247425(g, ((NU8) 49), ((NimStringDesc*) &TMP1431));
		}
		LA235: ;
	}
	break;
	case ((NU8) 138):
	{
		indentnl_247349(g);
		{
			NI i_250119;
			NI HEX3Atmp_250344;
			NI LOC243;
			NI res_250347;
			i_250119 = 0;
			HEX3Atmp_250344 = 0;
			LOC243 = 0;
			LOC243 = sonslen_228387(n);
			HEX3Atmp_250344 = (NI)(LOC243 - ((NI) 1));
			res_250347 = ((NI) 0);
			{
				while (1) {
					if (!(res_250347 <= HEX3Atmp_250344)) goto LA245;
					i_250119 = res_250347;
					optnl_247339(g);
					gsub_248864(g, (*n).kindU.S6.sons->data[i_250119], c_248869);
					gcoms_248010(g);
					res_250347 += ((NI) 1);
				} LA245: ;
			}
		}
		dedent_247368(g);
		putnl_247318(g);
	}
	break;
	case ((NU8) 77):
	{
		putwithspace_248938(g, ((NU8) 50), ((NimStringDesc*) &TMP1432));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 147):
	{
		{
			NI LOC250;
			LOC250 = 0;
			LOC250 = sonslen_228387(n);
			if (!(((NI) 0) < LOC250)) goto LA251;
			putwithspace_248938(g, ((NU8) 53), ((NimStringDesc*) &TMP1414));
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA248;
		LA251: ;
		{
			put_247425(g, ((NU8) 53), ((NimStringDesc*) &TMP1414));
		}
		LA248: ;
	}
	break;
	case ((NU8) 148):
	{
		{
			NI LOC257;
			LOC257 = 0;
			LOC257 = sonslen_228387(n);
			if (!(((NI) 0) < LOC257)) goto LA258;
			putwithspace_248938(g, ((NU8) 40), ((NimStringDesc*) &TMP1433));
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA255;
		LA258: ;
		{
			put_247425(g, ((NU8) 40), ((NimStringDesc*) &TMP1433));
		}
		LA255: ;
	}
	break;
	case ((NU8) 137):
	{
		put_247425(g, ((NU8) 60), ((NimStringDesc*) &TMP1402));
		put_247425(g, ((NU8) 95), ((NimStringDesc*) &TMP1399));
		{
			NI LOC264;
			LOC264 = 0;
			LOC264 = len_226098(n);
			if (!(((NI) 0) < LOC264)) goto LA265;
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA265: ;
		put_247425(g, ((NU8) 96), ((NimStringDesc*) &TMP1400));
	}
	break;
	case ((NU8) 150):
	{
		{
			NI LOC270;
			LOC270 = 0;
			LOC270 = sonslen_228387(n);
			if (!(((NI) 0) < LOC270)) goto LA271;
			putwithspace_248938(g, ((NU8) 25), ((NimStringDesc*) &TMP1434));
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			gcoms_248010(g);
			indentnl_247349(g);
			gcommaaux_248950(g, n, (*g).indent, ((NI) 1), ((NI) -1), ((NU8) 105));
			gcoms_248010(g);
			dedent_247368(g);
		}
		goto LA268;
		LA271: ;
		{
			put_247425(g, ((NU8) 25), ((NimStringDesc*) &TMP1434));
		}
		LA268: ;
	}
	break;
	case ((NU8) 151):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		putwithspace_248938(g, ((NU8) 109), ((NimStringDesc*) &TMP1405));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 115):
	case ((NU8) 126):
	case ((NU8) 128):
	{
		gstmts_249213(g, n, TMP1421, NIM_TRUE);
	}
	break;
	case ((NU8) 92):
	{
		putwithspace_248938(g, ((NU8) 33), ((NimStringDesc*) &TMP1420));
		gif_249310(g, n);
	}
	break;
	case ((NU8) 93):
	case ((NU8) 140):
	{
		putwithspace_248938(g, ((NU8) 67), ((NimStringDesc*) &TMP1435));
		gif_249310(g, n);
	}
	break;
	case ((NU8) 96):
	{
		gwhile_249372(g, n);
	}
	break;
	case ((NU8) 91):
	{
		gpragmablock_249424(g, n);
	}
	break;
	case ((NU8) 97):
	case ((NU8) 139):
	{
		gcase_249532(g, n);
	}
	break;
	case ((NU8) 106):
	{
		gtry_249451(g, n);
	}
	break;
	case ((NU8) 94):
	case ((NU8) 95):
	{
		gfor_249477(g, n);
	}
	break;
	case ((NU8) 112):
	case ((NU8) 127):
	{
		gblock_249659(g, n);
	}
	break;
	case ((NU8) 113):
	{
		gstaticstmt_249696(g, n);
	}
	break;
	case ((NU8) 89):
	{
		gasm_249722(g, n);
	}
	break;
	case ((NU8) 79):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 6))&7)))!=0))) goto LA289;
			putwithspace_248938(g, ((NU8) 53), ((NimStringDesc*) &TMP1414));
		}
		LA289: ;
		gproc_249582(g, n);
	}
	break;
	case ((NU8) 81):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 6))&7)))!=0))) goto LA294;
			putwithspace_248938(g, ((NU8) 16), ((NimStringDesc*) &TMP1443));
		}
		LA294: ;
		gproc_249582(g, n);
	}
	break;
	case ((NU8) 80):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 6))&7)))!=0))) goto LA299;
			putwithspace_248938(g, ((NU8) 43), ((NimStringDesc*) &TMP1444));
		}
		LA299: ;
		gproc_249582(g, n);
	}
	break;
	case ((NU8) 84):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 6))&7)))!=0))) goto LA304;
			putwithspace_248938(g, ((NU8) 40), ((NimStringDesc*) &TMP1433));
		}
		LA304: ;
		gproc_249582(g, n);
	}
	break;
	case ((NU8) 82):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 6))&7)))!=0))) goto LA309;
			putwithspace_248938(g, ((NU8) 42), ((NimStringDesc*) &TMP1445));
		}
		LA309: ;
		gproc_249582(g, n);
	}
	break;
	case ((NU8) 83):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 6))&7)))!=0))) goto LA314;
			putwithspace_248938(g, ((NU8) 61), ((NimStringDesc*) &TMP1446));
		}
		LA314: ;
		gproc_249582(g, n);
	}
	break;
	case ((NU8) 98):
	{
		gsection_249124(g, n, TMP1421, ((NU8) 64), ((NimStringDesc*) &TMP1424));
	}
	break;
	case ((NU8) 101):
	{
		initcontext_248852((&a));
		a.Field1 |= ((NU8)1)<<((((NU8) 2))%(sizeof(NU8)*8));
		gsection_249124(g, n, a, ((NU8) 14), ((NimStringDesc*) &TMP1447));
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		NI L;
		L = sonslen_228387(n);
		{
			if (!(L == ((NI) 0))) goto LA321;
			goto BeforeRet;
		}
		LA321: ;
		{
			if (!((*n).kind == ((NU8) 99))) goto LA325;
			putwithspace_248938(g, ((NU8) 66), ((NimStringDesc*) &TMP1427));
		}
		goto LA323;
		LA325: ;
		{
			putwithspace_248938(g, ((NU8) 41), ((NimStringDesc*) &TMP1448));
		}
		LA323: ;
		{
			if (!(((NI) 1) < L)) goto LA330;
			gcoms_248010(g);
			indentnl_247349(g);
			{
				NI i_250224;
				NI HEX3Atmp_250352;
				NI res_250355;
				i_250224 = 0;
				HEX3Atmp_250352 = 0;
				HEX3Atmp_250352 = (NI)(L - ((NI) 1));
				res_250355 = ((NI) 0);
				{
					while (1) {
						if (!(res_250355 <= HEX3Atmp_250352)) goto LA334;
						i_250224 = res_250355;
						optnl_247339(g);
						gsub_248873(g, (*n).kindU.S6.sons->data[i_250224]);
						gcoms_248010(g);
						res_250355 += ((NI) 1);
					} LA334: ;
				}
			}
			dedent_247368(g);
		}
		goto LA328;
		LA330: ;
		{
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA328: ;
	}
	break;
	case ((NU8) 109):
	{
		putwithspace_248938(g, ((NU8) 57), ((NimStringDesc*) &TMP1449));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 108):
	{
		putwithspace_248938(g, ((NU8) 55), ((NimStringDesc*) &TMP1450));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 104):
	{
		putwithspace_248938(g, ((NU8) 72), ((NimStringDesc*) &TMP1451));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 114):
	{
		putwithspace_248938(g, ((NU8) 18), ((NimStringDesc*) &TMP1452));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 110):
	{
		putwithspace_248938(g, ((NU8) 10), ((NimStringDesc*) &TMP1453));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 111):
	{
		putwithspace_248938(g, ((NU8) 15), ((NimStringDesc*) &TMP1454));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 90):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 4))&7)))!=0))) goto LA345;
			{
				if (!((*g).inpragma <= ((NI) 0))) goto LA349;
				(*g).inpragma += ((NI) 1);
				put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
				put_247425(g, ((NU8) 101), ((NimStringDesc*) &TMP1455));
				gcomma_249025(g, n, TMP1421, ((NI) 0), ((NI) -1));
				put_247425(g, ((NU8) 102), ((NimStringDesc*) &TMP1456));
				(*g).inpragma -= ((NI) 1);
			}
			goto LA347;
			LA349: ;
			{
				gcomma_249025(g, n, TMP1421, ((NI) 0), ((NI) -1));
			}
			LA347: ;
		}
		LA345: ;
	}
	break;
	case ((NU8) 116):
	case ((NU8) 118):
	{
		{
			if (!((*n).kind == ((NU8) 116))) goto LA355;
			putwithspace_248938(g, ((NU8) 34), ((NimStringDesc*) &TMP1457));
		}
		goto LA353;
		LA355: ;
		{
			putwithspace_248938(g, ((NU8) 27), ((NimStringDesc*) &TMP1458));
		}
		LA353: ;
		gcoms_248010(g);
		indentnl_247349(g);
		gcommaaux_248950(g, n, (*g).indent, ((NI) 0), ((NI) -1), ((NU8) 105));
		dedent_247368(g);
		putnl_247318(g);
	}
	break;
	case ((NU8) 117):
	case ((NU8) 119):
	{
		{
			if (!((*n).kind == ((NU8) 117))) goto LA361;
			putwithspace_248938(g, ((NU8) 34), ((NimStringDesc*) &TMP1457));
		}
		goto LA359;
		LA361: ;
		{
			putwithspace_248938(g, ((NU8) 27), ((NimStringDesc*) &TMP1458));
		}
		LA359: ;
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		putwithspace_248938(g, ((NU8) 26), ((NimStringDesc*) &TMP1459));
		gcommaaux_248950(g, n, (*g).indent, ((NI) 1), ((NI) -1), ((NU8) 105));
		gcoms_248010(g);
		putnl_247318(g);
	}
	break;
	case ((NU8) 120):
	{
		putwithspace_248938(g, ((NU8) 30), ((NimStringDesc*) &TMP1460));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		putwithspace_248938(g, ((NU8) 34), ((NimStringDesc*) &TMP1457));
		gcomma_249025(g, n, TMP1421, ((NI) 1), ((NI) -1));
		putnl_247318(g);
	}
	break;
	case ((NU8) 121):
	{
		putwithspace_248938(g, ((NU8) 36), ((NimStringDesc*) &TMP1461));
		gcoms_248010(g);
		indentnl_247349(g);
		gcommaaux_248950(g, n, (*g).indent, ((NI) 0), ((NI) -1), ((NU8) 105));
		dedent_247368(g);
		putnl_247318(g);
	}
	break;
	case ((NU8) 125):
	{
		gcoms_248010(g);
		optnl_247339(g);
	}
	break;
	case ((NU8) 85):
	{
		Tnode225809* LOC368;
		optnl_247339(g);
		putwithspace_248938(g, ((NU8) 50), ((NimStringDesc*) &TMP1432));
		gcomma_249025(g, n, c_248869, ((NI) 0), ((NI) -2));
		putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
		gcoms_248010(g);
		LOC368 = 0;
		LOC368 = lastson_228406(n);
		gstmts_249213(g, LOC368, c_248869, NIM_TRUE);
	}
	break;
	case ((NU8) 78):
	{
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 115), ((NimStringDesc*) &TMP1395));
		putwithspace_248938(g, ((NU8) 5), ((NimStringDesc*) &TMP1462));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 122):
	{
		putwithspace_248938(g, ((NU8) 8), ((NimStringDesc*) &TMP1413));
		gcomma_249025(g, n, c_248869, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 123):
	{
		putwithspace_248938(g, ((NU8) 44), ((NimStringDesc*) &TMP1463));
		gcomma_249025(g, n, c_248869, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 86):
	{
		optnl_247339(g);
		putwithspace_248938(g, ((NU8) 22), ((NimStringDesc*) &TMP1464));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
		gcoms_248010(g);
		gstmts_249213(g, (*n).kindU.S6.sons->data[((NI) 1)], c_248869, NIM_TRUE);
	}
	break;
	case ((NU8) 88):
	{
		optnl_247339(g);
		put_247425(g, ((NU8) 23), ((NimStringDesc*) &TMP1465));
		putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
		gcoms_248010(g);
		gstmts_249213(g, (*n).kindU.S6.sons->data[((NI) 0)], c_248869, NIM_TRUE);
	}
	break;
	case ((NU8) 107):
	case ((NU8) 105):
	{
		optnl_247339(g);
		{
			if (!((*n).kind == ((NU8) 107))) goto LA377;
			put_247425(g, ((NU8) 28), ((NimStringDesc*) &TMP1466));
		}
		goto LA375;
		LA377: ;
		{
			put_247425(g, ((NU8) 17), ((NimStringDesc*) &TMP1467));
		}
		LA375: ;
		putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
		gcoms_248010(g);
		gstmts_249213(g, (*n).kindU.S6.sons->data[((NI) 0)], c_248869, NIM_TRUE);
	}
	break;
	case ((NU8) 87):
	{
		Tnode225809* LOC381;
		optnl_247339(g);
		putwithspace_248938(g, ((NU8) 26), ((NimStringDesc*) &TMP1459));
		gcomma_249051(g, n, ((NI) 0), ((NI) -2));
		putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
		gcoms_248010(g);
		LOC381 = 0;
		LOC381 = lastson_228406(n);
		gstmts_249213(g, LOC381, c_248869, NIM_TRUE);
	}
	break;
	case ((NU8) 75):
	{
		put_247425(g, ((NU8) 95), ((NimStringDesc*) &TMP1399));
		gcomma_249051(g, n, ((NI) 0), ((NI) -1));
		put_247425(g, ((NU8) 96), ((NimStringDesc*) &TMP1400));
	}
	break;
	case ((NU8) 76):
	{
		put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1394));
		gsemicolon_249065(g, n, ((NI) 1), ((NI) -1));
		put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA386;
			putwithspace_248938(g, ((NU8) 107), ((NimStringDesc*) &TMP1412));
			gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA386: ;
	}
	break;
	case ((NU8) 134):
	{
		put_247425(g, ((NU8) 63), ((NimStringDesc*) &TMP1468));
		put_247425(g, ((NU8) 95), ((NimStringDesc*) &TMP1399));
		gcomma_249051(g, n, ((NI) 0), ((NI) -1));
		put_247425(g, ((NU8) 96), ((NimStringDesc*) &TMP1400));
	}
	break;
	case ((NU8) 135):
	{
		put_247425(g, ((NU8) 63), ((NimStringDesc*) &TMP1468));
	}
	break;
	case ((NU8) 24):
	{
		put_247425(g, ((NU8) 93), ((NimStringDesc*) &TMP1469));
		gsub_248873(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_247425(g, ((NU8) 94), ((NimStringDesc*) &TMP1397));
	}
	break;
	case ((NU8) 156):
	case ((NU8) 157):
	{
		Tcontext248834 c;
		NimStringDesc* LOC392;
		memset((void*)(&c), 0, sizeof(c));
		initcontext_248852((&c));
		LOC392 = 0;
		{
			if (!((*n).kind == ((NU8) 157))) goto LA395;
			LOC392 = copyString(((NimStringDesc*) &TMP1470));
		}
		goto LA393;
		LA395: ;
		{
			LOC392 = copyString(((NimStringDesc*) &TMP1471));
		}
		LA393: ;
		putwithspace_248938(g, ((NU8) 2), LOC392);
		gsons_249079(g, n, c, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 136):
	{
		gtypeclassty_249645(g, n);
	}
	break;
	default:
	{
		NimStringDesc* LOC400;
		LOC400 = 0;
		LOC400 = rawNewString(reprEnum((*n).kind, (&NTI225029))->Sup.len + 14);
appendString(LOC400, ((NimStringDesc*) &TMP1473));
appendString(LOC400, reprEnum((*n).kind, (&NTI225029)));
appendChar(LOC400, 41);
		internalerror_196172((*n).info, LOC400);
	}
	break;
	}
	}BeforeRet: ;
}

N_NIMCALL(void, gsub_248873)(Tsrcgen247023* g, Tnode225809* n) {
	Tcontext248834 c;
	memset((void*)(&c), 0, sizeof(c));
	initcontext_248852((&c));
	gsub_248864(g, n, c);
}

N_NIMCALL(NimStringDesc*, rendertree_247059)(Tnode225809* n, NU8 renderflags) {
	NimStringDesc* result;
	Tsrcgen247023 g;
	result = 0;
	memset((void*)(&g), 0, sizeof(g));
	initsrcgen_247187((&g), renderflags);
	gsub_248873((&g), n);
	result = copyString(g.buf);
	return result;
}

N_NIMCALL(NimStringDesc*, HEX24_247090)(Tnode225809* n) {
	NimStringDesc* result;
	result = 0;
	result = rendertree_247059(n, 0);
	return result;
}

N_NIMCALL(void, inittokrender_247068)(Tsrcgen247023* r, Tnode225809* n, NU8 renderflags) {
	initsrcgen_247187(r, renderflags);
	gsub_248873(r, n);
}

N_NIMCALL(void, getnexttok_247079)(Tsrcgen247023* 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* TMP1365[2];
static TNimNode TMP884[3];
NTI247019.size = sizeof(Trendertok247019);
NTI247019.kind = 18;
NTI247019.base = 0;
NTI247019.flags = 3;
TMP1365[0] = &TMP884[1];
TMP884[1].kind = 1;
TMP884[1].offset = offsetof(Trendertok247019, kind);
TMP884[1].typ = (&NTI216022);
TMP884[1].name = "kind";
TMP1365[1] = &TMP884[2];
TMP884[2].kind = 1;
TMP884[2].offset = offsetof(Trendertok247019, length);
TMP884[2].typ = (&NTI112);
TMP884[2].name = "length";
TMP884[0].len = 2; TMP884[0].kind = 2; TMP884[0].sons = &TMP1365[0];
NTI247019.node = &TMP884[0];
NTI247021.size = sizeof(Trendertokseq247021*);
NTI247021.kind = 24;
NTI247021.base = (&NTI247019);
NTI247021.flags = 2;
NTI247021.marker = TMP1366;
}

