/* 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 Tnode215790 Tnode215790;
typedef struct Tsym215822 Tsym215822;
typedef struct Ttype215828 Ttype215828;
typedef struct Tlineinfo183337 Tlineinfo183337;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tident190012 Tident190012;
typedef struct Tnodeseq215784 Tnodeseq215784;
typedef struct Ttransfcontext385008 Ttransfcontext385008;
typedef struct Tpasscontext262002 Tpasscontext262002;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Ttranscon385006 Ttranscon385006;
typedef struct Tsymseq215792 Tsymseq215792;
typedef struct Tidnodetable215846 Tidnodetable215846;
typedef struct Tidnodepairseq215844 Tidnodepairseq215844;
typedef struct Cell47504 Cell47504;
typedef struct Cellseq47520 Cellseq47520;
typedef struct Gcheap49818 Gcheap49818;
typedef struct Gcstack49816 Gcstack49816;
typedef struct Cellset47516 Cellset47516;
typedef struct Pagedesc47512 Pagedesc47512;
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 Tidobj190006 Tidobj190006;
typedef struct Ttypeseq215824 Ttypeseq215824;
typedef struct Tscope215816 Tscope215816;
typedef struct TY215925 TY215925;
typedef struct Tstrtable215794 Tstrtable215794;
typedef struct Tloc215804 Tloc215804;
typedef struct Ropeobj170006 Ropeobj170006;
typedef struct Tlib215808 Tlib215808;
typedef struct Tidtable215840 Tidtable215840;
typedef struct Tidpairseq215838 Tidpairseq215838;
typedef struct TY88687 TY88687;
typedef struct Slice88082 Slice88082;
typedef struct Tidnodepair215842 Tidnodepair215842;
typedef struct Basechunk29638 Basechunk29638;
typedef struct Freecell29630 Freecell29630;
typedef struct Tinstantiation215812 Tinstantiation215812;
typedef struct Tlistentry135010 Tlistentry135010;
typedef struct Tidpair215836 Tidpair215836;
typedef struct TY215913 TY215913;
struct  Tlineinfo183337  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tnode215790  {
Ttype215828* typ;
Tlineinfo183337 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym215822* sym;
} S4;
struct {Tident190012* ident;
} S5;
struct {Tnodeseq215784* 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  Tpasscontext262002  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Ttransfcontext385008  {
  Tpasscontext262002 Sup;
Tsym215822* module;
Ttranscon385006* transcon;
NI inlining;
NI nestedprocs;
Tsymseq215792* contsyms;
Tsymseq215792* breaksyms;
NIM_BOOL deferdetected;
NIM_BOOL tooearly;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tidnodetable215846  {
NI counter;
Tidnodepairseq215844* data;
};
struct  Ttranscon385006  {
Tidnodetable215846 mapping;
Tsym215822* owner;
Tnode215790* forstmt;
Tnode215790* forloopbody;
NI yieldstmts;
Ttranscon385006* next;
};
struct  Cell47504  {
NI refcount;
TNimType* typ;
};
struct  Cellseq47520  {
NI len;
NI cap;
Cell47504** d;
};
struct  Cellset47516  {
NI counter;
NI max;
Pagedesc47512* head;
Pagedesc47512** 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;
Cellseq47520 zct;
Cellseq47520 decstack;
Cellset47516 cycleroots;
Cellseq47520 tempstack;
NI recgclock;
Memregion29688 region;
Gcstat49814 stat;
};
struct  Tidobj190006  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable215794  {
NI counter;
Tsymseq215792* data;
};
struct  Tloc215804  {
NU8 k;
NU8 s;
NU16 flags;
Ttype215828* t;
Ropeobj170006* r;
Ropeobj170006* heaproot;
};
struct  Tsym215822  {
  Tidobj190006 Sup;
NU8 kind;
union{
struct {Ttypeseq215824* typeinstcache;
Tscope215816* typscope;
} S1;
struct {TY215925* procinstcache;
Tsym215822* gcunsafetyreason;
} S2;
struct {TY215925* usedgenerics;
Tstrtable215794 tab;
} S3;
struct {Tsym215822* guard;
NI bitsize;
} S4;
} kindU;
NU8 magic;
Ttype215828* typ;
Tident190012* name;
Tlineinfo183337 info;
Tsym215822* owner;
NU32 flags;
Tnode215790* ast;
NU32 options;
NI position;
NI offset;
Tloc215804 loc;
Tlib215808* annex;
Tnode215790* constraint;
};
struct  Ttype215828  {
  Tidobj190006 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq215824* sons;
Tnode215790* n;
Tsym215822* owner;
Tsym215822* sym;
Tsym215822* destructor;
Tsym215822* deepcopy;
Tsym215822* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc215804 loc;
};
struct  Tidtable215840  {
NI counter;
Tidpairseq215838* data;
};
struct TY88687 {
NimStringDesc* Field0;
NI Field1;
};
struct  Slice88082  {
NI a;
NI b;
};
struct  Tident190012  {
  Tidobj190006 Sup;
NimStringDesc* s;
Tident190012* next;
NI h;
};
struct  Tidnodepair215842  {
Tidobj190006* key;
Tnode215790* val;
};
struct  Gcstack49816  {
Gcstack49816* prev;
Gcstack49816* next;
void* starts;
void* pos;
NI maxstacksize;
};
typedef NI TY29619[8];
struct  Pagedesc47512  {
Pagedesc47512* 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  Tscope215816  {
NI depthlevel;
Tstrtable215794 symbols;
Tnodeseq215784* usingsyms;
Tscope215816* parent;
};
struct  Ropeobj170006  {
  TNimObject Sup;
Ropeobj170006* left;
Ropeobj170006* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry135010  {
  TNimObject Sup;
Tlistentry135010* prev;
Tlistentry135010* next;
};
struct  Tlib215808  {
  Tlistentry135010 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj170006* name;
Tnode215790* path;
};
struct  Tidpair215836  {
Tidobj190006* key;
TNimObject* val;
};
struct  Freecell29630  {
Freecell29630* next;
NI zerofield;
};
struct  Tinstantiation215812  {
Tsym215822* sym;
Ttypeseq215824* concretetypes;
TY215913* usedby;
NI compilesid;
};
struct Tsymseq215792 {
  TGenericSeq Sup;
  Tsym215822* data[SEQ_DECL_SIZE];
};
struct Tnodeseq215784 {
  TGenericSeq Sup;
  Tnode215790* data[SEQ_DECL_SIZE];
};
struct Tidnodepairseq215844 {
  TGenericSeq Sup;
  Tidnodepair215842 data[SEQ_DECL_SIZE];
};
struct Ttypeseq215824 {
  TGenericSeq Sup;
  Ttype215828* data[SEQ_DECL_SIZE];
};
struct TY215925 {
  TGenericSeq Sup;
  Tinstantiation215812* data[SEQ_DECL_SIZE];
};
struct Tidpairseq215838 {
  TGenericSeq Sup;
  Tidpair215836 data[SEQ_DECL_SIZE];
};
struct TY215913 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Ttransfcontext385008*, opentransf_388040)(Tsym215822* module, NimStringDesc* filename);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP3435)(void* p, NI op);
N_NIMCALL(void, TMP3436)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Cell47504*, usrtocell_51440)(void* usr);
static N_INLINE(void, rtladdzct_53001)(Cell47504* c);
N_NOINLINE(void, addzct_51417)(Cellseq47520* s, Cell47504* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Tnode215790*, processtransf_388014)(Ttransfcontext385008* c, Tnode215790* n, Tsym215822* owner);
N_NIMCALL(void, pushtranscon_385210)(Ttransfcontext385008* c, Ttranscon385006* t);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_53819)(Cell47504* c);
static N_INLINE(NIM_BOOL, canbecycleroot_51458)(Cell47504* c);
static N_INLINE(void, rtladdcycleroot_52220)(Cell47504* c);
N_NOINLINE(void, incl_48247)(Cellset47516* s, Cell47504* cell);
static N_INLINE(void, decref_53401)(Cell47504* c);
N_NIMCALL(Ttranscon385006*, newtranscon_385092)(Tsym215822* owner);
N_NIMCALL(void, initidnodetable_219085)(Tidnodetable215846* x);
N_NIMCALL(Tnode215790*, transform_385286)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(Tnode215790*, transformsym_385433)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(Tnode215790*, transformsymaux_385322)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(Tnode215790*, liftitersym_380960)(Tnode215790* n, Tsym215822* owner);
N_NIMCALL(Tsym215822*, getcurrowner_385229)(Ttransfcontext385008* c);
N_NIMCALL(Tnode215790*, makeclosure_380896)(Tsym215822* prc, Tnode215790* env, Tlineinfo183337 info);
N_NIMCALL(Tnode215790*, getbody_255827)(Tsym215822* s);
N_NIMCALL(void, internalerror_188100)(Tlineinfo183337 info, NimStringDesc* errmsg);
N_NIMCALL(Tnode215790*, newsymnode_217234)(Tsym215822* sym);
N_NIMCALL(Tnode215790*, idnodetableget_222125)(Tidnodetable215846 t, Tidobj190006* key);
N_NIMCALL(Tnode215790*, transformarrayaccess_386961)(Ttransfcontext385008* c, Tnode215790* n);
static N_INLINE(Tnode215790*, newtransnode_385027)(Tnode215790* a);
N_NIMCALL(Tnode215790*, shallowcopy_219611)(Tnode215790* src);
static N_INLINE(NI, len_216059)(Tnode215790* n);
static N_INLINE(void, HEX5BHEX5DHEX3D_385069)(Tnode215790* a, NI i, Tnode215790* x);
N_NIMCALL(Tnode215790*, skipconv_250082)(Tnode215790* n);
N_NIMCALL(Tnode215790*, transformfor_386526)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(NI, sonslen_218351)(Tnode215790* n);
N_NIMCALL(Tsym215822*, newlabel_385712)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(Tsym215822*, newsym_216683)(NU8 symkind, Tident190012* name, Tsym215822* owner, Tlineinfo183337 info);
N_NIMCALL(Tident190012*, getident_190441)(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(Tnode215790*, newtransnode_385031)(NU8 kind, Tlineinfo183337 info, NI sons);
N_NIMCALL(Tnode215790*, newnodei_217248)(NU8 kind, Tlineinfo183337 info);
N_NIMCALL(Tnode215790*, newnode_216401)(NU8 kind);
N_NIMCALL(TGenericSeq*, incrSeqV2)(TGenericSeq* seq, NI elemsize);
N_NIMCALL(Tnode215790*, transformloopbody_385870)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(NIM_BOOL, hascontinue_385687)(Tnode215790* n);
static N_INLINE(Tsym215822*, pop_385840)(Tsymseq215792** s);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(Tnode215790*, liftforloop_384369)(Tnode215790* body, Tsym215822* owner);
N_NIMCALL(void, addvar_377017)(Tnode215790* father, Tnode215790* v);
N_NIMCALL(Tnode215790*, copytree_219822)(Tnode215790* src);
static N_INLINE(void, add_385084)(Tnode215790* a, Tnode215790* b);
N_NIMCALL(void, addson_217807)(Tnode215790* father, Tnode215790* son);
N_NIMCALL(Ttype215828*, skiptypes_219113)(Ttype215828* t, NU64 kinds);
N_NIMCALL(NU8, putarginto_386400)(Tnode215790* arg, Ttype215828* formal);
N_NIMCALL(void, idnodetableput_222129)(Tidnodetable215846* t, Tidobj190006* key, Tnode215790* val);
N_NIMCALL(Tnode215790*, newtemp_385245)(Ttransfcontext385008* c, Ttype215828* typ, Tlineinfo183337 info);
N_NIMCALL(Tnode215790*, freshvarforclosureiter_381014)(Tsym215822* s, Tsym215822* owner);
N_NIMCALL(Tnode215790*, newasgnstmt_385316)(Ttransfcontext385008* c, Tnode215790* le, Tnode215790* ri);
N_NIMCALL(void, pushinfocontext_184206)(Tlineinfo183337 info);
N_NIMCALL(void, initidtable_219033)(Tidtable215840* x);
N_NIMCALL(void, freshlabels_385719)(Ttransfcontext385008* c, Tnode215790* n, Tidtable215840* symmap);
static N_INLINE(Tnode215790*, HEX5BHEX5D_216238)(Tnode215790* n, NI i);
N_NIMCALL(void, idtableput_222115)(Tidtable215840* t, Tidobj190006* key, TNimObject* val);
N_NIMCALL(TNimObject*, idtableget_222107)(Tidtable215840 t, Tidobj190006* key);
static N_INLINE(NI, safelen_216081)(Tnode215790* n);
N_NIMCALL(void, popinfocontext_184219)(void);
N_NIMCALL(void, poptranscon_385214)(Ttransfcontext385008* c);
N_NIMCALL(void, internalerror_188113)(NimStringDesc* errmsg);
N_NIMCALL(Tnode215790*, transformsons_385290)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(Tnode215790*, transformcase_386873)(Ttransfcontext385008* c, Tnode215790* n);
static N_INLINE(Tnode215790*, newtransnode_385050)(NU8 kind, Tnode215790* n, NI sons);
N_NIMCALL(Tnode215790*, newnodeit_217801)(NU8 kind, Tlineinfo183337 info, Ttype215828* typ);
N_NIMCALL(Tnode215790*, lastson_218364)(Tnode215790* n);
N_NIMCALL(Tnode215790*, transformwhile_385897)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(Tnode215790*, transformblock_385811)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(Tnode215790*, transformbreak_385964)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(Tnode215790*, transformcall_387124)(Ttransfcontext385008* c, Tnode215790* n_387127);
N_NIMCALL(Tnode215790*, flattentree_387106)(Tnode215790* root);
N_NIMCALL(Tsym215822*, getmergeop_387016)(Tnode215790* n);
N_NIMCALL(Tnode215790*, copynode_219542)(Tnode215790* src);
N_NIMCALL(void, flattentreeaux_387044)(Tnode215790* d, Tnode215790* a, Tsym215822* op);
N_NIMCALL(NU8, getmagic_240323)(Tnode215790* op);
N_NIMCALL(NIM_BOOL, isconstexpr_240336)(Tnode215790* n);
N_NIMCALL(Tnode215790*, evalop_276005)(NU8 m, Tnode215790* n, Tnode215790* a, Tnode215790* b, Tnode215790* c);
static N_INLINE(NI, len_385088)(Tnode215790* a);
static N_INLINE(Tnode215790*, HEX5BHEX5D_385076)(Tnode215790* a, NI i);
N_NIMCALL(void, methoddef_375628)(Tsym215822* s, NIM_BOOL fromcache);
N_NIMCALL(Tnode215790*, methodcall_375036)(Tnode215790* n);
N_NIMCALL(Tnode215790*, transformaddrderef_386154)(Ttransfcontext385008* c, Tnode215790* n_386157, NU8 a, NU8 b);
N_NIMCALL(Tnode215790*, transformconv_386283)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(NIM_BOOL, isordinaltype_241057)(Ttype215828* t);
N_NIMCALL(NI64, firstord_241001)(Ttype215828* t);
N_NIMCALL(NI64, lastord_241004)(Ttype215828* t);
N_NIMCALL(Tnode215790*, newinttypenode_216665)(NU8 kind, NI64 intval, Ttype215828* typ);
N_NIMCALL(Ttype215828*, taketype_250135)(Ttype215828* formal, Ttype215828* arg);
N_NIMCALL(NI, inheritancediff_247442)(Ttype215828* a, Ttype215828* b);
N_NIMCALL(Tnode215790*, generatethunk_386255)(Tnode215790* prc, Ttype215828* dest);
N_NIMCALL(void, add_216114)(Tnode215790* father, Tnode215790* son);
N_NIMCALL(Ttype215828*, getsystype_259130)(NU8 kind);
N_NIMCALL(Tnode215790*, transformconstsection_385619)(Ttransfcontext385008* c, Tnode215790* v);
N_NIMCALL(Tnode215790*, transformvarsection_385477)(Ttransfcontext385008* c, Tnode215790* v);
N_NIMCALL(NimStringDesc*, HEX24_188183)(TY88687 x);
N_NIMCALL(Tnode215790*, freshvar_385438)(Ttransfcontext385008* c, Tsym215822* v);
N_NIMCALL(Tsym215822*, copysym_218601)(Tsym215822* s, NIM_BOOL keepid);
static N_INLINE(NIM_BOOL, importantcomments_161154)(void);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
N_NIMCALL(Tnode215790*, transformyield_386086)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(void, unpacktuple_386003)(Ttransfcontext385008* c, Tnode215790* n, Tnode215790* father);
N_NIMCALL(Tnode215790*, newtupleaccess_377010)(Tnode215790* tup, NI i);
N_NIMCALL(Tnode215790*, introducenewlocalvars_386029)(Ttransfcontext385008* c, Tnode215790* n);
N_NIMCALL(Tnode215790*, getconstexpr_276001)(Tsym215822* m, Tnode215790* n);
static N_INLINE(NIM_BOOL, dontinlineconstant_387253)(Tnode215790* orig, Tnode215790* cnst);
N_NIMCALL(void, liftdeferaux_388379)(Tnode215790* n);
N_NIMCALL(void, flattenstmts_388085)(Tnode215790* n);
N_NIMCALL(void, HEX5BHEX5DHEX3D_388186)(Tnodeseq215784** s, Slice88082 x, Tnode215790** b, NI bLen0);
static N_INLINE(Slice88082, HEX2EHEX2E_102424)(NI a, NI b);
N_NIMCALL(Tnodeseq215784*, HEX5BHEX5D_388135)(Tnodeseq215784* s, Slice88082 x);
N_NIMCALL(Tnode215790*, commonoptimizations_387279)(Tsym215822* c, Tnode215790* n);
N_NIMCALL(Tnode215790*, liftlambdas_384237)(Tsym215822* fn, Tnode215790* body, NIM_BOOL* tooearly);
N_NIMCALL(void, trackproc_348165)(Tsym215822* s, Tnode215790* body);
N_NIMCALL(void, tracktoplevelstmt_348402)(Tsym215822* module, Tnode215790* n);
STRING_LITERAL(TMP3437, "", 0);
STRING_LITERAL(TMP3438, "wrong AST for borrowed symbol", 29);
STRING_LITERAL(TMP3439, "transformFor", 12);
STRING_LITERAL(TMP3440, ":tmp", 4);
STRING_LITERAL(TMP3443, "popTransCon", 11);
STRING_LITERAL(TMP3459, "closure to closure created", 26);
STRING_LITERAL(TMP3460, "transformConstSection", 21);
STRING_LITERAL(TMP3462, "compiler/transf.nim", 19);
NIM_CONST TY88687 TMP3461 = {((NimStringDesc*) &TMP3462),
((NI) 167)}
;
STRING_LITERAL(TMP3463, "transformVarSection: not nkVarTuple", 35);
extern TNimType NTI262002; /* TPassContext */
TNimType NTI385008; /* TTransfContext */
extern TNimType NTI215788; /* PSym */
TNimType NTI385006; /* TTransCon */
extern TNimType NTI215846; /* TIdNodeTable */
extern TNimType NTI215782; /* PNode */
extern TNimType NTI104; /* int */
TNimType NTI385004; /* PTransCon */
extern TNimType NTI215792; /* TSymSeq */
extern TNimType NTI130; /* bool */
TNimType NTI385010; /* PTransf */
extern Gcheap49818 gch_49859;
extern TNimType NTI215784; /* TNodeSeq */
extern NU8 gcmd_161123;
extern Tnode215790* emptynode_216801;
N_NIMCALL(void, TMP3435)(void* p, NI op) {
	Ttranscon385006* a;
	a = (Ttranscon385006*)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, TMP3436)(void* p, NI op) {
	Ttransfcontext385008* a;
	a = (Ttransfcontext385008*)p;
	nimGCvisit((void*)(*a).module, op);
	nimGCvisit((void*)(*a).transcon, op);
	nimGCvisit((void*)(*a).contsyms, op);
	nimGCvisit((void*)(*a).breaksyms, op);
}

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

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

static N_INLINE(void, nimGCunrefNoCycle)(void* p) {
	Cell47504* 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) {
	{
		Cell47504* c;
		if (!!((src == NIM_NIL))) goto LA3;
		c = usrtocell_51440(src);
		(*c).refcount += ((NI) 8);
	}
	LA3: ;
	{
		Cell47504* 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(Ttransfcontext385008*, opentransf_388040)(Tsym215822* module, NimStringDesc* filename) {
	Ttransfcontext385008* result;
	result = 0;
	result = (Ttransfcontext385008*) newObj((&NTI385010), sizeof(Ttransfcontext385008));
	(*result).Sup.Sup.m_type = (&NTI385008);
	if ((*result).contsyms) nimGCunrefNoCycle((*result).contsyms);
	(*result).contsyms = (Tsymseq215792*) newSeqRC1((&NTI215792), 0);
	if ((*result).breaksyms) nimGCunrefNoCycle((*result).breaksyms);
	(*result).breaksyms = (Tsymseq215792*) newSeqRC1((&NTI215792), 0);
	asgnRefNoCycle((void**) (&(*result).module), module);
	return result;
}

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

static N_INLINE(void, rtladdcycleroot_52220)(Cell47504* 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)(Cell47504* 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)(Cell47504* 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) {
	{
		Cell47504* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_51440(src);
		incref_53819(LOC5);
	}
	LA3: ;
	{
		Cell47504* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_51440((*dest));
		decref_53401(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(void, pushtranscon_385210)(Ttransfcontext385008* c, Ttranscon385006* t) {
	asgnRef((void**) (&(*t).next), (*c).transcon);
	asgnRef((void**) (&(*c).transcon), t);
}

N_NIMCALL(Ttranscon385006*, newtranscon_385092)(Tsym215822* owner) {
	Ttranscon385006* result;
	result = 0;
	result = (Ttranscon385006*) newObj((&NTI385004), sizeof(Ttranscon385006));
	initidnodetable_219085((&(*result).mapping));
	asgnRefNoCycle((void**) (&(*result).owner), owner);
	return result;
}

N_NIMCALL(Tsym215822*, getcurrowner_385229)(Ttransfcontext385008* c) {
	Tsym215822* 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(Tnode215790*, transformsymaux_385322)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* result;
	Tsym215822* s;
	Tnode215790* b;
	Ttranscon385006* 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: ;
			{
				Tsym215822* LOC16;
				LOC16 = 0;
				LOC16 = getcurrowner_385229(c);
				result = liftitersym_380960(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_380896(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_255827(s);
		{
			if (!!(((*b).kind == ((NU8) 3)))) goto LA30;
			internalerror_188100((*n).info, ((NimStringDesc*) &TMP3438));
		}
		LA30: ;
		b = newsymnode_217234((*b).kindU.S4.sym);
		(*b).info = (*n).info;
	}
	goto LA22;
	LA26: ;
	{
		b = n;
	}
	LA22: ;
	{
		while (1) {
			Tidobj190006* LOC35;
			if (!!((tc == NIM_NIL))) goto LA34;
			LOC35 = 0;
			LOC35 = &(*b).kindU.S4.sym->Sup;
			result = idnodetableget_222125((*tc).mapping, LOC35);
			{
				if (!!((result == NIM_NIL))) goto LA38;
				goto BeforeRet;
			}
			LA38: ;
			tc = (*tc).next;
		} LA34: ;
	}
	result = b;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode215790*, transformsym_385433)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* result;
	result = 0;
	result = transformsymaux_385322(c, n);
	return result;
}

static N_INLINE(Tnode215790*, newtransnode_385027)(Tnode215790* a) {
	Tnode215790* result;
	result = 0;
	result = shallowcopy_219611(a);
	return result;
}

static N_INLINE(NI, len_216059)(Tnode215790* 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_385069)(Tnode215790* a, NI i, Tnode215790* x) {
	Tnode215790* n;
	n = a;
	asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[i]), x);
}

N_NIMCALL(Tnode215790*, transformarrayaccess_386961)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* 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_385027(n);
		{
			NI i_387006;
			NI HEX3Atmp_387009;
			NI LOC9;
			NI res_387012;
			i_387006 = 0;
			HEX3Atmp_387009 = 0;
			LOC9 = 0;
			LOC9 = len_216059(n);
			HEX3Atmp_387009 = (LOC9 - 1);
			res_387012 = ((NI) 0);
			{
				while (1) {
					Tnode215790* LOC12;
					Tnode215790* LOC13;
					if (!(res_387012 <= HEX3Atmp_387009)) goto LA11;
					i_387006 = res_387012;
					LOC12 = 0;
					LOC12 = skipconv_250082((*n).kindU.S6.sons->data[i_387006]);
					LOC13 = 0;
					LOC13 = transform_385286(c, LOC12);
					HEX5BHEX5DHEX3D_385069(result, i_387006, LOC13);
					res_387012 += ((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(Tsym215822*, newlabel_385712)(Ttransfcontext385008* c, Tnode215790* n) {
	Tsym215822* result;
	Tsym215822* LOC1;
	NimStringDesc* LOC2;
	NimStringDesc* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_385229(c);
	result = newsym_216683(((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*) &TMP3440));
appendString(LOC2, LOC3);
	asgnRefNoCycle((void**) (&(*result).name), getident_190441(LOC2));
	return result;
}

static N_INLINE(Tnode215790*, newtransnode_385031)(NU8 kind, Tlineinfo183337 info, NI sons) {
	Tnode215790* result;
	Tnode215790* x;
	result = 0;
	x = newnodei_217248(kind, info);
	if ((*x).kindU.S6.sons) nimGCunrefNoCycle((*x).kindU.S6.sons);
	(*x).kindU.S6.sons = (Tnodeseq215784*) newSeqRC1((&NTI215784), ((NI) (sons)));
	result = x;
	return result;
}

N_NIMCALL(NIM_BOOL, hascontinue_385687)(Tnode215790* 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_385702;
			NI HEX3Atmp_385705;
			NI LOC5;
			NI res_385708;
			i_385702 = 0;
			HEX3Atmp_385705 = 0;
			LOC5 = 0;
			LOC5 = sonslen_218351(n);
			HEX3Atmp_385705 = (NI)(LOC5 - ((NI) 1));
			res_385708 = ((NI) 0);
			{
				while (1) {
					if (!(res_385708 <= HEX3Atmp_385705)) goto LA7;
					i_385702 = res_385708;
					{
						NIM_BOOL LOC10;
						LOC10 = 0;
						LOC10 = hascontinue_385687((*n).kindU.S6.sons->data[i_385702]);
						if (!LOC10) goto LA11;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA11: ;
					res_385708 += ((NI) 1);
				} LA7: ;
			}
		}
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

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

N_NIMCALL(Tnode215790*, transformloopbody_385870)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		Tsym215822* labl;
		Tnode215790* LOC6;
		Tnode215790* LOC7;
		Tsym215822* LOC8;
		LOC3 = 0;
		LOC3 = hascontinue_385687(n);
		if (!LOC3) goto LA4;
		labl = newlabel_385712(c, n);
		(*c).contsyms = (Tsymseq215792*) incrSeqV2(&((*c).contsyms)->Sup, sizeof(Tsym215822*));
		asgnRefNoCycle((void**) (&(*c).contsyms->data[(*c).contsyms->Sup.len]), labl);
		++(*c).contsyms->Sup.len;
		result = newtransnode_385031(((NU8) 112), (*n).info, ((NI) 2));
		LOC6 = 0;
		LOC6 = newsymnode_217234(labl);
		HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC6);
		LOC7 = 0;
		LOC7 = transform_385286(c, n);
		HEX5BHEX5DHEX3D_385069(result, ((NI) 1), LOC7);
		LOC8 = 0;
		LOC8 = pop_385840((&(*c).contsyms));
	}
	goto LA1;
	LA4: ;
	{
		result = transform_385286(c, n);
	}
	LA1: ;
	return result;
}

static N_INLINE(void, add_385084)(Tnode215790* a, Tnode215790* b) {
	addson_217807(a, b);
}

N_NIMCALL(NU8, putarginto_386400)(Tnode215790* arg, Ttype215828* formal) {
	NU8 result;
{	result = 0;
	{
		Ttype215828* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_219113(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_386427;
			NI HEX3Atmp_386448;
			NI LOC9;
			NI res_386451;
			i_386427 = 0;
			HEX3Atmp_386448 = 0;
			LOC9 = 0;
			LOC9 = sonslen_218351(arg);
			HEX3Atmp_386448 = (NI)(LOC9 - ((NI) 1));
			res_386451 = ((NI) 0);
			{
				while (1) {
					if (!(res_386451 <= HEX3Atmp_386448)) goto LA11;
					i_386427 = res_386451;
					{
						NU8 LOC14;
						LOC14 = 0;
						LOC14 = putarginto_386400((*arg).kindU.S6.sons->data[i_386427], formal);
						if (!!((LOC14 == ((NU8) 0)))) goto LA15;
						goto BeforeRet;
					}
					LA15: ;
					res_386451 += ((NI) 1);
				} LA11: ;
			}
		}
		result = ((NU8) 0);
	}
	break;
	default:
	{
		{
			Ttype215828* LOC20;
			LOC20 = 0;
			LOC20 = skiptypes_219113(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(Tnode215790*, newtemp_385245)(Ttransfcontext385008* c, Ttype215828* typ, Tlineinfo183337 info) {
	Tnode215790* result;
	Tsym215822* r;
	Tident190012* LOC1;
	Tsym215822* LOC2;
	Tsym215822* owner;
	result = 0;
	LOC1 = 0;
	LOC1 = getident_190441(((NimStringDesc*) &TMP3440));
	LOC2 = 0;
	LOC2 = getcurrowner_385229(c);
	r = newsym_216683(((NU8) 5), LOC1, LOC2, info);
	asgnRefNoCycle((void**) (&(*r).typ), skiptypes_219113(typ, 2048));
	(*r).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
	owner = getcurrowner_385229(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_381014(r, owner);
	}
	goto LA3;
	LA9: ;
	{
		result = newsymnode_217234(r);
	}
	LA3: ;
	return result;
}

N_NIMCALL(Tnode215790*, newasgnstmt_385316)(Ttransfcontext385008* c, Tnode215790* le, Tnode215790* ri) {
	Tnode215790* result;
	result = 0;
	result = newtransnode_385031(((NU8) 74), (*ri).info, ((NI) 2));
	HEX5BHEX5DHEX3D_385069(result, ((NI) 0), le);
	HEX5BHEX5DHEX3D_385069(result, ((NI) 1), ri);
	return result;
}

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

static N_INLINE(NI, safelen_216081)(Tnode215790* 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_385719)(Ttransfcontext385008* c, Tnode215790* n, Tidtable215840* symmap) {
	{
		if (!((*n).kind == ((NU8) 112) || (*n).kind == ((NU8) 127))) goto LA3;
		{
			Tsym215822* x;
			Tnode215790* LOC9;
			Tnode215790* LOC10;
			Tidobj190006* LOC11;
			TNimObject* LOC12;
			if (!((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3))) goto LA7;
			LOC9 = 0;
			LOC9 = HEX5BHEX5D_216238(n, ((NI) 0));
			x = newlabel_385712(c, LOC9);
			LOC10 = 0;
			LOC10 = HEX5BHEX5D_216238(n, ((NI) 0));
			LOC11 = 0;
			LOC11 = &(*LOC10).kindU.S4.sym->Sup;
			LOC12 = 0;
			LOC12 = &x->Sup.Sup;
			idtableput_222115(symmap, LOC11, LOC12);
			asgnRefNoCycle((void**) (&(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym), x);
		}
		LA7: ;
	}
	LA3: ;
	{
		NIM_BOOL LOC15;
		Tsym215822* x;
		Tidobj190006* 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_222107((*symmap), LOC19);
		x = ((Tsym215822*) (LOC20));
		{
			if (!!((x == NIM_NIL))) goto LA23;
			asgnRefNoCycle((void**) (&(*n).kindU.S4.sym), x);
		}
		LA23: ;
	}
	goto LA13;
	LA17: ;
	{
		{
			NI i_385801;
			NI HEX3Atmp_385804;
			NI LOC27;
			NI res_385807;
			i_385801 = 0;
			HEX3Atmp_385804 = 0;
			LOC27 = 0;
			LOC27 = safelen_216081(n);
			HEX3Atmp_385804 = (LOC27 - 1);
			res_385807 = ((NI) 0);
			{
				while (1) {
					if (!(res_385807 <= HEX3Atmp_385804)) goto LA29;
					i_385801 = res_385807;
					freshlabels_385719(c, (*n).kindU.S6.sons->data[i_385801], symmap);
					res_385807 += ((NI) 1);
				} LA29: ;
			}
		}
	}
	LA13: ;
}

N_NIMCALL(void, poptranscon_385214)(Ttransfcontext385008* c) {
	{
		if (!((*c).transcon == NIM_NIL)) goto LA3;
		internalerror_188113(((NimStringDesc*) &TMP3443));
	}
	LA3: ;
	asgnRef((void**) (&(*c).transcon), (*(*c).transcon).next);
}

N_NIMCALL(Tnode215790*, transformfor_386526)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* result;
	NI length;
	Tnode215790* call;
	Tsym215822* labl;
	Tnode215790* LOC5;
	Tnode215790* stmtlist;
	Tnode215790* loopbody;
	Tsym215822* LOC28;
	Tnode215790* v;
	Tsym215822* iter;
	Ttranscon385006* newc;
	Tsym215822* LOC33;
	Tnode215790* body;
	Tnode215790* LOC51;
	Tidtable215840 symmap;
	Tnode215790* LOC52;
{	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 94)))) goto LA3;
		internalerror_188100((*n).info, ((NimStringDesc*) &TMP3439));
	}
	LA3: ;
	length = sonslen_218351(n);
	call = (*n).kindU.S6.sons->data[(NI)(length - ((NI) 2))];
	labl = newlabel_385712(c, n);
	result = newtransnode_385031(((NU8) 112), (*n).info, ((NI) 2));
	LOC5 = 0;
	LOC5 = newsymnode_217234(labl);
	HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC5);
	{
		Tnode215790* LOC10;
		if (!(*call).typ == 0) goto LA8;
		LOC10 = 0;
		LOC10 = newnode_216401(((NU8) 1));
		HEX5BHEX5DHEX3D_385069(result, ((NI) 1), LOC10);
		goto BeforeRet;
	}
	LA8: ;
	(*c).breaksyms = (Tsymseq215792*) incrSeqV2(&((*c).breaksyms)->Sup, sizeof(Tsym215822*));
	asgnRefNoCycle((void**) (&(*c).breaksyms->data[(*c).breaksyms->Sup.len]), labl);
	++(*c).breaksyms->Sup.len;
	{
		NIM_BOOL LOC13;
		NIM_BOOL LOC14;
		Tsym215822* 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_385870(c, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]));
		{
			Tsym215822* LOC23;
			Tnode215790* LOC24;
			if (!!((*c).tooearly)) goto LA21;
			asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[(NI)(length - ((NI) 2))]), transform_385286(c, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 2))]));
			LOC23 = 0;
			LOC23 = getcurrowner_385229(c);
			LOC24 = 0;
			LOC24 = liftforloop_384369(n, LOC23);
			HEX5BHEX5DHEX3D_385069(result, ((NI) 1), LOC24);
		}
		goto LA19;
		LA21: ;
		{
			Tnode215790* LOC26;
			LOC26 = 0;
			LOC26 = newnode_216401(((NU8) 1));
			HEX5BHEX5DHEX3D_385069(result, ((NI) 1), LOC26);
		}
		LA19: ;
		LOC27 = 0;
		LOC27 = pop_385840((&(*c).breaksyms));
		goto BeforeRet;
	}
	LA17: ;
	stmtlist = newtransnode_385031(((NU8) 115), (*n).info, ((NI) 0));
	HEX5BHEX5DHEX3D_385069(result, ((NI) 1), stmtlist);
	loopbody = transformloopbody_385870(c, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]);
	LOC28 = 0;
	LOC28 = pop_385840((&(*c).breaksyms));
	v = newnodei_217248(((NU8) 99), (*n).info);
	{
		NI i_386635;
		NI HEX3Atmp_386827;
		NI res_386830;
		i_386635 = 0;
		HEX3Atmp_386827 = 0;
		HEX3Atmp_386827 = (NI)(length - ((NI) 3));
		res_386830 = ((NI) 0);
		{
			while (1) {
				Tnode215790* LOC32;
				if (!(res_386830 <= HEX3Atmp_386827)) goto LA31;
				i_386635 = res_386830;
				LOC32 = 0;
				LOC32 = copytree_219822((*n).kindU.S6.sons->data[i_386635]);
				addvar_377017(v, LOC32);
				res_386830 += ((NI) 1);
			} LA31: ;
		}
	}
	add_385084(stmtlist, v);
	iter = (*(*call).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
	LOC33 = 0;
	LOC33 = getcurrowner_385229(c);
	newc = newtranscon_385092(LOC33);
	asgnRefNoCycle((void**) (&(*newc).forstmt), n);
	asgnRefNoCycle((void**) (&(*newc).forloopbody), loopbody);
	{
		if (!!(((*iter).kind == ((NU8) 14)))) goto LA36;
		goto BeforeRet;
	}
	LA36: ;
	pushtranscon_385210(c, newc);
	{
		NI i_386662;
		NI HEX3Atmp_386835;
		NI LOC39;
		NI res_386838;
		i_386662 = 0;
		HEX3Atmp_386835 = 0;
		LOC39 = 0;
		LOC39 = sonslen_218351(call);
		HEX3Atmp_386835 = (NI)(LOC39 - ((NI) 1));
		res_386838 = ((NI) 1);
		{
			while (1) {
				Tnode215790* arg;
				Tsym215822* formal;
				Ttype215828* LOC42;
				NU8 LOC43;
				if (!(res_386838 <= HEX3Atmp_386835)) goto LA41;
				i_386662 = res_386838;
				arg = transform_385286(c, (*call).kindU.S6.sons->data[i_386662]);
				LOC42 = 0;
				LOC42 = skiptypes_219113((*iter).typ, IL64(211106232576256));
				formal = (*(*(*LOC42).n).kindU.S6.sons->data[i_386662]).kindU.S4.sym;
				LOC43 = 0;
				LOC43 = putarginto_386400(arg, (*formal).typ);
				switch (LOC43) {
				case ((NU8) 0):
				{
					Tidobj190006* LOC45;
					LOC45 = 0;
					LOC45 = &formal->Sup;
					idnodetableput_222129((&(*newc).mapping), LOC45, arg);
				}
				break;
				case ((NU8) 1):
				{
					Tnode215790* temp;
					Tnode215790* LOC47;
					Tidobj190006* LOC48;
					temp = newtemp_385245(c, (*formal).typ, (*formal).info);
					addvar_377017(v, temp);
					LOC47 = 0;
					LOC47 = newasgnstmt_385316(c, temp, arg);
					add_385084(stmtlist, LOC47);
					LOC48 = 0;
					LOC48 = &formal->Sup;
					idnodetableput_222129((&(*newc).mapping), LOC48, temp);
				}
				break;
				case ((NU8) 2):
				{
					Tidobj190006* LOC50;
					LOC50 = 0;
					LOC50 = &formal->Sup;
					idnodetableput_222129((&(*newc).mapping), LOC50, arg);
				}
				break;
				}
				res_386838 += ((NI) 1);
			} LA41: ;
		}
	}
	LOC51 = 0;
	LOC51 = getbody_255827(iter);
	body = copytree_219822(LOC51);
	pushinfocontext_184206((*n).info);
	memset((void*)(&symmap), 0, sizeof(symmap));
	initidtable_219033((&symmap));
	freshlabels_385719(c, body, (&symmap));
	(*c).inlining += ((NI) 1);
	LOC52 = 0;
	LOC52 = transform_385286(c, body);
	add_385084(stmtlist, LOC52);
	(*c).inlining -= ((NI) 1);
	popinfocontext_184219();
	poptranscon_385214(c);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode215790*, transformsons_385290)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* result;
	result = 0;
	result = newtransnode_385027(n);
	{
		NI i_385306;
		NI HEX3Atmp_385309;
		NI LOC2;
		NI res_385312;
		i_385306 = 0;
		HEX3Atmp_385309 = 0;
		LOC2 = 0;
		LOC2 = sonslen_218351(n);
		HEX3Atmp_385309 = (NI)(LOC2 - ((NI) 1));
		res_385312 = ((NI) 0);
		{
			while (1) {
				Tnode215790* LOC5;
				if (!(res_385312 <= HEX3Atmp_385309)) goto LA4;
				i_385306 = res_385312;
				LOC5 = 0;
				LOC5 = transform_385286(c, (*n).kindU.S6.sons->data[i_385306]);
				HEX5BHEX5DHEX3D_385069(result, i_385306, LOC5);
				res_385312 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

static N_INLINE(Tnode215790*, newtransnode_385050)(NU8 kind, Tnode215790* n, NI sons) {
	Tnode215790* result;
	Tnode215790* x;
	result = 0;
	x = newnodeit_217801(kind, (*n).info, (*n).typ);
	if ((*x).kindU.S6.sons) nimGCunrefNoCycle((*x).kindU.S6.sons);
	(*x).kindU.S6.sons = (Tnodeseq215784*) newSeqRC1((&NTI215784), ((NI) (sons)));
	asgnRefNoCycle((void**) (&(*x).typ), (*n).typ);
	result = x;
	return result;
}

N_NIMCALL(Tnode215790*, transformcase_386873)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* result;
	Tnode215790* ifs;
	result = 0;
	result = newtransnode_385050(((NU8) 97), n, ((NI) 0));
	ifs = NIM_NIL;
	{
		NI i_386888;
		NI HEX3Atmp_386954;
		NI LOC2;
		NI res_386957;
		i_386888 = 0;
		HEX3Atmp_386954 = 0;
		LOC2 = 0;
		LOC2 = sonslen_218351(n);
		HEX3Atmp_386954 = (NI)(LOC2 - ((NI) 1));
		res_386957 = ((NI) 0);
		{
			while (1) {
				Tnode215790* it;
				Tnode215790* e;
				if (!(res_386957 <= HEX3Atmp_386954)) goto LA4;
				i_386888 = res_386957;
				it = (*n).kindU.S6.sons->data[i_386888];
				e = transform_385286(c, it);
				switch ((*it).kind) {
				case ((NU8) 86):
				{
					{
						if (!(ifs == NIM_NIL)) goto LA8;
						ifs = newtransnode_385031(((NU8) 92), (*it).info, ((NI) 0));
					}
					LA8: ;
					add_385084(ifs, e);
				}
				break;
				case ((NU8) 88):
				{
					{
						if (!(ifs == NIM_NIL)) goto LA13;
						add_385084(result, e);
					}
					goto LA11;
					LA13: ;
					{
						add_385084(ifs, e);
					}
					LA11: ;
				}
				break;
				default:
				{
					add_385084(result, e);
				}
				break;
				}
				res_386957 += ((NI) 1);
			} LA4: ;
		}
	}
	{
		Tnode215790* elsebranch;
		if (!!((ifs == NIM_NIL))) goto LA19;
		elsebranch = newtransnode_385031(((NU8) 88), (*n).info, ((NI) 1));
		HEX5BHEX5DHEX3D_385069(elsebranch, ((NI) 0), ifs);
		add_385084(result, elsebranch);
	}
	goto LA17;
	LA19: ;
	{
		NIM_BOOL LOC22;
		Tnode215790* LOC23;
		Ttype215828* LOC25;
		Tnode215790* elsebranch;
		Tnode215790* LOC28;
		LOC22 = 0;
		LOC23 = 0;
		LOC23 = lastson_218364(result);
		LOC22 = !(((*LOC23).kind == ((NU8) 88)));
		if (!(LOC22)) goto LA24;
		LOC25 = 0;
		LOC25 = skiptypes_219113((*(*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_385031(((NU8) 88), (*n).info, ((NI) 1));
		LOC28 = 0;
		LOC28 = newtransnode_385031(((NU8) 23), (*n).info, ((NI) 0));
		HEX5BHEX5DHEX3D_385069(elsebranch, ((NI) 0), LOC28);
		add_385084(result, elsebranch);
	}
	goto LA17;
	LA26: ;
	LA17: ;
	return result;
}

N_NIMCALL(Tnode215790*, transformwhile_385897)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* result;
	result = 0;
	{
		if (!(((NI) 0) < (*c).inlining)) goto LA3;
		result = transformsons_385290(c, n);
	}
	goto LA1;
	LA3: ;
	{
		Tsym215822* labl;
		Tnode215790* LOC6;
		Tnode215790* body;
		NI LOC12;
		NI LOC13;
		Tnode215790* LOC14;
		Tsym215822* LOC15;
		labl = newlabel_385712(c, n);
		(*c).breaksyms = (Tsymseq215792*) incrSeqV2(&((*c).breaksyms)->Sup, sizeof(Tsym215822*));
		asgnRefNoCycle((void**) (&(*c).breaksyms->data[(*c).breaksyms->Sup.len]), labl);
		++(*c).breaksyms->Sup.len;
		result = newtransnode_385031(((NU8) 112), (*n).info, ((NI) 2));
		LOC6 = 0;
		LOC6 = newsymnode_217234(labl);
		HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC6);
		body = newtransnode_385027(n);
		{
			NI i_385925;
			NI HEX3Atmp_385957;
			NI LOC8;
			NI res_385960;
			i_385925 = 0;
			HEX3Atmp_385957 = 0;
			LOC8 = 0;
			LOC8 = len_216059(n);
			HEX3Atmp_385957 = (NI)(LOC8 - ((NI) 2));
			res_385960 = ((NI) 0);
			{
				while (1) {
					Tnode215790* LOC11;
					if (!(res_385960 <= HEX3Atmp_385957)) goto LA10;
					i_385925 = res_385960;
					LOC11 = 0;
					LOC11 = transform_385286(c, (*n).kindU.S6.sons->data[i_385925]);
					HEX5BHEX5DHEX3D_385069(body, i_385925, LOC11);
					res_385960 += ((NI) 1);
				} LA10: ;
			}
		}
		LOC12 = 0;
		LOC12 = len_216059(n);
		LOC13 = 0;
		LOC13 = len_216059(n);
		LOC14 = 0;
		LOC14 = transformloopbody_385870(c, (*n).kindU.S6.sons->data[(LOC13 - 1)]);
		HEX5BHEX5DHEX3D_385069(body, (LOC12 - 1), LOC14);
		HEX5BHEX5DHEX3D_385069(result, ((NI) 1), body);
		LOC15 = 0;
		LOC15 = pop_385840((&(*c).breaksyms));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode215790*, transformblock_385811)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* result;
	Tsym215822* labl;
	Tsym215822* LOC6;
	Tnode215790* 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_385712(c, n);
	}
	LA1: ;
	(*c).breaksyms = (Tsymseq215792*) incrSeqV2(&((*c).breaksyms)->Sup, sizeof(Tsym215822*));
	asgnRefNoCycle((void**) (&(*c).breaksyms->data[(*c).breaksyms->Sup.len]), labl);
	++(*c).breaksyms->Sup.len;
	result = transformsons_385290(c, n);
	LOC6 = 0;
	LOC6 = pop_385840((&(*c).breaksyms));
	LOC7 = 0;
	LOC7 = newsymnode_217234(labl);
	HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC7);
	return result;
}

N_NIMCALL(Tnode215790*, transformbreak_385964)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* 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: ;
	{
		Tsym215822* labl;
		Tnode215790* LOC8;
		labl = (*c).breaksyms->data[((*c).breaksyms ? ((*c).breaksyms->Sup.len-1) : -1)];
		result = transformsons_385290(c, n);
		LOC8 = 0;
		LOC8 = newsymnode_217234(labl);
		HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC8);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tsym215822*, getmergeop_387016)(Tnode215790* n) {
	Tsym215822* 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_387044)(Tnode215790* d, Tnode215790* a, Tsym215822* op) {
	Tsym215822* op2;
	op2 = getmergeop_387016(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_387096;
			NI HEX3Atmp_387099;
			NI LOC12;
			NI res_387102;
			i_387096 = 0;
			HEX3Atmp_387099 = 0;
			LOC12 = 0;
			LOC12 = sonslen_218351(a);
			HEX3Atmp_387099 = (NI)(LOC12 - ((NI) 1));
			res_387102 = ((NI) 1);
			{
				while (1) {
					if (!(res_387102 <= HEX3Atmp_387099)) goto LA14;
					i_387096 = res_387102;
					flattentreeaux_387044(d, (*a).kindU.S6.sons->data[i_387096], op);
					res_387102 += ((NI) 1);
				} LA14: ;
			}
		}
	}
	goto LA1;
	LA9: ;
	{
		Tnode215790* LOC16;
		LOC16 = 0;
		LOC16 = copytree_219822(a);
		addson_217807(d, LOC16);
	}
	LA1: ;
}

N_NIMCALL(Tnode215790*, flattentree_387106)(Tnode215790* root) {
	Tnode215790* result;
	Tsym215822* op;
	result = 0;
	op = getmergeop_387016(root);
	{
		Tnode215790* LOC5;
		if (!!((op == NIM_NIL))) goto LA3;
		result = copynode_219542(root);
		LOC5 = 0;
		LOC5 = copytree_219822((*root).kindU.S6.sons->data[((NI) 0)]);
		addson_217807(result, LOC5);
		flattentreeaux_387044(result, root, op);
	}
	goto LA1;
	LA3: ;
	{
		result = root;
	}
	LA1: ;
	return result;
}

static N_INLINE(NI, len_385088)(Tnode215790* a) {
	NI result;
	result = 0;
	result = sonslen_218351(a);
	return result;
}

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

N_NIMCALL(Tnode215790*, transformcall_387124)(Ttransfcontext385008* c, Tnode215790* n_387127) {
	Tnode215790* result;
	Tnode215790* n;
	Tsym215822* op;
	NU8 magic;
	result = 0;
	n = flattentree_387106(n_387127);
	op = getmergeop_387016(n);
	magic = getmagic_240323(n);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		NI LOC7;
		Tnode215790* 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_216059(n);
		LOC3 = (((NI) 3) <= LOC7);
		LA6: ;
		if (!LOC3) goto LA8;
		result = newtransnode_385050(((NU8) 27), n, ((NI) 0));
		LOC10 = 0;
		LOC10 = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 0)]);
		add_385084(result, LOC10);
		j = ((NI) 1);
		{
			while (1) {
				NI LOC13;
				Tnode215790* a;
				LOC13 = 0;
				LOC13 = sonslen_218351(n);
				if (!(j < LOC13)) goto LA12;
				a = transform_385286(c, (*n).kindU.S6.sons->data[j]);
				j += ((NI) 1);
				{
					NIM_BOOL LOC16;
					LOC16 = 0;
					LOC16 = isconstexpr_240336(a);
					if (!LOC16) goto LA17;
					{
						while (1) {
							NI LOC21;
							Tnode215790* b;
							LOC21 = 0;
							LOC21 = sonslen_218351(n);
							if (!(j < LOC21)) goto LA20;
							b = transform_385286(c, (*n).kindU.S6.sons->data[j]);
							{
								NIM_BOOL LOC24;
								LOC24 = 0;
								LOC24 = isconstexpr_240336(b);
								if (!!(LOC24)) goto LA25;
								goto LA19;
							}
							LA25: ;
							a = evalop_276005((*op).magic, n, a, b, NIM_NIL);
							j += ((NI) 1);
						} LA20: ;
					} LA19: ;
				}
				LA17: ;
				add_385084(result, a);
			} LA12: ;
		}
		{
			NI LOC29;
			LOC29 = 0;
			LOC29 = len_385088(result);
			if (!(LOC29 == ((NI) 2))) goto LA30;
			result = HEX5BHEX5D_385076(result, ((NI) 1));
		}
		LA30: ;
	}
	goto LA1;
	LA8: ;
	{
		if (!(magic == ((NU8) 241))) goto LA33;
		result = n;
	}
	goto LA1;
	LA33: ;
	{
		Tnode215790* LOC38;
		if (!(magic == ((NU8) 206))) goto LA36;
		LOC38 = 0;
		LOC38 = HEX5BHEX5D_216238(n, ((NI) 1));
		result = transformsons_385290(c, LOC38);
	}
	goto LA1;
	LA36: ;
	{
		Tnode215790* s;
		s = transformsons_385290(c, n);
		{
			NIM_BOOL LOC42;
			Tnode215790* 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_218364((*(*(*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_375628((*(*s).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym, NIM_FALSE);
			}
			LA50: ;
			result = methodcall_375036(s);
		}
		goto LA40;
		LA44: ;
		{
			result = s;
		}
		LA40: ;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode215790*, transformaddrderef_386154)(Ttransfcontext385008* c, Tnode215790* n_386157, NU8 a, NU8 b) {
	Tnode215790* result;
	Tnode215790* n;
{	result = 0;
	result = transformsons_385290(c, n_386157);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (gcmd_161123 == ((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):
	{
		Tnode215790* 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):
	{
		Tnode215790* 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(Tnode215790*, generatethunk_386255)(Tnode215790* prc, Ttype215828* dest) {
	Tnode215790* result;
	Tnode215790* conv;
	Ttype215828* LOC9;
	Tnode215790* LOC10;
{	result = 0;
	{
		if (!(gcmd_161123 == ((NU8) 4))) goto LA3;
		result = prc;
		goto BeforeRet;
	}
	LA3: ;
	result = newnodeit_217801(((NU8) 155), (*prc).info, dest);
	conv = newnodeit_217801(((NU8) 59), (*prc).info, dest);
	add_216114(conv, emptynode_216801);
	add_216114(conv, prc);
	{
		if (!((*prc).kind == ((NU8) 155))) goto LA7;
		internalerror_188100((*prc).info, ((NimStringDesc*) &TMP3459));
	}
	LA7: ;
	add_216114(result, conv);
	LOC9 = 0;
	LOC9 = getsystype_259130(((NU8) 5));
	LOC10 = 0;
	LOC10 = newnodeit_217801(((NU8) 23), (*prc).info, LOC9);
	add_216114(result, LOC10);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode215790*, transformconv_386283)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* result;
	Ttype215828* dest;
	Ttype215828* source;
	result = 0;
	dest = skiptypes_219113((*n).typ, IL64(211106242013440));
	source = skiptypes_219113((*(*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_241057(source);
			if (!!(LOC4)) goto LA5;
			result = transformsons_385290(c, n);
		}
		goto LA2;
		LA5: ;
		{
			NIM_BOOL LOC8;
			NI64 LOC9;
			NI64 LOC10;
			NI64 LOC12;
			NI64 LOC13;
			LOC8 = 0;
			LOC9 = 0;
			LOC9 = firstord_241001((*n).typ);
			LOC10 = 0;
			LOC10 = firstord_241001((*(*n).kindU.S6.sons->data[((NI) 1)]).typ);
			LOC8 = (LOC9 <= LOC10);
			if (!(LOC8)) goto LA11;
			LOC12 = 0;
			LOC12 = lastord_241004((*(*n).kindU.S6.sons->data[((NI) 1)]).typ);
			LOC13 = 0;
			LOC13 = lastord_241004((*n).typ);
			LOC8 = (LOC12 <= LOC13);
			LA11: ;
			if (!LOC8) goto LA14;
			result = transformsons_385290(c, n);
		}
		goto LA2;
		LA14: ;
		{
			Tnode215790* LOC24;
			NI64 LOC25;
			Tnode215790* LOC26;
			NI64 LOC27;
			Tnode215790* 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_385050(((NU8) 69), n, ((NI) 3));
			}
			goto LA17;
			LA21: ;
			{
				result = newtransnode_385050(((NU8) 70), n, ((NI) 3));
			}
			LA17: ;
			dest = skiptypes_219113((*n).typ, IL64(211106240964864));
			LOC24 = 0;
			LOC24 = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC24);
			LOC25 = 0;
			LOC25 = firstord_241001(dest);
			LOC26 = 0;
			LOC26 = newinttypenode_216665(((NU8) 6), LOC25, source);
			HEX5BHEX5DHEX3D_385069(result, ((NI) 1), LOC26);
			LOC27 = 0;
			LOC27 = lastord_241004(dest);
			LOC28 = 0;
			LOC28 = newinttypenode_216665(((NU8) 6), LOC27, source);
			HEX5BHEX5DHEX3D_385069(result, ((NI) 2), LOC28);
		}
		LA2: ;
	}
	break;
	case ((NU8) 36) ... ((NU8) 39):
	{
		{
			Ttype215828* LOC32;
			Tnode215790* LOC35;
			Tnode215790* LOC36;
			Tnode215790* LOC37;
			LOC32 = 0;
			LOC32 = skiptypes_219113((*n).typ, IL64(211106240964864));
			if (!((*LOC32).kind == ((NU8) 20))) goto LA33;
			result = newtransnode_385050(((NU8) 68), n, ((NI) 3));
			dest = skiptypes_219113((*n).typ, IL64(211106240964864));
			LOC35 = 0;
			LOC35 = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC35);
			LOC36 = 0;
			LOC36 = copytree_219822((*(*dest).n).kindU.S6.sons->data[((NI) 0)]);
			HEX5BHEX5DHEX3D_385069(result, ((NI) 1), LOC36);
			LOC37 = 0;
			LOC37 = copytree_219822((*(*dest).n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_385069(result, ((NI) 2), LOC37);
		}
		goto LA30;
		LA33: ;
		{
			result = transformsons_385290(c, n);
		}
		LA30: ;
	}
	break;
	case ((NU8) 27):
	case ((NU8) 48):
	{
		result = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		asgnRefNoCycle((void**) (&(*result).typ), taketype_250135((*n).typ, (*(*n).kindU.S6.sons->data[((NI) 1)]).typ));
	}
	break;
	case ((NU8) 29):
	{
		{
			Tnode215790* LOC45;
			if (!((*source).kind == ((NU8) 28))) goto LA43;
			result = newtransnode_385050(((NU8) 71), n, ((NI) 1));
			LOC45 = 0;
			LOC45 = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC45);
		}
		goto LA41;
		LA43: ;
		{
			result = transformsons_385290(c, n);
		}
		LA41: ;
	}
	break;
	case ((NU8) 28):
	{
		{
			Tnode215790* LOC52;
			if (!((*source).kind == ((NU8) 29))) goto LA50;
			result = newtransnode_385050(((NU8) 72), n, ((NI) 1));
			LOC52 = 0;
			LOC52 = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC52);
		}
		goto LA48;
		LA50: ;
		{
			result = transformsons_385290(c, n);
		}
		LA48: ;
	}
	break;
	case ((NU8) 22):
	case ((NU8) 21):
	{
		dest = skiptypes_219113(dest, IL64(211106247256320));
		source = skiptypes_219113(source, IL64(211106247256320));
		{
			NI diff;
			if (!((*source).kind == ((NU8) 17))) goto LA57;
			diff = inheritancediff_247442(dest, source);
			{
				Tnode215790* LOC63;
				if (!(diff < ((NI) 0))) goto LA61;
				result = newtransnode_385050(((NU8) 67), n, ((NI) 1));
				LOC63 = 0;
				LOC63 = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
				HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC63);
			}
			goto LA59;
			LA61: ;
			{
				NIM_BOOL LOC65;
				Tnode215790* LOC69;
				LOC65 = 0;
				LOC65 = (((NI) 0) < diff);
				if (!(LOC65)) goto LA66;
				LOC65 = !((diff == ((NI) IL64(9223372036854775807))));
				LA66: ;
				if (!LOC65) goto LA67;
				result = newtransnode_385050(((NU8) 66), n, ((NI) 1));
				LOC69 = 0;
				LOC69 = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
				HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC69);
			}
			goto LA59;
			LA67: ;
			{
				result = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			}
			LA59: ;
		}
		goto LA55;
		LA57: ;
		{
			result = transformsons_385290(c, n);
		}
		LA55: ;
	}
	break;
	case ((NU8) 17):
	{
		NI diff;
		diff = inheritancediff_247442(dest, source);
		{
			Tnode215790* LOC77;
			if (!(diff < ((NI) 0))) goto LA75;
			result = newtransnode_385050(((NU8) 67), n, ((NI) 1));
			LOC77 = 0;
			LOC77 = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC77);
		}
		goto LA73;
		LA75: ;
		{
			NIM_BOOL LOC79;
			Tnode215790* LOC83;
			LOC79 = 0;
			LOC79 = (((NI) 0) < diff);
			if (!(LOC79)) goto LA80;
			LOC79 = !((diff == ((NI) IL64(9223372036854775807))));
			LA80: ;
			if (!LOC79) goto LA81;
			result = newtransnode_385050(((NU8) 66), n, ((NI) 1));
			LOC83 = 0;
			LOC83 = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_385069(result, ((NI) 0), LOC83);
		}
		goto LA73;
		LA81: ;
		{
			result = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		LA73: ;
	}
	break;
	case ((NU8) 12):
	case ((NU8) 15):
	{
		result = transform_385286(c, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	case ((NU8) 25):
	{
		result = transformsons_385290(c, n);
		{
			NIM_BOOL LOC89;
			Tnode215790* 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_385076(result, ((NI) 1));
			result = generatethunk_386255(LOC93, dest);
		}
		LA91: ;
	}
	break;
	default:
	{
		result = transformsons_385290(c, n);
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode215790*, transformconstsection_385619)(Ttransfcontext385008* c, Tnode215790* v) {
	Tnode215790* result;
	result = 0;
	result = newtransnode_385027(v);
	{
		NI i_385635;
		NI HEX3Atmp_385680;
		NI LOC2;
		NI res_385683;
		i_385635 = 0;
		HEX3Atmp_385680 = 0;
		LOC2 = 0;
		LOC2 = sonslen_218351(v);
		HEX3Atmp_385680 = (NI)(LOC2 - ((NI) 1));
		res_385683 = ((NI) 0);
		{
			while (1) {
				Tnode215790* it;
				if (!(res_385683 <= HEX3Atmp_385680)) goto LA4;
				i_385635 = res_385683;
				it = (*v).kindU.S6.sons->data[i_385635];
				{
					if (!((*it).kind == ((NU8) 125))) goto LA7;
					HEX5BHEX5DHEX3D_385069(result, i_385635, it);
				}
				goto LA5;
				LA7: ;
				{
					{
						if (!!(((*it).kind == ((NU8) 102)))) goto LA12;
						internalerror_188100((*it).info, ((NimStringDesc*) &TMP3460));
					}
					LA12: ;
					{
						if (!!(((*(*it).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA16;
						internalerror_188100((*it).info, ((NimStringDesc*) &TMP3460));
					}
					LA16: ;
					{
						Tnode215790* LOC20;
						Tnode215790* b;
						Tnode215790* LOC23;
						Tnode215790* LOC24;
						Tnode215790* LOC25;
						LOC20 = 0;
						LOC20 = HEX5BHEX5D_216238(it, ((NI) 0));
						if (!(((*(*LOC20).kindU.S4.sym).flags &(1U<<((NU)(((NU8) 25))&31U)))!=0)) goto LA21;
						b = newnodei_217248(((NU8) 102), (*it).info);
						LOC23 = 0;
						LOC23 = HEX5BHEX5D_216238(it, ((NI) 0));
						addson_217807(b, LOC23);
						addson_217807(b, emptynode_216801);
						LOC24 = 0;
						LOC24 = HEX5BHEX5D_216238(it, ((NI) 2));
						LOC25 = 0;
						LOC25 = transform_385286(c, LOC24);
						addson_217807(b, LOC25);
						HEX5BHEX5DHEX3D_385069(result, i_385635, b);
					}
					goto LA18;
					LA21: ;
					{
						HEX5BHEX5DHEX3D_385069(result, i_385635, it);
					}
					LA18: ;
				}
				LA5: ;
				res_385683 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(Tnode215790*, freshvar_385438)(Ttransfcontext385008* c, Tsym215822* v) {
	Tnode215790* result;
	Tsym215822* owner;
	result = 0;
	owner = getcurrowner_385229(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_381014(v, owner);
	}
	goto LA1;
	LA7: ;
	{
		Tsym215822* newvar;
		newvar = copysym_218601(v, NIM_FALSE);
		(*newvar).flags |= ((NU32)1)<<((((NU8) 2))%(sizeof(NU32)*8));
		asgnRefNoCycle((void**) (&(*newvar).owner), owner);
		result = newsymnode_217234(newvar);
	}
	LA1: ;
	return result;
}

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

N_NIMCALL(Tnode215790*, transformvarsection_385477)(Ttransfcontext385008* c, Tnode215790* v) {
	Tnode215790* result;
	result = 0;
	result = newtransnode_385027(v);
	{
		NI i_385493;
		NI HEX3Atmp_385612;
		NI LOC2;
		NI res_385615;
		i_385493 = 0;
		HEX3Atmp_385612 = 0;
		LOC2 = 0;
		LOC2 = sonslen_218351(v);
		HEX3Atmp_385612 = (NI)(LOC2 - ((NI) 1));
		res_385615 = ((NI) 0);
		{
			while (1) {
				Tnode215790* it;
				if (!(res_385615 <= HEX3Atmp_385612)) goto LA4;
				i_385493 = res_385615;
				it = (*v).kindU.S6.sons->data[i_385493];
				{
					if (!((*it).kind == ((NU8) 125))) goto LA7;
					HEX5BHEX5DHEX3D_385069(result, i_385493, it);
				}
				goto LA5;
				LA7: ;
				{
					if (!((*it).kind == ((NU8) 35))) goto LA10;
					{
						Tnode215790* x;
						Tidobj190006* LOC22;
						Tnode215790* defs;
						Tnode215790* LOC29;
						if (!((*(*it).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3))) goto LA14;
						{
							NI LOC18;
							NimStringDesc* LOC21;
							LOC18 = 0;
							LOC18 = len_216059(it);
							if (!!((LOC18 == ((NI) 3)))) goto LA19;
							LOC21 = 0;
							LOC21 = HEX24_188183(TMP3461);
							internalerror_188113(LOC21);
						}
						LA19: ;
						x = freshvar_385438(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_222129((&(*(*c).transcon).mapping), LOC22, x);
						defs = newtransnode_385031(((NU8) 35), (*it).info, ((NI) 3));
						{
							NIM_BOOL LOC25;
							NimStringDesc* LOC28;
							LOC25 = 0;
							LOC25 = importantcomments_161154();
							if (!LOC25) goto LA26;
							LOC28 = 0;
							LOC28 = (*defs).comment; (*defs).comment = copyStringRC1((*it).comment);
							if (LOC28) nimGCunrefNoCycle(LOC28);
						}
						LA26: ;
						HEX5BHEX5DHEX3D_385069(defs, ((NI) 0), x);
						HEX5BHEX5DHEX3D_385069(defs, ((NI) 1), (*it).kindU.S6.sons->data[((NI) 1)]);
						LOC29 = 0;
						LOC29 = transform_385286(c, (*it).kindU.S6.sons->data[((NI) 2)]);
						HEX5BHEX5DHEX3D_385069(defs, ((NI) 2), LOC29);
						{
							if (!((*x).kind == ((NU8) 3))) goto LA32;
							asgnRefNoCycle((void**) (&(*(*x).kindU.S4.sym).ast), HEX5BHEX5D_385076(defs, ((NI) 2)));
						}
						LA32: ;
						HEX5BHEX5DHEX3D_385069(result, i_385493, defs);
					}
					goto LA12;
					LA14: ;
					{
						Tnode215790* LOC35;
						LOC35 = 0;
						LOC35 = transform_385286(c, it);
						HEX5BHEX5DHEX3D_385069(result, i_385493, LOC35);
					}
					LA12: ;
				}
				goto LA5;
				LA10: ;
				{
					NI L;
					Tnode215790* defs;
					Tnode215790* LOC45;
					{
						if (!!(((*it).kind == ((NU8) 36)))) goto LA39;
						internalerror_188100((*it).info, ((NimStringDesc*) &TMP3463));
					}
					LA39: ;
					L = sonslen_218351(it);
					defs = newtransnode_385031((*it).kind, (*it).info, L);
					{
						NI j_385578;
						NI HEX3Atmp_385605;
						NI res_385608;
						j_385578 = 0;
						HEX3Atmp_385605 = 0;
						HEX3Atmp_385605 = (NI)(L - ((NI) 3));
						res_385608 = ((NI) 0);
						{
							while (1) {
								Tnode215790* x;
								Tidobj190006* LOC44;
								if (!(res_385608 <= HEX3Atmp_385605)) goto LA43;
								j_385578 = res_385608;
								x = freshvar_385438(c, (*(*it).kindU.S6.sons->data[j_385578]).kindU.S4.sym);
								LOC44 = 0;
								LOC44 = &(*(*it).kindU.S6.sons->data[j_385578]).kindU.S4.sym->Sup;
								idnodetableput_222129((&(*(*c).transcon).mapping), LOC44, x);
								HEX5BHEX5DHEX3D_385069(defs, j_385578, x);
								res_385608 += ((NI) 1);
							} LA43: ;
						}
					}
					HEX5BHEX5DHEX3D_385069(defs, (NI)(L - ((NI) 2)), emptynode_216801);
					LOC45 = 0;
					LOC45 = transform_385286(c, (*it).kindU.S6.sons->data[(NI)(L - ((NI) 1))]);
					HEX5BHEX5DHEX3D_385069(defs, (NI)(L - ((NI) 1)), LOC45);
					HEX5BHEX5DHEX3D_385069(result, i_385493, defs);
				}
				LA5: ;
				res_385615 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(void, unpacktuple_386003)(Ttransfcontext385008* c, Tnode215790* n, Tnode215790* father) {
	{
		NI i_386019;
		NI HEX3Atmp_386022;
		NI LOC2;
		NI res_386025;
		i_386019 = 0;
		HEX3Atmp_386022 = 0;
		LOC2 = 0;
		LOC2 = sonslen_218351((*(*c).transcon).forstmt);
		HEX3Atmp_386022 = (NI)(LOC2 - ((NI) 3));
		res_386025 = ((NI) 0);
		{
			while (1) {
				Tnode215790* LOC5;
				Tnode215790* LOC6;
				Tnode215790* LOC7;
				if (!(res_386025 <= HEX3Atmp_386022)) goto LA4;
				i_386019 = res_386025;
				LOC5 = 0;
				LOC5 = newtupleaccess_377010(n, i_386019);
				LOC6 = 0;
				LOC6 = transform_385286(c, LOC5);
				LOC7 = 0;
				LOC7 = newasgnstmt_385316(c, (*(*(*c).transcon).forstmt).kindU.S6.sons->data[i_386019], LOC6);
				add_385084(father, LOC7);
				res_386025 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(Tnode215790*, introducenewlocalvars_386029)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* result;
{	result = 0;
	switch ((*n).kind) {
	case ((NU8) 3):
	{
		result = transformsym_385433(c, n);
	}
	break;
	case ((NU8) 1) ... ((NU8) 2):
	case ((NU8) 4) ... ((NU8) 23):
	{
		result = n;
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		result = transformvarsection_385477(c, n);
	}
	break;
	case ((NU8) 155):
	{
		Tnode215790* a;
		a = HEX5BHEX5D_216238(n, ((NI) 1));
		{
			if (!((*a).kind == ((NU8) 3))) goto LA7;
			asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), transformsymaux_385322(c, a));
		}
		LA7: ;
		result = n;
		goto BeforeRet;
	}
	break;
	default:
	{
		result = newtransnode_385027(n);
		{
			NI i_386076;
			NI HEX3Atmp_386079;
			NI LOC11;
			NI res_386082;
			i_386076 = 0;
			HEX3Atmp_386079 = 0;
			LOC11 = 0;
			LOC11 = sonslen_218351(n);
			HEX3Atmp_386079 = (NI)(LOC11 - ((NI) 1));
			res_386082 = ((NI) 0);
			{
				while (1) {
					Tnode215790* LOC14;
					if (!(res_386082 <= HEX3Atmp_386079)) goto LA13;
					i_386076 = res_386082;
					LOC14 = 0;
					LOC14 = introducenewlocalvars_386029(c, (*n).kindU.S6.sons->data[i_386076]);
					HEX5BHEX5DHEX3D_385069(result, i_386076, LOC14);
					res_386082 += ((NI) 1);
				} LA13: ;
			}
		}
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode215790*, transformyield_386086)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* result;
	Tnode215790* e;
{	result = 0;
	result = newtransnode_385031(((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;
		Ttype215828* LOC8;
		NI LOC10;
		LOC7 = 0;
		LOC8 = 0;
		LOC8 = skiptypes_219113((*e).typ, 2048);
		LOC7 = ((*LOC8).kind == ((NU8) 18));
		if (!(LOC7)) goto LA9;
		LOC10 = 0;
		LOC10 = len_216059((*(*c).transcon).forstmt);
		LOC7 = !((LOC10 == ((NI) 3)));
		LA9: ;
		if (!LOC7) goto LA11;
		e = skipconv_250082(e);
		{
			if (!((*e).kind == ((NU8) 37))) goto LA15;
			{
				NI i_386132;
				NI HEX3Atmp_386147;
				NI LOC18;
				NI res_386150;
				i_386132 = 0;
				HEX3Atmp_386147 = 0;
				LOC18 = 0;
				LOC18 = sonslen_218351(e);
				HEX3Atmp_386147 = (NI)(LOC18 - ((NI) 1));
				res_386150 = ((NI) 0);
				{
					while (1) {
						Tnode215790* LOC21;
						Tnode215790* LOC22;
						if (!(res_386150 <= HEX3Atmp_386147)) goto LA20;
						i_386132 = res_386150;
						LOC21 = 0;
						LOC21 = transform_385286(c, (*e).kindU.S6.sons->data[i_386132]);
						LOC22 = 0;
						LOC22 = newasgnstmt_385316(c, (*(*(*c).transcon).forstmt).kindU.S6.sons->data[i_386132], LOC21);
						add_385084(result, LOC22);
						res_386150 += ((NI) 1);
					} LA20: ;
				}
			}
		}
		goto LA13;
		LA15: ;
		{
			unpacktuple_386003(c, e, result);
		}
		LA13: ;
	}
	goto LA5;
	LA11: ;
	{
		Tnode215790* x;
		Tnode215790* LOC25;
		x = transform_385286(c, e);
		LOC25 = 0;
		LOC25 = newasgnstmt_385316(c, (*(*(*c).transcon).forstmt).kindU.S6.sons->data[((NI) 0)], x);
		add_385084(result, LOC25);
	}
	LA5: ;
	(*(*c).transcon).yieldstmts += ((NI) 1);
	{
		if (!((*(*c).transcon).yieldstmts <= ((NI) 1))) goto LA28;
		add_385084(result, (*(*c).transcon).forloopbody);
	}
	goto LA26;
	LA28: ;
	{
		Tnode215790* LOC31;
		LOC31 = 0;
		LOC31 = introducenewlocalvars_386029(c, (*(*c).transcon).forloopbody);
		add_385084(result, LOC31);
	}
	LA26: ;
	}BeforeRet: ;
	return result;
}

static N_INLINE(NIM_BOOL, dontinlineconstant_387253)(Tnode215790* orig, Tnode215790* 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_216059(cnst);
	LOC1 = !((LOC5 == ((NI) 0)));
	LA4: ;
	result = LOC1;
	return result;
}

N_NIMCALL(Tnode215790*, transform_385286)(Ttransfcontext385008* c, Tnode215790* n) {
	Tnode215790* result;
	Tnode215790* cnst;
{	result = 0;
	switch ((*n).kind) {
	case ((NU8) 3):
	{
		result = transformsym_385433(c, n);
	}
	break;
	case ((NU8) 1) ... ((NU8) 2):
	case ((NU8) 4) ... ((NU8) 23):
	{
		result = n;
	}
	break;
	case ((NU8) 42):
	{
		result = transformarrayaccess_386961(c, n);
	}
	break;
	case ((NU8) 51) ... ((NU8) 52):
	case ((NU8) 79) ... ((NU8) 81):
	case ((NU8) 84):
	{
		Tsym215822* 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_385433(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_386526(c, n);
	}
	break;
	case ((NU8) 95):
	{
		result = transformsons_385290(c, n);
	}
	break;
	case ((NU8) 97):
	{
		result = transformcase_386873(c, n);
	}
	break;
	case ((NU8) 96):
	{
		result = transformwhile_385897(c, n);
	}
	break;
	case ((NU8) 112):
	case ((NU8) 127):
	{
		result = transformblock_385811(c, n);
	}
	break;
	case ((NU8) 105):
	{
		(*c).deferdetected = NIM_TRUE;
		result = transformsons_385290(c, n);
	}
	break;
	case ((NU8) 111):
	{
		Tsym215822* labl;
		Tnode215790* LOC24;
		result = newnodei_217248(((NU8) 110), (*n).info);
		labl = (*c).contsyms->data[((*c).contsyms ? ((*c).contsyms->Sup.len-1) : -1)];
		LOC24 = 0;
		LOC24 = newsymnode_217234(labl);
		add_385084(result, LOC24);
	}
	break;
	case ((NU8) 110):
	{
		result = transformbreak_385964(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_387124(c, n);
	}
	break;
	case ((NU8) 63):
	case ((NU8) 64):
	{
		result = transformaddrderef_386154(c, n, ((NU8) 47), ((NU8) 65));
	}
	break;
	case ((NU8) 47):
	case ((NU8) 65):
	{
		result = transformaddrderef_386154(c, n, ((NU8) 63), ((NU8) 64));
	}
	break;
	case ((NU8) 58):
	case ((NU8) 59):
	case ((NU8) 60):
	{
		result = transformconv_386283(c, n);
	}
	break;
	case ((NU8) 114):
	{
		result = n;
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA33;
			result = transformsons_385290(c, n);
			{
				NIM_BOOL LOC37;
				LOC37 = 0;
				LOC37 = isconstexpr_240336((*result).kindU.S6.sons->data[((NI) 0)]);
				if (!LOC37) goto LA38;
				result = newnode_216401(((NU8) 125));
			}
			LA38: ;
		}
		LA33: ;
	}
	break;
	case ((NU8) 125):
	case ((NU8) 83):
	{
		result = n;
		goto BeforeRet;
	}
	break;
	case ((NU8) 101):
	{
		result = transformconstsection_385619(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_385477(c, n);
		}
		goto LA44;
		LA46: ;
		{
			result = transformsons_385290(c, n);
		}
		LA44: ;
	}
	break;
	case ((NU8) 104):
	{
		{
			if (!(((NI) 0) < (*c).inlining)) goto LA52;
			result = transformyield_386086(c, n);
		}
		goto LA50;
		LA52: ;
		{
			result = transformsons_385290(c, n);
		}
		LA50: ;
	}
	break;
	case ((NU8) 35):
	case ((NU8) 102):
	{
		result = transformsons_385290(c, n);
		{
			NIM_BOOL LOC58;
			NimStringDesc* LOC61;
			LOC58 = 0;
			LOC58 = importantcomments_161154();
			if (!LOC58) goto LA59;
			LOC61 = 0;
			LOC61 = (*result).comment; (*result).comment = copyStringRC1((*n).comment);
			if (LOC61) nimGCunrefNoCycle(LOC61);
		}
		LA59: ;
	}
	break;
	case ((NU8) 155):
	{
		Tnode215790* a;
		a = HEX5BHEX5D_216238(n, ((NI) 1));
		{
			if (!((*a).kind == ((NU8) 3))) goto LA65;
			asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), transformsymaux_385322(c, a));
		}
		LA65: ;
		result = n;
		goto BeforeRet;
	}
	break;
	default:
	{
		result = transformsons_385290(c, n);
	}
	break;
	}
	cnst = getconstexpr_276001((*c).module, result);
	{
		NIM_BOOL LOC70;
		NIM_BOOL LOC72;
		LOC70 = 0;
		LOC70 = !((cnst == NIM_NIL));
		if (!(LOC70)) goto LA71;
		LOC72 = 0;
		LOC72 = dontinlineconstant_387253(n, cnst);
		LOC70 = !(LOC72);
		LA71: ;
		if (!LOC70) goto LA73;
		result = cnst;
	}
	LA73: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode215790*, processtransf_388014)(Ttransfcontext385008* c, Tnode215790* n, Tsym215822* owner) {
	Tnode215790* result;
	Ttranscon385006* 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_385092(owner);
	pushtranscon_385210(c, LOC7);
	result = transform_385286(c, n);
	poptranscon_385214(c);
	(*result).flags |= ((NU16)1)<<((((NU8) 5))%(sizeof(NU16)*8));
	}BeforeRet: ;
	return result;
}

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

N_NIMCALL(void, flattenstmts_388085)(Tnode215790* 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;
					Tnode215790* it;
					LOC5 = 0;
					LOC5 = len_216059(n);
					if (!(i < LOC5)) goto LA4;
					it = HEX5BHEX5D_216238(n, i);
					{
						Slice88082 LOC10;
						NI LOC11;
						Slice88082 LOC12;
						Tnodeseq215784* LOC13;
						if (!((*it).kind == ((NU8) 115) || (*it).kind == ((NU8) 126))) goto LA8;
						LOC10 = HEX2EHEX2E_102424(i, i);
						LOC11 = 0;
						LOC11 = len_216059(it);
						LOC12 = HEX2EHEX2E_102424(((NI) 0), (LOC11 - 1));
						LOC13 = 0;
						LOC13 = HEX5BHEX5D_388135((*it).kindU.S6.sons, LOC12);
						HEX5BHEX5DHEX3D_388186((&(*n).kindU.S6.sons), LOC10, LOC13->data, LOC13->Sup.len);
						goon = NIM_TRUE;
					}
					LA8: ;
					i += ((NI) 1);
				} LA4: ;
			}
		} LA2: ;
	}
}

N_NIMCALL(void, liftdeferaux_388379)(Tnode215790* n) {
	{
		NIM_BOOL goon;
		if (!((*n).kind == ((NU8) 115) || (*n).kind == ((NU8) 126))) goto LA3;
		flattenstmts_388085(n);
		goon = NIM_TRUE;
		{
			while (1) {
				NI last;
				NI LOC7;
				if (!goon) goto LA6;
				goon = NIM_FALSE;
				LOC7 = 0;
				LOC7 = len_216059(n);
				last = (NI)(LOC7 - ((NI) 1));
				{
					NI i_388405;
					NI res_388480;
					i_388405 = 0;
					res_388480 = ((NI) 0);
					{
						while (1) {
							if (!(res_388480 <= last)) goto LA10;
							i_388405 = res_388480;
							{
								Tnode215790* deferpart;
								Tnode215790* trystmt;
								Tnode215790* body;
								if (!((*(*n).kindU.S6.sons->data[i_388405]).kind == ((NU8) 105))) goto LA13;
								deferpart = newnodei_217248(((NU8) 107), (*(*n).kindU.S6.sons->data[i_388405]).info);
								add_216114(deferpart, (*(*n).kindU.S6.sons->data[i_388405]).kindU.S6.sons->data[((NI) 0)]);
								trystmt = newnodei_217248(((NU8) 106), (*(*n).kindU.S6.sons->data[i_388405]).info);
								body = newnodei_217248((*n).kind, (*(*n).kindU.S6.sons->data[i_388405]).info);
								{
									Slice88082 LOC19;
									if (!(i_388405 < last)) goto LA17;
									LOC19 = HEX2EHEX2E_102424((NI)(i_388405 + ((NI) 1)), last);
									asgnRefNoCycle((void**) (&(*body).kindU.S6.sons), HEX5BHEX5D_388135((*n).kindU.S6.sons, LOC19));
								}
								LA17: ;
								addson_217807(trystmt, body);
								addson_217807(trystmt, deferpart);
								asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[i_388405]), trystmt);
								(*n).kindU.S6.sons = (Tnodeseq215784*) setLengthSeq(&((*n).kindU.S6.sons)->Sup, sizeof(Tnode215790*), ((NI) ((NI)(i_388405 + ((NI) 1)))));
								asgnRefNoCycle((void**) (&(*n).typ), (*(*n).kindU.S6.sons->data[i_388405]).typ);
								goon = NIM_TRUE;
								goto LA8;
							}
							LA13: ;
							res_388480 += ((NI) 1);
						} LA10: ;
					}
				} LA8: ;
			} LA6: ;
		}
	}
	LA3: ;
	{
		NI i_388474;
		NI HEX3Atmp_388485;
		NI LOC21;
		NI res_388488;
		i_388474 = 0;
		HEX3Atmp_388485 = 0;
		LOC21 = 0;
		LOC21 = safelen_216081(n);
		HEX3Atmp_388485 = (NI)(LOC21 - ((NI) 1));
		res_388488 = ((NI) 0);
		{
			while (1) {
				if (!(res_388488 <= HEX3Atmp_388485)) goto LA23;
				i_388474 = res_388488;
				liftdeferaux_388379((*n).kindU.S6.sons->data[i_388474]);
				res_388488 += ((NI) 1);
			} LA23: ;
		}
	}
}

N_NIMCALL(Tnode215790*, transformexpr_388801)(Tsym215822* module, Tnode215790* n) {
	Tnode215790* result;
	result = 0;
	{
		if (!(((*n).flags &(1U<<((NU)(((NU8) 5))&15U)))!=0)) goto LA3;
		result = n;
	}
	goto LA1;
	LA3: ;
	{
		Ttransfcontext385008* c;
		c = opentransf_388040(module, ((NimStringDesc*) &TMP3437));
		result = processtransf_388014(c, n, module);
		{
			if (!(*c).deferdetected) goto LA8;
			liftdeferaux_388379(result);
		}
		LA8: ;
		(*result).flags |= ((NU16)1)<<((((NU8) 5))%(sizeof(NU16)*8));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode215790*, commonoptimizations_387279)(Tsym215822* c, Tnode215790* n) {
	Tnode215790* result;
	Tsym215822* op;
	result = 0;
	result = n;
	{
		NI i_387302;
		NI HEX3Atmp_387368;
		NI LOC2;
		NI res_387371;
		i_387302 = 0;
		HEX3Atmp_387368 = 0;
		LOC2 = 0;
		LOC2 = safelen_216081(n);
		HEX3Atmp_387368 = (LOC2 - 1);
		res_387371 = ((NI) 0);
		{
			while (1) {
				if (!(res_387371 <= HEX3Atmp_387368)) goto LA4;
				i_387302 = res_387371;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_387302]), commonoptimizations_387279(c, (*n).kindU.S6.sons->data[i_387302]));
				res_387371 += ((NI) 1);
			} LA4: ;
		}
	}
	op = getmergeop_387016(n);
	{
		NIM_BOOL LOC7;
		NIM_BOOL LOC8;
		NI LOC11;
		Tnode215790* 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_218351(n);
		LOC7 = (((NI) 3) <= LOC11);
		LA10: ;
		if (!LOC7) goto LA12;
		result = newnodeit_217801(((NU8) 27), (*n).info, (*n).typ);
		add_216114(result, (*n).kindU.S6.sons->data[((NI) 0)]);
		args = newnode_216401(((NU8) 152));
		flattentreeaux_387044(args, n, op);
		j = ((NI) 0);
		{
			while (1) {
				NI LOC16;
				Tnode215790* a;
				LOC16 = 0;
				LOC16 = sonslen_218351(args);
				if (!(j < LOC16)) goto LA15;
				a = (*args).kindU.S6.sons->data[j];
				j += ((NI) 1);
				{
					NIM_BOOL LOC19;
					LOC19 = 0;
					LOC19 = isconstexpr_240336(a);
					if (!LOC19) goto LA20;
					{
						while (1) {
							NI LOC24;
							Tnode215790* b;
							LOC24 = 0;
							LOC24 = sonslen_218351(args);
							if (!(j < LOC24)) goto LA23;
							b = (*args).kindU.S6.sons->data[j];
							{
								NIM_BOOL LOC27;
								LOC27 = 0;
								LOC27 = isconstexpr_240336(b);
								if (!!(LOC27)) goto LA28;
								goto LA22;
							}
							LA28: ;
							a = evalop_276005((*op).magic, result, a, b, NIM_NIL);
							j += ((NI) 1);
						} LA23: ;
					} LA22: ;
				}
				LA20: ;
				add_216114(result, a);
			} LA15: ;
		}
		{
			NI LOC32;
			LOC32 = 0;
			LOC32 = len_216059(result);
			if (!(LOC32 == ((NI) 2))) goto LA33;
			result = HEX5BHEX5D_216238(result, ((NI) 1));
		}
		LA33: ;
	}
	goto LA5;
	LA12: ;
	{
		Tnode215790* cnst;
		cnst = getconstexpr_276001(c, n);
		{
			NIM_BOOL LOC38;
			NIM_BOOL LOC40;
			LOC38 = 0;
			LOC38 = !((cnst == NIM_NIL));
			if (!(LOC38)) goto LA39;
			LOC40 = 0;
			LOC40 = dontinlineconstant_387253(n, cnst);
			LOC38 = !(LOC40);
			LA39: ;
			if (!LOC38) goto LA41;
			result = cnst;
		}
		goto LA36;
		LA41: ;
		{
			result = n;
		}
		LA36: ;
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tnode215790*, transformbody_388498)(Tsym215822* module, Tnode215790* n, Tsym215822* prc) {
	Tnode215790* 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: ;
	{
		Ttransfcontext385008* c;
		c = opentransf_388040(module, ((NimStringDesc*) &TMP3437));
		result = liftlambdas_384237(prc, n, (&(*c).tooearly));
		result = processtransf_388014(c, result, prc);
		{
			if (!(*c).deferdetected) goto LA10;
			liftdeferaux_388379(result);
		}
		LA10: ;
		(*result).flags |= ((NU16)1)<<((((NU8) 5))%(sizeof(NU16)*8));
		trackproc_348165(prc, result);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode215790*, transformstmt_388601)(Tsym215822* module, Tnode215790* n) {
	Tnode215790* result;
	result = 0;
	{
		if (!(((*n).flags &(1U<<((NU)(((NU8) 5))&15U)))!=0)) goto LA3;
		result = n;
	}
	goto LA1;
	LA3: ;
	{
		Ttransfcontext385008* c;
		c = opentransf_388040(module, ((NimStringDesc*) &TMP3437));
		result = processtransf_388014(c, n, module);
		{
			if (!(*c).deferdetected) goto LA8;
			liftdeferaux_388379(result);
		}
		LA8: ;
		(*result).flags |= ((NU16)1)<<((((NU8) 5))%(sizeof(NU16)*8));
		tracktoplevelstmt_348402(module, result);
	}
	LA1: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, compiler_transfInit000)(void) {
}

NIM_EXTERNC N_NOINLINE(void, compiler_transfDatInit000)(void) {
static TNimNode* TMP3430[8];
static TNimNode* TMP3431[6];
static TNimNode TMP1009[16];
NTI385008.size = sizeof(Ttransfcontext385008);
NTI385008.kind = 17;
NTI385008.base = (&NTI262002);
TMP3430[0] = &TMP1009[1];
TMP1009[1].kind = 1;
TMP1009[1].offset = offsetof(Ttransfcontext385008, module);
TMP1009[1].typ = (&NTI215788);
TMP1009[1].name = "module";
TMP3430[1] = &TMP1009[2];
NTI385006.size = sizeof(Ttranscon385006);
NTI385006.kind = 18;
NTI385006.base = 0;
TMP3431[0] = &TMP1009[4];
TMP1009[4].kind = 1;
TMP1009[4].offset = offsetof(Ttranscon385006, mapping);
TMP1009[4].typ = (&NTI215846);
TMP1009[4].name = "mapping";
TMP3431[1] = &TMP1009[5];
TMP1009[5].kind = 1;
TMP1009[5].offset = offsetof(Ttranscon385006, owner);
TMP1009[5].typ = (&NTI215788);
TMP1009[5].name = "owner";
TMP3431[2] = &TMP1009[6];
TMP1009[6].kind = 1;
TMP1009[6].offset = offsetof(Ttranscon385006, forstmt);
TMP1009[6].typ = (&NTI215782);
TMP1009[6].name = "forStmt";
TMP3431[3] = &TMP1009[7];
TMP1009[7].kind = 1;
TMP1009[7].offset = offsetof(Ttranscon385006, forloopbody);
TMP1009[7].typ = (&NTI215782);
TMP1009[7].name = "forLoopBody";
TMP3431[4] = &TMP1009[8];
TMP1009[8].kind = 1;
TMP1009[8].offset = offsetof(Ttranscon385006, yieldstmts);
TMP1009[8].typ = (&NTI104);
TMP1009[8].name = "yieldStmts";
TMP3431[5] = &TMP1009[9];
TMP1009[9].kind = 1;
TMP1009[9].offset = offsetof(Ttranscon385006, next);
TMP1009[9].typ = (&NTI385004);
TMP1009[9].name = "next";
TMP1009[3].len = 6; TMP1009[3].kind = 2; TMP1009[3].sons = &TMP3431[0];
NTI385006.node = &TMP1009[3];
NTI385004.size = sizeof(Ttranscon385006*);
NTI385004.kind = 22;
NTI385004.base = (&NTI385006);
NTI385004.marker = TMP3435;
TMP1009[2].kind = 1;
TMP1009[2].offset = offsetof(Ttransfcontext385008, transcon);
TMP1009[2].typ = (&NTI385004);
TMP1009[2].name = "transCon";
TMP3430[2] = &TMP1009[10];
TMP1009[10].kind = 1;
TMP1009[10].offset = offsetof(Ttransfcontext385008, inlining);
TMP1009[10].typ = (&NTI104);
TMP1009[10].name = "inlining";
TMP3430[3] = &TMP1009[11];
TMP1009[11].kind = 1;
TMP1009[11].offset = offsetof(Ttransfcontext385008, nestedprocs);
TMP1009[11].typ = (&NTI104);
TMP1009[11].name = "nestedProcs";
TMP3430[4] = &TMP1009[12];
TMP1009[12].kind = 1;
TMP1009[12].offset = offsetof(Ttransfcontext385008, contsyms);
TMP1009[12].typ = (&NTI215792);
TMP1009[12].name = "contSyms";
TMP3430[5] = &TMP1009[13];
TMP1009[13].kind = 1;
TMP1009[13].offset = offsetof(Ttransfcontext385008, breaksyms);
TMP1009[13].typ = (&NTI215792);
TMP1009[13].name = "breakSyms";
TMP3430[6] = &TMP1009[14];
TMP1009[14].kind = 1;
TMP1009[14].offset = offsetof(Ttransfcontext385008, deferdetected);
TMP1009[14].typ = (&NTI130);
TMP1009[14].name = "deferDetected";
TMP3430[7] = &TMP1009[15];
TMP1009[15].kind = 1;
TMP1009[15].offset = offsetof(Ttransfcontext385008, tooearly);
TMP1009[15].typ = (&NTI130);
TMP1009[15].name = "tooEarly";
TMP1009[0].len = 8; TMP1009[0].kind = 2; TMP1009[0].sons = &TMP3430[0];
NTI385008.node = &TMP1009[0];
NTI385010.size = sizeof(Ttransfcontext385008*);
NTI385010.kind = 22;
NTI385010.base = (&NTI385008);
NTI385010.marker = TMP3436;
}

