/* 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 Tnode227809 Tnode227809;
typedef struct Tsrcgen249023 Tsrcgen249023;
typedef struct Trendertokseq249021 Trendertokseq249021;
typedef struct Tnodeseq227803 Tnodeseq227803;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Trendertok249019 Trendertok249019;
typedef struct Tcontext250835 Tcontext250835;
typedef struct Ttype227847 Ttype227847;
typedef struct Tlineinfo192352 Tlineinfo192352;
typedef struct Tsym227841 Tsym227841;
typedef struct Tident200021 Tident200021;
typedef struct Cell48946 Cell48946;
typedef struct Cellseq48962 Cellseq48962;
typedef struct Gcheap51018 Gcheap51018;
typedef struct Gcstack51016 Gcstack51016;
typedef struct Cellset48958 Cellset48958;
typedef struct Pagedesc48954 Pagedesc48954;
typedef struct Memregion30890 Memregion30890;
typedef struct Smallchunk30842 Smallchunk30842;
typedef struct Llchunk30884 Llchunk30884;
typedef struct Bigchunk30844 Bigchunk30844;
typedef struct Intset30817 Intset30817;
typedef struct Trunk30813 Trunk30813;
typedef struct Avlnode30888 Avlnode30888;
typedef struct Gcstat51014 Gcstat51014;
typedef struct Tidobj200015 Tidobj200015;
typedef struct TNimObject TNimObject;
typedef struct Ttypeseq227843 Ttypeseq227843;
typedef struct Tscope227835 Tscope227835;
typedef struct TY227944 TY227944;
typedef struct Tstrtable227813 Tstrtable227813;
typedef struct Tsymseq227811 Tsymseq227811;
typedef struct Tloc227823 Tloc227823;
typedef struct Ropeobj178009 Ropeobj178009;
typedef struct Tlib227827 Tlib227827;
typedef struct Basechunk30840 Basechunk30840;
typedef struct Freecell30832 Freecell30832;
typedef struct Tinstantiation227831 Tinstantiation227831;
typedef struct Tlistentry143022 Tlistentry143022;
typedef struct TY227932 TY227932;
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tsrcgen249023  {
NI indent;
NI linelen;
NI pos;
NI idx;
Trendertokseq249021* tokens;
NimStringDesc* buf;
NI pendingnl;
NI pendingwhitespace;
Tnodeseq227803* 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  Trendertok249019  {
NU8 kind;
NI16 length;
};
struct Tcontext250835 {
NI Field0;
NU8 Field1;
};
struct  Tlineinfo192352  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  Tnode227809  {
Ttype227847* typ;
Tlineinfo192352 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym227841* sym;
} S4;
struct {Tident200021* ident;
} S5;
struct {Tnodeseq227803* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
struct  Cell48946  {
NI refcount;
TNimType* typ;
};
struct  Cellseq48962  {
NI len;
NI cap;
Cell48946** d;
};
struct  Cellset48958  {
NI counter;
NI max;
Pagedesc48954* head;
Pagedesc48954** data;
};
typedef Smallchunk30842* TY30905[512];
typedef Trunk30813* Trunkbuckets30815[256];
struct  Intset30817  {
Trunkbuckets30815 data;
};
struct  Memregion30890  {
NI minlargeobj;
NI maxlargeobj;
TY30905 freesmallchunks;
Llchunk30884* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk30844* freechunkslist;
Intset30817 chunkstarts;
Avlnode30888* root;
Avlnode30888* deleted;
Avlnode30888* last;
Avlnode30888* freeavlnodes;
};
struct  Gcstat51014  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap51018  {
Gcstack51016* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq48962 zct;
Cellseq48962 decstack;
Cellset48958 cycleroots;
Cellseq48962 tempstack;
NI recgclock;
Memregion30890 region;
Gcstat51014 stat;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tidobj200015  {
  TNimObject Sup;
NI id;
};
struct  Tident200021  {
  Tidobj200015 Sup;
NimStringDesc* s;
Tident200021* next;
NI h;
};
struct  Tstrtable227813  {
NI counter;
Tsymseq227811* data;
};
struct  Tloc227823  {
NU8 k;
NU8 s;
NU16 flags;
Ttype227847* t;
Ropeobj178009* r;
Ropeobj178009* heaproot;
};
struct  Tsym227841  {
  Tidobj200015 Sup;
NU8 kind;
union{
struct {Ttypeseq227843* typeinstcache;
Tscope227835* typscope;
} S1;
struct {TY227944* procinstcache;
Tsym227841* gcunsafetyreason;
} S2;
struct {TY227944* usedgenerics;
Tstrtable227813 tab;
} S3;
struct {Tsym227841* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype227847* typ;
Tident200021* name;
Tlineinfo192352 info;
Tsym227841* owner;
NU32 flags;
Tnode227809* ast;
NU32 options;
NI position;
NI offset;
Tloc227823 loc;
Tlib227827* annex;
Tnode227809* constraint;
};
struct  Ttype227847  {
  Tidobj200015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq227843* sons;
Tnode227809* n;
Tsym227841* owner;
Tsym227841* sym;
Tsym227841* destructor;
Tsym227841* deepcopy;
Tsym227841* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc227823 loc;
};
typedef NimStringDesc* TY218172[119];
struct  Gcstack51016  {
Gcstack51016* prev;
Gcstack51016* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY30821[16];
struct  Pagedesc48954  {
Pagedesc48954* next;
NI key;
TY30821 bits;
};
struct  Basechunk30840  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk30842  {
  Basechunk30840 Sup;
Smallchunk30842* next;
Smallchunk30842* prev;
Freecell30832* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk30884  {
NI size;
NI acc;
Llchunk30884* next;
};
struct  Bigchunk30844  {
  Basechunk30840 Sup;
Bigchunk30844* next;
Bigchunk30844* prev;
NI align;
NF data;
};
struct  Trunk30813  {
Trunk30813* next;
NI key;
TY30821 bits;
};
typedef Avlnode30888* TY30895[2];
struct  Avlnode30888  {
TY30895 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope227835  {
NI depthlevel;
Tstrtable227813 symbols;
Tnodeseq227803* usingsyms;
Tscope227835* parent;
};
struct  Ropeobj178009  {
  TNimObject Sup;
Ropeobj178009* left;
Ropeobj178009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry143022  {
  TNimObject Sup;
Tlistentry143022* prev;
Tlistentry143022* next;
};
struct  Tlib227827  {
  Tlistentry143022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj178009* name;
Tnode227809* path;
};
struct  Freecell30832  {
Freecell30832* next;
NI zerofield;
};
struct  Tinstantiation227831  {
Tsym227841* sym;
Ttypeseq227843* concretetypes;
TY227932* usedby;
NI compilesid;
};
struct Tnodeseq227803 {
  TGenericSeq Sup;
  Tnode227809* data[SEQ_DECL_SIZE];
};
struct Trendertokseq249021 {
  TGenericSeq Sup;
  Trendertok249019 data[SEQ_DECL_SIZE];
};
struct Ttypeseq227843 {
  TGenericSeq Sup;
  Ttype227847* data[SEQ_DECL_SIZE];
};
struct TY227944 {
  TGenericSeq Sup;
  Tinstantiation227831* data[SEQ_DECL_SIZE];
};
struct Tsymseq227811 {
  TGenericSeq Sup;
  Tsym227841* data[SEQ_DECL_SIZE];
};
struct TY227932 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(void, initsrcgen_249187)(Tsrcgen249023* g, NU8 renderflags);
N_NIMCALL(void*, newSeq)(TNimType* typ, NI len);
N_NIMCALL(void, unsureAsgnRef)(void** dest, void* src);
N_NIMCALL(void, TMP1378)(void* p, NI op);
N_NIMCALL(NimStringDesc*, copyString)(NimStringDesc* src);
N_NIMCALL(void, gsub_250874)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(void, initcontext_250853)(Tcontext250835* c);
N_NIMCALL(void, gsub_250865)(Tsrcgen249023* g, Tnode227809* n, Tcontext250835 c_250870);
N_NIMCALL(void, pushcom_249822)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
static N_INLINE(Cell48946*, usrtocell_52646)(void* usr);
static N_INLINE(void, rtladdzct_54204)(Cell48946* c);
N_NOINLINE(void, addzct_52617)(Cellseq48962* s, Cell48946* c);
N_NIMCALL(void, putrawstr_249724)(Tsrcgen249023* g, NU8 kind, NimStringDesc* s);
N_NIMCALL(void, put_249425)(Tsrcgen249023* g, NU8 kind, NimStringDesc* s);
N_NIMCALL(void, addpendingnl_249261)(Tsrcgen249023* g);
N_NIMCALL(void, addtok_249230)(Tsrcgen249023* 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_249328)(Tsrcgen249023* g, NI indent);
N_NIMCALL(NimStringDesc*, addChar)(NimStringDesc* s, NIM_CHAR c);
N_NIMCALL(NimStringDesc*, atom_250217)(Tnode227809* n);
N_NIMCALL(NimStringDesc*, makenimstring_249486)(NimStringDesc* s);
N_NIMCALL(NimStringDesc*, tonimchar_249468)(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_250056)(Tnode227809* n, NI64 x, NI size);
N_NIMCALL(Ttype227847*, skip_250062)(Ttype227847* t);
N_NIMCALL(Ttype227847*, lastson_230426)(Ttype227847* n);
static N_INLINE(NI, len_228098)(Tnode227809* 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_250175)(Tnode227809* n, NI64 x, NI size);
N_NIMCALL(NimStringDesc*, nimFloatToStr)(NF f);
N_NIMCALL(void, internalerror_198191)(NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, reprEnum)(NI e_88659, TNimType* typ);
N_NIMCALL(void, gident_251745)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_NIMCALL(NI, sonslen_230387)(Tnode227809* n);
N_NIMCALL(void, gcomma_251052)(Tsrcgen249023* g, Tnode227809* n, NI start, NI theend);
N_NIMCALL(void, gcommaaux_250951)(Tsrcgen249023* g, Tnode227809* n, NI ind, NI start, NI theend, NU8 separator);
N_NIMCALL(NI, lsub_250050)(Tnode227809* n);
N_NIMCALL(NIM_BOOL, containsnl_249782)(NimStringDesc* s);
N_NIMCALL(NI, lcomma_250372)(Tnode227809* n, NI start, NI theend);
static N_INLINE(Tnode227809*, HEX5BHEX5D_228244)(Tnode227809* n, NI i);
N_NIMCALL(NI, lsons_250465)(Tnode227809* n, NI start, NI theend);
N_NIMCALL(Tnode227809*, lastson_230406)(Tnode227809* n);
N_NIMCALL(NIM_BOOL, fits_250819)(Tsrcgen249023* g, NI x);
N_NIMCALL(void, putwithspace_250939)(Tsrcgen249023* g, NU8 kind, NimStringDesc* s);
N_NIMCALL(NIM_BOOL, hascom_250888)(Tnode227809* n);
N_NIMCALL(void, gcoms_250010)(Tsrcgen249023* g);
N_NIMCALL(void, gcom_249938)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(NIM_BOOL, shouldrendercomment_249904)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(NIM_BOOL, nsuStartsWith)(NimStringDesc* s, NimStringDesc* prefix);
N_NIMCALL(NI, maxlinelength_249652)(NimStringDesc* s);
N_NIMCALL(void, putcomment_249526)(Tsrcgen249023* g, NimStringDesc* s);
N_NIMCALL(void, optnl_249339)(Tsrcgen249023* g);
N_NIMCALL(void, popallcoms_249852)(Tsrcgen249023* g);
N_NIMCALL(void, gcomma_251026)(Tsrcgen249023* g, Tnode227809* n, Tcontext250835 c, NI start, NI theend);
N_NIMCALL(void, doparamsaux_251865)(Tsrcgen249023* g, Tnode227809* params);
N_NIMCALL(void, gsemicolon_251066)(Tsrcgen249023* g, Tnode227809* n, NI start, NI theend);
N_NIMCALL(void, gsons_251080)(Tsrcgen249023* g, Tnode227809* n, Tcontext250835 c, NI start, NI theend);
N_NIMCALL(void, indentnl_249349)(Tsrcgen249023* g);
N_NIMCALL(void, dedent_249368)(Tsrcgen249023* g);
N_NIMCALL(void, putnl_249318)(Tsrcgen249023* g);
N_NIMCALL(void, putnl_249271)(Tsrcgen249023* g, NI indent);
N_NIMCALL(void, gstmts_251214)(Tsrcgen249023* g, Tnode227809* n, Tcontext250835 c, NIM_BOOL doindent);
N_NIMCALL(void, gif_251311)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(NIM_BOOL, longmode_251170)(Tnode227809* n, NI start, NI theend);
N_NIMCALL(void, gwhile_251373)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(void, gpragmablock_251425)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(void, gcase_251533)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(void, gtry_251452)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(void, gfor_251478)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(void, gblock_251660)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(void, gstaticstmt_251697)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(void, gasm_251723)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(void, gproc_251583)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(NimStringDesc*, renderdefinitionname_249155)(Tsym227841* s, NIM_BOOL noquotes);
N_NIMCALL(NIM_BOOL, iskeyword_249101)(Tident200021* i);
N_NIMCALL(void, gpattern_251400)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(void, gsection_251125)(Tsrcgen249023* g, Tnode227809* n, Tcontext250835 c, NU8 kind, NimStringDesc* k);
N_NIMCALL(void, gtypeclassty_251646)(Tsrcgen249023* g, Tnode227809* n);
N_NIMCALL(void, internalerror_198172)(Tlineinfo192352 info, NimStringDesc* errmsg);
N_NIMCALL(NimStringDesc*, rendertree_249059)(Tnode227809* n, NU8 renderflags);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI start_81016, NI last);
N_NIMCALL(NimStringDesc*, copyStrLast)(NimStringDesc* s, NI first, NI last);
STRING_LITERAL(TMP1379, "", 0);
STRING_LITERAL(TMP1380, "\015\012", 2);
STRING_LITERAL(TMP1381, "\"", 1);
STRING_LITERAL(TMP1382, "\\0", 2);
STRING_LITERAL(TMP1383, "\\x", 2);
STRING_LITERAL(TMP1385, "r\"", 2);
STRING_LITERAL(TMP1387, "\"\"", 2);
STRING_LITERAL(TMP1388, "\"\"\"", 3);
STRING_LITERAL(TMP1389, "0b", 2);
STRING_LITERAL(TMP1390, "0o", 2);
STRING_LITERAL(TMP1391, "0x", 2);
STRING_LITERAL(TMP1392, "\'i8", 3);
STRING_LITERAL(TMP1393, "\'i16", 4);
STRING_LITERAL(TMP1394, "\'i32", 4);
STRING_LITERAL(TMP1395, "\'i64", 4);
STRING_LITERAL(TMP1396, "\'u", 2);
STRING_LITERAL(TMP1397, "\'u8", 3);
STRING_LITERAL(TMP1398, "\'u16", 4);
STRING_LITERAL(TMP1399, "\'u32", 4);
STRING_LITERAL(TMP1400, "\'u64", 4);
STRING_LITERAL(TMP1401, "\'f32", 4);
STRING_LITERAL(TMP1402, "\'f64", 4);
STRING_LITERAL(TMP1403, "nil", 3);
STRING_LITERAL(TMP1404, "[type node]", 11);
STRING_LITERAL(TMP1405, "rnimsyn.atom ", 13);
STRING_LITERAL(TMP1406, "(", 1);
STRING_LITERAL(TMP1407, " ", 1);
extern NIM_CONST TY218172 Toktypetostr_218169;
STRING_LITERAL(TMP1408, "##", 2);
STRING_LITERAL(TMP1409, ")", 1);
STRING_LITERAL(TMP1410, "cast", 4);
STRING_LITERAL(TMP1411, "[", 1);
STRING_LITERAL(TMP1412, "]", 1);
STRING_LITERAL(TMP1413, "addr", 4);
STRING_LITERAL(TMP1414, "static", 6);
STRING_LITERAL(TMP1415, "{", 1);
STRING_LITERAL(TMP1416, "}", 1);
STRING_LITERAL(TMP1417, "=", 1);
STRING_LITERAL(TMP1418, "chckRangeF", 10);
STRING_LITERAL(TMP1419, "chckRange64", 11);
STRING_LITERAL(TMP1420, "chckRange", 9);
STRING_LITERAL(TMP1421, "|", 1);
STRING_LITERAL(TMP1422, ".", 1);
STRING_LITERAL(TMP1423, "|...)", 5);
STRING_LITERAL(TMP1424, ":", 1);
STRING_LITERAL(TMP1425, "bind", 4);
STRING_LITERAL(TMP1426, "proc", 4);
STRING_LITERAL(TMP1427, "do", 2);
STRING_LITERAL(TMP1428, "->", 2);
STRING_LITERAL(TMP1429, "..", 2);
STRING_LITERAL(TMP1430, "[]", 2);
STRING_LITERAL(TMP1431, "`", 1);
STRING_LITERAL(TMP1432, "if", 2);
NIM_CONST Tcontext250835 TMP1433 = {((NI) 0),
0}
;
STRING_LITERAL(TMP1434, " elif", 5);
STRING_LITERAL(TMP1435, " else", 5);
STRING_LITERAL(TMP1436, "type", 4);
STRING_LITERAL(TMP1437, "ref", 3);
STRING_LITERAL(TMP1438, "ptr", 3);
STRING_LITERAL(TMP1439, "var", 3);
STRING_LITERAL(TMP1440, "distinct", 8);
STRING_LITERAL(TMP1441, " with", 5);
STRING_LITERAL(TMP1442, " without", 8);
STRING_LITERAL(TMP1443, "object", 6);
STRING_LITERAL(TMP1444, "of", 2);
STRING_LITERAL(TMP1445, "iterator", 8);
STRING_LITERAL(TMP1446, "enum", 4);
STRING_LITERAL(TMP1447, "when", 4);
STRING_LITERAL(TMP1448, "while", 5);
STRING_LITERAL(TMP1449, "case", 4);
STRING_LITERAL(TMP1450, "try", 3);
STRING_LITERAL(TMP1451, "for", 3);
STRING_LITERAL(TMP1452, "in", 2);
STRING_LITERAL(TMP1453, "block", 5);
STRING_LITERAL(TMP1454, "asm", 3);
STRING_LITERAL(TMP1455, "converter", 9);
STRING_LITERAL(TMP1456, "method", 6);
STRING_LITERAL(TMP1457, "macro", 5);
STRING_LITERAL(TMP1458, "template", 8);
STRING_LITERAL(TMP1459, "const", 5);
STRING_LITERAL(TMP1460, "let", 3);
STRING_LITERAL(TMP1461, "return", 6);
STRING_LITERAL(TMP1462, "raise", 5);
STRING_LITERAL(TMP1463, "yield", 5);
STRING_LITERAL(TMP1464, "discard", 7);
STRING_LITERAL(TMP1465, "break", 5);
STRING_LITERAL(TMP1466, "continue", 8);
STRING_LITERAL(TMP1467, "{.", 2);
STRING_LITERAL(TMP1468, ".}", 2);
STRING_LITERAL(TMP1469, "import", 6);
STRING_LITERAL(TMP1470, "export", 6);
STRING_LITERAL(TMP1471, "except", 6);
STRING_LITERAL(TMP1472, "from", 4);
STRING_LITERAL(TMP1473, "include", 7);
STRING_LITERAL(TMP1474, "as", 2);
STRING_LITERAL(TMP1475, "mixin", 5);
STRING_LITERAL(TMP1476, "elif", 4);
STRING_LITERAL(TMP1477, "else", 4);
STRING_LITERAL(TMP1478, "finally", 7);
STRING_LITERAL(TMP1479, "defer", 5);
STRING_LITERAL(TMP1480, "tuple", 5);
STRING_LITERAL(TMP1481, "(META|", 6);
STRING_LITERAL(TMP1482, "state", 5);
STRING_LITERAL(TMP1483, "goto", 4);
STRING_LITERAL(TMP1484, "concept", 7);
STRING_LITERAL(TMP1485, "rnimsyn.gsub(", 13);
extern TNimType NTI227803; /* TNodeSeq */
TNimType NTI249019; /* TRenderTok */
extern TNimType NTI218022; /* TTokType */
extern TNimType NTI112; /* int16 */
TNimType NTI249021; /* TRenderTokSeq */
extern Gcheap51018 gch_51059;
extern TNimType NTI227029; /* TNodeKind */
N_NIMCALL(void, TMP1378)(void* p, NI op) {
	Trendertokseq249021* a;
	NI LOC1;
	a = (Trendertokseq249021*)p;
	LOC1 = 0;
	for (LOC1 = 0; LOC1 < a->Sup.len; LOC1++) {
	}
}

N_NIMCALL(void, initsrcgen_249187)(Tsrcgen249023* g, NU8 renderflags) {
	unsureAsgnRef((void**) (&(*g).comstack), (Tnodeseq227803*) newSeq((&NTI227803), 0));
	unsureAsgnRef((void**) (&(*g).tokens), (Trendertokseq249021*) newSeq((&NTI249021), 0));
	(*g).indent = ((NI) 0);
	(*g).linelen = ((NI) 0);
	(*g).pos = ((NI) 0);
	(*g).idx = ((NI) 0);
	unsureAsgnRef((void**) (&(*g).buf), copyString(((NimStringDesc*) &TMP1379)));
	(*g).flags = renderflags;
	(*g).pendingnl = ((NI) -1);
	(*g).pendingwhitespace = ((NI) -1);
	(*g).checkanon = NIM_FALSE;
}

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

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

static N_INLINE(void, rtladdzct_54204)(Cell48946* c) {
	addzct_52617((&gch_51059.zct), c);
}

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

N_NIMCALL(void, pushcom_249822)(Tsrcgen249023* g, Tnode227809* n) {
	NI length;
	length = ((*g).comstack ? (*g).comstack->Sup.len : 0);
	(*g).comstack = (Tnodeseq227803*) setLengthSeq(&((*g).comstack)->Sup, sizeof(Tnode227809*), ((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_249230)(Tsrcgen249023* g, NU8 kind, NimStringDesc* s) {
	NI length;
	length = ((*g).tokens ? (*g).tokens->Sup.len : 0);
	(*g).tokens = (Trendertokseq249021*) setLengthSeq(&((*g).tokens)->Sup, sizeof(Trendertok249019), ((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_249261)(Tsrcgen249023* 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 + 2);
appendString(LOC5, ((NimStringDesc*) &TMP1380));
appendString(LOC5, LOC6);
		addtok_249230(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_249230(g, ((NU8) 115), LOC10);
		(*g).pendingwhitespace = ((NI) -1);
	}
	goto LA1;
	LA8: ;
	LA1: ;
}

N_NIMCALL(void, put_249425)(Tsrcgen249023* g, NU8 kind, NimStringDesc* s) {
	{
		if (!!((kind == ((NU8) 115)))) goto LA3;
		addpendingnl_249261(g);
		{
			if (!(((NI) 0) < (s ? s->Sup.len : 0))) goto LA7;
			addtok_249230(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_249328)(Tsrcgen249023* g, NI indent) {
	(*g).pendingnl = indent;
	(*g).linelen = indent;
}

N_NIMCALL(void, putrawstr_249724)(Tsrcgen249023* 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*) &TMP1379));
	{
		while (1) {
			if (!(i <= hi)) goto LA2;
			switch (((NU8)(s->data[i]))) {
			case 13:
			{
				put_249425(g, kind, str);
				str = copyString(((NimStringDesc*) &TMP1379));
				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_249328(g, ((NI) 0));
			}
			break;
			case 10:
			{
				put_249425(g, kind, str);
				str = copyString(((NimStringDesc*) &TMP1379));
				i += ((NI) 1);
				optnl_249328(g, ((NI) 0));
			}
			break;
			default:
			{
				str = addChar(str, s->data[i]);
				i += ((NI) 1);
			}
			break;
			}
		} LA2: ;
	}
	put_249425(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_249468)(NIM_CHAR c) {
	NimStringDesc* result;
	result = 0;
	switch (((NU8)(c))) {
	case 0:
	{
		result = copyString(((NimStringDesc*) &TMP1382));
	}
	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*) &TMP1383));
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*) &TMP1379));
		result = LOC8;
	}
	break;
	}
	return result;
}

N_NIMCALL(NimStringDesc*, makenimstring_249486)(NimStringDesc* s) {
	NimStringDesc* result;
	result = 0;
	result = copyString(((NimStringDesc*) &TMP1381));
	{
		NI i_249502;
		NI HEX3Atmp_249504;
		NI res_249507;
		i_249502 = 0;
		HEX3Atmp_249504 = 0;
		HEX3Atmp_249504 = (NI)((s ? s->Sup.len : 0) - ((NI) 1));
		res_249507 = ((NI) 0);
		{
			while (1) {
				NimStringDesc* LOC4;
				if (!(res_249507 <= HEX3Atmp_249504)) goto LA3;
				i_249502 = res_249507;
				LOC4 = 0;
				LOC4 = tonimchar_249468(s->data[i_249502]);
				result = resizeString(result, LOC4->Sup.len + 0);
appendString(result, LOC4);
				res_249507 += ((NI) 1);
			} LA3: ;
		}
	}
	result = addChar(result, 34);
	return result;
}

N_NIMCALL(Ttype227847*, skip_250062)(Ttype227847* t) {
	Ttype227847* 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_230426(result);
		} LA2: ;
	}
	return result;
}

static N_INLINE(NI, len_228098)(Tnode227809* 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_250056)(Tnode227809* n, NI64 x, NI size) {
	NimStringDesc* result;
{	result = 0;
	{
		NIM_BOOL LOC3;
		Ttype227847* LOC5;
		Tnode227809* enumfields;
		Ttype227847* LOC8;
		LOC3 = 0;
		LOC3 = !(((*n).typ == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = skip_250062((*n).typ);
		LOC3 = ((*LOC5).kind == ((NU8) 1) || (*LOC5).kind == ((NU8) 14));
		LA4: ;
		if (!LOC3) goto LA6;
		LOC8 = 0;
		LOC8 = skip_250062((*n).typ);
		enumfields = (*LOC8).n;
		{
			Tnode227809* e_250102;
			e_250102 = 0;
			{
				NI i_250141;
				NI HEX3Atmp_250143;
				NI LOC11;
				NI res_250145;
				i_250141 = 0;
				HEX3Atmp_250143 = 0;
				LOC11 = 0;
				LOC11 = len_228098(enumfields);
				HEX3Atmp_250143 = (LOC11 - 1);
				res_250145 = ((NI) 0);
				{
					while (1) {
						if (!(res_250145 <= HEX3Atmp_250143)) goto LA13;
						i_250141 = res_250145;
						e_250102 = (*enumfields).kindU.S6.sons->data[i_250141];
						{
							if (!(((NI64) ((*(*e_250102).kindU.S4.sym).position)) == x)) goto LA16;
							result = copyString((*(*(*e_250102).kindU.S4.sym).name).s);
							goto BeforeRet;
						}
						LA16: ;
						res_250145 += ((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*) &TMP1389));
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*) &TMP1390));
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*) &TMP1391));
appendString(LOC32, LOC33);
		result = LOC32;
	}
	goto LA18;
	LA30: ;
	{
		result = nimInt64ToStr(x);
	}
	LA18: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NimStringDesc*, ulitaux_250175)(Tnode227809* 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*) &TMP1389));
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*) &TMP1390));
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*) &TMP1391));
appendString(LOC15, LOC16);
		result = LOC15;
	}
	goto LA1;
	LA13: ;
	{
		result = nimInt64ToStr(x);
	}
	LA1: ;
	return result;
}

N_NIMCALL(NimStringDesc*, atom_250217)(Tnode227809* n) {
	NimStringDesc* result;
	NF32 f;
	result = 0;
	f = 0;
	switch ((*n).kind) {
	case ((NU8) 1):
	{
		result = copyString(((NimStringDesc*) &TMP1379));
	}
	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_249486((*n).kindU.S3.strval);
	}
	break;
	case ((NU8) 21):
	{
		NimStringDesc* LOC6;
		NimStringDesc* LOC7;
		LOC6 = 0;
		LOC7 = 0;
		LOC7 = nsuReplaceStr((*n).kindU.S3.strval, ((NimStringDesc*) &TMP1381), ((NimStringDesc*) &TMP1387));
		LOC6 = rawNewString(LOC7->Sup.len + 3);
appendString(LOC6, ((NimStringDesc*) &TMP1385));
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*) &TMP1388));
appendString(LOC9, (*n).kindU.S3.strval);
appendString(LOC9, ((NimStringDesc*) &TMP1388));
		result = LOC9;
	}
	break;
	case ((NU8) 5):
	{
		NimStringDesc* LOC11;
		NimStringDesc* LOC12;
		LOC11 = 0;
		LOC12 = 0;
		LOC12 = tonimchar_249468(((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_250056(n, (*n).kindU.S1.intval, ((NI) 4));
	}
	break;
	case ((NU8) 7):
	{
		NimStringDesc* LOC15;
		NimStringDesc* LOC16;
		LOC15 = 0;
		LOC16 = 0;
		LOC16 = litaux_250056(n, (*n).kindU.S1.intval, ((NI) 1));
		LOC15 = rawNewString(LOC16->Sup.len + 3);
appendString(LOC15, LOC16);
appendString(LOC15, ((NimStringDesc*) &TMP1392));
		result = LOC15;
	}
	break;
	case ((NU8) 8):
	{
		NimStringDesc* LOC18;
		NimStringDesc* LOC19;
		LOC18 = 0;
		LOC19 = 0;
		LOC19 = litaux_250056(n, (*n).kindU.S1.intval, ((NI) 2));
		LOC18 = rawNewString(LOC19->Sup.len + 4);
appendString(LOC18, LOC19);
appendString(LOC18, ((NimStringDesc*) &TMP1393));
		result = LOC18;
	}
	break;
	case ((NU8) 9):
	{
		NimStringDesc* LOC21;
		NimStringDesc* LOC22;
		LOC21 = 0;
		LOC22 = 0;
		LOC22 = litaux_250056(n, (*n).kindU.S1.intval, ((NI) 4));
		LOC21 = rawNewString(LOC22->Sup.len + 4);
appendString(LOC21, LOC22);
appendString(LOC21, ((NimStringDesc*) &TMP1394));
		result = LOC21;
	}
	break;
	case ((NU8) 10):
	{
		NimStringDesc* LOC24;
		NimStringDesc* LOC25;
		LOC24 = 0;
		LOC25 = 0;
		LOC25 = litaux_250056(n, (*n).kindU.S1.intval, ((NI) 8));
		LOC24 = rawNewString(LOC25->Sup.len + 4);
appendString(LOC24, LOC25);
appendString(LOC24, ((NimStringDesc*) &TMP1395));
		result = LOC24;
	}
	break;
	case ((NU8) 11):
	{
		NimStringDesc* LOC27;
		NimStringDesc* LOC28;
		LOC27 = 0;
		LOC28 = 0;
		LOC28 = ulitaux_250175(n, (*n).kindU.S1.intval, ((NI) 4));
		LOC27 = rawNewString(LOC28->Sup.len + 2);
appendString(LOC27, LOC28);
appendString(LOC27, ((NimStringDesc*) &TMP1396));
		result = LOC27;
	}
	break;
	case ((NU8) 12):
	{
		NimStringDesc* LOC30;
		NimStringDesc* LOC31;
		LOC30 = 0;
		LOC31 = 0;
		LOC31 = ulitaux_250175(n, (*n).kindU.S1.intval, ((NI) 1));
		LOC30 = rawNewString(LOC31->Sup.len + 3);
appendString(LOC30, LOC31);
appendString(LOC30, ((NimStringDesc*) &TMP1397));
		result = LOC30;
	}
	break;
	case ((NU8) 13):
	{
		NimStringDesc* LOC33;
		NimStringDesc* LOC34;
		LOC33 = 0;
		LOC34 = 0;
		LOC34 = ulitaux_250175(n, (*n).kindU.S1.intval, ((NI) 2));
		LOC33 = rawNewString(LOC34->Sup.len + 4);
appendString(LOC33, LOC34);
appendString(LOC33, ((NimStringDesc*) &TMP1398));
		result = LOC33;
	}
	break;
	case ((NU8) 14):
	{
		NimStringDesc* LOC36;
		NimStringDesc* LOC37;
		LOC36 = 0;
		LOC37 = 0;
		LOC37 = ulitaux_250175(n, (*n).kindU.S1.intval, ((NI) 4));
		LOC36 = rawNewString(LOC37->Sup.len + 4);
appendString(LOC36, LOC37);
appendString(LOC36, ((NimStringDesc*) &TMP1399));
		result = LOC36;
	}
	break;
	case ((NU8) 15):
	{
		NimStringDesc* LOC39;
		NimStringDesc* LOC40;
		LOC39 = 0;
		LOC40 = 0;
		LOC40 = ulitaux_250175(n, (*n).kindU.S1.intval, ((NI) 8));
		LOC39 = rawNewString(LOC40->Sup.len + 4);
appendString(LOC39, LOC40);
appendString(LOC39, ((NimStringDesc*) &TMP1400));
		result = LOC39;
	}
	break;
	case ((NU8) 16):
	{
		{
			if (!(((*n).flags & 14) == 0)) goto LA44;
			result = nimFloatToStr((*n).kindU.S2.floatval);
		}
		goto LA42;
		LA44: ;
		{
			result = litaux_250056(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*) &TMP1401));
			result = LOC52;
		}
		goto LA48;
		LA50: ;
		{
			NimStringDesc* LOC55;
			NimStringDesc* LOC56;
			f = ((NF32) ((*n).kindU.S2.floatval));
			LOC55 = 0;
			LOC56 = 0;
			LOC56 = litaux_250056(n, ((NI64) ((*((NI32*) ((&f)))))), ((NI) 4));
			LOC55 = rawNewString(LOC56->Sup.len + 4);
appendString(LOC55, LOC56);
appendString(LOC55, ((NimStringDesc*) &TMP1401));
			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*) &TMP1402));
			result = LOC62;
		}
		goto LA58;
		LA60: ;
		{
			NimStringDesc* LOC65;
			NimStringDesc* LOC66;
			LOC65 = 0;
			LOC66 = 0;
			LOC66 = litaux_250056(n, (*((NI64*) ((&(*n).kindU.S2.floatval)))), ((NI) 8));
			LOC65 = rawNewString(LOC66->Sup.len + 4);
appendString(LOC65, LOC66);
appendString(LOC65, ((NimStringDesc*) &TMP1402));
			result = LOC65;
		}
		LA58: ;
	}
	break;
	case ((NU8) 23):
	{
		result = copyString(((NimStringDesc*) &TMP1403));
	}
	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*) &TMP1404));
		}
		LA69: ;
	}
	break;
	default:
	{
		NimStringDesc* LOC77;
		LOC77 = 0;
		LOC77 = rawNewString(reprEnum((*n).kind, (&NTI227029))->Sup.len + 13);
appendString(LOC77, ((NimStringDesc*) &TMP1405));
appendString(LOC77, reprEnum((*n).kind, (&NTI227029)));
		internalerror_198191(LOC77);
		result = copyString(((NimStringDesc*) &TMP1379));
	}
	break;
	}
	return result;
}

N_NIMCALL(void, gident_251745)(Tsrcgen249023* g, Tnode227809* 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_250217(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_249425(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_249425(g, ((NU8) 73), LOC32);
	}
	LA30: ;
	}BeforeRet: ;
}

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

N_NIMCALL(NI, lcomma_250372)(Tnode227809* n, NI start, NI theend) {
	NI result;
	result = 0;
	result = ((NI) 0);
	{
		NI i_250413;
		NI HEX3Atmp_250443;
		NI LOC2;
		NI res_250446;
		i_250413 = 0;
		HEX3Atmp_250443 = 0;
		LOC2 = 0;
		LOC2 = sonslen_230387(n);
		HEX3Atmp_250443 = (NI)(LOC2 + theend);
		res_250446 = start;
		{
			while (1) {
				NI LOC5;
				if (!(res_250446 <= HEX3Atmp_250443)) goto LA4;
				i_250413 = res_250446;
				LOC5 = 0;
				LOC5 = lsub_250050((*n).kindU.S6.sons->data[i_250413]);
				result += LOC5;
				result += ((NI) 2);
				res_250446 += ((NI) 1);
			} LA4: ;
		}
	}
	{
		if (!(((NI) 0) < result)) goto LA8;
		result -= ((NI) 2);
	}
	LA8: ;
	return result;
}

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

N_NIMCALL(NI, lsons_250465)(Tnode227809* n, NI start, NI theend) {
	NI result;
	result = 0;
	result = ((NI) 0);
	{
		NI i_250613;
		NI HEX3Atmp_250625;
		NI LOC2;
		NI res_250628;
		i_250613 = 0;
		HEX3Atmp_250625 = 0;
		LOC2 = 0;
		LOC2 = sonslen_230387(n);
		HEX3Atmp_250625 = (NI)(LOC2 + theend);
		res_250628 = start;
		{
			while (1) {
				NI LOC5;
				if (!(res_250628 <= HEX3Atmp_250625)) goto LA4;
				i_250613 = res_250628;
				LOC5 = 0;
				LOC5 = lsub_250050((*n).kindU.S6.sons->data[i_250613]);
				result += LOC5;
				res_250628 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

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

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

N_NIMCALL(void, putwithspace_250939)(Tsrcgen249023* g, NU8 kind, NimStringDesc* s) {
	put_249425(g, kind, s);
	put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
}

N_NIMCALL(NIM_BOOL, hascom_250888)(Tnode227809* 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_250914;
			NI HEX3Atmp_250917;
			NI LOC12;
			NI res_250920;
			i_250914 = 0;
			HEX3Atmp_250917 = 0;
			LOC12 = 0;
			LOC12 = sonslen_230387(n);
			HEX3Atmp_250917 = (NI)(LOC12 - ((NI) 1));
			res_250920 = ((NI) 0);
			{
				while (1) {
					if (!(res_250920 <= HEX3Atmp_250917)) goto LA14;
					i_250914 = res_250920;
					{
						NIM_BOOL LOC17;
						LOC17 = 0;
						LOC17 = hascom_250888((*n).kindU.S6.sons->data[i_250914]);
						if (!LOC17) goto LA18;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA18: ;
					res_250920 += ((NI) 1);
				} LA14: ;
			}
		}
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(NIM_BOOL, shouldrendercomment_249904)(Tsrcgen249023* g, Tnode227809* 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*) &TMP1408));
		LA8: ;
		LOC5 = LOC7;
		LA6: ;
		result = LOC5;
	}
	LA3: ;
	return result;
}

N_NIMCALL(NI, maxlinelength_249652)(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_249339)(Tsrcgen249023* g) {
	optnl_249328(g, (*g).indent);
}

N_NIMCALL(void, putcomment_249526)(Tsrcgen249023* 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*) &TMP1379));
	{
		while (1) {
			switch (((NU8)(s->data[i]))) {
			case 0:
			{
				goto LA7;
			}
			break;
			case 13:
			{
				put_249425(g, ((NU8) 113), com);
				com = copyString(((NimStringDesc*) &TMP1379));
				i += ((NI) 1);
				{
					if (!((NU8)(s->data[i]) == (NU8)(10))) goto LA13;
					i += ((NI) 1);
				}
				LA13: ;
				optnl_249328(g, ind);
			}
			break;
			case 10:
			{
				put_249425(g, ((NU8) 113), com);
				com = copyString(((NimStringDesc*) &TMP1379));
				i += ((NI) 1);
				optnl_249328(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_249425(g, ((NU8) 113), com);
					optnl_249328(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_249425(g, ((NU8) 113), com);
	optnl_249339(g);
	}BeforeRet: ;
}

N_NIMCALL(void, gcom_249938)(Tsrcgen249023* g, Tnode227809* n) {
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = shouldrendercomment_249904(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_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		}
		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_249652((*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_249425(g, ((NU8) 115), LOC26);
			}
			LA24: ;
		}
		LA20: ;
		putcomment_249526(g, (*n).comment);
	}
	LA4: ;
}

N_NIMCALL(void, popallcoms_249852)(Tsrcgen249023* g) {
	(*g).comstack = (Tnodeseq227803*) setLengthSeq(&((*g).comstack)->Sup, sizeof(Tnode227809*), ((NI) 0));
}

N_NIMCALL(void, gcoms_250010)(Tsrcgen249023* g) {
	{
		NI i_250026;
		NI HEX3Atmp_250028;
		NI res_250031;
		i_250026 = 0;
		HEX3Atmp_250028 = 0;
		HEX3Atmp_250028 = ((*g).comstack ? ((*g).comstack->Sup.len-1) : -1);
		res_250031 = ((NI) 0);
		{
			while (1) {
				if (!(res_250031 <= HEX3Atmp_250028)) goto LA3;
				i_250026 = res_250031;
				gcom_249938(g, (*g).comstack->data[i_250026]);
				res_250031 += ((NI) 1);
			} LA3: ;
		}
	}
	popallcoms_249852(g);
}

N_NIMCALL(void, gcommaaux_250951)(Tsrcgen249023* g, Tnode227809* n, NI ind, NI start, NI theend, NU8 separator) {
	{
		NI i_250972;
		NI HEX3Atmp_251004;
		NI LOC2;
		NI res_251007;
		i_250972 = 0;
		HEX3Atmp_251004 = 0;
		LOC2 = 0;
		LOC2 = sonslen_230387(n);
		HEX3Atmp_251004 = (NI)(LOC2 + theend);
		res_251007 = start;
		{
			while (1) {
				NIM_BOOL c;
				NI LOC5;
				NI sublen;
				NI LOC6;
				NI oldlen;
				if (!(res_251007 <= HEX3Atmp_251004)) goto LA4;
				i_250972 = res_251007;
				LOC5 = 0;
				LOC5 = sonslen_230387(n);
				c = (i_250972 < (NI)(LOC5 + theend));
				LOC6 = 0;
				LOC6 = lsub_250050((*n).kindU.S6.sons->data[i_250972]);
				sublen = (NI)(LOC6 + ((NI) (c)));
				{
					NIM_BOOL LOC9;
					NIM_BOOL LOC10;
					LOC9 = 0;
					LOC10 = 0;
					LOC10 = fits_250819((&(*g)), sublen);
					LOC9 = !(LOC10);
					if (!(LOC9)) goto LA11;
					LOC9 = ((NI)(ind + sublen) < ((NI) 80));
					LA11: ;
					if (!LOC9) goto LA12;
					optnl_249328(g, ind);
				}
				LA12: ;
				oldlen = ((*g).tokens ? (*g).tokens->Sup.len : 0);
				gsub_250874(g, (*n).kindU.S6.sons->data[i_250972]);
				{
					if (!c) goto LA16;
					{
						if (!(oldlen < ((*g).tokens ? (*g).tokens->Sup.len : 0))) goto LA20;
						putwithspace_250939(g, separator, Toktypetostr_218169[(separator)- 0]);
					}
					LA20: ;
					{
						NIM_BOOL LOC24;
						LOC24 = 0;
						LOC24 = hascom_250888((*n).kindU.S6.sons->data[i_250972]);
						if (!LOC24) goto LA25;
						gcoms_250010(g);
						optnl_249328(g, ind);
					}
					LA25: ;
				}
				LA16: ;
				res_251007 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(void, gcomma_251052)(Tsrcgen249023* g, Tnode227809* n, NI start, NI theend) {
	NI ind;
	ind = (*g).linelen;
	{
		if (!(((NI) 40) < ind)) goto LA3;
		ind = (NI)((*g).indent + ((NI) 4));
	}
	LA3: ;
	gcommaaux_250951(g, n, ind, start, theend, ((NU8) 105));
}

N_NIMCALL(void, gcomma_251026)(Tsrcgen249023* g, Tnode227809* n, Tcontext250835 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_250951(g, n, ind, start, theend, ((NU8) 105));
}

N_NIMCALL(void, gsemicolon_251066)(Tsrcgen249023* g, Tnode227809* n, NI start, NI theend) {
	NI ind;
	ind = (*g).linelen;
	{
		if (!(((NI) 40) < ind)) goto LA3;
		ind = (NI)((*g).indent + ((NI) 4));
	}
	LA3: ;
	gcommaaux_250951(g, n, ind, start, theend, ((NU8) 106));
}

N_NIMCALL(void, doparamsaux_251865)(Tsrcgen249023* g, Tnode227809* params) {
	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = len_228098(params);
		if (!(((NI) 1) < LOC3)) goto LA4;
		put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
		gsemicolon_251066(g, params, ((NI) 1), ((NI) -1));
		put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
	}
	LA4: ;
	{
		if (!!(((*(*params).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA8;
		putwithspace_250939(g, ((NU8) 112), ((NimStringDesc*) &TMP1428));
		gsub_250874(g, (*params).kindU.S6.sons->data[((NI) 0)]);
	}
	LA8: ;
}

N_NIMCALL(void, gsons_251080)(Tsrcgen249023* g, Tnode227809* n, Tcontext250835 c, NI start, NI theend) {
	{
		NI i_251100;
		NI HEX3Atmp_251103;
		NI LOC2;
		NI res_251106;
		i_251100 = 0;
		HEX3Atmp_251103 = 0;
		LOC2 = 0;
		LOC2 = sonslen_230387(n);
		HEX3Atmp_251103 = (NI)(LOC2 + theend);
		res_251106 = start;
		{
			while (1) {
				if (!(res_251106 <= HEX3Atmp_251103)) goto LA4;
				i_251100 = res_251106;
				gsub_250865(g, (*n).kindU.S6.sons->data[i_251100], c);
				res_251106 += ((NI) 1);
			} LA4: ;
		}
	}
}

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

N_NIMCALL(void, dedent_249368)(Tsrcgen249023* 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_249271)(Tsrcgen249023* g, NI indent) {
	{
		if (!(((NI) 0) <= (*g).pendingnl)) goto LA3;
		addpendingnl_249261(g);
	}
	goto LA1;
	LA3: ;
	{
		addtok_249230(g, ((NU8) 115), ((NimStringDesc*) &TMP1380));
	}
	LA1: ;
	(*g).pendingnl = indent;
	(*g).linelen = indent;
	(*g).pendingwhitespace = ((NI) -1);
}

N_NIMCALL(void, putnl_249318)(Tsrcgen249023* g) {
	putnl_249271(g, (*g).indent);
}

N_NIMCALL(void, gstmts_251214)(Tsrcgen249023* g, Tnode227809* n, Tcontext250835 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_249349(g);
		}
		LA11: ;
		{
			NI i_251253;
			NI HEX3Atmp_251289;
			NI LOC14;
			NI res_251292;
			i_251253 = 0;
			HEX3Atmp_251289 = 0;
			LOC14 = 0;
			LOC14 = sonslen_230387(n);
			HEX3Atmp_251289 = (NI)(LOC14 - ((NI) 1));
			res_251292 = ((NI) 0);
			{
				while (1) {
					if (!(res_251292 <= HEX3Atmp_251289)) goto LA16;
					i_251253 = res_251292;
					optnl_249339(g);
					{
						if (!((*(*n).kindU.S6.sons->data[i_251253]).kind == ((NU8) 115) || (*(*n).kindU.S6.sons->data[i_251253]).kind == ((NU8) 126) || (*(*n).kindU.S6.sons->data[i_251253]).kind == ((NU8) 128))) goto LA19;
						gstmts_251214(g, (*n).kindU.S6.sons->data[i_251253], c, NIM_FALSE);
					}
					goto LA17;
					LA19: ;
					{
						gsub_250874(g, (*n).kindU.S6.sons->data[i_251253]);
					}
					LA17: ;
					gcoms_250010(g);
					res_251292 += ((NI) 1);
				} LA16: ;
			}
		}
		{
			if (!doindent) goto LA24;
			dedent_249368(g);
		}
		LA24: ;
	}
	goto LA5;
	LA7: ;
	{
		{
			if (!((c.Field1 &(1<<((((NU8) 0))&7)))!=0)) goto LA29;
			indentnl_249349(g);
		}
		LA29: ;
		gsub_250874(g, n);
		gcoms_250010(g);
		optnl_249339(g);
		{
			if (!((c.Field1 &(1<<((((NU8) 0))&7)))!=0)) goto LA33;
			dedent_249368(g);
		}
		LA33: ;
	}
	LA5: ;
	}BeforeRet: ;
}

N_NIMCALL(NIM_BOOL, longmode_251170)(Tnode227809* n, NI start, NI theend) {
	NIM_BOOL result;
	result = 0;
	result = !(((*n).comment == NIM_NIL));
	{
		if (!!(result)) goto LA3;
		{
			NI i_251189;
			NI HEX3Atmp_251192;
			NI LOC6;
			NI res_251195;
			i_251189 = 0;
			HEX3Atmp_251192 = 0;
			LOC6 = 0;
			LOC6 = sonslen_230387(n);
			HEX3Atmp_251192 = (NI)(LOC6 + theend);
			res_251195 = start;
			{
				while (1) {
					if (!(res_251195 <= HEX3Atmp_251192)) goto LA8;
					i_251189 = res_251195;
					{
						NI LOC11;
						LOC11 = 0;
						LOC11 = lsub_250050((*n).kindU.S6.sons->data[i_251189]);
						if (!(((NI) 80) < LOC11)) goto LA12;
						result = NIM_TRUE;
						goto LA5;
					}
					LA12: ;
					res_251195 += ((NI) 1);
				} LA8: ;
			}
		} LA5: ;
	}
	LA3: ;
	return result;
}

N_NIMCALL(void, gif_251311)(Tsrcgen249023* g, Tnode227809* n) {
	Tcontext250835 c;
	NI length;
	memset((void*)(&c), 0, sizeof(c));
	gsub_250874(g, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
	initcontext_250853((&c));
	putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_251170(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_250050((*(*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_250010(g);
	gstmts_251214(g, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)], c, NIM_TRUE);
	length = sonslen_230387(n);
	{
		NI i_251347;
		NI HEX3Atmp_251351;
		NI res_251354;
		i_251347 = 0;
		HEX3Atmp_251351 = 0;
		HEX3Atmp_251351 = (NI)(length - ((NI) 1));
		res_251354 = ((NI) 1);
		{
			while (1) {
				if (!(res_251354 <= HEX3Atmp_251351)) goto LA10;
				i_251347 = res_251354;
				optnl_249339(g);
				gsub_250865(g, (*n).kindU.S6.sons->data[i_251347], c);
				res_251354 += ((NI) 1);
			} LA10: ;
		}
	}
}

N_NIMCALL(void, gwhile_251373)(Tsrcgen249023* g, Tnode227809* n) {
	Tcontext250835 c;
	memset((void*)(&c), 0, sizeof(c));
	putwithspace_250939(g, ((NU8) 68), ((NimStringDesc*) &TMP1448));
	gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
	initcontext_250853((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_251170(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_250050((*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_250010(g);
	gstmts_251214(g, (*n).kindU.S6.sons->data[((NI) 1)], c, NIM_TRUE);
}

N_NIMCALL(void, gpragmablock_251425)(Tsrcgen249023* g, Tnode227809* n) {
	Tcontext250835 c;
	memset((void*)(&c), 0, sizeof(c));
	gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
	initcontext_250853((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_251170(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_250050((*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_250010(g);
	gstmts_251214(g, (*n).kindU.S6.sons->data[((NI) 1)], c, NIM_TRUE);
}

N_NIMCALL(void, gcase_251533)(Tsrcgen249023* g, Tnode227809* n) {
	Tcontext250835 c;
	NI length;
	NI last;
	memset((void*)(&c), 0, sizeof(c));
	initcontext_250853((&c));
	length = sonslen_230387(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_251170(n, ((NI) 0), last);
		if (!LOC8) goto LA9;
		c.Field1 |= ((NU8)1)<<((((NU8) 0))%(sizeof(NU8)*8));
	}
	LA9: ;
	putwithspace_250939(g, ((NU8) 11), ((NimStringDesc*) &TMP1449));
	gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	gcoms_250010(g);
	optnl_249339(g);
	gsons_251080(g, n, c, ((NI) 1), last);
	{
		if (!(last == ((NI) -2))) goto LA13;
		initcontext_250853((&c));
		{
			NIM_BOOL LOC17;
			LOC17 = 0;
			LOC17 = longmode_251170((*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_250865(g, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))], c);
	}
	LA13: ;
}

N_NIMCALL(void, gtry_251452)(Tsrcgen249023* g, Tnode227809* n) {
	Tcontext250835 c;
	memset((void*)(&c), 0, sizeof(c));
	put_249425(g, ((NU8) 62), ((NimStringDesc*) &TMP1450));
	putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
	initcontext_250853((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_251170(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_250050((*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_250010(g);
	gstmts_251214(g, (*n).kindU.S6.sons->data[((NI) 0)], c, NIM_TRUE);
	gsons_251080(g, n, c, ((NI) 1), ((NI) -1));
}

N_NIMCALL(void, gfor_251478)(Tsrcgen249023* g, Tnode227809* n) {
	Tcontext250835 c;
	NI length;
	memset((void*)(&c), 0, sizeof(c));
	length = sonslen_230387(n);
	putwithspace_250939(g, ((NU8) 29), ((NimStringDesc*) &TMP1451));
	initcontext_250853((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		NI LOC6;
		LOC3 = 0;
		LOC3 = longmode_251170(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_250050((*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]);
		LOC6 = 0;
		LOC6 = lsub_250050((*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_251026(g, n, c, ((NI) 0), ((NI) -3));
	put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
	putwithspace_250939(g, ((NU8) 35), ((NimStringDesc*) &TMP1452));
	gsub_250865(g, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 2))], c);
	putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
	gcoms_250010(g);
	gstmts_251214(g, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))], c, NIM_TRUE);
}

N_NIMCALL(void, gblock_251660)(Tsrcgen249023* g, Tnode227809* n) {
	Tcontext250835 c;
	memset((void*)(&c), 0, sizeof(c));
	initcontext_250853((&c));
	{
		if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA3;
		putwithspace_250939(g, ((NU8) 9), ((NimStringDesc*) &TMP1453));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	goto LA1;
	LA3: ;
	{
		put_249425(g, ((NU8) 9), ((NimStringDesc*) &TMP1453));
	}
	LA1: ;
	putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
	{
		NIM_BOOL LOC8;
		NI LOC10;
		LOC8 = 0;
		LOC8 = longmode_251170(n, ((NI) 0), ((NI) -1));
		if (LOC8) goto LA9;
		LOC10 = 0;
		LOC10 = lsub_250050((*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_250010(g);
	indentnl_249349(g);
	gstmts_251214(g, (*n).kindU.S6.sons->data[((NI) 1)], c, NIM_TRUE);
	dedent_249368(g);
}

N_NIMCALL(void, gstaticstmt_251697)(Tsrcgen249023* g, Tnode227809* n) {
	Tcontext250835 c;
	memset((void*)(&c), 0, sizeof(c));
	putwithspace_250939(g, ((NU8) 60), ((NimStringDesc*) &TMP1414));
	putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
	initcontext_250853((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_251170(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_250050((*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_250010(g);
	gstmts_251214(g, (*n).kindU.S6.sons->data[((NI) 0)], c, NIM_TRUE);
}

N_NIMCALL(void, gasm_251723)(Tsrcgen249023* g, Tnode227809* n) {
	putwithspace_250939(g, ((NU8) 6), ((NimStringDesc*) &TMP1454));
	gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	gcoms_250010(g);
	{
		if (!(((NI) 1) < ((*n).kindU.S6.sons ? (*n).kindU.S6.sons->Sup.len : 0))) goto LA3;
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	LA3: ;
}

N_NIMCALL(NIM_BOOL, iskeyword_249101)(Tident200021* 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_249155)(Tsym227841* 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_249101((*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_251400)(Tsrcgen249023* g, Tnode227809* n) {
	Tcontext250835 c;
	memset((void*)(&c), 0, sizeof(c));
	put_249425(g, ((NU8) 97), ((NimStringDesc*) &TMP1415));
	initcontext_250853((&c));
	{
		NIM_BOOL LOC3;
		NI LOC5;
		LOC3 = 0;
		LOC3 = longmode_251170(n, ((NI) 0), ((NI) -1));
		if (LOC3) goto LA4;
		LOC5 = 0;
		LOC5 = lsub_250050((*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_250010(g);
	gstmts_251214(g, n, c, NIM_TRUE);
	put_249425(g, ((NU8) 98), ((NimStringDesc*) &TMP1416));
}

N_NIMCALL(void, gproc_251583)(Tsrcgen249023* g, Tnode227809* n) {
	Tcontext250835 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_249155((*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym, NIM_FALSE);
		put_249425(g, ((NU8) 2), LOC5);
	}
	goto LA1;
	LA3: ;
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	LA1: ;
	{
		if (!!(((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 1)))) goto LA9;
		gpattern_251400(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	LA9: ;
	oldcheckanon = (*g).checkanon;
	(*g).checkanon = NIM_TRUE;
	gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 2)]);
	(*g).checkanon = oldcheckanon;
	gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 3)]);
	gsub_250874(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_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
			putwithspace_250939(g, ((NU8) 109), ((NimStringDesc*) &TMP1417));
			indentnl_249349(g);
			gcoms_250010(g);
			dedent_249368(g);
			initcontext_250853((&c));
			gstmts_251214(g, (*n).kindU.S6.sons->data[((NI) 6)], c, NIM_TRUE);
			putnl_249318(g);
		}
		goto LA15;
		LA17: ;
		{
			indentnl_249349(g);
			gcoms_250010(g);
			dedent_249368(g);
		}
		LA15: ;
	}
	LA13: ;
}

N_NIMCALL(void, gsection_251125)(Tsrcgen249023* g, Tnode227809* n, Tcontext250835 c, NU8 kind, NimStringDesc* k) {
{	{
		NI LOC3;
		LOC3 = 0;
		LOC3 = sonslen_230387(n);
		if (!(LOC3 == ((NI) 0))) goto LA4;
		goto BeforeRet;
	}
	LA4: ;
	putwithspace_250939(g, kind, k);
	gcoms_250010(g);
	indentnl_249349(g);
	{
		NI i_251145;
		NI HEX3Atmp_251148;
		NI LOC7;
		NI res_251151;
		i_251145 = 0;
		HEX3Atmp_251148 = 0;
		LOC7 = 0;
		LOC7 = sonslen_230387(n);
		HEX3Atmp_251148 = (NI)(LOC7 - ((NI) 1));
		res_251151 = ((NI) 0);
		{
			while (1) {
				if (!(res_251151 <= HEX3Atmp_251148)) goto LA9;
				i_251145 = res_251151;
				optnl_249339(g);
				gsub_250865(g, (*n).kindU.S6.sons->data[i_251145], c);
				gcoms_250010(g);
				res_251151 += ((NI) 1);
			} LA9: ;
		}
	}
	dedent_249368(g);
	}BeforeRet: ;
}

N_NIMCALL(void, gtypeclassty_251646)(Tsrcgen249023* g, Tnode227809* n) {
	Tcontext250835 c;
	Tnode227809* LOC1;
	Tnode227809* LOC2;
	Tnode227809* LOC3;
	Tnode227809* LOC4;
	memset((void*)(&c), 0, sizeof(c));
	initcontext_250853((&c));
	putwithspace_250939(g, ((NU8) 13), ((NimStringDesc*) &TMP1484));
	LOC1 = 0;
	LOC1 = HEX5BHEX5D_228244(n, ((NI) 0));
	gsons_251080(g, LOC1, c, ((NI) 0), ((NI) -1));
	LOC2 = 0;
	LOC2 = HEX5BHEX5D_228244(n, ((NI) 1));
	gsub_250874(g, LOC2);
	LOC3 = 0;
	LOC3 = HEX5BHEX5D_228244(n, ((NI) 2));
	gsub_250874(g, LOC3);
	gcoms_250010(g);
	indentnl_249349(g);
	gcoms_250010(g);
	LOC4 = 0;
	LOC4 = HEX5BHEX5D_228244(n, ((NI) 3));
	gstmts_251214(g, LOC4, c, NIM_TRUE);
	dedent_249368(g);
}

N_NIMCALL(void, gsub_250865)(Tsrcgen249023* g, Tnode227809* n, Tcontext250835 c_250870) {
	Tcontext250835 a;
{	{
		if (!n == 0) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	memset((void*)(&a), 0, sizeof(a));
	{
		if (!!(((*n).comment == NIM_NIL))) goto LA7;
		pushcom_249822(g, n);
	}
	LA7: ;
	switch ((*n).kind) {
	case ((NU8) 22):
	{
		putrawstr_249724(g, ((NU8) 89), (*n).kindU.S3.strval);
	}
	break;
	case ((NU8) 1):
	{
	}
	break;
	case ((NU8) 4):
	{
		NimStringDesc* LOC12;
		LOC12 = 0;
		LOC12 = atom_250217(n);
		put_249425(g, ((NU8) 0), LOC12);
	}
	break;
	case ((NU8) 3):
	case ((NU8) 2):
	{
		gident_251745(g, n);
	}
	break;
	case ((NU8) 6):
	{
		NimStringDesc* LOC15;
		LOC15 = 0;
		LOC15 = atom_250217(n);
		put_249425(g, ((NU8) 73), LOC15);
	}
	break;
	case ((NU8) 7):
	{
		NimStringDesc* LOC17;
		LOC17 = 0;
		LOC17 = atom_250217(n);
		put_249425(g, ((NU8) 74), LOC17);
	}
	break;
	case ((NU8) 8):
	{
		NimStringDesc* LOC19;
		LOC19 = 0;
		LOC19 = atom_250217(n);
		put_249425(g, ((NU8) 75), LOC19);
	}
	break;
	case ((NU8) 9):
	{
		NimStringDesc* LOC21;
		LOC21 = 0;
		LOC21 = atom_250217(n);
		put_249425(g, ((NU8) 76), LOC21);
	}
	break;
	case ((NU8) 10):
	{
		NimStringDesc* LOC23;
		LOC23 = 0;
		LOC23 = atom_250217(n);
		put_249425(g, ((NU8) 77), LOC23);
	}
	break;
	case ((NU8) 11):
	{
		NimStringDesc* LOC25;
		LOC25 = 0;
		LOC25 = atom_250217(n);
		put_249425(g, ((NU8) 78), LOC25);
	}
	break;
	case ((NU8) 12):
	{
		NimStringDesc* LOC27;
		LOC27 = 0;
		LOC27 = atom_250217(n);
		put_249425(g, ((NU8) 79), LOC27);
	}
	break;
	case ((NU8) 13):
	{
		NimStringDesc* LOC29;
		LOC29 = 0;
		LOC29 = atom_250217(n);
		put_249425(g, ((NU8) 80), LOC29);
	}
	break;
	case ((NU8) 14):
	{
		NimStringDesc* LOC31;
		LOC31 = 0;
		LOC31 = atom_250217(n);
		put_249425(g, ((NU8) 81), LOC31);
	}
	break;
	case ((NU8) 15):
	{
		NimStringDesc* LOC33;
		LOC33 = 0;
		LOC33 = atom_250217(n);
		put_249425(g, ((NU8) 82), LOC33);
	}
	break;
	case ((NU8) 16):
	{
		NimStringDesc* LOC35;
		LOC35 = 0;
		LOC35 = atom_250217(n);
		put_249425(g, ((NU8) 83), LOC35);
	}
	break;
	case ((NU8) 17):
	{
		NimStringDesc* LOC37;
		LOC37 = 0;
		LOC37 = atom_250217(n);
		put_249425(g, ((NU8) 84), LOC37);
	}
	break;
	case ((NU8) 18):
	{
		NimStringDesc* LOC39;
		LOC39 = 0;
		LOC39 = atom_250217(n);
		put_249425(g, ((NU8) 85), LOC39);
	}
	break;
	case ((NU8) 19):
	{
		NimStringDesc* LOC41;
		LOC41 = 0;
		LOC41 = atom_250217(n);
		put_249425(g, ((NU8) 86), LOC41);
	}
	break;
	case ((NU8) 20):
	{
		NimStringDesc* LOC43;
		LOC43 = 0;
		LOC43 = atom_250217(n);
		put_249425(g, ((NU8) 87), LOC43);
	}
	break;
	case ((NU8) 21):
	{
		NimStringDesc* LOC45;
		LOC45 = 0;
		LOC45 = atom_250217(n);
		put_249425(g, ((NU8) 88), LOC45);
	}
	break;
	case ((NU8) 5):
	{
		NimStringDesc* LOC47;
		LOC47 = 0;
		LOC47 = atom_250217(n);
		put_249425(g, ((NU8) 92), LOC47);
	}
	break;
	case ((NU8) 23):
	{
		NimStringDesc* LOC49;
		LOC49 = 0;
		LOC49 = atom_250217(n);
		put_249425(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_230387(n);
			if (!(((NI) 1) <= LOC53)) goto LA54;
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA54: ;
		put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
		gcomma_251052(g, n, ((NI) 1), ((NI) -1));
		put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
	}
	break;
	case ((NU8) 28):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			NimStringDesc* LOC61;
			Tnode227809* LOC62;
			NimStringDesc* LOC63;
			if (!((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 21))) goto LA59;
			LOC61 = 0;
			LOC62 = 0;
			LOC62 = HEX5BHEX5D_228244(n, ((NI) 1));
			LOC63 = 0;
			LOC63 = nsuReplaceStr((*LOC62).kindU.S3.strval, ((NimStringDesc*) &TMP1381), ((NimStringDesc*) &TMP1387));
			LOC61 = rawNewString(LOC63->Sup.len + 2);
appendChar(LOC61, 34);
appendString(LOC61, LOC63);
appendChar(LOC61, 34);
			put_249425(g, ((NU8) 88), LOC61);
		}
		goto LA57;
		LA59: ;
		{
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		LA57: ;
	}
	break;
	case ((NU8) 58):
	case ((NU8) 59):
	case ((NU8) 32):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 61):
	{
		put_249425(g, ((NU8) 12), ((NimStringDesc*) &TMP1410));
		put_249425(g, ((NU8) 95), ((NimStringDesc*) &TMP1411));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 96), ((NimStringDesc*) &TMP1412));
		put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
	}
	break;
	case ((NU8) 63):
	{
		put_249425(g, ((NU8) 3), ((NimStringDesc*) &TMP1413));
		{
			NI LOC70;
			LOC70 = 0;
			LOC70 = len_228098(n);
			if (!(((NI) 0) < LOC70)) goto LA71;
			put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
		}
		LA71: ;
	}
	break;
	case ((NU8) 62):
	{
		put_249425(g, ((NU8) 60), ((NimStringDesc*) &TMP1414));
		put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 42):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 95), ((NimStringDesc*) &TMP1411));
		gcomma_251052(g, n, ((NI) 1), ((NI) -1));
		put_249425(g, ((NU8) 96), ((NimStringDesc*) &TMP1412));
	}
	break;
	case ((NU8) 40):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 97), ((NimStringDesc*) &TMP1415));
		gcomma_251052(g, n, ((NI) 1), ((NI) -1));
		put_249425(g, ((NU8) 98), ((NimStringDesc*) &TMP1416));
	}
	break;
	case ((NU8) 43):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		gcomma_251052(g, n, ((NI) 1), ((NI) -1));
	}
	break;
	case ((NU8) 26):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		gcomma_251052(g, n, ((NI) 1), ((NI) -1));
	}
	break;
	case ((NU8) 33):
	case ((NU8) 73):
	case ((NU8) 74):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		putwithspace_250939(g, ((NU8) 109), ((NimStringDesc*) &TMP1417));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 68):
	{
		put_249425(g, ((NU8) 2), ((NimStringDesc*) &TMP1418));
		put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
		gcomma_251052(g, n, ((NI) 0), ((NI) -1));
		put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
	}
	break;
	case ((NU8) 69):
	{
		put_249425(g, ((NU8) 2), ((NimStringDesc*) &TMP1419));
		put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
		gcomma_251052(g, n, ((NI) 0), ((NI) -1));
		put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
	}
	break;
	case ((NU8) 70):
	{
		put_249425(g, ((NU8) 2), ((NimStringDesc*) &TMP1420));
		put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
		gcomma_251052(g, n, ((NI) 0), ((NI) -1));
		put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
	}
	break;
	case ((NU8) 66):
	case ((NU8) 67):
	case ((NU8) 71):
	case ((NU8) 72):
	{
		{
			NI LOC85;
			LOC85 = 0;
			LOC85 = sonslen_230387(n);
			if (!(((NI) 1) <= LOC85)) goto LA86;
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA86: ;
		put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
		gcomma_251052(g, n, ((NI) 1), ((NI) -1));
		put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
	}
	break;
	case ((NU8) 56):
	case ((NU8) 57):
	{
		NimStringDesc* LOC109;
		put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
		{
			NI i_251944;
			NI HEX3Atmp_252329;
			NI LOC90;
			NI res_252332;
			i_251944 = 0;
			HEX3Atmp_252329 = 0;
			LOC90 = 0;
			LOC90 = sonslen_230387(n);
			HEX3Atmp_252329 = (NI)(LOC90 - ((NI) 1));
			res_252332 = ((NI) 0);
			{
				while (1) {
					if (!(res_252332 <= HEX3Atmp_252329)) goto LA92;
					i_251944 = res_252332;
					{
						if (!(((NI) 0) < i_251944)) goto LA95;
						put_249425(g, ((NU8) 112), ((NimStringDesc*) &TMP1421));
					}
					LA95: ;
					{
						Tsym227841* s;
						Tnode227809* LOC101;
						Tnode227809* LOC107;
						if (!((*(*n).kindU.S6.sons->data[i_251944]).kind == ((NU8) 3))) goto LA99;
						LOC101 = 0;
						LOC101 = HEX5BHEX5D_228244(n, i_251944);
						s = (*LOC101).kindU.S4.sym;
						{
							Tnode227809* LOC106;
							if (!!(((*s).owner == NIM_NIL))) goto LA104;
							LOC106 = 0;
							LOC106 = HEX5BHEX5D_228244(n, i_251944);
							put_249425(g, ((NU8) 2), (*(*(*(*LOC106).kindU.S4.sym).owner).name).s);
							put_249425(g, ((NU8) 112), ((NimStringDesc*) &TMP1422));
						}
						LA104: ;
						LOC107 = 0;
						LOC107 = HEX5BHEX5D_228244(n, i_251944);
						put_249425(g, ((NU8) 2), (*(*(*LOC107).kindU.S4.sym).name).s);
					}
					goto LA97;
					LA99: ;
					{
						gsub_250865(g, (*n).kindU.S6.sons->data[i_251944], c_250870);
					}
					LA97: ;
					res_252332 += ((NI) 1);
				} LA92: ;
			}
		}
		LOC109 = 0;
		{
			if (!((*n).kind == ((NU8) 57))) goto LA112;
			LOC109 = copyString(((NimStringDesc*) &TMP1423));
		}
		goto LA110;
		LA112: ;
		{
			LOC109 = copyString(((NimStringDesc*) &TMP1409));
		}
		LA110: ;
		put_249425(g, ((NU8) 94), LOC109);
	}
	break;
	case ((NU8) 37):
	case ((NU8) 155):
	{
		put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
		gcomma_251026(g, n, c_250870, ((NI) 0), ((NI) -1));
		put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
	}
	break;
	case ((NU8) 39):
	{
		put_249425(g, ((NU8) 97), ((NimStringDesc*) &TMP1415));
		gcomma_251026(g, n, c_250870, ((NI) 0), ((NI) -1));
		put_249425(g, ((NU8) 98), ((NimStringDesc*) &TMP1416));
	}
	break;
	case ((NU8) 152):
	{
		gcomma_251026(g, n, c_250870, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 54):
	{
		put_249425(g, ((NU8) 97), ((NimStringDesc*) &TMP1415));
		{
			NI LOC121;
			LOC121 = 0;
			LOC121 = len_228098(n);
			if (!(((NI) 0) < LOC121)) goto LA122;
			gcomma_251026(g, n, c_250870, ((NI) 0), ((NI) -1));
		}
		goto LA119;
		LA122: ;
		{
			put_249425(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
		}
		LA119: ;
		put_249425(g, ((NU8) 98), ((NimStringDesc*) &TMP1416));
	}
	break;
	case ((NU8) 41):
	{
		put_249425(g, ((NU8) 95), ((NimStringDesc*) &TMP1411));
		gcomma_251026(g, n, c_250870, ((NI) 0), ((NI) -1));
		put_249425(g, ((NU8) 96), ((NimStringDesc*) &TMP1412));
	}
	break;
	case ((NU8) 45):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 110), ((NimStringDesc*) &TMP1422));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 55):
	{
		putwithspace_250939(g, ((NU8) 8), ((NimStringDesc*) &TMP1425));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 46):
	case ((NU8) 64):
	case ((NU8) 65):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 51):
	{
		putwithspace_250939(g, ((NU8) 53), ((NimStringDesc*) &TMP1426));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 3)]);
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 4)]);
		put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		putwithspace_250939(g, ((NU8) 109), ((NimStringDesc*) &TMP1417));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 6)]);
	}
	break;
	case ((NU8) 52):
	{
		putwithspace_250939(g, ((NU8) 21), ((NimStringDesc*) &TMP1427));
		doparamsaux_251865(g, (*n).kindU.S6.sons->data[((NI) 3)]);
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 4)]);
		put_249425(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 6)]);
	}
	break;
	case ((NU8) 102):
	case ((NU8) 35):
	{
		NI L;
		gcomma_251052(g, n, ((NI) 0), ((NI) -3));
		L = sonslen_230387(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_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
			gsub_250874(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_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
			putwithspace_250939(g, ((NU8) 109), ((NimStringDesc*) &TMP1417));
			gsub_250865(g, (*n).kindU.S6.sons->data[(NI)(L - ((NI) 1))], c_250870);
		}
		LA142: ;
	}
	break;
	case ((NU8) 36):
	{
		Tnode227809* LOC145;
		put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
		gcomma_251052(g, n, ((NI) 0), ((NI) -3));
		put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
		put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		putwithspace_250939(g, ((NU8) 109), ((NimStringDesc*) &TMP1417));
		LOC145 = 0;
		LOC145 = lastson_230406(n);
		gsub_250865(g, LOC145, c_250870);
	}
	break;
	case ((NU8) 34):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 29):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			NI LOC150;
			NI LOC151;
			NIM_BOOL LOC152;
			LOC150 = 0;
			LOC150 = lsub_250050((*n).kindU.S6.sons->data[((NI) 2)]);
			LOC151 = 0;
			LOC151 = lsub_250050((*n).kindU.S6.sons->data[((NI) 0)]);
			LOC152 = 0;
			LOC152 = fits_250819((&(*g)), (NI)((NI)(LOC150 + LOC151) + ((NI) 1)));
			if (!!(LOC152)) goto LA153;
			optnl_249328(g, (NI)((*g).indent + ((NI) 4)));
		}
		goto LA148;
		LA153: ;
		{
			put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		}
		LA148: ;
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 2)]);
	}
	break;
	case ((NU8) 30):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		{
			NI LOC159;
			LOC159 = 0;
			LOC159 = len_228098(n);
			if (!(((NI) 1) < LOC159)) goto LA160;
			put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
			{
				if (!((*(*n).kindU.S6.sons->data[((NI) 1)]).kind == ((NU8) 29))) goto LA164;
				put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
				gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
				put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
			}
			goto LA162;
			LA164: ;
			{
				gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
			}
			LA162: ;
		}
		LA160: ;
	}
	break;
	case ((NU8) 31):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 44):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 111), ((NimStringDesc*) &TMP1429));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 47):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 112), ((NimStringDesc*) &TMP1430));
	}
	break;
	case ((NU8) 53):
	{
		put_249425(g, ((NU8) 114), ((NimStringDesc*) &TMP1431));
		{
			NI LOC173;
			LOC173 = 0;
			LOC173 = len_228098(n);
			if (!(((NI) 0) < LOC173)) goto LA174;
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA174: ;
		{
			NI i_252066;
			NI HEX3Atmp_252337;
			NI LOC177;
			NI res_252340;
			i_252066 = 0;
			HEX3Atmp_252337 = 0;
			LOC177 = 0;
			LOC177 = len_228098(n);
			HEX3Atmp_252337 = (LOC177 - 1);
			res_252340 = ((NI) 1);
			{
				while (1) {
					if (!(res_252340 <= HEX3Atmp_252337)) goto LA179;
					i_252066 = res_252340;
					put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
					gsub_250874(g, (*n).kindU.S6.sons->data[i_252066]);
					res_252340 += ((NI) 1);
				} LA179: ;
			}
		}
		put_249425(g, ((NU8) 114), ((NimStringDesc*) &TMP1431));
	}
	break;
	case ((NU8) 48):
	{
		putwithspace_250939(g, ((NU8) 33), ((NimStringDesc*) &TMP1432));
		gsub_250874(g, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]);
		putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
		gsub_250874(g, (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]);
		gsons_251080(g, n, TMP1433, ((NI) 1), ((NI) -1));
	}
	break;
	case ((NU8) 49):
	{
		putwithspace_250939(g, ((NU8) 22), ((NimStringDesc*) &TMP1434));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 50):
	{
		put_249425(g, ((NU8) 23), ((NimStringDesc*) &TMP1435));
		putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 132):
	{
		putwithspace_250939(g, ((NU8) 64), ((NimStringDesc*) &TMP1436));
		{
			NI LOC186;
			LOC186 = 0;
			LOC186 = len_228098(n);
			if (!(((NI) 0) < LOC186)) goto LA187;
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA187: ;
	}
	break;
	case ((NU8) 141):
	{
		{
			NI LOC192;
			LOC192 = 0;
			LOC192 = sonslen_230387(n);
			if (!(((NI) 0) < LOC192)) goto LA193;
			putwithspace_250939(g, ((NU8) 56), ((NimStringDesc*) &TMP1437));
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		goto LA190;
		LA193: ;
		{
			put_249425(g, ((NU8) 56), ((NimStringDesc*) &TMP1437));
		}
		LA190: ;
	}
	break;
	case ((NU8) 142):
	{
		{
			NI LOC199;
			LOC199 = 0;
			LOC199 = sonslen_230387(n);
			if (!(((NI) 0) < LOC199)) goto LA200;
			putwithspace_250939(g, ((NU8) 54), ((NimStringDesc*) &TMP1438));
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		goto LA197;
		LA200: ;
		{
			put_249425(g, ((NU8) 54), ((NimStringDesc*) &TMP1438));
		}
		LA197: ;
	}
	break;
	case ((NU8) 143):
	{
		{
			NI LOC206;
			LOC206 = 0;
			LOC206 = sonslen_230387(n);
			if (!(((NI) 0) < LOC206)) goto LA207;
			putwithspace_250939(g, ((NU8) 66), ((NimStringDesc*) &TMP1439));
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		goto LA204;
		LA207: ;
		{
			put_249425(g, ((NU8) 66), ((NimStringDesc*) &TMP1439));
		}
		LA204: ;
	}
	break;
	case ((NU8) 146):
	{
		{
			NI LOC213;
			LOC213 = 0;
			LOC213 = len_228098(n);
			if (!(((NI) 0) < LOC213)) goto LA214;
			putwithspace_250939(g, ((NU8) 19), ((NimStringDesc*) &TMP1440));
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			{
				NI LOC218;
				Tnode227809* LOC227;
				LOC218 = 0;
				LOC218 = len_228098(n);
				if (!(((NI) 1) < LOC218)) goto LA219;
				{
					Tnode227809* LOC223;
					LOC223 = 0;
					LOC223 = HEX5BHEX5D_228244(n, ((NI) 1));
					if (!((*LOC223).kind == ((NU8) 130))) goto LA224;
					putwithspace_250939(g, ((NU8) 69), ((NimStringDesc*) &TMP1441));
				}
				goto LA221;
				LA224: ;
				{
					putwithspace_250939(g, ((NU8) 70), ((NimStringDesc*) &TMP1442));
				}
				LA221: ;
				LOC227 = 0;
				LOC227 = HEX5BHEX5D_228244(n, ((NI) 1));
				gcomma_251052(g, LOC227, ((NI) 0), ((NI) -1));
			}
			LA219: ;
		}
		goto LA211;
		LA214: ;
		{
			put_249425(g, ((NU8) 19), ((NimStringDesc*) &TMP1440));
		}
		LA211: ;
	}
	break;
	case ((NU8) 103):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 2)]).kind == ((NU8) 1)))) goto LA232;
			putwithspace_250939(g, ((NU8) 109), ((NimStringDesc*) &TMP1417));
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 2)]);
		}
		LA232: ;
	}
	break;
	case ((NU8) 133):
	{
		{
			NI LOC237;
			LOC237 = 0;
			LOC237 = sonslen_230387(n);
			if (!(((NI) 0) < LOC237)) goto LA238;
			putwithspace_250939(g, ((NU8) 49), ((NimStringDesc*) &TMP1443));
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
			gcoms_250010(g);
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 2)]);
		}
		goto LA235;
		LA238: ;
		{
			put_249425(g, ((NU8) 49), ((NimStringDesc*) &TMP1443));
		}
		LA235: ;
	}
	break;
	case ((NU8) 138):
	{
		indentnl_249349(g);
		{
			NI i_252120;
			NI HEX3Atmp_252345;
			NI LOC243;
			NI res_252348;
			i_252120 = 0;
			HEX3Atmp_252345 = 0;
			LOC243 = 0;
			LOC243 = sonslen_230387(n);
			HEX3Atmp_252345 = (NI)(LOC243 - ((NI) 1));
			res_252348 = ((NI) 0);
			{
				while (1) {
					if (!(res_252348 <= HEX3Atmp_252345)) goto LA245;
					i_252120 = res_252348;
					optnl_249339(g);
					gsub_250865(g, (*n).kindU.S6.sons->data[i_252120], c_250870);
					gcoms_250010(g);
					res_252348 += ((NI) 1);
				} LA245: ;
			}
		}
		dedent_249368(g);
		putnl_249318(g);
	}
	break;
	case ((NU8) 77):
	{
		putwithspace_250939(g, ((NU8) 50), ((NimStringDesc*) &TMP1444));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 147):
	{
		{
			NI LOC250;
			LOC250 = 0;
			LOC250 = sonslen_230387(n);
			if (!(((NI) 0) < LOC250)) goto LA251;
			putwithspace_250939(g, ((NU8) 53), ((NimStringDesc*) &TMP1426));
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA248;
		LA251: ;
		{
			put_249425(g, ((NU8) 53), ((NimStringDesc*) &TMP1426));
		}
		LA248: ;
	}
	break;
	case ((NU8) 148):
	{
		{
			NI LOC257;
			LOC257 = 0;
			LOC257 = sonslen_230387(n);
			if (!(((NI) 0) < LOC257)) goto LA258;
			putwithspace_250939(g, ((NU8) 40), ((NimStringDesc*) &TMP1445));
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		goto LA255;
		LA258: ;
		{
			put_249425(g, ((NU8) 40), ((NimStringDesc*) &TMP1445));
		}
		LA255: ;
	}
	break;
	case ((NU8) 137):
	{
		put_249425(g, ((NU8) 60), ((NimStringDesc*) &TMP1414));
		put_249425(g, ((NU8) 95), ((NimStringDesc*) &TMP1411));
		{
			NI LOC264;
			LOC264 = 0;
			LOC264 = len_228098(n);
			if (!(((NI) 0) < LOC264)) goto LA265;
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA265: ;
		put_249425(g, ((NU8) 96), ((NimStringDesc*) &TMP1412));
	}
	break;
	case ((NU8) 150):
	{
		{
			NI LOC270;
			LOC270 = 0;
			LOC270 = sonslen_230387(n);
			if (!(((NI) 0) < LOC270)) goto LA271;
			putwithspace_250939(g, ((NU8) 25), ((NimStringDesc*) &TMP1446));
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
			gcoms_250010(g);
			indentnl_249349(g);
			gcommaaux_250951(g, n, (*g).indent, ((NI) 1), ((NI) -1), ((NU8) 105));
			gcoms_250010(g);
			dedent_249368(g);
		}
		goto LA268;
		LA271: ;
		{
			put_249425(g, ((NU8) 25), ((NimStringDesc*) &TMP1446));
		}
		LA268: ;
	}
	break;
	case ((NU8) 151):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		putwithspace_250939(g, ((NU8) 109), ((NimStringDesc*) &TMP1417));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 115):
	case ((NU8) 126):
	case ((NU8) 128):
	{
		gstmts_251214(g, n, TMP1433, NIM_TRUE);
	}
	break;
	case ((NU8) 92):
	{
		putwithspace_250939(g, ((NU8) 33), ((NimStringDesc*) &TMP1432));
		gif_251311(g, n);
	}
	break;
	case ((NU8) 93):
	case ((NU8) 140):
	{
		putwithspace_250939(g, ((NU8) 67), ((NimStringDesc*) &TMP1447));
		gif_251311(g, n);
	}
	break;
	case ((NU8) 96):
	{
		gwhile_251373(g, n);
	}
	break;
	case ((NU8) 91):
	{
		gpragmablock_251425(g, n);
	}
	break;
	case ((NU8) 97):
	case ((NU8) 139):
	{
		gcase_251533(g, n);
	}
	break;
	case ((NU8) 106):
	{
		gtry_251452(g, n);
	}
	break;
	case ((NU8) 94):
	case ((NU8) 95):
	{
		gfor_251478(g, n);
	}
	break;
	case ((NU8) 112):
	case ((NU8) 127):
	{
		gblock_251660(g, n);
	}
	break;
	case ((NU8) 113):
	{
		gstaticstmt_251697(g, n);
	}
	break;
	case ((NU8) 89):
	{
		gasm_251723(g, n);
	}
	break;
	case ((NU8) 79):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 6))&7)))!=0))) goto LA289;
			putwithspace_250939(g, ((NU8) 53), ((NimStringDesc*) &TMP1426));
		}
		LA289: ;
		gproc_251583(g, n);
	}
	break;
	case ((NU8) 81):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 6))&7)))!=0))) goto LA294;
			putwithspace_250939(g, ((NU8) 16), ((NimStringDesc*) &TMP1455));
		}
		LA294: ;
		gproc_251583(g, n);
	}
	break;
	case ((NU8) 80):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 6))&7)))!=0))) goto LA299;
			putwithspace_250939(g, ((NU8) 43), ((NimStringDesc*) &TMP1456));
		}
		LA299: ;
		gproc_251583(g, n);
	}
	break;
	case ((NU8) 84):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 6))&7)))!=0))) goto LA304;
			putwithspace_250939(g, ((NU8) 40), ((NimStringDesc*) &TMP1445));
		}
		LA304: ;
		gproc_251583(g, n);
	}
	break;
	case ((NU8) 82):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 6))&7)))!=0))) goto LA309;
			putwithspace_250939(g, ((NU8) 42), ((NimStringDesc*) &TMP1457));
		}
		LA309: ;
		gproc_251583(g, n);
	}
	break;
	case ((NU8) 83):
	{
		{
			if (!!((((*g).flags &(1<<((((NU8) 6))&7)))!=0))) goto LA314;
			putwithspace_250939(g, ((NU8) 61), ((NimStringDesc*) &TMP1458));
		}
		LA314: ;
		gproc_251583(g, n);
	}
	break;
	case ((NU8) 98):
	{
		gsection_251125(g, n, TMP1433, ((NU8) 64), ((NimStringDesc*) &TMP1436));
	}
	break;
	case ((NU8) 101):
	{
		initcontext_250853((&a));
		a.Field1 |= ((NU8)1)<<((((NU8) 2))%(sizeof(NU8)*8));
		gsection_251125(g, n, a, ((NU8) 14), ((NimStringDesc*) &TMP1459));
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		NI L;
		L = sonslen_230387(n);
		{
			if (!(L == ((NI) 0))) goto LA321;
			goto BeforeRet;
		}
		LA321: ;
		{
			if (!((*n).kind == ((NU8) 99))) goto LA325;
			putwithspace_250939(g, ((NU8) 66), ((NimStringDesc*) &TMP1439));
		}
		goto LA323;
		LA325: ;
		{
			putwithspace_250939(g, ((NU8) 41), ((NimStringDesc*) &TMP1460));
		}
		LA323: ;
		{
			if (!(((NI) 1) < L)) goto LA330;
			gcoms_250010(g);
			indentnl_249349(g);
			{
				NI i_252225;
				NI HEX3Atmp_252353;
				NI res_252356;
				i_252225 = 0;
				HEX3Atmp_252353 = 0;
				HEX3Atmp_252353 = (NI)(L - ((NI) 1));
				res_252356 = ((NI) 0);
				{
					while (1) {
						if (!(res_252356 <= HEX3Atmp_252353)) goto LA334;
						i_252225 = res_252356;
						optnl_249339(g);
						gsub_250874(g, (*n).kindU.S6.sons->data[i_252225]);
						gcoms_250010(g);
						res_252356 += ((NI) 1);
					} LA334: ;
				}
			}
			dedent_249368(g);
		}
		goto LA328;
		LA330: ;
		{
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA328: ;
	}
	break;
	case ((NU8) 109):
	{
		putwithspace_250939(g, ((NU8) 57), ((NimStringDesc*) &TMP1461));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 108):
	{
		putwithspace_250939(g, ((NU8) 55), ((NimStringDesc*) &TMP1462));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 104):
	{
		putwithspace_250939(g, ((NU8) 72), ((NimStringDesc*) &TMP1463));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 114):
	{
		putwithspace_250939(g, ((NU8) 18), ((NimStringDesc*) &TMP1464));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 110):
	{
		putwithspace_250939(g, ((NU8) 10), ((NimStringDesc*) &TMP1465));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
	}
	break;
	case ((NU8) 111):
	{
		putwithspace_250939(g, ((NU8) 15), ((NimStringDesc*) &TMP1466));
		gsub_250874(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_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
				put_249425(g, ((NU8) 101), ((NimStringDesc*) &TMP1467));
				gcomma_251026(g, n, TMP1433, ((NI) 0), ((NI) -1));
				put_249425(g, ((NU8) 102), ((NimStringDesc*) &TMP1468));
				(*g).inpragma -= ((NI) 1);
			}
			goto LA347;
			LA349: ;
			{
				gcomma_251026(g, n, TMP1433, ((NI) 0), ((NI) -1));
			}
			LA347: ;
		}
		LA345: ;
	}
	break;
	case ((NU8) 116):
	case ((NU8) 118):
	{
		{
			if (!((*n).kind == ((NU8) 116))) goto LA355;
			putwithspace_250939(g, ((NU8) 34), ((NimStringDesc*) &TMP1469));
		}
		goto LA353;
		LA355: ;
		{
			putwithspace_250939(g, ((NU8) 27), ((NimStringDesc*) &TMP1470));
		}
		LA353: ;
		gcoms_250010(g);
		indentnl_249349(g);
		gcommaaux_250951(g, n, (*g).indent, ((NI) 0), ((NI) -1), ((NU8) 105));
		dedent_249368(g);
		putnl_249318(g);
	}
	break;
	case ((NU8) 117):
	case ((NU8) 119):
	{
		{
			if (!((*n).kind == ((NU8) 117))) goto LA361;
			putwithspace_250939(g, ((NU8) 34), ((NimStringDesc*) &TMP1469));
		}
		goto LA359;
		LA361: ;
		{
			putwithspace_250939(g, ((NU8) 27), ((NimStringDesc*) &TMP1470));
		}
		LA359: ;
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		putwithspace_250939(g, ((NU8) 26), ((NimStringDesc*) &TMP1471));
		gcommaaux_250951(g, n, (*g).indent, ((NI) 1), ((NI) -1), ((NU8) 105));
		gcoms_250010(g);
		putnl_249318(g);
	}
	break;
	case ((NU8) 120):
	{
		putwithspace_250939(g, ((NU8) 30), ((NimStringDesc*) &TMP1472));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		putwithspace_250939(g, ((NU8) 34), ((NimStringDesc*) &TMP1469));
		gcomma_251026(g, n, TMP1433, ((NI) 1), ((NI) -1));
		putnl_249318(g);
	}
	break;
	case ((NU8) 121):
	{
		putwithspace_250939(g, ((NU8) 36), ((NimStringDesc*) &TMP1473));
		gcoms_250010(g);
		indentnl_249349(g);
		gcommaaux_250951(g, n, (*g).indent, ((NI) 0), ((NI) -1), ((NU8) 105));
		dedent_249368(g);
		putnl_249318(g);
	}
	break;
	case ((NU8) 125):
	{
		gcoms_250010(g);
		optnl_249339(g);
	}
	break;
	case ((NU8) 85):
	{
		Tnode227809* LOC368;
		optnl_249339(g);
		putwithspace_250939(g, ((NU8) 50), ((NimStringDesc*) &TMP1444));
		gcomma_251026(g, n, c_250870, ((NI) 0), ((NI) -2));
		putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
		gcoms_250010(g);
		LOC368 = 0;
		LOC368 = lastson_230406(n);
		gstmts_251214(g, LOC368, c_250870, NIM_TRUE);
	}
	break;
	case ((NU8) 78):
	{
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 115), ((NimStringDesc*) &TMP1407));
		putwithspace_250939(g, ((NU8) 5), ((NimStringDesc*) &TMP1474));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 122):
	{
		putwithspace_250939(g, ((NU8) 8), ((NimStringDesc*) &TMP1425));
		gcomma_251026(g, n, c_250870, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 123):
	{
		putwithspace_250939(g, ((NU8) 44), ((NimStringDesc*) &TMP1475));
		gcomma_251026(g, n, c_250870, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 86):
	{
		optnl_249339(g);
		putwithspace_250939(g, ((NU8) 22), ((NimStringDesc*) &TMP1476));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
		gcoms_250010(g);
		gstmts_251214(g, (*n).kindU.S6.sons->data[((NI) 1)], c_250870, NIM_TRUE);
	}
	break;
	case ((NU8) 88):
	{
		optnl_249339(g);
		put_249425(g, ((NU8) 23), ((NimStringDesc*) &TMP1477));
		putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
		gcoms_250010(g);
		gstmts_251214(g, (*n).kindU.S6.sons->data[((NI) 0)], c_250870, NIM_TRUE);
	}
	break;
	case ((NU8) 107):
	case ((NU8) 105):
	{
		optnl_249339(g);
		{
			if (!((*n).kind == ((NU8) 107))) goto LA377;
			put_249425(g, ((NU8) 28), ((NimStringDesc*) &TMP1478));
		}
		goto LA375;
		LA377: ;
		{
			put_249425(g, ((NU8) 17), ((NimStringDesc*) &TMP1479));
		}
		LA375: ;
		putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
		gcoms_250010(g);
		gstmts_251214(g, (*n).kindU.S6.sons->data[((NI) 0)], c_250870, NIM_TRUE);
	}
	break;
	case ((NU8) 87):
	{
		Tnode227809* LOC381;
		optnl_249339(g);
		putwithspace_250939(g, ((NU8) 26), ((NimStringDesc*) &TMP1471));
		gcomma_251052(g, n, ((NI) 0), ((NI) -2));
		putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
		gcoms_250010(g);
		LOC381 = 0;
		LOC381 = lastson_230406(n);
		gstmts_251214(g, LOC381, c_250870, NIM_TRUE);
	}
	break;
	case ((NU8) 75):
	{
		put_249425(g, ((NU8) 95), ((NimStringDesc*) &TMP1411));
		gcomma_251052(g, n, ((NI) 0), ((NI) -1));
		put_249425(g, ((NU8) 96), ((NimStringDesc*) &TMP1412));
	}
	break;
	case ((NU8) 76):
	{
		put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1406));
		gsemicolon_251066(g, n, ((NI) 1), ((NI) -1));
		put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA386;
			putwithspace_250939(g, ((NU8) 107), ((NimStringDesc*) &TMP1424));
			gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		}
		LA386: ;
	}
	break;
	case ((NU8) 134):
	{
		put_249425(g, ((NU8) 63), ((NimStringDesc*) &TMP1480));
		put_249425(g, ((NU8) 95), ((NimStringDesc*) &TMP1411));
		gcomma_251052(g, n, ((NI) 0), ((NI) -1));
		put_249425(g, ((NU8) 96), ((NimStringDesc*) &TMP1412));
	}
	break;
	case ((NU8) 135):
	{
		put_249425(g, ((NU8) 63), ((NimStringDesc*) &TMP1480));
	}
	break;
	case ((NU8) 24):
	{
		put_249425(g, ((NU8) 93), ((NimStringDesc*) &TMP1481));
		gsub_250874(g, (*n).kindU.S6.sons->data[((NI) 0)]);
		put_249425(g, ((NU8) 94), ((NimStringDesc*) &TMP1409));
	}
	break;
	case ((NU8) 156):
	case ((NU8) 157):
	{
		Tcontext250835 c;
		NimStringDesc* LOC392;
		memset((void*)(&c), 0, sizeof(c));
		initcontext_250853((&c));
		LOC392 = 0;
		{
			if (!((*n).kind == ((NU8) 157))) goto LA395;
			LOC392 = copyString(((NimStringDesc*) &TMP1482));
		}
		goto LA393;
		LA395: ;
		{
			LOC392 = copyString(((NimStringDesc*) &TMP1483));
		}
		LA393: ;
		putwithspace_250939(g, ((NU8) 2), LOC392);
		gsons_251080(g, n, c, ((NI) 0), ((NI) -1));
	}
	break;
	case ((NU8) 136):
	{
		gtypeclassty_251646(g, n);
	}
	break;
	default:
	{
		NimStringDesc* LOC400;
		LOC400 = 0;
		LOC400 = rawNewString(reprEnum((*n).kind, (&NTI227029))->Sup.len + 14);
appendString(LOC400, ((NimStringDesc*) &TMP1485));
appendString(LOC400, reprEnum((*n).kind, (&NTI227029)));
appendChar(LOC400, 41);
		internalerror_198172((*n).info, LOC400);
	}
	break;
	}
	}BeforeRet: ;
}

N_NIMCALL(void, gsub_250874)(Tsrcgen249023* g, Tnode227809* n) {
	Tcontext250835 c;
	memset((void*)(&c), 0, sizeof(c));
	initcontext_250853((&c));
	gsub_250865(g, n, c);
}

N_NIMCALL(NimStringDesc*, rendertree_249059)(Tnode227809* n, NU8 renderflags) {
	NimStringDesc* result;
	Tsrcgen249023 g;
	result = 0;
	memset((void*)(&g), 0, sizeof(g));
	initsrcgen_249187((&g), renderflags);
	gsub_250874((&g), n);
	result = copyString(g.buf);
	return result;
}

N_NIMCALL(NimStringDesc*, HEX24_249090)(Tnode227809* n) {
	NimStringDesc* result;
	result = 0;
	result = rendertree_249059(n, 0);
	return result;
}

N_NIMCALL(void, inittokrender_249068)(Tsrcgen249023* r, Tnode227809* n, NU8 renderflags) {
	initsrcgen_249187(r, renderflags);
	gsub_250874(r, n);
}

N_NIMCALL(void, getnexttok_249079)(Tsrcgen249023* 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* TMP1377[2];
static TNimNode TMP891[3];
NTI249019.size = sizeof(Trendertok249019);
NTI249019.kind = 18;
NTI249019.base = 0;
NTI249019.flags = 3;
TMP1377[0] = &TMP891[1];
TMP891[1].kind = 1;
TMP891[1].offset = offsetof(Trendertok249019, kind);
TMP891[1].typ = (&NTI218022);
TMP891[1].name = "kind";
TMP1377[1] = &TMP891[2];
TMP891[2].kind = 1;
TMP891[2].offset = offsetof(Trendertok249019, length);
TMP891[2].typ = (&NTI112);
TMP891[2].name = "length";
TMP891[0].len = 2; TMP891[0].kind = 2; TMP891[0].sons = &TMP1377[0];
NTI249019.node = &TMP891[0];
NTI249021.size = sizeof(Trendertokseq249021*);
NTI249021.kind = 24;
NTI249021.base = (&NTI249019);
NTI249021.flags = 2;
NTI249021.marker = TMP1378;
}

