/* Generated by Nim Compiler v0.13.0 */
/*   (c) 2015 Andreas Rumpf */
/* The generated code is subject to the original license. */
#define NIM_INTBITS 64

#include "nimbase.h"
#include <string.h>
typedef struct Tnode214790 Tnode214790;
typedef struct Tsym214822 Tsym214822;
typedef struct Ttype214828 Ttype214828;
typedef struct Tlineinfo182337 Tlineinfo182337;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tident189012 Tident189012;
typedef struct Tnodeseq214784 Tnodeseq214784;
typedef struct Ttransfcontext384008 Ttransfcontext384008;
typedef struct Tpasscontext261002 Tpasscontext261002;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Ttranscon384006 Ttranscon384006;
typedef struct Tsymseq214792 Tsymseq214792;
typedef struct Tidnodetable214846 Tidnodetable214846;
typedef struct Tidnodepairseq214844 Tidnodepairseq214844;
typedef struct Cell47505 Cell47505;
typedef struct Cellseq47521 Cellseq47521;
typedef struct Gcheap49818 Gcheap49818;
typedef struct Gcstack49816 Gcstack49816;
typedef struct Cellset47517 Cellset47517;
typedef struct Pagedesc47513 Pagedesc47513;
typedef struct Memregion29688 Memregion29688;
typedef struct Smallchunk29640 Smallchunk29640;
typedef struct Llchunk29682 Llchunk29682;
typedef struct Bigchunk29642 Bigchunk29642;
typedef struct Intset29614 Intset29614;
typedef struct Trunk29610 Trunk29610;
typedef struct Avlnode29686 Avlnode29686;
typedef struct Gcstat49814 Gcstat49814;
typedef struct Tidobj189006 Tidobj189006;
typedef struct Ttypeseq214824 Ttypeseq214824;
typedef struct Tscope214816 Tscope214816;
typedef struct TY214925 TY214925;
typedef struct Tstrtable214794 Tstrtable214794;
typedef struct Tloc214804 Tloc214804;
typedef struct Ropeobj169006 Ropeobj169006;
typedef struct Tlib214808 Tlib214808;
typedef struct Tidtable214840 Tidtable214840;
typedef struct Tidpairseq214838 Tidpairseq214838;
typedef struct TY88487 TY88487;
typedef struct Slice88080 Slice88080;
typedef struct Tidnodepair214842 Tidnodepair214842;
typedef struct Basechunk29638 Basechunk29638;
typedef struct Freecell29630 Freecell29630;
typedef struct Tinstantiation214812 Tinstantiation214812;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct Tidpair214836 Tidpair214836;
typedef struct TY214913 TY214913;
struct  Tlineinfo182337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tnode214790  {
Ttype214828* typ;
Tlineinfo182337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym214822* sym;
} S4;
struct {Tident189012* ident;
} S5;
struct {Tnodeseq214784* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef N_NIMCALL_PTR(void, TY3489) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3494) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3489 marker;
TY3494 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext261002  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Ttransfcontext384008  {
  Tpasscontext261002 Sup;
Tsym214822* module;
Ttranscon384006* transcon;
NI inlining;
NI nestedprocs;
Tsymseq214792* contsyms;
Tsymseq214792* breaksyms;
NIM_BOOL deferdetected;
NIM_BOOL tooearly;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tidnodetable214846  {
NI counter;
Tidnodepairseq214844* data;
};
struct  Ttranscon384006  {
Tidnodetable214846 mapping;
Tsym214822* owner;
Tnode214790* forstmt;
Tnode214790* forloopbody;
NI yieldstmts;
Ttranscon384006* next;
};
struct  Cell47505  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47521  {
NI len;
NI cap;
Cell47505** d;
};
struct  Cellset47517  {
NI counter;
NI max;
Pagedesc47513* head;
Pagedesc47513** data;
};
typedef Smallchunk29640* TY29703[512];
typedef Trunk29610* Trunkbuckets29612[256];
struct  Intset29614  {
Trunkbuckets29612 data;
};
struct  Memregion29688  {
NI minlargeobj;
NI maxlargeobj;
TY29703 freesmallchunks;
Llchunk29682* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Bigchunk29642* freechunkslist;
Intset29614 chunkstarts;
Avlnode29686* root;
Avlnode29686* deleted;
Avlnode29686* last;
Avlnode29686* freeavlnodes;
};
struct  Gcstat49814  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Gcheap49818  {
Gcstack49816* stack;
void* stackbottom;
NI cyclethreshold;
Cellseq47521 zct;
Cellseq47521 decstack;
Cellset47517 cycleroots;
Cellseq47521 tempstack;
NI recgclock;
Memregion29688 region;
Gcstat49814 stat;
};
struct  Tidobj189006  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable214794  {
NI counter;
Tsymseq214792* data;
};
struct  Tloc214804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype214828* t;
Ropeobj169006* r;
Ropeobj169006* heaproot;
};
struct  Tsym214822  {
  Tidobj189006 Sup;
NU8 kind;
union{
struct {Ttypeseq214824* typeinstcache;
Tscope214816* typscope;
} S1;
struct {TY214925* procinstcache;
Tsym214822* gcunsafetyreason;
} S2;
struct {TY214925* usedgenerics;
Tstrtable214794 tab;
} S3;
struct {Tsym214822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype214828* typ;
Tident189012* name;
Tlineinfo182337 info;
Tsym214822* owner;
NU32 flags;
Tnode214790* ast;
NU32 options;
NI position;
NI offset;
Tloc214804 loc;
Tlib214808* annex;
Tnode214790* constraint;
};
struct  Ttype214828  {
  Tidobj189006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq214824* sons;
Tnode214790* n;
Tsym214822* owner;
Tsym214822* sym;
Tsym214822* destructor;
Tsym214822* deepcopy;
Tsym214822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc214804 loc;
};
struct  Tidtable214840  {
NI counter;
Tidpairseq214838* data;
};
struct TY88487 {
NimStringDesc* Field0;
NI Field1;
};
struct  Slice88080  {
NI a;
NI b;
};
struct  Tident189012  {
  Tidobj189006 Sup;
NimStringDesc* s;
Tident189012* next;
NI h;
};
struct  Tidnodepair214842  {
Tidobj189006* key;
Tnode214790* val;
};
struct  Gcstack49816  {
Gcstack49816* prev;
Gcstack49816* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29619[8];
struct  Pagedesc47513  {
Pagedesc47513* next;
NI key;
TY29619 bits;
};
struct  Basechunk29638  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Smallchunk29640  {
  Basechunk29638 Sup;
Smallchunk29640* next;
Smallchunk29640* prev;
Freecell29630* freelist;
NI free;
NI acc;
NF data;
};
struct  Llchunk29682  {
NI size;
NI acc;
Llchunk29682* next;
};
struct  Bigchunk29642  {
  Basechunk29638 Sup;
Bigchunk29642* next;
Bigchunk29642* prev;
NI align;
NF data;
};
struct  Trunk29610  {
Trunk29610* next;
NI key;
TY29619 bits;
};
typedef Avlnode29686* TY29693[2];
struct  Avlnode29686  {
TY29693 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope214816  {
NI depthlevel;
Tstrtable214794 symbols;
Tnodeseq214784* usingsyms;
Tscope214816* parent;
};
struct  Ropeobj169006  {
  TNimObject Sup;
Ropeobj169006* left;
Ropeobj169006* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Tlib214808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj169006* name;
Tnode214790* path;
};
struct  Tidpair214836  {
Tidobj189006* key;
TNimObject* val;
};
struct  Freecell29630  {
Freecell29630* next;
NI zerofield;
};
struct  Tinstantiation214812  {
Tsym214822* sym;
Ttypeseq214824* concretetypes;
TY214913* usedby;
NI compilesid;
};
struct Tsymseq214792 {
  TGenericSeq Sup;
  Tsym214822* data[SEQ_DECL_SIZE];
};
struct Tnodeseq214784 {
  TGenericSeq Sup;
  Tnode214790* data[SEQ_DECL_SIZE];
};
struct Tidnodepairseq214844 {
  TGenericSeq Sup;
  Tidnodepair214842 data[SEQ_DECL_SIZE];
};
struct Ttypeseq214824 {
  TGenericSeq Sup;
  Ttype214828* data[SEQ_DECL_SIZE];
};
struct TY214925 {
  TGenericSeq Sup;
  Tinstantiation214812* data[SEQ_DECL_SIZE];
};
struct Tidpairseq214838 {
  TGenericSeq Sup;
  Tidpair214836 data[SEQ_DECL_SIZE];
};
struct TY214913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Ttransfcontext384008*, opentransf_387040)(Tsym214822* module, NimStringDesc* filename);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP3433)(void* p, NI op);
N_NIMCALL(void, TMP3434)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell47505*, usrtocell_51440)(void* usr);
static N_INLINE(void, rtladdzct_53001)(Cell47505* c);
N_NOINLINE(void, addzct_51417)(Cellseq47521* s, Cell47505* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Tnode214790*, processtransf_387014)(Ttransfcontext384008* c, Tnode214790* n, Tsym214822* owner);
N_NIMCALL(void, pushtranscon_384210)(Ttransfcontext384008* c, Ttranscon384006* t);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_53819)(Cell47505* c);
static N_INLINE(NIM_BOOL, canbecycleroot_51458)(Cell47505* c);
static N_INLINE(void, rtladdcycleroot_52220)(Cell47505* c);
N_NOINLINE(void, incl_48247)(Cellset47517* s, Cell47505* cell);
static N_INLINE(void, decref_53401)(Cell47505* c);
N_NIMCALL(Ttranscon384006*, newtranscon_384092)(Tsym214822* owner);
N_NIMCALL(void, initidnodetable_218085)(Tidnodetable214846* x);
N_NIMCALL(Tnode214790*, transform_384286)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(Tnode214790*, transformsym_384433)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(Tnode214790*, transformsymaux_384322)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(Tnode214790*, liftitersym_379960)(Tnode214790* n, Tsym214822* owner);
N_NIMCALL(Tsym214822*, getcurrowner_384229)(Ttransfcontext384008* c);
N_NIMCALL(Tnode214790*, makeclosure_379896)(Tsym214822* prc, Tnode214790* env, Tlineinfo182337 info);
N_NIMCALL(Tnode214790*, getbody_254827)(Tsym214822* s);
N_NIMCALL(void, internalerror_187100)(Tlineinfo182337 info, NimStringDesc* errmsg);
N_NIMCALL(Tnode214790*, newsymnode_216234)(Tsym214822* sym);
N_NIMCALL(Tnode214790*, idnodetableget_221125)(Tidnodetable214846 t, Tidobj189006* key);
N_NIMCALL(Tnode214790*, transformarrayaccess_385961)(Ttransfcontext384008* c, Tnode214790* n);
static N_INLINE(Tnode214790*, newtransnode_384027)(Tnode214790* a);
N_NIMCALL(Tnode214790*, shallowcopy_218611)(Tnode214790* src);
static N_INLINE(NI, len_215059)(Tnode214790* n);
static N_INLINE(void, HEX5BHEX5DHEX3D_384069)(Tnode214790* a, NI i, Tnode214790* x);
N_NIMCALL(Tnode214790*, skipconv_249082)(Tnode214790* n);
N_NIMCALL(Tnode214790*, transformfor_385526)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(NI, sonslen_217351)(Tnode214790* n);
N_NIMCALL(Tsym214822*, newlabel_384712)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(Tsym214822*, newsym_215683)(NU8 symkind, Tident189012* name, Tsym214822* owner, Tlineinfo182337 info);
N_NIMCALL(Tident189012*, getident_189441)(NimStringDesc* identifier);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
static N_INLINE(Tnode214790*, newtransnode_384031)(NU8 kind, Tlineinfo182337 info, NI sons);
N_NIMCALL(Tnode214790*, newnodei_216248)(NU8 kind, Tlineinfo182337 info);
N_NIMCALL(Tnode214790*, newnode_215401)(NU8 kind);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(Tnode214790*, transformloopbody_384870)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(NIM_BOOL, hascontinue_384687)(Tnode214790* n);
static N_INLINE(Tsym214822*, pop_384840)(Tsymseq214792** s);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(Tnode214790*, liftforloop_383369)(Tnode214790* body, Tsym214822* owner);
N_NIMCALL(void, addvar_376017)(Tnode214790* father, Tnode214790* v);
N_NIMCALL(Tnode214790*, copytree_218822)(Tnode214790* src);
static N_INLINE(void, add_384084)(Tnode214790* a, Tnode214790* b);
N_NIMCALL(void, addson_216807)(Tnode214790* father, Tnode214790* son);
N_NIMCALL(Ttype214828*, skiptypes_218113)(Ttype214828* t, NU64 kinds);
N_NIMCALL(NU8, putarginto_385400)(Tnode214790* arg, Ttype214828* formal);
N_NIMCALL(void, idnodetableput_221129)(Tidnodetable214846* t, Tidobj189006* key, Tnode214790* val);
N_NIMCALL(Tnode214790*, newtemp_384245)(Ttransfcontext384008* c, Ttype214828* typ, Tlineinfo182337 info);
N_NIMCALL(Tnode214790*, freshvarforclosureiter_380014)(Tsym214822* s, Tsym214822* owner);
N_NIMCALL(Tnode214790*, newasgnstmt_384316)(Ttransfcontext384008* c, Tnode214790* le, Tnode214790* ri);
N_NIMCALL(void, pushinfocontext_183206)(Tlineinfo182337 info);
N_NIMCALL(void, initidtable_218033)(Tidtable214840* x);
N_NIMCALL(void, freshlabels_384719)(Ttransfcontext384008* c, Tnode214790* n, Tidtable214840* symmap);
static N_INLINE(Tnode214790*, HEX5BHEX5D_215238)(Tnode214790* n, NI i);
N_NIMCALL(void, idtableput_221115)(Tidtable214840* t, Tidobj189006* key, TNimObject* val);
N_NIMCALL(TNimObject*, idtableget_221107)(Tidtable214840 t, Tidobj189006* key);
static N_INLINE(NI, safelen_215081)(Tnode214790* n);
N_NIMCALL(void, popinfocontext_183219)(void);
N_NIMCALL(void, poptranscon_384214)(Ttransfcontext384008* c);
N_NIMCALL(void, internalerror_187113)(NimStringDesc* errmsg);
N_NIMCALL(Tnode214790*, transformsons_384290)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(Tnode214790*, transformcase_385873)(Ttransfcontext384008* c, Tnode214790* n);
static N_INLINE(Tnode214790*, newtransnode_384050)(NU8 kind, Tnode214790* n, NI sons);
N_NIMCALL(Tnode214790*, newnodeit_216801)(NU8 kind, Tlineinfo182337 info, Ttype214828* typ);
N_NIMCALL(Tnode214790*, lastson_217364)(Tnode214790* n);
N_NIMCALL(Tnode214790*, transformwhile_384897)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(Tnode214790*, transformblock_384811)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(Tnode214790*, transformbreak_384964)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(Tnode214790*, transformcall_386124)(Ttransfcontext384008* c, Tnode214790* n_386127);
N_NIMCALL(Tnode214790*, flattentree_386106)(Tnode214790* root);
N_NIMCALL(Tsym214822*, getmergeop_386016)(Tnode214790* n);
N_NIMCALL(Tnode214790*, copynode_218542)(Tnode214790* src);
N_NIMCALL(void, flattentreeaux_386044)(Tnode214790* d, Tnode214790* a, Tsym214822* op);
N_NIMCALL(NU8, getmagic_239323)(Tnode214790* op);
N_NIMCALL(NIM_BOOL, isconstexpr_239336)(Tnode214790* n);
N_NIMCALL(Tnode214790*, evalop_275005)(NU8 m, Tnode214790* n, Tnode214790* a, Tnode214790* b, Tnode214790* c);
static N_INLINE(NI, len_384088)(Tnode214790* a);
static N_INLINE(Tnode214790*, HEX5BHEX5D_384076)(Tnode214790* a, NI i);
N_NIMCALL(void, methoddef_374628)(Tsym214822* s, NIM_BOOL fromcache);
N_NIMCALL(Tnode214790*, methodcall_374036)(Tnode214790* n);
N_NIMCALL(Tnode214790*, transformaddrderef_385154)(Ttransfcontext384008* c, Tnode214790* n_385157, NU8 a, NU8 b);
N_NIMCALL(Tnode214790*, transformconv_385283)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(NIM_BOOL, isordinaltype_240057)(Ttype214828* t);
N_NIMCALL(NI64, firstord_240001)(Ttype214828* t);
N_NIMCALL(NI64, lastord_240004)(Ttype214828* t);
N_NIMCALL(Tnode214790*, newinttypenode_215665)(NU8 kind, NI64 intval, Ttype214828* typ);
N_NIMCALL(Ttype214828*, taketype_249135)(Ttype214828* formal, Ttype214828* arg);
N_NIMCALL(NI, inheritancediff_246442)(Ttype214828* a, Ttype214828* b);
N_NIMCALL(Tnode214790*, generatethunk_385255)(Tnode214790* prc, Ttype214828* dest);
N_NIMCALL(void, add_215114)(Tnode214790* father, Tnode214790* son);
N_NIMCALL(Ttype214828*, getsystype_258130)(NU8 kind);
N_NIMCALL(Tnode214790*, transformconstsection_384619)(Ttransfcontext384008* c, Tnode214790* v);
N_NIMCALL(Tnode214790*, transformvarsection_384477)(Ttransfcontext384008* c, Tnode214790* v);
N_NIMCALL(NimStringDesc*, HEX24_187183)(TY88487 x);
N_NIMCALL(Tnode214790*, freshvar_384438)(Ttransfcontext384008* c, Tsym214822* v);
N_NIMCALL(Tsym214822*, copysym_217601)(Tsym214822* s, NIM_BOOL keepid);
static N_INLINE(NIM_BOOL, importantcomments_160154)(void);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
N_NIMCALL(Tnode214790*, transformyield_385086)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(void, unpacktuple_385003)(Ttransfcontext384008* c, Tnode214790* n, Tnode214790* father);
N_NIMCALL(Tnode214790*, newtupleaccess_376010)(Tnode214790* tup, NI i);
N_NIMCALL(Tnode214790*, introducenewlocalvars_385029)(Ttransfcontext384008* c, Tnode214790* n);
N_NIMCALL(Tnode214790*, getconstexpr_275001)(Tsym214822* m, Tnode214790* n);
static N_INLINE(NIM_BOOL, dontinlineconstant_386253)(Tnode214790* orig, Tnode214790* cnst);
N_NIMCALL(void, liftdeferaux_387379)(Tnode214790* n);
N_NIMCALL(void, flattenstmts_387085)(Tnode214790* n);
N_NIMCALL(void, HEX5BHEX5DHEX3D_387186)(Tnodeseq214784** s, Slice88080 x, Tnode214790** b, NI bLen0);
static N_INLINE(Slice88080, HEX2EHEX2E_102424)(NI a, NI b);
N_NIMCALL(Tnodeseq214784*, HEX5BHEX5D_387135)(Tnodeseq214784* s, Slice88080 x);
N_NIMCALL(Tnode214790*, commonoptimizations_386279)(Tsym214822* c, Tnode214790* n);
N_NIMCALL(Tnode214790*, liftlambdas_383237)(Tsym214822* fn, Tnode214790* body, NIM_BOOL* tooearly);
N_NIMCALL(void, trackproc_347165)(Tsym214822* s, Tnode214790* body);
N_NIMCALL(void, tracktoplevelstmt_347402)(Tsym214822* module, Tnode214790* n);
STRING_LITERAL(TMP3435, "", 0);
STRING_LITERAL(TMP3436, "wrong AST for borrowed symbol", 29);
STRING_LITERAL(TMP3437, "transformFor", 12);
STRING_LITERAL(TMP3438, ":tmp", 4);
STRING_LITERAL(TMP3441, "popTransCon", 11);
STRING_LITERAL(TMP3457, "closure to closure created", 26);
STRING_LITERAL(TMP3458, "transformConstSection", 21);
STRING_LITERAL(TMP3460, "compiler/transf.nim", 19);
NIM_CONST TY88487 TMP3459 = {((NimStringDesc*) &TMP3460),
((NI) 167)}
;
STRING_LITERAL(TMP3461, "transformVarSection: not nkVarTuple", 35);
extern TNimType NTI261002; /* TPassContext */
TNimType NTI384008; /* TTransfContext */
extern TNimType NTI214788; /* PSym */
TNimType NTI384006; /* TTransCon */
extern TNimType NTI214846; /* TIdNodeTable */
extern TNimType NTI214782; /* PNode */
extern TNimType NTI104; /* int */
TNimType NTI384004; /* PTransCon */
extern TNimType NTI214792; /* TSymSeq */
extern TNimType NTI130; /* bool */
TNimType NTI384010; /* PTransf */
extern Gcheap49818 gch_49859;
extern TNimType NTI214784; /* TNodeSeq */
extern NU8 gcmd_160123;
extern Tnode214790* emptynode_215801;
N_NIMCALL(void, TMP3433)(void* p, NI op) {
	Ttranscon384006* a;
	a = (Ttranscon384006*)p;
	nimGCvisit((void*)(*a).mapping.data, op);
	nimGCvisit((void*)(*a).owner, op);
	nimGCvisit((void*)(*a).forstmt, op);
	nimGCvisit((void*)(*a).next, op);
}
N_NIMCALL(void, TMP3434)(void* p, NI op) {
	Ttransfcontext384008* a;
	a = (Ttransfcontext384008*)p;
	nimGCvisit((void*)(*a).module, op);
	nimGCvisit((void*)(*a).transcon, op);
	nimGCvisit((void*)(*a).contsyms, op);
	nimGCvisit((void*)(*a).breaksyms, op);
}

static N_INLINE(Cell47505*, usrtocell_51440)(void* usr) {
	Cell47505* result;
	result = 0;
	result = ((Cell47505*) ((NI)((NU64)(((NI) (usr))) - (NU64)(((NI)sizeof(Cell47505))))));
	return result;
}

static N_INLINE(void, rtladdzct_53001)(Cell47505* c) {
	addzct_51417((&gch_49859.zct), c);
}

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell47505* c;
	c = usrtocell_51440(p);
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_53001(c);
	}
	LA3: ;
}

static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src) {
	{
		Cell47505* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_51440(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell47505* c;
		if (!!(((*dest) == NIM_NIL))) goto LA7;
		c = usrtocell_51440((*dest));
		{
			(*c).refcount -= ((NI) 8);
			if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA11;
			rtladdzct_53001(c);
		}
		LA11: ;
	}
	LA7: ;
	(*dest) = src;
}

N_NIMCALL(Ttransfcontext384008*, opentransf_387040)(Tsym214822* module, NimStringDesc* filename) {
	Ttransfcontext384008* result;
	result = 0;
	result = (Ttransfcontext384008*) newObj((&NTI384010), sizeof(Ttransfcontext384008));
	(*result).Sup.Sup.m_type = (&NTI384008);
	if ((*result).contsyms) nimGCunrefNoCycle((*result).contsyms);
	(*result).contsyms = (Tsymseq214792*) newSeqRC1((&NTI214792), 0);
	if ((*result).breaksyms) nimGCunrefNoCycle((*result).breaksyms);
	(*result).breaksyms = (Tsymseq214792*) newSeqRC1((&NTI214792), 0);
	asgnRefNoCycle((void**) (&(*result).module), module);
	return result;
}

static N_INLINE(NIM_BOOL, canbecycleroot_51458)(Cell47505* c) {
	NIM_BOOL result;
	result = 0;
	result = !((((*(*c).typ).flags &(1U<<((NU)(((NU8) 1))&7U)))!=0));
	return result;
}

static N_INLINE(void, rtladdcycleroot_52220)(Cell47505* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_48247((&gch_49859.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_53819)(Cell47505* c) {
	(*c).refcount = (NI)((NU64)((*c).refcount) + (NU64)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_51458(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_52220(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_53401)(Cell47505* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_53001(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_51458(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_52220(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Cell47505* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_51440(src);
		incref_53819(LOC5);
	}
	LA3: ;
	{
		Cell47505* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_51440((*dest));
		decref_53401(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(void, pushtranscon_384210)(Ttransfcontext384008* c, Ttranscon384006* t) {
	asgnRef((void**) (&(*t).next), (*c).transcon);
	asgnRef((void**) (&(*c).transcon), t);
}

N_NIMCALL(Ttranscon384006*, newtranscon_384092)(Tsym214822* owner) {
	Ttranscon384006* result;
	result = 0;
	result = (Ttranscon384006*) newObj((&NTI384004), sizeof(Ttranscon384006));
	initidnodetable_218085((&(*result).mapping));
	asgnRefNoCycle((void**) (&(*result).owner), owner);
	return result;
}

N_NIMCALL(Tsym214822*, getcurrowner_384229)(Ttransfcontext384008* c) {
	Tsym214822* result;
	result = 0;
	{
		if (!!(((*c).transcon == NIM_NIL))) goto LA3;
		result = (*(*c).transcon).owner;
	}
	goto LA1;
	LA3: ;
	{
		result = (*c).module;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, transformsymaux_384322)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	Tsym214822* s;
	Tnode214790* b;
	Ttranscon384006* tc;
{	result = 0;
	s = (*n).kindU.S4.sym;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = !(((*s).typ == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*(*s).typ).callconv == ((NU8) 8));
		LA4: ;
		if (!LOC3) goto LA5;
		{
			if (!((*s).kind == ((NU8) 14))) goto LA9;
			{
				if (!(*c).tooearly) goto LA13;
				result = n;
				goto BeforeRet;
			}
			goto LA11;
			LA13: ;
			{
				Tsym214822* LOC16;
				LOC16 = 0;
				LOC16 = getcurrowner_384229(c);
				result = liftitersym_379960(n, LOC16);
				goto BeforeRet;
			}
			LA11: ;
		}
		goto LA7;
		LA9: ;
		{
			NIM_BOOL LOC18;
			LOC18 = 0;
			LOC18 = ((45056 &(1U<<((NU)((*s).kind)&31U)))!=0);
			if (!(LOC18)) goto LA19;
			LOC18 = !((*c).tooearly);
			LA19: ;
			if (!LOC18) goto LA20;
			result = makeclosure_379896(s, NIM_NIL, (*n).info);
			goto BeforeRet;
		}
		goto LA7;
		LA20: ;
		LA7: ;
	}
	LA5: ;
	b = 0;
	tc = (*c).transcon;
	{
		NIM_BOOL LOC24;
		LOC24 = 0;
		LOC24 = (((*s).flags &(1U<<((NU)(((NU8) 26))&31U)))!=0);
		if (!(LOC24)) goto LA25;
		LOC24 = ((258048 &(1U<<((NU)((*s).kind)&31U)))!=0);
		LA25: ;
		if (!LOC24) goto LA26;
		b = getbody_254827(s);
		{
			if (!!(((*b).kind == ((NU8) 3)))) goto LA30;
			internalerror_187100((*n).info, ((NimStringDesc*) &TMP3436));
		}
		LA30: ;
		b = newsymnode_216234((*b).kindU.S4.sym);
		(*b).info = (*n).info;
	}
	goto LA22;
	LA26: ;
	{
		b = n;
	}
	LA22: ;
	{
		while (1) {
			Tidobj189006* LOC35;
			if (!!((tc == NIM_NIL))) goto LA34;
			LOC35 = 0;
			LOC35 = &(*b).kindU.S4.sym->Sup;
			result = idnodetableget_221125((*tc).mapping, LOC35);
			{
				if (!!((result == NIM_NIL))) goto LA38;
				goto BeforeRet;
			}
			LA38: ;
			tc = (*tc).next;
		} LA34: ;
	}
	result = b;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, transformsym_384433)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	result = 0;
	result = transformsymaux_384322(c, n);
	return result;
}

static N_INLINE(Tnode214790*, newtransnode_384027)(Tnode214790* a) {
	Tnode214790* result;
	result = 0;
	result = shallowcopy_218611(a);
	return result;
}

static N_INLINE(NI, len_215059)(Tnode214790* 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;
}

static N_INLINE(void, HEX5BHEX5DHEX3D_384069)(Tnode214790* a, NI i, Tnode214790* x) {
	Tnode214790* n;
	n = a;
	asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[i]), x);
}

N_NIMCALL(Tnode214790*, transformarrayaccess_385961)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3));
		if (!(LOC3)) goto LA4;
		LOC3 = ((*(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).kind == ((NU8) 7));
		LA4: ;
		if (!LOC3) goto LA5;
		result = n;
	}
	goto LA1;
	LA5: ;
	{
		result = newtransnode_384027(n);
		{
			NI i_386006;
			NI HEX3Atmp_386009;
			NI LOC9;
			NI res_386012;
			i_386006 = 0;
			HEX3Atmp_386009 = 0;
			LOC9 = 0;
			LOC9 = len_215059(n);
			HEX3Atmp_386009 = (LOC9 - 1);
			res_386012 = ((NI) 0);
			{
				while (1) {
					Tnode214790* LOC12;
					Tnode214790* LOC13;
					if (!(res_386012 <= HEX3Atmp_386009)) goto LA11;
					i_386006 = res_386012;
					LOC12 = 0;
					LOC12 = skipconv_249082((*n).kindU.S6.sons->data[i_386006]);
					LOC13 = 0;
					LOC13 = transform_384286(c, LOC12);
					HEX5BHEX5DHEX3D_384069(result, i_386006, LOC13);
					res_386012 += ((NI) 1);
				} LA11: ;
			}
		}
	}
	LA1: ;
	return result;
}

static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
	memcpy(((NCSTRING) ((&(*dest).data[((*dest).Sup.len)- 0]))), ((NCSTRING) ((*src).data)), (NI)((*src).Sup.len + ((NI) 1)));
	(*dest).Sup.len += (*src).Sup.len;
}

N_NIMCALL(Tsym214822*, newlabel_384712)(Ttransfcontext384008* c, Tnode214790* n) {
	Tsym214822* result;
	Tsym214822* LOC1;
	NimStringDesc* LOC2;
	NimStringDesc* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_384229(c);
	result = newsym_215683(((NU8) 21), NIM_NIL, LOC1, (*n).info);
	LOC2 = 0;
	LOC3 = 0;
	LOC3 = nimIntToStr((*result).Sup.id);
	LOC2 = rawNewString(LOC3->Sup.len + 4);
appendString(LOC2, ((NimStringDesc*) &TMP3438));
appendString(LOC2, LOC3);
	asgnRefNoCycle((void**) (&(*result).name), getident_189441(LOC2));
	return result;
}

static N_INLINE(Tnode214790*, newtransnode_384031)(NU8 kind, Tlineinfo182337 info, NI sons) {
	Tnode214790* result;
	Tnode214790* x;
	result = 0;
	x = newnodei_216248(kind, info);
	if ((*x).kindU.S6.sons) nimGCunrefNoCycle((*x).kindU.S6.sons);
	(*x).kindU.S6.sons = (Tnodeseq214784*) newSeqRC1((&NTI214784), ((NI) (sons)));
	result = x;
	return result;
}

N_NIMCALL(NIM_BOOL, hascontinue_384687)(Tnode214790* n) {
	NIM_BOOL result;
{	result = 0;
	switch ((*n).kind) {
	case ((NU8) 1) ... ((NU8) 23):
	case ((NU8) 94):
	case ((NU8) 95):
	case ((NU8) 96):
	{
	}
	break;
	case ((NU8) 111):
	{
		result = NIM_TRUE;
	}
	break;
	default:
	{
		{
			NI i_384702;
			NI HEX3Atmp_384705;
			NI LOC5;
			NI res_384708;
			i_384702 = 0;
			HEX3Atmp_384705 = 0;
			LOC5 = 0;
			LOC5 = sonslen_217351(n);
			HEX3Atmp_384705 = (NI)(LOC5 - ((NI) 1));
			res_384708 = ((NI) 0);
			{
				while (1) {
					if (!(res_384708 <= HEX3Atmp_384705)) goto LA7;
					i_384702 = res_384708;
					{
						NIM_BOOL LOC10;
						LOC10 = 0;
						LOC10 = hascontinue_384687((*n).kindU.S6.sons->data[i_384702]);
						if (!LOC10) goto LA11;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA11: ;
					res_384708 += ((NI) 1);
				} LA7: ;
			}
		}
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

static N_INLINE(Tsym214822*, pop_384840)(Tsymseq214792** s) {
	Tsym214822* result;
	NI L;
	result = 0;
	L = (NI)(((*s) ? (*s)->Sup.len : 0) - ((NI) 1));
	result = (*s)->data[L];
	(*s) = (Tsymseq214792*) setLengthSeq(&((*s))->Sup, sizeof(Tsym214822*), ((NI) (L)));
	return result;
}

N_NIMCALL(Tnode214790*, transformloopbody_384870)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		Tsym214822* labl;
		Tnode214790* LOC6;
		Tnode214790* LOC7;
		Tsym214822* LOC8;
		LOC3 = 0;
		LOC3 = hascontinue_384687(n);
		if (!LOC3) goto LA4;
		labl = newlabel_384712(c, n);
		(*c).contsyms = (Tsymseq214792*) incrSeqV2(&((*c).contsyms)->Sup, sizeof(Tsym214822*));
		asgnRefNoCycle((void**) (&(*c).contsyms->data[(*c).contsyms->Sup.len]), labl);
		++(*c).contsyms->Sup.len;
		result = newtransnode_384031(((NU8) 112), (*n).info, ((NI) 2));
		LOC6 = 0;
		LOC6 = newsymnode_216234(labl);
		HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC6);
		LOC7 = 0;
		LOC7 = transform_384286(c, n);
		HEX5BHEX5DHEX3D_384069(result, ((NI) 1), LOC7);
		LOC8 = 0;
		LOC8 = pop_384840((&(*c).contsyms));
	}
	goto LA1;
	LA4: ;
	{
		result = transform_384286(c, n);
	}
	LA1: ;
	return result;
}

static N_INLINE(void, add_384084)(Tnode214790* a, Tnode214790* b) {
	addson_216807(a, b);
}

N_NIMCALL(NU8, putarginto_385400)(Tnode214790* arg, Ttype214828* formal) {
	NU8 result;
{	result = 0;
	{
		Ttype214828* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_218113(formal, IL64(211106232576256));
		if (!((IL64(281475110928384) &((NU64)1<<((NU)((*LOC3).kind)&63U)))!=0)) goto LA4;
		result = ((NU8) 0);
		goto BeforeRet;
	}
	LA4: ;
	switch ((*arg).kind) {
	case ((NU8) 1) ... ((NU8) 23):
	{
		result = ((NU8) 0);
	}
	break;
	case ((NU8) 37):
	case ((NU8) 39):
	case ((NU8) 41):
	{
		result = ((NU8) 1);
		{
			NI i_385427;
			NI HEX3Atmp_385448;
			NI LOC9;
			NI res_385451;
			i_385427 = 0;
			HEX3Atmp_385448 = 0;
			LOC9 = 0;
			LOC9 = sonslen_217351(arg);
			HEX3Atmp_385448 = (NI)(LOC9 - ((NI) 1));
			res_385451 = ((NI) 0);
			{
				while (1) {
					if (!(res_385451 <= HEX3Atmp_385448)) goto LA11;
					i_385427 = res_385451;
					{
						NU8 LOC14;
						LOC14 = 0;
						LOC14 = putarginto_385400((*arg).kindU.S6.sons->data[i_385427], formal);
						if (!!((LOC14 == ((NU8) 0)))) goto LA15;
						goto BeforeRet;
					}
					LA15: ;
					res_385451 += ((NI) 1);
				} LA11: ;
			}
		}
		result = ((NU8) 0);
	}
	break;
	default:
	{
		{
			Ttype214828* LOC20;
			LOC20 = 0;
			LOC20 = skiptypes_218113(formal, IL64(211106232576256));
			if (!((*LOC20).kind == ((NU8) 23))) goto LA21;
			result = ((NU8) 2);
		}
		goto LA18;
		LA21: ;
		{
			result = ((NU8) 1);
		}
		LA18: ;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, newtemp_384245)(Ttransfcontext384008* c, Ttype214828* typ, Tlineinfo182337 info) {
	Tnode214790* result;
	Tsym214822* r;
	Tident189012* LOC1;
	Tsym214822* LOC2;
	Tsym214822* owner;
	result = 0;
	LOC1 = 0;
	LOC1 = getident_189441(((NimStringDesc*) &TMP3438));
	LOC2 = 0;
	LOC2 = getcurrowner_384229(c);
	r = newsym_215683(((NU8) 5), LOC1, LOC2, info);
	asgnRefNoCycle((void**) (&(*r).typ), skiptypes_218113(typ, 2048));
	(*r).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
	owner = getcurrowner_384229(c);
	{
		NIM_BOOL LOC5;
		NIM_BOOL LOC6;
		LOC5 = 0;
		LOC6 = 0;
		LOC6 = ((*owner).kind == ((NU8) 14));
		if (!(LOC6)) goto LA7;
		LOC6 = ((*(*owner).typ).callconv == ((NU8) 8));
		LA7: ;
		LOC5 = LOC6;
		if (!(LOC5)) goto LA8;
		LOC5 = !((*c).tooearly);
		LA8: ;
		if (!LOC5) goto LA9;
		result = freshvarforclosureiter_380014(r, owner);
	}
	goto LA3;
	LA9: ;
	{
		result = newsymnode_216234(r);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Tnode214790*, newasgnstmt_384316)(Ttransfcontext384008* c, Tnode214790* le, Tnode214790* ri) {
	Tnode214790* result;
	result = 0;
	result = newtransnode_384031(((NU8) 74), (*ri).info, ((NI) 2));
	HEX5BHEX5DHEX3D_384069(result, ((NI) 0), le);
	HEX5BHEX5DHEX3D_384069(result, ((NI) 1), ri);
	return result;
}

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

static N_INLINE(NI, safelen_215081)(Tnode214790* n) {
	NI result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = ((*n).kind >= ((NU8) 0) && (*n).kind <= ((NU8) 23));
		if (LOC3) goto LA4;
		LOC3 = (*n).kindU.S6.sons == 0;
		LA4: ;
		if (!LOC3) goto LA5;
		result = ((NI) 0);
	}
	goto LA1;
	LA5: ;
	{
		result = ((*n).kindU.S6.sons ? (*n).kindU.S6.sons->Sup.len : 0);
	}
	LA1: ;
	return result;
}

N_NIMCALL(void, freshlabels_384719)(Ttransfcontext384008* c, Tnode214790* n, Tidtable214840* symmap) {
	{
		if (!((*n).kind == ((NU8) 112) || (*n).kind == ((NU8) 127))) goto LA3;
		{
			Tsym214822* x;
			Tnode214790* LOC9;
			Tnode214790* LOC10;
			Tidobj189006* LOC11;
			TNimObject* LOC12;
			if (!((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3))) goto LA7;
			LOC9 = 0;
			LOC9 = HEX5BHEX5D_215238(n, ((NI) 0));
			x = newlabel_384712(c, LOC9);
			LOC10 = 0;
			LOC10 = HEX5BHEX5D_215238(n, ((NI) 0));
			LOC11 = 0;
			LOC11 = &(*LOC10).kindU.S4.sym->Sup;
			LOC12 = 0;
			LOC12 = &x->Sup.Sup;
			idtableput_221115(symmap, LOC11, LOC12);
			asgnRefNoCycle((void**) (&(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym), x);
		}
		LA7: ;
	}
	LA3: ;
	{
		NIM_BOOL LOC15;
		Tsym214822* x;
		Tidobj189006* LOC19;
		TNimObject* LOC20;
		LOC15 = 0;
		LOC15 = ((*n).kind == ((NU8) 3));
		if (!(LOC15)) goto LA16;
		LOC15 = ((*(*n).kindU.S4.sym).kind == ((NU8) 21));
		LA16: ;
		if (!LOC15) goto LA17;
		LOC19 = 0;
		LOC19 = &(*n).kindU.S4.sym->Sup;
		LOC20 = 0;
		LOC20 = idtableget_221107((*symmap), LOC19);
		x = ((Tsym214822*) (LOC20));
		{
			if (!!((x == NIM_NIL))) goto LA23;
			asgnRefNoCycle((void**) (&(*n).kindU.S4.sym), x);
		}
		LA23: ;
	}
	goto LA13;
	LA17: ;
	{
		{
			NI i_384801;
			NI HEX3Atmp_384804;
			NI LOC27;
			NI res_384807;
			i_384801 = 0;
			HEX3Atmp_384804 = 0;
			LOC27 = 0;
			LOC27 = safelen_215081(n);
			HEX3Atmp_384804 = (LOC27 - 1);
			res_384807 = ((NI) 0);
			{
				while (1) {
					if (!(res_384807 <= HEX3Atmp_384804)) goto LA29;
					i_384801 = res_384807;
					freshlabels_384719(c, (*n).kindU.S6.sons->data[i_384801], symmap);
					res_384807 += ((NI) 1);
				} LA29: ;
			}
		}
	}
	LA13: ;
}

N_NIMCALL(void, poptranscon_384214)(Ttransfcontext384008* c) {
	{
		if (!((*c).transcon == NIM_NIL)) goto LA3;
		internalerror_187113(((NimStringDesc*) &TMP3441));
	}
	LA3: ;
	asgnRef((void**) (&(*c).transcon), (*(*c).transcon).next);
}

N_NIMCALL(Tnode214790*, transformfor_385526)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	NI length;
	Tnode214790* call;
	Tsym214822* labl;
	Tnode214790* LOC5;
	Tnode214790* stmtlist;
	Tnode214790* loopbody;
	Tsym214822* LOC28;
	Tnode214790* v;
	Tsym214822* iter;
	Ttranscon384006* newc;
	Tsym214822* LOC33;
	Tnode214790* body;
	Tnode214790* LOC51;
	Tidtable214840 symmap;
	Tnode214790* LOC52;
{	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 94)))) goto LA3;
		internalerror_187100((*n).info, ((NimStringDesc*) &TMP3437));
	}
	LA3: ;
	length = sonslen_217351(n);
	call = (*n).kindU.S6.sons->data[(NI)(length - ((NI) 2))];
	labl = newlabel_384712(c, n);
	result = newtransnode_384031(((NU8) 112), (*n).info, ((NI) 2));
	LOC5 = 0;
	LOC5 = newsymnode_216234(labl);
	HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC5);
	{
		Tnode214790* LOC10;
		if (!(*call).typ == 0) goto LA8;
		LOC10 = 0;
		LOC10 = newnode_215401(((NU8) 1));
		HEX5BHEX5DHEX3D_384069(result, ((NI) 1), LOC10);
		goto BeforeRet;
	}
	LA8: ;
	(*c).breaksyms = (Tsymseq214792*) incrSeqV2(&((*c).breaksyms)->Sup, sizeof(Tsym214822*));
	asgnRefNoCycle((void**) (&(*c).breaksyms->data[(*c).breaksyms->Sup.len]), labl);
	++(*c).breaksyms->Sup.len;
	{
		NIM_BOOL LOC13;
		NIM_BOOL LOC14;
		Tsym214822* LOC27;
		LOC13 = 0;
		LOC14 = 0;
		LOC14 = !(((*call).kind == ((NU8) 27) || (*call).kind == ((NU8) 29) || (*call).kind == ((NU8) 30) || (*call).kind == ((NU8) 31) || (*call).kind == ((NU8) 26) || (*call).kind == ((NU8) 28) || (*call).kind == ((NU8) 32)));
		if (LOC14) goto LA15;
		LOC14 = !(((*(*call).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)));
		LA15: ;
		LOC13 = LOC14;
		if (LOC13) goto LA16;
		LOC13 = ((*(*(*call).kindU.S6.sons->data[((NI) 0)]).typ).callconv == ((NU8) 8));
		LA16: ;
		if (!LOC13) goto LA17;
		asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]), transformloopbody_384870(c, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]));
		{
			Tsym214822* LOC23;
			Tnode214790* LOC24;
			if (!!((*c).tooearly)) goto LA21;
			asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[(NI)(length - ((NI) 2))]), transform_384286(c, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 2))]));
			LOC23 = 0;
			LOC23 = getcurrowner_384229(c);
			LOC24 = 0;
			LOC24 = liftforloop_383369(n, LOC23);
			HEX5BHEX5DHEX3D_384069(result, ((NI) 1), LOC24);
		}
		goto LA19;
		LA21: ;
		{
			Tnode214790* LOC26;
			LOC26 = 0;
			LOC26 = newnode_215401(((NU8) 1));
			HEX5BHEX5DHEX3D_384069(result, ((NI) 1), LOC26);
		}
		LA19: ;
		LOC27 = 0;
		LOC27 = pop_384840((&(*c).breaksyms));
		goto BeforeRet;
	}
	LA17: ;
	stmtlist = newtransnode_384031(((NU8) 115), (*n).info, ((NI) 0));
	HEX5BHEX5DHEX3D_384069(result, ((NI) 1), stmtlist);
	loopbody = transformloopbody_384870(c, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]);
	LOC28 = 0;
	LOC28 = pop_384840((&(*c).breaksyms));
	v = newnodei_216248(((NU8) 99), (*n).info);
	{
		NI i_385635;
		NI HEX3Atmp_385827;
		NI res_385830;
		i_385635 = 0;
		HEX3Atmp_385827 = 0;
		HEX3Atmp_385827 = (NI)(length - ((NI) 3));
		res_385830 = ((NI) 0);
		{
			while (1) {
				Tnode214790* LOC32;
				if (!(res_385830 <= HEX3Atmp_385827)) goto LA31;
				i_385635 = res_385830;
				LOC32 = 0;
				LOC32 = copytree_218822((*n).kindU.S6.sons->data[i_385635]);
				addvar_376017(v, LOC32);
				res_385830 += ((NI) 1);
			} LA31: ;
		}
	}
	add_384084(stmtlist, v);
	iter = (*(*call).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
	LOC33 = 0;
	LOC33 = getcurrowner_384229(c);
	newc = newtranscon_384092(LOC33);
	asgnRefNoCycle((void**) (&(*newc).forstmt), n);
	asgnRefNoCycle((void**) (&(*newc).forloopbody), loopbody);
	{
		if (!!(((*iter).kind == ((NU8) 14)))) goto LA36;
		goto BeforeRet;
	}
	LA36: ;
	pushtranscon_384210(c, newc);
	{
		NI i_385662;
		NI HEX3Atmp_385835;
		NI LOC39;
		NI res_385838;
		i_385662 = 0;
		HEX3Atmp_385835 = 0;
		LOC39 = 0;
		LOC39 = sonslen_217351(call);
		HEX3Atmp_385835 = (NI)(LOC39 - ((NI) 1));
		res_385838 = ((NI) 1);
		{
			while (1) {
				Tnode214790* arg;
				Tsym214822* formal;
				Ttype214828* LOC42;
				NU8 LOC43;
				if (!(res_385838 <= HEX3Atmp_385835)) goto LA41;
				i_385662 = res_385838;
				arg = transform_384286(c, (*call).kindU.S6.sons->data[i_385662]);
				LOC42 = 0;
				LOC42 = skiptypes_218113((*iter).typ, IL64(211106232576256));
				formal = (*(*(*LOC42).n).kindU.S6.sons->data[i_385662]).kindU.S4.sym;
				LOC43 = 0;
				LOC43 = putarginto_385400(arg, (*formal).typ);
				switch (LOC43) {
				case ((NU8) 0):
				{
					Tidobj189006* LOC45;
					LOC45 = 0;
					LOC45 = &formal->Sup;
					idnodetableput_221129((&(*newc).mapping), LOC45, arg);
				}
				break;
				case ((NU8) 1):
				{
					Tnode214790* temp;
					Tnode214790* LOC47;
					Tidobj189006* LOC48;
					temp = newtemp_384245(c, (*formal).typ, (*formal).info);
					addvar_376017(v, temp);
					LOC47 = 0;
					LOC47 = newasgnstmt_384316(c, temp, arg);
					add_384084(stmtlist, LOC47);
					LOC48 = 0;
					LOC48 = &formal->Sup;
					idnodetableput_221129((&(*newc).mapping), LOC48, temp);
				}
				break;
				case ((NU8) 2):
				{
					Tidobj189006* LOC50;
					LOC50 = 0;
					LOC50 = &formal->Sup;
					idnodetableput_221129((&(*newc).mapping), LOC50, arg);
				}
				break;
				}
				res_385838 += ((NI) 1);
			} LA41: ;
		}
	}
	LOC51 = 0;
	LOC51 = getbody_254827(iter);
	body = copytree_218822(LOC51);
	pushinfocontext_183206((*n).info);
	memset((void*)(&symmap), 0, sizeof(symmap));
	initidtable_218033((&symmap));
	freshlabels_384719(c, body, (&symmap));
	(*c).inlining += ((NI) 1);
	LOC52 = 0;
	LOC52 = transform_384286(c, body);
	add_384084(stmtlist, LOC52);
	(*c).inlining -= ((NI) 1);
	popinfocontext_183219();
	poptranscon_384214(c);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, transformsons_384290)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	result = 0;
	result = newtransnode_384027(n);
	{
		NI i_384306;
		NI HEX3Atmp_384309;
		NI LOC2;
		NI res_384312;
		i_384306 = 0;
		HEX3Atmp_384309 = 0;
		LOC2 = 0;
		LOC2 = sonslen_217351(n);
		HEX3Atmp_384309 = (NI)(LOC2 - ((NI) 1));
		res_384312 = ((NI) 0);
		{
			while (1) {
				Tnode214790* LOC5;
				if (!(res_384312 <= HEX3Atmp_384309)) goto LA4;
				i_384306 = res_384312;
				LOC5 = 0;
				LOC5 = transform_384286(c, (*n).kindU.S6.sons->data[i_384306]);
				HEX5BHEX5DHEX3D_384069(result, i_384306, LOC5);
				res_384312 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

static N_INLINE(Tnode214790*, newtransnode_384050)(NU8 kind, Tnode214790* n, NI sons) {
	Tnode214790* result;
	Tnode214790* x;
	result = 0;
	x = newnodeit_216801(kind, (*n).info, (*n).typ);
	if ((*x).kindU.S6.sons) nimGCunrefNoCycle((*x).kindU.S6.sons);
	(*x).kindU.S6.sons = (Tnodeseq214784*) newSeqRC1((&NTI214784), ((NI) (sons)));
	asgnRefNoCycle((void**) (&(*x).typ), (*n).typ);
	result = x;
	return result;
}

N_NIMCALL(Tnode214790*, transformcase_385873)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	Tnode214790* ifs;
	result = 0;
	result = newtransnode_384050(((NU8) 97), n, ((NI) 0));
	ifs = NIM_NIL;
	{
		NI i_385888;
		NI HEX3Atmp_385954;
		NI LOC2;
		NI res_385957;
		i_385888 = 0;
		HEX3Atmp_385954 = 0;
		LOC2 = 0;
		LOC2 = sonslen_217351(n);
		HEX3Atmp_385954 = (NI)(LOC2 - ((NI) 1));
		res_385957 = ((NI) 0);
		{
			while (1) {
				Tnode214790* it;
				Tnode214790* e;
				if (!(res_385957 <= HEX3Atmp_385954)) goto LA4;
				i_385888 = res_385957;
				it = (*n).kindU.S6.sons->data[i_385888];
				e = transform_384286(c, it);
				switch ((*it).kind) {
				case ((NU8) 86):
				{
					{
						if (!(ifs == NIM_NIL)) goto LA8;
						ifs = newtransnode_384031(((NU8) 92), (*it).info, ((NI) 0));
					}
					LA8: ;
					add_384084(ifs, e);
				}
				break;
				case ((NU8) 88):
				{
					{
						if (!(ifs == NIM_NIL)) goto LA13;
						add_384084(result, e);
					}
					goto LA11;
					LA13: ;
					{
						add_384084(ifs, e);
					}
					LA11: ;
				}
				break;
				default:
				{
					add_384084(result, e);
				}
				break;
				}
				res_385957 += ((NI) 1);
			} LA4: ;
		}
	}
	{
		Tnode214790* elsebranch;
		if (!!((ifs == NIM_NIL))) goto LA19;
		elsebranch = newtransnode_384031(((NU8) 88), (*n).info, ((NI) 1));
		HEX5BHEX5DHEX3D_384069(elsebranch, ((NI) 0), ifs);
		add_384084(result, elsebranch);
	}
	goto LA17;
	LA19: ;
	{
		NIM_BOOL LOC22;
		Tnode214790* LOC23;
		Ttype214828* LOC25;
		Tnode214790* elsebranch;
		Tnode214790* LOC28;
		LOC22 = 0;
		LOC23 = 0;
		LOC23 = lastson_217364(result);
		LOC22 = !(((*LOC23).kind == ((NU8) 88)));
		if (!(LOC22)) goto LA24;
		LOC25 = 0;
		LOC25 = skiptypes_218113((*(*n).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106242013440));
		LOC22 = !(((IL64(16559246426116) &((NU64)1<<((NU)((*LOC25).kind)&63U)))!=0));
		LA24: ;
		if (!LOC22) goto LA26;
		elsebranch = newtransnode_384031(((NU8) 88), (*n).info, ((NI) 1));
		LOC28 = 0;
		LOC28 = newtransnode_384031(((NU8) 23), (*n).info, ((NI) 0));
		HEX5BHEX5DHEX3D_384069(elsebranch, ((NI) 0), LOC28);
		add_384084(result, elsebranch);
	}
	goto LA17;
	LA26: ;
	LA17: ;
	return result;
}

N_NIMCALL(Tnode214790*, transformwhile_384897)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	result = 0;
	{
		if (!(((NI) 0) < (*c).inlining)) goto LA3;
		result = transformsons_384290(c, n);
	}
	goto LA1;
	LA3: ;
	{
		Tsym214822* labl;
		Tnode214790* LOC6;
		Tnode214790* body;
		NI LOC12;
		NI LOC13;
		Tnode214790* LOC14;
		Tsym214822* LOC15;
		labl = newlabel_384712(c, n);
		(*c).breaksyms = (Tsymseq214792*) incrSeqV2(&((*c).breaksyms)->Sup, sizeof(Tsym214822*));
		asgnRefNoCycle((void**) (&(*c).breaksyms->data[(*c).breaksyms->Sup.len]), labl);
		++(*c).breaksyms->Sup.len;
		result = newtransnode_384031(((NU8) 112), (*n).info, ((NI) 2));
		LOC6 = 0;
		LOC6 = newsymnode_216234(labl);
		HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC6);
		body = newtransnode_384027(n);
		{
			NI i_384925;
			NI HEX3Atmp_384957;
			NI LOC8;
			NI res_384960;
			i_384925 = 0;
			HEX3Atmp_384957 = 0;
			LOC8 = 0;
			LOC8 = len_215059(n);
			HEX3Atmp_384957 = (NI)(LOC8 - ((NI) 2));
			res_384960 = ((NI) 0);
			{
				while (1) {
					Tnode214790* LOC11;
					if (!(res_384960 <= HEX3Atmp_384957)) goto LA10;
					i_384925 = res_384960;
					LOC11 = 0;
					LOC11 = transform_384286(c, (*n).kindU.S6.sons->data[i_384925]);
					HEX5BHEX5DHEX3D_384069(body, i_384925, LOC11);
					res_384960 += ((NI) 1);
				} LA10: ;
			}
		}
		LOC12 = 0;
		LOC12 = len_215059(n);
		LOC13 = 0;
		LOC13 = len_215059(n);
		LOC14 = 0;
		LOC14 = transformloopbody_384870(c, (*n).kindU.S6.sons->data[(LOC13 - 1)]);
		HEX5BHEX5DHEX3D_384069(body, (LOC12 - 1), LOC14);
		HEX5BHEX5DHEX3D_384069(result, ((NI) 1), body);
		LOC15 = 0;
		LOC15 = pop_384840((&(*c).breaksyms));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, transformblock_384811)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	Tsym214822* labl;
	Tsym214822* LOC6;
	Tnode214790* LOC7;
	result = 0;
	labl = 0;
	{
		if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA3;
		labl = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
	}
	goto LA1;
	LA3: ;
	{
		labl = newlabel_384712(c, n);
	}
	LA1: ;
	(*c).breaksyms = (Tsymseq214792*) incrSeqV2(&((*c).breaksyms)->Sup, sizeof(Tsym214822*));
	asgnRefNoCycle((void**) (&(*c).breaksyms->data[(*c).breaksyms->Sup.len]), labl);
	++(*c).breaksyms->Sup.len;
	result = transformsons_384290(c, n);
	LOC6 = 0;
	LOC6 = pop_384840((&(*c).breaksyms));
	LOC7 = 0;
	LOC7 = newsymnode_216234(labl);
	HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC7);
	return result;
}

N_NIMCALL(Tnode214790*, transformbreak_384964)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = !(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)));
		if (LOC3) goto LA4;
		LOC3 = (((NI) 0) < (*c).inlining);
		LA4: ;
		if (!LOC3) goto LA5;
		result = n;
	}
	goto LA1;
	LA5: ;
	{
		Tsym214822* labl;
		Tnode214790* LOC8;
		labl = (*c).breaksyms->data[((*c).breaksyms ? ((*c).breaksyms->Sup.len-1) : -1)];
		result = transformsons_384290(c, n);
		LOC8 = 0;
		LOC8 = newsymnode_216234(labl);
		HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC8);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tsym214822*, getmergeop_386016)(Tnode214790* n) {
	Tsym214822* result;
	result = 0;
	switch ((*n).kind) {
	case ((NU8) 27):
	case ((NU8) 32):
	case ((NU8) 26):
	case ((NU8) 29):
	case ((NU8) 30):
	case ((NU8) 31):
	case ((NU8) 28):
	{
		{
			NIM_BOOL LOC4;
			LOC4 = 0;
			LOC4 = ((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3));
			if (!(LOC4)) goto LA5;
			LOC4 = ((*(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).magic == ((NU8) 137));
			LA5: ;
			if (!LOC4) goto LA6;
			result = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		}
		LA6: ;
	}
	break;
	default:
	{
	}
	break;
	}
	return result;
}

N_NIMCALL(void, flattentreeaux_386044)(Tnode214790* d, Tnode214790* a, Tsym214822* op) {
	Tsym214822* op2;
	op2 = getmergeop_386016(a);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC5;
		NIM_BOOL LOC7;
		LOC3 = 0;
		LOC3 = !((op2 == NIM_NIL));
		if (!(LOC3)) goto LA4;
		LOC5 = 0;
		LOC5 = ((*op2).Sup.id == (*op).Sup.id);
		if (LOC5) goto LA6;
		LOC7 = 0;
		LOC7 = !(((*op).magic == ((NU8) 0)));
		if (!(LOC7)) goto LA8;
		LOC7 = ((*op2).magic == (*op).magic);
		LA8: ;
		LOC5 = LOC7;
		LA6: ;
		LOC3 = LOC5;
		LA4: ;
		if (!LOC3) goto LA9;
		{
			NI i_386096;
			NI HEX3Atmp_386099;
			NI LOC12;
			NI res_386102;
			i_386096 = 0;
			HEX3Atmp_386099 = 0;
			LOC12 = 0;
			LOC12 = sonslen_217351(a);
			HEX3Atmp_386099 = (NI)(LOC12 - ((NI) 1));
			res_386102 = ((NI) 1);
			{
				while (1) {
					if (!(res_386102 <= HEX3Atmp_386099)) goto LA14;
					i_386096 = res_386102;
					flattentreeaux_386044(d, (*a).kindU.S6.sons->data[i_386096], op);
					res_386102 += ((NI) 1);
				} LA14: ;
			}
		}
	}
	goto LA1;
	LA9: ;
	{
		Tnode214790* LOC16;
		LOC16 = 0;
		LOC16 = copytree_218822(a);
		addson_216807(d, LOC16);
	}
	LA1: ;
}

N_NIMCALL(Tnode214790*, flattentree_386106)(Tnode214790* root) {
	Tnode214790* result;
	Tsym214822* op;
	result = 0;
	op = getmergeop_386016(root);
	{
		Tnode214790* LOC5;
		if (!!((op == NIM_NIL))) goto LA3;
		result = copynode_218542(root);
		LOC5 = 0;
		LOC5 = copytree_218822((*root).kindU.S6.sons->data[((NI) 0)]);
		addson_216807(result, LOC5);
		flattentreeaux_386044(result, root, op);
	}
	goto LA1;
	LA3: ;
	{
		result = root;
	}
	LA1: ;
	return result;
}

static N_INLINE(NI, len_384088)(Tnode214790* a) {
	NI result;
	result = 0;
	result = sonslen_217351(a);
	return result;
}

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

N_NIMCALL(Tnode214790*, transformcall_386124)(Ttransfcontext384008* c, Tnode214790* n_386127) {
	Tnode214790* result;
	Tnode214790* n;
	Tsym214822* op;
	NU8 magic;
	result = 0;
	n = flattentree_386106(n_386127);
	op = getmergeop_386016(n);
	magic = getmagic_239323(n);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		NI LOC7;
		Tnode214790* LOC10;
		NI j;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = !((op == NIM_NIL));
		if (!(LOC4)) goto LA5;
		LOC4 = !(((*op).magic == ((NU8) 0)));
		LA5: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA6;
		LOC7 = 0;
		LOC7 = len_215059(n);
		LOC3 = (((NI) 3) <= LOC7);
		LA6: ;
		if (!LOC3) goto LA8;
		result = newtransnode_384050(((NU8) 27), n, ((NI) 0));
		LOC10 = 0;
		LOC10 = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 0)]);
		add_384084(result, LOC10);
		j = ((NI) 1);
		{
			while (1) {
				NI LOC13;
				Tnode214790* a;
				LOC13 = 0;
				LOC13 = sonslen_217351(n);
				if (!(j < LOC13)) goto LA12;
				a = transform_384286(c, (*n).kindU.S6.sons->data[j]);
				j += ((NI) 1);
				{
					NIM_BOOL LOC16;
					LOC16 = 0;
					LOC16 = isconstexpr_239336(a);
					if (!LOC16) goto LA17;
					{
						while (1) {
							NI LOC21;
							Tnode214790* b;
							LOC21 = 0;
							LOC21 = sonslen_217351(n);
							if (!(j < LOC21)) goto LA20;
							b = transform_384286(c, (*n).kindU.S6.sons->data[j]);
							{
								NIM_BOOL LOC24;
								LOC24 = 0;
								LOC24 = isconstexpr_239336(b);
								if (!!(LOC24)) goto LA25;
								goto LA19;
							}
							LA25: ;
							a = evalop_275005((*op).magic, n, a, b, NIM_NIL);
							j += ((NI) 1);
						} LA20: ;
					} LA19: ;
				}
				LA17: ;
				add_384084(result, a);
			} LA12: ;
		}
		{
			NI LOC29;
			LOC29 = 0;
			LOC29 = len_384088(result);
			if (!(LOC29 == ((NI) 2))) goto LA30;
			result = HEX5BHEX5D_384076(result, ((NI) 1));
		}
		LA30: ;
	}
	goto LA1;
	LA8: ;
	{
		if (!(magic == ((NU8) 241))) goto LA33;
		result = n;
	}
	goto LA1;
	LA33: ;
	{
		Tnode214790* LOC38;
		if (!(magic == ((NU8) 206))) goto LA36;
		LOC38 = 0;
		LOC38 = HEX5BHEX5D_215238(n, ((NI) 1));
		result = transformsons_384290(c, LOC38);
	}
	goto LA1;
	LA36: ;
	{
		Tnode214790* s;
		s = transformsons_384290(c, n);
		{
			NIM_BOOL LOC42;
			Tnode214790* t;
			LOC42 = 0;
			LOC42 = ((*(*s).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3));
			if (!(LOC42)) goto LA43;
			LOC42 = ((*(*(*s).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).kind == ((NU8) 13));
			LA43: ;
			if (!LOC42) goto LA44;
			t = lastson_217364((*(*(*s).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).ast);
			{
				NIM_BOOL LOC48;
				LOC48 = 0;
				LOC48 = !(((*t).kind == ((NU8) 3)));
				if (LOC48) goto LA49;
				LOC48 = !((((*(*t).kindU.S4.sym).flags &(1U<<((NU)(((NU8) 25))&31U)))!=0));
				LA49: ;
				if (!LOC48) goto LA50;
				methoddef_374628((*(*s).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym, NIM_FALSE);
			}
			LA50: ;
			result = methodcall_374036(s);
		}
		goto LA40;
		LA44: ;
		{
			result = s;
		}
		LA40: ;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, transformaddrderef_385154)(Ttransfcontext384008* c, Tnode214790* n_385157, NU8 a, NU8 b) {
	Tnode214790* result;
	Tnode214790* n;
{	result = 0;
	result = transformsons_384290(c, n_385157);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (gcmd_160123 == ((NU8) 2));
		if (LOC3) goto LA4;
		LOC3 = (((*(*c).module).flags &(1U<<((NU)(((NU8) 27))&31U)))!=0);
		LA4: ;
		if (!LOC3) goto LA5;
		goto BeforeRet;
	}
	LA5: ;
	n = result;
	switch ((*(*n).kindU.S6.sons->data[((NI) 0)]).kind) {
	case ((NU8) 67):
	case ((NU8) 66):
	case ((NU8) 70):
	case ((NU8) 68):
	case ((NU8) 69):
	{
		Tnode214790* m;
		m = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)];
		{
			NIM_BOOL LOC10;
			LOC10 = 0;
			LOC10 = ((*m).kind == a);
			if (LOC10) goto LA11;
			LOC10 = ((*m).kind == b);
			LA11: ;
			if (!LOC10) goto LA12;
			asgnRefNoCycle((void**) (&(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)]), (*m).kindU.S6.sons->data[((NI) 0)]);
			result = (*n).kindU.S6.sons->data[((NI) 0)];
		}
		LA12: ;
	}
	break;
	case ((NU8) 58):
	case ((NU8) 59):
	case ((NU8) 60):
	{
		Tnode214790* m;
		m = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)];
		{
			NIM_BOOL LOC17;
			LOC17 = 0;
			LOC17 = ((*m).kind == a);
			if (LOC17) goto LA18;
			LOC17 = ((*m).kind == b);
			LA18: ;
			if (!LOC17) goto LA19;
			asgnRefNoCycle((void**) (&(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 1)]), (*m).kindU.S6.sons->data[((NI) 0)]);
			result = (*n).kindU.S6.sons->data[((NI) 0)];
		}
		LA19: ;
	}
	break;
	default:
	{
		{
			NIM_BOOL LOC24;
			LOC24 = 0;
			LOC24 = ((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == a);
			if (LOC24) goto LA25;
			LOC24 = ((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == b);
			LA25: ;
			if (!LOC24) goto LA26;
			result = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S6.sons->data[((NI) 0)];
		}
		LA26: ;
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, generatethunk_385255)(Tnode214790* prc, Ttype214828* dest) {
	Tnode214790* result;
	Tnode214790* conv;
	Ttype214828* LOC9;
	Tnode214790* LOC10;
{	result = 0;
	{
		if (!(gcmd_160123 == ((NU8) 4))) goto LA3;
		result = prc;
		goto BeforeRet;
	}
	LA3: ;
	result = newnodeit_216801(((NU8) 155), (*prc).info, dest);
	conv = newnodeit_216801(((NU8) 59), (*prc).info, dest);
	add_215114(conv, emptynode_215801);
	add_215114(conv, prc);
	{
		if (!((*prc).kind == ((NU8) 155))) goto LA7;
		internalerror_187100((*prc).info, ((NimStringDesc*) &TMP3457));
	}
	LA7: ;
	add_215114(result, conv);
	LOC9 = 0;
	LOC9 = getsystype_258130(((NU8) 5));
	LOC10 = 0;
	LOC10 = newnodeit_216801(((NU8) 23), (*prc).info, LOC9);
	add_215114(result, LOC10);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, transformconv_385283)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	Ttype214828* dest;
	Ttype214828* source;
	result = 0;
	dest = skiptypes_218113((*n).typ, IL64(211106242013440));
	source = skiptypes_218113((*(*n).kindU.S6.sons->data[((NI) 1)]).typ, IL64(211106242013440));
	switch ((*dest).kind) {
	case ((NU8) 31) ... ((NU8) 35):
	case ((NU8) 14):
	case ((NU8) 2):
	case ((NU8) 1):
	case ((NU8) 41) ... ((NU8) 43):
	{
		{
			NIM_BOOL LOC4;
			LOC4 = 0;
			LOC4 = isordinaltype_240057(source);
			if (!!(LOC4)) goto LA5;
			result = transformsons_384290(c, n);
		}
		goto LA2;
		LA5: ;
		{
			NIM_BOOL LOC8;
			NI64 LOC9;
			NI64 LOC10;
			NI64 LOC12;
			NI64 LOC13;
			LOC8 = 0;
			LOC9 = 0;
			LOC9 = firstord_240001((*n).typ);
			LOC10 = 0;
			LOC10 = firstord_240001((*(*n).kindU.S6.sons->data[((NI) 1)]).typ);
			LOC8 = (LOC9 <= LOC10);
			if (!(LOC8)) goto LA11;
			LOC12 = 0;
			LOC12 = lastord_240004((*(*n).kindU.S6.sons->data[((NI) 1)]).typ);
			LOC13 = 0;
			LOC13 = lastord_240004((*n).typ);
			LOC8 = (LOC12 <= LOC13);
			LA11: ;
			if (!LOC8) goto LA14;
			result = transformsons_384290(c, n);
		}
		goto LA2;
		LA14: ;
		{
			Tnode214790* LOC24;
			NI64 LOC25;
			Tnode214790* LOC26;
			NI64 LOC27;
			Tnode214790* LOC28;
			{
				NIM_BOOL LOC19;
				LOC19 = 0;
				LOC19 = ((*dest).kind == ((NU8) 35));
				if (LOC19) goto LA20;
				LOC19 = ((*source).kind == ((NU8) 35));
				LA20: ;
				if (!LOC19) goto LA21;
				result = newtransnode_384050(((NU8) 69), n, ((NI) 3));
			}
			goto LA17;
			LA21: ;
			{
				result = newtransnode_384050(((NU8) 70), n, ((NI) 3));
			}
			LA17: ;
			dest = skiptypes_218113((*n).typ, IL64(211106240964864));
			LOC24 = 0;
			LOC24 = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC24);
			LOC25 = 0;
			LOC25 = firstord_240001(dest);
			LOC26 = 0;
			LOC26 = newinttypenode_215665(((NU8) 6), LOC25, source);
			HEX5BHEX5DHEX3D_384069(result, ((NI) 1), LOC26);
			LOC27 = 0;
			LOC27 = lastord_240004(dest);
			LOC28 = 0;
			LOC28 = newinttypenode_215665(((NU8) 6), LOC27, source);
			HEX5BHEX5DHEX3D_384069(result, ((NI) 2), LOC28);
		}
		LA2: ;
	}
	break;
	case ((NU8) 36) ... ((NU8) 39):
	{
		{
			Ttype214828* LOC32;
			Tnode214790* LOC35;
			Tnode214790* LOC36;
			Tnode214790* LOC37;
			LOC32 = 0;
			LOC32 = skiptypes_218113((*n).typ, IL64(211106240964864));
			if (!((*LOC32).kind == ((NU8) 20))) goto LA33;
			result = newtransnode_384050(((NU8) 68), n, ((NI) 3));
			dest = skiptypes_218113((*n).typ, IL64(211106240964864));
			LOC35 = 0;
			LOC35 = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC35);
			LOC36 = 0;
			LOC36 = copytree_218822((*(*dest).n).kindU.S6.sons->data[((NI) 0)]);
			HEX5BHEX5DHEX3D_384069(result, ((NI) 1), LOC36);
			LOC37 = 0;
			LOC37 = copytree_218822((*(*dest).n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_384069(result, ((NI) 2), LOC37);
		}
		goto LA30;
		LA33: ;
		{
			result = transformsons_384290(c, n);
		}
		LA30: ;
	}
	break;
	case ((NU8) 27):
	case ((NU8) 48):
	{
		result = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		asgnRefNoCycle((void**) (&(*result).typ), taketype_249135((*n).typ, (*(*n).kindU.S6.sons->data[((NI) 1)]).typ));
	}
	break;
	case ((NU8) 29):
	{
		{
			Tnode214790* LOC45;
			if (!((*source).kind == ((NU8) 28))) goto LA43;
			result = newtransnode_384050(((NU8) 71), n, ((NI) 1));
			LOC45 = 0;
			LOC45 = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC45);
		}
		goto LA41;
		LA43: ;
		{
			result = transformsons_384290(c, n);
		}
		LA41: ;
	}
	break;
	case ((NU8) 28):
	{
		{
			Tnode214790* LOC52;
			if (!((*source).kind == ((NU8) 29))) goto LA50;
			result = newtransnode_384050(((NU8) 72), n, ((NI) 1));
			LOC52 = 0;
			LOC52 = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC52);
		}
		goto LA48;
		LA50: ;
		{
			result = transformsons_384290(c, n);
		}
		LA48: ;
	}
	break;
	case ((NU8) 22):
	case ((NU8) 21):
	{
		dest = skiptypes_218113(dest, IL64(211106247256320));
		source = skiptypes_218113(source, IL64(211106247256320));
		{
			NI diff;
			if (!((*source).kind == ((NU8) 17))) goto LA57;
			diff = inheritancediff_246442(dest, source);
			{
				Tnode214790* LOC63;
				if (!(diff < ((NI) 0))) goto LA61;
				result = newtransnode_384050(((NU8) 67), n, ((NI) 1));
				LOC63 = 0;
				LOC63 = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
				HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC63);
			}
			goto LA59;
			LA61: ;
			{
				NIM_BOOL LOC65;
				Tnode214790* LOC69;
				LOC65 = 0;
				LOC65 = (((NI) 0) < diff);
				if (!(LOC65)) goto LA66;
				LOC65 = !((diff == ((NI) IL64(9223372036854775807))));
				LA66: ;
				if (!LOC65) goto LA67;
				result = newtransnode_384050(((NU8) 66), n, ((NI) 1));
				LOC69 = 0;
				LOC69 = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
				HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC69);
			}
			goto LA59;
			LA67: ;
			{
				result = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			}
			LA59: ;
		}
		goto LA55;
		LA57: ;
		{
			result = transformsons_384290(c, n);
		}
		LA55: ;
	}
	break;
	case ((NU8) 17):
	{
		NI diff;
		diff = inheritancediff_246442(dest, source);
		{
			Tnode214790* LOC77;
			if (!(diff < ((NI) 0))) goto LA75;
			result = newtransnode_384050(((NU8) 67), n, ((NI) 1));
			LOC77 = 0;
			LOC77 = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC77);
		}
		goto LA73;
		LA75: ;
		{
			NIM_BOOL LOC79;
			Tnode214790* LOC83;
			LOC79 = 0;
			LOC79 = (((NI) 0) < diff);
			if (!(LOC79)) goto LA80;
			LOC79 = !((diff == ((NI) IL64(9223372036854775807))));
			LA80: ;
			if (!LOC79) goto LA81;
			result = newtransnode_384050(((NU8) 66), n, ((NI) 1));
			LOC83 = 0;
			LOC83 = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_384069(result, ((NI) 0), LOC83);
		}
		goto LA73;
		LA81: ;
		{
			result = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		LA73: ;
	}
	break;
	case ((NU8) 12):
	case ((NU8) 15):
	{
		result = transform_384286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 25):
	{
		result = transformsons_384290(c, n);
		{
			NIM_BOOL LOC89;
			Tnode214790* LOC93;
			LOC89 = 0;
			LOC89 = ((*dest).callconv == ((NU8) 8));
			if (!(LOC89)) goto LA90;
			LOC89 = ((*source).callconv == ((NU8) 0));
			LA90: ;
			if (!LOC89) goto LA91;
			LOC93 = 0;
			LOC93 = HEX5BHEX5D_384076(result, ((NI) 1));
			result = generatethunk_385255(LOC93, dest);
		}
		LA91: ;
	}
	break;
	default:
	{
		result = transformsons_384290(c, n);
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode214790*, transformconstsection_384619)(Ttransfcontext384008* c, Tnode214790* v) {
	Tnode214790* result;
	result = 0;
	result = newtransnode_384027(v);
	{
		NI i_384635;
		NI HEX3Atmp_384680;
		NI LOC2;
		NI res_384683;
		i_384635 = 0;
		HEX3Atmp_384680 = 0;
		LOC2 = 0;
		LOC2 = sonslen_217351(v);
		HEX3Atmp_384680 = (NI)(LOC2 - ((NI) 1));
		res_384683 = ((NI) 0);
		{
			while (1) {
				Tnode214790* it;
				if (!(res_384683 <= HEX3Atmp_384680)) goto LA4;
				i_384635 = res_384683;
				it = (*v).kindU.S6.sons->data[i_384635];
				{
					if (!((*it).kind == ((NU8) 125))) goto LA7;
					HEX5BHEX5DHEX3D_384069(result, i_384635, it);
				}
				goto LA5;
				LA7: ;
				{
					{
						if (!!(((*it).kind == ((NU8) 102)))) goto LA12;
						internalerror_187100((*it).info, ((NimStringDesc*) &TMP3458));
					}
					LA12: ;
					{
						if (!!(((*(*it).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA16;
						internalerror_187100((*it).info, ((NimStringDesc*) &TMP3458));
					}
					LA16: ;
					{
						Tnode214790* LOC20;
						Tnode214790* b;
						Tnode214790* LOC23;
						Tnode214790* LOC24;
						Tnode214790* LOC25;
						LOC20 = 0;
						LOC20 = HEX5BHEX5D_215238(it, ((NI) 0));
						if (!(((*(*LOC20).kindU.S4.sym).flags &(1U<<((NU)(((NU8) 25))&31U)))!=0)) goto LA21;
						b = newnodei_216248(((NU8) 102), (*it).info);
						LOC23 = 0;
						LOC23 = HEX5BHEX5D_215238(it, ((NI) 0));
						addson_216807(b, LOC23);
						addson_216807(b, emptynode_215801);
						LOC24 = 0;
						LOC24 = HEX5BHEX5D_215238(it, ((NI) 2));
						LOC25 = 0;
						LOC25 = transform_384286(c, LOC24);
						addson_216807(b, LOC25);
						HEX5BHEX5DHEX3D_384069(result, i_384635, b);
					}
					goto LA18;
					LA21: ;
					{
						HEX5BHEX5DHEX3D_384069(result, i_384635, it);
					}
					LA18: ;
				}
				LA5: ;
				res_384683 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(Tnode214790*, freshvar_384438)(Ttransfcontext384008* c, Tsym214822* v) {
	Tnode214790* result;
	Tsym214822* owner;
	result = 0;
	owner = getcurrowner_384229(c);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = ((*owner).kind == ((NU8) 14));
		if (!(LOC4)) goto LA5;
		LOC4 = ((*(*owner).typ).callconv == ((NU8) 8));
		LA5: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA6;
		LOC3 = !((*c).tooearly);
		LA6: ;
		if (!LOC3) goto LA7;
		result = freshvarforclosureiter_380014(v, owner);
	}
	goto LA1;
	LA7: ;
	{
		Tsym214822* newvar;
		newvar = copysym_217601(v, NIM_FALSE);
		(*newvar).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
		asgnRefNoCycle((void**) (&(*newvar).owner), owner);
		result = newsymnode_216234(newvar);
	}
	LA1: ;
	return result;
}

static N_INLINE(NIM_BOOL, importantcomments_160154)(void) {
	NIM_BOOL result;
	result = 0;
	result = ((16640 &(1U<<((NU)(gcmd_160123)&31U)))!=0);
	return result;
}

N_NIMCALL(Tnode214790*, transformvarsection_384477)(Ttransfcontext384008* c, Tnode214790* v) {
	Tnode214790* result;
	result = 0;
	result = newtransnode_384027(v);
	{
		NI i_384493;
		NI HEX3Atmp_384612;
		NI LOC2;
		NI res_384615;
		i_384493 = 0;
		HEX3Atmp_384612 = 0;
		LOC2 = 0;
		LOC2 = sonslen_217351(v);
		HEX3Atmp_384612 = (NI)(LOC2 - ((NI) 1));
		res_384615 = ((NI) 0);
		{
			while (1) {
				Tnode214790* it;
				if (!(res_384615 <= HEX3Atmp_384612)) goto LA4;
				i_384493 = res_384615;
				it = (*v).kindU.S6.sons->data[i_384493];
				{
					if (!((*it).kind == ((NU8) 125))) goto LA7;
					HEX5BHEX5DHEX3D_384069(result, i_384493, it);
				}
				goto LA5;
				LA7: ;
				{
					if (!((*it).kind == ((NU8) 35))) goto LA10;
					{
						Tnode214790* x;
						Tidobj189006* LOC22;
						Tnode214790* defs;
						Tnode214790* LOC29;
						if (!((*(*it).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3))) goto LA14;
						{
							NI LOC18;
							NimStringDesc* LOC21;
							LOC18 = 0;
							LOC18 = len_215059(it);
							if (!!((LOC18 == ((NI) 3)))) goto LA19;
							LOC21 = 0;
							LOC21 = HEX24_187183(TMP3459);
							internalerror_187113(LOC21);
						}
						LA19: ;
						x = freshvar_384438(c, (*(*it).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym);
						LOC22 = 0;
						LOC22 = &(*(*it).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym->Sup;
						idnodetableput_221129((&(*(*c).transcon).mapping), LOC22, x);
						defs = newtransnode_384031(((NU8) 35), (*it).info, ((NI) 3));
						{
							NIM_BOOL LOC25;
							NimStringDesc* LOC28;
							LOC25 = 0;
							LOC25 = importantcomments_160154();
							if (!LOC25) goto LA26;
							LOC28 = 0;
							LOC28 = (*defs).comment; (*defs).comment = copyStringRC1((*it).comment);
							if (LOC28) nimGCunrefNoCycle(LOC28);
						}
						LA26: ;
						HEX5BHEX5DHEX3D_384069(defs, ((NI) 0), x);
						HEX5BHEX5DHEX3D_384069(defs, ((NI) 1), (*it).kindU.S6.sons->data[((NI) 1)]);
						LOC29 = 0;
						LOC29 = transform_384286(c, (*it).kindU.S6.sons->data[((NI) 2)]);
						HEX5BHEX5DHEX3D_384069(defs, ((NI) 2), LOC29);
						{
							if (!((*x).kind == ((NU8) 3))) goto LA32;
							asgnRefNoCycle((void**) (&(*(*x).kindU.S4.sym).ast), HEX5BHEX5D_384076(defs, ((NI) 2)));
						}
						LA32: ;
						HEX5BHEX5DHEX3D_384069(result, i_384493, defs);
					}
					goto LA12;
					LA14: ;
					{
						Tnode214790* LOC35;
						LOC35 = 0;
						LOC35 = transform_384286(c, it);
						HEX5BHEX5DHEX3D_384069(result, i_384493, LOC35);
					}
					LA12: ;
				}
				goto LA5;
				LA10: ;
				{
					NI L;
					Tnode214790* defs;
					Tnode214790* LOC45;
					{
						if (!!(((*it).kind == ((NU8) 36)))) goto LA39;
						internalerror_187100((*it).info, ((NimStringDesc*) &TMP3461));
					}
					LA39: ;
					L = sonslen_217351(it);
					defs = newtransnode_384031((*it).kind, (*it).info, L);
					{
						NI j_384578;
						NI HEX3Atmp_384605;
						NI res_384608;
						j_384578 = 0;
						HEX3Atmp_384605 = 0;
						HEX3Atmp_384605 = (NI)(L - ((NI) 3));
						res_384608 = ((NI) 0);
						{
							while (1) {
								Tnode214790* x;
								Tidobj189006* LOC44;
								if (!(res_384608 <= HEX3Atmp_384605)) goto LA43;
								j_384578 = res_384608;
								x = freshvar_384438(c, (*(*it).kindU.S6.sons->data[j_384578]).kindU.S4.sym);
								LOC44 = 0;
								LOC44 = &(*(*it).kindU.S6.sons->data[j_384578]).kindU.S4.sym->Sup;
								idnodetableput_221129((&(*(*c).transcon).mapping), LOC44, x);
								HEX5BHEX5DHEX3D_384069(defs, j_384578, x);
								res_384608 += ((NI) 1);
							} LA43: ;
						}
					}
					HEX5BHEX5DHEX3D_384069(defs, (NI)(L - ((NI) 2)), emptynode_215801);
					LOC45 = 0;
					LOC45 = transform_384286(c, (*it).kindU.S6.sons->data[(NI)(L - ((NI) 1))]);
					HEX5BHEX5DHEX3D_384069(defs, (NI)(L - ((NI) 1)), LOC45);
					HEX5BHEX5DHEX3D_384069(result, i_384493, defs);
				}
				LA5: ;
				res_384615 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(void, unpacktuple_385003)(Ttransfcontext384008* c, Tnode214790* n, Tnode214790* father) {
	{
		NI i_385019;
		NI HEX3Atmp_385022;
		NI LOC2;
		NI res_385025;
		i_385019 = 0;
		HEX3Atmp_385022 = 0;
		LOC2 = 0;
		LOC2 = sonslen_217351((*(*c).transcon).forstmt);
		HEX3Atmp_385022 = (NI)(LOC2 - ((NI) 3));
		res_385025 = ((NI) 0);
		{
			while (1) {
				Tnode214790* LOC5;
				Tnode214790* LOC6;
				Tnode214790* LOC7;
				if (!(res_385025 <= HEX3Atmp_385022)) goto LA4;
				i_385019 = res_385025;
				LOC5 = 0;
				LOC5 = newtupleaccess_376010(n, i_385019);
				LOC6 = 0;
				LOC6 = transform_384286(c, LOC5);
				LOC7 = 0;
				LOC7 = newasgnstmt_384316(c, (*(*(*c).transcon).forstmt).kindU.S6.sons->data[i_385019], LOC6);
				add_384084(father, LOC7);
				res_385025 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(Tnode214790*, introducenewlocalvars_385029)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
{	result = 0;
	switch ((*n).kind) {
	case ((NU8) 3):
	{
		result = transformsym_384433(c, n);
	}
	break;
	case ((NU8) 1) ... ((NU8) 2):
	case ((NU8) 4) ... ((NU8) 23):
	{
		result = n;
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		result = transformvarsection_384477(c, n);
	}
	break;
	case ((NU8) 155):
	{
		Tnode214790* a;
		a = HEX5BHEX5D_215238(n, ((NI) 1));
		{
			if (!((*a).kind == ((NU8) 3))) goto LA7;
			asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), transformsymaux_384322(c, a));
		}
		LA7: ;
		result = n;
		goto BeforeRet;
	}
	break;
	default:
	{
		result = newtransnode_384027(n);
		{
			NI i_385076;
			NI HEX3Atmp_385079;
			NI LOC11;
			NI res_385082;
			i_385076 = 0;
			HEX3Atmp_385079 = 0;
			LOC11 = 0;
			LOC11 = sonslen_217351(n);
			HEX3Atmp_385079 = (NI)(LOC11 - ((NI) 1));
			res_385082 = ((NI) 0);
			{
				while (1) {
					Tnode214790* LOC14;
					if (!(res_385082 <= HEX3Atmp_385079)) goto LA13;
					i_385076 = res_385082;
					LOC14 = 0;
					LOC14 = introducenewlocalvars_385029(c, (*n).kindU.S6.sons->data[i_385076]);
					HEX5BHEX5DHEX3D_384069(result, i_385076, LOC14);
					res_385082 += ((NI) 1);
				} LA13: ;
			}
		}
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, transformyield_385086)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	Tnode214790* e;
{	result = 0;
	result = newtransnode_384031(((NU8) 115), (*n).info, ((NI) 0));
	e = (*n).kindU.S6.sons->data[((NI) 0)];
	{
		if (!(*e).typ == 0) goto LA3;
		goto BeforeRet;
	}
	LA3: ;
	{
		NIM_BOOL LOC7;
		Ttype214828* LOC8;
		NI LOC10;
		LOC7 = 0;
		LOC8 = 0;
		LOC8 = skiptypes_218113((*e).typ, 2048);
		LOC7 = ((*LOC8).kind == ((NU8) 18));
		if (!(LOC7)) goto LA9;
		LOC10 = 0;
		LOC10 = len_215059((*(*c).transcon).forstmt);
		LOC7 = !((LOC10 == ((NI) 3)));
		LA9: ;
		if (!LOC7) goto LA11;
		e = skipconv_249082(e);
		{
			if (!((*e).kind == ((NU8) 37))) goto LA15;
			{
				NI i_385132;
				NI HEX3Atmp_385147;
				NI LOC18;
				NI res_385150;
				i_385132 = 0;
				HEX3Atmp_385147 = 0;
				LOC18 = 0;
				LOC18 = sonslen_217351(e);
				HEX3Atmp_385147 = (NI)(LOC18 - ((NI) 1));
				res_385150 = ((NI) 0);
				{
					while (1) {
						Tnode214790* LOC21;
						Tnode214790* LOC22;
						if (!(res_385150 <= HEX3Atmp_385147)) goto LA20;
						i_385132 = res_385150;
						LOC21 = 0;
						LOC21 = transform_384286(c, (*e).kindU.S6.sons->data[i_385132]);
						LOC22 = 0;
						LOC22 = newasgnstmt_384316(c, (*(*(*c).transcon).forstmt).kindU.S6.sons->data[i_385132], LOC21);
						add_384084(result, LOC22);
						res_385150 += ((NI) 1);
					} LA20: ;
				}
			}
		}
		goto LA13;
		LA15: ;
		{
			unpacktuple_385003(c, e, result);
		}
		LA13: ;
	}
	goto LA5;
	LA11: ;
	{
		Tnode214790* x;
		Tnode214790* LOC25;
		x = transform_384286(c, e);
		LOC25 = 0;
		LOC25 = newasgnstmt_384316(c, (*(*(*c).transcon).forstmt).kindU.S6.sons->data[((NI) 0)], x);
		add_384084(result, LOC25);
	}
	LA5: ;
	(*(*c).transcon).yieldstmts += ((NI) 1);
	{
		if (!((*(*c).transcon).yieldstmts <= ((NI) 1))) goto LA28;
		add_384084(result, (*(*c).transcon).forloopbody);
	}
	goto LA26;
	LA28: ;
	{
		Tnode214790* LOC31;
		LOC31 = 0;
		LOC31 = introducenewlocalvars_385029(c, (*(*c).transcon).forloopbody);
		add_384084(result, LOC31);
	}
	LA26: ;
	}BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, dontinlineconstant_386253)(Tnode214790* orig, Tnode214790* cnst) {
	NIM_BOOL result;
	NIM_BOOL LOC1;
	NIM_BOOL LOC2;
	NI LOC5;
	result = 0;
	LOC1 = 0;
	LOC2 = 0;
	LOC2 = ((*orig).kind == ((NU8) 3));
	if (!(LOC2)) goto LA3;
	LOC2 = ((*cnst).kind == ((NU8) 39) || (*cnst).kind == ((NU8) 37) || (*cnst).kind == ((NU8) 41));
	LA3: ;
	LOC1 = LOC2;
	if (!(LOC1)) goto LA4;
	LOC5 = 0;
	LOC5 = len_215059(cnst);
	LOC1 = !((LOC5 == ((NI) 0)));
	LA4: ;
	result = LOC1;
	return result;
}

N_NIMCALL(Tnode214790*, transform_384286)(Ttransfcontext384008* c, Tnode214790* n) {
	Tnode214790* result;
	Tnode214790* cnst;
{	result = 0;
	switch ((*n).kind) {
	case ((NU8) 3):
	{
		result = transformsym_384433(c, n);
	}
	break;
	case ((NU8) 1) ... ((NU8) 2):
	case ((NU8) 4) ... ((NU8) 23):
	{
		result = n;
	}
	break;
	case ((NU8) 42):
	{
		result = transformarrayaccess_385961(c, n);
	}
	break;
	case ((NU8) 51) ... ((NU8) 52):
	case ((NU8) 79) ... ((NU8) 81):
	case ((NU8) 84):
	{
		Tsym214822* s;
		s = (*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
		{
			NIM_BOOL LOC7;
			LOC7 = 0;
			LOC7 = !(((*n).typ == NIM_NIL));
			if (!(LOC7)) goto LA8;
			LOC7 = ((*(*s).typ).callconv == ((NU8) 8));
			LA8: ;
			if (!LOC7) goto LA9;
			result = transformsym_384433(c, (*n).kindU.S6.sons->data[((NI) 0)]);
			{
				if (!((*result).kind == ((NU8) 3))) goto LA13;
				result = n;
			}
			LA13: ;
		}
		goto LA5;
		LA9: ;
		{
			result = n;
		}
		LA5: ;
	}
	break;
	case ((NU8) 82):
	{
		result = n;
	}
	break;
	case ((NU8) 94):
	{
		result = transformfor_385526(c, n);
	}
	break;
	case ((NU8) 95):
	{
		result = transformsons_384290(c, n);
	}
	break;
	case ((NU8) 97):
	{
		result = transformcase_385873(c, n);
	}
	break;
	case ((NU8) 96):
	{
		result = transformwhile_384897(c, n);
	}
	break;
	case ((NU8) 112):
	case ((NU8) 127):
	{
		result = transformblock_384811(c, n);
	}
	break;
	case ((NU8) 105):
	{
		(*c).deferdetected = NIM_TRUE;
		result = transformsons_384290(c, n);
	}
	break;
	case ((NU8) 111):
	{
		Tsym214822* labl;
		Tnode214790* LOC24;
		result = newnodei_216248(((NU8) 110), (*n).info);
		labl = (*c).contsyms->data[((*c).contsyms ? ((*c).contsyms->Sup.len-1) : -1)];
		LOC24 = 0;
		LOC24 = newsymnode_216234(labl);
		add_384084(result, LOC24);
	}
	break;
	case ((NU8) 110):
	{
		result = transformbreak_384964(c, n);
	}
	break;
	case ((NU8) 27):
	case ((NU8) 29):
	case ((NU8) 30):
	case ((NU8) 31):
	case ((NU8) 26):
	case ((NU8) 28):
	case ((NU8) 32):
	{
		result = transformcall_386124(c, n);
	}
	break;
	case ((NU8) 63):
	case ((NU8) 64):
	{
		result = transformaddrderef_385154(c, n, ((NU8) 47), ((NU8) 65));
	}
	break;
	case ((NU8) 47):
	case ((NU8) 65):
	{
		result = transformaddrderef_385154(c, n, ((NU8) 63), ((NU8) 64));
	}
	break;
	case ((NU8) 58):
	case ((NU8) 59):
	case ((NU8) 60):
	{
		result = transformconv_385283(c, n);
	}
	break;
	case ((NU8) 114):
	{
		result = n;
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA33;
			result = transformsons_384290(c, n);
			{
				NIM_BOOL LOC37;
				LOC37 = 0;
				LOC37 = isconstexpr_239336((*result).kindU.S6.sons->data[((NI) 0)]);
				if (!LOC37) goto LA38;
				result = newnode_215401(((NU8) 125));
			}
			LA38: ;
		}
		LA33: ;
	}
	break;
	case ((NU8) 125):
	case ((NU8) 83):
	{
		result = n;
		goto BeforeRet;
	}
	break;
	case ((NU8) 101):
	{
		result = transformconstsection_384619(c, n);
		goto BeforeRet;
	}
	break;
	case ((NU8) 98):
	{
		result = n;
		goto BeforeRet;
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		{
			if (!(((NI) 0) < (*c).inlining)) goto LA46;
			result = transformvarsection_384477(c, n);
		}
		goto LA44;
		LA46: ;
		{
			result = transformsons_384290(c, n);
		}
		LA44: ;
	}
	break;
	case ((NU8) 104):
	{
		{
			if (!(((NI) 0) < (*c).inlining)) goto LA52;
			result = transformyield_385086(c, n);
		}
		goto LA50;
		LA52: ;
		{
			result = transformsons_384290(c, n);
		}
		LA50: ;
	}
	break;
	case ((NU8) 35):
	case ((NU8) 102):
	{
		result = transformsons_384290(c, n);
		{
			NIM_BOOL LOC58;
			NimStringDesc* LOC61;
			LOC58 = 0;
			LOC58 = importantcomments_160154();
			if (!LOC58) goto LA59;
			LOC61 = 0;
			LOC61 = (*result).comment; (*result).comment = copyStringRC1((*n).comment);
			if (LOC61) nimGCunrefNoCycle(LOC61);
		}
		LA59: ;
	}
	break;
	case ((NU8) 155):
	{
		Tnode214790* a;
		a = HEX5BHEX5D_215238(n, ((NI) 1));
		{
			if (!((*a).kind == ((NU8) 3))) goto LA65;
			asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), transformsymaux_384322(c, a));
		}
		LA65: ;
		result = n;
		goto BeforeRet;
	}
	break;
	default:
	{
		result = transformsons_384290(c, n);
	}
	break;
	}
	cnst = getconstexpr_275001((*c).module, result);
	{
		NIM_BOOL LOC70;
		NIM_BOOL LOC72;
		LOC70 = 0;
		LOC70 = !((cnst == NIM_NIL));
		if (!(LOC70)) goto LA71;
		LOC72 = 0;
		LOC72 = dontinlineconstant_386253(n, cnst);
		LOC70 = !(LOC72);
		LA71: ;
		if (!LOC70) goto LA73;
		result = cnst;
	}
	LA73: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode214790*, processtransf_387014)(Ttransfcontext384008* c, Tnode214790* n, Tsym214822* owner) {
	Tnode214790* result;
	Ttranscon384006* LOC7;
{	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (*c).Sup.fromcache;
		if (LOC3) goto LA4;
		LOC3 = (((*n).flags &(1U<<((NU)(((NU8) 5))&15U)))!=0);
		LA4: ;
		if (!LOC3) goto LA5;
		result = n;
		goto BeforeRet;
	}
	LA5: ;
	LOC7 = 0;
	LOC7 = newtranscon_384092(owner);
	pushtranscon_384210(c, LOC7);
	result = transform_384286(c, n);
	poptranscon_384214(c);
	(*result).flags |= ((NU16)1)<<((((NU8) 5))%(sizeof(NU16)*8));
	}BeforeRet: ;
	return result;
}

static N_INLINE(Slice88080, HEX2EHEX2E_102424)(NI a, NI b) {
	Slice88080 result;
	memset((void*)(&result), 0, sizeof(result));
	result.a = a;
	result.b = b;
	return result;
}

N_NIMCALL(void, flattenstmts_387085)(Tnode214790* n) {
	NIM_BOOL goon;
	goon = NIM_TRUE;
	{
		while (1) {
			NI i;
			if (!goon) goto LA2;
			goon = NIM_FALSE;
			i = ((NI) 0);
			{
				while (1) {
					NI LOC5;
					Tnode214790* it;
					LOC5 = 0;
					LOC5 = len_215059(n);
					if (!(i < LOC5)) goto LA4;
					it = HEX5BHEX5D_215238(n, i);
					{
						Slice88080 LOC10;
						NI LOC11;
						Slice88080 LOC12;
						Tnodeseq214784* LOC13;
						if (!((*it).kind == ((NU8) 115) || (*it).kind == ((NU8) 126))) goto LA8;
						LOC10 = HEX2EHEX2E_102424(i, i);
						LOC11 = 0;
						LOC11 = len_215059(it);
						LOC12 = HEX2EHEX2E_102424(((NI) 0), (LOC11 - 1));
						LOC13 = 0;
						LOC13 = HEX5BHEX5D_387135((*it).kindU.S6.sons, LOC12);
						HEX5BHEX5DHEX3D_387186((&(*n).kindU.S6.sons), LOC10, LOC13->data, LOC13->Sup.len);
						goon = NIM_TRUE;
					}
					LA8: ;
					i += ((NI) 1);
				} LA4: ;
			}
		} LA2: ;
	}
}

N_NIMCALL(void, liftdeferaux_387379)(Tnode214790* n) {
	{
		NIM_BOOL goon;
		if (!((*n).kind == ((NU8) 115) || (*n).kind == ((NU8) 126))) goto LA3;
		flattenstmts_387085(n);
		goon = NIM_TRUE;
		{
			while (1) {
				NI last;
				NI LOC7;
				if (!goon) goto LA6;
				goon = NIM_FALSE;
				LOC7 = 0;
				LOC7 = len_215059(n);
				last = (NI)(LOC7 - ((NI) 1));
				{
					NI i_387405;
					NI res_387480;
					i_387405 = 0;
					res_387480 = ((NI) 0);
					{
						while (1) {
							if (!(res_387480 <= last)) goto LA10;
							i_387405 = res_387480;
							{
								Tnode214790* deferpart;
								Tnode214790* trystmt;
								Tnode214790* body;
								if (!((*(*n).kindU.S6.sons->data[i_387405]).kind == ((NU8) 105))) goto LA13;
								deferpart = newnodei_216248(((NU8) 107), (*(*n).kindU.S6.sons->data[i_387405]).info);
								add_215114(deferpart, (*(*n).kindU.S6.sons->data[i_387405]).kindU.S6.sons->data[((NI) 0)]);
								trystmt = newnodei_216248(((NU8) 106), (*(*n).kindU.S6.sons->data[i_387405]).info);
								body = newnodei_216248((*n).kind, (*(*n).kindU.S6.sons->data[i_387405]).info);
								{
									Slice88080 LOC19;
									if (!(i_387405 < last)) goto LA17;
									LOC19 = HEX2EHEX2E_102424((NI)(i_387405 + ((NI) 1)), last);
									asgnRefNoCycle((void**) (&(*body).kindU.S6.sons), HEX5BHEX5D_387135((*n).kindU.S6.sons, LOC19));
								}
								LA17: ;
								addson_216807(trystmt, body);
								addson_216807(trystmt, deferpart);
								asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[i_387405]), trystmt);
								(*n).kindU.S6.sons = (Tnodeseq214784*) setLengthSeq(&((*n).kindU.S6.sons)->Sup, sizeof(Tnode214790*), ((NI) ((NI)(i_387405 + ((NI) 1)))));
								asgnRefNoCycle((void**) (&(*n).typ), (*(*n).kindU.S6.sons->data[i_387405]).typ);
								goon = NIM_TRUE;
								goto LA8;
							}
							LA13: ;
							res_387480 += ((NI) 1);
						} LA10: ;
					}
				} LA8: ;
			} LA6: ;
		}
	}
	LA3: ;
	{
		NI i_387474;
		NI HEX3Atmp_387485;
		NI LOC21;
		NI res_387488;
		i_387474 = 0;
		HEX3Atmp_387485 = 0;
		LOC21 = 0;
		LOC21 = safelen_215081(n);
		HEX3Atmp_387485 = (NI)(LOC21 - ((NI) 1));
		res_387488 = ((NI) 0);
		{
			while (1) {
				if (!(res_387488 <= HEX3Atmp_387485)) goto LA23;
				i_387474 = res_387488;
				liftdeferaux_387379((*n).kindU.S6.sons->data[i_387474]);
				res_387488 += ((NI) 1);
			} LA23: ;
		}
	}
}

N_NIMCALL(Tnode214790*, transformexpr_387801)(Tsym214822* module, Tnode214790* n) {
	Tnode214790* result;
	result = 0;
	{
		if (!(((*n).flags &(1U<<((NU)(((NU8) 5))&15U)))!=0)) goto LA3;
		result = n;
	}
	goto LA1;
	LA3: ;
	{
		Ttransfcontext384008* c;
		c = opentransf_387040(module, ((NimStringDesc*) &TMP3435));
		result = processtransf_387014(c, n, module);
		{
			if (!(*c).deferdetected) goto LA8;
			liftdeferaux_387379(result);
		}
		LA8: ;
		(*result).flags |= ((NU16)1)<<((((NU8) 5))%(sizeof(NU16)*8));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, commonoptimizations_386279)(Tsym214822* c, Tnode214790* n) {
	Tnode214790* result;
	Tsym214822* op;
	result = 0;
	result = n;
	{
		NI i_386302;
		NI HEX3Atmp_386368;
		NI LOC2;
		NI res_386371;
		i_386302 = 0;
		HEX3Atmp_386368 = 0;
		LOC2 = 0;
		LOC2 = safelen_215081(n);
		HEX3Atmp_386368 = (LOC2 - 1);
		res_386371 = ((NI) 0);
		{
			while (1) {
				if (!(res_386371 <= HEX3Atmp_386368)) goto LA4;
				i_386302 = res_386371;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_386302]), commonoptimizations_386279(c, (*n).kindU.S6.sons->data[i_386302]));
				res_386371 += ((NI) 1);
			} LA4: ;
		}
	}
	op = getmergeop_386016(n);
	{
		NIM_BOOL LOC7;
		NIM_BOOL LOC8;
		NI LOC11;
		Tnode214790* args;
		NI j;
		LOC7 = 0;
		LOC8 = 0;
		LOC8 = !((op == NIM_NIL));
		if (!(LOC8)) goto LA9;
		LOC8 = !(((*op).magic == ((NU8) 0)));
		LA9: ;
		LOC7 = LOC8;
		if (!(LOC7)) goto LA10;
		LOC11 = 0;
		LOC11 = sonslen_217351(n);
		LOC7 = (((NI) 3) <= LOC11);
		LA10: ;
		if (!LOC7) goto LA12;
		result = newnodeit_216801(((NU8) 27), (*n).info, (*n).typ);
		add_215114(result, (*n).kindU.S6.sons->data[((NI) 0)]);
		args = newnode_215401(((NU8) 152));
		flattentreeaux_386044(args, n, op);
		j = ((NI) 0);
		{
			while (1) {
				NI LOC16;
				Tnode214790* a;
				LOC16 = 0;
				LOC16 = sonslen_217351(args);
				if (!(j < LOC16)) goto LA15;
				a = (*args).kindU.S6.sons->data[j];
				j += ((NI) 1);
				{
					NIM_BOOL LOC19;
					LOC19 = 0;
					LOC19 = isconstexpr_239336(a);
					if (!LOC19) goto LA20;
					{
						while (1) {
							NI LOC24;
							Tnode214790* b;
							LOC24 = 0;
							LOC24 = sonslen_217351(args);
							if (!(j < LOC24)) goto LA23;
							b = (*args).kindU.S6.sons->data[j];
							{
								NIM_BOOL LOC27;
								LOC27 = 0;
								LOC27 = isconstexpr_239336(b);
								if (!!(LOC27)) goto LA28;
								goto LA22;
							}
							LA28: ;
							a = evalop_275005((*op).magic, result, a, b, NIM_NIL);
							j += ((NI) 1);
						} LA23: ;
					} LA22: ;
				}
				LA20: ;
				add_215114(result, a);
			} LA15: ;
		}
		{
			NI LOC32;
			LOC32 = 0;
			LOC32 = len_215059(result);
			if (!(LOC32 == ((NI) 2))) goto LA33;
			result = HEX5BHEX5D_215238(result, ((NI) 1));
		}
		LA33: ;
	}
	goto LA5;
	LA12: ;
	{
		Tnode214790* cnst;
		cnst = getconstexpr_275001(c, n);
		{
			NIM_BOOL LOC38;
			NIM_BOOL LOC40;
			LOC38 = 0;
			LOC38 = !((cnst == NIM_NIL));
			if (!(LOC38)) goto LA39;
			LOC40 = 0;
			LOC40 = dontinlineconstant_386253(n, cnst);
			LOC38 = !(LOC40);
			LA39: ;
			if (!LOC38) goto LA41;
			result = cnst;
		}
		goto LA36;
		LA41: ;
		{
			result = n;
		}
		LA36: ;
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tnode214790*, transformbody_387498)(Tsym214822* module, Tnode214790* n, Tsym214822* prc) {
	Tnode214790* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (((*n).flags &(1U<<((NU)(((NU8) 5))&15U)))!=0);
		if (LOC3) goto LA4;
		LOC3 = ((131072 &(1U<<((NU)((*prc).kind)&31U)))!=0);
		LA4: ;
		if (!LOC3) goto LA5;
		result = n;
	}
	goto LA1;
	LA5: ;
	{
		Ttransfcontext384008* c;
		c = opentransf_387040(module, ((NimStringDesc*) &TMP3435));
		result = liftlambdas_383237(prc, n, (&(*c).tooearly));
		result = processtransf_387014(c, result, prc);
		{
			if (!(*c).deferdetected) goto LA10;
			liftdeferaux_387379(result);
		}
		LA10: ;
		(*result).flags |= ((NU16)1)<<((((NU8) 5))%(sizeof(NU16)*8));
		trackproc_347165(prc, result);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode214790*, transformstmt_387601)(Tsym214822* module, Tnode214790* n) {
	Tnode214790* result;
	result = 0;
	{
		if (!(((*n).flags &(1U<<((NU)(((NU8) 5))&15U)))!=0)) goto LA3;
		result = n;
	}
	goto LA1;
	LA3: ;
	{
		Ttransfcontext384008* c;
		c = opentransf_387040(module, ((NimStringDesc*) &TMP3435));
		result = processtransf_387014(c, n, module);
		{
			if (!(*c).deferdetected) goto LA8;
			liftdeferaux_387379(result);
		}
		LA8: ;
		(*result).flags |= ((NU16)1)<<((((NU8) 5))%(sizeof(NU16)*8));
		tracktoplevelstmt_347402(module, result);
	}
	LA1: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_transfInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_transfDatInit000)(void) {
static TNimNode* TMP3428[8];
static TNimNode* TMP3429[6];
static TNimNode TMP1007[16];
NTI384008.size = sizeof(Ttransfcontext384008);
NTI384008.kind = 17;
NTI384008.base = (&NTI261002);
TMP3428[0] = &TMP1007[1];
TMP1007[1].kind = 1;
TMP1007[1].offset = offsetof(Ttransfcontext384008, module);
TMP1007[1].typ = (&NTI214788);
TMP1007[1].name = "module";
TMP3428[1] = &TMP1007[2];
NTI384006.size = sizeof(Ttranscon384006);
NTI384006.kind = 18;
NTI384006.base = 0;
TMP3429[0] = &TMP1007[4];
TMP1007[4].kind = 1;
TMP1007[4].offset = offsetof(Ttranscon384006, mapping);
TMP1007[4].typ = (&NTI214846);
TMP1007[4].name = "mapping";
TMP3429[1] = &TMP1007[5];
TMP1007[5].kind = 1;
TMP1007[5].offset = offsetof(Ttranscon384006, owner);
TMP1007[5].typ = (&NTI214788);
TMP1007[5].name = "owner";
TMP3429[2] = &TMP1007[6];
TMP1007[6].kind = 1;
TMP1007[6].offset = offsetof(Ttranscon384006, forstmt);
TMP1007[6].typ = (&NTI214782);
TMP1007[6].name = "forStmt";
TMP3429[3] = &TMP1007[7];
TMP1007[7].kind = 1;
TMP1007[7].offset = offsetof(Ttranscon384006, forloopbody);
TMP1007[7].typ = (&NTI214782);
TMP1007[7].name = "forLoopBody";
TMP3429[4] = &TMP1007[8];
TMP1007[8].kind = 1;
TMP1007[8].offset = offsetof(Ttranscon384006, yieldstmts);
TMP1007[8].typ = (&NTI104);
TMP1007[8].name = "yieldStmts";
TMP3429[5] = &TMP1007[9];
TMP1007[9].kind = 1;
TMP1007[9].offset = offsetof(Ttranscon384006, next);
TMP1007[9].typ = (&NTI384004);
TMP1007[9].name = "next";
TMP1007[3].len = 6; TMP1007[3].kind = 2; TMP1007[3].sons = &TMP3429[0];
NTI384006.node = &TMP1007[3];
NTI384004.size = sizeof(Ttranscon384006*);
NTI384004.kind = 22;
NTI384004.base = (&NTI384006);
NTI384004.marker = TMP3433;
TMP1007[2].kind = 1;
TMP1007[2].offset = offsetof(Ttransfcontext384008, transcon);
TMP1007[2].typ = (&NTI384004);
TMP1007[2].name = "transCon";
TMP3428[2] = &TMP1007[10];
TMP1007[10].kind = 1;
TMP1007[10].offset = offsetof(Ttransfcontext384008, inlining);
TMP1007[10].typ = (&NTI104);
TMP1007[10].name = "inlining";
TMP3428[3] = &TMP1007[11];
TMP1007[11].kind = 1;
TMP1007[11].offset = offsetof(Ttransfcontext384008, nestedprocs);
TMP1007[11].typ = (&NTI104);
TMP1007[11].name = "nestedProcs";
TMP3428[4] = &TMP1007[12];
TMP1007[12].kind = 1;
TMP1007[12].offset = offsetof(Ttransfcontext384008, contsyms);
TMP1007[12].typ = (&NTI214792);
TMP1007[12].name = "contSyms";
TMP3428[5] = &TMP1007[13];
TMP1007[13].kind = 1;
TMP1007[13].offset = offsetof(Ttransfcontext384008, breaksyms);
TMP1007[13].typ = (&NTI214792);
TMP1007[13].name = "breakSyms";
TMP3428[6] = &TMP1007[14];
TMP1007[14].kind = 1;
TMP1007[14].offset = offsetof(Ttransfcontext384008, deferdetected);
TMP1007[14].typ = (&NTI130);
TMP1007[14].name = "deferDetected";
TMP3428[7] = &TMP1007[15];
TMP1007[15].kind = 1;
TMP1007[15].offset = offsetof(Ttransfcontext384008, tooearly);
TMP1007[15].typ = (&NTI130);
TMP1007[15].name = "tooEarly";
TMP1007[0].len = 8; TMP1007[0].kind = 2; TMP1007[0].sons = &TMP3428[0];
NTI384008.node = &TMP1007[0];
NTI384010.size = sizeof(Ttransfcontext384008*);
NTI384010.kind = 22;
NTI384010.base = (&NTI384008);
NTI384010.marker = TMP3434;
}

