/* Generated by Nim Compiler v0.11.2 */
/*   (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 Tnode191813 Tnode191813;
typedef struct Tsym191843 Tsym191843;
typedef struct Ttype191849 Ttype191849;
typedef struct Tlineinfo164338 Tlineinfo164338;
typedef struct NimStringDesc NimStringDesc;
typedef struct TGenericSeq TGenericSeq;
typedef struct Tident168021 Tident168021;
typedef struct Tnodeseq191807 Tnodeseq191807;
typedef struct Ttransfcontext368011 Ttransfcontext368011;
typedef struct Tpasscontext242005 Tpasscontext242005;
typedef struct TNimObject TNimObject;
typedef struct TNimType TNimType;
typedef struct TNimNode TNimNode;
typedef struct Ttranscon368009 Ttranscon368009;
typedef struct Tsymseq191815 Tsymseq191815;
typedef struct Tidnodetable191867 Tidnodetable191867;
typedef struct Tidnodepairseq191865 Tidnodepairseq191865;
typedef struct Tcell46346 Tcell46346;
typedef struct Tcellseq46362 Tcellseq46362;
typedef struct Tgcheap48216 Tgcheap48216;
typedef struct Tcellset46358 Tcellset46358;
typedef struct Tpagedesc46354 Tpagedesc46354;
typedef struct Tmemregion28210 Tmemregion28210;
typedef struct Tsmallchunk27440 Tsmallchunk27440;
typedef struct Tllchunk28204 Tllchunk28204;
typedef struct Tbigchunk27442 Tbigchunk27442;
typedef struct Tintset27417 Tintset27417;
typedef struct Ttrunk27413 Ttrunk27413;
typedef struct Tavlnode28208 Tavlnode28208;
typedef struct Tgcstat48214 Tgcstat48214;
typedef struct Tidobj168015 Tidobj168015;
typedef struct Ttypeseq191845 Ttypeseq191845;
typedef struct Tscope191837 Tscope191837;
typedef struct TY191944 TY191944;
typedef struct Tstrtable191817 Tstrtable191817;
typedef struct Tloc191827 Tloc191827;
typedef struct Ropeobj162009 Ropeobj162009;
typedef struct Tlib191831 Tlib191831;
typedef struct Tidtable191861 Tidtable191861;
typedef struct Tidpairseq191859 Tidpairseq191859;
typedef struct TY86345 TY86345;
typedef struct Tidnodepair191863 Tidnodepair191863;
typedef struct Tbasechunk27438 Tbasechunk27438;
typedef struct Tfreecell27430 Tfreecell27430;
typedef struct Tinstantiation191833 Tinstantiation191833;
typedef struct Tlistentry130022 Tlistentry130022;
typedef struct Tidpair191857 Tidpair191857;
typedef struct TY191933 TY191933;
struct  Tlineinfo164338  {
NI16 line;
NI16 col;
NI32 fileindex;
};
struct  TGenericSeq  {
NI len;
NI reserved;
};
struct  NimStringDesc  {
  TGenericSeq Sup;
NIM_CHAR data[SEQ_DECL_SIZE];
};
struct  Tnode191813  {
Ttype191849* typ;
Tlineinfo164338 info;
NU16 flags;
NU8 kind;
union{
struct {NI64 intval;
} S1;
struct {NF floatval;
} S2;
struct {NimStringDesc* strval;
} S3;
struct {Tsym191843* sym;
} S4;
struct {Tident168021* ident;
} S5;
struct {Tnodeseq191807* sons;
} S6;
} kindU;
NimStringDesc* comment;
};
typedef N_NIMCALL_PTR(void, TY3289) (void* p, NI op);
typedef N_NIMCALL_PTR(void*, TY3294) (void* p);
struct  TNimType  {
NI size;
NU8 kind;
NU8 flags;
TNimType* base;
TNimNode* node;
void* finalizer;
TY3289 marker;
TY3294 deepcopy;
};
struct  TNimObject  {
TNimType* m_type;
};
struct  Tpasscontext242005  {
  TNimObject Sup;
NIM_BOOL fromcache;
};
struct  Ttransfcontext368011  {
  Tpasscontext242005 Sup;
Tsym191843* module;
Ttranscon368009* transcon;
NI inlining;
NI nestedprocs;
Tsymseq191815* contsyms;
Tsymseq191815* breaksyms;
};
struct  TNimNode  {
NU8 kind;
NI offset;
TNimType* typ;
NCSTRING name;
NI len;
TNimNode** sons;
};
struct  Tidnodetable191867  {
NI counter;
Tidnodepairseq191865* data;
};
struct  Ttranscon368009  {
Tidnodetable191867 mapping;
Tsym191843* owner;
Tnode191813* forstmt;
Tnode191813* forloopbody;
NI yieldstmts;
Ttranscon368009* next;
};
struct  Tcell46346  {
NI refcount;
TNimType* typ;
};
struct  Tcellseq46362  {
NI len;
NI cap;
Tcell46346** d;
};
struct  Tcellset46358  {
NI counter;
NI max;
Tpagedesc46354* head;
Tpagedesc46354** data;
};
typedef Tsmallchunk27440* TY28222[512];
typedef Ttrunk27413* Ttrunkbuckets27415[256];
struct  Tintset27417  {
Ttrunkbuckets27415 data;
};
struct  Tmemregion28210  {
NI minlargeobj;
NI maxlargeobj;
TY28222 freesmallchunks;
Tllchunk28204* llmem;
NI currmem;
NI maxmem;
NI freemem;
NI lastsize;
Tbigchunk27442* freechunkslist;
Tintset27417 chunkstarts;
Tavlnode28208* root;
Tavlnode28208* deleted;
Tavlnode28208* last;
Tavlnode28208* freeavlnodes;
};
struct  Tgcstat48214  {
NI stackscans;
NI cyclecollections;
NI maxthreshold;
NI maxstacksize;
NI maxstackcells;
NI cycletablesize;
NI64 maxpause;
};
struct  Tgcheap48216  {
void* stackbottom;
NI cyclethreshold;
Tcellseq46362 zct;
Tcellseq46362 decstack;
Tcellset46358 cycleroots;
Tcellseq46362 tempstack;
NI recgclock;
Tmemregion28210 region;
Tgcstat48214 stat;
};
struct  Tidobj168015  {
  TNimObject Sup;
NI id;
};
struct  Tstrtable191817  {
NI counter;
Tsymseq191815* data;
};
struct  Tloc191827  {
NU8 k;
NU8 s;
NU16 flags;
Ttype191849* t;
Ropeobj162009* r;
Ropeobj162009* heaproot;
};
struct  Tsym191843  {
  Tidobj168015 Sup;
NU8 kind;
union{
struct {Ttypeseq191845* typeinstcache;
Tscope191837* typscope;
} S1;
struct {TY191944* procinstcache;
Tsym191843* gcunsafetyreason;
} S2;
struct {TY191944* usedgenerics;
Tstrtable191817 tab;
} S3;
struct {Tsym191843* guard;
} S4;
} kindU;
NU16 magic;
Ttype191849* typ;
Tident168021* name;
Tlineinfo164338 info;
Tsym191843* owner;
NU32 flags;
Tnode191813* ast;
NU32 options;
NI position;
NI offset;
Tloc191827 loc;
Tlib191831* annex;
Tnode191813* constraint;
};
struct  Ttype191849  {
  Tidobj168015 Sup;
NU8 kind;
NU8 callconv;
NU32 flags;
Ttypeseq191845* sons;
Tnode191813* n;
Tsym191843* owner;
Tsym191843* sym;
Tsym191843* destructor;
Tsym191843* deepcopy;
Tsym191843* assignment;
NI64 size;
NI16 align;
NI16 locklevel;
Tloc191827 loc;
};
struct  Tidtable191861  {
NI counter;
Tidpairseq191859* data;
};
struct TY86345 {
NimStringDesc* Field0;
NI Field1;
};
struct  Tident168021  {
  Tidobj168015 Sup;
NimStringDesc* s;
Tident168021* next;
NI h;
};
struct  Tidnodepair191863  {
Tidobj168015* key;
Tnode191813* val;
};
typedef NI TY27420[8];
struct  Tpagedesc46354  {
Tpagedesc46354* next;
NI key;
TY27420 bits;
};
struct  Tbasechunk27438  {
NI prevsize;
NI size;
NIM_BOOL used;
};
struct  Tsmallchunk27440  {
  Tbasechunk27438 Sup;
Tsmallchunk27440* next;
Tsmallchunk27440* prev;
Tfreecell27430* freelist;
NI free;
NI acc;
NF data;
};
struct  Tllchunk28204  {
NI size;
NI acc;
Tllchunk28204* next;
};
struct  Tbigchunk27442  {
  Tbasechunk27438 Sup;
Tbigchunk27442* next;
Tbigchunk27442* prev;
NI align;
NF data;
};
struct  Ttrunk27413  {
Ttrunk27413* next;
NI key;
TY27420 bits;
};
typedef Tavlnode28208* TY28214[2];
struct  Tavlnode28208  {
TY28214 link;
NI key;
NI upperbound;
NI level;
};
struct  Tscope191837  {
NI depthlevel;
Tstrtable191817 symbols;
Tnodeseq191807* usingsyms;
Tscope191837* parent;
};
struct  Ropeobj162009  {
  TNimObject Sup;
Ropeobj162009* left;
Ropeobj162009* right;
NI length;
NimStringDesc* data;
};
struct  Tlistentry130022  {
  TNimObject Sup;
Tlistentry130022* prev;
Tlistentry130022* next;
};
struct  Tlib191831  {
  Tlistentry130022 Sup;
NU8 kind;
NIM_BOOL generated;
NIM_BOOL isoverriden;
Ropeobj162009* name;
Tnode191813* path;
};
struct  Tidpair191857  {
Tidobj168015* key;
TNimObject* val;
};
struct  Tfreecell27430  {
Tfreecell27430* next;
NI zerofield;
};
struct  Tinstantiation191833  {
Tsym191843* sym;
Ttypeseq191845* concretetypes;
TY191933* usedby;
};
struct Tsymseq191815 {
  TGenericSeq Sup;
  Tsym191843* data[SEQ_DECL_SIZE];
};
struct Tnodeseq191807 {
  TGenericSeq Sup;
  Tnode191813* data[SEQ_DECL_SIZE];
};
struct Tidnodepairseq191865 {
  TGenericSeq Sup;
  Tidnodepair191863 data[SEQ_DECL_SIZE];
};
struct Ttypeseq191845 {
  TGenericSeq Sup;
  Ttype191849* data[SEQ_DECL_SIZE];
};
struct TY191944 {
  TGenericSeq Sup;
  Tinstantiation191833* data[SEQ_DECL_SIZE];
};
struct Tidpairseq191859 {
  TGenericSeq Sup;
  Tidpair191857 data[SEQ_DECL_SIZE];
};
struct TY191933 {
  TGenericSeq Sup;
  NI32 data[SEQ_DECL_SIZE];
};
N_NIMCALL(Ttransfcontext368011*, opentransf_371067)(Tsym191843* module, NimStringDesc* filename);
N_NIMCALL(void, nimGCvisit)(void* d, NI op);
N_NIMCALL(void, TMP3257)(void* p, NI op);
N_NIMCALL(void, TMP3258)(void* p, NI op);
N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
static N_INLINE(Tcell46346*, usrtocell_49846)(void* usr);
static N_INLINE(void, rtladdzct_51404)(Tcell46346* c);
N_NOINLINE(void, addzct_49817)(Tcellseq46362* s, Tcell46346* c);
N_NIMCALL(void*, newSeqRC1)(TNimType* typ, NI len);
static N_INLINE(void, asgnRefNoCycle)(void** dest, void* src);
N_NIMCALL(Tnode191813*, processtransf_371035)(Ttransfcontext368011* c, Tnode191813* n, Tsym191843* owner);
N_NIMCALL(void, pushtranscon_368216)(Ttransfcontext368011* c, Ttranscon368009* t);
static N_INLINE(void, asgnRef)(void** dest, void* src);
static N_INLINE(void, incref_52222)(Tcell46346* c);
static N_INLINE(NIM_BOOL, canbecycleroot_49867)(Tcell46346* c);
static N_INLINE(void, rtladdcycleroot_50623)(Tcell46346* c);
N_NOINLINE(void, incl_47065)(Tcellset46358* s, Tcell46346* cell);
static N_INLINE(void, decref_51804)(Tcell46346* c);
N_NIMCALL(Ttranscon368009*, newtranscon_368138)(Tsym191843* owner);
N_NIMCALL(void, initidnodetable_195127)(Tidnodetable191867* x);
N_NIMCALL(Tnode191813*, transform_368294)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(Tnode191813*, transformsym_368425)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(Tnode191813*, transformsymaux_368355)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(Tnode191813*, getbody_236647)(Tsym191843* s);
N_NIMCALL(void, internalerror_166199)(Tlineinfo164338 info, NimStringDesc* errmsg);
N_NIMCALL(Tnode191813*, newsymnode_193325)(Tsym191843* sym);
N_NIMCALL(Tnode191813*, idnodetableget_199212)(Tidnodetable191867 t, Tidobj168015* key);
N_NIMCALL(Tnode191813*, transformarrayaccess_370211)(Ttransfcontext368011* c, Tnode191813* n);
static N_INLINE(Tnode191813*, newtransnode_368031)(Tnode191813* a);
N_NIMCALL(Tnode191813*, shallowcopy_195817)(Tnode191813* src);
static N_INLINE(NI, len_192097)(Tnode191813* n);
static N_INLINE(void, HEX5BHEX5DHEX3D_368091)(Tnode191813* a, NI i, Tnode191813* x);
N_NIMCALL(Tnode191813*, skipconv_230935)(Tnode191813* n);
N_NIMCALL(Tnode191813*, transformfor_369761)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(NI, sonslen_194403)(Tnode191813* n);
N_NIMCALL(Tsym191843*, newlabel_368768)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(Tsym191843*, newsym_192655)(NU8 symkind, Tident168021* name, Tsym191843* owner, Tlineinfo164338 info);
N_NIMCALL(Tsym191843*, getcurrowner_368247)(Ttransfcontext368011* c);
N_NIMCALL(Tident168021*, getident_168463)(NimStringDesc* identifier);
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
N_NIMCALL(TGenericSeq*, incrSeq)(TGenericSeq* seq, NI elemsize);
static N_INLINE(Tnode191813*, newtransnode_368041)(NU8 kind, Tlineinfo164338 info, NI sons);
N_NIMCALL(Tnode191813*, newnodei_193351)(NU8 kind, Tlineinfo164338 info);
N_NIMCALL(Tnode191813*, transformloopbody_368957)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(NIM_BOOL, hascontinue_368727)(Tnode191813* n);
static N_INLINE(Tsym191843*, pop_368918)(Tsymseq191815** s);
N_NIMCALL(TGenericSeq*, setLengthSeq)(TGenericSeq* seq, NI elemsize, NI newlen);
N_NIMCALL(Tnode191813*, liftforloop_367323)(Tnode191813* body);
N_NIMCALL(void, addvar_358047)(Tnode191813* father, Tnode191813* v);
N_NIMCALL(Tnode191813*, copytree_196028)(Tnode191813* src);
static N_INLINE(void, add_368118)(Tnode191813* a, Tnode191813* b);
N_NIMCALL(void, addson_193819)(Tnode191813* father, Tnode191813* son);
N_NIMCALL(Ttype191849*, skiptypes_195167)(Ttype191849* t, NU64 kinds);
N_NIMCALL(NU8, putarginto_369603)(Tnode191813* arg, Ttype191849* formal);
N_NIMCALL(void, idnodetableput_199219)(Tidnodetable191867* t, Tidobj168015* key, Tnode191813* val);
N_NIMCALL(Tsym191843*, newtemp_368269)(Ttransfcontext368011* c, Ttype191849* typ, Tlineinfo164338 info);
N_NIMCALL(Tnode191813*, newasgnstmt_368343)(Ttransfcontext368011* c, Tnode191813* le, Tnode191813* ri);
N_NIMCALL(void, pushinfocontext_165189)(Tlineinfo164338 info);
N_NIMCALL(void, initidtable_195057)(Tidtable191861* x);
N_NIMCALL(void, freshlabels_368781)(Ttransfcontext368011* c, Tnode191813* n, Tidtable191861* symmap);
static N_INLINE(Tnode191813*, HEX5BHEX5D_192244)(Tnode191813* n, NI i);
N_NIMCALL(void, idtableput_199196)(Tidtable191861* t, Tidobj168015* key, TNimObject* val);
N_NIMCALL(TNimObject*, idtableget_199182)(Tidtable191861 t, Tidobj168015* key);
static N_INLINE(NI, safelen_192125)(Tnode191813* n);
N_NIMCALL(void, popinfocontext_165208)(void);
N_NIMCALL(void, poptranscon_368226)(Ttransfcontext368011* c);
N_NIMCALL(void, internalerror_166218)(NimStringDesc* errmsg);
N_NIMCALL(Tnode191813*, transformsons_368301)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(Tnode191813*, transformcase_370107)(Ttransfcontext368011* c, Tnode191813* n);
static N_INLINE(Tnode191813*, newtransnode_368066)(NU8 kind, Tnode191813* n, NI sons);
N_NIMCALL(Tnode191813*, newnodeit_193807)(NU8 kind, Tlineinfo164338 info, Ttype191849* typ);
N_NIMCALL(Tnode191813*, lastson_194431)(Tnode191813* n);
N_NIMCALL(Tnode191813*, transformbreak_369073)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(Tnode191813*, transformwhile_368990)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(Tnode191813*, transformcall_370418)(Ttransfcontext368011* c, Tnode191813* n_370421);
N_NIMCALL(Tnode191813*, flattentree_370394)(Tnode191813* root);
N_NIMCALL(Tsym191843*, getmergeop_370282)(Tnode191813* n);
N_NIMCALL(Tnode191813*, copynode_195640)(Tnode191813* src);
N_NIMCALL(void, flattentreeaux_370316)(Tnode191813* d, Tnode191813* a, Tsym191843* op);
N_NIMCALL(NU16, getmagic_220403)(Tnode191813* op);
N_NIMCALL(NIM_BOOL, isconstexpr_220428)(Tnode191813* n);
N_NIMCALL(Tnode191813*, evalop_257011)(NU16 m, Tnode191813* n, Tnode191813* a, Tnode191813* b, Tnode191813* c);
static N_INLINE(NI, len_368128)(Tnode191813* a);
static N_INLINE(Tnode191813*, HEX5BHEX5D_368104)(Tnode191813* a, NI i);
N_NIMCALL(void, methoddef_356634)(Tsym191843* s, NIM_BOOL fromcache);
N_NIMCALL(Tnode191813*, methodcall_356054)(Tnode191813* n);
N_NIMCALL(Tnode191813*, transformaddrderef_369389)(Ttransfcontext368011* c, Tnode191813* n_369392, NU8 a, NU8 b);
N_NIMCALL(Tnode191813*, transformconv_369496)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(NIM_BOOL, isordinaltype_221093)(Ttype191849* t);
N_NIMCALL(NI64, firstord_221004)(Ttype191849* t);
N_NIMCALL(NI64, lastord_221010)(Ttype191849* t);
N_NIMCALL(Tnode191813*, newinttypenode_192619)(NU8 kind, NI64 intval, Ttype191849* typ);
N_NIMCALL(Ttype191849*, taketype_231006)(Ttype191849* formal, Ttype191849* arg);
N_NIMCALL(NI, inheritancediff_228064)(Ttype191849* a, Ttype191849* b);
N_NIMCALL(Tnode191813*, newnode_192401)(NU8 kind);
N_NIMCALL(Tnode191813*, transformconstsection_368643)(Ttransfcontext368011* c, Tnode191813* v);
N_NIMCALL(Tnode191813*, transformvarsection_368436)(Ttransfcontext368011* c, Tnode191813* v);
N_NIMCALL(NimStringDesc*, HEX24_166306)(TY86345 x);
N_NIMCALL(Tsym191843*, copysym_194607)(Tsym191843* s, NIM_BOOL keepid);
static N_INLINE(NIM_BOOL, importantcomments_155164)(void);
N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
N_NIMCALL(Tnode191813*, transformyield_369313)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(void, unpacktuple_369209)(Ttransfcontext368011* c, Tnode191813* n, Tnode191813* father);
N_NIMCALL(Tnode191813*, newtupleaccess_358034)(Tnode191813* tup, NI i);
N_NIMCALL(Tnode191813*, introducenewlocalvars_369251)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(Tnode191813*, transformblock_368889)(Ttransfcontext368011* c, Tnode191813* n);
N_NIMCALL(Tnode191813*, getconstexpr_257004)(Tsym191843* m, Tnode191813* n);
static N_INLINE(NIM_BOOL, dontinlineconstant_370565)(Tnode191813* orig, Tnode191813* cnst);
N_NIMCALL(Tnode191813*, commonoptimizations_370597)(Tsym191843* c, Tnode191813* n);
N_NIMCALL(void, add_192164)(Tnode191813* father, Tnode191813* son);
N_NIMCALL(Tnode191813*, liftlambdas_367240)(Tsym191843* fn, Tnode191813* body);
N_NIMCALL(void, trackproc_330581)(Tsym191843* s, Tnode191813* body);
N_NIMCALL(Tnode191813*, liftlambdasfortoplevel_367291)(Tsym191843* module, Tnode191813* body);
N_NIMCALL(void, tracktoplevelstmt_330737)(Tsym191843* module, Tnode191813* n);
STRING_LITERAL(TMP3259, "", 0);
STRING_LITERAL(TMP3260, "wrong AST for borrowed symbol", 29);
STRING_LITERAL(TMP3261, "transformFor", 12);
STRING_LITERAL(TMP3262, ":tmp", 4);
STRING_LITERAL(TMP3267, "popTransCon", 11);
STRING_LITERAL(TMP3280, "transformConstSection", 21);
STRING_LITERAL(TMP3281, "transformVarSection", 19);
STRING_LITERAL(TMP3283, "transf.nim", 10);
NIM_CONST TY86345 TMP3282 = {((NimStringDesc*) &TMP3283),
((NI) 141)}
;
STRING_LITERAL(TMP3284, "transformVarSection: not nkVarTuple", 35);
extern TNimType NTI242005; /* TPassContext */
TNimType NTI368011; /* TTransfContext */
extern TNimType NTI191811; /* PSym */
TNimType NTI368009; /* TTransCon */
extern TNimType NTI191867; /* TIdNodeTable */
extern TNimType NTI191805; /* PNode */
extern TNimType NTI108; /* int */
TNimType NTI368007; /* PTransCon */
extern TNimType NTI191815; /* TSymSeq */
TNimType NTI368013; /* PTransf */
extern Tgcheap48216 gch_48244;
extern TNimType NTI191807; /* TNodeSeq */
extern NU8 gcmd_155130;
extern Tnode191813* emptynode_192807;
N_NIMCALL(void, TMP3257)(void* p, NI op) {
	Ttranscon368009* a;
	a = (Ttranscon368009*)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, TMP3258)(void* p, NI op) {
	Ttransfcontext368011* a;
	a = (Ttransfcontext368011*)p;
	nimGCvisit((void*)(*a).module, op);
	nimGCvisit((void*)(*a).transcon, op);
	nimGCvisit((void*)(*a).contsyms, op);
	nimGCvisit((void*)(*a).breaksyms, op);
}

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

static N_INLINE(void, rtladdzct_51404)(Tcell46346* c) {
	addzct_49817((&gch_48244.zct), c);
}

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

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

N_NIMCALL(Ttransfcontext368011*, opentransf_371067)(Tsym191843* module, NimStringDesc* filename) {
	Ttransfcontext368011* result;
	result = 0;
	result = (Ttransfcontext368011*) newObj((&NTI368013), sizeof(Ttransfcontext368011));
	(*result).Sup.Sup.m_type = (&NTI368011);
	if ((*result).contsyms) nimGCunrefNoCycle((*result).contsyms);
	(*result).contsyms = (Tsymseq191815*) newSeqRC1((&NTI191815), 0);
	if ((*result).breaksyms) nimGCunrefNoCycle((*result).breaksyms);
	(*result).breaksyms = (Tsymseq191815*) newSeqRC1((&NTI191815), 0);
	asgnRefNoCycle((void**) (&(*result).module), module);
	return result;
}

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

static N_INLINE(void, rtladdcycleroot_50623)(Tcell46346* c) {
	{
		if (!!((((NI) ((NI)((*c).refcount & ((NI) 3)))) == ((NI) 3)))) goto LA3;
		(*c).refcount = (NI)((NI)((*c).refcount & ((NI) -4)) | ((NI) 3));
		incl_47065((&gch_48244.cycleroots), c);
	}
	LA3: ;
}

static N_INLINE(void, incref_52222)(Tcell46346* c) {
	(*c).refcount = (NI)((NU64)((*c).refcount) + (NU64)(((NI) 8)));
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = canbecycleroot_49867(c);
		if (!LOC3) goto LA4;
		rtladdcycleroot_50623(c);
	}
	LA4: ;
}

static N_INLINE(void, decref_51804)(Tcell46346* c) {
	{
		(*c).refcount -= ((NI) 8);
		if (!((NU64)((*c).refcount) < (NU64)(((NI) 8)))) goto LA3;
		rtladdzct_51404(c);
	}
	goto LA1;
	LA3: ;
	{
		NIM_BOOL LOC6;
		LOC6 = 0;
		LOC6 = canbecycleroot_49867(c);
		if (!LOC6) goto LA7;
		rtladdcycleroot_50623(c);
	}
	goto LA1;
	LA7: ;
	LA1: ;
}

static N_INLINE(void, asgnRef)(void** dest, void* src) {
	{
		Tcell46346* LOC5;
		if (!!((src == NIM_NIL))) goto LA3;
		LOC5 = 0;
		LOC5 = usrtocell_49846(src);
		incref_52222(LOC5);
	}
	LA3: ;
	{
		Tcell46346* LOC10;
		if (!!(((*dest) == NIM_NIL))) goto LA8;
		LOC10 = 0;
		LOC10 = usrtocell_49846((*dest));
		decref_51804(LOC10);
	}
	LA8: ;
	(*dest) = src;
}

N_NIMCALL(void, pushtranscon_368216)(Ttransfcontext368011* c, Ttranscon368009* t) {
	asgnRef((void**) (&(*t).next), (*c).transcon);
	asgnRef((void**) (&(*c).transcon), t);
}

N_NIMCALL(Ttranscon368009*, newtranscon_368138)(Tsym191843* owner) {
	Ttranscon368009* result;
	result = 0;
	result = (Ttranscon368009*) newObj((&NTI368007), sizeof(Ttranscon368009));
	initidnodetable_195127((&(*result).mapping));
	asgnRefNoCycle((void**) (&(*result).owner), owner);
	return result;
}

N_NIMCALL(Tnode191813*, transformsymaux_368355)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* result;
	Tnode191813* b;
	Ttranscon368009* tc;
{	result = 0;
	b = 0;
	tc = (*c).transcon;
	{
		if (!(((*(*n).kindU.S4.sym).flags &(1<<((((NU8) 26))&31)))!=0)) goto LA3;
		b = getbody_236647((*n).kindU.S4.sym);
		{
			if (!!(((*b).kind == ((NU8) 3)))) goto LA7;
			internalerror_166199((*n).info, ((NimStringDesc*) &TMP3260));
		}
		LA7: ;
		b = newsymnode_193325((*b).kindU.S4.sym);
		(*b).info = (*n).info;
	}
	goto LA1;
	LA3: ;
	{
		b = n;
	}
	LA1: ;
	{
		while (1) {
			Tidobj168015* LOC12;
			if (!!((tc == NIM_NIL))) goto LA11;
			LOC12 = 0;
			LOC12 = &(*b).kindU.S4.sym->Sup;
			result = idnodetableget_199212((*tc).mapping, LOC12);
			{
				if (!!((result == NIM_NIL))) goto LA15;
				goto BeforeRet;
			}
			LA15: ;
			tc = (*tc).next;
		} LA11: ;
	}
	result = b;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode191813*, transformsym_368425)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* result;
	result = 0;
	result = transformsymaux_368355(c, n);
	return result;
}

static N_INLINE(Tnode191813*, newtransnode_368031)(Tnode191813* a) {
	Tnode191813* result;
	result = 0;
	result = shallowcopy_195817(a);
	return result;
}

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

N_NIMCALL(Tnode191813*, transformarrayaccess_370211)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* 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_368031(n);
		{
			NI i_370257;
			NI HEX3Atmp_370260;
			NI LOC9;
			NI res_370263;
			i_370257 = 0;
			HEX3Atmp_370260 = 0;
			LOC9 = 0;
			LOC9 = len_192097(n);
			HEX3Atmp_370260 = (LOC9 - 1);
			res_370263 = ((NI) 0);
			{
				while (1) {
					Tnode191813* LOC12;
					Tnode191813* LOC13;
					if (!(res_370263 <= HEX3Atmp_370260)) goto LA11;
					i_370257 = res_370263;
					LOC12 = 0;
					LOC12 = skipconv_230935((*n).kindU.S6.sons->data[i_370257]);
					LOC13 = 0;
					LOC13 = transform_368294(c, LOC12);
					HEX5BHEX5DHEX3D_368091(result, i_370257, LOC13);
					res_370263 += ((NI) 1);
				} LA11: ;
			}
		}
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tsym191843*, getcurrowner_368247)(Ttransfcontext368011* c) {
	Tsym191843* result;
	result = 0;
	{
		if (!!(((*c).transcon == NIM_NIL))) goto LA3;
		result = (*(*c).transcon).owner;
	}
	goto LA1;
	LA3: ;
	{
		result = (*c).module;
	}
	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(Tsym191843*, newlabel_368768)(Ttransfcontext368011* c, Tnode191813* n) {
	Tsym191843* result;
	Tsym191843* LOC1;
	NimStringDesc* LOC2;
	NimStringDesc* LOC3;
	result = 0;
	LOC1 = 0;
	LOC1 = getcurrowner_368247(c);
	result = newsym_192655(((NU8) 22), NIM_NIL, LOC1, (*n).info);
	LOC2 = 0;
	LOC3 = 0;
	LOC3 = nimIntToStr((*result).Sup.id);
	LOC2 = rawNewString(LOC3->Sup.len + 4);
appendString(LOC2, ((NimStringDesc*) &TMP3262));
appendString(LOC2, LOC3);
	asgnRefNoCycle((void**) (&(*result).name), getident_168463(LOC2));
	return result;
}

static N_INLINE(Tnode191813*, newtransnode_368041)(NU8 kind, Tlineinfo164338 info, NI sons) {
	Tnode191813* result;
	Tnode191813* x;
	result = 0;
	x = newnodei_193351(kind, info);
	if ((*x).kindU.S6.sons) nimGCunrefNoCycle((*x).kindU.S6.sons);
	(*x).kindU.S6.sons = (Tnodeseq191807*) newSeqRC1((&NTI191807), ((NI) (sons)));
	result = x;
	return result;
}

N_NIMCALL(NIM_BOOL, hascontinue_368727)(Tnode191813* 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_368743;
			NI HEX3Atmp_368746;
			NI LOC5;
			NI res_368749;
			i_368743 = 0;
			HEX3Atmp_368746 = 0;
			LOC5 = 0;
			LOC5 = sonslen_194403(n);
			HEX3Atmp_368746 = (NI)(LOC5 - ((NI) 1));
			res_368749 = ((NI) 0);
			{
				while (1) {
					if (!(res_368749 <= HEX3Atmp_368746)) goto LA7;
					i_368743 = res_368749;
					{
						NIM_BOOL LOC10;
						LOC10 = 0;
						LOC10 = hascontinue_368727((*n).kindU.S6.sons->data[i_368743]);
						if (!LOC10) goto LA11;
						result = NIM_TRUE;
						goto BeforeRet;
					}
					LA11: ;
					res_368749 += ((NI) 1);
				} LA7: ;
			}
		}
	}
	break;
	}
	}BeforeRet: ;
	return result;
}

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

N_NIMCALL(Tnode191813*, transformloopbody_368957)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		Tsym191843* labl;
		Tnode191813* LOC6;
		Tnode191813* LOC7;
		Tsym191843* LOC8;
		LOC3 = 0;
		LOC3 = hascontinue_368727(n);
		if (!LOC3) goto LA4;
		labl = newlabel_368768(c, n);
		(*c).contsyms = (Tsymseq191815*) incrSeq(&((*c).contsyms)->Sup, sizeof(Tsym191843*));
		asgnRefNoCycle((void**) (&(*c).contsyms->data[(*c).contsyms->Sup.len-1]), labl);
		result = newtransnode_368041(((NU8) 112), (*n).info, ((NI) 2));
		LOC6 = 0;
		LOC6 = newsymnode_193325(labl);
		HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC6);
		LOC7 = 0;
		LOC7 = transform_368294(c, n);
		HEX5BHEX5DHEX3D_368091(result, ((NI) 1), LOC7);
		LOC8 = 0;
		LOC8 = pop_368918((&(*c).contsyms));
	}
	goto LA1;
	LA4: ;
	{
		result = transform_368294(c, n);
	}
	LA1: ;
	return result;
}

static N_INLINE(void, add_368118)(Tnode191813* a, Tnode191813* b) {
	addson_193819(a, b);
}

N_NIMCALL(NU8, putarginto_369603)(Tnode191813* arg, Ttype191849* formal) {
	NU8 result;
{	result = 0;
	{
		Ttype191849* LOC3;
		LOC3 = 0;
		LOC3 = skiptypes_195167(formal, IL64(211106232576256));
		if (!((IL64(281475110928384) &(IL64(1)<<(((*LOC3).kind)&IL64(63))))!=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_369631;
			NI HEX3Atmp_369652;
			NI LOC9;
			NI res_369655;
			i_369631 = 0;
			HEX3Atmp_369652 = 0;
			LOC9 = 0;
			LOC9 = sonslen_194403(arg);
			HEX3Atmp_369652 = (NI)(LOC9 - ((NI) 1));
			res_369655 = ((NI) 0);
			{
				while (1) {
					if (!(res_369655 <= HEX3Atmp_369652)) goto LA11;
					i_369631 = res_369655;
					{
						NU8 LOC14;
						LOC14 = 0;
						LOC14 = putarginto_369603((*arg).kindU.S6.sons->data[i_369631], formal);
						if (!!((LOC14 == ((NU8) 0)))) goto LA15;
						goto BeforeRet;
					}
					LA15: ;
					res_369655 += ((NI) 1);
				} LA11: ;
			}
		}
		result = ((NU8) 0);
	}
	break;
	default:
	{
		{
			Ttype191849* LOC20;
			LOC20 = 0;
			LOC20 = skiptypes_195167(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(Tsym191843*, newtemp_368269)(Ttransfcontext368011* c, Ttype191849* typ, Tlineinfo164338 info) {
	Tsym191843* result;
	Tident168021* LOC1;
	Tsym191843* LOC2;
	result = 0;
	LOC1 = 0;
	LOC1 = getident_168463(((NimStringDesc*) &TMP3262));
	LOC2 = 0;
	LOC2 = getcurrowner_368247(c);
	result = newsym_192655(((NU8) 5), LOC1, LOC2, info);
	asgnRefNoCycle((void**) (&(*result).typ), skiptypes_195167(typ, 2048));
	(*result).flags |= ((NI32)1)<<((((NU8) 2))%(sizeof(NI32)*8));
	return result;
}

N_NIMCALL(Tnode191813*, newasgnstmt_368343)(Ttransfcontext368011* c, Tnode191813* le, Tnode191813* ri) {
	Tnode191813* result;
	result = 0;
	result = newtransnode_368041(((NU8) 74), (*ri).info, ((NI) 2));
	HEX5BHEX5DHEX3D_368091(result, ((NI) 0), le);
	HEX5BHEX5DHEX3D_368091(result, ((NI) 1), ri);
	return result;
}

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

static N_INLINE(NI, safelen_192125)(Tnode191813* 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_368781)(Ttransfcontext368011* c, Tnode191813* n, Tidtable191861* symmap) {
	{
		if (!((*n).kind == ((NU8) 112) || (*n).kind == ((NU8) 127))) goto LA3;
		{
			Tsym191843* x;
			Tnode191813* LOC9;
			Tnode191813* LOC10;
			Tidobj168015* LOC11;
			TNimObject* LOC12;
			if (!((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3))) goto LA7;
			LOC9 = 0;
			LOC9 = HEX5BHEX5D_192244(n, ((NI) 0));
			x = newlabel_368768(c, LOC9);
			LOC10 = 0;
			LOC10 = HEX5BHEX5D_192244(n, ((NI) 0));
			LOC11 = 0;
			LOC11 = &(*LOC10).kindU.S4.sym->Sup;
			LOC12 = 0;
			LOC12 = &x->Sup.Sup;
			idtableput_199196(symmap, LOC11, LOC12);
			asgnRefNoCycle((void**) (&(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym), x);
		}
		LA7: ;
	}
	LA3: ;
	{
		NIM_BOOL LOC15;
		Tsym191843* x;
		Tidobj168015* LOC19;
		TNimObject* LOC20;
		LOC15 = 0;
		LOC15 = ((*n).kind == ((NU8) 3));
		if (!(LOC15)) goto LA16;
		LOC15 = ((*(*n).kindU.S4.sym).kind == ((NU8) 22));
		LA16: ;
		if (!LOC15) goto LA17;
		LOC19 = 0;
		LOC19 = &(*n).kindU.S4.sym->Sup;
		LOC20 = 0;
		LOC20 = idtableget_199182((*symmap), LOC19);
		x = ((Tsym191843*) (LOC20));
		{
			if (!!((x == NIM_NIL))) goto LA23;
			asgnRefNoCycle((void**) (&(*n).kindU.S4.sym), x);
		}
		LA23: ;
	}
	goto LA13;
	LA17: ;
	{
		{
			NI i_368864;
			NI HEX3Atmp_368867;
			NI LOC27;
			NI res_368870;
			i_368864 = 0;
			HEX3Atmp_368867 = 0;
			LOC27 = 0;
			LOC27 = safelen_192125(n);
			HEX3Atmp_368867 = (LOC27 - 1);
			res_368870 = ((NI) 0);
			{
				while (1) {
					if (!(res_368870 <= HEX3Atmp_368867)) goto LA29;
					i_368864 = res_368870;
					freshlabels_368781(c, (*n).kindU.S6.sons->data[i_368864], symmap);
					res_368870 += ((NI) 1);
				} LA29: ;
			}
		}
	}
	LA13: ;
}

N_NIMCALL(void, poptranscon_368226)(Ttransfcontext368011* c) {
	{
		if (!((*c).transcon == NIM_NIL)) goto LA3;
		internalerror_166218(((NimStringDesc*) &TMP3267));
	}
	LA3: ;
	asgnRef((void**) (&(*c).transcon), (*(*c).transcon).next);
}

N_NIMCALL(Tnode191813*, transformfor_369761)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* result;
	NI length;
	Tnode191813* call;
	Tsym191843* labl;
	Tnode191813* LOC5;
	Tnode191813* stmtlist;
	Tnode191813* loopbody;
	Tsym191843* LOC18;
	Tnode191813* v;
	Tsym191843* iter;
	Ttranscon368009* newc;
	Tsym191843* LOC23;
	Tnode191813* body;
	Tnode191813* LOC49;
	Tidtable191861 symmap;
	Tnode191813* LOC50;
{	result = 0;
	{
		if (!!(((*n).kind == ((NU8) 94)))) goto LA3;
		internalerror_166199((*n).info, ((NimStringDesc*) &TMP3261));
	}
	LA3: ;
	length = sonslen_194403(n);
	call = (*n).kindU.S6.sons->data[(NI)(length - ((NI) 2))];
	labl = newlabel_368768(c, n);
	(*c).breaksyms = (Tsymseq191815*) incrSeq(&((*c).breaksyms)->Sup, sizeof(Tsym191843*));
	asgnRefNoCycle((void**) (&(*c).breaksyms->data[(*c).breaksyms->Sup.len-1]), labl);
	result = newtransnode_368041(((NU8) 112), (*n).info, ((NI) 2));
	LOC5 = 0;
	LOC5 = newsymnode_193325(labl);
	HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC5);
	{
		NIM_BOOL LOC8;
		NIM_BOOL LOC10;
		NIM_BOOL LOC11;
		Tnode191813* LOC16;
		Tsym191843* LOC17;
		LOC8 = 0;
		LOC8 = !(((*(*call).typ).kind == ((NU8) 49)));
		if (!(LOC8)) goto LA9;
		LOC10 = 0;
		LOC11 = 0;
		LOC11 = !(((*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 (LOC11) goto LA12;
		LOC11 = !(((*(*call).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)));
		LA12: ;
		LOC10 = LOC11;
		if (LOC10) goto LA13;
		LOC10 = !(((*(*(*call).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym).kind == ((NU8) 14)));
		LA13: ;
		LOC8 = LOC10;
		LA9: ;
		if (!LOC8) goto LA14;
		asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]), transformloopbody_368957(c, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]));
		LOC16 = 0;
		LOC16 = liftforloop_367323(n);
		HEX5BHEX5DHEX3D_368091(result, ((NI) 1), LOC16);
		LOC17 = 0;
		LOC17 = pop_368918((&(*c).breaksyms));
		goto BeforeRet;
	}
	LA14: ;
	stmtlist = newtransnode_368041(((NU8) 115), (*n).info, ((NI) 0));
	loopbody = transformloopbody_368957(c, (*n).kindU.S6.sons->data[(NI)(length - ((NI) 1))]);
	HEX5BHEX5DHEX3D_368091(result, ((NI) 1), stmtlist);
	LOC18 = 0;
	LOC18 = pop_368918((&(*c).breaksyms));
	v = newnodei_193351(((NU8) 99), (*n).info);
	{
		NI i_369869;
		NI HEX3Atmp_370027;
		NI res_370030;
		i_369869 = 0;
		HEX3Atmp_370027 = 0;
		HEX3Atmp_370027 = (NI)(length - ((NI) 3));
		res_370030 = ((NI) 0);
		{
			while (1) {
				Tnode191813* LOC22;
				if (!(res_370030 <= HEX3Atmp_370027)) goto LA21;
				i_369869 = res_370030;
				LOC22 = 0;
				LOC22 = copytree_196028((*n).kindU.S6.sons->data[i_369869]);
				addvar_358047(v, LOC22);
				res_370030 += ((NI) 1);
			} LA21: ;
		}
	}
	add_368118(stmtlist, v);
	iter = (*(*call).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym;
	LOC23 = 0;
	LOC23 = getcurrowner_368247(c);
	newc = newtranscon_368138(LOC23);
	asgnRefNoCycle((void**) (&(*newc).forstmt), n);
	asgnRefNoCycle((void**) (&(*newc).forloopbody), loopbody);
	{
		if (!!(((*iter).kind == ((NU8) 14)))) goto LA26;
		goto BeforeRet;
	}
	LA26: ;
	pushtranscon_368216(c, newc);
	{
		NI i_369897;
		NI HEX3Atmp_370036;
		NI LOC29;
		NI res_370039;
		i_369897 = 0;
		HEX3Atmp_370036 = 0;
		LOC29 = 0;
		LOC29 = sonslen_194403(call);
		HEX3Atmp_370036 = (NI)(LOC29 - ((NI) 1));
		res_370039 = ((NI) 1);
		{
			while (1) {
				if (!(res_370039 <= HEX3Atmp_370036)) goto LA31;
				i_369897 = res_370039;
				{
					Tnode191813* arg;
					Tsym191843* formal;
					Ttype191849* LOC33;
					NU8 LOC38;
					arg = transform_368294(c, (*call).kindU.S6.sons->data[i_369897]);
					LOC33 = 0;
					LOC33 = skiptypes_195167((*iter).typ, IL64(211106232576256));
					formal = (*(*(*LOC33).n).kindU.S6.sons->data[i_369897]).kindU.S4.sym;
					{
						if (!((*(*arg).typ).kind == ((NU8) 49))) goto LA36;
						goto LA32;
					}
					LA36: ;
					LOC38 = 0;
					LOC38 = putarginto_369603(arg, (*formal).typ);
					switch (LOC38) {
					case ((NU8) 0):
					{
						Tidobj168015* LOC40;
						LOC40 = 0;
						LOC40 = &formal->Sup;
						idnodetableput_199219((&(*newc).mapping), LOC40, arg);
					}
					break;
					case ((NU8) 1):
					{
						Tsym191843* temp;
						Tnode191813* LOC42;
						Tnode191813* LOC43;
						Tnode191813* LOC44;
						Tidobj168015* LOC45;
						Tnode191813* LOC46;
						temp = newtemp_368269(c, (*formal).typ, (*formal).info);
						LOC42 = 0;
						LOC42 = newsymnode_193325(temp);
						addvar_358047(v, LOC42);
						LOC43 = 0;
						LOC43 = newsymnode_193325(temp);
						LOC44 = 0;
						LOC44 = newasgnstmt_368343(c, LOC43, arg);
						add_368118(stmtlist, LOC44);
						LOC45 = 0;
						LOC45 = &formal->Sup;
						LOC46 = 0;
						LOC46 = newsymnode_193325(temp);
						idnodetableput_199219((&(*newc).mapping), LOC45, LOC46);
					}
					break;
					case ((NU8) 2):
					{
						Tidobj168015* LOC48;
						LOC48 = 0;
						LOC48 = &formal->Sup;
						idnodetableput_199219((&(*newc).mapping), LOC48, arg);
					}
					break;
					}
				} LA32: ;
				res_370039 += ((NI) 1);
			} LA31: ;
		}
	}
	LOC49 = 0;
	LOC49 = getbody_236647(iter);
	body = copytree_196028(LOC49);
	pushinfocontext_165189((*n).info);
	memset((void*)(&symmap), 0, sizeof(symmap));
	initidtable_195057((&symmap));
	freshlabels_368781(c, body, (&symmap));
	(*c).inlining += ((NI) 1);
	LOC50 = 0;
	LOC50 = transform_368294(c, body);
	add_368118(stmtlist, LOC50);
	(*c).inlining -= ((NI) 1);
	popinfocontext_165208();
	poptranscon_368226(c);
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode191813*, transformsons_368301)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* result;
	result = 0;
	result = newtransnode_368031(n);
	{
		NI i_368318;
		NI HEX3Atmp_368321;
		NI LOC2;
		NI res_368324;
		i_368318 = 0;
		HEX3Atmp_368321 = 0;
		LOC2 = 0;
		LOC2 = sonslen_194403(n);
		HEX3Atmp_368321 = (NI)(LOC2 - ((NI) 1));
		res_368324 = ((NI) 0);
		{
			while (1) {
				Tnode191813* LOC5;
				if (!(res_368324 <= HEX3Atmp_368321)) goto LA4;
				i_368318 = res_368324;
				LOC5 = 0;
				LOC5 = transform_368294(c, (*n).kindU.S6.sons->data[i_368318]);
				HEX5BHEX5DHEX3D_368091(result, i_368318, LOC5);
				res_368324 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

static N_INLINE(Tnode191813*, newtransnode_368066)(NU8 kind, Tnode191813* n, NI sons) {
	Tnode191813* result;
	Tnode191813* x;
	result = 0;
	x = newnodeit_193807(kind, (*n).info, (*n).typ);
	if ((*x).kindU.S6.sons) nimGCunrefNoCycle((*x).kindU.S6.sons);
	(*x).kindU.S6.sons = (Tnodeseq191807*) newSeqRC1((&NTI191807), ((NI) (sons)));
	asgnRefNoCycle((void**) (&(*x).typ), (*n).typ);
	result = x;
	return result;
}

N_NIMCALL(Tnode191813*, transformcase_370107)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* result;
	Tnode191813* ifs;
	result = 0;
	result = newtransnode_368066(((NU8) 97), n, ((NI) 0));
	ifs = NIM_NIL;
	{
		NI i_370123;
		NI HEX3Atmp_370189;
		NI LOC2;
		NI res_370192;
		i_370123 = 0;
		HEX3Atmp_370189 = 0;
		LOC2 = 0;
		LOC2 = sonslen_194403(n);
		HEX3Atmp_370189 = (NI)(LOC2 - ((NI) 1));
		res_370192 = ((NI) 0);
		{
			while (1) {
				Tnode191813* it;
				Tnode191813* e;
				if (!(res_370192 <= HEX3Atmp_370189)) goto LA4;
				i_370123 = res_370192;
				it = (*n).kindU.S6.sons->data[i_370123];
				e = transform_368294(c, it);
				switch ((*it).kind) {
				case ((NU8) 86):
				{
					{
						if (!(ifs == NIM_NIL)) goto LA8;
						ifs = newtransnode_368041(((NU8) 92), (*it).info, ((NI) 0));
					}
					LA8: ;
					add_368118(ifs, e);
				}
				break;
				case ((NU8) 88):
				{
					{
						if (!(ifs == NIM_NIL)) goto LA13;
						add_368118(result, e);
					}
					goto LA11;
					LA13: ;
					{
						add_368118(ifs, e);
					}
					LA11: ;
				}
				break;
				default:
				{
					add_368118(result, e);
				}
				break;
				}
				res_370192 += ((NI) 1);
			} LA4: ;
		}
	}
	{
		Tnode191813* elsebranch;
		if (!!((ifs == NIM_NIL))) goto LA19;
		elsebranch = newtransnode_368041(((NU8) 88), (*n).info, ((NI) 1));
		HEX5BHEX5DHEX3D_368091(elsebranch, ((NI) 0), ifs);
		add_368118(result, elsebranch);
	}
	goto LA17;
	LA19: ;
	{
		NIM_BOOL LOC22;
		Tnode191813* LOC23;
		Ttype191849* LOC25;
		Tnode191813* elsebranch;
		Tnode191813* LOC28;
		LOC22 = 0;
		LOC23 = 0;
		LOC23 = lastson_194431(result);
		LOC22 = !(((*LOC23).kind == ((NU8) 88)));
		if (!(LOC22)) goto LA24;
		LOC25 = 0;
		LOC25 = skiptypes_195167((*(*n).kindU.S6.sons->data[((NI) 0)]).typ, IL64(211106242013440));
		LOC22 = !(((IL64(16559246426116) &(IL64(1)<<(((*LOC25).kind)&IL64(63))))!=0));
		LA24: ;
		if (!LOC22) goto LA26;
		elsebranch = newtransnode_368041(((NU8) 88), (*n).info, ((NI) 1));
		LOC28 = 0;
		LOC28 = newtransnode_368041(((NU8) 23), (*n).info, ((NI) 0));
		HEX5BHEX5DHEX3D_368091(elsebranch, ((NI) 0), LOC28);
		add_368118(result, elsebranch);
	}
	goto LA17;
	LA26: ;
	LA17: ;
	return result;
}

N_NIMCALL(Tnode191813*, transformbreak_369073)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* 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: ;
	{
		Tsym191843* labl;
		Tnode191813* LOC8;
		labl = (*c).breaksyms->data[((*c).breaksyms ? ((*c).breaksyms->Sup.len-1) : -1)];
		result = transformsons_368301(c, n);
		LOC8 = 0;
		LOC8 = newsymnode_193325(labl);
		HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC8);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode191813*, transformwhile_368990)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* result;
	result = 0;
	{
		if (!(((NI) 0) < (*c).inlining)) goto LA3;
		result = transformsons_368301(c, n);
	}
	goto LA1;
	LA3: ;
	{
		Tsym191843* labl;
		Tnode191813* LOC6;
		Tnode191813* body;
		NI LOC12;
		NI LOC13;
		Tnode191813* LOC14;
		Tsym191843* LOC15;
		labl = newlabel_368768(c, n);
		(*c).breaksyms = (Tsymseq191815*) incrSeq(&((*c).breaksyms)->Sup, sizeof(Tsym191843*));
		asgnRefNoCycle((void**) (&(*c).breaksyms->data[(*c).breaksyms->Sup.len-1]), labl);
		result = newtransnode_368041(((NU8) 112), (*n).info, ((NI) 2));
		LOC6 = 0;
		LOC6 = newsymnode_193325(labl);
		HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC6);
		body = newtransnode_368031(n);
		{
			NI i_369019;
			NI HEX3Atmp_369051;
			NI LOC8;
			NI res_369054;
			i_369019 = 0;
			HEX3Atmp_369051 = 0;
			LOC8 = 0;
			LOC8 = len_192097(n);
			HEX3Atmp_369051 = (NI)(LOC8 - ((NI) 2));
			res_369054 = ((NI) 0);
			{
				while (1) {
					Tnode191813* LOC11;
					if (!(res_369054 <= HEX3Atmp_369051)) goto LA10;
					i_369019 = res_369054;
					LOC11 = 0;
					LOC11 = transform_368294(c, (*n).kindU.S6.sons->data[i_369019]);
					HEX5BHEX5DHEX3D_368091(body, i_369019, LOC11);
					res_369054 += ((NI) 1);
				} LA10: ;
			}
		}
		LOC12 = 0;
		LOC12 = len_192097(n);
		LOC13 = 0;
		LOC13 = len_192097(n);
		LOC14 = 0;
		LOC14 = transformloopbody_368957(c, (*n).kindU.S6.sons->data[(LOC13 - 1)]);
		HEX5BHEX5DHEX3D_368091(body, (LOC12 - 1), LOC14);
		HEX5BHEX5DHEX3D_368091(result, ((NI) 1), body);
		LOC15 = 0;
		LOC15 = pop_368918((&(*c).breaksyms));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tsym191843*, getmergeop_370282)(Tnode191813* n) {
	Tsym191843* 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 == ((NU16) 149));
			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_370316)(Tnode191813* d, Tnode191813* a, Tsym191843* op) {
	Tsym191843* op2;
	op2 = getmergeop_370282(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 == ((NU16) 0)));
		if (!(LOC7)) goto LA8;
		LOC7 = ((*op2).magic == (*op).magic);
		LA8: ;
		LOC5 = LOC7;
		LA6: ;
		LOC3 = LOC5;
		LA4: ;
		if (!LOC3) goto LA9;
		{
			NI i_370369;
			NI HEX3Atmp_370372;
			NI LOC12;
			NI res_370375;
			i_370369 = 0;
			HEX3Atmp_370372 = 0;
			LOC12 = 0;
			LOC12 = sonslen_194403(a);
			HEX3Atmp_370372 = (NI)(LOC12 - ((NI) 1));
			res_370375 = ((NI) 1);
			{
				while (1) {
					if (!(res_370375 <= HEX3Atmp_370372)) goto LA14;
					i_370369 = res_370375;
					flattentreeaux_370316(d, (*a).kindU.S6.sons->data[i_370369], op);
					res_370375 += ((NI) 1);
				} LA14: ;
			}
		}
	}
	goto LA1;
	LA9: ;
	{
		Tnode191813* LOC16;
		LOC16 = 0;
		LOC16 = copytree_196028(a);
		addson_193819(d, LOC16);
	}
	LA1: ;
}

N_NIMCALL(Tnode191813*, flattentree_370394)(Tnode191813* root) {
	Tnode191813* result;
	Tsym191843* op;
	result = 0;
	op = getmergeop_370282(root);
	{
		Tnode191813* LOC5;
		if (!!((op == NIM_NIL))) goto LA3;
		result = copynode_195640(root);
		LOC5 = 0;
		LOC5 = copytree_196028((*root).kindU.S6.sons->data[((NI) 0)]);
		addson_193819(result, LOC5);
		flattentreeaux_370316(result, root, op);
	}
	goto LA1;
	LA3: ;
	{
		result = root;
	}
	LA1: ;
	return result;
}

static N_INLINE(NI, len_368128)(Tnode191813* a) {
	NI result;
	result = 0;
	result = sonslen_194403(a);
	return result;
}

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

N_NIMCALL(Tnode191813*, transformcall_370418)(Ttransfcontext368011* c, Tnode191813* n_370421) {
	Tnode191813* result;
	Tnode191813* n;
	Tsym191843* op;
	NU16 magic;
	result = 0;
	n = flattentree_370394(n_370421);
	op = getmergeop_370282(n);
	magic = getmagic_220403(n);
	{
		NIM_BOOL LOC3;
		NIM_BOOL LOC4;
		NI LOC7;
		Tnode191813* LOC10;
		NI j;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = !((op == NIM_NIL));
		if (!(LOC4)) goto LA5;
		LOC4 = !(((*op).magic == ((NU16) 0)));
		LA5: ;
		LOC3 = LOC4;
		if (!(LOC3)) goto LA6;
		LOC7 = 0;
		LOC7 = len_192097(n);
		LOC3 = (((NI) 3) <= LOC7);
		LA6: ;
		if (!LOC3) goto LA8;
		result = newtransnode_368066(((NU8) 27), n, ((NI) 0));
		LOC10 = 0;
		LOC10 = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 0)]);
		add_368118(result, LOC10);
		j = ((NI) 1);
		{
			while (1) {
				NI LOC13;
				Tnode191813* a;
				LOC13 = 0;
				LOC13 = sonslen_194403(n);
				if (!(j < LOC13)) goto LA12;
				a = transform_368294(c, (*n).kindU.S6.sons->data[j]);
				j += ((NI) 1);
				{
					NIM_BOOL LOC16;
					LOC16 = 0;
					LOC16 = isconstexpr_220428(a);
					if (!LOC16) goto LA17;
					{
						while (1) {
							NI LOC21;
							Tnode191813* b;
							LOC21 = 0;
							LOC21 = sonslen_194403(n);
							if (!(j < LOC21)) goto LA20;
							b = transform_368294(c, (*n).kindU.S6.sons->data[j]);
							{
								NIM_BOOL LOC24;
								LOC24 = 0;
								LOC24 = isconstexpr_220428(b);
								if (!!(LOC24)) goto LA25;
								goto LA19;
							}
							LA25: ;
							a = evalop_257011((*op).magic, n, a, b, NIM_NIL);
							j += ((NI) 1);
						} LA20: ;
					} LA19: ;
				}
				LA17: ;
				add_368118(result, a);
			} LA12: ;
		}
		{
			NI LOC29;
			LOC29 = 0;
			LOC29 = len_368128(result);
			if (!(LOC29 == ((NI) 2))) goto LA30;
			result = HEX5BHEX5D_368104(result, ((NI) 1));
		}
		LA30: ;
	}
	goto LA1;
	LA8: ;
	{
		if (!(magic == ((NU16) 253))) goto LA33;
		result = n;
	}
	goto LA1;
	LA33: ;
	{
		Tnode191813* LOC38;
		if (!(magic == ((NU16) 218))) goto LA36;
		LOC38 = 0;
		LOC38 = HEX5BHEX5D_192244(n, ((NI) 1));
		result = transformsons_368301(c, LOC38);
	}
	goto LA1;
	LA36: ;
	{
		Tnode191813* s;
		s = transformsons_368301(c, n);
		{
			NIM_BOOL LOC42;
			Tnode191813* 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_194431((*(*(*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 &(1<<((((NU8) 25))&31)))!=0));
				LA49: ;
				if (!LOC48) goto LA50;
				methoddef_356634((*(*s).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym, NIM_FALSE);
			}
			LA50: ;
			result = methodcall_356054(s);
		}
		goto LA40;
		LA44: ;
		{
			result = s;
		}
		LA40: ;
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode191813*, transformaddrderef_369389)(Ttransfcontext368011* c, Tnode191813* n_369392, NU8 a, NU8 b) {
	Tnode191813* result;
	Tnode191813* n;
{	result = 0;
	result = transformsons_368301(c, n_369392);
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (gcmd_155130 == ((NU8) 2));
		if (LOC3) goto LA4;
		LOC3 = (((*(*c).module).flags &(1<<((((NU8) 27))&31)))!=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):
	{
		Tnode191813* 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):
	{
		Tnode191813* 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(Tnode191813*, transformconv_369496)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* result;
	Ttype191849* dest;
	Ttype191849* source;
	result = 0;
	dest = skiptypes_195167((*n).typ, IL64(211106242013440));
	source = skiptypes_195167((*(*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_221093(source);
			if (!!(LOC4)) goto LA5;
			result = transformsons_368301(c, n);
		}
		goto LA2;
		LA5: ;
		{
			NIM_BOOL LOC8;
			NI64 LOC9;
			NI64 LOC10;
			NI64 LOC12;
			NI64 LOC13;
			LOC8 = 0;
			LOC9 = 0;
			LOC9 = firstord_221004((*n).typ);
			LOC10 = 0;
			LOC10 = firstord_221004((*(*n).kindU.S6.sons->data[((NI) 1)]).typ);
			LOC8 = (LOC9 <= LOC10);
			if (!(LOC8)) goto LA11;
			LOC12 = 0;
			LOC12 = lastord_221010((*(*n).kindU.S6.sons->data[((NI) 1)]).typ);
			LOC13 = 0;
			LOC13 = lastord_221010((*n).typ);
			LOC8 = (LOC12 <= LOC13);
			LA11: ;
			if (!LOC8) goto LA14;
			result = transformsons_368301(c, n);
		}
		goto LA2;
		LA14: ;
		{
			Tnode191813* LOC24;
			NI64 LOC25;
			Tnode191813* LOC26;
			NI64 LOC27;
			Tnode191813* 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_368066(((NU8) 69), n, ((NI) 3));
			}
			goto LA17;
			LA21: ;
			{
				result = newtransnode_368066(((NU8) 70), n, ((NI) 3));
			}
			LA17: ;
			dest = skiptypes_195167((*n).typ, IL64(211106240964864));
			LOC24 = 0;
			LOC24 = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC24);
			LOC25 = 0;
			LOC25 = firstord_221004(dest);
			LOC26 = 0;
			LOC26 = newinttypenode_192619(((NU8) 6), LOC25, source);
			HEX5BHEX5DHEX3D_368091(result, ((NI) 1), LOC26);
			LOC27 = 0;
			LOC27 = lastord_221010(dest);
			LOC28 = 0;
			LOC28 = newinttypenode_192619(((NU8) 6), LOC27, source);
			HEX5BHEX5DHEX3D_368091(result, ((NI) 2), LOC28);
		}
		LA2: ;
	}
	break;
	case ((NU8) 36) ... ((NU8) 39):
	{
		{
			Ttype191849* LOC32;
			Tnode191813* LOC35;
			Tnode191813* LOC36;
			Tnode191813* LOC37;
			LOC32 = 0;
			LOC32 = skiptypes_195167((*n).typ, IL64(211106240964864));
			if (!((*LOC32).kind == ((NU8) 20))) goto LA33;
			result = newtransnode_368066(((NU8) 68), n, ((NI) 3));
			dest = skiptypes_195167((*n).typ, IL64(211106240964864));
			LOC35 = 0;
			LOC35 = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC35);
			LOC36 = 0;
			LOC36 = copytree_196028((*(*dest).n).kindU.S6.sons->data[((NI) 0)]);
			HEX5BHEX5DHEX3D_368091(result, ((NI) 1), LOC36);
			LOC37 = 0;
			LOC37 = copytree_196028((*(*dest).n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_368091(result, ((NI) 2), LOC37);
		}
		goto LA30;
		LA33: ;
		{
			result = transformsons_368301(c, n);
		}
		LA30: ;
	}
	break;
	case ((NU8) 27):
	case ((NU8) 48):
	{
		result = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		asgnRefNoCycle((void**) (&(*result).typ), taketype_231006((*n).typ, (*(*n).kindU.S6.sons->data[((NI) 1)]).typ));
	}
	break;
	case ((NU8) 29):
	{
		{
			Tnode191813* LOC45;
			if (!((*source).kind == ((NU8) 28))) goto LA43;
			result = newtransnode_368066(((NU8) 71), n, ((NI) 1));
			LOC45 = 0;
			LOC45 = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC45);
		}
		goto LA41;
		LA43: ;
		{
			result = transformsons_368301(c, n);
		}
		LA41: ;
	}
	break;
	case ((NU8) 28):
	{
		{
			Tnode191813* LOC52;
			if (!((*source).kind == ((NU8) 29))) goto LA50;
			result = newtransnode_368066(((NU8) 72), n, ((NI) 1));
			LOC52 = 0;
			LOC52 = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC52);
		}
		goto LA48;
		LA50: ;
		{
			result = transformsons_368301(c, n);
		}
		LA48: ;
	}
	break;
	case ((NU8) 22):
	case ((NU8) 21):
	{
		dest = skiptypes_195167(dest, IL64(211106247256320));
		source = skiptypes_195167(source, IL64(211106247256320));
		{
			NI diff;
			if (!((*source).kind == ((NU8) 17))) goto LA57;
			diff = inheritancediff_228064(dest, source);
			{
				Tnode191813* LOC63;
				if (!(diff < ((NI) 0))) goto LA61;
				result = newtransnode_368066(((NU8) 67), n, ((NI) 1));
				LOC63 = 0;
				LOC63 = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 1)]);
				HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC63);
			}
			goto LA59;
			LA61: ;
			{
				NIM_BOOL LOC65;
				Tnode191813* LOC69;
				LOC65 = 0;
				LOC65 = (((NI) 0) < diff);
				if (!(LOC65)) goto LA66;
				LOC65 = !((diff == ((NI) IL64(9223372036854775807))));
				LA66: ;
				if (!LOC65) goto LA67;
				result = newtransnode_368066(((NU8) 66), n, ((NI) 1));
				LOC69 = 0;
				LOC69 = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 1)]);
				HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC69);
			}
			goto LA59;
			LA67: ;
			{
				result = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			}
			LA59: ;
		}
		goto LA55;
		LA57: ;
		{
			result = transformsons_368301(c, n);
		}
		LA55: ;
	}
	break;
	case ((NU8) 17):
	{
		NI diff;
		diff = inheritancediff_228064(dest, source);
		{
			Tnode191813* LOC77;
			if (!(diff < ((NI) 0))) goto LA75;
			result = newtransnode_368066(((NU8) 67), n, ((NI) 1));
			LOC77 = 0;
			LOC77 = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC77);
		}
		goto LA73;
		LA75: ;
		{
			NIM_BOOL LOC79;
			Tnode191813* LOC83;
			LOC79 = 0;
			LOC79 = (((NI) 0) < diff);
			if (!(LOC79)) goto LA80;
			LOC79 = !((diff == ((NI) IL64(9223372036854775807))));
			LA80: ;
			if (!LOC79) goto LA81;
			result = newtransnode_368066(((NU8) 66), n, ((NI) 1));
			LOC83 = 0;
			LOC83 = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 1)]);
			HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC83);
		}
		goto LA73;
		LA81: ;
		{
			result = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 1)]);
		}
		LA73: ;
	}
	break;
	case ((NU8) 12):
	case ((NU8) 15):
	{
		result = transform_368294(c, (*n).kindU.S6.sons->data[((NI) 1)]);
	}
	break;
	default:
	{
		result = transformsons_368301(c, n);
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode191813*, transformconstsection_368643)(Ttransfcontext368011* c, Tnode191813* v) {
	Tnode191813* result;
	result = 0;
	result = newtransnode_368031(v);
	{
		NI i_368660;
		NI HEX3Atmp_368705;
		NI LOC2;
		NI res_368708;
		i_368660 = 0;
		HEX3Atmp_368705 = 0;
		LOC2 = 0;
		LOC2 = sonslen_194403(v);
		HEX3Atmp_368705 = (NI)(LOC2 - ((NI) 1));
		res_368708 = ((NI) 0);
		{
			while (1) {
				Tnode191813* it;
				if (!(res_368708 <= HEX3Atmp_368705)) goto LA4;
				i_368660 = res_368708;
				it = (*v).kindU.S6.sons->data[i_368660];
				{
					if (!((*it).kind == ((NU8) 125))) goto LA7;
					HEX5BHEX5DHEX3D_368091(result, i_368660, it);
				}
				goto LA5;
				LA7: ;
				{
					{
						if (!!(((*it).kind == ((NU8) 102)))) goto LA12;
						internalerror_166199((*it).info, ((NimStringDesc*) &TMP3280));
					}
					LA12: ;
					{
						if (!!(((*(*it).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA16;
						internalerror_166199((*it).info, ((NimStringDesc*) &TMP3280));
					}
					LA16: ;
					{
						Tnode191813* LOC20;
						Tnode191813* b;
						Tnode191813* LOC23;
						Tnode191813* LOC24;
						Tnode191813* LOC25;
						LOC20 = 0;
						LOC20 = HEX5BHEX5D_192244(it, ((NI) 0));
						if (!(((*(*LOC20).kindU.S4.sym).flags &(1<<((((NU8) 25))&31)))!=0)) goto LA21;
						b = newnodei_193351(((NU8) 102), (*it).info);
						LOC23 = 0;
						LOC23 = HEX5BHEX5D_192244(it, ((NI) 0));
						addson_193819(b, LOC23);
						addson_193819(b, emptynode_192807);
						LOC24 = 0;
						LOC24 = HEX5BHEX5D_192244(it, ((NI) 2));
						LOC25 = 0;
						LOC25 = transform_368294(c, LOC24);
						addson_193819(b, LOC25);
						HEX5BHEX5DHEX3D_368091(result, i_368660, b);
					}
					goto LA18;
					LA21: ;
					{
						HEX5BHEX5DHEX3D_368091(result, i_368660, it);
					}
					LA18: ;
				}
				LA5: ;
				res_368708 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

static N_INLINE(NIM_BOOL, importantcomments_155164)(void) {
	NIM_BOOL result;
	result = 0;
	result = ((16640 &(1<<((gcmd_155130)&31)))!=0);
	return result;
}

N_NIMCALL(Tnode191813*, transformvarsection_368436)(Ttransfcontext368011* c, Tnode191813* v) {
	Tnode191813* result;
	result = 0;
	result = newtransnode_368031(v);
	{
		NI i_368453;
		NI HEX3Atmp_368612;
		NI LOC2;
		NI res_368615;
		i_368453 = 0;
		HEX3Atmp_368612 = 0;
		LOC2 = 0;
		LOC2 = sonslen_194403(v);
		HEX3Atmp_368612 = (NI)(LOC2 - ((NI) 1));
		res_368615 = ((NI) 0);
		{
			while (1) {
				Tnode191813* it;
				if (!(res_368615 <= HEX3Atmp_368612)) goto LA4;
				i_368453 = res_368615;
				it = (*v).kindU.S6.sons->data[i_368453];
				{
					if (!((*it).kind == ((NU8) 125))) goto LA7;
					HEX5BHEX5DHEX3D_368091(result, i_368453, it);
				}
				goto LA5;
				LA7: ;
				{
					Tsym191843* newvar;
					Tidobj168015* LOC22;
					Tnode191813* LOC23;
					Tnode191813* defs;
					Tnode191813* LOC30;
					Tnode191813* LOC31;
					if (!((*it).kind == ((NU8) 35))) goto LA10;
					{
						if (!!(((*(*it).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 3)))) goto LA14;
						internalerror_166199((*it).info, ((NimStringDesc*) &TMP3281));
					}
					LA14: ;
					{
						NI LOC18;
						NimStringDesc* LOC21;
						LOC18 = 0;
						LOC18 = len_192097(it);
						if (!!((LOC18 == ((NI) 3)))) goto LA19;
						LOC21 = 0;
						LOC21 = HEX24_166306(TMP3282);
						internalerror_166218(LOC21);
					}
					LA19: ;
					newvar = copysym_194607((*(*it).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym, NIM_FALSE);
					(*newvar).flags |= ((NI32)1)<<((((NU8) 2))%(sizeof(NI32)*8));
					asgnRefNoCycle((void**) (&(*newvar).owner), getcurrowner_368247(c));
					LOC22 = 0;
					LOC22 = &(*(*it).kindU.S6.sons->data[((NI) 0)]).kindU.S4.sym->Sup;
					LOC23 = 0;
					LOC23 = newsymnode_193325(newvar);
					idnodetableput_199219((&(*(*c).transcon).mapping), LOC22, LOC23);
					defs = newtransnode_368041(((NU8) 35), (*it).info, ((NI) 3));
					{
						NIM_BOOL LOC26;
						NimStringDesc* LOC29;
						LOC26 = 0;
						LOC26 = importantcomments_155164();
						if (!LOC26) goto LA27;
						LOC29 = 0;
						LOC29 = (*defs).comment; (*defs).comment = copyStringRC1((*it).comment);
						if (LOC29) nimGCunrefNoCycle(LOC29);
					}
					LA27: ;
					LOC30 = 0;
					LOC30 = newsymnode_193325(newvar);
					HEX5BHEX5DHEX3D_368091(defs, ((NI) 0), LOC30);
					HEX5BHEX5DHEX3D_368091(defs, ((NI) 1), (*it).kindU.S6.sons->data[((NI) 1)]);
					LOC31 = 0;
					LOC31 = transform_368294(c, (*it).kindU.S6.sons->data[((NI) 2)]);
					HEX5BHEX5DHEX3D_368091(defs, ((NI) 2), LOC31);
					asgnRefNoCycle((void**) (&(*newvar).ast), HEX5BHEX5D_368104(defs, ((NI) 2)));
					HEX5BHEX5DHEX3D_368091(result, i_368453, defs);
				}
				goto LA5;
				LA10: ;
				{
					NI L;
					Tnode191813* defs;
					Tnode191813* LOC43;
					{
						if (!!(((*it).kind == ((NU8) 36)))) goto LA35;
						internalerror_166199((*it).info, ((NimStringDesc*) &TMP3284));
					}
					LA35: ;
					L = sonslen_194403(it);
					defs = newtransnode_368041((*it).kind, (*it).info, L);
					{
						NI j_368541;
						NI HEX3Atmp_368605;
						NI res_368608;
						j_368541 = 0;
						HEX3Atmp_368605 = 0;
						HEX3Atmp_368605 = (NI)(L - ((NI) 3));
						res_368608 = ((NI) 0);
						{
							while (1) {
								Tsym191843* newvar;
								Tidobj168015* LOC40;
								Tnode191813* LOC41;
								Tnode191813* LOC42;
								if (!(res_368608 <= HEX3Atmp_368605)) goto LA39;
								j_368541 = res_368608;
								newvar = copysym_194607((*(*it).kindU.S6.sons->data[j_368541]).kindU.S4.sym, NIM_FALSE);
								(*newvar).flags |= ((NI32)1)<<((((NU8) 2))%(sizeof(NI32)*8));
								asgnRefNoCycle((void**) (&(*newvar).owner), getcurrowner_368247(c));
								LOC40 = 0;
								LOC40 = &(*(*it).kindU.S6.sons->data[j_368541]).kindU.S4.sym->Sup;
								LOC41 = 0;
								LOC41 = newsymnode_193325(newvar);
								idnodetableput_199219((&(*(*c).transcon).mapping), LOC40, LOC41);
								LOC42 = 0;
								LOC42 = newsymnode_193325(newvar);
								HEX5BHEX5DHEX3D_368091(defs, j_368541, LOC42);
								res_368608 += ((NI) 1);
							} LA39: ;
						}
					}
					HEX5BHEX5DHEX3D_368091(defs, (NI)(L - ((NI) 2)), emptynode_192807);
					LOC43 = 0;
					LOC43 = transform_368294(c, (*it).kindU.S6.sons->data[(NI)(L - ((NI) 1))]);
					HEX5BHEX5DHEX3D_368091(defs, (NI)(L - ((NI) 1)), LOC43);
					HEX5BHEX5DHEX3D_368091(result, i_368453, defs);
				}
				LA5: ;
				res_368615 += ((NI) 1);
			} LA4: ;
		}
	}
	return result;
}

N_NIMCALL(void, unpacktuple_369209)(Ttransfcontext368011* c, Tnode191813* n, Tnode191813* father) {
	{
		NI i_369226;
		NI HEX3Atmp_369229;
		NI LOC2;
		NI res_369232;
		i_369226 = 0;
		HEX3Atmp_369229 = 0;
		LOC2 = 0;
		LOC2 = sonslen_194403((*(*c).transcon).forstmt);
		HEX3Atmp_369229 = (NI)(LOC2 - ((NI) 3));
		res_369232 = ((NI) 0);
		{
			while (1) {
				Tnode191813* LOC5;
				Tnode191813* LOC6;
				Tnode191813* LOC7;
				if (!(res_369232 <= HEX3Atmp_369229)) goto LA4;
				i_369226 = res_369232;
				LOC5 = 0;
				LOC5 = newtupleaccess_358034(n, i_369226);
				LOC6 = 0;
				LOC6 = transform_368294(c, LOC5);
				LOC7 = 0;
				LOC7 = newasgnstmt_368343(c, (*(*(*c).transcon).forstmt).kindU.S6.sons->data[i_369226], LOC6);
				add_368118(father, LOC7);
				res_369232 += ((NI) 1);
			} LA4: ;
		}
	}
}

N_NIMCALL(Tnode191813*, introducenewlocalvars_369251)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* result;
	result = 0;
	switch ((*n).kind) {
	case ((NU8) 3):
	{
		result = transformsym_368425(c, n);
	}
	break;
	case ((NU8) 1) ... ((NU8) 2):
	case ((NU8) 4) ... ((NU8) 23):
	{
		result = n;
	}
	break;
	case ((NU8) 99):
	case ((NU8) 100):
	{
		result = transformvarsection_368436(c, n);
	}
	break;
	default:
	{
		result = newtransnode_368031(n);
		{
			NI i_369288;
			NI HEX3Atmp_369291;
			NI LOC6;
			NI res_369294;
			i_369288 = 0;
			HEX3Atmp_369291 = 0;
			LOC6 = 0;
			LOC6 = sonslen_194403(n);
			HEX3Atmp_369291 = (NI)(LOC6 - ((NI) 1));
			res_369294 = ((NI) 0);
			{
				while (1) {
					Tnode191813* LOC9;
					if (!(res_369294 <= HEX3Atmp_369291)) goto LA8;
					i_369288 = res_369294;
					LOC9 = 0;
					LOC9 = introducenewlocalvars_369251(c, (*n).kindU.S6.sons->data[i_369288]);
					HEX5BHEX5DHEX3D_368091(result, i_369288, LOC9);
					res_369294 += ((NI) 1);
				} LA8: ;
			}
		}
	}
	break;
	}
	return result;
}

N_NIMCALL(Tnode191813*, transformyield_369313)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* result;
	Tnode191813* e;
	result = 0;
	result = newtransnode_368041(((NU8) 115), (*n).info, ((NI) 0));
	e = (*n).kindU.S6.sons->data[((NI) 0)];
	{
		NIM_BOOL LOC3;
		Ttype191849* LOC4;
		NI LOC6;
		LOC3 = 0;
		LOC4 = 0;
		LOC4 = skiptypes_195167((*e).typ, 2048);
		LOC3 = ((*LOC4).kind == ((NU8) 18));
		if (!(LOC3)) goto LA5;
		LOC6 = 0;
		LOC6 = len_192097((*(*c).transcon).forstmt);
		LOC3 = !((LOC6 == ((NI) 3)));
		LA5: ;
		if (!LOC3) goto LA7;
		e = skipconv_230935(e);
		{
			if (!((*e).kind == ((NU8) 37))) goto LA11;
			{
				NI i_369352;
				NI HEX3Atmp_369367;
				NI LOC14;
				NI res_369370;
				i_369352 = 0;
				HEX3Atmp_369367 = 0;
				LOC14 = 0;
				LOC14 = sonslen_194403(e);
				HEX3Atmp_369367 = (NI)(LOC14 - ((NI) 1));
				res_369370 = ((NI) 0);
				{
					while (1) {
						Tnode191813* LOC17;
						Tnode191813* LOC18;
						if (!(res_369370 <= HEX3Atmp_369367)) goto LA16;
						i_369352 = res_369370;
						LOC17 = 0;
						LOC17 = transform_368294(c, (*e).kindU.S6.sons->data[i_369352]);
						LOC18 = 0;
						LOC18 = newasgnstmt_368343(c, (*(*(*c).transcon).forstmt).kindU.S6.sons->data[i_369352], LOC17);
						add_368118(result, LOC18);
						res_369370 += ((NI) 1);
					} LA16: ;
				}
			}
		}
		goto LA9;
		LA11: ;
		{
			unpacktuple_369209(c, e, result);
		}
		LA9: ;
	}
	goto LA1;
	LA7: ;
	{
		Tnode191813* x;
		Tnode191813* LOC21;
		x = transform_368294(c, e);
		LOC21 = 0;
		LOC21 = newasgnstmt_368343(c, (*(*(*c).transcon).forstmt).kindU.S6.sons->data[((NI) 0)], x);
		add_368118(result, LOC21);
	}
	LA1: ;
	(*(*c).transcon).yieldstmts += ((NI) 1);
	{
		if (!((*(*c).transcon).yieldstmts <= ((NI) 1))) goto LA24;
		add_368118(result, (*(*c).transcon).forloopbody);
	}
	goto LA22;
	LA24: ;
	{
		Tnode191813* LOC27;
		LOC27 = 0;
		LOC27 = introducenewlocalvars_369251(c, (*(*c).transcon).forloopbody);
		add_368118(result, LOC27);
	}
	LA22: ;
	return result;
}

N_NIMCALL(Tnode191813*, transformblock_368889)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* result;
	Tsym191843* labl;
	Tsym191843* LOC6;
	Tnode191813* 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_368768(c, n);
	}
	LA1: ;
	(*c).breaksyms = (Tsymseq191815*) incrSeq(&((*c).breaksyms)->Sup, sizeof(Tsym191843*));
	asgnRefNoCycle((void**) (&(*c).breaksyms->data[(*c).breaksyms->Sup.len-1]), labl);
	result = transformsons_368301(c, n);
	LOC6 = 0;
	LOC6 = pop_368918((&(*c).breaksyms));
	LOC7 = 0;
	LOC7 = newsymnode_193325(labl);
	HEX5BHEX5DHEX3D_368091(result, ((NI) 0), LOC7);
	return result;
}

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

N_NIMCALL(Tnode191813*, transform_368294)(Ttransfcontext368011* c, Tnode191813* n) {
	Tnode191813* result;
	Tnode191813* cnst;
{	result = 0;
	switch ((*n).kind) {
	case ((NU8) 3):
	{
		result = transformsym_368425(c, n);
	}
	break;
	case ((NU8) 1) ... ((NU8) 2):
	case ((NU8) 4) ... ((NU8) 23):
	{
		result = n;
	}
	break;
	case ((NU8) 42):
	{
		result = transformarrayaccess_370211(c, n);
	}
	break;
	case ((NU8) 51) ... ((NU8) 52):
	case ((NU8) 79) ... ((NU8) 81):
	case ((NU8) 84):
	{
		result = n;
	}
	break;
	case ((NU8) 82):
	{
		result = n;
	}
	break;
	case ((NU8) 94):
	{
		result = transformfor_369761(c, n);
	}
	break;
	case ((NU8) 95):
	{
		result = transformsons_368301(c, n);
	}
	break;
	case ((NU8) 97):
	{
		result = transformcase_370107(c, n);
	}
	break;
	case ((NU8) 111):
	{
		Tsym191843* labl;
		Tnode191813* LOC10;
		result = newnodei_193351(((NU8) 110), (*n).info);
		labl = (*c).contsyms->data[((*c).contsyms ? ((*c).contsyms->Sup.len-1) : -1)];
		LOC10 = 0;
		LOC10 = newsymnode_193325(labl);
		add_368118(result, LOC10);
	}
	break;
	case ((NU8) 110):
	{
		result = transformbreak_369073(c, n);
	}
	break;
	case ((NU8) 96):
	{
		result = transformwhile_368990(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_370418(c, n);
	}
	break;
	case ((NU8) 63):
	case ((NU8) 64):
	{
		result = transformaddrderef_369389(c, n, ((NU8) 47), ((NU8) 65));
	}
	break;
	case ((NU8) 47):
	case ((NU8) 65):
	{
		result = transformaddrderef_369389(c, n, ((NU8) 63), ((NU8) 64));
	}
	break;
	case ((NU8) 58):
	case ((NU8) 59):
	case ((NU8) 60):
	{
		result = transformconv_369496(c, n);
	}
	break;
	case ((NU8) 114):
	{
		result = n;
		{
			if (!!(((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 1)))) goto LA20;
			result = transformsons_368301(c, n);
			{
				NIM_BOOL LOC24;
				LOC24 = 0;
				LOC24 = isconstexpr_220428((*result).kindU.S6.sons->data[((NI) 0)]);
				if (!LOC24) goto LA25;
				result = newnode_192401(((NU8) 125));
			}
			LA25: ;
		}
		LA20: ;
	}
	break;
	case ((NU8) 125):
	case ((NU8) 83):
	{
		result = n;
		goto BeforeRet;
	}
	break;
	case ((NU8) 101):
	{
		result = transformconstsection_368643(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 LA33;
			result = transformvarsection_368436(c, n);
		}
		goto LA31;
		LA33: ;
		{
			result = transformsons_368301(c, n);
		}
		LA31: ;
	}
	break;
	case ((NU8) 104):
	{
		{
			if (!(((NI) 0) < (*c).inlining)) goto LA39;
			result = transformyield_369313(c, n);
		}
		goto LA37;
		LA39: ;
		{
			result = transformsons_368301(c, n);
		}
		LA37: ;
	}
	break;
	case ((NU8) 112):
	case ((NU8) 127):
	{
		result = transformblock_368889(c, n);
	}
	break;
	case ((NU8) 35):
	case ((NU8) 102):
	{
		result = transformsons_368301(c, n);
		{
			NIM_BOOL LOC46;
			NimStringDesc* LOC49;
			LOC46 = 0;
			LOC46 = importantcomments_155164();
			if (!LOC46) goto LA47;
			LOC49 = 0;
			LOC49 = (*result).comment; (*result).comment = copyStringRC1((*n).comment);
			if (LOC49) nimGCunrefNoCycle(LOC49);
		}
		LA47: ;
	}
	break;
	case ((NU8) 155):
	{
		result = n;
		goto BeforeRet;
	}
	break;
	default:
	{
		result = transformsons_368301(c, n);
	}
	break;
	}
	cnst = getconstexpr_257004((*c).module, result);
	{
		NIM_BOOL LOC54;
		NIM_BOOL LOC56;
		LOC54 = 0;
		LOC54 = !((cnst == NIM_NIL));
		if (!(LOC54)) goto LA55;
		LOC56 = 0;
		LOC56 = dontinlineconstant_370565(n, cnst);
		LOC54 = !(LOC56);
		LA55: ;
		if (!LOC54) goto LA57;
		result = cnst;
	}
	LA57: ;
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode191813*, processtransf_371035)(Ttransfcontext368011* c, Tnode191813* n, Tsym191843* owner) {
	Tnode191813* result;
	Ttranscon368009* LOC7;
{	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (*c).Sup.fromcache;
		if (LOC3) goto LA4;
		LOC3 = (((*n).flags &(1<<((((NU8) 5))&15)))!=0);
		LA4: ;
		if (!LOC3) goto LA5;
		result = n;
		goto BeforeRet;
	}
	LA5: ;
	LOC7 = 0;
	LOC7 = newtranscon_368138(owner);
	pushtranscon_368216(c, LOC7);
	result = transform_368294(c, n);
	poptranscon_368226(c);
	(*result).flags |= ((NI16)1)<<((((NU8) 5))%(sizeof(NI16)*8));
	}BeforeRet: ;
	return result;
}

N_NIMCALL(Tnode191813*, transformexpr_371407)(Tsym191843* module, Tnode191813* n) {
	Tnode191813* result;
	result = 0;
	{
		if (!(((*n).flags &(1<<((((NU8) 5))&15)))!=0)) goto LA3;
		result = n;
	}
	goto LA1;
	LA3: ;
	{
		Ttransfcontext368011* c;
		c = opentransf_371067(module, ((NimStringDesc*) &TMP3259));
		result = processtransf_371035(c, n, module);
		(*result).flags |= ((NI16)1)<<((((NU8) 5))%(sizeof(NI16)*8));
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode191813*, commonoptimizations_370597)(Tsym191843* c, Tnode191813* n) {
	Tnode191813* result;
	Tsym191843* op;
	result = 0;
	result = n;
	{
		NI i_370621;
		NI HEX3Atmp_370687;
		NI LOC2;
		NI res_370690;
		i_370621 = 0;
		HEX3Atmp_370687 = 0;
		LOC2 = 0;
		LOC2 = safelen_192125(n);
		HEX3Atmp_370687 = (LOC2 - 1);
		res_370690 = ((NI) 0);
		{
			while (1) {
				if (!(res_370690 <= HEX3Atmp_370687)) goto LA4;
				i_370621 = res_370690;
				asgnRefNoCycle((void**) (&(*result).kindU.S6.sons->data[i_370621]), commonoptimizations_370597(c, (*n).kindU.S6.sons->data[i_370621]));
				res_370690 += ((NI) 1);
			} LA4: ;
		}
	}
	op = getmergeop_370282(n);
	{
		NIM_BOOL LOC7;
		NIM_BOOL LOC8;
		NI LOC11;
		Tnode191813* args;
		NI j;
		LOC7 = 0;
		LOC8 = 0;
		LOC8 = !((op == NIM_NIL));
		if (!(LOC8)) goto LA9;
		LOC8 = !(((*op).magic == ((NU16) 0)));
		LA9: ;
		LOC7 = LOC8;
		if (!(LOC7)) goto LA10;
		LOC11 = 0;
		LOC11 = sonslen_194403(n);
		LOC7 = (((NI) 3) <= LOC11);
		LA10: ;
		if (!LOC7) goto LA12;
		result = newnodeit_193807(((NU8) 27), (*n).info, (*n).typ);
		add_192164(result, (*n).kindU.S6.sons->data[((NI) 0)]);
		args = newnode_192401(((NU8) 152));
		flattentreeaux_370316(args, n, op);
		j = ((NI) 0);
		{
			while (1) {
				NI LOC16;
				Tnode191813* a;
				LOC16 = 0;
				LOC16 = sonslen_194403(args);
				if (!(j < LOC16)) goto LA15;
				a = (*args).kindU.S6.sons->data[j];
				j += ((NI) 1);
				{
					NIM_BOOL LOC19;
					LOC19 = 0;
					LOC19 = isconstexpr_220428(a);
					if (!LOC19) goto LA20;
					{
						while (1) {
							NI LOC24;
							Tnode191813* b;
							LOC24 = 0;
							LOC24 = sonslen_194403(args);
							if (!(j < LOC24)) goto LA23;
							b = (*args).kindU.S6.sons->data[j];
							{
								NIM_BOOL LOC27;
								LOC27 = 0;
								LOC27 = isconstexpr_220428(b);
								if (!!(LOC27)) goto LA28;
								goto LA22;
							}
							LA28: ;
							a = evalop_257011((*op).magic, result, a, b, NIM_NIL);
							j += ((NI) 1);
						} LA23: ;
					} LA22: ;
				}
				LA20: ;
				add_192164(result, a);
			} LA15: ;
		}
		{
			NI LOC32;
			LOC32 = 0;
			LOC32 = len_192097(result);
			if (!(LOC32 == ((NI) 2))) goto LA33;
			result = HEX5BHEX5D_192244(result, ((NI) 1));
		}
		LA33: ;
	}
	goto LA5;
	LA12: ;
	{
		Tnode191813* cnst;
		cnst = getconstexpr_257004(c, n);
		{
			NIM_BOOL LOC38;
			NIM_BOOL LOC40;
			LOC38 = 0;
			LOC38 = !((cnst == NIM_NIL));
			if (!(LOC38)) goto LA39;
			LOC40 = 0;
			LOC40 = dontinlineconstant_370565(n, cnst);
			LOC38 = !(LOC40);
			LA39: ;
			if (!LOC38) goto LA41;
			result = cnst;
		}
		goto LA36;
		LA41: ;
		{
			result = n;
		}
		LA36: ;
	}
	LA5: ;
	return result;
}

N_NIMCALL(Tnode191813*, transformbody_371118)(Tsym191843* module, Tnode191813* n, Tsym191843* prc) {
	Tnode191813* result;
	result = 0;
	{
		NIM_BOOL LOC3;
		LOC3 = 0;
		LOC3 = (((*n).flags &(1<<((((NU8) 5))&15)))!=0);
		if (LOC3) goto LA4;
		LOC3 = ((262144 &(1<<(((*prc).kind)&31)))!=0);
		LA4: ;
		if (!LOC3) goto LA5;
		result = n;
	}
	goto LA1;
	LA5: ;
	{
		Ttransfcontext368011* c;
		c = opentransf_371067(module, ((NimStringDesc*) &TMP3259));
		result = processtransf_371035(c, n, prc);
		result = liftlambdas_367240(prc, result);
		(*result).flags |= ((NI16)1)<<((((NU8) 5))%(sizeof(NI16)*8));
		trackproc_330581(prc, result);
	}
	LA1: ;
	return result;
}

N_NIMCALL(Tnode191813*, transformstmt_371207)(Tsym191843* module, Tnode191813* n) {
	Tnode191813* result;
	result = 0;
	{
		if (!(((*n).flags &(1<<((((NU8) 5))&15)))!=0)) goto LA3;
		result = n;
	}
	goto LA1;
	LA3: ;
	{
		Ttransfcontext368011* c;
		c = opentransf_371067(module, ((NimStringDesc*) &TMP3259));
		result = processtransf_371035(c, n, module);
		result = liftlambdasfortoplevel_367291(module, result);
		(*result).flags |= ((NI16)1)<<((((NU8) 5))%(sizeof(NI16)*8));
		tracktoplevelstmt_330737(module, result);
	}
	LA1: ;
	return result;
}
NIM_EXTERNC N_NOINLINE(void, nimsrc_transfInit)(void) {
}

NIM_EXTERNC N_NOINLINE(void, nimsrc_transfDatInit)(void) {
static TNimNode* TMP3252[6];
static TNimNode* TMP3253[6];
static TNimNode TMP924[14];
NTI368011.size = sizeof(Ttransfcontext368011);
NTI368011.kind = 17;
NTI368011.base = (&NTI242005);
TMP3252[0] = &TMP924[1];
TMP924[1].kind = 1;
TMP924[1].offset = offsetof(Ttransfcontext368011, module);
TMP924[1].typ = (&NTI191811);
TMP924[1].name = "module";
TMP3252[1] = &TMP924[2];
NTI368009.size = sizeof(Ttranscon368009);
NTI368009.kind = 18;
NTI368009.base = 0;
TMP3253[0] = &TMP924[4];
TMP924[4].kind = 1;
TMP924[4].offset = offsetof(Ttranscon368009, mapping);
TMP924[4].typ = (&NTI191867);
TMP924[4].name = "mapping";
TMP3253[1] = &TMP924[5];
TMP924[5].kind = 1;
TMP924[5].offset = offsetof(Ttranscon368009, owner);
TMP924[5].typ = (&NTI191811);
TMP924[5].name = "owner";
TMP3253[2] = &TMP924[6];
TMP924[6].kind = 1;
TMP924[6].offset = offsetof(Ttranscon368009, forstmt);
TMP924[6].typ = (&NTI191805);
TMP924[6].name = "forStmt";
TMP3253[3] = &TMP924[7];
TMP924[7].kind = 1;
TMP924[7].offset = offsetof(Ttranscon368009, forloopbody);
TMP924[7].typ = (&NTI191805);
TMP924[7].name = "forLoopBody";
TMP3253[4] = &TMP924[8];
TMP924[8].kind = 1;
TMP924[8].offset = offsetof(Ttranscon368009, yieldstmts);
TMP924[8].typ = (&NTI108);
TMP924[8].name = "yieldStmts";
TMP3253[5] = &TMP924[9];
TMP924[9].kind = 1;
TMP924[9].offset = offsetof(Ttranscon368009, next);
TMP924[9].typ = (&NTI368007);
TMP924[9].name = "next";
TMP924[3].len = 6; TMP924[3].kind = 2; TMP924[3].sons = &TMP3253[0];
NTI368009.node = &TMP924[3];
NTI368007.size = sizeof(Ttranscon368009*);
NTI368007.kind = 22;
NTI368007.base = (&NTI368009);
NTI368007.marker = TMP3257;
TMP924[2].kind = 1;
TMP924[2].offset = offsetof(Ttransfcontext368011, transcon);
TMP924[2].typ = (&NTI368007);
TMP924[2].name = "transCon";
TMP3252[2] = &TMP924[10];
TMP924[10].kind = 1;
TMP924[10].offset = offsetof(Ttransfcontext368011, inlining);
TMP924[10].typ = (&NTI108);
TMP924[10].name = "inlining";
TMP3252[3] = &TMP924[11];
TMP924[11].kind = 1;
TMP924[11].offset = offsetof(Ttransfcontext368011, nestedprocs);
TMP924[11].typ = (&NTI108);
TMP924[11].name = "nestedProcs";
TMP3252[4] = &TMP924[12];
TMP924[12].kind = 1;
TMP924[12].offset = offsetof(Ttransfcontext368011, contsyms);
TMP924[12].typ = (&NTI191815);
TMP924[12].name = "contSyms";
TMP3252[5] = &TMP924[13];
TMP924[13].kind = 1;
TMP924[13].offset = offsetof(Ttransfcontext368011, breaksyms);
TMP924[13].typ = (&NTI191815);
TMP924[13].name = "breakSyms";
TMP924[0].len = 6; TMP924[0].kind = 2; TMP924[0].sons = &TMP3252[0];
NTI368011.node = &TMP924[0];
NTI368013.size = sizeof(Ttransfcontext368011*);
NTI368013.kind = 22;
NTI368013.base = (&NTI368011);
NTI368013.marker = TMP3258;
}

